/* Public league pages: fast, readable, phone-first. */
:root { --brand: #0f766e; --ink: #16201e; --muted: #5d6967; --line: #e2e8e6; --bg: #f6f8f7; }
* { box-sizing: border-box; }
body.ochm-public { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.lg-head { background: var(--brand); color: #fff; padding-top: 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lg-head > .wrap:first-child { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.lg-name { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.lg-name img { border-radius: 10px; background: #fff; object-fit: contain; }
.lg-season { background: rgba(255,255,255,.18); padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.lg-nav { display: flex; gap: 4px; overflow-x: auto; margin-top: 12px; padding-bottom: 0; }
.lg-nav a { color: #fff; text-decoration: none; padding: 10px 14px; border-radius: 10px 10px 0 0; font-weight: 600; white-space: nowrap; opacity: .9; }
.lg-nav a[aria-current] { background: var(--bg); color: var(--ink); opacity: 1; }
.lg-main { padding-top: 22px; padding-bottom: 40px; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
h2 small { color: var(--muted); font-weight: 500; font-size: .85em; margin-left: .3em; }
.lead { color: var(--muted); }
.muted { color: var(--muted); }
.note { background: #fff4e0; padding: 10px 14px; border-radius: 10px; }
.crumbs { margin: 0 0 8px; font-size: .95rem; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; }
.league-table th, .league-table td, .scores th, .scores td { padding: 11px 8px; text-align: center; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.league-table tr:last-child td, .scores tr:last-child td { border-bottom: 0; }
.league-table thead th, .scores thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.league-table .t-name { text-align: left; font-weight: 600; }
.league-table .t-name a { color: var(--ink); text-decoration: none; }
.league-table .t-name a:hover { text-decoration: underline; }
.league-table .pts { font-weight: 800; }
.league-table tbody tr:first-child td:first-child { color: var(--brand); font-weight: 800; }
.form span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; font-size: .7rem; font-weight: 700; color: #fff; margin: 0 1px; }
.f-w { background: #15803d; } .f-d { background: #94a3b8; } .f-l { background: #b91c1c; }
.scores td.won { font-weight: 700; color: #15803d; }
.scores .legs { font-weight: 800; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.matches { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.matches li { border-bottom: 1px solid var(--line); }
.matches li:last-child { border-bottom: 0; }
.matches a, .matches li > span { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; align-items: center; }
.matches li:not(:has(a)) { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 12px 14px; }
.matches a:hover { background: var(--bg); }
.matches .d { color: var(--muted); font-size: .9rem; min-width: 80px; }
.matches .t { font-weight: 600; }
.matches .v { color: var(--muted); font-size: .9rem; margin-left: auto; }
.matches b { padding: 0 6px; }
.matches em { color: #b45309; font-style: normal; font-weight: 700; font-size: .85rem; }
.highlights { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 12px 32px; }
.team-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.team-grid a { display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.team-grid span { color: var(--muted); font-size: .9rem; }
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.board { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.board h2 { margin-top: 0; }
.board ol { margin: 0; padding-left: 1.4em; }
.board li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.board .pn small { color: var(--muted); display: block; font-size: .8rem; }
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.lg-foot { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 40px; color: var(--muted); font-size: .92rem; }
.powered a { color: var(--muted); }
body.embed { padding: 8px; }
.embed-title { margin: 0 0 8px; font-size: 1.05rem; }
body.embed .powered { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 720px) {
	.cols { grid-template-columns: 1fr; gap: 0; }
	.hide-sm { display: none; }
	h1 { font-size: 1.35rem; }
	.lg-name { font-size: 1.15rem; }
	.league-table th, .league-table td { padding: 10px 5px; font-size: .95rem; }
}

.get-yours { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.get-yours .gy-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #0c1a18; font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; }
.get-yours .gy-brand span b { font-weight: 800; }
.get-yours .gy-brand span { font-weight: 600; color: #0f766e; }
.get-yours .gy-brand span b { color: #0c1a18; }
.get-yours .powered { flex: 1 1 220px; margin: 0; font-size: .88rem; }
.get-yours .gy-btn { background: #0f766e; color: #fff; text-decoration: none; font-weight: 700; padding: 10px 16px; border-radius: 999px; white-space: nowrap; }
.get-yours .gy-btn:hover { background: #115e59; }
body.embed .get-yours { display: none; }

.week .bye { margin:.6rem 0 0; font-size:.92rem; color:var(--muted,#5f6f6b); }
