/* ==========================================================================
   Room Setters — "Warm Modern" editorial theme
   Fraunces + Karla · clay / olive / cream
   Built for long-form buying guides and affiliate conversion.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/karla-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/karla-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #241c14;
  --ink-2: #3c3227;
  --body: #443a2e;
  --muted: #716656;
  --faint: #796d5c;
  --cream: #faf6ef;
  --cream-2: #f3ecdf;
  --paper: #fffdf9;
  --white: #ffffff;
  --clay: #b0533a;
  --clay-dark: #8c3d29;
  --clay-soft: #f5e5dd;
  --olive: #5c6a4c;
  --olive-dark: #46523a;
  --olive-soft: #e9ede0;
  --sand: #e8dcc9;
  --line: #e4d9c9;
  --line-soft: #efe6d9;
  --brass: #b98d4f;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Karla', 'Gill Sans', 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --wrap-narrow: 860px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(55, 40, 24, .05);
  --shadow-sm: 0 2px 8px rgba(55, 40, 24, .06);
  --shadow-md: 0 10px 30px rgba(55, 40, 24, .09);
  --shadow-lg: 0 24px 60px rgba(55, 40, 24, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background-color: transparent; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.35em; }
li { margin-bottom: .45em; }

a { color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-dark); }

strong { color: var(--ink); font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--clay); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Top bar ---------- */
.site-topbar {
  background: var(--ink);
  color: #efe7da;
  font-size: .8rem;
  letter-spacing: .02em;
}
.site-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
}
.site-topbar p { margin: 0; }
.site-topbar a { color: #efe7da; text-decoration: none; }
.site-topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-links { display: flex; align-items: center; gap: 1.25rem; }
.topbar-dot { color: var(--brass); }

/* ---------- Masthead ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 246, 239, .94);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.masthead {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}
.brand-name em { font-style: normal; color: var(--clay); margin-left: .2em; }

.primary-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list > li { position: relative; margin: 0; }
.nav-list > li > a {
  display: block;
  padding: .55rem .8rem;
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li.is-active > a { background: var(--cream-2); color: var(--clay-dark); }

.nav-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  padding: .55rem;
  margin: 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .18s var(--ease);
}
.nav-list > li:hover .nav-drop,
.nav-list > li:focus-within .nav-drop { opacity: 1; visibility: visible; transform: none; }
.nav-drop a {
  display: block;
  padding: .5rem .7rem;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--body);
  text-decoration: none;
}
.nav-drop a:hover { background: var(--cream-2); color: var(--clay-dark); }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
}
.icon-link:hover { background: var(--cream-2); color: var(--clay-dark); }
.icon-link svg { width: 18px; height: 18px; }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 6px 18px rgba(176, 83, 58, .25); }
.btn-primary:hover { background: var(--clay-dark); color: #fff; box-shadow: 0 10px 26px rgba(176, 83, 58, .32); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--sand); }
.btn-secondary:hover { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream-2); color: var(--ink); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--clay);
  text-decoration: none;
}
.link-arrow::after { content: '\2192'; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Home hero ---------- */
.home-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(232, 220, 201, .55), transparent 70%),
    radial-gradient(700px 380px at 92% 20%, rgba(233, 237, 224, .7), transparent 70%),
    var(--cream);
  overflow: hidden;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--clay); display: inline-block; }
.home-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); margin-bottom: 1.1rem; }
.home-hero h1 em { font-style: italic; color: var(--clay); }
.hero-dek { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 34em; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.1;
}
.hero-stat span { font-size: .8rem; color: var(--muted); }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3.15;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.hero-note {
  position: absolute;
  left: -18px;
  bottom: -22px;
  max-width: 260px;
  padding: 1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
}
.hero-note strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin-bottom: .2rem; }

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 2.5rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
  font-size: .82rem;
  color: var(--muted);
}
.trust-strip span { display: inline-flex; align-items: center; gap: .45rem; }
.trust-strip svg { width: 15px; height: 15px; color: var(--olive); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: #e9e0d3; }
.section-ink h2, .section-ink h3 { color: #fff; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.section-head > div { max-width: 640px; }
.section-head h2 { margin-bottom: .35rem; }
.section-head p { margin: 0; color: var(--muted); font-size: .98rem; }
.section-head .link-arrow { flex-shrink: 0; padding-bottom: .35rem; }

.kicker {
  display: block;
  margin-bottom: .55rem;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
}

/* ---------- Room / category tiles ---------- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.room-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--white) 0%, var(--cream-2) 100%);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sand); color: var(--ink); }
.room-card h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.room-card p { font-size: .86rem; color: var(--muted); margin-bottom: 0; max-width: 62%; }
.room-card .room-count { margin-top: auto; font-size: .78rem; font-weight: 700; color: var(--clay); letter-spacing: .04em; text-transform: uppercase; }
.room-card img {
  position: absolute;
  right: -12px;
  bottom: -10px;
  width: 46%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(55, 40, 24, .16));
  transition: transform .35s var(--ease);
}
.room-card:hover img { transform: translateY(-4px) rotate(-1deg); }
.room-card .room-arrow { position: absolute; top: 1.3rem; right: 1.3rem; color: var(--clay); }

/* ---------- Post cards ---------- */
.article-grid,
.articles-grid,
.posts-grid,
.posts-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--sand); }

.card-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.1rem;
  transition: transform .35s var(--ease);
}
.article-card:hover .card-media img { transform: scale(1.04); }

.article-header { display: none; } /* legacy icon block replaced by images */

.post-content,
.article-content { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.4rem; }
.article-category {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: .6rem;
  padding: .18rem .6rem;
  border-radius: var(--r-pill);
  background: var(--clay-soft);
  color: var(--clay-dark);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
}
.article-category:hover { color: var(--clay-dark); background: #f0d8cd; }

.post-title,
.article-title { font-family: var(--font-display); font-size: 1.16rem; line-height: 1.3; margin: 0 0 .55rem; letter-spacing: -.01em; }
.post-title a,
.article-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover,
.article-title a:hover { color: var(--clay-dark); }

.article-meta { display: flex; flex-wrap: wrap; gap: .35rem .7rem; margin-bottom: .6rem; font-size: .76rem; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: .3rem; }

.post-excerpt,
.article-excerpt { margin: 0 0 1rem; font-size: .9rem; line-height: 1.6; color: var(--muted); flex: 1; }
.post-excerpt p,
.article-excerpt p { margin: 0; }

.read-more,
.article-readmore {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--clay);
  text-decoration: none;
}
.read-more:hover,
.article-readmore:hover { color: var(--clay-dark); }

/* ---------- Featured guides ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}
.featured-card:hover { color: var(--ink); box-shadow: var(--shadow-md); }
.featured-card.is-lead { grid-row: span 2; min-height: 460px; }
.featured-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.featured-card:hover img { transform: scale(1.03); }
.featured-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 28, 20, 0) 30%, rgba(36, 28, 20, .82) 100%);
}
.featured-card .fc-body { position: relative; z-index: 1; color: #fff; }
.featured-card .fc-cat { display: inline-block; margin-bottom: .55rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f0c9a0; }
.featured-card h3 { color: #fff; font-size: 1.3rem; margin: 0 0 .35rem; }
.featured-card.is-lead h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.featured-card p { margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .8); }

/* ---------- Top picks (home) ---------- */
.pick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.pick-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.pick-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pick-card .pick-media { display: grid; place-items: center; height: 150px; margin-bottom: .8rem; }
.pick-card .pick-media img { max-height: 145px; width: auto; object-fit: contain; }
.pick-card .pick-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); margin-bottom: .35rem; }
.pick-card h3 { font-family: var(--font-body); font-size: .88rem; font-weight: 700; line-height: 1.4; color: var(--ink); margin: 0 0 .65rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pick-card .pick-cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; padding: .3rem 0; font-size: .82rem; font-weight: 700; color: var(--clay); text-decoration: none; }
.pick-card .pick-cta:hover { color: var(--clay-dark); }
.pick-note { margin: 1rem 0 0; font-size: .74rem; color: var(--muted); }

/* ---------- Methodology ---------- */
.method-band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.method-grid h2 { margin-bottom: .8rem; }
.method-grid p { color: var(--muted); }
.method-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.method-list li {
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 3.6rem;
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: .92rem;
  color: var(--muted);
  counter-increment: step;
}
.method-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.15rem;
  top: 1.05rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clay);
}
.method-list strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: .15rem; }

/* ---------- Disclosure band ---------- */
.disclosure-band { background: var(--cream-2); border-top: 1px solid var(--line); padding: 1.6rem 0; }
.disclosure-band p { max-width: 840px; margin: 0 auto; text-align: center; font-size: .78rem; line-height: 1.7; color: var(--muted); }
.disclosure-band a { color: var(--clay-dark); text-decoration: underline; text-underline-offset: 2px; }
.disclosure-band strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d8cec0; padding: 3.5rem 0 1.5rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .brand-name { color: #fff; font-size: 1.45rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin: 1rem 0 1.2rem; color: #b3a796; font-size: .86rem; line-height: 1.65; max-width: 30em; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; color: #e9e0d3; }
.footer-social a:hover { border-color: var(--brass); color: var(--brass); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4, .footer-col .footer-heading { font-family: var(--font-body); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--brass); margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: #cfc3b3; text-decoration: none; font-size: .87rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .76rem;
  color: #a99d8c;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #cfc3b3; }
.affiliate-disclosure { color: #a99d8c; }

/* ---------- Page headers ---------- */
.page-header,
.post-header {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.2rem, 4vw, 3.2rem);
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(233, 237, 224, .9), transparent 70%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
  color: var(--ink);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.page-header .container,
.post-header .container { position: relative; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1rem;
  font-size: .78rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--clay-dark); text-decoration: underline; }
.breadcrumbs .current { color: var(--ink-2); max-width: 100%; }
.post-header .post-title,
.page-header .page-title {
  color: var(--ink);
  max-width: 18ch;
  margin: 0 0 .9rem;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}
.post-header .post-title { max-width: 24ch; }
.post-header .post-meta,
.page-header .page-description {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .9rem;
  margin: 0;
  font-size: .84rem;
  color: var(--muted);
}
.page-header .page-description { max-width: 60ch; font-size: 1.02rem; line-height: 1.6; }
.post-meta .post-author strong { color: var(--ink); }
.post-readtime { padding: .15rem .6rem; border-radius: var(--r-pill); background: var(--olive-soft); color: var(--olive-dark); font-size: .74rem; font-weight: 700; }
.post-category-pill { padding: .15rem .65rem; border-radius: var(--r-pill); background: var(--clay-soft); color: var(--clay-dark); font-size: .74rem; font-weight: 700; text-decoration: none; }

.page-content, .page-body { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0; }

/* ---------- Article layout ---------- */
.blog-post { max-width: none; margin: 0; }
.post-content { display: block; padding: 0; }
.post-body {
  padding: clamp(2.2rem, 4vw, 3.2rem) 0 2rem;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--body);
}
.post-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: start;
}
.post-rail { position: sticky; top: 100px; display: grid; gap: 1.1rem; }
.post-main { min-width: 0; max-width: 760px; }

.rail-card {
  padding: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin: 0 0 .7rem;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail-toc { max-height: 44vh; overflow: auto; padding-right: .3rem; }
.rail-toc ul { list-style: none; margin: 0; padding: 0; }
.rail-toc li { margin: 0; }
.rail-toc li li { padding-left: .8rem; }
.rail-toc a {
  display: block;
  padding: .33rem 0;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: .65rem;
}
.rail-toc a:hover { color: var(--clay-dark); border-left-color: var(--clay); }

.rail-picks { display: grid; gap: .7rem; }
.rail-pick { display: grid; grid-template-columns: 52px 1fr; gap: .65rem; align-items: center; }
.rail-pick img { width: 52px; height: 52px; object-fit: contain; background: #fff; border: 1px solid var(--line-soft); border-radius: 8px; padding: 3px; }
.rail-pick a { color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 700; line-height: 1.35; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-pick a:hover { color: var(--clay-dark); }
.rail-note { margin: .8rem 0 0; font-size: .68rem; line-height: 1.5; color: var(--faint); }
.rail-cta { display: block; text-align: center; }

/* mobile TOC */
.toc-mobile { display: none; }

/* legacy TOC (kept for pages where rail is absent) */
.toc-details { margin: 0 0 2rem; padding: .4rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.toc-summary { cursor: pointer; padding: .55rem .2rem; font-weight: 700; font-size: .85rem; color: var(--ink); list-style: none; }
.toc-summary::-webkit-details-marker { display: none; }
.table-of-contents ul { list-style: none; margin: 0; padding: .2rem 0 .6rem; }
.table-of-contents a { font-size: .85rem; color: var(--muted); text-decoration: none; }
.table-of-contents a:hover { color: var(--clay-dark); text-decoration: underline; }
.table-of-contents nav { display: block; }

/* prose */
.post-main > p:first-of-type::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: .8;
  color: var(--clay);
  font-weight: 600;
}
.post-main h2, .page-body h2 {
  margin: 2.6rem 0 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  scroll-margin-top: 110px;
}
.post-main h3, .page-body h3 { margin: 2rem 0 .7rem; font-size: 1.32rem; color: var(--ink); scroll-margin-top: 110px; }
.post-main h4, .page-body h4 { margin: 1.6rem 0 .6rem; font-size: 1.08rem; }
.post-main p, .page-body p { margin-bottom: 1.25rem; }
.post-main ul, .post-main ol, .page-body ul, .page-body ol { margin: 1.1rem 0 1.4rem; padding-left: 1.3rem; }
.post-main li, .page-body li { margin-bottom: .55rem; }
.post-main a:not(.btn):not(.check-price-btn):not(.post-category-pill), .page-body a:not(.btn) {
  color: var(--clay-dark); text-decoration: underline;
  text-decoration-color: rgba(176, 83, 58, .35); text-underline-offset: 3px;
}
.post-main a:not(.btn):not(.check-price-btn):not(.post-category-pill):hover, .page-body a:not(.btn):hover {
  color: var(--clay); text-decoration-color: var(--clay);
}
.post-main img, .page-body img { border-radius: var(--r-sm); }
.post-main blockquote, .page-body blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  background: var(--olive-soft);
  border-left: 4px solid var(--olive);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.02rem;
  color: var(--ink-2);
}
.post-main blockquote p:last-child, .page-body blockquote p:last-child { margin-bottom: 0; }
.post-main strong, .page-body strong { color: var(--ink); }

/* product titles must not inherit prose link styling */
.post-main .product-title a { color: var(--ink); text-decoration: none; }
.post-main .product-title a:hover { color: var(--clay-dark); }
.post-main .rail-card a { color: inherit; text-decoration: none; }
/* content tables (non-product) */
.content-table-wrap { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.content-table,
.post-body table:not(.product-table) {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--paper);
}
.content-table th,
.post-body table:not(.product-table) th {
  padding: .8rem .9rem;
  background: var(--cream-2);
  text-align: left;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.content-table td,
.post-body table:not(.product-table) td { padding: .8rem .9rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.content-table tr:last-child td { border-bottom: 0; }

/* ---------- Product cards (table transform) ---------- */
.product-table-wrap {
  margin: 2.2rem 0;
  padding: 1.35rem;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.product-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  box-shadow: none;
  counter-reset: pick;
  overflow: visible;
}
.product-table thead { display: none; }
.product-table tbody { display: contents; }
.product-table tr {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  counter-increment: pick;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.product-table tr:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--sand); }
.product-table tr::before {
  content: counter(pick, decimal-leading-zero);
  position: absolute;
  top: .85rem;
  left: .95rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  color: var(--clay);
  background: var(--clay-soft);
  border-radius: var(--r-pill);
  padding: .1rem .5rem;
}
.product-table td { display: block; padding: 0; border: 0; }
.product-image { order: 1; text-align: center; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; padding: .9rem; }
.product-image img { width: 100%; max-width: 190px; height: 170px; object-fit: contain; margin: 0 auto; border-radius: 0; }
.product-image img:hover { transform: none; box-shadow: none; }
.product-title { order: 2; padding: .85rem .1rem .6rem; font-size: .88rem; line-height: 1.45; color: var(--ink); }
.product-title a { color: var(--ink); text-decoration: none; font-weight: 700; }
.product-title a:hover { color: var(--clay-dark); }
.product-button { order: 3; width: auto; margin-top: auto; }
.check-price-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: 100%;
  padding: .7rem .9rem;
  border-radius: var(--r-pill);
  background: var(--clay);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  white-space: normal;
  text-align: center;
}
.check-price-btn::after { content: '\2192'; }
.check-price-btn:hover { background: var(--clay-dark); color: #fff; transform: none; box-shadow: 0 6px 16px rgba(176, 83, 58, .28); }

.picks-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: .3rem; }
.picks-head h2, .picks-head h3 { margin: 0; border: 0; padding: 0; }
.picks-head p { margin: 0; font-size: .78rem; color: var(--muted); }
.ad-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: .18rem .55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--paper);
}

/* ---------- Affiliate notice / footer of post ---------- */
.post-footer { margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.affiliate-notice {
  padding: 1rem 1.15rem;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--olive);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 2rem;
  font-size: .8rem;
  line-height: 1.6;
  color: var(--muted);
}
.affiliate-notice strong { color: var(--ink); }

.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation .nav-link {
  display: block;
  padding: 1.1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.post-navigation .nav-link:hover { box-shadow: var(--shadow-sm); border-color: var(--sand); }
.nav-prev { text-align: left; }
.nav-next { text-align: right; }
.nav-label { display: block; margin-bottom: .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.nav-title { display: block; font-family: var(--font-display); font-size: .98rem; line-height: 1.35; color: var(--ink); }

/* ---------- Author card ---------- */
.author-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.1rem;
  margin: 2.2rem 0;
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.author-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--olive-soft);
  color: var(--olive-dark);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.author-card h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.author-card .author-role { margin: 0 0 .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); }
.author-card p { margin: 0 0 .6rem; font-size: .86rem; line-height: 1.6; color: var(--muted); }
.author-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .8rem; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { margin: 0 0 .5rem; font-size: 1.08rem; font-family: var(--font-display); color: var(--ink); }
.faq-a { margin: 0; font-size: .98rem; color: var(--body); }

/* ---------- Related ---------- */
.related-posts { background: var(--cream-2); border-top: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.related-posts .section-title { text-align: left; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.6rem; }

/* ---------- Listing pages ---------- */
.listing-hero { padding: clamp(2.2rem, 5vw, 3.5rem) 0 2rem; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.listing-hero h1 { max-width: 20ch; margin-bottom: .7rem; }
.listing-hero p { max-width: 62ch; margin: 0; color: var(--muted); font-size: 1.02rem; }
.listing-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.1rem; font-size: .78rem; color: var(--muted); }
.listing-meta strong { color: var(--ink); }
.blog-listing { padding: 2.5rem 0 4rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; }
.filter-chips a {
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.filter-chips a:hover, .filter-chips a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin: 2.8rem 0 0; padding: 0; list-style: none; }
.page-item { margin: 0; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
}
.page-link:hover { border-color: var(--ink); color: var(--ink); }
.page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-item.disabled .page-link { opacity: .4; }

/* ---------- Categories index ---------- */
.cat-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin: 2rem 0 3rem; }
.cat-index-card { display: block; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.cat-index-card:hover { border-color: var(--sand); box-shadow: var(--shadow-sm); color: var(--ink); }
.cat-index-card strong { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: .2rem; }
.cat-index-card span { font-size: .8rem; color: var(--muted); }

/* ---------- Tags ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2.5rem; }
.tag-cloud a { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); font-size: .8rem; color: var(--muted); text-decoration: none; }
.tag-cloud a:hover { border-color: var(--clay); color: var(--clay-dark); }

/* ---------- Search ---------- */
.search-shell { max-width: 820px; margin: 0 auto; padding: 2.5rem 0 4rem; }
.search-field { position: relative; display: flex; align-items: center; gap: .5rem; }
.search-field input {
  width: 100%;
  padding: 1rem 1.2rem 1rem 3rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-xs);
}
.search-field input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(176, 83, 58, .15); }
.search-field svg { position: absolute; left: 1.1rem; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.search-hint { margin: .9rem 0 0; font-size: .8rem; color: var(--faint); }
.search-results { list-style: none; margin: 2rem 0 0; padding: 0; }
.search-result { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.search-result a { display: block; font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.search-result a:hover { color: var(--clay-dark); }
.search-result p { margin: .25rem 0 0; font-size: .85rem; color: var(--muted); }
.search-empty { padding: 2rem 0; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { max-width: 680px; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) 0; text-align: center; }
.notfound .nf-code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 7rem); line-height: .9; color: var(--sand); margin: 0; }
.notfound h1 { margin: .5rem 0 1rem; }
.notfound p { color: var(--muted); }
.notfound .hero-actions { justify-content: center; margin-top: 1.5rem; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; margin-top: 2rem; font-size: .85rem; }

/* ---------- Mobile CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Progress ---------- */
.read-progress { position: fixed; top: 0; left: 0; z-index: 2000; height: 3px; width: 0; background: linear-gradient(90deg, var(--clay), var(--brass)); transition: width .1s linear; }

/* ---------- Legacy helpers ---------- */
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.features-section, .categories-section, .methodology-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card { padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.feature-icon { font-size: 1.8rem; display: block; margin-bottom: .6rem; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.category-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.category-card:hover { border-color: var(--sand); box-shadow: var(--shadow-sm); color: var(--ink); }
.category-icon { font-size: 1.4rem; }
.category-card h3 { margin: 0; font-size: 1.1rem; }
.category-card p { margin: 0; font-size: .82rem; color: var(--muted); }
.methodology-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step-card { padding: 1.1rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); }
.step-number { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: .6rem; border-radius: 50%; background: var(--clay); color: #fff; font-family: var(--font-display); font-size: .9rem; }
.step-card h4 { font-size: .95rem; margin-bottom: .3rem; }
.step-card p { margin: 0; font-size: .82rem; color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-list > li > a { padding: .5rem .55rem; font-size: .86rem; }
  .masthead { gap: 1rem; }
  .post-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; }
  .pick-row { grid-template-columns: repeat(3, 1fr); }
  .pick-row .pick-card:nth-child(4) { display: none; }
  .room-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    cursor: pointer;
  }
  .hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
  .hamburger::before { top: -6px; }
  .hamburger::after { top: 6px; }

  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 950;
    width: min(360px, 88vw);
    margin: 0;
    padding: 5.5rem 1.5rem 2rem;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .28s var(--ease);
    overflow-y: auto;
    visibility: hidden;
  }
  .primary-nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-list > li > a { padding: .7rem .6rem; font-size: 1rem; border-radius: 8px; }
  .nav-drop {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 .5rem .9rem;
    display: block;
    min-width: 0;
  }
  .nav-drop a { font-size: .88rem; padding: .4rem .5rem; }
  .nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
  .nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

  .header-actions .icon-link { display: none; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-note { left: 12px; bottom: -16px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card.is-lead { grid-row: auto; min-height: 340px; }
  .article-grid, .articles-grid, .posts-grid, .posts-container { grid-template-columns: repeat(2, 1fr); }
  .article-card.is-wide { grid-column: span 2; }
  .room-grid { grid-template-columns: repeat(2, 1fr); }
  .pick-row { grid-template-columns: repeat(2, 1fr); }
  .pick-row .pick-card:nth-child(3) { display: none; }
  .method-grid { grid-template-columns: 1fr; }
  .methodology-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .post-layout { grid-template-columns: 1fr; }
  .post-rail { display: none; }
  .post-main { max-width: 760px; margin: 0 auto; }
  .toc-mobile { display: block; margin-bottom: 1.6rem; }
  .toc-mobile .table-of-contents { padding: .2rem 0 .6rem; }
  .toc-mobile ul { padding-left: .2rem; }
  .section-head { align-items: flex-start; flex-direction: column; gap: .6rem; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .site-topbar { display: none; }
  .masthead { min-height: 66px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1.32rem; }
  .home-hero { padding-top: 1.4rem; }
  .hero-figure img { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
  .hero-note { display: none; }
  .hero-stats { gap: 1rem 1.5rem; }
  .article-grid, .articles-grid, .posts-grid, .posts-container, .room-grid, .cat-index-grid { grid-template-columns: 1fr; }
  .article-card.is-wide { grid-column: auto; }
  .pick-row { grid-template-columns: repeat(2, 1fr); }
  .pick-row .pick-card:nth-child(3) { display: flex; }
  .product-table { grid-template-columns: 1fr; }
  .product-image img { height: 190px; }
  .post-navigation { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; }
  .category-grid, .features-grid { grid-template-columns: 1fr; }
  .methodology-steps { grid-template-columns: 1fr; }
  .post-header .post-title, .page-header .page-title { max-width: none; }
  .author-card { grid-template-columns: 1fr; }
  .author-avatar { width: 54px; height: 54px; }
  .filter-chips { gap: .4rem; }
  .filter-chips a { font-size: .72rem; padding: .35rem .7rem; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
  .pick-row { grid-template-columns: 1fr; }
  .pick-row .pick-card:nth-child(4) { display: flex; }
}

/* Mobile sticky picks CTA */
@media (max-width: 900px) {
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 850;
    display: flex;
    gap: .5rem;
    padding: .65rem .8rem calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, .96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(55, 40, 24, .1);
    backdrop-filter: blur(10px);
  }
  .mobile-cta .btn { flex: 1; padding: .7rem 1rem; font-size: .85rem; }
  body.has-mobile-cta { padding-bottom: 76px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Print */
@media print {
  .site-topbar, .site-header, .site-footer, .post-rail, .mobile-cta, .read-progress, .related-posts, .post-navigation, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .post-layout { display: block; }
  .post-body { padding: 0; }
  a { color: #000; text-decoration: underline; }
}

/* ---------- Sitemap list ---------- */
.sitemap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sitemap-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin: 0; padding: .72rem 0; border-bottom: 1px solid var(--line-soft); }
.sitemap-list a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; }
.sitemap-list a:hover { color: var(--clay-dark); text-decoration: underline; }
.sitemap-date { flex-shrink: 0; font-size: .78rem; color: var(--faint); }
@media (max-width: 600px) { .sitemap-list li { flex-direction: column; gap: .15rem; } }

/* ---------- Static trust pages ---------- */
.lede { font-size: 1.14rem; line-height: 1.7; color: var(--ink-2); border-left: 3px solid var(--clay); padding-left: 1.1rem; margin-bottom: 1.6rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 2.5rem; }
.contact-card { padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.contact-card h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.contact-card p { font-size: .88rem; color: var(--muted); margin-bottom: .6rem; }
.contact-card a { font-size: .84rem; font-weight: 700; word-break: break-word; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer contrast */
.footer-brand .brand-name em { color: #e7a189; }
.site-footer .link-arrow { color: #e7a189; }
.site-footer .link-arrow:hover { color: #f4c3b2; }

/* worker-rendered pagination + taxonomy links */
.pagination-link, .pagination-current {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .7rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--paper); font-size: .85rem; font-weight: 700;
  color: var(--ink-2); text-decoration: none;
}
.pagination-link:hover { border-color: var(--ink); color: var(--ink); }
.pagination-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag-cloud .tag-link { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); font-size: .82rem; color: var(--muted); text-decoration: none; }
.tag-cloud .tag-link:hover { border-color: var(--clay); color: var(--clay-dark); }
.tag-count { color: var(--faint); font-size: .8em; }

.nav-toggle { position: relative; z-index: 960; }
