/* =============================================================================
 * site.css  —  SHARED DESIGN SYSTEM (fv-* components)
 * -----------------------------------------------------------------------------
 * Loaded by BOTH base.html (all non-dashboard pages) AND dashboard.html.
 * Owns the shared fv-* component vocabulary: shell, nav, buttons, cards,
 * panels, tables, forms, the loading spinner/overlay, and the mobile tab bar.
 *
 * CSS ownership (see docs/css-architecture.md):
 *   • Editing the DASHBOARD?  → dashboard.css  (loaded only by dashboard.html)
 *   • Editing a SHARED component? → this file
 *   • Utilities on non-dashboard pages come from the generated tailwind.css
 *     (source: tailwind.src.css) — never hand-edit the compiled file.
 * ============================================================================= */

:root {
  --fv-bg-base: #0d0b14;
  --fv-bg-surface: #16131f;
  --fv-bg-elevated: #1f1b2e;
  --fv-border: #2a2438;
  --fv-text-primary: #f5f3fa;
  --fv-text-secondary: #a8a2bd;
  --fv-text-tertiary: #6b6580;
  --fv-primary: #8b5cf6;
  --fv-primary-hover: #7c4def;
  --fv-primary-pressed: #6d28d9;
  --fv-primary-tint: #241b3d;
  /* Logo wordmark: a light violet tint of --fv-primary — midway between white
   * and the brand purple. Used identically on dashboard and non-dashboard pages.
   * (violet-200 #ddd6fe; violet-300 #c4b5fd is a touch more saturated.) */
  --fv-logo-text: #ddd6fe;
  --fv-positive: #22c55e;
  --fv-caution: #f59e0b;
  --fv-negative: #ef4444;
  --fv-info: #38bdf8;
  --fv-radius-sm: 6px;
  --fv-radius-md: 10px;
  --fv-radius-lg: 16px;
  --fv-font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Matches the dashboard's display face so the logo lockup and headings read
   * identically on every page (dashboard.css sets the same value). */
  --fv-font-display: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--fv-bg-base);
  color-scheme: dark;
}

body.fv-app {
  background: var(--fv-bg-base);
  color: var(--fv-text-primary);
  font-family: var(--fv-font-body);
  font-variant-numeric: tabular-nums;
  margin: 0;
  min-height: 100vh;
}

.fv-app a {
  color: var(--fv-primary);
}

.fv-app a:hover {
  color: var(--fv-primary-hover);
}

.fv-site-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

/* Logged-out pages (auth) render no sidebar, so drop the reserved 240px column
 * and let the centered card use the full width. */
.fv-site-shell--full {
  grid-template-columns: 1fr;
}

.fv-site-main {
  min-width: 0;
  padding: 28px;
}

.fv-content {
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.fv-site-sidebar {
  background: rgba(13, 11, 20, 0.96);
  border-right: 1px solid var(--fv-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 16px;
  position: sticky;
  top: 0;
}

.fv-sidebar-footer {
  flex: 0 0 auto;
  margin-top: auto;
}

.fv-sidebar-legal {
  border-top: 1px solid var(--fv-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  padding-top: 14px;
}

.fv-sidebar-legal a {
  color: var(--fv-text-tertiary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.fv-sidebar-legal a:hover {
  color: var(--fv-text-secondary);
}

.fv-sidebar-legal a[aria-current="page"] {
  color: var(--fv-primary);
}

.fv-logo-lockup {
  align-items: center;
  color: var(--fv-logo-text);
  display: flex;
  gap: 10px;
  margin: 0 0 32px;
  text-decoration: none;
}

.fv-logo-lockup:hover {
  color: var(--fv-logo-text);
}

.fv-logo-lockup img {
  display: block;
  height: auto;
  width: 52px;
}

.fv-logo-lockup > span {
  /* Explicit color (0,1,1) placed after `.fv-app a` so the wordmark stays the
   * same violet on base.html pages instead of inheriting the link purple. */
  color: var(--fv-logo-text);
  display: grid;
  font-family: var(--fv-font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: uppercase;
}

.fv-site-nav {
  /* Do NOT flex-grow this: with display:grid, a stretched nav expands every
   * row and makes menu items absurdly tall. Footer uses margin-top:auto. */
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  align-content: start;
}

.fv-nav-link {
  align-items: center;
  align-self: start;
  border-radius: var(--fv-radius-sm);
  color: var(--fv-text-secondary);
  display: flex;
  font-weight: 700;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  text-decoration: none;
}

.fv-nav-link:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--fv-text-primary);
}

.fv-nav-link[aria-current="page"] {
  background: linear-gradient(135deg, var(--fv-primary), var(--fv-primary-pressed));
  color: #fff;
}

.fv-nav-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.fv-nav-icon svg {
  display: block;
  height: 20px;
  stroke-width: 2;
  width: 20px;
}

.fv-account-block {
  border-top: 1px solid var(--fv-border);
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.fv-account-email {
  color: var(--fv-text-tertiary);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.fv-mobile-tabs {
  display: none;
}

.fv-page {
  display: grid;
  gap: 24px;
}

.fv-page-narrow {
  max-width: 760px;
}

/* Public legal / privacy pages */
.fv-legal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fv-legal .fv-panel h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.fv-legal .fv-panel h3 {
  color: var(--fv-text-primary);
  font-family: var(--fv-font-display);
  font-size: 15px;
  font-weight: 700;
  margin: 12px 0 6px;
}

.fv-legal .fv-panel p,
.fv-legal .fv-panel li {
  color: var(--fv-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.fv-legal .fv-panel ul {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fv-legal .fv-panel a {
  color: var(--fv-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fv-legal .fv-panel code {
  color: var(--fv-text-primary);
  font-size: 0.92em;
}

.fv-page-medium {
  max-width: 920px;
}

.fv-page-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.fv-page-header h1,
.fv-card h1,
.fv-panel h1 {
  color: var(--fv-text-primary);
  font-family: var(--fv-font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 8px;
}

.fv-page-header p,
.fv-card p,
.fv-panel p {
  color: var(--fv-text-secondary);
}

.fv-eyebrow {
  color: var(--fv-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.fv-panel,
.fv-card {
  background: var(--fv-bg-surface);
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-md);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.fv-panel {
  padding: 24px;
}

.fv-card {
  display: block;
  padding: 18px;
  text-decoration: none;
}

.fv-card:hover {
  background: var(--fv-bg-elevated);
  border-color: rgba(139, 92, 246, 0.55);
}

.fv-card h2,
.fv-panel h2,
.account-forms h1,
.account-forms h2 {
  color: var(--fv-text-primary);
  font-family: var(--fv-font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.fv-card h2,
.fv-panel h2 {
  font-size: 18px;
  margin: 0 0 6px;
}

.fv-panel-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.fv-panel-header h2 {
  margin: 0;
}

.fv-muted {
  color: var(--fv-text-secondary);
}

.fv-button,
.fv-app button,
.fv-app input[type="submit"],
.fv-app input[type="button"] {
  align-items: center;
  background: transparent;
  border: 1px solid var(--fv-border);
  color: var(--fv-text-primary);
  border-radius: var(--fv-radius-sm);
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}

.fv-button:disabled,
.fv-app button:disabled,
.fv-app input[type="submit"]:disabled,
.fv-app input[type="button"]:disabled {
  color: var(--fv-text-secondary);
  cursor: not-allowed;
  opacity: 0.72;
}

/* Doubled class selectors raise specificity above the base `.fv-app button`
 * rule (0,1,1) so variant colors actually win — same technique this file uses
 * for .fv-button-danger / .fv-button-sm / .fv-icon-button. */
.fv-button-primary.fv-button-primary,
.fv-app .bg-blue-600 {
  background: var(--fv-primary);
  border-color: var(--fv-primary);
  color: #fff;
}

.fv-button-primary.fv-button-primary:hover,
.fv-app .hover\:bg-blue-700:hover {
  background: var(--fv-primary-hover);
  color: #fff;
}

.fv-button-secondary.fv-button-secondary {
  background: transparent;
  border: 1px solid var(--fv-border);
  color: var(--fv-text-primary);
}

.fv-button-secondary.fv-button-secondary:hover {
  background: var(--fv-bg-elevated);
  color: var(--fv-text-primary);
}

.fv-message,
.fv-empty {
  background: rgba(31, 27, 46, 0.72);
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-sm);
  color: var(--fv-text-secondary);
  padding: 14px 16px;
}

.fv-message-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.36);
  color: #fecaca;
}

/* Free-tier upgrade strip (My Leagues / discovery; dashboard has its own rules). */
.fv-free-tier-banner {
  align-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.42);
  border-radius: var(--fv-radius-md);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 14px 16px;
}

.fv-free-tier-banner-body {
  flex: 1 1 220px;
  min-width: 0;
}

.fv-free-tier-banner-title {
  color: var(--fv-text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.fv-free-tier-banner-text {
  color: var(--fv-text-secondary);
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0;
}

.fv-free-tier-banner-text a {
  color: #c4b5fd;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fv-free-tier-banner-text a:hover {
  color: #ddd6fe;
}

.fv-table-wrap {
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-md);
  overflow-x: auto;
}

.fv-site-table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.fv-site-table th,
.fv-site-table td {
  border-bottom: 1px solid var(--fv-border);
  padding: 12px;
  text-align: left;
}

.fv-site-table th {
  color: var(--fv-text-tertiary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.fv-site-table td {
  color: var(--fv-text-secondary);
}

.fv-site-table strong,
.fv-site-table .fv-table-primary {
  color: var(--fv-text-primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fv-table-actions {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

/* Mobile stacked-card variant of a data table (e.g. My Leagues on <1024px).
 * Desktop shows .fv-leagues-table-wrap; mobile swaps to .fv-league-cards. The
 * swap is done here (not via Tailwind hidden/lg:* utilities) because these are
 * unlayered component rules that would otherwise beat layered utilities. */
/* Element carrying a native tooltip (title="league_id#team"). Signal it's
 * hoverable without adding visual noise. */
.fv-has-hint {
  cursor: help;
  text-decoration: underline dotted var(--fv-text-tertiary);
  text-underline-offset: 3px;
}

.fv-league-cards {
  display: none;
  gap: 12px;
}

.fv-league-card {
  background: var(--fv-bg-surface);
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-md);
  padding: 16px;
}

.fv-league-card-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

/* League names and Sleeper IDs are arbitrary user data — let long unbreakable
 * tokens wrap and let flex children shrink so a card can never widen the page. */
.fv-league-card-head > div:first-child {
  min-width: 0;
}

.fv-league-card .fv-table-primary,
.fv-league-card .text-xs,
.fv-league-card-body dd {
  overflow-wrap: anywhere;
}

.fv-league-card-body {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.fv-league-card-body > div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.fv-league-card-body dd {
  min-width: 0;
}

.fv-league-card-body dt {
  color: var(--fv-text-tertiary);
  font-size: 12px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

.fv-league-card-body dd {
  color: var(--fv-text-primary);
  margin: 0;
  text-align: right;
}

.fv-confirm {
  display: inline-block;
  position: relative;
}

.fv-icon-button.fv-icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--fv-radius-sm);
  color: var(--fv-text-tertiary);
  display: inline-flex;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  padding: 0;
}

.fv-icon-button.fv-icon-button:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.36);
  color: var(--fv-negative);
}

.fv-confirm-popover {
  background: var(--fv-bg-elevated);
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 14px;
  position: fixed;
  white-space: normal;
  width: 248px;
  z-index: 50;
}

.fv-confirm-text {
  color: var(--fv-text-secondary);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 12px;
  text-align: left;
}

.fv-confirm-text strong {
  color: var(--fv-text-primary);
}

.fv-confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.fv-confirm-actions form {
  margin: 0;
}

.fv-button-sm.fv-button-sm {
  font-size: 13px;
  min-height: 36px;
  padding: 0 14px;
}

.fv-button-danger.fv-button-danger {
  background: var(--fv-negative);
  border-color: var(--fv-negative);
  color: #fff;
}

.fv-button-danger.fv-button-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.fv-choice-list {
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-md);
  overflow: hidden;
}

.fv-choice-row {
  align-items: flex-start;
  background: var(--fv-bg-surface);
  border-bottom: 1px solid var(--fv-border);
  color: var(--fv-text-secondary);
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 14px;
}

.fv-choice-row:last-child {
  border-bottom: 0;
}

.fv-choice-row:hover {
  background: var(--fv-bg-elevated);
}

.fv-choice-row.is-disabled,
.fv-choice-row:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.48;
}

.fv-choice-row.is-disabled:hover,
.fv-choice-row:has(input:disabled):hover {
  background: var(--fv-bg-surface);
}

.fv-choice-row input[type="checkbox"] {
  margin-top: 4px;
}

.fv-choice-row input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

.fv-app input[type="text"],
.fv-app input[type="email"],
.fv-app input[type="tel"],
.fv-app input[type="password"],
.fv-app input[type="url"],
.fv-app input[type="number"],
.fv-app input[type="date"],
.fv-app textarea,
.fv-app select {
  background: var(--fv-bg-surface);
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-sm);
  color: var(--fv-text-primary);
  min-height: 44px;
}

.fv-contact-form .fv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fv-contact-form .fv-field label {
  color: var(--fv-text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.fv-contact-form .fv-field-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .fv-contact-form .fv-field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.fv-contact-form .fv-field-error {
  color: var(--fv-negative);
  font-size: 13px;
  margin: 0;
}

.fv-contact-form textarea {
  min-height: 140px;
  resize: vertical;
  width: 100%;
}

.fv-account-prefill {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--fv-radius-sm);
  padding: 12px 14px;
}

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

.fv-app input::placeholder,
.fv-app textarea::placeholder {
  color: var(--fv-text-tertiary);
}

.fv-app input[type="checkbox"] {
  accent-color: var(--fv-primary);
}

.fv-status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}

.fv-status-positive {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.fv-status-caution {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

.fv-app .bg-white,
.fv-app .bg-gray-50,
.fv-app .bg-gray-100 {
  background-color: var(--fv-bg-surface) !important;
}

.fv-app .text-gray-900,
.fv-app .text-gray-800,
.fv-app .text-gray-700 {
  color: var(--fv-text-primary) !important;
}

.fv-app .text-gray-600,
.fv-app .text-gray-500 {
  color: var(--fv-text-secondary) !important;
}

.fv-app .border-gray-300,
.fv-app .border-gray-200,
.fv-app .divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--fv-border) !important;
}

.fv-app .text-blue-600,
.fv-app .text-blue-700,
.fv-app .hover\:text-blue-900:hover {
  color: var(--fv-primary) !important;
}

.fv-app .focus\:ring-blue-500:focus,
.fv-app .focus\:ring-purple-500:focus {
  --tw-ring-color: var(--fv-primary) !important;
}

.account-forms {
  color: var(--fv-text-secondary);
}

.account-forms label {
  color: var(--fv-text-primary);
}

.account-forms hr {
  border-color: var(--fv-border);
}

/* allauth renders inputs via {{ field.as_widget }} with no width class; stretch
 * them to the card so the auth forms read cleanly on every viewport. */
.account-forms input:not([type="checkbox"]):not([type="radio"]),
.account-forms select,
.account-forms textarea {
  width: 100%;
}

/* --- Shared loading overlay + spinner (used by loading-overlay.js) ---------- */
.fv-overlay {
  align-items: center;
  background: rgba(13, 11, 20, 0.72);
  backdrop-filter: blur(2px);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  position: fixed;
  transition: opacity 0.15s ease;
  z-index: 1000;
}

.fv-overlay.is-visible {
  opacity: 1;
}

.fv-overlay-box {
  align-items: center;
  background: var(--fv-bg-elevated);
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
  padding: 28px 32px;
  text-align: center;
}

.fv-overlay-text {
  color: var(--fv-text-primary);
  font-weight: 700;
  margin: 0;
}

.fv-spinner {
  animation: fv-spin 0.7s linear infinite;
  border: 3px solid var(--fv-border);
  border-radius: 50%;
  border-top-color: var(--fv-primary);
  height: 40px;
  width: 40px;
}

@keyframes fv-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fv-spinner {
    animation-duration: 1.6s;
  }
}

@media (max-width: 1023px) {
  .fv-site-shell {
    display: block;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .fv-site-sidebar {
    display: none;
  }

  .fv-site-main {
    padding: 20px 14px;
  }

  .fv-mobile-tabs {
    align-items: center;
    background: rgba(13, 11, 20, 0.97);
    border-top: 1px solid var(--fv-border);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    left: 0;
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    position: fixed;
    right: 0;
    z-index: 50;
  }

  .fv-mobile-tabs .fv-nav-link {
    border-radius: 0;
    display: grid;
    font-size: 11px;
    gap: 3px;
    justify-items: center;
    min-height: 64px;
    padding: 6px 2px;
    text-align: center;
  }

  .fv-mobile-tabs .fv-nav-link[aria-current="page"] {
    background: transparent;
    color: var(--fv-primary);
  }

  .fv-mobile-tabs .fv-nav-icon svg {
    height: 21px;
    width: 21px;
  }

  .fv-page-header {
    display: grid;
  }

  .fv-page-header h1,
  .fv-card h1,
  .fv-panel h1 {
    font-size: 28px;
  }

  .fv-panel {
    padding: 18px;
  }

  .fv-site-table {
    min-width: 0;
  }

  /* My Leagues: swap the desktop table for the stacked mobile cards. */
  .fv-leagues-table-wrap {
    display: none;
  }

  .fv-league-cards {
    display: grid;
  }
}

/* =============================================================================
 * Public help page (/help/)
 * ============================================================================= */

.fv-help-toc-title {
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.fv-help-toc-list {
  color: var(--fv-text-secondary);
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.25rem;
}

.fv-help-toc-list a {
  color: #c4b5fd;
  text-decoration: none;
}

.fv-help-toc-list a:hover {
  color: #ddd6fe;
  text-decoration: underline;
}

.fv-help-section h2 {
  margin-top: 0;
}

.fv-help-section h3 {
  color: var(--fv-text-primary);
  font-size: 1rem;
  margin: 1rem 0 0.35rem;
}

.fv-help-section p,
.fv-help-bullets,
.fv-help-term p {
  color: var(--fv-text-secondary);
  line-height: 1.55;
}

.fv-help-bullets {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.fv-help-term {
  border-top: 1px solid var(--fv-border);
  margin-top: 0.85rem;
  padding-top: 0.65rem;
}

.fv-help-glossary {
  display: grid;
  gap: 12px;
  margin: 0;
}

.fv-help-glossary-item {
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-sm);
  padding: 12px 14px;
}

.fv-help-glossary-item dt {
  margin: 0 0 4px;
}

.fv-help-glossary-item dt a {
  color: var(--fv-text-primary);
  font-weight: 600;
  text-decoration: none;
}

.fv-help-glossary-item dt a:hover {
  color: #c4b5fd;
}

.fv-help-glossary-item dd {
  color: var(--fv-text-secondary);
  margin: 0;
  line-height: 1.45;
}

/* Help page: mobile-friendly anchors + spacing */
.fv-help-section,
.fv-help-term {
  scroll-margin-top: 1rem;
}

@media (max-width: 1023px) {
  .fv-help {
    padding-bottom: 0.5rem;
  }

  .fv-help-section,
  .fv-help-term,
  .fv-help-glossary-item {
    scroll-margin-top: 0.75rem;
  }

  .fv-help-toc-list {
    font-size: 0.95rem;
    gap: 10px;
  }

  .fv-help-toc-list a {
    display: inline-block;
    min-height: 36px;
    padding: 6px 0;
  }

  .fv-help-glossary-item {
    padding: 14px;
  }
}
