/* Design tokens -- restores the site's original orange/black identity (the
   2020 eleven40-pro/Genesis theme + WP Customizer CSS, pulled from the
   Wayback Machine) as the color/type language, while keeping the 2026
   rebuild's card-based structure (hero, blog grid, sticky sidebar, shadowed
   panels). Two orange shades do different jobs: --brand-vivid is the raw,
   punchy orange (only 3.02:1 -- decorative borders/backgrounds only, never
   text) and --brand is a darkened, text-safe orange (4.93:1) for links and
   any orange-on-light text. --header-bg is its own true-orange shade tuned
   separately so white nav text still clears 4.5:1 against it. Every pairing
   below is checked against a real WCAG contrast-ratio calculation (formula
   documented in CLAUDE.md) -- do not swap a color here without re-checking. */
:root {
  --brand: #b45521;              /* 4.93:1 on white -- links, hover states,
                                     badge/star/category text (must stay text-safe) */
  --brand-vivid: #ed702b;        /* 3.02:1 on white -- decorative only: borders,
                                     underlines, tinted backgrounds, glows */
  --brand-dark: #963f16;         /* hover/active state, darker than --brand */
  --brand-light: #fdece0;        /* tint backgrounds behind brand content */

  --ink: #1b1a17;                /* headings, high-emphasis text -- 16.3:1 on bg */
  --ink-soft: #4a4a44;           /* body copy alt */
  --muted: #6b6b63;              /* meta/caption text -- 5.4:1 on white, 5.0:1 on bg */
  --text: #2a2a25;               /* primary body text */

  --bg: #faf7f2;                 /* page background, warm off-white */
  --surface: #ffffff;            /* cards, header of tables, raised panels */
  --border: #e7e2d9;             /* decorative dividers/card borders (non-text) */
  --border-strong: #d6cfc0;

  --header-bg: #b8500f;          /* true orange nav bar -- 5.01:1 with white text,
                                     tuned separately from --brand-vivid because the
                                     raw brand orange (2.94:1) fails white-on-orange */
  --surface-dark: #14110f;       /* near-black warm -- footer, hero, sidebar CTA card;
                                     kept separate from --header-bg so large dark
                                     surfaces aren't a wall of orange, matching the
                                     original site's black nav submenu/dark widgets */

  --success: #157030;            /* 6.2:1 on white */
  --success-bg: #eafaf0;
  --success-border: #26c53c;
  --danger: #b51111;
  --danger-bg: #fdecec;

  --cta-bg: #b8500f;             /* 5.01:1 with white text -- same orange as the
                                     header, deliberately: the original design used
                                     one unified orange everywhere, not a split
                                     brand/CTA hue */
  --cta-bg-hover: #8f3f0a;

  --font-body: 'Lora', serif;
  --font-heading: 'Oswald', sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(20, 17, 15, .08);
  --shadow: 0 6px 20px rgba(20, 17, 15, .09);
  --shadow-lg: 0 16px 40px rgba(20, 17, 15, .14);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
}

* { box-sizing: border-box; }

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

html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

/* Consistent, visible focus state for every interactive element -- accent
   passes the 3:1 non-text/UI-component contrast threshold on both white and bg. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.nav-toggle:focus-visible + label {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 500;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
h1 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); margin-top: 0; letter-spacing: -0.01em; }
h2 {
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.7rem);
  padding-bottom: 0.35em;
  border-bottom: 3px solid var(--brand-vivid);
  display: inline-block;
}
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

/* header */
.site-header {
  background-color: var(--header-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header .logo {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header .logo:hover { text-decoration: none; opacity: .85; }
.site-header .logo img { display: block; height: 25px; width: auto; }

/* --brand/--brand-vivid are calibrated against light surfaces -- against the
   header's own orange background they'd be nearly invisible (1.02:1 /
   1.66:1), so focusable elements inside the header get a white ring instead. */
.site-header :focus-visible { outline-color: #fff; }

.primary-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 4px; }
.primary-nav a {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background-color .15s ease, color .15s ease;
}
.primary-nav a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .15); }

/* Guides dropdown -- pure CSS (:hover/:focus-within), no JavaScript. The
   trigger is a real link to /blog/ so it degrades gracefully on touch
   devices, which get no hover state and just navigate on tap. */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  min-width: 190px;
  padding: 6px;
  margin-top: 2px;
  background: var(--surface-dark);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 20;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: flex;
}
.dropdown-menu a { padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap; }

/* Mobile nav toggle -- pure CSS (checkbox hack), no JavaScript. */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle-label:hover { background: rgba(255, 255, 255, .1); }
.nav-toggle-label svg { display: block; width: 24px; height: 24px; }

@media (max-width: 640px) {
  .nav-toggle-label { display: block; }
  .primary-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
    padding-top: 10px;
  }
  .primary-nav a { padding: 10px 12px; }
  .nav-toggle:checked ~ .primary-nav { display: flex; }
  .nav-dropdown { display: flex; flex-direction: column; }
  .dropdown-menu {
    display: flex;
    position: static;
    box-shadow: none;
    background: transparent;
    margin-top: 0;
    padding-left: 14px;
  }
}

/* breadcrumbs */
.breadcrumb-nav {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.breadcrumb-nav a { color: var(--muted); }
.breadcrumb-nav a:hover { color: var(--brand-dark); }
.breadcrumb-nav .sep { margin: 0 6px; color: var(--border-strong); }

/* layout */
.site-main { background: var(--bg); padding: var(--space-5) 0; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.content-layout > * { min-width: 0; }
@media (max-width: 800px) {
  /* minmax(0, 1fr), not bare 1fr -- a grid item's default min-width:auto
     otherwise wins and lets wide content (e.g. su-column's min-width:240px
     pairs, long tables) force the item past the viewport on mobile. */
  .content-layout { grid-template-columns: minmax(0, 1fr); }
}

.entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.entry-meta { color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: var(--space-4); }

/* Editorial lead-in: the first paragraph of every page gets a larger, softer
   treatment to give long review posts a visual entry point instead of
   starting flat, same size as every other paragraph. */
.entry-content > p:first-of-type {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* h3 subheads get a brand-colored rule + extra breathing room -- these
   posts run 3,000+ words of unbroken prose in the original WP content, this
   is the one sitewide, content-safe way to break up the wall of text. */
.entry-content h3 {
  border-left: 4px solid var(--brand-vivid);
  padding-left: 14px;
  margin-top: 2.2em;
}

.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.entry-content figure { margin: 0 0 1.5em; }
/* Unify the legacy WP listicle-banner photos (mismatched fonts/crops/eras)
   into one visual family: a consistent frame + a light color-grade pass,
   since the baked-in text in the source JPEGs can't be restyled. Covers
   both <figure>-wrapped images (most banners) and bare linked <img>s
   (product thumbnails inside a plain .wp-block-image div). */
.entry-content figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.entry-content figure img,
.entry-content .wp-block-image > a > img,
.entry-content .wp-block-image > img {
  border-radius: var(--radius);
  display: block;
  filter: saturate(1.08) contrast(1.03);
}
.entry-content figure img { border-radius: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote {
  margin: 1.5em 0;
  padding: 0.9em 1.4em;
  border-left: 4px solid var(--brand-vivid);
  background: var(--brand-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-soft);
}
.entry-taxonomy { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--border); margin-top: var(--space-4); padding-top: 14px; }
.entry-taxonomy span { margin-right: 20px; }

/* WordPress core image alignment classes */
.alignright { float: right; margin: 0 0 1.2em 1.5em; }
.alignleft { float: left; margin: 0 1.5em 1.2em 0; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignnone { margin: 0 0 1.2em; }
.entry-content .wp-caption figcaption { font-size: 0.85rem; color: var(--muted); font-style: italic; padding-top: 6px; text-align: center; }

/* Shortcodes Ultimate conversions */
.su-row { display: flex; flex-wrap: wrap; gap: 20px; margin: 1.5em 0; align-items: stretch; }
.su-column { flex: 1 1 0; min-width: 240px; display: flex; }
.su-column-1-1 { flex-basis: 100%; }

.su-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1em;
  box-shadow: var(--shadow-sm);
}
.su-box-title { margin: 0; padding: 12px 16px; font-weight: 700; font-family: var(--font-heading); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; }
.su-box-body { padding: 16px; flex: 1; }
.su-box-pros .su-box-title { background: var(--success); color: #fff; }
.su-box-cons .su-box-title { background: var(--danger); color: #fff; }
.su-box-pros .su-box-body { background: var(--success-bg); }
.su-box-cons .su-box-body { background: var(--danger-bg); }

.su-list ul { list-style: none; margin: 0; padding: 0; }
.su-list li { padding-left: 1.6em; position: relative; margin-bottom: 8px; }
.su-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.su-button {
  display: inline-block;
  /* #ff9900 with white text was only 2.1:1 contrast (WCAG AA needs 4.5:1
     for text this size) -- the CTA button on every review post. Darkened
     just enough to pass while staying recognizably the same orange. */
  background: var(--cta-bg);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.su-button:hover { background: var(--cta-bg-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.su-button::after { content: " \2197"; }

/* su-note colors match the site's actual Customizer Additional CSS */
.su-note { border: solid 2px; display: table; padding: 12px 16px; margin: 1em 0; border-radius: var(--radius-sm); }
.su-note.su-note-green { border-color: #26c53c; background-color: #eafaf0; }
.su-note.su-note-red { border-color: #b51111; background-color: #fdecec; }
.su-note.su-note-blue { border-color: #0074cc; background-color: #e6f1fb; }
.su-note.su-note-yellow { border-color: #d0d000; background-color: #fffce6; }

table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
table th, table td { font-size: 14px; font-family: var(--font-body); padding: 12px; border: 1px solid var(--border); text-align: left; }
table th { background: var(--bg); font-family: var(--font-heading); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
table tbody tr:hover { background: var(--brand-light); }

/* product comparison table (Coffee Scales page) */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 1.5em 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.comparison-table { width: 100%; min-width: 720px; margin: 0; border: none; }
.comparison-table th, .comparison-table td { border: none; border-bottom: 1px solid var(--border); }
.comparison-table thead th { position: sticky; top: 0; }
.comparison-table .ct-product { min-width: 180px; font-family: var(--font-heading); }
.comparison-table .ct-product img { max-width: 120px; height: auto; border-radius: var(--radius-sm); }
.comparison-table td ul { margin: 0; padding-left: 1.2em; }

/* FAQ */
.faq-section { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 18px;
  margin-bottom: 10px;
  background: var(--surface);
  transition: box-shadow .15s ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 14px 28px 14px 0;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--brand);
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding-bottom: 14px; margin: 0; color: var(--ink-soft); }

/* star rating */
.star-rating { color: var(--brand); font-weight: 700; letter-spacing: 1px; }
.star-rating .stars { color: var(--brand); letter-spacing: 1px; }

/* badges (used in blog cards + entry meta) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--brand-light);
  color: var(--brand-dark);
}

/* hero (homepage only) */
.hero {
  position: relative;
  overflow: hidden;
  margin: calc(-1 * clamp(20px, 4vw, 44px)) calc(-1 * clamp(20px, 4vw, 44px)) var(--space-4);
  padding: var(--space-6) clamp(20px, 4vw, 44px) var(--space-5);
  background: linear-gradient(135deg, var(--surface-dark) 0%, #2a2119 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: #fff;
}
/* subtle radial glow, pure CSS decoration -- no image asset needed */
.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(237, 112, 43, .3) 0%, transparent 70%);
  pointer-events: none;
}
.hero .eyebrow {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffb37e;
  margin-bottom: 0.8em;
}
.hero h1 { position: relative; color: #fff; font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); margin-bottom: 0.3em; max-width: 18ch; }
.hero p.tagline { position: relative; font-size: 1.15rem; color: #e8e0d6; max-width: 58ch; margin-bottom: 0; }
.hero .hero-badges { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); }
.hero .badge { background: rgba(237, 112, 43, .18); color: #ffb37e; }

/* sidebar */
.sidebar { position: sticky; top: 84px; }
.widget {
  margin-bottom: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-sm);
}
.widget h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 8px;
  margin-top: 0;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.widget li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.widget li a { font-family: var(--font-heading); font-weight: 500; font-size: 0.92rem; color: var(--ink); }
.widget li a:hover { color: var(--brand-dark); }

.widget-cta { background: linear-gradient(160deg, var(--surface-dark), #2a2119); border: none; color: #fff; text-align: center; }
.widget-cta h3 { color: #fff; border-bottom-color: var(--brand-vivid); }
.widget-cta p { color: #d8cfc4; font-size: 0.9rem; }
.widget-cta .su-button { width: 100%; }

/* Top Scales: real product photos + real HTML rank badges/labels, not the
   original raster promo banners (bold drop-shadowed "1/2/3" numerals baked
   into the JPEGs) -- those clashed with the rest of the site's clean
   editorial card language. */
.top-scales-list { display: flex; flex-direction: column; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.top-scales-list li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; border: none; }
.top-scales-list .thumb {
  position: relative;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.top-scales-list .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.top-scales-list .rank {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.72rem;
  line-height: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.top-scales-list .info { min-width: 0; flex: 1; }
.top-scales-list .name { display: block; font-family: var(--font-heading); font-weight: 500; font-size: 0.86rem; line-height: 1.25; color: var(--ink); }
.top-scales-list .name:hover { color: var(--brand-dark); }
.top-scales-list .price-link {
  display: inline-block;
  margin-top: 3px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand);
}
.top-scales-list .price-link:hover { color: var(--brand-dark); }

/* blog archive: card grid */
.post-grid {
  display: grid;
  /* auto-fit, not auto-fill -- a cluster section with only 1-2 posts (e.g.
     Reloading Scales) would otherwise leave empty grid tracks and strand
     the card at column width instead of filling the row. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 3px solid var(--brand-vivid);
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.03);
}
/* Legacy thumbnails span a decade of mismatched banner-graphic styles --
   a consistent bottom scrim in the brand color ties them into one family
   without touching the source images themselves. */
.post-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0) 55%, rgba(20, 17, 15, .28) 100%);
  pointer-events: none;
}
.post-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
  margin-bottom: 6px;
}
.post-card h2 {
  font-size: 1.05rem;
  border: none;
  padding: 0;
  display: block;
  margin: 0 0 8px;
}
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--brand-dark); text-decoration: none; }
.post-card p { color: var(--muted); font-size: 0.9rem; margin: 0; flex: 1; }
.post-card .card-meta { margin-top: 10px; font-size: 0.82rem; color: var(--brand); font-weight: 700; }

/* blog archive: one section per content cluster */
.blog-section { margin-top: var(--space-6); }
.blog-section:first-of-type { margin-top: var(--space-4); }
.blog-section h2 { margin-top: 0; }

/* related posts (bottom of review posts) */
.related-posts { margin-top: var(--space-5); }
.post-grid--compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.post-card h3 { font-size: 0.95rem; border: none; padding: 0; margin: 0; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand-dark); text-decoration: none; }

/* contact form */
form[name="contact"] { max-width: 520px; }
form[name="contact"] p { margin-bottom: 1.2em; }
form[name="contact"] label { display: block; font-family: var(--font-heading); font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
form[name="contact"] input[type="text"],
form[name="contact"] input[type="email"],
form[name="contact"] textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #949494;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
form[name="contact"] input[type="text"]:focus,
form[name="contact"] input[type="email"]:focus,
form[name="contact"] textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
form[name="contact"] textarea { resize: vertical; }
form[name="contact"] button[type="submit"] {
  display: inline-block;
  background: var(--cta-bg);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
form[name="contact"] button[type="submit"]:hover { background: var(--cta-bg-hover); transform: translateY(-2px); }

/* footer */
.site-footer { background: var(--surface-dark); color: #ccc; padding: var(--space-5) 0 var(--space-4); margin-top: var(--space-6); font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); padding-bottom: var(--space-4); }
.footer-grid h3 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.footer-grid p { color: #b8b0a6; margin: 0 0 0.8em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: var(--brand-vivid); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: #948c81;
  font-size: 0.82rem;
}
.footer-bottom a { color: #b8b0a6; }

@media (max-width: 480px) {
  .site-header .wrap { justify-content: space-between; }
}

/* Persistent mobile "shop" CTA -- pure CSS, no JS. On mobile the
   content-layout grid stacks the sidebar (and its Amazon CTA widget) below
   the entire article, so a visitor with high purchase intent otherwise has
   to scroll past thousands of words before reaching any buy link. Desktop
   already has the always-visible sidebar CTA, so this stays mobile-only. */
.mobile-shop-bar { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: 60px; }
  .mobile-shop-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: var(--cta-bg);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .25);
  }
  .mobile-shop-bar a {
    display: block;
    text-align: center;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .post-card:hover, .su-button:hover, form[name="contact"] button[type="submit"]:hover { transform: none; }
}
