/* TechChamp — Light theme, single system font stack */
:root {
  --bg: #f7faf8;
  --paper: #ffffff;
  --paper-alt: #eef5f0;
  --ink: #1a1f1c;
  --mute: #5a6560;
  --line: #d8e5dc;
  --forest: #1b4332;
  --leaf: #2d6a4f;
  --mint: #40916c;
  --gold: #b8860b;
  --gold-soft: #f5ecd0;
  --ember: #c45c26;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 18px rgba(27, 67, 50, 0.07);
  --shadow-sm: 0 1px 4px rgba(27, 67, 50, 0.05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sidebar: 290px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-decoration: none; }
a:hover { color: var(--forest); text-decoration: underline; }
.container { width: min(1160px, 94%); margin-inline: auto; }


/* ---------- header bar ---------- */
.site-header {
  position: sticky;                 
  top: 0;
  z-index: 100;
  background: var(--surface, #ffffff);
  border-bottom: 1px solid var(--border, #d9dfda);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-top: .5rem;
  padding-bottom: .5rem;
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.site-header .logo:focus-visible {
  outline: 3px solid rgba(47, 125, 87, .5);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- desktop menu ---------- */
.site-header .main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header .main-nav li {
  margin: 0;
}
.site-header .main-nav a {
  position: relative;
  display: block;
  padding: .55rem .9rem;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color .15s ease, color .15s ease;
}
.site-header .main-nav a:hover {
  background: rgba(47, 125, 87, .1);
  color: var(--forest, #2f7d57);
}
.site-header .main-nav a:focus-visible {
  outline: 3px solid rgba(47, 125, 87, .5);
  outline-offset: 1px;
}
/* the page you're on */
.site-header .main-nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--forest, #2f7d57);
}
.site-header .main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .25rem;
  height: 2px;
  background: var(--forest, #2f7d57);
  border-radius: 2px;
}

/* the toggle button only exists on small screens */
.nav-toggle {
  display: none;
}

/* ---------- skip link (keyboard users) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: .6rem 1rem;
  background: var(--forest, #2f7d57);
  color: #fff;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  outline: 3px solid rgba(255, 255, 255, .8);
  outline-offset: -3px;
}

/* ---------- mobile: button + drop-down menu ---------- */
@media (max-width: 768px) {

  .site-header .header-inner {
    flex-wrap: wrap;
    gap: 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .5rem .85rem;
    font: inherit;
    font-weight: 600;
    color: inherit;
    background: transparent;
    border: 1px solid rgba(128, 128, 128, .45);
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle:hover { border-color: var(--forest, #2f7d57); }
  .nav-toggle:focus-visible {
    outline: 3px solid rgba(47, 125, 87, .5);
    outline-offset: 2px;
  }

  /* three bars that turn into an X */
  .nav-toggle-bars {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 14px;
  }
  .nav-toggle-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .15s ease, top .2s ease;
  }
  .nav-toggle-bars span:nth-child(1) { top: 0; }
  .nav-toggle-bars span:nth-child(2) { top: 6px; }
  .nav-toggle-bars span:nth-child(3) { top: 12px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  /* the menu drops underneath, full width; hidden until opened (only when JavaScript runs) */
  .site-header .site-nav {
    flex: 0 0 100%;
    width: 100%;
    order: 3;
  }
  .js .site-header .site-nav { display: none; }
  .js .site-header.nav-open .site-nav { display: block; }

  .site-header .main-nav {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    margin: .6rem 0 .25rem;
  }
  .site-header .main-nav li {
    border-top: 1px solid rgba(128, 128, 128, .25);
  }
  .site-header .main-nav a {
    padding: .9rem .5rem;           /* 44px+ tap target */
    font-size: 1.05rem;
    border-radius: 0;
  }
  .site-header .main-nav a:hover {
    background: transparent;
  }
  /* on mobile the current page is shown with a green bar at the left instead of an underline */
  .site-header .main-nav a[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: .55rem;
    bottom: .55rem;
    width: 3px;
    height: auto;
  }
  .site-header .main-nav a[aria-current="page"] {
    padding-left: 1rem;
  }
}

/* wider screens: always show the menu, whatever the JavaScript state */
@media (min-width: 769px) {
  .js .site-header .site-nav { display: block; }
}

/* ---------- dark mode ---------- */
@media (prefers-color-scheme: dark) {
  .site-header {
    background: var(--surface, #141a16);
    border-bottom-color: var(--border, #2d3731);
    box-shadow: none;
  }
  .site-header .main-nav a:hover {
    background: rgba(94, 190, 140, .14);
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bars span,
  .site-header .main-nav a { transition: none; }
}




/* Light header */
.site-header {
  background: var(--paper);
  color: var(--ink);
  position: sticky; top: 0; z-index: 60;
  border-bottom: 2px solid var(--leaf);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0; gap: 1rem; flex-wrap: wrap;
}

/* ==========================================================
   TechChamp: contact form styles
   Append to your main stylesheet (after home-additions.css and lab-additions.css).
   Uses your existing CSS variables where they exist, with safe fallbacks:
   --forest (brand green), --border, --surface, --text, --muted
   ========================================================== */

.contact-form {
  max-width: 640px;
  margin: 1.25rem 0 1.5rem;
  padding: 1.5rem;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #d6dcd7);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.contact-form .cf-field {
  margin: 0 0 1.1rem;
}

.contact-form label {
  display: block;
  margin: 0 0 .35rem;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
}

.contact-form .cf-optional {
  font-weight: 400;
  font-size: .9em;
  color: var(--muted, #5f6b64);
}

/* text inputs, select and textarea */
.contact-form .cf-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: .7rem .85rem;
  font: inherit;
  line-height: 1.4;
  color: inherit;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border-strong, #aab4ad);
  border-radius: 8px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-form select.cf-input {
  padding-right: 2.2rem;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 50%, calc(100% - .8rem) 50%;
  background-size: .35rem .35rem, .35rem .35rem;
  background-repeat: no-repeat;
}

.contact-form textarea.cf-input {
  min-height: 9rem;
  resize: vertical;
}

.contact-form .cf-input::placeholder {
  color: var(--muted, #7a857e);
  opacity: .8;
}

.contact-form .cf-input:hover {
  border-color: var(--forest, #2f7d57);
}

.contact-form .cf-input:focus {
  outline: none;
  border-color: var(--forest, #2f7d57);
  box-shadow: 0 0 0 3px rgba(47, 125, 87, .25);
}

/* only flag a field as invalid once the person has typed something */
.contact-form .cf-input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #b3261e;
}

.contact-form .cf-note {
  margin: .25rem 0 1.1rem;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--muted, #5f6b64);
}

.contact-form .cf-actions {
  margin: 0;
}

.contact-form .btn {
  min-height: 44px;           /* comfortable tap target on phones */
  padding: .7rem 1.6rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.contact-form .btn:focus-visible {
  outline: 3px solid rgba(47, 125, 87, .45);
  outline-offset: 2px;
}

/* the hidden anti-spam field: keep it out of sight and out of the tab order */
.contact-form .cf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* success and error messages that sit above the form */
.info-card[role="alert"],
.info-card[role="status"] {
  max-width: 640px;
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border, #d6dcd7);
  border-left-width: 5px;
}

.info-card[role="alert"] {
  border-left-color: #b3261e;
  background: rgba(179, 38, 30, .06);
}

.info-card[role="status"] {
  border-left-color: var(--forest, #2f7d57);
  background: rgba(47, 125, 87, .08);
}

.info-card[role="alert"] ul {
  margin: .4rem 0 0 1.2rem;
  padding: 0;
}

/* dark mode */
@media (prefers-color-scheme: dark) {
  .contact-form {
    background: var(--surface, #1b211d);
    border-color: var(--border, #34403a);
    box-shadow: none;
  }
  .contact-form .cf-input {
    background: var(--surface, #141a16);
    border-color: var(--border-strong, #4a5850);
  }
  .contact-form .cf-input:focus {
    box-shadow: 0 0 0 3px rgba(94, 190, 140, .3);
  }
  .info-card[role="alert"] {
    background: rgba(255, 110, 100, .1);
  }
  .info-card[role="status"] {
    background: rgba(94, 190, 140, .12);
  }
}

/* small screens */
@media (max-width: 480px) {
  .contact-form {
    padding: 1.1rem;
    border-radius: 10px;
  }
  .contact-form .btn {
    width: 100%;
  }
}

/* Append to your main stylesheet (after home-additions.css). */

.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;
}

.lab-controls { display: grid; gap: 1rem; margin-bottom: 1rem; }
.lab-controls label { display: block; font-weight: 600; }
.lab-controls label span { font-weight: 400; margin-left: .35rem; }
.lab-controls input[type="range"] { display: block; width: 100%; margin-top: .4rem; min-height: 28px; }
.lab-actions { margin: 1rem 0 0; }
.lab-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.stat-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stat-table th, .stat-table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.stat-table th { font-weight: 700; }

#lab-balls, .result-card .balls { display: flex; flex-wrap: wrap; gap: .4rem; }

@media (max-width: 600px) {
  .stat-table { font-size: .9rem; }
  .lab-links .btn { width: 100%; text-align: center; }
}

/* ---- Backtest and past-draws tables ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; }
.stat-table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.stat-table .balls { display: flex; flex-wrap: wrap; gap: .3rem; }

.ball-sm { width: 2rem; height: 2rem; min-width: 2rem; font-size: .85rem; line-height: 2rem; }
.ball-hit { position: relative; outline: 2px solid currentColor; outline-offset: 2px; }
.ball-hit .tick {
  position: absolute; top: -.45rem; right: -.45rem;
  width: 1rem; height: 1rem; border-radius: 50%;
  font-size: .7rem; line-height: 1rem; text-align: center;
  background: #1f7a3d; color: #fff;
}

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.5rem; }
.pager a, .pager .pager-current {
  display: inline-block; min-width: 2.25rem; padding: .4rem .65rem; text-align: center;
  border: 1px solid rgba(0, 0, 0, .2); border-radius: 6px; text-decoration: none;
}
.pager .pager-current { font-weight: 700; background: rgba(0, 0, 0, .06); }

/* Small screens: keep number balls readable and tables scrollable */
@media (max-width: 600px) {
  .table-scroll { overflow-x: auto; }
  .ball-sm { width: 1.8rem; height: 1.8rem; min-width: 1.8rem; font-size: .8rem; line-height: 1.8rem; }
  .stat-table th[scope="row"] { white-space: normal; }
}

/* ---- Sample summary, method table, count details ---- */
.sample-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin: 0 0 1rem; padding: 0; }
.sample-glance > div { padding: .65rem .85rem; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; }
.sample-glance dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.sample-glance dd { margin: .2rem 0 0; font-weight: 700; }

.method-table th[scope="row"] { white-space: normal; }
.method-table td { vertical-align: top; }

.count-details { margin: .75rem 0 1.25rem; }
.count-details summary { cursor: pointer; font-weight: 600; }
.count-scroll { max-height: 22rem; overflow-y: auto; }

.transparency { margin: 2rem 0; }

/* Keep slider values visible on small screens */
.lab-controls label span { display: inline-block; min-width: 3.2ch; font-weight: 700; }

/* ---- Results pages: date finder, divisions and archive tables ---- */
.date-finder { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1.25rem; }
.date-finder label { font-weight: 600; }
.date-finder input[type="date"] { min-height: 40px; padding: .35rem .6rem; }

.divisions-table td:nth-child(3),
.divisions-table td:nth-child(4),
.divisions-table th:nth-child(3),
.divisions-table th:nth-child(4) { text-align: right; white-space: nowrap; }

.archive-table th[scope="row"] { white-space: nowrap; }
.archive-table .balls { flex-wrap: wrap; }
.pager { margin-top: 1rem; }

@media (max-width: 600px) {
  .date-finder input[type="date"], .date-finder .btn { width: 100%; }
}

/* Append to your main stylesheet (after home-additions.css). */

.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;
}


/* Append to your main stylesheet (after home-additions.css). */

.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;
}

.lab-controls { display: grid; gap: 1rem; margin-bottom: 1rem; }
.lab-controls label { display: block; font-weight: 600; }
.lab-controls label span { font-weight: 400; margin-left: .35rem; }
.lab-controls input[type="range"] { display: block; width: 100%; margin-top: .4rem; min-height: 28px; }
.lab-actions { margin: 1rem 0 0; }
.lab-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.stat-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stat-table th, .stat-table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.stat-table th { font-weight: 700; }

#lab-balls, .result-card .balls { display: flex; flex-wrap: wrap; gap: .4rem; }

@media (max-width: 600px) {
  .stat-table { font-size: .9rem; }
  .lab-links .btn { width: 100%; text-align: center; }
}

/* ---- Backtest and past-draws tables ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; }
.stat-table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.stat-table .balls { display: flex; flex-wrap: wrap; gap: .3rem; }

.ball-sm { width: 2rem; height: 2rem; min-width: 2rem; font-size: .85rem; line-height: 2rem; }
.ball-hit { position: relative; outline: 2px solid currentColor; outline-offset: 2px; }
.ball-hit .tick {
  position: absolute; top: -.45rem; right: -.45rem;
  width: 1rem; height: 1rem; border-radius: 50%;
  font-size: .7rem; line-height: 1rem; text-align: center;
  background: #1f7a3d; color: #fff;
}

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.5rem; }
.pager a, .pager .pager-current {
  display: inline-block; min-width: 2.25rem; padding: .4rem .65rem; text-align: center;
  border: 1px solid rgba(0, 0, 0, .2); border-radius: 6px; text-decoration: none;
}
.pager .pager-current { font-weight: 700; background: rgba(0, 0, 0, .06); }

/* Small screens: keep number balls readable and tables scrollable */
@media (max-width: 600px) {
  .table-scroll { overflow-x: auto; }
  .ball-sm { width: 1.8rem; height: 1.8rem; min-width: 1.8rem; font-size: .8rem; line-height: 1.8rem; }
  .stat-table th[scope="row"] { white-space: normal; }
}

/* ---- Sample summary, method table, count details ---- */
.sample-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin: 0 0 1rem; padding: 0; }
.sample-glance > div { padding: .65rem .85rem; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; }
.sample-glance dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.sample-glance dd { margin: .2rem 0 0; font-weight: 700; }

.method-table th[scope="row"] { white-space: normal; }
.method-table td { vertical-align: top; }

.count-details { margin: .75rem 0 1.25rem; }
.count-details summary { cursor: pointer; font-weight: 600; }
.count-scroll { max-height: 22rem; overflow-y: auto; }

.transparency { margin: 2rem 0; }

/* Keep slider values visible on small screens */
.lab-controls label span { display: inline-block; min-width: 3.2ch; font-weight: 700; }



.lab-controls { display: grid; gap: 1rem; margin-bottom: 1rem; }
.lab-controls label { display: block; font-weight: 600; }
.lab-controls label span { font-weight: 400; margin-left: .35rem; }
.lab-controls input[type="range"] { display: block; width: 100%; margin-top: .4rem; min-height: 28px; }
.lab-actions { margin: 1rem 0 0; }
.lab-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.stat-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stat-table th, .stat-table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.stat-table th { font-weight: 700; }

#lab-balls, .result-card .balls { display: flex; flex-wrap: wrap; gap: .4rem; }

@media (max-width: 600px) {
  .stat-table { font-size: .9rem; }
  .lab-links .btn { width: 100%; text-align: center; }
}

/* ---- Backtest and past-draws tables ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; }
.stat-table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.stat-table .balls { display: flex; flex-wrap: wrap; gap: .3rem; }

.ball-sm { width: 2rem; height: 2rem; min-width: 2rem; font-size: .85rem; line-height: 2rem; }
.ball-hit { position: relative; outline: 2px solid currentColor; outline-offset: 2px; }
.ball-hit .tick {
  position: absolute; top: -.45rem; right: -.45rem;
  width: 1rem; height: 1rem; border-radius: 50%;
  font-size: .7rem; line-height: 1rem; text-align: center;
  background: #1f7a3d; color: #fff;
}

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.5rem; }
.pager a, .pager .pager-current {
  display: inline-block; min-width: 2.25rem; padding: .4rem .65rem; text-align: center;
  border: 1px solid rgba(0, 0, 0, .2); border-radius: 6px; text-decoration: none;
}
.pager .pager-current { font-weight: 700; background: rgba(0, 0, 0, .06); }

/* Small screens: keep number balls readable and tables scrollable */
@media (max-width: 600px) {
  .table-scroll { overflow-x: auto; }
  .ball-sm { width: 1.8rem; height: 1.8rem; min-width: 1.8rem; font-size: .8rem; line-height: 1.8rem; }
  .stat-table th[scope="row"] { white-space: normal; }
}

/* ---- Sample summary, method table, count details ---- */
.sample-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin: 0 0 1rem; padding: 0; }
.sample-glance > div { padding: .65rem .85rem; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; }
.sample-glance dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.sample-glance dd { margin: .2rem 0 0; font-weight: 700; }

.method-table th[scope="row"] { white-space: normal; }
.method-table td { vertical-align: top; }

.count-details { margin: .75rem 0 1.25rem; }
.count-details summary { cursor: pointer; font-weight: 600; }
.count-scroll { max-height: 22rem; overflow-y: auto; }

.transparency { margin: 2rem 0; }

/* Keep slider values visible on small screens */
.lab-controls label span { display: inline-block; min-width: 3.2ch; font-weight: 700; }



/* Append to your main stylesheet (after home-additions.css). */

.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;
}




/* Append to your main stylesheet (after home-additions.css). */

.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;
}

.lab-controls { display: grid; gap: 1rem; margin-bottom: 1rem; }
.lab-controls label { display: block; font-weight: 600; }
.lab-controls label span { font-weight: 400; margin-left: .35rem; }
.lab-controls input[type="range"] { display: block; width: 100%; margin-top: .4rem; min-height: 28px; }
.lab-actions { margin: 1rem 0 0; }
.lab-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.stat-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stat-table th, .stat-table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.stat-table th { font-weight: 700; }

#lab-balls, .result-card .balls { display: flex; flex-wrap: wrap; gap: .4rem; }

@media (max-width: 600px) {
  .stat-table { font-size: .9rem; }
  .lab-links .btn { width: 100%; text-align: center; }
}

/* ---- Backtest and past-draws tables ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; }
.stat-table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.stat-table .balls { display: flex; flex-wrap: wrap; gap: .3rem; }

.ball-sm { width: 2rem; height: 2rem; min-width: 2rem; font-size: .85rem; line-height: 2rem; }
.ball-hit { position: relative; outline: 2px solid currentColor; outline-offset: 2px; }
.ball-hit .tick {
  position: absolute; top: -.45rem; right: -.45rem;
  width: 1rem; height: 1rem; border-radius: 50%;
  font-size: .7rem; line-height: 1rem; text-align: center;
  background: #1f7a3d; color: #fff;
}

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.5rem; }
.pager a, .pager .pager-current {
  display: inline-block; min-width: 2.25rem; padding: .4rem .65rem; text-align: center;
  border: 1px solid rgba(0, 0, 0, .2); border-radius: 6px; text-decoration: none;
}
.pager .pager-current { font-weight: 700; background: rgba(0, 0, 0, .06); }




.lab-controls { display: grid; gap: 1rem; margin-bottom: 1rem; }
.lab-controls label { display: block; font-weight: 600; }
.lab-controls label span { font-weight: 400; margin-left: .35rem; }
.lab-controls input[type="range"] { display: block; width: 100%; margin-top: .4rem; min-height: 28px; }
.lab-actions { margin: 1rem 0 0; }
.lab-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.stat-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stat-table th, .stat-table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.stat-table th { font-weight: 700; }

#lab-balls, .result-card .balls { display: flex; flex-wrap: wrap; gap: .4rem; }

@media (max-width: 600px) {
  .stat-table { font-size: .9rem; }
  .lab-links .btn { width: 100%; text-align: center; }
}


/* =====================================
   TechChamp Trust & Transparency Panel
===================================== */

.trust-panel {
    position: relative;
    margin: 32px 0;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e3eae5;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(25, 55, 38, 0.05);
    overflow: hidden;
}

/* Top accent */
.trust-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #176b45, #a5c99c);
}

/* Main heading */
.trust-panel h2 {
    margin: 0 0 25px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e8eee9;
    color: #183d2b;
    font-family: var(--display, inherit);
    font-size: clamp(21px, 2.5vw, 26px);
    font-weight: 750;
    line-height: 1.35;
}

/* Definition list */
.trust-panel dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0;
}

/* Individual sections */
.trust-panel dt {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: #22553a;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.5;
}

.trust-panel dt::before {
    content: "";
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    background: #26945b;
    border-radius: 50%;
}

/* Description */
.trust-panel dd {
    margin: 0;
    color: #5c6b62;
    font-size: 13.5px;
    line-height: 1.85;
}

/* Section spacing */
.trust-panel dl dt {
    padding-top: 20px;
    border-top: 1px solid #edf1ed;
}

.trust-panel dl dd {
    padding-bottom: 22px;
}

/* Bottom spacing */
.trust-panel dl dt:first-of-type {
    border-top: 0;
    padding-top: 0;
}

/* Responsive layout */
@media (max-width: 650px) {
    .trust-panel {
        padding: 21px 17px;
        margin: 24px 0;
        border-radius: 11px;
    }

    .trust-panel h2 {
        font-size: 21px;
        margin-bottom: 19px;
    }

    .trust-panel dl {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .trust-panel dl dt {
        padding-top: 17px;
    }

    .trust-panel dl dt:first-of-type {
        padding-top: 0;
    }

    .trust-panel dd {
        font-size: 13px;
        line-height: 1.75;
    }
}






.logo {
  font-weight: 800; font-size: 1.4rem;
  color: var(--forest); text-decoration: none; letter-spacing: -0.02em;
}
.logo span { color: var(--gold); }
.main-nav { display: flex; flex-wrap: wrap; gap: 0.15rem; list-style: none; }
.main-nav a {
  color: var(--ink); font-weight: 600; font-size: 0.9rem;
  padding: 0.4rem 0.7rem; border-radius: 999px;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--paper-alt); color: var(--forest); text-decoration: none;
}

.breadcrumbs { padding: 0.65rem 0; font-size: 0.84rem; color: var(--mute); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.3rem; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; opacity: 0.5; }
.breadcrumbs a { color: var(--mute); }

.page-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar);
  gap: 1.75rem;
  align-items: start;
  margin: 1rem 0 2.75rem;
}
@media (max-width: 920px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; position: static; }
}
.page-main { min-width: 0; }
.page-main h1 {
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 800;
  line-height: 1.2; margin-bottom: 0.65rem; color: var(--forest);
}
.page-main h2 {
  font-size: 1.22rem; font-weight: 700;
  margin: 1.75rem 0 0.65rem; color: var(--forest);
  border-left: 4px solid var(--leaf); padding-left: 0.65rem;
}
.page-main h3 { font-size: 1.05rem; margin: 1.15rem 0 0.45rem; color: var(--ink); font-weight: 700; }
.page-main p { margin: 0 0 0.9rem; }
.page-main ul, .page-main ol { margin: 0 0 1rem 1.2rem; }
.page-main li { margin-bottom: 0.35rem; }
.lead { font-size: 1.06rem; color: var(--mute); margin-bottom: 1.1rem; }
.meta { font-size: 0.86rem; color: var(--mute); margin-bottom: 0.85rem; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}
.bento > * { grid-column: span 4; }
@media (max-width: 800px) {
  .bento > * { grid-column: span 12 !important; }
}
.bento .span-6 { grid-column: span 6; }
.bento .span-8 { grid-column: span 8; }
.bento .span-12 { grid-column: span 12; }

.card, .info-card, .result-card, .blog-card, .pred-card, .tool-card, .dna-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.tool-card {
  background: var(--paper-alt);
  border-color: var(--line);
}
.info-grid, .card-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.15rem 0;
}
.info-card:hover, .blog-card:hover, .pred-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--mint);
  transition: 0.15s ease;
}
.info-card h3, .blog-card h3, .pred-card h3 {
  margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--forest); font-weight: 700;
}
.info-card p, .blog-card p, .pred-card p { font-size: 0.92rem; color: var(--mute); margin: 0 0 0.55rem; }

.balls { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.55rem 0; }
.ball {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.92rem; color: #fff;
  background: linear-gradient(145deg, #40916c, var(--leaf));
  border: 2px solid #95d5b2;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.12);
}
.ball.bonus {
  background: linear-gradient(145deg, #e9c46a, var(--gold));
  color: #1a1f1c;
  border-color: #f0e2a8;
}
.ball.pb {
  background: linear-gradient(145deg, #e76f51, var(--ember));
  border-color: #f4a261;
}
.ball.hit {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Light hero */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } }
.hero-main {
  background: linear-gradient(135deg, #e8f5e9 0%, #d8f3dc 50%, #c8e6c9 100%);
  color: var(--forest);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--line);
}
.hero-main h1 {
  color: var(--forest); border: 0; padding: 0;
  font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 0.5rem; font-weight: 800;
}
.hero-main p { color: var(--mute); margin-bottom: 1.1rem; max-width: 32rem; }
.hero-side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-side h2 { font-size: 1.05rem; color: var(--forest); margin: 0 0 0.75rem; border: 0; padding: 0; font-weight: 700; }
.countdown-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.countdown-unit {
  background: var(--paper-alt); border-radius: var(--radius-sm);
  padding: 0.45rem 0.55rem; min-width: 3.4rem; text-align: center;
}
.countdown-unit strong { display: block; font-size: 1.25rem; color: var(--forest); font-weight: 800; }
.countdown-unit span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); }

.hero-actions, .btn-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.btn {
  display: inline-block; padding: 0.55rem 1.15rem; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; text-decoration: none !important;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--leaf); color: #fff !important; }
.btn-primary:hover { background: var(--forest); }
.btn-ghost {
  background: transparent; color: var(--forest) !important;
  border-color: var(--leaf);
}
.btn-ghost:hover { background: rgba(45, 106, 79, 0.08); }
.btn-green { background: var(--leaf); color: #fff !important; }
.btn-green:hover { background: var(--forest); }
.btn-outline {
  background: transparent; color: var(--forest) !important;
  border-color: var(--leaf);
}
.btn-outline:hover { background: var(--paper-alt); }

.sidebar {
  position: sticky; top: 4.5rem;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.sidebar-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-box h3 {
  font-size: 0.92rem; margin: 0 0 0.6rem;
  color: var(--forest); font-weight: 700;
}
.sidebar-box ul { list-style: none; margin: 0; padding: 0; }
.sidebar-box li { margin-bottom: 0.35rem; }
.sidebar-box a { font-size: 0.9rem; color: var(--ink); font-weight: 500; }
.sidebar-box a:hover { color: var(--leaf); }
.sidebar-note { font-size: 0.8rem; color: var(--mute); line-height: 1.45; margin-top: 0.45rem; }

.disclaimer {
  background: #fffbeb;
  border: 1px solid #f0e2a8;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: #6b4e12;
  margin: 1rem 0;
}
.disclaimer strong { color: #5a4008; }

.dna-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.dna-chip {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem; font-weight: 600; color: var(--forest);
}
.dna-chip span { color: var(--mute); font-weight: 500; margin-left: 0.25rem; }

.match-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 0.45rem;
  margin: 0.75rem 0;
  max-width: 420px;
}
.match-form input {
  width: 100%; aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 50%;
  text-align: center;
  font-weight: 700; font-size: 1rem;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}
.match-form input:focus {
  outline: none; border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}
.match-result {
  margin-top: 0.75rem; padding: 0.85rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600;
  display: none;
}
.match-result.show { display: block; }
.match-result.good { background: #d8f3dc; color: var(--forest); border: 1px solid #95d5b2; }
.match-result.mid { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; }
.match-result.none { background: #f1f5f3; color: var(--mute); border: 1px solid var(--line); }

.lab-controls {
  display: grid; gap: 0.85rem;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  margin: 1rem 0;
}
.lab-controls label {
  display: grid; grid-template-columns: 1fr auto;
  gap: 0.35rem; font-size: 0.88rem; font-weight: 600; color: var(--forest);
}
.lab-controls input[type="range"] { width: 100%; grid-column: 1 / -1; accent-color: var(--leaf); }

.freq-bars { margin: 1rem 0; }
.freq-row {
  display: grid; grid-template-columns: 2.4rem 1fr 2.2rem;
  gap: 0.45rem; align-items: center; margin-bottom: 0.28rem; font-size: 0.82rem;
}
.freq-bar-track {
  background: var(--paper-alt); border-radius: 4px; height: 12px; overflow: hidden;
}
.freq-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--mint));
  border-radius: 4px; min-width: 2px;
}

.sum-meter {
  height: 12px; border-radius: 999px;
  background: linear-gradient(90deg, #95d5b2, var(--gold), var(--ember));
  position: relative; margin: 0.75rem 0 0.35rem;
}
.sum-marker {
  position: absolute; top: -6px; width: 4px; height: 24px;
  background: var(--ink); border-radius: 2px; transform: translateX(-50%);
}

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
th, td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; }
th { background: var(--paper-alt); color: var(--forest); font-weight: 700; }

.sample-note { font-size: 0.85rem; color: var(--mute); margin: 0.35rem 0; }

/* Light footer */
.site-footer {
  background: var(--paper);
  color: var(--mute);
  padding: 2.25rem 0 1.35rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  border-top: 2px solid var(--line);
}
.site-footer a { color: var(--leaf); }
.site-footer a:hover { color: var(--forest); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid strong { color: var(--forest); display: block; margin-bottom: 0.45rem; font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.3rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--mute);
}

.tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--paper-alt); color: var(--forest);
  padding: 0.2rem 0.5rem; border-radius: 4px;
  margin-bottom: 0.45rem;
}

.section { padding: 0.25rem 0 1rem; }
