/* MedEquipExchange.com — shared stylesheet
   Direction A "Data Plate". No build step. Edit tokens below to retheme. */

/* ---------- tokens ---------- */
:root{
  --ink:#10151a;
  --ink-2:#5a6672;
  --ink-3:#626c77;
  --paper:#ffffff;
  --surface:#f1f4f6;
  --surface-2:#e6eaee;
  --rule:#dde2e6;
  --rule-2:#c3cad0;
  --accent:#00625a;
  --accent-hi:#004b45;
  --accent-soft:#e2efee;
  --on-accent:#ffffff;

  /* The masthead is a dark band in both themes — it is what makes a clinical
     white page read as deliberate rather than empty. */
  --head-bg:#0d1217;
  --head-ink:#ffffff;
  --head-ink-2:#b7c1cb;
  --head-accent:#4cc4b8;
  --head-cta-bg:#ffffff;
  --head-cta-ink:#0d1217;
  --head-rule:#232c35;

  --sans:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --disp:"Archivo","IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;

  --wrap:1140px;
  --prose:68ch;
  --s1:.5rem; --s2:.85rem; --s3:1.25rem; --s4:2rem; --s5:3rem; --s6:4.5rem;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ink:#e9edf1; --ink-2:#a6b1bc; --ink-3:#7f8a96;
    --paper:#0c1014; --surface:#151b21; --surface-2:#1d242b;
    --rule:#28303a; --rule-2:#39434e;
    --accent:#4cc4b8; --accent-hi:#6fd6cb; --accent-soft:#112a2b;
    --on-accent:#06201e;
    --head-bg:#161d24; --head-ink:#ffffff; --head-ink-2:#b7c1cb;
    --head-accent:#4cc4b8; --head-cta-bg:#e9edf1; --head-cta-ink:#0d1217;
    --head-rule:#2b343e;
  }
}
:root[data-theme="dark"]{
  --ink:#e9edf1; --ink-2:#a6b1bc; --ink-3:#7f8a96;
  --paper:#0c1014; --surface:#151b21; --surface-2:#1d242b;
  --rule:#28303a; --rule-2:#39434e;
  --accent:#4cc4b8; --accent-hi:#6fd6cb; --accent-soft:#112a2b;
  --on-accent:#06201e;
  --head-bg:#161d24; --head-ink:#ffffff; --head-ink-2:#b7c1cb;
  --head-accent:#4cc4b8; --head-cta-bg:#e9edf1; --head-cta-ink:#0d1217;
  --head-rule:#2b343e;
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--sans);font-size:17px;line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img,svg{max-width:100%;height:auto;display:block}
h1,h2,h3,h4{font-family:var(--disp);font-weight:600;margin:0;text-wrap:balance;letter-spacing:-.02em;line-height:1.15}
p,ul,ol{margin:0}
a{color:var(--accent);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{color:var(--accent-hi)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}
.skip{position:absolute;left:-9999px;top:0;background:var(--accent);color:var(--on-accent);padding:.6rem 1rem;z-index:100}
.skip:focus{left:0}

.wrap{max-width:var(--wrap);margin:0 auto;padding-inline:clamp(1.15rem,4vw,3rem)}
.prose{max-width:var(--prose)}
.lbl{font-family:var(--mono);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.lbl-acc{color:var(--accent)}
.num{font-variant-numeric:tabular-nums}

/* ---------- header ---------- */
.site-head{border-bottom:1px solid var(--rule);background:var(--paper);position:sticky;top:0;z-index:50}
.head-in{display:flex;align-items:center;gap:1rem;min-height:62px}
.brand{font-family:var(--disp);font-weight:700;font-size:1.06rem;letter-spacing:-.03em;color:var(--ink);text-decoration:none;white-space:nowrap;margin-right:auto}
.brand em{font-style:normal;color:var(--accent)}
.nav{display:flex;align-items:center;gap:1.5rem}
@media(min-width:861px) and (max-width:1180px){.nav{gap:1rem}.nav a{font-size:.86rem}}
.nav a{color:var(--ink-2);text-decoration:none;font-size:.93rem;font-weight:500}
.nav a:hover,.nav a[aria-current="page"]{color:var(--ink)}
.nav a[aria-current="page"]{box-shadow:inset 0 -2px 0 var(--accent)}
.btn{display:inline-block;background:var(--accent);color:var(--on-accent);font-weight:600;font-size:.92rem;
  padding:.62rem 1.05rem;border-radius:2px;text-decoration:none;border:1px solid var(--accent);cursor:pointer;font-family:var(--sans)}
.btn:hover{background:var(--accent-hi);border-color:var(--accent-hi);color:var(--on-accent)}
.btn-ghost{background:transparent;color:var(--ink);border:1px solid var(--rule-2)}
.btn-ghost:hover{background:var(--surface);color:var(--ink);border-color:var(--ink-3)}
.btn-lg{font-size:1rem;padding:.8rem 1.4rem}
.nav-toggle{display:none;background:none;border:1px solid var(--rule-2);border-radius:2px;padding:.45rem .6rem;color:var(--ink);font-family:var(--mono);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
@media (max-width:860px){
  .nav-toggle{display:block;margin-left:auto}
  .brand{margin-right:0}
  .nav{position:absolute;left:0;right:0;top:100%;background:var(--paper);border-bottom:1px solid var(--rule);
    flex-direction:column;align-items:stretch;gap:0;padding:.5rem clamp(1.15rem,4vw,3rem) 1.15rem;display:none}
  .nav[data-open="true"]{display:flex}
  .nav a{padding:.7rem 0;border-bottom:1px solid var(--rule);font-size:1rem}
  .nav .btn{margin-top:.9rem;text-align:center;border-bottom:1px solid var(--accent)}
}

/* ---------- sections ---------- */
.sec{padding-block:clamp(2.75rem,6vw,var(--s6))}
.sec-tint{background:var(--surface);border-block:1px solid var(--rule)}
.sec-head{display:flex;flex-direction:column;gap:.7rem;margin-bottom:clamp(1.5rem,3vw,2.25rem);max-width:var(--prose)}
.sec-head h2{font-size:clamp(1.5rem,3.4vw,2.05rem)}
.sec-head p{color:var(--ink-2)}
.stack{display:flex;flex-direction:column;gap:1.1rem}
.stack-lg{display:flex;flex-direction:column;gap:2.25rem}
.rule{border:0;border-top:1px solid var(--rule);margin:0}

/* ---------- hero ---------- */
.hero{padding-block:clamp(3rem,8vw,5.5rem);border-bottom:1px solid var(--rule)}
.hero h1{font-size:clamp(2.05rem,5.6vw,3.5rem);font-weight:700;letter-spacing:-.035em;line-height:1.03;margin-top:.85rem;max-width:20ch}
.hero .lede{font-size:clamp(1.05rem,2.2vw,1.28rem);color:var(--ink-2);margin-top:1.15rem;max-width:56ch;line-height:1.55}
.hero-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:2rem}
.hero-sub h1{font-size:clamp(1.85rem,4.6vw,2.85rem);max-width:24ch}

/* ---------- point grid ---------- */
.grid{display:grid;gap:1px;background:var(--rule);border:1px solid var(--rule)}
.grid-3{grid-template-columns:1fr}
@media(min-width:760px){.grid-3{grid-template-columns:repeat(3,1fr)}}
.grid-2{grid-template-columns:1fr}
@media(min-width:760px){.grid-2{grid-template-columns:repeat(2,1fr)}}
.cell{background:var(--paper);padding:1.5rem 1.35rem;display:flex;flex-direction:column;gap:.55rem}
.sec-tint .cell{background:var(--surface)}
.cell h3{font-size:1.04rem}
.cell p{font-size:.95rem;color:var(--ink-2)}

/* ---------- track split ---------- */
.tracks{display:grid;gap:1.25rem;grid-template-columns:1fr}
@media(min-width:800px){.tracks{grid-template-columns:1fr 1fr}}
.track{border:1px solid var(--rule);background:var(--paper);padding:1.75rem 1.6rem;display:flex;flex-direction:column;gap:.8rem}
.track h3{font-size:1.3rem}
.track p{color:var(--ink-2);font-size:.98rem}
.track ul{padding-left:1.1rem;display:flex;flex-direction:column;gap:.35rem;font-size:.95rem;color:var(--ink-2)}
.track .btn{align-self:flex-start;margin-top:.5rem}

/* ---------- prose blocks ---------- */
.body-copy{display:flex;flex-direction:column;gap:1.05rem;max-width:var(--prose)}
.body-copy h2{font-size:clamp(1.4rem,3vw,1.8rem);margin-top:1.6rem}
.body-copy h3{font-size:1.14rem;margin-top:1.2rem}
.body-copy ul,.body-copy ol{padding-left:1.25rem;display:flex;flex-direction:column;gap:.45rem}
.body-copy li::marker{color:var(--ink-3)}
.body-copy strong{font-weight:600}

/* equipment family entries */
.fam{display:flex;flex-direction:column;gap:1.6rem}
.fam-item{border-top:1px solid var(--rule);padding-top:1.15rem;display:flex;flex-direction:column;gap:.55rem;max-width:var(--prose)}
.fam-item h3{font-size:1.12rem}
.fam-item p{color:var(--ink-2);font-size:.97rem}
.fam-item .tags{font-family:var(--mono);font-size:.75rem;color:var(--ink-3);line-height:1.7}

/* steps */
.steps{counter-reset:step;display:flex;flex-direction:column;gap:0;border:1px solid var(--rule)}
.step{counter-increment:step;display:grid;grid-template-columns:3.2rem 1fr;gap:0 1rem;padding:1.25rem 1.35rem;border-bottom:1px solid var(--rule);background:var(--paper)}
.step:last-child{border-bottom:0}
.sec-tint .step{background:var(--surface)}
.step::before{content:counter(step,decimal-leading-zero);font-family:var(--mono);font-size:.8rem;color:var(--accent);letter-spacing:.06em;padding-top:.28rem}
.step div{display:flex;flex-direction:column;gap:.4rem;max-width:64ch}
.step h3{font-size:1.03rem}
.step p{font-size:.95rem;color:var(--ink-2)}

/* faq */
.faq{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--rule)}
.faq-item{border-bottom:1px solid var(--rule);padding:1.3rem 0;display:flex;flex-direction:column;gap:.5rem;max-width:var(--prose)}
.faq-item h3{font-size:1.05rem}
.faq-item p{color:var(--ink-2);font-size:.96rem}

/* note */
.note{border-left:3px solid var(--accent);background:var(--accent-soft);padding:1.1rem 1.25rem;max-width:var(--prose);display:flex;flex-direction:column;gap:.5rem}
.note p{font-size:.96rem}

/* spec list */
.spec-list{display:grid;grid-template-columns:1fr;gap:0;border:1px solid var(--rule)}
@media(min-width:700px){.spec-list{grid-template-columns:14rem 1fr}}
.spec-list dt{font-family:var(--mono);font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);
  padding:1.05rem 1.2rem .3rem;background:var(--surface-2)}
.spec-list dd{margin:0;padding:.3rem 1.2rem 1.05rem;font-size:.96rem;color:var(--ink-2);border-bottom:1px solid var(--rule)}
@media(min-width:700px){
  .spec-list dt{padding:1.05rem 1.2rem;border-bottom:1px solid var(--rule)}
  .spec-list dd{padding:1.05rem 1.2rem;border-bottom:1px solid var(--rule)}
}
.spec-list dd:last-of-type,.spec-list dt:last-of-type{border-bottom:0}

/* ---------- forms ---------- */
.form{display:flex;flex-direction:column;gap:1.4rem;max-width:44rem}
.fset{border:1px solid var(--rule);padding:1.5rem 1.4rem;display:flex;flex-direction:column;gap:1.1rem;margin:0}
.fset legend{font-family:var(--mono);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);padding-inline:.5rem;margin-left:-.5rem}
.frow{display:grid;grid-template-columns:1fr;gap:1.1rem}
@media(min-width:640px){.frow-2{grid-template-columns:1fr 1fr}}
.field{display:flex;flex-direction:column;gap:.38rem}
.field label{font-size:.9rem;font-weight:600}
.field .hint{font-size:.82rem;color:var(--ink-3);line-height:1.5}
.req{color:var(--accent);font-family:var(--mono);font-size:.8rem}
input[type=text],input[type=email],input[type=tel],input[type=url],select,textarea{
  font-family:var(--sans);font-size:.96rem;color:var(--ink);background:var(--paper);
  border:1px solid var(--rule-2);border-radius:2px;padding:.62rem .7rem;width:100%;line-height:1.45}
textarea{min-height:7.5rem;resize:vertical}
input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:0;border-color:var(--accent)}
.checks{display:flex;flex-direction:column;gap:.5rem}
@media(min-width:640px){.checks-2{display:grid;grid-template-columns:1fr 1fr;gap:.5rem 1.25rem}}
.check{display:flex;align-items:flex-start;gap:.55rem;font-size:.92rem;line-height:1.45}
.check input{margin-top:.28rem;accent-color:var(--accent);width:1rem;height:1rem;flex:none}
.form-foot{display:flex;flex-direction:column;gap:.8rem}
.form-note{font-size:.86rem;color:var(--ink-3);max-width:56ch}

/* inline signup */
.signup{border:1px solid var(--rule);background:var(--paper);padding:1.6rem 1.5rem;display:flex;flex-direction:column;gap:.9rem;max-width:46rem}
.sec-tint .signup{background:var(--paper)}
.signup h2{font-size:1.25rem}
.signup p{color:var(--ink-2);font-size:.96rem;max-width:58ch}
.signup-row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:flex-start}
.signup-row .field{flex:1 1 16rem}
.signup-row .btn{flex:none;padding-block:.65rem}

/* ---------- cta band ---------- */
.cta-band{background:var(--surface);border-block:1px solid var(--rule);padding-block:clamp(2.5rem,5vw,3.75rem)}
.cta-in{display:flex;flex-direction:column;gap:1.1rem;max-width:var(--prose)}
.cta-in h2{font-size:clamp(1.4rem,3vw,1.85rem)}
.cta-in p{color:var(--ink-2)}
.cta-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:.4rem}

/* ---------- footer ---------- */
.site-foot{border-top:1px solid var(--rule);padding-block:2.5rem 3rem;background:var(--paper)}
.foot-grid{display:grid;grid-template-columns:1fr;gap:1.75rem}
@media(min-width:620px){.foot-grid{grid-template-columns:1fr 1fr}}
@media(min-width:900px){.foot-grid{grid-template-columns:repeat(4,1fr)}
  .foot-brand{grid-column:1/-1;margin-bottom:.5rem;max-width:52ch}}
@media(min-width:1120px){.foot-grid{grid-template-columns:1.5fr repeat(4,1fr)}
  .foot-brand{grid-column:auto;margin-bottom:0}}
.foot-col{display:flex;flex-direction:column;gap:.55rem}
.foot-col h2{font-family:var(--mono);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3);font-weight:400}
.foot-col a{color:var(--ink-2);text-decoration:none;font-size:.94rem}
.foot-col a:hover{color:var(--accent)}
.foot-col p{font-size:.92rem;color:var(--ink-2);max-width:36ch}
.foot-bar{margin-top:2.25rem;padding-top:1.25rem;border-top:1px solid var(--rule);display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;
  font-size:.85rem;color:var(--ink-3)}

/* ---------- wide-screen section composition ----------
   Sections that lead with a .sec-head become two columns on large screens:
   the label and heading sit in a left rail, the content runs beside it.
   Browsers without :has() keep the single-column stack, which is fine. */
@media (min-width:1080px){
  .sec .wrap:has(> .sec-head){
    display:grid;
    grid-template-columns:19rem minmax(0,1fr);
    column-gap:3.5rem;
    align-items:start;
  }
  .sec .wrap:has(> .sec-head) > .sec-head{grid-column:1;margin-bottom:0;position:sticky;top:5.25rem}
  .sec .wrap:has(> .sec-head) > *:not(.sec-head){grid-column:2}
  .sec .wrap:has(> .sec-head) > *:not(.sec-head) + *:not(.sec-head){margin-top:1.75rem}
  .sec .wrap:has(> .sec-head) > .sec-head h2{font-size:clamp(1.35rem,2.2vw,1.7rem)}
  .sec .wrap:has(> .sec-head) > .sec-head p{font-size:.93rem}
}

/* CTA band: keep the block flush left in the container rather than centring a
   narrow column inside a wide one. */
.cta-in{max-width:var(--wrap)}
.cta-in > *{max-width:var(--prose)}

/* Signup: the submit button sits on the same baseline as the inputs, not the labels. */
.signup-row{align-items:flex-end}
.signup-row .btn{margin-bottom:1px}

/* Inline links that end in an arrow shouldn't orphan it onto its own line. */
.body-copy a{text-wrap:pretty}

/* Sections whose content is a card grid stay full width — three cards squeezed
   into a narrowed column read as cramped strips of two-word lines. */
@media (min-width:1080px){
  .sec .wrap:has(> .sec-head):has(> .grid){display:block}
  .sec .wrap:has(> .sec-head):has(> .grid) > .sec-head{
    position:static;margin-bottom:clamp(1.5rem,3vw,2.25rem)}
  .sec .wrap:has(> .sec-head):has(> .grid) > .sec-head h2{font-size:clamp(1.5rem,3.4vw,2.05rem)}
  .sec .wrap:has(> .sec-head):has(> .grid) > .sec-head p{font-size:1rem}
}

/* Specificity fix: `.nav a` (class + type) outranks `.btn` (class), which was
   painting the header button's label in muted body grey on the teal ground.
   Keep the button's own colours ahead of the nav link rules. */
.nav a.btn{color:var(--on-accent);box-shadow:none}
.nav a.btn:hover{color:var(--on-accent)}
.nav a.btn[aria-current="page"]{color:var(--on-accent);box-shadow:none}

/* The eyebrow keeps its muted tone even inside a .sec-head, whose `p` rule
   would otherwise win on specificity. */
.sec-head .lbl{color:var(--ink-3)}
.sec-head .lbl.lbl-acc{color:var(--accent)}


/* ---------- masthead ----------------------------------------------------
   A dark band carrying a wordmark large enough to register, above a clinical
   white page. Dark where it earns attention; light where people have to read. */
.site-head{background:var(--head-bg);border-bottom:1px solid var(--head-rule)}
.head-in{min-height:76px;gap:1.25rem}

.brand{
  display:flex;align-items:center;gap:.6rem;
  font-size:clamp(1.3rem,2vw,1.62rem);font-weight:700;letter-spacing:-.032em;
  color:var(--head-ink);line-height:1;
}
.brand .mark{width:1.6em;height:1.6em;flex:none;fill:var(--head-accent)}
.brand em{font-style:normal;color:var(--head-accent)}
.brand:hover{color:var(--head-ink)}

.nav a{color:var(--head-ink-2);font-size:.95rem}
.nav a:hover{color:var(--head-ink)}
.nav a[aria-current="page"]{color:var(--head-ink);box-shadow:inset 0 -2px 0 var(--head-accent)}

/* The single header action is white on the dark band — the most noticeable
   thing on the page, and the highest contrast pairing available. */
.nav a.btn{
  background:var(--head-cta-bg);border-color:var(--head-cta-bg);
  color:var(--head-cta-ink);box-shadow:none;padding:.66rem 1.15rem}
.nav a.btn:hover{
  background:var(--head-accent);border-color:var(--head-accent);color:#06201e}
.nav a.btn[aria-current="page"]{
  background:var(--head-accent);border-color:var(--head-accent);color:#06201e;box-shadow:none}

.nav-toggle{border-color:var(--head-rule);color:var(--head-ink-2)}
.nav-toggle:hover{color:var(--head-ink);border-color:var(--head-ink-2)}

@media (max-width:860px){
  .head-in{min-height:66px}
  .nav{background:var(--head-bg);border-bottom-color:var(--head-rule)}
  .nav a{border-bottom-color:var(--head-rule)}
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp{position:absolute!important;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

/* ---------- content layer: model pages, guides, /browse ---------- */
.hero-doc{padding-block:clamp(2rem,5vw,3.25rem)}
.crumbs{margin-bottom:1.15rem}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem;
  font-family:var(--mono);font-size:.72rem;letter-spacing:.04em;color:var(--ink-3)}
.crumbs li+li::before{content:"/";margin-right:.4rem;color:var(--rule-2)}
.crumbs a{color:var(--ink-3);text-decoration:none}
.crumbs a:hover{color:var(--accent)}
.crumbs [aria-current]{color:var(--ink-2)}

.doc h2{font-size:clamp(1.3rem,2.6vw,1.62rem);margin-top:2rem}
.doc h3{font-size:1.08rem;margin-top:1.35rem}
.doc>p:first-child{font-size:1.06rem;color:var(--ink)}
.doc table{border-collapse:collapse;width:100%;font-size:.93rem;margin:.4rem 0;
  border:1px solid var(--rule);background:var(--surface)}
.doc thead th{font-family:var(--mono);font-size:.68rem;letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink-3);font-weight:500;background:var(--surface-2);text-align:left;
  padding:.6rem .8rem;border-bottom:1px solid var(--rule);white-space:nowrap}
.doc td{padding:.62rem .8rem;border-bottom:1px solid var(--rule);vertical-align:top;line-height:1.5}
.doc tbody tr:last-child td{border-bottom:0}
.doc td:first-child{font-weight:600;width:34%}
.doc .tw,.doc table{display:block;overflow-x:auto}
@media(min-width:640px){.doc table{display:table;overflow:visible}}

.rel-h{font-family:var(--disp);font-size:1.1rem;margin-bottom:.9rem}
.rel-list{list-style:none;padding:0;display:grid;gap:.5rem;grid-template-columns:1fr;max-width:var(--prose)}
@media(min-width:700px){.rel-list{grid-template-columns:1fr 1fr}}
.rel-list a{display:block;border:1px solid var(--rule);padding:.7rem .85rem;text-decoration:none;
  color:var(--ink);font-size:.94rem;font-weight:500;background:var(--paper)}
.rel-list a:hover{border-color:var(--accent);color:var(--accent)}

.browse-list{list-style:none;padding:0;margin:0;border:1px solid var(--rule);display:flex;flex-direction:column}
.browse-list li{border-bottom:1px solid var(--rule);display:flex;flex-wrap:wrap;align-items:baseline;
  gap:.4rem 1rem;padding:.85rem 1rem;background:var(--paper)}
.browse-list li:last-child{border-bottom:0}
.browse-list a{font-weight:500;text-decoration:none;color:var(--ink);font-size:.98rem}
.browse-list a:hover{color:var(--accent)}
.browse-list span{margin-left:auto;font-family:var(--mono);font-size:.7rem;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ink-3)}

/* ---------- handoff additions: data tables, eligibility, language, WhatsApp ---------- */
.tablewrap{overflow-x:auto;margin:var(--s3) 0;border:1px solid var(--rule);background:var(--paper)}
.dtable{border-collapse:collapse;width:100%;min-width:34rem;font-size:.94rem}
.dtable thead th{font-family:var(--mono);font-size:.68rem;font-weight:500;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ink-2);text-align:left;padding:.7rem .9rem;
  background:var(--surface);border-bottom:1px solid var(--rule-2);vertical-align:bottom}
.dtable tbody td,.dtable tbody th{padding:.7rem .9rem;border-bottom:1px solid var(--rule);
  vertical-align:top;line-height:1.5;text-align:left}
.dtable tbody th{font-weight:500;color:var(--ink-2);white-space:nowrap}
.dtable tbody tr:last-child td,.dtable tbody tr:last-child th{border-bottom:none}
.dtable td:nth-child(2){font-variant-numeric:tabular-nums}

/* Country import-eligibility badge */
.elig{display:inline-flex;align-items:center;gap:.35em;white-space:nowrap;font-family:var(--mono);
  font-size:.66rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;
  padding:.2rem .5rem;border-radius:2px;border:1px solid var(--rule-2)}
.elig-open{color:var(--accent-hi);border-color:var(--accent);background:var(--accent-soft)}
.elig-cond{color:#7a5a0a;border-color:#c9a44a;background:#f7f0dd}
.elig-shut{color:#8f3018;border-color:#c47a63;background:#f7e7e2}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .elig-cond{color:#e0b95e;border-color:#6b5a24;background:#2a2413}
  :root:not([data-theme="light"]) .elig-shut{color:#e59379;border-color:#6d3a2c;background:#2c1a15}
}
:root[data-theme="dark"] .elig-cond{color:#e0b95e;border-color:#6b5a24;background:#2a2413}
:root[data-theme="dark"] .elig-shut{color:#e59379;border-color:#6d3a2c;background:#2c1a15}

/* Language switcher (used once /es and /pt-br exist) */
.lang{display:flex;gap:.15rem;align-items:center}
.lang a{font-family:var(--mono);font-size:.7rem;letter-spacing:.08em;padding:.25rem .45rem;
  color:var(--head-ink-2);text-decoration:none;border-radius:2px}
.lang a:hover{color:var(--head-ink)}
.lang a[aria-current="true"]{color:var(--head-accent);font-weight:500}

/* WhatsApp button */
.btn-wa{background:#25D366;border-color:#25D366;color:#08301a}
.btn-wa:hover{background:#1fb457;border-color:#1fb457;color:#08301a}
.nav a.btn-wa{background:#25D366;border-color:#25D366;color:#08301a}


/* ---------------------------------------------------------------------------
   Cross-linking components. Added when the content library was connected to
   the rest of the site — before this, /browse was the only page that linked
   to a model page and nothing linked to /browse.
   ------------------------------------------------------------------------ */

/* the "All <category>" / "Buying guide" line under each block on /buy */
.fam-more{margin-top:.9rem;font-size:.9rem;line-height:1.7}
.fam-more a{color:var(--accent);text-decoration:none;font-weight:500}
.fam-more a:hover{text-decoration:underline}
.fam-more span{color:var(--ink-3);margin:0 .15rem}

/* category block headings on /buy are now links */
.fam-item h3 a{color:inherit;text-decoration:none}
.fam-item h3 a:hover{color:var(--accent)}

/* related / sibling blocks on model, guide and category pages */
.rel-note{color:var(--ink-2);max-width:62ch;margin:-.35rem 0 1.4rem;font-size:.97rem}
.rel-sub{font-size:1.02rem;margin:1.75rem 0 .6rem;display:flex;flex-wrap:wrap;
  align-items:baseline;gap:.75rem}
.rel-sub:first-of-type{margin-top:.5rem}
.fam-guide{font-family:var(--mono);font-size:.72rem;letter-spacing:.08em;
  text-transform:uppercase;color:var(--accent);text-decoration:none;font-weight:400}
.fam-guide:hover{text-decoration:underline}
.rel-up{margin-top:1.25rem;font-size:.95rem}
.rel-up a{color:var(--accent);text-decoration:none;font-weight:500}
.rel-up a:hover{text-decoration:underline}

/* grouped model index on /browse */
.browse-cat{margin-top:2.5rem;padding-top:1.75rem;border-top:1px solid var(--rule)}
.browse-cat:first-of-type{margin-top:1rem}
.browse-cat-h{font-size:1.22rem;margin:0}
.browse-cat-h a{color:inherit;text-decoration:none}
.browse-cat-h a:hover{color:var(--accent)}

/* machine-readable contact block */
.contact-email a{font-weight:500}
.contact-details dd a{font-weight:500}
