
:root {
  color-scheme: light;
  --navy: #102d55;
  --blue: #194f91;
  --gold: #d5a53c;
  --ink: #1c2b42;
  --muted: #56667a;
  --line: #e1e7ee;
  --bg: #f6f8fb;
  --white: #fff;
  --shadow: 0 12px 34px rgba(15,39,74,.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 system-ui, -apple-system,
    Segoe UI, Roboto, Arial, sans-serif;
}

a {
  color: var(--blue);
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #dbad4a;
  outline-offset: 3px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  background: white;
  padding: 12px;
  z-index: 30;
}

.skip:focus {
  top: 8px;
}

.top {
  background: var(--navy);
  color: #eaf2ff;
  font-size: .83rem;
}

.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 0 20px;
}

.top .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 7px;
  padding-bottom: 7px;
}

.top a {
  color: #fff;
  text-decoration: none;
}

.head {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  z-index: 20;
  backdrop-filter: blur(10px);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
  min-width: 0;
}

.mark {
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  border: 3px solid var(--gold);
  width: 47px;
  height: 47px;
  flex: none;
  border-radius: 12px;
  font-size: 1.05rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 600;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 650;
}

.nav a:hover,
.nav a[aria-current=page] {
  background: #eaf1fb;
  color: var(--blue);
}

.menu-btn {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 8px 13px;
  color: var(--navy);
  font-weight: 700;
}

/* ==========================================================
   HERO SECTION
   ========================================================== */

.hero {
  background: linear-gradient(
    125deg,
    #102d55,
    #1b528e
  );
  color: white;
  padding: 66px 0 62px;
  position: relative;
  overflow: hidden;
}

.hero:after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border: 80px solid rgba(255,255,255,.045);
  border-radius: 50%;
  right: -170px;
  top: -160px;
}

.eyebrow {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  color: #f2ce78;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.55rem);
  line-height: 1.16;
  max-width: 800px;
  margin: 13px 0 18px;
  letter-spacing: -.025em;
}

.hero p {
  max-width: 730px;
  color: #e1ebf9;
  font-size: 1.08rem;
}

.crumb {
  font-size: .82rem;
  margin: 0 0 20px;
  color: #dbe9fa;
}

.crumb a {
  color: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #162943 !important;
  padding: 11px 18px;
  border-radius: 9px;
  font-weight: 800;
  text-decoration: none;
  min-height: 45px;
}

.btn.secondary {
  background: #e9f1fa;
  color: #153b68 !important;
}

/* ==========================================================
   DOCUMENTATION LAYOUT
   ========================================================== */

.layout {
  display: grid;
  grid-template-columns: 245px minmax(0,1fr);
  gap: 32px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 70px;
}

.side {
  position: sticky;
  top: 110px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 17px;
  box-shadow: var(--shadow);
}

.side h2 {
  font-size: .83rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.side a {
  display: block;
  text-decoration: none;
  color: #33465e;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: .87rem;
  line-height: 1.45;
}

.side a:hover,
.side a[aria-current=page] {
  background: #e9f1fa;
  color: var(--blue);
  font-weight: 750;
}

.paper {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: clamp(22px, 4vw, 45px);
  box-shadow: var(--shadow);
  min-width: 0;
}

.paper h2 {
  font-size: 1.45rem;
  color: var(--navy);
  line-height: 1.3;
  margin: 32px 0 12px;
}

.paper h2:first-child {
  margin-top: 0;
}

.paper h3 {
  color: var(--navy);
  margin: 10px 0;
}

.paper p,
.paper li {
  color: #42536a;
}

.paper .lead {
  font-size: 1.12rem;
  color: #283e59;
}

.paper ul,
.paper ol {
  padding-left: 24px;
}

.paper li {
  margin: 7px 0;
}

/* ==========================================================
   CARDS AND INFORMATION ELEMENTS
   ========================================================== */

.tiles {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  margin: 22px 0;
}

.tile {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  min-width: 0;
}

.tile h2,
.tile h3 {
  font-size: 1.07rem;
  margin: 0 0 10px;
}

.tile p {
  margin: 0 0 12px;
}

.tile a {
  font-weight: 750;
}

.notice {
  padding: 18px 20px;
  background: #fff8e9;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: #493b23;
  margin: 20px 0;
}

.avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

.timeline {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

.timeline > div {
  margin: 0 0 25px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 10px 0;
  padding: 15px;
  background: #f9fbfe;
}

.faq summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--navy);
}

.faq p {
  margin-bottom: 0;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.foot {
  background: #102d55;
  color: #d8e5f6;
  padding: 45px 0 20px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 35px;
}

.foot a {
  color: #fff;
}

.foot h2 {
  color: #fff;
  font-size: 1rem;
}

.foot p {
  font-size: .9rem;
}

.copyright {
  border-top: 1px solid #365274;
  padding-top: 18px;
  margin-top: 26px;
  font-size: .82rem;
}

/* ==========================================================
   SEARCH AND UTILITY ELEMENTS
   ========================================================== */

.search {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d5e0eb;
  border-radius: 10px;
  margin: 5px 0 15px;
}

.search-results {
  margin: 0 0 18px;
}

.search-results a {
  display: block;
  padding: 6px;
}

.search-results[hidden] {
  display: none;
}

.muted {
  color: var(--muted);
  font-size: .86rem;
}

.badge {
  display: inline-block;
  background: #e9f1fa;
  color: var(--blue);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .77rem;
  font-weight: 750;
}

.back {
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.back a {
  font-weight: 700;
}

/* ==========================================================
   TABLET AND MOBILE RESPONSIVENESS
   ========================================================== */

@media (max-width: 960px) {
  .menu-btn {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 14px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
    order: 2;
  }

  .paper {
    order: 1;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .top .wrap {
    font-size: .73rem;
  }

  .head-inner {
    min-height: 69px;
  }

  .brand {
    font-size: .87rem;
  }

  .brand small {
    font-size: .65rem;
  }

  .mark {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding: 43px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .layout {
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 35px;
  }

  .paper {
    padding: 22px 18px;
  }

  .tiles,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    gap: 12px;
  }

  .actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
