:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #223a67;
  background: #fafbf9;
  --ink: #223a67;
  --blue: #2949d7;
  --paper: #fff;
  --mint: #edf7f2;
  --lavender: #eeedf8;
  --blush: #fbf0f2;
  --muted: #58667e;
  --width: 1320px;
  --gutter: clamp(20px, 3vw, 48px);
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
summary { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
h1, h2 { font-weight: 500; }
h1 { margin: 0; font-size: clamp(38px, 5.8vw, 82px); color: var(--blue); }
h2 { margin: 0; font-size: clamp(29px, 3vw, 43px); }
h3 { font-size: 21px; }
li + li { margin-top: .45em; }
::selection { color: var(--ink); background: #d7f957; }
.review-banner { padding: 10px var(--gutter); background: #d7f957; color: #17377b; font-size: 14px; font-weight: 700; }
.library-skip { position: absolute; top: 10px; left: 12px; z-index: 10; transform: translateY(-200%); padding: 10px 14px; background: var(--paper); }
.library-skip:focus { transform: none; }
.library-header, .article-hero, .article-body, .scenario, .index-hero, .library-list, .library-footer { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.library-header { display: flex; align-items: center; gap: 22px; min-height: 88px; padding-block: 14px; }
.library-brand { flex: none; display: block; }
.library-brand img { width: 174px; height: 48px; object-fit: contain; }
.library-header nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.library-header nav a, .language summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink); text-decoration: none; }
.library-header nav a:hover, .library-header nav a:focus-visible { color: var(--blue); text-decoration: underline; }
.language { position: relative; flex: none; }
.language summary { padding: 0 14px; gap: 12px; border-radius: 999px; background: var(--lavender); list-style: none; }
.language summary::-webkit-details-marker { display: none; }
.language-options { position: absolute; z-index: 5; right: 0; top: calc(100% + 8px); min-width: 160px; background: #e5eafb; border-radius: 18px; padding: 8px; }
.language-options a { display: flex; align-items: center; min-height: 44px; padding-inline: 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.language-options a:hover, .language-options a[aria-current] { color: var(--blue); background: var(--mint); }
.article-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(36px, 5vw, 76px); padding-block: clamp(38px, 6vw, 84px) clamp(42px, 6vw, 78px); }
.article-hero--solo { display: block; }
.article-hero--solo .hero-copy { max-width: 64rem; }
.hero-copy { min-width: 0; }
.article-family { font-size: 15px; margin-bottom: 18px; }
.article-family a { color: var(--ink); }
.article-intro { max-width: 48rem; margin-top: 26px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; color: var(--muted); font-size: 15px; }
.worksheet-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; }
.article-image { margin: 0; overflow: hidden; border-radius: 24px; background: var(--lavender); }
.article-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.article-image-brand { background: var(--mint); }
.article-image-brand img { padding: clamp(16px, 3vw, 42px); }
.scenario { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 36px; padding: clamp(28px, 4vw, 56px); background: var(--lavender); border-radius: 30px; }
.scenario-heading p, .example-disclosure { color: var(--muted); font-size: 15px; }
.scenario-heading h2 { margin-top: 28px; }
.scenario blockquote { margin: 18px 0 0; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.025em; line-height: 1.25; }
.scenario-flow { display: grid; gap: 12px; min-width: 0; }
.scenario-flow > div { padding: 22px 24px; background: var(--paper); border-radius: 18px; }
.scenario-flow h3 { margin: 0 0 8px; color: var(--blue); font-size: 15px; letter-spacing: 0; }
.scenario-flow p, .scenario-flow ul { margin: 0; }
.scenario-flow ul { padding-left: 1.2em; }
.article-body { padding-block: 54px 100px; }
.prose-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); padding-block: clamp(30px, 4vw, 56px); }
.prose-section > div { min-width: 0; max-width: 48rem; }
.prose-section ul, .prose-section ol { padding-left: 1.25em; }
.use-cases, .faqs, .sources, .related { padding-block: clamp(34px, 5vw, 72px); }
.use-cases > h2, .faqs > h2, .sources > h2, .related > h2 { margin-bottom: 24px; color: var(--blue); }
.use-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.use-case { min-width: 0; padding: clamp(24px, 3vw, 38px); border-radius: 24px; background: var(--mint); }
.use-case:nth-child(3n + 2) { background: var(--blush); }
.use-case:nth-child(3n) { background: var(--lavender); }
.use-case h3 { margin: 0 0 14px; font-size: clamp(22px, 2vw, 28px); }
.use-case dl { margin: 24px 0 0; }
.use-case dl > div + div { margin-top: 16px; }
.use-case dt { font-size: 14px; font-weight: 700; color: var(--blue); }
.use-case dd { margin: 3px 0 0; }
.faqs { max-width: 1000px; }
.faqs details { margin-top: 8px; padding-inline: 20px; border-radius: 16px; background: var(--paper); }
.faqs summary { position: relative; padding: 22px 40px 22px 0; font-size: 21px; list-style: none; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: '+'; position: absolute; right: 4px; color: var(--blue); font-size: 26px; line-height: 1; }
.faqs details[open] summary::after { content: '−'; }
.faqs details p { max-width: 46rem; padding-bottom: 14px; }
.legacy-supplement { padding-block: 28px; }
.legacy-supplement details { padding: clamp(22px, 3vw, 36px); background: var(--mint); border-radius: 24px; }
.legacy-supplement summary { min-height: 44px; color: var(--blue); font-size: 19px; }
.legacy-supplement details > div { padding-top: 20px; }
.legacy-supplement h2, .legacy-supplement h3 { margin: 24px 0 16px; }
.table-scroll { max-width: 100%; overflow-x: auto; background: var(--paper); border-radius: 16px; }
.table-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.table-scroll table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; }
.table-scroll caption { padding: 16px; font-weight: 700; text-align: left; }
.table-scroll th, .table-scroll td { min-width: 150px; padding: 12px 16px; vertical-align: top; }
.table-scroll th { background: var(--lavender); }
.table-scroll tr:nth-child(even) td { background: #f6f8fb; }
.sources { font-size: 16px; }
.sources ul { display: grid; gap: 18px; max-width: 64rem; margin: 0; padding: 0; list-style: none; }
.sources li { margin: 0; overflow-wrap: anywhere; }
.sources li p { margin: 4px 0 0; }
.related ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.related li { min-width: 0; margin: 0; padding: 24px; background: var(--lavender); border-radius: 22px; }
.related li a { display: flex; justify-content: space-between; gap: 20px; font-size: 20px; text-decoration: none; }
.related li a:hover { text-decoration: underline; }
.related li p { margin: 12px 0 0; font-size: 16px; }
.article-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 36px; padding: clamp(28px, 4vw, 48px); background: var(--mint); border-radius: 28px; }
.article-cta p { max-width: 40rem; margin: 0; font-size: 22px; }
.article-cta a { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 12px 22px; background: var(--blue); color: white; border-radius: 999px; text-decoration: none; }
.article-cta a:hover { background: #17377b; }
.article-cta a span { font-size: 16px; }
.index-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .5fr); align-items: center; gap: 36px; padding-block: clamp(40px, 6vw, 80px); }
.index-hero > div { max-width: 60rem; }
.index-hero p { max-width: 48rem; margin-top: 24px; font-size: clamp(18px, 1.5vw, 21px); }
.index-hero img { width: 100%; max-height: 300px; object-fit: contain; }
.library-search { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin: 0 auto 30px; }
.library-search label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.library-search > div { display: flex; flex-wrap: wrap; gap: 10px; }
.library-search input { flex: 1 1 260px; min-width: 0; min-height: 48px; padding: 10px 16px; border: 2px solid #c3cde7; border-radius: 14px; background: white; color: var(--ink); font: inherit; }
.library-search button { min-height: 48px; padding: 10px 20px; border: 0; border-radius: 14px; background: var(--lavender); color: var(--ink); font: inherit; cursor: pointer; }
.library-search input:focus-visible, .library-search button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.library-search [role="status"] { margin: 16px 0 0; }
.library-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 100px; }
.library-list article { min-width: 0; overflow: hidden; background: var(--lavender); border-radius: 24px; }
.library-list article:nth-child(3n + 2) { background: var(--mint); }
.library-list article:nth-child(3n) { background: var(--blush); }
.library-list article > a { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.library-list article > a:hover h2 { color: var(--blue); text-decoration: underline; }
.library-list .article-image { border-radius: 0; background: white; }
.library-list .article-image img { aspect-ratio: 3 / 2; object-fit: contain; }
.list-copy { padding: 26px 28px 28px; }
.list-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.list-heading > span { color: var(--blue); }
.library-list h2 { font-size: 23px; font-weight: 600; }
.list-copy > p { margin: 16px 0 0; font-size: 16px; }
.list-highlight { margin-top: 20px; padding: 16px 18px; background: var(--paper); border-radius: 16px; }
.list-highlight span { color: var(--blue); font-size: 14px; font-weight: 700; }
.list-highlight p { margin: 6px 0 0; font-size: 16px; }
.library-footer { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 32px; padding-block: 42px; }
.library-footer-brand { color: var(--blue); font-size: 30px; font-weight: 700; text-decoration: none; }
.library-footer > div, .library-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.library-footer a { font-size: 15px; }
.library-footer a span { color: var(--muted); }
.library-footer small { color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) {
  .library-header { flex-wrap: wrap; }
  .library-header nav { order: 3; width: 100%; margin: 0; }
  .language { margin-left: auto; }
  .library-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .library-header { gap: 8px; }
  .library-brand img { width: 144px; height: 42px; }
  .library-header nav { flex-wrap: wrap; overflow: visible; gap: 0 18px; padding-bottom: 3px; }
  .library-header nav a { flex: 0 1 auto; max-width: 100%; white-space: normal; }
  .article-hero { grid-template-columns: 1fr; gap: 24px; padding-block: 28px 40px; }
  .article-image-brand img { max-height: 260px; }
  .scenario { grid-template-columns: 1fr; gap: 12px; padding: 24px 20px; border-radius: 22px; }
  .scenario-heading h2 { margin-top: 12px; }
  .scenario-flow { gap: 0; }
  .scenario-flow > div { padding: 16px 0; border-radius: 0; background: transparent; }
  .scenario-flow > div + div { border-top: 2px solid #e0e2ef; }
  .article-body { padding-block: 30px 64px; }
  .prose-section { grid-template-columns: 1fr; gap: 16px; }
  .use-grid, .related ul, .library-list { grid-template-columns: 1fr; }
  .index-hero { grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; padding-block: 30px 42px; }
  .index-hero h1 { overflow-wrap: anywhere; }
  .library-list { padding-bottom: 60px; }
  .library-footer { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .index-hero { grid-template-columns: minmax(0, 1fr); }
  .index-hero > img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
