/* Pimeys Sports News — styles for the statically generated pages (loaded after style.css) */
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.preview-bar { background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; text-align: center; padding: 4px 8px; letter-spacing: .04em; }

/* nav stays usable on phones without JavaScript: it scrolls sideways */
.tabbar { display: none !important; }
@media (max-width: 960px) {
  .mainnav { display: flex; overflow-x: auto; scrollbar-width: none; margin-left: 4px; }
  .mainnav::-webkit-scrollbar { display: none; }
  .mh-row { gap: 10px; }
}
@media (max-width: 680px) {
  body { padding-bottom: 0; }
  .brand-word { display: none; }
  .mainnav a { padding: 8px 8px; font-size: 13px; }
  .site-foot { padding-bottom: 40px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}

.crumbs-static { padding: 14px 0 0; }

/* entity heads */
.ent-head, .home-hero { padding: 34px 0 30px; margin-top: 12px; }
.home-hero { margin-top: 0; padding: 44px 0 40px; }
.ent-head h1, .home-h1 { margin: 8px 0 12px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: .9; font-size: clamp(38px, 7vw, 76px); letter-spacing: .005em; }
.home-h1 { font-family: var(--f-serif); text-transform: none; font-weight: 600; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.06; max-width: 22ch; }
.answer { font-family: var(--f-serif); font-size: clamp(17px, 2vw, 21px); line-height: 1.45; color: #e6ebf1; max-width: 62ch; margin: 0 0 16px; }
.facts-row { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; color: #b9c3d0; }
.facts-row b { color: var(--gold-2); font-weight: 700; margin-right: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.gate-note { display: inline-block; margin: 6px 0 0; padding: 8px 12px; border-radius: 4px; background: rgba(232, 212, 143, .14); color: var(--gold-2); font-size: 13.5px; max-width: 70ch; }

/* tables */
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tscroll .dtable { min-width: 0; }
.dtable td.t { white-space: nowrap; }
@media (max-width: 680px) { .dtable .ath small { font-size: 11.5px; } .dtable td:last-child:empty, .dtable th:last-child { } }
.elink { font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.elink:hover { color: var(--gold-deep); border-color: var(--gold); }
.on-dark .elink { border-color: rgba(255,255,255,.3); }
abbr.badge-pb { text-decoration: none; cursor: help; }

/* lists */
.rel { list-style: none; margin: 0; padding: 0; }
.rel li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.rel.cols { columns: 2; column-gap: 32px; }
.rel.cols li { break-inside: avoid; }
@media (max-width: 680px) { .rel.cols { columns: 1; } }
.sub { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 22px; margin: 26px 0 12px; }
ul.plain { padding-left: 18px; } ul.plain li { margin-bottom: 8px; }
.more-link { font-weight: 700; border-bottom: 2px solid var(--gold); }

/* evidence block (checklist: source, updated date, status) */
.evidence-block { margin: 8px 0 40px; padding: 18px 20px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.ev-row { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13.5px; }
.ev-row b { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.ev-row a { font-weight: 700; border-bottom: 1px solid var(--gold); }
.ev-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; max-width: 75ch; }
.evidence h3 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin: 16px 0 8px; }
.evidence ul { margin: 0; padding-left: 18px; font-size: 14px; }
.evidence li { margin-bottom: 6px; }
.evidence a { border-bottom: 1px solid var(--line-strong); }
.evidence .meta { display: block; font-size: 12px; }

/* article */
.art { padding: 26px 0 10px; }
.art-wrap { max-width: 760px; }
.art-h1 { font-family: var(--f-serif); font-weight: 600; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; margin: 8px 0 12px; letter-spacing: -.01em; }
.art-dek { font-family: var(--f-serif); font-size: 20px; color: var(--muted); margin: 0 0 14px; line-height: 1.4; }
.byline { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.byline a { font-weight: 700; color: var(--ink); }
.answer-box { background: var(--card); border-left: 4px solid var(--gold); padding: 14px 16px; font-size: 16px; border-radius: 0 var(--r) var(--r) 0; }
.prose { font-family: var(--f-serif); font-size: 19px; line-height: 1.62; }
.prose h2 { font-family: var(--f-sans); font-size: 22px; margin: 30px 0 8px; letter-spacing: -.01em; }
.prose p { margin: 0 0 18px; }
.prose a { border-bottom: 1px solid var(--gold); }
.prose-page { max-width: 760px; font-size: 18px; }
.in-this { margin: 26px 0 0; padding: 16px 18px; background: var(--paper-2); border-radius: var(--r); }
.in-this h3 { margin: 0 0 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.in-this ul { list-style: none; padding: 0; margin: 0; columns: 2; font-size: 14.5px; }
.in-this li { margin-bottom: 6px; break-inside: avoid; }
.in-this .meta { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
@media (max-width: 680px) { .in-this ul { columns: 1; } .prose { font-size: 17.5px; } }
.art .evidence { margin-top: 18px; }
.next-step { margin: 30px 0 40px; padding: 20px; background: var(--ink); color: var(--paper); border-radius: var(--r); }
.next-step p { font-family: var(--f-serif); font-size: 19px; margin: 6px 0 14px; }
.next-step .btn { background: var(--lime); color: var(--ink); }
.next-step .kicker { color: var(--lime); }

/* cards without art */
.scard.text h4 { font-family: var(--f-serif); font-weight: 600; font-size: 21px; }
@media (max-width: 680px) { .scard.text { display: block; } .scard.text p { display: block; } }

/* forms */
.hp { position: absolute; left: -9999px; }
.news-form input[type=email] { min-width: 0; }
.partner-form { display: grid; gap: 12px; max-width: 520px; }
.partner-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.partner-form input, .partner-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--card); }
.partner-form .btn { justify-self: start; }

/* ---------- live and latest strip ---------- */
.live-static { background: #08131f; color: #e6ebf1; border-bottom: 1px solid rgba(255,255,255,.08); }
.ls-wrap { display: flex; align-items: stretch; gap: 10px; padding-top: 6px; padding-bottom: 6px; }
.ls-label { flex: none; display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); padding-right: 4px; }
.ls-track { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.ls-track::-webkit-scrollbar { display: none; }
.ls-item { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 1px; min-width: 150px; max-width: 220px; padding: 6px 10px; border-radius: 4px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); font-size: 12px; line-height: 1.3; }
a.ls-item:hover { background: rgba(255,255,255,.09); }
.ls-item.live { box-shadow: inset 0 0 0 1px rgba(224,54,43,.6); }
.ls-top { display: flex; gap: 6px; align-items: center; font-size: 10px; color: #8f9bab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-st { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ls-st.live { color: #ff6a5f; display: inline-flex; gap: 4px; align-items: center; }
.ls-st.ft { color: #c3cbd6; }
.ls-st.up { color: var(--gold-2); }
.ls-sport { overflow: hidden; text-overflow: ellipsis; }
.ls-row { display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; }
.ls-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ls-row .t { font-weight: 800; font-variant-numeric: tabular-nums; }
.ls-note { font-size: 10.5px; color: #8f9bab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-all { flex: none; align-self: center; font-size: 12px; font-weight: 700; color: var(--gold-2); white-space: nowrap; }
@media (max-width: 680px) { .ls-all { display: none; } .ls-label { writing-mode: vertical-rl; transform: rotate(180deg); padding: 0; } }

/* ---------- match pages ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 14px 0 6px; }
.sb-team { display: flex; align-items: center; gap: 8px; font-size: clamp(18px, 3vw, 28px); }
.sb-team b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
.sb-team.r { justify-content: flex-end; flex-direction: row-reverse; }
.sb-score { font-family: var(--f-display); font-weight: 900; font-size: clamp(54px, 10vw, 104px); line-height: .9; font-variant-numeric: tabular-nums; }
.sb-score span { color: var(--gold); margin: 0 .1em; }
.sb-note { margin: 0 0 12px; color: var(--gold-2); font-weight: 700; font-size: 14px; }
@media (max-width: 680px) { .scoreboard { gap: 8px; } .sb-team { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 16px; } .sb-team.r { flex-direction: column; align-items: flex-end; } }
.wdl { display: inline-block; min-width: 22px; text-align: center; font-weight: 800; font-size: 11px; padding: 2px 6px; border-radius: 3px; }
.wdl.W { background: var(--win); color: #fff; } .wdl.D { background: var(--paper-2); } .wdl.L { background: var(--live); color: #fff; }

/* ---------- home: across Kenyan sport ---------- */
.sport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.sport-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border-top: 3px solid var(--ink); }
.sport-card:hover { border-top-color: var(--gold); }
.sc-line { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; }
.sc-line .t { font-weight: 800; font-variant-numeric: tabular-nums; }

/* Race calendar (month grid like an events calendar) */
.sr { position: absolute; left: -9999px; }
.ec-bar { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--card); padding: 8px 8px 8px 14px; border-radius: 4px; }
.ec-search { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--muted); min-width: 0; }
.ec-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); padding: 8px 0; }
.ec-search input:focus { outline: none; }
.ec-bar:focus-within { border-color: var(--ink); }
.ec-find { font: inherit; font-size: 13px; font-weight: 700; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--lime); color: var(--ink); cursor: pointer; white-space: nowrap; }
.ec-find:hover { filter: brightness(.95); }
.ec-tabs { display: flex; gap: 4px; }
.ec-tabs button { font: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.ec-tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.ec-more { margin: 10px 0 2px; font-size: 14px; }
.ec-more summary { cursor: pointer; color: var(--muted); }
.cal-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.cal-filters select { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--card); color: var(--ink); }
.cal-ken { display: inline-flex; gap: 6px; align-items: center; }
#cal-count { margin: 6px 0 0; }
.ec-wrap { margin-top: 18px; }
.ec-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ec-nav > button { font: inherit; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
#cal-prev, #cal-next { font-size: 26px; line-height: 1; padding: 0 6px; }
.ec-today { font-size: 11px !important; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px !important; border: 1px solid var(--line-strong) !important; border-radius: 3px; color: var(--muted) !important; }
.ec-title select { font: inherit; font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; color: var(--ink); border: 0; background: transparent; cursor: pointer; padding: 0 4px; }
.ec-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.ec-dow { font-size: 11px; color: var(--muted); padding: 0 0 8px 2px; border-top: 0; position: relative; background: var(--paper); }
.ec-dow::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; border-top: 1px solid var(--line-strong); }
.ec-grid .ec-dow { border-right: 0; }
.ec-grid { border-top: 0; border-left: 0; }
.ec-day { min-height: 112px; padding: 6px 0 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ec-grid .ec-day:nth-child(7n + 1) { border-left: 1px solid var(--line); }
.ec-grid .ec-dow + .ec-dow + .ec-dow + .ec-dow + .ec-dow + .ec-dow + .ec-dow ~ .ec-day:nth-child(-n + 14) { border-top: 1px solid var(--line); }
.ec-num { font-family: var(--f-display); font-size: 20px; font-weight: 900; line-height: 1; padding: 0 10px 4px; color: var(--ink); }
.ec-day.past .ec-num, .ec-day.other .ec-num { color: var(--muted); font-weight: 600; }
.ec-day.other { background: var(--paper); }
.ec-day.today .ec-num { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ec-pill { display: block; margin: 0 4px; padding: 2px 8px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 11px; line-height: 1.45; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-pill:hover { filter: brightness(.94); text-decoration: none; }
.ec-pill.ken { background: var(--gold); font-weight: 700; }
.ec-pill.past { background: #c9cbcf; color: #2b2f36; }
.ec-pill.span-start { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ec-pill.span-mid { margin-left: 0; margin-right: 0; border-radius: 0; }
.ec-pill.span-end { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ec-pill.extra { display: none; }
.ec-day.open .ec-pill.extra { display: block; }
.ec-more-btn { font: inherit; font-size: 11px; font-weight: 700; color: var(--muted); background: none; border: 0; text-align: left; padding: 0 10px; cursor: pointer; }
.ec-hint { margin-top: 10px; }
.ec-jump { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }
.cal-mh { margin: 26px 0 8px; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.cal-table td.cal-date { white-space: nowrap; }
.cal-row.ken td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
@media (max-width: 760px) {
  .ec-bar { flex-wrap: wrap; padding: 8px; }
  .ec-search { flex-basis: 100%; }
  .ec-find { flex: 1; }
  .ec-day { min-height: 70px; padding-top: 4px; }
  .ec-num { font-size: 15px; padding: 0 5px 2px; }
  .ec-pill { font-size: 9.5px; padding: 1px 4px; margin: 0 2px; }
}

/* Article photos */
.art-fig { margin: 18px 0 22px; }
.art-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--paper-2); }
.art-fig figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.art-fig figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.home-hero.has-img { background-image: linear-gradient(90deg, rgba(12,27,46,.94) 0%, rgba(12,27,46,.82) 45%, rgba(12,27,46,.45) 100%), var(--hero-img); background-size: cover; background-position: center; }
.hero-credit { font-size: .72rem; color: rgba(255,255,255,.6); margin: 14px 0 0; }
@media (max-width: 640px) { .home-hero.has-img { background-image: linear-gradient(rgba(12,27,46,.88), rgba(12,27,46,.88)), var(--hero-img); } }

/* Athlete photos */
.ath-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ath-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ath-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(12,27,46,.12); }
.ath-thumb { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.ath-thumb.ph { display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 54px; color: var(--muted); }
.ath-card-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.ath-card-body b { font-size: 16px; }
.ath-card-body small { font-size: 13px; }
.ath-credits { margin-top: 14px; font-size: 12px; }
.ath-head { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.ath-photo { margin: 0; }
.ath-portrait { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: rgba(255,255,255,.08); }
.ath-photo figcaption { font-size: 11px; line-height: 1.4; color: rgba(255,255,255,.62); margin-top: 6px; }
.ath-photo figcaption a { color: inherit; text-decoration: underline; }
@media (max-width: 640px) {
  .ath-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ath-thumb.ph { font-size: 40px; }
  .ath-head { grid-template-columns: 1fr; gap: 14px; }
  .ath-photo { max-width: 200px; }
}
/* Career results table */
.dtable.career td small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.dtable.career tr.yr td { border-top: 2px solid var(--line-strong); }
