/* DrinkVise: responsible drinking & BAC information for Australia
   Palette from the DrinkVise logo: royal blue and gold */
:root {
  --plum: #062a73;      /* deep navy (logo D shadow) */
  --plum-2: #0a3a9e;    /* royal blue (logo D) */
  --plum-3: #1f56c4;
  --berry: #1450c8;     /* bright royal accent */
  --berry-2: #0d3fa6;   /* link blue */
  --coral: #f2b824;     /* logo gold */
  --gold-2: #c8900e;    /* deep gold */
  --mint: #ffd25a;      /* light gold for dark backgrounds */
  --mint-2: #1e8a52;    /* success green */
  --sun: #ffc857;
  --lilac: #eef3fd;
  --lilac-2: #dce6fa;
  --cream: #fdfcf8;
  --ink: #0f1a33;
  --muted: #55607a;
  --line: #e3e8f2;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(6, 42, 115, .08);
  --shadow-lg: 0 18px 44px rgba(6, 42, 115, .16);
  --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--cream); line-height: 1.7; font-size: 17px;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--berry-2); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
h1, h2, h3, h4 { color: var(--plum); line-height: 1.22; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); letter-spacing: -.015em; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 10px; }
.ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--plum); color: #cfdcf5; font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.a11y-tools button, .nav-a11y button {
  background: transparent; border: 1px solid #3d62b0; color: #fff; border-radius: 999px;
  padding: 2px 10px; margin-left: 4px; cursor: pointer; font-size: .78rem; font-family: inherit; transition: background .2s, border-color .2s;
}
.a11y-tools button:hover { background: var(--plum-3); border-color: var(--mint); }

/* ---------- Header ---------- */
.site-header { background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(6,42,115,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; }
.logo-mark { width: auto; height: 46px; display: block; transition: transform .5s var(--ease); }
.logo:hover .logo-mark { transform: scale(1.06) rotate(-3deg); }
.wordmark { font-family: "Cinzel", Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.wordmark b { color: var(--plum-2); font-weight: 800; }
.wordmark i { font-style: normal; color: var(--coral); background: linear-gradient(180deg, #f8d466 0%, #e4a516 55%, #b9820c 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .4s var(--ease); }
.footer-logo:hover { transform: translateY(-3px); }
.footer-logo img { display: block; width: 190px; height: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav > ul > li { position: relative; }
.nav a, .nav .drop-btn {
  display: flex; align-items: center; gap: 6px; padding: 10px 13px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  border-radius: 10px; background: none; border: 0; cursor: pointer; font-family: inherit; position: relative;
}
.nav > ul > li > a:not(.cta)::after, .nav .drop-btn::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--berry), var(--coral)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > ul > li > a:hover::after, .nav > ul > li > a.active::after, .nav .drop-btn:hover::after { transform: scaleX(1); }
.nav a:hover, .nav .drop-btn:hover, .nav a.active { color: var(--berry-2); }
.chev { transition: transform .3s var(--ease); }
.has-drop:hover .chev, .has-drop.open .chev { transform: rotate(180deg); }
.nav .cta { background: linear-gradient(135deg, #f6cc4e, #e2a312); color: var(--plum); margin-left: 6px; padding: 10px 18px; overflow: hidden; }
.nav .cta:hover { background: linear-gradient(135deg, #ffd96a, #f0b21e); color: var(--plum); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.has-drop:hover > .dropdown, .has-drop:focus-within > .dropdown, .has-drop.open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { font-weight: 500; transition: background .2s, padding-left .25s var(--ease), color .2s; }
.dropdown a:hover, .dropdown a.active { background: var(--lilac); padding-left: 18px; }
.nav-a11y { display: none; }
.nav-backdrop { display: none; }

.menu-toggle { display: none; width: 46px; height: 46px; background: var(--lilac); border: 0; border-radius: 12px; cursor: pointer; position: relative; flex-shrink: 0; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: var(--plum); transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden; color: #e6eefc;
  background: linear-gradient(125deg, var(--plum) 0%, var(--plum-2) 45%, #0d3fa6 80%, var(--berry) 100%);
  background-size: 180% 180%; animation: gradientShift 16s ease-in-out infinite;
}
@keyframes gradientShift { 0%, 100% { background-position: 0% 40%; } 50% { background-position: 100% 60%; } }
.hero { padding: 76px 0 84px; }
.page-hero { padding: 50px 0 56px; }
.hero h1, .page-hero h1 { color: #fff; }
.hero .container, .page-hero .container { position: relative; z-index: 2; }
.hero-blobs i { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1; }
.hero-blobs i:nth-child(1) { width: 380px; height: 380px; background: var(--mint); top: -120px; right: -80px; animation: floatA 14s ease-in-out infinite; opacity: .26; }
.hero-blobs i:nth-child(2) { width: 320px; height: 320px; background: var(--coral); bottom: -140px; left: -60px; animation: floatB 18s ease-in-out infinite; opacity: .3; }
@keyframes floatA { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.12); } }
@keyframes floatB { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(70px, -30px) scale(1.1); } }
.hero .lead { font-size: 1.16rem; max-width: 620px; color: #dde7fa; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 28px; }
.badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 14px; font-size: .86rem; color: #fff; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,210,90,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,210,90,0); } 100% { box-shadow: 0 0 0 0 rgba(255,210,90,0); } }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(6px); }
.hero-card h2 { color: #fff; font-size: 1.2rem; }
.hero-card ul { margin: 0; padding: 0; list-style: none; }
.hero-card li { display: flex; gap: 12px; margin-bottom: 14px; color: #e6eefc; }
.hero-card li:last-child { margin-bottom: 0; }
.hero-card li .ico { color: var(--mint); margin-top: 3px; }
.hero-card strong { color: #fff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.breadcrumb { font-size: .86rem; margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; color: #c3d3f3; }
.breadcrumb a { color: var(--mint); text-decoration: none; }
.page-hero p { max-width: 740px; font-size: 1.08rem; margin: 0; color: #dde7fa; }

/* Entry and scroll animations */
.anim-in { animation: fadeUp .8s var(--ease) both; }
.anim-in.d1 { animation-delay: .12s; }
.anim-in.d2 { animation-delay: .24s; }
.anim-in.d3 { animation-delay: .36s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; min-height: 48px; border-radius: 12px; font-weight: 700;
  text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit; line-height: 1.2;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-anim::before {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn-anim:hover::before { left: 125%; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.55); animation: ripple .6s linear; pointer-events: none; z-index: -1; }
.btn-light .ripple { background: rgba(10,58,158,.2); }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.btn-coral { background: linear-gradient(135deg, #f8d466, #e2a312); color: var(--plum); box-shadow: 0 8px 22px rgba(242,184,36,.35); }
.btn-coral:hover { background: linear-gradient(135deg, #ffde7a, #f0b21e); color: var(--plum); box-shadow: 0 12px 30px rgba(242,184,36,.45); }
.btn-plum { background: var(--plum); color: #fff; box-shadow: 0 8px 22px rgba(6,42,115,.25); }
.btn-plum:hover { background: var(--berry); color: #fff; box-shadow: 0 12px 30px rgba(20,80,200,.35); }
.btn-light { background: var(--lilac); color: var(--plum); }
.btn-light:hover { background: var(--lilac-2); color: var(--plum); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-sm { padding: 8px 14px; min-height: 42px; font-size: .88rem; border-radius: 10px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 740px; margin-bottom: 34px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 800; color: var(--gold-2); margin-bottom: 10px; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--mint); }
.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card h3 { margin-bottom: .4em; }
a.card { text-decoration: none; color: inherit; display: block; position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--lilac-2); }
.card .icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--lilac), #fff3d1); color: var(--plum-2); transition: transform .45s var(--ease), background .35s, color .35s;
}
a.card:hover .icon, .card:hover .icon { transform: rotate(-8deg) scale(1.1); background: linear-gradient(135deg, var(--plum-2), var(--berry)); color: var(--mint); }
.card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--berry-2); font-size: .94rem; }
.card .more .ico { transition: transform .3s var(--ease); }
a.card:hover .more .ico { transform: translateX(5px); }

/* ---------- Promo (home) ---------- */
.promo { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 44px; box-shadow: var(--shadow); }
.promo ul { padding: 0; list-style: none; margin: 0 0 24px; }
.promo li { display: flex; gap: 10px; margin-bottom: 10px; }
.promo li .ico { color: var(--mint-2); margin-top: 4px; }
.mock { background: var(--plum); border-radius: 22px; padding: 28px; color: #dde7fa; position: relative; overflow: hidden; }
.mock::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--berry); filter: blur(70px); opacity: .45; right: -60px; top: -60px; }
.mock > * { position: relative; z-index: 1; }
.mock .big { font-size: 3.2rem; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; margin: 8px 0 14px; font-variant-numeric: tabular-nums; }
.mock .meter .needle { animation: sweep 5s var(--ease) infinite; }
@keyframes sweep { 0%, 100% { left: 8%; } 50% { left: 62%; } }
.mock-rows { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 18px; font-size: .92rem; }
.mock-rows b { color: #fff; }

/* ---------- Calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
.calc-wrap > * { min-width: 0; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.calc h2 { font-size: 1.5rem; }
.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; font-weight: 700; margin-bottom: 7px; color: var(--plum); font-size: .95rem; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.row > .unit { flex: 0 0 auto; align-self: center; color: var(--muted); font-weight: 600; }
input[type=number], select, input[type=text], input[type=email], textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1.5px solid #cfd8ea; border-radius: 12px; font-size: 16px; font-family: inherit;
  background-color: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23062a73' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; text-overflow: ellipsis;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 4px rgba(20,80,200,.14); }
.seg { display: flex; border: 1.5px solid #cfd8ea; border-radius: 12px; overflow: hidden; position: relative; min-height: 48px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { flex: 1; display: grid; place-items: center; padding: 10px 16px; cursor: pointer; font-weight: 700; font-size: .95rem; transition: background .3s var(--ease), color .3s; }
.seg input:checked + label { background: var(--plum); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--coral); outline-offset: -3px; }
.drink-head, .drink-row { display: grid; grid-template-columns: 1.1fr 1.5fr .8fr .7fr 48px; gap: 8px; align-items: center; }
.drink-head { font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.drink-row { margin-bottom: 8px; animation: rowIn .45s var(--ease) both; }
.drink-row.out { animation: rowOut .3s ease forwards; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes rowOut { to { opacity: 0; transform: translateX(20px); } }
.drink-row .rm { background: #fff3d6; color: var(--gold-2); border: 0; border-radius: 12px; height: 48px; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, transform .3s var(--ease); }
.drink-row .rm:hover { background: #c0392b; color: #fff; }
.d-f { display: block; min-width: 0; }
.d-cap { display: none; font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.drink-row .rm:hover svg { transform: rotate(90deg); }
.drink-row .rm svg { transition: transform .3s var(--ease); }
.calc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.result { background: var(--plum); color: #dde7fa; border-radius: var(--radius); padding: 28px; position: sticky; top: 92px; overflow: hidden; }
.result::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--berry); filter: blur(80px); opacity: .35; top: -100px; right: -90px; }
.result > * { position: relative; }
.result h2 { color: #fff; margin-bottom: 4px; font-size: 1.2rem; }
.bac-number { font-size: 3.5rem; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.bac-label { display: inline-block; padding: 5px 13px; border-radius: 999px; font-weight: 700; font-size: .86rem; background: rgba(255,255,255,.12); color: #fff; transition: background .4s; }
.bac-label.pop { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.meter { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--mint) 0%, var(--sun) 32%, var(--coral) 62%, #b3123f 100%); position: relative; margin: 22px 0 8px; }
.meter .needle { position: absolute; top: -6px; width: 6px; height: 24px; background: #fff; border-radius: 3px; transition: left .8s var(--ease); box-shadow: 0 0 0 3px var(--plum), 0 4px 12px rgba(0,0,0,.4); }
.meter-scale { display: flex; justify-content: space-between; font-size: .74rem; color: #a9bde6; }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; margin: 20px 0 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; }
.result dt { color: #b9cbef; }
.result dd { margin: 0; font-weight: 700; color: #fff; text-align: right; }
.result .effect { margin-top: 16px; background: rgba(255,255,255,.07); border-radius: 12px; padding: 13px 15px; font-size: .95rem; }
.result .effect strong { color: #fff; }
.result .note { font-size: .8rem; color: #a9bde6; margin: 14px 0 0; }
.result .note strong { color: #fff; }
.lvl-ok { background: var(--mint-2) !important; }
.lvl-warn { background: #b86e0a !important; }
.lvl-bad { background: #c0392b !important; }

/* Floating BAC pill (mobile) */
.bac-pill {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translate(-50%, 160%); z-index: 70;
  background: var(--plum); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; font-family: inherit; font-size: .95rem;
  box-shadow: 0 10px 30px rgba(6,42,115,.4); display: none; align-items: center; gap: 10px; transition: transform .4s var(--ease); cursor: pointer; white-space: nowrap;
}
.bac-pill b { color: var(--mint); font-size: 1.1rem; }
.bac-pill.show { transform: translate(-50%, 0); }

/* ---------- AEO / E-E-A-T blocks ---------- */
.answer-box { background: linear-gradient(135deg, var(--lilac), #fff8e6); border: 1px solid var(--lilac-2); border-radius: 16px; padding: 20px 22px; margin: 0 0 24px; }
.answer-box .lbl { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 6px; }
.answer-box p { margin: 0; font-size: 1.04rem; color: var(--ink); }
.takeaways { border-left: 4px solid var(--mint-2); background: #effbf7; border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 0 0 26px; }
.takeaways strong.t { color: var(--plum); display: block; margin-bottom: 6px; }
.takeaways ul { margin: 0; }
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.byline .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--plum), var(--plum-2)); display: grid; place-items: center; color: var(--mint); flex-shrink: 0; }
.byline .who { font-size: .9rem; line-height: 1.5; }
.byline .who b { color: var(--plum); }
.byline .who span { color: var(--muted); display: block; font-size: .84rem; }
.def { font-weight: 600; }

/* ---------- Notices & tables ---------- */
.notice { border-left: 5px solid var(--sun); background: #fff8e8; padding: 16px 18px; border-radius: 12px; margin: 22px 0; }
.notice.red { border-color: #c0392b; background: #fdf0ee; }
.notice.teal { border-color: var(--mint-2); background: #effbf7; }
.notice strong { color: var(--plum); }
.table-wrap { overflow-x: auto; margin: 18px 0 24px; border-radius: 14px; border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; padding: 12px 14px 0; font-weight: 700; color: var(--plum); font-size: .9rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--lilac); color: var(--plum); font-weight: 700; }
tr td { transition: background .2s; }
tr:hover td { background: #f7faff; }
tr:last-child td { border-bottom: 0; }

/* ---------- Article ---------- */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 40px; align-items: start; padding-top: 50px; padding-bottom: 50px; }
.article-wrap > * { min-width: 0; }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 42px; }
.article h2 { margin-top: 1.7em; font-size: 1.55rem; scroll-margin-top: 90px; }
.article h3 { margin-top: 1.3em; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1.1em; }
.article li { margin-bottom: 7px; }
.article li::marker { color: var(--gold-2); }
.meta { font-size: .84rem; color: var(--muted); display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 2px; }
.sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.sidebar .card h3 { font-size: 1.05rem; }
.side-cta { background: var(--plum) !important; border: 0 !important; }
.side-cta h3 { color: #fff; }
.side-cta p { color: #cfdcf5 !important; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 10px 0; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); transition: color .2s, padding-left .3s var(--ease); }
.side-links a .ico { color: var(--berry); }
.side-links a:hover { color: var(--berry-2); padding-left: 6px; }
.toc { background: var(--lilac); border-radius: 14px; padding: 16px 20px; margin: 0 0 24px; }
.toc strong { display: block; margin-bottom: 6px; color: var(--plum); }
.toc ol { margin: 0; }
.sources { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; }
.sources a { word-break: break-word; }
.related { margin-top: 26px; }
.related .grid-2 { gap: 14px; }
.related a.card { padding: 18px; }

.ad-slot { margin: 28px auto; text-align: center; }
.ad-slot:empty { display: none; }

/* ---------- FAQ ---------- */
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; transition: box-shadow .3s, border-color .3s; }
details[open] { box-shadow: var(--shadow); border-color: var(--lilac-2); }
summary { cursor: pointer; font-weight: 700; color: var(--plum); padding: 16px 36px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231450c8' stroke-width='3.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .35s var(--ease);
}
details[open] summary::after { transform: rotate(135deg); }
.faq-body { animation: fadeUp .4s var(--ease); }
details p { color: var(--muted); }

/* ---------- Support ---------- */
.support-strip { background: linear-gradient(180deg, var(--lilac), var(--cream)); border-top: 1px solid var(--lilac-2); }
.helpline { background: #fff; border-radius: 16px; padding: 20px; border: 1px solid var(--lilac-2); display: block; text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s; }
.helpline:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.hl-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--lilac); color: var(--berry); display: grid; place-items: center; margin-bottom: 10px; }
.helpline .num { display: block; font-size: 1.22rem; font-weight: 800; color: var(--plum); text-decoration: none; margin-top: 2px; }
.helpline small { color: var(--muted); display: block; font-size: .84rem; line-height: 1.45; }
.hl-more { background: var(--plum); border-color: var(--plum); }
.hl-more small { color: #cfdcf5; }
.hl-more .num { color: #fff; font-size: 1.05rem; }
.hl-more .hl-ico { background: var(--coral); color: var(--plum); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-msg { display: none; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #041c4f; color: #b8c7e6; padding: 58px 0 26px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #dde7fa; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--mint); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid #1a3f86; margin-top: 38px; padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem; }
.age-note { background: #0a2f80; border-radius: 12px; padding: 13px 15px; margin-top: 14px; font-size: .86rem; }

/* Back to top */
.to-top {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; z-index: 65;
  background: var(--plum-2); color: var(--mint); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(20,80,200,.4);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .3s var(--ease), visibility .3s, background .2s;
}
.to-top .ico { transform: rotate(-90deg); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--plum); }

/* Cookie */
.cookie {
  position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; right: 16px; max-width: 780px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 16px 50px rgba(6,42,115,.25); border-radius: 18px; padding: 18px 20px; display: none; z-index: 90; gap: 14px; align-items: center;
}
.cookie.show { display: flex; animation: slideUp .6s var(--ease) both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.cookie p { margin: 0; font-size: .9rem; color: var(--muted); flex: 1; }
.cookie .btns { display: flex; gap: 8px; flex-shrink: 0; }

/* Accessibility modes */
body.hc { background: #fff; color: #000; }
body.hc .card, body.hc .article { border-color: #000; }
body.hc a { color: #2a00a0; text-decoration: underline; }
body.large { font-size: 19.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a, .nav .drop-btn { padding: 10px 9px; font-size: .9rem; }
}
@media (max-width: 980px) {
  .hero-grid, .calc-wrap, .promo, .article-wrap { grid-template-columns: minmax(0, 1fr); }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .result, .sidebar { position: static; }
  .menu-toggle { display: block; z-index: 85; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: #fff; z-index: 80; overflow-y: auto;
    padding: 84px 18px calc(24px + env(safe-area-inset-bottom)); box-shadow: -20px 0 60px rgba(6,42,115,.25);
    clip-path: inset(0 0 0 100%); opacity: .6; visibility: hidden;
    transition: clip-path .45s var(--ease), opacity .45s var(--ease), visibility .45s;
  }
  .nav.open { clip-path: inset(0 0 0 0); opacity: 1; visibility: visible; }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(4,28,79,.45); z-index: 75; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a, .nav .drop-btn { padding: 13px 12px; font-size: 1rem; min-height: 48px; width: 100%; justify-content: space-between; }
  .nav > ul > li > a:not(.cta)::after, .nav .drop-btn::after { display: none; }
  .nav a.active { background: var(--lilac); }
  .nav .cta { margin: 10px 0 0; justify-content: center; }
  .dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 0 10px; min-width: 0; max-height: 0; overflow: hidden; opacity: 1; visibility: visible; transform: none; transition: max-height .4s var(--ease); }
  .has-drop:hover > .dropdown, .has-drop:focus-within > .dropdown { max-height: 0; }
  .has-drop.open > .dropdown, .has-drop.open:hover > .dropdown { max-height: 640px; }
  .has-drop:hover .chev { transform: none; }
  .has-drop.open .chev { transform: rotate(180deg); }
  .nav ul .nav-a11y { display: flex; gap: 8px; margin-top: 16px; }
  .nav-a11y button { flex: 1; color: var(--plum); border-color: var(--lilac-2); padding: 10px; font-size: .88rem; margin: 0; min-height: 44px; }
  .a11y-tools { display: none; }
  body.menu-open { overflow: hidden; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  body.menu-open .site-header { z-index: 90; }
  .bac-pill { display: inline-flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.68; }
  .container { padding: 0 16px; }
  section { padding: 50px 0; }
  .hero { padding: 44px 0 52px; }
  .page-hero { padding: 34px 0 40px; }
  .hero .lead { font-size: 1.05rem; }
  .hide-sm { display: none; }
  .topbar { font-size: .78rem; }
  .topbar .container { justify-content: center; text-align: center; }
  .site-header .container { min-height: 64px; }
  .logo-mark { height: 38px; }
  .wordmark { font-size: 1.2rem; }
  .grid-4, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .grid-4.two-sm { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-card { padding: 22px; }
  .promo { padding: 22px; border-radius: 20px; gap: 26px; }
  .promo .btn { width: 100%; }
  .mock .big { font-size: 2.6rem; }
  .article { padding: 24px 18px; border-radius: 16px; }
  .article h2 { font-size: 1.35rem; }
  .article-wrap { padding-top: 24px; padding-bottom: 30px; gap: 24px; }
  .calc { padding: 20px 16px; }
  .result { padding: 22px 18px; }
  .bac-number { font-size: 2.9rem; }
  .row { flex-direction: column; gap: 0; }
  .row.keep { flex-direction: row; gap: 8px; }
  .drink-head { display: none; }
  .drink-row { grid-template-columns: 1fr 1fr; background: var(--cream); padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
  .drink-row .d-type { grid-column: 1 / -1; }
  .drink-row .d-size { grid-column: 1 / -1; }
  .drink-row .rm { grid-column: 1 / -1; height: 42px; }
  .d-cap { display: block; }
  .calc-actions .btn { padding: 13px 14px; white-space: nowrap; }
  .calc-actions .btn { flex: 1; }
  #add-drink { width: 100%; }
  .card { padding: 22px; }
  .cookie { flex-direction: column; align-items: stretch; left: 10px; right: 10px; padding: 16px; }
  .cookie .btns .btn { flex: 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .to-top { right: 14px; width: 44px; height: 44px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  th, td { padding: 10px 11px; font-size: .9rem; }
  details { padding: 0 16px; }
  .answer-box, .takeaways { padding: 16px; }
  .presets .btn { flex: 1 1 calc(50% - 8px); }
  .byline { align-items: flex-start; }
}

/* Preset buttons (standard drinks tool) */
.presets { display: flex; flex-wrap: wrap; gap: 8px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Keep decorative glows inside their boxes (prevents mobile horizontal overflow) */
.hero, .page-hero, .result, .mock { contain: paint; }
.result::before { right: -40px; top: -80px; }
