:root {
  --bg: #f4f7fb;
  --bg-2: #e8eef6;
  --bg-3: #dde6f0;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #1c2430;
  --text: #17202b;
  --muted: #596978;
  --line: rgba(23, 32, 43, 0.12);
  --accent: #4f87e8;
  --accent-deep: #2f64c7;
  --accent-soft: rgba(79, 135, 232, 0.14);
  --shadow: 0 18px 44px rgba(26, 41, 59, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shell-width: min(1040px, calc(100% - 28px));
}

body[data-theme="default"] {
  --bg: #f4f7fb;
  --bg-2: #e8eef6;
  --bg-3: #dde6f0;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #1c2430;
  --text: #17202b;
  --muted: #596978;
  --line: rgba(23, 32, 43, 0.12);
  --accent: #4f87e8;
  --accent-deep: #2f64c7;
  --accent-soft: rgba(79, 135, 232, 0.14);
  --shadow: 0 18px 44px rgba(26, 41, 59, 0.1);
}

body[data-theme="aero"] {
  --bg: #d8ecff;
  --bg-2: #c2e0ff;
  --bg-3: #a9cbef;
  --panel: rgba(243, 250, 255, 0.76);
  --panel-strong: #0d1724;
  --text: #102235;
  --muted: #54708c;
  --line: rgba(64, 99, 139, 0.32);
  --accent: #1f78ff;
  --accent-deep: #0b58d1;
  --accent-soft: rgba(31, 120, 255, 0.16);
  --shadow: 0 18px 38px rgba(34, 71, 112, 0.22);
  --aero-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.1));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 135, 232, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.38), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 58%, var(--bg-3) 100%);
}

body[data-theme="aero"] {
  background:
    url("aero-bg.svg") center center / cover no-repeat fixed,
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 58%, var(--bg-3) 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.page-shell {
  width: var(--shell-width);
  margin: 0 auto;
  padding: 18px 0 32px;
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.music-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(122, 198, 230, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 21, 31, 0.96), rgba(6, 10, 16, 0.98));
  color: #7fe8ff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.music-toggle[aria-pressed="true"] {
  background: linear-gradient(180deg, #12b9e5, #0582b6);
  color: #fff;
}

.theme-menu {
  position: fixed;
  top: 68px;
  right: 16px;
  z-index: 49;
  display: grid;
  gap: 8px;
  min-width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.theme-menu__item {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--accent-soft);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.topbar,
.panel,
.footer,
.hero__content {
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

body[data-theme="aero"] .topbar,
body[data-theme="aero"] .panel,
body[data-theme="aero"] .hero__content,
body[data-theme="aero"] .footer,
body[data-theme="aero"] .hero-card--status,
body[data-theme="aero"] .theme-menu,
body[data-theme="aero"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.72);
  background-image: var(--aero-sheen);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 24px rgba(34, 71, 112, 0.18);
}

body[data-theme="aero"] .topbar {
  border-radius: 18px;
  background-color: rgba(233, 244, 255, 0.82);
}

body[data-theme="aero"] .topbar__links a,
body[data-theme="aero"] .footer a {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

body[data-theme="aero"] .panel,
body[data-theme="aero"] .hero__content {
  background-color: rgba(236, 246, 255, 0.8);
}

body[data-theme="aero"] .footer {
  background-color: rgba(18, 34, 55, 0.94);
}

body[data-theme="aero"] .theme-toggle {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  color: #0a3e93;
}

body[data-theme="aero"] .theme-menu {
  background-color: rgba(243, 250, 255, 0.92);
  border-radius: 14px;
}

body[data-theme="aero"] .theme-menu__item {
  background: linear-gradient(180deg, #fefefe, #cfe5ff);
  border: 1px solid rgba(76, 118, 166, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand,
.hero h1,
.section-heading h2,
.resource-card h3,
.feature-card h3,
.timeline-card h3 {
  font-family: "Syne", sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand__logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.1fr 0.92fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(245, 249, 255, 0.58));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero__lede {
  max-width: 62ch;
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--accent); color: #fffaf5; }
.button--ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); }

body[data-theme="aero"] .button--primary,
body[data-theme="aero"] .button--ghost {
  border: 1px solid rgba(52, 102, 164, 0.34);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 1px 0 rgba(255, 255, 255, 0.4);
}

body[data-theme="aero"] .button--primary {
  background: linear-gradient(180deg, #8dc2ff 0%, #4f8ff4 48%, #1f6fe9 49%, #1d61d6 100%);
  color: #f8fcff;
}

body[data-theme="aero"] .button--ghost {
  background: linear-gradient(180deg, #fdfefe 0%, #dcecff 100%);
  color: #163658;
}

.hero__visual { display: grid; gap: 16px; }

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-card--image {
  min-height: 300px;
  background:
    radial-gradient(circle at 50% 0%, rgba(90, 175, 255, 0.36), transparent 34%),
    linear-gradient(180deg, #11325e, #08111f);
}

.hero-card--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.hero-card__glow {
  position: absolute;
  inset: auto 16% -14% 16%;
  height: 90px;
  border-radius: 50%;
  background: rgba(74, 141, 255, 0.42);
  filter: blur(34px);
}

.hero-card--status {
  padding: 20px;
  background: linear-gradient(145deg, rgba(19, 54, 96, 0.96), rgba(11, 19, 32, 0.98));
  color: #f5fbff;
}

body[data-theme="aero"] .hero-card--status {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(180deg, #4d86cb 0%, #2b5f9a 45%, #17395f 100%);
}

.status-label {
  margin: 0;
  color: rgba(245, 251, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

.progress-track {
  height: 14px;
  margin: 16px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #91c5ff, #4a8dff);
  transition: width 500ms ease;
}

body[data-theme="aero"] .progress-track {
  height: 18px;
  background: linear-gradient(180deg, rgba(4, 28, 55, 0.18), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.18);
}

body[data-theme="aero"] .progress-fill {
  background: linear-gradient(180deg, #f9ffb6 0%, #9ae64f 45%, #65c820 46%, #3b9f12 100%);
}

.status-value { margin: 0; font-size: 1.7rem; font-weight: 700; }
.status-note { margin: 12px 0 0; color: rgba(245, 251, 255, 0.78); line-height: 1.6; }

main { display: grid; gap: 18px; margin-top: 18px; }

.panel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.updates-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; }

.feature-card,
.resource-card,
.timeline-card,
.helper-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.feature-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(79, 135, 232, 0.1), rgba(255, 255, 255, 0.5)), #f8fbff;
}

body[data-theme="aero"] .feature-card,
body[data-theme="aero"] .resource-card,
body[data-theme="aero"] .timeline-card,
body[data-theme="aero"] .helper-card {
  border-radius: 12px;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(211, 231, 250, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body[data-theme="aero"] .feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(204, 226, 247, 0.76));
}

body[data-theme="aero"] .resource-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(206, 226, 247, 0.86));
}

body[data-theme="aero"] .timeline-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(215, 233, 248, 0.72));
}

body[data-theme="aero"] .helper-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(208, 228, 248, 0.76));
}

.feature-card__label,
.resource-card__kicker,
.timeline-card__meta {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

body[data-theme="aero"] .feature-card__label,
body[data-theme="aero"] .resource-card__kicker,
body[data-theme="aero"] .timeline-card__meta {
  color: #0d56c0;
}

.feature-card h3,
.resource-card h3,
.timeline-card h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.feature-card p:last-child,
.resource-card p:last-child,
.timeline-card p:last-child { margin-bottom: 0; }

.timeline { display: grid; gap: 14px; }

.timeline-card { padding: 16px; background: #f8fbff; }

.timeline-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

body[data-theme="aero"] .chip {
  background: linear-gradient(180deg, #f9fbff, #c8ddf8);
  color: #114d9a;
  border: 1px solid rgba(94, 134, 179, 0.24);
}

.timeline-card__authors { margin-top: 14px; color: var(--muted); font-size: 0.94rem; }

.resource-grid,
.helpers-grid {
  display: grid;
  gap: 14px;
}

.resource-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.resource-card {
  display: block;
  min-height: 100%;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 247, 255, 0.82));
  transition: transform 150ms ease, border-color 150ms ease;
}

.resource-card:hover,
.helper-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 135, 232, 0.32);
}

.helpers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.helper-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.helper-card__avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, #18345e, #0a1323);
  color: #eef7ff;
  font-weight: 700;
}

body[data-theme="aero"] .helper-card__avatar {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.75), transparent 38%),
    linear-gradient(180deg, #8ec2ff 0%, #5b9df1 45%, #3b74d0 100%);
  border: 1px solid rgba(87, 128, 175, 0.3);
  color: #fff;
}

.helper-card__avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.helper-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.helper-card p { margin: 0; color: var(--muted); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(16, 24, 40, 0.94);
  color: rgba(245, 251, 255, 0.92);
}

body[data-theme="aero"] .footer {
  background:
    linear-gradient(180deg, rgba(54, 91, 137, 0.96), rgba(20, 43, 72, 0.98)),
    rgba(16, 24, 40, 0.94);
}

.footer p { margin: 0; }
.footer a { color: #9bc0ff; }
.footer-sep { margin: 0 8px; color: rgba(245, 251, 255, 0.38); }

.files-page {
  --bg: #0a0b0c;
  --bg-2: #0c0d10;
  --bg-3: #111214;
  --panel: rgba(8, 9, 12, 0.92);
  --panel-strong: #f1e5b8;
  --text: #efe7cf;
  --muted: #b9ad8a;
  --line: rgba(229, 214, 168, 0.18);
  --accent: #e0c36a;
  --accent-deep: #f0dd95;
  --accent-soft: rgba(224, 195, 106, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.68);
  background:
    radial-gradient(circle at top, rgba(255, 231, 141, 0.08), transparent 24%),
    linear-gradient(180deg, #090a0c 0%, #0c0d10 100%);
}

.files-page .theme-toggle,
.files-page .theme-menu {
  display: none;
}

.files-page .eyebrow,
.files-page .files-hero__stamp,
.files-page .files-hero__filetab,
.files-page .archive-side__title,
.files-page .file-card__tag {
  text-shadow: none;
}

.files-page .section-heading {
  margin-bottom: 14px;
}

.files-page .section-heading h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.08;
  color: #f6ecd0;
}

.files-page .eyebrow,
.files-page .file-card__tag,
.files-page .archive-side__title {
  color: #f0dd95;
}

.files-page .archive-panel .section-heading h2,
.files-page .archive-side__value,
.files-page .file-card h3,
.files-page .media-card h3,
.files-page .repo-card h3 {
  color: #f6ecd0;
}

.files-page .archive-panel .section-heading h2 {
  margin-top: 0;
  margin-bottom: 4px;
}

.files-page .file-card h3,
.files-page .media-card h3,
.files-page .repo-card h3 {
  font-size: 1rem;
  max-width: 18ch;
}

.files-page .file-card p,
.files-page .media-card p,
.files-page .repo-card p,
.files-page .archive-side li a {
  color: #d7ceb2;
}

.files-page .archive-side__panel,
.files-page .archive-panel {
  backdrop-filter: none;
}

.files-page .file-card::after,
.files-page .media-card::before {
  opacity: 0.85;
}

.files-page .page-shell {
  padding-top: 12px;
}

.page-shell--files {
  width: min(1280px, calc(100% - 20px));
}

.files-hero {
  margin: 18px 0 18px;
  padding: 22px 24px 24px;
  border-radius: 12px;
  border: 1px solid rgba(240, 221, 149, 0.16);
  background:
    linear-gradient(180deg, rgba(18, 18, 16, 0.96), rgba(8, 8, 8, 0.98)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px,
      transparent 18px
    );
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
}

.files-hero__filetab {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(240, 221, 149, 0.2);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #111214;
  color: #f0dd95;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.files-hero__stamp {
  margin: 0 0 12px;
  color: #f0dd95;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.files-hero h1 {
  margin: 0;
  max-width: 8ch;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  color: #f6ecd0;
}

.files-hero__lede {
  max-width: 70ch;
  margin: 16px 0 0;
  color: #d5ccae;
  line-height: 1.6;
  font-size: 1rem;
}

.files-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.files-hero__meta span {
  padding: 8px 12px;
  border: 1px solid rgba(240, 221, 149, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #efe7cf;
  font-size: 0.88rem;
}

.files-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.archive-side {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.archive-side__panel {
  padding: 18px;
  border: 1px solid rgba(240, 221, 149, 0.16);
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.94);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
}

.archive-side__title {
  margin: 0 0 8px;
  color: #f0dd95;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.archive-side__value {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  line-height: 1.05;
}

.archive-side__redactions {
  margin-top: 14px;
  height: 96px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #000 0 18px, transparent 18px 28px, #000 28px 44px, transparent 44px 54px, #000 54px 70px, transparent 70px 96px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.archive-side ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.archive-side li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(240, 221, 149, 0.08);
  color: #efe7cf;
}

.archive-panel {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(240, 221, 149, 0.14);
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.96), rgba(14, 14, 14, 0.94)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 28px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.5);
}

.file-grid,
.media-grid,
.repo-grid {
  display: grid;
  gap: 14px;
}

.file-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.file-card,
.media-card,
.repo-card {
  padding: 22px;
  border-radius: 10px;
  border: 1px solid rgba(240, 221, 149, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    #0d0d0d;
  min-height: 210px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(127, 232, 255, 0.24);
  background: rgba(54, 215, 255, 0.08);
  color: #c8f5ff;
  font-size: 0.88rem;
  font-weight: 700;
}

.download-link:hover {
  background: rgba(54, 215, 255, 0.16);
}

.file-card__tag {
  margin: 0 0 10px;
  color: #f0dd95;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.file-card h3,
.media-card h3,
.repo-card h3 {
  margin: 0 0 10px;
  font-family: "Syne", sans-serif;
  font-size: 1.08rem;
  line-height: 1.12;
}

.file-card p,
.media-card p,
.repo-card p {
  margin: 0;
  color: #c8c0a7;
  line-height: 1.7;
  max-width: 42ch;
}

.repo-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #efe7cf;
  line-height: 1.7;
  columns: 2;
  column-gap: 34px;
  font-size: 0.96rem;
}

.file-card {
  position: relative;
}

.file-card::after {
  content: "RESTRICTED";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(240, 221, 149, 0.18);
  color: #f0dd95;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
}

.media-card {
  position: relative;
}

.media-card::before {
  content: "MEDIA";
  position: absolute;
  top: 14px;
  right: 14px;
  color: #f0dd95;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
}

.repo-card li {
  margin: 0 0 4px;
}

@media (max-width: 980px) {
  .files-layout {
    grid-template-columns: 1fr;
  }

  .archive-side {
    grid-template-columns: 1fr;
  }

  .file-grid,
  .media-grid,
  .repo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .repo-card ul {
    columns: 1;
  }
}

@media (min-width: 1200px) {
  .files-layout {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  }

  .archive-side {
    grid-template-columns: 1fr;
    position: sticky;
    top: 18px;
  }

  .archive-panel:first-of-type {
    grid-column: 2;
  }

  .archive-panel:nth-of-type(2) {
    grid-column: 2;
  }

  .archive-panel:nth-of-type(3) {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .files-hero,
  .archive-panel {
    padding: 18px;
    border-radius: 10px;
  }

  .file-grid,
  .media-grid,
  .repo-grid {
    grid-template-columns: 1fr;
  }

  .repo-card ul {
    columns: 1;
  }

  .files-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }
}

@media (max-width: 980px) {
  .hero__content,
  .updates-grid,
  .resource-grid,
  .helpers-grid,
  .footer { grid-template-columns: 1fr; }

  .hero__content,
  .updates-grid { display: grid; }

  .resource-grid,
  .helpers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer { display: grid; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 16px, 1040px); padding-top: 12px; }
  .topbar { padding: 14px; border-radius: 20px; }
  .topbar,
  .topbar__links { flex-direction: column; align-items: flex-start; }
  .hero__content,
  .panel,
  .footer { padding: 14px; border-radius: 18px; }
  .hero h1 { max-width: none; font-size: clamp(1.9rem, 12vw, 3rem); }
  .resource-grid,
  .helpers-grid { grid-template-columns: 1fr; }
  .hero-card--image { min-height: 250px; }
}
