/* ==========================================================
   LADs.Fan — Love and Deepspace fan wiki
   Shared stylesheet: dark (default) + light themes
   ========================================================== */

:root {
  /* Dark theme (default) — the original color scheme */
  --bg: #0a0a14;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.11);
  --text: #eceaf6;
  --text-dim: #a9a5c4;
  --accent: #8f7bff;
  --accent-soft: rgba(143, 123, 255, 0.16);
  --header-bg: rgba(10, 10, 20, 0.75);
  --glow: rgba(64, 40, 120, 0.25);
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, "Segoe UI", Arial, sans-serif;
}

html[data-mode="light"] {
  --bg: #f7f5fc;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-strong: #ffffff;
  --border: rgba(48, 36, 92, 0.14);
  --text: #251f3d;
  --text-dim: #625a85;
  --accent: #5b45d6;
  --accent-soft: rgba(91, 69, 214, 0.1);
  --header-bg: rgba(250, 249, 254, 0.82);
  --glow: rgba(143, 123, 255, 0.12);
}

/* Per-character accents — dark mode */
body[data-theme="xavier"]  { --accent: #b9a7ff; --accent-soft: rgba(185, 167, 255, 0.16); }
body[data-theme="zayne"]   { --accent: #7fd8c9; --accent-soft: rgba(127, 216, 201, 0.14); }
body[data-theme="rafayel"] { --accent: #6ea8ff; --accent-soft: rgba(110, 168, 255, 0.16); }
body[data-theme="sylus"]   { --accent: #ff5a6a; --accent-soft: rgba(255, 90, 106, 0.14); }
body[data-theme="caleb"]   { --accent: #ff9d5c; --accent-soft: rgba(255, 157, 92, 0.15); }
body[data-theme="valko"]   { --accent: #c9b26a; --accent-soft: rgba(201, 178, 106, 0.14); }

/* Per-character accents — darkened for contrast on light backgrounds */
html[data-mode="light"] body[data-theme="xavier"]  { --accent: #6f52e0; --accent-soft: rgba(111, 82, 224, 0.1); }
html[data-mode="light"] body[data-theme="zayne"]   { --accent: #0d8a76; --accent-soft: rgba(13, 138, 118, 0.1); }
html[data-mode="light"] body[data-theme="rafayel"] { --accent: #2465d0; --accent-soft: rgba(36, 101, 208, 0.1); }
html[data-mode="light"] body[data-theme="sylus"]   { --accent: #cf2c40; --accent-soft: rgba(207, 44, 64, 0.09); }
html[data-mode="light"] body[data-theme="caleb"]   { --accent: #c9611b; --accent-soft: rgba(201, 97, 27, 0.1); }
html[data-mode="light"] body[data-theme="valko"]   { --accent: #8a6e1f; --accent-soft: rgba(138, 110, 31, 0.1); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, var(--glow), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  transition: background 0.25s, color 0.25s;
}

/* Starfield — dark mode only */
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.stars span {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.5;
  animation: twinkle 4s ease-in-out infinite;
}
html[data-mode="light"] .stars { display: none; }
@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.7; }
}

main, footer.site-footer { position: relative; z-index: 1; }

/* ---------- Reset timer bar ---------- */
.reset-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1.75rem;
  padding: 0.38rem clamp(1rem, 4vw, 2.5rem);
  /* Reserve one row of height even before JS fills the timers, so the
     page doesn't jump down on load. */
  min-height: 2rem;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
  position: relative;
  z-index: 51;
}
.reset-item { display: flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.reset-label {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reset-time {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 600;
}

/* ---------- Header ---------- */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}
.brand-logo {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  flex-shrink: 0;
}
.brand em { color: var(--accent); font-style: normal; }
.header-right { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.site-nav { display: flex; gap: 0.3rem; flex-wrap: wrap; align-items: center; }

/* Top-level pills: plain links and dropdown triggers share the same look */
.site-nav > a,
.nav-trigger {
  color: var(--text-dim);
  text-decoration: none;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 0;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s, background 0.2s;
}
.site-nav > a:hover,
.nav-trigger:hover { color: var(--text); background: var(--surface-strong); }
.site-nav > a.active,
.nav-trigger.active { color: var(--accent); background: var(--accent-soft); }

.caret {
  width: 0.4em;
  height: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-15%, -15%);
  transition: transform 0.2s;
}
.nav-item:hover .caret,
.nav-item.open .caret { transform: rotate(225deg) translate(-15%, -15%); }

/* Dropdown panels */
.nav-item { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 11.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.4rem;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 60;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-item:last-child .dropdown { left: auto; right: 0; }
.dropdown a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.dropdown a:hover { color: var(--text); background: var(--surface-strong); }
.dropdown a.active { color: var(--accent); background: var(--accent-soft); }

.theme-toggle {
  font: inherit;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}
.theme-toggle:hover { background: var(--surface-strong); transform: scale(1.06); }
.theme-toggle::before { content: "\2600"; }        /* sun — shown in dark mode */
html[data-mode="light"] .theme-toggle::before { content: "\263E"; } /* moon — shown in light mode */

/* ---------- Wiki layout: sidebar + article ---------- */
.layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 4vw, 2.5rem) 3rem;
}

.sidebar {
  position: sticky;
  top: 4.6rem;
  align-self: start;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  font-size: 0.88rem;
  padding-right: 0.5rem;
}
.sidebar h4 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 1.4rem 0 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}
.sidebar h4:first-child { margin-top: 0; }
.sidebar ul { list-style: none; }
.sidebar li { margin: 0.1rem 0; }
.sidebar a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s;
}
.sidebar a:hover { color: var(--text); background: var(--surface-strong); }
.sidebar a.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-left-color: var(--accent);
  border-radius: 0 8px 8px 0;
}

.article { min-width: 0; }

/* ---------- Article typography ---------- */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.page-title em { color: var(--accent); font-style: normal; }
.page-lede { color: var(--text-dim); max-width: 68ch; margin-top: 0.75rem; }
.article-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}
.article-meta .sep { margin: 0 0.4rem; opacity: 0.5; }

.section { margin-top: clamp(2rem, 5vw, 3rem); }
.section > h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.prose { color: var(--text-dim); max-width: 75ch; }
.prose p + p { margin-top: 0.9rem; }
.prose strong { color: var(--text); }
.prose a, .guide-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.crumb { font-size: 0.84rem; color: var(--text-dim); margin-bottom: 1rem; }
.crumb a { color: var(--accent); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- Infobox (wiki-style, floats right) ---------- */
.infobox {
  float: right;
  width: 290px;
  margin: 0.4rem 0 1.25rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.infobox-title {
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  padding: 0.55rem 0.8rem;
}
.infobox-emblem { display: grid; place-items: center; padding: 1.1rem 0 0.9rem; }
.infobox dl {
  display: grid;
  grid-template-columns: minmax(92px, 40%) 1fr;
}
.infobox dt, .infobox dd {
  padding: 0.5rem 0.85rem;
  border-top: 1px solid var(--border);
}
.infobox dt { color: var(--text-dim); font-weight: 600; font-size: 0.8rem; }
.infobox dd { margin: 0; }
.infobox-note {
  border-top: 1px solid var(--border);
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ---------- Table of contents ---------- */
.toc {
  display: inline-block;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.3rem;
  font-size: 0.88rem;
  margin-top: 1.25rem;
}
.toc strong {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.toc ol { margin: 0.45rem 0 0 1.2rem; }
.toc li { margin: 0.15rem 0; }
.toc a { color: var(--accent); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(1.5rem, 5vw, 3.5rem) 0 0.5rem; }
.hero .page-title { border-bottom: none; padding-bottom: 0; }
.hero-tag {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  margin-bottom: 1.1rem;
}
.hero-actions { margin-top: 1.5rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.93rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), #6a5bd8);
  color: #fff;
  box-shadow: 0 6px 24px var(--accent-soft);
}
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn:hover { transform: translateY(-2px); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.18s, border-color 0.2s, background 0.2s;
}
a.card { color: inherit; text-decoration: none; display: block; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--surface-strong); }
.card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.card p { color: var(--text-dim); font-size: 0.92rem; margin-top: 0.4rem; }
.card .meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.85rem; }

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid transparent;
}
.tag.outline { background: transparent; border-color: var(--border); color: var(--text-dim); }
.tag.warn { background: rgba(255, 176, 92, 0.14); color: #cf7a1f; }
html:not([data-mode="light"]) .tag.warn { color: #ffb05c; }

/* Character cards */
.char-card { position: relative; overflow: hidden; }
.char-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 180px at 90% -20%, var(--card-accent, var(--accent-soft)), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
html:not([data-mode="light"]) .char-card::before { opacity: 0.7; }
.char-emblem {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, var(--card-accent, var(--accent)), rgba(120, 100, 200, 0.55));
  box-shadow: 0 4px 14px rgba(20, 10, 50, 0.25);
}

.profile-emblem {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), rgba(120, 100, 200, 0.5));
  box-shadow: 0 8px 28px var(--accent-soft);
}

/* ---------- Notice ---------- */
.notice {
  border: 1px solid rgba(220, 150, 60, 0.45);
  background: rgba(255, 176, 92, 0.1);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #a86414;
  font-size: 0.94rem;
  margin-top: 1.25rem;
}
html:not([data-mode="light"]) .notice { color: #ffd9ab; border-color: rgba(255, 176, 92, 0.35); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 1.5rem; padding-left: 1.75rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}
.timeline-item { position: relative; padding: 0 0 1.8rem 1rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.75rem; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}
.timeline-item .date {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline-item h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-top: 0.2rem; }
.timeline-item p { color: var(--text-dim); font-size: 0.93rem; margin-top: 0.3rem; max-width: 68ch; }

.filter-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.filter-btn {
  font: inherit;
  font-size: 0.84rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.38rem 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* ---------- Guide pages ---------- */
.guide-body h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
  margin: 2.1rem 0 0.7rem;
}
.guide-body h3 { font-size: 1.08rem; margin: 1.4rem 0 0.5rem; }
.guide-body p, .guide-body li { color: var(--text-dim); }
.guide-body ul, .guide-body ol { padding-left: 1.4rem; margin-top: 0.5rem; }
.guide-body li + li { margin-top: 0.35rem; }
.guide-body table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  font-size: 0.91rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.guide-body th, .guide-body td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
.guide-body th {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Site banner (1500x375 header image) ---------- */
.site-banner {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 4vw, 2.5rem) 0;
  position: relative;
  z-index: 1;
}
.site-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px var(--accent-soft);
}

/* ---------- Gallery ---------- */
.gallery-preview, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.gallery-tile {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.18s, border-color 0.2s;
}
.gallery-tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.gallery-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.gallery-tile .cap {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 0.4rem 0.6rem;
  line-height: 1.4;
}
.gallery-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 1.4rem 1.5rem;
  grid-column: 1 / -1;
}
.gallery-empty code {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  padding: 0.05rem 0.35rem;
  font-size: 0.82em;
}
.gallery-more { margin-top: 0.9rem; font-size: 0.9rem; }
.gallery-more a { color: var(--accent); text-decoration: none; }
.gallery-more a:hover { text-decoration: underline; }

/* ---------- Memories (cards) ---------- */
.memories-preview, .memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}
.memory-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  transition: transform 0.18s, border-color 0.2s;f
}
.memory-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.memory-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.stella-icon { width: 20px; height: 20px; display: block; }
.memory-stars { color: #f0b429; font-size: 0.82rem; letter-spacing: 0.12em; white-space: nowrap; }
.memory-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0.5rem;
}
.memory-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.65rem; }
.tag.solar { background: rgba(240, 180, 41, 0.16); color: #b47d09; }
.tag.lunar { background: rgba(110, 140, 255, 0.16); color: #4d64c9; }
html:not([data-mode="light"]) .tag.solar { color: #f0b429; }
html:not([data-mode="light"]) .tag.lunar { color: #9db1ff; }

/* Stellactrum table in the guide */
.stella-row { display: flex; align-items: center; gap: 0.5rem; }
.stella-row .stella-icon { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 1.75rem clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.83rem;
  text-align: center;
}
.site-footer a { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    max-height: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
  }
}
@media (max-width: 680px) {
  .infobox { float: none; width: 100%; margin: 1.25rem 0; }
  .site-nav { order: 3; width: 100%; }
}
