/*
Theme Name: 5fifi Blog
Theme URI: https://blog.5fifi.com
Author: 5fifi
Author URI: https://5fifi.com
Description: Blog and video arm of 5fifi (5fifi flow's maker) — focus and sound, personal growth, curiosity about modern work, self-care, and kindness. Built from design_handoff_5fifi_blog's 9 screens, "5fifi Blog Palette 1C" (Cacao & Periwinkle family), Cormorant Garamond + Inter. English only.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: 5fifi-blog
*/

/* 5fifi Blog -- shared stylesheet
   Design tokens and components follow design_handoff_5fifi_blog/README.md
   ("5fifi Blog Palette 1C") exactly. See that file for the source spec. */

/* Self-hosted fonts (2026-10-07), replacing the Google Fonts stylesheet:
 * Google's own woff2 files for these two OFL-licensed variable fonts, in
 * assets/fonts/. Same subsets + unicode-ranges Google serves, so a page only
 * downloads the latin-ext / vietnamese files if it actually uses those
 * characters (e.g. "Thay" with its Vietnamese marks). Not preloaded, on
 * purpose -- see the note in ffb_assets() (functions.php). Italic is not
 * loaded, same as before: the browser slants the upright font. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --page-bg: #F1ECF2;
  --surface: #FBF9FB;
  --lilac: #D9CFE4;
  --brown: #4A2C1B;
  --brown-hover: #33261E;
  --ink: #33261E;
  --ink-muted: #4A3C34;
  --grey-brown: #6B5C54;
  --caramel: #8A5A3B;
  --indigo: #4F4CA8;
  --indigo-hover: #3F3C8F;
  --indigo-accent: #6E6BC4;
  --white: #FFFFFF;

  --border-card: rgba(74,44,27,0.12);
  --border-row: rgba(74,44,27,0.14);
  --border-rule: rgba(74,44,27,0.16);
  --border-btn: rgba(74,44,27,0.18);
  --border-btn-2: rgba(74,44,27,0.2);
  --border-input: rgba(74,44,27,0.22);
  --border-dropdown: rgba(74,44,27,0.16);
  --tag-bg: rgba(74,44,27,0.08);
  --rule-sig: rgba(74,44,27,0.35);
  --border-hover: rgba(110,107,196,0.5);

  --shadow-banner: 0 14px 40px rgba(51,38,30,0.16);
  --shadow-dropdown: 0 12px 30px rgba(51,38,30,0.14);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: Inter, system-ui, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--page-bg);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; }

a {
  color: var(--indigo);
  text-decoration: none;
}
a:hover { color: var(--indigo-hover); }

button {
  font-family: var(--font-sans);
  margin: 0;
}

h1, h2, h3, p { margin: 0; }

/* ---------------------------------------------------------------- */
/* Layout containers                                                 */
/* ---------------------------------------------------------------- */

.wrap {
  width: 100%;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.wrap--1080 { max-width: 1080px; }
.wrap--860  { max-width: 860px; }
.wrap--820  { max-width: 820px; }
.wrap--720  { max-width: 720px; }
.wrap--700  { max-width: 700px; }

main { flex: 1 0 auto; }

/* ---------------------------------------------------------------- */
/* Utility bar                                                       */
/* ---------------------------------------------------------------- */

.utility-bar {
  border-bottom: 1px solid rgba(74,44,27,0.1);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 20;
}
.utility-bar__inner {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.utility-bar__nav {
  display: flex;
  gap: 22px;
  font-size: 12.5px;
  color: var(--grey-brown);
}
.utility-bar__nav a { color: var(--grey-brown); }
.utility-bar__nav a:hover { color: var(--indigo); }

.utility-bar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
  color: var(--grey-brown);
}

.utility-bar__home {
  display: inline-flex;
  align-items: center;
  color: var(--brown);
}
.utility-bar__home:hover { color: var(--indigo); }

.search-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-group__form {
  /* The real <form> wrapper (needed for a real GET submit) should not
     introduce its own box in this flex row -- its child input keeps
     participating in .search-group's layout exactly as if the form
     wrapper weren't there. */
  display: contents;
}
.search-group__input {
  width: 210px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-btn-2);
  background: var(--white);
  display: none;
}
.search-group.is-open .search-group__input,
.search-group:hover .search-group__input,
.search-group:focus-within .search-group__input {
  display: block;
}
.search-group__link {
  display: inline-flex;
  color: var(--brown);
}
.search-group__link:hover { color: var(--indigo); }

.utility-bar__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.utility-bar__toggle-bar {
  display: block;
  width: 18px;
  height: 1.6px;
  border-radius: 1px;
  background: var(--brown);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}
.utility-bar__toggle:hover .utility-bar__toggle-bar { background: var(--indigo); }
.utility-bar__toggle.is-open .utility-bar__toggle-bar:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.utility-bar__toggle.is-open .utility-bar__toggle-bar:nth-child(2) { opacity: 0; }
.utility-bar__toggle.is-open .utility-bar__toggle-bar:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ---------------------------------------------------------------- */
/* Header / logo / category pills                                    */
/* ---------------------------------------------------------------- */

.site-header {
  width: 100%;
  padding: 40px 32px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.site-header--tight { padding-bottom: 30px; }

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
}
.logo__mark { color: var(--brown); padding-right: 13px; }
.logo__badge {
  background: var(--brown);
  color: var(--page-bg);
  padding: 8px 20px 12px;
  border-radius: 16px;
}
.logo--sm { font-size: 27px; }
.logo--sm .logo__mark { padding-right: 9px; }
.logo--sm .logo__badge { padding: 5px 13px 7px; border-radius: 10px; }
.logo--inverse .logo__mark { color: var(--page-bg); }
.logo--inverse .logo__badge { background: var(--page-bg); color: var(--brown); }

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.pill {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-btn);
  color: var(--brown);
}
.pill:hover { border-color: var(--indigo-accent); color: var(--indigo); }
.pill--active {
  border: none;
  background: var(--brown);
  color: var(--page-bg);
}
.pill--active:hover { background: var(--brown-hover); color: var(--page-bg); }

/* ---------------------------------------------------------------- */
/* Buttons                                                            */
/* ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--pill { border-radius: 999px; font-size: 14px; padding: 12px 22px; }
.btn--rect { border-radius: 8px; font-size: 14px; padding: 12px 22px; }
.btn--rect-lg { border-radius: 10px; font-size: 14px; padding: 13px 22px; }

.btn--filled { background: var(--brown); color: var(--page-bg); }
.btn--filled:hover { background: var(--brown-hover); color: var(--page-bg); }

.btn--coffee { background: var(--brown); color: var(--page-bg); }
.btn--coffee:hover { background: var(--caramel); color: var(--page-bg); }

.search-form .btn--filled:hover,
.notfound__form .btn--filled:hover { background: var(--caramel); color: var(--page-bg); }

.btn--outline {
  background: none;
  border: 1px solid var(--border-input);
  color: var(--brown);
  font-weight: 600;
}
.btn--outline:hover { border-color: var(--indigo-accent); color: var(--indigo); }

.btn--sm-outline {
  background: none;
  border: 1px solid var(--border-btn-2);
  color: var(--brown);
  font-weight: 500;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
}
.btn--sm-outline:hover { border-color: var(--indigo-accent); color: var(--indigo); }

.btn--subscribe {
  background: var(--indigo-accent);
  color: var(--white);
  border-radius: 8px;
  font-size: 14px;
  padding: 12px 20px;
}
.btn--subscribe:hover { background: var(--page-bg); color: var(--brown); }

.arrow-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.arrow-link:hover { color: var(--indigo); gap: 14px; }
.arrow-link svg { transition: none; flex-shrink: 0; }

/* ---------------------------------------------------------------- */
/* Image placeholders (production imagery not shipped yet)           */
/* ---------------------------------------------------------------- */

.img-ph {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(74,44,27,0.05) 0 10px, rgba(74,44,27,0.02) 10px 20px),
    var(--lilac);
  border: 1px dashed rgba(74,44,27,0.28);
  color: var(--grey-brown);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px;
  flex-shrink: 0;
}
.img-ph--4-3 { aspect-ratio: 4 / 3; }
.img-ph--16-9 { aspect-ratio: 16 / 9; }
.img-ph--r0 { border-radius: 0; }
.img-ph--r8 { border-radius: 8px; }
.img-ph--r10 { border-radius: 10px; }
.img-ph--r12 { border-radius: 12px; }
.img-ph--r14 { border-radius: 14px; }
.img-ph--r16 { border-radius: 16px; }

/* A real featured image (WordPress theme only -- the static build never
   has one) reuses the same .img-ph--4-3/16-9 and .img-ph--r* ratio/radius
   modifiers, but needs real <img> sizing instead of .img-ph's placeholder
   box styling (background, dashed border, centered caption text). */
.img-real {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------- */
/* Cards (Latest grid, Read next)                                     */
/* ---------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}
/* A lone card (e.g. only one post left once the hero is excluded) still
   stretches to fill the whole grid row -- cap its image height so it
   doesn't dwarf the card__body text underneath it. */
.card .img-real,
.card .img-ph {
  flex: none;
  height: auto;
  aspect-ratio: 3 / 2;
  max-height: none;
}
.card .img-real { transition: transform .5s ease; }
.card:hover .img-real { transform: scale(1.03); }
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(74,44,27,0.04);
  transition: border-color .15s ease, transform .15s ease, box-shadow .25s ease;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(74,44,27,0.08);
}
.card__body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card__body .eyebrow { margin-bottom: -4px; }
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: none;
  color: var(--indigo);
}
.eyebrow--wide { letter-spacing: 0.18em; }
.card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--brown);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.card:hover .card__title { color: var(--indigo); }
.card__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  flex: 1;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.card__meta {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--grey-brown);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot-rule { width: 16px; height: 1px; background: var(--caramel); display: inline-block; }

.next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  padding-top: 8px;
}
.next-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
}
.next-card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  color: var(--brown);
}
.next-card:hover .next-card__title { color: var(--indigo); }
.next-card__meta { font-size: 13.5px; line-height: 1.6; color: var(--grey-brown); }

/* ---------------------------------------------------------------- */
/* Section head (Latest / Read next / other list headings)           */
/* ---------------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-rule);
}
.section-head__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--brown);
}
.section-head__title--sm { font-size: 28px; }
.section-head__link { font-size: 13px; font-weight: 500; color: var(--indigo); }

/* ---------------------------------------------------------------- */
/* Row lists (What others read most / tag / search / all posts)      */
/* ---------------------------------------------------------------- */

.row-list { display: flex; flex-direction: column; gap: 4px; }

.row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 17px 2px;
  border-top: 1px solid var(--border-row);
  color: var(--ink);
}
.row-list > .row:first-child { border-top: none; }
.row__date {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--grey-brown);
  flex: 0 0 78px;
}
.row__rank {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--grey-brown);
  flex: 0 0 26px;
}
.row__title { font-size: 15.5px; font-weight: 500; line-height: 1.45; flex: 1; color: var(--ink); }
.row:hover .row__title { color: var(--indigo); }
.row__tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--caramel);
  white-space: nowrap;
}

/* thumbnail rows (tag archive / search results) */
.row-thumb {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-row);
  color: var(--ink);
}
.row-thumb:last-child { border-bottom: none; }
.row-thumb__thumb { width: min(180px, 38%); flex-shrink: 0; }
.row-thumb--sm { gap: 20px; padding: 20px 0; }
.row-thumb--sm .row-thumb__thumb { width: min(132px, 34%); }
.row-thumb__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row-thumb--sm .row-thumb__body { gap: 7px; }
.row-thumb__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  color: var(--brown);
}
.row-thumb--sm .row-thumb__title { font-size: 22px; line-height: 1.18; }
.row-thumb:hover .row-thumb__title { color: var(--indigo); }
.row-thumb__excerpt { font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.row-thumb--sm .row-thumb__excerpt { font-size: 14px; line-height: 1.6; }

/* ---------------------------------------------------------------- */
/* Small pills (post tags, sidebar categories, popular searches)     */
/* ---------------------------------------------------------------- */

.tag-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--brown);
}
.tag-pill:hover { background: var(--lilac); color: var(--indigo); }

/* ---------------------------------------------------------------- */
/* Hero (home)                                                        */
/* ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  background: var(--lilac);
  border-radius: 20px;
  overflow: hidden;
  color: inherit;
}
.hero:hover .hero__title { color: var(--indigo); }
.hero:hover .hero__link { color: var(--indigo); gap: 14px; }
.hero__content {
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.08;
  color: var(--brown);
  text-wrap: pretty;
}
.hero__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 34ch;
  text-wrap: pretty;
}
.hero__link { align-self: start; margin-top: 8px; }
.hero__image { min-height: 340px; height: 100%; }

/* ---------------------------------------------------------------- */
/* Newsletter panel                                                   */
/* ---------------------------------------------------------------- */

.newsletter {
  background: var(--brown);
  border-radius: 18px;
  padding: 34px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.newsletter__text { margin-top: 4px; font-size: 14.5px; line-height: 1.7; color: var(--page-bg); }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.newsletter__input {
  flex: 1 1 170px;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(241,236,242,0.35);
  background: var(--surface);
}
.newsletter__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter__msg { font-size: 13.5px; color: var(--page-bg); }
.newsletter__msg--error { color: #F1B4A8; }

/* Standalone placements (end of post, bottom of category archives) --
   centers the same panel instead of letting it stretch full-bleed
   across a wide wrap. The homepage's own copy sits in a grid column
   already, so it doesn't need this wrapper. */
.newsletter-section { max-width: 620px; margin: 8px auto 0; }

/* Compact footer variant -- no logo, one row on desktop. Light surface
   (not the heavy brown slab) so it sits gently on the lilac footer. */
.footer-newsletter-wrap { padding-top: 30px; }
.newsletter--compact {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 22px 30px;
  background: transparent;
  border: 1px solid rgba(74,44,27,0.28);
}
.newsletter--compact .newsletter__text { margin-top: 0; flex: 1 1 240px; color: var(--ink); }
.newsletter--compact .newsletter__form { margin-top: 0; flex: 0 1 380px; }
.newsletter--compact .newsletter__input {
  background: #EDE7F0;
  border: 1px solid rgba(74,44,27,0.2);
  color: var(--ink);
}
.newsletter--compact .newsletter__input::placeholder { color: var(--grey-brown); }
.newsletter--compact .newsletter__msg { flex-basis: 100%; margin-top: -4px; color: var(--ink); }
.newsletter--compact .newsletter__msg--error { color: #9B3B27; }

/* ---------------------------------------------------------------- */
/* Founder signature                                                  */
/* ---------------------------------------------------------------- */

.signature {
  display: flex;
  align-items: center;
  gap: 12px;
}
.signature__rule { width: 26px; height: 1px; background: var(--rule-sig); flex-shrink: 0; }
.signature__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: none;
  color: var(--grey-brown);
}

/* ---------------------------------------------------------------- */
/* Thank-you + support block                                          */
/* ---------------------------------------------------------------- */

.thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 48px 40px 46px;
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--border-btn);
  border-radius: 20px;
}
.thanks__quote {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(21px, 2.5vw, 26px);
  line-height: 1.5;
  color: var(--brown);
  max-width: 30ch;
  text-wrap: pretty;
}
.thanks__body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 52ch;
  text-wrap: pretty;
}
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 2px; }
.thanks .signature { margin-top: 6px; }

/* ---------------------------------------------------------------- */
/* Support 5fifi page (page-support-5fifi.php)                        */
/* ---------------------------------------------------------------- */

.index-head--center { align-items: center; text-align: center; }
.index-head--center .index-head__lead { margin: 0 auto; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.support-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 26px 26px 28px;
}
.support-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tag-bg);
  color: var(--indigo);
}
.support-card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--brown);
}
.support-card__desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
  flex: 1;
}
.btn--block { width: 100%; }

.support-photo { line-height: 0; }
.support-photo img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}

.support-closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px;
  margin-top: -25px; /* halves the stack-40 gap above (40px + 10px padding -> 25px total) */
}

/* This page only -- halve the shared .page-main bottom padding (96px -> 48px)
   rather than touching it globally, since every other template also uses it. */
.page-template-page-support-5fifi-php .page-main { padding-bottom: 48px; }

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

.post-head { display: flex; flex-direction: column; gap: 16px; }
.post-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  color: var(--brown);
  text-wrap: pretty;
}
.post-body { display: flex; flex-direction: column; gap: 22px; font-size: 17px; line-height: 1.8; color: var(--ink); }
.post-body p { text-wrap: pretty; }
/* "in this post" list (ul.post-toc), Founder 2026-10-24: the gaps above and
   below were too large (22px flex gap + the browser's 1em list margins), so
   the list margins are zero and the label sits close above it. */
.post-body ul.post-toc { margin: -10px 0 -8px; }

.post-body h2 {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  color: var(--brown);
}
.post-body blockquote {
  margin: 8px 0;
  padding: 22px 26px;
  background: var(--lilac);
  border-radius: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 23px;
  line-height: 1.45;
  color: var(--brown);
}
.post-body img { display: block; margin: 0 auto; border-radius: 16px; }
.post-body hr { border: none; border-top: 1px solid var(--border-rule); margin: 4px 0; }

/* Tables in posts (2026-10-18, the frequency comparison post): quiet rules,
   no boxes; scrolls sideways inside its own frame on a narrow phone
   instead of widening the page. */
.post-body .wp-block-table { margin: 4px 0; overflow-x: auto; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.post-body th, .post-body td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-rule); }
.post-body th { font-weight: 600; color: var(--brown); border-bottom-color: var(--brown); }
.post-body td:first-child { white-space: nowrap; font-weight: 600; color: var(--brown); }

/* RankMath FAQ block (rich results): .wp-block-rank-math-faq-block >
   .rank-math-faq-item (older output: .rank-math-list > .rank-math-list-item),
   each an h3 question + answer div. Founder, 2026-10-20: the questions stay
   gentle and quieter than the section's h2 ("questions people ask"), so
   they are body-size, semibold, brown, not the browser's bold 1.17em h3. */
.post-body .wp-block-rank-math-faq-block,
.post-body .rank-math-list { display: flex; flex-direction: column; gap: 18px; }
.post-body .rank-math-question {
  margin: 0 0 4px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--brown);
}
.post-body .rank-math-answer p { margin: 0; }

/* Reading highlights (2026-10-10), so a long post has places for the eye
   to land. Used sparingly, about one <mark> per section:
   <mark>      soft periwinkle marker under a section's key phrase;
   <strong>    cacao, slightly heavier, for terms and numbers;
   .ffb-key    a standalone "heart of this part" line, serif, with a rule;
   .ffb-beats  a run of short example lines ("email." / "simple updates.")
               kept one per line but QUIETER than body text (tight, softer
               color, no rule), so the eye passes over it to the points.
               Founder-tested: a rule here drew the eye to filler. */
.post-body strong { font-weight: 600; color: var(--brown); }
.post-body mark {
  color: inherit;
  background: linear-gradient(transparent 55%, rgba(110,107,196,0.30) 55%);
  padding: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.post-body .ffb-key {
  margin: 6px 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--indigo-accent);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  color: var(--brown);
}
.post-body .ffb-beats {
  display: flex; flex-direction: column; gap: 0;
  line-height: 1.65;
  color: var(--grey-brown);
}

/* Side table of contents (initPostTocRail(), main.js), 2026-10-11: a
   copy of a post's "in this post" list, fixed in the left margin beside
   the 720px column while reading. Only where the margin fits it (the
   column's text starts at 50% - 328px; the rail ends 48px before that). */
.toc-rail { display: none; }
@media (min-width: 1200px) {
  .toc-rail {
    display: block;
    position: fixed;
    top: 110px;
    left: calc(50% - 576px);
    width: 200px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    font-size: 14px;
    line-height: 1.4;
  }
  .toc-rail.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .25s ease;
  }
}
.toc-rail__label {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--brown);
}
.toc-rail__list { list-style: none; margin: 0; padding: 0; }
.toc-rail__list a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--border-rule);
  color: var(--grey-brown);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.toc-rail__list a:hover { color: var(--indigo); }
.toc-rail__list a.is-active {
  color: var(--brown);
  font-weight: 600;
  border-left-color: var(--indigo-accent);
}
/* Sub-sections (an h3 list nested under its h2), indented on the same rule. */
.toc-rail__list ul { list-style: none; margin: 0; padding: 0; }
.toc-rail__list ul a { padding-left: 24px; font-size: 13.5px; }
/* Jump links land below the sticky utility bar. Block-editor posts can't
   carry the inline scroll-margin-top the Markdown posts use. */
.post-body :is(h2, h3)[id] { scroll-margin-top: 84px; }

/* Image/Gallery blocks inside a post (first used 2026-10-06 for the two
   Thầy posts). Core's gallery CSS lays captions over the image on a dark
   gradient and stretches an odd last item to full width; here captions sit
   under the image in small muted type, images are never cropped, and a
   lone last item stays the same size, centered. 2 columns, 1 on phones. */
.post-body .wp-block-image { margin: 8px 0; }
.post-body .wp-block-image img { width: 100%; height: auto; border-radius: 16px; }
.post-body .wp-element-caption {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--grey-brown);
}
.post-body .wp-element-caption a { color: var(--indigo); }
.post-body .wp-element-caption a:hover { color: var(--indigo-hover); }
.post-body .ffb-pin { display: inline-block; margin-top: 2px; font-size: 12.5px; }
.post-body .wp-block-gallery.has-nested-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 16px;
  margin: 8px 0;
}
.post-body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  width: calc(50% - 8px);
  flex-grow: 0;
  margin: 0;
  justify-content: flex-start;
}
.post-body .wp-block-gallery.has-nested-images figure.wp-block-image img { width: 100%; height: auto; flex: none; }
.post-body .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before { content: none; }
.post-body .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  position: static;
  max-height: none;
  overflow: visible;
  padding: 0;
  background: none;
  color: var(--grey-brown);
  text-shadow: none;
  -webkit-mask-image: none;
  mask-image: none;
}
@media (max-width: 640px) {
  .post-body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: 100%; }
}

/* Gentle sign-off note, sits between the post's own writing and the
   surrounding page furniture (tags/newsletter/share) -- deliberately
   softer and more intimate than .post-body's plain reading type. */
.post-signoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 6px 0 4px;
}
.post-signoff__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.post-signoff__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.6;
  color: var(--brown);
  text-wrap: pretty;
}
.post-signoff .signature { justify-content: center; margin-top: 8px; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }

/* End-of-article newsletter postscript -- sits inside the article,
   between the tag pills and the share row. */
.ps-news {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
  padding: 34px 32px 32px;
  background: var(--lilac);
  border-radius: 18px;
}
.ps-news__rule { width: 64px; height: 2px; background: var(--brown); }
.ps-news__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.ps-news__ps {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 27px;
  line-height: 1.2;
  color: var(--brown);
}
.ps-news__text {
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.35;
  color: var(--brown);
  max-width: 52ch;
  text-wrap: normal;
}
.ps-news__form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  max-width: 531px; /* ends flush with "inbox" on the line above */
  width: 100%;
  border-bottom: 1.5px solid rgba(74,44,27,0.4);
  padding-bottom: 8px;
}
.ps-news__input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
}
.ps-news__input::placeholder { color: rgba(74,44,27,0.5); }
.ps-news__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--indigo);
  background: none;
  border: none;
  padding: 0 0 2px;
  cursor: pointer;
}
.ps-news__btn:hover { color: var(--ink); }
.ps-news__note { margin: 0; font-size: 12.5px; color: var(--grey-brown); }
/* JS always toggles the shared "newsletter__msg--error" class (see
   initNewsletterForm() in main.js) regardless of the message element's
   own class name -- match on that rather than a standalone modifier. */
.ps-news__note.newsletter__msg--error { color: #9B3B27; }

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border-rule);
  font-size: 13.5px;
  color: var(--grey-brown);
}
.share-row__pills { display: flex; gap: 10px; }

.prevnext {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding-top: 8px;
}
.prevnext__card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
}
.prevnext__card:hover { border-color: var(--border-hover); }
.prevnext__card--next { text-align: right; }
.prevnext__label { font-size: 11px; letter-spacing: 0.16em; text-transform: none; color: var(--grey-brown); }
.prevnext__title { font-family: var(--font-serif); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--brown); }

/* ---------------------------------------------------------------- */
/* Category / tag page                                                */
/* ---------------------------------------------------------------- */

.tag-hero {
  background: var(--lilac);
  border-radius: 20px;
  padding: 32px 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tag-hero__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; }
.tag-hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  color: var(--brown);
}
.tag-hero__desc { font-size: 16px; line-height: 1.7; color: var(--ink); max-width: 56ch; text-wrap: pretty; }
.tag-hero__count { font-size: 13px; color: var(--ink-muted); }

.tag-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
  margin-top: 8px;
}
.tag-layout__main { display: flex; flex-direction: column; gap: 4px; }
.tag-layout__main .row-thumb { padding: 28px 0; gap: 28px; }
.tag-layout__main .row-thumb__thumb { width: min(220px, 36%); }
.aside-posts { display: flex; flex-direction: column; }
.aside-post {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--border-row);
  color: var(--ink);
}
.aside-post:first-child { border-top: none; padding-top: 4px; }
.aside-post__title { font-family: var(--font-serif); font-weight: 600; font-size: 19px; line-height: 1.2; color: var(--brown); }
.aside-post:hover .aside-post__title { color: var(--indigo); }
.aside-post__meta { font-size: 12.5px; color: var(--grey-brown); }
@media (max-width: 860px) {
  .tag-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .tag-layout__aside { position: static; max-width: none; }
}
.tag-layout__aside {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 28px;
  max-width: 300px;
}
.aside-block { display: flex; flex-direction: column; gap: 12px; }
.aside-block--rule { padding-top: 22px; border-top: 1px solid var(--border-rule); gap: 10px; }
.aside-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: none;
  color: var(--grey-brown);
}

/* ---------------------------------------------------------------- */
/* Search                                                             */
/* ---------------------------------------------------------------- */

.search-head { display: flex; flex-direction: column; gap: 16px; }
.search-head__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.1;
  color: var(--brown);
}
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-form__input {
  flex: 1 1 260px;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-input);
  background: var(--surface);
}
.search-summary { font-size: 13.5px; color: var(--grey-brown); }

.empty-state {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: start;
}
.empty-state__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  color: var(--brown);
}
.empty-state__body { font-size: 15px; line-height: 1.7; color: var(--ink); }

.suggested { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; border-top: 1px solid var(--border-rule); }

/* ---------------------------------------------------------------- */
/* All posts by views                                                 */
/* ---------------------------------------------------------------- */

.index-head { display: flex; flex-direction: column; gap: 12px; }
.index-head__eyebrow { color: var(--indigo); }
.index-head__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  color: var(--brown);
}
.index-head__lead { font-size: 16px; line-height: 1.7; color: var(--ink); max-width: 52ch; }

.sort-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-rule);
}
.sort-row__pills { display: flex; gap: 8px; }
.sort-pill {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--tag-bg);
  color: var(--brown);
}
.sort-pill.is-active { background: var(--brown); color: var(--page-bg); }
.sort-row__count { font-size: 13px; color: var(--grey-brown); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 8px; }
.page-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-btn-2);
  color: var(--brown);
}
.page-btn:hover { border-color: var(--indigo-accent); color: var(--indigo); }
.page-btn.is-active {
  font-weight: 600;
  border: none;
  background: var(--brown);
  color: var(--page-bg);
}
.page-btn.is-active:hover { color: var(--page-bg); }

/* ---------------------------------------------------------------- */
/* Video                                                               */
/* ---------------------------------------------------------------- */

.video-head { display: flex; flex-direction: column; gap: 12px; }
.video-head__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  color: var(--brown);
}
.video-head__lead { font-size: 16px; line-height: 1.7; color: var(--ink); text-wrap: pretty; }
.video-head .btn { align-self: start; margin-top: 6px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.video-card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.video-thumb-wrap { position: relative; width: 100%; }
.play-badge {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 999px;
  background: rgba(74,44,27,0.86);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.play-badge--lg { width: 72px; height: 72px; background: rgba(74,44,27,0.88); }
.video-card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--brown);
}
.video-card:hover .video-card__title { color: var(--indigo); }
.video-card__meta { font-size: 12.5px; color: var(--grey-brown); }

.video-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px 44px;
  align-items: start;
}
.video-detail-body { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .video-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .video-detail-body { grid-column: auto; order: 2; }
  .video-aside { order: 3; }
}
.video-player-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.video-poster {
  position: relative;
  width: 100%;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  display: block;
}
.video-poster__chip {
  position: absolute;
  left: 16px; bottom: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: none;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(251,249,251,0.92);
  color: var(--brown);
  pointer-events: none;
}
.video-frame-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
}
.video-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
/* [ffb_video] player inside a post (inc/video-cpt.php). */
.post-body .post-video { margin: 4px 0; display: flex; flex-direction: column; gap: 10px; }
.post-body .post-video__note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
  color: var(--grey-brown);
}
.post-body .post-video .video-poster img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.video-detail-head, .video-detail-info { display: flex; flex-direction: column; gap: 14px; }
.video-detail-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.1;
  color: var(--brown);
  text-wrap: pretty;
}
.video-detail-desc { font-size: 16.5px; line-height: 1.8; color: var(--ink); text-wrap: pretty; }
/* Wide screens: the description flows in two columns under the player +
   "more videos" row, so no column is left blank. */
@media (min-width: 861px) {
  .video-detail-desc { column-count: 2; column-gap: 44px; }
  .video-detail-desc > * { break-inside: avoid; }
}
.video-detail-info .btn-row { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.video-detail-info .signature { padding-top: 10px; }

.video-aside { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.rel-video-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-row);
  color: var(--ink);
}
.rel-video-row__thumb { width: min(132px, 38%); flex-shrink: 0; }
.rel-video-row__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rel-video-row__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.22;
  color: var(--brown);
}
.rel-video-row:hover .rel-video-row__title { color: var(--indigo); }
.rel-video-row__meta { font-size: 12px; color: var(--grey-brown); }
.video-aside > .arrow-link { margin-top: 12px; }

.back-link {
  align-self: start;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-brown);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.back-link:hover { color: var(--indigo); }

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

.notfound {
  padding-top: 40px;
  padding-bottom: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.notfound__code {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(72px, 12vw, 128px);
  line-height: 0.9;
  color: var(--lilac);
}
.notfound__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  color: var(--brown);
}
.notfound__lead { font-size: 16px; line-height: 1.75; color: var(--ink); max-width: 46ch; text-wrap: pretty; }
.notfound__form { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; max-width: 440px; margin-top: 6px; }
.notfound__form input {
  flex: 1 1 200px;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-input);
  background: var(--surface);
}
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }

/* ---------------------------------------------------------------- */
/* Privacy                                                             */
/* ---------------------------------------------------------------- */

.privacy-head { display: flex; flex-direction: column; gap: 12px; }
.privacy-head__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.08;
  color: var(--brown);
}
.privacy-head__lead { font-size: 18px; line-height: 1.7; color: var(--ink-muted); }
.privacy-head__updated { font-size: 12.5px; color: var(--grey-brown); }

.privacy-body { display: flex; flex-direction: column; gap: 26px; font-size: 16.5px; line-height: 1.8; color: var(--ink); }
.privacy-body p { text-wrap: pretty; }
.privacy-section { display: flex; flex-direction: column; gap: 12px; }
.privacy-section h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  color: var(--brown);
}
.privacy-body .signature { padding-top: 14px; border-top: 1px solid var(--border-rule); }

/* ---------------------------------------------------------------- */
/* Footer                                                              */
/* ---------------------------------------------------------------- */

.site-footer { background: var(--lilac); margin-top: auto; }
.footer-top {
  padding: 30px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-muted);
}
.footer-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 500;
}
.footer-nav a { color: var(--ink); }
.footer-nav a:hover { color: var(--indigo); }
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}
.footer-social a:hover { color: var(--indigo); }

.footer-bottom { border-top: 1px solid var(--border-row); }
.footer-bottom__inner {
  padding: 16px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--grey-brown);
}
.footer-bottom__links { display: flex; gap: 20px; align-items: center; }
.footer-bottom__links a { color: var(--grey-brown); }
.footer-bottom__links a:hover { color: var(--indigo); }
.footer-bottom__btn {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--grey-brown);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.footer-bottom__btn:hover { color: var(--indigo); }

/* ---------------------------------------------------------------- */
/* Consent banner                                                      */
/* ---------------------------------------------------------------- */

.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 16px;
  display: flex;
  justify-content: center;
}
.consent__inner {
  max-width: 760px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-dropdown);
  border-radius: 16px;
  box-shadow: var(--shadow-banner);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.consent__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.consent__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  color: var(--brown);
}
.consent__body { font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__btn {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-input);
  background: none;
  color: var(--brown);
  cursor: pointer;
}
.consent__btn:hover { border-color: var(--indigo-accent); color: var(--indigo); }
.consent__btn--allow {
  font-weight: 600;
  padding: 11px 20px;
  border: none;
  background: var(--brown);
  color: var(--page-bg);
}
.consent__btn--allow:hover { background: var(--brown-hover); color: var(--page-bg); }

/* ---------------------------------------------------------------- */
/* Sections / spacing                                                  */
/* ---------------------------------------------------------------- */

.stack { display: flex; flex-direction: column; }
.stack-72 { gap: 72px; }
.stack-56 { gap: 56px; }
.stack-48 { gap: 48px; }
.stack-40 { gap: 40px; }
.stack-34 { gap: 34px; }
.stack-30 { gap: 30px; }
.stack-26 { gap: 26px; }
.stack-24 { gap: 24px; }

.page-main { padding-top: 0; padding-bottom: 96px; }

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- */
/* Responsive (per README's "Responsive -- to be done" section)      */
/* ---------------------------------------------------------------- */

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }

  .site-header { padding: clamp(24px, 6vw, 40px) 20px clamp(20px, 5vw, 30px); }

  .utility-bar__toggle { display: inline-flex; }
  .utility-bar__right { gap: 12px; }

  .utility-bar__nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
    background: var(--surface);
    border: 1px solid var(--border-dropdown);
    border-radius: 16px;
    box-shadow: var(--shadow-dropdown);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }
  .utility-bar__nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .utility-bar__nav a {
    padding: 14px 18px;
    font-size: 14.5px;
  }
  .utility-bar__nav a:not(:last-child) { border-bottom: 1px solid var(--border-rule); }
  .utility-bar__nav a:hover,
  .utility-bar__nav a:active { background: var(--tag-bg); color: var(--indigo); }

  .footer-top { padding: 24px 20px; }
  .footer-nav { margin-left: 0; width: 100%; order: 3; gap: 16px 20px; }
  .footer-bottom__inner { padding: 14px 20px; }

  .footer-newsletter-wrap { padding-top: 22px; }
  .newsletter--compact { flex-direction: column; align-items: stretch; padding: 22px 20px; }
  .newsletter--compact .newsletter__text { flex: none; }
  .newsletter--compact .newsletter__form { flex-basis: auto; }

  .footer-social a { min-width: 44px; min-height: 44px; }

  .hero__content { padding: 34px 26px; gap: 14px; }

  .thanks { padding: clamp(30px, 8vw, 48px) 22px clamp(28px, 7vw, 46px); }

  .row {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .row__title { order: 1; flex: 1 1 100%; }
  .row__rank { order: 0; }
  .row__date { order: 2; flex: 0 0 auto; }
  .row__tag { order: 3; margin-left: auto; }

  .row-thumb { gap: 14px; }
  .row-thumb--sm { gap: 12px; }

  .tag-layout, .video-detail-layout { gap: 32px; }
}

/* Single post: all-lowercase chrome. Titles and the post body are lowercased
   in PHP (ffb_lowercase_html); post content is stored in final case. */
.single-post .post-head .eyebrow,
.single-post .ps-news,
.single-post .share-row,
.single-post .prevnext__label,
.single-post .section-head__title,
.single-post .section-head__link,
.single-post .next-card__meta,
.single-post .thanks { text-transform: lowercase; }
