/* /css/min.css — compact fallback stylesheet */

:root {
  --bg: #0e1014;
  --surface: #151922;
  --text: #e9eef8;
  --muted: #9aa7bd;
  --accent: #3b7cff;
  --stroke: #222939;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,16,20,.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--stroke);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.brand .logo {
  width: 28px;
  height: 28px;
}
.brand .logo svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  display: block;
}

nav[aria-label="Main"] {
  display: flex;
  gap: 12px;
}
nav[aria-label="Main"] a {
  color: #cfe0ff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}
nav[aria-label="Main"] a:hover {
  background: #182237;
}

.hero {
  padding: 40px 20px;
  background: linear-gradient(120deg,#1c2333,#0f141f);
  border-radius: 12px;
  margin: 20px 0;
}
.hero h1 {
  font-size: clamp(24px, 5vw, 40px);
  margin: 0 0 10px;
}
.hero p {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 700px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 16px;
  margin: 20px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  overflow: hidden;
}
.card .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.card .body {
  padding: 12px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.section-title {
  margin: 24px 0 12px;
  font-size: 1.2rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: 8px;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  font-size: 0.9rem;
}
th {
  background: #141b29;
  color: #cfe0ff;
}

footer {
  margin-top: 40px;
  padding: 20px;
  font-size: 0.85rem;
  color: #8593ad;
  border-top: 1px solid var(--stroke);
  text-align: center;
}
/* Light theme tokens */
:root[data-theme="light"] {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #0d1320;
  --muted: #566073;
  --accent: #2b6cff;
  --stroke: #e6e9f0;
}

/* Light-specific surfaces that used semi-transparent dark backgrounds */
:root[data-theme="light"] header {
  background: rgba(255,255,255,.9);
  border-bottom-color: var(--stroke);
}
:root[data-theme="light"] nav[aria-label="Main"] a:hover {
  background: #eef3ff;
}
:root[data-theme="light"] th {
  background: #f1f4fa;
  color: #223;
}

/* Improve contrast in LIGHT theme */
:root[data-theme="light"] .hero {
  color: #ecf2ff;               /* headings / default text on hero */
}
:root[data-theme="light"] .hero h1 {
  color: #ffffff;               /* brighter title */
}
:root[data-theme="light"] .hero p {
  color: #c8d3ea;               /* readable subtitle */
}

/* Make visited links not purple in the drawer */
.drawer a,
.drawer a:visited {
  color: var(--text);
}

/* (Optional) general anchor color inherit to prevent purple anywhere */
a:visited { color: inherit; }