/* ============================================================
   Site Kit — 冠竞体育 / 安博竞技
   文件：/assets/site.css
   职责：共享基础样式（页面特色布局由页面级 CSS 扩展）
   ============================================================ */

/* ---------- 1. Reset & Variables ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0A1F44;
  --gold: #D4AF37;
  --purple: #6A5ACD;
  --neon: #39FF14;
  --cream: #E8DCC4;
  --brown-black: #2B1A10;
  --steel: #1F2A44;
  --red: #C53B1F;
  --muted: #7C8A9D;
  --off-white: #F5F2EC;

  --font-heading: "Orbitron", "Segoe UI Semibold", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-data: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, monospace;
  --font-editorial: "Playfair Display", Georgia, "Songti SC", SimSun, serif;

  --container: 1280px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 2px;
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.35);
  --ease: 200ms ease-out;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: rgba(212, 175, 55, 0.25);
}

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

/* ---------- 2. Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--off-white);
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* 左右金边：整站框景 */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold) 55%, var(--purple) 100%);
  z-index: 9999;
  pointer-events: none;
}
body::before {
  left: 0;
}
body::after {
  right: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--off-white);
  font-weight: 800;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  color: var(--neon);
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

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

#main-content {
  min-height: 55vh;
  scroll-margin-top: 96px;
}

body.nav-lock {
  overflow: hidden;
}

@media (max-width: 600px) {
  body::before,
  body::after {
    width: 2px;
  }
  body {
    background-size: 32px 32px;
  }
}

/* ---------- 3. Container & Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.section {
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding-top: 4px;
  background-image:
    linear-gradient(180deg, rgba(31, 42, 68, 0.98) 0%, rgba(10, 31, 68, 0.98) 100%),
    linear-gradient(90deg, var(--gold) 0%, var(--gold) 60%, var(--purple) 100%);
  background-size: cover, 100% 4px;
  background-repeat: no-repeat, no-repeat;
  background-position: center top, left top;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.header-frame {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Brand */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-link:hover {
  color: inherit;
}

.brand-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--navy);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.brand-text {
  display: grid;
  gap: 0;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--off-white);
}

.brand-sub {
  font-family: var(--font-data);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-item {
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.5rem 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}
.nav-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-link[aria-current="page"] {
  color: var(--off-white);
  border-bottom-color: var(--purple);
  background: linear-gradient(to top, rgba(106, 90, 205, 0.22) 0%, transparent 55%);
}

.nav-index {
  font-family: var(--font-data);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--gold);
  opacity: 0.7;
}

.nav-label {
  line-height: 1.2;
}

/* Header tools */
.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-data);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid rgba(124, 138, 157, 0.3);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
}

.state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px rgba(57, 255, 20, 0.6);
}

.search-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(124, 138, 157, 0.35);
  padding: 0.35rem 0.7rem;
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  border-radius: 2px;
}
.search-hint::before {
  content: "⌕";
  font-size: 1rem;
  line-height: 1;
  color: var(--gold);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  z-index: 121;
  transition: background-color var(--ease), color var(--ease);
}
.nav-toggle:hover {
  background: var(--gold);
  color: var(--navy);
}

.nav-toggle-text {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

/* Header progress */
.header-progress {
  height: 2px;
  background: rgba(124, 138, 157, 0.18);
}

.header-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--neon) 100%);
  will-change: width;
}

/* ---------- 5. Responsive Header / Mobile Drawer ---------- */
@media (max-width: 1100px) {
  .header-state {
    display: none;
  }
}

@media (max-width: 920px) {
  .header-frame {
    min-height: 60px;
    gap: 1rem;
  }

  .search-hint,
  .header-state {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(78vw, 340px);
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    background: var(--steel);
    border-left: 2px solid var(--gold);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.4);
    padding: 5rem 1.75rem 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 250ms ease-out, visibility 250ms ease-out;
    overflow-y: auto;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.85rem 0.75rem;
    font-size: 1rem;
    color: var(--off-white);
    border-bottom: 1px solid rgba(124, 138, 157, 0.18);
    border-left: 3px solid transparent;
    background: none;
  }
  .nav-link:hover {
    background: rgba(106, 90, 205, 0.18);
    color: var(--gold);
    border-bottom-color: rgba(124, 138, 157, 0.18);
    border-left-color: var(--gold);
  }
  .nav-link[aria-current="page"] {
    background: rgba(106, 90, 205, 0.28);
    border-bottom-color: rgba(124, 138, 157, 0.18);
    border-left-color: var(--purple);
    color: var(--gold);
  }
}

@media (max-width: 480px) {
  .brand-text {
    display: none;
  }
  .brand-badge {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }
  .header-frame {
    padding: 0 0.75rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-top: 2px;
    background-size: cover, 100% 2px;
  }
  .site-footer {
    border-top-width: 2px;
  }
}

/* ---------- 6. Footer ---------- */
.site-footer {
  background-color: var(--navy);
  background-image: linear-gradient(180deg, rgba(31, 42, 68, 0.7) 0%, transparent 100px);
  border-top: 4px solid var(--gold);
  margin-top: 5rem;
}

.footer-frame {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem var(--gutter) 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-about {
  color: var(--off-white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.footer-trust {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.75;
  max-width: 34em;
}

.footer-nav,
.footer-legal,
.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  position: relative;
}
.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 28px;
  height: 2px;
  background: var(--neon);
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--ease), padding-left var(--ease);
}
.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-contact-list {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}
.footer-contact-list li::before {
  content: "›";
  margin-right: 0.35rem;
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(124, 138, 157, 0.2);
  margin-top: 1.5rem;
  padding: 1.25rem 0 1.5rem;
  background: rgba(10, 31, 68, 0.9);
}

.footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--muted);
}

.footer-copy {
  margin: 0;
}

.footer-icp {
  margin: 0;
}

.footer-note {
  flex-basis: 100%;
  margin: 0.5rem 0 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  border-left: 2px solid var(--purple);
  padding-left: 0.75rem;
}

/* ---------- 7. Top Button ---------- */
.top-button {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ease), visibility var(--ease);
}

.top-button.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.top-button::before,
.top-button::after {
  content: "";
  position: absolute;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition: background-color var(--ease);
}

.top-button::before {
  inset: 0;
  background: var(--gold);
}

.top-button::after {
  inset: 3px;
  background: var(--navy);
}

.top-button:hover::after {
  background: var(--gold);
}

.top-button-icon {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
  transition: color var(--ease);
}

.top-button:hover .top-button-icon {
  color: var(--navy);
}

@media (max-width: 600px) {
  .top-button {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 40px;
    height: 40px;
  }
  .top-button::after {
    inset: 2px;
  }
}

/* ---------- 8. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 99999;
  background: var(--gold);
  color: var(--navy);
  padding: 0.85rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: top var(--ease);
}
.skip-link:focus {
  top: 0;
}

/* ---------- 9. Common Components ---------- */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.btn:hover {
  background: transparent;
  color: var(--gold);
}

.btn--ghost {
  background: transparent;
  color: var(--off-white);
  border-color: var(--muted);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--accent {
  background: transparent;
  border-color: var(--purple);
  color: var(--purple);
}
.btn--accent:hover {
  background: var(--purple);
  color: var(--off-white);
}

/* Breadcrumb */
.breadcrumb {
  margin: 0 0 2rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb li + li::before {
  content: "/";
  margin: 0 0.6rem;
  color: var(--muted);
  opacity: 0.6;
}
.breadcrumb a {
  color: var(--purple);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb [aria-current="page"] {
  color: var(--muted);
}

/* Section headings */
.section-head {
  margin-bottom: 2rem;
  position: relative;
}

.section-kicker {
  display: block;
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 0.4rem;
}
.section-kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--off-white);
  margin: 0 0 0.5rem;
}
.section-title--gold {
  color: var(--gold);
}

.section-desc {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 60ch;
}

/* Cards */
.card {
  background: var(--steel);
  border: 1px solid rgba(124, 138, 157, 0.25);
  border-top: 3px solid var(--purple);
  padding: 1.5rem;
  color: var(--off-white);
  box-shadow: var(--shadow-hard);
}

.card--cream {
  background: var(--cream);
  border-top-color: var(--gold);
  color: var(--brown-black);
}
.card--cream .card-title {
  color: var(--brown-black);
}
.card--cream .card-text {
  color: var(--brown-black);
  opacity: 0.85;
}
.card--cream .card-meta {
  color: var(--brown-black);
  opacity: 0.6;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: 0.6rem;
}

.card-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--off-white);
  opacity: 0.9;
}

.card-meta {
  display: block;
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* Tags */
.tag {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--muted);
  border-radius: 2px;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--hot {
  color: var(--red);
  border-color: var(--red);
}
.tag--status {
  color: var(--neon);
  border-color: var(--neon);
}
.tag--gold {
  color: var(--gold);
  border-color: var(--gold);
}

/* Fold panels (details/summary) */
.panel {
  background: var(--steel);
  border: 1px solid rgba(124, 138, 157, 0.25);
  border-left: 3px solid var(--purple);
  margin-bottom: 1rem;
}
.panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--off-white);
  list-style: none;
  transition: background-color var(--ease);
}
.panel summary::-webkit-details-marker {
  display: none;
}
.panel summary:hover {
  background: rgba(106, 90, 205, 0.12);
}
.panel summary::after {
  content: "+";
  font-family: var(--font-data);
  font-size: 1.1rem;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}
.panel[open] summary::after {
  content: "—";
}
.panel-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}
.panel-body > :last-child {
  margin-bottom: 0;
}

/* Article rows */
.article-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid rgba(124, 138, 157, 0.2);
  color: var(--off-white);
  text-decoration: none;
  transition: background-color var(--ease);
}
.article-row:hover {
  background: rgba(106, 90, 205, 0.1);
}
.article-row-date {
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}
.article-row-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
.article-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .article-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .article-row-tags {
    justify-content: flex-start;
  }
}

/* Image frames */
.image-frame {
  position: relative;
  display: block;
  width: 100%;
  background: var(--steel);
  border: 2px solid var(--gold);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-frame--16x9 {
  aspect-ratio: 16 / 9;
}
.image-frame--portrait {
  aspect-ratio: 3 / 4;
}
.image-frame[data-placeholder] {
  display: grid;
  place-items: center;
  min-height: 160px;
  border-style: dashed;
  background-image: repeating-linear-gradient(
    135deg,
    var(--steel) 0px,
    var(--steel) 12px,
    var(--navy) 12px,
    var(--navy) 24px
  );
}
.image-frame[data-placeholder]::after {
  content: attr(data-placeholder);
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem;
  text-align: center;
}

/* Grids */
.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--2-1 {
  grid-template-columns: 2fr 1fr;
}
.grid--1-2 {
  grid-template-columns: 1fr 2fr;
}

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

/* Frame window */
.frame-window {
  position: relative;
  border: 2px solid var(--gold);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, rgba(31, 42, 68, 0.92) 0%, rgba(10, 31, 68, 0.75) 100%);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}
.frame-window::before,
.frame-window::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--neon);
  pointer-events: none;
}
.frame-window::before {
  top: -2px;
  left: -2px;
  border-top-width: 3px;
  border-left-width: 3px;
}
.frame-window::after {
  bottom: -2px;
  right: -2px;
  border-bottom-width: 3px;
  border-right-width: 3px;
}

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-data);
  font-size: 0.78rem;
}
.data-table caption {
  text-align: left;
  padding: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--gold);
  caption-side: top;
}
.data-table th {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}
.data-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(124, 138, 157, 0.18);
  color: var(--off-white);
}
.data-table tbody tr:hover td {
  background: rgba(106, 90, 205, 0.08);
}
