:root {
  --paper: #f7f2e8;
  --paper-deep: #ece2d1;
  --ink: #17233b;
  --ink-soft: #4b5568;
  --navy: #13243d;
  --navy-2: #203a5d;
  --terra: #b85c3d;
  --terra-dark: #93442d;
  --gold: #d9a441;
  --white: #fffdfa;
  --line: rgba(23, 35, 59, .14);
  --shadow: 0 24px 70px rgba(35, 31, 25, .12);
  --radius: 26px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(217,164,65,.12), transparent 25rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--terra-dark); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  transform: translateY(-180%);
  padding: .65rem 1rem;
  color: #fff;
  background: var(--navy);
  border-radius: 12px;
}
.skip-link:focus { transform: none; }

.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 999;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terra), var(--gold));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 232, .92);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(calc(100% - 32px), var(--content));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 830;
  letter-spacing: -.04em;
  font-size: 1.22rem;
  white-space: nowrap;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px 13px 13px 5px;
  color: #fff;
  background: var(--navy);
  box-shadow: inset 0 -3px 0 rgba(217,164,65,.6);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}
.nav { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: .62rem .78rem;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: .89rem;
  font-weight: 680;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--white); color: var(--terra-dark); }
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: .2s ease;
}
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.shell { width: min(calc(100% - 32px), var(--content)); margin: 0 auto; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .6rem;
  align-items: center;
  margin: 1.25rem 0 1rem;
  color: var(--ink-soft);
  font-size: .79rem;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .6rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: .6rem; color: rgba(23,35,59,.36); }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs .sep { color: rgba(23,35,59,.36); }

.hero {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border-radius: 36px;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,242,232,.98) 0%, rgba(247,242,232,.94) 38%, rgba(247,242,232,.15) 68%, rgba(247,242,232,0) 100%);
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(620px, 58%);
  padding: clamp(48px, 7vw, 92px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1rem;
  color: var(--terra-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  text-wrap: balance;
  scroll-margin-top: 98px;
}
h1 { margin: 0 0 1rem; font-size: clamp(2.25rem, 5vw, 4.45rem); letter-spacing: -.045em; }
h2 { margin: 2.6rem 0 1rem; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.025em; }
h3 { margin: 2rem 0 .8rem; font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: 1.14rem; }
p, ul, ol, blockquote, table { margin-top: 0; margin-bottom: 1.2rem; }
.lead { color: var(--ink-soft); font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.62; }
.hero .lead { max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--terra);
  color: #fff;
  text-decoration: none;
  font-weight: 760;
  box-shadow: 0 10px 24px rgba(184,92,61,.2);
}
.button:hover { background: var(--terra-dark); color: #fff; transform: translateY(-1px); }
.button.secondary { border-color: var(--line); background: rgba(255,253,250,.82); color: var(--ink); box-shadow: none; }

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 600px; margin: 0; color: var(--ink-soft); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  position: relative;
  min-width: 0;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,253,250,.82);
  box-shadow: 0 10px 30px rgba(35,31,25,.05);
}
.card:hover { transform: translateY(-3px); border-color: rgba(184,92,61,.35); }
.card h3 { margin: .35rem 0 .6rem; font-size: 1.38rem; }
.card p { color: var(--ink-soft); font-size: .92rem; }
.card a.stretched { color: var(--ink); text-decoration: none; }
.card a.stretched::after { content: ""; position: absolute; inset: 0; }
.card-kicker { color: var(--terra-dark); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-arrow { color: var(--terra-dark); font-size: .86rem; font-weight: 760; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}
.stat { padding: 1.25rem; background: var(--white); }
.stat strong { display: block; font: 700 1.65rem/1.1 Georgia, serif; }
.stat span { color: var(--ink-soft); font-size: .83rem; }

.page-layout { display: grid; grid-template-columns: minmax(0, 820px) 280px; gap: 34px; align-items: start; padding-bottom: 70px; }
.article {
  min-width: 0;
  overflow: hidden;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.article-header { margin-bottom: 1.5rem; }
.article-header h1 { font-size: clamp(2rem, 4.8vw, 3.75rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.2rem 0 0; color: var(--ink-soft); font-size: .78rem; }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: .25rem .65rem; border-radius: 999px; background: var(--paper); }
.article-cover { width: 100%; aspect-ratio: 16 / 9; margin: 1.7rem 0; object-fit: cover; border-radius: 20px; background: var(--paper-deep); }
.article-content { overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; }
.article-content p { max-width: 75ch; }
.article-content ul, .article-content ol { padding-left: 1.35rem; }
.article-content li + li { margin-top: .38rem; }
.article-content blockquote {
  margin: 1.8rem 0;
  padding: 1.1rem 1.3rem;
  border-left: 4px solid var(--terra);
  border-radius: 0 16px 16px 0;
  background: var(--paper);
  color: var(--ink-soft);
}
.article-content figure { margin: 1.7rem 0; }
.article-content img:not(.article-cover) { border-radius: 16px; }
.article-content figcaption { margin-top: .45rem; color: var(--ink-soft); font-size: .78rem; text-align: center; }
.article-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9rem; }
.article-content th, .article-content td { padding: .72rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: var(--paper); }
.article-content pre, .article-content code { max-width: 100%; overflow-x: auto; }

.toc { margin: 1.6rem 0 2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.toc summary { padding: .9rem 1.1rem; cursor: pointer; font-weight: 780; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; float: right; color: var(--terra-dark); font-size: 1.2rem; }
.toc[open] summary::after { content: "−"; }
.toc nav { padding: 0 1.1rem 1rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li + li { margin-top: .3rem; }
.toc a { color: var(--ink); text-decoration: none; font-size: .88rem; }

.quick-answer {
  margin: 1.5rem 0;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(184,92,61,.25);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(184,92,61,.08), rgba(217,164,65,.08));
}
.quick-answer strong { display: block; margin-bottom: .35rem; color: var(--terra-dark); }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 1.3rem 0; }
.fact-grid > div { padding: .85rem 1rem; border-radius: 14px; background: var(--paper); }
.fact-grid dt { color: var(--ink-soft); font-size: .73rem; text-transform: uppercase; letter-spacing: .07em; }
.fact-grid dd { margin: .15rem 0 0; font-weight: 700; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.theme-box { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.theme-box h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.theme-box p { margin: 0; font-size: .92rem; }
.source-note { margin-top: 2rem; padding: 1rem 1.2rem; border-radius: 16px; background: #fff4d7; color: #5f4514; }
.table-scroll { max-width: 100%; overflow-x: auto; }

.page-shell { padding-bottom: 70px; }
.content-card.hub { max-width: none; }
.article-cover { overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.home-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); align-items: center; gap: clamp(24px, 5vw, 64px); margin: 0 0 3rem; padding: clamp(24px, 5vw, 58px); border-radius: 26px; background: var(--paper); }
.home-hero h2 { margin-top: .25rem; font-size: clamp(2rem, 4vw, 3.6rem); }
.home-hero img { border-radius: 20px; box-shadow: var(--shadow); }
.home-intro { max-width: 760px; margin: 3rem 0 1.6rem; }
.home-intro h2 { margin-top: .3rem; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.topic-card { position: relative; min-width: 0; padding: 1.4rem; border: 1px solid var(--line); border-radius: 20px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: 0 10px 30px rgba(35,31,25,.05); }
.topic-card:hover { transform: translateY(-3px); border-color: rgba(184,92,61,.35); }
.topic-card > span { color: var(--terra-dark); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.topic-card h2 { margin: .4rem 0 .65rem; font-size: 1.35rem; }
.topic-card p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--line); }
.principles div { padding: 1.2rem; background: var(--white); }
.principles strong { display: block; font: 700 1.7rem Georgia,serif; }
.principles span { color: var(--ink-soft); font-size: .82rem; }
.site-cta { width: min(calc(100% - 32px), var(--content)); margin: 0 auto 70px; padding: clamp(24px, 4vw, 42px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 24px; color: #fff; background: var(--navy); }
.site-cta h2 { margin: .2rem 0 0; color: #fff; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.site-cta .eyebrow { margin: 0; color: #f0bd72; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 1.3rem 0; }
.fact { padding: .85rem 1rem; border-radius: 14px; background: var(--paper); }
.fact span { display: block; color: var(--ink-soft); font-size: .73rem; text-transform: uppercase; letter-spacing: .07em; }
.fact strong { display: block; margin-top: .15rem; font-size: .95rem; }

.sidebar { position: sticky; top: 98px; display: grid; gap: 16px; }
.side-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,250,.82); }
.side-card h2 { margin: 0 0 .7rem; font-size: 1.22rem; }
.side-card p { color: var(--ink-soft); font-size: .84rem; }
.side-links { display: grid; gap: .45rem; padding: 0; list-style: none; }
.side-links a { display: block; padding: .65rem .7rem; border-radius: 11px; color: var(--ink); background: var(--paper); text-decoration: none; font-size: .82rem; font-weight: 680; }
.side-links a:hover { background: var(--paper-deep); }

.notice { padding: 1rem 1.15rem; border-radius: 16px; background: #fff4d7; color: #5f4514; }
.quiz, .ftwp-wrap, .su-accordion, .wq_quizCtr { max-width: 100%; }
input[type="text"], input[type="email"], textarea, select { width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

.site-footer { margin-top: 20px; color: rgba(255,255,255,.82); background: var(--navy); }
.footer-inner { width: min(calc(100% - 32px), var(--content)); margin: 0 auto; padding: 54px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-brand { color: #fff; font: 700 1.5rem Georgia, serif; }
.footer-inner h2 { margin: 0 0 .8rem; color: #fff; font: 700 .9rem/1.3 Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.footer-inner p, .footer-inner a { color: rgba(255,255,255,.72); font-size: .84rem; }
.footer-links { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .76rem; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 16px; right: 16px; margin: 0; padding: .6rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav-list { display: grid; gap: 2px; }
  .nav a { padding: .75rem .85rem; }
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .topic-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-hero { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16.5px; line-height: 1.67; }
  .shell, .header-inner, .footer-inner { width: min(calc(100% - 22px), var(--content)); }
  .header-inner { min-height: 68px; }
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 36px; height: 36px; }
  .hero { min-height: auto; border-radius: 24px; background: var(--white); }
  .hero::after { background: linear-gradient(180deg, rgba(247,242,232,.18) 0%, rgba(247,242,232,.96) 47%, rgba(247,242,232,1) 100%); }
  .hero-media { position: relative; height: 260px; object-position: 70% center; }
  .hero-copy { width: 100%; margin-top: -100px; padding: 28px 24px 36px; }
  h1 { font-size: clamp(2.1rem, 11vw, 3.25rem); }
  .grid, .sidebar, .footer-grid, .facts, .fact-grid, .theme-grid, .topic-grid, .principles { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: .7rem; }
  .article { padding: 24px 18px; border-radius: 20px; }
  .article-header h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .stat-strip { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .site-cta { width: min(calc(100% - 22px), var(--content)); align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .sidebar, .site-footer, .reading-progress, .breadcrumbs { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .shell { width: 100%; }
  .page-layout { display: block; }
  .article { padding: 0; border: 0; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}
