:root {
  color-scheme: light;
  --color-primary: #16202e;
  --color-accent: #f0a500;
  --color-accent-text: #8a5a00;
  --color-on-accent: #16202e;
  --color-background: #f6f7f9;
  --color-surface: #ffffff;
  --color-text: #16202e;
  --color-muted: #4a5666;
  --color-border: #c3cad4;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --color-primary: #ffffff;
    --color-accent: #f0a500;
    --color-accent-text: #f0a500;
    --color-on-accent: #16202e;
    --color-background: #0f1722;
    --color-surface: #16202e;
    --color-text: #eef1f5;
    --color-muted: #b4bdca;
    --color-border: #3a4759;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-primary: #ffffff;
  --color-accent: #f0a500;
  --color-accent-text: #f0a500;
  --color-on-accent: #16202e;
  --color-background: #0f1722;
  --color-surface: #16202e;
  --color-text: #eef1f5;
  --color-muted: #b4bdca;
  --color-border: #3a4759;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--color-background); color: var(--color-text); }
header, main, footer { max-width: 1160px; margin: auto; padding: 24px 16px; }
header, footer, nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
header { justify-content: space-between; border-bottom: 3px solid var(--color-accent); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-primary); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; text-decoration: none; }
.brand-mark { height: 30px; width: auto; fill: currentColor; }
.brand-mark .gold { fill: var(--color-accent); }
.eyebrow { margin: 0 0 8px; color: var(--color-accent-text); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
a { color: var(--color-primary); text-underline-offset: 3px; }
button, #app-banner a { font: inherit; font-weight: 600; border: 1px solid var(--color-primary); border-radius: 6px; padding: 10px 16px; background: var(--color-surface); color: var(--color-primary); cursor: pointer; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
.hero { padding: 28px 0 44px; max-width: 760px; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.15; letter-spacing: -0.035em; }
#app-banner { display: flex; gap: 12px; flex-wrap: wrap; }
#offers-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 20px; padding: 0; list-style: none; }
.offer-card { padding: 18px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; min-width: 0; }
.offer-main { display: block; text-decoration: none; }
.offer-title { font-size: 1.15rem; line-height: 1.4; overflow-wrap: anywhere; }
.offer-niche { align-self: flex-start; font-size: .8rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; background: var(--color-accent); color: var(--color-on-accent); }
#niche-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
#niche-list li { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--color-surface); border: 1px solid var(--color-border); border-top: 6px solid var(--niche-color, var(--color-accent)); border-radius: 12px; }
#niche-list a { color: var(--color-text); font-size: 1.25rem; text-decoration: none; }
#niche-list a:hover { text-decoration: underline; }
#niche-list span { color: var(--color-muted); }
.offer-image { display: block; width: 100%; height: 160px; object-fit: contain; border-radius: 6px; }
.offer-image-placeholder { background: var(--color-background); }
.offer-price { font-size: 1.6rem; font-weight: 750; margin-bottom: 4px; }
.offer-badge { display: inline-block; margin-left: 12px; padding: 2px 8px; background: var(--color-accent); color: var(--color-on-accent); font-weight: 700; border-radius: 4px; }
.offer-disclosure, .offer-checked, .offer-confirm, .offer-mention { font-size: .85rem; color: var(--color-muted); }
.offer-disclosure { margin-top: 0; }
footer { border-top: 1px solid var(--color-border); margin-bottom: 180px; }
.consent-bar { position: fixed; bottom: 0; left: 0; right: 0; max-height: 65vh; overflow: auto; padding: 16px; background: var(--color-surface); border-top: 2px solid var(--color-border); box-shadow: 0 -3px 20px #0002; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
.consent-bar p { flex-basis: 100%; margin: 0; text-align: center; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.offer-recommendation { margin-top: 16px; padding: 12px; border-radius: 6px; background: var(--color-background); overflow-wrap: anywhere; }
.offer-summary { margin: 0 0 10px; }
.offer-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.offer-source-chip { border: 1px solid var(--color-border); border-radius: 20px; padding: 4px 10px; background: var(--color-surface); font-size: .85rem; }

.db-offline-banner { padding: 1rem; background: var(--color-surface, #f1f5f9); color: var(--color-text, #1e293b); border-bottom: 2px solid var(--color-primary, #2563eb); text-align: center; }

/* Niche hub and guide navigation */
.hub-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:32px; margin:20px 0 24px; border-radius:16px; background:var(--color-surface); border:1px solid var(--color-border); }
.hub-hero-copy { max-width:720px; }
.hub-hero h1 { margin:.1em 0 .25em; }
.hub-lede,.hub-intro { color:var(--color-muted); font-size:1.08rem; }
.hub-art { color:var(--color-accent); flex:0 0 190px; text-align:center; }
.hub-cup { width:min(100%,190px); }
.hub-entries { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; margin:24px 0 40px; }
.hub-entries>a,.hub-item { display:flex; gap:12px; align-items:flex-start; padding:16px; border:1px solid var(--color-border); border-radius:12px; background:var(--color-surface); text-decoration:none; }
.hub-entries>a { display:flex; flex-direction:column; }
.hub-entries small,.hub-item small { color:var(--color-muted); }
.hub-section { margin:42px 0; scroll-margin-top:20px; }
.hub-section-title { display:flex; align-items:baseline; justify-content:space-between; gap:12px; border-bottom:1px solid var(--color-border); }
.hub-section-title small { color:var(--color-muted); }
.hub-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:10px; list-style:none; padding:0; }
.hub-item { color:var(--color-text); min-width:0; overflow-wrap:anywhere; }
.hub-item:hover,.hub-entries>a:hover { border-color:var(--color-accent); }
.hub-item-mark { width:10px; height:10px; flex:0 0 10px; margin-top:8px; border-radius:50%; background:var(--color-accent); }
.hub-groups { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr)); gap:20px; }
.hub-groups .hub-list { grid-template-columns:1fr; }
.crumb { margin:8px 0; color:var(--color-muted); }
.home-hubs { margin:32px 0; }
.category-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:16px; }
.category-card { padding:20px; background:var(--color-surface); border:1px solid var(--color-border); border-radius:14px; }
.category-card h2 { margin:.1em 0; }
.category-card nav { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:16px; }
.category-card nav a { padding:10px; border:1px solid var(--color-border); border-radius:8px; text-decoration:none; }
@media(max-width:520px) { .hub-hero { padding:22px 18px; } .hub-art { flex-basis:90px; } .category-card nav { grid-template-columns:1fr; } }
.hub-nav { display:flex; flex-wrap:wrap; gap:12px; justify-content:flex-end; }
.hub-nav a { padding:6px 8px; border-radius:6px; text-decoration:none; }
.hub-nav a:hover { background:var(--color-surface); }
@media(max-width:760px) { header .hub-nav { flex-basis:100%; justify-content:flex-start; gap:8px; } }

/* Approved Café hub layout */
.hub-nav-row { width:100%; background:var(--color-background); border-top:1px solid var(--color-border); border-bottom:1px solid var(--color-border); }
.hub-nav-row .hub-nav { max-width:1160px; min-height:50px; margin:auto; padding:0 16px; display:flex; align-items:center; justify-content:flex-start; gap:30px; }
.hub-nav a { color:var(--color-text); text-decoration:none; padding:14px 0; }
.hub-nav a:hover { color:var(--color-accent-text); background:transparent; text-decoration:underline; }
.hub-hero { min-height:285px; display:grid; grid-template-columns:1.5fr 1fr; align-items:center; gap:56px; margin:0; padding:36px 0 30px; border:0; border-radius:0; background:transparent; color:var(--color-text); }
.hub-hero-copy { max-width:720px; }
.hub-hero h1 { max-width:720px; font-size:clamp(2.4rem,5vw,3.9rem); line-height:1.08; letter-spacing:-.05em; }
.hub-lede { margin-top:20px; font-size:1.12rem; color:var(--color-muted); }
.hub-art { height:225px; width:100%; max-width:400px; justify-self:end; flex:initial; position:relative; display:grid; place-items:center; overflow:hidden; border-radius:50% 50% 8% 8%; background:#f8c95b; color:#16202e; }
.hub-cup { width:240px; height:190px; color:#16202e; }
.hub-cup path,.hub-cup ellipse { stroke:#16202e; }
.hub-art small { position:absolute; bottom:15px; left:0; right:0; color:#16202e; text-align:center; font-size:.75rem; font-weight:650; }
.hub-entries { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:0 0 0; overflow:hidden; border-radius:8px; background:#16202e; color:#fff; }
.hub-entries>a { min-width:0; min-height:120px; padding:22px 25px; border:0; border-right:1px solid #43505e; border-radius:0; background:transparent; color:#fff; }
.hub-entries>a:last-child { border-right:0; }
.hub-entries>a:hover { background:#253448; border-color:#43505e; color:#fff; }
.hub-entries small { order:0; color:#f8c95b; font-size:.75rem; }
.hub-entries b { order:1; display:block; margin:2px 0 5px; color:#fff; font-size:1.15rem; }
.hub-entries span { order:2; color:#d5dee8; font-size:.82rem; }
.hub-section { margin:0; padding:40px 0 4px; scroll-margin-top:20px; }
.hub-section-title { margin-bottom:12px; border:0; }
.hub-section-title h2 { font-size:1.8rem; }
.hub-section-title small { white-space:nowrap; color:var(--color-muted); }
.hub-intro { margin-bottom:20px; color:var(--color-muted); font-size:.9rem; }
.hub-list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 28px; }
.hub-item,.hub-groups .hub-item { min-height:78px; padding:16px 0; align-items:center; gap:16px; border:0; border-bottom:1px solid var(--color-border); border-radius:0; background:transparent; color:var(--color-text); }
.hub-item:hover,.hub-entries>a:hover { border-color:var(--color-border); }
.hub-item:hover strong { text-decoration:underline; }
.hub-item-mark { display:none; }
.hub-item strong { font-size:1rem; }
.hub-item small { display:block; margin-top:3px; font-size:.78rem; }
.hub-groups { grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; border-top:1px solid var(--color-border); margin-top:24px; }
.hub-group { min-width:0; padding:20px 18px 5px 0; }
.hub-group+.hub-group { padding-left:18px; border-left:1px solid var(--color-border); }
.hub-group h3 { margin-bottom:8px; font-size:1.18rem; }
.hub-groups .hub-list { grid-template-columns:1fr; gap:0; }
.hub-groups .hub-item { min-height:0; padding:7px 0; font-size:.82rem; }
.guide-directory-link { margin:26px 0 10px; }
.guide-directory-link a { display:inline-block; padding:9px 14px; border:1px solid var(--color-border); border-radius:5px; }
#offers { margin-top:45px; }
#offers>h2 { font-size:1.8rem; }
.guide-head { max-width:760px; padding:38px 0 26px; }
.guide-head h1 { max-width:760px; }
.guide-grid { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:60px; align-items:start; }
.guide-content { min-width:0; }
.guide-content>p:first-child { margin:0 0 30px; padding:18px 20px; border-radius:8px; background:#eaf0f6; }
.guide-content section { margin:0 0 28px; }
.guide-content h2 { margin:24px 0 14px; font-size:1.55rem; }
.guide-content li { margin:14px 0; padding-left:5px; }
.guide-related { align-self:start; padding:20px 25px; border-radius:8px; background:var(--color-background); }
.guide-related h2 { margin:0 0 15px; font-size:1.4rem; }
.guide-related ul { padding-left:18px; }
.guide-related li { margin:15px 0; font-size:.9rem; }
.home-intro { padding-top:50px; }
.home-intro h1 { max-width:750px; }
.home-intro p { margin-top:20px; font-size:1.18rem; color:var(--color-muted); }
.home-hubs { margin:38px 0; }
.home-feature { margin:0; padding:40px; grid-template-columns:1fr 1fr; gap:35px; border-radius:10px; background:#eaf0f6; }
.home-feature h2 { margin:0 0 15px; font-size:2.25rem; }
.home-feature p { margin:0 0 20px; color:var(--color-muted); }
.home-feature nav { display:block; }
.home-feature nav a { display:block; padding:16px 0; border-bottom:1px solid #c3cdd9; text-decoration:none; }
.home-feature nav small { margin-left:6px; color:var(--color-muted); }
.hub-home-cta { display:inline-block; padding:11px 18px; border-radius:5px; background:var(--color-accent); color:var(--color-on-accent); font-weight:750; text-decoration:none; }
.hub-home-cta:hover { color:var(--color-on-accent); }
@media(max-width:750px) {
 .hub-nav-row .hub-nav { min-height:48px; gap:25px; overflow-x:auto; padding:0 16px; white-space:nowrap; }
 .hub-hero { min-height:0; grid-template-columns:1fr; gap:20px; padding:30px 0 24px; }
 .hub-hero h1 { font-size:clamp(2.35rem,8vw,2.8rem); }
 .hub-art { display:none; }
 .hub-entries { grid-template-columns:1fr; }
 .hub-entries>a { min-height:0; padding:16px 20px; border-right:0; border-bottom:1px solid #43505e; }
 .hub-entries b { display:inline; margin-right:10px; font-size:1.05rem; }
 .hub-entries span { display:block; margin-top:3px; }
 .hub-entries small { display:inline; }
 .hub-list { grid-template-columns:1fr; }
 .hub-groups { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .hub-group:nth-child(3) { padding-left:0; border-left:0; }
 .hub-group:nth-child(3),.hub-group:nth-child(4) { border-top:1px solid var(--color-border); }
 .hub-group:nth-child(4) { padding-left:18px; }
 .guide-grid { display:block; }
 .guide-related { margin-top:32px; }
 .home-feature { grid-template-columns:1fr; padding:24px; }
}
@media(prefers-color-scheme:dark) {
 :root:not([data-theme="light"]) .hub-entries { background:#16202e; color:#fff; }
 :root:not([data-theme="light"]) .hub-art { background:#f8c95b; }
 :root:not([data-theme="light"]) .home-feature { background:#253448; }
 :root:not([data-theme="light"]) .guide-content>p:first-child { background:#253448; }
 :root:not([data-theme="light"]) .guide-related { background:#16202e; }
}
:root[data-theme="dark"] .hub-entries { background:#16202e; color:#fff; }
:root[data-theme="dark"] .home-feature, :root[data-theme="dark"] .guide-content>p:first-child { background:#253448; }
:root[data-theme="dark"] .guide-related { background:#16202e; }
.hub-brand-label { margin:0 0 5px; color:var(--color-muted); font-size:.8rem; letter-spacing:0; text-transform:none; }
