/* ════════════════════════════════════════════════════════════════════════
   Markcompetitie — RV Breda
   Design system v2: navy + red + paper, Archivo + Source Sans 3.
   ════════════════════════════════════════════════════════════════════════ */

/* ---------- Tokens ---------- */
:root {
  --navy:        #0E2C4B;
  --navy-deep:   #081D33;
  --navy-soft:   #163C61;
  --red:         #DA2128;
  --red-dark:    #B71820;
  --red-deep:    #841016;
  --red-darker:  #5B0E12;
  --rose:        #F5C6C8;
  --rose-soft:   #FBE7E8;
  --paper:       #F5F2EC;
  --paper-2:     #EFEBE2;
  --white:       #FFFFFF;
  --ink:         #13212E;
  --muted:       #5E6E7C;
  --line:        #E4DFD4;
  --line-soft:   #EDE9E0;
  --gold:        #C9A14A;
  --silver:      #B7BFC7;
  --bronze:      #C8865A;
  --green:       #3FA46B;
  --green-soft:  #E6F4EC;
  --amber:       #C97A1A;
  --amber-soft:  #FBF1E0;
  --shadow:      0 1px 2px rgba(8,29,51,.06), 0 8px 24px rgba(8,29,51,.06);
  --shadow-lg:   0 12px 40px rgba(8,29,51,.14);
  --shadow-red:  0 4px 20px rgba(132,16,22,.25);
  --r:           14px;
  --r-sm:        9px;

  /* Backwards-compatible aliassen */
  --blauw:        var(--navy);
  --blauw-licht:  #EAF1F8;
  --groen:        var(--green);
  --groen-licht:  var(--green-soft);
  --rood:         var(--red);
  --oranje:       var(--amber);
  --grijs:        var(--muted);
  --bg:           var(--paper);
  --bg-kaart:     var(--white);
  --rand:         var(--line);
  --rand-licht:   var(--line-soft);
  --tekst:        var(--ink);
  --tekst-sub:    var(--muted);
  --font:         'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: 'Archivo', sans-serif; line-height: 1.1; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site-header {
  background: var(--red); color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-red);
}
.head-inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; height: 78px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark {
  width: 50px; height: 50px; flex: 0 0 auto;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.brand .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt .club {
  font-family: 'Archivo'; font-weight: 900; font-size: 21px;
  letter-spacing: .02em; text-transform: uppercase; color: #fff;
}
.brand-txt .sub {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.78); margin-top: 5px; font-weight: 600;
}
nav.main {
  display: flex; gap: 4px; align-items: center; flex-wrap: nowrap;
  justify-content: center;
}
nav.main a {
  font-family: 'Archivo'; font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 13px; border-radius: 7px;
  color: rgba(255,255,255,.85); transition: background .2s, color .2s; position: relative;
  white-space: nowrap;
}
nav.main a:hover { background: rgba(255,255,255,.13); color: #fff; }
nav.main a.active { color: #fff; }
nav.main a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px;
  height: 3px; background: #fff; border-radius: 2px;
}

/* ── Header-rechts: rond icoon (hangslot / profiel) ───────────────── */
.head-right { display: flex; align-items: center; gap: 8px; }

/* Ronde icoon-knop, werkt voor zowel <a> (inlog-link) als <button> (dropdown-trigger). */
.auth-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%; cursor: pointer; text-decoration: none;
  background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  transition: background .2s, transform .1s;
}
.auth-icon-btn:hover { background: rgba(255,255,255,.24); color: #fff; }
.auth-icon-btn:active { transform: scale(0.95); }
.auth-icon-btn svg { display: block; }

.user-menu { position: relative; }

/* Dropdown klapt onder-links uit: rechterrand uitgelijnd met rechterrand
   van de knop, menu groeit naar links. Dat houdt 'm binnen de viewport
   omdat de knop helemaal rechts in de header staat. */
.user-menu-list {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  min-width: 220px; max-width: calc(100vw - 32px);
  padding: 6px; z-index: 100;
}
.user-menu.open .user-menu-list { display: block; }
.user-menu-list a, .user-menu-list button {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 6px; border: none;
  background: transparent; color: var(--ink); cursor: pointer;
  font-family: 'Source Sans 3'; font-size: 14px; font-weight: 500;
  text-decoration: none;
}
.user-menu-list a:hover, .user-menu-list button:hover { background: var(--paper-2); }
.user-menu-list hr {
  border: 0; border-top: 1px solid var(--line-soft); margin: 4px 0;
}
.user-menu-list .menu-meta {
  padding: 8px 12px 10px;
  display: flex; flex-direction: column; gap: 5px;
}
.user-menu-list .menu-meta-name {
  font-size: 13px; color: var(--muted); word-break: break-word;
}

/* ---------- Hero band (optioneel per pagina) ---------- */
.hero {
  position: relative; background: var(--red-deep); color: #fff; overflow: hidden;
}
.hero .wave { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; pointer-events: none; }
.hero > .wrap { position: relative; padding: 56px 24px 64px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Archivo'; font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .2em;
  color: #fff; margin-bottom: 16px;
}
.kicker::before {
  content: ""; width: 30px; height: 3px; background: #fff; display: inline-block;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 60px); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.02em; max-width: 22ch;
}
.hero h1 em { font-style: normal; color: var(--rose); }
.hero p.lead {
  margin-top: 14px; max-width: 56ch; color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.55;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: 100px; font-size: 14px; font-weight: 600;
  color: #fff; backdrop-filter: blur(4px);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.pill.live .dot { background: #5BE298; box-shadow: 0 0 0 0 rgba(91,226,152,.6); animation: pulse 2s infinite; }
.pill.muted { background: rgba(255,255,255,.06); color: rgba(255,255,255,.82); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(91,226,152,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(91,226,152,0); }
  100% { box-shadow: 0 0 0 0 rgba(91,226,152,0); }
}
.hero-extra { margin-left: auto; }
.hero-select { display: flex; align-items: center; gap: 10px; }
.hero-select label {
  font-size: 12px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
}
.hero-select select {
  font-family: 'Source Sans 3'; font-weight: 600; font-size: 14px; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
}
.hero-select select option { color: var(--ink); }

/* ---------- Main ---------- */
main.main { padding: 40px 0 56px; }
main.main > .wrap { width: 100%; }

/* ---------- Section head ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 22px; flex-wrap: wrap; gap: 14px;
}
.section-head .kicker { color: var(--red); margin-bottom: 8px; }
.section-head .kicker::before { background: var(--red); }
.section-head h2 {
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; color: var(--navy);
  text-transform: uppercase;
}
.section-head h1 {
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; color: var(--navy);
  text-transform: uppercase;
}
.section-head p {
  color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 60ch;
}

/* Compacte page-header (oude api, voor admin-pagina's etc.) */
.page-header { margin-bottom: 22px; }
.page-header h1 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--navy);
  text-transform: uppercase; letter-spacing: -.01em;
}
.page-header .sub, .sub {
  color: var(--muted); font-size: 14.5px; margin-top: 6px;
}

/* ---------- Cards (klassieke .card) ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.25rem;
  margin-bottom: 1rem; box-shadow: var(--shadow);
}
.card h2 {
  font-size: 15px; font-weight: 800; color: var(--navy);
  text-transform: uppercase; letter-spacing: .02em; margin-bottom: 1rem;
}
.empty {
  text-align: center; padding: 3rem 1rem; color: var(--muted); font-size: 14.5px;
  background: var(--white); border: 1px dashed var(--line); border-radius: var(--r);
  margin-bottom: 1rem;
}

/* ---------- Flash messages ---------- */
.flash {
  padding: 12px 18px; border-radius: var(--r-sm);
  margin-bottom: 1rem; font-size: 14.5px; border-left: 4px solid;
}
.flash-ok   { background: var(--green-soft); color: #1F4D2E; border-color: var(--green); }
.flash-fout { background: var(--rose-soft);  color: #6E0F14; border-color: var(--red); }
.flash-info { background: #EAF1F8;           color: var(--navy); border-color: var(--navy-soft); }

/* ---------- Forms ---------- */
label {
  display: block; font-size: 13px; color: var(--muted);
  margin-bottom: 6px; margin-top: 14px; font-weight: 600; letter-spacing: .01em;
}
label:first-of-type { margin-top: 0; }
input[type=text], input[type=date], input[type=email], input[type=number],
input[type=tel],
input[type=file], input[type=password], select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14.5px; font-family: 'Source Sans 3'; color: var(--ink);
  background: var(--white); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px rgba(22,60,97,.15);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.row2ext { display: flex; gap: 12px; flex-wrap: wrap; }
.row2ext > div { flex: 1; min-width: 120px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 9px 18px; border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer;
  font-family: 'Archivo'; font-weight: 600; font-size: 13.5px;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--white); color: var(--ink);
  text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--paper-2); border-color: var(--navy-soft); color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-soft); color: #fff; }
.btn-danger, .btn-warn { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover, .btn-warn:hover { background: var(--red-dark); color: #fff; }
.btn-success { background: var(--green); color: #fff; border-color: var(--green); }
.btn-success:hover { background: #2E8754; color: #fff; }
.btn-sm  { padding: 5px 11px; font-size: 11.5px; letter-spacing: .03em; }
.btn-lg  { padding: 12px 24px; font-size: 14.5px; }
.acties-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline { display: inline; }
form.inline { display: inline; }

/* ---------- Badges ---------- */
.badge {
  font-family: 'Archivo'; font-weight: 700;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px; display: inline-block;
}
.badge-extern    { background: var(--amber-soft); color: var(--amber); }
.badge-stuur     { background: #EAF1F8; color: var(--navy-soft); }
.badge-gs        { font-size: 12px; color: var(--muted); }
.badge-conflict  { background: var(--rose-soft); color: var(--red-dark); border: 1px solid #F0B5B8; }
.catcode {
  display: inline-block; background: var(--green-soft); color: #1F4D2E;
  font-family: 'Archivo'; font-weight: 700; font-size: 11px; letter-spacing: .03em;
  padding: 3px 8px; border-radius: 6px;
}
.boot-badge, .boottag {
  display: inline-block;
  font-family: 'Archivo'; font-weight: 700; font-size: 12px;
  letter-spacing: .03em; padding: 4px 10px; border-radius: 6px;
}
.boot-badge.boot-vloot, .boottag { background: #EAF1F8; color: var(--navy-soft); }
.boot-prive { background: #FDF4D9; color: #7A5900; }
.boot-huur  { background: var(--rose-soft); color: var(--red-dark); }
.medal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-family: 'Archivo'; font-weight: 700; font-size: 12px;
}
.gold   { background: var(--gold);   color: #4A380F; }
.silver { background: var(--silver); color: #2A2A2A; }
.bronze { background: var(--bronze); color: #fff; }

/* ---------- Tabel (.tbl, generiek) ---------- */
.table-scroll { overflow-x: auto; }
.table-scroll + .table-scroll { margin-top: 1rem; }
.tbl {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
  background: var(--white); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.tbl th {
  font-family: 'Archivo'; font-weight: 700;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); text-align: left;
  padding: 13px 16px; background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.tbl td {
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: #FBFAF6; }
.tbl .nr {
  font-family: 'Archivo'; font-weight: 800; color: var(--navy);
  font-size: 14.5px; width: 42px;
}
.roeiers-rij td { padding-top: 0; padding-bottom: 8px; }
.roeiers-cel { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.low-score td { color: var(--muted); font-style: italic; }
.tbl-tijden .tijd-input,
.tbl-tijden .ti-input {
  width: 92px; text-align: center; font-family: 'Source Sans 3';
  font-variant-numeric: tabular-nums; padding: 6px 8px;
}

/* ---------- Podium (klassement top-3) ---------- */
.podium {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-bottom: 28px;
}
.pcard {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; position: relative; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard .rank {
  font-family: 'Archivo'; font-weight: 900; font-size: 64px; line-height: .8;
  color: var(--paper-2); position: absolute; top: 14px; right: 18px;
}
.pcard.gold   { border-top: 5px solid var(--gold); }
.pcard.silver { border-top: 5px solid var(--silver); }
.pcard.bronze { border-top: 5px solid var(--bronze); }
.pcard .medal-label {
  font-family: 'Archivo'; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.pcard h3 { font-size: 21px; font-weight: 800; color: var(--navy); margin: 8px 0 2px; }
.pcard .cat { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.pcard .pts {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft);
}
.pcard .pts b {
  font-family: 'Archivo'; font-weight: 900; font-size: 28px; color: var(--red);
}
.pcard .pts span { font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* ---------- Panel (two-col secties) ---------- */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden;
  margin-bottom: 1rem;
}
.panel-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.panel-head h3 {
  font-size: 16px; font-weight: 800; color: var(--navy);
  text-transform: uppercase; letter-spacing: .02em;
}
.panel-head a, .panel-head .link {
  font-family: 'Archivo'; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--red);
}
.panel-body { padding: 16px 20px; }
.panel-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--line-soft);
  transition: background .15s;
}
.panel-row:last-child { border-bottom: none; }
.panel-row:hover { background: #FBFAF6; }

/* Divider met centraal logo-merk */
.divider { display: flex; align-items: center; gap: 18px; margin: 44px 0 26px; }
.divider .line { flex: 1; height: 1px; background: var(--line); }
.divider .mk { width: 28px; height: 28px; opacity: .75; }

/* ---------- Roeiers/avatar in tabel ---------- */
.roeier { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo'; font-weight: 700; font-size: 13px;
  flex: 0 0 auto; letter-spacing: .02em;
}
.roeier .nm { font-weight: 600; color: var(--ink); }
.roeier .ply { font-size: 13px; color: var(--muted); }

/* ---------- Roeierkaart (inschrijven) ---------- */
.rower-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 14px; margin-bottom: 10px;
}
.rower-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.rower-header strong { font-size: 14px; min-width: 110px; color: var(--navy); }
.toggle-wrap {
  display: inline-flex; border: 1px solid var(--line); border-radius: 7px;
  overflow: hidden; font-size: 12.5px;
}
.tbtn {
  padding: 5px 12px; cursor: pointer; background: var(--white); color: var(--muted);
  border: none; border-right: 1px solid var(--line);
  font-family: 'Archivo'; font-weight: 600;
}
.tbtn:last-child { border-right: none; }
.tbtn.on { background: var(--navy); color: #fff; }
.lid-info {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 8px; font-size: 13.5px;
}
.lid-info strong { font-size: 14px; color: var(--navy); }
.warn { color: var(--red-dark); }

/* ---------- Autocomplete ---------- */
.ac-wrap { position: relative; }
.ac-list {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-sm); z-index: 200; max-height: 220px; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.ac-item {
  padding: 9px 14px; cursor: pointer; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.ac-item:hover { background: var(--paper-2); }
.ac-item small { color: var(--muted); font-size: 12px; }
.ac-item-disabled { cursor: not-allowed; opacity: .6; background: #fafafa; }
.ac-item-disabled:hover { background: #fafafa; }

/* ---------- Handicap preview ---------- */
.hp-box {
  background: #EAF1F8; border: 1px solid #C8D8E8;
  border-radius: var(--r-sm); padding: 14px; margin-top: 12px; font-size: 13.5px;
}
.hp-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hp-title {
  font-family: 'Archivo'; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--navy);
}
.hp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hp-th td { font-weight: 700; color: var(--navy); padding-bottom: 5px; }
.hp-table td { padding: 2px 0; color: var(--navy); }
.hp-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hp-gem td { border-top: 1px solid #C8D8E8; padding-top: 5px; font-weight: 700; color: var(--navy); }
.hp-footer { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- Beheerder specifiek ---------- */
.upload-form { margin-top: 8px; }
.upload-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0;
}
.upload-row input[type=file] { flex: 1; min-width: 200px; }
.acties { white-space: nowrap; }
details.inline-form { display: inline-block; }
details.inline-form summary { list-style: none; cursor: pointer; }
details.inline-form summary::-webkit-details-marker { display: none; }
.mini-form {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-top: 8px; padding: 10px;
  background: var(--paper-2); border-radius: var(--r-sm);
}
.mini-form input { width: auto; }
.status-badge {
  display: inline-block;
  font-family: 'Archivo'; font-weight: 700;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 100px;
}
.status-open     { background: var(--green-soft); color: #1F4D2E; }
.status-gesloten { background: var(--amber-soft); color: var(--amber); }
.status-gepubl   { background: #EAF1F8;            color: var(--navy-soft); }
.uitslag-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.hint { font-size: 13.5px; color: var(--muted); margin: 6px 0; }

/* ---------- Conflictenpagina ---------- */
.conflict-blok { margin-bottom: 1.5rem; padding: 1rem; background: var(--paper-2); border-radius: var(--r-sm); }
.conflict-blok:last-child { border-bottom: none; }
.conflict-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.conflict-rij { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.conflict-ploeg-info { flex: 1; min-width: 200px; padding-top: 4px; }
.conflict-acties { display: flex; flex-direction: column; gap: 6px; }
.alt-boot-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.huurboot-blok { margin-bottom: 1rem; padding: 10px; background: var(--paper-2); border-radius: var(--r-sm); }
.huurboot-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Vlootbeheer ---------- */
.types-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.type-check {
  display: flex; align-items: center; gap: 4px; font-size: 13px;
  background: var(--paper-2); padding: 4px 9px; border-radius: 6px;
  cursor: pointer; border: 1px solid var(--line);
}
.type-check input { width: auto; }

/* ---------- Inschrijvingenlijst namen ---------- */
.namen-lijst { display: flex; flex-direction: column; gap: 3px; padding: 2px 0 8px; }
.roeier-naam-item { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* ---------- Badges: TWC en uit de vaart ---------- */
.badge-twc {
  background: #EAF1F8; color: var(--navy-soft);
  font-family: 'Archivo'; font-weight: 700; font-size: 11px;
  letter-spacing: .04em; padding: 3px 8px; border-radius: 6px;
  text-transform: uppercase; display: inline-block;
}
.badge-vaart {
  background: var(--line-soft); color: var(--muted);
  font-family: 'Archivo'; font-weight: 700; font-size: 11px;
  letter-spacing: .04em; padding: 3px 8px; border-radius: 6px;
  text-transform: uppercase; display: inline-block;
}
.row-vaart td { opacity: .55; }

/* ---------- Homepage (op paper-achtergrond, zoals andere pagina's) ---------- */
.home-hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px;
  align-items: center; margin-top: 0;
}
.home-hero .foto-vak {
  border-radius: var(--r); overflow: hidden; min-height: 320px;
  background: var(--paper-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.home-hero .foto-vak img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-hero .foto-vak .placeholder { font-size: 56px; color: var(--muted); }
.home-hero .tekst-vak { display: flex; flex-direction: column; gap: 14px; }
.home-hero .intro-tekst {
  font-size: 16px; line-height: 1.7; color: var(--ink);
  /* v112: maximaal 7 regels tonen; langere tekst wordt afgekapt met '…'.
     Zo kan een lange welkomsttekst de knoppen nooit van de pagina duwen. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
}
.home-hero .intro-tekst p + p { margin-top: .6em; }
/* v112: knoppen onder de tekst, naast elkaar en even breed. */
.home-hero .knoppen {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 8px;
}
.home-hero .knoppen .pill-btn { width: 100%; justify-content: center; text-align: center; }
@media (max-width: 560px) {
  /* Smal scherm: onder elkaar, nog steeds even breed. */
  .home-hero .knoppen { grid-template-columns: 1fr; }
}

/* Pill-knoppen: rond rood-vol op cream achtergrond */
.pill-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px; border-radius: 100px;
  font-family: 'Archivo'; font-weight: 700; font-size: 13.5px;
  text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s;
  border: 1px solid transparent;
}
.pill-btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 3px 10px rgba(218,33,40,.25);
}
.pill-btn-primary:hover {
  background: var(--red-dark); color: #fff;
  transform: translateY(-1px); box-shadow: 0 5px 14px rgba(218,33,40,.32);
}
.pill-btn-ghost {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.pill-btn-ghost:hover {
  background: var(--navy); color: #fff; transform: translateY(-1px);
}

/* ---------- Baanrecords (admin) ---------- */
.br-cat-header td {
  background: var(--paper-2); padding: 8px 14px;
  font-family: 'Archivo'; font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--navy);
  border-top: 2px solid var(--line);
}
.badge-br {
  display: inline-block;
  font-family: 'Archivo'; font-weight: 700; font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}
.br-cat   { background: #FEF3C7; color: #854D0E; border: 1px solid #FDE68A; }
.br-all   { background: var(--green-soft); color: #1F4D2E; border: 1px solid #B0DCC1; }
.br-nieuw { background: #EDE9FE; color: #5B21B6; border: 1px solid #C4B5FD; }

/* ---------- Beheerder-dashboard wedstrijdkaarten ---------- */
.wed-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 20px; margin-bottom: 14px;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s;
}
.wed-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.wed-open     { border-left: 5px solid var(--green); }
.wed-gesloten { border-left: 5px solid var(--navy); }
.wed-archief  { border-left: 5px solid var(--line); background: #fafafa; padding: 12px 18px; margin-bottom: 8px; }
.wed-card-header { margin-bottom: 10px; }
.wed-acties { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---------- Workflow-stepper op beheerderspaneel ---------- */
/* Toont per wedstrijd de 9 processtappen als een horizontale rij tegeltjes.
   Klikbare stappen (GET) zijn <a>, POST-stappen zijn <span> (niet klikbaar). */
.workflow-stepper {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 12px 0 10px; padding: 10px 12px;
  background: var(--paper-2); border-radius: 8px;
  border: 1px solid var(--line);
}
.ws-step {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 16px;
  font-family: 'Archivo'; font-size: 12px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .12s, box-shadow .12s;
}
a.ws-step:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,.10); }
.ws-nr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 800; background: rgba(0,0,0,.12);
}
.ws-icon { font-size: 13px; }
.ws-naam { letter-spacing: .01em; }

/* Statusvarianten */
.ws-done {
  background: #DCFCE7; color: #166534; border-color: #86EFAC;
}
.ws-done .ws-nr { background: #16A34A; color: #fff; }
.ws-current {
  background: #FEF3C7; color: #92400E; border-color: #FBBF24;
  animation: ws-pulse 2s ease-in-out infinite;
}
.ws-current .ws-nr { background: #F59E0B; color: #fff; }
.ws-todo {
  background: #fff; color: var(--muted); border-color: var(--line);
}
.ws-todo .ws-nr { background: #E5E7EB; color: var(--muted); }
.ws-info {
  background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE;
  font-style: italic;
}
.ws-info .ws-nr { background: #3B82F6; color: #fff; }
/* Info-stappen die tegelijk als done zouden moeten gelden houden hun blauw */
span.ws-step { cursor: default; opacity: .85; }

@keyframes ws-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .4); }
  50%      { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0); }
}

/* Op smalle schermen: kleiner + eventueel labels afkorten */
@media (max-width: 720px) {
  .workflow-stepper { padding: 8px; gap: 4px; }
  .ws-step { padding: 4px 8px; font-size: 11px; }
  .ws-naam { display: none; }  /* alleen nummer + icoon op mobiel */
}

/* Boot-status in kolomtitel op /inschrijvingen */
.boot-status {
  font-weight: 400; font-size: 11px; text-transform: none;
  letter-spacing: 0; margin-left: 2px;
}
.boot-status-aangevraagd { color: var(--amber); }
.boot-status-toegewezen  { color: var(--green); }

/* DNS/DSQ-rij in uitslag en tijden-invoer */
.row-status td, .row-uitgesloten td { background: #fafafa; color: var(--muted); }
.row-status td:nth-child(2) strong { color: var(--ink); }
.status-code {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  background: var(--rose-soft); color: var(--red-dark);
  font-family: 'Archivo'; font-weight: 700;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
}

/* Drag-and-drop visuele feedback */
tr.ploeg-row { cursor: default; }
tr.ploeg-row[draggable="true"] .drag-handle { cursor: grab; font-size: 16px; }
tr.ploeg-row[draggable="true"]:hover .drag-handle { color: var(--navy); }
tr.drag-over-top    { border-top: 2px solid var(--navy); }
tr.drag-over-bottom { border-bottom: 2px solid var(--navy); }

/* ---------- Video-grid ---------- */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-top: 10px;
}
.video-card { cursor: pointer; transition: transform .15s; }
.video-card:hover { transform: translateY(-3px); }
.video-thumb {
  position: relative; padding-top: 56.25%; overflow: hidden;
  border-radius: var(--r-sm); background: #000;
}
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.7); color: #fff; width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; padding-left: 4px;
  transition: background .15s, transform .15s; pointer-events: none;
}
.video-card:hover .video-play {
  background: rgba(218,33,40,.92); transform: translate(-50%, -50%) scale(1.08);
}
.video-title { margin: 10px 0 4px 0; font-size: 15.5px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.video-date { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
/* Zelfde rood als de header — dat trekt de banners boven/onder visueel gelijk. */
footer.site-footer {
  background: var(--red); color: rgba(255,255,255,.85); margin-top: 50px;
}
.foot-top { padding: 50px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 36px; }
footer.site-footer .brand-txt .club { color: #fff; }
footer.site-footer .brand-txt .sub { color: rgba(255,255,255,.7); }
footer.site-footer h4 {
  font-family: 'Archivo'; font-weight: 700; color: #fff;
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px;
}
footer.site-footer ul { list-style: none; padding: 0; }
footer.site-footer li { margin-bottom: 8px; font-size: 14px; }
footer.site-footer a:hover { color: #fff; }
.foot-about { font-size: 14px; line-height: 1.6; max-width: 40ch; margin-top: 14px; color: rgba(255,255,255,.78); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding: 18px 0;
  font-size: 13px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,.72);
}

/* ---------- Reveal-animatie ---------- */
.reveal {
  opacity: 0; transform: translateY(12px);
  animation: rise .55s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Vereniging-blad in tabellen ---------- */
.col-blad { width: 56px; text-align: center; padding: 4px 6px !important; }
.blad-mini {
  display: block; margin: 0 auto;
  width: 48px; height: 22px; object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.08));
}
.blad-init {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 22px; border-radius: 4px;
  background: var(--paper-2); color: var(--muted);
  font-family: 'Archivo'; font-size: 10px; font-weight: 700;
  letter-spacing: .04em;
}
.login-card {
  max-width: 420px; margin: 30px auto 60px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 36px 32px; box-shadow: var(--shadow);
}
.login-card h1 {
  font-size: 24px; font-weight: 800; color: var(--navy);
  text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 6px;
}
.login-card .sub { margin-bottom: 22px; }
.login-card .btn-primary { width: 100%; padding: 11px; }
.login-card .alt-link {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: 13.5px; color: var(--muted); text-align: center;
}
/* Generieke knop-als-link (v109: POST-logout e.d.) */
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--blauw); font: inherit; text-decoration: underline;
}
.link-btn:hover { color: var(--navy); }

.login-card .alt-link a, .login-card .alt-link .link-btn {
  color: var(--red); text-decoration: none; font-weight: 600;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; font-size: inherit;
}
.login-card .alt-link a:hover, .login-card .alt-link .link-btn:hover {
  text-decoration: underline;
}

/* ---------- Aanmelden — keuzepagina ---------- */
.kies-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin: 30px 0 20px;
}
.kies-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 32px 28px;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.kies-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}
.kies-card.kies-lid:hover { border-color: var(--red); }
.kies-ico {
  width: 80px; height: 80px; margin-bottom: 4px;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.kies-ico img, .kies-ico svg {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.kies-card h2 {
  font-family: 'Archivo'; font-size: 22px; font-weight: 800;
  color: var(--navy); text-transform: uppercase; letter-spacing: -.005em;
}
.kies-card p {
  font-size: 14.5px; color: var(--muted); line-height: 1.55;
}
.kies-card .kies-cta {
  margin-top: 6px;
  font-family: 'Archivo'; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--red);
}
@media (max-width: 720px) {
  .kies-grid { grid-template-columns: 1fr; }
}

/* ---------- Gebruikers-beheer ---------- */
.gebruiker-rol-badge {
  display: inline-block; font-family: 'Archivo';
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 6px; text-transform: uppercase;
}
.rol-all   { background: var(--navy);  color: #fff; }
.rol-mccs  { background: var(--green); color: #fff; }
.rol-wedcom{ background: var(--amber); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .home-hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .head-inner {
    grid-template-columns: auto auto;
    height: auto; padding: 12px 0;
    grid-template-areas: "brand right" "nav nav";
  }
  .brand { grid-area: brand; }
  nav.main {
    grid-area: nav; justify-content: flex-start; flex-wrap: wrap;
    padding-top: 6px; gap: 2px;
  }
  nav.main a { padding: 6px 10px; font-size: 13px; }
  .head-right { grid-area: right; justify-self: end; }
}
@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
  .brand .mark { width: 40px; height: 40px; }
  .brand-txt .club { font-size: 17px; }
  .brand-txt .sub { font-size: 11px; letter-spacing: .18em; }
  nav.main a { padding: 5px 8px; font-size: 12px; letter-spacing: .03em; }
}

/* v118: bevestigingsdialogen (verwijderen) — lichte dim achter de dialog. */
dialog::backdrop { background: rgba(14, 44, 75, .35); }
