/* ============================================
   博业体育 · Shared Site CSS
   Designed as a matchday intelligence archive
   ============================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg-deep: #0A0E17;
  --bg-surface: #111827;
  --bg-elevated: #1A2233;
  --primary: #C6FF00;
  --secondary: #00E5FF;
  --accent: #FF5A36;
  --data-amber: #FFB800;
  --text-primary: #E5EDF5;
  --text-secondary: #9AA7B8;
  --border-line: #243044;

  --font-heading: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", "Consolas", "Liberation Mono", monospace;

  --header-h: 4.5rem;
  --container-max: 1440px;
  --container-pad: clamp(1.25rem, 4vw, 3.5rem);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--border-line) var(--bg-deep);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

address {
  font-style: normal;
}

::selection {
  background: var(--primary);
  color: var(--bg-deep);
}

::-moz-selection {
  background: var(--primary);
  color: var(--bg-deep);
}

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 0.625rem;
  height: 0.625rem;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border-line);
  border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 960px;
}

.section {
  padding-block: clamp(2.5rem, 8vw, 6rem);
}

.section--tight {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.first-section {
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem));
}

#main-content {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: -4.5rem;
  left: 1rem;
  z-index: 300;
  display: inline-block;
  padding: 0.875rem 1.25rem;
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--bg-deep);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header[data-scrolled] {
  background: var(--bg-deep);
  border-bottom-color: var(--border-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.site-header__progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 210;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 85%);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4), 0 0 4px rgba(198, 255, 0, 0.4);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  text-decoration: none;
}

.site-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary);
  color: var(--bg-deep);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 900;
  transform: skewX(-8deg);
  transition: background 0.2s ease;
}

.site-brand:hover .site-brand__mark {
  background: var(--secondary);
}

.site-brand__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ---------- Main navigation ---------- */
.site-nav {
  margin-inline: auto;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.125rem, 2vw, 2rem);
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: inline-block;
  position: relative;
  padding: 0.5rem 0 0.625rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.25s ease;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--primary);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ---------- Header utility ---------- */
.site-header__utility {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-search {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 180px;
  padding: 0.4375rem 0.75rem;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid var(--border-line);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1;
  cursor: default;
  transition: border-color 0.2s ease;
}

.site-search:hover {
  border-color: var(--secondary);
}

.site-search__icon {
  position: relative;
  width: 0.6875rem;
  height: 0.6875rem;
  border: 1.5px solid var(--secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

.site-search__icon::after {
  content: "";
  position: absolute;
  right: -0.3125rem;
  bottom: -0.1875rem;
  width: 0.375rem;
  height: 1.5px;
  background: var(--secondary);
  transform: rotate(45deg);
}

.site-search__text {
  white-space: nowrap;
}

.site-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5625rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--primary);
  border: 1px solid var(--primary);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-cta:hover {
  background: var(--primary);
  color: var(--bg-deep);
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5625rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-line);
  color: var(--text-primary);
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--secondary);
  background: rgba(17, 24, 39, 0.9);
}

.nav-toggle__bars {
  display: grid;
  gap: 0.375rem;
}

.nav-toggle__bar {
  display: block;
  width: 1.375rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Responsive header & nav ---------- */
@media (max-width: 1100px) {
  .site-header__inner {
    gap: 1rem;
  }

  .site-search {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 var(--container-pad) 1.25rem;
    background: rgba(10, 14, 23, 0.97);
    border-bottom: 1px solid var(--border-line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .site-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    display: block;
    padding: 0.9375rem 0;
    font-size: 0.9375rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border-line);
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link[aria-current="page"] {
    color: var(--primary);
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary);
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 4rem;
  }

  .site-cta {
    padding: 0.5rem 0.75rem;
    font-size: 0.6875rem;
  }

  .site-brand__name {
    font-size: 1rem;
  }

  .site-brand__mark {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-top: clamp(3rem, 7vw, 5rem);
  background:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    var(--bg-deep);
  background-size: 40px 40px, 40px 40px, auto;
  border-top: 1px solid var(--border-line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 45%, transparent 100%);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.site-footer__brand {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.site-footer__logo {
  justify-self: start;
  display: inline-block;
  padding: 0.5rem 0.75rem 0.5rem 0.875rem;
  background: var(--bg-surface);
  border-left: 6px solid var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__logo:hover {
  color: var(--primary);
  border-left-color: var(--secondary);
}

.site-footer__slogan {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--secondary);
}

.site-footer__trust {
  margin-top: 0.75rem;
  padding: 0.75rem 0.875rem;
  max-width: 36em;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border: 1px dashed var(--border-line);
}

.site-footer__trust::before {
  content: "↻ ";
  font-family: var(--font-mono);
  color: var(--primary);
}

.site-footer__col {
  min-width: 0;
}

.site-footer__col--contact {
  overflow-wrap: anywhere;
}

.site-footer__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.site-footer__heading::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  flex-shrink: 0;
}

.site-footer__list {
  display: grid;
  gap: 0.625rem;
}

.site-footer__list a {
  display: inline-block;
  padding: 0.125rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

.site-footer__list a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  padding-left: 0.375rem;
}

.site-footer__contact {
  display: grid;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.site-footer__contact p {
  padding-left: 1rem;
  border-left: 2px solid var(--border-line);
}

.site-footer__contact p:first-child {
  border-left-color: var(--secondary);
  color: var(--text-primary);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem 1.5rem;
  padding-block: 1.375rem;
  border-top: 1px solid var(--border-line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.site-footer__copyright [data-year] {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Section head ---------- */
.section-head {
  position: relative;
  display: grid;
  gap: 0.625rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding-top: 1.25rem;
}

.section-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 4px;
  background: var(--primary);
  box-shadow: calc(3rem + 8px) 0 0 var(--secondary);
}

.section-head__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
}

.section-head__title {
  font-size: clamp(1.625rem, 3.4vw, 2.75rem);
  text-transform: uppercase;
}

.section-head__title em {
  font-style: normal;
  color: var(--primary);
}

.section-head__desc {
  max-width: 46em;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

@media (max-width: 1100px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Card ---------- */
.card {
  position: relative;
  display: grid;
  gap: 0.875rem;
  align-content: start;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: rgba(0, 229, 255, 0.6);
  background: var(--bg-elevated);
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--text-primary);
}

.card__body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0 rgba(0, 229, 255, 0.08);
  }
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-line);
  background: transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tag--primary {
  color: var(--bg-deep);
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
}

.tag--blue {
  color: var(--bg-deep);
  background: var(--secondary);
  border-color: var(--secondary);
  font-weight: 700;
}

.tag--amber {
  color: var(--bg-deep);
  background: var(--data-amber);
  border-color: var(--data-amber);
  font-weight: 700;
}

.tag--outline-blue {
  color: var(--secondary);
  border-color: var(--secondary);
}

.tag:not(.tag--primary):not(.tag--blue):not(.tag--amber):hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 2.875rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-line);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-deep);
}

.btn--primary:hover {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--secondary {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn--secondary:hover {
  background: var(--secondary);
  color: var(--bg-deep);
  border-color: var(--secondary);
}

.btn--ghost {
  border-color: transparent;
  color: var(--text-secondary);
  padding-inline: 0.25rem;
}

.btn--ghost:hover {
  color: var(--primary);
  border-color: transparent;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

/* ---------- Arrow link ---------- */
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 255, 0, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.link-line::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform 0.2s ease;
}

.link-line:hover {
  border-bottom-color: var(--primary);
}

.link-line:hover::after {
  transform: translateX(4px);
}

/* ---------- Data number ---------- */
.data-num {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.data-num--blue {
  color: var(--secondary);
}

.data-num--amber {
  color: var(--data-amber);
}

.data-num--lg {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Data table ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-line);
  background: var(--bg-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-surface);
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-line);
  white-space: nowrap;
}

.data-table thead th {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-elevated);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: rgba(198, 255, 0, 0.05);
}

.data-table td.num,
.data-table th.num {
  text-align: right;
  font-weight: 700;
  color: var(--primary);
}

.data-table td.blue {
  color: var(--secondary);
}

.data-table td.amber {
  color: var(--data-amber);
}

.data-table td:first-child {
  font-weight: 700;
  color: var(--text-primary);
}

/* ---------- Accordion ---------- */
.accordion {
  border: 1px solid var(--border-line);
  background: var(--bg-surface);
  transition: border-color 0.2s ease;
}

.accordion + .accordion {
  margin-top: -1px;
}

.accordion:hover {
  border-color: rgba(0, 229, 255, 0.45);
}

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1.125rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary:hover {
  color: var(--primary);
}

.accordion summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--secondary);
  transition: transform 0.25s ease, color 0.25s ease;
}

.accordion[open] summary::after {
  transform: rotate(45deg);
  color: var(--primary);
}

.accordion__body {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ---------- Index map ---------- */
.index-map {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border-line);
  background: var(--border-line);
}

.index-map__item {
  grid-column: span 4;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--bg-surface);
  transition: background 0.2s ease;
}

.index-map__item:hover {
  background: var(--bg-elevated);
}

.index-map__item a {
  text-decoration: none;
  color: inherit;
}

.index-map__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--secondary);
}

.index-map__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
}

.index-map__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.index-map__arrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--primary);
}

.index-map__item:hover .index-map__arrow {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .index-map__item {
    grid-column: span 6;
  }
}

@media (max-width: 560px) {
  .index-map__item {
    grid-column: span 12;
  }
}

/* ---------- File divider ---------- */
.file-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.file-divider::before,
.file-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-line);
}

.file-divider::after {
  flex: 0.5;
  background: linear-gradient(90deg, var(--border-line), var(--primary));
}

/* ---------- Media / image placeholder ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-surface);
  background-image:
    linear-gradient(0deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 1px solid var(--border-line);
}

.media--4x3 {
  aspect-ratio: 4 / 3;
}

.media--square {
  aspect-ratio: 1 / 1;
}

.media--21x9 {
  aspect-ratio: 21 / 9;
}

.media::after {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-top: 2px solid var(--secondary);
  border-right: 2px solid var(--secondary);
  opacity: 0.7;
  pointer-events: none;
}

.media img,
.media picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--placeholder {
  display: flex;
  align-items: flex-end;
  padding: 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background-image:
    linear-gradient(0deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(198, 255, 0, 0.06), transparent 40%);
  background-size: 32px 32px, 32px 32px, auto;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--secondary);
}

.breadcrumb__sep {
  color: var(--border-line);
}

.breadcrumb__current {
  color: var(--text-primary);
}

/* ---------- Prose ---------- */
.prose {
  max-width: 68ch;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose h2,
.prose h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.prose h2 {
  font-size: 1.625rem;
}

.prose h3 {
  font-size: 1.275rem;
}

.prose a {
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.4);
  transition: border-color 0.2s ease;
}

.prose a:hover {
  border-bottom-color: var(--secondary);
}

.prose ul {
  list-style: none;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.625rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.375rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78125rem;
  width: 0.625rem;
  height: 2px;
  background: var(--secondary);
}

.prose ol {
  list-style: none;
  counter-reset: prose-list;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.625rem;
}

.prose ol li {
  counter-increment: prose-list;
  position: relative;
  padding-left: 2.375rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

.prose ol li::before {
  content: counter(prose-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--primary);
}

/* ---------- Hero cover ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 4rem) var(--container-pad) clamp(3rem, 8vw, 6rem);
}

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 10em;
}

.hero__title .accent {
  color: var(--primary);
}

.hero__lede {
  margin-top: 1.75rem;
  max-width: 42em;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero__index a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border-line);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero__index a::before {
  content: "→";
  color: var(--primary);
}

.hero__index a:hover {
  color: var(--text-primary);
  border-color: var(--secondary);
  background: rgba(0, 229, 255, 0.06);
}

/* ---------- Utilities ---------- */
.skew {
  display: inline-block;
  transform: skewX(-5deg);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover,
  .btn:hover,
  .index-map__item:hover .index-map__arrow,
  .link-line:hover::after {
    transform: none;
  }
}
