/* Draci Strakonice: public website. Header, hero, home sections, content pages, footer, auth layout. */

/* ================= header and navigation ================= */
.site-header {
  position: relative; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 5rem; padding-block: 0.75rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; min-height: var(--touch); text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 2.6rem; height: auto; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1; padding-top: 0.2em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem 1.6rem; }
/* Their underline is a 2px bar under the text (motion.css): gold on the current page, grows in on hover. */
.site-nav a { display: inline-flex; align-items: center; min-height: var(--touch); font-weight: 600; font-size: var(--step-small); text-decoration: none; }
.site-header__actions { display: flex; align-items: center; gap: 1.25rem; }
.menu-btn { display: none; min-height: var(--touch); min-width: var(--touch); padding: 0 0.25rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.3em; }
/* Two bars next to "Menu"; in the open sheet they cross into the close mark next to "Zavřít". */
.menu-icon { position: relative; display: inline-block; flex: none; width: 1.125rem; height: 0.75rem; margin-left: 0.5rem; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.menu-icon::before { top: 0.125rem; }
.menu-icon::after { bottom: 0.125rem; }
.menu-sheet[open]:not([data-closing]) .menu-icon::before { transform: translateY(0.25rem) rotate(45deg); }
.menu-sheet[open]:not([data-closing]) .menu-icon::after { transform: translateY(-0.25rem) rotate(-45deg); }
@media (max-width: 63.99em) {
  .site-nav, .btn--nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
}

/* Phone menu: a full-screen sheet (native <dialog>). */
.menu-sheet { position: fixed; inset: 0; z-index: var(--z-sheet); border: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; background: var(--ink); color: var(--on-ink); }
.menu-sheet::backdrop { background: var(--ink); }
.menu-sheet__inner { display: flex; flex-direction: column; min-height: 100%; padding: 0.75rem var(--margin) calc(2rem + env(safe-area-inset-bottom, 0px)); }
.menu-sheet__top { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; }
.menu-sheet .brand { color: var(--on-ink); }
.menu-sheet__close { display: inline-flex; align-items: center; min-height: var(--touch); font-weight: 600; text-decoration: underline; text-underline-offset: 0.3em; color: var(--on-ink); }
.menu-sheet nav { margin-top: 2rem; }
.menu-sheet nav a { display: flex; align-items: center; width: fit-content; min-height: 3.5rem; font-family: var(--font-display); font-size: 2.25rem; letter-spacing: -0.03em; line-height: 1; text-decoration: none; color: var(--on-ink); padding-top: 0.2em; }
.menu-sheet nav a[aria-current="page"] { color: var(--accent); }
.menu-sheet__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 1rem; color: var(--on-ink-muted); font-size: var(--step-small); }

/* ================= hero: the giant hull ================= */
.hero { position: relative; overflow: clip; min-height: clamp(36rem, calc(100svh - 5rem), 58rem); display: grid; align-items: center; padding-block: 2rem 4rem; }
.hero__text { position: relative; z-index: 1; max-width: 41%; }
.hero h1 { margin-left: -0.04em; }
.hero__lead { margin-top: clamp(1.5rem, 2.5vw, 2.25rem); max-width: 30ch; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero__next { margin-top: 1.5rem; max-width: 34ch; font-size: var(--step-small); color: var(--muted); }
.hero__next strong { color: var(--ink); }
.hero__boat {
  position: absolute; left: 47%; top: 6%; bottom: 8%; width: 82vw;
  --tip: 30%;
}
.hero__boat img { object-position: 30% 45%; }
@media (max-width: 63.99em) {
  .hero__text { max-width: 52%; }
  .hero__boat { left: 54%; width: 90vw; top: 12%; bottom: 12%; }
}
@media (max-width: 47.99em) {
  .hero { min-height: 0; display: block; padding-block: 1rem 0; }
  .hero__text { max-width: none; }
  .hero .display { font-size: clamp(2.75rem, 12.4vw, 3.6rem); }
  .hero__lead { font-size: 1.125rem; margin-top: 1.25rem; }
  .hero__actions { margin-top: 1.5rem; }
  .hero__next { margin-top: 1.25rem; }
  .hero__boat { position: relative; left: auto; top: auto; bottom: auto; width: 100%; height: 70svh; max-height: 36rem; margin-top: 2rem; --tip: 26%; }
  .hero__boat img { object-position: 50% 50%; }
}
/* Load: lines rise, the boat opens from the bow, the rest follows. Settled by 1.2s. */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; padding-top: 0.12em; margin-top: -0.12em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(110%); animation: rise-line 800ms var(--ease-expo) forwards; animation-delay: calc(100ms + var(--i) * 90ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise-in 520ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .hero__boat { animation: open-boat 1100ms var(--ease-in-out) 120ms both; }
  .js .hero__boat img { animation: settle 1500ms var(--ease-soft) 80ms both, drift 24s ease-in-out 1600ms infinite alternate; }
}
@keyframes rise-line { to { transform: none; } }
@keyframes rise-in { to { opacity: 1; transform: none; } }
@keyframes open-boat { from { opacity: 0; translate: 6% 0; } to { opacity: 1; translate: 0 0; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.08) translateX(-1.5%); } }

/* ================= training: accordion of filled tiles ================= */
.faq__head { grid-column: 1 / 5; align-self: start; position: sticky; top: 2rem; }
.faq__head p { margin-top: 1.25rem; max-width: 30ch; }
.faq__head .link { display: inline-flex; min-height: var(--touch); align-items: center; margin-top: 0.75rem; font-weight: 600; }
.faq__list { grid-column: 6 / 13; display: grid; gap: 8px; }
.tile { background: var(--surface); transition: background-color var(--t-ui) ease; }
.tile > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4.5rem; padding: 1rem 1.5rem; font-size: var(--step-lead); font-weight: 600; line-height: 1.2;
}
.tile > summary::-webkit-details-marker { display: none; }
.tile__plus { position: relative; flex: none; width: 1rem; height: 1rem; }
.tile__plus::before, .tile__plus::after { content: ""; position: absolute; left: 0; top: calc(50% - 1.5px); width: 100%; height: 3px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.tile__plus::after { transform: rotate(90deg); }
.tile[open] { background: var(--accent); color: var(--accent-ink); }
.tile[open] .tile__plus::after { transform: rotate(0deg); }
.tile__body { padding: 0 1.5rem 1.6rem; }
.tile__body p { max-width: 52ch; }
@media (hover: hover) and (pointer: fine) { .tile:not([open]) > summary:hover { background: var(--line); } }
@media (prefers-reduced-motion: no-preference) {
  .tile[open] .tile__body { animation: rise-in 360ms var(--ease-out) both; }
}
@media (max-width: 63.99em) {
  .faq__head { grid-column: 1 / -1; position: static; margin-bottom: 2rem; }
  .faq__head p { max-width: 46ch; }
  .faq__list { grid-column: 1 / -1; }
}
@media (max-width: 47.99em) {
  .faq__list { gap: 6px; }
  .tile > summary { min-height: 4rem; padding: 0.9rem 1.25rem; font-size: var(--step-body); }
  .tile__body { padding: 0 1.25rem 1.25rem; }
}

/* ================= the boat band: where you sit (the live thing) ================= */
.boat-band__intro { grid-column: 1 / 7; }
.boat-band__intro p { margin-top: 1.25rem; }
.boat-band__note { grid-column: 8 / 13; align-self: end; color: var(--on-ink-muted); }
.boat { margin-top: clamp(2rem, 4vw, 3.5rem); }
.boat__hull {
  --tip: 11%;
  position: relative; background: var(--accent);
  display: grid; grid-template-columns: 1fr repeat(5, 1.4fr) 1fr; grid-template-rows: 1fr 1fr;
  gap: 10px; align-items: stretch;
  padding: clamp(1.25rem, 3vw, 2.5rem) 13%;
  min-height: clamp(13rem, 22vw, 19rem);
}
.seat {
  position: relative; display: grid; place-items: center; min-height: var(--touch);
  background: var(--ink); color: var(--on-ink); border-radius: 6px;
  font-weight: 600; font-size: var(--step-small); line-height: 1.15; text-align: center; padding: 0.4rem;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.seat small { display: block; font-weight: 400; opacity: 0.85; }
.seat:active { transform: scale(0.96); }
.seat[aria-pressed="true"] { background: var(--on-ink); color: var(--ink); }
.seat:focus-visible { outline: 3px solid var(--on-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .seat[aria-pressed="false"]:hover { background: var(--ink-hover); } }
/* bow on the right: drummer at the bow, steerer at the stern */
.seat--drum { grid-column: 7; grid-row: 1 / 3; }
.seat--steer { grid-column: 1; grid-row: 1 / 3; }
.seat[data-bench="1"] { grid-column: 6; } .seat[data-bench="2"] { grid-column: 5; } .seat[data-bench="3"] { grid-column: 4; }
.seat[data-bench="4"] { grid-column: 3; } .seat[data-bench="5"] { grid-column: 2; }
.seat[data-side="L"] { grid-row: 1; } .seat[data-side="P"] { grid-row: 2; }
.boat__info { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 2rem; min-height: 9rem; }
.role { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.role + .role { margin-top: 1.5rem; }
.js .role + .role { margin-top: 0; }
.role h3 { grid-column: 1 / 5; font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.01em; }
.role p { grid-column: 5 / 12; font-size: var(--step-lead); line-height: 1.4; }
@media (max-width: 47.99em) { .role p { font-size: var(--step-body); line-height: 1.5; } }
@media (prefers-reduced-motion: no-preference) {
  .js .role:not([hidden]) { animation: rise-in 320ms var(--ease-out) both; }
}
@media (max-width: 47.99em) {
  .boat-band__note { margin-top: 1rem; }
  .boat__hull {
    --tip: 14%;
    grid-template-columns: 1fr 1fr; grid-template-rows: auto repeat(5, 3rem) auto;
    padding: 18% 14% 15%; min-height: 0; max-width: 22rem; margin-inline: auto;
  }
  .seat--drum { grid-column: 1 / 3; grid-row: 1; min-height: 3rem; }
  .seat--steer { grid-column: 1 / 3; grid-row: 7; min-height: 3rem; }
  .seat[data-bench] { grid-column: auto; }
  .seat[data-side="L"] { grid-column: 1; } .seat[data-side="P"] { grid-column: 2; }
  .seat[data-bench="1"] { grid-row: 2; } .seat[data-bench="2"] { grid-row: 3; } .seat[data-bench="3"] { grid-row: 4; }
  .seat[data-bench="4"] { grid-row: 5; } .seat[data-bench="5"] { grid-row: 6; }
  .boat__info { display: block; min-height: 12rem; }
  .role { display: block; }
  .role p { margin-top: 0.5rem; }
}

/* ================= crews: stacked folders with tabs ================= */
.folders { position: relative; }
.folder { position: relative; }
.folder + .folder { margin-top: -2.75rem; } /* the next tab sits on the band above, like filed folders */
.folder__tabrow { display: flex; align-items: flex-end; height: 2.75rem; padding-inline: var(--margin); }
.folder__tab {
  display: inline-flex; align-items: center; height: 100%; min-width: 15rem; padding: 0.15em 2rem 0;
  background: var(--crew); color: var(--crew-ink);
  font-size: var(--step-sub); letter-spacing: -0.02em; line-height: 1;
  clip-path: polygon(0 100%, 0.9rem 0, calc(100% - 0.9rem) 0, 100% 100%);
}
.folder__band { background: var(--crew); color: var(--crew-ink); padding-block: 1.25rem calc(2.75rem + clamp(2rem, 4vw, 3.5rem)); }
.folder:last-child .folder__band { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.folder__grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 6rem); align-items: center;
  max-width: 100rem; margin: clamp(1rem, 2vw, 2rem) auto 0;
}
.folder__photo { grid-column: 1; --tip: 13%; }
.folder__text { grid-column: 2; align-self: center; max-width: 33rem; padding-block: 1rem; }
.folder__eyebrow { font-size: var(--step-small); font-weight: 600; margin-bottom: .65rem; }
.folder__headline { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 3.75rem); letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
.folder__description { font-size: clamp(1.0625rem, 1.35vw, 1.375rem); line-height: 1.6; margin-top: 1.25rem; max-width: 37ch; }
.folder__captain { margin-top: 1.5rem; font-size: var(--step-small); font-weight: 600; }
.folder__link { display: inline-flex; align-items: center; gap: 1.25rem; min-height: var(--touch); margin-top: 1.25rem; font-weight: 600; text-decoration: none; }
.folder__link > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.folder__link svg { width: 2.75rem; height: 2.75rem; padding: .65rem; border-radius: 50%; background: var(--crew-ink); color: var(--crew); transition: transform var(--t-ui) var(--ease-out); }
.folder__link:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 3px; }
@media (hover: hover) and (pointer: fine) { .folder__link:hover svg { transform: translateX(4px); } }
.folder__credit { margin-top: 0.75rem; font-size: var(--step-small); opacity: 0.85; }
@media (max-width: 47.99em) {
  .folder + .folder { margin-top: -2.5rem; }
  .folder__tabrow { height: 2.5rem; }
  .folder__tab { min-width: 0; padding-inline: 1.5rem; }
  .folder__band { min-height: 0; }
  .folder__grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .folder__text { max-width: 35rem; padding-block: 0 1rem; }
  .folder__headline { font-size: clamp(2rem, 8vw, 2.75rem); }
  .folder__description { max-width: none; }
  .folder__photo { aspect-ratio: 4 / 3; --tip: 12%; }
}

/* ================= races: two-column list with hull bullets ================= */
.races__group + .races__group { margin-top: clamp(3rem, 6vw, 6rem); }
.races__cat { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.races__cat h3 { font-size: var(--step-sub); line-height: 1; letter-spacing: -0.02em; }
.races__count { color: var(--muted); }
.races__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; row-gap: 2.25rem; }
.race { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem; align-items: start; }
.race .hull-bullet { margin-top: 0.5em; width: 2.75rem; height: 1rem; }
.race__line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.race__name { font-weight: 600; font-size: var(--step-lead); line-height: 1.2; }
.race__place { flex: none; color: var(--muted); font-size: var(--step-small); text-align: right; }
.race__desc { margin-top: 0.4rem; color: var(--muted); max-width: 40ch; }
@media (max-width: 63.99em) { .races__list { grid-template-columns: 1fr; } }
@media (max-width: 47.99em) {
  .races__list { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .races__cat { margin-bottom: 1.5rem; }
  .race .hull-bullet { width: 2rem; height: 0.75rem; }
  .race__line { display: block; }
  .race__place { display: block; text-align: left; margin-top: 0.15rem; }
}

/* ================= gallery: one hull frame, contents change ================= */
.frame-section__text { grid-column: 1 / 6; align-self: center; }
.frame-section__text p { margin-top: 1.25rem; max-width: 34ch; }
.frame-section__text .link { display: inline-flex; min-height: var(--touch); align-items: center; margin-top: 0.75rem; font-weight: 600; }
.frame-section__figure { grid-column: 7 / 13; margin: 0; justify-self: center; width: min(100%, 30rem); }
.frame { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; --tip: 15%; cursor: pointer; background: var(--surface); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms ease; }
.frame img:first-child { opacity: 1; }
.js .frame img:first-child:not(.is-on) { opacity: 0; }
.js .frame img.is-on { opacity: 1; }
.frame:focus-visible { outline: none; }
.frame-section__figure:focus-within { outline: 3px solid var(--ink); outline-offset: 6px; }
.frame-caption { margin-top: 1rem; font-size: var(--step-small); color: var(--muted); min-height: 1.5em; text-align: center; }
@media (max-width: 47.99em) {
  .frame-section__figure { margin-top: 2rem; width: 76vw; }
}

/* ================= news list (home teaser and the Aktuálně page) ================= */
.news-list { display: grid; }
.news-item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: 2rem; align-items: start; }
.news-item + .news-item { border-top: 0; }
.news-item:nth-child(even) { background: none; }
.news-item time { grid-column: 1 / 3; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 0.2em; }
.news-item__text { grid-column: 3 / 9; }
.news-item h3 { font-size: var(--step-sub); line-height: 1.08; letter-spacing: -0.02em; }
.news-item h3 a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .news-item h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; } }
.news-item p { margin-top: 0.75rem; }
.news-item__media { grid-column: 10 / 13; margin: 0; aspect-ratio: 16 / 10; }
.news-item__media.hull { --tip: 14%; }
.news-item__media--logo { background: var(--sheet); display: grid; place-items: center; padding: 1.5rem; }
.news-item__media--logo img { max-height: 100%; width: auto; max-width: 80%; object-fit: contain; }
.news-year { font-size: var(--step-head); line-height: 1; letter-spacing: var(--head-tracking); padding-top: 3rem; padding-bottom: 0.5rem; }
@media (max-width: 47.99em) {
  .news-item { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; row-gap: 0.5rem; padding-block: 1.5rem; }
  .news-item time { grid-column: 1; grid-row: 1; padding-top: 0; font-size: var(--step-small); }
  .news-item__text { grid-column: 1 / -1; grid-row: 2; }
  .news-item__media { grid-column: 2; grid-row: 1; aspect-ratio: 16 / 10; }
  .news-item__media--logo { padding: 0.5rem; }
}

/* ================= contact: the coupon with the map ================= */
.coupon { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; background: var(--accent); color: var(--accent-ink); }
.coupon::before, .coupon::after { /* the two notches over the cut line */
  content: ""; position: absolute; left: calc(55.55% - 1.1rem); width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ground);
}
.coupon::before { top: -1.1rem; }
.coupon::after { bottom: -1.1rem; }
.coupon__map { position: relative; min-height: 26rem; margin: 1.25rem 0 1.25rem 1.25rem; overflow: hidden; background: var(--map-land); }
.coupon__info { padding: clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 1.25rem; }
.coupon__info h3 { font-size: var(--step-sub); line-height: 1; letter-spacing: -0.02em; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem 1.25rem; }
@media (max-width: 47.99em) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd + dt { margin-top: 0.6rem; } }
.facts dt { font-weight: 400; }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }
.facts a { text-decoration: underline; }
.coupon .cluster { margin-top: auto; padding-top: 0.5rem; }
.coupon .link { font-weight: 600; min-height: var(--touch); display: inline-flex; align-items: center; }
.map img, .map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map img { object-fit: cover; }
.map__label { font-family: var(--font-text); font-weight: 600; font-size: 20px; fill: var(--ink); paint-order: stroke; stroke: var(--map-land); stroke-width: 5px; stroke-linejoin: round; }
.map__label--water { fill: var(--water-ink); stroke: var(--water); }

.map__marker { fill: var(--ink); }
.map__credit { font-size: var(--step-small); }
.map__credit a { text-decoration: underline; }
@media (max-width: 63.99em) {
  .coupon { grid-template-columns: 1fr; }
  .coupon::before, .coupon::after { left: auto; top: calc(22rem - 1.1rem); bottom: auto; }
  .coupon::before { left: -1.1rem; }
  .coupon::after { right: -1.1rem; }
  .coupon__map { min-height: 0; height: 20.75rem; margin: 0.75rem 0.75rem 0; }
}

/* ================= partners: large marks on tiles ================= */
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.partner { background: var(--sheet); padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 15rem; }
.partner__logo { height: 5rem; width: auto; max-width: 75%; object-fit: contain; object-position: left center; }
.partner .partner__name { font-size: var(--step-sub); color: var(--ink); font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1; letter-spacing: -0.02em; }
.partner p { font-size: var(--step-small); color: var(--muted); max-width: 32ch; }
.partner--head { grid-column: span 2; background: var(--accent); color: var(--accent-ink); justify-content: space-between; }
.partner--head h2 { font-size: var(--step-head); line-height: 0.98; letter-spacing: var(--head-tracking); max-width: 10ch; }
.partner--head p { color: var(--accent-ink); font-size: var(--step-body); }
@media (max-width: 47.99em) {
  .partners { grid-template-columns: 1fr 1fr; gap: 6px; }
  .partner { min-height: 11rem; padding: 1rem; }
  .partner--head { grid-column: 1 / -1; min-height: 0; }
  .partner__logo { height: 3rem; max-width: 100%; }
}

/* ================= footer: DRACI built from five crew blocks ================= */
.site-footer { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }
.blockmark { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; align-items: end; height: clamp(12rem, 34svh, 22rem); }
.blockmark__block { background: var(--crew); color: var(--crew-ink); height: var(--h); display: flex; flex-direction: column; justify-content: space-between; padding: 0.75rem 0.9rem; text-decoration: none; transition: transform var(--t-ui) var(--ease-out); }
.blockmark__letter { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 11vw, 10.5rem); line-height: 0.8; letter-spacing: -0.04em; padding-top: 0.12em; }
.blockmark__crew { font-size: var(--step-small); font-weight: 600; line-height: 1.2; }
@media (hover: hover) and (pointer: fine) { .blockmark__block:hover { transform: translateY(-6px); } }
.footer__grid { margin-top: 3.5rem; row-gap: 2rem; }
.footer__col { grid-column: span 2; }
.footer__col h2 { font-family: var(--font-text); font-size: var(--step-small); font-weight: 600; letter-spacing: 0; color: var(--on-ink-muted); margin-bottom: 0.5rem; }
.footer__col a { display: flex; align-items: center; width: fit-content; min-height: var(--touch); text-decoration: none; } /* as wide as its text, so the hover underline is too */
.footer__contact { grid-column: 8 / 13; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.footer__contact img { width: 5.5rem; height: 5.5rem; }
.footer__contact a { text-decoration: underline; overflow-wrap: anywhere; }
.footer__base { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; font-size: var(--step-small); color: var(--on-ink-muted); }
.footer__base p { max-width: 80ch; }
.footer__base a:not(.btn) { color: var(--on-ink); text-decoration: underline; }
@media (max-width: 63.99em) {
  .footer__col { grid-column: span 3; }
  .footer__contact { grid-column: 7 / 13; }
}
@media (max-width: 47.99em) {
  .blockmark { height: 22svh; min-height: 10rem; gap: 3px; }
  .blockmark__block { padding: 0.4rem 0.35rem; }
  .blockmark__crew { font-size: 0.6875rem; }
  .blockmark__crew { display: none; }
  .footer__col { grid-column: span 6 !important; }
  .footer__contact { grid-column: 1 / -1; }
}

/* ================= page hero: content pages, news, detail ================= */
.page-hero { padding-block: clamp(1rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); row-gap: 2rem; align-items: center; }
.page-hero__text { grid-column: 1 / 7; }
.page-hero h1 { font-size: var(--step-display); line-height: var(--display-leading); letter-spacing: var(--display-tracking); margin-left: -0.04em; }
.page-hero .lead { margin-top: 1.5rem; max-width: 34ch; }
.page-hero__picture { grid-column: 7 / 13; height: clamp(15rem, 44svh, 26rem); --tip: 20%; }
@media (max-width: 47.99em) {
  .page-hero h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); }
  .page-hero__picture { height: auto; aspect-ratio: 16 / 9; --tip: 18%; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .page-hero [data-line] { transform: translateY(110%); animation: rise-line 800ms var(--ease-expo) forwards; animation-delay: calc(100ms + var(--i, 0) * 90ms); }
  .js .page-hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise-in 520ms var(--ease-out) forwards; animation-delay: var(--d, 400ms); }
  .js .page-hero__picture { animation: open-boat 1000ms var(--ease-in-out) 120ms both; }
  .js .page-hero__picture img { animation: settle 1400ms var(--ease-soft) 80ms both; }
}

/* Related pages: three tiles with a hull picture each. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.tile-link { display: grid; gap: 1rem; text-decoration: none; color: var(--ink); }
.tile-link .hull-photo { aspect-ratio: 16 / 10; --tip: 14%; transition: transform var(--t-ui) var(--ease-out); }
.tile-link h3 { font-size: var(--step-sub); line-height: 1; letter-spacing: -0.02em; }
.tile-link p { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .tile-link:hover .hull-photo { transform: translateY(-4px); }
  .tile-link:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
}
@media (max-width: 47.99em) { .tiles { grid-template-columns: 1fr; gap: 2rem; } }

/* ================= content page extras ================= */
.aside-figure { --tip: 22%; aspect-ratio: 3 / 5; max-height: 70svh; width: 100%; }
.aside-caption { margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }
.doc-meta { margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--surface); font-size: var(--step-small); }
.related { padding-block: calc(var(--section) / 2); }

/* ================= auth layout (login, password reset) ================= */
.auth { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth__picture { background: var(--ink); display: grid; place-items: center; padding: 2rem var(--margin) 3.5rem; position: relative; overflow: clip; }
.auth__frame { position: relative; width: min(34rem, 100%); height: min(86svh, 54rem); --tip: 15%; }
.auth__frame img { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; }
.auth__frame img.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .auth__frame img.is-on { animation: drift 16s ease-in-out infinite alternate; } }
.auth__caption { position: absolute; left: var(--margin); bottom: 0.75rem; right: var(--margin); color: var(--on-ink-muted); font-size: var(--step-small); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 1rem; }
.auth__caption p { max-width: none; }
.auth__pause { min-height: var(--touch); color: var(--on-ink); text-decoration: underline; }
.auth__pause:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.auth__picture.is-paused .auth__frame img { animation-play-state: paused; }
.auth__main { display: flex; flex-direction: column; padding: 1rem var(--margin) 2rem; }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.auth__form-wrap { width: 100%; max-width: 28rem; margin: auto; padding-block: 2rem; }
.auth h1 { font-size: var(--step-display); line-height: var(--display-leading); letter-spacing: var(--display-tracking); margin-left: -0.04em; }
.auth__intro { margin-top: 1.25rem; font-size: var(--step-lead); line-height: 1.35; }
.auth .form { margin-top: 2rem; }
.auth__note { margin-top: 1rem; color: var(--muted); }
.auth .flash { margin-top: 1.5rem; }
.auth__links { margin-top: 2rem; display: grid; gap: 0.25rem; }
.auth__links a { text-decoration: underline; min-height: var(--touch); display: inline-flex; align-items: center; justify-self: start; }
.auth__back { font-weight: 600; min-height: var(--touch); display: inline-flex; align-items: center; }
.auth__back--bottom { display: none !important; }
@media (max-width: 63.99em) { .auth h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); } }
@media (prefers-reduced-motion: no-preference) {
  .js .auth [data-line] { transform: translateY(110%); animation: rise-line 800ms var(--ease-expo) forwards; animation-delay: calc(100ms + var(--i, 0) * 90ms); }
  .js .auth [data-load] { opacity: 0; transform: translateY(14px); animation: rise-in 520ms var(--ease-out) forwards; animation-delay: var(--d, 400ms); }
  .js .auth__frame { animation: open-boat 1000ms var(--ease-in-out) 120ms both; }
}
@media (max-width: 47.99em) {
  .auth { grid-template-columns: 1fr; }
  .auth__picture { display: none; } /* phone: the form first, nothing to scroll past */
  .auth__back--top { display: none; }
  .auth__back--bottom { display: inline-flex !important; }
  .auth h1 { font-size: clamp(2.75rem, 12vw, 3.5rem); }
  .auth__intro { font-size: var(--step-lead); }
}
.detail-body { row-gap: 2rem; align-items: start; }
.detail-body__text { grid-column: 1 / 8; }
.detail-body__logo { grid-column: 9 / 13; margin-top: 0; justify-self: stretch; display: grid; place-items: center; min-height: 9rem; }

/* ================= imported pages: crew pages, gallery, lightbox, news extras ================= */
/* Pictures slide in from the right edge on entry; that never widens the page. clip keeps sticky asides working. */
main { overflow-x: clip; }
.page-hero--text .page-hero__text { grid-column: 1 / 11; }
.page-hero h1.is-long { font-size: var(--step-head); } /* news titles run long; two lines at most */
.page-hero__facts { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-top: 1.25rem; font-weight: 600; }
.content-grid__body--wide { grid-column: 1 / -1; }
.content-grid__body--wide.prose { max-width: 72rem; }
.photo-credit { margin-top: 1.5rem; }
.aside-quote { margin-top: 2rem; font-family: var(--font-display); font-size: var(--step-sub); line-height: 1.05; letter-spacing: -0.02em; }
.empty-public { padding: 1.5rem; background: var(--surface); }

/* Crew page (blueprint G): the hero on the crew's colour, then the other crews as their coloured tabs. */
.crew-hero { background: var(--crew); color: var(--crew-ink); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.crew-hero .page-hero { padding-block: clamp(1rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem); }
.crew-hero .breadcrumbs, .crew-hero .breadcrumbs a, .crew-hero .breadcrumbs li + li::before { color: inherit; }
.crew-hero .page-hero__picture { background: color-mix(in srgb, var(--crew-ink) 12%, var(--crew)); }
.crew-tabs { display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 0; list-style: none; }
.crew-tab {
  display: inline-flex; align-items: center; min-height: 3.5rem; padding: 0.2em 2rem 0;
  background: var(--crew); color: var(--crew-ink); text-decoration: none;
  font-family: var(--font-display); font-size: var(--step-sub); letter-spacing: -0.02em; line-height: 1;
  clip-path: polygon(0 100%, 0.9rem 0, calc(100% - 0.9rem) 0, 100% 100%);
  transition: transform var(--t-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .crew-tab:hover { transform: translateY(-4px); } }
.crew-tab:focus-visible { outline: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
@media (max-width: 47.99em) { .crew-tabs li { flex: 1 1 100%; } .crew-tab { width: 100%; } }

/* Gallery (blueprint E): the imported gallery as 16:10 hull thumbnails, 3 / 2 / 1 across. */
.prose--gallery { max-width: none; }
.gallery .wp-block-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
@media (max-width: 63.99em) { .gallery .wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 47.99em) { .gallery .wp-block-gallery { grid-template-columns: 1fr; } }
.gallery .wp-block-gallery > * + * { margin-top: 0; }
.gallery .wp-block-image { margin: 0; aspect-ratio: 16 / 10; --tip: 14%; background: var(--surface); }
.gallery .wp-block-image { clip-path: var(--hull-horizontal); }
.gallery .wp-block-image img, .gallery .wp-block-gallery.is-cropped img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.lightbox__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.lightbox__open:focus-visible img { outline: 3px solid var(--accent); outline-offset: -3px; }
.source-archive .wp-block-image { aspect-ratio: auto; clip-path: none; }
.source-archive .wp-block-image > a { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.gallery .source-archive .wp-block-image img { object-fit: contain; }
.source-archive .wp-block-image figcaption { padding: 0.5rem; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .lightbox__open img { transition: transform var(--t-ui) var(--ease-out); } .lightbox__open:hover img { transform: scale(1.03); } }

/* The viewer: full screen on navy, the photo unmasked, 44px+ controls. */
.lightbox { border: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; background: var(--ink); color: var(--on-ink); }
.lightbox::backdrop { background: var(--ink); }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); align-items: center; gap: 0.5rem; padding: 0.5rem var(--margin) calc(1rem + env(safe-area-inset-bottom, 0px)); }
.lightbox__close { grid-column: 3; grid-row: 1; justify-self: end; min-height: var(--touch); padding-inline: 0.5rem; font-weight: 600; color: var(--on-ink); text-decoration: underline; text-underline-offset: 0.3em; }
.lightbox__figure { grid-column: 2; grid-row: 2; margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.75rem; touch-action: pan-y; }
.lightbox__figure img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__caption { text-align: center; font-size: var(--step-small); color: var(--on-ink-muted); min-height: 1.5em; }
.lightbox__nav { grid-row: 2; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: var(--on-ink); background: rgb(255 255 255 / 0.12); transition: background-color var(--t-hover) ease; }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }
.lightbox__nav:focus-visible, .lightbox__close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .lightbox__nav:hover { background: rgb(255 255 255 / 0.22); } }
@media (max-width: 47.99em) {
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(0, 1fr) auto; }
  .lightbox__close { grid-column: 2; }
  .lightbox__figure { grid-column: 1 / -1; }
  .lightbox__nav { grid-row: 3; }
  .lightbox__nav--prev { grid-column: 1; justify-self: start; }
  .lightbox__nav--next { grid-column: 2; justify-self: end; }
}

/* News detail and related posts: a sponsor's logo sits on white instead of in the hull. */
.news-logo { background: var(--sheet); padding: 1.5rem; }
.news-logo img { max-width: 80%; max-height: 8rem; width: auto; object-fit: contain; }
.tile-link { grid-template-columns: minmax(0, 1fr); align-content: start; } /* titles line up across a row of tiles */
.tile-link__logo { margin: 0; aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--sheet); padding: 1.5rem; transition: transform var(--t-ui) var(--ease-out); }
.tile-link__logo img { max-width: 70%; max-height: 100%; width: auto; object-fit: contain; }
@media (hover: hover) and (pointer: fine) { .tile-link:hover .tile-link__logo { transform: translateY(-4px); } }

/* Crew page body (blueprint G). The hero already shows the crew's name, captain and photo, so the imported heading
   with the old colour swatch, the name and captain lines and every copy of the hero photo stay hidden (the closing
   photo always repeats one shown above); the description comes first at lead size, then the other photos.
   No aside, so it sits in the middle of the page. */
.content-grid--crew .content-grid__body { grid-column: 1 / -1; justify-self: center; width: 100%; display: flex; flex-direction: column; gap: 2.5rem; }
.content-grid--crew .content-grid__body > * + * { margin-top: 0; }
.content-grid--crew :is(.wp-block-group:has(.size-thumbnail), .wp-block-separator, .wp-block-separator + p, p:has(+ .wp-block-separator)) { display: none; }
.content-grid--crew .wp-block-group:has(> .wp-block-separator) { order: -1; }
.content-grid--crew .wp-block-group:has(> .wp-block-separator) p { font-size: var(--step-lead); line-height: 1.4; }
.content-grid--crew .wp-block-image img { margin-inline: auto; } /* a photo narrower than the body sits in the middle too */
.content-grid--crew .wp-block-group:last-child,
.content-grid--crew .wp-block-column:has(img:is([src$="/IMG-20220904-WA0013.jpg"], [src$="/IMG-20220904-WA0015.jpg"])) { display: none; }

/* Tablet: the footer's contact column is narrow, so the logo sits above the facts and the e-mail stays on one line. */
@media (min-width: 48em) and (max-width: 63.99em) { .footer__contact { grid-template-columns: minmax(0, 1fr); } }
/* Tablet login: no room for the back link beside the brand, so it moves under the form as on the phone. */
@media (min-width: 48em) and (max-width: 63.99em) {
  .auth__back--top { display: none; }
  .auth__back--bottom { display: inline-flex !important; }
}

/* Crew overview: photographs, names and an open rhythm instead of legacy image tiles. */
.crew-index { margin-block: 1rem clamp(2rem, 5vw, 5rem); }
.crew-index__list { list-style: none; padding: 0; margin: 0; }
.crew-index__list > li { border-top: 1px solid var(--line); }
.crew-index__list > li:last-child { border-bottom: 1px solid var(--line); }
.crew-index__link {
  display: grid; grid-template-columns: 2rem 9rem minmax(0, 1fr) minmax(9rem, .45fr) 3rem;
  align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); padding: 1.5rem 0;
  color: var(--ink); text-decoration: none;
}
.crew-index__number { color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.crew-index__photo { --tip: 22%; height: 5.5rem; width: 100%; }
.crew-index__photo img { transition: transform var(--t-ui) var(--ease-out); }
.crew-index__name { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.crew-index__trait { color: var(--muted); font-size: var(--step-small); }
.crew-index__arrow { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--crew-tint); color: var(--ink); transition: background var(--t-ui), transform var(--t-ui); }
.crew-index__arrow svg { width: 1.4rem; height: 1.4rem; }
.crew-index__link:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; border-radius: 8px; }
@media (hover: hover) and (pointer: fine) {
  .crew-index__link:hover .crew-index__photo img { transform: scale(1.06); }
  .crew-index__link:hover .crew-index__arrow { background: var(--crew); color: var(--crew-ink); transform: translateX(3px); }
  .crew-index__link:hover .crew-index__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
}
@media (max-width: 63.99em) {
  .crew-index__link { grid-template-columns: 1.5rem 6rem minmax(0, 1fr) 2.5rem; gap: 1rem; }
  .crew-index__photo { height: 4.25rem; grid-column: 2; grid-row: 1 / 3; }
  .crew-index__number { grid-column: 1; grid-row: 1 / 3; }
  .crew-index__name { grid-column: 3; align-self: end; }
  .crew-index__trait { grid-column: 3; align-self: start; }
  .crew-index__arrow { grid-column: 4; grid-row: 1 / 3; width: 2.5rem; height: 2.5rem; }
  .crew-index__link { row-gap: .35rem; }
}
@media (max-width: 35em) {
  .crew-index__link { grid-template-columns: 4.5rem minmax(0, 1fr) 2rem; column-gap: .8rem; padding-block: 1.25rem; }
  .crew-index__number { display: none; }
  .crew-index__photo { grid-column: 1; height: 4rem; }
  .crew-index__name, .crew-index__trait { grid-column: 2; }
  .crew-index__name { font-size: 1.45rem; }
  .crew-index__trait { font-size: .75rem; }
  .crew-index__arrow { grid-column: 3; width: 2rem; height: 2rem; }
}
@media (max-width: 23em) {
  .site-header { gap: .5rem; }
  .site-header .brand { gap: .45rem; }
  .site-header .brand__name { font-size: 1.2rem; }
  .site-header .brand__mark { width: 2.2rem; }
}

/* Taper inspired by the club boat and BuK racing hull viewed from above.
   Photographic frames retain their editorial proportions; seating stays readable. */
.hero__boat { --tip: 42%; }
.folder__photo, .page-hero__picture, .tile-link .hull-photo,
.aside-figure, .frame, .auth__frame, .news-item__media.hull,
.gallery .wp-block-image { --tip: 35%; }
.crew-index__photo { --tip: 32%; }
.boat__hull { --tip: 25%; }
@media (max-width: 47.99em) {
  .hero__boat { --tip: 35%; }
  .boat__hull { --tip: 23%; }
}

@media (max-width: 47.99em) {
  .boat__hull .seat--drum, .boat__hull .seat--steer { width: 75%; justify-self: center; }
}

/* The home hero opens into the viewport edge: only its left bow is tapered. */
@media (min-width: 48em) {
  .hero__boat {
    clip-path: polygon(calc(var(--tip) * 0.000000) 50.00000%,
      calc(var(--tip) * 0.025778) 47.45081%,
      calc(var(--tip) * 0.053096) 44.81481%,
      calc(var(--tip) * 0.081934) 42.10938%,
      calc(var(--tip) * 0.112269) 39.35185%,
      calc(var(--tip) * 0.144079) 36.55961%,
      calc(var(--tip) * 0.177344) 33.75000%,
      calc(var(--tip) * 0.212041) 30.94039%,
      calc(var(--tip) * 0.248148) 28.14815%,
      calc(var(--tip) * 0.285645) 25.39062%,
      calc(var(--tip) * 0.324508) 22.68519%,
      calc(var(--tip) * 0.364717) 20.04919%,
      calc(var(--tip) * 0.406250) 17.50000%,
      calc(var(--tip) * 0.449085) 15.05498%,
      calc(var(--tip) * 0.493200) 12.73148%,
      calc(var(--tip) * 0.538574) 10.54688%,
      calc(var(--tip) * 0.585185) 8.51852%,
      calc(var(--tip) * 0.633011) 6.66377%,
      calc(var(--tip) * 0.682031) 5.00000%,
      calc(var(--tip) * 0.732223) 3.54456%,
      calc(var(--tip) * 0.783565) 2.31481%,
      calc(var(--tip) * 0.836035) 1.32812%,
      calc(var(--tip) * 0.889612) 0.60185%,
      calc(var(--tip) * 0.944274) 0.15336%,
      calc(var(--tip) * 1.000000) 0.00000%,
      100% 0%,
      100% 100%,
      calc(var(--tip) * 1.000000) 100.00000%,
      calc(var(--tip) * 0.944274) 99.84664%,
      calc(var(--tip) * 0.889612) 99.39815%,
      calc(var(--tip) * 0.836035) 98.67188%,
      calc(var(--tip) * 0.783565) 97.68519%,
      calc(var(--tip) * 0.732223) 96.45544%,
      calc(var(--tip) * 0.682031) 95.00000%,
      calc(var(--tip) * 0.633011) 93.33623%,
      calc(var(--tip) * 0.585185) 91.48148%,
      calc(var(--tip) * 0.538574) 89.45312%,
      calc(var(--tip) * 0.493200) 87.26852%,
      calc(var(--tip) * 0.449085) 84.94502%,
      calc(var(--tip) * 0.406250) 82.50000%,
      calc(var(--tip) * 0.364717) 79.95081%,
      calc(var(--tip) * 0.324508) 77.31481%,
      calc(var(--tip) * 0.285645) 74.60938%,
      calc(var(--tip) * 0.248148) 71.85185%,
      calc(var(--tip) * 0.212041) 69.05961%,
      calc(var(--tip) * 0.177344) 66.25000%,
      calc(var(--tip) * 0.144079) 63.44039%,
      calc(var(--tip) * 0.112269) 60.64815%,
      calc(var(--tip) * 0.081934) 57.89062%,
      calc(var(--tip) * 0.053096) 55.18519%,
      calc(var(--tip) * 0.025778) 52.54919%,
      calc(var(--tip) * 0.000000) 50.00000%);
  }
  @supports (clip-path: shape(from 0% 0%, line to 100% 0%, line to 50% 100%, close)) {
    .hero__boat {
      clip-path: shape(from 0% 50%,
        curve to var(--tip) 0% with calc(var(--tip) * .2) 30% / calc(var(--tip) * .55) 0%,
        line to 100% 0%, line to 100% 100%, line to var(--tip) 100%,
        curve to 0% 50% with calc(var(--tip) * .55) 100% / calc(var(--tip) * .2) 70%, close);
    }
  }
}

.footer__studio { margin-top: .5rem; }
.footer__studio strong { color: var(--on-ink); font-weight: 600; }

/* Partner marks sit whole inside the same hull silhouette as editorial photographs. */
.news-item__media--logo.hull, .news-logo.hull, .tile-link__logo.hull {
  --tip: 28%; padding: 14% 22%; display: grid; place-items: center; aspect-ratio: 16 / 10;
}
.news-item__media--logo.hull { padding: 12% 20%; }
.news-item__media--logo img, .news-logo.hull img, .tile-link__logo.hull img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.practical-hero { align-items: center; padding-bottom: clamp(2.5rem, 5vw, 5rem); }
.practical-hero .page-hero__picture { height: clamp(18rem, 35vw, 30rem); }
.practical-hero .lead { max-width: 29ch; }
.visit-strip { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 2rem; padding-block: 2.5rem; background: var(--ink); color: var(--on-ink); }
.visit-strip__label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .9rem; }
.visit-strip p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.2; }
.visit-strip p > span { display: block; font-family: var(--font-text); font-size: 1rem; font-weight: 400; margin-top: .5rem; color: var(--on-ink-muted); }
.practical-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 44px; margin-top: .75rem; font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.visit-strip .practical-link { color: var(--accent); }
.practical-link > span { font-size: 1.5rem; }
.visit-map.coupon { background: var(--surface); border-radius: 1.5rem; overflow: hidden; grid-template-columns: 1.3fr 1fr; }
.visit-map.coupon::before, .visit-map.coupon::after { display: none; }
.visit-map .coupon__map { margin: 0; min-height: 25rem; }
.visit-map .coupon__info { justify-content: center; padding: clamp(1.5rem, 4vw, 4rem); gap: 1.5rem; }
.visit-map .coupon__title { font-family: var(--font-display); font-size: clamp(1.8rem, 2.7vw, 3rem); }
.visit-map .coupon__info > p { line-height: 1.65; }
.visit-map .cluster { margin-top: 0; }
.contact-overview { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; }
.contact-channel { padding: clamp(1.5rem, 3vw, 3rem); background: var(--surface); color: var(--ink); border-radius: 1.25rem; text-decoration: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-channel:first-child { background: var(--accent); }
.contact-channel .visit-strip__label { margin: 0; }
.contact-channel strong { display: block; font-family: var(--font-display); font-size: clamp(1.45rem, 2.7vw, 3rem); line-height: 1.1; letter-spacing: -.025em; overflow-wrap: anywhere; }
.contact-channel > span:last-child { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto; font-size: .875rem; }
.contact-channel:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.contact-channel:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.club-details { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; padding-block: 1rem 3rem; }
.club-details h2 { font-size: 1.5rem; }
.club-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.club-details dt { color: var(--muted); font-size: .8125rem; margin-bottom: .4rem; }
.club-details dd { font-weight: 600; }
.race-directory { background: var(--surface); }
.race-directory .races__group { display: grid; grid-template-columns: 1fr 2.5fr; gap: 3rem; }
.race-directory .races__cat { display: block; }
.race-directory .races__count { display: block; margin-top: .75rem; font-size: .875rem; }
.race-directory .races__list { grid-template-columns: 1fr; gap: 0; }
.race-directory .race { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.race-directory .race__desc { max-width: 55ch; line-height: 1.6; }
.race-invitation { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 8rem); padding-block: clamp(3rem, 7vw, 7rem); }
.race-invitation h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.035em; }
.race-invitation p:not(.visit-strip__label) { margin-top: 1.25rem; max-width: 32ch; }
.race-invitation .hull-photo { --tip: 35%; }
@media (max-width: 63.99em) {
  .contact-overview { gap: 1rem; grid-template-columns: 1fr 1fr; }
  .visit-strip { gap: 1.5rem; }
  .visit-strip__action { grid-column: 1 / -1; }
  .visit-strip { grid-template-columns: 1fr 1fr; }
  .visit-map.coupon { grid-template-columns: 1fr; }
  .visit-map .coupon__map { height: 22rem; min-height: 0; }
}
@media (max-width: 47.99em) {
  .practical-hero .page-hero__picture { height: auto; aspect-ratio: 16 / 11; }
  .contact-overview, .club-details, .race-invitation, .race-directory .races__group { grid-template-columns: 1fr; }
  .contact-channel strong { font-size: clamp(1.5rem, 6vw, 2.3rem); }
  .club-details { gap: 1.5rem; }
  .club-details dl { grid-template-columns: 1fr; gap: 1.25rem; }
  .race-directory .races__group { gap: .5rem; }
  .race-directory .races__cat { display: flex; margin-bottom: .5rem; }
  .race-invitation .hull-photo { grid-row: 1; }
  .visit-strip { gap: 1.75rem; grid-template-columns: 1fr; }
}

/* These original photos need their full height: faces and the bridge sit near the top.
   Keep the hull tips shallow so the silhouette does not cut into the subjects. */
.practical-page--treninky .practical-hero .page-hero__picture {
  --tip: 16%; height: auto; aspect-ratio: 1106 / 1027;
}
.practical-page--kontakty .practical-hero .page-hero__picture {
  --tip: 16%; height: auto; aspect-ratio: 1;
}
.practical-page--treninky .practical-hero .page-hero__picture img,
.practical-page--kontakty .practical-hero .page-hero__picture img {
  object-fit: contain; object-position: center; animation: none;
}
