/* Fonts loaded via <link> tags in each HTML file */

/* ── Design tokens ── */
:root {
  --bg: #f7f3e9;
  --bg-alt: #fff8eb;
  --bg-surface: #ffffff;
  --ink: #112026;
  --ink-soft: #3c5259;
  --ink-muted: #7a8f96;
  --ink-label: #5b7178;
  --teal: #0b7a74;
  --teal-light: #e6f5f4;
  --teal-dark: #065550;
  --amber: #e68a00;
  --amber-light: #fff4e0;
  --red: #c0392b;
  --red-light: #fef0ee;
  --green: #2f8f4e;
  --green-ink: #1d6738;
  --green-light: #e9f8ef;
  --gold: #d4a017;
  --gold-light: #fdf6e3;
  --line: #e8e4da;
  --line-soft: #f0ede5;
  --card: #ffffff;
  --focus: #0f4dff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 8px rgba(17,32,38,0.05);
  --shadow: 0 4px 20px rgba(17,32,38,0.07);
  --shadow-lg: 0 8px 40px rgba(17,32,38,0.10);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --nav-height: 64px;
  --touch-min: 44px;
  --max-width: 480px;
  --max-width-lg: 960px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -40px;
  background: var(--bg-surface);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  z-index: 200;
}

.skip-link:focus {
  top: var(--space-sm);
}

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

img { max-width: 100%; display: block; }

h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.15; margin-bottom: var(--space-sm); }
h2 { font-size: 1.25rem; font-weight: 600; line-height: 1.2; margin-bottom: var(--space-sm); }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.25; margin-bottom: var(--space-xs); }
p { color: var(--ink-soft); margin-bottom: var(--space-sm); }
small { font-size: 0.85rem; color: var(--ink-label); }

/* ── App shell (mobile-first) ── */
.app-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md) calc(var(--nav-height) + var(--space-xl));
  min-height: 100dvh;
}

/* ── Bottom tab navigation (spec: 5-item nav) ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-surface);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 var(--space-sm);
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(17,32,38,0.06);
}

.bottom-nav a, .bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-label);
  background: none;
  border: none;
  padding: var(--space-xs) var(--space-sm);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
  line-height: 1.2;
}

.bottom-nav a.active, .bottom-nav button.active,
.bottom-nav a:hover, .bottom-nav button:hover {
  color: var(--teal);
}

.bottom-nav .nav-icon {
  font-size: 1.3rem;
  line-height: 1;
}

/* ── Top header bar ── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-md);
}

.top-bar .logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--teal);
  text-decoration: none;
}

.top-bar .actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

/* ── Desktop navigation (visible at tablet+, replaces bottom-nav) ── */
.desktop-nav {
  display: none;
}


.public-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-md) var(--space-2xl);
}

.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) 0 var(--space-md);
}

.public-header .brand-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cluster-nav, .utility-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.cluster-nav a, .utility-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.cluster-label {
  color: var(--ink-label);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-grid {
  display: grid;
  gap: var(--space-lg);
}

.page-grid.two {
  grid-template-columns: 1fr;
}

.card-grid {
  display: grid;
  gap: var(--space-md);
}

.eyebrow {
  color: var(--ink-label);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.meta-list {
  list-style: none;
  display: grid;
  gap: var(--space-sm);
}

.meta-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--line-soft);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.site-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--space-md);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

/* ── Hero section ── */
.hero {
  background-color: var(--teal-dark);
  background-image: linear-gradient(135deg, #0b7a74 0%, #145f7b 55%, #d4a017 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow);
}

.hero h1 { color: #fff; font-size: 1.5rem; }
.hero p { color: rgba(255,255,255,0.88); margin-bottom: 0; }

.hero-cta {
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: var(--shadow); }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { text-decoration: none; }

.card-header { margin-bottom: var(--space-sm); }
.card-body { color: var(--ink-soft); font-size: 0.92rem; }
.card-footer { margin-top: var(--space-sm); display: flex; gap: var(--space-sm); align-items: center; }

/* ── Status cards (spec: green/amber/gold/red) ── */
.status-card {
  border-radius: var(--radius);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow);
}

.status-card .status-icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }
.status-card .status-text { font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.status-card .status-detail { font-size: 0.88rem; margin-top: var(--space-xs); }

.status-card[data-status="valid"] { background: var(--green-light); border: 2px solid var(--green); color: #1a5c32; }
.status-card[data-status="pending"] { background: var(--amber-light); border: 2px solid var(--amber); color: #6e4e00; }
.status-card[data-status="upgraded"] { background: var(--gold-light); border: 2px solid var(--gold); color: #6e4e00; }
.status-card[data-status="invalid"] { background: var(--red-light); border: 2px solid var(--red); color: #7d1d13; }

.pass-card {
  text-align: center;
  padding: var(--space-xl);
}

.pass-symbol {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

.pass-symbol.valid {
  background: var(--green-light);
  color: var(--green);
  border: 2px solid var(--green);
}

.pass-symbol.pending {
  background: var(--amber-light);
  color: var(--amber);
  border: 2px solid var(--amber);
}

.support-list {
  list-style: none;
  padding: 0;
}

.support-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.support-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

/* ── Buttons ── */
button, .btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: var(--touch-min);
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary, button[type="submit"] {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover, button[type="submit"]:hover { background: var(--teal-dark); }

.btn-secondary {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid #b8dbd9;
}
.btn-secondary:hover { background: #d0efed; }

.btn-ghost, button[data-variant="ghost"] {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--line);
}
.btn-ghost:hover, button[data-variant="ghost"]:hover { background: var(--teal-light); }

.btn-danger, button[data-variant="danger"] { background: var(--red); color: #fff; }
.btn-warning, button[data-variant="warning"] { background: var(--amber); color: #2a1d03; }

.btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  min-height: 52px;
}

.btn-block { width: 100%; }

button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ── Form fields ── */
input, select, textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  background: var(--bg-surface);
  min-height: var(--touch-min);
  width: 100%;
  transition: border-color 0.15s;
}

input:focus, select:focus, textarea:focus { border-color: var(--teal); }

.field {
  display: grid;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ── Badges / chips ── */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: #fafaf6;
  color: var(--ink-soft);
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge[data-tone="risk"] { background: var(--red-light); color: #8d2419; border-color: #f2beb7; }
.badge[data-tone="live"] { background: var(--green-light); color: #1d6738; border-color: #a0ddb5; }
.badge[data-tone="warning"] { background: var(--amber-light); color: #7e5300; border-color: #ebcc88; }
.badge[data-tone="teal"] { background: var(--teal-light); color: var(--teal-dark); border-color: #a8d5d2; }

.badges { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: var(--space-sm) 0; }

/* ── Section / panel (for admin & dev views) ── */
.panel {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

/* ── Stack/grid layout helpers ── */
.stack { display: flex; flex-direction: column; gap: var(--space-md); }
.stack-sm { display: flex; flex-direction: column; gap: var(--space-sm); }

.thread-detail-column {
  position: relative;
  padding-bottom: calc(var(--space-2xl) + var(--touch-min));
}

.sticky-thread-composer {
  position: sticky;
  bottom: var(--space-sm);
  z-index: 8;
  border-color: rgba(11, 122, 116, 0.18);
  box-shadow: var(--shadow-lg);
}

.grid { display: grid; gap: var(--space-md); }
.grid.two { grid-template-columns: 1fr; }
.grid.three { grid-template-columns: 1fr; }

/* ── Section heading with action ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.section-header a { font-size: 0.88rem; font-weight: 500; }

/* ── Horizontal scroll cards ── */
.scroll-row {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row > * { scroll-snap-align: start; flex-shrink: 0; }
.scroll-row:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Tabs (for event board, sections) ── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: var(--space-md);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tabs button, .tabs a {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--space-sm) var(--space-md);
  color: var(--ink-label);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -2px;
  min-height: var(--touch-min);
  transition: color 0.15s, border-color 0.15s;
}

.tabs button.active, .tabs a.active,
.tabs button:hover, .tabs a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Code output (admin / dev tools) ── */
.code {
  font-family: "IBM Plex Mono", monospace;
  background: #f5f5ef;
  border: 1px solid #ddd8cd;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* ── KPI cards (admin) ── */
.kpi {
  border: 1px solid #bad8d5;
  background: #eff9f8;
  border-radius: 12px;
  padding: 0.8rem;
}
.kpi strong { display: block; font-size: 1.32rem; }

/* ── Timeline (admin / activity) ── */
.timeline { display: grid; gap: var(--space-sm); }
.timeline-item {
  border-left: 4px solid var(--teal);
  background: #f5fcfb;
  border-radius: var(--radius-sm);
  padding: var(--space-sm) 0.7rem;
  font-size: 0.88rem;
}

/* ── Collapsible / disclosure ── */
details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

details summary {
  padding: var(--space-sm) var(--space-md);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--ink-soft);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

details summary::before { content: "▸"; transition: transform 0.15s; }
details[open] summary::before { transform: rotate(90deg); }

details .details-body { padding: var(--space-md); border-top: 1px solid var(--line); }

/* ── Banner (legacy, used by admin) ── */
.banner {
  background: linear-gradient(135deg, #0b7a74, #145f7b 60%, #f39c12);
  color: #f8fffe;
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow);
}
.banner p { color: #e7f9f6; }

/* ── Admin nav row ── */
.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-md) 0;
}

/* ── Sticky mobile action ── */
.mobile-sticky-action {
  display: none;
}

/* ── Empty / placeholder states ── */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  color: var(--ink-muted);
}
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }

/* ── Avatar / profile circle ── */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.88rem;
}

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--line); margin: var(--space-md) 0; }

/* ── Workspace landing cards ── */
.workspace-home {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

.workspace-links {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.workspace-links a {
  text-decoration: none;
  color: inherit;
}

/* ── Table (admin) ── */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; border-bottom: 1px solid var(--line); padding: 0.5rem 0.3rem; vertical-align: top; }

/* ── Account / auth shell ── */
.session-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.settings-nav {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.settings-nav a,
.settings-nav button {
  border: 1px solid var(--line);
  background: var(--bg-surface);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
}

.settings-nav .active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.settings-panel {
  display: none;
}

.settings-panel.active {
  display: block;
}

.settings-grid {
  display: grid;
  gap: var(--space-md);
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.meta-list li {
  padding-left: 1rem;
  position: relative;
}

.meta-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--teal);
}

.info-strip {
  border-left: 4px solid var(--teal);
  background: var(--teal-light);
  padding: var(--space-md);
  border-radius: var(--radius);
}

.support-card {
  background: linear-gradient(180deg, rgba(11, 122, 116, 0.08), rgba(255, 255, 255, 0));
}

/* ── Responsive: tablet+ ── */
@media (min-width: 640px) {
  .app-shell { max-width: var(--max-width-lg); padding: var(--space-lg); }
  .workspace-home { max-width: 680px; }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .page-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 1.75rem; }

  .bottom-nav { display: none; }

  .desktop-nav {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
  }
  .desktop-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: color 0.15s;
    white-space: nowrap;
  }
  .desktop-nav a:hover,
  .desktop-nav a.active {
    color: var(--teal);
  }

  .mobile-sticky-action { display: none !important; }
}

/* ── Responsive: desktop ── */
@media (min-width: 1024px) {
  .app-shell { max-width: 1120px; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero h1 { font-size: 2rem; }
}

/* ── Responsive: mobile sticky action ── */
@media (max-width: 639px) {
  .mobile-sticky-action {
    display: block;
    position: fixed;
    bottom: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--line);
    padding: var(--space-sm) var(--space-md);
    box-shadow: 0 -4px 16px rgba(17,32,38,0.08);
    z-index: 90;
    text-align: center;
  }
  .mobile-sticky-action strong { font-size: 0.92rem; }
  .mobile-sticky-action p { font-size: 0.82rem; margin: 0; }
}

/* ── Admin overrides ── */
.admin-shell { max-width: 1280px; }
.section-block { display: none; }
.section-block.active { display: block; }
.pill-nav button[data-active="true"] { background: var(--teal); color: #fff; }

.dialog-panel {
  width: min(42rem, calc(100vw - 2rem));
  max-width: 42rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  background: var(--bg-surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(8, 22, 35, 0.28);
}

.dialog-panel::backdrop {
  background: rgba(8, 22, 35, 0.6);
  backdrop-filter: blur(4px);
}

.attachment-viewer-dialog img {
  width: 100%;
  max-height: min(70vh, 38rem);
  object-fit: contain;
  border-radius: var(--radius-md);
  background: rgba(8, 22, 35, 0.04);
}

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

/* ── Dyslexia-friendly mode ── */
[data-dyslexia-friendly="true"] {
  word-spacing: 0.16em;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

[data-dyslexia-friendly="true"] h1,
[data-dyslexia-friendly="true"] h2,
[data-dyslexia-friendly="true"] h3 {
  word-spacing: 0.12em;
  letter-spacing: 0.03em;
}

[data-dyslexia-friendly="true"] .badge {
  letter-spacing: 0.04em;
  word-spacing: 0.1em;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101718;
    --bg-alt: #162021;
    --bg-surface: #192425;
    --ink: #f2f4ef;
    --ink-soft: #d5ddd7;
    --ink-muted: #9db0aa;
    --ink-label: #b5c4bf;
    --green-ink: #9fdcb3;
    --line: #284140;
    --line-soft: #203534;
    --card: #182324;
    --focus: #8bb2ff;
  }

  .hero {
    background-color: #0d4d63;
    background-image: linear-gradient(135deg, #0b7a74 0%, #0d4d63 55%, #b98c19 100%);
  }

  .code {
    background: #121a1b;
    border-color: #2a3d3d;
  }

  .badge {
    background: #152021;
  }
}

@media (min-width: 768px) {
  .sticky-thread-composer {
    bottom: var(--space-lg);
  }
}
