/* ============================================================
   Fiduciary Commons — style.css
   Shared stylesheet for all pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Cormorant+SC:wght@400;600&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */

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

:root {
  --navy:       #1e2e45;
  --navy-deep:  #131e2e;
  --navy-mid:   #2e4460;
  --gold:       #b5923a;
  --gold-light: #d4ad5c;
  --cream:      #f8f5f0;
  --cream-dark: #ede9e2;
  --text:       #1a1a1a;
  --text-mid:   #3d3d3d;
  --text-light: #6b6b6b;
  --rule:       #c8c0b0;
  --rule-light: #e0dbd2;
  --white:      #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'EB Garamond', Georgia, serif;
  --font-caps:    'Cormorant SC', Georgia, serif;

  --max-width:    1100px;
  --content-width: 720px;
  --side-pad:     2rem;
  --section-gap:  4rem;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--navy-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
a:hover { color: var(--gold); }

/* ── Typography Scale ─────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 600; margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; margin-bottom: 0.5rem; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

.caps {
  font-family: var(--font-caps);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ── Layout Utilities ─────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

.content-column {
  max-width: var(--content-width);
}

.section { padding: var(--section-gap) 0; }
.section + .section { border-top: 1px solid var(--rule-light); }

/* ── Double Rule (legal document motif) ───────────────────── */

.double-rule {
  border: none;
  height: 5px;
  background:
    linear-gradient(var(--navy) 0px, var(--navy) 2px, transparent 2px, transparent 3px, var(--gold) 3px, var(--gold) 4px, transparent 4px);
  margin: 1.5rem 0;
}

.double-rule-thin {
  border: none;
  height: 4px;
  background:
    linear-gradient(var(--rule) 0px, var(--rule) 1px, transparent 1px, transparent 2px, var(--rule) 2px, var(--rule) 3px, transparent 3px);
  margin: 2.5rem 0;
}

/* ── Navigation ───────────────────────────────────────────── */

.site-header {
  background: var(--navy-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}

.site-logo .logo-main {
  font-family: var(--font-caps);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
}

.site-logo .logo-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-caps);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover {
  color: var(--white);
  border-bottom-color: var(--gold-light);
}

.site-nav a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav.open { display: block; }

.mobile-nav ul {
  list-style: none;
  padding: 0.5rem 0 1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem var(--side-pad);
  font-family: var(--font-caps);
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--white);
  border-left-color: var(--gold);
  background: rgba(255,255,255,0.04);
}

/* ── Page Hero ────────────────────────────────────────────── */

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 4rem var(--side-pad) 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(181,146,58,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero .container { position: relative; }

.page-hero .eyebrow {
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.page-hero h1 {
  color: var(--white);
  max-width: 740px;
  margin-bottom: 1.25rem;
}

.page-hero .hero-lead {
  font-family: var(--font-body);
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin-bottom: 0;
}

.page-hero .double-rule {
  margin: 1.75rem 0 0;
  max-width: 120px;
  background:
    linear-gradient(rgba(255,255,255,0.5) 0px, rgba(255,255,255,0.5) 2px, transparent 2px, transparent 3px, var(--gold) 3px, var(--gold) 4px, transparent 4px);
}

/* ── Home Hero (taller) ───────────────────────────────────── */

.home-hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: 5.5rem var(--side-pad) 5rem;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(181,146,58,0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(46,68,96,0.4) 0%, transparent 50%);
  pointer-events: none;
}

.home-hero .container { position: relative; }

.home-hero .eyebrow {
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.home-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  max-width: 820px;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.home-hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.home-hero .hero-lead {
  font-size: 1.15rem;
  line-height: 1.72;
  color: rgba(255,255,255,0.8);
  max-width: 660px;
  margin-bottom: 2rem;
}

.home-hero .double-rule {
  max-width: 100px;
  background:
    linear-gradient(rgba(255,255,255,0.4) 0px, rgba(255,255,255,0.4) 2px, transparent 2px, transparent 3px, var(--gold) 3px, var(--gold) 4px, transparent 4px);
}

/* ── CTA Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-caps);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-decoration: none;
  border: 1.5px solid;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-deep);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.75);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── Section Labels ───────────────────────────────────────── */

.section-label {
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}

/* ── Audience Panels (Home) ───────────────────────────────── */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}

.audience-panel {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--rule);
}
.audience-panel:last-child { border-right: none; }

.audience-panel h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule-light);
}

.audience-panel p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 0;
}

/* ── Framework Document Entries ───────────────────────────── */

.doc-entry {
  padding: 2rem 0 2rem 1.5rem;
  border-left: 3px solid var(--rule);
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.doc-entry:hover { border-left-color: var(--gold); }

.doc-entry .doc-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
  font-style: italic;
}

.doc-entry .doc-meta {
  font-family: var(--font-caps);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.85rem;
}

.doc-entry p {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--text-mid);
  margin-bottom: 0.6rem;
}

.doc-entry .doc-link {
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--navy-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s, border-color 0.2s;
}
.doc-entry .doc-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── People Cards ─────────────────────────────────────────── */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.person-card {
  background: var(--white);
  border: 1px solid var(--rule-light);
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.person-card:hover {
  box-shadow: 0 4px 20px rgba(30,46,69,0.1);
  border-color: var(--rule);
}

.person-card.placeholder {
  border-style: dashed;
  background: var(--cream);
}

.person-card .person-avatar {
  width: 64px;
  height: 64px;
  background: var(--cream-dark);
  border-radius: 50%;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rule);
  font-size: 1.5rem;
}

.person-card.placeholder .person-avatar {
  border: 2px dashed var(--rule);
  color: var(--rule);
}

.person-card h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.person-card .person-title {
  font-family: var(--font-caps);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.person-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 0;
}

/* ── Blog Post ────────────────────────────────────────────── */

.post-body h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.post-body p {
  font-size: 1.02rem;
  line-height: 1.82;
  margin-bottom: 1.4rem;
}

.post-signature {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.post-signature .sig-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

.post-signature .sig-title {
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ── Contact Page ─────────────────────────────────────────── */

.contact-block {
  background: var(--white);
  border: 1px solid var(--rule-light);
  padding: 2rem 2rem;
  margin-bottom: 1.5rem;
}

.contact-block h3 {
  margin-bottom: 1.2rem;
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.contact-row .label {
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  color: var(--text-light);
  min-width: 200px;
  flex-shrink: 0;
}

.contact-row a {
  font-size: 0.96rem;
  color: var(--navy-mid);
  word-break: break-all;
}

/* Email signup */
.email-signup {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 1.25rem 0;
}

.email-signup input {
  flex: 1;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1.5px solid var(--rule);
  border-right: none;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.email-signup input:focus { border-color: var(--navy); }

.email-signup button {
  padding: 0.65rem 1.25rem;
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  background: var(--navy);
  color: var(--white);
  border: 1.5px solid var(--navy);
  cursor: pointer;
  transition: background 0.2s;
}
.email-signup button:hover { background: var(--navy-mid); }

/* ── Donate ───────────────────────────────────────────────── */

.donate-cta {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 2.5rem;
  margin: 2rem 0;
}

.donate-cta h2 { color: var(--white); margin-bottom: 1rem; }
.donate-cta p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; max-width: 520px; }

/* ── Independence Notice ──────────────────────────────────── */

.independence-note {
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  background: var(--cream-dark);
  margin-top: 2rem;
}

.independence-note p {
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--text-mid);
  margin-bottom: 0;
  font-style: italic;
}

/* ── Inline Call-to-Action Strip ─────────────────────────── */

.cta-strip {
  background: var(--cream-dark);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2rem var(--side-pad);
  text-align: center;
}

.cta-strip p {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 3rem var(--side-pad) 2rem;
  margin-top: 5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .logo-main {
  font-family: var(--font-caps);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-caps);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }

.footer-contact p,
.footer-contact a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
  word-break: break-all;
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0;
}

/* ── Utility ──────────────────────────────────────────────── */

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
  :root { --side-pad: 1.5rem; }

  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .audience-grid {
    grid-template-columns: 1fr;
  }
  .audience-panel { border-right: none; border-bottom: 1px solid var(--rule); }
  .audience-panel:last-child { border-bottom: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root {
    --side-pad: 1.1rem;
    --section-gap: 2.75rem;
  }

  html { font-size: 16px; }

  .home-hero { padding: 3.5rem var(--side-pad) 3rem; }
  .page-hero { padding: 2.75rem var(--side-pad) 2.5rem; }

  .contact-row .label { min-width: 100%; }

  .email-signup { flex-direction: column; }
  .email-signup input { border-right: 1.5px solid var(--rule); border-bottom: none; }
  .email-signup button { width: 100%; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .btn-group { flex-direction: column; align-items: flex-start; }

  .doc-entry { padding-left: 1rem; }
  .people-grid { grid-template-columns: 1fr; }
}

/* ── Topics Accordion ─────────────────────────────────────── */

.topic-item {
  border: 1px solid var(--rule-light);
  margin-bottom: 0.75rem;
  background: var(--white);
  transition: border-color 0.2s;
}

.topic-item.open {
  border-color: var(--navy);
}

.topic-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.topic-trigger:hover { background: var(--cream); }
.topic-item.open .topic-trigger { background: var(--cream-dark); }

.topic-trigger-left { flex: 1; min-width: 0; }

.topic-trigger .topic-number {
  font-family: var(--font-caps);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
}

.topic-trigger h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.topic-trigger .topic-summary {
  font-size: 0.88rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.5;
}

.topic-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, border-color 0.2s, background 0.2s;
}

.topic-item.open .topic-chevron {
  background: var(--navy);
  border-color: var(--navy);
  transform: rotate(180deg);
}

.topic-chevron svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-item.open .topic-chevron svg { stroke: var(--white); }

.topic-body {
  display: none;
  padding: 0 1.75rem 1.75rem;
  border-top: 1px solid var(--rule-light);
}

.topic-item.open .topic-body { display: block; }

.topic-body .topic-description {
  font-size: 0.98rem;
  line-height: 1.78;
  color: var(--text-mid);
  margin: 1.25rem 0 1.75rem;
  max-width: 680px;
}

.topic-resources-label {
  font-family: var(--font-caps);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.resource-entry {
  padding: 1.1rem 0 1.1rem 1.25rem;
  border-left: 2px solid var(--rule-light);
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.resource-entry:hover { border-left-color: var(--gold); }

.resource-entry .resource-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--navy);
  font-style: italic;
  margin-bottom: 0.2rem;
}

.resource-entry .resource-meta {
  font-family: var(--font-caps);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.resource-entry .resource-type-badge {
  display: inline-block;
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.45rem;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.badge-own    { background: var(--navy);     color: var(--white); }
.badge-ext    { background: var(--cream-dark); color: var(--text-light); border: 1px solid var(--rule); }
.badge-video  { background: #2e6b4f;           color: var(--white); }

.resource-entry .resource-annotation {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.resource-entry .resource-link {
  font-family: var(--font-caps);
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  color: var(--navy-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s, border-color 0.2s;
}
.resource-entry .resource-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── Blog Post List ───────────────────────────────────────── */

.post-list { list-style: none; }

.post-list-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule-light);
}

.post-list-item:first-child { padding-top: 0; }

.post-list-item .post-eyebrow {
  font-family: var(--font-caps);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.4rem;
  display: block;
}

.post-list-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.post-list-item h3 a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
.post-list-item h3 a:hover { color: var(--gold); }

.post-list-item .post-excerpt {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--text-mid);
  margin-bottom: 0.75rem;
  max-width: 640px;
}

.post-list-item .post-read-more {
  font-family: var(--font-caps);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  color: var(--navy-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s, border-color 0.2s;
}
.post-list-item .post-read-more:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── About page biography ─────────────────────────────────── */

.bio-credential {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--rule-light);
}

.bio-credential-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-credential-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-light);
}

.bio-credential-text { flex: 1; }

.bio-credential-text strong {
  display: block;
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.bio-credential-text p {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 0;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .topic-trigger { padding: 1.25rem 1.1rem; }
  .topic-body    { padding: 0 1.1rem 1.5rem; }
  .bio-credential { flex-direction: column; gap: 0.75rem; }
}

/* ── Accordion (Topics page) ──────────────────────────────── */

.accordion { margin-bottom: 0; }

.accordion-item {
  border-bottom: 1px solid var(--rule-light);
}
.accordion-item:first-child {
  border-top: 1px solid var(--rule-light);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.6rem var(--side-pad);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: background 0.15s;
}
.accordion-trigger:hover { background: var(--cream-dark); }
.accordion-trigger.open   { background: var(--cream-dark); }

.accordion-trigger-text { flex: 1; }

.accordion-trigger h2 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 0.3rem;
  transition: color 0.15s;
}
.accordion-trigger:hover h2,
.accordion-trigger.open   h2 { color: var(--navy-mid); }

.accordion-trigger .topic-summary {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-light);
  font-weight: normal;
  margin-bottom: 0;
}

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.25s;
}
.accordion-trigger.open .accordion-icon {
  border-color: var(--gold);
  transform: rotate(45deg);
}

.accordion-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--navy-mid);
  stroke-width: 2;
  stroke-linecap: round;
}

.accordion-body {
  display: none;
  padding: 0 var(--side-pad) 2.5rem;
  background: var(--cream-dark);
}
.accordion-body.open { display: block; }

.accordion-body .subsection-label {
  font-family: var(--font-caps);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 2rem 0 1rem;
  display: block;
}

/* External resource annotation */
.annotation-block {
  margin-top: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--text-mid);
  font-style: italic;
}
.annotation-block strong {
  font-style: normal;
  font-family: var(--font-caps);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}

/* Blog post list */
.post-list { list-style: none; }

.post-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule-light);
}
.post-card:first-child { border-top: 1px solid var(--rule-light); }

.post-card .post-meta {
  font-family: var(--font-caps);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.post-card h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 0.75rem;
}

.post-card h2 a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
.post-card h2 a:hover { color: var(--navy-mid); }

.post-card .post-summary {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.topic-tag {
  display: inline-block;
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--navy-mid);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.5rem;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

/* ── Video card (shared — used by Framework and Topics) ───── */
.video-card {
  background: var(--white);
  border: 1px solid var(--rule-light);
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.video-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(30,46,69,0.08);
}
.video-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card .video-body { flex: 1; min-width: 0; }
.platform-badge {
  display: inline-block;
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--navy-mid);
  padding: 0.2rem 0.55rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.materials-loading {
  padding: 3rem 0;
  font-family: var(--font-caps);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
}
.materials-error {
  padding: 1.5rem;
  background: #fff8f0;
  border-left: 3px solid var(--gold);
  color: var(--text-mid);
  font-size: 0.92rem;
}
