/* Kaksi perhettä: Big Shoulders Display on merkin ääni, Source Sans 3 kaikki muu. */
@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-display: swap;
  src: url(fonts/big-shoulders-display-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-display: swap;
  src: url(fonts/big-shoulders-display-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap;
  src: url(fonts/big-shoulders-display-latin-900-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap;
  src: url(fonts/big-shoulders-display-latin-ext-900-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Big Shoulders Display"; font-weight: 500; font-display: swap; src: url(fonts/big-shoulders-display-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap;
  src: url(fonts/source-sans-3-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap;
  src: url(fonts/source-sans-3-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap;
  src: url(fonts/source-sans-3-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap;
  src: url(fonts/source-sans-3-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #13294b;
  --navy-deep: #0d1d36;
  --blue: #2b7fd4;
  --blue-ink: #1c5fa8;
  --yellow: #f5d000;
  --ice: #e4edf6;      /* voittajaosion viileä pinta */
  --paper: #fbfbf9;    /* esihenkilöosion pinta */
  --on-navy-soft: #cad7e8;
  --ink-soft: #43556f;
  --gut: clamp(20px, 4.4vw, 72px);
  --wrap: 1320px;
  --top-h: 64px;
  --sm-h: 56px;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--navy) var(--ice); }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 1.125rem/1.55 var(--body); overflow-wrap: break-word; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--navy); color: var(--yellow); }
.navy ::selection, .top ::selection, .end ::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.navy :focus-visible, .top :focus-visible, .end :focus-visible { outline-color: var(--yellow); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 30; padding: .5rem 1rem; background: var(--yellow); color: var(--navy); font-weight: 600; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.btn { display: inline-block; padding: .72em 1.3em .78em; font: 900 1.625rem/1 var(--display); letter-spacing: .012em; text-decoration: none; border-radius: 3px; transition: background-color .15s ease-out, color .15s ease-out; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #fff; }
.btn-navy { background: var(--navy); color: var(--yellow); }
.btn-navy:hover { background: var(--blue-ink); color: #fff; }
.btn:active { background: var(--navy-deep); color: #fff; }

/* Ylävalikko. Puhelimella linkkirivi on ylimpänä ja vierii pois; nimi ja painike jäävät. */
.top { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; }
.top-in { display: flex; align-items: center; gap: .25rem 1.75rem; min-height: var(--top-h); max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.mark { font: 900 1.75rem/1 var(--display); text-decoration: none; letter-spacing: .01em; }
.mark:hover { color: var(--yellow); }
.mark img { display: block; height: 40px; width: auto; }
.mark:hover img { filter: brightness(1.12); }
.hero-logo { display: block; width: clamp(110px, 10.5vw, 190px); height: auto; margin-bottom: clamp(.5rem, 1.6vh, 1rem); }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 1.5rem; }
.top nav a { display: block; padding: .4rem 0; font-weight: 600; font-size: 1.0625rem; text-decoration: none; }
.top nav a:hover { color: var(--yellow); text-decoration: underline; text-decoration-thickness: 2px; }
.top .btn { font-size: 1.25rem; padding: .55em 1em .6em; white-space: nowrap; }

/* Pääkuva: valokuva koko leveydellä, teksti kuvan omalla taivaalla. */
.hero { position: relative; overflow: hidden; background: #8ec8ee; color: var(--navy); min-height: max(600px, calc(100svh - var(--top-h) - var(--sm-h))); display: flex; align-items: flex-start; }
.hero-img { position: absolute; top: 0; left: -15%; width: 115%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero-text { width: 100%; max-width: none; padding: clamp(1.25rem, 5vh, 4.5rem) var(--gut) 2rem 53%; }
.hero h1 { font: 900 clamp(3.25rem, 5.4vw, 6.25rem)/.94 var(--display); letter-spacing: -.005em; }
.lead { margin-top: 1.25rem; max-width: 27em; font-size: 1.3125rem; line-height: 1.35; font-weight: 600; }

.hero-text { position: relative; }
.hero-facts { margin-top: .9rem; max-width: 33em; font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
.hero h1 > span { display: block; }
.nb { white-space: nowrap; }
.lead b { display: block; font-weight: 600; }
.hero-do { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.25rem; }
.hero-do .btn { font-size: 1.875rem; }
.hero-do a:not(.btn) { font-weight: 600; }

/* Linkki voi osua puunlatvojen päälle matalilla näytöillä, joten sillä on oma vaalea pinta. */
.hero-do .hero-side { padding: .22em .55em; margin-left: -.55em; background: #eaf5fd; border-radius: 3px; }

/* Kausi: päivät julisteena. Kesän valo askelina, tasaisia värejä. */
.poster-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.5rem; padding: clamp(1.75rem, 3.5vw, 3rem) var(--gut) clamp(1rem, 2vw, 1.5rem); background: #fffbee; color: var(--navy); }
.poster-head p { font-size: 1.125rem; }
.poster { --s1: #fdf6cf; --s2: #fcf0ab; --s3: #fae985; --s4: #f9e25f; --s5: #f7d934; --s6: var(--yellow); --s7: #1f66b2; --s8: #18467f; --s9: var(--navy); --date: 15.5vw; color: var(--navy); font-variant-numeric: tabular-nums; }
.poster > .r1 { --bg: var(--s1); }
.poster > .r2 { --bg: var(--s2); }
.poster > .r3 { --bg: var(--s3); }
.poster > .r4 { --bg: var(--s4); }
.poster > .r5 { --bg: var(--s5); }
.poster > .r6 { --bg: var(--s6); }
.poster > .r7 { --bg: var(--s7); }
.poster > .r8 { --bg: var(--s8); }
.poster > .r9 { --bg: var(--s9); }
.poster > .r7, .poster > .r8, .poster > .r9 { --ink: #fff; }
.poster > li { background: var(--bg); color: var(--ink, var(--navy)); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.row { display: grid; align-items: center; column-gap: .75rem; padding: .35rem var(--gut); grid-template: "date num fmt" auto "date venue venue" auto / calc(var(--date) * 2.74) auto 1fr; }
.num { grid-area: num; font: 900 1.2rem/1 var(--display); align-self: end; }
.day { grid-area: date; display: block; font: 900 var(--date)/.98 var(--display); white-space: nowrap; }
.day .wd { font-weight: 500; }
.fmt { grid-area: fmt; font: 900 1.2rem/1 var(--display); align-self: end; }
.venue { grid-area: venue; font-size: .875rem; line-height: 1.2; align-self: start; margin-top: .2rem; }
.tauko { background: var(--s6); }
.tauko p { padding: .55rem var(--gut); font: 900 clamp(2rem, 10vw, 4.5rem)/1 var(--display); }
.tauko img { width: 100%; height: clamp(170px, 42vw, 340px); object-fit: cover; object-position: 50% 62%; }
.pfinal figure img { width: 100%; height: clamp(170px, 42vw, 340px); object-fit: cover; object-position: 30% 10%; }
.pfinal .row { grid-template: "num" auto "date" auto "fmt" auto "venue" auto / 1fr; padding-block: 1rem 1.6rem; }
.pfinal .day { font-size: 27vw; color: var(--yellow); line-height: .95; }
.pfinal .num { font-size: 1.5rem; color: var(--yellow); }
.pfinal .fmt { font-size: clamp(2rem, 9.5vw, 3.6rem); line-height: 1.02; margin-top: .3rem; color: #fff; }
.pfinal .venue { font-size: 1.25rem; color: #fff; }
@media (min-width: 640px) {
  .poster { --date: 10.5vw; }
  .row { column-gap: 1.25rem; grid-template-columns: calc(var(--date) * 2.74) 3rem 1fr; }
  .num, .fmt { font-size: 1.75rem; }
  .venue { font-size: 1.0625rem; }
  .pfinal .day { font-size: 24vw; }
}
@media (min-width: 1100px) {
  .poster { --row: clamp(84px, 7.6vw, 128px); --c: clamp(170px, 14.5vw, 240px); --date: min(calc(var(--row) * .98), 7.8vw); position: relative; display: grid; grid-template-columns: minmax(0, 44fr) var(--c) minmax(0, 42fr); grid-template-rows: repeat(6, var(--row)); overflow: hidden; }
  .poster > li { grid-column: 1; min-width: 0; }
  .poster > .aug1 { grid-column: 3; grid-row: 1; }
  .poster > .aug2 { grid-column: 3; grid-row: 2; }
  .poster > .pfinal { grid-column: 3; grid-row: 3 / -1; display: flex; flex-direction: column; min-height: 0; }
  .row { height: var(--row); padding-block: 0; grid-template: "num date fmt" 1fr "num date venue" 1fr / 2.6rem calc(var(--date) * 2.74) minmax(0, 1fr); column-gap: .9rem; }
  .num { align-self: center; }
  .fmt { font-size: clamp(1.4rem, 2vw, 1.75rem); }
  .venue { font-size: clamp(.875rem, 1.1vw, 1rem); line-height: 1.15; }
  .tauko { position: absolute; top: 0; bottom: 0; width: var(--c); left: calc((100% - var(--c)) * 44 / 86); display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .tauko p { writing-mode: vertical-rl; rotate: 180deg; padding: .75rem .35rem; font-size: calc(var(--row) * .62); line-height: 1; text-align: right; white-space: nowrap; }
  .tauko img { height: 100%; min-height: 0; object-position: 89% 50%; }
  .pfinal figure { flex: 1 1 0; min-height: 0; overflow: hidden; }
  .pfinal figure img { height: 100%; object-position: 30% 4%; }
  .pfinal .row { height: auto; padding-block: .5rem 1rem; grid-template: "num date" auto "fmt fmt" auto "venue venue" auto / 2.6rem minmax(0, 1fr); }
  .pfinal .day { font-size: min(calc(var(--row) * 1.28), 9.6vw); line-height: .92; }
  .pfinal .fmt { font-size: min(calc(var(--row) * .42), 3.3vw); margin-top: .15rem; }
  .pfinal .venue { font-size: 1.125rem; margin-top: .1rem; }
}

.price-block { padding-block: clamp(3rem, 6vw, 5rem); }
.price-block .price { margin-top: 0; }

/* Navy: pelaajan osuus. Kuva iso, teksti rauhallisempi kuin pääkuvassa. */
.navy { background: var(--navy); color: #fff; }
.team { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; }
.team img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; object-position: 50% 12%; }
.team-text { padding: clamp(2.5rem, 6vw, 5.5rem) var(--gut); max-width: 40rem; }
h2 { font: 900 clamp(2.625rem, 4.4vw, 4rem)/1 var(--display); text-wrap: balance; }
.team-text p { margin-top: 1.1rem; }
.team-text h2 + p { margin-top: 1.5rem; }
.soft { color: var(--on-navy-soft); }

/* Hinta on lause, ei kortti. */
.price { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.price h3 { font: 900 clamp(2.5rem, 4vw, 3.5rem)/1 var(--display); color: var(--yellow); text-wrap: balance; }
.price-sum { margin-top: 1rem; font-size: 1.3125rem; line-height: 1.4; }
.price-do { margin-top: 1.75rem; }
.facts p + p { margin-top: .85rem; }
.status { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .17); }

/* Taivas on siirtymä: viilenee navysta vaaleaan. */
.sky { background: var(--ice); }
.sky img { width: 100%; height: clamp(320px, 52vw, 720px); object-fit: cover; object-position: 50% 42%; }

/* Voittajat: sama huumori, pienempi ääni. */
.honours { background: var(--ice); padding-block: clamp(3.5rem, 7vw, 6rem); }
.honours-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); }
.honours h2 { font-size: clamp(2.5rem, 3.8vw, 3.5rem); }
.honours-sum { margin-top: .9rem; font-size: 1.3125rem; line-height: 1.4; }
table { border-collapse: collapse; width: 100%; margin-top: 1.75rem; font-variant-numeric: tabular-nums lining-nums; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
th, td { text-align: left; padding: .42rem 0; font-weight: 400; vertical-align: baseline; }
thead th { font-size: 1rem; font-weight: 600; color: var(--ink-soft); padding-bottom: .5rem; }
tbody tr { border-top: 1px solid rgba(19, 41, 75, .2); }
.wins { width: 4.5rem; text-align: right; padding-left: 1rem; font-weight: 600; }
tbody tr.most th { font-weight: 600; }
.honours-note { margin-top: 1rem; font-size: 1rem; color: var(--ink-soft); }
.honours-side h3 { font: 700 1.875rem/1.05 var(--display); margin-top: 2.25rem; }
.honours-side h3.first { margin-top: 0; }
.honours-side h3 + p { margin-top: .6rem; }
.honours-side p + p { margin-top: .7rem; }
.honours-side .logo { width: 200px; height: 200px; margin-bottom: 2.25rem; }

/* Esihenkilölle: toinen rekisteri. Ei näyttökirjaimia, ei väriä, ei vitsejä. */
.boss { background: var(--paper); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.boss-in { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.boss-lead { max-width: 44rem; }
.boss h2 { font: 600 1.875rem/1.2 var(--body); }
.boss-lead { margin-top: .6rem; }
.boss dl { margin-top: 2rem; display: grid; grid-template-columns: 10rem minmax(0, 44rem); gap: 1.1rem 1.5rem; }
.boss dt { font-weight: 600; }
.boss-do { margin-top: 2rem; }
.btn-quiet { display: inline-block; padding: .6em 1em; font: 600 1.0625rem/1.2 var(--body); color: var(--navy); background: transparent; border: 1px solid var(--navy); border-radius: 3px; text-decoration: none; cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out; }
.btn-quiet:hover { background: var(--navy); color: #fff; }
.copied { margin-left: .75rem; font-size: 1rem; color: var(--ink-soft); }
.print-only { display: none; }

/* Loppu */
.end { background: var(--navy); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.end-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.end-cta p { font: 700 clamp(1.875rem, 3vw, 2.5rem)/1.05 var(--display); text-wrap: balance; }
.end-fine { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .17); font-size: 1rem; color: var(--on-navy-soft); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 3rem; }
.end-fine p + p { margin-top: .5rem; }
.end-fine ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: .5rem; }
.end-fine a:hover { color: #fff; }

@media (max-width: 1099px) {
  :root { --top-h: 56px; }
  html { scroll-padding-top: 68px; }
  /* Linkkirivi ylimpänä: sticky jättää näkyviin vain nimen ja painikkeen. */
  .top { top: -38px; }
  .top:focus-within { top: 0; }
  .top-in { display: grid; grid-template-columns: 1fr auto; padding-block: 0 .5rem; row-gap: 0; }
  .top nav { grid-column: 1 / -1; grid-row: 1; margin: 0; height: 38px; }
  .top nav ul { gap: 1rem; flex-wrap: nowrap; }
  .top nav a { font-size: .9375rem; padding: .5rem 0; line-height: 1.4; white-space: nowrap; }
  .mark { font-size: 1.625rem; padding-top: .1rem; }
  .mark img { height: 34px; }
  .hero-text { position: static; }
  .hero-logo { position: absolute; top: .5rem; right: var(--gut); width: auto; height: 118px; margin: 0; z-index: 1; }
  .top .btn { font-size: 1.125rem; }

  .hero { flex-direction: column; align-items: stretch; background: var(--navy); color: #fff; min-height: max(480px, calc(100svh - 94px)); }
  .hero-img { position: static; flex: 1 1 130px; min-height: 130px; height: 130px; width: 100%; object-position: 52% 42%; }
  .hero-text { flex: none; padding: .9rem var(--gut) 1.25rem; }
  .hero h1 { font-size: clamp(2.35rem, 12.2vw, 5.5rem); line-height: .95; color: var(--yellow); }
  .lead { margin-top: .6rem; font-size: 1.0625rem; }
  .hero-facts { margin-top: .5rem; font-size: 1rem; }
  .hero-do { margin-top: .85rem; }
  .hero-do .btn { font-size: 1.625rem; background: var(--yellow); color: var(--navy); }
  .hero :focus-visible { outline-color: var(--yellow); }
  .hero-do .hero-side { padding: 0; margin-left: 0; background: none; }
  @media (max-height: 620px) { .hero-img { flex-basis: 64px; min-height: 64px; height: 64px; } .hero h1 { font-size: 2.1rem; } .hero-logo { height: 58px; top: .2rem; } }


  .team { grid-template-columns: 1fr; }
  .team img { min-height: 0; height: auto; aspect-ratio: 3 / 2; object-position: 50% 0; }
  .price, .honours-grid { grid-template-columns: 1fr; }
  .end-fine { grid-template-columns: 1fr; }
  .boss dl { grid-template-columns: 1fr; gap: .1rem; }
  .boss dd + dt { margin-top: 1rem; }
}
@media (max-width: 640px) {
  .honours-side .logo { margin-bottom: 1.5rem; }
  .copied { display: block; margin: .5rem 0 0; }
}

@media (max-width: 349px) {
  .top nav ul { gap: .7rem; }
  .top nav a { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tulostus: vain esihenkilöosio yhdelle sivulle. */
@media print {
  @page { size: A4; margin: 20mm; }
  html, body { background: #fff; color: #000; font-size: 11pt; }
  body.etusivu > *:not(main), body.etusivu main > *:not(#esihenkilolle) { display: none !important; }
  body:not(.etusivu) .top, body:not(.etusivu) .end, .skip { display: none !important; }
  .boss { padding: 0; background: #fff; }
  .boss-in { max-width: none; padding: 0; }
  .boss dl { grid-template-columns: 7rem minmax(0, 1fr); gap: 3mm 4mm; }
  .boss dd + dt { margin-top: 0; }
  .boss h2 { font-size: 18pt; color: #000; }
  .boss-lead, .boss dd, .boss dt { color: #000; }
  .boss-do { display: none; }
  .boss a { color: #000; }
  .print-only { display: block; margin-top: 1.5rem; font-size: 10pt; }
  dt, dd { break-inside: avoid; }
}

/* Työpaikka SM: oma rivi heti pääkuvan alla, ei kilpaile ilmoittautumispainikkeen kanssa. */
.sm { background: var(--navy-deep); color: #fff; }
.sm-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .15rem 1.5rem; min-height: var(--sm-h); padding-block: .55rem; }
.sm a { font-weight: 600; color: var(--yellow); white-space: nowrap; }
.sm a:hover { color: #fff; }
.sm :focus-visible { outline-color: var(--yellow); }
@media (max-width: 520px) {
  .top { top: -60px; }
  .top nav { height: 60px; }
  .top nav ul { flex-wrap: wrap; gap: 0 .9rem; }
  .top nav a { padding: .12rem 0 .1rem; font-size: .9375rem; line-height: 1.4; }
}

/* Alasivut: navy-otsikko, sen alla rauhallinen luettava tekstipalsta. */
.page-head { background: var(--navy); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { font: 900 clamp(2.75rem, 7vw, 5.5rem)/.98 var(--display); color: var(--yellow); text-wrap: balance; }
.page-head p { margin-top: 1rem; max-width: 42rem; font-size: 1.3125rem; line-height: 1.4; }
.page-head a:not(.btn) { color: var(--yellow); }
.page-head p.page-do { margin-top: 1.5rem; }
.page-head :focus-visible { outline-color: var(--yellow); }
.page-body { display: grid; grid-template-columns: 14rem minmax(0, 46rem); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); }
.page-body-single { display: block; }
.page-body-single .prose { max-width: 46rem; }
.page-toc ul { position: sticky; top: calc(var(--top-h) + 1.5rem); display: grid; gap: .45rem; }
.page-toc a { font-weight: 600; }
.prose > * + *, .prose section > * + * { margin-top: 1rem; }
.prose section + section { margin-top: clamp(2.75rem, 5vw, 4rem); }
.prose h2 { font-size: clamp(2.25rem, 4vw, 3rem); }
.prose > * + h2 { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.prose h3 { font: 700 1.625rem/1.1 var(--display); }
.prose section > * + h3 { margin-top: 2rem; }
.prose .btn { margin-top: .25rem; }
.prose table { margin-top: 1.25rem; }
.note { font-size: 1rem; color: var(--ink-soft); }
.plain { list-style: disc; padding-left: 1.25em; }
.plain li + li { margin-top: .65rem; }
.teams { list-style: decimal; padding-left: 1.6em; }
.teams li + li { margin-top: .3rem; }
.tag { font-size: 1rem; font-weight: 600; white-space: nowrap; }
.points th, .points td { padding-inline: .15rem; text-align: center; }
.points th:first-child { text-align: left; font-weight: 600; color: var(--navy); }
.points td { font-weight: 600; }
.schedule td { padding: .42rem .75rem .42rem 0; vertical-align: baseline; }
.schedule tbody tr { border-top: 1px solid rgba(19, 41, 75, .2); }
.schedule time { white-space: nowrap; }
.sm-table td, .sm-table th[scope="row"] { padding-right: .75rem; }
.sm-table .wins { padding-right: 0; white-space: nowrap; }
.sm-table th[scope="row"] { font-weight: 600; }
.facts-list { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .7rem 1.5rem; padding-block: 1.25rem; border-block: 1px solid rgba(19, 41, 75, .2); }
.facts-list dt { font-weight: 600; }
.draft { padding: .6rem .9rem; background: var(--yellow); font-weight: 600; border-radius: 3px; }
@media (max-width: 899px) {
  .page-body { grid-template-columns: minmax(0, 1fr); }
  .page-toc ul { position: static; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
}
@media (max-width: 640px) {
  .page-head p { font-size: 1.125rem; }
  .facts-list { grid-template-columns: 1fr; gap: .1rem; }
  .facts-list dd + dt { margin-top: .7rem; }
  .points th, .points td { font-size: .9375rem; padding-inline: .05rem; }
}
/* Puhelimella aikataulun rata omalle rivilleen, ettei se kapene kolmeksi riviksi. */
@media (max-width: 640px) {
  .schedule, .schedule tbody { display: block; }
  .schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .schedule tbody tr { display: grid; grid-template-columns: 1.6rem 1fr auto; column-gap: .5rem; padding-block: .45rem; }
  .schedule td { padding: 0; }
  .schedule td:nth-child(3) { text-align: right; font-weight: 600; }
  .schedule td:nth-child(4) { grid-column: 2 / -1; font-size: 1rem; color: var(--ink-soft); }
}

/* SM-sivu: kisapäivät julisteena kuten etusivun kausi, sen alla tiukat aikataulut. */
.sm-days { display: grid; grid-template-columns: 1fr 1fr; color: var(--navy); }
.sm-days li { padding: clamp(1rem, 2.5vw, 1.75rem) var(--gut); }
.sm-day1 { background: var(--yellow); }
.sm-day2 { background: #fae985; }
.sm-date { display: block; font: 900 clamp(3.5rem, 9vw, 7.5rem)/.95 var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sm-date .wd { font-weight: 500; }
.sm-days p { margin-top: .5rem; font-weight: 600; line-height: 1.35; }
.sm-photo img { width: 100%; height: clamp(220px, 34vw, 520px); object-fit: cover; object-position: 50% 42%; }
.sm-lead { font-size: 1.3125rem; line-height: 1.4; }
.class-list { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .45rem 1.5rem; }
.class-list dt { font-weight: 600; }
.sm-times td, .sm-times th, .sm-pay td, .sm-pay th { padding-right: .75rem; }
.sm-times tbody th { font-weight: 600; }
.sm-times td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sm-times td.rata { white-space: normal; }
.sm-pay tbody th { font-weight: 600; }
.sm-pay .wins { width: auto; white-space: nowrap; }
.sm-pay .pay { text-align: right; padding-right: 0; font-weight: 600; }
.sm-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.sm-links .btn { font-size: 1.25rem; margin: 0; }
@media (max-width: 640px) {
  .sm-days { grid-template-columns: 1fr; }
  .sm-date { font-size: clamp(3.25rem, 19vw, 5rem); }
  .sm-lead { font-size: 1.125rem; }
  .class-list { grid-template-columns: 1fr; gap: .05rem; }
  .class-list dd + dt { margin-top: .55rem; }
  .sm-times, .sm-pay, .sm-times tbody, .sm-pay tbody { display: block; }
  .sm-times thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sm-times tbody tr { display: flex; flex-wrap: wrap; gap: 0 .9rem; padding-block: .55rem; }
  .sm-times th, .sm-times td { padding: 0; }
  .sm-times tbody th, .sm-times td.rata { flex: 0 0 100%; }
  .sm-times td[data-l]::before { content: attr(data-l) " "; color: var(--ink-soft); font-size: .9375rem; }
  .sm-pay thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sm-pay tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: .75rem; padding-block: .5rem; }
  .sm-pay th, .sm-pay td { padding: 0; }
  .sm-pay td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 1rem; color: var(--ink-soft); }
  .sm-pay .wins { text-align: right; padding-left: 0; }
  .sm-pay .pay { grid-column: 1 / -1; text-align: left; }
}
