:root {
  color-scheme: light;
  --ink: #182b40;
  --muted: #596b7e;
  --blue: #0879b4;
  --blue-dark: #07558a;
  --orange: #f39126;
  --line: #dce6ee;
  --soft: #f3f8fc;
  --surface: #fff;
  font: 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f7f9fc; }
a { color: var(--blue-dark); text-underline-offset: .2em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid #ee991e; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
svg { flex-shrink: 0; }
h1, h2, h3, h4 { line-height: 1.23; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { margin: 0 0 18px; font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 770; }
h2 { margin: 0 0 12px; font-size: 1.45rem; font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 740; }
p { margin: 0 0 18px; }
[hidden] { display: none !important; }
section[id], h2[id], h3[id], h4[id] { scroll-margin-top: 28px; }
.wrap { width: 100%; max-width: 1240px; margin: auto; padding: 0 clamp(18px, 4vw, 42px); }
.skip { position: absolute; left: 12px; top: 12px; padding: 10px 16px; background: #fff; border-radius: 8px; transform: translateY(-170%); z-index: 5; }
.skip:focus { transform: none; }

/* Brand and navigation */
header { background: #fff; border-bottom: 1px solid #e5edf3; }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 20px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand img { display: block; width: 132px; }
.brand span { border-left: 1px solid var(--line); padding-left: 20px; font-size: .95rem; letter-spacing: -.015em; }
.topnav { display: flex; align-items: center; gap: 28px; }
.topnav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: .89rem; font-weight: 650; line-height: 1.35; text-decoration: none; }
.topnav a:last-child { border: 1px solid #c9ddeb; border-radius: 9px; padding: 9px 16px; background: #f7fbfe; }
.topnav a:hover { color: var(--blue); }
.portal-link { gap: 8px; }
.portal-link svg { width: 16px; height: 16px; }

/* Search and buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; border: 1px solid #c3d6e5; border-radius: 9px; padding: 11px 18px; background: #fff; color: var(--blue-dark); font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.button:hover { background: #edf6fc; border-color: #8ebbd5; color: var(--blue-dark); }
.button.primary { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 3px 7px #0879b41a; }
.button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 10px; max-width: 660px; }
.search label { grid-column: 1 / -1; font-size: .86rem; font-weight: 650; }
.search-input-wrap { display: flex; align-items: center; min-width: 0; border: 1px solid #c3d6e5; border-radius: 10px; background: #fff; color: #7891a5; overflow: hidden; }
.search-input-wrap:focus-within { outline: 3px solid #ee991e; outline-offset: 3px; }
.search-input-wrap svg { width: 20px; height: 20px; margin-left: 17px; }
.search input { width: 100%; min-width: 0; min-height: 54px; border: 0; border-radius: 10px; padding: 12px 15px; color: var(--ink); background: #fff; outline: 0; }
.search input::placeholder { color: #718598; opacity: 1; }
.search .button { align-self: stretch; }
.eyebrow { margin-bottom: 13px; color: var(--blue); font-size: .73rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* Home hero */
.hero { position: relative; padding: clamp(38px, 5.5vw, 64px) 0; color: #fff; background: linear-gradient(115deg, #073b68, #075c92 65%, #087eae); border-bottom: 1px solid #065385; }
.hero::before { position: absolute; top: 0; left: 0; right: 0; height: 3px; content: ""; background: linear-gradient(90deg, var(--orange), #f6bd66 24%, #12a9da 68%, #0a87b9); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(285px, .85fr); align-items: center; gap: clamp(30px, 4.5vw, 62px); }
.hero-copy { min-width: 0; }
.hero .eyebrow { color: #ffc071; }
.hero-copy > p { max-width: 580px; margin-bottom: 26px; color: #e0eef8; font-size: 1.04rem; line-height: 1.7; }
.hero-copy > h1 { max-width: 610px; }
.hero .search label { color: #e3f0f9; }
.hero .search .button { background: #ffb44e; border-color: #ffb44e; color: #17364e; box-shadow: none; }
.hero .search .button:hover { background: #ffc777; border-color: #ffc777; }
.hero .actions .button { background: #ffffff0c; border-color: #ffffff6b; color: #fff; font-size: .88rem; }
.hero .actions .button:hover { background: #ffffff20; border-color: #fff; }
.hero .actions > a:not(.button) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #e0eef8; font-size: .85rem; font-weight: 600; text-decoration: none; }
.hero .actions > a:not(.button):hover { color: #fff; text-decoration: underline; }
.hero .actions > a svg { width: 17px; height: 17px; }
.hero .actions > a + a { margin-left: 10px; }
.is-searching .hero { padding-top: 35px; padding-bottom: 35px; }
.is-searching .hero-inner { grid-template-columns: minmax(0, 1fr); }
.is-searching .hero-guide { display: none; }
.is-searching .hero-copy > h1 { font-size: clamp(2rem, 4.3vw, 3rem); }
.hero-guide { min-width: 0; border: 1px solid #ffffff9c; border-radius: 18px; padding: clamp(22px, 2.5vw, 30px); color: var(--ink); background: #fff; box-shadow: 0 18px 45px #00244729; }
.hero-guide .eyebrow { color: var(--blue); font-size: .68rem; }
.hero-guide h2 { font-size: 1.5rem; margin-bottom: 19px; }
.hero-guide p { font-size: .9rem; color: var(--muted); }
.hero-guide ol { list-style: none; counter-reset: guide; padding: 0; margin: 0 0 22px; }
.hero-guide li { position: relative; counter-increment: guide; padding-left: 39px; margin-bottom: 17px; font-size: .91rem; line-height: 1.5; color: var(--muted); }
.hero-guide li::before { content: counter(guide); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #eaf5fc; color: var(--blue); font-size: .8rem; font-weight: 800; }
.hero-guide li strong { display: block; color: var(--ink); font-size: .94rem; }
.hero-guide .button { width: 100%; font-size: .88rem; padding-left: 12px; padding-right: 12px; }
.hero-guide .button svg:first-child { display: none; }
.hero-guide .button svg:last-child { width: 17px; height: 17px; }

/* Topics and search results */
.sections { padding-top: 42px; padding-bottom: 62px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 1.55rem; }
.section-heading p { margin: 0; font-size: .91rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.topic { display: flex; flex-direction: column; min-width: 0; padding: 25px 24px 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 3px 9px #163d6110; }
.topic-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.topic-icon { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; flex: 0 0 43px; border: 1px solid #d8ecf8; border-radius: 12px; background: #eef8fe; color: var(--blue); }
.topic-icon svg { width: 23px; height: 23px; }
.topic h3 { margin: 0; font-size: 1.06rem; line-height: 1.35; }
.topic-description { margin: 0 0 15px; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.topic-count { display: block; margin: 13px 0 0; padding-top: 12px; border-top: 1px solid #edf2f6; font-size: .74rem; font-weight: 650; color: #6c8094; }
.topic > ul { flex: 1; }
.topic ul, .related ul, .result-list { list-style: none; margin: 0; padding: 0; }
.topic li + li, .related > ul li + li { border-top: 1px solid #edf2f6; }
.topic li a { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 12px 0; color: #2e526d; font-size: .9rem; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.topic li a span { min-width: 0; }
.link-arrow { width: 16px; height: 16px; color: #7c9cb3; }
.topic li a:hover { color: var(--blue); }
#results { padding: 28px; margin-bottom: 30px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 3px 9px #163d6110; }
#result-summary { color: var(--muted); font-size: .94rem; }
.result-list a { display: block; padding: 13px 0; border-bottom: 1px solid #edf2f6; font-weight: 600; overflow-wrap: anywhere; }
#results > p:last-child { margin: 20px 0 0; }

/* Footer */
footer { background: #fff; border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .85rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { display: block; width: 98px; }
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.footer-links svg { width: 17px; height: 17px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
