/* FellowshipDesk — editorial directory of international fellowships
   Palette: deep navy (academic prestige) + warm gold (signal value)
   Type:    Space Grotesk (geometric sans, headings) + Source Serif Pro (humanist serif, body)
*/

:root {
  /* Core ink + paper */
  --paper:     #f7f4ec;        /* warm off-white, like fresh book paper */
  --paper-2:   #fdfbf5;
  --card:      #ffffff;
  --ink:       #0c1a2b;        /* near-black with navy bias */
  --ink-2:     #34465d;
  --ink-soft:  #5a6a82;
  --muted:     #8995a8;
  --line:      #e3dfd1;
  --line-2:    #d6d0bf;

  /* Brand: deep navy + warm gold */
  --navy:      #0a2540;        /* deep navy */
  --navy-2:    #133258;
  --navy-3:    #1d3f6f;
  --navy-ink:  #061a30;
  --gold:      #c79433;        /* warm gold */
  --gold-2:    #e2b352;
  --gold-soft: #f4e4bd;

  --danger:    #b4452f;
  --success:   #2f7c54;

  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 1px 2px rgba(10,37,64,.06), 0 8px 24px rgba(10,37,64,.06);
  --shadow-lg: 0 4px 14px rgba(10,37,64,.07), 0 22px 60px rgba(10,37,64,.10);

  --serif:  "Source Serif Pro", "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  --sans:   "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body:   "Source Serif 4", "Source Serif Pro", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--gold); }
.muted { color: var(--muted); font-size: .9em; }
small { color: var(--ink-soft); }

h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  letter-spacing: -.01em;
  color: var(--navy);
  line-height: 1.18;
  font-weight: 700;
  margin: 0;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Top notice strip ─────────────────────────────────────────────────── */
.notice-bar {
  background: var(--navy-ink); color: #d8e1ee;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .03em;
}
.notice-bar .wrap {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap;
}
.notice-bar a { color: var(--gold-2); }
.notice-bar strong { color: #fff; font-weight: 600; }

/* ─── Header ───────────────────────────────────────────────────────────── */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(10,37,64,.04);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px; align-items: center;
  padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--gold);
  display: grid; place-items: center;
  font-weight: 800; border-radius: 6px;
  font-family: var(--sans);
  letter-spacing: .04em; font-size: 15px;
  border: 1px solid var(--navy-2);
}
.brand-text {
  font-family: var(--sans);
  font-size: 22px; font-weight: 600;
  color: var(--navy); letter-spacing: -.01em;
}
.brand-text strong { color: var(--gold); font-weight: 700; }
.brand small {
  display: block; font-family: var(--sans); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}

.primary-nav {
  display: flex; gap: 26px; flex-wrap: wrap;
  font-family: var(--sans);
}
.primary-nav a {
  color: var(--ink); font-weight: 500; font-size: 14.5px;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.primary-nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }

.search-form { display: flex; gap: 6px; }
.search-form input {
  border: 1px solid var(--line-2); padding: 9px 14px; border-radius: 999px;
  font-size: 14px; min-width: 220px; background: var(--paper-2);
  font-family: var(--sans); color: var(--ink);
}
.search-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
.search-form button {
  border: 0; background: var(--navy); color: #fff;
  padding: 9px 16px; border-radius: 999px; font-weight: 600;
  cursor: pointer; font-family: var(--sans); font-size: 14px;
}
.search-form button:hover { background: var(--gold); color: var(--navy); }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr; gap: 14px; padding: 14px 20px; }
  .primary-nav { gap: 16px; font-size: 13.5px; }
  .search-form input { min-width: 0; flex: 1; }
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(199,148,51,.22), transparent 60%),
    radial-gradient(700px 500px at -10% 120%, rgba(29,63,111,.45), transparent 60%),
    linear-gradient(170deg, #0a2540 0%, #102d50 55%, #1a3a64 100%);
  color: #f3eddc;
  padding: 80px 0 96px;
  position: relative; overflow: hidden;
  border-bottom: 5px solid var(--gold);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 95%, rgba(244,228,189,.05) 95%),
    linear-gradient(90deg, transparent 95%, rgba(244,228,189,.05) 95%);
  background-size: 36px 36px;
  pointer-events: none;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.hero .eyebrow {
  font-family: var(--sans);
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-style: normal;
  font-size: 58px; line-height: 1.05; letter-spacing: -.015em;
  color: #fff; margin: 0 0 22px;
}
.hero h1 em {
  font-style: italic; color: var(--gold-2); font-weight: 500;
}
.hero p.lede {
  font-family: var(--body);
  font-size: 19px; line-height: 1.6; max-width: 56ch;
  color: #e7decd; margin: 0 0 30px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-cta .btn { font-family: var(--sans); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto);
  gap: 28px 36px; padding-top: 26px;
  border-top: 1px solid rgba(244,228,189,.18);
}
.hero-stats div {
  font-family: var(--sans); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: #c8bfa9;
}
.hero-stats strong {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: 34px; color: var(--gold-2); margin-bottom: 4px;
  letter-spacing: -.02em; line-height: 1;
}

.hero-art {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(244,228,189,.22);
}
.hero-art img { aspect-ratio: 4/5; object-fit: cover; }
.hero-art .quote {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(6,26,48,.92));
  padding: 80px 24px 24px;
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: #f3eddc;
}
.hero-art .quote cite {
  display: block; font-family: var(--sans); font-style: normal;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-2); margin-top: 8px;
}

@media (max-width: 980px) {
  .hero { padding: 56px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 40px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ─── Quickfilter band ─────────────────────────────────────────────────── */
.quickfilter {
  background: var(--card); border-bottom: 1px solid var(--line);
}
.quickfilter .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; padding-top: 0; padding-bottom: 0;
}
.qf-col {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}
.qf-col:last-child { border-right: 0; }
.qf-col h4 {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 10px;
}
.qf-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.qf-col a {
  font-family: var(--sans); font-size: 14px; color: var(--navy);
  font-weight: 500;
}
.qf-col a:hover { color: var(--gold); }
@media (max-width: 820px) {
  .quickfilter .wrap { grid-template-columns: 1fr; }
  .qf-col { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 24px; }
}

/* ─── Layout ───────────────────────────────────────────────────────────── */
.main { padding: 56px 0 80px; }
.with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px; align-items: start;
}
@media (max-width: 980px) {
  .with-sidebar { grid-template-columns: 1fr; gap: 36px; }
}

.section-title {
  font-family: var(--sans); font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  margin: 0 0 18px;
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line); padding-bottom: 12px;
}
.section-title a {
  font-size: 13px; letter-spacing: .04em; text-transform: none;
  color: var(--navy-3); font-weight: 500;
}
.section-title a:hover { color: var(--gold); }
.section-headline {
  font-family: var(--serif); font-weight: 600;
  font-size: 32px; line-height: 1.15; color: var(--navy);
  margin: 0 0 12px; letter-spacing: -.015em;
}
.section-sub {
  font-family: var(--body); font-size: 17px; color: var(--ink-2);
  max-width: 64ch; margin: 0 0 26px;
}

/* ─── Featured editorial block (hero of homepage body) ─────────────────── */
.featured-stack {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px; margin-bottom: 56px;
}
.feat-lead, .feat-side {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow); position: relative;
}
.feat-lead { min-height: 380px; }
.feat-tag {
  position: absolute; top: 18px; left: 18px;
  background: var(--gold); color: var(--navy);
  font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px;
}
.feat-lead .feat-body, .feat-side .feat-body { padding: 26px 28px 28px; }
.feat-lead h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 32px; line-height: 1.2; color: var(--navy);
  margin: 0 0 12px; letter-spacing: -.01em;
}
.feat-lead h2 a { color: inherit; }
.feat-lead h2 a:hover { color: var(--gold); }
.feat-lead p { color: var(--ink-2); margin: 0 0 14px; }
.feat-meta { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--sans); font-size: 12px; color: var(--ink-soft); }
.feat-meta span { display: flex; gap: 4px; align-items: baseline; }
.feat-meta strong { color: var(--navy); font-weight: 600; }

.feat-side { padding: 0; }
.feat-side h3 {
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  line-height: 1.25; margin: 0 0 8px; color: var(--navy);
}
.feat-side h3 a { color: inherit; }
.feat-side h3 a:hover { color: var(--gold); }
.feat-side .stack-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.feat-side .stack-list li {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  display: flex; gap: 14px; align-items: flex-start;
}
.feat-side .stack-list li:first-child { border-top: 0; padding-top: 22px; }
.feat-side .num {
  font-family: var(--serif); font-weight: 600; color: var(--gold);
  font-size: 22px; min-width: 28px; line-height: 1;
}
.feat-side .stack-list h4 {
  font-family: var(--serif); font-weight: 600;
  font-size: 16px; line-height: 1.3; margin: 0 0 4px;
  color: var(--navy); letter-spacing: 0;
}
.feat-side .stack-list h4 a { color: inherit; }
.feat-side .stack-list .meta {
  font-family: var(--sans); font-size: 11px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .1em;
}

@media (max-width: 880px) {
  .featured-stack { grid-template-columns: 1fr; }
  .feat-lead h2 { font-size: 24px; }
}

/* ─── Cards ─────────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.grid--two { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-3);
}
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-block; font-size: 10.5px; padding: 4px 9px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
  font-family: var(--sans);
}
.chip-cat    { background: var(--navy);     color: var(--gold-2); }
.chip-cat:hover { background: var(--navy-2); color: #fff; }
.chip-region { background: var(--gold-soft); color: #6b4d10; }
.chip-region:hover { background: var(--gold-2); color: var(--navy); }
.chip-disc   { background: #eef1f7; color: var(--navy-3); }
.chip-disc:hover { background: var(--navy); color: #fff; }

.card-title {
  font-family: var(--serif); font-weight: 600;
  font-size: 21px; line-height: 1.22; margin: 6px 0 0;
  letter-spacing: -.005em;
}
.card-title a { color: var(--navy); }
.card-title a:hover { color: var(--gold); }
.card-sponsor {
  color: var(--ink-soft); font-size: 13.5px; margin: 0;
  font-family: var(--sans);
}
.card-summary { color: var(--ink-2); font-size: 14.5px; margin: 4px 0 8px; }
.card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: auto 0 0; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card-stats div dt {
  font-family: var(--sans);
  font-size: 9.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em; margin: 0;
}
.card-stats div dd {
  margin: 3px 0 0; font-size: 13px; font-weight: 600;
  color: var(--navy); font-family: var(--sans);
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  background: var(--gold); color: var(--navy);
  padding: 11px 20px; border-radius: 4px;
  text-decoration: none; border: 0; cursor: pointer;
  letter-spacing: .02em;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); color: #fff; }
.btn--ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(244,228,189,.4);
}
.btn--ghost:hover { background: rgba(244,228,189,.08); color: #fff; }

/* ─── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar {
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 96px; align-self: start;
}
.side-block {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.side-block h4 {
  font-family: var(--sans);
  margin: 0 0 12px; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--gold); font-weight: 700;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.side-list a {
  color: var(--navy); font-size: 14.5px; font-family: var(--sans);
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 5px 0; border-bottom: 1px dotted transparent;
}
.side-list a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.side-list .muted { font-size: 11.5px; color: var(--muted); font-family: var(--sans); }

.side-cta { background: var(--navy); color: #fff; border-color: var(--navy-2); }
.side-cta h4 { color: var(--gold-2); border-bottom-color: rgba(244,228,189,.15); }
.side-cta p { font-family: var(--body); font-size: 14.5px; color: #d8e1ee; margin: 0 0 14px; }
.side-cta .btn { width: 100%; text-align: center; }

/* Editorial recommendations / PBN block */
.side-recs { padding: 0; overflow: hidden; }
.side-recs h4 { padding: 16px 20px 10px; margin: 0; border-bottom: 0; }
.side-recs h4 .label-sub {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: 12px; color: var(--ink-soft); text-transform: none;
  letter-spacing: 0; margin-top: 4px; font-weight: 400;
}
.rec-list { list-style: none; padding: 0; margin: 0; }
.rec-list li {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex; gap: 12px; align-items: flex-start;
}
.rec-list .rec-num {
  font-family: var(--serif); font-weight: 600; font-style: italic;
  color: var(--gold); font-size: 18px; min-width: 22px; line-height: 1.2;
}
.rec-list a, .rec-list .rec-anchor {
  display: block;
  font-family: var(--serif); font-weight: 600; font-size: 15.5px;
  line-height: 1.3; color: var(--navy); text-decoration: none;
}
.rec-list a:hover { color: var(--gold); }
.rec-list .rec-blurb {
  display: block; font-family: var(--body); font-size: 13px;
  color: var(--ink-soft); margin-top: 4px; font-weight: 400;
}

/* ─── Program detail header ─────────────────────────────────────────────── */
.crumbs {
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft);
  margin-bottom: 16px; letter-spacing: .02em;
}
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--muted); margin: 0 6px; }

.program-header {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px 32px; margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.program-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
}
.program-header .card-meta { margin-bottom: 18px; }
.program-header h1 {
  font-family: var(--serif); font-weight: 600;
  margin: 0 0 8px; font-size: 40px; line-height: 1.1;
  color: var(--navy); letter-spacing: -.02em;
}
.program-header .sponsor {
  color: var(--ink-2); margin: 0; font-family: var(--sans);
  font-size: 15px;
}
.program-header .sponsor strong { color: var(--navy); font-weight: 600; }
.program-header .meta-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px 28px; margin-top: 24px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.program-header .meta-row > div { font-size: 14px; }
.program-header .meta-row dt {
  color: var(--gold); font-family: var(--sans);
  text-transform: uppercase; font-size: 10.5px; letter-spacing: .14em;
  margin: 0 0 4px; font-weight: 700;
}
.program-header .meta-row dd {
  margin: 0; font-weight: 600; font-family: var(--sans);
  color: var(--navy); font-size: 14.5px;
}
.program-header .actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .program-header { padding: 26px 22px 24px; }
  .program-header h1 { font-size: 28px; }
}

/* ─── Prose ─────────────────────────────────────────────────────────────── */
.prose {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 44px 40px;
  font-family: var(--body); color: var(--ink);
  font-size: 17px; line-height: 1.75;
}
.prose h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 26px; margin: 36px 0 14px; color: var(--navy);
  letter-spacing: -.01em;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  font-family: var(--sans); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
  margin: 26px 0 8px;
}
.prose p { margin: 0 0 14px; }
.prose p + p { margin-top: 0; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin: 5px 0; }
.prose strong { color: var(--navy); }

.prose .pull {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: 22px; line-height: 1.4; color: var(--navy);
  border-left: 4px solid var(--gold);
  padding: 4px 0 4px 22px; margin: 24px 0;
}
.prose .keyfacts {
  background: #f3eedf; border-left: 4px solid var(--navy);
  padding: 18px 22px; margin: 24px 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.prose .keyfacts h4 {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--navy); margin: 0 0 8px; font-weight: 700;
}
.prose .keyfacts dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 18px; margin: 0;
}
.prose .keyfacts dt { font-family: var(--sans); font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.prose .keyfacts dd { font-family: var(--body); font-weight: 600; color: var(--navy); margin: 2px 0 0; font-size: 14.5px; }

.prose .ad-slot {
  margin: 30px 0; padding: 20px;
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  background: var(--paper-2); color: var(--muted);
  text-align: center; font-size: 11.5px; font-family: var(--sans);
  letter-spacing: .14em; text-transform: uppercase;
}

/* In-content recommendation slot (PBN inline) */
.prose .inline-rec {
  margin: 24px 0; padding: 18px 22px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose .inline-rec .label {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); font-weight: 700;
  display: block; margin-bottom: 6px;
}
.prose .inline-rec a, .prose .inline-rec .rec-anchor {
  display: block;
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: 16px;
}
.prose .inline-rec a:hover { color: var(--gold); }
.prose .inline-rec p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }

@media (max-width: 720px) {
  .prose { padding: 26px 22px; font-size: 16px; }
  .prose h2 { font-size: 22px; }
}

.related { margin-top: 40px; }

/* ─── Index headers ────────────────────────────────────────────────────── */
.index-header {
  background:
    radial-gradient(800px 380px at 90% 100%, rgba(199,148,51,.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: #f3eddc; padding: 56px 0 64px; margin-bottom: 36px;
  border-bottom: 4px solid var(--gold); position: relative; overflow: hidden;
}
.index-header::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(244,228,189,.04) 95%), linear-gradient(90deg, transparent 95%, rgba(244,228,189,.04) 95%);
  background-size: 36px 36px; pointer-events: none;
}
.index-header .wrap { position: relative; z-index: 1; }
.index-header .eyebrow {
  font-family: var(--sans); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-2); margin: 0 0 14px;
}
.index-header h1 {
  font-family: var(--serif); font-weight: 600;
  margin: 0 0 12px; font-size: 44px; line-height: 1.1; color: #fff;
  letter-spacing: -.02em;
}
.index-header h1 em { color: var(--gold-2); font-style: italic; font-weight: 500; }
.index-header p {
  margin: 0; max-width: 70ch; font-family: var(--body);
  font-size: 18px; color: #e7decd; line-height: 1.6;
}
.index-header .pillstrip {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px;
}
.index-header .pillstrip a {
  font-family: var(--sans); font-size: 12.5px;
  background: rgba(244,228,189,.1);
  color: var(--gold-2); padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(244,228,189,.18);
}
.index-header .pillstrip a:hover { background: var(--gold); color: var(--navy); }
@media (max-width: 720px) { .index-header h1 { font-size: 30px; } .index-header { padding: 40px 0 48px; } }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.tag-cloud a {
  background: var(--card); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; color: var(--navy);
  font-family: var(--sans); font-weight: 500;
}
.tag-cloud a:hover { background: var(--navy); color: var(--gold-2); border-color: var(--navy); }
.tag-cloud .muted { color: var(--muted); margin-left: 4px; font-size: 11.5px; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-ink); color: #c8d3e2;
  margin-top: 80px; padding: 56px 0 24px;
  border-top: 4px solid var(--gold);
}
.site-footer h4 {
  color: #fff; font-family: var(--sans);
  font-size: 12px; text-transform: uppercase; letter-spacing: .16em;
  margin: 0 0 14px; font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a {
  color: #c8d3e2; font-size: 14px; font-family: var(--sans);
}
.site-footer a:hover { color: var(--gold-2); }
.site-footer .brand-text { color: #fff; }
.site-footer .brand-text strong { color: var(--gold-2); }
.site-footer .muted { color: #8995a8; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid #1c3253;
}
.footer-bottom {
  padding: 24px 0 0;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 12.5px; color: #6c7a90;
}
.footer-bottom a { color: #8995a8; }

/* Footer recommendations / PBN block */
.footer-recs {
  background: #061a30; padding: 32px 0; margin-top: 48px;
  border-top: 1px solid #1c3253; border-bottom: 1px solid #1c3253;
}
.footer-recs h4 { color: var(--gold-2); margin: 0 0 14px; }
.footer-recs h4 .label-sub {
  display: block; font-family: var(--serif); font-style: italic;
  text-transform: none; letter-spacing: 0; font-weight: 400;
  font-size: 13px; color: #8995a8; margin-top: 4px;
}
.footer-recs .rec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.footer-recs .rec-card {
  display: block; padding: 14px 16px;
  background: rgba(244,228,189,.04);
  border: 1px solid #1c3253; border-radius: var(--radius);
  font-family: var(--serif); color: #e7decd; font-size: 15px;
}
.footer-recs .rec-card:hover { background: rgba(244,228,189,.08); border-color: var(--gold); color: #fff; }
.footer-recs .rec-card small {
  display: block; font-family: var(--sans); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 4px; font-weight: 600;
}

@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* AdSense visible placeholders */
.adsense {
  display: block; margin: 16px auto; padding: 14px;
  text-align: center; font-size: 11px; color: var(--muted);
  background: var(--paper-2); border: 1px dashed var(--line-2); border-radius: var(--radius);
  font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
