:root {
  --ink: #102a35;
  --muted: #5a6d75;
  --navy: #0b3a53;
  --navy-2: #155470;
  --teal: #0f8a83;
  --teal-light: #dff5f0;
  --gold: #f3b63a;
  --paper: #fffdf8;
  --soft: #f3f7f5;
  --line: #dbe5e1;
  --white: #fff;
  --shadow: 0 18px 45px rgba(11, 58, 83, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: inherit; text-underline-offset: .18em; }
img { max-width: 100%; }
button, input { font: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--white); color: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 18px; }

.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 850; font-size: 1.34rem; text-decoration: none; letter-spacing: -.04em; }
.brand > span:last-child > span { color: var(--teal); }
.brand-mark { display: block; width: 42px; height: 42px; flex: 0 0 42px; filter: drop-shadow(0 5px 10px rgba(11,58,83,.12)); }
.main-nav { display: flex; align-items: center; gap: clamp(12px, 1.45vw, 20px); }
.main-nav a { color: #284852; font-size: .93rem; font-weight: 650; text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--teal); }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 9px; padding: 8px 12px; color: var(--navy); }

.hero { position: relative; overflow: hidden; padding: 82px 0 92px; background: linear-gradient(135deg, #edf8f5 0%, #fffaf0 60%, #f7ecd4 100%); border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; width: 430px; height: 430px; right: -180px; top: -230px; border: 70px solid rgba(15,138,131,.08); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .75fr; gap: 72px; align-items: center; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1, .guide-header h1, .simple-hero h1, .article-hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; color: var(--navy); letter-spacing: -.045em; line-height: 1.06; }
.hero h1 { max-width: 760px; font-size: clamp(2.9rem, 6.1vw, 5.6rem); }
.hero h1 em { color: var(--teal); font-weight: inherit; }
.hero-copy > p { max-width: 690px; margin: 24px 0 30px; color: #395b63; font-size: 1.12rem; }
.hero-search, .library-search { display: flex; padding: 7px; background: var(--white); border: 1px solid #cddbd7; border-radius: 14px; box-shadow: var(--shadow); }
.hero-search { max-width: 650px; }
.hero-search input, .library-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 11px 14px; color: var(--ink); background: transparent; }
.hero-search button, .library-search button, .button-primary { border: 0; border-radius: 10px; background: var(--navy); color: var(--white); padding: 12px 20px; font-weight: 750; text-decoration: none; cursor: pointer; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: #547078; font-size: .84rem; font-weight: 650; }
.trust-row span::before { content: "✓"; margin-right: 6px; color: var(--teal); }
.hero-panel { padding: 30px; color: var(--white); background: var(--navy); border-radius: 24px; box-shadow: 0 24px 60px rgba(11,58,83,.2); transform: rotate(1.2deg); }
.panel-label { margin-bottom: 20px; color: #9dded8; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-panel ol { margin: 0; padding: 0; list-style: none; }
.hero-panel li { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.14); }
.hero-panel li span { color: var(--gold); font-family: Georgia, serif; font-size: 1.2rem; }
.hero-panel a { color: var(--white); font-weight: 700; text-decoration: none; }

.section { padding-block: 82px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2, .latest-layout h2, .principles h2, .related-section h2 { margin: 0; color: var(--navy); font: 700 clamp(2rem, 3.8vw, 3rem)/1.12 Georgia, serif; letter-spacing: -.03em; }
.text-link, .card-link { color: var(--teal); font-weight: 750; text-decoration: none; }
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.article-card { position: relative; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(11,58,83,.035); transition: transform .16s ease-out, box-shadow .16s ease-out, border-color .16s ease-out; }
.article-card:hover { transform: translateY(-4px); border-color: #aad6ce; box-shadow: var(--shadow); }
.card-topline, .card-footer, .article-list article > div, .results-top { display: flex; justify-content: space-between; gap: 16px; color: var(--teal); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.card-topline a { text-decoration: none; }
.article-card h3 { margin: 18px 0 11px; color: var(--navy); font: 700 1.45rem/1.2 Georgia, serif; }
.article-card h3 a { text-decoration: none; }
.article-card p { color: var(--muted); }
.card-footer { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.card-footer a { text-decoration: none; }

.category-band { padding: 76px 0; color: var(--white); background: var(--navy); }
.section-heading.light h2 { color: var(--white); }
.category-band .eyebrow { color: #7bd1c8; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { min-height: 230px; padding: 24px; color: var(--white); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); text-decoration: none; }
.category-card:hover { background: rgba(255,255,255,.11); }
.category-arrow { display: grid; width: 38px; height: 38px; place-items: center; margin-left: auto; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.category-card h3 { margin: 28px 0 10px; font: 700 1.35rem Georgia, serif; }
.category-card p { margin: 0; color: #c9dde4; font-size: .91rem; }

.latest-layout { display: grid; grid-template-columns: .75fr 1.35fr; gap: 70px; align-items: start; }
.section-intro { color: var(--muted); }
.article-list article { padding: 28px 0; border-top: 1px solid var(--line); }
.article-list article:first-child { padding-top: 0; border-top: 0; }
.article-list h3 { margin: 9px 0; color: var(--navy); font: 700 1.55rem Georgia, serif; }
.article-list h3 a { text-decoration: none; }
.article-list p { margin: 0; color: var(--muted); }

.principles { margin-bottom: 85px; padding: 52px; background: #edf6f2; border: 1px solid var(--line); border-radius: 26px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 35px 0; }
.principle-grid strong { color: var(--gold); font: 700 1.5rem Georgia, serif; }
.principle-grid h3 { margin: 10px 0 5px; color: var(--navy); }
.principle-grid p { margin: 0; color: var(--muted); }
.button-secondary { display: inline-block; padding: 12px 18px; color: var(--navy); border: 1px solid var(--navy); border-radius: 10px; font-weight: 750; text-decoration: none; }

.guide-header, .simple-hero, .article-hero { padding: 66px 0; background: #edf6f2; border-bottom: 1px solid var(--line); }
.guide-header h1, .simple-hero h1 { max-width: 840px; font-size: clamp(2.5rem, 5vw, 4.7rem); }
.guide-header p, .simple-hero p { max-width: 720px; color: var(--muted); font-size: 1.08rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; color: #61767e; font-size: .82rem; }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.library-search { max-width: 520px; margin-top: 25px; box-shadow: none; }
.library-layout { display: grid; grid-template-columns: 220px 1fr; gap: 46px; padding-block: 60px 90px; }
.filter-panel { position: sticky; top: 104px; align-self: start; display: grid; gap: 5px; }
.filter-panel h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.filter-panel a { padding: 10px 12px; border-radius: 8px; color: #47616a; text-decoration: none; }
.filter-panel a.active, .filter-panel a:hover { color: var(--navy); background: var(--teal-light); font-weight: 750; }
.results-top { align-items: center; margin-bottom: 20px; color: var(--muted); }
.results-top h2 { margin: 0; color: var(--navy); font: 700 1.6rem Georgia, serif; text-transform: none; letter-spacing: 0; }
.library-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.empty-state { padding: 40px; background: var(--soft); border-radius: var(--radius); }

.article-hero { padding-block: 56px 64px; }
.article-shell { max-width: 920px; }
.article-hero h1 { max-width: 900px; font-size: clamp(2.55rem, 5.8vw, 5.1rem); }
.article-deck { max-width: 780px; margin: 24px 0; color: #46616a; font-size: 1.18rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 9px 22px; color: #5e747b; font-size: .82rem; }
.article-meta span + span::before { content: "•"; margin-right: 22px; color: #a8b7b9; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 750px); gap: 60px; justify-content: center; padding-block: 64px 90px; }
.toc { position: sticky; top: 106px; align-self: start; display: grid; gap: 10px; padding-left: 16px; border-left: 2px solid var(--line); }
.toc > span { margin-bottom: 6px; color: var(--navy); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.toc a { color: var(--muted); font-size: .85rem; text-decoration: none; }
.toc a:hover { color: var(--teal); }
.article-content { min-width: 0; color: #273f47; font-size: 1.03rem; }
.article-intro { margin: 0 0 42px; color: var(--navy); font: 700 1.35rem/1.55 Georgia, serif; }
.article-content section { scroll-margin-top: 100px; margin-bottom: 50px; }
.article-content h2, .static-content h2 { margin: 0 0 16px; color: var(--navy); font: 700 1.95rem/1.2 Georgia, serif; letter-spacing: -.02em; }
.article-content p, .static-content p { margin: 0 0 18px; }
.check-list { display: grid; gap: 9px; margin: 25px 0; padding: 22px; list-style: none; background: var(--soft); border-radius: 14px; }
.check-list li::before { content: "✓"; margin-right: 10px; color: var(--teal); font-weight: 900; }
.callout { margin: 28px 0; padding: 20px 23px; background: #fff6dd; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; }
.callout strong { color: #7b570e; }
.callout p { margin: 5px 0 0; }
.sources { padding-top: 28px; border-top: 1px solid var(--line); }
.sources li { margin-bottom: 12px; }
.sources a { color: var(--teal); font-weight: 700; }
.sources span { color: var(--muted); }
.content-method { padding: 28px; background: #edf6f2; border: 1px solid var(--line); border-radius: var(--radius); }
.content-method-grid { display: grid; grid-template-columns: .85fr 1.45fr 1fr; gap: 14px; margin: 20px 0; }
.content-method-grid > div { display: grid; align-content: start; gap: 7px; padding: 17px; background: var(--white); border: 1px solid #d5e4df; border-radius: 12px; }
.content-method-grid strong { color: var(--navy); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.content-method-grid span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.content-method > p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.editorial-note { padding: 28px; background: var(--navy); color: #d8e6ea; border-radius: var(--radius); }
.editorial-note h2 { color: var(--white); }
.editorial-note a { color: #8ce1d8; font-weight: 750; }
.related-section { padding-bottom: 90px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }

.static-content { padding-block: 60px 95px; }
.static-content > section:not(.contact-panel):not(.contact-map) { margin-bottom: 28px; padding: 28px 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.static-content .button-primary { display: inline-block; }
.contact-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 32px; }
.contact-card { display: flex; align-items: flex-start; gap: 14px; min-height: 112px; padding: 22px; background: var(--navy); color: var(--white); border-radius: 16px; }
.contact-card-wide { grid-column: 1 / -1; }
.contact-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: var(--navy); background: var(--gold); border-radius: 11px; font-weight: 850; }
.contact-card div { display: grid; gap: 5px; min-width: 0; }
.contact-card div > span { color: #9dded8; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-card a { color: var(--white); overflow-wrap: anywhere; font-weight: 750; }
.contact-card address { color: #e2eef0; font-style: normal; line-height: 1.55; }
.contact-map { margin: 0 0 32px; }
.contact-map iframe { display: block; width: 100%; min-height: 360px; border: 0; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(11,58,83,.08); }

.site-footer { padding: 64px 0 24px; color: #cbdde2; background: #082f45; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 48px; }
.footer-brand { color: var(--white); }
.footer-grid p { max-width: 390px; font-size: .9rem; }
.footer-grid h2 { margin: 5px 0 18px; color: var(--white); font-size: .83rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid section:not(:first-child) { display: flex; flex-direction: column; gap: 10px; }
.footer-grid section:not(:first-child) a { color: #cbdde2; font-size: .9rem; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #8babb4; font-size: .8rem; }
.footer-utility { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 16px; }
.footer-utility a { color: #b8d0d6; text-decoration: none; }

@media (max-width: 1080px) and (min-width: 921px) {
  .main-nav { gap: 11px; }
  .main-nav a { font-size: .84rem; }
}

@media (max-width: 920px) {
  .main-nav { display: none; position: absolute; top: 68px; left: 20px; right: 20px; flex-direction: column; align-items: stretch; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-grid, .latest-layout { grid-template-columns: 1fr; }
  .hero-panel { max-width: 600px; transform: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(2, 1fr); }
  .toc > span { grid-column: 1 / -1; }
  .content-method-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .shell, .narrow { width: min(100% - 28px, 1160px); }
  .hero { padding-block: 58px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-search { flex-direction: column; }
  .featured-grid, .category-grid, .library-grid, .related-grid, .principle-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding-block: 58px; }
  .section-heading { align-items: start; flex-direction: column; }
  .principles { width: calc(100% - 28px); padding: 28px; }
  .library-layout { grid-template-columns: 1fr; padding-top: 30px; }
  .filter-panel { position: static; grid-template-columns: repeat(2, 1fr); }
  .filter-panel h2 { grid-column: 1 / -1; }
  .article-meta { display: grid; }
  .article-meta span + span::before { display: none; }
  .toc { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-card-wide { grid-column: auto; }
  .contact-map iframe { min-height: 290px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-utility { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
