/* Region LiveTiming stylesheet
   Generated: 2026-02-23
   Based on KNZB bond stylesheet, refactored for a frisse regio-opmaak.
   Notes:
   - Keep the same IDs/classes as Splash Meet Manager output.
   - Adjust the CSS variables in :root to match your regio branding.
*/

:root {
  /* Brand */
  --primary: #0B4AA2;         /* regio blauw */
  --primary-2: #0EA5E9;       /* fris accent (water) */
  --ink: #0F172A;             /* bijna-zwart */
  --muted: #64748B;
  --bg: #F6F8FB;
  --card: #FFFFFF;
  --border: #E2E8F0;

  /* Typography */
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --font-heading: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;

  /* Shape & depth */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --shadow-sm: 0 6px 16px rgba(2, 6, 23, 0.06);

  /* Layout */
  --maxw: 1100px;
  --pad: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Keep Splash Meet Manager ordering */
#headerkop          { order: 1;}
#navigation         { order: 3;}
#header             { order: 2;}
#lastupdate         { order: 4;}
#freeText           { order: 5;}
#noscript           { order: 6;}
#results            { order: 7;}
#reclame            { order: 8;}
#footer             { order: 9;}

img { border: 0; max-width: 100%; height: auto; }

a {
  color: var(--primary);
  text-decoration: none;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--primary-2);
  text-decoration: underline;
}

/* Generic "tab" blocks generated by Splash */
.tab {
  border: none;
  display: none;
  vertical-align: top;
}
.tab tr td:first-child { padding-left: 6px; }

/* ---------- Header ---------- */

#header {
  position: relative;
  width: 100%;
  min-height: 92px;
  background: linear-gradient(110deg, rgba(11,74,162,0.95) 0%, rgba(14,165,233,0.90) 60%, rgba(11,74,162,0.90) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

#header table {
  width: min(var(--maxw), calc(100% - 2*var(--pad)));
  margin: 0 auto;
  height: 92px;
  color: #fff;
  font-size: 22px;
  font-weight: 750;
  font-family: var(--font-heading);
}

#header table td {
  padding: 10px 12px;
  vertical-align: middle;
}

#headerkop {
  width: min(var(--maxw), calc(100% - 2*var(--pad)));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 12px;
}

#headerkop img {
  height: 54px;
  margin: 8px 0;
}

#rechts img {
  margin: 0 6px;
}

#lastupdate {
  width: min(var(--maxw), calc(100% - 2*var(--pad)));
  margin: 10px auto 0;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Navigation ---------- */

#navigation {
  width: 100%;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

#navigation table {
  width: min(var(--maxw), calc(100% - 2*var(--pad)));
  margin: 0 auto;
  height: auto;
  padding: 10px 0;
  font-size: 0; /* legacy layout */
}

#navigation a {
  display: inline-block;
  font-size: 15px;
  font-weight: 650;
  color: var(--primary);
  padding: 10px 12px;
  border-radius: 999px;
  margin: 6px 6px 0 0;
  border: 1px solid transparent;
}

#navigation table a:hover {
  background: rgba(14,165,233,0.10);
  border-color: rgba(14,165,233,0.25);
  text-decoration: none !important;
}

#navigation a[style="font-weight: bold; text-decoration: none;"] {
  background: rgba(11,74,162,0.12);
  border-color: rgba(11,74,162,0.22);
}

a#href0, a#href1, a#href2, a#href3, a#href4 {
  font-weight: 650 !important;
}

/* ---------- Info blocks ---------- */

#noscript {
  width: min(var(--maxw), calc(100% - 2*var(--pad)));
  margin: 14px auto;
  padding: 12px 14px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  border-radius: var(--radius);
  font-weight: 700;
  color: #b91c1c;
  text-align: center;
}

#freeText {
  width: min(var(--maxw), calc(100% - 2*var(--pad)));
  margin: 16px auto 0;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

#freeText a { color: var(--primary); }
#freeText a:hover { color: var(--primary-2); }

/* ---------- Results ---------- */

#results {
  width: min(var(--maxw), calc(100% - 2*var(--pad)));
  margin: 14px auto 24px;
  line-height: 1.55;
}

#results table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.trList1 {
  background: rgba(2,6,23,0.03);
}

#results td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}

#results table:first-child {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.title1, .title2 {
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  font-family: var(--font-heading);
}

#tab0 .title1 {
  color: var(--primary);
  font-style: normal;
}

td.leftText[colspan]:not([colspan="1"]) {
  color: var(--primary);
  font-weight: 750;
}

.leftText { color: var(--ink); }
.centerText { text-align: left; color: var(--muted); }
.rightText { text-align: right; font-variant-numeric: tabular-nums; }

/* PDF link icon (kept) */
.tab table:first-child tr:not(.trList1) a[href $='.pdf'], #freeText a[href $='.pdf'] {
  background: transparent url('../pdf.png') no-repeat center left;
  line-height: 20px;
  padding: 1px 0 1px 18px;
}
.tab table:first-child tr.trList0 a[href $='.pdf'] {
  background: none;
  padding: 0;
}

/* ---------- Sponsor/ads block ---------- */

#reclame {
  width: min(var(--maxw), calc(100% - 2*var(--pad)));
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

#reclame a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */

#footer {
  width: 100%;
  margin-top: 28px;
  padding: 28px 0 56px;
  text-align: center;
  background: #0B1220;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
}

#footer::before {
  content: "KNZB Regio | ";
  font-weight: 650;
  color: rgba(255,255,255,0.92);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  #header table {
    font-size: 18px;
  }
  #header {
    min-height: 84px;
  }
  #header table {
    height: 84px;
  }
  #headerkop img {
    height: 46px;
  }
  #navigation a {
    padding: 9px 10px;
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  #lastupdate { text-align: left; }
  .rightText { text-align: left; }
}
