/* ==========================================================================
   Motagon, site stylesheet (v7)
   Palette, type and product-line colours per Motagon Cannabis Book of
   Standards, June 2023 (Red Sun). Do not change token values without a
   new brand book.
   ========================================================================== */

:root {
  --primary-blue: #3A5C74;   /* Pantone 2377 C */
  --primary-rose: #B86B79;   /* Pantone 695 C  */
  --silver:     #8A8D8F;     /* Pantone 877 C  */
  --pale-blue:  #DDE5ED;     /* Pantone 656 C  */
  --pale-rose:  #F2D4D7;     /* Pantone 698 C  */
  --light-grey: #DBDBDB;     /* Cool Gray 1 C  */
  --near-black: #101820;     /* Black 6 C      */
  --navy:       #041E42;     /* Pantone 282 C  */
  --white:      #FFFFFF;
  --muted:      #5A6167;     /* AA on white; for small print only */

  /* Mota product lines — the colour IS the identifier. Never recolour. */
  --line-rose:   var(--primary-rose);  /* ROSE: THC > CBD, CBD <= 5% */
  --line-silver: var(--silver);        /* SILVER: THC > 5% and CBD > 5% */

  --measure: 68ch;
  --wrap: 1200px;
  --r: 6px;
}

*, *::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;
  font-family: Montserrat, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.65;
  color: var(--near-black); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.95rem, 1.3rem + 2.7vw, 3.15rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.4vw, 2.15rem); }
h3 { font-size: clamp(1.12rem, 1.04rem + .38vw, 1.32rem); }
p  { margin: 0 0 1.1em; }
a  { color: var(--primary-blue); text-underline-offset: 3px; }
a:hover { color: var(--primary-rose); }
:focus-visible { outline: 3px solid var(--primary-rose); outline-offset: 2px; border-radius: 3px; }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.lead { font-size: clamp(1.04rem, 1rem + .34vw, 1.28rem); max-width: var(--measure); }
.kicker { font-size: .77rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary-rose); margin: 0 0 .9rem; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--navy);
  color: var(--white); padding: .8rem 1.2rem; }
.skip:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .8rem 1.6rem; border-radius: var(--r); font-weight: 600;
  font-size: .95rem; text-decoration: none; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--primary-blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-ghost { border-color: var(--primary-blue); color: var(--primary-blue); }
.btn-ghost:hover { background: var(--primary-blue); color: var(--white); }
.btn-light { border-color: var(--white); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--navy); }
.btn-rose { background: var(--primary-rose); color: var(--white); }
.btn-rose:hover { background: #9E5866; color: var(--white); }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Header + dropdown nav ---------- */
.site-head { position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid var(--light-grey); }
.utility { background: var(--navy); font-size: .82rem; }
.util-inner { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: flex-end; padding: .5rem 0; }
.utility a { white-space: nowrap; }
.utility a { color: var(--pale-blue); text-decoration: none; }
.utility a:hover { color: var(--white); text-decoration: underline; }

.head-inner { display: flex; align-items: center; gap: 1.5rem; padding: .6rem 0; }
.brand img { display: block; height: 64px; width: auto; }
.brand { margin-right: auto; display: inline-flex; }
.site-head nav > ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.has-sub, .single { position: relative; }
.has-sub > a, .single > a { text-decoration: none; color: var(--near-black); font-weight: 500; font-size: .92rem;
  padding: .5rem 0; border-bottom: 2px solid transparent; display: inline-block; }
.has-sub > a:hover, .has-sub:hover > a, .single > a:hover { color: var(--primary-blue); border-bottom-color: var(--primary-rose); }
.has-sub > a[aria-current="page"], .single > a[aria-current="page"] { color: var(--primary-blue); border-bottom-color: var(--primary-blue); }
.sub-toggle { display: none; }
.sub { position: absolute; top: 100%; left: -1rem; min-width: 15rem; background: var(--white);
  border: 1px solid var(--light-grey); border-radius: var(--r); box-shadow: 0 10px 28px rgba(16,24,32,.10);
  list-style: none; margin: 0; padding: .5rem 0; opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .12s, transform .12s, visibility .12s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.site-head nav > ul > .has-sub:nth-last-child(-n+2) .sub { left: auto; right: -1rem; }
.sub a { display: block; padding: .5rem 1.1rem; font-size: .89rem; text-decoration: none; color: var(--near-black); }
.sub a:hover { background: var(--pale-blue); color: var(--primary-blue); }
.menu-btn { display: none; }

@media (max-width: 1000px) {
  .head-inner { flex-wrap: wrap; gap: .8rem; padding: .8rem 0; }
  .menu-btn { display: block; margin-left: auto; background: var(--primary-blue); color: var(--white);
    border: 0; border-radius: var(--r); padding: .6rem 1.1rem; font: inherit; font-size: .9rem; font-weight: 600; }
  .site-head nav { display: none; width: 100%; }
  .nav-open .site-head nav { display: block; padding-bottom: .6rem; }
  .site-head nav > ul { flex-direction: column; gap: 0; }
  .has-sub, .single { border-top: 1px solid var(--light-grey); display: flex; flex-wrap: wrap; align-items: center; }
  .has-sub > a, .single > a { flex: 1; padding: .85rem 0; border-bottom: 0; }
  .sub-toggle { display: block; width: 2.75rem; height: 2.75rem; background: transparent;
    border: 0; cursor: pointer; position: relative; }
  .sub-toggle::after { content: ""; position: absolute; inset: 0; margin: auto; width: .6rem; height: .6rem;
    border-right: 2px solid var(--primary-blue); border-bottom: 2px solid var(--primary-blue);
    transform: rotate(45deg) translate(-2px,-2px); }
  .sub-open .sub-toggle::after { transform: rotate(225deg) translate(-2px,-2px); }
  .sub { position: static; width: 100%; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; display: none; background: var(--pale-blue); border-radius: 0; }
  .sub-open .sub { display: block; }
  .sub a { padding: .7rem 1rem; }
}

/* ---------- Audience bar ---------- */
.aud-bar { font-size: .84rem; padding: .7rem 0; border-bottom: 1px solid var(--light-grey); }
.aud-hcp { background: var(--pale-blue); color: var(--navy); }
.aud-pat { background: var(--pale-rose); color: #6E2F3C; }
.aud-bar a { color: inherit; }

/* ---------- Hero / page head ---------- */
.hero { background: var(--pale-blue); padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; gap: clamp(1.8rem, 4vw, 3.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 54ch; }

.pagehead { background: var(--navy); color: var(--white); padding: clamp(2.2rem, 5vw, 4rem) 0; }
.pagehead h1 { color: var(--white); max-width: 24ch; }
.pagehead .lead { color: var(--pale-blue); }
.pagehead .kicker { color: var(--pale-rose); }

/* ---------- Sections ---------- */
section { padding: clamp(2.6rem, 5.5vw, 4.6rem) 0; }
.section-tint { background: var(--pale-blue); }
.section-soft { background: #F7F9FB; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .kicker { color: var(--pale-rose); }
.section-dark p, .section-dark li { color: var(--pale-blue); }
.section-dark a:not(.btn) { color: var(--white); }
.split { display: grid; gap: clamp(1.8rem, 4vw, 3.4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- Photography placeholders ---------- */
.ph { margin: 0; }
.ph svg { display: block; width: 100%; aspect-ratio: var(--ratio, 16 / 9); border-radius: var(--r); }
.ph figcaption { font-size: .72rem; color: var(--muted); margin-top: .5rem; letter-spacing: .01em; }
.ph figcaption strong { color: var(--primary-rose); text-transform: uppercase; letter-spacing: .1em;
  font-size: .66rem; margin-right: .4rem; }
.section-dark .ph figcaption { color: var(--pale-blue); }

/* ---------- Licence bar ---------- */
.licences { background: var(--pale-blue); padding: 2.4rem 0; }
.lic-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.lic-grid li { display: flex; flex-direction: column; border-left: 3px solid var(--primary-blue); padding-left: 1rem; }
.lic-grid strong { font-size: 1.03rem; }
.lic-grid span { font-size: .84rem; color: var(--muted); }
.lic-note { margin: 1.5rem 0 0; font-size: .86rem; color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  list-style: none; padding: 0; margin: 2rem 0 0; }
.card { background: var(--white); border: 1px solid var(--light-grey); border-radius: var(--r);
  padding: 1.6rem; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .94rem; color: #3C4247; }
.card .more { font-weight: 600; font-size: .89rem; text-decoration: none; margin-top: auto; }
.card .more::after { content: " \2192"; }
.card .ph { margin: -1.6rem -1.6rem 1.2rem; }
.card .ph svg { border-radius: var(--r) var(--r) 0 0; }
.card .ph figcaption { padding: 0 1.6rem; }

.pcard { border-top: 4px solid var(--light-grey); }
.pcard.rose   { border-top-color: var(--line-rose); }
.pcard.silver { border-top-color: var(--line-silver); }
.pcard.brand  { border-top-color: var(--primary-blue); }
.pcard .line { font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .3rem; }
.pcard.rose   .line { color: var(--line-rose); }
.pcard.silver .line { color: var(--line-silver); }
.pcard.brand  .line { color: var(--primary-blue); }
.pcard dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 1rem 0; font-size: .87rem; }
.pcard dt { color: var(--muted); }
.pcard dd { margin: 0; font-weight: 600; }

/* Numbered capability cards */
.numcard { position: relative; padding-top: 2.6rem; }
.numcard .n { position: absolute; top: 1.3rem; left: 1.6rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; color: var(--primary-rose); }

.tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; padding: .22rem .55rem; border-radius: 3px; white-space: nowrap; }
.tag-non-irr { background: var(--pale-blue); color: var(--navy); }
.tag-irr { background: var(--light-grey); color: #3C4247; }
.tag-avail { background: #E3F0E6; color: #24572F; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 2rem 0 0; }
.stat .num { display: block; font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.8rem); font-weight: 700;
  color: var(--primary-rose); line-height: 1.1; }
.section-dark .stat .num { color: var(--pale-rose); }
.stat .lbl { font-size: .9rem; }
.source { font-size: .79rem; color: var(--muted); margin-top: 1.4rem; }
.section-dark .source { color: var(--pale-blue); opacity: .85; }

/* ---------- Product table: no horizontal scrollbar ---------- */
.ptable { width: 100%; border-collapse: collapse; margin-top: 1.8rem; font-size: .9rem; }
.ptable caption { text-align: left; font-weight: 600; padding-bottom: .9rem; font-size: 1rem; }
.ptable thead th { background: var(--navy); color: var(--white); text-align: left;
  font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; padding: .85rem 1rem; font-weight: 600; }
.ptable thead th:first-child { border-radius: var(--r) 0 0 0; }
.ptable thead th:last-child  { border-radius: 0 var(--r) 0 0; }
.ptable tbody td, .ptable tbody th { padding: 1rem; border-bottom: 1px solid var(--light-grey);
  text-align: left; vertical-align: top; }
.ptable tbody tr:nth-child(even) { background: #F7F9FB; }
.ptable .pname { font-weight: 700; font-size: .98rem; text-decoration: none; display: block; }
.ptable .pline { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ptable .pline.rose { color: var(--line-rose); }
.ptable .pline.silver { color: var(--line-silver); }
.ptable .pline.brand { color: var(--primary-blue); }
.ptable .big { font-weight: 700; font-size: 1rem; white-space: nowrap; }
.ptable .sub { font-size: .78rem; color: var(--muted); display: block; position: static;
  opacity: 1; visibility: visible; border: 0; box-shadow: none; padding: 0; min-width: 0; }
.ptable .coa { font-weight: 600; text-decoration: none; white-space: nowrap; }
.ptable .coa::before { content: "\2193 "; }

@media (max-width: 860px) {
  .ptable, .ptable tbody, .ptable tr, .ptable td, .ptable th { display: block; }
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptable tbody tr { border: 1px solid var(--light-grey); border-radius: var(--r);
    margin-bottom: 1rem; padding: .4rem .2rem; background: var(--white); }
  .ptable tbody tr:nth-child(even) { background: var(--white); }
  .ptable tbody td, .ptable tbody th { border-bottom: 0; padding: .45rem 1rem;
    display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: baseline; }
  .ptable tbody td::before { content: attr(data-label); font-size: .7rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}

/* ---------- Router panels ---------- */
.router { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 2rem; }
.router > div { padding: 1.9rem; border-radius: var(--r); display: flex; flex-direction: column; }
.router > div:nth-child(1) { background: var(--primary-blue); color: var(--white); }
.router > div:nth-child(2) { background: var(--pale-blue); }
.router > div:nth-child(3) { background: var(--primary-rose); color: var(--white); }
.router h3 { margin-bottom: .55rem; }
.router > div:nth-child(1) h3, .router > div:nth-child(3) h3 { color: var(--white); }
.router p { font-size: .94rem; flex-grow: 1; }
.router > div:nth-child(1) p, .router > div:nth-child(3) p { color: rgba(255,255,255,.93); }

/* ---------- Prose ---------- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.callout { background: var(--pale-blue); border-left: 4px solid var(--primary-blue);
  padding: 1.3rem 1.5rem; border-radius: 0 var(--r) var(--r) 0; margin: 1.9rem 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { background: var(--pale-rose); border-left-color: var(--primary-rose); }
.callout-stop { background: #FBE9EB; border-left-color: #A6323F; }
.refs { font-size: .85rem; }
.reviewed { font-size: .84rem; color: var(--muted); border-top: 1px solid var(--light-grey);
  padding-top: 1rem; margin-top: 2.2rem; }

/* ---------- Pathway steps ---------- */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: s; }
.steps > li { position: relative; padding: 0 0 1.8rem 3.4rem; counter-increment: s; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem;
  border-radius: 50%; background: var(--primary-blue); color: var(--white); display: grid; place-items: center;
  font-weight: 700; font-size: .92rem; }
.steps > li::after { content: ""; position: absolute; left: 1.13rem; top: 2.5rem; bottom: .3rem;
  width: 2px; background: var(--light-grey); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: .4rem; }
.steps p, .steps ul { font-size: .95rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.pill { font-size: .82rem; padding: .35rem .8rem; border-radius: 100px; background: var(--pale-blue);
  color: var(--navy); font-weight: 600; }
.pill-stop { background: #FBE9EB; color: #8E2B36; }
.pill-warn { background: #FDF0E3; color: #7A4A16; }

/* ---------- Forms ---------- */
form { max-width: 34rem; }
.field { margin-bottom: 1.25rem; }
label { display: block; font-weight: 600; font-size: .91rem; margin-bottom: .4rem; }
input, select, textarea { width: 100%; padding: .72rem .9rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--silver); border-radius: var(--r); background: var(--white); color: var(--near-black); }
input:focus, select:focus, textarea:focus { border-color: var(--primary-blue); }
.hint { font-size: .81rem; color: var(--muted); margin: .35rem 0 0; }

/* ---------- Gate ---------- */
.gate { min-height: 60vh; display: grid; place-items: center; background: var(--pale-blue);
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem; }
.gate-box { background: var(--white); border-radius: var(--r); padding: clamp(1.8rem, 4vw, 3rem);
  max-width: 44rem; box-shadow: 0 10px 34px rgba(16,24,32,.08); }
.gate-box h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.gate-choices { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.8rem; }
@media (min-width: 640px) { .gate-choices { grid-template-columns: 1fr 1fr; } }
.gate-choices a { display: block; padding: 1.3rem 1.4rem; border-radius: var(--r); text-decoration: none;
  border: 2px solid var(--primary-blue); }
.gate-choices a strong { display: block; font-size: 1.02rem; margin-bottom: .25rem; }
.gate-choices a span { font-size: .87rem; color: var(--muted); }
.gate-choices a:first-child { background: var(--primary-blue); color: var(--white); }
.gate-choices a:first-child span { color: rgba(255,255,255,.85); }
.gate-choices a:last-child:hover { background: var(--pale-blue); }

/* ---------- Footer ---------- */
.site-foot { background: var(--navy); color: var(--pale-blue); padding: 3.2rem 0 2rem; font-size: .89rem; }
.foot-grid { display: grid; gap: 2rem 1.6rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding-bottom: 2.4rem; }
.site-foot h2 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: .85rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .45rem; }
.site-foot a { color: var(--pale-blue); text-decoration: none; }
.site-foot a:hover { color: var(--white); text-decoration: underline; }
.foot-legal { display: grid; gap: 1.4rem; grid-template-columns: 1fr;
  border-top: 1px solid rgba(221,229,237,.22); padding-top: 1.7rem; font-size: .83rem; }
@media (min-width: 800px) { .foot-legal { grid-template-columns: 1fr 1fr; } }
.foot-meta p { margin: 0 0 .5rem; }
.disclaimer { color: rgba(221,229,237,.75); font-size: .77rem; max-width: 54ch; }

/* ==========================================================================
   v3 additions: pathway flow, login, pharmacy finder, article cards
   ========================================================================== */

/* ---------- Pathway flow (modelled on the printed eligibility guide) ---------- */
.flow { margin: 2rem 0 0; }
.flow-step { border: 1px solid var(--light-grey); border-radius: var(--r); overflow: hidden;
  background: var(--white); }
.flow-hd { display: flex; align-items: stretch; background: var(--navy); color: var(--white); }
.flow-n { background: var(--primary-rose); color: var(--white); font-weight: 700; font-size: 1.05rem;
  min-width: 3rem; display: grid; place-items: center; }
.flow-t { padding: .8rem 1.2rem; font-size: .84rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; align-self: center; }
.flow-body { padding: 1.5rem; }
.flow-body > :last-child { margin-bottom: 0; }
.flow-arrow { display: grid; place-items: center; height: 2.2rem; }
.flow-arrow::after { content: ""; width: 0; height: 0; border-left: 9px solid transparent;
  border-right: 9px solid transparent; border-top: 11px solid var(--silver); }

.fgrid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .fgrid { grid-template-columns: 1fr 1fr; } }
.fgrid-3 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .fgrid-3 { grid-template-columns: repeat(3, 1fr); } }

.fbox { border: 1px solid var(--light-grey); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.fbox h4 { margin: 0 0 .5rem; font-size: .95rem; }
.fbox p, .fbox ul { font-size: .9rem; margin-bottom: .5rem; }
.fbox ul { padding-left: 1.1rem; }
.fbox > :last-child { margin-bottom: 0; }
.fbox-stop { border-color: #E2A9B0; background: #FBEEF0; }
.fbox-warn { border-color: #E3C088; background: #FDF6EA; }
.fbox-go   { border-color: #A9C6B2; background: #F0F7F2; }
.fbox-blue { border-color: var(--primary-blue); background: var(--pale-blue); }
.fbox-rose { border-color: var(--primary-rose); background: var(--pale-rose); }

.badge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 3px; margin-bottom: .7rem; }
.badge-stop { background: #A6323F; color: #fff; }
.badge-warn { background: #B5751A; color: #fff; }
.badge-go   { background: #2F6B41; color: #fff; }
.badge-blue { background: var(--primary-blue); color: #fff; }
.badge-rose { background: var(--primary-rose); color: #fff; }

.yn { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1rem 0 0; }
@media (min-width: 700px) { .yn { grid-template-columns: 1fr 1fr; } }
.yn > div { border: 1px solid var(--light-grey); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.yn .lbl { font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: .5rem; }
.yn .yes .lbl { color: var(--primary-blue); }
.yn .no .lbl  { color: var(--primary-rose); }
.yn p, .yn ul { font-size: .9rem; margin-bottom: .5rem; }
.yn ul { padding-left: 1.1rem; }
.yn > div > :last-child { margin-bottom: 0; }

.dose { display: grid; gap: .8rem; grid-template-columns: 1fr; margin: 1rem 0; }
@media (min-width: 700px) { .dose { grid-template-columns: repeat(3, 1fr); } }
.dose > div { background: var(--pale-blue); border-radius: var(--r); padding: 1rem 1.1rem; }
.dose .k { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-blue); display: block; margin-bottom: .3rem; }
.dose .v { font-size: 1.25rem; font-weight: 700; display: block; line-height: 1.25; }
.dose .n { font-size: .82rem; color: var(--muted); }

.daynight { display: grid; gap: .8rem; grid-template-columns: 1fr; margin: 1rem 0 0; }
@media (min-width: 620px) { .daynight { grid-template-columns: 1fr 1fr; } }
.daynight > div { border-radius: var(--r); padding: 1rem 1.1rem; }
.daynight .day   { background: var(--pale-blue); }
.daynight .night { background: var(--navy); color: var(--pale-blue); }
.daynight .night strong { color: var(--white); }
.daynight .tl { font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  display: block; margin-bottom: .4rem; }
.daynight .day .tl { color: var(--primary-blue); }
.daynight .night .tl { color: var(--pale-rose); }

/* ---------- Login ---------- */
.login-grid { display: grid; gap: clamp(1.8rem, 4vw, 3.2rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .login-grid { grid-template-columns: 1fr 1fr; } }
.login-card { background: var(--white); border: 1px solid var(--light-grey); border-radius: var(--r);
  padding: clamp(1.6rem, 3vw, 2.4rem); }
.checkline { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.checkline input { width: auto; margin-top: .25rem; flex: none; }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0; color: var(--muted);
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--light-grey); }

/* ---------- Pharmacy finder ---------- */
.finder { background: var(--pale-blue); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2rem); }
.finder form { max-width: none; }
.finder-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .finder-row { grid-template-columns: 2fr 1fr auto; align-items: end; } }
.pharm-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.pharm-list li { border: 1px solid var(--light-grey); border-radius: var(--r); padding: 1.2rem 1.3rem;
  display: grid; gap: .3rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pharm-list li { grid-template-columns: 1.4fr 1fr auto; align-items: center; } }
.pharm-list h3 { margin: 0; font-size: 1.02rem; }
.pharm-list .addr { font-size: .87rem; color: var(--muted); }
.pharm-list .tel { font-size: .9rem; font-weight: 600; }

/* ---------- Article cards ---------- */
.artcard .meta { font-size: .74rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--primary-rose); margin-bottom: .35rem; }
.artcard .who { font-size: .78rem; color: var(--muted); margin-top: .6rem; }
.audience-pills { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .7rem; }
.audience-pills span { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 3px; background: var(--pale-blue); color: var(--navy); }

/* ---------- Doc list ---------- */
.doclist { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .9rem; }
.doclist li { border: 1px solid var(--light-grey); border-radius: var(--r); padding: 1.1rem 1.3rem;
  display: grid; gap: .3rem 1.4rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 760px) { .doclist li { grid-template-columns: 1fr auto auto; } }
.doclist h3 { margin: 0; font-size: 1rem; }
.doclist p { margin: 0; font-size: .87rem; color: var(--muted); }
.doclist .fmt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; }
.locked { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-blue); }

/* ---------- Service stack (GMP services page) ---------- */
.svclist { list-style: none; margin: .9rem 0 0; padding: .9rem 0 0; border-top: 1px solid var(--light-grey); }
.svclist li { position: relative; padding-left: 1.15rem; margin: 0 0 .4rem; font-size: .88rem;
  color: #3C4247; }
.svclist li:last-child { margin-bottom: 0; }
.svclist li::before { content: ""; position: absolute; left: 0; top: .52em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--primary-rose); }
.numcard .svclist li::before { background: var(--primary-blue); }
.cards.svc { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 900px) { .cards.svc { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   v5 additions: HCP confirmation modal, account wall, article references
   ========================================================================== */

/* ---------- HCP confirmation modal (replaces the /hcp/ interstitial page) ---------- */
.hcp-modal { border: 0; padding: 0; max-width: min(44rem, calc(100% - 2rem)); width: 100%;
  border-radius: var(--r); box-shadow: 0 24px 60px rgba(4,30,66,.35); background: var(--white);
  color: var(--near-black); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow: auto; }
.hcp-modal::backdrop { background: rgba(4,30,66,.62); backdrop-filter: blur(2px); }
.hcp-modal .gate-box { box-shadow: none; max-width: none; }
.hcp-modal h2 { font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.9rem); margin-bottom: .8rem; }
.hcp-modal .gate-choices button { display: block; width: 100%; text-align: left; padding: 1.3rem 1.4rem;
  border-radius: var(--r); border: 2px solid var(--primary-blue); background: var(--white);
  font: inherit; cursor: pointer; color: var(--near-black); }
.hcp-modal .gate-choices button strong { display: block; font-size: 1.02rem; margin-bottom: .25rem; }
.hcp-modal .gate-choices button span { font-size: .87rem; color: var(--muted); }
.hcp-modal .gate-choices button.yes { background: var(--primary-blue); color: var(--white); }
.hcp-modal .gate-choices button.yes span { color: rgba(255,255,255,.85); }
.hcp-modal .gate-choices button.yes:hover { background: var(--navy); }
.hcp-modal .gate-choices button.no:hover { background: var(--pale-blue); }
.hcp-modal .hint { margin-top: 1.4rem; }
.hcp-noscript { background: var(--pale-blue); border-bottom: 1px solid var(--light-grey); padding: 1rem 0; font-size: .9rem; }
.hcp-noscript .wrap a { margin-right: 1rem; font-weight: 600; }

/* ---------- Account wall (Knowledge Centre sections) ---------- */
.acct-wall { background: var(--pale-blue); border-left: 4px solid var(--primary-blue);
  border-radius: 0 var(--r) var(--r) 0; padding: clamp(1.4rem, 3vw, 2.2rem); max-width: 44rem; }
.acct-wall h2 { margin-top: 0; }
.acct-wall p:last-child { margin-bottom: 0; }
.acct-wall .cta-row { margin-top: 1.2rem; }
.acct-state { font-size: .82rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.acct-state .lbl { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; color: var(--primary-blue); }
[hidden] { display: none !important; }

/* ---------- Article references ---------- */
ol.refs { padding-left: 1.4rem; }
.refs li { margin-bottom: .55rem; font-size: .85rem; color: #3C4247; }
.refs li a { word-break: break-word; }
sup.ref a { text-decoration: none; font-weight: 600; font-size: .72em; padding: 0 .1em; }
.evidence-box { border: 1px solid var(--light-grey); border-radius: var(--r); padding: 1.1rem 1.3rem; margin: 1.4rem 0; }
.evidence-box .lvl { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .22rem .55rem; border-radius: 3px; margin-bottom: .5rem; }
.lvl-high { background: #E3F0E6; color: #24572F; }
.lvl-mod  { background: var(--pale-blue); color: var(--navy); }
.lvl-low  { background: #FDF0E3; color: #7A4A16; }
.lvl-none { background: #FBE9EB; color: #8E2B36; }
.evidence-box p { margin-bottom: .4rem; font-size: .93rem; }
.evidence-box p:last-child { margin-bottom: 0; }

/* ==========================================================================
   v6 additions: equal-height card grids, product-line page heads, partner
   logos, pharmacy pages, newsletter and opt-in blocks
   ========================================================================== */

/* ---------- Card alignment (Milan, v5 review) ----------
   Every card in a row shares the same height (grid stretch) and the parts inside a
   card sit at fixed positions: image, heading, title line, description, then the
   detail list and link pushed to the bottom. Fixed column counts stop a lone
   fourth card from wrapping onto its own row at common laptop widths. */
.cards > .card > p:not(.line):not(.sub) { flex-grow: 0; }
.cards.team, .cards.prod { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (min-width: 700px)  { .cards.team, .cards.prod { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards.team, .cards.prod { grid-template-columns: repeat(4, 1fr); } }
.cards.team .card h3 { min-height: 2.4em; margin-bottom: .3rem; }
.cards.team .card .role { min-height: 2.6em; }
.cards.team .card .ph svg { aspect-ratio: 1 / 1; }
.cards.prod .pcard > p:not(.line) { flex-grow: 1; margin-bottom: .4rem; }
.cards.prod .pcard dl { margin-top: auto; }
.role { color: var(--primary-rose); font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }

/* Product-line colour on SKU page heads: the line colour is the identifier (Štefan, v5 review) */
.pagehead.line-rose .kicker   { color: var(--pale-rose); }
.pagehead.line-silver .kicker { color: #C9CBCD; }
.pagehead.line-brand .kicker  { color: var(--pale-blue); }

/* ---------- Partner logos ---------- */
.partners { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  list-style: none; padding: 0; margin: 2rem 0 0; }
.partner { background: var(--white); border: 1px solid var(--light-grey); border-radius: var(--r);
  padding: 1.6rem; display: flex; flex-direction: column; }
.partner .logo { display: grid; place-items: center; height: 96px; background: #F7F9FB; border-radius: var(--r);
  margin: -.2rem 0 1.2rem; }
.partner .logo img { max-height: 56px; width: auto; max-width: 80%; }
.partner h3 { margin-bottom: .3rem; }
.partner .role { margin: 0 0 .6rem; }
.partner p { font-size: .94rem; color: #3C4247; }
.partner .more { font-weight: 600; font-size: .89rem; text-decoration: none; margin-top: auto; }
.partner .more::after { content: " \2192"; }

/* ---------- Footer brand row and newsletter ---------- */
.foot-brand { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start;
  padding-bottom: 2.4rem; margin-bottom: 2.4rem; border-bottom: 1px solid rgba(221,229,237,.22); }
@media (min-width: 800px) { .foot-brand { grid-template-columns: auto 1fr; gap: 3rem; } }
.foot-brand img { height: 75px; width: auto; }
.newsletter { max-width: 40rem; }
.newsletter h2 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: .6rem; }
.newsletter p { margin-bottom: .9rem; font-size: .89rem; }
.nl-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.nl-row input { flex: 1 1 14rem; border-color: transparent; }
.nl-consent { margin-top: .7rem; font-size: .8rem; color: var(--pale-blue); }
.nl-consent a { color: var(--white); }

/* ---------- Opt-in and sign-up blocks ---------- */
.optin { background: var(--pale-blue); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2rem); }
.optin form { max-width: none; }
.optin h2, .optin h3 { margin-top: 0; }
.optin .checkline { margin-top: .6rem; }
.optin .checkline span { font-size: .88rem; }
.section-dark .optin { background: rgba(255,255,255,.06); }
.section-dark .optin .checkline span, .section-dark .optin label { color: var(--pale-blue); }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
legend { font-weight: 600; font-size: .91rem; margin-bottom: .5rem; padding: 0; }
.checkline + .checkline { margin-top: .5rem; }

/* ---------- Sample prescription (products page) ---------- */
.rx { background: var(--white); border: 1px solid var(--light-grey); border-radius: var(--r); padding: 1.4rem 1.6rem;
  font-size: .92rem; max-width: 38rem; }
.rx .rx-hd { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--light-grey);
  padding-bottom: .7rem; margin-bottom: .9rem; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-blue); }
.rx dl { display: grid; grid-template-columns: 11rem 1fr; gap: .45rem 1rem; margin: 0; }
.rx dt { color: var(--muted); }
.rx dd { margin: 0; font-weight: 600; }
.rx code { font-family: Consolas, "Courier New", monospace; font-size: .9em; background: var(--pale-blue); padding: .1em .4em; border-radius: 3px; }
@media (max-width: 560px) { .rx dl { grid-template-columns: 1fr; gap: .1rem 0; } .rx dt { margin-top: .5rem; } }

/* ---------- Timing badge ---------- */
.tag-soon { background: #FDF0E3; color: #7A4A16; }

/* ==========================================================================
   v7 additions
   ========================================================================== */
.strain { font-size: 1.02rem; font-weight: 700; color: var(--primary-blue); margin: 0 0 .7rem; }
.pcard.rose .strain { color: var(--primary-rose); }
.pcard.silver .strain { color: #5F6366; }
.strain-hd { display: inline-block; margin: 0 0 1rem; padding: .35rem .8rem; border-radius: 100px; background: rgba(255,255,255,.12); color: var(--white); font-weight: 600; font-size: .92rem; }
.router .ph { margin: -1.9rem -1.9rem 1.2rem; }
.router .ph svg { border-radius: var(--r) var(--r) 0 0; aspect-ratio: 16 / 9; }
.router .ph figcaption { padding: 0 1.9rem; }
.router > div:nth-child(1) .ph figcaption, .router > div:nth-child(3) .ph figcaption, .router > div:nth-child(4) .ph figcaption { color: rgba(255,255,255,.8); }
.router > div:nth-child(1) .ph figcaption strong, .router > div:nth-child(3) .ph figcaption strong, .router > div:nth-child(4) .ph figcaption strong { color: var(--pale-rose); }
