/*
Theme Name: Imperium Coffee
Template: astra
Description: Custom child theme for Imperium Coffee — coffee export trading company.
Version: 2.3
Author: Imperium Coffee
*/

:root {
  --ivory: #EFE7D8;
  --espresso: #241811;
  --espresso-soft: #3A2A1C;
  --gold: #A9832F;
  --gold-light: #D9BD7C;

  /* Accent used for eyebrows, links and primary buttons.
     To go back to the brand gold, change --accent to #8C6E2C and --accent-dark to #6F5620. */
  --accent: #9C5438;
  --accent-dark: #7F4129;
  --gold-dim: var(--accent);

  --bg-page: #F7F3EC;
  --sand: #EADFD2;
  --sand-soft: #EFE6DA;
  --text: #2B1D14;
  --text-soft: #6B5A4B;
  --surface: #FBF8F3;
  --line: rgba(43,29,20,0.14);
  color-scheme: light;
}

/* Astra paints its own white page backgrounds; force ours. */
html,
body,
body.ast-separate-container,
body.ast-page-builder-template,
#page,
#content,
.site-content,
.ast-container,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .site-main > .ast-row {
  background-color: var(--bg-page) !important;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 90px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
body.admin-bar header.site { top: 32px; }
.nav-row { display: flex; align-items: center; gap: 40px; padding: 14px 32px; }
@media (max-width: 640px) { .nav-row { padding: 12px 20px; } }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.brand-word { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem; color: var(--text); }
nav.primary { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
nav.primary li { list-style: none; }
nav.primary a { font-size: 0.95rem; color: var(--text-soft); border-bottom: 1px solid transparent; padding-bottom: 2px; }
nav.primary a:hover { color: var(--text); border-color: var(--gold); }
@media (max-width: 860px) { nav.primary { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 0.92rem; padding: 12px 22px; border-radius: 3px; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.btn-primary:hover { background: var(--espresso-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dim); }
.btn-gold { background: var(--gold); color: var(--espresso); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); }

/* ---------- Hero (Home) ---------- */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 56px 0 48px; } }
.eyebrow { font-size: 0.85rem; color: var(--gold-dim); margin-bottom: 18px; font-weight: 600; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); max-width: 12ch; }
.hero p.lede { margin-top: 22px; font-size: 1.08rem; color: var(--text-soft); max-width: 46ch; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { background: var(--espresso); border-radius: 4px; padding: 28px; aspect-ratio: 4/3.1; display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: 100%; height: 100%; }

/* ---------- Trust bar ---------- */
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); padding: 30px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .trust-row { grid-template-columns: repeat(2, 1fr); gap: 24px 0; } }
.trust-item { display: flex; flex-direction: column; gap: 4px; padding: 0 24px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-item .label { font-size: 0.95rem; font-weight: 600; }
.trust-item .sub { font-size: 0.85rem; color: var(--text-soft); }

/* ---------- Section shell ---------- */
section { padding: 84px 0; }
@media (max-width: 640px) { section { padding: 56px 0; } }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
@media (max-width: 640px) { .section-head { flex-direction: column; align-items: flex-start; gap: 10px; } }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); max-width: 16ch; }
.section-head .kicker { font-size: 0.85rem; color: var(--gold-dim); font-weight: 600; margin-bottom: 10px; }
.section-head p { color: var(--text-soft); max-width: 36ch; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-fact { border-top: 1px solid var(--line); padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.about-fact:last-child { border-bottom: 1px solid var(--line); }
.about-fact .k { color: var(--text-soft); font-size: 0.92rem; }
.about-fact .v { font-weight: 600; text-align: right; }

.region-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 860px) { .region-grid { grid-template-columns: 1fr; } }
.region-item { background: var(--bg-page); padding: 28px 26px; }
.region-item .loc { font-size: 0.8rem; color: var(--gold-dim); font-weight: 600; margin-bottom: 8px; }
.region-item h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.region-item p { color: var(--text-soft); font-size: 0.92rem; margin: 0; }

/* ---------- Products ledger ---------- */
.ledger { width: 100%; border-collapse: collapse; }
.ledger thead th { text-align: left; font-weight: 600; font-size: 0.82rem; color: var(--text-soft); padding: 0 0 14px; border-bottom: 1px solid var(--espresso); }
.ledger tbody td { padding: 22px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger tbody tr:hover td { background: rgba(169,131,47,0.05); }
.ledger .origin-name { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 600; }
.ledger .origin-loc { color: var(--text-soft); font-size: 0.88rem; margin-top: 3px; }
.ledger .tag { display: inline-block; font-size: 0.78rem; padding: 3px 10px; border: 1px solid var(--line); border-radius: 100px; color: var(--text-soft); }
.ledger .profile { color: var(--text-soft); max-width: 30ch; }
@media (max-width: 760px) {
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger tbody tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .ledger tbody td { border-bottom: none; padding: 4px 0; }
}

/* ---------- Why export ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 860px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-item { background: var(--bg-page); padding: 30px 26px; }
.why-item h3 { font-size: 1.05rem; font-weight: 600; font-family: 'Work Sans', sans-serif; margin-bottom: 10px; }
.why-item p { color: var(--text-soft); font-size: 0.92rem; margin: 0; }

.route { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.route svg { width: 100%; height: auto; display: block; }

/* ---------- Blog cards / archive ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; gap: 28px; } }
.blog-card { border-top: 1px solid var(--espresso); padding-top: 18px; }
.blog-card .cat { font-size: 0.8rem; color: var(--gold-dim); font-weight: 600; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.blog-card p { color: var(--text-soft); font-size: 0.92rem; margin: 0; }
.blog-card .meta { font-size: 0.8rem; color: var(--gold-dim); margin-top: 10px; }
.blog-card a { display: block; }
.blog-card img { border-radius: 3px; margin-bottom: 16px; aspect-ratio: 16/10; object-fit: cover; }

.pagination { display: flex; gap: 10px; margin-top: 48px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 3px; font-size: 0.9rem; }
.pagination .current { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }

/* ---------- Single post / page-hero ---------- */
.page-hero { padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero .kicker { font-size: 0.85rem; color: var(--gold-dim); font-weight: 600; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); max-width: 28ch; }
.page-hero p { color: var(--text-soft); margin-top: 16px; max-width: 60ch; }
.post-featured { margin: 0 0 40px; border-radius: 4px; overflow: hidden; }
.post-featured img { width: 100%; }
.prose { max-width: 72ch; }
.post-section { padding: 56px 0 84px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
@media (max-width: 960px) { .post-layout { grid-template-columns: 1fr; gap: 44px; } }
.post-meta { font-size: 0.9rem; }
.post-main .prose > p:first-child { font-size: 1.12rem; color: var(--text); line-height: 1.7; }
.post-aside { position: sticky; top: 100px; display: grid; gap: 28px; }
@media (max-width: 960px) { .post-aside { position: static; } }
.aside-card { background: var(--espresso); color: var(--ivory); padding: 28px; border-radius: 4px; }
.aside-card .kicker { font-size: 0.8rem; color: var(--gold-light); font-weight: 600; margin-bottom: 10px; }
.aside-card h3 { color: var(--ivory); font-size: 1.2rem; margin-bottom: 10px; }
.aside-card p { color: var(--gold-light); font-size: 0.92rem; margin: 0 0 20px; }
.aside-list .kicker { font-size: 0.8rem; color: var(--gold-dim); font-weight: 600; margin-bottom: 8px; }
.aside-list a { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
.aside-list a:hover .t { color: var(--gold-dim); }
.aside-list .t { display: block; font-weight: 600; font-size: 0.95rem; }
.aside-list .d { display: block; font-size: 0.8rem; color: var(--text-soft); margin-top: 4px; }
.prose h2 { font-size: 1.4rem; margin-top: 38px; margin-bottom: 14px; }
.prose p { color: var(--text-soft); margin: 0 0 16px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { color: var(--text-soft); padding-left: 1.2em; margin: 0 0 16px; }
.prose .cta-line-unused { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose .cta-line a { color: var(--gold-dim); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-line { border-top: 1px solid var(--line); padding: 16px 0; }
.contact-line:last-child { border-bottom: 1px solid var(--line); }
.contact-line .k { display: block; font-size: 0.82rem; color: var(--text-soft); margin-bottom: 4px; }
.contact-line .v { font-weight: 600; font-size: 1.05rem; }
.contact-line a.v:hover { color: var(--gold-dim); }

/* ---------- Final CTA ---------- */
.cta-band { background: var(--espresso); color: var(--ivory); padding: 76px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
@media (max-width: 760px) { .cta-band .wrap { flex-direction: column; align-items: flex-start; } }
.cta-band h2 { color: var(--ivory); font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 20ch; }
.cta-band p { color: var(--gold-light); margin-top: 12px; max-width: 44ch; }
.cta-band .btn-gold:hover { background: #EAD9A8; }

/* ---------- Footer ---------- */
footer.site { padding: 56px 0 40px; background: var(--espresso); color: var(--ivory); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(239,228,210,0.16); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-word { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.2rem; color: var(--gold-light); margin-bottom: 10px; }
footer.site p { color: #C7B79C; font-size: 0.92rem; max-width: 34ch; }
footer.site h4 { font-size: 0.85rem; color: var(--gold-light); font-weight: 600; margin-bottom: 14px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site a { color: #C7B79C; font-size: 0.92rem; }
footer.site a:hover { color: var(--gold-light); }
.footer-bottom span:first-child { max-width: 70ch; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; color: #8C7A63; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }

/* ---------- Contact form fields (fallback, non-WPForms) ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: 'Work Sans', sans-serif; font-size: 0.95rem;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--surface); color: var(--text);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- WPForms brand styling ---------- */
.wpforms-container { font-family: 'Work Sans', sans-serif !important; max-width: none !important; }
.wpforms-field { padding: 0 0 28px !important; margin: 0 !important; }
.wpforms-field.wpforms-one-half { width: calc(50% - 10px) !important; }
.wpforms-field.wpforms-first { margin-right: 20px !important; }
.wpforms-field-label { font-weight: 500 !important; font-size: 0.85rem !important; margin-bottom: 6px !important; color: var(--text-soft) !important; }
.wpforms-field-medium {
  background: var(--surface) !important; color: var(--text) !important;
  border: 1px solid var(--line) !important; border-radius: 3px !important;
  padding: 12px 14px !important; font-size: 0.95rem !important;
  max-width: 100% !important; width: 100% !important;
}
.wpforms-field-medium::placeholder { color: var(--text-soft) !important; opacity: 1 !important; }
.wpforms-field-medium:focus { outline: 1px solid var(--accent) !important; }
input.wpforms-field-medium:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important;
  -webkit-text-fill-color: var(--text) !important;
}
.wpforms-submit-container { margin-top: 10px !important; }
.wpforms-submit {
  background: var(--accent) !important; color: #fff !important;
  border-radius: 3px !important; font-weight: 600 !important; border: none !important;
  padding: 12px 24px !important;
}
.wpforms-submit:hover { background: var(--accent-dark) !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }


/* =====================================================================
   v2 — light, photo-led layout
   ===================================================================== */
h1, h2, h3, .display { font-weight: 500; letter-spacing: -0.015em; }
.kicker, .eyebrow {
  font-family: 'Fraunces', serif; text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.74rem !important; font-weight: 500 !important; color: var(--accent) !important;
  margin-bottom: 16px;
}
section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 60px 0; } }
.band-sand { background: var(--sand-soft); }
.band-dark { background: var(--espresso); color: var(--ivory); }

/* Header */
header.site { background: var(--bg-page); }
.nav-row { display: grid; grid-template-columns: 1fr auto 1fr; max-width: 1288px; margin: 0 auto; }
.nav-row .brand { margin-right: 0; }
.nav-row .btn { justify-self: end; }
@media (max-width: 860px) { .nav-row { grid-template-columns: 1fr auto; } }

/* Buttons */
.btn { border-radius: 2px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { border-color: var(--text); color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg-page); border-color: var(--text); }

/* Photos */
.photo { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; }
.photo-ph {
  width: 100%; height: 100%; border-radius: 2px;
  background:
    radial-gradient(circle at 70% 30%, rgba(217,189,124,0.22), transparent 55%),
    linear-gradient(135deg, #3A2A1C, #241811);
}

/* Hero */
.hero { background: var(--sand); border-bottom: none; padding: 80px 0; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); max-width: 14ch; }
.hero p.lede { max-width: 44ch; }
.hero-media { aspect-ratio: 5 / 4.4; }
.hero-art { border-radius: 2px; }
.btn-ghost { background: transparent; }

/* Trust row */
.trust-row { border-bottom: 1px solid var(--line); }

/* Approach */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 860px) { .approach-grid { grid-template-columns: 1fr; gap: 36px; } }
.approach-media { aspect-ratio: 1 / 0.9; }
.approach-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 18ch; }
.approach-copy .rule { width: 52px; height: 1px; background: var(--accent); margin: 24px 0; }
.approach-copy p { color: var(--text-soft); max-width: 44ch; margin: 0 0 18px; }
.approach-copy a.more { color: var(--accent); font-weight: 600; }

/* Section heads */
.section-head { border-bottom: none; padding-bottom: 0; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 22ch; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1060px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }
.product-card { background: var(--surface); border: 1px solid var(--line); padding: 28px 24px 22px; display: flex; flex-direction: column; }
.product-card .p-type { font-family: 'Fraunces', serif; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; color: var(--accent); margin-bottom: 18px; }
.product-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.product-card .p-loc { color: var(--text-soft); font-size: 0.88rem; margin-bottom: 16px; }
.product-card .p-profile { color: var(--text-soft); font-size: 0.92rem; margin: 0 0 22px; }
.product-card .p-meta { margin-top: auto; font-size: 0.82rem; color: var(--text-soft); padding-bottom: 14px; }
.product-card .p-foot { border-top: 1px solid var(--line); padding-top: 14px; font-size: 0.88rem; color: var(--accent); font-weight: 600; }
.product-card:hover { border-color: var(--accent); }

/* Sourcing focus */
.sourcing-media { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin: 40px 0 36px; }
.sourcing-media > div { aspect-ratio: 4 / 3.4; }
@media (max-width: 700px) { .sourcing-media { grid-template-columns: 1fr; } }

/* Why us */
.why-grid { background: transparent; border: none; gap: 20px; }
.why-item { background: var(--surface); border: 1px solid var(--line); }

/* Dark conversation band */
.convo { padding: 96px 0; }
.convo-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .convo-grid { grid-template-columns: 1fr; gap: 32px; } }
.convo h2 { color: var(--ivory); font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 16ch; }
.convo .kicker { color: var(--gold-light) !important; }
.convo p { color: #CDBFA8; margin: 14px 0 0; max-width: 40ch; }
.convo h3 { color: var(--ivory); font-size: 1.1rem; }
.convo .btn { margin-top: 28px; }

/* Blog cards */
.blog-card { border-top: 1px solid var(--text); }

/* Inner page heroes */
.page-hero { background: var(--sand-soft); border-bottom: none; }
.region-item, .why-item { background: var(--surface); }
.post-aside .aside-card { background: var(--espresso); }
.hero-media .hero-art { height: 100%; aspect-ratio: auto; }

/* v2.1 — keep photo frames a fixed shape so images never stretch unevenly */
.hero-media, .approach-media, .sourcing-media > div { position: relative; overflow: hidden; border-radius: 2px; }
.hero-media .photo, .hero-media .photo-ph, .hero-media .hero-art,
.approach-media .photo, .approach-media .photo-ph,
.sourcing-media .photo, .sourcing-media .photo-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sourcing-media { height: clamp(260px, 34vw, 440px); align-items: stretch; }
.sourcing-media > div { aspect-ratio: auto; height: 100%; }
@media (max-width: 700px) {
  .sourcing-media { height: auto; }
  .sourcing-media > div { aspect-ratio: 4 / 3; height: auto; }
}

/* v2.2 — product table: remove Astra's cell borders, add breathing room */
.ledger, .ledger th, .ledger td { border: none !important; }
.ledger { border-collapse: collapse; margin: 0; }
.ledger thead th {
  padding: 0 32px 16px 0 !important; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em;
  font-family: 'Fraunces', serif; font-weight: 500; color: var(--accent);
  border-bottom: 1px solid var(--text) !important; background: transparent !important;
}
.ledger tbody td { padding: 28px 32px 28px 0 !important; border-bottom: 1px solid var(--line) !important; background: transparent !important; }
.ledger tbody tr:hover td { background: var(--sand-soft) !important; }
.ledger tbody tr td:first-child, .ledger thead th:first-child { padding-left: 0 !important; }
.ledger .tag { padding: 4px 12px; white-space: nowrap; }
.ledger .profile { max-width: 36ch; line-height: 1.6; }
@media (max-width: 760px) {
  .ledger tbody td { padding: 6px 0 !important; border-bottom: none !important; }
  .ledger tbody tr { padding: 22px 0; border-bottom: 1px solid var(--line) !important; }
}


/* v2.3 — trade terms block + max-per-order column on the products page */
.ledger .maxqty { white-space: nowrap; font-weight: 500; }
@media (max-width: 760px) {
  .ledger .maxqty::before { content: attr(data-label) ": "; color: var(--text-soft); font-weight: 400; }
}
.terms-section { padding: 0 0 72px; }
.terms { background: var(--sand-soft); border-left: 4px solid var(--accent); padding: 32px 36px; }
.terms h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 20px; }
.terms-list { margin: 0; display: grid; gap: 14px; }
.terms-list > div { display: grid; grid-template-columns: 220px 1fr; gap: 8px 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.terms-list > div:first-child { border-top: none; padding-top: 0; }
.terms-list dt { font-weight: 600; color: var(--text); }
.terms-list dd { margin: 0; color: var(--text-soft); }
.terms-list dd a { color: var(--accent); text-decoration: underline; }
@media (max-width: 640px) {
  .terms { padding: 24px 20px; }
  .terms-list > div { grid-template-columns: 1fr; }
}
