/* Hall of Taps: site styles. No framework. */

:root {
  --ink: #1f2a24;
  --ink-body: #2c3731;
  --muted: #56615b;
  --muted-strong: #3c4741;
  --muted-soft: #5d6862;
  --faint: #6b746f;
  --accent: #1d7038;
  --accent-hover: #11502a;
  --on-accent: #ffffff;
  --bg: #ffffff;
  --panel: #f4f6f4;
  --zebra: #f8faf8;
  --footer: #eef1ef;
  --border: #dde2de;
  --border-strong: #cfd5d1;
  --rule: #e8ebe9;
  --tag-ink: #7a4a00;
  --tag-bg: #fff1d6;
  --error: #9b1c1c;
  --radius: 4px;
  --radius-lg: 6px;
  --max: 1180px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
strong { font-weight: 700; }
input::placeholder { color: var(--faint); }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 8px; color: var(--on-accent); }

.muted { color: var(--muted-strong); }
.strong { font-weight: 700; }
.center { display: flex; justify-content: center; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 3px solid var(--accent);
  background: var(--bg);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

.brand {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.brand:hover { color: var(--ink); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  font-size: 15px;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--accent-hover); }
.nav-links a[aria-current="page"],
.brand[aria-current="page"] { font-weight: 700; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

.site-search {
  display: flex;
  flex: 0 1 300px;
  min-width: 220px;
  margin: 0;
}
.site-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--border-strong);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--ink);
  background: var(--bg);
}
.site-search button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--panel);
  color: var(--muted-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.site-search button:hover { background: var(--footer); }

/* ---------- Layout ---------- */

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 56px;
}
.page-stack { padding-top: 24px; }
.page-stack-inner { display: flex; flex-direction: column; gap: 36px; }
.page-narrow { max-width: 900px; padding-top: 32px; padding-bottom: 64px; }
.page-prose {
  max-width: 760px;
  padding-top: 32px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-body);
}

.page-title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lede { font-size: 18px; line-height: 1.55; color: var(--muted-strong); }

.block { display: flex; flex-direction: column; gap: 12px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}
.section-head h2, .block > h2 { font-size: 22px; font-weight: 700; }
.section-head a { font-size: 14px; }
.section-note { font-size: 13px; color: var(--muted); }

/* ---------- Buttons & form controls ---------- */

.btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { border: 1px solid var(--border-strong); background: var(--bg); color: var(--accent); padding: 0 18px; }
.btn-secondary:hover { background: var(--panel); color: var(--accent-hover); }
.btn-plain { border: 1px solid var(--border-strong); background: var(--bg); color: var(--ink); font-weight: 400; padding: 0 18px; }
.btn-plain:hover { background: var(--panel); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: 14px; font-weight: 600; }
.help { font-size: 12px; color: var(--muted-soft); }

.input, .select {
  height: 44px;
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--bg);
}
.select { padding: 0 8px; }

/* ---------- Home ---------- */

.hero { background: var(--panel); border-bottom: 1px solid var(--border); }
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero h1 { max-width: 760px; }
.hero .lede { max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero-actions .btn { font-size: 15px; }

.home-grid {
  padding-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}
.home-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.home-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.home-aside .block { gap: 10px; }
.home-aside h2 { font-size: 17px; font-weight: 700; }
.home-aside .section-head a { font-size: 13px; }

.style-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.style-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--ink);
}
a.style-card:hover { border-color: var(--accent); text-decoration: none; color: var(--ink); }
a.style-card:hover .sc-name { text-decoration: underline; }
.sc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sc-style { font-size: 12px; font-weight: 600; color: var(--muted); }
.sc-name { font-size: 16px; font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.sc-meta { font-size: 13px; color: var(--muted-strong); }
.sc-meta strong { color: var(--ink); }

.quote { margin: 0; border-left: 4px solid var(--accent); padding: 4px 0 4px 20px; }
.quote blockquote { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink); }

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.rank-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}
.rank-list li:last-child { border-bottom: none; }
.rank-list .muted { color: var(--muted); }
.list-note { font-size: 12px; color: var(--muted); }

.read-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
}
.read-list a { font-weight: 600; }
.read-list span { color: var(--muted); }

/* ---------- Tables ---------- */

.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-boxed { border: 1px solid var(--border); border-radius: var(--radius-lg); }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.data th, .data td { padding: 11px 8px; vertical-align: baseline; }
.data th { font-weight: 600; text-align: left; }
.data thead tr { border-bottom: 2px solid var(--border); }
.data tbody tr { border-bottom: 1px solid var(--rule); }
.data tbody tr:last-child { border-bottom: none; }
.data tbody tr:nth-child(even) { background: var(--zebra); }
.data th:first-child, .data td:first-child { padding-left: 16px; }
.data .col-last, .data th:last-child, .data td:last-child { padding-right: 16px; }
.data .num { text-align: right; white-space: nowrap; }
.data .rank { width: 36px; color: var(--muted); }
.data thead .rank { color: var(--muted); }
.data td.status { text-align: center; padding: 28px 16px; color: var(--muted); }
.data td.status-error { color: var(--error); }
.beer-name { font-weight: 500; }

.data-head-panel thead tr { background: var(--panel); border-bottom: 1px solid var(--border); }
.data-head-panel thead th { padding-top: 10px; padding-bottom: 10px; }

.min-560 { min-width: 560px; }
.min-640 { min-width: 640px; }
.min-820 { min-width: 820px; }
.min-860 { min-width: 860px; }
.min-1080 { min-width: 1080px; }
.min-1140 { min-width: 1140px; }

/* Leaderboard tables in a boxed panel use 20px side padding. */
.board th:first-child, .board td:first-child { padding-left: 20px; }
.board th:last-child, .board td:last-child { padding-right: 20px; }
.board .col-name { max-width: 260px; }

.th-sort { padding-top: 4px !important; padding-bottom: 4px !important; }
.sort {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  padding: 0 4px;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
}
.sort:hover { color: var(--accent-hover); text-decoration: underline; }
.sort.is-active, th.is-active { color: var(--accent); }

.tag-small {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tag-ink);
  background: var(--tag-bg);
  border-radius: 3px;
  vertical-align: 1px;
  white-space: nowrap;
}

/* ---------- Boxed leaderboard panel ---------- */

.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.panel-head {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}
.panel-head h1 { font-size: 18px; font-weight: 700; }
.panel-head p { font-size: 13px; color: var(--muted); }
.panel-bar {
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.tabs-wrap { padding: 18px 20px 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tab {
  font: inherit;
  font-size: 14px;
  min-height: 44px;
  padding: 0 16px;
  background: transparent;
  color: var(--accent);
  border: 1px solid transparent;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: -1px;
  cursor: pointer;
}
.tab:hover { color: var(--accent-hover); text-decoration: underline; }
.tab[aria-selected="true"] {
  font-weight: 600;
  background: var(--bg);
  color: var(--ink);
  border-color: var(--border);
  border-bottom-color: var(--bg);
  text-decoration: none;
}

.filters { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px 24px;
}
.filters-ranges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.range {
  margin: 0;
  padding: 14px 16px;
  border: none;
  /* Inner dividers that still look right when the grid wraps. */
  box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.range legend { padding: 0; font-size: 14px; font-weight: 600; float: left; width: 100%; margin-bottom: 8px; }
.range-pair { display: flex; gap: 10px; clear: both; }
.range-pair label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted-soft);
}
.filters-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.filter-note { text-align: center; font-size: 13px; color: var(--tag-ink); }
.filter-note:empty { display: none; }

.brewery-filters {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 24px;
  align-items: end;
}
.brewery-filters .actions { display: flex; gap: 10px; }

/* ---------- Pagination ---------- */

.pager {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}
.pager:empty { display: none; }
.pager-summary { color: var(--muted); }
.pg-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pg {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.pg:hover { background: var(--panel); text-decoration: none; }
.pg.is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.pg-gap { min-width: 20px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }

/* ---------- Compare ---------- */

.compare { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.combo { max-width: 520px; }
.combo-box { position: relative; }
.suggest {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(31, 42, 36, 0.12);
  max-height: 360px;
  overflow-y: auto;
}
.suggest li {
  padding: 8px 12px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}
.suggest li:hover, .suggest li.is-active { background: var(--panel); }
.suggest li.is-active { box-shadow: inset 3px 0 0 var(--accent); }
.opt-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.opt-meta { font-size: 12px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-left: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 500;
  max-width: 100%;
  min-width: 0;
}
.chip-name { max-width: 260px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-x {
  width: 44px;
  height: 40px;
  border: none;
  background: none;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  color: var(--muted-strong);
  cursor: pointer;
}
.chip-x:hover { color: var(--ink); background: var(--footer); }

.compare-table th[scope="row"] { color: var(--muted-strong); font-weight: 600; white-space: nowrap; width: 150px; }
.compare-table thead th { vertical-align: bottom; min-width: 130px; }
.compare-table th[scope="row"], .compare-table .cmp-metric { position: sticky; left: 0; z-index: 1; background: var(--bg); box-shadow: 1px 0 0 var(--border); }
.compare-table tbody tr:nth-child(even) th[scope="row"] { background: var(--zebra); }
.compare-table thead .cmp-metric { min-width: 0; }
.compare-table td.is-best strong { color: var(--ink); }
.cmp-empty, .cmp-note { font-size: 14px; color: var(--muted); }
.cmp-live { font-size: 13px; color: var(--muted); }

/* ---------- Labels ---------- */

.label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--panel);
}
.label-40 { width: 40px; height: 40px; font-size: 16px; }
.label-72 { width: 72px; height: 72px; font-size: 28px; }
.label-100 { width: 100px; height: 100px; font-size: 40px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.label-ph {
  color: var(--muted);
  font-weight: 700;
  border: 1px solid var(--border);
  user-select: none;
}

/* ---------- Detail pages ---------- */

.detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.detail-title { display: flex; flex-direction: column; gap: 10px; flex: 1 1 420px; min-width: 0; }
.page-stack-inner > .detail-title { flex: none; } /* brewery page: no label beside it, so no 420px basis */
.detail-title h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.detail-title .by { font-weight: 400; font-style: italic; font-size: 26px; color: var(--faint); }
.detail-title .h1-brewery { font-weight: 500; font-size: 30px; }
.detail-meta { font-size: 15px; color: var(--muted-strong); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }

.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  overflow: hidden;
}
.stat {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border);
}
.stat-title { font-size: 15px; font-weight: 600; }
.stat-value { font-size: 44px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-desc { font-size: 14px; line-height: 1.5; color: var(--muted-strong); }
.stat-desc strong { color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--panel); border-radius: var(--radius-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.card-title { font-size: 13px; font-weight: 600; color: var(--muted-strong); }
.card-value { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }

.calc { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.calc-box {
  flex: 1 1 200px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc-title { font-size: 13px; font-weight: 600; color: var(--muted-strong); }
.calc-value { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-desc { font-size: 12px; color: var(--muted); line-height: 1.45; }
.calc-op { align-self: center; font-size: 22px; color: var(--faint); padding: 0 2px; }
.calc-result { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.calc-result .calc-title, .calc-result .calc-desc { color: var(--on-accent); }
.calc-result .calc-value { font-weight: 700; }

/* ---------- Status messages ---------- */

.status { color: var(--muted); font-size: 15px; padding: 12px 0; }
.status-error { color: var(--error); }

/* ---------- How we rate ---------- */

.rate-layout { padding-top: 32px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.toc { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; padding-top: 6px; }
.toc-title { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.toc a { min-height: 32px; display: flex; align-items: center; }
@media (min-width: 960px) {
  .toc { position: sticky; top: 16px; }
}

.article { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 40px; font-size: 16px; line-height: 1.65; }
.article > header { display: flex; flex-direction: column; gap: 12px; }
.article > header .lede { font-size: 18px; line-height: 1.65; }
.article section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.article h2 { font-size: 22px; font-weight: 700; line-height: 1.3; }
.article h2.h2-lg { font-size: 24px; }

.formula {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.9;
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  overflow-x: auto;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.steps li { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.step-n { font-size: 13px; font-weight: 700; color: var(--accent); }
.step-t { font-weight: 600; }
.step-d { font-size: 14px; color: var(--muted-strong); line-height: 1.5; }

table.simple { border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.simple th, .simple td { padding: 8px 24px 8px 0; text-align: left; }
.simple th { font-weight: 600; }
.simple thead tr { border-bottom: 2px solid var(--border); }
.simple tbody tr { border-bottom: 1px solid var(--rule); }
.simple tbody tr:last-child { border-bottom: none; }
.simple .num { text-align: right; padding-right: 0; white-space: nowrap; }
.simple .num:not(:last-child) { padding-right: 16px; padding-left: 16px; }
.simple .strong { font-weight: 600; }
.w-360 { max-width: 360px; }
.w-620 { max-width: 620px; }

.example { border: 1px solid var(--border); border-radius: 8px; padding: 22px 24px; gap: 14px !important; }
.example-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.example-head > div { display: flex; flex-direction: column; }
.example-head span { font-size: 14px; color: var(--muted); }
.example table { width: 100%; }
.example th[scope="row"] { font-weight: 500; padding: 9px 16px 9px 0; }
.example td { padding: 9px 0; text-align: right; }
.example tr.total th { font-weight: 600; }
.example tr.total td { color: var(--accent); font-weight: 700; }

/* ---------- Glossary ---------- */

.glossary { margin: 0; border-top: 1px solid var(--border); }
.glossary > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 16px;
}
.glossary dt { flex: 0 0 200px; display: flex; flex-direction: column; gap: 2px; }
.term { font-size: 17px; font-weight: 700; }
.aka { font-size: 13px; color: var(--muted); }
.glossary dd {
  margin: 0;
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-body);
}
.formula-inline {
  align-self: flex-start;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 6px 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* ---------- About ---------- */

.page-prose > header { display: flex; flex-direction: column; gap: 12px; }
.page-prose > header .lede { font-size: 19px; line-height: 1.7; }
.page-prose section { display: flex; flex-direction: column; gap: 14px; }
.page-prose h2 { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.person { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.person-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.person p { font-size: 16px; line-height: 1.65; }
.person a { font-size: 15px; font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer { background: var(--footer); border-top: 1px solid var(--border); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--ink); min-height: 32px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--accent-hover); }
.footer-inner p { max-width: 420px; color: var(--muted); line-height: 1.5; }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .nav { padding: 10px 16px; gap: 4px 20px; }
  .nav-links { gap: 0 16px; flex-basis: 100%; order: 2; }
  .site-search { flex: 1 1 100%; min-width: 0; order: 3; }
  .page, .hero-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .page-title, .detail-title h1 { font-size: 30px; }
  .detail-title .by { font-size: 20px; }
  .detail-title .h1-brewery { font-size: 23px; }
  .stat-value { font-size: 36px; }
  .hero-inner { padding-top: 32px; padding-bottom: 30px; }
  .lede { font-size: 17px; }
  .tabs-wrap, .filters, .compare, .brewery-filters { padding-left: 14px; padding-right: 14px; }
  .panel-head, .panel-bar, .pager { padding-left: 14px; padding-right: 14px; }
  .example { padding: 18px 16px; }
  .calc-op { flex: 1 1 100%; text-align: center; padding: 0; }
  .tab { padding: 0 12px; }
}

/* ---------- Blog ---------- */
.post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.post-list article { display: flex; flex-direction: column; gap: 6px; }
.post-list h2 { font-size: 22px; line-height: 1.3; }
.post-date { font-size: 14px; color: var(--muted); }
.post-feed { font-size: 15px; }
.post { display: flex; flex-direction: column; gap: 28px; }
.post > header { display: flex; flex-direction: column; gap: 10px; }
.post-body { display: flex; flex-direction: column; gap: 16px; }
.post-body h2 { font-size: 24px; font-weight: 700; line-height: 1.3; margin-top: 12px; }
.post-body h3 { font-size: 19px; font-weight: 700; line-height: 1.35; margin-top: 8px; }
.post-body ul, .post-body ol { padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius-lg); }
.post-body blockquote { border-left: 3px solid var(--border-strong); padding-left: 16px; color: var(--muted-strong); }
.post-body code { font-size: 0.9em; background: var(--panel); padding: 1px 5px; border-radius: 4px; }
.post-body pre { background: var(--panel); padding: 14px 16px; border-radius: var(--radius-lg); overflow-x: auto; }
.post-body pre code { background: none; padding: 0; }
.post-body table { border-collapse: collapse; }
.post-body th, .post-body td { border-bottom: 1px solid var(--border); padding: 6px 12px; text-align: left; }
