:root {
  --subject-blue: #2563eb;
  --subject-blue-dark: #1e40af;
  --subject-ink: #142235;
  --subject-muted: #526477;
  --subject-paper: #f9fafb;
  --subject-yellow: #eab308;
  --subject-white: #ffffff;
  color: var(--subject-ink);
  background: var(--subject-white);
  font-family: ui-sans-serif, system-ui, sans-serif;
  line-height: 1.65;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--subject-white); }
a { color: inherit; }
.subject-shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.subject-skip-link { position: absolute; left: 1rem; top: -4rem; padding: .75rem 1rem; background: var(--subject-yellow); color: var(--subject-ink); z-index: 10; }
.subject-skip-link:focus { top: 1rem; }
.subject-header { background: var(--subject-blue-dark); color: white; border-bottom: 1px solid rgba(255,255,255,.15); }
.subject-header__inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.subject-brand { font-weight: 700; text-decoration: none; letter-spacing: .01em; }
.subject-header nav { display: flex; gap: 1rem; font-size: .95rem; }
.subject-header nav a { text-decoration: underline; text-underline-offset: .2em; }
.subject-hero { color: white; background: radial-gradient(circle at 85% 15%, rgba(244,201,93,.23), transparent 25rem), linear-gradient(135deg, var(--subject-blue), var(--subject-blue-dark)); padding: 3rem 0 4.5rem; }
.subject-breadcrumb { display: flex; flex-wrap: wrap; gap: .55rem; color: #d9e7f6; font-size: .9rem; margin-bottom: 3.5rem; }
.subject-breadcrumb a { text-underline-offset: .2em; }
.subject-eyebrow { margin: 0 0 .85rem; color: var(--subject-yellow); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.subject-eyebrow--dark { color: #9a6400; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.035em; }
h1, h2 { font-family: inherit; font-weight: 700; }
h1 { max-width: 950px; margin: 0 auto; font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { margin: 0 0 1.5rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; margin: 0 0 .75rem; }
.subject-lead { max-width: 760px; margin: 1.5rem 0 2rem; color: #dceafa; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.subject-button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .8rem 1.25rem; background: var(--subject-yellow); color: var(--subject-ink); border-radius: .35rem; font-weight: 800; text-decoration: none; box-shadow: 0 .6rem 1.5rem rgba(0,0,0,.16); transition: transform .2s ease, filter .2s ease; }
.subject-button:hover, .subject-button:focus-visible { filter: brightness(1.06); transform: translateY(-2px); }
.subject-button--light { background: var(--subject-white); color: var(--subject-blue-dark); box-shadow: none; }
.subject-section { padding: 5rem 0; }
.subject-section--paper { background: var(--subject-paper); }
.subject-section--blue { color: white; background: var(--subject-blue); }
.subject-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 8vw, 7rem); align-items: start; }
.subject-copy { color: var(--subject-muted); font-size: 1.1rem; }
.subject-section--blue .subject-copy { color: #dceafa; }
.subject-copy p { margin: 0 0 1rem; }
.subject-copy ul, .subject-topic-group ul { margin: 0; padding-left: 1.2rem; }
.subject-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.subject-topic-group { padding: 1.5rem; border: 1px solid #dce2e6; border-top: .3rem solid var(--subject-yellow); background: white; }
.subject-topic-group p { margin: 1rem 0 0; color: var(--subject-muted); }
.subject-topic-group li { margin: .25rem 0; }
.subject-example { max-width: 820px; }
.subject-example > p { color: var(--subject-muted); font-size: 1.05rem; }
.subject-example ul { color: var(--subject-muted); }
.subject-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.subject-facts p { margin: 0; padding: 1.25rem; background: white; border-left: .25rem solid var(--subject-blue); color: var(--subject-muted); }
.subject-faqs { max-width: 820px; }
.subject-faq { padding: 1.15rem 0; border-bottom: 1px solid #d2d9df; }
.subject-faq summary { cursor: pointer; font-weight: 800; font-size: 1.08rem; }
.subject-faq p { color: var(--subject-muted); margin-bottom: 0; }
.subject-contact { color: white; background: var(--subject-blue-dark); padding: 4rem 0; }
.subject-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.subject-contact h2 { max-width: 680px; }
.subject-contact p:not(.subject-eyebrow) { max-width: 680px; color: #dceafa; }
.subject-footer { padding: 2rem 0; color: var(--subject-muted); font-size: .9rem; }
.subject-footer p { margin: .25rem 0; }
.subject-footer a { text-underline-offset: .2em; }

@media (max-width: 720px) {
  .subject-hero { padding: 2rem 0 3.5rem; }
  .subject-breadcrumb { margin-bottom: 2.5rem; }
  .subject-section { padding: 3.5rem 0; }
  .subject-grid, .subject-topic-grid, .subject-facts { grid-template-columns: 1fr; }
  .subject-contact__inner { align-items: flex-start; flex-direction: column; }
  .subject-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .subject-button { transition: none; }
}

/* Align with the existing home: white header, blue hero, rounded cards. */
.subject-header { background: white; color: #1f2937; box-shadow: 0 1px 4px #0001; }
.subject-hero { text-align: center; background: linear-gradient(110deg, #2563eb, #1e40af); }
.subject-lead { margin-left: auto; margin-right: auto; }
.subject-breadcrumb { text-align: left; }
.subject-topic-group, .subject-facts p { border-radius: .5rem; box-shadow: 0 4px 8px #0000000a; }
.subject-button { border-radius: .5rem; }
.subject-copy h3 { margin-top: 2rem; }
.subject-related { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
a:focus-visible, summary:focus-visible { outline: 3px solid #eab308; outline-offset: 4px; }
@media (max-width: 540px) {
  .subject-header__inner { flex-direction: column; align-items: flex-start; padding-block: 1rem; }
  .subject-breadcrumb { font-size: .8rem; }
}
