/* Outfit, hosted with the site (no Google Fonts request) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/outfit-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/outfit-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Toms News — theme tokens taken from the captured design */
:root {
  --blue: #003cdf;
  --navy: #000244;
  --navy-2: #2b4071;
  --red: #ea021a;
  --yellow: #fde000;
  --text: #4a4a4a;
  --muted: #707070;
  --ink: #111111;
  --white: #ffffff;
  --bg-soft: #f4f5f7;
  --band: #dcdde1;
  --tile-green: #00472e;
  --tile-teal: #003a41;
  --shadow-card: rgba(0, 0, 0, 0.1) 1px 2px 4px 0px, rgba(0, 0, 0, 0.02) 1px 2px 11px 0px;
  --shadow-pop: rgba(0, 0, 0, 0.14) 0px 1px 15px 0px;
  --shadow-bar: rgba(0, 0, 0, 0.12) 0px 3px 3px 0px;
  --col: 1024px;
  --pad: 24px;
  --gap: 20px;
  --font: "Outfit", "Sky Text", arial, sans-serif, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--col); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 30; }
.masthead {
  height: 100px;
  background-color: #000244;
  background:
    radial-gradient(ellipse 70% 170% at 50% 10%, #0636e6 0%, #052cc8 35%, #0320a8 65%, #00168a 100%);
  background-color: #000244;
  color: var(--white);
}
.masthead .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 4px; height: 33px; width: auto; font-weight: 700; font-size: 31px; letter-spacing: -0.5px; line-height: 1; }
.logo .my { color: var(--white); }
.logo .news { background: var(--red); color: var(--white); border-radius: 2px; padding: 0 6px 3px; height: 33px; display: inline-flex; align-items: center; font-weight: 400; }
.logo.dark .my { color: #1a2fa8; }
.masthead-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.masthead-links a, .masthead-links button { display: inline-flex; align-items: center; gap: 8px; height: 35px; padding: 0 6px; font-size: 16px; font-weight: 700; color: var(--white); }
.masthead-links a:hover, .masthead-links button:hover { text-decoration: underline; }
.masthead-links svg { width: 16px; height: 16px; fill: currentColor; }
.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--white); }
.burger svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 2.2; fill: none; }

.mainnav { background: var(--white); height: 54px; box-shadow: var(--shadow-bar); position: relative; }
.mainnav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.navlist { display: flex; list-style: none; margin: 0 0 0 -10px; padding: 0; height: 100%; }
.navlist > li { position: relative; height: 100%; }
.navlist > li > a, .navlist > li > button {
  display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 10px; font-size: 18px; color: var(--text); white-space: nowrap;
}
.navlist > li > a:hover, .navlist > li > button:hover, .navlist > li > a.active { color: var(--blue); }
.navlist > li > a.active { box-shadow: inset 0 -3px 0 var(--blue); }
.chev { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; transition: transform .15s; }
[aria-expanded="true"] .chev { transform: rotate(180deg); }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; width: 174px; background: var(--red); color: var(--white); font-weight: 700; font-size: 18px; border-radius: 2px; }
.cta:hover { background: #c80016; }
.cta svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.cta.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Drop-down menus */
.dropdown {
  display: none; position: absolute; top: 54px; left: 0; z-index: 40;
  background: var(--white); box-shadow: var(--shadow-pop); border-radius: 0 0 4px 4px;
  padding: 20px 23px 14px; min-width: 240px;
}
.dropdown.open { display: block; }
.dropdown.grid3 { display: none; width: 508px; grid-template-columns: repeat(3, 1fr); column-gap: 8px; }
.dropdown.grid3.open { display: grid; }
.dropdown a, .dropdown button { display: block; padding: 8px 0; font-size: 16px; color: var(--text); text-align: left; width: 100%; line-height: 23px; }
.dropdown a:hover, .dropdown button:hover { color: var(--blue); }
.dropdown .dd-title { font-size: 13px; color: var(--muted); padding: 6px 0 2px; text-transform: uppercase; letter-spacing: .5px; }

/* Briefing band under navigation */
.band { height: 110px; background: #d1cfd8; }
.band .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.band-title { font-size: 22px; color: var(--ink); }
.band-meta { font-size: 14px; color: var(--text); margin-top: 4px; }
.band-meta b { font-weight: 700; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 40px; background: var(--white); color: var(--text); font-size: 14px; box-shadow: var(--shadow-card); }
.chip:hover, .chip.active { background: var(--blue); color: var(--white); }

/* Sub navigation (football / F1) */
.subnav { background: #c60c13; height: 54px; color: var(--white); }
.subnav .wrap { height: 100%; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a, .subnav button { display: flex; align-items: center; height: 54px; padding: 0 12px; font-size: 18px; color: var(--white); white-space: nowrap; }
.subnav .sub-title { font-weight: 700; font-size: 18.9px; text-transform: uppercase; margin-left: -12px; }
.subnav button.active, .subnav button:hover { box-shadow: inset 0 -3px 0 var(--white); }

/* Mobile slide-out menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; position: fixed; inset: 0; z-index: 60; }
.mobile-menu .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.mobile-menu .sheet {
  position: absolute; top: 58px; right: 0; bottom: 0; left: 40px; background: var(--bg-soft); overflow-y: auto; padding: 12px 18px 40px;
}
.mobile-menu .sheet-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.mobile-menu .sheet-top a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; background: var(--white); border: 1px solid #d5d9e3; border-radius: 3px; color: var(--blue); font-weight: 700; font-size: 16px; }
.mobile-menu .sheet-top svg { width: 16px; height: 16px; fill: var(--ink); }
.mobile-menu .m-item, .mobile-menu .m-toggle { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; font-size: 18px; color: var(--text); }
.mobile-menu .m-sub { display: none; padding: 0 0 6px 14px; }
.mobile-menu .m-sub.open { display: block; }
.mobile-menu .m-sub a, .mobile-menu .m-sub button { display: block; padding: 7px 0; font-size: 16px; color: var(--text); width: 100%; text-align: left; }
.mobile-menu .m-head { height: 58px; position: absolute; top: 0; left: 0; right: 0; }

/* ---------- Main content ---------- */
main { padding: 40px 0 60px; }
body[data-page="home"] main { padding-top: 4px; }
.section { padding: 0 0 60px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 20px; }
.section-head h2 { font-size: 36px; font-weight: 400; color: var(--text); line-height: 1.1; }
.section-head .more { font-size: 14px; font-weight: 700; color: var(--blue); }
.section-head .more:hover { text-decoration: underline; }
.lead-in { font-size: 16px; color: var(--muted); margin: -12px 0 18px; }

.card { background: var(--white); box-shadow: var(--shadow-card); display: flex; flex-direction: column; position: relative; transition: transform .15s; min-width: 0; }
.card:hover { transform: translateY(-2px); }
.card:hover .title { color: var(--blue); }
.media { position: relative; aspect-ratio: 16 / 9; margin: 5px 5px 0; overflow: hidden; background: #e9ebef; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.ph img.phi { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.media.ph { background: linear-gradient(180deg, #ffffff 0%, #ffffff 38%, #8a8a8a 100%); }
.media .ph-mark { position: absolute; left: 15px; bottom: 15px; width: 50px; height: 50px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .95); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.media .src { position: absolute; right: 23px; bottom: 23px; background: #222222; color: #fff; font-size: 13px; padding: 2px 5px; border-radius: 2px; }
.body { padding: 30px 30px 40px; display: flex; flex-direction: column; gap: 8px; }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--blue); line-height: 18px; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; color: var(--white); background: var(--blue); padding: 0 4px; border-radius: 2px; text-transform: uppercase; line-height: 18px; }
.badge.live, .badge.trending { background: var(--red); }
.badge.breaking { background: var(--yellow); color: var(--ink); }
.badge.local { background: var(--tile-green); }
.title { font-size: 18px; line-height: 25px; color: var(--text); font-weight: 400; }
.summary { font-size: 14px; color: var(--muted); line-height: 20px; }
.time { font-size: 13px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.two .title { font-size: 22px; line-height: 30px; }
.grid + .grid { margin-top: var(--gap); }

/* Hero card */
.hero { display: grid; grid-template-columns: 642px 1fr; background: var(--white); box-shadow: var(--shadow-card); margin-bottom: var(--gap); }
.hero .media { aspect-ratio: auto; height: 361px; margin: 5px 0 5px 5px; }
.hero .media.ph { background: linear-gradient(160deg, #1b3fbf 0%, #0a1f7a 55%, #050d40 100%); }
.hero .media .ph-word { position: absolute; left: 50px; top: 120px; font-size: 64px; font-weight: 700; line-height: .95; color: var(--yellow); text-transform: uppercase; max-width: 80%; }
.hero .body { padding: 80px 30px 30px; }
.hero .title { font-size: 30px; line-height: 34px; }
.hero:hover .title { color: var(--blue); }
.hero .related { list-style: none; margin: auto 0 0; padding: 18px 0 0; }
.hero .related a { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 16px; line-height: 27px; color: var(--text); }
.hero .related a:hover { color: var(--blue); }
.hero .related svg { width: 12px; height: 12px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; }

/* Trending tiles */
.tiles { display: flex; gap: 9px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.tile { flex: 0 0 312px; height: 185px; padding: 15px; color: var(--white); scroll-snap-align: start; border-radius: 0; }
.tile-link { height: 100%; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); }
.tile:nth-child(4n+1) { background: var(--tile-green); }
.tile:nth-child(4n+2), .tile:nth-child(4n+3) { background: var(--navy-2); }
.tile:nth-child(4n) { background: var(--tile-teal); }
.tile .t-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.tile .t-title { font-size: 16px; font-weight: 700; line-height: 22px; }
.tile .t-src { font-size: 13px; opacity: .85; }
.tile-link:hover .t-title { text-decoration: underline; }

/* Compact list (business) */
.list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.list .card .body { padding: 24px 24px 30px; }

.more-btn { display: block; margin: 30px auto 0; height: 36px; padding: 0 16px; border: 1px solid var(--blue); color: var(--blue); border-radius: 2px; font-size: 14px; background: var(--white); }
.more-btn:hover { background: var(--blue); color: var(--white); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--bg-soft); }

.notice { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); padding: 0; }
.fwrap { padding-top: 30px; padding-bottom: 46px; }
.socials { display: flex; flex-wrap: wrap; gap: 6px 36px; padding: 12px 0 28px; border-bottom: 1px solid #dcdfe5; }
.socials a { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text); padding: 4px 10px 4px 10px; }
.socials a:hover { color: var(--blue); }
.socials .dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--white); background: var(--text); }
.fcols { display: grid; grid-template-columns: repeat(3, 251.33px); padding: 30px 0 30px; border-bottom: 1px solid #dcdfe5; }
.fcols h3 { font-size: 20px; font-weight: 400; color: var(--text); margin-bottom: 8px; }
.fcols ul { list-style: none; margin: 0; padding: 0; }
.fcols a { display: block; font-size: 16px; line-height: 31.8px; color: var(--text); }
.fcols a:hover { color: var(--blue); text-decoration: underline; }
.fcols .fcol-toggle { display: none; }
.flegal { display: flex; flex-wrap: wrap; gap: 6px 27px; padding: 30px 0 16px; }
.flegal a, .flegal button { font-size: 16px; color: var(--text); text-align: left; }
.flegal a:hover, .flegal button:hover { text-decoration: underline; }
.fcopy { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text); }
.fcopy .logo { width: auto; height: 18px; font-size: 17px; }
.fcopy .logo .news { height: 18px; padding: 0 4px 2px; }
.fcopy .logo.dark .my { color: #1a2fa8; }

/* ---------- Welcome sheet (first visit) ---------- */
.welcome { position: fixed; inset: 0; z-index: 80; display: none; }
.welcome.open { display: block; }
.welcome .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.welcome .panel {
  position: absolute; left: 0; right: 0; bottom: 0; min-height: 320px; background: var(--white); border-radius: 12px 12px 0 0;
  padding: 16px 24px 17px; color: var(--ink); overflow: hidden;
}
.welcome .w-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; }
.welcome .w-head .logo { width: auto; height: 20px; font-size: 19px; }
.welcome .w-head .logo .news { height: 20px; padding: 0 5px 2px; }
.welcome .w-head h2 { font-size: 22px; font-weight: 400; }
.welcome .w-cols { display: grid; grid-template-columns: 538px 340px; gap: 64px; justify-content: center; font-size: 13px; line-height: 18.2px; }
.welcome .w-cols b { display: block; margin-bottom: 18px; }
.welcome .w-cols ol { margin: 0; padding-left: 18px; }
.welcome .w-cols li { margin-bottom: 6px; }
.welcome .w-note { text-align: center; font-size: 11px; margin: 30px 0 18px; }
.welcome .w-btns { display: flex; justify-content: center; gap: 10px; }
.welcome .w-btns button { height: 37px; padding: 0 20px; border-radius: 2px; font-size: 13px; background: #00239c; color: var(--white); border: 1px solid #00239c; }
.welcome .w-btns button.ghost { background: var(--white); color: #00239c; }

/* ---------- Get the app page ---------- */
.app-page { padding: 32px 0 60px; background: var(--white); }
.app-col { max-width: 700px; margin: 0 auto; }
.app-hero { height: 394px; background: linear-gradient(135deg, #0a5c2b 0%, #2f8a3a 40%, #0a3d22 100%); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--white); }
.app-hero .big { font-size: 120px; font-weight: 700; letter-spacing: -2px; opacity: .92; }
.app-hero .cap { position: absolute; left: 30px; bottom: 26px; font-size: 22px; }
.app-info { background: var(--bg-soft); padding: 33px 0 90px; }
.app-info p { font-size: 18px; line-height: 27px; margin-bottom: 40px; }
.app-info p b { font-weight: 700; color: #333; }
.btn-row { display: flex; flex-wrap: wrap; gap: 18px; }
.btn-out { display: inline-flex; align-items: center; height: 51px; padding: 0 22px; border: 1px solid #243153; border-radius: 2px; color: #243153; font-size: 18px; font-weight: 700; background: var(--white); }
.btn-out:hover { background: var(--navy-2); color: var(--white); }
.app-spacer { display: none; }

/* ---------- Settings page ---------- */
.settings-page { background: #f2f4fd; min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.settings-main { width: 100%; padding: 0 24px 24px; display: flex; flex-direction: column; align-items: center; }
.settings-top { height: 140px; width: 400px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(220, 226, 250, .9), rgba(242, 244, 253, 0)); }
.settings-top .logo { width: auto; height: 24px; font-size: 24px; }
.settings-top .logo .news { height: 24px; padding: 0 5px 2px; }
.form { width: 332px; padding-top: 34px; }
.settings-page h1.sr-only { font-size: 18px; }
.form h2 { font-size: 24px; font-weight: 400; color: #333333; letter-spacing: .5px; line-height: 18px; margin-bottom: 30px; }
.form h3 { font-size: 18px; font-weight: 400; color: #4c4c4c; line-height: 12px; margin-bottom: 36px; }
.form label { display: block; font-size: 15px; color: #4c4c4c; margin: 0 0 8px 1px; }
.form input[type=text] { width: 330px; height: 54px; border: 1px solid #bdbdbd; border-radius: 2px; background: #f2f4fd; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); margin-left: 1px; }
.form input[type=text]:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.btn-primary { display: block; width: 330px; height: 40px; margin: 24px 0 0 1px; border-radius: 2px; background: linear-gradient(180deg, #1a55f0 0%, #003cdf 100%); color: var(--white); font-size: 17px; font-weight: 500; }
.btn-primary:hover { background: #0033c0; }
.link-strong { display: inline-block; margin: 20px 0 0 2px; color: var(--blue); font-size: 17px; font-weight: 700; }
.link-strong:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; gap: 10px; margin: 30px 0 30px 1px; font-size: 12px; color: #4c4c4c; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #dde1ee; }
.time-tiles { display: flex; justify-content: center; gap: 10px; }
.time-tile { width: 100px; height: 67px; border: 1px solid #cfcfcf; border-radius: 2px; background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.time-tile input { border: 0; font: inherit; font-size: 16px; color: var(--red); width: 84px; text-align: center; background: transparent; }
.saved { font-size: 14px; color: var(--tile-green); min-height: 20px; margin-top: 10px; }
.settings-foot { margin-top: auto; width: 428px; padding: 0 24px 16px; border-top: 1px solid #dde1ee; height: 42px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; color: #4c4c4c; }
.settings-foot a:hover { text-decoration: underline; }

/* ---------- Lists, extra sections ---------- */
ul.grid, ul.list, ul.src-tiles, ul.around { list-style: none; margin: 0; padding: 0; }
ul.grid > li, ul.list > li { display: flex; min-width: 0; }
ul.grid > li > .card, ul.list > li > .card { flex: 1; }
.kicker { display: block; font-size: 13px; color: var(--blue); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2.8px; line-height: 18px; }
.meta { gap: 6.4px; }
.badge { padding: 0 5.5px; }
.summary { font-size: 18px; line-height: 25px; }
.list .summary { font-size: 16px; line-height: 22px; }
.notice { font-size: 18px; color: var(--text); margin-top: 20px; }
.notice a { color: var(--blue); }
.media .ph-mark { font-size: 0; }
.media .ph-mark::after { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent rgba(255, 255, 255, .95); }
.brand-head { margin-bottom: 20px; }
.brand-head .logo { width: auto; height: 26px; font-size: 26px; }
.brand-head .logo .news { height: 26px; padding: 0 5px 2px; }
.src-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.src-tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; height: 190px; padding: 30px; background: var(--white); box-shadow: var(--shadow-card); font-size: 18px; color: var(--text); }
.src-tile:hover { color: var(--blue); }
.src-mark { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.around { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.around-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 240px; background: var(--white); box-shadow: var(--shadow-card); }
.around-art { display: block; margin: 5px 0 5px 5px; }
.around-art.a1 { background: linear-gradient(135deg, #2b4071, #003cdf); }
.around-art.a2 { background: linear-gradient(135deg, #00472e, #003a41); }
.around-body { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 30px; }
.around-title { font-size: 22px; line-height: 30px; color: var(--text); }
.around-card:hover .around-title { color: var(--blue); }
.scores { background: var(--white); box-shadow: var(--shadow-card); padding: 30px 60px 24px; }
.scores-day { font-size: 14px; text-align: center; color: var(--ink); margin-bottom: 12px; }
.scores ul { list-style: none; margin: 0; padding: 0; }
.scores li a { display: grid; grid-template-columns: 1fr 160px 80px; align-items: center; height: 43px; border-bottom: 1px solid #eceef2; font-size: 14px; color: #3157a1; }
.scores li a:hover .sc-name { text-decoration: underline; }
.sc-name { color: var(--ink); font-size: 16px; }
.sc-src { color: var(--muted); }
.sc-go { text-align: right; font-weight: 700; }
.scores-all { display: block; text-align: right; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--blue); }
body[data-page="football"] .subnav { background: #cc0f13; }
body[data-page="f1"] .subnav { background: #e20613; }
.sr-only { color: #1010104d; }

@media (min-width: 1024px) {
  .section.live .tiles { overflow: visible; }
  .section.live .tile { flex: 0 0 calc((100% - 27px) / 4); }
}
.app-note { font-size: 14px !important; line-height: 20px !important; color: #707070; margin: 24px 0 0 !important; }

.title { margin-top: 1px; }
.time { margin-top: 3.6px; }
.btn-out { padding: 0 22.5px; }
.app-info h2 { font-size: 25.92px; font-weight: 400; color: #243153; margin-bottom: 6.4px; }
.settings-col { width: 100%; max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.settings-foot-col { width: 100%; max-width: 380px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 12px; height: 26px; }
#reset { color: #0000ee !important; }

.tiles { padding-bottom: 0; }
@media (max-width: 599px) {
  .settings-top { height: 100px; }
  .form { padding-top: 20px; }
}

/* The first block's heading is for screen readers; the lead story sits right under the menu, like the original. */
.section.first > .wrap > .section-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
@media (max-width: 599px) {
  .section.first .hero .media { margin: 0 calc(-1 * var(--pad)); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  :root { --pad: 22px; }
  .masthead { height: 93px; }
  .masthead-links, .mainnav { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu .sheet { top: 93px; }
  .band { display: none; }
  body:not([data-page="home"]) .band { display: block; height: 114px; }
  .hero { grid-template-columns: 1fr; }
  .hero .media { height: auto; aspect-ratio: 16 / 9; margin: 0; }
  .hero .body { padding: 22px 0 30px; }
  .hero { box-shadow: none; }
  .grid, .list { grid-template-columns: repeat(2, 1fr); }
  .section-head h2 { font-size: 36px; }
  .fcols { grid-template-columns: repeat(3, 1fr); }
  .socials { display: grid; grid-template-columns: repeat(3, max-content); }
  .btn-row { display: grid; grid-template-columns: repeat(2, max-content); }
  .src-tiles { grid-template-columns: repeat(3, 1fr); }
  .scores { padding: 24px 22px; }
  .welcome .w-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .app-page { padding-top: 0; }
  main { padding: 36px 0 54px; }
  body[data-page="home"] main { padding-top: 0; }
  .section { padding-bottom: 54px; }
  .app-col { padding: 0; }
  .app-hero { height: 360px; }
}

/* ---------- Phone ---------- */
@media (max-width: 599px) {
  :root { --pad: 16px; --gap: 16px; }
  body { font-size: 16px; }
  .masthead { height: 58px; }
  .logo { height: 26px; width: auto; font-size: 25px; }
  .logo .news { height: 26px; }
  .mobile-menu .sheet { top: 58px; }
  body:not([data-page="home"]) .band { height: 74px; }
  .band-title { font-size: 18px; }
  .chips { display: none; }
  main { padding: 25px 0 37px; }
  body[data-page="home"] main { padding-top: 0; }
  .section { padding-bottom: 37px; }
  .section-head h2 { font-size: 26px; }
  .hero .title { font-size: 25px; line-height: 30px; }
  .hero .media .ph-word { font-size: 40px; left: 24px; top: 60px; }
  .hero .body { padding: 14px 0 20px; }
  .hero .related { display: none; }
  .grid, .list, .grid.two { grid-template-columns: 1fr; gap: 0; }
  .grid .card, .list .card { flex-direction: row; box-shadow: none; border-bottom: 1px solid #e6e8ec; padding: 12px 0; }
  .grid .card .media, .list .card .media { flex: 0 0 132px; margin: 0; aspect-ratio: 16 / 10; height: 82px; }
  .grid .card .media .ph-mark, .list .card .media .ph-mark { width: 30px; height: 30px; left: 6px; bottom: 6px; border-width: 2px; font-size: 9px; }
  .grid .card .media .src, .list .card .media .src { display: none; }
  .grid .card .body, .list .card .body { padding: 0 0 0 14px; gap: 4px; }
  .grid .card .summary, .list .card .summary { display: none; }
  .title, .grid.two .title { font-size: 16px; line-height: 22px; }
  .grid + .grid { margin-top: 0; }
  .tile { flex-basis: 309px; }
  .summary { font-size: 16px; line-height: 22px; }
  .notice { font-size: 16px; }
  .src-tiles { grid-template-columns: 1fr; gap: 12px; }
  .src-tile { height: 120px; padding: 20px; }
  .around-card { grid-template-columns: 1fr; }
  .around-art { height: 180px; margin: 5px 5px 0; }
  .around-title { font-size: 18px; line-height: 25px; }
  .scores li a { grid-template-columns: 1fr 70px; }
  .scores .sc-src { display: none; }
  .socials { grid-template-columns: repeat(5, max-content); }
  .subnav .sub-title { margin-left: 0; }
  .socials { gap: 6px 10px; }
  .socials a span:not(.dot) { display: none; }
  .fcols { grid-template-columns: 1fr; padding: 10px 0; }
  .fcols .fcol { border-bottom: 1px solid #dcdfe5; }
  .fcols .fcol:last-child { border-bottom: 0; }
  .fcols h3 { display: none; }
  .fcols .fcol-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 50px; font-size: 18px; color: var(--text); }
  .fcols ul { display: none; padding-bottom: 10px; }
  .fcols .fcol.open ul { display: block; }
  .flegal { flex-direction: column; gap: 10px; padding-top: 20px; }
  .welcome .panel { padding: 14px 0 16px; }
  .welcome .w-head { padding: 0 16px; justify-content: flex-start; margin-bottom: 18px; }
  .welcome .w-head h2 { font-size: 24px; line-height: 1.3; }
  .welcome .w-cols { grid-template-columns: 1fr; gap: 20px; padding: 0 30px; }
  .welcome .w-note { padding: 0 30px; margin: 18px 0 14px; }
  .welcome .w-btns { justify-content: flex-start; padding: 0 0 0 0; gap: 10px; }
  .welcome .w-btns button { flex: 0 0 auto; height: 37px; }
  .app-col { padding: 0; }
  .app-hero { height: 196px; }
  .app-hero .big { font-size: 64px; }
  .app-info { padding: 24px 0 40px; }
  .app-info p { font-size: 16px; line-height: 24px; }
  .btn-row { gap: 12px; }
  .btn-out { height: 46px; font-size: 16px; }
  .form, .form input[type=text], .btn-primary { width: 100%; }
  .form { padding: 34px 0 0; }
  .settings-main { padding-bottom: 64px; }
  .settings-top { width: 100%; }
  .settings-foot { width: 100%; }
}

/* Phone: the first story of each two-up block becomes one large picture card, like the original's Watch block. */
@media (max-width: 599px) {
  ul.grid.two > li:first-child > .card { flex-direction: column; border-bottom: 0; padding-top: 4px; }
  ul.grid.two > li:first-child .media { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  ul.grid.two > li:first-child .media .ph-mark { width: 50px; height: 50px; left: 15px; bottom: 15px; border-width: 3px; }
  ul.grid.two > li:first-child .body { padding: 14px 0 10px; }
  ul.grid.two > li:first-child .title { font-size: 18px; line-height: 25px; }
  .src-tile { height: 130px; background: var(--white); }
}

/* Round 5 refinements */
.scores nav ul { list-style: none; margin: 0; padding: 0; }
.scores li { padding-top: 2.8px; }
.sc-name { font-size: 17.28px; }
.sc-src { font-size: 15px; }
.app-info p { margin-top: 1px; }
.settings-col { max-width: 100vw; }
.form { padding-top: 45px; }
.form h2 { margin-bottom: 24px; }
.form h3 { margin-bottom: 30px; }
.form label { font-size: 16px; margin-bottom: 3px; }
.form input[type=text] { margin-top: -3px; margin-bottom: 3px; }
@media (max-width: 599px) { .form { padding-top: 20px; } }


@media (min-width: 1024px) {
  .grid.two .title { font-size: 30px; line-height: 34px; }
}

.src-name { font-size: 18px; font-weight: 400; color: inherit; }
.time-tiles { gap: 8px; }
.settings-foot-col { white-space: nowrap; }
.media .src { padding: 2px 5.5px; }

/* Keep page lengths in step with the original at each screen size */
@media (min-width: 600px) {
  .latest-football > li:nth-child(n+25), .latest-f1 > li:nth-child(n+22) { display: none; }
}
@media (max-width: 599px) {
  .top-ireland > li:nth-child(n+10) { display: none; }
}

/* Tablet: lead story keeps its card frame inside the page margins; larger menu button; taller welcome sheet. */
@media (min-width: 600px) and (max-width: 1023px) {
  .section.first .hero { box-shadow: var(--shadow-card); background: var(--white); }
  .section.first .hero .media { margin: 5px 5px 0; }
  .section.first .hero .body { padding: 22px 32px 30px; }
}
@media (max-width: 1023px) {
  .burger { width: 44px; height: 44px; color: #c9cde0; }
  .burger svg { width: 34px; height: 34px; stroke-width: 2.6; }
}


@media (min-width: 600px) and (max-width: 1023px) {
  .grid .card .body, .list .card .body { padding: 38px 32px 40px; }
}

@media (min-width: 1024px) {
  .grid .card .body, .list .card .body { padding: 38px 35px 28px; gap: 8px; }
}

/* Settings footer: two items side by side in a 380px column, as in the original */
.settings-foot { width: 100%; max-width: 380px; box-sizing: content-box; margin: auto auto 0; white-space: nowrap; height: 26px; }
@media (max-width: 599px) {
  .settings-foot { width: 100%; }
  .time-tiles { flex-wrap: wrap; gap: 8px; }
  .time-tile { width: calc(50% - 4px); height: 56px; }
  .divider { margin: 20px 0; }
}


/* ---------- Fallbacks for older browsers (Safari 13/14, old Android) ---------- */
.mobile-menu.open, .welcome, .mobile-menu .scrim, .welcome .scrim { top: 0; right: 0; bottom: 0; left: 0; }
.media.ph img.phi { top: 0; right: 0; bottom: 0; left: 0; }
@supports not (aspect-ratio: 1 / 1) {
  .media { height: 0; padding-bottom: 56.25%; }
  .media > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero .media { padding-bottom: 56.25%; }
}
/* flex "gap" fallback for Safari < 14.1: use margins on the main rows */
@supports not (gap: 1px) {
  .chips > * , .time-tiles > *, .tiles > *, .btn-row > *, .w-btns > *, .masthead-links > * { margin: 0 4px 4px 0; }
}
/* respect reduced motion and keep keyboard focus visible */
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
/* welcome buttons: wrap instead of running off narrow screens */
.welcome .w-btns { flex-wrap: wrap; }
.welcome .w-btns button { max-width: 100%; }
