/* Shared masthead. Homepage rules are scoped so internal content keeps its layout. */
body.pro { border-top: 4px solid var(--accent); }
.skip-link { position: absolute; z-index: 10; top: 8px; left: 16px; padding: 12px 18px; background: var(--ink); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pro .portal-header { display: grid; grid-template-columns: 290px minmax(0, 1fr) auto; align-items: center; gap: 40px; max-width: 1280px; height: auto; min-height: 88px; margin: 0 auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
.portal-header .site-brand { width: 290px; max-width: 100%; }
.pro .portal-header nav { width: auto; height: auto; order: initial; margin: 0; gap: 28px; align-self: center; justify-content: center; }
.portal-header nav a { display: flex; position: relative; align-items: center; min-height: 44px; padding: 8px 0; font-size: 14px; font-weight: 600; white-space: nowrap; }
.portal-header nav a[aria-current] { color: var(--accent); }
.portal-header nav a[aria-current]::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.header-follow { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.header-follow span { display: grid; place-items: center; min-width: 22px; min-height: 22px; padding: 2px 5px; background: var(--soft); color: var(--accent); font-weight: 700; border-radius: 50%; }
.portal-header a:hover { color: var(--accent); }

/* A chronological news desk, not an editorial ranking or a realtime score feed. */
.homepage { padding-top: 22px; }
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.home-section-heading h2 { font-size: 19px; font-weight: 700; letter-spacing: -.6px; }
.home-section-heading > a { flex-shrink: 0; min-height: 32px; display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 12px; font-weight: 600; }
.home-section-heading > a:hover, .home-guide:hover b { text-decoration: underline; text-underline-offset: 4px; }
.home-match-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); background: var(--bg); border: 1px solid var(--line); }
.home-match-list > .empty-news { grid-column: 1 / -1; padding: 20px; }
.home-match-list .ribbon-match { padding: 16px; border: 0; border-left: 1px solid var(--line); }
.home-match-list .ribbon-match:first-child { border-left: 0; }
.home-match-list .ribbon-match:last-child { display: block; }
.home-match-list .ribbon-match:hover { background: var(--soft); }
.home-match-list .ribbon-label { font-size: 11px; }
.home-match-list .home-score-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; white-space: normal; margin: 8px 0; }
.home-match-list .home-score-line b { display: flex; align-items: center; gap: 7px; font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.home-score-line .team-logo, .home-score-line .crest { width: 20px; height: 20px; flex-shrink: 0; }
.home-score-line .crest { width: 20px !important; font-size: 8px !important; }
.home-score-line .team-flag { width: 20px; height: 15px; }
.home-score-line strong { font-size: 16px; font-weight: 700; letter-spacing: -.4px; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: 48%; flex-shrink: 0; }
.home-score-missing { position: relative; color: var(--muted); }
.home-match-list .ribbon-note, .home-match-list .ribbon-date { font-size: 11px; line-height: 1.5; }
.home-match-list .ribbon-note { overflow: visible; }
.home-match-updated { display: block; margin-top: 10px; font-size: 10px; line-height: 1.5; color: var(--muted); }
.home-match-updated time { display: inline-block; }
.home-data-note { margin-top: 10px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.home-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 36px 0 24px; padding-bottom: 16px; border-bottom: 3px solid var(--ink); }
.home-heading h1 { font: 700 25px/1.15 'DM Sans', sans-serif; letter-spacing: -.9px; }
.home-heading > time { font-size: 12px; color: var(--muted); text-align: right; }
.home-top { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 36px; }
.home-top-solo { grid-template-columns: minmax(0, 1fr); }
.home-lead, .home-story, .home-story-copy, .home-story-media, .home-secondary, .home-news, .home-rail { min-width: 0; }
.home-category { display: block; margin-bottom: 10px; color: var(--accent); font-size: 11px; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; overflow-wrap: anywhere; }
.home-category:empty, .home-story-meta:empty { display: none; }
.home-story-link { display: block; }
.home-story-link:hover { color: var(--accent); }
.home-lead h2 { max-width: 960px; font: 700 clamp(32px, 3.4vw, 49px)/1.06 'DM Sans', sans-serif; letter-spacing: -1.9px; text-wrap: pretty; overflow-wrap: anywhere; }
.home-summary { color: var(--muted); font-size: 15px; line-height: 1.65; margin-top: 16px; overflow-wrap: anywhere; }
.home-story-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.home-story-meta > span { font-weight: 600; color: var(--ink); }
.home-photo { display: block; background: var(--bg); }
.home-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.home-lead > .home-photo { margin-top: 24px; }
.home-secondary { padding-left: 28px; border-left: 1px solid var(--line); }
.home-secondary .home-story + .home-story { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.home-secondary .home-story h3 { font-size: 25px; line-height: 1.15; font-weight: 700; letter-spacing: -.7px; overflow-wrap: anywhere; text-wrap: pretty; }
.home-secondary .home-summary { display: none; }
.home-secondary .home-story-media { margin-top: 16px; }
.home-secondary .home-photo img { max-height: 165px; }
.home-bottom { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 36px; margin-top: 44px; padding-top: 24px; border-top: 3px solid var(--ink); }
.home-bottom-solo { display: block; }
.home-bottom-solo .home-rail { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 28px; padding-left: 0; border-left: 0; }
.home-bottom-solo .home-fixtures { grid-row: span 2; }
.home-bottom-solo .home-results { margin-top: 0; }
.home-news-list .home-story { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.home-news-list .home-story-text { grid-template-columns: minmax(0, 1fr); }
.home-news-list .home-story h3 { font-size: 27px; line-height: 1.15; font-weight: 700; letter-spacing: -.8px; overflow-wrap: anywhere; text-wrap: pretty; }
.home-news-list .home-summary { font-size: 14px; margin-top: 10px; }
.home-news-list .home-category { margin-bottom: 8px; }
.home-rail { padding-left: 28px; border-left: 1px solid var(--line); }
.home-rail .home-section-heading { flex-wrap: wrap; gap: 0 12px; }
.home-fixtures .fixture-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.home-fixtures .fixture-row > .home-fixture-format { color: var(--accent); font-size: 11px; text-align: left; }
.home-fixture-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.home-fixtures .fixture-row strong { font-size: 14px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
.home-fixtures .fixture-row .home-fixture-team { text-align: left; color: var(--ink); font-size: inherit; }
.home-fixture-team .team-logo, .home-fixture-team .team-flag, .home-fixture-team .crest { margin: 0; }
.home-fixtures .fixture-row time, .home-fixtures .fixture-row > .home-fixture-time { grid-column: auto; color: var(--muted); font-size: 11px; margin-top: 4px; text-align: left; }
.home-fixtures .fixture-row:hover strong { color: var(--accent); }
.home-results { margin-top: 22px; padding: 26px; background: var(--ink); color: white; }
.home-results .home-category { color: #bfe2c9; }
.home-results h2 { font-size: 29px; line-height: 1.1; font-weight: 700; letter-spacing: -1px; }
.home-results p { margin-top: 12px; font-size: 13px; line-height: 1.65; color: #d4dfd8; }
.home-action { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; margin-top: 18px; font-size: 13px; font-weight: 600; border-top: 1px solid #ffffff40; padding-top: 8px; }
.home-action:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-guide { display: block; padding: 24px 0; border-bottom: 1px solid var(--line); }
.home-guide > span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.home-guide b { display: block; font-size: 14px; font-weight: 600; color: var(--accent); }
.home-empty { padding: 32px; background: var(--bg); }
.home-empty h2 { font-size: 32px; }
.home-empty p { margin-top: 14px; color: var(--muted); }
.homepage .media-credit { margin: 8px 0 0; }
.home-story > .media-credit { grid-column: 1 / -1; }

@media (max-width: 1340px) {
  .pro .portal-header { margin-left: 32px; margin-right: 32px; }
}
@media (max-width: 1000px) {
  .pro .portal-header { grid-template-columns: 260px minmax(0, 1fr); gap: 8px 24px; padding-top: 16px; padding-bottom: 0; }
  .portal-header .site-brand { width: 260px; }
  .pro .portal-header nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: 32px; }
  .header-follow { justify-self: end; }
  .home-top, .home-bottom { gap: 28px; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
  .home-top-solo { grid-template-columns: minmax(0, 1fr); }
  .home-secondary, .home-rail { padding-left: 22px; }
  .home-secondary .home-story h3 { font-size: 22px; }
  .home-news-list .home-story { grid-template-columns: minmax(0, 1fr) 140px; gap: 18px; }
  .home-news-list .home-story-text { grid-template-columns: minmax(0, 1fr); }
  .home-news-list .home-story h3 { font-size: 24px; }
  .home-match-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 1px; }
  .home-match-list .ribbon-match { flex: 0 0 270px; min-width: 0; width: 270px; scroll-snap-align: start; }
}
@media (max-width: 850px) {
  .pro .portal-header { margin-left: 24px; margin-right: 24px; }
  .home-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-secondary { padding-left: 0; border-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
  .home-secondary .home-story + .home-story { border: 0; margin: 0; padding: 0; }
  .home-secondary .home-photo img { max-height: none; }
  .home-bottom { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-rail { padding-left: 0; border-left: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 0 28px; }
  .home-fixtures { grid-row: span 2; }
  .home-results { margin-top: 0; }
  .home-news-list .home-story { grid-template-columns: minmax(0, 1fr) 200px; }
  .home-news-list .home-story-text { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pro .portal-header { grid-template-columns: minmax(0, 1fr) auto; margin-left: 18px; margin-right: 18px; gap: 10px 14px; padding-top: 16px; min-height: 0; }
  .portal-header .site-brand { width: 220px; }
  .header-follow { font-size: 11px; gap: 5px; }
  .header-follow span { min-width: 20px; min-height: 20px; }
  .pro .portal-header nav { gap: 12px; justify-content: space-between; margin: 0; }
  .portal-header nav a { font-size: 12px; padding: 10px 0; }
  .homepage { padding-top: 16px; }
  .home-section-heading { gap: 12px; margin-bottom: 8px; }
  .home-section-heading h2 { font-size: 18px; }
  .home-section-heading > a { min-height: 44px; font-size: 11px; }
  .home-match-list .ribbon-match { flex-basis: min(270px, calc(100vw - 72px)); padding: 14px; }
  .home-heading { margin: 26px 0 20px; padding-bottom: 14px; align-items: center; gap: 12px; }
  .home-heading h1 { font-size: 21px; letter-spacing: -.7px; max-width: 230px; }
  .home-heading > time { font-size: 11px; max-width: 85px; }
  .home-lead h2 { font-size: 33px; line-height: 1.08; letter-spacing: -1.1px; }
  .home-lead .home-summary { font-size: 14px; margin-top: 14px; }
  .home-lead > .home-photo { margin-top: 20px; }
  .home-category { font-size: 10px; }
  .home-story-meta { font-size: 11px; gap: 4px 10px; }
  .home-secondary { display: block; padding-top: 0; border-top: 0; }
  .home-secondary .home-story, .home-secondary .home-story + .home-story { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
  .home-secondary .home-story-text, .home-secondary .home-story-text + .home-story-text { grid-template-columns: minmax(0, 1fr); }
  .home-secondary .home-story h3, .home-news-list .home-story h3 { font-size: 21px; letter-spacing: -.5px; line-height: 1.2; }
  .home-secondary .home-story-media { margin: 0; }
  .home-secondary .home-photo img { aspect-ratio: 4 / 3; }
  .home-news-list .home-story { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; padding: 20px 0; }
  .home-news-list .home-story-text { grid-template-columns: minmax(0, 1fr); }
  .home-news-list .home-photo img { aspect-ratio: 4 / 3; }
  .home-news-list .home-summary { display: none; }
  .home-bottom { margin-top: 14px; padding-top: 18px; }
  .home-rail, .home-bottom-solo .home-rail { display: block; }
  .home-fixtures { border-top: 3px solid var(--ink); padding-top: 18px; }
  .home-results { margin-top: 24px; }
  .home-empty { padding: 24px; }
}
@media (max-width: 370px) {
  .home-heading h1 { font-size: 20px; }
  .home-heading > time { font-size: 10px; max-width: 70px; }
  .home-secondary .home-story, .home-secondary .home-story + .home-story, .home-news-list .home-story { grid-template-columns: minmax(0, 1fr) 80px; }
  .home-secondary .home-story-text, .home-secondary .home-story-text + .home-story-text, .home-news-list .home-story-text { grid-template-columns: minmax(0, 1fr); }
}
