/* Hallmark · shape: Newsroom · genre: editorial · theme: custom (design.md) · job: attend · idea: "Every report from the platform: the newest full-bleed, each one set to read." · vibe: "arena-dark, poster-loud, scoreboard-exact"
 * paper: oklch(98.5% 0.004 91.4) · accent: oklch(43.3% 0.178 29.2) · display: Barlow Condensed 800 · body: Inter · hero: poster, the lead story's photograph full-bleed with the head low-left; the live centre while a championship runs · nav: slab, a red bar on a yellow rule · footer: mast, the logo large over the offices · imagery: photographs, AWF's own · signature: the results desk, medals set like a scoreboard
 * axes: warm-paper/condensed-caps/red-yellow · posture: full palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · weakest: V, the lead and the article reuse the homepage poster; the head now bleeds off the photograph into the arena, so the newsroom reads as its own page */
/* Hallmark · dismissed 58 · a newsroom is twelve headlines to scan and an article is a match report to read: the grid, the results list and the 680px column hold more than 80 words a screen by nature */
/* Hallmark · dismissed 3 · the three equal columns in an article are its imported photo gallery, the federation's own pictures from the platform, not icon tiles */

/* ---------- Newsroom masthead ---------- */
.news-head { padding-block: var(--space-2xl) var(--space-xl); }
.news-head__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-lg) var(--space-2xl); }
.news-head__title { max-width: none; }
.news-head__side { display: grid; justify-items: end; gap: var(--space-md); margin-left: auto; }
.news-head__facts { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: var(--space-xs) var(--space-lg); }
.news-head__count { display: flex; align-items: baseline; gap: var(--space-xs); color: var(--color-on-arena-2); }
.news-head__figure { font: 800 var(--text-section)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--color-on-arena); }
.news-head__page { color: var(--color-on-arena-2); }

.news-nav { display: grid; justify-items: end; gap: var(--space-xs); }
.news-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.news-chip { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-on-arena-2); border-radius: var(--radius-pill); color: var(--color-on-arena); font: 600 var(--text-sm)/1 var(--font-body); white-space: nowrap; text-decoration: none; }
.news-chip:hover { border-color: var(--color-yellow); }
.news-chip:active { transform: translateY(1px); }
.news-chip:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.news-chip__count { font-weight: 400; font-variant-numeric: tabular-nums; color: var(--color-on-arena-2); }
.news-chip[aria-current="page"] { background: var(--color-yellow); border-color: var(--color-yellow); color: var(--color-arena); --color-selection: var(--color-ink); --color-on-selection: var(--color-yellow); }
.news-chip[aria-current="page"] .news-chip__count { color: var(--color-arena); }
.news-chip[aria-current="true"] { border-color: var(--color-yellow); color: var(--color-yellow); }
.news-chips--sub .news-chip { border-color: var(--color-arena-3); }
.news-chips--sub .news-chip:hover { border-color: var(--color-yellow); }

/* ---------- Lead story: the photograph full-bleed, the head bleeding off it ---------- */
.news-lead { padding-bottom: var(--space-2xl); }
.news-lead__link { display: block; color: inherit; text-decoration: none; }
.news-lead__link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -3px; }
.news-lead__photo, .article-hero__photo { position: relative; margin: 0; height: clamp(280px, 40vw, 56svh); overflow: hidden; background: var(--color-arena-2); color: var(--color-on-arena); }
.article-hero__photo { height: clamp(280px, 42vw, 64svh); }
.news-lead__photo img, .article-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.news-lead__photo::after, .article-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--color-arena) 0%, color-mix(in oklab, var(--color-arena) 72%, transparent) 24%, color-mix(in oklab, var(--color-arena) 0%, transparent) 62%); }
.news-lead__head { position: relative; z-index: var(--z-raised); margin-top: calc(var(--space-4xl) * -1); }
.news-lead--plain .news-lead__head { margin-top: 0; padding-top: var(--space-2xl); }
.news-lead__title { font-size: var(--text-display-s); max-width: 20ch; }
.news-lead__title--long { font-size: var(--text-section); max-width: 24ch; }
.news-lead__title--longer { font-size: var(--text-section); max-width: 38ch; }
.news-lead__link:hover .news-lead__title, .news-lead__link:active .news-lead__title { color: var(--color-yellow); }
.news-lead__meta { display: grid; justify-items: start; gap: var(--space-sm); padding-top: var(--space-md); }
.news-lead__line { font-size: var(--text-lead); line-height: 1.5; max-width: 52ch; }
.news-lead__date { font-size: var(--text-sm); color: var(--color-on-arena-2); }

/* ---------- The grid and the pages ---------- */
.news-list { padding-block: var(--space-3xl) var(--space-4xl); }
.news-list--short { padding-block: var(--space-xl) var(--space-3xl); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl); margin: 0; padding: 0; list-style: none; }
.news-grid .story__link:not(:has(.story__photo)), .article-related__grid .story__link:not(:has(.story__photo)) { padding-top: var(--space-md); border-top: 2px solid var(--color-ink); }
.news-empty { display: grid; justify-items: start; gap: var(--space-md); }
.news-empty__title { font-size: var(--text-section); }

.pager { margin-top: var(--space-3xl); padding-top: var(--space-lg); border-top: 2px solid var(--color-ink); }
.news-list--short .pager { margin-top: 0; }
.pager__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.pager__list li:has(> .next) { margin-left: auto; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 var(--space-sm); border: 1px solid var(--color-rule); color: inherit; font: 800 var(--text-xl)/1 var(--font-display); font-variant-numeric: tabular-nums; text-decoration: none; }
.pager a.page-numbers:hover { border-color: var(--color-ink); background: var(--color-paper-2); }
.pager a.page-numbers:active { transform: translateY(1px); }
.pager a.page-numbers:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.pager .current { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.pager .dots { min-width: 0; border-color: transparent; }
.pager .prev, .pager .next { padding: 0 var(--space-lg); font: 600 var(--text-md)/1 var(--font-body); }

/* ---------- Article hero ---------- */
.article-hero { padding-bottom: var(--space-2xl); }
.article-hero__content { position: relative; z-index: var(--z-raised); display: grid; justify-items: start; gap: var(--space-lg); margin-top: calc(var(--space-4xl) * -1); }
.article-hero--plain .article-hero__content { margin-top: 0; padding-top: var(--space-3xl); }
.article-hero__title { max-width: 20ch; }
.article-hero__title--long { font-size: var(--text-display-s); max-width: 26ch; }
.article-hero__title--longer { font-size: var(--text-section); max-width: 38ch; }
.article-hero__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-lg); color: var(--color-on-arena-2); }
.article-hero__meta a { color: var(--color-on-arena); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.article-hero__meta a:hover, .article-hero__meta a:active { text-decoration-color: var(--color-yellow); text-decoration-thickness: 2px; }
.article-hero__meta a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.article-hero__standfirst { font-size: var(--text-lead); line-height: 1.5; max-width: 56ch; }

/* ---------- A designed graphic (inc/images.php): the lead and the hero framed on the arena ----------
 * Never full-bleed and never under the head: the head takes 7 of 12 columns on the left, the graphic 5 on the
 * right, whole (never cropped, no gradient, nothing laid over it). Below 60rem the head comes first, then the
 * graphic. The graphic is a plain block, so motion.js lets it rise into place without the photograph's drift. */
.news-lead--graphic { padding-top: var(--space-2xl); }
.article-hero--graphic { padding-top: var(--space-3xl); }
.news-lead__frame, .article-hero__frame { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--space-2xl); align-items: center; }
.news-lead__frame { position: relative; }
.news-lead--graphic .news-lead__head { position: static; margin-top: 0; }
.article-hero--graphic .article-hero__content { margin-top: 0; }
.news-lead__graphic img, .article-hero__graphic img { max-height: min(70svh, 640px); margin-left: auto; object-fit: contain; object-position: 100% 50%; }
/* The title is the link; its cover spans the lead, the graphic too. The head (a grid item with a z-index) keeps the cover above the graphic. */
.news-lead--graphic .news-lead__link { display: inline; }
.news-lead--graphic .news-lead__link::after { content: ""; position: absolute; inset: 0 var(--gutter); }
.news-lead--graphic .news-lead__link:hover, .news-lead--graphic .news-lead__link:active { color: var(--color-yellow); }
.news-lead--graphic .news-lead__link:focus-visible { outline-offset: 4px; }

/* ---------- Article body: a 680px reading column ---------- */
.article-main { padding-block: var(--space-2xl) var(--space-3xl); }
.article-body { max-width: var(--measure); margin-inline: auto; font-size: var(--text-md); line-height: 1.7; overflow-wrap: break-word; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote, .article-body figure, .article-body .article-table, .article-body .elementor-widget-image:has(img), .article-body .elementor-gallery__container, .article-body .elementor-button-wrapper, .article-body .elementor-image-carousel, .article-body .elementor-counter { margin: 0 0 var(--space-lg); }
.article-body p { max-width: none; }
.article-body h2 { font-size: var(--text-2xl); line-height: 1.05; max-width: none; margin: var(--space-2xl) 0 var(--space-md); text-wrap: balance; }
.article-body h3 { font-size: var(--text-lg); line-height: 1.3; max-width: none; margin: var(--space-xl) 0 var(--space-sm); }
.article-body h4, .article-body h5, .article-body h6 { font: 600 var(--text-md)/1.4 var(--font-body); margin: var(--space-lg) 0 var(--space-xs); }
.article-body a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.article-body a:hover { text-decoration-color: var(--color-red); text-decoration-thickness: 2px; }
.article-body a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.article-body ul, .article-body ol { padding-left: var(--space-lg); }
.article-body li + li { margin-top: var(--space-xs); }
.article-body li > ul, .article-body li > ol { margin: var(--space-xs) 0 0; }
.article-body ul > li::marker { color: var(--color-red); }
.article-body ol { font-variant-numeric: tabular-nums; }
.article-body blockquote { margin-inline: 0; padding: var(--space-md) var(--space-lg); border: 1px solid var(--color-rule); font-size: var(--text-lead); line-height: 1.5; }
.article-body figure { margin-inline: 0; }
.article-body img { height: auto; }
.article-body figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); line-height: 1.45; color: var(--color-ink-2); }
.article-body sup { line-height: 0; }
.article-body hr { margin: var(--space-xl) 0; border: 0; border-top: 1px solid var(--color-rule); }
.article-body iframe, .article-body video, .article-body embed, .article-body object { max-width: 100%; }

/* Tables: horizontal rules only, tabular figures, scrolling inside their frame on phones */
.article-body table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.45; font-variant-numeric: tabular-nums; }
.article-body th, .article-body td { width: auto; padding: var(--space-sm); border-bottom: 1px solid var(--color-rule); text-align: left; vertical-align: top; }
.article-body th:first-child, .article-body td:first-child { padding-left: 0; }
.article-body thead th, .article-body thead td { border-bottom: 2px solid var(--color-ink); color: var(--color-ink-2); font-weight: 600; white-space: nowrap; }
.article-body td p, .article-body th p { margin: 0; }

/* What the old editor left behind */
.article-body .elementor-gallery__container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.article-body .e-gallery-item { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--color-paper-3); }
.article-body .e-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
/* A designed graphic in a gallery (marked by inc/news.php) is shown whole on the arena, as on story cards */
.article-body .e-gallery-item:has(> .is-graphic) { background: var(--color-arena); }
.article-body .e-gallery-item img.is-graphic { object-fit: contain; }
.article-body .e-gallery-item:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.article-body .elementor-image-carousel { display: grid; gap: var(--space-md); }
.article-body .swiper-slide-inner { margin: 0; }
.article-body .elementor-spacer, .article-body .elementor-countdown-wrapper, .article-body .swiper-pagination, .article-body .elementor-swiper-button, .article-body .elementor-divider-separator { display: none; }
.article-body .elementor-divider { margin: var(--space-xl) 0; border-top: 1px solid var(--color-rule); }
.article-body .elementor-button { display: inline-flex; align-items: center; max-width: 100%; min-height: 48px; padding: 0 var(--space-lg); border: 2px solid currentColor; color: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; }
.article-body .elementor-button:hover { background: var(--color-paper-2); }
.article-body .elementor-button:active { transform: translateY(1px); }
.article-body .elementor-button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.article-body .elementor-button-content-wrapper { display: inline-flex; align-items: center; gap: var(--space-xs); }
.article-body .e-font-icon-svg { width: 1em; height: 1em; fill: currentColor; }
.article-body .elementor-counter { display: grid; gap: var(--space-2xs); }
.article-body .elementor-counter-title { font-weight: 600; }
.article-body .elementor-counter-number-wrapper { font: 800 var(--text-3xl)/1 var(--font-display); font-variant-numeric: tabular-nums; }

/* ---------- Sharing, older and newer, more stories ---------- */
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); max-width: var(--measure); margin: var(--space-2xl) auto 0; padding-top: var(--space-lg); border-top: 2px solid var(--color-ink); }
.article-share:first-child { margin-top: 0; }
.article-share__label { font-weight: 600; }
.article-share__list { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.article-share__btn { padding: 0 var(--space-md); }
.article-share__status { font-size: var(--text-sm); color: var(--color-ink-2); }
.article-share__status:empty { display: none; }

.article-pager { padding-bottom: var(--space-3xl); }
.article-pager__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl); margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--color-ink); }
.article-pager__item--newer { grid-column: 2; }
.article-pager__link { display: grid; justify-items: start; gap: var(--space-xs); padding-top: var(--space-lg); color: inherit; text-decoration: none; }
.article-pager__item--newer .article-pager__link { justify-items: end; text-align: right; }
.article-pager__link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
.article-pager__label { font-size: var(--text-sm); color: var(--color-ink-2); }
.article-pager__title { max-width: 36ch; font: 600 var(--text-title)/1.25 var(--font-body); text-wrap: balance; }
.article-pager__link:hover .article-pager__title { color: var(--color-red); }

.article-related { padding-block: var(--space-3xl); }
.article-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl); margin: 0; padding: 0; list-style: none; }

/* ---------- Search ---------- */
.search-head { padding-block: var(--space-2xl); }
.search-head__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
.searchbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); width: 100%; max-width: 48rem; }
.searchbar__label { font-weight: 600; }
.searchbar__row { display: flex; gap: var(--space-xs); }
.searchbar__input { flex: 1 1 0; min-width: 0; width: 100%; min-height: 48px; padding: 0 var(--space-md); border: 2px solid var(--color-on-arena-2); border-radius: var(--radius-input); background: var(--color-arena-2); color: var(--color-on-arena); font-size: var(--text-lg); outline: 3px solid transparent; outline-offset: 2px; }
.searchbar__input:hover { border-color: var(--color-on-arena); }
.searchbar__input:focus-visible { outline-color: var(--color-focus); }

.search-results { padding-block: var(--space-2xl) var(--space-4xl); }
.search-results__title { max-width: none; margin-bottom: var(--space-xl); font-size: var(--text-3xl); }
.results { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--color-ink); }
.result { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 14rem; grid-template-areas: "title media" "meta media" "line media"; align-content: start; gap: var(--space-xs) var(--space-2xl); padding-block: var(--space-lg); border-bottom: 1px solid var(--color-rule); }
.result__title { grid-area: title; margin: 0; }
.result__title a { color: inherit; text-decoration: none; }
.result__title a::after { content: ""; position: absolute; inset: 0; }
.result__title a:hover { color: var(--color-red); }
.result__title a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.result__meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-md); color: var(--color-ink-2); font-size: var(--text-sm); }
.result__type { color: var(--color-ink); font-weight: 600; }
.result__line { grid-area: line; max-width: 68ch; color: var(--color-ink-2); }
.result__media { grid-area: media; align-self: start; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-paper-3); }
.result__media img { width: 100%; height: 100%; object-fit: cover; }
/* A designed graphic among the results (marked by inc/news.php) is shown whole on the arena, as on story cards */
.result__media:has(> .is-graphic) { background: var(--color-arena); }
.result__media img.is-graphic { object-fit: contain; }
.result__media--flag { display: flex; justify-content: end; aspect-ratio: auto; background: transparent; }
.search-empty { display: grid; justify-items: start; gap: var(--space-lg); }
.search-empty .search-results__title { margin-bottom: 0; }

/* The way on: news, calendar, results, federations */
.jump__list { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); margin: 0; padding: 0; list-style: none; }
.jump__link { display: inline-flex; align-items: center; min-height: 48px; color: inherit; font: 600 var(--text-xl)/1.2 var(--font-body); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.jump__link:hover { text-decoration-color: var(--color-red); }
.arena .jump__link:hover { color: var(--color-yellow); text-decoration-color: var(--color-yellow); }
.jump__link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }

/* ---------- Not found ---------- */
.nf { padding-block: var(--space-3xl) var(--space-4xl); }
.nf__inner { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--space-xl); }
.nf__lights { display: flex; gap: var(--space-md); }
.nf__light { width: 64px; height: 64px; border-radius: 50%; background: var(--color-signal); }
.nf__title { max-width: 14ch; }
.nf__line { color: var(--color-on-arena-2); }

@media (prefers-reduced-motion: reduce) {
  .news-chip, .news-lead__title, .news-lead--graphic .news-lead__link, .pager .page-numbers, .article-body .elementor-button, .article-pager__title, .searchbar__input, .result__title a, .jump__link { transition: none; }
  .news-chip:active, .pager a.page-numbers:active, .article-body .elementor-button:active { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 60rem) {
  .news-grid, .article-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result { grid-template-columns: minmax(0, 1fr) 10rem; }
  .news-head__side { justify-items: start; margin-left: 0; }
  .news-head__facts, .news-chips { justify-content: flex-start; }
  .news-nav { justify-items: start; }
  .news-lead__frame, .article-hero__frame { grid-template-columns: minmax(0, 1fr); }
  .news-lead__graphic img, .article-hero__graphic img { margin-left: 0; object-position: 0 50%; }
}
@media (max-width: 40rem) {
  .news-head { padding-top: var(--space-xl); }
  .article-main { padding-top: var(--space-xl); }
  .news-head__side { width: 100%; min-width: 0; }
  .news-nav { grid-template-columns: minmax(0, 1fr); justify-items: stretch; width: 100%; }
  .news-chips { min-width: 0; flex-wrap: nowrap; margin-inline: calc(var(--space-md) * -1); padding: 0 var(--space-md) var(--space-2xs); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--color-on-arena-2) transparent; }
  .news-grid, .article-related__grid { grid-template-columns: minmax(0, 1fr); }
  .news-lead__photo, .article-hero__photo { height: clamp(240px, 72vw, 56svh); }
  .news-lead__head, .article-hero__content { margin-top: calc(var(--space-2xl) * -1); }
  .news-lead--plain .news-lead__head, .article-hero--plain .article-hero__content { margin-top: 0; }
  .news-lead--graphic { padding-top: var(--space-xl); }
  .article-hero--graphic { padding-top: var(--space-2xl); }
  .article-pager__list { grid-template-columns: minmax(0, 1fr); }
  .article-pager__item--newer { grid-column: auto; }
  .article-pager__item--newer .article-pager__link { justify-items: start; text-align: left; }
  .article-body .elementor-gallery__container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result { grid-template-columns: minmax(0, 1fr) 5.5rem; column-gap: var(--space-md); }
  .result__media { aspect-ratio: 1; }
  .nf__light { width: 48px; height: 48px; }
}
