/* Gulf Youth Sport. Brand colours and type are set in CLAUDE.md. */

/* Fonts: Barlow and Barlow Condensed (SIL Open Font License, see /assets/fonts/OFL-LICENSE.txt),
   served from this site so visitors' browsers never contact Google Fonts. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.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; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-500-normal.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; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-ext-500-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.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; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-latin-700-normal.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; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-800-italic.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; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-ext-800-italic.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }


:root {
  --ink: #1C2752;
  --blue: #445EA8;
  --red: #E7302A;
  --yellow: #F1D824;
  --green: #008C58;
  --maroon: #8E193E;
  --orange: #F28E20;
  --surface: #F3F5FA;
  --muted: #5B6584;
  --line: #E1E5F0;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --max: 1160px;
  --radius: 6px;
  color-scheme: light;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: -9999px; top: 12px; z-index: 10; }
.skip:focus { left: 12px; background: #FFFFFF; padding: 10px 16px; border-radius: var(--radius); }

/* Signature six-colour stripe */
.stripe { display: grid; grid-template-columns: repeat(6, 1fr); height: 6px; }
.stripe span:nth-child(1) { background: var(--blue); }
.stripe span:nth-child(2) { background: var(--green); }
.stripe span:nth-child(3) { background: var(--yellow); }
.stripe span:nth-child(4) { background: var(--orange); }
.stripe span:nth-child(5) { background: var(--red); }
.stripe span:nth-child(6) { background: var(--maroon); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 52px; height: 52px; }
.brand-name {
  display: none;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: 24px; line-height: 1; white-space: nowrap;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 8px;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: 21px; text-decoration: none;
  border-bottom: 4px solid transparent; border-top: 4px solid transparent;
}
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }

@media (min-width: 600px) {
  .brand-name { display: block; }
  .nav a { padding: 0 14px; font-size: 24px; }
}
@media (min-width: 768px) {
  .site-header .wrap { min-height: 92px; }
  .brand img { width: 64px; height: 64px; }
}

/* Shared type */
.meta { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.standfirst { margin: 14px 0 24px; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; }

.kicker {
  align-self: flex-start;
  display: inline-block;
  background: #FFFFFF; color: var(--ink);
  font-weight: 700; font-size: 13px; line-height: 1.3;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.kicker--plain { background: none; padding: 0; margin: 0; color: var(--blue); font-size: 14px; }

/* Buttons: rounded pills, at least 44px tall */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: #FFFFFF; border: 2px solid var(--ink);
  font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(28, 39, 82, 0.18); }
.btn--outline { background: #FFFFFF; color: var(--ink); }

/* Colour tiles: portrait 4:5, rotating brand colours */
.tile {
  container-type: inline-size;
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  aspect-ratio: 4 / 5;
  padding: clamp(12px, 2.4vw, 20px);
  border-radius: var(--radius);
  color: #FFFFFF; text-decoration: none; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(28, 39, 82, 0.2); }
.tile--red { background: var(--red); }
.tile--yellow { background: var(--yellow); color: var(--ink); }
.tile--green { background: var(--green); }
.tile--maroon { background: var(--maroon); }
.tile--orange { background: var(--orange); color: var(--ink); }
.tile--blue { background: var(--blue); }

.tile-title {
  margin: 0;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; line-height: 0.95;
  font-size: clamp(21px, 12cqi, 40px);
  overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
}

/* Lead story */
.lead { display: grid; gap: 20px; margin: 20px 0 44px; }
.lead-media { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.lead-media.tile { display: flex; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
/* Colour-tile lead: the tile shows the headline, so the text column doesn't repeat it.
   The column's heading stays for screen readers (the tile itself is aria-hidden). */
.lead--tile .lead-body .kicker--plain,
.lead--tile .lead-title {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lead-media .tile-title { font-size: clamp(36px, 13cqi, 76px); -webkit-line-clamp: 7; }
.lead-label {
  margin: 0 0 10px;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: 18px; color: var(--red);
}
.lead-label::before {
  content: ""; display: inline-block; width: 28px; height: 4px; margin-right: 10px;
  vertical-align: middle; background: var(--red);
}
.lead-title {
  margin: 6px 0 12px;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; line-height: 0.95;
  font-size: clamp(34px, 5.4vw, 60px);
}
.lead-title a { text-decoration: none; }
.lead-title a:hover { color: var(--blue); }

@media (min-width: 768px) {
  .lead {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center; gap: 48px; margin: 40px 0 64px;
  }
}

/* Sections */
.block { margin-bottom: 48px; }
.section-head { border-top: 4px solid var(--ink); padding-top: 12px; margin-bottom: 20px; }
.section-title {
  margin: 0;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: 30px; line-height: 1;
}

/* Story grid: 2 columns on phones, 3 on wider screens */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px;
}
.story-date { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }

@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .block { margin-bottom: 64px; }
}

/* Earlier list */
.earlier { list-style: none; margin: 0; padding: 0; display: grid; }
.earlier li { border-bottom: 1px solid var(--line); }
.earlier a {
  display: grid; grid-template-columns: 6px 1fr; gap: 4px 14px;
  padding: 16px 0; text-decoration: none;
}
.earlier .bar { grid-row: span 2; border-radius: 3px; }
.earlier-meta { font-size: 14px; font-weight: 600; color: var(--muted); }
.earlier-title {
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: 23px; line-height: 1;
}
.earlier a:hover .earlier-title { color: var(--blue); }
.bar--red { background: var(--red); }
.bar--yellow { background: var(--yellow); }
.bar--green { background: var(--green); }
.bar--maroon { background: var(--maroon); }
.bar--orange { background: var(--orange); }
.bar--blue { background: var(--blue); }

@media (min-width: 768px) {
  .earlier { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

.more, .pager { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 32px 0 0; }
.empty { margin: 48px 0; font-size: 19px; color: var(--muted); }

/* Archive and inner pages */
.page-head { margin: 32px 0 28px; }
.page-title {
  margin: 0 0 6px;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: clamp(40px, 7vw, 64px); line-height: 0.95;
}

/* Article page */
.article-head, .article-body { max-width: calc(760px + 2 * var(--gutter)); }
.article-head { padding-top: 20px; padding-bottom: 24px; }
.back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px;
  font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none;
}
.back:hover { color: var(--ink); }
.article-head .kicker--plain { display: block; }
.article-title {
  margin: 8px 0 0;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: clamp(40px, 7vw, 72px); line-height: 0.93;
}
.article-head .standfirst { margin: 16px 0 14px; color: var(--ink); }

/* Featured image: the Canva graphic, shown whole at its own shape */
.article-figure { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto 32px; }
.article-figure img {
  width: auto; max-height: min(85vh, 900px); margin: 0 auto;
  border-radius: var(--radius); background: var(--surface);
}

/* Article body text */
.prose { font-size: 18px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure { margin: 0 0 1.2em; }
.prose h2, .prose h3 {
  margin: 1.6em 0 0.5em;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; line-height: 1;
}
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 25px; }
.prose a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  padding: 4px 0 4px 20px; border-left: 5px solid var(--red);
  font-size: 21px; font-weight: 500; line-height: 1.5;
}
.prose img { border-radius: var(--radius); }
.prose .video-embed { margin: 0 0 1.2em; }
.prose iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* Share links */
.share { margin: 40px 0 0; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.share-title {
  margin: 0 0 14px;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: 24px; line-height: 1;
}
.share-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--ink); border-radius: 999px; background: #FFFFFF; color: var(--ink);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
}
.share-btn:hover { background: var(--ink); color: #FFFFFF; }
.share-native .share-btn { background: var(--ink); color: #FFFFFF; }
.share-status { margin: 10px 0 0; min-height: 1.4em; font-size: 15px; font-weight: 600; color: var(--ink); }

.related { margin-top: 56px; }
@media (max-width: 767px) {
  /* Three tiles don't fit two columns evenly on phones: show two. */
  .grid--related li:nth-child(3) { display: none; }
}

/* Videos page */
.page-head--split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.page-head--split .page-title { margin: 0; }
.btn--youtube { background: var(--red); border-color: var(--red); font-size: 19px; }
.btn--youtube svg { width: 24px; height: 24px; flex: none; }

.video-lead { margin-bottom: 48px; }
.player {
  scroll-margin-top: 16px;
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); background: var(--ink);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-start { position: absolute; inset: 0; display: block; }
.player-start img, .video-thumb img {
  /* YouTube thumbnails are 4:3 with black bars: crop to 16:9 */
  width: 100%; height: 100%; object-fit: cover;
}
.video-lead-text { padding-top: 18px; max-width: 860px; }
.video-lead-title {
  margin: 0 0 10px;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: clamp(28px, 4.4vw, 48px); line-height: 0.98;
}

/* Play button: red circle with a white triangle */
.play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: var(--red); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}
.play::after {
  content: ""; position: absolute; left: 34px; top: 26px;
  border-style: solid; border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent #FFFFFF;
}
.play--small { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.play--small::after { left: 22px; top: 17px; border-width: 11px 0 11px 18px; }
.player-start:hover .play, .video-card:hover .play { transform: scale(1.08); }

.video-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px;
}
@media (min-width: 600px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 900px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; } }
.video-card { display: block; text-decoration: none; }
.video-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); background: var(--ink);
}
.video-title {
  display: block; margin-top: 12px;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: 22px; line-height: 1.02;
}
.video-card:hover .video-title { color: var(--blue); }

.empty-panel {
  margin: 8px 0 48px; padding: 32px 24px; border-radius: var(--radius);
  background: var(--surface); font-size: 19px;
}
.empty-panel p { margin: 0 0 20px; }

@media (prefers-reduced-motion: reduce) {
  .play { transition: none; }
  .player-start:hover .play, .video-card:hover .play { transform: none; }
}

/* Photos page: large maroon panel, then recent gallery covers */
.photo-panel {
  position: relative; overflow: hidden;
  margin: 24px 0 48px; padding: 40px 24px 48px;
  border-radius: var(--radius); background: var(--maroon); color: #FFFFFF;
}
.photo-panel::after {
  /* The six-colour stripe along the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: linear-gradient(to right,
    var(--blue) 0 16.66%, var(--green) 16.66% 33.33%, var(--yellow) 33.33% 50%,
    var(--orange) 50% 66.66%, var(--red) 66.66% 83.33%, var(--maroon) 83.33% 100%);
}
.photo-panel-icon { width: 56px; height: 56px; margin-bottom: 12px; }
.photo-panel-title {
  margin: 0 0 14px; max-width: 12ch;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: clamp(48px, 9vw, 96px); line-height: 0.9;
}
.photo-panel-text { margin: 0 0 28px; max-width: 34ch; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; }
.btn--light { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; font-size: 18px; }
.photo-panel :focus-visible { outline-color: #FFFFFF; }

@media (min-width: 768px) {
  .photo-panel { margin: 40px 0 64px; padding: 64px 56px 72px; }
}

.gallery-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } }
.gallery-card { display: block; text-decoration: none; }
.gallery-cover {
  display: block; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--radius); background: var(--surface);
}
.gallery-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-card:hover img { transform: scale(1.04); }
.gallery-title {
  display: block; margin-top: 10px;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: 20px; line-height: 1.02;
}
.gallery-card:hover .gallery-title { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .gallery-cover img { transition: none; }
  .gallery-card:hover img { transform: none; }
}

/* Footer */
.site-footer {
  margin-top: 72px; background: var(--ink); color: #FFFFFF;
  padding: 40px 0 calc(32px + env(safe-area-inset-bottom, 0px));
}
.site-footer :focus-visible { outline-color: #FFFFFF; }
.slogan {
  margin: 0 0 16px;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: clamp(30px, 5vw, 46px); line-height: 1;
}
.footer-links { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.small { margin: 0; font-size: 14px; color: #B9C1DA; }

@media (prefers-reduced-motion: reduce) {
  .btn, .tile { transition: none; }
  .btn:hover, a.tile:hover { transform: none; }
}

/* 404 page */
.not-found { margin: 40px 0 56px; }
.not-found-code {
  margin: 0;
  font-family: var(--head); font-style: italic; font-weight: 800;
  font-size: clamp(96px, 22vw, 200px); line-height: 0.85;
  /* The six brand colours run through the numbers */
  background: linear-gradient(to right, var(--blue), var(--green), var(--yellow), var(--orange), var(--red), var(--maroon));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.not-found-title {
  margin: 8px 0 14px;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: clamp(40px, 7vw, 72px); line-height: 0.95;
}
.not-found-text { margin: 0 0 28px; max-width: 46ch; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; }
.not-found-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* Photo tiles: the featured photo stays clear, with the headline underneath */
.story-link { display: block; text-decoration: none; }
.tile--photo { background: var(--surface); }
.tile--photo .tile-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.tile--photo .kicker { position: relative; }
.story-link:hover .tile--photo { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(28, 39, 82, 0.2); }
.story-title {
  margin: 10px 0 0;
  font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: 21px; line-height: 1;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.story-link:hover .story-title { color: var(--blue); }
.story-link + .story-date { margin-top: 6px; }
@media (min-width: 768px) { .story-title { font-size: 25px; } }
@media (prefers-reduced-motion: reduce) {
  .story-link:hover .tile--photo { transform: none; }
}

/* Footer small print links and the Photos page removal note */
.small a { color: inherit; text-underline-offset: 3px; }
.small a:hover { color: #FFFFFF; }
.photo-panel-note { margin: 20px 0 0; font-size: 16px; }
.photo-panel-note a { color: #FFFFFF; font-weight: 700; text-underline-offset: 3px; }

/* ---------------------------------------------------------------------------------------------
   Partners (data in src/_data/partners.json). Calm by design: logos on white or the soft surface,
   no banners, carousels or pop-ups. */

.logo-placeholder {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  padding: 4px 8px; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--muted);
}

/* Header: headline sponsor credit. Phones and tablets: logo and credit on top, tabs on their own row. */
.site-header .wrap { flex-wrap: wrap; row-gap: 0; }
.headline-credit {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none;
}
.headline-credit img { height: 30px; width: auto; }
.headline-credit-name { font-weight: 700; color: var(--ink); font-size: 16px; }
@media (max-width: 1079px) {
  .site-header .brand { order: 1; }
  .site-header .headline-credit { order: 2; margin-left: auto; }
  .site-header .nav { order: 3; flex: 1 0 100%; border-top: 1px solid var(--line); }
  .site-header .nav ul { justify-content: space-between; }
  .site-header .nav a { padding: 0 2px; }
}
@media (max-width: 359px) {
  .headline-credit-label { display: none; }
}
@media (min-width: 600px) and (max-width: 1079px) {
  .site-header .nav ul { justify-content: flex-start; gap: 8px; }
  .site-header .nav a { padding: 0 14px 0 0; }
}
@media (min-width: 1080px) {
  .site-header .nav { margin-left: auto; }
  .headline-credit { margin-left: 28px; padding-left: 28px; border-left: 1px solid var(--line); }
  .headline-credit img { height: 38px; }
}

/* Partner strip: directly above the footer on every page */
.partner-strip { background: var(--surface); border-top: 1px solid var(--line); }
.partner-strip-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px 40px; padding-top: 32px; padding-bottom: 32px;
}
.site-footer { margin-top: 0; }
main { margin-bottom: 72px; }
.partner-tiers { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 40px; }
.partner-tier { display: flex; flex-direction: column; gap: 10px; }
.partner-tier-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.partner-tier-logos { display: flex; flex-wrap: wrap; gap: 12px; }
.strip-logo {
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: #FFFFFF; text-decoration: none;
  transition: box-shadow 0.15s ease;
}
.strip-logo:hover { box-shadow: 0 4px 12px rgba(28, 39, 82, 0.12); }
.partner-tier--headline .strip-logo { height: 64px; padding: 8px 16px; }
.partner-tier--headline .strip-logo img { height: 44px; width: auto; }
.partner-tier--official .strip-logo { height: 64px; min-width: 64px; padding: 6px; }
.partner-tier--official .strip-logo img { height: 52px; width: auto; }
.partner-tier--supported .strip-logo { height: 52px; min-width: 52px; padding: 6px; }
.partner-tier--supported .strip-logo img { height: 40px; width: auto; }
.strip-logo--placeholder { min-width: 112px; border: 1px dashed #C9D1EA; background: transparent; }
.strip-cta { font-size: 15px; font-weight: 700; text-underline-offset: 3px; }
.strip-cta:hover { color: var(--blue); }
@media (max-width: 599px) {
  .partner-tiers { flex-direction: column; gap: 20px; }
}

/* Partners page */
.partners-page .page-head { margin-bottom: 32px; }
.partners-intro { margin: 8px 0 0; max-width: 60ch; font-size: clamp(18px, 2vw, 20px); line-height: 1.55; color: var(--muted); }
.partner-role { font-size: 15px; font-weight: 600; color: var(--muted); }
.partner-handle { font-weight: 600; color: var(--blue); }
.partner-description { font-size: 17px; line-height: 1.55; }

.headline-card {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px 40px; align-items: center; margin-bottom: 56px;
  padding: clamp(20px, 4vw, 44px); border: 2px solid var(--ink); border-radius: var(--radius);
  text-decoration: none; transition: box-shadow 0.15s ease;
}
.headline-card:hover, .partner-card:hover { box-shadow: 0 8px 20px rgba(28, 39, 82, 0.12); }
.headline-card-logo {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9;
  padding: 24px; border-radius: var(--radius); background: var(--surface);
}
.headline-card-logo img { width: 100%; max-width: 420px; height: auto; }
.headline-card-text { display: flex; flex-direction: column; gap: 12px; }
.headline-card-name {
  font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 5vw, 48px); line-height: 0.95;
}

.official-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.partner-card {
  display: flex; align-items: center; gap: 20px; padding: 20px;
  border: 1px solid var(--line); border-top: 6px solid var(--blue); border-radius: var(--radius);
  text-decoration: none; transition: box-shadow 0.15s ease;
}
.partner-card--red { border-top-color: var(--red); }
.partner-card--yellow { border-top-color: var(--yellow); }
.partner-card--green { border-top-color: var(--green); }
.partner-card--maroon { border-top-color: var(--maroon); }
.partner-card--orange { border-top-color: var(--orange); }
.partner-card-logo {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 104px; height: 104px; border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.partner-card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.partner-card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.partner-card-name { font-size: 24px; font-weight: 700; line-height: 1.15; }

.supported-title { margin: 0 0 16px; font-size: 18px; font-weight: 700; color: var(--muted); }
.supported-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.partner-card--small { padding: 14px; gap: 14px; border-top-width: 1px; border-top-color: var(--line); }
.partner-card--small .partner-card-logo { width: 72px; height: 72px; }
.partner-card--small .partner-card-name { font-size: 19px; }

.partner-cta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 24px 40px; align-items: center;
  padding: clamp(24px, 5vw, 52px); border-radius: var(--radius); background: var(--blue); color: #FFFFFF;
}
.partner-cta-title {
  margin: 0 0 12px;
  font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 5vw, 52px); line-height: 0.95;
}
.partner-cta p { margin: 0; font-size: clamp(17px, 2vw, 19px); line-height: 1.55; }
.partner-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.partner-cta :focus-visible { outline-color: #FFFFFF; }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--on-blue { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }

@media (prefers-reduced-motion: reduce) {
  .headline-card, .partner-card, .strip-logo { transition: none; }
}

/* Logos come in every shape (round badges, wide wordmarks): boxes are wide enough for a wordmark,
   and every logo is fitted inside its box without stretching or cropping. */
.strip-logo img { max-width: 100%; object-fit: contain; }
.partner-tier--headline .strip-logo img { max-width: 200px; }
.partner-tier--official .strip-logo img { max-width: 180px; }
.partner-tier--supported .strip-logo { max-width: 220px; }
.partner-tier--supported .strip-logo img { height: auto; max-height: 40px; max-width: 200px; }
.partner-card-logo { width: 150px; }
.partner-card--small .partner-card-logo { width: 120px; }
@media (max-width: 420px) {
  .partner-card-logo { width: 110px; height: 88px; }
  .partner-card--small .partner-card-logo { width: 96px; }
}
/* "Supported by" cards: logo panel across the top of the card, so wide wordmarks stay legible */
.partner-card--small { flex-direction: column; align-items: stretch; }
.partner-card--small .partner-card-logo,
.partner-card--small .partner-card-logo { width: 100%; height: 72px; }
.partner-card--small .partner-card-logo img { padding: 10px 16px; }
@media (max-width: 420px) {
  .partner-card--small .partner-card-logo { width: 100%; height: 64px; }
}

/* Partner cards: the name link stretches over the whole card (opens the website); the Instagram
   handle is its own link, layered above it. */
.headline-card, .partner-card { position: relative; }
.partner-main-link { color: inherit; text-decoration: none; }
.partner-main-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.headline-card:focus-within, .partner-card:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.partner-main-link:focus-visible { outline: none; }
a.partner-handle { position: relative; z-index: 1; align-self: flex-start; text-decoration: none; }
a.partner-handle:hover { text-decoration: underline; text-underline-offset: 3px; }
.headline-card:hover .partner-main-link, .partner-card:hover .partner-main-link { color: var(--blue); }
