/* public/styles.css */
:root {
  /* Brand axis — standplass's own identity. A [data-club="..."] override
     (themes.css) replaces this whole group; it never changes with mode. */
  --brand-primary:       #1b1d22;
  --brand-primary-light: #2a2d33;
  --brand-accent:        #c1272d;
  --brand-accent-dark:   #9c1f24;
  --brand-accent-hover:         rgba(193,39,45,0.07);
  --brand-accent-tint:          rgba(193,39,45,0.10);
  --brand-accent-bg-subtle:     rgba(193,39,45,0.15);
  --brand-accent-badge:         rgba(193,39,45,0.25);
  --brand-accent-border:        rgba(193,39,45,0.23);
  --brand-accent-border-accent: rgba(193,39,45,0.29);
  --brand-accent-glow:          rgba(193,39,45,0.38);
  --brand-accent-border-active: rgba(193,39,45,0.45);
  --brand-accent-border-cta:    rgba(193,39,45,0.50);

  /* Mode axis — light values (default). A [data-mode="dark"] override
     (themes.css) replaces this whole group; brand variables above are
     untouched by it. */
  --radius-card: 14px;
  --radius:       8px;
  --radius-sm:    6px;

  --green: #2d6a4f;
  --white: #ffffff;
  --text:        #1c1f26;
  --text-muted:  #6b6558;

  --surface-page:  #f6f3ea;
  --surface-card:  #fffdf9;
  --surface-dark:  #1b1d22;
  --surface-base:  rgba(27,29,34,0.03);
  --border-faint:  rgba(27,29,34,0.06);
  --border:        rgba(27,29,34,0.10);
  --border-strong: rgba(27,29,34,0.15);
  --surface-hover: rgba(27,29,34,0.05);

  --font-family: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', var(--font-family);
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

body {
  background: var(--surface-page);
  color: var(--text);
  font-family: var(--font-family);
}

h1, h2, h3 {
  font-family: var(--font-display);
}

/* Embedded in a consumer page: drop standplass's own title, nav, and the
   "opprett iframe" builder — the consumer wants the table, nothing else. */
.standplass-embed-mode h1,
.standplass-embed-mode .site-header,
.standplass-embed-mode #felt-embed-builder,
.standplass-embed-mode #bane-embed-builder {
  display: none;
}

/* ── Shared site header: logo, Resultater dropdown nav, mode toggle ── */
.site-header {
  background: var(--brand-primary);
  padding: 0.75rem 1.5rem;
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-logo {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  background: none;
  border: none;
  color: var(--white);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
}
.nav-dropdown-btn:hover { color: var(--brand-accent); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 200;
  padding: 0.25rem 0;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
}
.nav-dropdown-menu a:hover { background: var(--surface-hover); color: var(--brand-accent); }
#site-mode-toggle {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
}
#site-mode-toggle:hover { border-color: var(--brand-accent); color: var(--brand-accent); }

/* ── Ranking table (ported from kongsvinger-sportsskyttere.github.io/style.css) ── */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th {
    text-align: left;
    padding: 0.5rem 0.875rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-base);
    border-bottom: 1px solid var(--border-faint);
}

.ranking-table td {
    padding: 0.4375rem 0.875rem;
    border-bottom: 1px solid var(--border-faint);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.ranking-table tbody tr:last-child td { border-bottom: none; }

.ranking-rank {
    font-weight: 700;
    color: var(--brand-primary);
    width: 2rem;
    min-width: 2rem;
    font-size: 0.8125rem;
}

.ranking-score {
    font-weight: 600;
    color: var(--brand-primary);
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ranking-toggle {
    display: block;
    width: 100%;
    padding: 0.625rem;
    background: none;
    border: none;
    border-top: 1px solid var(--border-faint);
    color: var(--brand-accent-dark);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    transition: background 0.15s;
}

.ranking-toggle:hover { background: var(--brand-accent-hover); }

.ranking-loading,
.ranking-error,
.ranking-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.ranking-error { color: #c0392b; }

.ranking-full-table {
    margin-top: 1.5rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow-x: auto;
}

.ranking-full-table .ranking-table {
    min-width: 400px;
}

/* ── Links in ranking tables ──────────────────────────── */
.ranking-full-table a,
.ranking-table td a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ranking-full-table a:hover,
.ranking-table td a:hover { color: var(--brand-accent-dark); }

/* ── Ranking card ─────────────────────────────────────── */
.ranking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ranking-card {
    background: var(--surface-card);
    border: 1px solid var(--brand-accent-border-accent);
    border-radius: var(--radius-card);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

.ranking-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--brand-primary);
    padding: 0.875rem 1.125rem 0.75rem;
    border-bottom: 1px solid var(--border);
    margin: 0;
}

.ranking-card-header {
    padding: 0.875rem 1.125rem 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.stevner-collapse-icon {
    display: block;
    transition: transform 0.2s ease;
}
.ranking-card--collapsed .stevner-collapse-icon {
    transform: rotate(-90deg);
}
.ranking-card--collapsed .ranking-card-header {
    border-bottom: none;
}
.stevner-disc-group td {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.5rem 0.5rem 0.2rem;
    background: var(--surface-base);
}

/* ── Ranking filters ──────────────────────────────────── */
.ranking-filters {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
    min-width: 150px;
}

.filter-group--narrow { flex: 0 0 110px; min-width: 0; }

.ranking-filters .filter-group { min-width: 135px; }
.ranking-filters .filter-group--narrow { min-width: 0; }

.filter-group--period { flex: 0 0 280px; min-width: 0; }

@media (max-width: 640px) {
    .filter-group--period { flex: 1 1 100%; }
    .filter-period-input[data-period-mode="periode"] { flex-direction: column; }
}

.filter-group label,
.filter-group > span,
.filter-group .filter-group-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="date"],
.filter-group input[type="search"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text);
    background: var(--surface-card);
    font-family: inherit;
    width: 100%;
}

.filter-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    cursor: pointer;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus,
.filter-group input[type="date"]:focus,
.filter-group input[type="search"]:focus {
    outline: 2px solid var(--brand-accent);
    outline-offset: 1px;
    border-color: transparent;
}

.filter-group select:disabled,
.filter-group input[type="text"]:disabled,
.filter-group input[type="date"]:disabled,
.filter-group input[type="search"]:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 700px) {
    .ranking-grid { grid-template-columns: 1fr; }
    .filter-group--narrow { flex: 1; }
}

@media (max-width: 600px) {
    .filter-group:not(.filter-group--narrow) { flex: 1 1 100%; }
    .filter-group { min-width: auto; }
    .autocomplete-list { max-height: 40vh; }

}

/* ── Checkbox dropdown ─────────────────────────────────── */
.checkbox-dropdown { position: relative; }

.checkbox-dropdown-btn {
    width: 100%;
    text-align: left;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text);
    background: var(--surface-card)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        no-repeat right 0.75rem center;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.checkbox-dropdown-btn:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 1px;
    border-color: transparent;
}
.checkbox-dropdown-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.checkbox-dropdown-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 180px;
    background: var(--surface-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 200;
    padding: 0.25rem 0;
}

.checkbox-dropdown-clear-all {
    display: block;
    width: 100%;
    padding: 0.3rem 0.75rem;
    text-align: left;
    font-family: inherit;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    margin-bottom: 0.125rem;
}
.checkbox-dropdown-clear-all:hover { color: var(--brand-primary); }
.checkbox-dropdown-clear-all:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: -2px; }

.checkbox-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0.125rem 0;
    max-height: 220px;
    overflow-y: auto;
}
.checkbox-dropdown-list li { padding: 0; }
.checkbox-dropdown-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
}
.checkbox-dropdown-list label:hover { background: var(--surface-hover); }
.checkbox-dropdown-list input[type="checkbox"] {
    flex-shrink: 0;
    accent-color: var(--brand-primary);
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

/* ── Checkbox dropdown - searchable variant ───────────── */
.checkbox-dropdown-search {
    display: block;
    width: 100%;
    padding: 0.4rem 0.75rem;
    border: none;
    border-bottom: 1px solid var(--border);
    font: inherit;
    font-size: 0.875rem;
    background: transparent;
    box-sizing: border-box;
    outline: none;
}
.checkbox-dropdown-search:focus { background: var(--surface-base); }
.checkbox-dropdown-no-results {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── Autocomplete combo ───────────────────────────────── */
.autocomplete-group {
    padding: 0.3rem 0.875rem 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: default;
    border-bottom: 1px solid var(--border);
    pointer-events: none;
}
.autocomplete-group:hover { background: none; color: var(--text-muted); }

.autocomplete-wrap { position: relative; display: flex; align-items: center; }
.autocomplete-wrap input { flex: 1; min-width: 0; }

.combo-clear {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
    padding: 0.2rem 0.35rem;
    border-radius: 4px;
    visibility: hidden;
    pointer-events: none;
}
.combo-clear:hover { color: var(--text); background: var(--surface-hover); }
.autocomplete-wrap--has-value .combo-clear { visibility: visible; pointer-events: auto; }
.autocomplete-wrap--has-value input { text-overflow: ellipsis; }

.autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    z-index: 200;
}

.autocomplete-list li {
    padding: 0.5rem 0.875rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-faint);
}

.autocomplete-list li:last-child { border-bottom: none; }
.autocomplete-list li:hover,
.autocomplete-list li[aria-selected="true"] { background: var(--brand-accent-tint); color: var(--brand-primary); }

/* ── Tag chips (multi-select combo) ───────────────────── */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tag-list:not(:empty) { margin-bottom: 5px; }

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--surface-dark);
    color: #fff;
    border-radius: 4px;
    padding: 2px 4px 2px 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    max-width: 100%;
}
.tag-item > span { overflow: hidden; text-overflow: ellipsis; }

.tag-item-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    font-size: 1.1rem;
}
.tag-item-remove:hover { color: #fff; }
.tag-item-remove:focus-visible { outline: 2px solid var(--brand-accent); border-radius: 2px; }

/* ── Program toggle ────────────────────────────────────── */
.program-toggle {
    display: flex;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-card);
    width: 100%;
}

.program-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

.program-btn:hover:not(.program-btn--active) {
    background: var(--border-faint);
}

.program-btn--active {
    background: var(--surface-dark);
    color: var(--white);
}

/* ── Ranking meta / section / status / blank state ────── */
.ranking-section { background: var(--surface-page); padding: 3rem 1.5rem 5rem; }

.ranking-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.ranking-status-msg {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    min-height: 1.25rem;
}
/* .ranking-error also sets padding/text-align for its usual card-level empty-state
   context — override those back to a plain inline line here. */
.ranking-status-msg.ranking-error {
    padding: 0;
    text-align: left;
    font-weight: 600;
}

.ranking-blank-state {
    margin-top: 2rem;
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* ── Filter/toggle spacing ─────────────────────────────── */
/* The source page did this with inline styles on the same elements
   (resultatliste-felt.html:120, 194, 201, 210). */
.ranking-filters { margin-top: 1rem; }
.program-toggle { margin-top: 0.5rem; }
#felt-root > .ranking-table,
#bane-root > .ranking-table { margin-top: 1.5rem; }

/* ── Person link in result tables (style.css:1357-1376) ── */
.stevner-person-btn.link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.stevner-person-btn.link-btn:hover {
    color: var(--brand-accent);
    text-decoration-color: var(--brand-accent);
}
.stevner-person-btn.link-btn:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Person modal (style.css:2130-2204) ─────────────────── */
/* The source's modal is a native <dialog>; this repo's is a plain <div>
   toggled with [hidden] (stevner-page.js showModal/closePersonModal), so
   ::backdrop becomes the container's own background and [open] becomes the
   default state. */
#felt-person-modal,
#bane-person-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}
#felt-person-modal[hidden],
#bane-person-modal[hidden] { display: none; }

.person-modal-shell {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none;
    border-radius: var(--radius-card);
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    max-width: min(860px, 92vw);
    width: 100%;
    min-height: min(520px, 60dvh);
    max-height: 88dvh;
    overflow: hidden;
    margin: auto;
    background: var(--surface-card);
    color: var(--text);
}

.person-modal-shell .program-toggle {
    flex-shrink: 0;
    width: auto;
}

.person-modal-shell .comp-modal-body {
    overflow-y: auto;
    padding: 1rem 1.5rem 0;
    flex: 1 1 auto;
}
.person-modal-shell .comp-modal-body::after {
    content: '';
    display: block;
    height: 1.5rem;
}

.comp-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 0.75rem;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}

.comp-modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--brand-primary);
}

.comp-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.125rem 0.375rem;
    cursor: pointer;
    color: var(--text-muted);
    flex-shrink: 0;
    border-radius: 4px;
}
.comp-modal-close:hover { color: var(--brand-primary); }
.comp-modal-close:focus-visible {
    color: var(--brand-primary);
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* ── Person chart (style.css:1378-1484) ─────────────────── */
/* .chart-tooltip / .chart-legend rules are kept even though tooltip and
   legend interactivity is still deferred, so the fast-follow that adds them
   needs no second CSS pass. The .chart-expand-btn / chart-expand-dialog
   rules are left out — that control isn't rendered here at all. */
.person-chart-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.person-chart-dot { cursor: pointer; }
.person-chart-dot:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 3px;
}
.chart-tooltip {
    position: fixed;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    line-height: 1.45;
    pointer-events: none;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    max-width: 240px;
    transform: translateX(-50%);
}
.chart-tip-val {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}
.chart-tip-metric {
    font-size: 0.6875rem;
    font-weight: 400;
    opacity: 0.75;
}
.chart-tip-date { font-weight: 600; color: var(--text); }
.chart-tip-comp { color: var(--text); }
.chart-tip-meta { color: var(--text-muted); font-size: 0.6875rem; }
.chart-tip-row { color: var(--text); font-size: 0.6875rem; }
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    margin-top: 0.375rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
}
.chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Dark-mode text fixes (style.css:2538-2553, 2580-2581) ── */
/* --brand-primary is club brand (navy for kss) and by design never changes
   with mode, so every rule that paints text with it needs the source's own
   dark override. Selector is [data-mode="dark"] here, not [data-theme="dark"];
   site-chrome.js always resolves and sets data-mode on every page (including
   when it falls through to the OS preference), so no prefers-color-scheme
   duplicate is needed. */
[data-mode="dark"] .stevner-person-btn.link-btn,
[data-mode="dark"] .comp-modal-title { color: var(--text); }
/* :not(.btn-primary) — .btn-primary paints itself with --brand-accent, which
   is readable in both modes and must not be overridden here. */
[data-mode="dark"] .btn:not(.btn-primary) {
    border-color: var(--text);
    color: var(--text);
}
[data-mode="dark"] .comp-modal-close:hover,
[data-mode="dark"] .comp-modal-close:focus-visible { color: var(--text); }
/* The source leaves the focus ring navy in dark mode (an invisible focus
   indicator); recolor it with the text color instead. */
[data-mode="dark"] .comp-modal-close:focus-visible { outline-color: var(--text); }

/* ── Terminliste – Vis flere-knapp ─────────────────────── */
.ranking-more-btn {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.625rem 1.75rem;
    background: none;
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius);
    color: var(--brand-primary);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.ranking-more-btn:hover { background: var(--surface-dark); color: var(--white); }
.ranking-more-btn:disabled {
    cursor: default;
    animation: ranking-more-pulse 1.1s ease-in-out infinite;
}
@keyframes ranking-more-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
    .ranking-more-btn:disabled { animation: none; opacity: 0.6; }
}

/* ── Landing page hero ─────────────────────────────────── */
.hero { padding: 4rem 1.5rem; }
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero-copy h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text);
}
.hero-copy p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0 0 1.5rem;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
}
.btn:hover { background: var(--surface-hover); }
.btn-primary {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--brand-accent-dark); border-color: var(--brand-accent-dark); }
