:root {
  --bg: #faf7f2;
  --ink: #1a1814;
  --muted: #6b6560;
  --card: #ffffff;
  --line: #e8e2d8;
  --accent: #b54a3a;
  --accent-dark: #8f3a2e;
  --ok: #2f6b4f;
  --warn: #9a6b1f;
  --chip: #f0ebe3;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(26,24,20,.06), 0 8px 24px rgba(26,24,20,.06);
  --max: 1100px;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  font-size: 16px;
}
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0; flex-wrap: wrap;
}
.logo {
  font-family: var(--font);
  font-size: 1.25rem; font-weight: 700; color: var(--ink);
  text-decoration: none; letter-spacing: -.01em;
}
.logo span { color: var(--accent); }
nav { display: flex; gap: .75rem; flex-wrap: wrap; }
nav a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 550;
  padding: .35rem .55rem; border-radius: 999px;
  display: inline-flex; align-items: center; min-height: 44px;
}
nav a:hover, nav a.active { background: var(--chip); color: var(--ink); }
.hero {
  padding: 2.25rem 0 1.25rem;
}
.hero h1 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -.02em;
}
.hero p { color: var(--muted); max-width: 42rem; margin: 0 0 1.25rem; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; border: 1px solid transparent; border-radius: 999px;
  padding: .65rem 1.1rem; font-weight: 600; font-size: .95rem;
  cursor: pointer; text-decoration: none; background: var(--accent); color: #fff;
  min-height: 44px;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:focus-visible { outline: 2px solid #1a1814; outline-offset: 2px; }
.btn.secondary {
  background: #fff; border: 1.5px solid #8a8178; color: #1a1814;
}
.btn.secondary:hover { background: #f0ebe3; border-color: #1a1814; color: #1a1814; }
.btn.ghost { background: var(--chip); color: var(--ink); }
.btn.ghost:hover { background: #e4ddd2; color: var(--ink); }
.btn.ghost[aria-pressed="true"] { background: #1a1814; color: #fff; }
.btn.ghost[aria-pressed="true"]:hover { background: #1a1814; color: #fff; }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem;
}
.grid-3 {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.feature p { margin: 0 0 .75rem; color: var(--muted); font-size: .92rem; }
.feature .btn { margin-top: .25rem; }
.section { padding: 1.5rem 0 2rem; }
.section h2 {
  font-family: var(--font); font-size: 1.55rem; margin: 0 0 .75rem;
}
.filters {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 1rem;
}
label.field { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; color: var(--muted); font-weight: 600; }
select, input[type="number"], input[type="text"] {
  border: 1px solid #c9bfb2; border-radius: 8px; padding: .55rem .65rem;
  font: inherit; background: #fff; color: var(--ink);
  min-height: 44px;
}
.meta-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: .75rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem;
  margin-bottom: .75rem;
}
.cards {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: stretch;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .55rem;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.card h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.price { font-size: 1.25rem; font-weight: 700; }
.price.na { color: var(--muted); font-size: 1rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
  background: var(--chip); color: var(--muted); border-radius: 999px;
  padding: .15rem .55rem; font-size: .75rem; font-weight: 600;
}
.chip.ok { background: #e5f2ea; color: var(--ok); }
.card .actions { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.card .actions .btn {
  font-size: .85rem; padding: .45rem .85rem;
}
.detail-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1.2fr .8fr;
}
@media (max-width: 800px) {
  .detail-grid { grid-template-columns: 1fr; }
}
.buy-panel {
  position: sticky;
  top: 5rem;
  align-self: start;
}
.back-link {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: .35rem .25rem;
  text-decoration: none; font-weight: 550;
}
.back-link:hover { color: var(--accent); }
.detail-buy-inline { margin: 1rem 0 0; }
.buy-hint { display: block; margin-top: .35rem; }
.specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.specs th, .specs td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 600; width: 40%; }
.checker {
  display: grid; gap: 1rem; grid-template-columns: 1fr 1fr;
}
@media (max-width: 700px) { .checker { grid-template-columns: 1fr; } }
.result {
  margin-top: 1rem; padding: 1rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
}
.result.pass { border-color: #b7dcc8; background: #f2faf5; }
.result.fail { border-color: #e8c2ba; background: #fff6f4; }
.result.warn { border-color: #e6d4a8; background: #fffaf0; }
.placeholder {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 2rem 1.25rem; background: #fff; color: var(--muted);
}
.site-footer {
  margin-top: 2rem; padding: 2rem 0 2.5rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .86rem;
}
.site-footer .disclaimer {
  margin-top: .75rem; max-width: 48rem;
}
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--chip); color: var(--muted); padding: .2rem .5rem; border-radius: 6px;
}
.muted { color: var(--muted); }
.small { font-size: .86rem; }

/* Prose pages (guides, rules, landings) */
.prose {
  max-width: 42rem;
}
.prose h1 {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 .75rem;
  line-height: 1.2;
}
.prose h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  margin: 1.75rem 0 .6rem;
}
.prose h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 .4rem;
}
.prose p, .prose li {
  color: var(--ink);
  margin: 0 0 .85rem;
}
.prose ul, .prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.prose .lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.prose .callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
}
.prose .callout p:last-child { margin-bottom: 0; }
.prose .pick-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.prose .pick-list li,
.pick-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin-bottom: .65rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem .85rem;
  min-height: 44px;
}
.prose .pick-list .pick-main,
.pick-list .pick-main {
  flex: 1 1 12rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.prose .pick-list .pick-main:hover,
.pick-list .pick-main:hover { color: var(--accent); }
.prose .pick-list .pick-price {
  font-weight: 700;
  margin-right: .35rem;
}
.prose .pick-list .pick-meta {
  color: var(--muted);
  font-size: .86rem;
  margin-top: .25rem;
}
.pick-list .btn { flex: 0 0 auto; font-size: .85rem; padding: .45rem .85rem; }
.footer-nav {
  margin: .65rem 0 0;
  display: flex; flex-wrap: wrap; gap: .15rem .35rem; align-items: center;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 550;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 .45rem;
  border-radius: 999px;
}
.footer-nav a:hover { background: var(--chip); color: var(--ink); }

.card-thumb {
  position: relative;
  display: block;
  margin: 0 0 .75rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--chip);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
}
.card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.card-thumb.placeholder-thumb {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .82rem; font-weight: 600;
  text-decoration: none;
}
.detail-media { margin:0 0 1rem; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); background:var(--card); max-width:520px; }
.detail-media img { width:100%; height:auto; display:block; vertical-align:middle; }


/* Mobile hamburger */
.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border, #d8d0c4);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle:focus-visible {
  outline: 2px solid #1a1814;
  outline-offset: 2px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform .15s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-header.nav-open .nav-toggle span { background: transparent; }
.site-header.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-header .header-inner { flex-wrap: wrap; }
  .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0 0.75rem;
  }
  .site-header.nav-open nav { display: flex; }
  .site-header nav a {
    padding: 0.6rem 0.4rem;
    border-radius: 6px;
  }
}


/* Deals / conversion rows */
.deal-list .deal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}
.deal-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--chip);
  position: relative;
  display: block;
  text-decoration: none;
}
.deal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.deal-thumb.placeholder-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .35rem;
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}
.deal-list .pick-main-wrap {
  flex: 1 1 14rem;
  min-width: 0;
}
.deal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.drop-badge {
  display: inline-block;
  margin-left: .35rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: #e8f5e9;
  color: #1b5e20;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.was-price {
  margin-left: .35rem;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
  font-size: .9rem;
}
.chip.warn {
  background: #fce8e6;
  color: #8a1c14;
  border-color: #f5c2bc;
}
.detail-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 1.25rem;
  text-align: center;
  background: var(--chip);
}
.detail-media-placeholder .placeholder-label {
  font-weight: 700;
  margin: 0 0 .35rem;
  color: var(--muted);
}
.btn[aria-disabled="true"],
.btn.ghost[aria-disabled="true"] {
  opacity: .65;
  cursor: not-allowed;
  pointer-events: none;
}
.deals-page .lede { max-width: 46rem; }
