/* Bidon: klassement aller tijden, blok op de fiche en "Jouw plaats" in Mijn Pedaal. */
:root {
  --atx-card: #fff; --atx-zacht: #f4f6f9; --atx-bar: #9fb3d6; --atx-rec: #1f4fd1; --atx-nu: #f4b41a;
  --atx-oud: #7a8699; --atx-chip: #fff; --atx-chip-on: #0c1a30; --atx-chip-on-fg: #fff; --atx-det: #f7f9fc;
  --atx-goud: #f4b41a; --atx-zilver: #c5ccd9; --atx-brons: #d38b4a;
}
:root[data-theme="dark"] {
  --atx-card: var(--paper, #161b22); --atx-zacht: var(--paper-2, #1c2129); --atx-bar: #4a5f86; --atx-rec: #6d9cff;
  --atx-oud: #8d98aa; --atx-chip: var(--paper, #161b22); --atx-chip-on: #e9eef7; --atx-chip-on-fg: #0c1a30; --atx-det: #1a2029;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --atx-card: var(--paper, #161b22); --atx-zacht: var(--paper-2, #1c2129); --atx-bar: #4a5f86; --atx-rec: #6d9cff;
    --atx-oud: #8d98aa; --atx-chip: var(--paper, #161b22); --atx-chip-on: #e9eef7; --atx-chip-on-fg: #0c1a30; --atx-det: #1a2029;
  }
}

/* ---------- kop ---------- */
.atx-band .sec-band-in { padding-block: var(--space-5, 1.5rem) var(--space-6, 2rem); }
.atx-band .kn { margin-bottom: var(--space-5, 1.5rem); }
.atx-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.atx-intro { min-width: 0; }
.atx-lead { margin: 14px 0 0; max-width: 34em; font-size: 1.05rem; line-height: 1.5; opacity: .9; }
.atx-recs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.atx-rec { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); min-width: 0; }
.atx-rec small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.atx-rec b { display: block; margin-top: 4px; font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.atx-rec span { display: block; font-size: .85rem; opacity: .85; }
.atx-pod { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.atx-p { text-align: center; min-width: 0; }
.atx-pn { display: block; font-size: 1.05rem; line-height: 1.2; }
.atx-p small { display: block; margin: 2px 0 8px; font-size: .78rem; opacity: .75; }
.atx-pb { border-radius: 10px 10px 0 0; color: #0c1a30; display: flex; flex-direction: column; align-items: center; padding-top: 12px; }
.atx-pb span { font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; line-height: 1; }
.atx-pb em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1rem; }
.atx-p1 .atx-pb { background: var(--atx-goud); height: 190px; }
.atx-p2 .atx-pb { background: var(--atx-zilver); height: 150px; }
.atx-p3 .atx-pb { background: var(--atx-brons); height: 128px; }
.atx-mem { font-size: .8em; opacity: .6; font-weight: 400; }

/* ---------- filters ---------- */
.atx-body { padding-block: 24px 48px; }
.atx-filt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; background: var(--atx-card); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.atx-zoek { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: var(--atx-zacht); min-width: 0; }
.atx-zoek svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.atx-zoek input { border: 0; background: none; font: inherit; width: 100%; outline: none; color: inherit; min-width: 0; }
.atx-grp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.atx-lab { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.atx-tot { color: var(--muted); font-size: .9rem; }
.atx-filt select { height: 38px; padding: 0 10px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--atx-chip); color: inherit; font: inherit; font-weight: 700; }
.atx-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.atx-chips button { height: 36px; padding: 0 13px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--atx-chip); color: inherit; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.atx-chips button small { opacity: .65; font-weight: 700; }
.atx-chips button[aria-pressed="true"] { background: var(--atx-chip-on); color: var(--atx-chip-on-fg); box-shadow: none; }
.atx-telling { margin: 0 0 0 auto; font-size: .88rem; color: var(--muted); }
.atx-telling:empty { display: none; }

/* ---------- tabel ---------- */
.atx-card { margin-top: 16px; background: var(--atx-card); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.atx-scroll { overflow-x: auto; }
.atx-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.atx-tbl th { text-align: left; padding: 14px 12px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.atx-tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atx-r { cursor: pointer; }
.atx-r:hover, .atx-r:focus-visible { background: var(--atx-zacht); outline: none; }
.atx-r.is-open { background: var(--atx-det); }
.atx-r.is-open td { border-bottom-color: transparent; }
.atx-c-p { width: 56px; padding-left: 18px !important; font-family: var(--f-display); font-weight: 900; font-size: 1.25rem; }
.atx-c-n { text-align: right; white-space: nowrap; }
th.atx-c-n { text-align: right; }
.atx-km { font-weight: 900; font-size: 1.05rem; }
.atx-nm { display: block; font-weight: 800; }
.atx-oud { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 999px; background: var(--atx-zacht); color: var(--atx-oud); font-size: .72rem; font-weight: 800; }
.atx-r.is-oud td { color: var(--atx-oud); }
.atx-r.is-oud .atx-nm { font-weight: 700; }
.atx-c-l, .atx-c-b { white-space: nowrap; }
.atx-c-b small { color: var(--muted); }
.atx-c-x { width: 40px; }
.atx-c-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .55; transition: transform .2s; }
.atx-r.is-open .atx-c-x svg { transform: rotate(180deg); }
.atx-sp { display: flex; align-items: flex-end; gap: 2px; height: 26px; width: 210px; }
.atx-sp i { flex: 1; background: var(--atx-bar); border-radius: 1px; min-height: 1px; }
.atx-sp i.is-0 { height: 2px !important; background: var(--line); }
.atx-sp i.is-rec { background: var(--atx-rec); }
.atx-sp i.is-nu { background: var(--atx-nu); }
.atx-sp i.is-uit { opacity: .25; }
.atx-r.is-oud .atx-sp i { background: var(--atx-bar); opacity: .7; }
.atx-r.is-oud .atx-sp i.is-0 { background: var(--line); }
.atx-det td { background: var(--atx-det); padding-top: 0; }
.atx-dw { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding: 4px 6px 18px 0; align-items: end; }
.atx-k { margin: 0 0 10px; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.atx-bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 5px; align-items: end; height: 110px; }
.atx-b { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; min-width: 0; }
.atx-b i { display: block; background: var(--atx-rec); border-radius: 3px 3px 0 0; }
.atx-b.is-0 i { height: 2px !important; background: var(--line); }
.atx-b.is-nu i { background: var(--atx-nu); }
.atx-b small { margin-top: 4px; text-align: center; font-size: .66rem; color: var(--muted); }
.atx-info { padding: 14px 16px; border-radius: 14px; background: var(--atx-card); box-shadow: 0 0 0 1px var(--line); font-size: .92rem; }
.atx-info p { margin: 0 0 4px; }
.atx-fl { display: inline-block; margin-top: 6px; font-weight: 800; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.atx-mut { color: var(--muted); }
.atx-leeg { padding: 30px 18px !important; text-align: center; color: var(--muted); }
.atx-voet { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; color: var(--muted); font-size: .9rem; }
.atx-noot { margin: 14px 2px 0; font-size: .85rem; color: var(--muted); max-width: 60em; }

/* ---------- fiche en Mijn Pedaal ---------- */
.atx-fiche .atx-fs { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 16px; }
.atx-fiche .atx-fs dt { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.atx-fiche .atx-fs dd { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.atx-fiche .atx-fs small { font-family: inherit; font-size: .9rem; font-weight: 600; }
.atx-fiche .atx-bars { height: 90px; gap: 3px; }
.atx-fiche .atx-b small { font-size: .6rem; }
.atx-jp { margin: 0 0 20px; padding: 20px 22px; border-radius: 18px; background: #0c1a30; color: #fff; border-top: 5px solid var(--atx-nu); }
.atx-jp .atx-k { color: #9fb3d6; margin-bottom: 4px; }
.atx-jph { margin: 0; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.atx-jp p { margin: 8px 0 0; color: #cfd8e6; max-width: 46em; }
.atx-jp p b { color: #fff; }
.atx-jpbar { margin: 14px 0; height: 10px; border-radius: 999px; background: #2a3a55; overflow: hidden; }
.atx-jpbar i { display: block; height: 100%; background: var(--atx-nu); border-radius: inherit; }
.atx-jpbtn { background: #fff; color: #0c1a30; font-weight: 800; }

/* ---------- smal ---------- */
@media (max-width: 1100px) {
  .atx-top { grid-template-columns: 1fr; }
  .atx-pod { max-width: 560px; }
  .atx-c-b { display: none; }
}
@media (max-width: 760px) {
  .atx-recs { grid-template-columns: 1fr; }
  .atx-rec { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
  .atx-rec b { grid-row: span 2; align-self: center; font-size: 1.25rem; margin: 0; }
  .atx-pb span { font-size: 2rem; }
  .atx-p1 .atx-pb { height: 130px; } .atx-p2 .atx-pb { height: 104px; } .atx-p3 .atx-pb { height: 88px; }
  .atx-pn { font-size: .9rem; }
  .atx-filt { padding: 14px; }
  .atx-zoek { flex-basis: 100%; }
  .atx-telling { margin: 0; }
  .atx-c-sp, .atx-c-l, th.atx-c-l { display: none; }
  .atx-tbl td, .atx-tbl th { padding: 12px 8px; }
  .atx-c-p { width: 40px; padding-left: 12px !important; font-size: 1.05rem; }
  .atx-dw { grid-template-columns: 1fr; }
  .atx-bars { height: 80px; gap: 2px; }
  .atx-b small { font-size: .55rem; }
  .atx-fiche .atx-fs dd { font-size: 1.6rem; }
}

/* formulierstijl van het thema niet overnemen in de filterbalk */
.atx-filt select { width: auto; max-width: 100%; margin: 0; min-height: 0; }
.atx-zoek input[type="search"] { height: auto; min-height: 0; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; border-radius: 0; }
.atx-filt .atx-lab { display: inline; margin: 0; }

.atx-b em { flex: 1; display: flex; align-items: flex-end; min-height: 0; font-style: normal; }
.atx-b em i { width: 100%; }
.atx-b.is-0 em i { height: 2px !important; }

/* km per jaar bij hover (lijst, opengevouwen rij en fiche) */
.atx-b, .atx-sp i { position: relative; }
.atx-b[data-t]:hover::after, .atx-sp i[data-t]:hover::after {
  content: attr(data-t); position: absolute; left: 50%; transform: translateX(-50%); z-index: 5; pointer-events: none;
  padding: 4px 8px; border-radius: 6px; background: #0c1a30; color: #fff; font-size: .75rem; font-weight: 800; line-height: 1.3; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(12,26,48,.25); font-variant-numeric: tabular-nums;
}
.atx-b[data-t]:hover::after { bottom: calc(100% + 4px); }
.atx-b:hover em i { filter: brightness(1.2); box-shadow: 0 0 0 2px rgba(12,26,48,.15); }
.atx-b.is-0:hover em i { background: var(--muted); }
.atx-sp { position: relative; }
.atx-sp i::before { content: ""; position: absolute; left: -1px; right: -1px; bottom: 0; height: 26px; }
.atx-sp i[data-t]:hover::after { bottom: 30px; }
.atx-sp i:hover { filter: brightness(1.25); outline: 1px solid currentColor; outline-offset: 1px; }
.atx-b:nth-child(-n+2)::after, .atx-sp i:nth-child(-n+2)::after { left: 0 !important; transform: none !important; }
.atx-b:nth-last-child(-n+2)::after, .atx-sp i:nth-last-child(-n+2)::after { left: auto !important; right: 0; transform: none !important; }
:root[data-theme="dark"] .atx-b[data-t]:hover::after, :root[data-theme="dark"] .atx-sp i[data-t]:hover::after { background: #e9eef7; color: #0c1a30; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .atx-b[data-t]:hover::after, :root:not([data-theme="light"]) .atx-sp i[data-t]:hover::after { background: #e9eef7; color: #0c1a30; } }
.atx-det td, .atx-fiche { overflow: visible; }
.atx-dg .atx-k { margin-bottom: 30px; }
.atx-fiche .atx-bars { margin-top: 30px; }

/* blok Seizoen op het profiel */
.atx-sz-tags { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.atx-sz-tags li { padding: 10px 12px; border-radius: 12px; background: var(--atx-zacht); border-top: 3px solid var(--line); min-width: 0; }
.atx-sz-tags li.is-club { border-top-color: #e2416b; }
.atx-sz-tags li.is-eigen { border-top-color: #2f86e8; }
.atx-sz-tags li.is-binnen { border-top-color: #7b5fc0; }
.atx-sz-tags li.is-tot { border-top-color: #f4b41a; }
.atx-sz-tags small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.atx-sz-tags b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.atx-sz-tags b i { font-style: normal; font-size: .8rem; font-weight: 600; font-family: inherit; }
.atx-sz-tags span { display: block; font-size: .8rem; color: var(--muted); }
.atx-sz-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--atx-zacht); margin-bottom: 8px; }
.atx-sz-bar i { display: block; height: 100%; }
.atx-sz-bar i.is-club { background: #e2416b; }
.atx-sz-bar i.is-eigen { background: #2f86e8; }
.atx-sz-bar i.is-binnen { background: #7b5fc0; }

/* kaart Jouw kilometers (Overzicht en Mijn ritten) */
.atx-verd { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px 22px; margin-bottom: 18px; }
.atx-donut { width: 100%; max-width: 180px; height: auto; display: block; }
.atx-donut-pct { font-family: var(--f-display); font-weight: 900; font-size: 28px; fill: var(--ink); }
.atx-donut-sub { font-size: 10px; fill: var(--muted); }
.atx-verd-tot { margin: 2px 0 10px; font-family: var(--f-display); font-weight: 900; font-size: 2rem; line-height: 1; }
.atx-verd-tot small { font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); }
.atx-verd-leg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.atx-verd-leg li > *, .atx-verd-leg a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--atx-zacht); color: inherit; text-decoration: none; }
.atx-verd-leg a:hover { box-shadow: 0 0 0 2px var(--line); }
.atx-verd-leg i { flex: none; width: 12px; height: 12px; border-radius: 3px; margin-top: 4px; }
.atx-verd-leg b { display: block; }
.atx-verd-leg small { color: var(--muted); }
.atx-verd-noot { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .atx-verd { grid-template-columns: 1fr; justify-items: center; } .atx-verd-r { width: 100%; } }

/* Jouw plaats (Overzicht): compacte balk */
.atx-jp { display: flex; align-items: center; gap: 18px; padding: 12px 18px; border-top: 0; border-left: 4px solid var(--atx-nu); border-radius: 14px; margin: 0 0 16px; }
.atx-jp-l { flex: none; display: flex; flex-direction: column; }
.atx-jp .atx-k { margin: 0; font-size: .65rem; }
.atx-jph { font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; line-height: 1; color: #fff; }
.atx-jph small { font-family: inherit; font-size: .8rem; font-weight: 600; color: #9fb3d6; }
.atx-jp-m { flex: 1 1 auto; min-width: 0; }
.atx-jp-m p { margin: 0 0 6px; font-size: .9rem; max-width: none; }
.atx-jp .atx-jpbar { margin: 0; height: 6px; }
.atx-jpbtn { flex: none; color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); }
.atx-jpbtn:hover { background: rgba(255,255,255,.2); }
@media (max-width: 640px) { .atx-jp { flex-wrap: wrap; gap: 10px 14px; } .atx-jp-m { flex-basis: 100%; order: 3; } .atx-jpbtn { margin-left: auto; } }
