/* ==========================================================================
   Racquets.me — "racquets" theme
   Light professional skin (L'Équipe-style sports newspaper).
   ALL art-direction values live in :root below so the site can be
   reskinned by editing variables only. Plain CSS, no build step.
   ========================================================================== */

:root {
  /* Palette — edit me to reskin */
  --void:  #FAF8F1;  /* page background: paper          */
  --abyss: #FFFFFF;  /* header / raised surfaces        */
  --deep:  #F2EEE2;  /* cards                           */
  --navy:  #E9E4D5;  /* card hover                      */
  --slate: #D9D2BE;  /* hairline borders                */
  --brand:  #B3125F;  /* brand accent: raspberry         */
  --white: #17130D;  /* body text: ink                  */
  --grey:  #5D584C;  /* secondary text                  */
  --mid:   #A29B87;  /* muted                           */

  /* Per-sport accents are set inline as --sport-accent (from params.sports) */
  --sport-accent: var(--brand);

  /* Type */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & rhythm */
  --radius: 10px;
  --radius-sm: 6px;
  --gap: 1.25rem;
  --maxw: 1140px;
  --header-h: 68px;
  --shadow: 0 8px 24px rgba(23, 19, 13, .08);
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--white);
}

p { margin: 0 0 1em; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

/* ---------- Accessibility ---------- */

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 200;
  background: var(--brand);
  color: var(--void);
  font-weight: 700;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus-visible { top: .75rem; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .7rem 1.4rem;
  border: 2px solid var(--brand);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--mid);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sport {
  background: transparent;
  color: var(--white);
  border-color: var(--sport-accent);
}
.btn--sport:hover {
  background: var(--sport-accent);
  color: var(--void);
  border-color: var(--sport-accent);
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--brand);
  cursor: pointer;
}
.link-button:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
  background: var(--abyss);
  border-bottom: 1px solid var(--slate);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-block: .5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand__logo { width: 40px; height: 40px; }
.brand__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.brand__tagline {
  display: none;
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .05em;
  color: var(--grey);
  white-space: nowrap;
}
.lang-switch__short { display: none; }
.brand__tld { color: var(--brand); }

.site-nav { flex: 1 1 auto; }
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.25rem;
}
.site-nav__list a {
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1rem;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav__list a:hover { text-decoration: none; color: var(--brand); }
.site-nav__list a[aria-current="page"] {
  color: var(--sport-accent, var(--brand));
  background: var(--navy);
  background: color-mix(in srgb, var(--sport-accent, var(--brand)) 12%, transparent);
  border-bottom-color: var(--sport-accent, var(--brand));
  border-radius: 6px 6px 0 0;
  padding: .35rem .6rem;
}
.site-nav__list a[aria-current="page"]:hover {
  color: var(--sport-accent, var(--brand));
}

.lang-switch__list {
  list-style: none;
  margin: 0;
  padding: 3px;
  display: flex;
  gap: 2px;
  align-items: center;
  background: var(--deep);
  border: 1px solid var(--slate);
  border-radius: 999px;
}
.lang-switch__link,
.lang-switch__current {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
}
.lang-switch__link { color: var(--grey); }
.lang-switch__link:hover { color: var(--white); text-decoration: none; }
.lang-switch__current {
  background: var(--brand);
  color: #fff;
}

@media (min-width: 701px) {
  /* Even oval toggle: the filled segment sits truly centered, top to bottom, in the pill */
  .lang-switch__list li { display: flex; }
  .lang-switch__link,
  .lang-switch__current { display: inline-flex; align-items: center; line-height: 1; }
}

/* ---------- Hero (homepage) ---------- */

.page-hero {
  background: var(--abyss);
  border-bottom: 1px solid var(--slate);
  text-align: center;
  padding: 4rem 0 3rem;
}
.page-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: .5rem;
}
.page-hero__sub {
  color: var(--grey);
  max-width: 44rem;
  margin: 0 auto 1.75rem;
  font-size: 1.15rem;
}
.page-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

/* ---------- Article hero (single) ---------- */

.article-hero { background: var(--abyss); border-bottom: 1px solid var(--slate); }
.article-hero__img {
  display: block;
  width: 100%;
  height: clamp(16rem, 36vw, 26rem);
  object-fit: cover;
}
.article-hero__body { padding: 2.25rem 0 2.5rem; }
.article-hero__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  max-width: 52rem;
  margin: 0 auto .75rem;
}
.article-hero__meta {
  color: var(--grey);
  font-size: .95rem;
  max-width: 52rem;
  margin: 0 auto;
}

/* ---------- Section headings ---------- */

.section-heading {
  font-size: 1.75rem;
  font-weight: 600;
  border-left: 6px solid var(--brand);
  padding-left: .75rem;
  margin-bottom: 1.5rem;
}

.list-head { padding: 3rem 0 0; }
.list-head__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  border-left: 8px solid var(--sport-accent);
  padding-left: 1rem;
}
.list-head__desc { color: var(--grey); max-width: 46rem; font-size: 1.15rem; }

.sport-hub, .latest { padding: 2.5rem 0; }

/* ---------- Newspaper front page ---------- */

.masthead--slim { padding: 0; border-bottom: 1px solid var(--slate); margin-bottom: 0; }
.masthead__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.masthead--slim .masthead__dateline { margin: 0; font-size: .75rem; }
.masthead--slim .masthead__name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin: 0;
  line-height: 1;
}
.masthead__tag {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mid);
  text-align: right;
  max-width: none;
}

.kicker {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sport-accent, var(--brand));
  margin: 0 0 .5rem;
}
.kicker--lead { color: var(--brand); font-size: .85rem; }

.section-heading--ruled {
  border-left: 0;
  padding-left: 0;
  border-top: 2px solid var(--slate);
  padding-top: .75rem;
}

.frontpage { padding: 2rem 0; border-bottom: 1px solid var(--slate); }
.frontpage__grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.lead__link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.lead__art {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--slate);
  margin-bottom: 1.25rem;
}
.lead__art img {
  display: block;
  width: 100%;
  height: 13rem;
  object-fit: cover;
}
.lead__title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 .6rem;
}
.lead__link:hover .lead__title { color: var(--brand); }
.lead__dek { font-size: 1.05rem; color: var(--grey); }
.lead__byline { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); margin: 0; }

.rail { border-left: 1px solid var(--slate); padding-left: 1.75rem; }
.rail__heading {
  font-size: 1.05rem;
  letter-spacing: .14em;
  border-bottom: 2px solid var(--brand);
  padding-bottom: .5rem;
  margin-bottom: 0;
}
.rail__item {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--slate);
}
.rail__item:last-child { border-bottom: 0; }
.rail__title {
  font-size: 1.02rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  line-height: 1.4;
  margin: 0 0 .3rem;
}
.rail__item:hover .rail__title { color: var(--sport-accent); }
.rail__meta { font-size: .78rem; color: var(--mid); margin: 0; }

.sport-card--desk { position: relative; overflow: hidden; }
.sport-card--desk .sport-card__num { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.5); z-index: 1; }
.sport-card__num {
  position: absolute;
  top: .75rem;
  right: 1rem;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate);
}

/* ---------- Cards ---------- */

.sport-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.sport-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
  background: var(--deep);
  border: 1px solid var(--slate);
  border-top: 5px solid var(--sport-accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--white);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.sport-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--sport-accent);
}
.sport-card__emoji { font-size: 2.75rem; }
.sport-card__name { font-size: 1.4rem; margin: 0; }
.sport-card__art { display: block; margin: -1.5rem -1.5rem 1rem; }
.sport-card__art img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sport-card__more {
  margin-top: auto;
  color: var(--sport-accent);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .95rem;
  padding-top: .75rem;
}

.subsection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: 2.5rem 0;
}
.subsection-card {
  background: var(--deep);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--white);
  transition: transform .15s ease, box-shadow .15s ease;
}
.subsection-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); }
.subsection-card__name { font-size: 1.3rem; margin: 0 0 .25rem; color: var(--brand); }
.subsection-card__count { color: var(--grey); font-size: .95rem; margin: 0; }
.subsection-card__more {
  display: inline-block;
  margin-top: .75rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .95rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.article-card {
  background: var(--deep);
  border: 1px solid var(--slate);
  border-top: 5px solid var(--sport-accent);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card__link { display: block; color: var(--white); height: 100%; }
.article-card__link:hover { text-decoration: none; }
.article-card__img {
  display: block;
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border-bottom: 1px solid var(--slate);
}
.article-card__body { padding: 1rem 1.25rem 1.5rem; }
.article-card__title { font-size: 1.25rem; margin: .5rem 0; }
.article-card__desc {
  color: var(--grey);
  font-size: 1rem;
  margin: 0 0 .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__meta { color: var(--grey); font-size: .9rem; margin: 0; }

.section-chip {
  display: inline-block;
  background: var(--sport-accent);
  color: var(--void);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .15rem .6rem;
  border-radius: 999px;
}

.empty-note { color: var(--grey); padding: 2rem 0; }

/* ---------- Article ---------- */

.article { padding: 3rem 0; }
.article__title { font-size: clamp(2rem, 4.5vw, 3rem); }
.article__header { margin-bottom: 2rem; }
.article__meta {
  color: var(--grey);
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.25em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.75em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 4px solid var(--brand);
  margin: 1.5em 0;
  padding: .5em 0 .5em 1.25em;
  color: var(--grey);
  font-style: italic;
}
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li { margin-bottom: .4em; }
.prose code {
  background: var(--navy);
  padding: .1em .4em;
  border-radius: 4px;
  font-size: .9em;
}
.prose pre {
  background: var(--navy);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose hr { border: none; border-top: 1px solid var(--slate); margin: 2.5em 0; }

/* ---------- Tags ---------- */

.tags {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.tag {
  display: inline-block;
  border: 1px solid var(--mid);
  color: var(--grey);
  border-radius: 999px;
  padding: .25rem .9rem;
  font-size: .95rem;
}
a.tag:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }

/* ---------- Related ---------- */

.related { padding: 2.5rem 0 0; }

/* ---------- Ad slots ---------- */

.ad-slot {
  width: min(100% - 2.5rem, var(--maxw));
  margin: 2rem auto;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  border: 2px dashed var(--mid);
  border-radius: var(--radius);
  background: var(--abyss);
  color: var(--grey);
  padding: 1.25rem;
  text-align: center;
}
.ad-slot__label {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--mid);
}
.ad-slot__text { font-size: .95rem; }
.ad-slot ins.adsbygoogle { width: 100%; }

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  padding: 2.5rem 0 1rem;
}
.pagination__link {
  display: inline-block;
  border: 1px solid var(--mid);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: .4rem .9rem;
  font-family: var(--font-head);
}
.pagination__link:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.pagination__link--current {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--void);
  font-weight: 700;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #17130D;
  border-top: 3px solid var(--brand);
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  color: #EDE8DB;
}
.site-footer a { color: #EDE8DB; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-nav__heading {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .75rem;
  color: #EDE8DB;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: .45rem; }
.footer-nav a, .footer-nav .link-button { color: #B9B2A2; font-size: 1rem; }
.footer-nav a:hover, .footer-nav .link-button:hover { color: #FFFFFF; }
.footer-note { color: #B9B2A2; font-size: .95rem; }
.footer-note__language { color: #EDE8DB; }
.footer-bottom {
  border-top: 1px solid var(--slate);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
  color: var(--grey);
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- 404 ---------- */

.not-found { text-align: center; padding: 4rem 0; }
.not-found__emoji { font-size: 4rem; margin: 0 0 1rem; }
.not-found__title { font-size: clamp(2rem, 5vw, 3rem); }
.not-found__text { color: var(--grey); margin-bottom: 2rem; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  display: none; /* shown by removing [hidden] via JS */
  position: fixed;
  /* Floating card, lifted clear of Netlify's injected bottom-right badge
     (free-tier deploys) at every viewport size. */
  left: 1rem;
  right: 1rem;
  bottom: 4.5rem;
  max-width: 62rem;
  margin: 0 auto;
  z-index: 100000;
  background: var(--navy);
  border: 1px solid var(--slate);
  border-top: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .5);
}
.cookie-banner:not([hidden]) { display: flex; flex-wrap: wrap; }
/* Two-line pattern: text takes a flexible lane that settles at ~two lines;
   it only wraps further when the buttons crowd it. */
.cookie-banner__text {
  flex: 1 1 20rem;
  max-width: 45rem;
  margin: 0;
  font-size: .95rem;
  color: var(--white);
}
.cookie-banner__actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}
.cookie-banner .btn { padding: .55rem 1.1rem; }

/* ---------- Responsive ---------- */

/* ---------- Desk front page & headline lists (newspaper look) ---------- */

.desk-head {
  padding: 2.75rem 0 1.75rem;
  border-bottom: 3px double var(--white);
}
.desk-head__dateline {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0 0 .6rem;
}
.desk-head__title {
  font-family: var(--font-head);
  font-size: 3.2rem;
  line-height: 1.05;
  margin: 0;
  color: var(--white);
}
.desk-head__desc {
  color: var(--grey);
  font-size: 1.15rem;
  max-width: 46rem;
  margin: .8rem 0 0;
}

.departments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem 2.5rem;
  padding: 2.5rem 0 .5rem;
}
.dept { border-top: 2px solid var(--white); padding-top: .8rem; }
.dept__heading {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin: 0 0 .4rem;
}
.dept__heading a { color: var(--white); }
.dept__heading a:hover { color: var(--brand); text-decoration: none; }
.dept__item {
  display: block;
  padding: .6rem 0;
  border-bottom: 1px solid var(--slate);
}
.dept__item:hover { text-decoration: none; }
.dept__item:hover .dept__title { color: var(--brand); }
.dept__title {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--white);
}
.dept__meta { font-size: .78rem; color: var(--mid); margin: .2rem 0 0; }
.dept__more {
  display: inline-block;
  margin-top: .7rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--brand);
}

.headlines { border-top: 2px solid var(--white); }
.headline-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--slate);
}

.topics { padding: 2.5rem 0 0; }
.departments--home { padding: .5rem 0 0; }
.headline-item__link { display: block; }
.headline-item__link:hover { text-decoration: none; }
.headline-item__link:hover .headline-item__title { color: var(--brand); }
.headline-item__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--mid);
  margin: 0 0 .35rem;
}
.headline-item__title {
  font-family: var(--font-head);
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0;
  color: var(--white);
}
.headline-item__dek {
  color: var(--grey);
  max-width: 52rem;
  margin: .35rem 0 0;
}
.headline-item__byline {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mid);
  margin: .45rem 0 0;
}

@media (max-width: 1000px) {
  .sport-grid, .subsection-grid { grid-template-columns: repeat(2, 1fr); }
  .departments { grid-template-columns: repeat(2, 1fr); }
  .bucket-blocks { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topstories__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; }
  .topstory:nth-child(3) { border-left: 0; padding-left: 0; }
  .frontpage__grid { grid-template-columns: 1fr; }
  .rail { border-left: 0; padding-left: 0; border-top: 1px solid var(--slate); padding-top: 1.5rem; }
  .masthead__tag { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 1rem; }
  .sport-grid, .subsection-grid, .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header__inner { gap: .75rem 1.25rem; }
  /* Mobile header: row 1 = brand + tagline + EN/FR toggle, row 2 = four sections on one line */
  .brand__tagline { display: block; }
  .brand__wordmark { font-size: 1.2rem; }
  .brand__logo { width: 34px; height: 34px; }
  .lang-switch__full { display: none; }
  .lang-switch__short { display: inline; }
  .lang-switch { margin-left: auto; }
  .lang-switch__list { font-size: .85rem; }
  .lang-switch__link,
  .lang-switch__current { padding: .25rem .65rem; }
  .site-nav { flex: 1 1 100%; order: 3; }
  .site-nav__list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: .25rem .9rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav__list::-webkit-scrollbar { display: none; }
  .site-nav__list a { font-size: .78rem; padding: .3rem 0; white-space: nowrap; }
  .site-nav__list a[aria-current="page"] { padding: .3rem .35rem; }
  .departments { grid-template-columns: 1fr; gap: 1.75rem; }
  .bucket-blocks { grid-template-columns: 1fr; gap: 1.75rem; }
  .desk-head { padding: 2rem 0 1.25rem; }
  .desk-head__title { font-size: 2.3rem; }
  .headline-item__title { font-size: 1.25rem; }
  .page-hero { padding: 2.75rem 0 2.25rem; }
  .article-hero { padding: 3rem 1rem 2.5rem; }
  .article { padding: 2rem 0; }
  .cookie-banner__text { flex-basis: 100%; max-width: none; }
  .masthead__inner { flex-wrap: wrap; }
  .lead__art { min-height: 10rem; }
  .lead__art span { font-size: 3rem; }
}

/* ---------- Archive: editions ---------- */

.archive-module { padding: 2.5rem 0 0; }
.archive-module__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.archive-module__date {
  font-family: var(--font-head);
  font-size: 1.6rem;
  margin: 0 0 .25rem;
  color: var(--white);
}
.archive-module__meta { font-size: .85rem; color: var(--mid); margin: 0 0 1rem; }
.archive-module__top { display: block; padding-top: .8rem; border-top: 2px solid var(--white); }
.archive-module__top:hover { text-decoration: none; }
.archive-module__top:hover .archive-module__headline { color: var(--brand); }
.archive-module__headline {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 .8rem;
  color: var(--white);
}
.archive-module__vault .article-card { max-width: 26rem; }

.edition-list { border-top: 2px solid var(--white); margin-top: 2rem; }
.edition-entry { padding: 1.15rem 0; border-bottom: 1px solid var(--slate); }
.edition-entry__link { display: block; }
.edition-entry__link:hover { text-decoration: none; }
.edition-entry__link:hover .edition-entry__date { color: var(--brand); }
.edition-entry__date {
  font-family: var(--font-head);
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0;
  color: var(--white);
}
.edition-entry__meta { font-size: .85rem; color: var(--mid); margin: .3rem 0 0; }
.edition-entry__top { color: var(--grey); max-width: 52rem; margin: .35rem 0 0; }
.edition-entry__top-label { font-weight: 700; color: var(--white); }

.edition-desk { padding-top: 2rem; }

.edition-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2.5rem 0;
  flex-wrap: wrap;
}
.edition-nav__link { font-weight: 700; color: var(--white); max-width: 20rem; }
.edition-nav__link:hover { color: var(--brand); text-decoration: none; }
.edition-nav__link--next { text-align: right; margin-left: auto; }
.edition-nav__link--index { text-align: center; }
.edition-nav__date {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: .25rem;
}

/* ---------- Desk bucket blocks ---------- */

.bucket-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem 2.5rem;
  padding: 2.5rem 0 .5rem;
  align-items: start;
}
.bucket-block { margin-bottom: 0; }
.bucket-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 2px solid var(--slate);
  padding-top: .75rem;
  margin-bottom: .5rem;
}
.bucket-block__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--white);
}
.bucket-block__more { font-size: .85rem; font-weight: 700; color: var(--brand); white-space: nowrap; }

@media (max-width: 1000px) {
  .archive-module__grid { grid-template-columns: 1fr; }
}

/* ---------- Desk bucket blocks: responsive overrides (must stay last — the base rule above sits below the main media blocks, so these overrides have to follow it) ---------- */
@media (max-width: 1000px) {
  .bucket-blocks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .bucket-blocks { grid-template-columns: 1fr; gap: 1.75rem; }
}
