/*
Theme Name: tdedballteng
Description: ทีเด็ดบอลเต็ง 4 เซียน · ตารางบอล · ราคาบอล. Data layer adapted from zianballstep; design is this site's own.
Version: 0.1.0
Text Domain: tdedballteng
*/

:root {
    --brand: #8b1020;
    --brand-dark: #5c0a15;
    --brand-deep: #3a0610;
    --gold: #f2b632;
    --gold-soft: #fff4d6;
    --gold-ink: #9a6700;
    --fav: #d0021b;
    --ink: #1f1a16;
    --muted: #6b6259;
    --line: #e6ddd2;
    --bg: #f7f3ee;
    --card: #fff;
    --win: #138a4b;
    --win-bg: #e3f5ea;
    --loss: #c62828;
    --loss-bg: #fde8e8;
    --push-bg: #f1efe9;
    --radius: 12px;
    --head: "Prompt", "Sarabun", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Sarabun", "Noto Sans Thai", Tahoma, sans-serif; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--head); line-height: 1.25; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.c-fav { color: var(--fav); }
.nw { white-space: nowrap; }

/* ---------- demo bar ---------- */
.demo-bar { background: #fff3b0; color: #5c4400; text-align: center; font-size: 14px; padding: 6px 12px; border-bottom: 1px solid #ecd56a; }

/* ---------- header ---------- */
.site-header { background: linear-gradient(90deg, var(--brand-deep), var(--brand-dark) 35%, var(--brand)); color: #fff; box-shadow: 0 2px 0 var(--gold); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand__mark { display: block; flex: none; }
.brand__text { display: flex; flex-direction: column; }
.brand__word { font-family: var(--head); font-weight: 800; font-size: 25px; line-height: 1; letter-spacing: .2px; }
.brand__a { color: #fff; }
.brand__b { color: var(--gold); }
.brand__sub { font-family: var(--head); font-weight: 600; font-size: 11.5px; letter-spacing: 1.2px; color: rgba(255,255,255,.72); margin-top: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; opacity: .92; }
.nav a:hover { background: rgba(255,255,255,.1); opacity: 1; }
.nav a.is-current { background: var(--gold); color: var(--brand-deep); opacity: 1; }

/* ---------- hero / page head ---------- */
.hero, .page-head { background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); padding: 26px 0 20px; }
.hero__date { margin: 0 0 4px; color: var(--gold-ink); font-family: var(--head); font-weight: 600; font-size: 14px; }
.hero__title, .page-head h1 { margin: 0 0 8px; font-size: 32px; font-weight: 800; color: var(--brand-dark); }
.hero__title span, .page-head h1 span { display: block; font-size: 19px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.hero__lede, .page-head p { margin: 0; max-width: 820px; color: #4a423b; }

/* ---------- sections ---------- */
.section { padding: 26px 0 6px; }
.wrap.section { padding-left: 16px; padding-right: 16px; } /* .section must not cancel .wrap's side padding (edge-to-edge at 960px) */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-head__title { margin: 0; font-size: 22px; font-weight: 700; color: var(--brand-dark); padding-left: 12px; border-left: 5px solid var(--gold); }
.section-head__sub { margin: 4px 0 0 17px; color: var(--muted); font-size: 14px; }
.section-head__link { font-family: var(--head); font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; }
.empty-note { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); text-align: center; margin: 0; }
.legend { font-size: 13px; color: var(--muted); margin: 8px 2px 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

/* ---------- 4-tipster table (layout A) ---------- */
.tips { width: 100%; border-collapse: collapse; background: var(--card); font-size: 15px; min-width: 720px; border: 1px solid var(--line); }
.tips thead th { background: var(--brand); color: #fff; font-family: var(--head); font-weight: 600; font-size: 14px; padding: 10px 8px; white-space: nowrap; }
.tips thead th.tips__who { background: var(--gold-soft); color: var(--brand-dark); border-left: 1px solid var(--line); border-top: 4px solid var(--c); }
.who { display: block; font-weight: 700; }
.who__face { display: block; margin: 0 auto 4px; width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--c); }
.tipster__face { width: 64px; height: 64px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px var(--c); }
.who__rate { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.tips td { padding: 10px 8px; text-align: center; border-top: 1px solid var(--line); }
.tips__league td { background: #f4ede4; color: var(--brand-dark); font-family: var(--head); font-weight: 600; font-size: 13.5px; text-align: left; padding: 6px 12px; }
.tips__time { color: var(--muted); font-size: 14px; width: 64px; }
.tips__team { font-weight: 600; white-space: nowrap; }
.tips__team.is-fav { color: var(--fav); }
.tips__line { font-weight: 700; white-space: nowrap; }
.tips__score { font-weight: 700; white-space: nowrap; }
.crest { width: 20px; height: 20px; vertical-align: -4px; margin: 0 5px; }
.agree { display: inline-block; margin-left: 6px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 9px; vertical-align: 1px; }
.pick { border-left: 1px solid var(--line); font-family: var(--head); font-weight: 700; font-size: 16px; min-width: 92px; }
.pick--fav { color: var(--fav); }
.pick--dog, .pick--level { color: var(--ink); }
.pick__res { display: block; font-family: "Sarabun", sans-serif; font-size: 12px; font-weight: 700; }
/* Settled calls: a small green tick on the ones that came in; misses just fade. */
.tick { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 4px; border-radius: 50%;
    background: var(--win); color: #fff; font: 700 11px/1 "Sarabun", sans-serif; vertical-align: 2px; }
.pick.is-win .pick__res, .pick.is-half-win .pick__res { color: var(--win); }
.pick.is-loss, .pick.is-half-loss { opacity: .45; }
.pick.is-half-loss .pick__res { color: var(--loss); }
.pick.is-push .pick__res, .pick.is-postponed .pick__res { color: var(--muted); }
/* "สรุป" row: how many calls came in, per tipster — the number only (owner, 2026-12-01). */
.tips tfoot td { background: #f4ede4; border-top: 2px solid var(--brand); padding: 10px 8px; }
.tips__sum, .tips tfoot .tips__m { font-family: var(--head); font-weight: 700; color: var(--brand-dark); text-align: right !important; font-size: 15px; }
.sum { border-left: 1px solid var(--line); background: var(--gold-soft) !important; }
.sum__in { font-family: var(--head); font-size: 18px; color: var(--win); }

/* ---------- บอลเต็ง 4 เซียน grid ---------- */
.bankers { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--card); border: 1px solid var(--line); }
.bankers thead th { background: var(--brand); color: #fff; font-family: var(--head); font-weight: 600; padding: 10px 6px; }
.bankers thead th.bankers__who { background: var(--gold-soft); color: var(--brand-dark); border-left: 1px solid var(--line); border-top: 4px solid var(--c); }
.bankers th.bankers__set { width: 96px; }
.bankers tbody th.bankers__set { background: var(--brand-dark); color: var(--gold); font-family: var(--head); font-size: 17px; border-top: 1px solid rgba(255,255,255,.12); }
.banker { border-left: 1px solid var(--line); border-top: 1px solid var(--line); padding: 10px 8px; text-align: center; vertical-align: middle; }
.banker__team { display: block; font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--ink); }
.banker__team.is-fav { color: var(--fav); }
.banker__meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.banker__in { display: inline-flex; align-items: center; gap: 2px; background: var(--win-bg); color: var(--win); font-weight: 700; font-size: 12.5px; padding: 1px 8px 1px 3px; border-radius: 10px; margin-bottom: 4px; }
.banker__in .tick { margin-right: 2px; vertical-align: 0; }
.banker.is-out .banker__team, .banker.is-out .banker__meta { opacity: .45; }

/* ---------- ทีเด็ดบอลชุด (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.step { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--brand)); border-radius: var(--radius); padding: 10px 12px; min-width: 0; }
.step--all { grid-column: 1 / -1; --c: var(--gold); }
.step__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-family: var(--head); color: var(--brand-dark); }
.step__head .who__face { margin: 0; width: 32px; height: 32px; }
.step__head small { font-family: "Sarabun", sans-serif; color: var(--muted); font-size: 13px; }
.step__in { margin-left: auto; background: var(--win-bg); color: var(--win); font-weight: 700; font-size: 14px; padding: 1px 10px; border-radius: 10px; white-space: nowrap; }
.step__picks { list-style: none; margin: 0; padding: 0; }
.step__picks li { padding: 6px 0; border-top: 1px solid var(--line); min-width: 0; }
.step__picks li.is-out { opacity: .45; }
.step__team { display: block; font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step__team.is-fav { color: var(--fav); }
.step__team .crest { margin-left: 0; }
.step__meta { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step--all .step__picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
html.is-touch .step__team { font-size: 19px; }
html.is-touch .step__meta { font-size: 15px; }
.sub-head { font-size: 16px; color: var(--brand-dark); margin: 18px 0 8px; }

/* ---------- daily summary (inc/summary.php) ---------- */
.daily-summary { padding-bottom: 0; }
.daily-summary h2 { margin: 0 0 6px; font-size: 18px; color: var(--brand-dark); }
.daily-summary p { margin: 0; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 12px 16px; color: #3d3530; line-height: 1.75; }

/* ---------- live scores (inc/live.php · assets/live.js) ---------- */
.live-score { display: block; font-family: var(--head); font-weight: 800; color: var(--ink); white-space: nowrap; }
.live-score.is-live { color: var(--fav); }
.live-label { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.live-label.is-live { color: var(--fav); animation: tdb-blink 1.6s ease-in-out infinite; }
@keyframes tdb-blink { 50% { opacity: .45; } }

/* ---------- day score ---------- */
.dayscore { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dayscore li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 8px; padding: 6px 12px; font-size: 14px; }

/* ---------- tipster cards ---------- */
.tipsters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tipster { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--radius); padding: 14px; }
.tipster__head { display: flex; gap: 10px; align-items: center; }
.tipster__mark { width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-family: "Sarabun", sans-serif; font-weight: 700; font-size: 22px; flex: none; } /* looped Thai: Prompt's loopless ฟ บ ร read as W U S */
.tipster__name { margin: 0; font-size: 18px; }
.tipster__style { margin: 0; font-size: 13px; color: var(--muted); }
.tipster__rate { margin: 12px 0 0; font-size: 14px; }
.tipster__rate strong { display: block; font-family: var(--head); font-size: 26px; line-height: 1.2; color: var(--win); }
.tipster__rate span { display: block; font-size: 13px; color: var(--muted); }
.tipster__units { margin: 0; font-size: 13px; font-weight: 700; }
.tipster__units.is-up { color: var(--win); }
.tipster__units.is-down { color: var(--loss); }
.tipster__rule { margin: 10px 0 0; font-size: 13px; color: #4a423b; border-top: 1px dashed var(--line); padding-top: 8px; }

/* ---------- fixture / odds tables ---------- */
.league-block { margin-bottom: 18px; }
.league-block__name { margin: 0 0 6px; font-size: 17px; color: var(--brand-dark); }
.league-block__name span { font-family: "Sarabun", sans-serif; font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 6px; }
.fx { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: 15px; min-width: 600px; table-layout: fixed; }
.fx th:first-child { width: 72px; }
.fx--fixtures th.fx__vs { width: 84px; }
.fx--fixtures th:nth-child(5), .fx--fixtures th:nth-child(6) { width: 104px; }
.fx--odds th.fx__match { width: auto; }
.fx--odds th:not(:first-child):not(.fx__match) { width: 84px; }
.fx td { overflow: hidden; text-overflow: ellipsis; }
.fx th { background: #f4ede4; color: var(--brand-dark); font-family: var(--head); font-weight: 600; font-size: 13.5px; padding: 8px; white-space: nowrap; }
.fx td { padding: 9px 8px; border-top: 1px solid var(--line); text-align: center; white-space: nowrap; }
.fx__time { color: var(--muted); width: 64px; }
.fx__home { text-align: right !important; font-weight: 600; }
.fx__away { text-align: left !important; font-weight: 600; }
.fx__match { text-align: left !important; font-weight: 600; }
.fx__v { color: var(--muted); font-weight: 400; margin: 0 4px; }
.fx__vs { color: var(--muted); width: 84px; }
.fx__vs.has-score { color: var(--ink); font-family: var(--head); font-weight: 700; }
.fx__line { font-weight: 700; }
.fx .is-fav { color: var(--fav); }
.fx__tip a { font-size: 13px; font-weight: 700; color: var(--gold-ink); text-decoration: none; background: var(--gold-soft); padding: 2px 8px; border-radius: 10px; }

/* ---------- league pages ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 6px !important; }
.crumbs a { color: var(--muted); }
.standings { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: 15px; margin-bottom: 14px; }
.standings th { background: var(--brand); color: #fff; font-family: var(--head); font-weight: 600; font-size: 13.5px; padding: 9px 6px; }
.standings td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: center; }
.standings tbody tr:nth-child(even) td { background: #fbf8f4; }
.st__rank { width: 40px; font-weight: 700; color: var(--muted); }
.st__team { text-align: left !important; font-weight: 600; white-space: nowrap; }
.standings th.st__team { text-align: left; }
.st__pts { font-family: var(--head); font-weight: 800; color: var(--brand-dark); }
.st__form { white-space: nowrap; }
.form { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0 1px; border-radius: 4px; color: #fff; font: 700 12px/1 "Sarabun", sans-serif; }
.form--w { background: var(--win); } .form--d { background: #9a9187; } .form--l { background: var(--loss); }
.fx--league { min-width: 0; table-layout: fixed; }
.fx--league .fx__day td { background: #f4ede4; color: var(--brand-dark); font-family: var(--head); font-weight: 600; font-size: 13.5px; text-align: left; padding: 6px 12px; }
.fx--scores { table-layout: fixed; }
.fx--scores th:nth-child(1) { width: 56px; } .fx--scores th:nth-child(3) { width: 64px; }
.fx--scores th:nth-child(5), .fx--scores th:nth-child(7) { width: 62px; }
.fx--scores th:nth-child(6) { width: 86px; } .fx--scores th:nth-child(8) { width: 66px; }
.fx--scores .is-won { font-weight: 800; }
.fx__res { font-weight: 700; white-space: nowrap; color: var(--ink); }
.fx__res.is-fav { color: var(--fav); }
.fx__comp { width: 150px; color: var(--muted); font-size: 13px; text-align: left !important; }
.fx__vs .match-link { color: var(--brand); text-decoration: underline; }
.standings tr.is-mark td { background: var(--gold-soft) !important; }

/* ---------- team pages ---------- */
.team-head { display: flex; align-items: center; gap: 16px; }
.team-head img { flex: none; }
.team-head p { margin: 0; }
.tips__league a, .league-block__name a { color: inherit; text-decoration: none; }
.tips__league a:hover, .league-block__name a:hover { text-decoration: underline; }
.league-block__more { float: right; font-family: "Sarabun", sans-serif; font-size: 13px; font-weight: 600; color: var(--brand) !important; margin-top: 4px; }
.league-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.league-card { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--ink); }
.league-card:hover { border-color: var(--gold); }
.league-card img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.league-card b { display: block; font-family: var(--head); color: var(--brand); }
.league-card small { display: block; color: var(--muted); font-size: 13px; }
.league-links { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }
.league-links a { text-decoration: none; }

/* ---------- match page (page-match.php) ---------- */
.mtag { display: inline-block; font: 600 12.5px var(--head); background: var(--gold); color: var(--brand-deep); padding: 2px 9px; border-radius: 6px; margin-right: 8px; }
.mhead { display: grid; grid-template-columns: 1fr 220px 1fr; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.mhead__team { text-align: center; }
.mhead__team img { width: 72px; height: 72px; object-fit: contain; display: block; margin: 0 auto 6px; }
.mhead__team b { display: block; font: 700 21px var(--head); }
.mhead__team.is-fav b { color: var(--fav); }
.mhead__team small { color: var(--muted); }
.mhead__mid { text-align: center; }
.mhead__time, .mhead__score { display: block; font: 800 34px/1.1 var(--head); color: var(--brand-dark); }
.mhead__mid .live-score { font-size: 34px; line-height: 1.1; }
.mhead__date { display: block; color: var(--muted); font-size: 14px; }
.mhead__line { display: inline-block; margin-top: 8px; background: var(--gold-soft); border-radius: 8px; padding: 4px 10px; font: 700 15px var(--head); color: var(--brand-dark); }
.modds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.modds div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: center; font-size: 14px; color: var(--muted); }
.modds b { display: block; font: 700 16px var(--head); color: var(--ink); }
.mtips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mtip { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--radius); padding: 12px; text-align: center; }
.mtip .tipster__face { width: 56px; height: 56px; display: block; margin: 0 auto 4px; }
.mtip__who { font: 700 15px var(--head); }
.mtip__teng { font: 700 11px var(--head); background: var(--brand); color: #fff; padding: 1px 8px; border-radius: 9px; vertical-align: 2px; }
.mtip__call { font: 800 19px/1.3 var(--head); margin: 6px 0 0; }
.mtip__call.is-fav { color: var(--fav); }
.mtip__line { font-size: 13px; color: var(--muted); }
.mtip__why { margin: 8px 0 0; font-size: 13.5px; color: #4a423b; text-align: left; border-top: 1px dashed var(--line); padding-top: 6px; }
.mtip.is-out .mtip__call, .mtip.is-out .mtip__line { opacity: .45; }
.mcompare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); table-layout: fixed; }
.mcompare thead th { background: var(--brand); color: #fff; font: 600 14px var(--head); padding: 9px; }
.mcompare td, .mcompare tbody th { padding: 9px; border-top: 1px solid var(--line); text-align: center; }
.mcompare tbody th { font-weight: 600; color: var(--muted); font-size: 14px; width: 40%; }
.mtwo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.mtwo > .section:only-child { grid-column: 1 / -1; }
.msummary { margin: 0; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 12px 16px; line-height: 1.75; }
.mlinks { display: flex; flex-wrap: wrap; gap: 8px; }
.mlinks a { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; text-decoration: none; font-size: 14px; }
.match-link { color: inherit; text-decoration: none; }
.match-link:hover { text-decoration: underline; }
html.is-touch .mtip__why, html.is-touch .msummary { font-size: 17px; }

/* ---------- links & about ---------- */
.links-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.link-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.link-card b { display: block; font-family: var(--head); font-size: 18px; color: var(--brand); }
.link-card span { font-size: 14px; color: var(--muted); }
.link-card:hover { border-color: var(--gold); }
.about-block h2 { font-size: 20px; color: var(--brand-dark); margin: 0 0 6px; }
.about-block p { margin: 0; color: #4a423b; }
.day-links { display: flex; flex-wrap: wrap; gap: 6px; }
.day-links a { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; text-decoration: none; font-size: 14px; }
.day-links a.is-current { background: var(--brand); color: #fff; border-color: var(--brand); }
.prose { max-width: 780px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; background: var(--brand-deep); color: rgba(255,255,255,.82); padding: 26px 0 16px; }
.site-footer__inner { display: flex; gap: 32px; justify-content: space-between; flex-wrap: wrap; }
.site-footer__brand { display: flex; gap: 12px; max-width: 520px; }
.site-footer__brand p { margin: 6px 0 0; font-size: 14px; }
.site-footer .brand__word { font-size: 20px; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 24px; align-content: start; }
.site-footer__nav a { color: #fff; text-decoration: none; font-size: 14px; }
.site-footer__nav a:hover { color: var(--gold); }
.site-footer__teams { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; }
.site-footer__teams a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer__teams a:hover { color: var(--gold); }
.site-footer__note { font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- small screens ---------- */
/* Touch screens (phones show the 960px page zoomed out): same layout, larger text. */
html.is-touch body { font-size: 19px; }
html.is-touch .wrap { padding-left: 10px; padding-right: 10px; }
html.is-touch .nav a { font-size: 17px; padding: 8px 9px; }
html.is-touch .hero__title, html.is-touch .page-head h1 { font-size: 38px; }
html.is-touch .section-head__title { font-size: 26px; }
html.is-touch .section-head__sub, html.is-touch .legend { font-size: 16px; }
html.is-touch .tips { font-size: 18px; }
html.is-touch .tips thead th { font-size: 16px; padding: 10px 4px; }
html.is-touch .tips td { padding: 12px 4px; }
html.is-touch .tips__time { width: 58px; font-size: 16px; }
html.is-touch .pick { font-size: 21px; min-width: 0; }
html.is-touch .pick__res, html.is-touch .live-label { font-size: 14px; }
html.is-touch .tips__league td, html.is-touch .fx th, html.is-touch .fx--league .fx__day td { font-size: 16px; }
html.is-touch .banker__team { font-size: 20px; }
html.is-touch .banker__meta { font-size: 15px; }
html.is-touch .fx, html.is-touch .standings { font-size: 18px; }
html.is-touch .fx td { padding: 11px 6px; }
html.is-touch .daily-summary p, html.is-touch .tipster__rule { font-size: 18px; }
html.is-touch .crest { width: 24px; height: 24px; }

/* Mobile 4-tipster table: one match cell (time, teams, line) so all four tipsters fit the screen. */
.tips__m { display: none; }
.nav { scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }

@media (max-width: 640px) {
    .wrap { padding: 0 10px; }
    .tips { min-width: 0; width: 100%; table-layout: fixed; font-size: 13.5px; }
    .tips__m { display: table-cell; text-align: left !important; padding: 8px 4px 8px 8px !important; line-height: 1.35; }
    th.tips__m { text-align: left; width: 40%; }
    .tips__time, .tips__d, .tips__team, .tips__line, .tips__score, .tips__sum { display: none; }
    .m-time { display: block; color: var(--muted); font-size: 12px; }
    .m-team { display: block; font-weight: 600; }
    .m-team.is-fav { color: var(--fav); }
    .m-line { display: block; font-weight: 700; font-size: 12.5px; color: var(--gold-ink); }
    .tips thead th.tips__who { padding: 8px 2px; white-space: normal; font-size: 12px; line-height: 1.25; width: 15%; }
    .who__rate { font-size: 10.5px; }
    .pick { min-width: 0; font-size: 14px; padding: 8px 2px !important; }
    .pick__res { font-size: 11px; }
    .tips__league td { padding: 5px 10px; }
}

@media (max-width: 860px) {
    .tipsters { grid-template-columns: repeat(2, 1fr); }
    .links-row { grid-template-columns: 1fr; }
    .nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .nav a { white-space: nowrap; }
}
@media (max-width: 560px) {
    .hero__title, .page-head h1 { font-size: 25px; }
    .brand__word { font-size: 21px; }
    .tipsters { grid-template-columns: 1fr; }
    .tips { font-size: 14px; }
    .pick { min-width: 72px; font-size: 15px; }
}
