/* ==========================================================================
   Feline Feasts — editorial design system
   Paper + forest + clay. Fraunces display / Manrope text.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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: 'Manrope';
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  --paper: #fbf7ef;
  --paper-2: #f3ebdd;
  --paper-3: #eadfcd;
  --white: #fffdf9;
  --ink: #1c2721;
  --ink-2: #3d4b43;
  --ink-3: #6d7a72;
  --forest: #1c4a3c;
  --forest-2: #2c6a55;
  --moss: #7e9a88;
  --clay: #b5542f;
  --clay-2: #d1703f;
  --honey: #e3b25c;
  --line: #e3d9c7;
  --line-2: #d6c9b2;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --shadow-1: 0 1px 2px rgba(28, 39, 33, .05), 0 10px 30px -22px rgba(28, 39, 33, .35);
  --shadow-2: 0 2px 6px rgba(28, 39, 33, .06), 0 24px 60px -30px rgba(28, 39, 33, .38);
  --speed: .28s;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }
strong, b { font-weight: 700; color: var(--ink); }
small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
blockquote {
  margin: 1.8rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--clay);
  background: var(--white);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--ink-2);
}
blockquote p:last-child { margin-bottom: 0; }
code, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: var(--paper-2);
  padding: .15em .35em;
  border-radius: 4px;
}
mark { background: #f7e2b8; padding: 0 .15em; }

::selection { background: var(--honey); color: var(--ink); }

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

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  background: var(--forest);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: var(--paper); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(28, 39, 33, .5); }

.topbar {
  background: var(--forest);
  color: #e8e2d4;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}
.topbar p { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.topbar p::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--honey);
  flex: none;
}
.topbar nav { display: flex; gap: 18px; }
.topbar a { color: #e8e2d4; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  display: block;
}
.brand-name span { color: var(--clay); }
.brand-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}

.primary-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: var(--paper-2);
  color: var(--forest);
}

.nav-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.nav-cta::after { content: '→'; font-size: 1rem; line-height: 1; }
.nav-cta:hover { background: var(--clay); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.catrail {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.catrail-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  overflow-x: auto;
  scrollbar-width: none;
}
.catrail-inner::-webkit-scrollbar { display: none; }
.catrail-label {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  padding-right: 4px;
}
.catrail a {
  flex: none;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.catrail a:hover { background: var(--forest); color: var(--paper); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-orange,
.btn-primary { background: var(--forest); color: var(--paper); }
.btn-orange:hover,
.btn-primary:hover { background: var(--clay); color: #fff; box-shadow: var(--shadow-1); }
.btn-green { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-green:hover { background: var(--white); color: var(--forest); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--paper); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--forest);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line);
}
.chip:hover { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.chip-clay { background: #f6e2d8; color: var(--clay); border-color: #ecd2c4; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(126, 154, 136, .22), transparent 65%),
    radial-gradient(680px 380px at 6% 92%, rgba(227, 178, 92, .22), transparent 70%),
    var(--paper);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: '';
  width: 34px; height: 1px;
  background: var(--clay);
}
.hero-title {
  font-size: clamp(2.5rem, 5.1vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 20px;
  max-width: 13ch;
}
.hero-title em {
  font-style: italic;
  color: var(--clay);
  font-weight: 500;
}
.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats li { margin: 0; }
.hero-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--forest);
}
.hero-stats span {
  display: block;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 5px;
}

.hero-visual { position: relative; }
.hero-photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  background: var(--paper-3);
  aspect-ratio: 4 / 3.35;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-sticker {
  position: absolute;
  right: -14px;
  bottom: -22px;
  width: 190px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-2);
}
.hero-sticker span {
  display: block;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 6px;
}
.hero-sticker strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
}
.hero-sticker a { text-decoration: none; }
.hero-sticker a:hover strong { color: var(--clay); }

/* legacy hero cat cards */
.cat-showcase { display: none; }
.cat-card {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  text-align: center;
}
.cat-card span { font-size: 1.8rem; }
.cat-card h4 { margin: 8px 0 0; font-size: .95rem; }

/* -------------------------------------------------------------- sections */

.section { padding: 72px 0; }
.section + .section { padding-top: 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-head-text { max-width: 660px; }
.section-kicker {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin: 0 0 8px;
}
.section-subtitle { color: var(--ink-3); margin: 0; font-size: 1rem; }
.section-link {
  font-weight: 700;
  font-size: .88rem;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  white-space: nowrap;
}
.section-link:hover { color: var(--clay); border-color: var(--clay); }

/* ------------------------------------------------------------- cat tiles */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  padding: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper-2);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: var(--ink); }
.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.cat-tile:hover img { transform: scale(1.045); }
.cat-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(28, 39, 33, .04);
  background: linear-gradient(to top, rgba(22, 34, 28, .12), transparent 42%);
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}
.cat-tile:hover::after { opacity: 1; }
.cat-tile-text { position: relative; z-index: 1; color: #fff; }
.cat-tile-text h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #fff;
  line-height: 1.2;
}
.cat-tile-text p {
  margin: 4px 0 0;
  font-size: .78rem;
  color: rgba(255, 255, 255, .78);
}

/* legacy category card */
.cat-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.cat-card-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); color: var(--ink); }
.cat-img {
  width: 52px; height: 52px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--paper-2) !important;
}
.cat-card-content h4 { margin: 0 0 2px; font-size: 1rem; }
.cat-card-content p { margin: 0; font-size: .78rem; color: var(--ink-3); }

/* ---------------------------------------------------------------- cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.post-card-media {
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--paper-2);
  overflow: hidden;
  position: relative;
}
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-cat {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 8px;
}
.post-card h3 {
  font-size: 1.16rem;
  line-height: 1.28;
  margin: 0 0 10px;
}
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--clay); }
.post-card-excerpt {
  font-size: .9rem;
  color: var(--ink-3);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-excerpt p { margin: 0; display: inline; }
.post-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  color: var(--ink-3);
}
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--moss); }

.post-card-text { position: relative; border-top: 3px solid var(--paper-3); }
.post-card-text::before {
  content: '';
  position: absolute;
  top: -3px; left: 0;
  width: 46px; height: 3px;
  background: var(--clay);
  transition: width var(--speed) var(--ease);
}
.post-card-text:hover { border-color: var(--line-2); }
.post-card-text:hover::before { width: 100%; }
.post-card-text .post-card-body { padding: 22px 22px 24px; }
.post-card-text h3 { font-size: 1.1rem; }
.post-card-text .post-card-excerpt { -webkit-line-clamp: 3; }

/* legacy article cards (related posts, static fallbacks) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.article-img {
  aspect-ratio: 3 / 1.55;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%) !important;
  display: grid;
  place-items: center;
  position: relative;
}
.article-img span:first-child { font-size: 2.2rem; opacity: .9; }
.article-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(251, 247, 239, .92);
  color: var(--forest);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.article-header {
  aspect-ratio: 3.2 / 1;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%) !important;
}
.article-icon { font-size: 1.6rem; }
.article-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.article-title { font-size: 1.12rem; line-height: 1.3; margin: 0 0 10px; }
.article-title a, .article-content h3 a {
  color: var(--ink);
  text-decoration: none;
}
.article-title a:hover, .article-content h3 a:hover { color: var(--clay); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: .76rem;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.article-meta span { display: inline; }
.article-excerpt { font-size: .9rem; color: var(--ink-3); margin: 0 0 14px; }
.article-excerpt p { margin: 0; }
.article-readmore {
  margin-top: auto;
  font-size: .82rem;
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
}
.article-readmore:hover { color: var(--clay); }

.posts-cta { text-align: center; margin-top: 40px; }

/* ---------------------------------------------------------- why / process */

.whyus { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.whyus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.whyus-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 22px;
}
.whyus-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--paper-2) !important;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.whyus-item h4 { margin: 0 0 6px; font-size: 1.05rem; }
.whyus-item p { margin: 0; font-size: .86rem; color: var(--ink-3); line-height: 1.6; }
.testing-methodology {
  max-width: 760px !important;
  margin: 26px auto 0 !important;
  text-align: center;
  color: var(--ink-3) !important;
  font-size: .9rem !important;
  line-height: 1.7 !important;
}

/* ------------------------------------------------------------- disclosure */

.disclosure-strip {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.disclosure-strip .disclosure-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}
.disclosure-strip h3 {
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0;
  flex: none;
  padding-top: 3px;
}
.disclosure-strip p { margin: 0; font-size: .82rem; color: var(--ink-3); line-height: 1.65; }

/* ------------------------------------------------------------ breadcrumbs */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--clay); text-decoration: underline; }
.breadcrumbs .current {
  color: var(--ink-2);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------ post / hero */

.post-hero {
  padding: 44px 0 34px;
  background:
    radial-gradient(680px 300px at 88% 0%, rgba(126, 154, 136, .16), transparent 70%),
    var(--paper);
}
.post-kicker { margin: 0 0 14px; }
.post-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.028em;
  max-width: 19ch;
  margin: 0 0 18px;
}
.post-dek {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 0 24px;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--ink-3);
}
.byline a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.byline a:hover { color: var(--clay); }
.byline-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.avatar {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .02em;
  font-weight: 600;
}

.post-cover {
  margin: 0;
  max-width: var(--wrap);
  padding: 0 24px;
  margin-inline: auto;
}
.post-cover img {
  width: 100%;
  aspect-ratio: 2.55 / 1;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper-3);
}

/* ---------------------------------------------------------------- article */

.post-content { padding: 44px 0 64px; }
.post-content > .container { max-width: none; padding: 0; }

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 56px;
  align-items: start;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.post-body {
  font-size: 1.085rem;
  line-height: 1.78;
  color: var(--ink-2);
  min-width: 0;
}
.post-body > * { max-width: 72ch; }
.post-body > .toc-details,
.post-body > .post-footer,
.post-body > table,
.post-body > figure { max-width: 100%; }

.post-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.post-body h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  color: var(--ink);
  margin: 2.4em 0 .6em;
  padding-top: .35em;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.post-body h3 {
  font-size: 1.32rem;
  color: var(--ink);
  margin: 1.9em 0 .5em;
  scroll-margin-top: 110px;
}
.post-body h4 { font-size: 1.1rem; margin: 1.6em 0 .4em; color: var(--ink); }
.post-body p { margin: 0 0 1.25em; }
.post-body a { color: var(--forest); text-decoration: underline; text-decoration-color: rgba(28, 74, 60, .32); }
.post-body a:hover { color: var(--clay); text-decoration-color: currentColor; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: .55em; }
.post-body li::marker { color: var(--clay); }
.post-body img { border-radius: var(--r-sm); margin: 1.4em 0; }
.post-body figure { margin: 1.6em 0; }
.post-body figcaption { font-size: .82rem; color: var(--ink-3); margin-top: .6em; text-align: center; }
.post-body strong { color: var(--ink); }
.post-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: .82;
  padding: .06em .1em 0 0;
  color: var(--forest);
  font-weight: 600;
}
.post-body > p:first-of-type { margin-top: 0; }

/* table of contents */
.toc-details {
  background: var(--white) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md) !important;
  padding: 0 !important;
  margin: 0 0 2.2rem !important;
  overflow: hidden;
}
.toc-summary {
  font-family: var(--font-sans) !important;
  font-size: .74rem !important;
  font-weight: 700 !important;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3) !important;
  cursor: pointer;
  padding: 16px 20px !important;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toc-summary::-webkit-details-marker { display: none; }
.toc-summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--forest);
  transition: transform var(--speed) var(--ease);
}
.toc-details[open] .toc-summary::after { transform: rotate(45deg); }
.toc-details[open] .toc-summary { border-bottom: 1px solid var(--line); }
.table-of-contents { padding: 16px 20px 18px !important; }
.table-of-contents ul { list-style: none; padding: 0 !important; margin: 0 !important; }
.table-of-contents li { margin: 0 !important; }
.table-of-contents a {
  display: block;
  padding: 6px 0;
  font-size: .88rem !important;
  line-height: 1.45;
  color: var(--ink-2) !important;
  text-decoration: none !important;
  border-bottom: 1px dashed transparent;
}
.table-of-contents a:hover { color: var(--clay) !important; border-bottom-color: var(--line-2); }
.table-of-contents .toc-sub-item a { padding-left: 14px; font-size: .83rem !important; color: var(--ink-3) !important; }

/* product tables */
.product-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.8rem 0;
  font-size: .92rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.product-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.product-table tr:last-child td { border-bottom: 0; }
.product-table tr:hover td { background: #fdf9f1; }
.product-table .product-image { width: 84px; }
.product-table .product-image img {
  width: 64px; height: 64px;
  object-fit: contain;
  margin: 0;
  border-radius: 8px;
  background: #fff;
}
.product-table .product-title { font-weight: 600; color: var(--ink); }
.product-table .product-title a { color: var(--ink); text-decoration: none; }
.product-table .product-title a:hover { color: var(--clay); }
.product-table .product-button { white-space: nowrap; text-align: right; width: 1%; }
.check-price-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--forest) !important;
  color: var(--paper) !important;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.check-price-btn:hover { background: var(--clay) !important; color: #fff !important; transform: translateY(-1px); }

/* post footer + nav */
.post-footer { margin-top: 2.6rem; }
.affiliate-notice {
  border: 1px solid var(--line) !important;
  border-left: 3px solid var(--clay) !important;
  background: var(--paper-2) !important;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 16px;
  font-size: .8rem;
  line-height: 1.6;
  color: var(--ink-3);
  margin-bottom: 1.6rem;
}
.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.post-navigation > div:only-child { grid-column: 1 / -1; }
.post-navigation a.nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  text-decoration: none;
  height: 100%;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.post-navigation a.nav-link:hover { border-color: var(--forest); transform: translateY(-2px); }
.nav-label {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
}
.nav-title { font-family: var(--font-display); font-size: 1rem; line-height: 1.3; color: var(--ink); }
.nav-next { text-align: right; }

/* -------------------------------------------------------------- post rail */

.post-rail {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  font-size: .86rem;
}
.rail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
}
.rail-card h2, .rail-card h3 {
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.share-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.share-list a:hover { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.share-list button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px dashed var(--line-2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.share-list button:hover { background: var(--forest); color: var(--paper); border-color: var(--forest); }

/* author band */
.author-band { background: var(--paper); border-top: 1px solid var(--line); }
.author-band-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
}
.avatar-xl { width: 86px; height: 86px; font-size: 1.5rem; }
.author-band h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 8px; }
.author-band p { font-size: .95rem; color: var(--ink-2); margin: 0 0 10px; max-width: 60ch; }
.author-band-links { display: grid; gap: 8px; font-size: .84rem; }
.author-band-links a { color: var(--ink-3); text-decoration: none; }
.author-band-links a:hover { color: var(--clay); text-decoration: underline; }
.rail-author { display: flex; gap: 12px; align-items: center; }
.rail-author .avatar { width: 44px; height: 44px; font-size: .9rem; }
.rail-author b { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.rail-author span { font-size: .74rem; color: var(--ink-3); }
.rail-links { list-style: none; margin: 0; padding: 0; }
.rail-links li { margin: 0; }
.rail-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
  color: var(--ink-2);
  text-decoration: none;
}
.rail-links li:last-child a { border-bottom: 0; }
.rail-links a:hover { color: var(--clay); }
.rail-note {
  font-size: .74rem;
  line-height: 1.6;
  color: var(--ink-3);
  background: transparent;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}

/* author card */
.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 56px;
  padding: 26px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.author-card .avatar { width: 60px; height: 60px; font-size: 1.1rem; }
.author-card h2 { font-size: 1.15rem; margin: 0 0 4px; }
.author-card .role {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
  margin-bottom: 8px;
}
.author-card p { font-size: .88rem; color: var(--ink-2); margin: 0 0 10px; }
.author-card a { font-size: .82rem; font-weight: 700; text-decoration: none; }
.author-card a:hover { text-decoration: underline; }

/* related */
.related-posts {
  padding: 56px 0 72px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.related-posts .section-title { margin-bottom: 26px; }
.related-posts .articles-grid { grid-template-columns: repeat(3, 1fr); }
.related-posts .article-card { background: var(--white); }
.related-posts .article-header { display: none; }
.related-posts .article-content { padding: 18px 20px 20px; }

/* ------------------------------------------------------------- page head */

.page-header {
  padding: 46px 0 34px;
  background:
    radial-gradient(700px 300px at 82% 0%, rgba(227, 178, 92, .2), transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-header .container { max-width: var(--wrap); padding: 0 24px; }
.page-kicker {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
}
.page-title {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  margin: 0 0 10px;
  max-width: 22ch;
}
.page-description { color: var(--ink-2); margin: 0; max-width: 66ch; font-size: 1rem; }
.page-meta { margin-top: 14px; font-size: .8rem; color: var(--ink-3); }

/* listing */
.blog-listing { padding: 40px 0 72px; }
.blog-listing .page-header { margin: -40px -24px 34px; padding: 46px 24px 34px; }
.posts-container { display: grid; gap: 22px; }
.posts-container > .article-card { flex-direction: row; }
.posts-container > .article-card .article-content { padding: 22px 24px; }
.posts-container > .article-card .article-title { font-size: 1.3rem; }

/* pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
}
.page-item { margin: 0; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.page-link:hover { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.page-item.active .page-link { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.page-item.disabled .page-link { opacity: .4; cursor: default; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  margin: 0 2px;
}
.pagination a:hover { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.pagination-current, .pagination a.active {
  background: var(--forest) !important;
  color: var(--paper) !important;
  border-color: var(--forest) !important;
}
.pagination-link:hover { background: var(--forest) !important; color: var(--paper) !important; }

/* tag / category index */
.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.taxonomy-grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.taxonomy-grid a:hover { border-color: var(--forest); transform: translateY(-2px); color: var(--forest); }
.taxonomy-grid .count { font-size: .78rem; color: var(--ink-3); font-weight: 500; }
.tag-link { text-decoration: none; }
.tag-count { color: var(--ink-3); font-size: .85em; }

/* sitemap page */
.sitemap-container { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }
.sitemap-container h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.sitemap-description { color: var(--ink-3); margin-bottom: 32px; }
.sitemap-list { list-style: none; padding: 0; margin: 0; }
.sitemap-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.sitemap-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.sitemap-list a:hover { color: var(--clay); }
.sitemap-date { color: var(--ink-3); font-size: .8rem; white-space: nowrap; }
.sitemap-container .pagination { justify-content: space-between; margin-top: 36px; }
.sitemap-container .pagination a {
  background: var(--forest);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
}
.page-info { color: var(--ink-3); font-size: .85rem; }

/* ----------------------------------------------------------------- footer */

.site-footer {
  background: #16261f;
  color: #cfd8d0;
  padding: 60px 0 28px;
  border-top: 3px solid var(--forest);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251, 247, 239, .12);
}
.footer-brand .brand { color: var(--paper); margin-bottom: 14px; }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand p { font-size: .86rem; line-height: 1.7; color: #a8b6ac; max-width: 34ch; margin: 0 0 14px; }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #cfd8d0;
  border: 1px solid rgba(251, 247, 239, .18);
  border-radius: 999px;
  padding: 6px 12px;
}
.footer-col h2 {
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8fa596;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 9px; }
.footer-col a { color: #cfd8d0; font-size: .87rem; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: .76rem;
  color: #93a599;
}
.footer-base p { margin: 0; }
.footer-base .affiliate-disclosure { color: #93a599; font-size: .76rem; }

/* legacy footer styles */
.footer { background: #16261f !important; color: #cfd8d0; padding: 52px 0 24px; }
.footer .container { max-width: var(--wrap); padding: 0 24px; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer-section h3, .footer-section h4 {
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-section p { font-size: .86rem; color: #a8b6ac; line-height: 1.7; }
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li { margin-bottom: 9px; }
.footer-section a { color: #cfd8d0; text-decoration: none; font-size: .87rem; }
.footer-section a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 247, 239, .12);
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .76rem;
  color: #93a599;
}

/* ----------------------------------------------------------------- forms */

.contact-form { display: grid; gap: 14px; max-width: 560px; }
.contact-form label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--white);
  font: inherit;
  color: var(--ink);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ------------------------------------------------------------- 404 / misc */

.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}
.error-page h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 12px; }
.error-page p { color: var(--ink-2); max-width: 48ch; margin: 0 auto 26px; }
.error-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

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

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

/* ------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero-grid { gap: 36px; }
  .hero-sticker { width: 168px; right: -8px; }
  .cat-grid, .card-grid, .card-grid-4, .articles-grid, .whyus-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { gap: 14px; }
  .post-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .topbar { display: none; }
  .masthead-inner { min-height: 68px; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    padding: 18px 24px 32px;
    margin: 0;
    display: none;
    overflow-y: auto;
    z-index: 130;
    border-top: 1px solid var(--line);
  }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 14px 12px; border-radius: var(--r-sm); font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-cta { display: none; }
  .catrail { display: none; }

  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-title { max-width: 16ch; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .hero-sticker { position: static; width: 100%; margin-top: 14px; }
  .hero-stats { gap: 20px 28px; }

  .section { padding: 48px 0; }
  .section + .section { padding-top: 0; }

  .post-layout { grid-template-columns: 1fr; gap: 28px; }
  .post-rail { position: static; grid-template-columns: 1fr 1fr; }
  .post-hero { padding: 28px 0 24px; }
  .post-content { padding: 32px 0 44px; }
  .post-body { font-size: 1.03rem; }
  .author-card { margin-top: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-content .footer-section:first-child { grid-column: 1 / -1; }
  .taxonomy-grid { grid-template-columns: repeat(2, 1fr); }
  .related-posts .articles-grid { grid-template-columns: 1fr 1fr; }
  .author-band-inner { grid-template-columns: auto 1fr; }
  .author-band-links { grid-column: 2; display: flex; gap: 16px; }
}

@media (max-width: 640px) {
  .wrap, .post-cover { padding: 0 18px; }
  body { font-size: .98rem; }
  .brand-name { font-size: 1.2rem; }
  .brand-tag { display: none; }
  .hero-title { font-size: clamp(2.15rem, 9.2vw, 2.9rem); max-width: none; }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons .btn { flex: 1 1 auto; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-stats b { font-size: 1.3rem; }

  .cat-grid, .card-grid, .card-grid-4, .articles-grid, .whyus-grid, .taxonomy-grid { grid-template-columns: 1fr; }
  .cat-tile { min-height: 132px; }
  .section-head { align-items: flex-start; }
  .whyus-grid { gap: 12px; }
  .whyus-item { padding: 18px; }

  .post-title { font-size: clamp(1.9rem, 8vw, 2.5rem); max-width: none; }
  .post-dek { font-size: 1rem; }
  .post-body h2 { font-size: 1.42rem; }
  .post-body h3 { font-size: 1.2rem; }
  .post-body > * { max-width: 100%; }
  .post-body > p:first-of-type::first-letter { font-size: 3.1em; }
  .post-rail { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
  .related-posts .articles-grid { grid-template-columns: 1fr; }

  .product-table { display: block; overflow-x: auto; }
  .product-table tbody, .product-table tr { display: block; }
  .product-table tr { padding: 14px; border-bottom: 1px solid var(--line); }
  .product-table tr:last-child { border-bottom: 0; }
  .product-table td { display: block; border: 0; padding: 0; }
  .product-table .product-image { display: none; }
  .product-table .product-title { margin-bottom: 10px; }
  .product-table .product-button { text-align: left; width: auto; }
  .check-price-btn { width: 100%; justify-content: center; }

  .author-card { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .footer-grid, .footer-content { grid-template-columns: 1fr; gap: 26px; }
  .footer-base, .footer-bottom { flex-direction: column; }
  .posts-container > .article-card { flex-direction: column; }
  .post-cover img { border-radius: var(--r-md); }
  .sitemap-list li { flex-direction: column; gap: 2px; }
  .author-band-inner { grid-template-columns: 1fr; text-align: left; }
  .author-band-links { grid-column: 1; flex-wrap: wrap; }
}

@media print {
  .site-header, .site-footer, .post-rail, .hero-buttons, .share-list,
  .post-navigation, .related-posts, .read-progress, .skip-link, .author-card { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .post-layout { display: block; }
  .post-body { max-width: none; }
  a { color: #000; text-decoration: none; }
  .product-table { border: 1px solid #ccc; }
  .check-price-btn { background: #eee !important; color: #000 !important; }
  .affiliate-notice { border: 1px solid #999 !important; background: none !important; }
}

@media (max-width: 640px) {
  .byline-dot { display: none; }
  .cat-tile { min-height: 0; }
}
