/* Brand and base */
:root {
  color-scheme: light;
  --ink: #101f36;
  --muted: #46586e;
  --blue: #164fc7;
  --line: #d7e0ec;
  --paper: #f3f6fa;
  --navy: #0b1b32;
  --width: 74rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #3975ef; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.09; letter-spacing: -.045em; }
h1 { font-size: clamp(2.55rem, 5.4vw, 5.15rem); overflow-wrap: anywhere; }
h2 { font-size: clamp(1.85rem, 3.6vw, 3.35rem); }
h3 { font-size: 1.4rem; }
ul, ol { padding-inline-start: 1.35rem; }
.wrap { width: min(calc(100% - 3rem), var(--width)); margin-inline: auto; }
.band { padding-block: clamp(3rem, 7vw, 6.5rem); }
.tint { background: var(--paper); }
.eyebrow, .tag { font-size: .75rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.2rem; }
.eyebrow::before { content: ""; width: 1.45rem; border-top: 2px solid currentColor; }
.lede { font-size: clamp(1.05rem, 1.65vw, 1.25rem); color: var(--muted); max-width: 40rem; margin-top: 1.35rem; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 5; padding: .7rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }

/* Navigation */
.site-head { border-bottom: 1px solid var(--line); background: #fff; }
.head-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; font-weight: 800; font-size: 1.37rem; text-decoration: none; letter-spacing: -.055em; white-space: nowrap; }
.brand span span { color: var(--blue); }
.primary ul, .crumbs ol, .footer-links { list-style: none; padding: 0; margin: 0; }
.primary ul { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.25rem; }
.primary a { display: block; padding: .55rem 0; color: var(--ink); text-decoration: none; font-size: .89rem; font-weight: 620; }
.primary a:hover, .primary [aria-current] { color: var(--blue); text-decoration: underline; }
.menu-toggle { display: none; background: white; color: var(--ink); border: 1px solid var(--line); padding: .55rem .8rem; border-radius: .35rem; font: inherit; font-weight: 700; cursor: pointer; }

/* Homepage and guide headers */
.hero { background: var(--navy); color: #fff; padding-block: clamp(2.9rem, 7vw, 6.3rem); }
.hero .eyebrow, .footer .brand span span, .dark .eyebrow { color: #a9c7ff; }
.hero .lede, .dark .lede { color: #c7d4e6; }
.hero-layout, .guide-layout { display: grid; grid-template-columns: 1.03fr 1fr; gap: clamp(1.75rem, 5vw, 5rem); align-items: center; }
.hero h1 span { display: block; color: #a9c7ff; }
.hero img, .guide-layout img { width: 100%; border-radius: .55rem; }
.actions { margin-top: 1.8rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: #2160dc; color: white; border: 1px solid transparent; border-radius: .35rem; font-weight: 690; text-decoration: none; }
.button:hover { background: #164bb5; }
.button.secondary { background: transparent; border-color: #60748f; }
.button.secondary:hover { background: #213752; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; }
.intro p + p { margin-top: .9rem; }
.intro .copy { color: var(--muted); font-size: 1.1rem; align-self: end; }
.section-head { margin-bottom: 2rem; }
.section-head .lede { margin-top: .75rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: .55rem; overflow: hidden; }
.card:hover { border-color: #829fc9; }
.card img { width: 100%; }
.card-inner { padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--blue); text-decoration: underline; }
.card p { font-size: .94rem; color: var(--muted); }
.card .arrow { color: var(--blue); font-size: 1.15rem; margin-top: auto; }
.dark { background: #132944; color: white; }
.dark a:not(.button) { color: #c4d7fc; }
.dark .copy { color: #d8e3f2; }
.comparison { display: grid; gap: 1rem; }
.comparison div { border-top: 1px solid #667b97; padding-top: .85rem; }
.comparison strong { display: block; color: white; }
.guide-head { background: var(--paper); padding-block: clamp(2.6rem, 5vw, 5rem); }
.guide-head h1 { font-size: clamp(2.35rem, 5vw, 4.35rem); }
.crumbs { margin-bottom: 2rem; font-size: .9rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .65rem; }
.crumbs li + li::before { content: "/"; margin-right: .65rem; color: #5e718a; }
.reading { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contents { border-top: 2px solid var(--blue); padding-top: 1rem; }
.contents ol { margin-bottom: 0; }
.contents li + li { margin-top: .5rem; }
.prose { max-width: 46rem; font-size: 1.075rem; }
.prose section + section { margin-top: 2.1rem; }
.prose h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); margin-bottom: .65rem; }
.prose p + p { margin-top: .8rem; }
.source-note { margin-top: 2rem; background: var(--paper); border-left: 3px solid var(--blue); padding: 1rem 1.25rem; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.5rem; }
.related a { background: white; padding: 1rem; border: 1px solid var(--line); border-radius: .35rem; font-weight: 680; }
.footer { color: #d7e2f1; background: var(--navy); padding-block: 3rem; }
.footer .brand { color: white; }
.footer p { max-width: 25rem; margin-top: .75rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1.5rem 3rem; }
.footer h2 { font-size: 1.05rem; letter-spacing: 0; color: white; margin-bottom: .7rem; }
.footer-links li + li { margin-top: .4rem; }
.footer-links a { color: #d7e2f1; }
@media (max-width: 63rem) {
  .head-inner { flex-wrap: wrap; padding-block: .8rem; gap: .35rem 1rem; }
  .primary { flex-basis: 100%; }
  .menu-toggle { display: inline-block; }
  .primary[data-collapsed] { display: none; }
  .primary ul { gap: .05rem 1.15rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 45rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-layout, .guide-layout, .intro, .reading, .footer-grid, .related { grid-template-columns: 1fr; }
  .hero-layout img, .guide-layout img { max-width: 36rem; }
  .primary ul { display: grid; grid-template-columns: 1fr 1fr; }
  .primary a { padding: .68rem 0; }
}
@media (max-width: 31rem) {
  .cards { grid-template-columns: 1fr; }
}


.menu-toggle[hidden] { display: none; }
.guide-head + .reading + .tint .cards { margin-top: 1.5rem; }

.analytics-preferences {
  margin-top: .9rem; background: transparent; color: inherit; border: 0;
  text-decoration: underline; text-underline-offset: .2em; padding: .3rem 0;
  font: inherit; cursor: pointer;
}
.analytics-panel {
  position: fixed; z-index: 4; inset-inline: 1rem; bottom: 1rem;
  width: min(calc(100% - 2rem), 35rem); max-height: calc(100vh - 2rem);
  overflow: auto; margin-inline: auto; padding: 1.1rem 1.25rem;
  color: var(--ink); background: white; border: 1px solid var(--line);
  border-radius: .55rem; box-shadow: 0 6px 30px #0b1b3230;
}
.analytics-panel h2 { font-size: 1.45rem; margin-bottom: .55rem; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.analytics-actions button {
  padding: .5rem .75rem; border-radius: .35rem; border: 1px solid var(--blue);
  color: var(--blue); background: white; font: inherit; font-weight: 650; cursor: pointer;
}
.analytics-actions button:hover { background: var(--paper); }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.contact-layout .source-note { margin-top: 0; overflow-wrap: anywhere; }
.contact-layout .source-note p { margin-top: .65rem; }
#contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; max-width: 42rem; }
#contact-form label { display: block; font-weight: 700; margin-bottom: .25rem; }
#contact-form input, #contact-form textarea {
  width: 100%; padding: .65rem .75rem; border: 1px solid #71849c;
  border-radius: .35rem; color: inherit; background: white; font: inherit;
}
#contact-form textarea { resize: vertical; }
#contact-form .button { font: inherit; font-weight: 700; cursor: pointer; }
#contact-form .button:disabled { opacity: .7; cursor: wait; }
#contact-status { min-height: 1.65em; font-weight: 650; }
.form-note { color: var(--muted); font-size: .9rem; }
@media (max-width: 45rem) { .contact-layout { grid-template-columns: 1fr; } }
