/* ==========================================================================
   Ι.Ο.Χ. web site - design
   Colours and fonts are set once in :root below; change them there.
   Category markers are drawn as International Code of Signals flags:
     P (blue, white centre)  -> announcements
     Q (yellow)              -> race notices
     B (red)                 -> results
     U (red/white quarters)  -> photos
   ========================================================================== */

@font-face {
  font-family: "Commissioner";
  src: url("../fonts/commissioner-greek-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: "Commissioner";
  src: url("../fonts/commissioner-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  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: "GFS Didot";
  src: url("../fonts/gfs-didot-greek-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: "GFS Didot";
  src: url("../fonts/gfs-didot-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  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;
}

:root {
  --sea: #0f2d4a;          /* deep navy: header, footer */
  --sea-deep: #0a2138;
  --strait: #1a6a88;       /* Euripus blue: links */
  --foam: #f4f7f9;         /* page background */
  --paper: #ffffff;
  --ink: #142230;          /* text */
  --muted: #586a7b;
  --line: #d8e0e7;
  --mist: #e7edf2;
  --flag-red: #c8102e;
  --flag-yellow: #f4c300;
  --flag-blue: #0b3d91;

  --serif: "GFS Didot", Didot, "Bodoni 72", Georgia, serif;
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--strait); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sea); }
:focus-visible { outline: 3px solid var(--strait); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.empty { color: var(--muted); padding: 2rem 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.preview-bar {
  background: var(--flag-yellow); color: var(--ink);
  text-align: center; padding: .55rem 1rem; font-weight: 600;
}

/* --- Header and menu ---------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 20; color: #fff;
  background: var(--sea);
  transition: background-color .35s ease, box-shadow .35s ease;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .masthead { background: rgba(15,45,74,.86); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
}
.masthead.is-scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(6,18,30,.18); }

/* Photo pages (home, Ιστορία ...): the menu floats over the photo, see-through until you scroll */
.js .photo-page .masthead { position: fixed; left: 0; right: 0; }
.js .photo-page .masthead:not(.is-scrolled):not(.nav-open) {
  background: linear-gradient(rgba(10,33,56,.55), rgba(10,33,56,0));
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
.masthead :focus-visible { outline-color: var(--flag-yellow); }
.masthead-inner {
  max-width: var(--wrap); margin: 0 auto; padding: .75rem var(--gutter);
  display: flex; align-items: center; gap: 2rem;
  transition: padding .35s ease;
}
.is-scrolled .masthead-inner { padding-top: .4rem; padding-bottom: .4rem; }
.brand { flex: none; color: #fff; text-decoration: none; }
.brands { flex: none; display: flex; align-items: center; gap: clamp(.6rem, 1.5vw, 1rem); }
.partner { display: block; flex: none; border-radius: 50%; }
.partner img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 2px 8px rgba(6,18,30,.25); transition: width .35s ease, height .35s ease; }
.is-scrolled .partner img { width: 36px; height: 36px; }
.partner:hover img { box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 2px 8px rgba(6,18,30,.25); }
.brand img { height: 52px; width: auto; transition: height .35s ease; }
.is-scrolled .brand img { height: 40px; }
.brand-text { font: 400 1.9rem/1 var(--serif); letter-spacing: .02em; }

.nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav-list > li { position: relative; }
.nav-list > li > a, .sub-toggle {
  display: block; padding: .6rem .8rem; border: 0; background: none;
  color: rgba(255,255,255,.9); font: 500 1rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer; border-radius: 4px;
}
.nav-list > li > a:hover, .sub-toggle:hover, .has-sub.open > .sub-toggle { color: #fff; background: rgba(255,255,255,.08); }
.nav-list > li > a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--flag-yellow); border-radius: 0; }
.sub-toggle::after {
  content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .5em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-.2em) rotate(45deg);
}
.nav-contact > a { border: 1px solid rgba(255,255,255,.45); margin-left: .5rem; }
.nav-contact > a:hover { border-color: #fff; }
.nav-list > li.nav-contact > a, .nav-list > li.nav-contact > a:hover { color: var(--flag-yellow); }   /* Επικοινωνία stands out */

.sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 16rem;
  list-style: none; margin: .35rem 0 0; padding: .4rem 0;
  background: var(--paper); border-radius: 6px;
  box-shadow: 0 12px 32px rgba(10,33,56,.18), 0 0 0 1px rgba(10,33,56,.06);
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: block; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .4rem; } /* hover bridge */
.sub a { display: block; padding: .55rem 1.1rem; color: var(--ink); text-decoration: none; white-space: nowrap; }   /* v83: long names on one line */
.sub a:hover, .sub a[aria-current="page"] { background: var(--mist); color: var(--sea); }
.sub :focus-visible { outline-color: var(--strait); outline-offset: -3px; }
.sub-line { border-top: 1px solid var(--line); margin: .35rem 1.1rem 0; padding-top: .35rem; }   /* v82: «line_before» in menu.json */
.sub-line > a { margin: 0 -1.1rem; }
/* v104 (SaS): pages that ask for the committee's code («"code": true» in menu.json) are marked yellow.
   The dropdown is white here, where yellow letters can't be read: a yellow bar at the left instead. */
.sub-code > a { box-shadow: inset 3px 0 0 var(--flag-yellow); }

.nav-toggle { display: none; }

@media (max-width: 60rem) {
  .masthead-inner { flex-wrap: wrap; gap: .5rem 1rem; }
  .brand img { height: 44px; }
  .is-scrolled .brand img { height: 36px; }
  .partner img { width: 40px; height: 40px; }
  .is-scrolled .partner img { width: 32px; height: 32px; }
  .masthead.nav-open { background: var(--sea); }
  .nav-open .nav { max-height: calc(100svh - 4.5rem); overflow-y: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem; margin-left: auto;
    background: none; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 4px;
    padding: .55rem .85rem; font: 500 1rem/1 var(--sans); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav { flex-basis: 100%; margin: 0; }
  .js .nav { display: none; }
  .js .masthead.nav-open .nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: .5rem 0 1rem; }
  .nav-list > li > a, .sub-toggle { width: 100%; text-align: left; padding: .8rem .25rem; font-size: 1.0625rem; }
  .nav-list > li + li { border-top: 1px solid rgba(255,255,255,.12); }
  .sub, .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; position: static; box-shadow: none; background: none; margin: 0; padding: 0 0 .5rem; }
  .has-sub.open > .sub { display: block; }
  .sub a { color: rgba(255,255,255,.85); padding: .55rem 1rem; white-space: normal; }
  .sub a:hover, .sub a[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
  .sub :focus-visible { outline-color: var(--flag-yellow); }
  .sub-line { border-top-color: rgba(255,255,255,.22); margin: .3rem 1rem 0; padding-top: .3rem; }
  .sub-line > a { margin: 0 -1rem; }
  .sub-code > a, .sub-code > a:hover, .sub-code > a[aria-current="page"] { color: var(--flag-yellow); box-shadow: none; }   /* v104: on the dark menu, yellow letters */
  .has-sub::after { display: none; }
  .nav-contact > a { margin: .75rem 0 0; text-align: center; }
}

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

.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 4px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 1.5px solid var(--sea);
}
.btn-solid { background: var(--sea); color: #fff; }
.btn-solid:hover { background: var(--strait); border-color: var(--strait); color: #fff; }
.btn-line { color: var(--sea); }
.btn-line:hover { background: var(--sea); color: #fff; }

/* --- Home stage: one photo stays put while the title and the news slide
   over it; it cross-fades to the next photo when the news arrives.
   site.js sets --p from 0 (top of page) to 1 (title scrolled away)        */

.stage { position: relative; background: var(--sea-deep); --p: 0; overflow: clip; }  /* clip: the photo must not spill past the news */
.stage-bg {
  position: sticky; top: 0; z-index: 0; overflow: hidden;
  height: 100vh; height: 100svh;
  margin-bottom: -100vh; margin-bottom: -100svh;
  background: radial-gradient(120% 90% at 85% 0%, #1f5f86 0%, var(--sea) 55%, var(--sea-deep) 100%);
}
.stage-scene { position: relative; z-index: 1; }
.stage-img { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.stage-img.is-active { opacity: 1; }
.stage-img img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.stage-img::after { content: ""; position: absolute; inset: 0; }
.stage-hero.has-photo::after {
  background:
    linear-gradient(to right, rgba(10,33,56,.7) 0%, rgba(10,33,56,.35) 45%, rgba(10,33,56,0) 70%),
    linear-gradient(to top, rgba(10,33,56,.85) 0%, rgba(10,33,56,.3) 50%, rgba(10,33,56,.1) 100%);
}
.stage-dim { position: absolute; inset: 0; z-index: 1; background: var(--sea-deep); opacity: calc(var(--p) * .45); }
.stage-news::after { background: linear-gradient(rgba(10,33,56,.45), rgba(10,33,56,.25) 40%, rgba(10,33,56,.35)); }

.hero {
  position: relative; color: #fff;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
}
.hero-text {
  position: relative; z-index: 1; width: 100%;
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(4.5rem, 12vh, 7rem);
}
.hero h1 {
  font: 400 clamp(2.9rem, 8vw, 6.75rem)/.98 var(--serif);
  max-width: 11ch; letter-spacing: -.015em;
}
.hero-lede { font-size: clamp(1.1rem, 1.7vw, 1.4rem); max-width: 32ch; margin: 1.2rem 0 0; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 0; }
.hero .btn { border-radius: 999px; padding: .85rem 1.6rem; }
.hero .btn-solid { background: #fff; color: var(--sea); border-color: #fff; }
.hero .btn-solid:hover { background: var(--flag-yellow); border-color: var(--flag-yellow); color: var(--ink); }
.hero .btn-line { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-line:hover { background: #fff; color: var(--sea); }
.hero :focus-visible { outline-color: var(--flag-yellow); }

.hero-cue {
  position: absolute; z-index: 1; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55);
  display: grid; place-items: center; color: #fff;
}
.hero-cue::before {
  content: ""; width: .6rem; height: .6rem; margin-top: -.3rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.hero-cue:hover { background: rgba(255,255,255,.12); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .motion .stage-hero img {
    transform: scale(calc(1.02 + var(--p) * .12)); will-change: transform;
    animation: stage-settle 1.8s cubic-bezier(.2,.7,.2,1) both;     /* the one load-in moment */
  }
  .motion .hero-text { opacity: calc(1 - var(--p) * 1.6); transform: translate3d(0, calc(var(--p) * -3rem), 0); }
  .motion .hero-cue { opacity: calc(1 - var(--p) * 3); }
  .motion .hero-text > * { animation: hero-rise 1s cubic-bezier(.2,.7,.2,1) both; }
  .motion .hero-text > :nth-child(2) { animation-delay: .15s; }
  .motion .hero-text > :nth-child(3) { animation-delay: .3s; }
}
@media (prefers-reduced-motion: reduce) { .stage-img, .story-img { transition: none; } }
@keyframes stage-settle { from { scale: 1.08; opacity: .4; } to { scale: 1; opacity: 1; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(1.75rem); } to { opacity: 1; transform: none; } }

/* --- Photo pages (Ιστορία, Καταστατικό ...) ------------------------------
   Same stage as the home page. When the text arrives, the photo swaps to a
   softened, darker copy of itself (.stage-read) so long text stays readable. */

.page-hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.02; max-width: 16ch; }
.stage-read img { filter: blur(10px) brightness(.55) saturate(.85); transform: scale(1.08); }
.stage-read::after { background: rgba(10,33,56,.42); }

.read {
  --read-shade: .3;
  padding: clamp(3rem, 10vh, 6rem) 0 clamp(5rem, 14vh, 9rem); color: #fff;
  background: linear-gradient(to bottom, rgba(10,33,56,0) 0, rgba(10,33,56,var(--read-shade)) 14rem, rgba(10,33,56,var(--read-shade)) 100%);
}
.read :focus-visible { outline-color: var(--flag-yellow); }
.read-body {
  max-width: 56rem; font-size: clamp(1.08rem, 1.25vw, 1.22rem); line-height: 1.78;
  text-shadow: 0 1px 3px rgba(6,18,30,.55);
}
.read-body > :not(.table-wrap) { max-width: 42rem; }   /* text stays narrow, tables may be wider */
.read-body p { margin: 0 0 1.3em; }
.read-body h2 { font: 400 clamp(1.7rem, 2.6vw, 2.2rem)/1.15 var(--serif); margin: 2.2em 0 .6em; }
.read-body ul { padding-left: 1.25rem; margin: 0 0 1.3em; }
.read-body a { color: #fff; overflow-wrap: anywhere; }
.read-body a:hover { color: var(--flag-yellow); }

.read .files, .read .gallery { max-width: 42rem; }
.read .files h2 { font: 400 clamp(1.7rem, 2.6vw, 2.2rem)/1.15 var(--serif); color: #fff; margin: 0 0 1rem; text-shadow: 0 1px 3px rgba(6,18,30,.55); }
.read .files { margin-top: 2.6em; }
/* v66 «Βιβλιοθήκη»: a section of links has the same heading as a section of files */
.read .lib { max-width: 42rem; margin-top: 2.6em; scroll-margin-top: 6rem; }
.read .lib-links h2 { font: 400 clamp(1.7rem, 2.6vw, 2.2rem)/1.15 var(--serif); color: #fff; margin: 0 0 .6rem; text-shadow: 0 1px 3px rgba(6,18,30,.55); }
.read .lib-links a { font-size: 1.0625rem; }
.read .lib-empty { margin-top: 2rem; }
.read .gallery h2 { color: rgba(255,255,255,.8); }
.read .files a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.read .files a:hover { border-color: #fff; }
.read .files a:hover .file-name { color: var(--flag-yellow); }
.read .file-type { background: #fff; color: var(--sea); }
.read .file-size { color: rgba(255,255,255,.75); }
.read .gallery-grid a { background: rgba(255,255,255,.08); }
/* board minutes on Διοίκηση: link to the page with all of them */
.records-more { margin: 1.1rem 0 0; }
.read .files .records-more a {          /* a plain link, not a file card */
  display: inline-flex; align-items: center; gap: .6rem; padding: .3rem 0;
  background: none; border: 0; border-radius: 0; color: #fff; font-weight: 600; text-decoration: none;
}
.records-more a::after { content: ""; width: .45rem; height: .45rem; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .25s ease; }
.read .files .records-more a:hover { color: var(--flag-yellow); }
.records-more a:hover::after { transform: translateX(.2rem) rotate(45deg); }
.read .files-empty { color: rgba(255,255,255,.75); margin: 0; }

/* --- «WANTED» on «Ιστορία» (v61; _wanted.html): under the text, on the page's own background,
   no picture or fade of its own. The heading is a text sub-heading (.read-body h2) times
   --wanted-size (set in the admin, 1 = the same size); the mug shots stand side by side at
   their own height (260 px), at most 4 per row (2 on phones). */
.wanted { max-width: 56rem; margin-top: 3.2em; text-shadow: 0 1px 3px rgba(6,18,30,.55); }
.wanted-title { font: 400 calc(clamp(1.7rem, 2.6vw, 2.2rem) * var(--wanted-size, 1))/1.15 var(--serif); max-width: 42rem; margin: 0 0 1.4rem; }
/* v62 (SaS): at most 4 pictures per row on wide screens, 2 on phones */
.wanted-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); justify-items: center; gap: 1rem; }
.wanted-wall img { height: 260px; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 8px 22px rgba(6,18,30,.45); }
@media (max-width: 40rem) {
  .wanted-wall { grid-template-columns: repeat(2, minmax(0, max-content)); gap: .7rem; }
  .wanted-wall img { height: min(260px, calc((100vw - 3rem) / 1.32)); }   /* two side by side, on small phones too */
}

/* --- The school application form («Δήλωση συμμετοχής σε σχολή»; v57: the race entry uses it too): built from
   the site's own pieces. Fields drawn like the file cards (light lines on the
   dark photo), the school choice like pills, the button like the home page's,
   «Όροι και προϋποθέσεις ›» like the panel links. The terms open in a dark
   window like the photo viewer (site.js); without JavaScript they follow the form. */

.apply { max-width: 50rem; margin-top: 2.6em; }
.apply h2, .apply-terms h2 { font: 400 clamp(1.7rem, 2.6vw, 2.2rem)/1.15 var(--serif); margin: 0 0 1.4rem; text-shadow: 0 1px 3px rgba(6,18,30,.55); }
.apply p { margin: 0 0 1em; }
.apply-done { max-width: 42rem; font-size: clamp(1.08rem, 1.25vw, 1.22rem); line-height: 1.7; text-shadow: 0 1px 3px rgba(6,18,30,.55); }
.apply-done .story-links { margin-top: 1.6rem; font-size: 1.0625rem; }
.apply fieldset { border: 0; margin: 0 0 1.4rem; padding: 0; min-width: 0; }
.apply legend, .apply-field label { display: block; padding: 0; margin-bottom: .4rem; font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.8); }
.apply-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.apply-choice {
  position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem;
  border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: #fff; cursor: pointer;
}
.apply-choice span { font-size: .8em; opacity: .75; }
.apply-choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.apply-choice:hover { border-color: #fff; }
.apply-choice:has(input:checked) { background: #fff; border-color: #fff; color: var(--sea); }
.apply-choice:has(input:focus-visible) { outline: 3px solid var(--flag-yellow); outline-offset: 2px; }
.apply-hint { color: rgba(255,255,255,.75); font-size: .92rem; }
.apply-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; }
.apply-field input {
  width: 100%; padding: .7rem .8rem; font: 400 1rem/1.3 var(--sans); color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3); border-radius: 6px;
}
.apply-field input::placeholder { color: rgba(255,255,255,.45); }
.apply-field input:hover { border-color: rgba(255,255,255,.6); }
.apply-field input:focus { border-color: #fff; outline: 3px solid var(--flag-yellow); outline-offset: 1px; }
.apply-field input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 40px #24435f inset; }   /* the browser's own fill colour */
/* v83 the crew change form: a list of races and a box for the reason, drawn like the boxes */
.apply-field select, .apply-field textarea {
  width: 100%; padding: .7rem .8rem; font: 400 1rem/1.3 var(--sans); color: #fff; color-scheme: dark;
  background-color: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3); border-radius: 6px;
}
.apply-field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.apply-field select option { color: var(--ink); background: #fff; }
.apply-field select:hover, .apply-field textarea:hover { border-color: rgba(255,255,255,.6); }
.apply-field select:focus, .apply-field textarea:focus { border-color: #fff; outline: 3px solid var(--flag-yellow); outline-offset: 1px; }
.apply .has-error select, .apply .has-error textarea { border-color: var(--flag-yellow); }
.apply-field label.apply-hint { font-size: .92rem; font-weight: 400; color: rgba(255,255,255,.75); }
.apply-field label.apply-sr, .apply [data-committee-code] .apply-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }   /* v85: read aloud, not shown */
.apply-optional { font-weight: 400; opacity: .75; }
.apply .has-error input { border-color: var(--flag-yellow); }
.apply .has-error legend { color: var(--flag-yellow); }
.apply-error { margin: .35rem 0 0 !important; font-size: .88rem; color: var(--flag-yellow); }
.apply-alert {
  margin: 0 0 1.6rem; padding: .9rem 1.1rem; border-left: 3px solid var(--flag-yellow);
  background: rgba(10,33,56,.55); border-radius: 0 6px 6px 0;
}
.apply-alert p { margin: 0; }
.apply-alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.apply-alert a { color: #fff; }
.apply .apply-terms-link { margin-top: 1.8rem; }
.apply-actions { margin: 1.8rem 0 0 !important; }
.apply .btn-solid {
  border-radius: 999px; padding: .85rem 1.6rem; background: #fff; border-color: #fff; color: var(--sea); cursor: pointer;
}
.apply .btn-solid:hover { background: var(--flag-yellow); border-color: var(--flag-yellow); color: var(--ink); }
.apply-note { color: rgba(255,255,255,.75); font-size: .92rem; margin-top: .9rem !important; }
/* v105 «Πιστοποιητικό σκάφους»: the choice under the button */
.cert-result > :first-child { margin-top: 1.4rem; }
.cert-result .apply-alert { margin-bottom: .8rem; }
.cert-result .cert-links { margin-bottom: .4rem; }
/* The race entry's boat suggestions (v78): under the box, over what follows */
.apply-field { position: relative; }
.apply-suggest {
  position: absolute; z-index: 20; left: 0; right: 0; margin: .25rem 0 0; padding: .25rem 0; list-style: none;
  max-height: 19rem; overflow-y: auto; background: var(--sea-deep); border: 1px solid rgba(255,255,255,.3); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.apply-suggest[hidden] { display: none; }
.apply-suggest li { padding: .45rem .8rem; cursor: pointer; }
.apply-suggest li:hover, .apply-suggest li[aria-selected="true"] { background: rgba(255,255,255,.14); }
.apply-suggest strong { display: block; font-weight: 600; color: #fff; }
.apply-suggest span { display: block; font-size: .82rem; color: rgba(255,255,255,.75); }
.apply-sign-note { color: var(--flag-yellow); }
.apply-sign-note a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.apply-sign-note a:hover { color: #fff; }   /* race entry: where and when to sign */
.apply-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 40rem) { .apply-grid { grid-template-columns: minmax(0, 1fr); } }

/* The race entry form («Δήλωση συμμετοχής σε αγώνα», v57; _form_race.html): the same pieces in
   sections; each section's name like the month names of the news (serif, a line under it).
   The crew: one row per member (number, name, registry number); site.js shows the filled
   rows and one more, «Προσθήκη μέλους ›» the next one. */
.apply .apply-part { margin: 2.4rem 0 0; }
.apply .apply-part > legend { display: block; width: 100%; margin: 0 0 1rem; padding: 0 0 .6rem; font: 400 clamp(1.4rem, 2vw, 1.7rem)/1.1 var(--serif);
                               color: #fff; border-bottom: 1px solid rgba(255,255,255,.45); text-shadow: 0 1px 3px rgba(6,18,30,.55); }
.apply .apply-part > legend .apply-optional { font: 400 .9rem/1 var(--sans); }
.apply-part .apply-hint { margin-top: -.2rem; }
.apply-wide { grid-column: 1 / -1; }
/* v86: the OSR check sheet. One row per item: its text, the three choices beside it (under it on
   phones), and the comment box, which shows only with V* (without JavaScript it always shows). */
.apply-checks { list-style: none; margin: 0; padding: 0; }
.apply-check { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.2); scroll-margin-top: 6rem; }
.apply-check p { margin: 0; }
.apply-check-osr { grid-column: 1; font-size: .86rem; color: rgba(255,255,255,.75); }
.apply-check .apply-choices { grid-column: 2; grid-row: 1 / span 2; align-self: start; flex-wrap: nowrap; }
.apply-check .apply-choice { min-width: 3.1rem; justify-content: center; text-align: center; }
.apply-mark { height: 1em; width: auto; vertical-align: -.1em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.apply-mark-star { stroke-width: 1.7; }
.apply-check .apply-choice .apply-mark { display: block; height: 1.05rem; margin: .22rem auto; }
.apply-check-note { grid-column: 1 / -1; margin-top: .5rem; }
.js .apply-check:not(:has(input[value="V*"]:checked)) .apply-check-note { display: none; }
.apply-check.has-error .apply-choice { border-color: var(--flag-yellow); }
@media (max-width: 40rem) {
  .apply-check { grid-template-columns: minmax(0, 1fr); }
  .apply-check .apply-choices { grid-column: 1; grid-row: auto; margin-top: .3rem; }
}
.apply-crew-head, .apply-crew-row { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) 8.5rem; column-gap: .8rem; align-items: center; }
.apply-crew-head { margin: 0 0 .4rem !important; font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.8); }
.apply-crew-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.apply-crew-row[hidden] { display: none; }
.apply-crew-n { font: 400 1.25rem/1 var(--serif); text-align: right; color: rgba(255,255,255,.75); font-variant-numeric: lining-nums; }
.apply-crew-row .apply-error { grid-column: 2 / -1; grid-row: 2; }
.apply-crew-row input {
  width: 100%; padding: .65rem .8rem; font: 400 1rem/1.3 var(--sans); color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3); border-radius: 6px;
}
.apply-crew-row input:hover { border-color: rgba(255,255,255,.6); }
.apply-crew-row input:focus { border-color: #fff; outline: 3px solid var(--flag-yellow); outline-offset: 1px; }
.apply .apply-crew-row.has-error input + input { border-color: rgba(255,255,255,.3); }   /* a crew error marks the name only */
.apply .apply-more { margin-top: .9rem; }
.apply .apply-more[hidden] { display: none; }        /* .story-links is a grid: it would beat the hidden attribute */
.apply-agree { margin-top: 1rem; }
.apply-agree label { display: inline-flex; align-items: flex-start; gap: .7rem; cursor: pointer; line-height: 1.5; }
.apply-agree input { flex: none; width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; accent-color: var(--flag-yellow); cursor: pointer; }
.apply-agree.has-error label { color: var(--flag-yellow); }
.apply-grid .apply-agree { margin-top: 0; }                    /* v92: the protest's tick boxes, in the grid's rhythm */
.apply-field[hidden] { display: none; }                        /* v92: a box shown only with its tick box */
.apply-part > .apply-grid + .apply-grid { margin-top: 1.1rem; }  /* v94: rows of one part (the protest's boats) */
.apply-grid[hidden] { display: none; }
.apply .apply-sign { margin-top: 1.4rem; }                     /* v58: «Ο/Η δηλ.» */
.apply .apply-sign-hint { margin-top: .5rem; }
.apply-field input[readonly] { background: transparent; border-style: dashed; cursor: default; }   /* filled in by the site */
.apply-field input[readonly]:hover { border-color: rgba(255,255,255,.3); }
@media (max-width: 40rem) {
  .apply-crew-head, .apply-crew-row { grid-template-columns: 1.3rem minmax(0, 1fr) 6.2rem; column-gap: .55rem; }
}

/* v99: «Επιθεώρηση ασφάλειας» with JavaScript: the form shows only after the committee's code (site.js) */
.js form[data-committee-form]:not(.is-open) { display: none; }
.apply[data-committee-gate][hidden] { display: none; }
.apply[data-committee-gate] .apply-field .btn { margin-top: 0; }

/* v97 «Χρόνοι τερματισμού» (_form_finish.html, finish.js): the forms' pieces; the list in the
   results' dark table, scrolling inside its frame (no sticky cells: iPhone, v64), so the boxes and
   the big button stay where they are however many boats finish; the big button = the forms' pill, larger. */
.apply-finish .ft-list { max-height: min(22rem, 45vh); overflow-y: auto; }
.js .apply-finish .ft-list { height: min(16rem, 34vh); }      /* a fixed height: the boxes and the button never move as boats are added */
.apply-finish .apply-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.apply-finish .apply-note a { color: #fff; }
.ft-list .std-table td, .ft-list .std-table th { text-align: left; }
.ft-list .std-table .rr-pos { text-align: right; width: 2rem; }
.ft-list .ft-when-cell { font-variant-numeric: tabular-nums; }
.ft-empty { margin: 0 !important; padding: .9rem 1rem; color: rgba(255,255,255,.75); }
.ft-empty[hidden] { display: none; }
.ft-row { padding: 0; border: 0; background: none; font: 600 inherit/inherit var(--sans); font-size: inherit; color: #fff; text-align: left; cursor: pointer;
          text-decoration: underline dotted rgba(255,255,255,.45); text-underline-offset: .2em; }
.ft-row:hover, .ft-row:focus-visible { color: var(--flag-yellow); }
.ft-row.ft-noname { color: var(--flag-yellow); font-style: italic; }
.ft-del { padding: .15rem .45rem; border: 0; background: none; font: 400 1rem/1 var(--sans); color: rgba(255,255,255,.55); cursor: pointer; }
.ft-del:hover, .ft-del:focus-visible { color: var(--flag-yellow); }
.ft-list tr.is-pending > * { color: rgba(255,255,255,.7); }
.ft-wait { font-size: .78em; font-style: italic; color: var(--flag-yellow); }
.ft-list tr.is-editing > * { background-color: rgb(24, 52, 80); }
.apply-finish .ft-tip { margin: .6rem 0 0; font-size: .86rem; }
.apply-finish .ft-when { margin-top: 1.1rem; }
.apply-finish .ft-clock { margin: .5rem 0 0; font-size: .86rem; }
.apply-finish .ft-clock[hidden] { display: none; }
/* v101: several boat cards: a line between them, a small title on each, the links under the button */
.apply-finish .ft-cards { margin-top: 1.4rem; }
.apply-finish .ft-card + .ft-card { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.3); }
.apply-finish .ft-card-head { margin: 0 0 .7rem !important; font: 600 .86rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--flag-yellow); }
.apply-finish .ft-card-head[hidden], .apply-finish .ft-card-links button[hidden] { display: none; }
.apply-finish .ft-card-when { margin-top: 1.1rem; }
.apply-finish .ft-card .apply-actions { margin-top: 1.1rem !important; }
.apply-finish .ft-card-links { display: flex; justify-content: center; gap: 1.5rem; margin: .7rem 0 0 !important; }
.apply-finish .ft-card-links:not(:has(button:not([hidden]))) { display: none; }
.apply-finish [data-ft-add] { margin-top: 1.2rem; }
.apply-finish [data-ft-add][hidden] { display: none; }
.apply-finish .ft-big { display: block; width: 100%; padding: 1.25rem 1.6rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: .02em; }
.apply-finish .apply-actions { margin-top: 1.3rem !important; }
.ft-linkbtn, .apply-linkbtn { padding: 0; border: 0; background: none; font: inherit; color: #fff; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }
.ft-linkbtn:hover, .ft-linkbtn:focus-visible, .apply-linkbtn:hover, .apply-linkbtn:focus-visible { color: var(--flag-yellow); }
.apply-finish .ft-msg { min-height: 1.4em; color: #fff; }
.apply-finish .ft-msg.is-bad, .apply-finish [data-ft-state].is-bad { color: var(--flag-yellow); }
.apply-finish .ft-msg a { color: var(--flag-yellow); margin-left: .3em; }
.apply-finish .btn-solid:disabled { opacity: .55; cursor: wait; }
.apply-finish [data-ft-main][hidden], .apply-finish [data-ft-code][hidden] { display: none; }
/* v107 «Πλήρωμα σκάφους» (_form_crews.html): the finish-times pieces; the crew table grows with the crew */
.apply-crews [data-cl-main][hidden], .apply-crews [data-cl-code][hidden], .apply-crews [data-cl-crew][hidden], .apply-crews [data-cl-changes][hidden] { display: none; }
.js .apply-crews .cl-list { height: auto; max-height: none; }
.apply-crews .cl-list .cl-role { width: 1%; white-space: nowrap; color: rgba(255,255,255,.75); font-size: .86em; }
.apply-crews .cl-list .cl-no { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.apply-crews .cl-list .cl-none { color: rgba(255,255,255,.5); }
.apply-crews .cl-list tr.cl-captain > * { color: var(--flag-yellow); font-weight: 600; }
.apply-crews .cl-meta { margin: .7rem 0 0; }
.apply-crews [data-cl-state].is-bad { color: var(--flag-yellow); }
.apply-crews .cl-changes { margin-top: 1rem; }
.apply-crews .cl-changes-head { margin: 0 0 .4rem; color: var(--flag-yellow); }
.apply-crews .cl-change-list { margin: 0; padding-left: 1.2rem; }
.apply-crews .cl-change-list a { color: #fff; }
.apply-crews select:disabled { opacity: .7; }
.apply-finish .ft-code .apply-field .btn { margin-top: 0; }
@media (max-width: 40rem) {     /* phones: boat and sail number side by side, date and time too, so the button stays near */
  .apply-finish [data-ft-entry] .apply-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .8rem; }
  .apply-finish [data-ft-entry] .apply-grid > .apply-field:nth-child(3) { grid-column: 1 / -1; }
  .apply-finish .ft-list .std-table th, .apply-finish .ft-list .std-table td { padding-left: .4rem; padding-right: .4rem; }
}

.apply-terms { max-width: 42rem; margin-top: 3.5rem; text-shadow: 0 1px 3px rgba(6,18,30,.55); }
.apply-terms ol { margin: 0; padding-left: 1.5rem; line-height: 1.65; }
.apply-terms li { margin-bottom: .65em; }
.terms-box {
  width: min(46rem, calc(100vw - 2rem)); max-height: calc(100svh - 3rem); margin: auto; padding: 0;
  border: 1px solid rgba(255,255,255,.15); border-radius: 8px; background: var(--sea); color: #fff;
  box-shadow: 0 24px 60px rgba(6,18,30,.5);
}
.terms-box::backdrop { background: rgba(6,18,30,.85); }
.terms-box .apply-terms { margin: 0; padding: 2.2rem clamp(1.2rem, 4vw, 2.4rem) 2rem; max-width: none; text-shadow: none; }
.terms-box :focus-visible { outline-color: var(--flag-yellow); }
.terms-close {
  position: sticky; top: .75rem; float: right; margin: .75rem .75rem 0 0; z-index: 1;
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.terms-close:hover { background: rgba(255,255,255,.22); }

/* --- Race calendar («Ημερολόγιο»; _calendar.html, races.py, site.js) ------
   Built from the site's pieces: Didot numerals and month names, thin white
   lines like the tables, the club's colours as bars. The one new piece is the
   year dial: a knob with a ring of years, a yellow pointer and the year in the
   middle (its arrows are the round buttons of the home page's scroll cue).
   Colours: --k is the colour of a kind, --k-soft the same, see-through, for
   the coloured periods of the club's sheet that are not events themselves. */

.cal { max-width: 62rem; margin-top: 2.6em; text-shadow: 0 1px 3px rgba(6,18,30,.55); }
.read-body:empty + .cal { margin-top: 0; }
.k-club     { --k: var(--flag-yellow); --k-soft: rgba(244,195,0,.3); }
.k-national { --k: #3f95e6; --k-soft: rgba(63,149,230,.32); }        /* darker blue: the race days */
.k-break    { --k: #9fcdf3; --k-soft: #9fcdf3; }   /* August, under its national races (no label) */                                          /* light blue: the club's holiday month */
.k-launch   { --k: #ff6075; --k-soft: rgba(255,96,117,.3); }
.k-holiday  { --k: #bcc7d2; --k-soft: rgba(188,199,210,.26); }

.cal-title { font: 400 clamp(2.2rem, 4vw, 3.2rem)/1.05 var(--serif); letter-spacing: -.01em; margin: 0 0 1rem; }
.cal-year-title { font: 400 clamp(1.9rem, 3vw, 2.4rem)/1 var(--serif); margin: 2.4rem 0 .6rem; }
.cal-years { margin: 0 0 1rem; }
.cal-years .story-links { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.cal-stats { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; margin: 0 0 .9rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: rgba(255,255,255,.85); }
.cal-stats b { font: 400 1.6em/1 var(--serif); color: #fff; margin-right: .2rem; }
.cal-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem .5rem; }
.cal-legend li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .55rem;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .86rem; color: rgba(255,255,255,.88);
}
.cal-legend i { width: .8rem; height: .8rem; border-radius: 3px; background: var(--k); box-shadow: 0 0 0 1px rgba(6,18,30,.25); }
.cal-empty { color: rgba(255,255,255,.75); }

/* the season at a glance: months x 31 days */
.cal-season { margin: 2.2rem 0 0; }
.cal-row { position: relative; display: grid; grid-template-columns: 3.4rem repeat(31, minmax(0, 1fr)); column-gap: 3px; height: 1.55rem; }
.cal-row + .cal-row { margin-top: 6px; }
.cal-row > * { grid-row: 1; }
.cal-days { height: 1.2rem; margin-bottom: 2px; }
.cal-days span { align-self: end; text-align: center; font-size: .66rem; line-height: 1; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.cal-m { grid-column: 1; align-self: center; font: 600 .72rem/1 var(--sans); letter-spacing: .12em; color: rgba(255,255,255,.75); }
.cal-c { border-radius: 3px; background: rgba(255,255,255,.07); }
.cal-c.we { background: rgba(255,255,255,.16); }                 /* weekends: the rhythm of the weeks */
.cal-c.no { background: none; }                                  /* 31 April does not exist */
.cal-c.is-today { position: relative; z-index: 3; background: none; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px rgba(6,18,30,.5); }   /* above the bars */
.cal-bar { position: relative; z-index: 1; border-radius: 3px; background: var(--k-soft); }
.cal-bar.cal-break { z-index: 0; background: var(--k-soft); }
.cal-bar.is-event { z-index: 2; background: var(--k); box-shadow: 0 2px 10px rgba(6,18,30,.3); transition: filter .2s ease; }
a.cal-bar:hover { filter: brightness(1.18) saturate(1.1); }

/* the events, month by month: two columns on wide screens */
.cal-months { margin-top: 2.8rem; display: grid; gap: 2.4rem 3.5rem; }
@media (min-width: 60.01rem) { .cal-months { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.cal-month-title { font: 400 clamp(1.6rem, 2.4vw, 2rem)/1.1 var(--serif); margin: 0 0 .7rem; }
.cal-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.45); }
.cal-ev {
  display: grid; grid-template-columns: 5.6rem 4px minmax(0, 1fr); column-gap: 1rem; align-items: center;
  padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.18); scroll-margin-top: 6rem; transition: opacity .4s ease;
}
.cal-ev::before { content: ""; grid-column: 2; grid-row: 1; align-self: stretch; border-radius: 2px; background: var(--k); }
.cal-date { grid-column: 1; grid-row: 1; margin: 0; display: grid; gap: .3rem; }
.cal-dd { font: 400 1.75rem/1 var(--serif); font-variant-numeric: lining-nums; white-space: nowrap; }
.cal-wd { font-size: .78rem; letter-spacing: .05em; color: rgba(255,255,255,.7); white-space: nowrap; }
.cal-body { grid-column: 3; grid-row: 1; min-width: 0; }
.cal-name { margin: 0; font: 600 1rem/1.35 var(--sans); letter-spacing: .05em; overflow-wrap: anywhere; }
.cal-meta { margin: .3rem 0 0; display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .88rem; color: rgba(255,255,255,.75); }
.cal-kind { color: var(--k); font-weight: 600; }
.cal-ev.k-holiday { padding: .6rem 0; }
.cal-ev.k-holiday .cal-dd { font-size: 1.35rem; }
.cal-ev.k-holiday .cal-name { font-weight: 500; color: rgba(255,255,255,.82); }
.cal-ev:target { background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,0)); }
.cal-ev.is-past { opacity: .5; }                                 /* this season's past events (site.js) */
.cal-tag { display: inline-block; margin-left: .5rem; padding: .12rem .55rem; border-radius: 999px; vertical-align: .12em;
           font: 600 .68rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-shadow: none; }
.cal-maybe { border: 1px solid rgba(255,255,255,.5); color: rgba(255,255,255,.85); }
.cal-next { background: var(--flag-yellow); color: var(--ink); }
@media (max-width: 40rem) {
  .cal-row { grid-template-columns: 2.4rem repeat(31, minmax(0, 1fr)); column-gap: 1px; height: 1.25rem; }
  .cal-row + .cal-row { margin-top: 4px; }
  .cal-m { font-size: .62rem; letter-spacing: .06em; }
  .cal-days span { font-size: .58rem; }
  .cal-days span:not(.major) { visibility: hidden; }
  .cal-c, .cal-bar { border-radius: 2px; }
  .cal-ev { grid-template-columns: 4.6rem 3px minmax(0, 1fr); column-gap: .85rem; }
  .cal-dd { font-size: 1.5rem; }
}

/* the year dial (shown by site.js; without JavaScript the years are listed one under the other) */
.cal-dial { --size: 11rem; --step: 40deg; display: grid; justify-items: center; gap: .9rem; }
.cal-dial[hidden] { display: none; }                 /* until site.js starts it */
.cal-knob {
  position: relative; width: var(--size); height: var(--size); border-radius: 50%; cursor: grab; touch-action: pan-y;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.16), rgba(255,255,255,.05) 55%, rgba(10,33,56,.4) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), inset 0 -12px 26px rgba(6,18,30,.4), 0 14px 34px rgba(6,18,30,.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); user-select: none; -webkit-user-select: none;
}
.cal-knob.is-dragging { cursor: grabbing; }
.cal-knob:focus-visible { outline: 3px solid var(--flag-yellow); outline-offset: 5px; }
.cal-ring { position: absolute; inset: 0; border-radius: 50%; transform: rotate(var(--turn, 0deg)); transition: transform .9s cubic-bezier(.25,1.35,.4,1); }
.cal-knob.is-dragging .cal-ring { transition: none; }
.cal-ring::before {                              /* 60 fine ticks round the edge, like a bezel */
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,255,255,.42) 0deg .7deg, transparent .7deg 6deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 7px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 7px));
}
.cal-mark {
  position: absolute; left: 50%; top: 50%; margin: 0; padding: .15rem .25rem; border: 0; background: none; cursor: pointer;
  font: 600 .74rem/1 var(--sans); letter-spacing: .06em; color: #fff; opacity: 0; text-shadow: none;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * var(--step))) translateY(calc(var(--size) * -.34));
  transition: opacity .5s ease, color .3s ease;
}
.cal-mark.is-on { color: var(--flag-yellow); }
.cal-pointer {                                   /* the fixed yellow pointer at the top */
  position: absolute; left: 50%; top: -1px; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--flag-yellow);
  filter: drop-shadow(0 1px 2px rgba(6,18,30,.5));
}
.cal-face { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; padding-top: .9rem; }
.cal-face-label { font: 600 .58rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.cal-face-year { font: 400 calc(var(--size) * .25)/1.05 var(--serif); color: #fff; margin-top: .3rem; font-variant-numeric: lining-nums; }
.cal-steps { display: flex; gap: .7rem; margin: 0; }
.cal-step {                                      /* the round button of the home page's scroll cue */
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); background: none;
  display: grid; place-items: center; color: #fff; cursor: pointer; padding: 0;
}
.cal-step::before {
  content: ""; width: .55rem; height: .55rem; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateX(.12rem) rotate(45deg);
}
.cal-newer::before { transform: translateX(-.12rem) rotate(-135deg); }
.cal-step:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.cal-step:disabled { opacity: .3; cursor: default; }
.cal :focus-visible { outline-color: var(--flag-yellow); }

/* with JavaScript: the dial on the left, title, numbers and colours beside it;
   one year at a time (the others wait, hidden) */
.js .cal { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem);
           grid-template-areas: "dial title" "dial stats" "dial legend" "season season" "months months"; }
.js .cal-dial { grid-area: dial; align-self: center; }
.js .cal-title { grid-area: title; align-self: end; }
.js .cal-stats { grid-area: stats; }
.js .cal-legend { grid-area: legend; align-self: start; }
.js .cal-season { grid-area: season; }
.js .cal-months { grid-area: months; }
.js .cal-empty { grid-column: 1 / -1; }
.js .cal-years { display: none; }
.js .cal-year { display: none; }
.js .cal-year.is-current { display: contents; }
.js .cal-year-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
@media (max-width: 40rem) {
  .cal-dial { --size: 8.6rem; gap: .6rem; }
  .cal-mark { font-size: .64rem; letter-spacing: .03em; }
  .js .cal { grid-template-areas: "dial title" "dial stats" "legend legend" "season season" "months months"; column-gap: 1.2rem; }
  .js .cal-title { font-size: 1.9rem; }
  .js .cal-legend { margin-top: 1.4rem; }
  .cal-step { width: 2.2rem; height: 2.2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  /* the bars sweep in from the left when the calendar comes into view, and again for each year */
  .reveal-ready .cal:not(.in) .cal-bar { transform: scaleX(0); }
  .reveal-ready .cal .cal-bar { transform-origin: left center; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .2s ease;
                                transition-delay: calc(var(--x, 0) * 12ms + var(--y, 0) * 60ms + .2s), 0s; }
  .cal-year.is-entering .cal-bar { animation: cal-grow .7s cubic-bezier(.2,.7,.2,1) both; transform-origin: left center;
                                   animation-delay: calc(var(--x, 0) * 10ms + var(--y, 0) * 45ms); }
  .cal-year.is-entering .cal-stats, .cal-year.is-entering .cal-legend, .cal-year.is-entering .cal-months { animation: cal-rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .cal-year.is-entering .cal-legend { animation-delay: .06s; }
  .cal-year.is-entering .cal-months { animation-delay: .12s; }
  .cal-face-year.is-turning { animation: cal-rise .5s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes cal-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes cal-rise { from { opacity: 0; transform: translateY(.8rem); } to { opacity: 1; transform: none; } }

/* --- «Πρωτάθλημα Ι.Ο.Χ.» (v48, one dial since v49; _championship.html, standings.py)
   Built like the race calendar: the year dial on the left with «Προκηρύξεις» and
   that year's PDF cards beside it; under them «Βαθμολογία πρωταθλήματος»: the
   numbers, the codes and the club's table on a dark panel (on narrow screens it
   scrolls sideways while the rank and the boat stay in place). */

.yr { max-width: 66rem; margin-top: 2.6em; text-shadow: 0 1px 3px rgba(6,18,30,.55); }   /* 14 races fit on a laptop */
.read-body:empty + .yr { margin-top: 0; }
.yr-title { font: 400 clamp(2.2rem, 4vw, 3.2rem)/1.05 var(--serif); letter-spacing: -.01em; margin: 0 0 1rem; }
.yr-year-title { font: 400 clamp(1.9rem, 3vw, 2.4rem)/1 var(--serif); margin: 2.4rem 0 .6rem; }
.yr-years { margin: 0 0 1rem; }
.yr-years .story-links { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.yr-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.6rem; margin: 0 0 .9rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: rgba(255,255,255,.85); }
.yr-stats b { font: 400 1.6em/1 var(--serif); color: #fff; margin-right: .2rem; }
.yr-empty { color: rgba(255,255,255,.75); }
.yr .files { margin-top: 0; }
.file-text { display: grid; gap: .1rem; min-width: 0; }
.file-date { font-size: .88rem; color: var(--muted); }
.read .file-date { color: rgba(255,255,255,.72); }
.champ-std { margin-top: clamp(3rem, 6vw, 4.5rem); }
.champ-std .std-codes { margin-bottom: 2rem; }

.js .champ { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(1.5rem, 4vw, 3.5rem);
             grid-template-areas: "dial title" "dial nor" "std std"; }
.js .champ .cal-dial { grid-area: dial; align-self: start; }
.js .champ > .yr-title { grid-area: title; align-self: end; }
.js .champ-nor { grid-area: nor; align-self: start; }
.js .champ-std { grid-area: std; }
.js .yr-empty { grid-column: 1 / -1; }
.js .yr-years { display: none; }
.js .yr-panel { display: none; }
.js .yr-panel.is-current { display: contents; }
.js .yr-year-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }

.std-prov { border: 1px solid var(--flag-yellow); color: var(--flag-yellow); margin-left: 0; align-self: center; }
.std-codes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem .5rem; }
.std-codes li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .8rem .25rem .3rem;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .86rem; color: rgba(255,255,255,.88);
}
.std-note { margin: -.1rem 0 1rem; max-width: 46rem; font-size: .95rem; color: rgba(255,255,255,.75); }   /* v53: calculated standings */
.std-codes abbr { text-decoration: none; font: 700 .68rem/1 var(--sans); letter-spacing: .06em; padding: .3rem .45rem; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; }

/* the table: a dark panel; numbers line up; the yellow of the club for race wins */
.std-wrap {
  --panel: rgb(12, 36, 60); --rank-w: 2.9rem;
  overflow-x: auto; border-radius: 10px; background: rgba(12, 36, 60, .9); text-shadow: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 14px 34px rgba(6,18,30,.35);
  overscroll-behavior-x: contain;
}
/* v68, v69: on a wide screen the championship table grows as much as its races need, up to
   1425 px wide (and never past the page gutters); past that it scrolls as before. min-content = the width with the headings
   wrapped as far as they go, so a table that fits today stays exactly as it is. It stays lined up
   with the titles while it can; once it grows past that it is centred in the page: the shift is
   the smaller of "none" and "half its own width back from the page centre" (37rem = half of --wrap).
   Below 71rem the column is already the full page width, so nothing changes (phones too).
   Only here: .rc-res-table on «Ανακοινώσεις αγώνων» uses the same .std-wrap. */
@media (min-width: 71rem) {
  .champ-std .std-wrap {
    width: min-content; min-width: 100%;
    max-width: min(1425px, 100vw - 2 * var(--gutter));
    transform: translateX(min(0px, min(37rem, 50vw) - var(--gutter) - 50%));
  }
}
/* v72: category filter under «Βαθμολογία πρωταθλήματος» (site.js) */
.std-filter { position: relative; z-index: 20; width: min(17rem, 100%); margin: 0 0 1.1rem; }
.std-filter[hidden], .std-filter-list[hidden], .std-filter-none[hidden] { display: none; }
.std-filter-btn { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 2.9rem; padding: .55rem 1rem .55rem 1.2rem;
  font: 600 1rem/1.2 var(--sans); color: #fff; cursor: pointer; background: rgba(12,36,60,.72); border: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 10px 26px rgba(6,18,30,.28); transition: box-shadow .2s ease, background-color .2s ease; }
.std-filter-btn:hover { background: rgb(24,52,80); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 10px 26px rgba(6,18,30,.28); }
.std-filter-btn:disabled { opacity: .45; cursor: not-allowed; background: rgba(12,36,60,.72); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.std-filter-btn:focus-visible, .std-filter-list li:focus-visible { outline: 3px solid var(--flag-yellow); outline-offset: 2px; }
.std-filter-btn svg { flex: none; color: var(--flag-yellow); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.std-filter-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.std-filter-list { position: absolute; top: calc(100% + .45rem); left: 0; right: 0; margin: 0; padding: .35rem; list-style: none; background: rgb(12,36,60); border-radius: 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 18px 40px rgba(6,18,30,.5); }
.std-filter-list li { display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; padding: .4rem .85rem; border-radius: .8rem; font-size: 1rem; color: rgba(255,255,255,.88); cursor: pointer; }
.std-filter-list li:hover, .std-filter-list li:focus { background: rgb(24,52,80); color: #fff; }
.std-filter-list li[aria-selected="true"] { color: #fff; font-weight: 600; }
.std-filter-list li[aria-selected="true"]::after { content: "✓"; color: var(--flag-yellow); font-weight: 700; }
.std-filter-none { margin: 1rem 0 0; color: rgba(255,255,255,.8); }
.champ-std .std-export { display: flex; justify-content: flex-end; margin-top: 1rem; }   /* v73: «Λήψη σε Excel», bottom right */
/* v81: «Τα περισσότερα μίλια» under the standings: the same dark table, only as wide as its 5 columns */
.champ-miles { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.champ-std .champ-miles .std-wrap { width: fit-content; min-width: min(100%, 34rem); max-width: 100%; transform: none; }
.std-miles .std-type { color: rgba(255,255,255,.75); text-align: left; }
.champ-miles .std-note a { color: var(--flag-yellow); }   /* SaS: the club's yellow, the blue link was hard to see on the photo */
.champ-miles .std-note a:hover { color: #fff; }
.std-miles tbody td { padding-left: .9rem; padding-right: .9rem; }
@media (prefers-reduced-motion: no-preference) {
  .std-filter-list:not([hidden]) { animation: std-filter-open .18s cubic-bezier(.2,.7,.2,1); }
}
@keyframes std-filter-open { from { opacity: 0; transform: translateY(-.35rem); } }
.std-wrap:focus-visible { outline: 3px solid var(--flag-yellow); outline-offset: 3px; }
.std-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; line-height: 1.3; font-variant-numeric: tabular-nums lining-nums; }
.std-table th, .std-table td { padding: .48rem .45rem; text-align: center; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.1); }
.std-table thead th { font: 600 .68rem/1.25 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.7); vertical-align: bottom; border-bottom-color: rgba(255,255,255,.22); }
.std-table thead tr:last-child > * { border-bottom-color: rgba(255,255,255,.35); }
.std-table thead tr:first-child th { padding-top: .9rem; }
.std-table thead .std-event { white-space: normal; vertical-align: bottom; color: #fff; min-width: 4.2rem; border-bottom-color: rgba(255,255,255,.22); }
.std-table thead .std-event[rowspan] { border-bottom-color: rgba(255,255,255,.35); }
.std-table thead .std-race { font-size: .74rem; color: rgba(255,255,255,.62); padding-top: .3rem; }
.std-table .std-start { border-left: 1px solid rgba(255,255,255,.16); }
.std-rank { position: sticky; left: 0; z-index: 2; width: var(--rank-w); min-width: var(--rank-w); background: var(--panel); color: rgba(255,255,255,.75); }
.std-boat { position: sticky; left: var(--rank-w); z-index: 2; background: var(--panel); text-align: left !important; padding-right: 1.1rem !important;
            box-shadow: 1px 0 0 rgba(255,255,255,.16); }
tbody .std-boat { font-weight: 600; letter-spacing: .03em; color: #fff; }
.std-cls { color: rgba(255,255,255,.75); }
.std-total { text-align: right !important; padding-right: 1rem !important; }
tbody .std-total { font-weight: 700; color: #fff; }
.std-res { min-width: 2.35rem; }
/* v69: tighter race columns, championship table only (results tables keep theirs); on phones too */
.champ-std .std-table .std-res { min-width: 1.75rem; padding-left: .22rem; padding-right: .22rem; }
.champ-std .std-table thead .std-race { padding-left: .22rem; padding-right: .22rem; }
.champ-std .std-table thead .std-event { min-width: 2.6rem; padding-left: .28rem; padding-right: .28rem; font-size: .64rem; letter-spacing: .03em; }
.std-res.is-win { color: var(--flag-yellow); font-weight: 700; }
.std-res.is-code { font-size: .7rem; letter-spacing: .04em; color: rgba(255,255,255,.55); }
.std-res.is-sup { font-style: italic; }
.std-res.is-none::before { content: "·"; color: rgba(255,255,255,.22); }
.std-res.is-drop { color: rgba(255,255,255,.45); }                 /* v53: a score that doesn't count, in brackets */
.std-table [title] { cursor: default; }
.std-rank span { display: inline-grid; place-items: center; min-width: 1.65rem; height: 1.65rem; border-radius: 999px; }
.std-p1 .std-rank span { background: var(--flag-yellow); color: var(--ink); font-weight: 700; }
.std-p2 .std-rank span { background: #d5dde5; color: var(--ink); font-weight: 700; }
.std-p3 .std-rank span { background: #d69c66; color: var(--ink); font-weight: 700; }
.std-table tbody tr:hover > * { background-color: rgb(24, 52, 80); }
.std-table tbody tr:last-child > * { border-bottom-color: rgba(255,255,255,.35); }
/* under the headings: distance, weight and starters of each race (v49; were under the table in v48) */
.std-table .std-info-row > * { padding-top: .28rem; padding-bottom: .28rem; font: 400 .76rem/1.2 var(--sans); letter-spacing: .01em; text-transform: none;
                               color: rgba(255,255,255,.62); vertical-align: middle; }
.std-table .std-info-row:not(:last-child) > * { border-bottom-color: transparent; }
.std-table thead tr:nth-child(3) > * { padding-top: .65rem; }
.std-table .std-info-row:last-child > * { padding-bottom: .7rem; }
.std-table .std-info { position: sticky; left: 0; z-index: 2; background: var(--panel); text-align: left; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.72);
                       box-shadow: 1px 0 0 rgba(255,255,255,.16); }
/* v64: the cells above stay put (sticky) only in the tables near the screen (site.js adds
   .is-near). iPhone Safari gives every sticky cell its own picture in memory; a year with
   many results (hundreds of cells) made it run out of memory ("A problem repeatedly occurred"). */
.js .std-wrap:not(.is-near) .std-rank, .js .std-wrap:not(.is-near) .std-boat,
.js .std-wrap:not(.is-near) .std-info { position: static; }

@media (max-width: 40rem) {
  .js .champ { grid-template-areas: "dial title" "nor nor" "std std"; grid-template-rows: none; column-gap: 1.2rem; }
  .js .champ .cal-dial { align-self: center; }
  .js .champ > .yr-title { align-self: center; margin: 0; }
  .js .yr-title { font-size: 1.75rem; }
  .js .champ-nor { margin-top: 1.4rem; }
  .std-wrap { --rank-w: 2.4rem; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; }
  .std-table { font-size: .84rem; }
  .std-table th, .std-table td { padding: .45rem .32rem; }
  tbody .std-boat { white-space: normal; min-width: 6.2rem; max-width: 7.6rem; line-height: 1.2; letter-spacing: .01em; }
  .std-boat { padding-right: .7rem !important; }
  .std-total { padding-right: .7rem !important; }
  .std-codes li { font-size: .8rem; }
  .champ-std .champ-miles .std-wrap { width: auto; min-width: 0; max-width: none; }   /* v81: edge to edge like the standings */
  .std-miles tbody td { padding-left: .45rem; padding-right: .45rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .yr-panel.is-entering .champ-nor, .yr-panel.is-entering .champ-std { animation: cal-rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .yr-panel.is-entering .champ-std { animation-delay: .1s; }
}

/* --- «Ανακοινώσεις αγώνων» (v50; _races.html) --------------------------------
   Built like «Πρωτάθλημα Ι.Ο.Χ.»: the year dial on the left (it stays in view while
   a long list scrolls), the year's races beside it, each like an event of the race
   calendar's list (big day number, month, weekday) with its PDF cards. */

.js .rc { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(1.5rem, 4vw, 3.5rem);
          grid-template-areas: "dial title" "dial list"; }
.js .rc .cal-dial { grid-area: dial; align-self: start; position: sticky; top: 6.5rem; }
.js .rc > .yr-title { grid-area: title; align-self: end; }
.js .rc-list { grid-area: list; align-self: start; }
.rc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.45); }
.rc-race { display: grid; grid-template-columns: 6rem minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 1.2rem; padding: 1.3rem 0;
           border-bottom: 1px solid rgba(255,255,255,.18); scroll-margin-top: 6rem; }
.rc-race .cal-date { grid-column: 1; grid-row: 1 / 3; align-self: start; gap: .25rem; }
.rc-race .cal-dd { font-size: 2.3rem; }
.rc-name { grid-column: 2; grid-row: 1; min-width: 0; font: 600 1.12rem/1.35 var(--sans); letter-spacing: .03em; margin: .35rem 0 .85rem; overflow-wrap: anywhere; }
.rc-docs { grid-column: 2; grid-row: 2; min-width: 0; }
.read .rc .files { max-width: none; margin: 0; }
.rc-docs ul { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.rc-race:target { background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,0)); }
/* v53: the results read from a race's files, under its documents, the newest first;
   its cells: .rr-<column> (pos, nation, yacht, sail, type, division, finish, delta, points, race, total) */
.rc-results { grid-column: 1 / -1; grid-row: 3; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; margin-top: 1.6rem; }
.rc-table-title { font: 600 1rem/1.35 var(--sans); letter-spacing: .02em; margin: 0 0 .25rem; }
.rc-table-meta { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; margin: 0 0 .7rem; font-size: .86rem; color: rgba(255,255,255,.72); }
.rc-table-title + .std-wrap { margin-top: .7rem; }          /* a series table has no meta line (v54) */
.rc-res-table td, .rc-res-table th { text-align: left; }
.rc-res-table .rr-pos, .rc-res-table .rr-points, .rc-res-table .rr-total, .rc-res-table .rr-race { text-align: right; }
.rc-res-table .rr-nation, .rc-res-table .rr-division, .rc-res-table .rr-finish, .rc-res-table .rr-delta { text-align: center; }
.rc-res-table tbody .rr-total, .rc-res-table tbody .rr-points { font-weight: 700; color: #fff; }
.rc-res-table tbody .rr-type, .rc-res-table tbody .rr-sail { color: rgba(255,255,255,.78); }
.rc-res-table tbody .rr-type { white-space: normal; min-width: 7.5rem; }   /* long boat types wrap instead of a sideways scroll */
/* v113: «Συμμετοχές», the boats declared so far: the same dark table, only as wide as its 3 columns
   (as «Τα περισσότερα μίλια»); no place column, so the boat column sticks at the very left */
.rc-entries .std-wrap { width: fit-content; min-width: min(100%, 30rem); max-width: 100%; }
.rc-entry-table .std-boat { left: 0; }
.rc-entry-table tbody .rr-club { color: rgba(255,255,255,.78); }
.rc-entry-table .std-boat a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: .2em; }
.rc-entry-table .std-boat a:hover, .rc-entry-table .std-boat a:focus-visible { color: var(--flag-yellow); text-decoration-color: currentColor; }
.rc-count { font-weight: 400; color: rgba(255,255,255,.72); }
.rc-entries[hidden] { display: none; }
@media (max-width: 40rem) {
  .js .rc { grid-template-areas: "dial title" "list list"; grid-template-rows: none; column-gap: 1.2rem; }
  .js .rc .cal-dial { position: static; align-self: center; }
  .js .rc > .yr-title { align-self: center; margin: 0; }
  .js .rc-list { margin-top: 1.4rem; }
  .rc-race { grid-template-columns: 4.6rem minmax(0, 1fr); column-gap: .9rem; }   /* the cards under date and name */
  .rc-race .cal-date { grid-row: 1; }
  .rc-name { align-self: center; margin: 0; }
  .rc-docs { grid-column: 1 / -1; margin-top: .9rem; }
  .rc-results { margin-top: 1.3rem; }
  .rc-entries .std-wrap { width: auto; min-width: 0; max-width: none; }   /* v113: edge to edge like the results */
  .rc-race .cal-dd { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .yr-panel.is-entering .rc-list { animation: cal-rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .motion .rc.is-waiting .rc-list { opacity: 0; }        /* v65: until the section comes into view (site.js) */
}

/* --- Tables (written with | in the admin text box) -------------------------
   Thin lines, no boxes. On phones every row becomes a small stacked block. */

.table-wrap { margin: .4em 0 1.8em; }
.read-body table, .prose table { width: 100%; border-collapse: collapse; font-size: .94em; line-height: 1.45; }
@media (min-width: 40.01rem) { .read-body table, .prose table { table-layout: fixed; } }  /* same column widths in every table */
/* two-column tables (e.g. opening hours) only take the room they need */
@media (min-width: 40.01rem) {
  .read-body table:not(:has(th:nth-child(3))), .prose table:not(:has(th:nth-child(3))) {
    table-layout: auto; width: auto; min-width: min(100%, 24rem);
  }
}
.read-body th, .prose th { text-align: left; font-weight: 600; font-size: .86em; padding: 0 1.25rem .65rem 0; }
.read-body td, .prose td { padding: .85rem 1.25rem .85rem 0; vertical-align: top; }
.read-body th:last-child, .read-body td:last-child, .prose th:last-child, .prose td:last-child { padding-right: 0; }
.read-body td:first-child, .prose td:first-child { font-weight: 600; }
.read-body td a, .prose td a { overflow-wrap: anywhere; }
.read-body th { color: rgba(255,255,255,.72); border-bottom: 1px solid rgba(255,255,255,.45); }
.read-body td { border-bottom: 1px solid rgba(255,255,255,.18); }
.prose th { color: var(--muted); border-bottom: 1px solid var(--ink); }
.prose td { border-bottom: 1px solid var(--line); }
@media (max-width: 40rem) {
  .read-body table, .read-body tbody, .read-body tr, .read-body td,
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .read-body thead, .prose thead { display: none; }
  .read-body tr, .prose tr { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .prose tr { border-bottom-color: var(--line); }
  .read-body td, .prose td { padding: .1rem 0; border: 0; }
  .read-body td:first-child, .prose td:first-child { font-size: .85em; opacity: .8; }
  .read-body td:nth-child(2), .prose td:nth-child(2) { font-size: 1.08em; font-weight: 600; }
}
/* Wide tables (4 or more columns, e.g. the fleet): each column takes the width
   its content needs, and the table may use the whole page width. On phones each
   row becomes a small card: first cell as its title, the second under it, the
   rest side by side with their column name above them.                       */
@media (min-width: 40.01rem) {
  .read-body table:has(th:nth-child(4)), .prose table:has(th:nth-child(4)) { table-layout: auto; }
  .read-body:has(> .table-wrap th:nth-child(4)) { max-width: none; }
}
@media (max-width: 40rem) {
  .read-body table:has(th:nth-child(4)) tr, .prose table:has(th:nth-child(4)) tr {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: .9rem;
  }
  .read-body table:has(th:nth-child(4)) td:nth-child(-n+2), .prose table:has(th:nth-child(4)) td:nth-child(-n+2) { grid-column: 1 / -1; }
  .read-body table:has(th:nth-child(4)) td:first-child, .prose table:has(th:nth-child(4)) td:first-child { font-size: 1.08em; font-weight: 600; opacity: 1; }
  .read-body table:has(th:nth-child(4)) td:nth-child(2), .prose table:has(th:nth-child(4)) td:nth-child(2) { font-size: 1em; font-weight: 400; margin-bottom: .45rem; }
  .read-body table:has(th:nth-child(4)) td:nth-child(n+3)::before, .prose table:has(th:nth-child(4)) td:nth-child(n+3)::before {
    content: attr(data-label); display: block; font-size: .78em; font-weight: 600; opacity: .7;
  }
}

/* --- Moving between pages: the whole page blends into the next one.
   Browsers that can't do it (Firefox today) simply switch pages.           */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .7s; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* --- Category markers: signal flags -------------------------------------- */

.flag {
  display: inline-block; flex: none; width: 1.2em; height: .8em; margin-right: .5em;
  vertical-align: -.02em; box-shadow: 0 0 0 1px rgba(20,34,48,.18);
}
.flag.flag-p, .flag-panel.flag-p::before { background: linear-gradient(#fff, #fff) center / 40% 40% no-repeat, var(--flag-blue); }
.flag.flag-q, .flag-panel.flag-q::before { background: var(--flag-yellow); }
.flag.flag-b, .flag-panel.flag-b::before { background: var(--flag-red); }
.flag.flag-u, .flag-panel.flag-u::before { background: conic-gradient(#fff 0 25%, var(--flag-red) 0 50%, #fff 0 75%, var(--flag-red) 0); }

.flag-panel {                        /* stands in for a missing photo */
  display: grid; place-items: center; width: 100%; height: 100%;
  background: var(--mist);
}
.flag-panel::before {
  content: ""; width: 34%; aspect-ratio: 3 / 2;
  box-shadow: 0 0 0 1px rgba(20,34,48,.12), 0 6px 16px rgba(10,33,56,.12);
}

.cat { display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; }
a.cat:hover { color: var(--sea); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; font-size: .9rem; color: var(--muted); margin: 0 0 .4rem; }

/* --- Home: news ---------------------------------------------------------- */

/* The news sits straight on the photo. A soft shade travels with the list
   (it starts just above it) so white text stays readable on any photo.
   --news-shade: 0 = no shade, .7 = very dark. Change it here.            */
.news {
  --news-shade: .5;
  --news-top: clamp(7rem, 30vh, 16rem);
  padding: var(--news-top) 0 clamp(7rem, 16vh, 11rem); color: #fff;
  background: linear-gradient(to bottom,
    rgba(10,33,56,0) 0,
    rgba(10,33,56,0) calc(var(--news-top) - 6rem),
    rgba(10,33,56,var(--news-shade)) calc(var(--news-top) + 10rem),
    rgba(10,33,56,var(--news-shade)) calc(100% - 9rem),
    rgba(10,33,56,0) 100%);
}
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.75rem; }
.section-head h2 { font: 400 clamp(2.8rem, 5.4vw, 4.6rem)/1 var(--serif); letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(6,18,30,.45); }
.section-links { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; }
.more { font-weight: 600; white-space: nowrap; color: #fff; text-shadow: 0 1px 8px rgba(6,18,30,.5); }
.more:hover { color: var(--flag-yellow); }
.section-head :focus-visible { outline-color: var(--flag-yellow); }

.news-body { --muted: rgba(255,255,255,.78); color: #fff; text-shadow: 0 1px 3px rgba(6,18,30,.5); }
.news-body .lead h3 a, .news-body .row h3 a { color: #fff; }
.news-body .lead h3 a:hover, .news-body .row h3 a:hover { color: var(--flag-yellow); }
.news-body a.cat:hover { color: #fff; }
.news-body .row { border-top-color: rgba(255,255,255,.2); }
.news-body .lead-pic, .news-body .row-pic, .news-body .flag-panel { background: rgba(255,255,255,.1); }
.news-body :focus-visible { outline-color: var(--flag-yellow); }

.news-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.lead-pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; margin-bottom: 1.1rem; background: var(--mist); }
.lead-pic img { width: 100%; height: 100%; object-fit: cover; }
.lead h3 { font: 400 clamp(1.7rem, 2.6vw, 2.2rem)/1.15 var(--serif); margin-bottom: .6rem; }
.lead h3 a, .row h3 a { color: var(--ink); text-decoration: none; }
.lead h3 a:hover, .row h3 a:hover { color: var(--strait); text-decoration: underline; }
.lead-excerpt { color: var(--muted); max-width: 60ch; }

.row {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.1rem; align-items: start;
  padding: 1.1rem 0; border-top: 1px solid var(--line);
}
.news-list > :first-child .row { border-top: 0; padding-top: 0; }
.row-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--mist); }
.row-pic img { width: 100%; height: 100%; object-fit: cover; }
.row h3 { font: 600 1.1rem/1.35 var(--sans); }
.row-excerpt { color: var(--muted); font-size: .95rem; margin: .35rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list .row-excerpt { display: none; }

/* Home news list (right column): picture on the right, text on the left */
.news-list .row { grid-template-columns: minmax(0, 1fr) 7.5rem; }
.news-list .row-text { grid-column: 1; grid-row: 1; }
.news-list .row-pic { grid-column: 2; grid-row: 1; }

/* Home news, post without a photo: the picture box keeps its place and size
   but shows nothing (no flag, no tint) and can't be clicked, so the texts
   line up the same with or without photos.                                */
.news-body .lead-pic:has(> .flag-panel), .news-body .row-pic:has(> .flag-panel) { background: none; pointer-events: none; }
.news-body .lead-pic > .flag-panel, .news-body .row-pic > .flag-panel { visibility: hidden; }

@media (max-width: 50rem) {
  .news-grid { grid-template-columns: 1fr; }
  .news-list > :first-child .row { border-top: 1px solid var(--line); padding-top: 1.1rem; }
  .row { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .9rem; }
  .news-list .row { grid-template-columns: minmax(0, 1fr) 5.5rem; }
  .news-body .news-list > :first-child .row { border-top-color: rgba(255,255,255,.2); }   /* same faint line as the other rows */
}

/* --- From news to story: the news photo shrinks into the first story frame,
   then fades to that frame's photo. site.js drives it while the empty
   .morph-zone scrolls by. Only with motion allowed (and JavaScript on).     */

.morph-zone { height: 0; }
.motion .morph-zone { height: 130vh; height: 130svh; }
.morph {
  position: fixed; left: 0; top: 0; z-index: 10; overflow: hidden;
  visibility: hidden; pointer-events: none; will-change: transform;
}
.morph.is-on { visibility: visible; }
.morph-layer { position: absolute; inset: 0; margin: 0; }
.morph-layer img { width: 100%; height: 100%; object-fit: cover; }
.morph-from { background: radial-gradient(120% 90% at 85% 0%, #1f5f86 0%, var(--sea) 55%, var(--sea-deep) 100%); }
.morph-shade { position: absolute; inset: 0; background: linear-gradient(rgba(10,33,56,.45), rgba(10,33,56,.25) 40%, rgba(10,33,56,.35)); }
/* On a fixed page the shrinking photo is the page photo, looking as it did a
   moment earlier: the title photo (zoomed and dimmed) or its softened copy. */
.morph-from.from-hero img { transform: scale(1.14); transform-origin: 50% 40%; }
.morph-from.from-hero .morph-shade {
  background:
    linear-gradient(rgba(10,33,56,.45), rgba(10,33,56,.45)),
    linear-gradient(to right, rgba(10,33,56,.7) 0%, rgba(10,33,56,.35) 45%, rgba(10,33,56,0) 70%),
    linear-gradient(to top, rgba(10,33,56,.85) 0%, rgba(10,33,56,.3) 50%, rgba(10,33,56,.1) 100%);
}
.morph-from.from-read img { filter: blur(10px) brightness(.55) saturate(.85); transform: scale(1.08); }
.morph-from.from-read .morph-shade { background: rgba(10,33,56,.42); }
.morph-to { opacity: 0; background: #123552; }
.morph-to .flag-panel { background: #123552; }
.morph-to .flag-panel::before { width: 26%; }
@media (max-width: 60rem) { .morph-to .flag-panel::before { width: 34%; } }
.stage.is-morphing .stage-bg { visibility: hidden; }
.story.is-morphing .story-frame,
.story.is-morphing .story-step:first-child .story-step-img { visibility: hidden; }

/* --- Home: the pinned story (photo stays, text scrolls past) ------------ */

.story { position: relative; z-index: 1; background: var(--sea-deep); color: #fff; }
.story :focus-visible { outline-color: var(--flag-yellow); }
.story-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem);
}
.story-media { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: 3.5rem; }
.story-frame { position: relative; width: 100%; height: min(74svh, 46rem); border-radius: 6px; overflow: hidden; background: #123552; }
.story-img { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.05); transition: opacity .9s ease, transform 1.4s cubic-bezier(.2,.7,.2,1); }
.story-img.is-active { opacity: 1; transform: none; }
.story-img img, .story-step-img img { width: 100%; height: 100%; object-fit: cover; }
.story-img .flag-panel, .story-step-img .flag-panel { background: #123552; }
.story-img .flag-panel::before { width: 26%; }

.story-step { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 4rem 0; transition: opacity .6s ease; }
.story-step h2 { font: 400 clamp(2.8rem, 5.4vw, 4.6rem)/1 var(--serif); letter-spacing: -.01em; margin-bottom: 1.25rem; }
.story-step p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: rgba(255,255,255,.82); max-width: 30ch; margin-bottom: 1.75rem; }
.story-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.story-links a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; padding: .3rem 0; }
.story-links a::after { content: ""; width: .45rem; height: .45rem; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .25s ease; }
.story-links a:hover { color: var(--flag-yellow); }
.story-links a:hover::after { transform: translateX(.2rem) rotate(45deg); }
.story-step-img { display: none; }

/* The same panels on fixed pages (e.g. the three schools of «Σχολές ανοιχτής
   θαλάσσης»): their text, written in the admin, may have several paragraphs
   and lists, set like the home page panel text.                             */
.story-text { margin-bottom: 1.75rem; }
.story-text p, .story-text ul { margin: 0 0 1em; }
.story-text ul { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: rgba(255,255,255,.82); max-width: 30ch; padding-left: 1.2rem; }
.story-text li + li { margin-top: .2em; }
.story-text > :last-child { margin-bottom: 0; }
.story-text a { color: #fff; }
.story-text a:hover { color: var(--flag-yellow); }
.read-links { margin: 2rem 0 0; }            /* a page's links after its text (Σχολή τριγώνου ...) */

@media (min-width: 60.01rem) and (prefers-reduced-motion: no-preference) {
  .motion .story-step:not(.is-active) { opacity: .28; }
}
@media (max-width: 60rem) {
  .story-inner { grid-template-columns: 1fr; gap: 0; }
  .story-media { display: none; }
  .story-step { min-height: 0; padding: 3.5rem 0 1rem; }
  .story-step:last-child { padding-bottom: 4rem; }
  .story-step-img { display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; margin-bottom: 1.75rem; }
  .story-step-img .flag-panel { display: grid; }
}

/* --- Home: sponsors panel. Its "photo" is a white board with the logos
   (content/sponsors.json + static/site/img/sponsor-*). It fills the same
   frame as the other photos: 2 logos per row in the upright desktop frame,
   3 per row in the wide phone frame. No logo file yet = the name.          */

.sponsor-board {
  position: absolute; inset: 0; background: #fff;
  display: flex; flex-wrap: wrap; justify-content: center; align-content: center;
  gap: 5% 8%; padding: 10% 9%;
}
.board-logo { flex: 0 0 42%; height: 20%; min-width: 0; display: flex; align-items: center; justify-content: center; }
.board-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }   /* any shape stays inside its slot */
.board-name { font: 700 clamp(.8rem, 1.4vw, 1.15rem)/1.2 var(--sans); color: var(--sea); letter-spacing: .03em; text-align: center; }
.story-step-img:has(.sponsor-board) { position: relative; }
@media (max-width: 60rem) {
  .sponsor-board { gap: 8% 6%; padding: 7% 6%; }
  .board-logo { flex-basis: 27%; height: 36%; }
}

/* --- Gentle rise into view (site.js adds .in when visible) --------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] {
    transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--d, 0s);
  }
  .reveal-ready [data-reveal]:not(.in) { opacity: 0; transform: translateY(2rem); }
}

/* --- Page heading (404) --------------------------------------------------- */

.page-head { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 1.5rem; }
.page-head h1 { font: 400 clamp(2.2rem, 5vw, 3.5rem)/1.1 var(--serif); display: flex; align-items: center; }
.page-head h1 .flag { width: .9em; height: .6em; margin-right: .35em; }

/* --- News pages («Νέα», each tag): the home page's style, one year at a time (v42)
   The list sits on the softened photo like a page's text; the year dial is the one of
   «Ημερολόγιο» (.cal-dial). Rows are the home page's news rows (.row), a little larger. */

.arch { max-width: 56rem; text-shadow: 0 1px 3px rgba(6,18,30,.55); }
.arch-title { font: 400 clamp(2.2rem, 4vw, 3.2rem)/1.05 var(--serif); letter-spacing: -.01em; margin: 0 0 1rem; }
.arch-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem .5rem; }
.arch-tags a {
  display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .85rem;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .9rem; color: rgba(255,255,255,.88); text-decoration: none;
}
.arch-tags a:hover { border-color: #fff; color: #fff; }
.arch-tags a[aria-current] { border-color: #fff; background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.arch-tags .flag { width: 1.15em; height: .8em; }
.arch-years { margin: 1.4rem 0 0; }
.arch-years .story-links { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.arch-year-title { font: 400 clamp(1.9rem, 3vw, 2.4rem)/1 var(--serif); margin: 2.4rem 0 .6rem; }
.arch-stats { margin: 0 0 .9rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: rgba(255,255,255,.85); }
.arch-stats b { font: 400 1.6em/1 var(--serif); color: #fff; margin-right: .2rem; }
.arch-months { margin-top: 2.6rem; display: grid; gap: 2.6rem; }
.arch-month-title { font: 400 clamp(1.6rem, 2.4vw, 2rem)/1.1 var(--serif); margin: 0; padding-bottom: .7rem; border-bottom: 1px solid rgba(255,255,255,.45); }
/* rows as on the home page: text on the left, picture on the right; a post without a photo
   keeps an empty, invisible picture box (.news-body rules), so the texts line up */
.arch .row { grid-template-columns: minmax(0, 1fr) 10rem; padding: 1.2rem 0; }
.arch .row-text { grid-column: 1; grid-row: 1; }
.arch .row-pic { grid-column: 2; grid-row: 1; }
.arch-list > .row:first-child { border-top: 0; }
.arch .row h3 { font-size: 1.2rem; }
.arch .row-excerpt { color: rgba(255,255,255,.78); }
.arch-empty { color: rgba(255,255,255,.75); }
@media (max-width: 40rem) {
  .arch .row { grid-template-columns: minmax(0, 1fr) 5.5rem; gap: .9rem; }
  .arch .row-excerpt { display: none; }
}

/* with JavaScript: the dial on the left, title, numbers and tags beside it; one year at a time */
.js .arch { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem);
            grid-template-areas: "dial title" "dial stats" "dial tags" "list list"; }
.js .arch .cal-dial { grid-area: dial; align-self: center; }
.js .arch-title { grid-area: title; align-self: end; }
.js .arch-stats { grid-area: stats; }
.js .arch-tags { grid-area: tags; align-self: start; }
.js .arch-months { grid-area: list; }
.js .arch-empty { grid-column: 1 / -1; }
.js .arch-years { display: none; }
.js .arch-year { display: none; }
.js .arch-year.is-current { display: contents; }
.js .arch-year-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
@media (max-width: 40rem) {
  .js .arch { grid-template-areas: "dial title" "dial stats" "tags tags" "list list"; column-gap: 1.2rem; }
  .js .arch-title { font-size: 1.9rem; }
  .js .arch-tags { margin-top: 1.4rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .arch-year.is-entering .arch-stats, .arch-year.is-entering .arch-months { animation: cal-rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .arch-year.is-entering .arch-months { animation-delay: .08s; }
}

/* --- News post (v44): all on one screen. The news pages' photo stays still behind
   the page, a little blurred and darkened (--post-blur, --post-dim: change them here);
   wide screens: text left, photos right (they stay in view), like the home panels. */

.post-page { --post-blur: 6px; --post-dim: .62; }
.post-bg { position: fixed; inset: 0; z-index: -1; background: var(--sea); overflow: hidden; }
.post-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06);
               filter: blur(var(--post-blur)) brightness(var(--post-dim)) saturate(.9); }
.post-bg::after { content: ""; position: absolute; inset: 0;
                  background: linear-gradient(to bottom, rgba(10,33,56,.45), rgba(10,33,56,.25) 40%, rgba(10,33,56,.5)); }
.post-read { background: none; padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(4rem, 10vh, 6rem); }
.js .post-read { padding-top: clamp(7.5rem, 16vh, 9.5rem); }        /* under the menu bar, which floats on photo pages */
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "media" "text" "nav"; row-gap: 1.8rem; }
.post-read:not(.has-photo) .post-grid { grid-template-areas: "head" "text" "nav"; }
.post-head { grid-area: head; }
.post-media { grid-area: media; }
.post-text { grid-area: text; }
.post-nav { grid-area: nav; }
@media (min-width: 60.01rem) {
  .has-photo .post-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: clamp(2.5rem, 5vw, 4.5rem);
                          grid-template-areas: "head media" "text media" "nav media"; grid-template-rows: auto auto 1fr; }
  .has-photo .post-media { position: sticky; top: 6.5rem; align-self: start; }
}
.post-head h1 { font: 400 clamp(2.2rem, 4vw, 3.4rem)/1.08 var(--serif); letter-spacing: -.01em; margin: 0; max-width: 22ch;
                text-shadow: 0 2px 18px rgba(6,18,30,.45); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; margin: 0 0 .9rem;
             font-size: clamp(.95rem, 1.2vw, 1.05rem); color: rgba(255,255,255,.88); text-shadow: 0 1px 3px rgba(6,18,30,.55); }
.post-meta .cat { color: rgba(255,255,255,.88); }
.post-meta a.cat:hover { color: var(--flag-yellow); }
.post-cover { margin: 0; }
.post-cover a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 14px 34px rgba(6,18,30,.4); }
.post-cover img { display: block; width: 100%; height: auto; }
.post-media .gallery { margin-top: 1rem; max-width: none; }
.post-media .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
.post-text .read-body > :last-child { margin-bottom: 0; }
.post-text .files { margin-top: 2rem; }
.post-nav { max-width: 42rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin-top: 1.2rem;
            padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.35); text-shadow: 0 1px 3px rgba(6,18,30,.55); align-self: start; }
.post-nav > a { color: #fff; text-decoration: none; font-weight: 600; line-height: 1.35; }
.post-nav > a:hover { color: var(--flag-yellow); }
.post-nav > a span { display: block; font-weight: 400; font-size: .88rem; color: rgba(255,255,255,.72); margin-bottom: .25rem; }
.post-nav .older { grid-column: 2; text-align: right; }
.post-nav .post-back { grid-column: 1 / -1; margin: .6rem 0 0; }
@media (max-width: 40rem) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .older { grid-column: 1; text-align: left; }
}

/* --- «Φωτογραφίες» (v63; _albums.html): the albums, newest first, by year (headings as the
   months of the news pages); cards: the album's picture (3:2, as the first news on the home
   page), title, date and number of photos. Wider than the text: up to 4 cards per row. */
.read .albums { max-width: 72rem; margin-top: 2.6em; display: grid; gap: 2.8rem; text-shadow: 0 1px 3px rgba(6,18,30,.55); }
.read-body:empty + .albums { margin-top: 0; }
.alb-grid { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid;
            grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 2rem clamp(1.2rem, 2.4vw, 2rem); }
.alb a { display: block; color: #fff; text-decoration: none; }
.alb-pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; margin-bottom: .85rem;
           background: rgba(255,255,255,.1); box-shadow: 0 10px 26px rgba(6,18,30,.32); }
.alb-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.alb a:hover .alb-pic img { transform: scale(1.04); }
.alb-title { display: block; font: 400 clamp(1.3rem, 1.8vw, 1.55rem)/1.2 var(--serif); }
.alb a:hover .alb-title { color: var(--flag-yellow); }
.alb-meta { display: flex; flex-wrap: wrap; gap: .1rem 1rem; margin-top: .35rem; font-size: .92rem; color: rgba(255,255,255,.78); }
@media (max-width: 40rem) {
  .alb-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* one album (v63; album.html): like a news post, the album's own picture behind the page,
   then all its photos (bigger squares than in a post) */
.alb-read .post-head { margin-bottom: 1.8rem; }
.read .alb-photos { margin-top: 0; max-width: none; }
.alb-photos .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .6rem; }
.alb-photos .gallery-grid a { background: rgba(255,255,255,.08); box-shadow: 0 6px 16px rgba(6,18,30,.28); }
.alb-read .post-nav { margin-top: 2.6rem; }
@media (max-width: 40rem) {
  .alb-photos .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; }
}

.files, .gallery { margin-top: 2.5rem; }
.files h2, .gallery h2 { font: 650 1.05rem/1.3 var(--sans); color: var(--muted); margin-bottom: .75rem; }
.files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.files a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  padding: .85rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  color: var(--ink); text-decoration: none;
}
.files a:hover { border-color: var(--strait); }
.file-type { font: 700 .75rem/1 var(--sans); letter-spacing: .04em; color: var(--paper); background: var(--sea); border-radius: 3px; padding: .45rem .5rem; }
.file-name { font-weight: 600; overflow-wrap: anywhere; }
.files a:hover .file-name { color: var(--strait); text-decoration: underline; }
.file-size { color: var(--muted); font-size: .9rem; white-space: nowrap; }

.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .5rem; }
.gallery-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 3px; background: var(--mist); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid a:hover img { opacity: .88; }



/* v110 (SaS): the error pages «Σφάλμα 403» and «Σφάλμα 404» (templates/site/_error.html). The page fills the
   window, so the footer sits at the bottom even though the content is short; SaS's picture fades into
   a dark sea of its own colour. */
.denied-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.denied-page main { flex: 1 0 auto; display: flex; }
.denied {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(1.25rem, 3vw, 2rem) 1.25rem clamp(1.75rem, 4vw, 2.75rem); color: rgba(255,255,255,.82);
  background: radial-gradient(70% 60% at 50% 40%, #06283a 0%, #031722 55%, #01090d 100%);
}
.denied-art {
  width: min(100%, 900px); margin-bottom: clamp(.5rem, 2vw, 1.25rem);
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
/* 404: a blue picture with its words near the edges: a bluer sea, and only the outer edge fades */
.denied-404 { background: radial-gradient(85% 75% at 50% 38%, #0b4170 0%, #062b50 42%, #020f1e 100%); }
.denied-404 .denied-art {
  width: min(100%, 1000px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent),
                      linear-gradient(transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent),
              linear-gradient(transparent, #000 15%, #000 85%, transparent);
  mask-composite: intersect;
}
.denied h1 { margin: 0 0 .4rem; font: 400 clamp(2.2rem, 5vw, 3.5rem)/1.1 var(--serif); color: #fff; }
.denied p { margin: 0 0 .6rem; max-width: 34rem; }
.denied-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.75rem; }
.denied a { color: var(--flag-yellow); font-weight: 600; text-decoration: none; }
.denied a:hover { text-decoration: underline; color: var(--flag-yellow); }

/* --- Admin button: a small round link to the admin page, bottom right of
   one fixed page (Διοίκηση; set in templates/site/page.html).
   Picture: static/site/img/admin.png. Any square picture is cut to a circle. */

.admin-link { display: flex; justify-content: flex-end; margin: 3.5rem 0 0; }
.admin-link a {
  display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.5), 0 3px 10px rgba(6,18,30,.35);
  transition: box-shadow .25s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.admin-link img { width: 100%; height: 100%; object-fit: cover; }
.admin-link a:hover, .admin-link a:focus-visible {
  box-shadow: 0 0 0 1.5px var(--flag-yellow), 0 3px 10px rgba(6,18,30,.35);
  transform: rotate(45deg);                 /* the wheel turns a little */
}

/* --- Photo viewer ---------------------------------------------------------- */

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6,18,30,.96); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(6,18,30,.96); }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; width: 3rem; height: 3rem; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox :focus-visible { outline-color: var(--flag-yellow); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; margin: 0; color: rgba(255,255,255,.7); font-size: .9rem; }

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

.footer { background: var(--sea); color: rgba(255,255,255,.78); font-size: .95rem; }   /* same blue as the menu bar */
.footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer :focus-visible { outline-color: var(--flag-yellow); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 3.5rem var(--gutter) 2.5rem;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem;   /* equal sides keep the middle exactly centred */
}
.footer p { margin: 0 0 .35rem; }
.footer-name { font: 400 1.5rem/1.2 var(--serif); color: #fff; margin-bottom: .8rem !important; }
.footer-social { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; align-content: start; justify-self: end; text-align: right; }
.footer-coords { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.footer-coords a { color: #fff; }
.footer-label { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: .8rem !important; }
.footer-sponsor { justify-self: center; align-self: center; text-align: center; }
.footer-sponsor a { display: inline-block; }
.footer-sponsor img { max-height: 64px; max-width: 200px; width: auto; height: auto; }
.footer-sponsor a:hover img { opacity: .85; }
.footer .footer-legal {
  max-width: var(--wrap); margin: 0 auto; padding: 1.25rem var(--gutter) 2rem;
  border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem;
  display: flex; flex-wrap: wrap; gap: .4rem 2rem;
}
.footer .footer-legal p { margin: 0; }
.footer .footer-legal .footer-note { margin-left: auto; text-align: right; }
@media (max-width: 45rem) { .footer .footer-legal .footer-note { margin-left: 0; text-align: left; } }
@media (max-width: 45rem) { .footer-inner { grid-template-columns: 1fr; gap: 2.25rem; } }   /* phones: club, sponsor (centred), social (right) */

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