/* dingo.bar: warm backbar palette, system fonts only. */
:root {
  --bg: #f6f0e6; --paper: #fffcf6; --ink: #22180f; --muted: #6d5d4f; --line: #e3d6c3;
  --accent: #8a2c34; --accent-ink: #fff; --brass: #9a6b1f; --chip: #efe3d1; --chip-on: #22180f; --chip-on-ink: #f6f0e6;
  --doc: #1f6b4f; --doc-bg: #e3f1e9; --leg: #8a5a12; --leg-bg: #f8ead2;
  --shadow: 0 1px 2px rgba(40, 25, 10, .06), 0 6px 18px rgba(40, 25, 10, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15100c; --paper: #1e1713; --ink: #f1e7da; --muted: #b9a693; --line: #3a2e25;
    --accent: #d9737a; --accent-ink: #1a0f0b; --brass: #d8ad62; --chip: #2a211b; --chip-on: #d8ad62; --chip-on-ink: #15100c;
    --doc: #8fd3b0; --doc-bg: #173327; --leg: #e9b871; --leg-bg: #3a2a14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .35);
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, .card-title, .spot-title, .gcard-title, .tool-title, .foot-brand { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .4em 0 .3em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 2em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 8px; z-index: 9; }
.small { font-size: .88rem; color: var(--muted); }
.muted { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.kicker { font: 600 .78rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--brass); margin: 0; }
.kicker a { color: inherit; text-decoration: none; }
html.no-js .js-only { display: none !important; }

/* header: always the dark backbar */
.top { background: #1b130f; color: #f1e7da; border-bottom: 3px solid #9a6b1f; position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: #f1e7da; text-decoration: none; font: 600 1.35rem/1 var(--serif); }
.brand b, .foot-brand b { color: #d8ad62; font-weight: 600; }
.top nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.top nav a { color: #e6d8c6; text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: .95rem; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current] { background: #2e2119; color: #fff; }
.units { display: inline-flex; border: 1px solid #5a4636; background: transparent; border-radius: 999px; padding: 2px; cursor: pointer; font: 600 .82rem var(--sans); }
.units span { padding: 4px 9px; border-radius: 999px; color: #cdbba6; }
html:not(.oz) .units .u-ml, html.oz .units .u-oz { background: #d8ad62; color: #1b130f; }

/* amounts: both units without JS, the chosen one with it */
.amt .i::before { content: "("; } .amt .i::after { content: ")"; }
html.js .amt .i { display: none; }
html.js.oz .amt .m { display: none; }
html.js.oz .amt .i { display: inline; }
html.js .amt .i::before, html.js .amt .i::after { content: none; }

/* hero */
.hero { background: radial-gradient(ellipse at 70% 30%, #4a3122 0%, #24170f 55%, #150e0a 100%); color: #f3e9dc; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding-top: 48px; padding-bottom: 40px; }
.hero h1 { color: #fff7ec; font-size: clamp(2.2rem, 5.4vw, 3.6rem); margin-top: .2em; }
.hero .lede { color: #d9c8b4; }
.hero .kicker { color: #d8ad62; }
.hero-shelf { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.hero-shelf img { width: 33%; max-width: 190px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.hero-shelf img:nth-child(2) { transform: translateY(-14px) scale(1.08); z-index: 1; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-block; background: #d8ad62; color: #1b130f; padding: 11px 20px; border-radius: 999px; font-weight: 650; text-decoration: none; }
.btn.ghost { background: transparent; color: #f3e9dc; border: 1px solid #8a7058; }
.btn:hover { filter: brightness(1.07); }

/* breadcrumbs */
.crumbs { font-size: .88rem; color: var(--muted); margin-top: 18px; }
.crumbs a { color: var(--muted); }

/* sections */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 2.4em; }
.sec-head h2 { margin: 0 0 .6em; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }

/* card grids: fixed column counts for curated sets (PARK-56) */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .grid4, .grid2 { grid-template-columns: minmax(0, 1fr); } }
/* full listings: centred flex so a short last row sits in the middle */
.flexgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.flexgrid > .fitem, .flexgrid > .card { flex: 0 1 calc((100% - 54px) / 4); min-width: 0; }
@media (max-width: 960px) { .flexgrid > .fitem, .flexgrid > .card { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 560px) { .flexgrid > .fitem, .flexgrid > .card { flex-basis: 100%; } }
.fitem > .card { height: 100%; }

.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(40, 25, 10, .08), 0 12px 28px rgba(40, 25, 10, .12); }
.card img { display: block; width: 100%; aspect-ratio: 200 / 240; height: auto; background: #1d140f; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-title { font-size: 1.2rem; }
.card-text { font-size: .9rem; color: var(--muted); line-height: 1.45; flex: 1; }
.card-meta { font-size: .78rem; color: var(--brass); font-weight: 600; letter-spacing: .02em; }
@media (max-width: 560px) {
  .card { flex-direction: row; }
  .card img { width: 112px; flex: 0 0 112px; }
  .card-body { padding: 10px 12px; }
  .card-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

.gcard, .tool { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: 12px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.gcard:hover, .tool:hover { border-top-color: var(--accent); }
.gcard-title, .tool-title { font-size: 1.15rem; }
.gcard-text, .tool-text { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.tool-ico { font-size: 1.6rem; color: var(--brass); line-height: 1; }

/* spotlight */
.spot { margin-top: 32px; }
.spot-card { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.spot-card img { border-radius: 12px; width: 100%; }
.spot-body { display: flex; flex-direction: column; gap: 8px; }
.spot-title { font-size: 2rem; }
.spot-text { color: var(--muted); }
.spot-meta { font-size: .85rem; color: var(--brass); font-weight: 600; }
@media (max-width: 640px) { .spot-card { grid-template-columns: 110px 1fr; gap: 14px; } .spot-title { font-size: 1.5rem; } .spot-text { font-size: .92rem; } }

.famlist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.famlist a { display: inline-flex; gap: 8px; align-items: baseline; padding: 9px 14px; border-radius: 999px; background: var(--chip); color: var(--ink); text-decoration: none; }
.famlist a span { color: var(--muted); font-size: .85rem; }
.famlist a:hover { background: var(--chip-on); color: var(--chip-on-ink); }
.famlist a:hover span { color: inherit; }
.history-teaser { margin: 2.6em 0 1em; padding: 24px; border-radius: 14px; background: var(--leg-bg); }
.history-teaser h2 { margin-top: 0; }

/* drink page */
.drink-head { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 12px; }
.drink-art { margin: 0; }
.drink-art img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }
.drink-intro h1 { margin-top: .15em; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: .95rem; }
.facts span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 860px) { .drink-head { grid-template-columns: minmax(0, 1fr); } .drink-art { max-width: 300px; margin: 0 auto; } .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.drink-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 28px; align-items: start; }
@media (max-width: 860px) { .drink-grid { grid-template-columns: minmax(0, 1fr); } }
.recipe h2, .strength h2 { margin: 0; }
.recipe-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.serves { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.serves button { border: 0; background: var(--chip); color: var(--ink); width: 36px; height: 34px; font-size: 1.2rem; cursor: pointer; }
.serves output { min-width: 84px; text-align: center; font-weight: 600; font-size: .92rem; }
.ingr { width: 100%; border-collapse: collapse; }
.ingr td { padding: 9px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.ingr td.q { width: 40%; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ingr tr.opt { color: var(--muted); }
.ingr tr.water td { color: var(--brass); }
.garnish { margin: 14px 0 0; }
.steps { padding-left: 1.3em; }
.steps li { margin: .35em 0; }
.batchlink { margin: 14px 0 0; font-weight: 600; }
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.nums div { background: var(--chip); border-radius: 10px; padding: 10px 12px; }
.nums div:first-child { grid-column: 1 / -1; }
.nums dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.nums dd { margin: 2px 0 0; font: 600 1.4rem/1.2 var(--serif); }
.nums div:first-child dd { font-size: 2.2rem; color: var(--accent); }
.nums small { font: 500 .85rem var(--sans); color: var(--muted); }
.prose { max-width: 46em; }
.prose.center { margin: 60px auto; text-align: center; }
.history { max-width: none; }
.firstprint { font-size: .95rem; }
.badge { display: inline-block; background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; margin-right: 6px; }
.hist-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hist-cols .hist:only-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .hist-cols { grid-template-columns: minmax(0, 1fr); } }
.hist { border-radius: 12px; padding: 4px 18px 8px; }
.hist h3 { margin: 14px 0 4px; }
.hist.doc { background: var(--doc-bg); }
.hist.leg { background: var(--leg-bg); }
.tag { display: inline-block; font: 700 .75rem/1 var(--sans); text-transform: uppercase; letter-spacing: .09em; padding: 5px 9px; border-radius: 6px; }
.tag-doc { background: var(--doc); color: var(--doc-bg); }
.tag-leg { background: var(--leg); color: var(--leg-bg); }
.unsure { border-left: 4px solid var(--brass); padding: 6px 14px; background: var(--paper); border-radius: 0 8px 8px 0; }
.vars li, .tips li { margin: .45em 0; }
.related { margin-bottom: 2em; }

/* listings and filters */
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 18px 0 22px; box-shadow: var(--shadow); }
.filters fieldset { border: 0; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters legend { float: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); width: 70px; padding-top: 6px; }
.search input { width: 100%; font: inherit; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--chip); font-size: .88rem; cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--chip-on); color: var(--chip-on-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.count { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.empty { text-align: center; color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.toc a { padding: 6px 12px; background: var(--chip); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.family h2 .n { font: 600 .9rem var(--sans); color: var(--muted); }
.family { scroll-margin-top: 80px; }

/* tables */
.tablewrap { overflow-x: auto; max-width: 100%; }
.data { border-collapse: collapse; width: 100%; font-size: .93rem; background: var(--paper); border-radius: 10px; }
.data th, .data td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.conv { border-collapse: collapse; }
.conv th, .conv td { padding: 6px 12px; border-bottom: 1px solid var(--line); text-align: left; }
dl.defs dt { font-weight: 700; margin-top: 1em; font-family: var(--serif); font-size: 1.08rem; }
dl.defs dd { margin: .2em 0 0; }
ul.cols { columns: 2; column-gap: 32px; padding-left: 1.1em; }
ul.cols li { break-inside: avoid; margin: .25em 0; }
@media (max-width: 640px) { ul.cols { columns: 1; } }

/* tools */
.cab { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 18px; }
@media (max-width: 900px) { .cab { grid-template-columns: minmax(0, 1fr); } }
.cab-pick { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
@media (max-width: 900px) { .cab-pick { position: static; max-height: none; } }
.cab-group { margin-bottom: 12px; }
.cab-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--sans); margin: 10px 0 6px; }
.cab-group .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cab-out h2 { margin-top: 0; }
.cab-out h2 + .flexgrid, .cab-near-row { margin-bottom: 26px; }
.cab-near-row h3 { font-size: 1.05rem; }
.cab-near-row h3 small { font: 500 .85rem var(--sans); color: var(--muted); }
.cab-out .flexgrid > .card { flex-basis: calc((100% - 36px) / 3); }
@media (max-width: 1100px) { .cab-out .flexgrid > .card { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 560px) { .cab-out .flexgrid > .card { flex-basis: 100%; } }
.cab-fresh summary { cursor: pointer; font-weight: 600; margin-top: 8px; }
.assume { display: block; margin: 10px 0; font-size: .92rem; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills a { padding: 4px 10px; background: var(--chip); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.batch-form, .abv-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.batch-form label, .abv-top label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--muted); font-weight: 600; }
select, input[type=number], .abv-rows input { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); max-width: 100%; }
input[type=number] { width: 7em; }
.batch-out { margin-top: 16px; }
.abv-rows { width: 100%; border-collapse: collapse; margin-top: 14px; }
.abv-rows td, .abv-rows th { padding: 4px; text-align: left; font-size: .9rem; }
.abv-rows td:nth-child(2) input, .abv-rows td:nth-child(3) input { width: 5.5em; }
.abv-rows td:first-child select { width: 100%; }
.abv-out .nums div:first-child { grid-column: auto; }
.abv-out .nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .abv-out .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zcard img { width: 100%; max-width: 220px; display: block; margin: 0 auto; border-radius: 12px; }
.zcard h3 { margin-top: 12px; }
.zcard ul { padding-left: 1.1em; font-size: .93rem; }

/* history timeline */
.timeline { list-style: none; padding: 0; margin: 10px 0 40px; border-left: 3px solid var(--brass); }
.timeline li { display: grid; grid-template-columns: 70px auto 1fr; gap: 12px; align-items: center; padding: 6px 0 6px 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 3px solid var(--brass); transform: translateY(-50%); }
.tl-year { font: 700 1.05rem var(--serif); color: var(--brass); }
.timeline a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.timeline img { border-radius: 6px; }
.tl-src { color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 54px 1fr; } .tl-src { grid-column: 2; } }

/* footer */
.foot { margin-top: 60px; background: #1b130f; color: #cdbba6; padding: 30px 0 34px; font-size: .9rem; }
.foot a { color: #e6c789; }
.adults { background: #2a1d16; border-radius: 10px; padding: 10px 14px; color: #f1e7da; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin: 18px 0; }
.foot-cols nav { display: flex; flex-direction: column; gap: 6px; }
.foot-brand { font-size: 1.3rem; color: #f1e7da; margin: 0 0 6px; }
.sources { color: #9f8c78; font-size: .82rem; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > div { grid-column: 1 / -1; } }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .hero-shelf { order: -1; }
  .hero-shelf img { width: 30%; }
  .top { position: static; }
  .bar { gap: 10px; flex-wrap: wrap; padding-top: 6px; }
  .top nav { order: 3; flex-basis: 100%; margin: 0 -6px 4px; }
  .units { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
