@font-face {
  font-family: "Fira Sans";
  src: url("../assets/fonts/FiraSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../assets/fonts/FiraSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../assets/fonts/FiraSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../assets/fonts/FiraSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep-blue: #1d71b8;
  --light-blue: #a7d7ff;
  --deep-yellow: #ffb81c;
  --light-yellow: #ffe78d;
  --dark-blue: #003a70;
  --ink: #10243c;
  --muted: #4d6480;
  --paper: #f4f8fc;
  --card: #ffffff;
  --line: #c5d8ee;
  --header: #003a70;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 58, 112, 0.1);
  --drawer-width: 280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Fira Sans", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.burger {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--deep-yellow);
  color: var(--dark-blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark-blue);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

body.drawer-open .burger {
  background: var(--deep-blue);
}

body.drawer-open .burger span {
  background: #fff;
}

body.drawer-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.drawer-open .burger span:nth-child(2) {
  opacity: 0;
}

body.drawer-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.edge-hotzone {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 100vh;
  z-index: 25;
}

.date-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: var(--drawer-width);
  height: 100vh;
  background: var(--dark-blue);
  color: #fff;
  padding: 84px 20px 24px;
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  box-shadow: 8px 0 24px rgba(0, 58, 112, 0.18);
}

body.drawer-open .date-drawer,
body.drawer-peek .date-drawer {
  transform: translateX(0);
}

.date-drawer h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.date-drawer p {
  margin: 0 0 16px;
  color: var(--light-blue);
  font-size: 0.85rem;
}

.date-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.date-list button {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(167, 215, 255, 0.25);
  background: rgba(29, 113, 184, 0.35);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}

.date-list button small {
  display: block;
  color: var(--light-yellow);
  font-size: 0.78rem;
}

.date-list button.active,
.date-list button:hover {
  background: var(--deep-yellow);
  color: var(--dark-blue);
  border-color: var(--deep-yellow);
}

.date-list button.active small,
.date-list button:hover small {
  color: var(--dark-blue);
}

.drawer-scrim {
  display: none;
}

@media (min-width: 801px) {
  body.drawer-pinned .site-header,
  body.drawer-pinned .hero,
  body.drawer-pinned section,
  body.drawer-pinned .site-footer {
    margin-left: var(--drawer-width);
  }
}

.site-header {
  background: var(--header);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.hero-inner,
.section-inner,
.site-footer .footer-inner {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

#viewer-section .section-inner {
  width: min(1430px, calc(100% - 40px));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding-left: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  height: 42px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text span {
  color: var(--light-blue);
  font-size: 0.82rem;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: #f2f2f2;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--deep-yellow);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 184, 28, 0.22), transparent 28%),
    linear-gradient(180deg, #003a70 0%, #1d71b8 100%);
  color: #fff;
}

.hero-mark {
  position: absolute;
  right: -40px;
  top: -50px;
  width: min(520px, 70vw);
  opacity: 0.1;
  pointer-events: none;
  filter: brightness(10);
}

.hero-inner {
  position: relative;
}

.kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--light-yellow);
  margin: 0 0 10px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: #eef6ff;
  font-size: 1.05rem;
  line-height: 1.55;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(167, 215, 255, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
}

.stat b {
  display: block;
  font-size: 1.35rem;
}

.stat span {
  color: var(--light-blue);
  font-size: 0.82rem;
}

section {
  padding: 56px 0;
}

.section-inner h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  color: var(--dark-blue);
}

.lede {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 70ch;
}

.band {
  background: #eaf3fb;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.prose p {
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.6;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--deep-blue);
  font-weight: 500;
}

.prose a:hover {
  color: var(--dark-blue);
}

.conventions {
  margin-bottom: 18px;
}

.glossary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.glossary article,
.method-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.glossary h3,
.method-card h3,
.product-row h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--dark-blue);
}

.glossary p,
.method-card p,
.product-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.viewer-card,
.gallery-card,
.downloads-card {
  padding: 20px;
}

.viewer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.var-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
}

.var-switch button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--dark-blue);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.var-switch button.active,
.var-switch button:hover {
  background: var(--deep-blue);
  color: #fff;
  border-color: var(--deep-blue);
}

#viewer {
  width: 100%;
  height: 460px;
}

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

.gallery-card img {
  display: block;
  width: 100%;
  border-radius: 10px;
  background: #fff;
}

.gallery-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--dark-blue);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  font-weight: 600;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--dark-blue);
}

.btn-dark {
  background: var(--dark-blue);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--dark-blue);
}

.btn:hover {
  background: var(--deep-yellow);
  border-color: var(--deep-yellow);
  color: var(--dark-blue);
}

.zip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

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

.site-footer {
  background: var(--dark-blue);
  color: #d7e8f8;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-inner img {
  height: 36px;
}

@media (max-width: 800px) {
  :root {
    --drawer-width: 100%;
  }

  .stat-row,
  .gallery-grid,
  .split,
  .glossary,
  .method-grid,
  .product-row {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .drawer-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 58, 112, 0.35);
    z-index: 28;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.drawer-open .drawer-scrim,
  body.drawer-peek .drawer-scrim {
    opacity: 1;
    pointer-events: auto;
  }
}
