/* TheBarberBoard: shared stylesheet.
   Design: docs/design/2026-10-30-shopfront/ (Shopfront brand, Price board data, Editorial guides).
   Cream, navy and barber red. Type: DM Serif Display (brand headlines), Barlow Condensed
   (prices, labels, nav, buttons), Inter Tight (body). */

:root {
  --cream: #F3EEE4;
  --paper: #FBF8F2;
  --navy: #17213A;
  --navy-2: #1F2B48;
  --red: #B3242E;
  --red-btn: #C2272D;
  --coral: #E9867F;
  --ink-2: #3C4560;
  --ink-3: #4A5674;
  --on-navy: #B9C0D2;
  --line: rgba(23, 33, 58, 0.16);
  --line-strong: rgba(23, 33, 58, 0.32);
  --wrap: 1240px;
  --measure: 760px;
  --gutter: 32px;
  --f-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --f-cond: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pole: repeating-linear-gradient(135deg, var(--red) 0 22px, var(--cream) 22px 34px, var(--navy) 34px 56px, var(--cream) 56px 68px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { display: flex; flex-direction: column; min-height: 100vh; font-family: var(--f-body); font-size: 17px; line-height: 1.65; color: var(--navy); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; }
a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
strong { font-weight: 700; color: var(--navy); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible, .site-footer :focus-visible, .board :focus-visible, .verdict :focus-visible { outline-color: var(--coral); }
.wrap, .article, main.page, .breadcrumb, .board, .hero { width: 100%; }
.site-footer { margin-top: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--f-cond); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }

/* ---------------------------------------------------------------- pole stripe */
.pole { height: 14px; background: var(--pole); }
.pole-thin { height: 10px; }

/* ---------------------------------------------------------------- header */
.site-header .header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; padding-top: 22px; padding-bottom: 22px; border-bottom: 2px solid var(--navy); }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--navy); text-decoration: none; }
.brand:hover { color: var(--navy); }
.brand svg { flex: none; width: 38px; height: 46px; }
.brand-name { font-family: var(--f-serif); font-size: 2.1rem; line-height: 1; letter-spacing: -0.005em; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-family: var(--f-cond); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-nav a { color: var(--navy); text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); }
/* Narrow screens: one row that scrolls sideways (no wrap), edge fades as the scroll hint.
   The right fade shows until the row reaches its end; the left fade shows only once the row
   has scrolled away from the start (hidden by default, so no-JS pages show no left fade).
   A scroll-driven animation moves the fades where supported; elsewhere the small script after
   the nav toggles .is-scrolled and .at-end. It also scrolls the current page into view. */
@property --nav-fade-l { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --nav-fade-r { syntax: '<length>'; inherits: false; initial-value: 44px; }
@keyframes nav-fades { 0% { --nav-fade-l: 0px; --nav-fade-r: 44px; } 8% { --nav-fade-l: 44px; } 92% { --nav-fade-r: 44px; } 100% { --nav-fade-l: 44px; --nav-fade-r: 0px; } }
@media (max-width: 760px) {
  .site-nav { --nav-fade-l: 0px; --nav-fade-r: 44px; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 6px 44px 6px var(--gutter); -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--nav-fade-l), #000 calc(100% - var(--nav-fade-r)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--nav-fade-l), #000 calc(100% - var(--nav-fade-r)), transparent); }
  .site-nav.is-scrolled { --nav-fade-l: 44px; }
  .site-nav.at-end { --nav-fade-r: 0px; }
  @supports (animation-timeline: scroll()) {
    .site-nav { animation: nav-fades linear both; animation-timeline: scroll(self inline); }
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; white-space: nowrap; scroll-snap-align: start; }
}

/* ---------------------------------------------------------------- breadcrumb */
.breadcrumb { font-family: var(--f-cond); font-weight: 600; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.breadcrumb-inner { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gutter) 0; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb strong { color: var(--navy); font-weight: 700; }

/* ---------------------------------------------------------------- buttons */
.btn, .cta-btn { display: inline-block; padding: 16px 26px; background: var(--navy); color: var(--cream); font-family: var(--f-cond); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; line-height: 1.1; }
.btn:hover, .cta-btn:hover { background: var(--red-btn); color: #fff; }
.btn-red { background: var(--red-btn); color: #fff; }
.btn-red:hover { background: var(--cream); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--on-navy); }
.btn-ghost:hover { background: var(--cream); color: var(--navy); }

/* ================================================================ HOME */
.home-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 64px 0 80px; }
.home-hero-copy { flex: 999 1 520px; min-width: 0; }
.home-hero h1 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(3rem, 2rem + 4.6vw, 6rem); line-height: 0.98; letter-spacing: -0.01em; }
.home-hero h1 em { font-style: italic; color: var(--red); }
.home-hero .hero-sub { margin-top: 24px; font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 32em; }
.home-hero .btn { margin-top: 30px; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--line-strong); font-family: var(--f-cond); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.hero-stats li { display: flex; align-items: center; gap: 8px; }
.hero-stats svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.home-hero-art { flex: 1 1 400px; min-width: 0; position: relative; }
.arch { height: 560px; border-radius: 220px 220px 0 0; overflow: hidden; border: 10px solid var(--navy); background: var(--navy); }
.arch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 70%; }
.price-badge { position: absolute; left: -40px; bottom: 36px; width: 168px; height: 168px; border-radius: 50%; background: var(--red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(-8deg); box-shadow: 0 10px 0 -2px rgba(23, 33, 58, 0.18); }
.price-badge .pb-label { font-family: var(--f-cond); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.1em; }
.price-badge .pb-price { font-family: var(--f-serif); font-size: 3.4rem; line-height: 1; }
.price-badge .pb-note { font-size: 0.8rem; font-weight: 600; }

/* Price board band (home + price pages) */
.board { background: var(--navy); color: var(--cream); }
.board-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; }
.board-photo { flex: 1 1 420px; min-width: 0; min-height: 520px; position: relative; background: var(--navy-2); }
.board-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.board-panel { flex: 1 1 520px; min-width: 0; padding: 64px 0 64px 64px; display: flex; flex-direction: column; gap: 24px; }
.board .eyebrow { color: var(--coral); margin: 0; }
.board h2, .board h1 { font-family: var(--f-cond); font-weight: 800; font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.5rem); line-height: 0.94; text-transform: uppercase; letter-spacing: 0.005em; color: var(--cream); }
.price-list { list-style: none; font-family: var(--f-cond); font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); font-weight: 600; }
.price-list li { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--ink-3); }
.price-list li:last-child { border-bottom: 0; }
.price-list .leader { flex: 1; min-width: 16px; border-bottom: 2px dotted var(--ink-3); transform: translateY(-7px); }
.price-list .val { font-weight: 800; color: #fff; white-space: nowrap; }
.price-list .val.hot { color: var(--coral); }
.board-note { font-size: 0.95rem; color: var(--on-navy); }
.board-note a { color: var(--cream); }
.board-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.board a.btn-red:hover, .board a.btn-ghost:hover { color: var(--navy); }

/* Section heads */
.section { padding-top: 80px; padding-bottom: 80px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; border-bottom: 2px solid var(--navy); padding-bottom: 12px; margin-bottom: 30px; }
.section-head h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.2rem, 1.6rem + 2vw, 2.9rem); line-height: 1.05; }
.section-head .eyebrow { width: 100%; margin: 0; }
.section-head .more { font-family: var(--f-cond); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); text-decoration: none; }
.section-head .more:hover { color: var(--red); }
.section-sub { color: var(--ink-2); max-width: 46em; margin: -14px 0 30px; }

/* Photo cards (home guides, hub, related) */
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.photo-card { display: flex; flex-direction: column; gap: 12px; color: var(--navy); text-decoration: none; }
.photo-card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.photo-card .ph img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.photo-card .tag { font-family: var(--f-cond); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.photo-card .t { font-family: var(--f-serif); font-size: 1.85rem; line-height: 1.1; }
.photo-card .d { color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; }
.photo-card:hover { color: var(--navy); }
.photo-card:hover .t { color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .photo-card .ph img { transition: filter 0.35s ease, transform 0.5s ease; }
  .photo-card:hover .ph img { filter: grayscale(0.15) contrast(1.05); transform: scale(1.03); }
}

/* How we work list */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--navy); }
.work-item { display: flex; flex-direction: column; gap: 8px; padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line-strong); color: var(--navy); text-decoration: none; }
.work-item + .work-item { padding-left: 28px; border-left: 1px solid var(--line-strong); }
.work-item:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.work-item .feature-icon { width: 30px; height: 30px; color: var(--red); }
.work-item .feature-icon svg { width: 100%; height: 100%; }
.work-item .feature-name { font-family: var(--f-serif); font-size: 1.6rem; line-height: 1.15; }
.work-item .feature-desc { color: var(--ink-2); font-size: 0.98rem; }
.work-item .feature-tag { margin-top: auto; padding-top: 6px; font-family: var(--f-cond); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
a.work-item:hover .feature-name { color: var(--red); }

.home-chart { padding-bottom: 80px; }
.section.flush-top { padding-top: 0; }
.home-chart figure { max-width: 960px; margin-left: auto; margin-right: auto; }

/* ================================================================ PAGE HEROES */
/* Editorial: black-and-white photograph, navy wash, serif headline. */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--cream); margin-top: 16px; }
.hero > img { display: block; width: 100%; height: clamp(360px, 44vw, 560px); object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(0.92); }
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(to top, rgba(14, 20, 36, 0.92) 0%, rgba(14, 20, 36, 0.55) 45%, rgba(14, 20, 36, 0.08) 100%); }
.hero-overlay-inner { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 var(--gutter) 48px; }
.hero .eyebrow { color: var(--coral); }
.hero-title { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.4rem); line-height: 1.02; letter-spacing: -0.005em; color: #fff; max-width: 17em; text-wrap: balance; }
.hero-title em { font-style: italic; color: var(--coral); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--pole); }

/* Price board hero (price guides, city pages). */
.hero.hero-board { background: var(--navy); }
.hero.hero-board::after { display: none; }
.hero-board .board-panel { padding-top: 56px; padding-bottom: 56px; }
.hero-board .hero-title { font-family: var(--f-cond); font-weight: 800; font-size: clamp(2.4rem, 1.5rem + 2.6vw, 4rem); line-height: 0.95; text-transform: uppercase; color: var(--cream); max-width: none; letter-spacing: 0.005em; }
.hero-board .board-photo { min-height: 560px; }

/* ================================================================ ARTICLE */
.article { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 44px var(--gutter) 72px; }
.article-meta { font-family: var(--f-cond); font-weight: 600; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 16px; margin-bottom: 26px; border-bottom: 2px solid var(--navy); }
.article p { margin-bottom: 1.2rem; color: var(--ink-2); }
.article p.answer { font-size: 1.22rem; line-height: 1.6; color: var(--navy); }
.article h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.35rem); line-height: 1.12; color: var(--navy); margin: 2.6rem 0 0.8rem; scroll-margin-top: 20px; }
.article h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; color: var(--navy); margin: 1.8rem 0 0.5rem; }
.article ul, .article ol { margin: 0.6rem 0 1.4rem 1.4rem; color: var(--ink-2); }
.article li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.article li::marker { color: var(--red); }

/* Price-list style tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4rem 0 1.8rem; background: var(--paper); border: 2px solid var(--navy); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table-wrap.wide table { min-width: 640px; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px dashed var(--line-strong); color: var(--ink-2); }
.table-wrap th { background: var(--navy); color: var(--cream); font-family: var(--f-cond); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--navy); }
.table-wrap td strong { color: var(--navy); }
.table-wrap td a { font-weight: 600; }
@media (min-width: 641px) { .table-wrap th, .table-wrap td { min-width: 5.5rem; } }
.scroll-hint { display: none; font-family: var(--f-cond); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem !important; color: var(--ink-3) !important; margin: 0 0 -0.9rem !important; }
.table-caption { font-size: 0.88rem !important; color: var(--ink-3) !important; margin: -1rem 0 1.6rem !important; }

/* Charts: navy price-board frames drawn by tools/build-charts.js */
.chart { margin: 1.6rem 0 1.9rem; }
.chart picture { display: block; }
.chart img { display: block; width: 100%; height: auto; }
.chart figcaption { font-size: 0.88rem; color: var(--ink-3); margin-top: 0.6rem; padding-left: 12px; border-left: 3px solid var(--red); }

/* Boxes */
.info-box { background: var(--paper); border-left: 4px solid var(--red); padding: 18px 22px; margin: 1.4rem 0; font-size: 0.97rem; color: var(--ink-2); }
.info-box > strong:first-child { display: block; font-family: var(--f-cond); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.info-box ul { margin: 0.5rem 0 0.6rem 1.2rem; }
.info-box p { font-size: 0.95rem; margin: 0; }
/* Price index: download and cite boxes, shop-by-shop table */
.data-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0.4rem 0 1.4rem; }
.cite-box { background: var(--paper); border: 2px solid var(--navy); padding: 20px 22px; margin: 1.6rem 0; }
.article .cite-box h2 { margin-top: 0; }
.cite-box p { font-size: 0.97rem; }
.cite-box .cite-text { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.88rem; background: #fff; border: 1px solid var(--line); padding: 12px 14px; overflow-wrap: anywhere; margin-bottom: 0.8rem; }
.cite-box p:last-child { margin-bottom: 0; }
.shop-detail { margin: 0 0 1.4rem; }
.shop-detail summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.how-chosen li { margin-bottom: 0.4rem; }
p.disclosure, .disclosure { position: relative; font-size: 0.9rem; color: var(--ink-2); background: transparent; border: 2px dashed var(--line-strong); padding: 26px 18px 14px; margin: 0 0 1.6rem; }
.disclosure::before { content: 'Affiliate note'; position: absolute; top: -12px; left: 14px; background: var(--cream); padding: 0 8px; font-family: var(--f-cond); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.verdict { background: var(--navy); color: var(--on-navy); padding: 28px 30px; margin: 1.8rem 0; position: relative; }
.verdict::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--pole); }
.article .verdict h2 { font-family: var(--f-cond); font-weight: 800; text-transform: uppercase; font-size: 2rem; color: var(--cream); margin: 6px 0 10px; }
.article .verdict p, .article .verdict li { color: var(--on-navy); }
.verdict strong { color: #fff; }
.verdict a { color: var(--coral); }
.verdict p:last-child, .verdict ul:last-child { margin-bottom: 0; }
.cta-box { border: 2px solid var(--navy); background: var(--paper); padding: 26px 28px; text-align: center; margin: 2.4rem 0; }
.toc { background: var(--paper); border-top: 4px solid var(--navy); padding: 16px 20px; margin: 0 0 1.8rem; font-size: 0.97rem; }
.toc strong { display: block; font-family: var(--f-cond); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.article .toc ol { margin: 0 0 0 1.2rem; }
.tier-head { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.tier-head .tier-price { font-family: var(--f-cond); font-size: 1.3rem; color: var(--red); font-weight: 700; }

/* Roundup product blocks: a price ticket */
.product-card { position: relative; background: var(--paper); border: 2px solid var(--navy); padding: 30px 28px 26px; margin: 2.2rem 0 1.6rem; }
.product-card .badge { position: absolute; top: -16px; left: 20px; display: inline-block; background: var(--red); color: #fff; font-family: var(--f-cond); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px 4px; transform: rotate(-2deg); }
.article .product-card h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 4px 0 12px; font-family: var(--f-serif); font-weight: 400; font-size: 1.75rem; line-height: 1.12; }
.product-card .price { font-family: var(--f-cond); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.02em; color: var(--red); white-space: nowrap; }
.article .product-card .spec { font-family: var(--f-cond); font-weight: 600; font-size: 1.08rem; line-height: 1.4; letter-spacing: 0.01em; color: var(--navy); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px dashed var(--line-strong); }
.product-card p { margin-bottom: 0.7rem; }
.article .product-card .pros, .article .product-card .cons { font-size: 0.95rem; margin: 0.4rem 0; }
.product-card .pros strong { color: #22603A; }
.product-card .cons strong { color: var(--red); }
.aff-btn { display: inline-block; margin: 12px 10px 0 0; padding: 12px 20px; background: var(--red-btn); color: #fff !important; font-family: var(--f-cond); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.aff-btn::after { content: ' \2192'; }
.aff-btn:hover { background: var(--navy); }

/* Related */
.related { margin-top: 3rem; padding-top: 1.6rem; border-top: 2px solid var(--navy); }
.article .related h2 { margin-top: 0; font-size: 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 28px; }
.related-card { display: block; padding: 16px 0; border-bottom: 1px dashed var(--line-strong); color: var(--navy); text-decoration: none; }
.article .related-card h3 { margin: 0 0 4px; font-family: var(--f-serif); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.related-card h3::after { content: ' \2192'; color: var(--red); }
.article .related-card p { margin: 0; font-size: 0.92rem; color: var(--ink-3); }
.related-card:hover h3 { color: var(--red); }

/* FAQ (if used) */
.faq-item { border-bottom: 1px dashed var(--line-strong); }
.faq-q { padding: 14px 0; font-weight: 700; cursor: pointer; }

/* Converter tool (guard sizes) */
.tool { background: var(--navy); color: var(--on-navy); padding: 30px; margin: 1.8rem 0 2.2rem; position: relative; }
.tool::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--pole); }
.article .tool h2 { font-family: var(--f-cond); font-weight: 800; text-transform: uppercase; color: var(--cream); margin: 4px 0 8px; }
.article .tool p { color: var(--on-navy); }
.tool-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
.tool-row label { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-cond); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); flex: 1 1 180px; }
.tool select, .tool input { background: var(--cream); color: var(--navy); border: 0; border-radius: 0; padding: 12px; font: inherit; font-family: var(--f-body); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.tool-out { background: var(--navy-2); border-top: 1px dashed var(--ink-3); padding: 18px 20px; font-size: 0.97rem; color: var(--on-navy); }
.tool-out .big { font-family: var(--f-cond); font-size: 2.6rem; font-weight: 800; color: var(--coral); line-height: 1.05; display: block; }
.tool-out table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; font-size: 0.92rem; }
.tool-out td { padding: 6px 4px; border-bottom: 1px dotted var(--ink-3); }
.tool-out td:last-child { text-align: right; color: #fff; font-weight: 600; }
.tool strong { color: #fff; }

/* City listings */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 1.5rem; }
.filters button { background: transparent; color: var(--navy); border: 2px solid var(--navy); border-radius: 0; padding: 7px 14px; font-family: var(--f-cond); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.filters button:hover { background: var(--paper); }
.filters button.active { background: var(--navy); color: var(--cream); }
.listing { background: var(--paper); border: 1px solid var(--line-strong); border-top: 4px solid var(--navy); padding: 20px 24px; margin: 1.1rem 0; }
.article .listing h3 { margin: 0 0 2px; font-family: var(--f-serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.listing .addr { font-family: var(--f-cond); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.listing .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.listing .tag { font-family: var(--f-cond); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); border: 1.5px solid var(--navy); padding: 1px 8px; }
.listing .tag.hl { background: var(--red); border-color: var(--red); color: #fff; }
.article .listing p { font-size: 0.97rem; margin-bottom: 0.35rem; }
.article .listing .checked { font-size: 0.85rem; color: var(--ink-3); margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.listing[hidden] { display: none; }

/* ================================================================ HUB, LEGAL, 404 */
.page-head { padding-top: 56px; padding-bottom: 36px; }
.page-head h1 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(3rem, 2rem + 4vw, 5.4rem); line-height: 0.98; }
.page-head h1 em { font-style: italic; color: var(--red); }
.page-head p { margin-top: 20px; font-size: 1.15rem; color: var(--ink-2); max-width: 40em; }
.group { padding-bottom: 64px; }
.group-title { font-family: var(--f-cond); font-weight: 800; font-size: 1.9rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 26px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 28px; }
.card { display: flex; flex-direction: column; gap: 10px; color: var(--navy); text-decoration: none; }
.card .ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.card .ph img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.card h3 { font-family: var(--f-serif); font-weight: 400; font-size: 1.6rem; line-height: 1.12; }
.card p { color: var(--ink-2); font-size: 0.97rem; flex: 1; }
.card-arrow { font-family: var(--f-cond); font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.card:hover h3 { color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .card .ph img { transition: filter 0.35s ease, transform 0.5s ease; }
  .card:hover .ph img { filter: grayscale(0.15) contrast(1.05); transform: scale(1.03); }
}

main.page { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 88px; }
main.page h1 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.7rem, 1.9rem + 3vw, 4.4rem); line-height: 1; padding-bottom: 22px; margin-bottom: 28px; border-bottom: 2px solid var(--navy); }
main.page h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.15rem); line-height: 1.15; margin: 2.4rem 0 0.7rem; }
main.page h3 { font-weight: 700; font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }
main.page p { color: var(--ink-2); margin-bottom: 1.1rem; }
main.page p.answer { font-size: 1.2rem; color: var(--navy); }
main.page ul, main.page ol { color: var(--ink-2); margin: 0.6rem 0 1.3rem 1.4rem; }
main.page li { margin-bottom: 0.45rem; }
main.page li::marker { color: var(--red); }
.email-callout { display: inline-block; margin: 0.6rem 0 1.4rem; padding: 16px 22px; background: var(--navy); font-family: var(--f-cond); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.04em; }
main.page .email-callout a { color: var(--cream); text-decoration: none; }
main.page .email-callout a:hover { color: var(--coral); }

.t-404 main.page { padding-top: 72px; }
.code404 { display: inline-flex; align-items: center; justify-content: center; width: 150px; height: 150px; border-radius: 50%; background: var(--red); color: #fff !important; font-family: var(--f-serif); font-size: 3.6rem; line-height: 1; transform: rotate(-8deg); margin-bottom: 28px !important; }
.links404 { list-style: none; margin-left: 0 !important; font-family: var(--f-cond); font-size: 1.45rem; font-weight: 600; }
.links404 li { border-bottom: 1px dashed var(--line-strong); padding: 8px 0; margin: 0 !important; }
.links404 a { color: var(--navy); text-decoration: none; }
.links404 a::after { content: ' \2192'; color: var(--red); }
.links404 a:hover { color: var(--red); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: var(--on-navy); }
.site-footer .footer-inner { padding-top: 40px; padding-bottom: 52px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px 48px; font-size: 0.95rem; }
.footer-brand .brand-name { color: var(--cream); font-size: 1.8rem; }
.footer-tagline { margin-top: 10px; max-width: 30em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: flex-start; font-family: var(--f-cond); font-weight: 700; font-size: 1.08rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-links a { color: var(--cream); text-decoration: none; }
.footer-links a:hover { color: var(--coral); }
.footer-copy { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(185, 192, 210, 0.25); font-size: 0.85rem; }

/* ---------------------------------------------------------------- cookie banner (restyles cookie-consent.js) */
html .cc-banner { background: var(--navy); color: var(--on-navy); border-top: 0; box-shadow: 0 -6px 24px rgba(23, 33, 58, 0.35); font-family: var(--f-body); font-size: 0.92rem; padding: 22px 24px 16px; }
html .cc-banner::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--pole); }
html .cc-banner a { color: var(--coral); }
html .cc-btn { border-radius: 0; font-family: var(--f-cond); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 20px; }
html .cc-accept { background: var(--red-btn); color: #fff; }
html .cc-reject { background: transparent; color: var(--cream); border: 2px solid var(--on-navy); }
html .cc-btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-item:nth-child(3n+1) { padding-left: 28px; border-left: 1px solid var(--line-strong); }
  .work-item:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .board-panel { padding-left: 0; }
  .board-photo { flex-basis: 100%; min-height: 340px; margin: 0 calc(-1 * var(--gutter)); }
  .hero-board .board-photo { min-height: 300px; }
  .hero-board .board-panel { padding-top: 40px; }
}
@media (max-width: 760px) {
  .site-footer .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .pole { height: 10px; }
  .site-header .header-inner { padding-top: 16px; padding-bottom: 14px; gap: 10px; }
  .brand svg { width: 30px; height: 37px; }
  .brand-name { font-size: 1.7rem; }
  .site-nav { gap: 22px; font-size: 1.12rem; }
  .home-hero { padding: 36px 0 56px; gap: 40px; }
  .home-hero .hero-sub { font-size: 1.08rem; }
  .arch { height: 400px; border-radius: 170px 170px 0 0; border-width: 8px; }
  .price-badge { left: auto; right: -6px; bottom: 20px; width: 128px; height: 128px; }
  .price-badge .pb-price { font-size: 2.6rem; }
  .price-badge .pb-label { font-size: 0.8rem; }
  .price-badge .pb-note { font-size: 0.72rem; }
  .board-photo { min-height: 260px; }
  .board-panel { padding: 40px 0 48px; gap: 18px; }
  .price-list li { gap: 10px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .photo-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item, .work-item + .work-item, .work-item:nth-child(3n+1) { padding: 22px 0; border-left: 0; }
  .hero > img { height: 300px; }
  .hero-overlay-inner { padding-bottom: 32px; }
  .article { padding-top: 30px; }
  .scroll-hint { display: block; }
  .table-wrap th, .table-wrap td { padding: 9px 10px; font-size: 0.88rem; }
  .table-wrap th { white-space: normal; font-size: 0.92rem; }
  .product-card { padding: 28px 18px 20px; }
  .verdict, .tool { padding: 26px 18px 22px; }
  .listing { padding: 18px 16px; }
  html .cc-banner { flex-direction: column; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
