/* SBE KITA redesign — institutional clarity with a contemporary editorial edge */
:root {
  --navy: #063f89;
  --navy-dark: #052f6c;
  --navy-deep: #021b42;
  --blue: #0d56b3;
  --blue-bright: #1474e4;
  --gold: #b8d93c;
  --gold-soft: #e6f69c;
  --ink: #0b1830;
  --muted: #5b687d;
  --bg: #f2f6fc;
  --card: #ffffff;
  --line: #d9e3f1;
  --shadow: 0 24px 60px rgba(2, 27, 66, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 92px; }

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, .serif { font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif; }

a, button, input { -webkit-tap-highlight-color: transparent; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.wrap { max-width: 1240px; padding-inline: 30px; }

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  text-decoration: none;
  transition: top .2s ease;
}

.skip-link:focus { top: 0; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 3px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
}

/* Navigation */
.topbar {
  background: rgba(255, 255, 255, .94);
  color: var(--navy-deep);
  border-bottom: 1px solid rgba(6, 63, 137, .12);
  box-shadow: 0 8px 30px rgba(2, 27, 66, .06);
  backdrop-filter: blur(18px);
}

.topbar-inner { min-height: 78px; gap: 28px; }

.brand { gap: 12px; color: var(--navy-deep); }

.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  box-shadow: none;
  font-family: Inter, Aptos, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.08em;
}

.brand-text b {
  color: var(--navy);
  font-family: Inter, Aptos, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .14em;
}

.brand-text span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
}

nav.mainnav { gap: 2px; }

nav.mainnav a {
  position: relative;
  color: #40516a;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

nav.mainnav a:hover { background: #eef4fc; color: var(--navy); }

nav.mainnav a.active { background: var(--navy); color: #fff; }

.menu-btn {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  color: var(--navy);
}

.menu-btn span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  min-height: 670px;
  background:
    radial-gradient(circle at 86% 4%, rgba(20, 116, 228, .72), transparent 34%),
    linear-gradient(135deg, var(--navy-deep), #063d84 58%, #0c59ae);
}

.hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -160px;
  bottom: -260px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 150px rgba(255, 255, 255, .02);
}

.hero::after {
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent, #000);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.15fr);
  align-items: center;
  gap: clamp(38px, 6vw, 84px);
  padding-block: 76px 84px;
  text-align: left;
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 25px;
  padding: 0;
  border: 0;
  background: none;
  color: #dbe9ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  max-width: 620px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(56px, 7vw, 94px);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.07em;
}

.hero h1 em {
  color: var(--gold-soft);
  font-style: normal;
  font-weight: 500;
}

.hero .sub {
  max-width: 570px;
  margin: 0 0 34px;
  color: #c8d9f3;
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.hero-actions a:hover { transform: translateY(-2px); }

.hero-primary { gap: 32px; background: var(--gold); color: var(--navy-deep); }
.hero-primary span { font-size: 18px; }
.hero-secondary { border: 1px solid rgba(255,255,255,.32); color: #fff; }
.hero-secondary:hover { background: rgba(255,255,255,.1); }

.hero-facts {
  display: flex;
  gap: 26px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.18);
}

.hero-facts div { display: grid; gap: 1px; }
.hero-facts strong { color: #fff; font-size: 23px; line-height: 1.1; }
.hero-facts span { color: #9eb5d7; font-size: 11px; font-weight: 700; letter-spacing: .05em; }

.hero-art {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 23px 22px 20px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 40px 90px rgba(0, 10, 34, .35);
  transform: rotate(1.25deg);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  pointer-events: none;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  margin: 35px 0 22px;
}

.art-label, .accreditation-line {
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.art-label { justify-content: space-between; color: var(--navy); }
.art-label span { font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.art-label strong { font-size: 12px; letter-spacing: .12em; }

.accreditation-line {
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.accreditation-line span {
  padding: 5px 8px;
  border-radius: 6px;
  background: #e9f2ff;
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.accreditation-line small {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

/* Sections */
section.block { padding-block: 100px; }
section.block.alt { background: #fff; }

.sec-head {
  max-width: 800px;
  margin: 0 0 48px;
  text-align: left;
}

.sec-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .18em;
}

.sec-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.sec-head h2 {
  max-width: 720px;
  margin: 5px 0 11px;
  color: var(--navy-deep);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.sec-head p { max-width: 680px; color: var(--muted); font-size: 16px; }
.divider { display: none; }

/* Hub */
#hub { position: relative; }
#hub::before {
  content: "01 / QUICK ACCESS";
  position: absolute;
  right: max(30px, calc((100vw - 1180px) / 2));
  top: 112px;
  color: #90a1b7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.hub-card {
  grid-column: span 4;
  min-height: 260px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: none;
  gap: 12px;
}

.hub-card:nth-child(-n+2) { grid-column: span 6; min-height: 285px; }
.hub-card:first-child { background: var(--navy); border-color: var(--navy); color: #fff; }

.hub-card::before {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: var(--gold);
}

.hub-card:hover { transform: translateY(-5px); border-color: #b7c8df; box-shadow: var(--shadow); }

.hub-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e8f1ff;
  color: var(--navy);
}

.hub-card:first-child .hub-ico { background: var(--gold); color: var(--navy-deep); }

.hub-card h3 {
  max-width: 340px;
  color: var(--navy-deep);
  font-size: 19px;
  font-weight: 820;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.hub-card:first-child h3 { color: #fff; }
.hub-card p { max-width: 430px; color: var(--muted); font-size: 14px; }
.hub-card:first-child p { color: #bbcee9; }

.hub-go {
  color: var(--blue);
  font-size: 11px;
  letter-spacing: .12em;
}

.hub-card:first-child .hub-go { color: var(--gold-soft); }

/* Core documents */
.doc-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }

.doc-card {
  min-height: 300px;
  padding: 27px 24px;
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: none;
}

.doc-card::after {
  right: -40px;
  top: -45px;
  background: radial-gradient(circle, rgba(20,116,228,.13), transparent 69%);
}

.doc-card:hover { transform: translateY(-4px); border-color: #afc3df; box-shadow: 0 18px 45px rgba(2,27,66,.1); }

.doc-tag {
  padding: 6px 10px;
  border-radius: 6px;
  background: #e8f1ff;
  color: var(--navy);
  font-size: 10px;
  letter-spacing: .12em;
}

.doc-card h3 { color: var(--navy-deep); font-size: 19px; font-weight: 820; line-height: 1.3; }
.doc-card p { font-size: 14px; }

.btn {
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 11px;
  background: var(--navy);
  box-shadow: none;
}

.btn:hover { transform: translateY(-2px); background: var(--blue); box-shadow: 0 9px 20px rgba(6,63,137,.2); }

/* Evidence library */
#baseroom {
  background:
    linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(var(--line) 1px, transparent 1px);
  background-size: auto, 50px 50px, 50px 50px;
}

.searchbar { max-width: none; margin: 0 0 30px; }

.searchbar input {
  min-height: 62px;
  padding: 16px 24px 16px 57px;
  border: 2px solid var(--navy);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(2,27,66,.08);
}

.searchbar input:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(20,116,228,.12); }
.searchbar svg { left: 21px; color: var(--navy); }

.chapter-list { gap: 12px; }

.chapter {
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: none;
}

.chapter.open { border-color: #a9bedb; box-shadow: 0 18px 42px rgba(2,27,66,.09); }

.chapter-head { min-height: 88px; padding: 17px 20px; gap: 17px; }
.chapter-head:hover { background: #f5f8fd; }

.ch-num {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--navy);
  box-shadow: none;
  font-family: Inter, Aptos, sans-serif;
  font-size: 18px;
  font-weight: 850;
}

.ch-num.gold { background: var(--gold); color: var(--navy-deep); }
.ch-title b { color: var(--navy-deep); font-family: Inter, Aptos, sans-serif; font-size: 16px; font-weight: 800; }
.ch-title span { font-size: 13px; }

.ch-count {
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  background: #e9f2ff;
  color: var(--navy);
  font-size: 10px;
}

.chapter-body-inner { padding: 8px 22px 24px 91px; border-top: 1px solid var(--line); }
.subhead { color: var(--blue); font-size: 11px; }
.subhead::after { background: linear-gradient(90deg, #c5d7ee, transparent); }

.doc-item { padding: 14px 12px; border-radius: 10px; }
.doc-item:hover { background: #f1f6fd; }
.doc-item + .doc-item { border-color: #e7edf5; }
.doc-idx { background: #e7f0fe; color: var(--navy); }
.doc-name { font-size: 14px; }

.doc-link {
  border-color: #b8cae2;
  color: var(--navy);
  border-radius: 8px;
}

.doc-link:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.subdocs { border-color: var(--gold); background: #f7faec; }
.subdocs p { color: #607817; }
.subdocs li::before { background: var(--gold); }
mark { background: #e6f69c; }

/* Supporting panels */
.panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.panel {
  min-height: 240px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: none;
}

.panel:hover { transform: translateY(-4px); border-color: #afc3df; box-shadow: 0 18px 45px rgba(2,27,66,.1); }
.panel h3 { color: var(--navy-deep); font-size: 20px; font-weight: 820; }
.panel h3 svg { width: 23px; height: 23px; color: var(--blue); }
.panel p { max-width: 590px; color: var(--muted); font-size: 15px; }
.panel .btn.ghost { width: auto; border-color: var(--navy); color: var(--navy); }
.panel .btn.ghost:hover { background: var(--navy); color: #fff; }

#standards .panel-grid, #cert .panel-grid { grid-template-columns: 1fr; }
#standards .panel, #cert .panel { min-height: 210px; }

/* Footer */
footer {
  margin: 0;
  padding: 66px 0 28px;
  background: var(--navy-deep);
}

.foot-brand h3 { color: #fff; font-family: Inter, Aptos, sans-serif; font-size: 22px; font-weight: 850; letter-spacing: .08em; }
.foot-brand p { color: #9fb4d2; font-size: 14px; }
.foot-links h4 { color: var(--gold-soft); }
.foot-links a { color: #c7d5e9; }
.foot-bottom { display: flex; justify-content: space-between; color: #8097b8; text-align: left; }

.to-top {
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 13px;
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(2,27,66,.28);
}

@media (max-width: 1060px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 700px; }
  .hero-art { max-width: 780px; transform: rotate(.5deg); }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-card, .hub-card:nth-child(-n+2) { grid-column: span 6; }
  .hub-card:last-child { grid-column: span 12; min-height: 220px; }
}

@media (max-width: 900px) {
  nav.mainnav {
    top: 78px;
    padding: 12px 24px 22px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 35px rgba(2,27,66,.14);
  }

  nav.mainnav a { color: var(--navy-deep); padding: 13px 15px; }
  nav.mainnav a.active { color: #fff; }
  .menu-btn { display: block; }
  #hub::before { display: none; }
}

@media (max-width: 680px) {
  .wrap { padding-inline: 20px; }
  .topbar-inner { min-height: 70px; }
  nav.mainnav { top: 70px; }

  .hero { min-height: 0; }
  .hero-inner { padding-block: 55px 62px; gap: 40px; }
  .hero h1 { font-size: clamp(52px, 17vw, 74px); }
  .hero .sub { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions a { width: 100%; }
  .hero-primary { justify-content: space-between !important; }

  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-facts strong { font-size: 20px; }
  .hero-facts span { font-size: 10px; line-height: 1.35; }

  .hero-art { padding: 17px 15px 14px; border-radius: 19px; transform: none; }
  .hero-art img { margin: 28px 0 18px; }
  .art-label strong { font-size: 10px; }
  .accreditation-line { flex-wrap: wrap; }
  .accreditation-line small { width: 100%; margin: 3px 0 0; }

  section.block { padding-block: 72px; }
  .sec-head { margin-bottom: 34px; }
  .sec-head h2 { font-size: 36px; }

  .hub-grid { grid-template-columns: 1fr; }
  .hub-card, .hub-card:nth-child(-n+2), .hub-card:last-child { grid-column: auto; min-height: 235px; }
  .doc-grid, .panel-grid { grid-template-columns: 1fr; }
  .doc-card { min-height: 270px; }

  .searchbar input { min-height: 58px; padding-right: 17px; font-size: 15px; }
  .chapter-head { min-height: 82px; padding: 14px; gap: 12px; }
  .ch-num { width: 46px; height: 46px; }
  .ch-title b { font-size: 14px; }
  .ch-title span { display: none; }
  .chapter-body-inner { padding: 8px 12px 18px; }
  .doc-item { display: grid; grid-template-columns: 28px 1fr; gap: 8px 10px; }
  .doc-link { grid-column: 2; justify-self: start; min-height: 34px; }

  .foot-grid { display: grid; }
  .foot-links { gap: 28px; }
  .foot-bottom { display: grid; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
