/* --- Base layout --- */
:root {
  /* Dark theme (default) */
  --bg: #050715;
  --bg-alt: #0b0f26;
  --card-bg: rgba(10, 16, 40, 0.95);
  --accent: #ffcc00;
  --accent-soft: rgba(255, 204, 0, 0.12);
  --accent-2: #4cd1ff;
  --text: #f5f7ff;
  --muted: #4b5563;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.65);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --blur-bg: 20px;
}

:root[data-theme="light"] {
  --bg: #f9fafb;
  --bg-alt: #e5e7eb;
  --card-bg: #ffffff;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --accent-2: #2563eb;
  --text: #111827;
  --muted: #6b7280;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #1a254a 0, transparent 55%),
    radial-gradient(circle at bottom right, #3a1541 0, transparent 55%),
    var(--bg);
}

html[data-theme="light"],
html[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, #e5e7eb 0, transparent 55%),
    radial-gradient(circle at bottom right, #e5e7eb 0, transparent 55%),
    var(--bg);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- Header / Hero --- */
.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 21, 0.95),
    rgba(5, 7, 21, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .page-header {
  background: linear-gradient(
    to bottom,
    rgba(249, 250, 251, 0.95),
    rgba(249, 250, 251, 0.9),
    transparent
  );
  border-bottom-color: rgba(148, 163, 184, 0.7);
}

.page-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-orb {
  max-height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.logo-img {
  height: 52px;
  width: auto;
  border-radius: inherit;
  object-fit: contain;
  display: block;
}

.page-title-wrap {
  display: block;
}

.page-title {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.page-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-chips {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.theme-toggle {
  margin-left: 10px;
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  align-self: flex-start;
}

html[data-theme="light"] .theme-toggle {
  background: #ffffff;
  color: #111827;
  border-color: rgba(148, 163, 184, 0.7);
}

.theme-toggle-icon {
  font-size: 0.9rem;
}

/* Mobile header layout */
@media (max-width: 720px) {
  .page-header-inner {
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    padding: 10px 16px 8px;
  }

  .logo-orb {
    flex-shrink: 0;
  }

  .logo-img {
    height: 40px;
  }

  .page-title-wrap {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .page-title {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .page-subtitle {
    display: none;
  }

  .theme-toggle {
    margin-left: auto;
    flex-shrink: 0;
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .nav-chips {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 8px 16px;
    background: linear-gradient(
      to bottom,
      rgba(5, 7, 21, 0.98),
      rgba(5, 7, 21, 0.95)
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    justify-content: flex-start;
  }

  html[data-theme="light"] .nav-chips {
    background: linear-gradient(
      to bottom,
      rgba(249, 250, 251, 0.98),
      rgba(249, 250, 251, 0.95)
    );
    border-bottom-color: rgba(148, 163, 184, 0.7);
  }

  .nav-chips::-webkit-scrollbar {
    display: none;
  }

  .nav-chip {
    padding: 4px 8px;
    font-size: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-chip-dot {
    width: 5px;
    height: 5px;
  }
}

.nav-chip {
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.09), transparent 55%),
    rgba(4, 7, 28, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

html[data-theme="light"] .nav-chip {
  border-color: rgba(148, 163, 184, 0.6);
  background: #ffffff;
  color: #4b5563;
}

.nav-chip span {
  opacity: 0.8;
}

.nav-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

html[data-theme="light"] .nav-chip-dot {
  background: #9ca3af;
  box-shadow: 0 0 0 2px rgba(209, 213, 219, 0.9);
}

.nav-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 204, 0, 0.7);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(32, 54, 131, 0.8);
}

.nav-chip.active {
  border-color: var(--accent);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.16), transparent 55%),
    rgba(10, 12, 40, 0.98);
  color: #fff;
}

html[data-theme="light"] .nav-chip.active {
  background: linear-gradient(135deg, #fbbf24, #60a5fa);
  color: #111827;
  border-color: transparent;
}

.nav-chip.active .nav-chip-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.25);
}

/* --- Content cards --- */
.hero-card {
  margin-top: 22px;
  margin-bottom: 26px;
  padding: 22px 20px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(135deg, rgba(25, 31, 70, 0.96), rgba(7, 10, 34, 0.96));
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 22px;
}

html[data-theme="light"] .hero-card {
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.7), transparent 55%),
    linear-gradient(135deg, #ffffff, #e5e7eb);
}

@media (max-width: 820px) {
  .hero-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .hero-kicker {
  background: #f3f4f6;
  border-color: rgba(148, 163, 184, 0.7);
  color: #374151;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow:
    0 0 0 4px rgba(255, 204, 0, 0.22),
    0 0 24px rgba(255, 204, 0, 0.6);
}

.hero-title {
  margin: 12px 0 10px;
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  line-height: 1.1;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.hero-title span.highlight {
  background: linear-gradient(120deg, #ffea7f, #ff9ce6, #5fd9ff);
  background-clip: text;
  color: transparent;
}

.hero-lede {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(235, 238, 255, 0.9);
}

html[data-theme="light"] .hero-lede {
  color: #374151;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-pill {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(5, 10, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

html[data-theme="light"] .hero-pill {
  background: #f3f4f6;
  border-color: rgba(148, 163, 184, 0.7);
}

.card-mock {
  aspect-ratio: 2.5 / 3.5;
  border-radius: 16px;
  padding: 6px;
  background: radial-gradient(circle at 10% 0, #fff 0, #ffe69a 30%, #ff9cf0 60%, #30418b 100%);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.75),
    0 0 30px rgba(255, 214, 102, 0.45);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-24px) scale(0.96);
  animation: cardEnter 640ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.card-mock-inner {
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 6px;
  color: #fff;
}

html[data-theme="light"] .card-mock-inner {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.7);
  color: #111827;
}

.card-mock:nth-child(1) {
  animation-delay: 0.05s;
}
.card-mock:nth-child(2) {
  animation-delay: 0.22s;
}
.card-mock:nth-child(3) {
  animation-delay: 0.39s;
}

.card-mock-title {
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.card-mock-image {
  flex: 1;
  border-radius: 8px;
  background: radial-gradient(circle at 20% 0, #fff 0, #ffe9b3 24%, #ff9bd9 60%, #283266 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-mock-image img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.card-mock-image--zoom img {
  object-fit: cover;
}

.card-mock-text {
  font-size: 0.55rem;
  color: rgba(235, 238, 255, 0.92);
  line-height: 1.3;
}

html[data-theme="light"] .card-mock-text {
  color: #4b5563;
}

.card-mock:nth-child(2) {
  transform: translateY(12px) rotate(-4deg);
}
.card-mock:nth-child(3) {
  transform: translateY(-10px) rotate(5deg);
}

.card-mock::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* --- Sections & tables --- */
section {
  margin-bottom: 28px;
}

.section-card {
  padding: 20px 18px 18px;
  border-radius: var(--radius-lg);
  background: rgba(4, 7, 28, 0.9);
  border: 1px solid var(--border-subtle);
}

html[data-theme="light"] .section-card {
  background: #ffffff;
  backdrop-filter: blur(var(--blur-bg));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 650;
}

.section-tag {
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.section-date {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

html[data-theme="light"] .section-date {
  color: var(--muted);
}

@media (max-width: 640px) {
  .section-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .section-date {
    margin-left: 0;
    width: 100%;
    text-align: right;
    font-size: 0.73rem;
  }
}

.section-intro {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.tome-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  /* When used inside the hero-card CSS grid, span across both columns */
  grid-column: 1 / -1;
}

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

@keyframes cardEnter {
  0% {
    opacity: 0;
    transform: translateY(-32px) scale(0.9) rotate(-2deg);
  }
  60% {
    opacity: 1;
    transform: translateY(4px) scale(1.02) rotate(0.4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.tome-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  margin: 0;
}

html[data-theme="light"] .tome-card {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.tome-card img {
  padding-top: 15px;
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.15), transparent 70%);
}

.tome-card-caption {
  padding: 8px 10px 9px;
  font-size: 0.8rem;
  color: var(--muted);
}

.cards-overview {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 18px;
  align-items: flex-start;
}

@media (max-width: 880px) {
  .cards-overview {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cards-overview-main {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .cards-overview-main {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.cards-overview-main img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cards-overview-main figcaption {
  padding: 9px 12px 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.cards-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.card-thumb {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
}

html[data-theme="light"] .card-thumb {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.card-thumb img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-thumb figcaption {
  padding: 6px 8px 7px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* --- Lightbox --- */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.lightbox-backdrop.is-visible {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: min(960px, 94vw);
  max-height: 86vh;
  border-radius: 18px;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.12), transparent 55%),
    #020617;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightbox-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  border-radius: 12px;
}

.lightbox-caption {
  font-size: 0.82rem;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.9rem;
}

.lightbox-close:hover {
  background: rgba(30, 64, 175, 0.95);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 0.86rem;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] table {
  background: #ffffff;
  border-color: #9ca3af;
}

thead {
  background: linear-gradient(
    135deg,
    rgba(255, 204, 0, 0.2),
    rgba(92, 215, 255, 0.2)
  );
}

html[data-theme="light"] thead {
  background: linear-gradient(135deg, #fef3c7, #dbeafe);
}

th,
td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] th,
html[data-theme="light"] td {
  border-bottom-color: rgba(148, 163, 184, 0.3);
}

th {
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(243, 244, 255, 0.92);
}

html[data-theme="light"] th {
  color: #111827;
}

tbody tr:nth-child(odd) {
  background: rgba(10, 16, 40, 0.9);
}

tbody tr:nth-child(even) {
  background: rgba(9, 13, 34, 0.8);
}

html[data-theme="light"] tbody tr:nth-child(odd) {
  background: #ffffff;
}

html[data-theme="light"] tbody tr:nth-child(even) {
  background: #f9fafb;
}

tbody tr.highlight-row {
  background: linear-gradient(
    90deg,
    rgba(255, 204, 0, 0.14),
    rgba(92, 215, 255, 0.1)
  );
}

td small {
  color: var(--muted);
  font-size: 0.8em;
}

/* Hide Japanese title column on mobile */
@media (max-width: 720px) {
  table th:nth-child(2),
  table td:nth-child(2) {
    display: none;
  }
}

em {
  font-style: italic;
}

.note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.note strong {
  color: rgba(248, 250, 252, 0.96);
}

.volume-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

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

.volume-images-placeholder {
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  padding: 10px 11px;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.08), transparent 55%),
    rgba(2, 6, 23, 0.8);
  font-size: 0.8rem;
  color: var(--muted);
}

html[data-theme="light"] .volume-images-placeholder {
  background: #f9fafb;
  border-color: rgba(148, 163, 184, 0.6);
}

.volume-images-placeholder-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(248, 250, 252, 0.94);
}

.volume-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.volume-badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: #facc15;
}

.volume-badge.alt {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
}

.volume-images-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.volume-image-card {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
  cursor: zoom-in;
}

html[data-theme="light"] .volume-image-card {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.volume-image-card img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

/* Show full-height card artworks inside the aside block (e.g. Mankey card) */
.volume-images-placeholder .volume-image-card img {
  height: auto;
  object-fit: contain;
}

.volume-image-card figcaption {
  padding: 6px 8px 7px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* --- References --- */
.references-list {
  margin-top: 14px;
}

.references-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.references-list li {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

html[data-theme="light"] .references-list li {
  background: #f9fafb;
  border-color: rgba(148, 163, 184, 0.4);
}

.references-list li:hover {
  background: rgba(10, 16, 40, 0.85);
  border-color: rgba(255, 204, 0, 0.3);
  transform: translateX(4px);
}

html[data-theme="light"] .references-list li:hover {
  background: #ffffff;
  border-color: rgba(245, 158, 11, 0.4);
}

.references-list a {
  color: var(--accent-2);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  line-height: 1.5;
}

.references-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --- Footer --- */
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 26px;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 640px) {
  footer {
    flex-direction: column;
  }
}


