/* Daily Bluten Insights — main stylesheet */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --gold: #e0a526;
  --gold-dark: #b8841a;
  --ink: #1a1d24;
  --text: #333a45;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --c-market-trends: #13315c;
  --c-buying: #16697a;
  --c-selling: #9a031e;
  --c-mortgages: #2d6a4f;
  --c-investing: #4a4e69;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Top bar */
.topbar { background: var(--navy); color: #c9d6e8; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #c9d6e8; margin-left: 18px; }
.topbar a:hover { color: #fff; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--serif); font-size: 24px; letter-spacing: -.3px; }
.logo-text em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-dark); margin-top: 4px; }
.header-search { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg-soft); }
.header-search input { border: 0; background: transparent; padding: 8px 14px; width: 230px; outline: none; }
.header-search button { border: 0; background: transparent; padding: 0 14px; cursor: pointer; color: var(--muted); }
.header-search:focus-within { border-color: var(--navy-2); }

.main-nav { border-top: 1px solid var(--line); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.main-nav a { display: block; padding: 12px 13px; font-weight: 600; font-size: 14.5px; color: var(--ink); border-bottom: 3px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--navy-2); border-bottom-color: var(--line); }
.main-nav a.active { border-bottom-color: var(--gold); color: var(--navy); }
.sub-toggle { width: 22px; height: 40px; border: 0; background: none; cursor: pointer; margin-left: -12px; padding: 0; color: var(--muted); }
.sub-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(16, 24, 40, .12); padding: 8px; list-style: none; margin: 0; z-index: 60; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.main-nav .sub a { border: 0; padding: 9px 12px; border-radius: 6px; font-weight: 500; }
.main-nav .sub a:hover { background: var(--bg-soft); }
.mobile-search { display: none; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Badges & meta */
.cat-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #fff; background: var(--navy-2); padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; }
.cat-badge:hover { color: #fff; opacity: .9; }
.cat-badge.small { font-size: 11px; padding: 3px 8px; margin-bottom: 8px; }
.sec-real-estate { background: #13315c; }
.sec-home-garden { background: #2d6a4f; }
.sec-food { background: #b4400b; }
.sec-pets-outdoors { background: #16697a; }
.sec-hobbies { background: #4a4e69; }
.sec-travel-culture { background: #9a031e; }
.sec-quizzes-games { background: #5a189a; }

/* Chips & labels */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.chip span { font-size: 12px; color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--navy-2); color: var(--navy-2); }
.chip-accent { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.chip-accent:hover { background: #f0b93a; color: var(--navy); }
.cat-section .chips { margin: -8px 0 18px; }
.card-img { position: relative; display: block; }
.card-label { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; }
.card-label.static { position: static; display: inline-block; margin-bottom: 6px; }
.meta { font-size: 13px; color: var(--muted); }
.meta .dot { margin: 0 6px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; padding: 28px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.hero-img img { border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.hero-body { padding-top: 18px; }
.hero-body h1 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 12px; }
.hero-body h1 a { color: var(--ink); }
.hero-body h1 a:hover { color: var(--navy-2); }
.hero-body p { font-size: 17px; margin: 0 0 12px; }
.hero-side { display: flex; flex-direction: column; gap: 18px; }

/* Cards */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; }
.card-img img { border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; width: 100%; transition: transform .3s; }
.card-img { overflow: hidden; border-radius: var(--radius); }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding-top: 14px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--navy-2); }
.card p { margin: 0 0 8px; font-size: 15px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-row { flex-direction: row; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.card-row:last-child { border-bottom: 0; padding-bottom: 0; }
.card-row .card-img { flex: 0 0 140px; }
.card-row .card-body { padding-top: 0; }
.card-row h3 { font-size: 17px; }
.card-row p { display: none; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-bottom: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--navy); margin-bottom: 22px; padding-bottom: 8px; }
.section-head h2 { font-size: 24px; margin: 0; }
.section-head a { font-size: 14px; font-weight: 600; }
.cat-section { margin-top: 48px; }

/* Sidebar */
.sidebar { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 24px; }
.widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.widget h4 { font-size: 18px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.widget-promo { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #dbe5f3; border: 0; }
.widget-promo h4 { color: #fff; border-color: rgba(255, 255, 255, .15); }
.widget-promo p { font-size: 14.5px; margin: 0 0 14px; }
.mini-list, .cat-list { list-style: none; margin: 0; padding: 0; }
.mini { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini:last-child { border-bottom: 0; }
.mini a { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.35; font-size: 15.5px; }
.mini a:hover { color: var(--navy-2); }
.mini-num { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold); line-height: 1; min-width: 22px; }
.cat-list a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list span { background: var(--bg-soft); color: var(--muted); font-size: 12px; padding: 1px 8px; border-radius: 999px; }

/* Buttons */
.btn { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700; padding: 10px 18px; border-radius: 8px; border: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: #f0b93a; color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid #cbd5e1; }
.btn-outline:hover { background: var(--bg-soft); border-color: var(--navy-2); }
.btn-small { padding: 7px 14px; font-size: 14px; white-space: nowrap; }
.byline .jump { margin-left: auto; }

/* Homepage quiz band */
.quiz-band { background: linear-gradient(135deg, #f3ecff, #fff8e6); border-radius: 16px; padding: 28px; margin-bottom: 40px; }
.quiz-band .section-head { border-bottom-color: #5a189a; }
.band-intro { margin: -8px 0 20px; color: #4b5563; }

/* Article */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold); width: 0; z-index: 60; }
.article { padding-top: 28px; min-width: 0; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs span { margin: 0 8px; }
.article h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.4px; }
.dek { font-size: 19px; color: #4b5563; margin: 0 0 20px; line-height: 1.5; }
.byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.byline strong { color: var(--ink); font-size: 14.5px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: 0 0 auto; }
.cover { margin: 0 0 24px; }
.cover img { border-radius: var(--radius); width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-soft); }
.cover figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; text-align: right; }
.cover figcaption a { color: var(--muted); text-decoration: underline; }

/* Recipe card */
.recipe-card { border: 2px solid #f1d9a8; background: #fffcf5; border-radius: 14px; padding: 24px; margin: 32px 0; scroll-margin-top: 150px; }
.recipe-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.recipe-head h2 { font-size: 26px; margin: 0; }
.recipe-meta { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.recipe-meta li { background: #fff; border: 1px solid #f1e3c4; border-radius: 8px; padding: 10px; font-weight: 700; color: var(--ink); font-size: 15px; }
.recipe-meta span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.recipe-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; }
.recipe-cols h3 { font-size: 19px; }
.ingredients { list-style: none; padding: 0; margin: 0; }
.ingredients li { padding: 7px 0; border-bottom: 1px dashed #ecdcb8; }
.ingredients label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 16px; color: var(--text); cursor: pointer; }
.ingredients input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--gold-dark); }
.ingredients input:checked + span { text-decoration: line-through; color: var(--muted); }
.steps { padding-left: 22px; margin: 0; }
.steps li { margin-bottom: 12px; line-height: 1.6; }

/* Quiz */
.quiz { margin: 28px 0; scroll-margin-top: 140px; }
.quiz-bar { position: sticky; top: 118px; z-index: 5; display: flex; align-items: center; gap: 16px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 18px; }
.q-progress { flex: 1; height: 8px; background: rgba(255, 255, 255, .2); border-radius: 999px; overflow: hidden; }
.q-progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.quiz-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.quiz-q { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; box-shadow: var(--shadow); }
.q-num { font-size: 13px; font-weight: 700; color: #5a189a; text-transform: uppercase; letter-spacing: .6px; }
.q-text { font-size: 21px; margin: 6px 0 14px; }
.q-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-opt { text-align: left; font-size: 16px; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg-soft); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.q-opt b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--line); margin-right: 8px; font-size: 13px; }
.q-opt:hover:not(:disabled) { border-color: #5a189a; background: #f6f0ff; }
.q-opt:disabled { cursor: default; opacity: .75; }
.q-opt.correct { border-color: #15803d; background: #ecfdf3; opacity: 1; }
.q-opt.correct b { background: #15803d; color: #fff; border-color: #15803d; }
.q-opt.wrong { border-color: #b91c1c; background: #fef2f2; opacity: 1; }
.q-opt.wrong b { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.q-fact { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: #fef2f2; font-size: 15.5px; }
.q-fact.is-right { background: #ecfdf3; }
.quiz-ad { list-style: none; }
.quiz-result { text-align: center; margin-top: 24px; padding: 32px 20px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), #5a189a); color: #fff; }
.quiz-score-big b { font-family: var(--serif); font-size: 72px; line-height: 1; }
.quiz-score-big span { font-size: 28px; opacity: .8; margin-left: 6px; }
.q-message { font-size: 19px; margin: 12px auto 20px; max-width: 520px; }
.quiz-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Word game */
.game { border-radius: 16px; padding: 28px; background: linear-gradient(135deg, #f3ecff, #fff8e6); border: 1px solid #e9dcfb; margin-bottom: 32px; text-align: center; }
.game-head { display: flex; justify-content: center; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.game-head h2 { margin: 0; font-size: 28px; }
.game-streak { font-size: 14px; font-weight: 700; color: #5a189a; }
.game-hint { color: #4b5563; margin: 10px 0 18px; }
.tiles { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tile { width: 46px; height: 52px; display: grid; place-items: center; background: #fff; border: 2px solid #d8c6f3; border-bottom-width: 5px; border-radius: 10px; font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--navy); }
.tile-hint { border-color: var(--gold); background: #fff8e6; }
.game-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto 14px; }
.game-form input { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; text-align: center; }
.game-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.game-msg { min-height: 1.6em; margin: 14px 0 0; font-weight: 700; }
.game-msg.ok { color: #15803d; }
.game-msg.bad { color: #b91c1c; }
.toc { background: var(--bg-soft); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; border-left: 4px solid var(--gold); }
.toc summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.toc ol { margin: 10px 0 0; padding-left: 20px; }
.toc li { margin: 4px 0; font-size: 15px; }

.prose { font-size: 18px; line-height: 1.75; color: #2b313b; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-size: 27px; margin: 1.6em 0 .6em; scroll-margin-top: 150px; }
.prose h3 { font-size: 21px; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .55em; }
.prose a { color: var(--navy-2); text-decoration: underline; text-decoration-color: rgba(19, 49, 92, .3); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--gold); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--gold); font-family: var(--serif); font-size: 21px; color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 20px; }
.tag { font-size: 13px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); padding: 4px 12px; border-radius: 999px; }
.tag:hover { border-color: var(--navy-2); }
.note { background: #fffaf0; border: 1px solid #f3e1b5; border-radius: var(--radius); padding: 14px 18px; font-size: 14px; color: #5b4a22; margin-bottom: 20px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.share span { font-weight: 700; color: var(--ink); margin-right: 4px; }
.share a, .share button { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--navy); color: var(--navy); }
.related { border-top: 1px solid var(--line); padding: 36px 0 56px; }

/* Ads */
.ad-slot { margin: 24px 0; text-align: center; min-height: 100px; }
.ad-label { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #9ca3af; margin-bottom: 4px; }
.hero + .ad-slot, main > .ad-slot:first-child { margin-top: 20px; }

/* Page head */
.page-head { padding: 32px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); }
.page-head p { font-size: 18px; color: #4b5563; max-width: 720px; margin: 0; }
.static-page h1 { margin-bottom: 20px; }

/* Forms */
.contact-form, .calc-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(224, 165, 38, .45); border-color: var(--gold-dark); }
.form-hint { font-size: 14px; color: var(--muted); }
.contact-form .btn { justify-self: start; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 8px 0 32px; font-size: 16px; line-height: 1.5; }
.calc-result { background: #fff; border-radius: 12px; padding: 22px; box-shadow: var(--shadow); align-self: start; }
.calc-total span { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.calc-total strong { font-family: var(--serif); font-size: 44px; color: var(--navy); line-height: 1.1; }
.calc-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 16px 0; background: var(--line); }
.calc-bar i { display: block; height: 100%; }
.calc-break { list-style: none; padding: 0; margin: 0 0 16px; }
.calc-break li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; margin: 0; }
.calc-break b { margin-left: auto; color: var(--ink); }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-pi { background: #13315c; } .sw-tax { background: #e0a526; } .sw-ins { background: #2d6a4f; } .sw-pmi { background: #9a031e; } .sw-hoa { background: #8d99ae; }
.calc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.calc-stats div { background: var(--bg-soft); border-radius: 8px; padding: 10px 12px; }
.calc-stats dt { font-size: 12.5px; color: var(--muted); }
.calc-stats dd { margin: 0; font-weight: 700; color: var(--ink); }

/* Search */
.search-page-form { display: flex; gap: 10px; margin-bottom: 8px; }
.search-results { display: grid; gap: 22px; margin-top: 18px; }
.search-results .card { flex-direction: row; gap: 18px; }
.search-results .card-img { flex: 0 0 200px; }
.search-results .card-body { padding-top: 0; }
.search-results mark { background: #fdf0c8; color: inherit; }

/* 404 */
.notfound { padding: 48px 16px; text-align: center; }
.notfound h1 { font-size: 96px; color: var(--navy); margin: 0; }
.notfound .section-head { margin-top: 48px; text-align: left; }
.notfound .grid { text-align: left; padding-bottom: 48px; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c6d8; padding: 48px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b9c6d8; }
.site-footer a:hover { color: var(--gold); }
.logo-footer .logo-text strong { color: #fff; }
.logo-footer { margin-bottom: 14px; display: inline-flex; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom p { margin: 0; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; background: var(--navy); color: #dbe5f3; border-radius: 12px; padding: 16px 20px; display: flex; gap: 16px; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); z-index: 80; font-size: 14.5px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; box-shadow: var(--shadow); }
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* Responsive */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }
  .hero { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-search { margin-left: auto; }
  .nav-toggle { display: block; margin-left: 0; }
  .main-nav { display: none; max-height: calc(100vh - 110px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding-bottom: 12px; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; border-bottom: 0; border-left: 3px solid transparent; }
  .main-nav a.active { border-left-color: var(--gold); }
  .sub-toggle { width: 52px; height: 46px; margin-left: 0; }
  .has-sub.open .sub-toggle::after { transform: translateY(2px) rotate(-135deg); }
  .sub { position: static; width: 100%; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 16px; min-width: 0; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .quiz-bar { top: 74px; }
}
@media (max-width: 760px) {
  .topbar-links { display: none; }
  .header-inner { height: 64px; }
  .header-search { display: none; }
  .nav-toggle { margin-left: auto; }
  .mobile-search { display: block; padding: 12px 0 4px; }
  .quiz-bar { top: 64px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .q-options { grid-template-columns: 1fr; }
  .q-text { font-size: 19px; }
  .recipe-meta { grid-template-columns: 1fr 1fr; }
  .recipe-cols { grid-template-columns: 1fr; }
  .recipe-head { flex-direction: column; }
  .recipe-card, .game, .quiz-band { padding: 18px; }
  .byline { flex-wrap: wrap; }
  .tile { width: 36px; height: 44px; font-size: 21px; }
  .card-row .card-img { flex-basis: 110px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 24px; }
  .dek { font-size: 17px; }
  .form-row, .calc { grid-template-columns: 1fr; }
  .calc { padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .search-results .card { flex-direction: column; }
  .search-results .card-img { flex-basis: auto; }
}

/* Print: recipe-only when "Print recipe" is used; clean article print otherwise */
@media print {
  .topbar, .site-header, .site-footer, .sidebar, .related, .share, .cookie-banner, .back-to-top, .progress, .ad-slot, .toc, .jump, [data-print-recipe] { display: none !important; }
  .layout { display: block; }
  body.print-recipe main > .layout > .article > *:not(.recipe-card) { display: none !important; }
  body.print-recipe .recipe-card { border: 0; padding: 0; margin: 0; background: #fff; }
  .recipe-cols { grid-template-columns: 1fr 1.4fr; }
}

/* Ranked lists, trivia Q&A, promo strip */
.prose ol.ranked { padding-left: 1.6em; }
.prose ol.ranked li { margin-bottom: .8em; }
.prose ol.ranked li::marker { font-family: var(--serif); font-weight: 700; color: var(--gold-dark); }
.trivia-list { padding-left: 1.6em; }
.trivia-list li { margin-bottom: 14px; }
.trivia-list .tq { font-weight: 600; color: var(--ink); }
.trivia-list details { margin-top: 4px; }
.trivia-list summary { cursor: pointer; font-size: 14px; font-weight: 700; color: #5a189a; display: inline-block; }
.trivia-list details p { margin: 6px 0 0; padding: 8px 12px; background: #ecfdf3; border-radius: 8px; font-size: 16px; }
.promo-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 32px; border-radius: 12px; background: var(--navy); color: #fff; }
.promo-strip:hover { color: #fff; background: var(--navy-2); }
.promo-strip span { color: var(--gold); font-weight: 600; }

/* Word search */
.wordsearch { text-align: left; }
.wordsearch .game-head { justify-content: flex-start; }
.wsr-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 14px 0 6px; }
.wsr-controls label { font-size: 13px; }
.wsr-controls select { padding: 7px 10px; font-size: 15px; }
.wsr-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 20px; align-items: start; margin-top: 12px; }
.wsr-grid { display: grid; grid-template-columns: repeat(var(--n, 13), 1fr); gap: 2px; background: #fff; border: 2px solid #d8c6f3; border-radius: 12px; padding: 8px; max-width: 560px; user-select: none; }
.wsr-cell { aspect-ratio: 1; border: 0; background: transparent; font-family: var(--sans); font-weight: 700; font-size: clamp(12px, 2.4vw, 20px); color: var(--navy); border-radius: 6px; cursor: pointer; padding: 0; text-transform: uppercase; }
.wsr-cell:hover { background: #f3ecff; }
.wsr-cell.sel { background: var(--gold); color: var(--navy); }
.wsr-cell.found { color: #fff; }
.wsr-cell.f0 { background: #5a189a; } .wsr-cell.f1 { background: #2d6a4f; } .wsr-cell.f2 { background: #b4400b; }
.wsr-cell.f3 { background: #13315c; } .wsr-cell.f4 { background: #9a031e; } .wsr-cell.f5 { background: #16697a; }
.wsr-words { list-style: none; margin: 0; padding: 0; columns: 1; }
.wsr-words li { font-weight: 700; letter-spacing: 1px; padding: 5px 0; border-bottom: 1px dashed #e9dcfb; color: var(--ink); font-size: 15px; }
.wsr-words li.done { text-decoration: line-through; color: var(--muted); }
@media (max-width: 760px) {
  .wsr-wrap { grid-template-columns: 1fr; }
  .wsr-words { columns: 2; }
  .wsr-grid { padding: 4px; gap: 1px; }
}
@media print {
  body.print-ws main > header, body.print-ws .content > *:not(#wordsearch), body.print-ws .wsr-controls, body.print-ws .game-hint, body.print-ws .game-msg { display: none !important; }
  body.print-ws .game { background: #fff; border: 0; padding: 0; }
  body.print-ws .wsr-wrap { grid-template-columns: 1fr; }
  body.print-ws .wsr-grid { max-width: 100%; border: 2px solid #000; }
  body.print-ws .wsr-cell { color: #000 !important; background: none !important; font-size: 22px; }
  body.print-ws .wsr-words { columns: 3; margin-top: 16px; }
  body.print-ws .wsr-words li { text-decoration: none; color: #000; }
  .trivia-list details { display: block; }
}
