/* Shared stylesheet. Brand colours, fonts and radius come from the site's theme (inline :root vars).
   Brand-specific components are keyed on html[data-vertical]. */
:root {
  --bg: #f6f6fb; --surface: #fff; --ink: #1d1b33; --muted: #5b5873; --line: #e3e2ee;
  --accent: #c8104f; --accent-ink: #fff; --accent-soft: #fde6ef; --link: #c8104f; --accent2: #0f7b4a;
  --board: #1d1b33; --board-ink: #fff; --radius: 12px;
  --head: system-ui, sans-serif; --body: system-ui, sans-serif;
  --ad: #fff6d8; --ad-line: #ecd994; --good: #0f7b4a; --warn: #9a3412;
  --maxw: 1140px; --prose: 68ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 .45em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); margin-top: 1.6em; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.prose { max-width: var(--prose); }
.prose h2 { margin-top: 1.8em; }
.prose li { margin: .3em 0; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 750; font-size: 1.32rem; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; padding: 8px 12px; border-radius: calc(var(--radius) / 2); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--accent-soft); }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: calc(var(--radius) / 2); font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: flex; }
.menu-panel { display: none; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 22px 16px; }
.menu-panel a { padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .nav { display: none; } .menu { display: block; } }

.ad-note { background: var(--ad); border-bottom: 1px solid var(--ad-line); font-size: .88rem; padding: 7px 0; }
.ad-note b { font-weight: 700; margin-right: .35em; }
.ad-note.sponsored { background: #ffe8c6; }

main { padding-bottom: 72px; }
.crumbs { font-size: .88rem; color: var(--muted); margin: 18px 0 8px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: calc(var(--radius) - 4px); padding: 11px 20px; font: 650 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(.94); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-sm { padding: 7px 13px; font-size: .9rem; }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 4px; }
input[type=text], input[type=number], input[type=search], select { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: calc(var(--radius) - 4px); background: var(--surface); color: var(--ink); }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
.search { display: flex; gap: 8px; max-width: 560px; }
.search input { flex: 1; }

/* ---------- Generic blocks ---------- */
.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 14px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.checked { font-size: .86rem; color: var(--muted); }
.warn { color: var(--warn); font-weight: 600; }
.linklist { list-style: none; padding: 0; margin: 0; columns: 2 220px; column-gap: 28px; }
.linklist li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); }
.linklist a { text-decoration: none; font-weight: 550; }
.linklist span { color: var(--muted); font-size: .9rem; margin-left: 6px; }

/* ---------- Product cards ---------- */
.products { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.product h3 { font-size: 1rem; line-height: 1.3; margin: 6px 0 0; font-family: var(--body); font-weight: 650; letter-spacing: 0; }
.product h3 a { color: var(--ink); text-decoration: none; }
.product h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable to the product page */
.product .btn { position: relative; z-index: 1; margin-top: auto; }
.product .meta { color: var(--muted); font-size: .88rem; }
.thumb { aspect-ratio: 4 / 3; background: var(--accent-soft); border-radius: calc(var(--radius) - 4px); overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: .88rem; text-align: center; padding: 10px; position: relative; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.thumb img[src] { background: transparent; }
.price-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.price { font-weight: 750; font-size: 1.3rem; letter-spacing: -.01em; }
.was { color: var(--muted); text-decoration: line-through; font-size: .92rem; }
.drop { color: var(--accent2); font-weight: 700; font-size: .9rem; }

@media (max-width: 560px) {
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product { padding: 10px; }
  .product .btn { white-space: normal; text-align: center; font-size: .84rem; padding: 8px 10px; }
  .price { font-size: 1.1rem; }
  .drop { font-size: .8rem; }
}

/* Cart of Joy price tag: the brand's signature element */
.tag-price { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 750; padding: 4px 12px 4px 18px; font-variant-numeric: tabular-nums;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); border-radius: 0 6px 6px 0; }
.tag-price::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); opacity: .85; }

/* ---------- Guides list ---------- */
.guide-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.guide-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.guide-list a { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; line-height: 1.3; }
.guide-list a:hover { color: var(--link); }
.guide-list p { grid-column: 1; margin: 0; color: var(--muted); font-size: .95rem; }
.guide-list time { grid-row: 1; grid-column: 2; color: var(--muted); font-size: .86rem; white-space: nowrap; }

/* ---------- Store rows ---------- */
.stores { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.store { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--ink); }
.store:hover { border-color: var(--ink); }
.store .mono { width: 44px; height: 44px; border-radius: calc(var(--radius) - 4px); background: var(--accent-soft); display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 1.1rem; }
.store strong { display: block; }
.store span { color: var(--muted); font-size: .88rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data th { font-size: .86rem; color: var(--muted); font-weight: 600; background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
table.data td.r, table.data th.r { text-align: right; }
table.data .best { font-weight: 750; }

/* ---------- Article ---------- */
.article-head { max-width: var(--prose); margin-top: 8px; }
.byline { color: var(--muted); font-size: .93rem; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 22px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; max-width: var(--prose); }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.cta-box { background: var(--accent-soft); border-radius: var(--radius); padding: 18px 20px; margin: 26px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; max-width: var(--prose); }
.code-box { font-family: ui-monospace, Menlo, monospace; border: 2px dashed var(--accent); padding: 5px 12px; border-radius: 6px; background: var(--surface); }
.history { color: var(--link); }
.history svg { width: 100%; height: 110px; display: block; }

/* ---------- Shopping home ---------- */
.hero-shop { padding: 56px 0 28px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-shop h1 { max-width: 13ch; }
.drops { background: var(--board); color: var(--board-ink); border-radius: var(--radius); padding: 18px; }
.drops h2 { font-size: 1.05rem; margin: 0 0 12px; color: var(--board-ink); font-family: var(--body); font-weight: 650; letter-spacing: 0; }
.drops ol { list-style: none; margin: 0; padding: 0; }
.drops li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.14); }
.drops li:first-child { border-top: 0; }
.drops a { color: var(--board-ink); text-decoration: none; font-weight: 600; }
.drops a:hover { text-decoration: underline; }
.drops .m { font-size: .84rem; opacity: .72; }
.drops .tag-price { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.drops .empty { opacity: .8; font-size: .95rem; }
@media (max-width: 860px) { .hero-shop { grid-template-columns: 1fr; padding-top: 32px; } }
.cat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-row a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: none; color: var(--ink); font-weight: 600; }
.cat-row a:hover { border-color: var(--ink); }
.cat-row span { color: var(--muted); font-weight: 500; margin-left: 4px; }

/* ---------- Travel ---------- */
.hero-travel { padding: 52px 0 26px; }
.hero-travel h1 { max-width: 18ch; font-stretch: 88%; }
.route-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; max-width: 720px; margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
@media (max-width: 640px) { .route-form { grid-template-columns: 1fr; } }
.board { background: var(--board); color: #fff; border-radius: var(--radius); padding: 6px 0; overflow: hidden; }
.board-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(0, 2fr) minmax(90px, .8fr) minmax(110px, .9fr); gap: 14px; align-items: center; padding: 13px 18px; border-top: 1px solid rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.board-row:first-child { border-top: 0; }
a.board-row:hover { background: rgba(255,255,255,.05); }
.board-head { color: rgba(255,255,255,.62); font-size: .8rem; padding-top: 10px; padding-bottom: 6px; }
.codes { font-stretch: 75%; font-weight: 800; font-size: 1.45rem; color: var(--board-ink); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.codes i { font-style: normal; opacity: .55; margin: 0 .25em; font-weight: 500; }
.board-row .city { font-weight: 600; }
.board-row .city small { display: block; color: rgba(255,255,255,.62); font-weight: 400; font-size: .85rem; }
.board-row .fare { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--board-ink); }
.board-row .fare small { display: block; color: rgba(255,255,255,.62); font-weight: 400; font-size: .8rem; }
@media (max-width: 640px) { .board-row { grid-template-columns: auto 1fr auto; } .board-row .dur { display: none; } .board-head { display: none; } }
.route-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; background: var(--board); color: #fff; border-radius: var(--radius); padding: 20px 22px; margin: 8px 0 24px; }
.route-head .codes { font-size: 2.6rem; grid-row: span 2; }
.route-head h1 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin: 0; }
.route-head p { margin: 0; color: rgba(255,255,255,.75); }
.fee-note { border-left: 4px solid var(--accent2); background: var(--surface); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--prose); }

/* ---------- Bills ---------- */
.hero-bills { padding: 48px 0 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .hero-bills { grid-template-columns: 1fr; padding-top: 30px; } }
.meter { background: var(--board); color: #fff; border-radius: var(--radius); padding: 22px; }
.meter h2 { color: #fff; margin: 0 0 4px; font-size: 1.2rem; }
.meter label { color: rgba(255,255,255,.85); }
.meter input, .meter select { background: #fff; border-color: transparent; }
.readout { margin-top: 18px; background: var(--accent2); color: var(--board); border-radius: calc(var(--radius) - 4px); padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.readout strong { font-size: 2.2rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.meter .small { color: rgba(255,255,255,.75); margin-top: 10px; }
.tool-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tool-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent2); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); text-decoration: none; }
.tool-list a strong { display: block; font-family: var(--head); font-size: 1.12rem; margin-bottom: 4px; }
.tool-list a span { color: var(--muted); font-size: .95rem; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.result .big { font-size: 2.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); margin: 10px 0 6px; gap: 2px; }
.bar span { display: block; }
.key { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h2 { font-size: .95rem; margin: 0 0 8px; font-family: var(--body); letter-spacing: 0; }
.footer-grid a { display: block; color: var(--ink); text-decoration: none; padding: 3px 0; }
.footer-grid a:hover { color: var(--link); }
.fine { color: var(--muted); font-size: .82rem; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }

.consent { position: fixed; left: 14px; right: 14px; bottom: 14px; max-width: 700px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(20,20,40,.16); padding: 16px 18px; z-index: 50; font-size: .94rem; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }

/* ---------- A/B test button variants ---------- */
.btn.is-outline { background: transparent; color: var(--link); box-shadow: inset 0 0 0 2px currentColor; }
.btn.is-large { padding: 15px 26px; font-size: 1.08rem; }
.btn.is-full { display: flex; width: 100%; }
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 12px; align-items: center; justify-content: space-between;
    background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(20,20,40,.08); }
  .sticky-cta span { font-weight: 650; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.has-sticky { padding-bottom: 72px; }
}
.staging-bar { background: #7c2d12; color: #fff; text-align: center; font-size: .85rem; padding: 6px; font-weight: 600; }

/* Brand directory */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dir-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 12px; }
.dir-search input[type=search] { flex: 1 1 280px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--surface); }
.dir-search select { min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .92rem; }
.chip span { color: var(--muted); font-size: .82rem; }
.chip:hover, .chip.on { border-color: var(--ink); }
.chip.on { background: var(--accent-soft); font-weight: 600; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 14px; }
.az a, .az span { min-width: 32px; min-height: 32px; display: inline-grid; place-items: center; border-radius: 6px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.az a { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.az a:hover, .az a.on { border-color: var(--ink); background: var(--accent-soft); }
.az span { color: var(--muted); opacity: .45; }
.store .mono.logo { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.store .mono.logo img, .brand-head .mono.logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-head { display: flex; align-items: center; gap: 14px; }
.brand-head .mono.logo { width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.pager a, .pager span { min-width: 38px; min-height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.pager span[aria-current] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* Price verdict and spec table */
.verdict { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
.verdict.good { border-color: color-mix(in srgb, #1a7f37 45%, var(--line)); background: color-mix(in srgb, #1a7f37 7%, var(--surface)); }
.verdict.warn { border-color: color-mix(in srgb, #b45309 45%, var(--line)); background: color-mix(in srgb, #b45309 7%, var(--surface)); }
table.spec th { text-align: left; width: 38%; font-weight: 600; color: var(--muted); }
