:root {
  --ink: #2b1d16;
  --muted: #6d625b;
  --paper: #fbfbf9;
  --card: #ffffff;
  --rule: #ddd6d0;
  --band: #f1eeeb;
  --light: #c8955f;
  --lightmed: #a97648;
  --medium: #8a5a36;
  --meddark: #5f3c25;
  --dark: #3e2618;
  --accent: #58703f;
  --accent-ink: #ffffff;
  --warn: #a4442a;
  --good: #3f7a4a;
  --shadow: 0 1px 2px rgba(43, 29, 22, .06), 0 4px 14px rgba(43, 29, 22, .06);
  --b1: #d4a06a; --b2: #bf8a55; --b3: #a97648; --b4: #8a5a36; --b5: #734a2d; --b6: #5a3a24; --b7: #3e2618;
  --star: #8a6212; --ico: var(--medium); --roast-dark: var(--dark);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #efe6de; --muted: #b3a79d; --paper: #17120f; --card: #211a16; --rule: #3a302a; --band: #2a221d;
    --accent: #9fbf7f; --accent-ink: #17120f; --warn: #e08a6d; --good: #8fcf98;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    --b1: #e2b582; --b2: #d4a06a; --b3: #c38c58; --b4: #b07a4a; --b5: #9a6840; --b6: #845837; --b7: #6f4a2f;
    --star: #e3b458; --ico: var(--light); --roast-dark: #6b4630;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #efe6de; --muted: #b3a79d; --paper: #17120f; --card: #211a16; --rule: #3a302a; --band: #2a221d;
  --accent: #9fbf7f; --accent-ink: #17120f; --warn: #e08a6d; --good: #8fcf98;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  --b1: #e2b582; --b2: #d4a06a; --b3: #c38c58; --b4: #b07a4a; --b5: #9a6840; --b6: #845837; --b7: #6f4a2f;
  --star: #e3b458; --ico: var(--light); --roast-dark: #6b4630;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.55 "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3, h4, .brand { font-family: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 700; margin: 44px 0 10px; }
h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 6px; }
h4 { font-size: .95rem; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 12px; max-width: 72ch; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 70; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
#main:focus, h1[tabindex="-1"]:focus { outline: none; }
.lede { color: var(--muted); font-size: 1.05rem; margin-top: 10px; }
.small { font-size: .88rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.head-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { font-size: 1.2rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.brand-logo { width: 30px; height: 30px; flex: none; transition: transform .6s ease; }
.brand:hover .brand-logo { transform: rotate(51.43deg); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 7px 11px; border-radius: 6px; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; font-size: .95rem; }
.nav a:hover { color: var(--ink); background: var(--band); }
.nav a[aria-current="page"] { color: var(--paper); background: var(--ink); }
.head-tools { display: flex; gap: 6px; align-items: center; }
.icon-btn { border: 1px solid var(--rule); background: var(--card); color: var(--ink); border-radius: 6px; padding: 6px 9px; cursor: pointer; font: inherit; font-size: .9rem; white-space: nowrap; }
.icon-btn:hover { border-color: var(--ink); }
.shelf-count { display: inline-block; min-width: 1.4em; text-align: center; background: var(--accent); color: var(--accent-ink); border-radius: 99px; font-size: .75rem; padding: 0 5px; margin-left: 4px; }
@media (max-width: 720px) {
  .head-inner { flex-wrap: wrap; gap: 8px; }
  .nav { order: 3; flex-basis: 100%; }
}

main { max-width: 1200px; margin: 0 auto; padding: 28px 16px 64px; min-height: 70vh; }
.narrow { max-width: 860px; }
.site-foot { border-top: 1px solid var(--rule); color: var(--muted); font-size: .88rem; }
.site-foot .inner { max-width: 1200px; margin: 0 auto; padding: 20px 16px 36px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Buttons, chips, pills */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { padding: 5px 10px; font-size: .88rem; }
.btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); text-decoration: none; font-size: .88rem; cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .78rem; background: var(--band); color: var(--ink); white-space: nowrap; }
.pill.roast { color: #fff; }
.pill.roast.light { background: var(--light); }
.pill.roast.light-medium { background: var(--lightmed); }
.pill.roast.medium { background: var(--medium); }
.pill.roast.medium-dark { background: var(--meddark); }
.pill.roast.dark { background: var(--roast-dark); }
.pill.roast.light, .pill.roast.light-medium { color: #1f140e; }
.pill.stock-out { background: transparent; border: 1px solid var(--rule); color: var(--muted); }
.pill.new { background: var(--accent); color: var(--accent-ink); }
.pill.drop { background: var(--good); color: var(--accent-ink); }

/* Home */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; padding: 12px 0 8px; }
.hero h1 { max-width: 18ch; }
.eyebrow { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 10px; }
.timeline { list-style: none; padding: 0; margin: 18px 0; border-left: 3px solid var(--light); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 0 0 18px 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 3px solid var(--medium); }
.timeline .when { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; color: var(--accent); }
.timeline p { margin: 0; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }
.byline { color: var(--muted); font-size: .9rem; margin-top: -4px; }
.gear { list-style: none; counter-reset: g; padding: 0; margin: 14px 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.gear li { counter-increment: g; background: var(--band); border-radius: 8px; padding: 10px 12px 10px 42px; position: relative; }
.gear li::before { content: counter(g); position: absolute; left: 12px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--medium); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.gear li span { display: block; font-size: .85rem; color: var(--muted); }
.logo-explain { display: flex; gap: 20px; align-items: center; }
.logo-explain p { margin: 0; }
@media (max-width: 560px) { .logo-explain { flex-direction: column; align-items: start; } }
.story { font-size: .9rem; color: var(--muted); margin-top: 18px; padding-left: 12px; border-left: 3px solid var(--light); }
.searchbar { display: flex; gap: 8px; margin: 18px 0 12px; max-width: 620px; }
.searchbar input { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; font-size: 1.05rem; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--card); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; }
.stat b { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .88rem; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.collection { display: block; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--rule); background: var(--card); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.collection::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c, var(--medium)); }
.collection:hover { border-color: var(--ink); }
.collection h3 { margin-bottom: 4px; padding-right: 34px; }
.collection p { color: var(--muted); font-size: .9rem; margin: 0; }
.collection .count { position: absolute; right: 14px; top: 14px; font-size: .8rem; color: var(--muted); }
.explore-drops { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.explore-drops .drop { display: grid; gap: 4px; }
.explore-drops span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.explore-drops select { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); color: var(--ink); cursor: pointer; }
.explore-drops select:hover { border-color: var(--ink); }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 28px; }
.explore-grid h4 { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; margin-bottom: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 44px 0 12px; }
.section-head h2 { margin: 0; }

/* Catalog */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
.filters { position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.filters details { border-bottom: 1px solid var(--rule); padding: 10px 0; }
.filters summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; color: var(--muted); }
.filters details[open] summary::after { content: "–"; }
.filters .opts { display: grid; gap: 3px; margin-top: 8px; max-height: 260px; overflow: auto; }
.filters label.opt { display: flex; gap: 8px; align-items: center; font-size: .92rem; cursor: pointer; }
.filters label.opt .n { margin-left: auto; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.filters input[type="search"], .filters select { width: 100%; padding: 7px 9px; font: inherit; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); }
.range-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.range-row input { width: 100%; padding: 6px 8px; font: inherit; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .q { flex: 1; min-width: 200px; padding: 9px 12px; font: inherit; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--card); color: var(--ink); }
.toolbar select { padding: 8px 10px; font: inherit; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.active-filters .chip::after { content: " ×"; color: var(--muted); }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; border: 1px solid var(--rule); border-radius: 10px; padding: 4px 14px 12px; background: var(--card); }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.card:hover { border-color: var(--muted); }
.card .img { aspect-ratio: 4 / 3; background: var(--band); display: block; overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .img .noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.card .body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card h3 { font-size: 1rem; line-height: 1.25; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card .roaster { color: var(--muted); font-size: .86rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.card .notes { font-size: .86rem; color: var(--ink); }
.card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; font-size: .9rem; }
.card .price b { font-variant-numeric: tabular-nums; }
.card .save { position: relative; z-index: 2; border: 1px solid var(--rule); background: var(--card); color: var(--ink); border-radius: 99px; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; line-height: 1; }
.card .save.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.card .cmp { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--card); border-radius: 6px; padding: 2px 7px; font-size: .78rem; display: flex; gap: 4px; align-items: center; border: 1px solid var(--rule); cursor: pointer; }
.more { display: flex; justify-content: center; margin-top: 22px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--rule); border-radius: 10px; }
.compare-bar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 30; background: var(--ink); color: var(--paper); border-radius: 99px; padding: 8px 10px 8px 18px; display: flex; gap: 12px; align-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.compare-bar .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.compare-bar button.x { background: none; border: 0; color: var(--paper); cursor: pointer; font-size: 1.1rem; }

/* Coffee detail */
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.detail { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 32px; align-items: start; }
.detail .photo { border-radius: 12px; overflow: hidden; background: var(--band); aspect-ratio: 1; }
.detail .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } .detail .photo { max-width: 420px; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 18px 0; }
.fact { background: var(--band); border-radius: 8px; padding: 9px 12px; }
.fact dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.flavour-bars { display: grid; gap: 6px; max-width: 420px; }
.flavour-bars div { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; font-size: .88rem; }
.flavour-bars span.bar { height: 10px; border-radius: 99px; background: var(--c); }
.recipe-box { border: 1.5px solid var(--ink); border-radius: 12px; padding: 16px 18px; background: var(--card); }
.recipe-box .methods { margin-bottom: 12px; }
.recipe-box > h2 { font-size: 1.12rem; font-weight: 600; margin: 0 0 6px; }
.recipe-box dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 16px; margin: 0 0 10px; }
.recipe-box dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.recipe-box dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.recipe-box ol { margin: 8px 0 0; padding-left: 20px; }
.spark { width: 100%; max-width: 360px; height: 60px; }
.rating { display: inline-flex; gap: 2px; }
.rating button { background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--rule); padding: 0 1px; }
.rating button.on { color: var(--star); }
textarea, .field input, .field select { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); }
.field { display: grid; gap: 4px; margin-bottom: 10px; }
.field label { font-size: .85rem; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 14px 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--rule); }
thead th { font-weight: 600; border-bottom: 2px solid var(--ink); white-space: nowrap; }
th.sortable { cursor: pointer; }
th.sortable::after { content: " ↕"; color: var(--muted); font-weight: 400; }
tbody tr:hover { background: var(--band); }
.compare-table th { width: 140px; color: var(--muted); font-weight: 500; }
.compare-table td { min-width: 180px; }

/* Roasters / origins */
.roaster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.roaster-card { display: block; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.roaster-card:hover { border-color: var(--ink); }
.roaster-card .meta { color: var(--muted); font-size: .88rem; }
.mix { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin-top: 10px; background: var(--band); }
.mix span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.region { border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; background: var(--card); box-shadow: var(--shadow); }
.region .alt { font-size: .85rem; color: var(--muted); }
.alt-bar { position: relative; height: 8px; background: var(--band); border-radius: 99px; margin: 8px 0 12px; }
.alt-bar span { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--light), var(--dark)); border-radius: 99px; }
.map-wrap { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 12px; margin: 14px 0; }
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-wrap .dot { cursor: pointer; }
.map-wrap text { font: 12px "Public Sans", sans-serif; fill: var(--ink); }

/* Learn */
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.learn-card { border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; background: var(--card); }
.learn-card h3 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.learn-card .expect { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.learn-card p:last-child { margin-bottom: 0; }
.glossary dt { font-weight: 600; margin-top: 12px; }
.glossary dd { margin: 2px 0 0; color: var(--ink); max-width: 72ch; }
.wheel { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
/* flavour colours are darkened a little so white text passes AA on every tile */
.wheel a { display: block; padding: 12px 14px; border-radius: 10px; color: #fff; text-decoration: none; background: color-mix(in srgb, var(--c) 70%, #120d0a); }
.wheel a b { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.05rem; }
.wheel a span { font-size: .82rem; }

/* Drinks */
.drink-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.drink { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.drink .cup { width: 110px; height: 110px; }
.drink h3 a { color: inherit; text-decoration: none; }
.drink h3 a:hover { text-decoration: underline; }
.drink .meta { color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.drink .in { font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.drink p { font-size: .92rem; margin-bottom: 6px; }
.drink .tip { color: var(--muted); }
.drink .links { margin: 0; }
@media (max-width: 420px) { .drink-grid { grid-template-columns: 1fr; } .drink { grid-template-columns: 80px 1fr; } .drink .cup { width: 80px; height: 80px; } }

/* Tools */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.tool { border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; background: var(--card); box-shadow: var(--shadow); }
.tool h3 { margin-bottom: 4px; }
.tool .out { background: var(--band); border-radius: 8px; padding: 12px 14px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.tool .out b { font-size: 1.25rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.timer-face { font-family: "Bricolage Grotesque", sans-serif; font-size: 3rem; font-variant-numeric: tabular-nums; text-align: center; margin: 8px 0; }
.timer-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.timer-steps li { padding: 6px 10px; border-radius: 6px; background: var(--band); font-size: .92rem; display: flex; justify-content: space-between; gap: 10px; }
.timer-steps li.now { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.timer-steps li.done { opacity: .5; }
.compass { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.compass button { padding: 10px 6px; border-radius: 8px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; font-size: .88rem; }
.compass button.on { background: var(--ink); color: var(--paper); }
.compass .mid { background: var(--band); display: grid; place-items: center; border-radius: 8px; font-size: .8rem; color: var(--muted); text-align: center; }
.quiz-q { margin: 14px 0; }
.quiz-q h4 { margin-bottom: 8px; }

/* Brew guide (preserved) */
.roast-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 8px; border-radius: 6px; overflow: hidden; }
.roast-strip div { padding: 16px 16px 14px; color: #fff; }
.roast-strip .r-light { color: #1f140e; }
.roast-strip strong { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.15rem; }
.roast-strip span { font-size: .85rem; opacity: .9; }
.r-light { background: var(--light); } .r-medium { background: var(--medium); } .r-dark { background: var(--dark); }
.k-light { box-shadow: inset 0 -4px 0 var(--light); } .k-medium { box-shadow: inset 0 -4px 0 var(--medium); } .k-dark { box-shadow: inset 0 -4px 0 var(--dark); }
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 16px; }
.recipe { border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; background: var(--card); }
.recipe ol { margin: 0; padding-left: 20px; }
.recipe li { margin-bottom: 4px; }
.recipe b { font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: .9rem; }
.guide h2 { padding-top: 16px; border-top: 2px solid var(--ink); }
.guide > h2:first-of-type { margin-top: 28px; }

/* My beans (preserved) */
.size-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 20px 0 8px; padding: 14px 16px; background: var(--band); border-radius: 6px; }
.size-picker label { font-weight: 600; }
.size-picker input { width: 90px; padding: 6px 8px; font: inherit; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); color: var(--ink); }
.size-picker button { padding: 6px 12px; font: inherit; border: 1px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; }
.size-picker button.on { background: var(--ink); color: var(--paper); }
.bean-list { display: grid; gap: 14px; margin-top: 14px; }
.bean { border: 1px solid var(--rule); border-left: 8px solid var(--medium); border-radius: 6px; padding: 16px 18px; background: var(--card); }
.bean[data-roast="light"] { border-left-color: var(--light); }
.bean[data-roast="light-medium"], .bean[data-roast="medium-light"] { border-left-color: var(--lightmed); }
.bean[data-roast="dark"], .bean[data-roast="medium-dark"] { border-left-color: var(--dark); }
.bean .roaster { color: var(--muted); margin: 0 0 4px; }
.bean .meta { font-size: .9rem; margin: 0 0 10px; }
.bean .bean-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.brews { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.brew { background: var(--band); border-radius: 6px; padding: 10px 12px; }
.brew dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: .92rem; }
.brew dt { color: var(--muted); }
.brew dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }

.tabs { display: flex; gap: 4px; margin: 22px 0 0; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.tabs button { padding: 9px 16px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 500; font-size: 1rem; color: var(--muted); background: none; border: 0; border-radius: 6px 6px 0 0; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.toast { position: fixed; bottom: 20px; right: 20px; z-index: 40; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); font-size: .92rem; opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

@media print {
  .site-head, .site-foot, .filters, .toolbar, .actions, .compare-bar, .size-picker, .tabs { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------------------------------------------------------------- v2: sections, search, paths */
.nav a { font-size: 1rem; padding: 7px 13px; }
.search-trigger { display: inline-flex; align-items: center; gap: 8px; min-width: 200px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; }
.search-trigger:hover { border-color: var(--ink); color: var(--ink); }
.search-trigger kbd, .hero-search kbd, .pal-input kbd { margin-left: auto; font: 600 .72rem "Public Sans", sans-serif; border: 1px solid var(--rule); border-radius: 4px; padding: 1px 5px; color: var(--muted); background: var(--band); }
@media (max-width: 720px) { .search-trigger { min-width: 0; } .search-trigger kbd, .icon-btn .st-label { display: none; } .search-trigger .st-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .nav { order: 0; flex-basis: auto; } .head-inner { flex-wrap: nowrap; } .brand { font-size: 1.05rem; } }
.subnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: -10px 0 22px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { padding: 6px 12px; border-radius: 99px; color: var(--muted); text-decoration: none; font-size: .92rem; white-space: nowrap; }
.subnav a:hover { color: var(--ink); background: var(--band); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* command palette */
body.pal-open { overflow: hidden; }
.palette { position: fixed; inset: 0; z-index: 60; background: rgba(23, 18, 15, .45); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.palette[hidden] { display: none; }
.pal-box { width: 100%; max-width: 640px; background: var(--card); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden; border: 1px solid var(--rule); }
.pal-input { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 1.2rem; color: var(--muted); }
.pal-input input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.05rem; min-width: 0; }
.pal-results { max-height: min(60vh, 520px); overflow: auto; padding: 6px 0 8px; }
.sp-group { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 10px 16px 4px; }
.sp-item { display: flex; flex-direction: column; gap: 1px; padding: 8px 16px; color: var(--ink); text-decoration: none; border: 0; background: none; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.sp-item span { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-item:hover, .sp-item.on { background: var(--band); }
.sp-item.on { box-shadow: inset 3px 0 0 var(--accent); }
.sp-all { display: block; padding: 10px 16px; font-size: .9rem; border-top: 1px solid var(--rule); margin-top: 6px; }

/* home v2 */
.hero2 { text-align: center; padding: 26px 0 8px; max-width: 760px; margin: 0 auto; }
.hero2 h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
.hero2 .lede { margin: 12px auto 0; }
.hero-search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; margin: 22px auto 10px; padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--card); color: var(--muted); font: inherit; font-size: 1.02rem; cursor: text; box-shadow: var(--shadow); text-align: left; }
.stat-line { color: var(--muted); font-size: .88rem; margin: 0 auto; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.path { border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; background: var(--card); box-shadow: var(--shadow); border-top: 5px solid var(--light); }
.path.nerd { border-top-color: var(--dark); }
.path h2 { margin: 0 0 4px; font-size: 1.35rem; }
.path > p { color: var(--muted); }
.path-steps { margin: 6px 0 14px; padding-left: 20px; display: grid; gap: 4px; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 38px 0 0; }
.features div { background: var(--band); border-radius: 12px; padding: 14px 16px; }
.features b { font-family: "Bricolage Grotesque", sans-serif; }
.features p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
.stars { color: var(--star); font-weight: 600; white-space: nowrap; }
.detail-rating { margin: 10px 0 0; }
.spotlight { background: var(--band); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 14px; margin: 10px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* cafés */
.cafe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.cafe { display: block; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.cafe-head { display: flex; justify-content: space-between; gap: 8px; }
.cafe .meta { color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.cafe p { font-size: .92rem; margin-bottom: 6px; }
.cafe .order { background: var(--band); border-radius: 6px; padding: 6px 9px; }
.cafe .links { margin: 0; font-size: .88rem; }
.cafe.more-card { display: flex; flex-direction: column; justify-content: center; border-style: dashed; }
a.cafe:hover { border-color: var(--ink); }

/* recipes */
.recipe-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rcard { display: block; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.rcard:hover { border-color: var(--ink); }
.rcard h3 { margin: 8px 0 2px; }
.rcard .by { color: var(--muted); font-size: .85rem; }
.rcard dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0; }
.rcard dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rcard dd { margin: 0; font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }
.rcard p { font-size: .9rem; margin: 0; color: var(--muted); }

/* vs */
.answer { font-size: 1.15rem; background: var(--band); border-radius: 12px; padding: 14px 18px; border-left: 5px solid var(--accent); }
.vs-cups { display: flex; justify-content: center; align-items: center; gap: 26px; margin: 18px 0; }
.vs-cups figure { margin: 0; text-align: center; }
.vs-cups svg { width: 140px; height: 140px; }
.vs-cups figcaption { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; }
.vs-x { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.4rem; color: var(--muted); }
.vs-table th:first-child { width: 150px; color: var(--muted); font-weight: 500; }
.strength { display: inline-flex; gap: 3px; vertical-align: middle; }
.strength i { width: 14px; height: 8px; border-radius: 3px; background: var(--rule); }
.strength i.on { background: var(--medium); }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.pick { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: var(--card); }
.pick h3 { font-size: 1.02rem; }
@media (max-width: 560px) { .pick-grid { grid-template-columns: 1fr; } .vs-cups svg { width: 100px; height: 100px; } }

/* learn: start + faq */
.start-steps { list-style: none; padding: 0; display: grid; gap: 14px; }
.start-steps li { border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; background: var(--card); }
.start-steps p:last-child { margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--rule); padding: 10px 2px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 2px; }
.inline-search { margin: 4px 0 8px; padding: 9px 12px; border: 1.5px solid var(--ink); border-radius: 8px; font: inherit; width: 100%; max-width: 420px; background: var(--card); color: var(--ink); }

/* communities */
.comm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.comm { display: block; border: 1px solid var(--rule); border-left: 5px solid var(--pc); border-radius: 12px; padding: 14px 16px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.comm:hover { border-color: var(--ink); border-left-color: var(--pc); }
.comm .plat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: color-mix(in srgb, var(--pc) 50%, var(--ink)); }
.comm h3 { margin: 4px 0 4px; }
.comm p { font-size: .92rem; margin-bottom: 6px; }
.comm .meta { color: var(--muted); font-size: .82rem; }

/* guides */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gcard { display: block; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.gcard:hover { border-color: var(--ink); }
.gcard h3 { margin-bottom: 4px; }
.gcard p { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.guide-article h2 { margin-top: 32px; }
.guide-article ul, .guide-article ol { padding-left: 22px; max-width: 72ch; }
.guide-article li { margin-bottom: 4px; }
.g-steps li::marker { font-weight: 700; color: var(--accent); }
.g-tip { background: var(--band); border-radius: 8px; padding: 10px 14px; border-left: 4px solid var(--light); }
.g-stat { margin: 12px 0; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat-tiles div { background: var(--band); border-radius: 10px; padding: 12px 14px; }
.stat-tiles b { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.stat-tiles span { color: var(--muted); font-size: .85rem; }
.share { display: inline-block; width: 120px; height: 8px; background: var(--band); border-radius: 99px; vertical-align: middle; overflow: hidden; }
.share i { display: block; height: 100%; background: var(--medium); }

/* compare builder */
.vs-builder { background: var(--band); border-radius: 12px; padding: 14px 16px; margin: 14px 0 18px; display: grid; gap: 12px; }
.vs-picks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vs-pick { display: flex; align-items: center; gap: 4px; }
.vs-pick select { padding: 8px 10px; font: inherit; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); color: var(--ink); min-width: 160px; }
.vs-pick .x { border: 0; background: none; font-size: 1.2rem; color: var(--muted); cursor: pointer; }
.vs-params summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.vs-params label.chip { user-select: none; }
.vs-table .cup-row svg { width: 110px; height: 110px; }
.vs-table td { min-width: 150px; }
.buzz { margin-bottom: 10px; }
.buzz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.buzz-grid > div { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px 6px; background: var(--card); }
.buzz-grid ol, .buzz-grid ul { padding-left: 20px; margin: 8px 0; }
.buzz-grid li { margin-bottom: 8px; }
@media (max-width: 900px) { .buzz-grid { grid-template-columns: 1fr; } }

/* city landmark chips */
.city-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 16px 0 6px; }
.city-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px 10px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; font: inherit; }
.city-chip:hover { border-color: var(--ink); }
.city-chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.city-chip.on span { color: var(--paper); opacity: .75; }
.city-chip b { font-family: "Bricolage Grotesque", sans-serif; font-size: .95rem; }
.city-chip span { font-size: .75rem; color: var(--muted); }
.city-ico { display: inline-block; width: 40px; height: 40px; color: var(--ico); }
.city-chip.on .city-ico { color: var(--light); }
.city-ico svg { width: 100%; height: 100%; }
.city-ico.big { width: 72px; height: 72px; flex: none; }
.city-head { display: flex; align-items: center; gap: 16px; margin: 18px 0 4px; }
.city-head h2 { margin: 0; }
.city-head p { margin: 2px 0 0; }

/* home explore nudges */
.explore-row { display: flex; align-items: center; gap: 8px; }
.explore-tile { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; text-align: center; box-shadow: var(--shadow); }
.explore-tile:hover { border-color: var(--ink); }
.explore-tile svg { width: 38px; height: 38px; color: var(--ico); }
.explore-tile b { font-family: "Bricolage Grotesque", sans-serif; }
.explore-tile span { font-size: .8rem; color: var(--muted); }
.explore-arrow { color: var(--muted); }
@media (max-width: 760px) { .explore-row { display: grid; grid-template-columns: repeat(3, 1fr); } .explore-arrow { display: none; } }
.nudges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nudge { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 12px; background: var(--band); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.nudge:hover { border-color: var(--ink); }
.nudge .tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); }
.nudge b { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.08rem; line-height: 1.3; }
.nudge .muted { font-size: .88rem; }
@media (max-width: 860px) { .nudges { grid-template-columns: 1fr; } }
.cmp-drink { margin-top: 8px; font-size: .82rem; padding: 4px 10px; }
.drink-bar { bottom: 16px; }
.nudge-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.nudge-track::-webkit-scrollbar { display: none; }
.nudge-track .nudge { scroll-snap-align: start; }
@media (max-width: 860px) { .nudge-track { grid-auto-columns: 86%; } }
.nudge-nav { display: flex; gap: 6px; }
.nudge-nav .icon-btn { font-size: 1.1rem; padding: 2px 11px; }
.nudge-dots { display: flex; justify-content: center; margin-top: 4px; }
/* 24 px tap target around a small dot */
.nudge-dots button { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.nudge-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--rule); }
.nudge-dots button.on::before { background: var(--ink); width: 18px; }

/* home sections: one scrollable row at every width, fading at the edge that has more */
.rail-wrap { position: relative; }
.rail { display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: calc((100% - 3 * 14px) / 4); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 8px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.explore-row { grid-auto-columns: calc((100% - 4 * 14px) / 5); }
.rail .explore-arrow { display: none; }
.rail.city-chips { grid-auto-columns: 118px; gap: 10px; }
.rail.cafe-grid, .rail.nudge-track { grid-auto-columns: calc((100% - 2 * 12px) / 3); gap: 12px; }
.rail.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.rail.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }
.rail.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.rail-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-size: 1.3rem; line-height: 1; cursor: pointer; display: none; }
.rail-btn.l { left: -10px; } .rail-btn.r { right: -10px; }
@media (hover: hover) and (pointer: fine) { .rail-wrap.can-l .rail-btn.l, .rail-wrap.can-r .rail-btn.r { display: block; } }
@media (max-width: 760px) {
  .rail { grid-auto-columns: 78%; gap: 10px; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px; }
  .rail.grid { grid-auto-columns: 62%; }
  .rail.explore-row { grid-auto-columns: 38%; }
  .rail.cafe-grid, .rail.nudge-track { grid-auto-columns: 82%; }
  .rail.features { grid-auto-columns: 70%; }
}
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
@media (max-width: 560px) {
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .head-inner { gap: 6px; padding: 8px 12px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 8px; font-size: .93rem; }
  .head-tools { gap: 4px; }
  .head-tools .icon-btn, .search-trigger { padding: 6px 8px; }
  #theme { display: none; }
  .nav a { padding: 6px 7px; }
}
@media (max-width: 380px) { .nav a { padding: 5px 5px; font-size: .88rem; } .brand-logo { width: 26px; height: 26px; } }
.vs-params label.chip:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rail[tabindex="0"]:focus-visible, .table-wrap[tabindex="0"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
