/* Shared styles for the static pages (About / Privacy / Contact, and the generated series, team and
   ground pages). Same tokens as index.html. */
:root{
  color-scheme:dark;
  --bg:#0f1411; --surface:#161c18; --surface-2:#1c231e; --border:#283129; --border-strong:#36423a;
  --text:#e9ede9; --muted:#96a39a; --faint:#69756d;
  --accent:#e8b53f; --accent-ink:#1a1405;
  --ball:#f2efe6; --seam:#1b1b1b; --stitch:#f2efe6;   /* white ball under lights */
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    color-scheme:light;
    --bg:#f4f6f2; --surface:#ffffff; --surface-2:#eef1ec; --border:#d9dfd8; --border-strong:#bcc6bd;
    --text:#171f1a; --muted:#5b685e; --faint:#8f9a92;
    --accent:#a86f00; --accent-ink:#ffffff; --ball:#ab2620; --seam:#f3e9d2; --stitch:#7d1813;   /* red ball by day */
  }
}
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#f4f6f2; --surface:#ffffff; --surface-2:#eef1ec; --border:#d9dfd8; --border-strong:#bcc6bd;
  --text:#171f1a; --muted:#5b685e; --faint:#8f9a92;
  --accent:#a86f00; --accent-ink:#ffffff; --ball:#ab2620; --seam:#f3e9d2; --stitch:#7d1813;   /* red ball by day */
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--text);font:16px/1.6 "IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
.wrap{max-width:760px;margin:0 auto;padding:0 20px}
header{padding:22px 0 10px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;font-family:"Barlow Condensed","Arial Narrow",sans-serif;font-weight:600;font-size:24px;letter-spacing:.02em;text-transform:uppercase;line-height:1;color:var(--text);text-decoration:none}
.brand svg{width:24px;height:24px;flex:none}
.brand .ball{fill:var(--ball)} .brand .seam{stroke:var(--seam)} .brand .stitch{stroke:var(--stitch)}
.brand small{display:block;font:500 10px/1 "IBM Plex Sans",system-ui,sans-serif;letter-spacing:.14em;color:var(--muted);margin-top:5px}
nav a{color:var(--muted);text-decoration:none;margin-left:16px;font-size:14px}
nav a:hover,nav a[aria-current]{color:var(--text)}
main{padding:10px 0 40px}
h1{font:600 40px/1.05 "Barlow Condensed","Arial Narrow",sans-serif;letter-spacing:.01em;margin:18px 0 6px;text-wrap:balance}
h2{font:600 24px/1.15 "Barlow Condensed","Arial Narrow",sans-serif;letter-spacing:.01em;margin:34px 0 8px}
p,li{max-width:68ch}
p.lead{font-size:18px;color:var(--muted);margin-top:0}
p.source{font-size:14px;color:var(--muted);margin-top:0}
a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
ul{padding-left:22px}
dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:14px 0}
dt{color:var(--muted)}
dd{margin:0}
@media (max-width:560px){dl{grid-template-columns:1fr;gap:2px} dd{margin-bottom:12px}}
.card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:16px 18px;margin:16px 0}
.note{font-size:14px;color:var(--muted)}
code{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.92em;background:var(--surface-2);padding:1px 5px;border-radius:4px}
footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 0 40px;font-size:13px;color:var(--faint);border-top:1px solid var(--border)}
footer > span:last-child{display:flex;flex-wrap:wrap;gap:4px 14px}
footer a{color:var(--muted);text-decoration:none}
footer a:hover{color:var(--text)}

/* Generated pages. A page with a match table gets a wider column; prose keeps its 68ch measure. */
.wrap:has(table.matches){max-width:1100px}
h1,h2,li,td{overflow-wrap:break-word}
nav[aria-label="Breadcrumb"] p{margin:14px 0 0;font-size:14px;color:var(--faint)}
nav[aria-label="Breadcrumb"] a{margin:0;color:var(--muted)}
nav[aria-label="Breadcrumb"] a:hover{color:var(--text)}
main li{margin:3px 0}

/* The match table: every match in rows. Links read as text with a quiet underline, so a table of
   names is not a wall of accent colour. */
table.matches{width:100%;border-collapse:collapse;font-size:14px;line-height:1.4;margin:12px 0 8px}
table.matches th{text-align:left;font-weight:500;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:6px 14px 8px 0;border-bottom:1px solid var(--border-strong);vertical-align:bottom}
table.matches td{padding:9px 14px 9px 0;border-bottom:1px solid var(--border);vertical-align:top}
table.matches a{color:inherit;text-decoration-color:var(--border-strong)}
table.matches a:hover{color:var(--accent);text-decoration-color:currentColor}
/* A result cell's link leaves the site (a scorecard), so it gets the site's outbound-link
   treatment - the same accent colour as about.html's own outbound link - instead of the quiet,
   inherited colour the internal series/team/ground links above use. */
table.matches .c-result a{color:var(--accent);text-decoration-color:currentColor}
table.matches .c-date,table.matches .c-format{white-space:nowrap}
table.matches .c-date{color:var(--muted);font-variant-numeric:tabular-nums}
table.matches .c-teams{font-weight:500}

/* Narrow screens: each match becomes a small card - when, who, what, then the labelled facts - so
   nothing scrolls sideways, down to 320px. */
@media (max-width:760px){
  table.matches,table.matches tbody{display:block}
  table.matches thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  table.matches tr{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:2px;padding:12px 0;border-bottom:1px solid var(--border)}
  table.matches td{display:block;flex:1 1 100%;min-width:0;padding:0;border:0}
  table.matches td:empty{display:none}
  table.matches .c-date{order:0;font-size:13px;white-space:normal}
  table.matches .c-teams{order:1;font-size:15px}
  table.matches .c-match,table.matches .c-format{order:2;flex:0 1 auto;font-size:13px;color:var(--muted);white-space:normal}
  table.matches .c-match + .c-format::before{content:"\00b7";margin-right:8px;color:var(--faint)}
  table.matches .c-series{order:3} table.matches .c-ground{order:4} table.matches .c-result{order:5}
  table.matches .c-series,table.matches .c-ground,table.matches .c-result{display:grid;grid-template-columns:4.6em 1fr;column-gap:8px;margin-top:2px}
  table.matches .c-series::before,table.matches .c-ground::before,table.matches .c-result::before{content:attr(data-label);font-size:11px;line-height:20px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}
}
