/* ==========================================================================
   TURBOMINIMAL THEME STYLESHEET — v1.0.0
   Written from scratch. One design system: navy / gold / ivory. No aliasing
   layer, no palette switcher, no duplicate/minified copy to keep in sync —
   this file is the only stylesheet the theme loads.
   ========================================================================== */

/* ── Fonts (self-hosted, no third-party requests) ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/Inter-normal-300-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-italic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-normal-400-900.woff2') format('woff2');
}

/* ── Design tokens ── */
:root {
  --navy: #1B2D5B;
  --navy-dark: #111E3D;
  --navy-light: #2A4280;
  --gold: #C8972A;
  --gold-light: #E8B94A;
  --gold-pale: #FFF8E7;
  --ivory: #F7F4EE;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #5A5A72;
  --border: #E2DDD5;

  --amber-border: #C8972A; --amber-bg: #FFFAED; --amber-label: #7A5A0A;
  --blue-border: #1E6699;  --blue-bg: #EDF4FF;  --blue-label: #1B427A;
  --green-border: #1E7A4E; --green-bg: #EDFAF3; --green-label: #125238;
  --teal-border: #0D7B7B;  --teal-bg: #E8F9F9;  --teal-label: #085252;
  --indigo-border: #5A3FB5; --indigo-bg: #F4F0FF; --indigo-label: #3D2A88;

  --success: #2E7D46;
  --error: #C0392B;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --content-max: 680px;   /* single-column reading measure (book components) */
  --page-max: 1000px;     /* the white article card */
  --site-max: 1200px;     /* header/footer inner width */
  --wide-max: 1040px;     /* homepage section width */

  --radius: 8px;
  --shadow-card: 0 2px 20px rgba(27,45,91,0.08);
  --shadow-soft: 0 3px 10px rgba(27,45,91,0.06);
  --shadow-lift: 0 8px 20px rgba(27,45,91,0.12);

  --fs-body: 17px;
  --fs-entry: 1.35rem;
  --fs-article: 21px;      /* prose/book-chapter reading scale — see ARTICLE FONT SIZE OPTION below */
  --fs-article-sm: 15.5px; /* compact SEO/marketing-copy reading scale (fl-seo-copy, fl-why-body, fl-faq, fl-pillar-desc) */
  --fs-nav: 0.9rem;
  --fs-h1: 2.5rem; --fs-h2: 1.55rem; --fs-h3: 1.18rem;
  --fs-h4: 1rem; --fs-h5: 0.9rem; --fs-h6: 0.82rem;
  --fs-small: 0.85rem; --fs-meta: 0.9rem;
}

/* ==========================================================================
   NAVIGATION FONT SIZE OPTION (Customizer: Navigation Bar Font Size)
   Implemented as a body-class override of the --fs-nav custom property
   defined above. .main-navigation a references that variable, so one
   override here reaches every nav link, rather than needing a duplicated
   rule per size (the old theme's approach).
   ========================================================================== */
body.nav-fontsize-small  { --fs-nav: 0.78rem; }
body.nav-fontsize-medium { --fs-nav: 0.9rem; }
body.nav-fontsize-large  { --fs-nav: 1.05rem; }

/* ==========================================================================
   ARTICLE BODY FONT SIZE OPTION (Customizer: Article Body Font Size)
   Body-class override of --fs-entry, --fs-article, and --fs-article-sm.

     --fs-entry       base size on .entry-content itself.
     --fs-article     prose/book-chapter reading scale — .prose paragraphs/
                       lists, callout boxes, source lists, glossary
                       definitions (BOOK CONTENT DESIGN SYSTEM below).
     --fs-article-sm  compact reading scale for long-form copy written with
                       the fl-* component classes — .fl-seo-copy paragraphs/
                       lists, .fl-why-body, .fl-faq answers, .fl-pillar-desc
                       (HOMEPAGE COMPONENTS below). On sites where pages are
                       actually built with these classes, THIS is the real
                       article body text, not decoration — it must move
                       with this control.

   Genuinely left alone on purpose: --fs-body, which now serves only the
   base document font — never a long-form reading element. .cover-desc
   (the short hero intro copy) is a hardcoded 16px, matching the reference
   design exactly; it never tracked --fs-body and isn't part of this
   control either. --fs-nav is a separate control entirely.

   Medium matches the theme's original fixed values (including the
   already-tuned 15.5px/16px/14.5px seen on the live homepage), so the
   default look is unchanged until a visitor's editor picks a different
   size. The four --fs-article-sm consumers previously carried slightly
   different hand-picked values (15.5 / 16 / 14.5px); those are unified
   onto one shared 15.5px token here — a ≤0.5px difference, invisible in
   practice, in exchange for one variable instead of three near-duplicates.

   Extra Large continues the same step size as Small→Medium→Large
   (+0.20rem on --fs-entry, +3px on --fs-article, +2px on --fs-article-sm).
   ========================================================================== */
body.article-fontsize-small  { --fs-entry: 1.15rem; --fs-article: 18px; --fs-article-sm: 13.5px; }
body.article-fontsize-medium { --fs-entry: 1.35rem; --fs-article: 21px; --fs-article-sm: 15.5px; }
body.article-fontsize-large  { --fs-entry: 1.55rem; --fs-article: 24px; --fs-article-sm: 17.5px; }
body.article-fontsize-xlarge { --fs-entry: 1.75rem; --fs-article: 27px; --fs-article-sm: 19.5px; }

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--text);
  background: var(--ivory);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem;
  color: var(--text);
}
h1 { font-size: var(--fs-h1); font-weight: 900; }
h2 {
  font-size: var(--fs-h2);
  color: var(--navy-dark);
  margin-top: 3rem; margin-bottom: 0.75rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
h3 { font-size: var(--fs-h3); font-weight: 600; color: var(--navy); margin-top: 2.25rem; margin-bottom: 0.6rem; }
h4 { font-size: var(--fs-h4); font-weight: 600; color: var(--navy-dark); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1.5rem; margin-bottom: 0.5rem; }
h5 { font-size: var(--fs-h5); font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.08em; }
h6 { font-size: var(--fs-h6); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
p { margin: 0 0 1.5rem; }
a { color: var(--navy); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.5rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
blockquote {
  margin: 2rem 0; padding: 18px 28px;
  border-left: 5px solid var(--navy);
  background: var(--gold-pale);
  border-radius: 0 6px 6px 0;
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--navy-dark);
}
code { padding: 0.2rem 0.4rem; background: var(--ivory); border-radius: 4px; font-size: 0.9em; }
pre { padding: 1.5rem; background: var(--navy-dark); color: var(--white); border-radius: var(--radius); overflow-x: auto; }
pre code { background: transparent; padding: 0; }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container { width: 100%; max-width: var(--site-max); margin-inline: auto; padding-inline: 1.5rem; }
@media (max-width: 768px) { .container { padding-inline: 1rem; } }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--navy); color: var(--white); display: block;
  font-size: 0.9rem; font-weight: 700; height: auto; left: 5px; top: 5px;
  padding: 12px 18px; text-decoration: none; border-radius: 4px; width: auto;
  z-index: 100000;
}
.skip-link { position: absolute; top: -999em; left: -999em; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100000; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 10px rgba(27,45,91,0.06);
}
.header-inner {
  max-width: var(--site-max); margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
}
.site-branding { display: flex; flex-direction: column; flex-shrink: 0; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { max-height: 60px; width: auto; }
.site-title { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.site-title a { color: var(--navy-dark); }
.site-title a:hover { color: var(--gold); }
.site-description { margin: 0.2rem 0 0; font-size: 0.9rem; font-style: italic; color: var(--text-muted); }

.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.main-navigation a {
  color: var(--text); font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-nav); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.5rem 0; display: block;
}
.main-navigation a:hover { color: var(--gold); }
.main-navigation .current-menu-item a { color: var(--navy); border-bottom: 2px solid var(--gold); }

.search-wrap { position: relative; margin-left: auto; }
.search-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--border); background: transparent; color: var(--text);
  cursor: pointer; transition: border-color .2s, color .2s;
}
.search-toggle:hover, .search-toggle.active { border-color: var(--gold); color: var(--gold); }

#search-popup-box {
  display: none; position: fixed; background: var(--white);
  border: 2px solid var(--gold); border-radius: 10px;
  box-shadow: var(--shadow-lift); padding: 10px 14px; z-index: 99999; width: 280px;
}
#search-popup-input {
  width: 100%; padding: 8px 12px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 0.95rem; font-family: inherit;
}

.menu-toggle {
  display: none; background: none; border: none; padding: 0.5rem; cursor: pointer;
  flex-direction: column; gap: 5px; width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.menu-toggle-bar { display: block; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: all .3s ease; }
.menu-toggle.active .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .header-inner { gap: 0.75rem; padding: 0 1rem; }
  .site-branding { flex: 1; min-width: 0; max-width: calc(100% - 90px); overflow: hidden; }
  .site-title { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-description { display: none; }
  .search-wrap { margin-left: 0.5rem; }
  .main-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
  .main-navigation.toggled { display: block; }
  .main-navigation ul { flex-direction: column; gap: 0; padding: 1rem; }
  .main-navigation a { padding: 0.75rem 1rem; }
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.site-main { padding: 3rem 0; min-height: 60vh; flex: 1 0 auto; }

article.single-page, article.single-post, .contact-page {
  width: 100%; max-width: var(--page-max); margin: 0 auto 3rem;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 3rem 3rem;
}
@media (max-width: 768px) {
  article.single-page, article.single-post, .contact-page { padding: 1.75rem 1.25rem 2rem; }
}
.entry-header { text-align: center; margin-bottom: 2rem; }
.entry-title, .page-title { font-size: 2.5rem; font-weight: 900; margin: 0 0 1rem; line-height: 1.2; }
@media (max-width: 768px) { .entry-title, .page-title { font-size: 1.9rem; } }
.entry-content { font-size: var(--fs-entry); line-height: 1.85; }
.entry-meta { font-size: var(--fs-meta); color: var(--text-muted); display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }

.entry-content h2 { font-size: 1.55rem; margin-top: 2.5rem; margin-bottom: 0.75rem; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.entry-content h3 { font-size: 1.18rem; margin-top: 2rem; margin-bottom: 0.6rem; }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li { position: relative; padding: 5px 0 5px 26px; }
.entry-content ul li::before { content: ""; position: absolute; left: 2px; top: 0.95em; width: 10px; height: 3px; border-radius: 2px; background: var(--navy); }
.entry-content ol { padding-left: 1.75rem; }
.entry-content ol li::marker { color: var(--navy); font-weight: 600; }

/* Blog listing grid (index.php / archives) */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 2rem; margin-bottom: 3rem; }
.post-grid-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.post-grid-item:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.post-thumbnail img { width: 100%; height: 220px; object-fit: cover; }
.post-content-wrapper { padding: 1.5rem; }
.entry-title-sm { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.entry-title-sm a { color: var(--navy-dark); }
.entry-summary { color: var(--text-muted); }
.read-more { font-weight: 600; color: var(--navy); }

/* Pagination */
.pagination { margin: 3rem 0; text-align: center; }
.nav-links { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.page-numbers { display: inline-block; padding: 0.5rem 1rem; border: 2px solid var(--border); border-radius: var(--radius); color: var(--text); }
.page-numbers.current, .page-numbers:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* 404 */
.error-404 { text-align: center; padding: 3rem 1rem; }
.error-404-links { margin-top: 2rem; }

/* Small text-only elements used across index/search/archive templates */
.page-header { text-align: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--border); }
.archive-description { max-width: 700px; margin: 1rem auto 0; color: var(--text-muted); font-size: var(--fs-meta); }
.cat-links { display: inline-block; color: var(--text-muted); font-size: var(--fs-meta); }
.posted-on { color: var(--text-muted); }
.no-comments, .no-results { text-align: center; padding: 2rem; color: var(--text-muted); font-style: italic; }

/* ==========================================================================
   BOOK CONTENT DESIGN SYSTEM
   (covers, part-covers, boxes, tables, glossary — used by Library chapters)
   ========================================================================== */
.cover {
  background: linear-gradient(148deg, #0D1527 0%, var(--navy) 55%, #233870 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 72px 48px; border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.cover::before { content: ''; position: absolute; top: -120px; right: -120px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(200,151,42,0.07) 0%, transparent 68%); pointer-events: none; }
.cover::after { content: ''; position: absolute; bottom: -80px; left: -80px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(200,151,42,0.05) 0%, transparent 70%); pointer-events: none; }
.cover-eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 22px; position: relative; z-index: 1; }
.cover-title { font-family: var(--font-display); font-size: clamp(34px,5.5vw,64px); font-weight: 900; color: var(--white); line-height: 1.08; position: relative; z-index: 1; margin: 0; }
.cover-title-em { color: var(--gold-light); font-style: italic; }
.cover-edition { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 14px; position: relative; z-index: 1; }
.cover-rule { width: 56px; height: 2px; background: var(--gold); margin: 28px auto; position: relative; z-index: 1; }
.cover-desc { font-size: 16px; line-height: 1.72; color: rgba(255,255,255,0.78); max-width: 540px; margin: 0 auto 44px; position: relative; z-index: 1; }
.cover-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }
.cover-chip { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.22); border-radius: 3px; padding: 4px 11px; white-space: nowrap; text-decoration: none; transition: background .18s, border-color .18s, color .18s; }
.cover-chip:hover { background: rgba(200,151,42,0.15); border-color: var(--gold); color: var(--white); }

.part-cover { background: var(--navy); padding: 64px 48px; border-radius: var(--radius); position: relative; overflow: hidden; }
.part-cover-num { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.part-cover-title { font-family: var(--font-display); font-size: clamp(24px,4vw,40px); font-weight: 700; color: var(--white); line-height: 1.14; margin: 0; }
.part-cover-sub { font-size: 15px; color: rgba(255,255,255,0.65); font-style: italic; margin-top: 10px; }

.section-eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.section-heading { font-family: var(--font-display); font-size: clamp(24px,3vw,34px); font-weight: 700; color: var(--navy-dark); line-height: 1.22; margin: 0 0 22px; padding: 0; border: 0; }

.sec-num { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.sec-title { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--navy-dark); margin: 0; padding: 0; border: 0; }
.subsec-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--navy); margin: 40px 0 17px; padding: 0; border: 0; }

.prose { max-width: var(--content-max); }
.prose p { margin-top: 22px; font-size: var(--fs-article); line-height: 1.88; }
.prose p:first-child { margin-top: 0; }
.prose ul.body-list { list-style: none; padding: 0; margin: 16px 0 20px; }
.prose ul.body-list li { padding-left: 22px; position: relative; font-size: var(--fs-article); line-height: 1.88; margin-bottom: 13px; }
.prose ul.body-list li::before { content: '·'; position: absolute; left: 6px; color: var(--gold); font-weight: 700; }

.box { border-radius: 7px; margin: 28px 0; overflow: hidden; border: 1px solid transparent; }
.box-hd { display: flex; align-items: center; gap: 8px; padding: 9px 17px; font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; margin: 0; }
.box-bd { padding: 20px 22px 22px; font-size: calc(var(--fs-article) * 0.94); line-height: 1.82; }
.box-bd p { margin-bottom: 12px; }
.box-bd p:last-child { margin-bottom: 0; }
.box-analogy { border-color: rgba(200,151,42,0.28); background: var(--amber-bg); }
.box-analogy .box-hd { background: rgba(200,151,42,0.13); color: var(--amber-label); }
.box-why { border-color: rgba(30,102,153,0.28); background: var(--blue-bg); }
.box-why .box-hd { background: rgba(30,102,153,0.1); color: var(--blue-label); }
.box-recap { border-color: rgba(30,122,78,0.28); background: var(--green-bg); }
.box-recap .box-hd { background: rgba(30,122,78,0.1); color: var(--green-label); }
.box-recap .box-bd ul { list-style: none; padding: 0; }
.box-recap .box-bd li { padding-left: 20px; position: relative; margin-bottom: 12px; }
.box-recap .box-bd li::before { content: '✓'; position: absolute; left: 0; color: var(--green-border); font-weight: 700; }
.box-career { border-color: rgba(13,123,123,0.28); background: var(--teal-bg); }
.box-career .box-hd { background: rgba(13,123,123,0.1); color: var(--teal-label); }
.box-case { border-color: rgba(90,63,181,0.28); background: var(--indigo-bg); }
.box-case .box-hd { background: rgba(90,63,181,0.1); color: var(--indigo-label); }

.tbl-wrap { overflow-x: auto; margin: 26px 0; border-radius: 7px; border: 1px solid var(--border); }
.tbl-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 500px; }
.tbl-wrap thead { background: var(--navy); }
.tbl-wrap thead th { padding: 12px 16px; text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.92); white-space: nowrap; }
.tbl-wrap tbody tr { border-bottom: 1px solid var(--border); }
.tbl-wrap tbody tr:nth-child(even) { background: var(--ivory); }
.tbl-wrap tbody td { padding: 14px 16px; vertical-align: top; }

.diagram-wrap { margin: 38px 0; background: var(--navy-dark); border-radius: 10px; padding: 32px 20px 26px; overflow: hidden; }
.diagram-label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.82); text-align: center; margin-bottom: 18px; }
.timeline-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.timeline-scroll svg { display: block; min-width: 680px; }

.quiz-q { margin: 0 0 16px; }
.quiz-q summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--gold); }

.gloss-alpha-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 36px; }
.gloss-alpha-nav a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 5px; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--ivory); border: 1px solid var(--border); }
.gloss-alpha-nav a:hover { background: var(--navy); color: var(--gold-light); }
.gloss-letter-head { font-family: var(--font-display); font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.gloss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.gloss-entry { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--border); }
.gloss-term { font-size: 14.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.gloss-def { font-size: calc(var(--fs-article) * 0.79); color: var(--text-muted); }
@media (max-width: 860px) { .gloss-grid { grid-template-columns: 1fr; } }

.source-category-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.source-list { list-style: none; padding: 0; }
.source-list li { padding: 8px 0 8px 20px; position: relative; font-size: calc(var(--fs-article) * 0.85); border-bottom: 1px solid rgba(226,221,213,0.5); }
.source-list li::before { content: '→'; position: absolute; left: 0; color: var(--gold); }

.chain-card { border: 1px solid var(--border); border-left: 3px solid var(--gold); background: var(--white); border-radius: 8px; padding: 16px 20px; margin: 0 0 16px; }
.chain-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.xref { color: inherit; border-bottom: 1px dotted var(--gold); }
.xref:hover { color: var(--gold); border-bottom-style: solid; }

/* ==========================================================================
   HOMEPAGE COMPONENTS
   (fl-* classes — live here, not embedded per-page, so page content never
   needs its own <style> block and can never be corrupted by wpautop)
   ========================================================================== */
.fl-home-wrap { max-width: var(--wide-max); margin: 0 auto; padding: 0 16px; }
.fl-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 34px 0 0; position: relative; z-index: 1; }
.fl-btn-primary { display: inline-block; background: var(--gold); color: var(--navy-dark); font-weight: 700; font-size: 15px; padding: 13px 26px; border-radius: 8px; transition: background .18s, transform .18s; }
.fl-btn-primary:hover { background: var(--gold-light); color: var(--navy-dark); transform: translateY(-1px); }
.fl-btn-secondary { display: inline-block; color: var(--white); font-weight: 600; font-size: 15px; padding: 13px 22px; border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; }
.fl-btn-secondary:hover { border-color: var(--gold-light); background: rgba(255,255,255,0.06); color: var(--white); }

.fl-scope-band { background: var(--ivory); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 16px; text-align: center; }
.fl-scope-inner { max-width: var(--wide-max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.fl-scope-stat { min-width: 130px; }
.fl-num { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--navy); display: block; }
.fl-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(26,26,46,0.6); margin-top: 2px; }

.fl-section { padding: 64px 16px; }
.fl-section-inner { max-width: var(--wide-max); margin: 0 auto; }
.fl-section.fl-alt { background: var(--ivory); }

.fl-pillars-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 8px; }
.fl-pillar-card { border: 1px solid var(--border); border-radius: 10px; background: var(--white); padding: 26px 24px; position: relative; box-shadow: var(--shadow-soft); transition: transform .18s, box-shadow .18s; }
.fl-pillar-card.fl-live { border-top: 3px solid var(--gold); }
.fl-pillar-card.fl-live:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.fl-pillar-eyebrow { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.fl-pillar-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--navy-dark); margin-bottom: 10px; }
.fl-pillar-desc { font-size: var(--fs-article-sm); line-height: 1.65; margin-bottom: 16px; }
.fl-pillar-cta { display: inline-block; font-size: 14px; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.fl-pillar-cta:hover { color: var(--gold); }
.fl-pillar-badge { display: inline-block; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: rgba(26,26,46,0.45); border: 1px solid var(--border); border-radius: 4px; padding: 3px 9px; }

.fl-why-quote { font-family: var(--font-display); font-size: clamp(19px,2.4vw,24px); line-height: 1.55; color: var(--navy-dark); font-weight: 600; margin-bottom: 20px; }
.fl-why-body { font-size: var(--fs-article-sm); line-height: 1.8; max-width: 720px; }

.fl-seo-copy h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.fl-seo-copy p { font-size: var(--fs-article-sm); line-height: 1.85; max-width: 760px; margin-bottom: 16px; }
.fl-seo-copy ul { list-style: none; padding-left: 0; max-width: 760px; margin: 0 0 16px; }
.fl-seo-copy li { font-size: var(--fs-article-sm); line-height: 1.8; }
.fl-seo-copy a { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--gold); }

.fl-faq { max-width: 760px; }
.fl-faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.fl-faq summary { cursor: pointer; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.fl-faq summary::-webkit-details-marker { display: none; }
.fl-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--gold); font-size: 20px; font-weight: 700; }
.fl-faq details[open] summary::after { content: "–"; }
.fl-faq p { font-size: var(--fs-article-sm); line-height: 1.8; margin: 0 0 16px; }

.fl-latest-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 8px; }
.fl-latest-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); padding: 20px; box-shadow: var(--shadow-soft); transition: transform .18s, box-shadow .18s; }
.fl-latest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.fl-latest-cat { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.fl-latest-title { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; color: var(--navy-dark); line-height: 1.4; }
.fl-latest-date { font-size: 12.5px; color: rgba(26,26,46,0.55); margin-top: auto; }
.fl-latest-empty { font-size: var(--fs-body); color: var(--text-muted); font-style: italic; margin: 0; }

@media (max-width: 720px) {
  .fl-pillars-grid, .fl-latest-grid { grid-template-columns: 1fr; }
  .fl-scope-inner { gap: 20px 28px; }
  .fl-section { padding: 48px 16px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.85); margin-top: 4rem; position: relative; overflow: hidden; }
.site-footer::before { content: ''; display: block; height: 4px; width: 100%; background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 50%, var(--navy) 100%); }
.footer-inner { padding: 2.2rem 0 1.2rem; text-align: center; }
.footer-rule { width: 48px; height: 2px; background: var(--gold); margin: 0 auto 1.2rem; opacity: 0.7; }
.footer-content .copyright { font-family: var(--font-display); font-size: var(--fs-small); letter-spacing: 0.04em; margin: 0; opacity: 0.9; }
.footer-nav { margin-top: 0.75rem; font-size: 0.85rem; }
.footer-nav a { color: rgba(232,185,74,0.85); }
.footer-nav a:hover { color: var(--gold-light); }

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.comments-area { max-width: var(--content-max); margin: 3rem auto 0; padding-top: 2.5rem; border-top: 2px solid var(--border); }
.comments-title, .comment-reply-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy-dark); margin-bottom: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .comment { margin-bottom: 1.5rem; padding: 1.25rem; background: var(--ivory); border-radius: var(--radius); border-left: 4px solid var(--navy); }
.comment-author .fn { font-weight: 700; font-style: normal; color: var(--navy-dark); }
.comment-metadata { font-size: var(--fs-small); color: var(--text-muted); margin-bottom: 0.75rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--border); border-radius: var(--radius); font-family: inherit; margin-bottom: 1rem;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit-button, .search-submit {
  background: var(--navy); color: var(--white); padding: 0.7rem 1.8rem; border: none;
  border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: background .2s;
}
.comment-form .submit-button:hover, .search-submit:hover { background: var(--navy-dark); }

/* ==========================================================================
   SEARCH FORM
   ========================================================================== */
.search-form { display: flex; gap: 0.5rem; max-width: 600px; margin: 2rem 0; }
.search-field { flex: 1; padding: 0.75rem 1rem; border: 2px solid var(--border); border-radius: var(--radius); font-size: 1rem; }

/* ==========================================================================
   GUTENBERG BLOCK COMPATIBILITY (baseline, in case blocks are ever used)
   ========================================================================== */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wp-block-button__link { display: inline-block; background: var(--navy); color: var(--white); padding: 0.7rem 1.6rem; border-radius: var(--radius); font-weight: 600; }
.wp-block-button__link:hover { background: var(--navy-dark); color: var(--white); }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 2rem; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 768px) { .wp-block-columns { flex-direction: column; } }
.wp-block-separator { border: none; border-top: 2px solid var(--border); margin: 3rem auto; max-width: 120px; }

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .site-header, .site-footer, .menu-toggle, .search-wrap { display: none; }
  body { background: var(--white); color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
