@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #071e2d;
  --muted: #496171;
  --blue: #006ea8;
  --blue-strong: #005983;
  --line: #d8e5ed;
  --wash: #f1faff;
  --paper: #fff;
  --navy: #092c45;
  --sky: #a8deff;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: #f7fafc;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
p, h1, h2, h3 { margin: 0; }
a { color: var(--blue-strong); text-underline-offset: .17em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #087fb9; outline-offset: 4px; }
[id] { scroll-margin-top: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; left: 1rem; top: 1rem; transform: translateY(-200%); background: var(--paper); padding: .65rem 1rem; border-radius: .5rem; }
.skip-link:focus { transform: none; }
.shell { width: min(100% - 4rem, 1240px); margin-inline: auto; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.7rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .9rem; color: var(--muted); text-decoration: none; flex: 0 0 auto; }
.brand img { width: 152px; height: auto; }
.brand span { border-left: 1px solid var(--line); padding-left: .9rem; font-size: .875rem; font-weight: 700; }
.header-nav { margin-left: auto; display: flex; gap: 1.65rem; }
.header-nav a, .footer a { color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 700; }
.header-nav a:hover, .header-nav a[aria-current], .footer a:hover { color: var(--blue-strong); text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .52rem .95rem; border-radius: .65rem; border: 1px solid transparent; font-size: .875rem; font-weight: 800; text-decoration: none; cursor: pointer; text-align: center; }
.button-sign-in, .button-secondary { background: var(--paper); border-color: #bfd7e5; color: var(--blue-strong); }
.button-sign-in:hover, .button-secondary:hover { background: #eaf6fe; border-color: #86b9d4; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-strong); }

.layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 2rem; align-items: start; padding-block: 2rem 3rem; flex: 1; }
.main { min-width: 0; }
.sidebar { position: sticky; top: 1.25rem; padding-top: .3rem; }
.sidebar nav { display: grid; gap: .26rem; }
.sidebar-title { margin: 0 .65rem .7rem; color: var(--muted); font-weight: 800; font-size: .875rem; }
.sidebar a { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .48rem .65rem; color: var(--ink); font-weight: 700; font-size: .875rem; text-decoration: none; border-radius: .55rem; }
.sidebar .icon { width: 18px; height: 18px; color: var(--blue-strong); }
.sidebar a:hover, .sidebar a[aria-current] { background: #e6f3fc; color: var(--blue-strong); }

.hero { position: relative; isolation: isolate; padding: clamp(1.4rem, 4vw, 3rem); min-height: 340px; border-radius: 1.2rem; background: linear-gradient(112deg, var(--ink), #0b3a58); color: white; }
.hero-inner { position: relative; width: min(100%, 570px); }
.hero h1 { font-size: clamp(2.55rem, 5.25vw, 4.85rem); line-height: 1.045; font-weight: 750; letter-spacing: -.065em; }
.hero p { margin-top: .85rem; color: #cee4f1; line-height: 1.55; }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.hero-art::before { position: absolute; inset: 0; content: ""; background: url("/assets/waves.svg") right 44% center / 160% auto no-repeat; opacity: .7; mask-image: linear-gradient(to right, transparent 38%, #000 75%); }
.hero-art span { position: absolute; top: 49%; right: 14%; width: 152px; height: 152px; transform: translate(50%, -50%); border: 1px solid #79ceff75; border-radius: 50%; box-shadow: 0 0 0 27px #7bd3ff17, 0 0 0 55px #7bd3ff12; background: radial-gradient(circle, #238ccc70, #19537429 70%); }
.hero-art img { position: absolute; top: 49%; right: 14%; width: 88px; height: 88px; transform: translate(50%, -50%); filter: drop-shadow(0 0 24px #28a5ed7f); }
.quick-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.quick-links a { display: inline-flex; align-items: center; min-height: 34px; padding: .25rem .7rem; border: 1px solid #95cde54d; border-radius: .55rem; color: #e0f3ff; font-size: .875rem; font-weight: 700; text-decoration: none; }
.quick-links a:hover { background: #7bd3ff29; }
.hero :focus-visible { outline-color: var(--sky); }

.search-form { position: relative; max-width: 620px; z-index: 1; }
.hero .search-form { margin-top: 1.25rem; }
.search-compact { max-width: 570px; margin-bottom: 1.4rem; }
.search-field { display: flex; align-items: center; gap: .6rem; min-height: 58px; border: 1px solid #bfd7e5; border-radius: .8rem; background: var(--paper); padding: .35rem .4rem .35rem .85rem; color: var(--blue-strong); }
.search-field:focus-within { outline: 2px solid #62bee9; outline-offset: 2px; }
.search-field input { min-width: 0; width: 100%; background: transparent; color: var(--ink); border: 0; outline: 0; min-height: 40px; }
.search-field input::placeholder { color: #536d7e; }
.search-field .button { min-height: 42px; }
.search-field .button:focus-visible { outline-offset: 0; outline-color: var(--ink); }

.suggestions { position: absolute; top: calc(100% + .35rem); inset-inline: 0; padding: .3rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--paper); color: var(--ink); box-shadow: 0 12px 28px #03193126; }
.suggestions .suggestion-status { color: var(--muted); margin: .4rem .65rem; font-size: .875rem; }
.suggestions a, .result-link { display: block; text-decoration: none; color: var(--ink); }
.suggestions a { padding: .48rem .65rem; border-radius: .45rem; }
.suggestions a:hover, .suggestions a:focus-visible, .result-link:hover { background: var(--wash); color: var(--blue-strong); }
.suggestions span, .result-link span { display: block; font-weight: 800; }
.suggestions small, .result-link small { display: block; color: var(--muted); font-size: .875rem; }
.search-results { max-width: 740px; margin-top: 1.4rem; }
#search-status { color: var(--muted); margin-bottom: .55rem; }
.result-link { margin-top: .55rem; padding: 1rem; border-radius: .7rem; background: var(--paper); border: 1px solid var(--line); }
.result-link p { margin-top: .3rem; color: var(--muted); }

.home-section { padding-top: 1.9rem; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.22; letter-spacing: -.035em; font-weight: 800; }
.home-section h2, .related h2 { margin-bottom: .85rem; }
.topic-grid, .popular .article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.topic-card { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: .8rem; padding: 1rem; border-radius: .75rem; border: 1px solid var(--line); color: var(--ink); background: var(--paper); text-decoration: none; }
.topic-card:hover { border-color: #90bed6; background: #fcfeff; }
.topic-card > .icon, .article-list a > .icon:last-child { width: 17px; height: 17px; align-self: center; color: #497c9a; }
.topic-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: .62rem; background: #e7f4fd; color: var(--blue-strong); flex: none; }
.topic-card h3 { font-size: 1.045rem; font-weight: 800; line-height: 1.25; }
.topic-card p { margin-top: .26rem; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.topic-card small { display: block; margin-top: .55rem; color: var(--blue-strong); font-size: .8125rem; font-weight: 800; }
.article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.article-list li { min-width: 0; }
.article-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; height: 100%; min-height: 50px; background: var(--paper); border: 1px solid var(--line); border-radius: .65rem; padding: .65rem .75rem; color: var(--ink); text-decoration: none; font-weight: 750; font-size: .9375rem; }
.article-list a:hover { background: var(--wash); border-color: #90bed6; color: var(--blue-strong); }
.article-list a > .icon:first-child { color: var(--blue-strong); width: 18px; height: 18px; }
.article-list small { display: block; font-size: .875rem; color: var(--muted); font-weight: 550; margin-top: .2rem; }
.support-box { display: flex; align-items: center; gap: .85rem; margin-top: 2rem; padding: 1.05rem; border: 1px solid #cde3f0; border-radius: .75rem; background: #eaf6fd; }
.support-box h2 { font-size: 1.18rem; }
.support-box p { color: var(--muted); margin-top: .22rem; font-size: .875rem; }
.support-box a { margin-left: auto; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; list-style: none; margin: 0 0 1rem; padding: 0; color: var(--muted); font-size: .875rem; font-weight: 700; }
.breadcrumbs li:not(:first-child)::before { content: "/"; margin-right: .5rem; color: #64849a; }
.page-heading, .article-heading { margin: 0 0 1.35rem; }
.page-heading .topic-icon { margin-bottom: .75rem; }
.page-heading h1, .article-heading h1 { font-size: clamp(2rem, 4.9vw, 3.75rem); letter-spacing: -.06em; line-height: 1.08; font-weight: 800; max-width: 760px; overflow-wrap: anywhere; }
.page-heading p, .article-heading p { color: var(--muted); margin-top: .6rem; max-width: 700px; line-height: 1.5; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 188px; gap: 1.25rem; align-items: start; }
.article-toc { grid-column: 2; grid-row: 1; position: sticky; top: 1.25rem; padding: .55rem .75rem; border-left: 1px solid var(--line); color: var(--muted); font-size: .875rem; line-height: 1.48; }
.article-toc p { font-weight: 800; color: var(--ink); }
.article-toc ul { list-style: none; padding: 0; margin: .3rem 0 0; }
.article-toc li + li { margin-top: .35rem; }
.article-toc a { display: block; padding-block: .18rem; }
.article-body { grid-column: 1; grid-row: 1; border: 1px solid var(--line); border-radius: .9rem; background: var(--paper); padding: clamp(1.1rem, 3vw, 2rem); font-size: 1.03rem; line-height: 1.68; }
.article-body section + section { margin-top: 1.8rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.article-body h2 { font-size: 1.38rem; margin-bottom: .75rem; }
.article-body ol, .article-body ul { padding-left: 1.4rem; margin: 0; }
.article-body p + p, .article-body li + li { margin-top: .55rem; }
.article-body p + ul, .article-body p + ol { margin-top: .6rem; }
.article-body li::marker { color: var(--blue-strong); font-weight: 800; }
.article-body a { overflow-wrap: anywhere; }
.related { margin-top: 1.75rem; max-width: 670px; }

.footer { background: var(--paper); border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-inner, .footer nav { display: flex; align-items: center; gap: .5rem 1.25rem; flex-wrap: wrap; }
.footer-inner { justify-content: space-between; min-height: 68px; padding-block: .75rem; }

@media (max-width: 1100px) {
  .layout { grid-template-columns: 185px minmax(0, 1fr); gap: 1.25rem; }
  .hero-art { opacity: .68; }
  .hero-art span, .hero-art img { right: 12%; }
  .hero-inner { width: min(100%, 510px); }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 2.5rem, 1240px); }
  .layout { display: flex; flex-direction: column; gap: .9rem; padding-top: .9rem; }
  .main { width: 100%; }
  .sidebar { position: static; padding-top: 0; width: 100%; }
  .sidebar nav { display: flex; gap: .22rem .5rem; flex-wrap: wrap; }
  .sidebar-title { display: none; }
  .sidebar a { min-height: 38px; padding: .3rem .45rem; }
  .sidebar .icon { width: 16px; height: 16px; }
}

@media (max-width: 610px) {
  .shell { width: calc(100% - 1.5rem); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 .6rem; min-height: 0; padding-block: .55rem .1rem; }
  .brand img { width: 127px; }
  .brand { gap: .45rem; }
  .brand span { padding-left: .45rem; font-size: .8125rem; }
  .button-sign-in { grid-row: 1; grid-column: 2; min-height: 38px; padding-inline: .6rem; }
  .header-nav { grid-column: 1 / -1; margin: 0; gap: 1.15rem; }
  .header-nav a { display: inline-flex; align-items: center; min-height: 39px; }
  .sidebar nav { gap: .1rem .32rem; }
  .sidebar a { min-height: 37px; font-size: .8125rem; }
  .sidebar .icon { display: none; }
  .hero { min-height: 0; border-radius: .9rem; }
  .hero h1 { max-width: 12ch; }
  .hero-art span { width: 62px; height: 62px; box-shadow: 0 0 0 12px #7bd3ff17, 0 0 0 26px #7bd3ff12; }
  .hero-art span, .hero-art img { top: 24%; right: 13%; }
  .hero-art img { width: 45px; height: 45px; }
  .search-field { gap: .35rem; padding-left: .55rem; }
  .search-field > .icon { width: 18px; height: 18px; }
  .search-field .button { padding-inline: .6rem; }
  .topic-grid, .popular .article-list, .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-toc { grid-column: 1; grid-row: auto; position: static; }
  .article-body { grid-column: 1; grid-row: auto; }
  .support-box { flex-wrap: wrap; align-items: flex-start; }
  .support-box a { margin-left: 0; }
}

@media (max-width: 360px) {
  .hero-art span, .hero-art img { display: none; }
  .hero { padding: 1rem; }
  .brand span { display: none; }
}
