/* Theme kit: image-led layout. Per-site colours come from site.json (brand, ink) via base.njk. */
:root {
  --brand: #0b5e57;
  --ink: #0c1f1d;
  --brand-dark: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-bright: color-mix(in srgb, var(--brand) 72%, #fff);
  --brand-soft: color-mix(in srgb, var(--brand) 13%, #fff);
  --brand-light: color-mix(in srgb, var(--brand) 24%, #fff);
  --teal: var(--brand);
  --teal-soft: var(--brand-soft);
  --accent: var(--brand);
  --accent-2: var(--brand);
  --ink-deep: var(--ink);
  --bg: #f6f4ef;
  --panel: #ffffff;
  --panel-2: #faf8f3;
  --text: #102033;
  --muted: #5a6b7d;
  --border: #e3ded3;
  --sand: #f6f4ef;
  --shadow: 0 14px 40px rgba(20, 30, 28, 0.09);
  --radius: 22px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #faf8f3 0%, #f4f1ea 100%);
  color: var(--text);
  overflow-x: clip;
}

/* ===== BathroomRefresh components: callouts, diagrams, checklists, planner quiz, print ===== */

/* "Before you buy" and similar callouts inside articles and guides */
.callout { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--panel-2); }
.callout h3 { margin: 0 0 8px; font-size: 1.05rem; }
.callout ul, .callout ol { margin: 0; padding-left: 20px; }
.callout p { margin: 0 0 8px; }
.callout p:last-child { margin-bottom: 0; }

/* original diagrams (inline SVG) */
.diagram { margin: 28px 0; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.diagram svg { display: block; width: 100%; height: auto; max-width: 720px; margin: 0 auto; }
.diagram figcaption { margin-top: 10px; font-size: 0.92rem; color: var(--muted); text-align: center; }
.diagram .d-text { font-family: Arial, sans-serif; fill: #102033; font-size: 14px; }
.diagram .d-small { font-family: Arial, sans-serif; fill: #5a6b7d; font-size: 12px; }
.diagram .d-bold { font-family: Arial, sans-serif; fill: #102033; font-size: 14px; font-weight: 700; }

/* tools: shared buttons and progress */
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 24px; }
.tool-actions button, .quiz-nav button, .quiz-result button { font: inherit; font-weight: 700; border-radius: 999px; padding: 10px 18px; border: 1px solid var(--border); background: var(--panel); color: var(--text); cursor: pointer; }
.tool-actions button:hover, .quiz-nav button:hover, .quiz-result button:hover { border-color: var(--accent-2); }
.tool-actions button.is-primary, .quiz-nav button.is-primary { background: var(--accent-2); border-color: var(--accent-2); color: #ffffff; }
.tool-progress { font-weight: 700; color: var(--accent); }

/* tickable checklists */
.checklist fieldset { border: 1px solid var(--border); border-radius: 14px; padding: 12px 18px 8px; margin: 0 0 18px; background: var(--panel); }
.checklist legend { font-weight: 800; padding: 0 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--border); cursor: pointer; }
.check:first-of-type { border-top: 0; }
.check input { flex: none; margin-top: 4px; width: 20px; height: 20px; accent-color: var(--accent); }
.check small { display: block; color: var(--muted); font-size: 0.88rem; }
.check input:checked + span { color: var(--muted); text-decoration: line-through; }
.tool-note { margin-top: 18px; font-size: 0.95rem; color: var(--muted); }

/* planner quiz */
.quiz { margin: 24px 0; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.quiz-step h2 { margin-top: 0; font-size: 1.3rem; }
.quiz-count { font-size: 0.9rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.quiz-options { display: grid; gap: 10px; margin: 16px 0; }
.quiz-option { display: block; text-align: left; font: inherit; width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); color: var(--text); cursor: pointer; }
.quiz-option small { display: block; color: var(--muted); font-size: 0.9rem; }
.quiz-option:hover, .quiz-option:focus-visible { border-color: var(--accent-2); }
.quiz-option[aria-pressed="true"] { border-color: var(--accent-2); background: #eaf1ff; box-shadow: inset 0 0 0 1px var(--accent-2); }
.quiz-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz-result h2 { margin-top: 0; }
.fix-list { list-style: none; counter-reset: fix; margin: 16px 0; padding: 0; display: grid; gap: 14px; }
.fix-list li { counter-increment: fix; position: relative; padding: 14px 16px 14px 56px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel-2); }
.fix-list li::before { content: counter(fix); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #ffffff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fix-list h3 { margin: 0 0 4px; font-size: 1.05rem; }
.fix-list p { margin: 0 0 6px; }
.fix-meta { font-size: 0.88rem; color: var(--muted); }
.fix-links a { margin-right: 14px; }
.js .quiz-fallback { display: none; }
.quiz-fallback h2 { margin-top: 28px; }

/* print: checklists and plans print as plain pages */
@media print {
  .site-header, .site-footer, .ad-slot, .tool-actions, .quiz-nav, .related-articles, .no-print { display: none !important; }
  body { background: #ffffff !important; }
  .page-copy, .quiz { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  .checklist fieldset, .fix-list li { break-inside: avoid; }
  .check input { appearance: auto; }
  a { color: #000000; text-decoration: none; }
}

/* ===== home and hub tiles ===== */
.home-section { margin: 40px 0; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { display: block; padding: 18px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.tile:hover, .tile:focus-visible { border-color: var(--accent-2); text-decoration: none; }
.tile h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--accent-2); }
.tile p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.tile strong { color: var(--accent); }
.home-section .article-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.home-section .article-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.home-section .article-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* home hero: the picture sits inside a figure, so size the image itself */
.hero-home > * { min-width: 0; }
.hero-visual { border: 0; background: none; border-radius: 0; }
.hero-visual img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--border); object-fit: cover; }

/* contact form */
.contact-form { display: grid; gap: 14px; max-width: 560px; margin-top: 20px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); color: var(--text); width: 100%; box-sizing: border-box; }
.contact-form button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.contact-form button:disabled { opacity: .6; cursor: default; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { margin: 0; min-height: 1.4em; }
.contact-status.is-ok { color: var(--brand); }
.contact-status.is-error { color: #b91c1c; }
.contact-note { color: var(--muted, #5a6b7d); font-size: .9rem; }


/* home hero, full bleed */
body.home .main-content { padding-top: 0; }
.hero-bleed {
  position: relative; width: 100vw; margin: 0 0 40px calc(50% - 50vw);
  min-height: clamp(460px, 62vh, 620px); display: flex; align-items: flex-end; overflow: hidden; background: #1c2b29; color: #fff;
}
.hero-bleed-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-bleed-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 18, 17, 0.15) 0%, rgba(8, 18, 17, 0.35) 40%, rgba(8, 18, 17, 0.82) 100%); }
.hero-bleed-inner { position: relative; padding: 64px 0 48px; }
.hero-kicker { margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; color: var(--brand-light); }
.hero-bleed h1 { margin: 0; max-width: 16ch; font-size: clamp(2.3rem, 6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.025em; color: #fff; }
.hero-lede { margin: 16px 0 0; max-width: 52ch; font-size: clamp(1.02rem, 2vw, 1.2rem); color: #eef6f4; }
.hero-bleed .button-row { margin-top: 24px; }
.button-light { background: #fff; color: var(--ink-deep); }
.button-light:hover { background: var(--brand-soft); }
.button-ghost { display: inline-flex; align-items: center; border-radius: 999px; padding: 12px 18px; font-weight: 700; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.7); text-decoration: none; }
.button-ghost:hover { background: rgba(255, 255, 255, 0.14); text-decoration: none; }

/* problem photo tiles */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 18px; }
.problem-tile { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: #cfd8d5; box-shadow: var(--shadow); color: #fff; text-decoration: none; isolation: isolate; }
.problem-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; z-index: -2; }
.problem-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(5, 15, 14, 0.82) 100%); }
.problem-tile:hover img, .problem-tile:focus-visible img { transform: scale(1.06); }
.problem-tile:hover { text-decoration: none; }
.problem-tile-label { position: absolute; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 2px; }
.problem-tile-label strong { font-size: 1.08rem; line-height: 1.2; }
.problem-tile-label small { color: #cfe9e5; font-size: 0.85rem; }

/* photo cards (home, category, related) */
.photo-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-top: 18px; }
.photo-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; color: var(--text); text-decoration: none; box-shadow: 0 6px 22px rgba(20, 30, 28, 0.06); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.photo-card:hover, .photo-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.photo-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dfe6e3; }
.photo-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-card:hover .photo-card-media img { transform: scale(1.05); }
.photo-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.photo-card-tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.photo-card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.3; color: var(--ink-deep); }
.photo-card-text { color: var(--muted); font-size: 0.93rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.category-cards { margin-bottom: 40px; }
.related-articles .photo-card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* tool cards with icons */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 18px; }
.tool-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; color: var(--text); text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.tool-card:hover, .tool-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.tool-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; }
.tool-icon svg { width: 24px; height: 24px; fill: var(--accent-2); }
.tool-card-body { display: grid; gap: 4px; }
.tool-card-title { font-weight: 700; line-height: 1.3; color: var(--ink-deep); }
.tool-card-text { color: var(--muted); font-size: 0.9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* article banner and photos */
.article-page { padding-top: 0; overflow: hidden; }
.article-banner { position: relative; margin: 0 -28px 22px; min-height: clamp(260px, 42vw, 440px); display: flex; align-items: flex-end; background: #1c2b29; color: #fff; overflow: hidden; }
.article-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-banner-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 18, 17, 0.05) 20%, rgba(8, 18, 17, 0.8) 100%); }
.article-banner-copy { position: relative; padding: 28px; width: 100%; }
.article-banner h1 { margin: 6px 0 10px; font-size: clamp(1.7rem, 4.4vw, 2.8rem); line-height: 1.12; letter-spacing: -0.02em; color: #fff; max-width: 24ch; }
.article-banner .eyebrow, .article-banner .eyebrow a { color: var(--brand-light); }
.article-banner .article-meta, .article-banner .article-meta a { color: #e4efec; }
.article-banner-plain { min-height: 0; background: none; color: inherit; margin: 0 0 8px; padding-top: 28px; }
.article-banner-plain h1 { color: var(--ink-deep); }
.article-banner-plain .eyebrow, .article-banner-plain .eyebrow a { color: var(--accent-2); }
.article-banner-plain .article-meta, .article-banner-plain .article-meta a { color: var(--muted); }
.article-banner-plain .article-banner-copy { padding: 0; }
.article-dek { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin: 0 0 20px; }
.article-body .photo { margin: 28px 0; }
.article-body .photo img { display: block; width: 100%; height: auto; border-radius: 18px; background: #dfe6e3; }
.article-body .photo figcaption { margin-top: 8px; font-size: 0.88rem; color: var(--muted); }
@media (min-width: 900px) { .article-body .photo { margin-left: -24px; margin-right: -24px; } }
@media (max-width: 600px) { .hero-bleed-inner { padding: 48px 0 36px; } }

/* phone refinements */
.article-banner-shade { background: linear-gradient(180deg, rgba(8, 18, 17, 0.1) 0%, rgba(8, 18, 17, 0.55) 45%, rgba(8, 18, 17, 0.88) 100%); }
@media (max-width: 560px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .problem-tile { aspect-ratio: 1 / 1.05; border-radius: 16px; }
  .problem-tile:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .problem-tile-label strong { font-size: 0.98rem; }
  .photo-card-grid { grid-template-columns: 1fr; }
}

.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; font: 700 1.25rem var(--font-display); }

.hero-bleed-plain { background: linear-gradient(135deg, var(--brand) 0%, var(--ink) 100%); }
.hero-bleed-plain .hero-bleed-inner { padding-top: 96px; }
.problem-tile-plain { background: linear-gradient(160deg, var(--brand) 0%, var(--ink) 100%); }
.planner-band-simple { grid-template-columns: 1fr; }

.hero-bleed h1 { max-width: 22ch; }
.page-copy label { display: block; margin: 14px 0 6px; font-weight: 600; }
.page-copy input[type="text"], .page-copy input[type="number"], .page-copy input[type="date"], .page-copy input[type="time"], .page-copy input[type="email"], .page-copy select, .page-copy textarea {
  font: inherit; padding: 10px 12px; min-width: 220px; max-width: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); color: var(--text); box-sizing: border-box;
}
.page-copy input:focus, .page-copy select:focus, .page-copy textarea:focus { outline: 2px solid var(--brand-bright); outline-offset: 1px; }
.page-copy button:not(.is-primary):not([data-print]):not([data-reset]) { font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: 999px; padding: 12px 22px; background: var(--brand); color: #fff; margin-top: 14px; }
.page-copy button:not(.is-primary):not([data-print]):not([data-reset]):hover { background: var(--brand-dark); }

/* BathroomRefresh theme: image-led layout, loaded after main.css */
h1, h2, h3, .brand-name, .photo-card-title, .quick-card-title, .problem-tile-label strong { font-family: var(--font-display); }
h1, h2 { letter-spacing: -0.015em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(250, 248, 243, 0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 22px; padding: 12px 0; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-deep); flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.2rem; }
.brand-tag { margin: 0; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap; }
.site-nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-deep); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.site-nav a:hover { background: var(--teal-soft); text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--teal); color: #fff; }
.header-cta { flex: none; padding: 10px 18px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.header-cta:hover { background: var(--brand-dark); text-decoration: none; }
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 8px 12px; }
  .brand { order: 1; }
  .header-cta { order: 2; margin-left: auto; padding: 8px 14px; font-size: 0.88rem; }
  .site-nav { order: 3; width: 100%; margin: 0 -2px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .brand-tag { display: none; }
}

/* ---------- home hero extras ---------- */
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; color: #dcebe8; font-size: 0.95rem; }
.hero-stats strong { color: #fff; font-family: var(--font-display); font-size: 1.3rem; margin-right: 4px; }
.hero-bleed { min-height: clamp(520px, 74vh, 720px); }
.home-section { margin: 56px 0; }

/* ---------- tour illustration ---------- */
.tour { background: #fff; border: 1px solid var(--border); border-radius: 28px; padding: 14px; box-shadow: var(--shadow); margin-top: 18px; }
.tour-svg { display: block; width: 100%; height: auto; border-radius: 18px; }
.hot { cursor: pointer; outline: none; }
.hot circle { fill: var(--teal); stroke: #fff; stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: hot-pulse 2.6s ease-in-out infinite; }
.hot > text { fill: #fff; font: 700 26px system-ui, sans-serif; text-anchor: middle; pointer-events: none; }
.hot:hover circle, .hot:focus-visible circle { fill: var(--brand-bright); animation: none; transform: scale(1.18); }
.hot-label { opacity: 0; pointer-events: none; transition: opacity 0.18s ease; }
.hot-label rect { fill: var(--ink-deep); }
.hot-label text { fill: #fff; font: 600 15px system-ui, sans-serif; text-anchor: middle; }
.hot:hover .hot-label, .hot:focus-visible .hot-label { opacity: 1; }
@keyframes hot-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.tour-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 4px 4px; padding: 0; }
.tour-chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-weight: 600; font-size: 0.9rem; }
.tour-chips a:hover { background: var(--teal); color: #fff; text-decoration: none; }

/* ---------- quick wins rail ---------- */
.quick-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 18px; margin-top: 8px; scrollbar-width: thin; }
.quick-card { position: relative; flex: 0 0 min(280px, 74vw); aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; color: #fff; text-decoration: none; isolation: isolate; background: #cfd8d5; box-shadow: 0 8px 26px rgba(20, 30, 28, 0.14); }
.quick-card:hover { text-decoration: none; }
.quick-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.5s ease; }
.quick-card:hover img { transform: scale(1.06); }
.quick-card-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(5, 15, 14, 0.88) 100%); }
.quick-card-body { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 10px; }
.quick-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-chips span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px); font-size: 0.78rem; font-weight: 600; }
.quick-card-title { font-size: 1.18rem; line-height: 1.25; font-weight: 700; }

/* ---------- planner band ---------- */
.planner-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 30px; background: linear-gradient(135deg, var(--brand) 0%, var(--ink) 100%); color: #fff; }
.planner-band h2 { margin: 6px 0 10px; font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: #fff; }
.planner-band p { margin: 0 0 18px; color: #dcebe8; max-width: 46ch; }
.planner-band .hero-kicker { margin: 0; }
.planner-band-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.planner-band-steps li { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); font-weight: 600; }
.planner-band-steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--teal); font-weight: 800; flex: none; }
@media (max-width: 760px) { .planner-band { grid-template-columns: 1fr; } }

/* ---------- filter chips ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.filter-chips button { font: inherit; font-weight: 600; font-size: 0.92rem; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--ink-deep); cursor: pointer; }
.filter-chips button:hover { border-color: var(--teal); }
.filter-chips button.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.photo-card[hidden] { display: none; }

/* ---------- trust band ---------- */
.trust-band ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.trust-band li { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.trust-band li span:last-child { color: var(--muted); font-size: 0.93rem; }
.trust-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; }
.trust-icon svg { width: 22px; height: 22px; fill: var(--teal); }
.trust-link { margin: 18px 0 0; text-align: center; color: var(--muted); }

/* ---------- full-bleed article and category pages ---------- */
body.article-view .main-content, body.category-view .main-content { width: 100%; max-width: none; padding: 0; margin: 0; }
.article-page { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0; margin: 0; overflow: visible; }
.article-banner { position: relative; margin: 0; min-height: clamp(320px, 46vw, 540px); display: flex; align-items: flex-end; background: #1c2b29; color: #fff; overflow: hidden; border-radius: 0; }
.article-banner-copy { position: relative; padding: 36px 0 40px; }
.article-banner h1 { max-width: 22ch; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; margin: 8px 0 14px; color: #fff; }
.category-banner { min-height: clamp(280px, 38vw, 440px); }
.category-banner-lede { max-width: 56ch; margin: 0 0 10px; font-size: 1.1rem; color: #eef6f4; }
.article-banner-plain { min-height: 0; padding: 40px 0 8px; }
.article-banner-plain .article-banner-copy { padding: 0; }
.article-sheet, .category-cards, .category-intro-block { width: min(1120px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.article-sheet { padding-top: 30px; }
.category-cards { margin-top: 36px; }
.category-intro-block { margin: 24px auto 56px; }
.article-dek { font-size: 1.2rem; color: #3f524f; max-width: 60ch; margin: 0 0 26px; font-family: var(--font-display); }

/* ---------- at a glance ---------- */
.glance { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 0; margin: 0 0 40px; background: #fff; border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.glance-chips { display: grid; gap: 0; background: var(--teal-soft); }
.glance-chip { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid color-mix(in srgb, var(--brand) 14%, transparent); }
.glance-chip:last-child { border-bottom: 0; }
.glance-icon { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.glance-icon svg { width: 22px; height: 22px; fill: var(--teal); }
.glance-chip small { display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.glance-chip strong { font-size: 1.12rem; color: var(--ink-deep); line-height: 1.25; }
.glance-points { padding: 22px 26px; }
.glance-points h2 { margin: 0 0 12px; font-size: 1.3rem; }
.glance-points ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.glance-points li { position: relative; padding-left: 32px; line-height: 1.5; color: var(--ink-deep); }
.glance-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.8 12.5l1.4-1.4 2.3 2.3 7.3-7.3 1.4 1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (max-width: 760px) { .glance { grid-template-columns: 1fr; } }

/* ---------- article body with sticky contents ---------- */
.article-layout { display: block; }
.toc[hidden] { display: none; }
.toc { margin: 0 0 22px; }
.toc-title { display: none; margin: 0 0 10px; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.toc-list { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.toc-list::-webkit-scrollbar { display: none; }
.toc-list a { display: block; white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--ink-deep); font-size: 0.88rem; font-weight: 600; }
.toc-list a:hover { border-color: var(--teal); text-decoration: none; }
.toc-list a.is-current { background: var(--teal); border-color: var(--teal); color: #fff; }
@media (min-width: 1100px) {
  .article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
  .toc { position: sticky; top: 92px; margin: 0; max-height: calc(100vh - 120px); overflow: auto; }
  .toc-title { display: block; }
  .toc-list { flex-direction: column; gap: 2px; overflow: visible; }
  .toc-list a { white-space: normal; border: 0; background: none; border-radius: 10px; padding: 8px 12px; border-left: 3px solid transparent; border-radius: 0 10px 10px 0; font-weight: 500; font-size: 0.92rem; line-height: 1.35; }
  .toc-list a:hover { background: var(--teal-soft); }
  .toc-list a.is-current { background: var(--teal-soft); border-left-color: var(--teal); color: var(--teal); font-weight: 700; }
}
.article-body { font-size: 1.07rem; line-height: 1.78; counter-reset: sec; }
.article-body > h2 { counter-increment: sec; margin: 56px 0 14px; font-size: clamp(1.55rem, 3vw, 2.05rem); line-height: 1.2; scroll-margin-top: 90px; }
.article-body > h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 6px; font: 800 0.78rem system-ui, sans-serif; letter-spacing: 0.16em; color: var(--teal); }
.article-body h3 { margin: 30px 0 8px; font-size: 1.25rem; }
.article-body > p, .article-body > ul, .article-body > ol { max-width: 68ch; }
.article-body .photo { margin: 34px 0; max-width: none; }
.article-body .photo img { border-radius: 22px; box-shadow: 0 14px 36px rgba(20, 30, 28, 0.16); }
@media (min-width: 900px) { .article-body .photo { margin-left: 0; margin-right: 0; } }
.article-body .table-scroll { border-radius: 16px; border: 1px solid var(--border); background: #fff; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.article-body th { background: var(--teal); color: #fff; text-align: left; font-weight: 700; padding: 10px 12px; }
.article-body td { padding: 10px 12px; border-top: 1px solid var(--border); vertical-align: top; }
.article-body tbody tr:nth-child(even) td { background: #faf8f3; }
.article-body .callout { background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--teal); border-radius: 18px; padding: 18px 22px; box-shadow: 0 6px 20px rgba(20, 30, 28, 0.06); max-width: 68ch; }
.article-body .diagram { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 14px; }
.sources { margin-top: 56px; border: 1px solid var(--border); border-radius: 18px; background: #fff; padding: 4px 22px; max-width: 68ch; }
.sources summary { cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary::after { content: "+"; font: 700 1.6rem system-ui, sans-serif; color: var(--teal); }
.sources[open] summary::after { content: "\2212"; }
.sources > :not(summary) { font-size: 0.95rem; }

/* ---------- cards ---------- */
.related-articles { margin: 64px auto 56px; padding-top: 0; border-top: 0; }
.related-articles h2 { font-size: 1.8rem; }
.photo-card-feature { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .photo-card-feature { flex-direction: row; }
  .photo-card-feature .photo-card-media { flex: 0 0 56%; aspect-ratio: auto; min-height: 320px; }
  .photo-card-feature .photo-card-body { justify-content: center; padding: 28px 32px; gap: 10px; }
  .photo-card-feature .photo-card-title { font-size: 1.7rem; }
  .photo-card-feature .photo-card-text { -webkit-line-clamp: 5; font-size: 1rem; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink-deep); color: #cfe0dd; margin-top: 72px; padding: 52px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #cfe9e5; }
.site-footer a:hover { color: #fff; }
.footer-title { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.4rem; color: #fff; font-weight: 700; }
.footer-brand p { margin: 0 0 14px; max-width: 36ch; }
.footer-heading { margin: 0 0 10px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8fb8b1; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-cta { display: inline-block; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--ink-deep) !important; font-weight: 700; text-decoration: none; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- reading progress and reveal ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--brand-bright); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hot circle { animation: none; }
  .photo-card, .quick-card img, .problem-tile img, .photo-card-media img { transition: none; }
}
@media print { .site-header, .site-footer, .read-progress, .toc { display: none !important; } .article-banner { min-height: 0; color: #000; background: none; } .article-banner-img, .article-banner-shade { display: none; } .article-banner h1 { color: #000; } }

/* banner copy keeps the page gutter */
.article-banner-copy.wrap { width: min(1120px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }

/* compact guide grid on phones */
@media (max-width: 560px) {
  #guide-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  #guide-grid .photo-card { border-radius: 16px; }
  #guide-grid .photo-card-body { padding: 10px 12px 14px; gap: 4px; }
  #guide-grid .photo-card-title { font-size: 0.95rem; }
  #guide-grid .photo-card-tag { font-size: 0.64rem; }
}

/* ---------- one reading column: text, photos, diagrams, tables and captions share it ---------- */
.article-body { max-width: 720px; }
.article-body > p, .article-body > ul, .article-body > ol, .article-body .callout, .sources { max-width: none; }
.article-body .photo { margin: 30px 0; }
.article-body .photo img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center; max-height: 420px; box-shadow: 0 10px 28px rgba(20, 30, 28, 0.14); }
.article-body figure { margin-left: 0; margin-right: 0; }
.article-body figcaption, .article-body .diagram figcaption, .article-body .photo figcaption { text-align: left; margin: 10px 2px 0; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.article-body .diagram { padding: 14px 14px 12px; }
.article-body .diagram figcaption { margin: 8px 4px 0; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: 220px minmax(0, 720px); } }
@media (max-width: 600px) { .article-body .photo img { aspect-ratio: 4 / 3; max-height: 300px; } }
