:root {
  --brand: #0065f1;
  --navy: #092b5f;
  --text: #132c4c;
  --muted: #526782;
  --line: #dce7f5;
  --surface: #f4f8fe;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  background: var(--surface);
  color: var(--text);
}
body { min-width: 0; }
.sidebar { width: 248px; padding: 24px 15px 18px; border-color: var(--line); }
.identity { align-items: flex-start; flex-direction: column; gap: 8px; padding: 6px 14px 28px; text-decoration: none; color: var(--text); }
.identity:visited { color: var(--text); }
.official-logo { display: block; object-fit: contain; object-position: left center; }
.identity span { display: block; font-size: .88rem; font-weight: 650; }
.side-caption { color: var(--muted); font-size: .75rem; letter-spacing: .09em; }
.nav-btn { color: #36516f; font-size: .875rem; min-height: 44px; padding: 10px 12px; }
.nav-btn.active { color: #004fbf; background: #e8f1ff; }
.nav-icon { color: #2160a5; }
.sidebar-note { display: block; margin: auto 5px 0; background: #edf4ff; padding: 14px; }
.sidebar-note strong, .sidebar-note small { font-size: .8rem; color: var(--muted); }
.topbar { height: 68px; border-bottom-color: var(--line); }
.crumb { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.top-right { gap: 10px; }
.preview-tag { color: #164982; border-color: var(--line); padding: 6px 9px; border-radius: 999px; font-size: .78rem; letter-spacing: 0; }
.share-button { background: white; color: #064a9f; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; font-size: .875rem; font-weight: 700; }
.share-button:hover { background: #edf4ff; }
.content { max-width: 1340px; padding-top: 32px; }
.hero {
  isolation: isolate;
  min-height: 320px;
  border-radius: 24px;
  padding: clamp(26px, 4vw, 54px);
  align-items: center;
  background: linear-gradient(115deg,#092450 8%,#104c9d 60%,#0065f1);
}
.hero::before {
  z-index: -1;
  right: -90px;
  top: -78px;
  border: 1px solid #fff4;
  box-shadow: 0 0 0 40px #ffffff12,0 0 0 80px #ffffff10,0 0 0 120px #ffffff0c;
}
.hero-picture {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,#092450 0%,#092450 31%,#092450e6 44%,#09245046 78%,#0924502e 100%),
    url(https://thumb.wikimedia.org/wikipedia/commons/thumb/8/8b/Egersund_harbour.jpg/960px-Egersund_harbour.jpg) right center / auto 163% no-repeat;
}
.hero h1 { font-size: clamp(2rem, 5.8vw, 4.65rem); margin: 12px 0; font-weight: 780; letter-spacing: -.065em; }
.hero-eyebrow { color: #c3e0ff; font-size: .78rem; letter-spacing: .09em; }
.hero p { font-size: 1.0625rem; color: #e0edff; margin-bottom: 23px; max-width: 390px; }
.button { border-color: #0054cf; background: #0054cf; border-radius: 9px; font-size: .9rem; min-height: 42px; }
.button:hover { background: #0048b0; }
.button.small { font-size: .875rem; min-height: 38px; }
.hero-button { background: #fff; color: #004da9; border-color: #fff; margin-right: 7px; margin-bottom: 6px; }
.hero-button:hover { background: #dcecff; }
.hero-secondary { margin-bottom: 6px; color: white; background: #ffffff16; border-color: #ffffff70; }
.hero-secondary:hover { background: #ffffff28; }
.demo-strip { justify-content: flex-start; margin-top: 12px; letter-spacing: 0; gap: 4px 10px; font-weight: 600; font-size: .78rem; }
.demo-strip span { color: var(--muted); margin-right: auto; }
.demo-strip a { color: var(--muted); text-underline-offset: 2px; }
.overview-grid { margin-top: 23px; gap: 16px; }
.panel, .quick-card, .topic-card, .stat { border-color: var(--line); border-radius: 16px; }
.overview-grid .panel { padding: 22px 24px; }
.overview-grid h2 { font-size: 1.31rem; }
.overview-grid p, .brief ul, .event-lead { font-size: .925rem; color: var(--muted); }
.brief { background: #eaf3ff; }
.eyebrow, .pill, .status { font-size: .78rem; letter-spacing: 0; }
.eyebrow { color: #14539e; letter-spacing: .055em; }
.stat strong { font-size: 1.65rem; order: -1; }
.stat span, .quick-card small, .notice { color: var(--muted); font-size: .875rem; }
.quick-card { min-height: 131px; }
.quick-card strong { font-size: .98rem; }
.quick-card small { max-width: none; }
.text-button { font-size: .9rem; }
.section-heading h2 { font-size: 1.45rem; }
.muted, .fineprint, .topic-card p, .event-details p { color: var(--muted); }
.page-header h1, .stand-heading h1 { font-size: clamp(1.75rem, 3.7vw, 2.65rem); }
.page-header p, .stand-heading p, .program-intro p, .chapter-content p, .topic-card p, .modal-topic p, .form-panel > p, .question-item p, .event-details p, .lesson-card p { font-size: 1rem; color: var(--muted); }
.level-btn,.field-label,.compact-select,.seg-tabs button,.seg-tabs.modal-tabs button,.event-tags,.source-link,.inline-topic,.inline-actions button,.stand-result small,.results { font-size: .875rem; }
.search-input input,.field { font-size: 1rem; }
.panel-heading { align-items: baseline; }
.comparison-card { min-height: 144px; justify-content: center; }
.comparison-card .topic-symbol { margin-bottom: 5px; }
.mobile-brand { text-decoration: none; }
.dialog { max-height: 90dvh; }
@media (max-width: 1130px) { .sidebar { width: 220px; } }
@media (max-width: 850px) {
  .topbar { height: 60px; }
  .content { padding-top: 20px; }
  .bottomnav { border-color: var(--line); }
  .mobile-btn { color: #405c7b; }
  .mobile-btn small { font-size: .75rem; }
}
@media (max-width: 640px) {
  .hero { min-height: 268px; border-radius: 19px; }
  .hero-picture { background-size: auto, auto 100%; opacity: .62; }
  .hero h1 { font-size: clamp(1.85rem, 8.15vw, 3.2rem); }
  .hero p { font-size: 1rem; }
  .overview-grid .panel { padding: 19px; }
  .stat { padding: 11px; }
  .stat span { font-size: .76rem; }
  .quick-card { padding: 13px; }
  .section-heading { margin-top: 25px; }
  .demo-strip span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
