/* FC Marisca Mersch, public site. Hand-written, no build step: the server has no Node. */
:root {
  --blue: #00569D;
  --blue-dark: #003B6E;
  --yellow: #FFCC00;
  --ink: #0E1A26;
  --text: #33414F;
  --muted: #4A5866;
  --line: #DCE4EC;
  --soft: #F3F6F9;
  --club: #6B3FA0;
  --warn: #8A5A00;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #FFFFFF; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.1; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 10; }

.condensed { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.muted { color: var(--muted); }
.note-warn { color: var(--warn); font-weight: 700; font-size: 13px; }

/* Top bar and header */
.topbar { background: var(--blue-dark); color: #FFFFFF; font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-block: 8px; }
.topbar a { color: #FFFFFF; text-decoration: none; }
.langs { display: flex; gap: 14px; }
.langs a { color: #C9D8E8; text-transform: uppercase; }
.langs a[aria-current] { color: #FFFFFF; font-weight: 700; border-bottom: 2px solid var(--yellow); }
.toplinks { display: flex; gap: 20px; flex-wrap: wrap; }

.site-header { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); line-height: 1; }
.brand-name small { display: block; font-size: 15px; letter-spacing: 0.3em; color: var(--ink); }
.mainnav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; font-family: var(--head); font-weight: 600; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase; }
.mainnav a { color: var(--ink); text-decoration: none; padding-block: 6px; border-bottom: 3px solid transparent; }
.mainnav a[aria-current] { border-bottom-color: var(--yellow); }

/* Drop-down groups (Club, Équipes, JuMM): <details> works without JavaScript and with the keyboard */
.site-header { position: relative; z-index: 20; }
.navgroup { position: relative; }
.navgroup summary { list-style: none; cursor: pointer; color: var(--ink); padding-block: 6px; border-bottom: 3px solid transparent; display: flex; align-items: center; gap: 6px; }
.navgroup summary::-webkit-details-marker { display: none; }
.navgroup summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 0.15s; }
.navgroup[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.navgroup[data-current] summary { border-bottom-color: var(--yellow); }
.navgroup summary:hover, .mainnav a:hover { color: var(--blue); }
.submenu { position: absolute; top: calc(100% + 6px); left: -16px; min-width: 230px; margin: 0; padding: 8px 0; list-style: none; background: #FFFFFF; border: 1px solid var(--line); border-top: 3px solid var(--blue); box-shadow: 0 10px 24px rgba(14, 26, 38, 0.12); font-family: var(--body); font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.submenu a { display: block; padding: 9px 16px; border: 0; color: var(--text); }
.submenu a:hover, .submenu a:focus-visible { background: var(--soft); color: var(--blue); }
.submenu a[aria-current] { color: var(--blue); font-weight: 700; box-shadow: inset 3px 0 0 var(--yellow); }
@media (max-width: 640px) {
  .navgroup { position: static; }
  .submenu { left: 16px; right: 16px; top: auto; min-width: 0; }
}

/* Next match banner: the crest's yellow/blue split */
.matchbar { background: linear-gradient(90deg, var(--yellow) 0 50%, var(--blue) 50% 100%); }
.matchbar .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; padding-block: 32px; }
.matchbar .side-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.matchbar .team { font-family: var(--head); font-weight: 700; font-size: clamp(22px, 4vw, 44px); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.matchbar .home { text-align: right; color: var(--blue-dark); }
.matchbar .away { color: #FFFFFF; }
.matchbar .away .side-label { color: #CFE0F0; }
.matchbar .card { background: #FFFFFF; padding: 14px 22px; text-align: center; min-width: 170px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08); }
.matchbar .card .time { font-family: var(--head); font-weight: 700; font-size: 44px; line-height: 1.05; color: var(--blue); }
.matchbar .card .comp { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) {
  .matchbar { background: linear-gradient(180deg, var(--yellow) 0 50%, var(--blue) 50% 100%); }
  .matchbar .wrap { grid-template-columns: 1fr; text-align: center; }
  .matchbar .home { text-align: center; }
  .matchbar .card { justify-self: center; }
}
.resultbar { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.resultbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-block: 10px; }
.resultbar b { color: var(--ink); }
.resultbar .more { margin-left: auto; }

/* Sections */
main { display: block; }
.page { padding-block: 40px 64px; display: flex; flex-direction: column; gap: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 3px solid var(--ink); padding-bottom: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { margin: 0; font-family: var(--head); font-weight: 700; font-size: clamp(28px, 4vw, 34px); letter-spacing: 0.03em; text-transform: uppercase; }
.two-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.news-lead { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 960px) { .news-lead.is-wide { grid-column: span 2; } }
.news-lead h3 { margin: 0; font-family: var(--head); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; }
.news-lead h3 a, .news-item h3 a, .card h3 a { color: var(--ink); text-decoration: none; }
.news-lead p { margin: 0; font-size: 17px; color: var(--text); max-width: 62ch; }
.news-photo { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--soft); }
.news-list { display: flex; flex-direction: column; min-width: 0; }
.news-item { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.news-item:first-child { padding-top: 0; }
.news-item h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.chip[aria-current] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.article { max-width: 760px; }
.article h1 { font-family: var(--head); font-weight: 700; font-size: clamp(34px, 5vw, 52px); text-transform: uppercase; margin: 8px 0 12px; }
.article .lead { font-size: 20px; color: var(--text); }
.prose { font-size: 18px; line-height: 1.65; color: var(--text); }
.prose h2, .prose h3 { color: var(--ink); font-family: var(--head); text-transform: uppercase; }
/* The admin editor can store a fixed width/height on images: keep their proportions whatever it saved. */
.prose img { margin-block: 16px; max-width: 100% !important; height: auto !important; }
.prose figure { margin: 0; }
.prose figure img { width: 100%; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 16px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line, #dde3ea); }
.prose th { color: var(--ink); }
figure { margin: 24px 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.notice { background: var(--soft); border-left: 4px solid var(--yellow); padding: 12px 16px; font-size: 15px; }
.share { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Agenda list */
.agenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.agenda li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 12px 0 12px 12px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--team, var(--club)); }
.agenda .day { text-align: center; font-family: var(--head); line-height: 1; }
.agenda .day b { display: block; font-size: 30px; color: var(--blue); }
.agenda .day span { font-size: 13px; font-weight: 600; text-transform: uppercase; }
.agenda a { color: var(--ink); text-decoration: none; font-weight: 700; }
.tag { display: inline-block; background: var(--team, var(--club)); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; margin-right: 6px; vertical-align: 1px; }
.need { display: inline-block; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 700; padding: 1px 6px; }

/* Club block */
.club-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); background: var(--blue-dark); color: #FFFFFF; }
.club-block .photo { position: relative; min-height: 320px; background: var(--blue); }
.club-block .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.club-block .credit { position: absolute; right: 12px; bottom: 10px; font-size: 11px; background: rgba(0, 0, 0, 0.5); padding: 3px 7px; }
.club-block .text { padding: 48px 32px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.club-block h2 { margin: 0; font-family: var(--head); font-weight: 700; font-size: clamp(32px, 4vw, 46px); text-transform: uppercase; }
.club-block .about-link { color: var(--yellow); font-weight: 700; }
.club-block p { margin: 0; font-size: 17px; line-height: 1.6; color: #D6E4F2; max-width: 52ch; }
.club-block .kicker { color: var(--yellow); }

.btn { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 700; padding: 11px 18px; text-decoration: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { color: var(--ink); filter: brightness(0.95); }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-small { padding: 6px 12px; font-size: 14px; }

/* Calendar */
.cal-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .cal-layout { grid-template-columns: 260px minmax(0, 1fr); } }
.cal-side { display: flex; flex-direction: column; gap: 24px; font-size: 15px; }
.cal-side h2 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 8px; }
.cal-side fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cal-side label { display: flex; gap: 8px; align-items: center; }
.swatch { width: 14px; height: 14px; background: var(--team, var(--club)); flex: none; }
.subscribe { background: var(--soft); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.subscribe input { width: 100%; font: inherit; font-size: 13px; padding: 6px; border: 1px solid var(--line); }
.cal-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-toolbar h2 { margin: 0; font-family: var(--head); font-size: 26px; text-transform: uppercase; }
.cal-nav, .cal-views { display: flex; gap: 6px; flex-wrap: wrap; }

.week { display: grid; grid-template-columns: 48px repeat(7, minmax(110px, 1fr)); overflow-x: auto; border: 1px solid var(--line); }
.week-scroll { overflow-x: auto; }
.week .head { font-size: 13px; text-align: center; padding: 6px 2px; border-bottom: 1px solid var(--line); background: var(--soft); }
.week .head b { display: block; font-size: 20px; font-family: var(--head); }
.week .head.today { background: var(--yellow); }
.week .hours { position: relative; }
.week .hours span { position: absolute; right: 6px; font-size: 11px; color: var(--muted); transform: translateY(-50%); }
.week .col { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(180deg, transparent 0 calc(100% / var(--rows) - 1px), var(--line) calc(100% / var(--rows) - 1px) calc(100% / var(--rows))); }
.week .col, .week .hours { height: calc(var(--rows) * 44px); }
.week .allday { display: flex; flex-direction: column; gap: 3px; padding: 3px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; min-width: 0; }
.block { position: absolute; padding: 3px 5px; font-size: 12px; line-height: 1.25; overflow: hidden; text-decoration: none; color: #FFFFFF; background: var(--team, var(--club)); border-left: 4px solid rgba(0, 0, 0, 0.25); }
.block.is-training { background: color-mix(in srgb, var(--team, var(--club)) 16%, #FFFFFF); color: var(--ink); border-left-color: var(--team, var(--club)); }
.block:hover { z-index: 2; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); color: inherit; }
.block.is-training:hover { color: var(--ink); }
.block b { display: block; }

.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.month .dow { font-size: 12px; text-transform: uppercase; text-align: center; padding: 4px; background: var(--soft); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.month .cell { min-height: 110px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.month .cell.other { background: #FAFBFC; color: var(--muted); }
.month .cell.today .num { background: var(--yellow); }
.month .num { font-size: 13px; font-weight: 700; align-self: flex-start; padding: 0 4px; }
.month .chip-ev { font-size: 11px; padding: 1px 4px; color: #FFFFFF; background: var(--team, var(--club)); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month .chip-ev.is-training { background: color-mix(in srgb, var(--team, var(--club)) 16%, #FFFFFF); color: var(--ink); border-left: 3px solid var(--team, var(--club)); }
@media (max-width: 720px) { .month .cell { min-height: 72px; } .month .chip-ev span { display: none; } }

.event-detail { border-left: 6px solid var(--team, var(--club)); padding-left: 20px; }
.event-detail h1 { font-family: var(--head); font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; margin: 6px 0; }
.shifts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.shift { border: 1px solid var(--line); padding: 14px 16px; display: grid; gap: 10px; }
.shift-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.shift form { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.shift form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.field input { font: inherit; padding: 8px 10px; border: 1px solid #9FB0C2; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.error { color: #B42318; font-size: 14px; }
.success { background: #E7F6EC; border-left: 4px solid #1F8A4C; padding: 12px 16px; }
.hp { position: absolute; left: -9999px; }
.contact-form { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-form form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.contact-form .full { grid-column: 1 / -1; }
.field select, .field textarea { font: inherit; padding: 8px 10px; border: 1px solid #9FB0C2; background: #FFFFFF; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D3DD; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-block: 44px; }
.site-footer .col { display: flex; flex-direction: column; gap: 6px; }
.site-footer b { color: #FFFFFF; }
.site-footer a { color: #C9D3DD; }
.site-footer .asbl { font-family: var(--head); font-weight: 700; font-size: 20px; text-transform: uppercase; color: #FFFFFF; }

.pagination nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }

/* Teams and JuMM */
.team-hero { background: var(--team, var(--blue)); color: #FFFFFF; }
.team-hero .wrap { padding-block: 40px; }
.team-hero h1 { margin: 0 0 8px; font-family: var(--head); font-weight: 700; font-size: clamp(40px, 6vw, 64px); text-transform: uppercase; }
.team-hero .crumbs, .team-hero .crumbs a { color: rgba(255, 255, 255, 0.85); margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.team-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border: 1px solid var(--line); border-top: 6px solid var(--team, var(--club)); text-decoration: none; color: var(--ink); }
.team-card .condensed { font-size: 24px; }
.team-card:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); color: var(--ink); }
.matches { list-style: none; margin: 0; padding: 0; }
.matches li a { display: grid; grid-template-columns: 92px minmax(0, 1fr) 54px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.matches .m-date { font-size: 13px; font-weight: 700; }
.matches .m-date small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.matches .m-dom { text-align: right; }
.matches .m-score, .matches .m-time { text-align: center; font-family: var(--head); font-weight: 700; font-size: 18px; padding: 2px 0; }
.matches .m-score { color: #FFFFFF; background: var(--muted); }
.matches .m-score.s { background: #1F8A4C; }
.matches .m-score.n { background: #B42318; }
@media (max-width: 520px) { .matches li a { grid-template-columns: 1fr 48px 1fr; } .matches .m-date { grid-column: 1 / -1; } }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 700; }
.nowrap { white-space: nowrap; }
.weekend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; margin-bottom: 12px; }
.weekend-list { list-style: none; margin: 0; padding: 0; }
.weekend-list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* Sponsors: logo size follows the tier, amounts are never shown */
.sponsor-grid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.sponsor-grid.tier-1 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sponsor-grid.tier-2 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.sponsor-grid.tier-3 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.sponsor { background: #fff; border: 1px solid var(--line); display: flex; }
.sponsor > a, .sponsor > img, .sponsor > .sponsor-name { flex: 1; }
.sponsor a { display: flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; }
.sponsor img { display: block; width: 100%; object-fit: contain; padding: 16px; }
.tier-1 .sponsor { min-height: 160px; } .tier-1 .sponsor img { height: 160px; }
.tier-2 .sponsor { min-height: 120px; } .tier-2 .sponsor img { height: 120px; }
.tier-3 .sponsor { min-height: 90px; }  .tier-3 .sponsor img { height: 90px; }
.sponsor-name { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-weight: 700; }
.sponsor-cta { padding: 24px; background: var(--blue); color: #fff; }
.sponsor-cta h2 { margin-top: 0; color: #fff; }

/* History & statistics */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.history .lead { font-size: 19px; color: var(--text); max-width: 62ch; margin: 0 0 24px; }
.history .small { font-size: 13px; }
.history h3 { font-family: var(--head); font-size: 22px; text-transform: uppercase; letter-spacing: 0.03em; }
.figures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.figures li { background: var(--blue); color: #FFFFFF; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.figures b { font-family: var(--head); font-size: 44px; line-height: 1; color: var(--yellow); }
.figures span { font-size: 14px; line-height: 1.3; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--blue); }
.timeline li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 0 0 22px 20px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; background: var(--yellow); border: 3px solid var(--blue); border-radius: 50%; }
@media (min-width: 720px) { .timeline li { grid-template-columns: 170px minmax(0, 1fr); gap: 20px; } }
.timeline .when { font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--blue); line-height: 1.2; }
.timeline h3 { margin: 0 0 4px; font-family: var(--body); font-size: 18px; text-transform: none; letter-spacing: 0; }
.timeline p { margin: 0; color: var(--text); max-width: 68ch; }
.timeline figure { margin: 10px 0 0; max-width: 480px; }
.timeline figcaption { font-size: 12px; color: var(--muted); }
.presidents { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: 32px; }
.presidents li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.presidents .name { font-weight: 700; }
.presidents .period { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.presidents .is-current .tag { background: var(--blue); margin: 0 0 0 6px; }
.level-chart { margin: 0; }
.level-chart svg { width: 100%; min-width: 720px; height: auto; display: block; }
.level-chart .grid { stroke: var(--line); stroke-width: 1; }
.level-chart .axis { font-size: 13px; fill: var(--muted); font-family: var(--body); }
.level-chart .line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linejoin: round; }
.level-chart .title { fill: var(--yellow); stroke: var(--blue-dark); stroke-width: 2; }
.level-chart figcaption { font-size: 13px; margin-top: 6px; }
.table-scroll { overflow-x: auto; position: relative; }
.history-table { font-variant-numeric: tabular-nums; }
.history-table td, .history-table th { padding-block: 7px; }
.table .num { text-align: right; padding-right: 14px; white-space: nowrap; }
.history-table .is-first td { background: #FFF6CC; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; margin: 0 4px 2px 0; white-space: nowrap; }
.badge.is-champion { background: var(--yellow); color: var(--ink); }
.badge.is-promoted { background: #1F8A4C; color: #FFFFFF; }
.badge.is-relegated { background: #B42318; color: #FFFFFF; }
.records { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.sources { margin: 0 0 12px; padding-left: 20px; color: var(--text); }
.records li, .cup-summary li, .cup-runs > li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-top: 4px solid var(--yellow); min-width: 0; }
.records b, .cup-summary b, .cup-runs > li > b { font-family: var(--head); font-size: 28px; text-transform: uppercase; color: var(--blue); line-height: 1.1; }
.cup-summary { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.cup-summary .best { font-weight: 700; }
.cup-grid { margin: 0 0 20px; }
.cup-grid figcaption { font-weight: 700; margin-bottom: 6px; }
.cup-grid table { border-collapse: separate; border-spacing: 3px; min-width: 560px; width: 100%; table-layout: fixed; font-size: 12px; }
.cup-grid th { font-weight: 700; color: var(--muted); text-align: center; }
.cup-grid tbody th { text-align: right; padding-right: 6px; width: 48px; font-variant-numeric: tabular-nums; }
.cup-grid td { height: 34px; text-align: center; background: var(--soft); white-space: nowrap; }
.cup-grid td.depth-1 { background: #D6E4F2; color: var(--ink); }
.cup-grid td.depth-2 { background: #7FA9D1; color: var(--ink); }
.cup-grid td.depth-3 { background: var(--blue); color: #FFFFFF; font-weight: 700; }
.cup-grid td.depth-4 { background: var(--yellow); color: var(--ink); font-weight: 700; }
.cup-runs { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.cup-runs > li.is-final { background: #FFF6CC; }
.cup-runs .table { font-size: 14px; margin-top: 6px; }
.cup-runs .table td { padding: 5px 8px 5px 0; }
.cup-runs .is-win td:first-child { border-left: 3px solid #1F8A4C; padding-left: 6px; }
.cup-runs .is-loss td:first-child { border-left: 3px solid #B42318; padding-left: 6px; }
.retro-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.retro-gallery figure { margin: 0; }
.retro-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(0.2); }
.retro-gallery figcaption { font-size: 14px; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 0 6px; }
.retro-gallery figcaption b { color: var(--blue); }
.retro-gallery small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.memorial-cups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(45%, 150px), 1fr)); gap: 16px; }
.memorial-cups a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.3; }
.memorial-cups img { width: 100%; aspect-ratio: 1 / 1.4; object-fit: cover; object-position: top; border: 1px solid var(--line); }
.memorial-cups a:hover img { border-color: var(--blue); }
.memorial-cups b { display: block; color: var(--blue); }
.cup-runs .table td:first-child, .cup-runs .table td.num { white-space: nowrap; }
.history-next { margin-block: 8px 32px; font-family: var(--head); font-size: 20px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* Team and JuMM heroes with a photo: text on the team colour, photo beside it */
.team-hero.has-photo .wrap { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .team-hero.has-photo .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; } }
.hero-lead { max-width: 60ch; font-size: 18px; margin: 0; }
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); border-bottom: 6px solid var(--yellow); }
.hero-photo figcaption, .team-hero .hero-photo figcaption { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.hero-mosaic { display: grid; gap: 8px; }
.hero-mosaic.count-2 { grid-template-columns: 1fr 1fr; }
.hero-mosaic.count-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.hero-mosaic.count-3 a:first-child { grid-row: span 2; }
.hero-mosaic a { position: relative; display: block; overflow: hidden; min-height: 140px; border-bottom: 6px solid var(--team, var(--yellow)); }
.hero-mosaic.count-1 a, .hero-mosaic.count-2 a { aspect-ratio: 3 / 2; }
.hero-mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.hero-mosaic a:hover img { transform: scale(1.03); }
.hero-mosaic span { position: absolute; left: 0; bottom: 0; padding: 4px 10px; background: var(--team, var(--blue)); color: #FFFFFF; font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 640px) { .hero-mosaic.count-3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .hero-mosaic.count-3 a:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; } }

/* Team cards with a photo */
.team-card.has-photo { padding: 0; overflow: hidden; }
.team-card.has-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.team-card-body { display: flex; flex-direction: column; gap: 6px; }
.team-card.has-photo .team-card-body { padding: 14px 16px 16px; }
/* Next to photo cards, a card without photo shows the crest on a tint of the team colour */
.team-grid:has(.has-photo) .team-card:not(.has-photo) { padding: 0; }
.team-grid:has(.has-photo) .team-card:not(.has-photo)::before { content: ''; display: block; aspect-ratio: 3 / 2; background: url('../images/logo-fcmarisca.svg') center / auto 45% no-repeat, color-mix(in srgb, var(--team) 14%, #FFFFFF); }
.team-grid:has(.has-photo) .team-card:not(.has-photo) .team-card-body { padding: 14px 16px 16px; }

/* Volunteer accounts */
.auth-box { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.auth-box.narrow { max-width: 460px; }
.auth-box h1, .account h1 { margin: 0; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .small, .auth-box .small { font-size: 13px; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-danger { background: #B42318; color: #FFFFFF; }
.account > section { display: flex; flex-direction: column; gap: 12px; }
.account .section-head form { margin-left: auto; }
.account-forms { display: grid !important; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.account-forms h2 { margin-top: 0; }
.danger { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; }
.danger summary { cursor: pointer; color: #B42318; font-weight: 700; }
.shift .signed { color: #1F8A4C; font-weight: 700; }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.choices legend { padding: 0; margin-bottom: 6px; font-size: 14px; }
.field input[type="date"] { font: inherit; padding: 7px 10px; border: 1px solid #9FB0C2; }
.optout { margin-top: 24px; padding: 16px; background: var(--soft); }
.small { font-size: 13px; }
