/* The Rangers Standard
 * Palette: navy #0b1f4b, royal #1f4fa8, red #c8102e, mist #eef2f9, ink #121a2e, steel #5a6683
 * Type: Barlow Condensed (headlines), Barlow (text). Self-hosted.
 */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/barlow-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-latin-600-normal.woff2) format("woff2"); }

:root {
  --navy: #0b1f4b;
  --royal: #1f4fa8;
  --red: #c8102e;
  --mist: #eef2f9;
  --ink: #121a2e;
  --steel: #5a6683;
  --rule: #d6dceb;
  --white: #fff;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gap: clamp(16px, 2.4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--white); color: var(--navy); z-index: 100; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }

/* Masthead ----------------------------------------------------------- */
.masthead { background: var(--navy); color: var(--white); border-bottom: 5px solid var(--red); position: relative; z-index: 20; }
.masthead-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: 0 0 auto; }
.brand img { max-height: 54px; width: auto; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--white); line-height: .9; }
.wordmark:hover { color: var(--white); }
.wordmark-the { font: 600 15px/1 var(--display); letter-spacing: .04em; color: #b9c6e6; }
.wordmark-name { font: 800 34px/0.95 var(--display); text-transform: uppercase; letter-spacing: .01em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a { display: block; padding: 8px 12px; color: var(--white); text-decoration: none; font: 600 19px/1.2 var(--display); }
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current-cat > a { background: var(--royal); color: var(--white); }
.nav-list .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 6px 0; background: var(--navy); border-top: 3px solid var(--red); }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }
.nav-search .search-form { display: flex; }
.nav-search .search-field { width: 170px; border: 0; padding: 8px 10px; font: inherit; font-size: 15px; border-radius: 0; }
.nav-search .search-submit { border: 0; background: var(--red); color: var(--white); font: 600 16px var(--display); padding: 0 12px; cursor: pointer; }

.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; background: transparent; border: 2px solid rgba(255,255,255,.4); cursor: pointer; position: relative; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white); content: ""; }
.menu-toggle-bars { top: 21px; }
.menu-toggle-bars::before { top: -7px; left: 0; right: 0; }
.menu-toggle-bars::after { top: 7px; left: 0; right: 0; }

/* Matchday ticket ------------------------------------------------------ */
.matchday { background: var(--royal); padding: 18px 0; }
.ticket { display: grid; grid-template-columns: 1fr auto; background: var(--white); color: var(--ink); position: relative; }
.ticket-main { padding: 18px 28px 20px; }
.ticket-kicker { margin: 0 0 4px; font: 600 16px/1.2 var(--display); color: var(--red); }
.ticket-teams { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font: 800 clamp(30px, 4.6vw, 52px)/1 var(--display); text-transform: uppercase; }
.team--us { color: var(--royal); }
.ticket-v { font-size: .5em; color: var(--steel); text-transform: none; font-weight: 600; }
.ticket-stub { position: relative; padding: 16px 28px 18px 32px; border-left: 2px dashed var(--rule); display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 240px; }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--royal); }
.ticket-stub::before { top: -11px; }
.ticket-stub::after { bottom: -11px; }
.ticket-date { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); }
.ticket-day { font-weight: 700; font-size: 22px; }
.ticket-ko { font-weight: 800; font-size: 34px; color: var(--royal); }
.ticket-venue, .ticket-tv { margin: 0; font-size: 15px; color: var(--steel); }
.ticket-link { margin-top: 6px; font: 600 17px var(--display); color: var(--red); }

/* Blocks ---------------------------------------------------------------- */
.block-title { font: 800 26px/1 var(--display); padding-bottom: 8px; margin-bottom: 14px; border-bottom: 3px solid var(--navy); }

/* Front page: top ------------------------------------------------------- */
.front-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); padding: 28px 0 36px; border-bottom: 1px solid var(--rule); }
.headline-list { list-style: none; margin: 0; padding: 0; }
.headline-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.headline-list li:last-child { border-bottom: 0; }
.headline-list time { display: block; font-size: 13px; color: var(--steel); margin-bottom: 2px; }
.headline-list a { font: 700 21px/1.12 var(--display); color: var(--ink); text-decoration: none; }
.headline-list a:hover { color: var(--royal); text-decoration: underline; }
.front-intro { padding: 24px 0; border-bottom: 1px solid var(--rule); }

.empty-state { padding: 60px 0; text-align: center; color: var(--steel); }
.empty-state h2 { font-size: 34px; margin-bottom: 8px; }
.empty-note { color: var(--steel); }

/* Layout with sidebar --------------------------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: calc(var(--gap) * 1.5); padding: 32px 0 56px; align-items: start; }
.sidebar { position: sticky; top: 16px; display: grid; gap: 28px; }

/* Section rows ---------------------------------------------------------- */
.section-row { margin-bottom: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 3px solid var(--navy); padding-bottom: 8px; margin-bottom: 18px; }
.section-title { font-size: 32px; font-weight: 800; }
.section-title a { color: var(--ink); text-decoration: none; }
.section-more { font: 600 17px var(--display); color: var(--red); text-decoration: none; white-space: nowrap; }
.section-more:hover { text-decoration: underline; color: var(--red); }
.row-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gap); }
.row-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Cards ------------------------------------------------------------------ */
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media-empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--mist) 0 50%, #e2e8f4 50% 100%); }
.card-section { font: 700 16px/1 var(--display); color: var(--red); text-decoration: none; }
.card-section:hover { text-decoration: underline; color: var(--red); }
.card-title { font-size: 25px; font-weight: 700; margin: 4px 0 6px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--royal); text-decoration: underline; text-decoration-thickness: 2px; }
.card-excerpt { color: #384260; font-size: 16px; margin-bottom: 6px; }
.card-meta { font-size: 13px; color: var(--steel); margin: 0; }
.card--lead .card-media { aspect-ratio: 16 / 9; }
.card--lead .card-title { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; line-height: .98; }
.card--lead .card-excerpt { font-size: 19px; max-width: 62ch; }
.card--compact { flex-direction: row; gap: 12px; }
.card--compact .card-media { flex: 0 0 110px; aspect-ratio: 1; }
.card--compact .card-title { font-size: 20px; }

/* Most read -------------------------------------------------------------- */
.most-read-list { list-style: none; counter-reset: rank; margin: 0; padding: 0; }
.most-read-list li { counter-increment: rank; display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.most-read-list li::before { content: counter(rank); font: 800 38px/0.9 var(--display); color: var(--royal); }
.most-read-list a { font: 700 19px/1.15 var(--display); color: var(--ink); text-decoration: none; }
.most-read-list a:hover { color: var(--royal); text-decoration: underline; }
.widget-title { font: 800 24px/1 var(--display); margin-bottom: 10px; }

/* Breadcrumbs ------------------------------------------------------------ */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 18px 0 0; padding: 0; font-size: 14px; color: var(--steel); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--rule); }
.breadcrumbs a { color: var(--steel); }
.breadcrumbs [aria-current] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }

/* Article ---------------------------------------------------------------- */
.article-head { margin-bottom: 22px; }
.article-section { font: 700 18px var(--display); color: var(--red); text-decoration: none; }
.article-title { font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: .98; margin: 8px 0 14px; max-width: 22ch; }
.article-standfirst { font-size: 21px; line-height: 1.45; color: #384260; max-width: 60ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--steel); padding-top: 12px; border-top: 1px solid var(--rule); margin: 0; }
.article-meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.article-image { margin: 0 0 26px; }
.article-image figcaption { font-size: 14px; color: var(--steel); padding-top: 8px; }
.article-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; background: var(--mist); color: var(--navy); font: 600 15px var(--display); text-decoration: none; }
.related { margin-top: 44px; }

.entry-content { font-size: 19px; line-height: 1.65; max-width: 70ch; }
.entry-content--wide { max-width: none; }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content h2 { font-size: 34px; font-weight: 800; margin-top: 1.6em; margin-bottom: .5em; }
.entry-content h3 { font-size: 26px; font-weight: 700; margin-top: 1.4em; margin-bottom: .4em; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--royal); font: 700 26px/1.2 var(--display); color: var(--navy); }
.entry-content blockquote cite { display: block; font: 400 15px var(--text); color: var(--steel); margin-top: 8px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th { background: var(--navy); color: var(--white); text-align: left; font: 700 17px var(--display); padding: 8px 10px; }
.entry-content td { border-bottom: 1px solid var(--rule); padding: 8px 10px; }
.entry-content tr:nth-child(even) td { background: #f7f9fd; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 14px; color: var(--steel); }
.entry-content .wp-block-cover h1, .entry-content .wp-block-cover h2 { color: var(--white); }

/* Section pages ---------------------------------------------------------- */
.section-hero { padding: 18px 0 18px; border-bottom: 3px solid var(--navy); }
.section-hero-title { font-size: clamp(40px, 6vw, 68px); font-weight: 800; text-transform: uppercase; line-height: .95; }
.section-hero-desc { max-width: 66ch; color: #384260; margin-top: 10px; }
.section-hero-search { margin-top: 14px; max-width: 520px; }
.section-feed { margin-top: 32px; }
.page-article { max-width: 760px; margin: 0 auto; padding: 36px 0 64px; }
.page-title { font-size: clamp(38px, 5vw, 58px); font-weight: 800; margin-bottom: 20px; }
.not-found { max-width: 640px; padding: 64px 0; }

.search-form { display: flex; gap: 0; }
.search-field { flex: 1; min-width: 0; border: 2px solid var(--navy); padding: 10px 12px; font: inherit; border-radius: 0; }
.search-submit, .button { background: var(--navy); color: var(--white); border: 0; padding: 10px 18px; font: 700 18px var(--display); cursor: pointer; text-decoration: none; display: inline-block; }
.button:hover, .search-submit:hover { background: var(--royal); color: var(--white); }

.pagination, .navigation.pagination { margin-top: 32px; }
.nav-links, .pagination { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-block; min-width: 42px; padding: 8px 12px; text-align: center; border: 2px solid var(--navy); color: var(--navy); font: 700 18px/1 var(--display); text-decoration: none; }
.page-numbers.current { background: var(--navy); color: var(--white); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #d5ddef; margin-top: 24px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: calc(var(--gap) * 1.5); padding: 48px var(--gap) 32px; }
.footer-name { font: 800 30px/1 var(--display); text-transform: uppercase; color: var(--white); }
.footer-heading { font: 700 20px var(--display); color: var(--white); margin-bottom: 12px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 4px 0; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.social-links { list-style: none; display: flex; gap: 10px; margin: 16px 0 0; padding: 0; }
.social-links a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.35); color: var(--white); }
.social-links a:hover { background: var(--royal); }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; padding-bottom: 24px; font-size: 14px; color: #a9b5d3; }
.footer-base p { margin: 0; }


/* Comments ---------------------------------------------------------------- */
.comments-area { margin-top: 48px; max-width: 70ch; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; }
.comment-metadata a { color: var(--steel); }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--rule); font: inherit; border-radius: 0; background: var(--white); }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--ink); outline: none; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }
.comment-notes, .logged-in-as { font-size: 14px; color: var(--steel); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .row-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px var(--gap) 20px; border-bottom: 5px solid var(--red); }
  .nav-open .site-nav { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 12px 0; font-size: 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-list a:hover { background: transparent; color: #b9c6e6; }
  .nav-list .sub-menu { display: block; position: static; border: 0; padding: 0 0 0 16px; }
  .nav-search .search-field { width: 100%; }
  .nav-search .search-form { margin-top: 12px; }
  .front-top, .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wordmark-name { font-size: 27px; }
  .masthead-row { min-height: 64px; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-main { padding: 16px 18px; }
  .ticket-stub { border-left: 0; border-top: 2px dashed var(--rule); padding: 14px 18px; min-width: 0; }
  .ticket-stub::before, .ticket-stub::after { top: -12px; left: auto; bottom: auto; }
  .ticket-stub::before { left: -11px; }
  .ticket-stub::after { right: -11px; }
  .row-grid, .row-grid--3 { grid-template-columns: 1fr; }
  .card-title { font-size: 24px; }
  .entry-content { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .masthead, .matchday, .sidebar, .site-footer, .related, .ad-slot { display: none !important; }
  .layout { display: block; }
}

/* Ad slots (shared). Space is reserved so the page does not jump when an ad loads;
 * unfilled AdSense units collapse. */
.ad-slot { display: block; text-align: center; overflow: hidden; }
.ad-label { display: block; margin-bottom: 6px; font-size: 11px; line-height: 1; letter-spacing: .04em; color: #8a9097; }
.ad-slot--sidebar { min-height: 274px; }
.ad-slot--in_article, .ad-slot--below_article, .ad-slot--listing { min-height: 120px; margin: 32px 0; }
.ad-slot--home { min-height: 120px; margin: 8px 0 40px; }
.ad-slot ins.adsbygoogle { display: block; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
@media (max-width: 640px) {
  .ad-slot--in_article, .ad-slot--below_article, .ad-slot--listing, .ad-slot--home { min-height: 300px; }
}
.grid > .ad-slot, .row-grid > .ad-slot, .stream > .ad-slot { grid-column: 1 / -1; }
