/* fishcup.pl pages (landing, news, contact): the site menu, the plain pages and the contact form.
   Always dark, whatever the visitor picked for the app: the same water-and-gold palette as the app's dark look. */

body.site {
  --st-canvas: #0A1E25; --st-surface: #0E2A33; --st-raise: #12343F; --st-line: #1F3D47;
  --st-ink: #F3F7F8; --st-ink-soft: #9DB4BC; --st-gold: #FFD21F; --st-gold-ink: #0A1E25;
  --st-display: "Barlow Condensed", "Arial Narrow", sans-serif; --st-text: "Barlow", system-ui, sans-serif;
  --st-ease: cubic-bezier(0.23, 1, 0.32, 1);
  background: var(--st-canvas); color: var(--st-ink); font-family: var(--st-text);
  padding-bottom: 0;
}
body.site main.container { max-width: none; padding: 0; margin: 0; }
body.site .flash { max-width: 960px; margin: 92px auto 0; padding: 0 20px; }
body.site :focus-visible { outline: 2px solid var(--st-gold); outline-offset: 3px; border-radius: 6px; }

/* ---- the site menu */
.sb { position: fixed; inset: 0 0 auto 0; z-index: 1200; display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 clamp(16px, 4vw, 48px);
      background: linear-gradient(to bottom, rgba(10, 30, 37, .86), rgba(10, 30, 37, .62)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(243, 247, 248, .06); }
.sb-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--st-ink); text-decoration: none; font: 700 1.55rem/1 var(--st-display); flex: none; }
.sb-mark { color: var(--st-gold); display: inline-flex; }
.sb-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.sb-link { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; background: none; cursor: pointer;
           color: var(--st-ink-soft); font: 600 1.02rem/1 var(--st-text); text-decoration: none; border-radius: 8px; transition: color 160ms var(--st-ease); }
.sb-link:hover, .sb-dd-btn[aria-expanded="true"] { color: var(--st-ink); }
.sb-link.is-on { color: var(--st-ink); }
.sb-link.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--st-gold); }
.sb-dd-btn svg { transition: transform 160ms var(--st-ease); }
.sb-dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.sb-gap { flex: 1; }
.sb-login { font-weight: 400; }
.sb-cta, .ld-cta { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 10px; border: 0; cursor: pointer;
           background: var(--st-gold); color: var(--st-gold-ink); font: 700 1.08rem/1 var(--st-text); text-decoration: none; white-space: nowrap;
           box-shadow: 0 2px 4px rgba(2, 10, 13, .3), 0 8px 18px -6px rgba(2, 10, 13, .45);
           transition: transform 120ms var(--st-ease), background-color 160ms var(--st-ease); }
.sb-cta:hover, .ld-cta:hover { background: #FFDB4D; }
.sb-cta:active, .ld-cta:active { transform: translateY(1px) scale(.98); }
.sb-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--st-ink); cursor: pointer; }

.sb-dd { position: relative; }
.sb-dd-panel { position: absolute; top: calc(100% + 10px); left: -8px; width: 330px; padding: 10px; border-radius: 14px; background: var(--st-surface);
               border: 1px solid var(--st-line); box-shadow: 0 4px 8px rgba(2, 10, 13, .3), 0 24px 48px -12px rgba(2, 10, 13, .6), inset 0 1px 0 rgba(243, 247, 248, .06);
               opacity: 0; transform: translateY(-6px); visibility: hidden; transition: opacity 160ms var(--st-ease), transform 160ms var(--st-ease), visibility 0s 160ms; }
.sb-dd.open .sb-dd-panel { opacity: 1; transform: none; visibility: visible; transition: opacity 160ms var(--st-ease), transform 160ms var(--st-ease); }
.sb-dd-main { display: block; padding: 12px 14px; border-radius: 10px; color: var(--st-ink); text-decoration: none; }
.sb-dd-main:hover { background: var(--st-raise); }
.sb-dd-main b { display: block; font: 700 1.25rem/1.1 var(--st-display); }
.sb-dd-main span { display: block; margin-top: 4px; color: var(--st-ink-soft); font-size: .92rem; line-height: 1.4; }
.sb-dd-league { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; margin-top: 6px; padding: 12px 14px 6px; border-top: 1px solid var(--st-line); }
.sb-dd-label { width: 100%; margin-bottom: 4px; color: var(--st-ink-soft); font-size: .86rem; }
.sb-dd-league a { padding: 8px 12px 8px 0; color: var(--st-ink); font-weight: 600; text-decoration: none; }
.sb-dd-league a:hover { color: var(--st-gold); }
.sb-dd-league a + a::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--st-line); }

@media (max-width: 900px) {
  .sb { height: 60px; gap: 12px; }
  .sb-burger { display: inline-grid; place-items: center; }
  .sb-nav { position: fixed; inset: 60px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; max-height: calc(100dvh - 60px); overflow-y: auto;
            background: var(--st-canvas); border-bottom: 1px solid var(--st-line); box-shadow: 0 24px 48px -12px rgba(2, 10, 13, .7);
            opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity 200ms var(--st-ease), transform 200ms var(--st-ease), visibility 0s 200ms; }
  body.sb-open .sb-nav { opacity: 1; transform: none; visibility: visible; transition: opacity 200ms var(--st-ease), transform 200ms var(--st-ease); }
  .sb-link { padding: 14px 8px; font-size: 1.15rem; justify-content: space-between; }
  .sb-link.is-on::after { left: 8px; right: auto; width: 28px; bottom: 6px; }
  .sb-gap { display: none; }
  .sb-dd-panel { position: static; width: auto; margin: 0 0 6px; box-shadow: none; display: none; opacity: 1; transform: none; visibility: visible; transition: none; }
  .sb-dd.open .sb-dd-panel { display: block; }
  .sb-cta { margin-top: 10px; padding: 15px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-dd-panel, .sb-nav, .sb-dd-btn svg { transition: none !important; }
}

/* ---- plain site pages (news, contact) */
.sp { max-width: 980px; margin: 0 auto; padding: 132px clamp(16px, 4vw, 40px) 96px; }
.sp-head { max-width: 62ch; margin-bottom: 48px; }
.sp-title { margin: 0; font: 700 clamp(3rem, 2rem + 4vw, 5rem)/.94 var(--st-display); letter-spacing: -0.02em; color: var(--st-ink); }
.sp-lead { margin: 18px 0 0; color: var(--st-ink-soft); font-size: 1.12rem; line-height: 1.6; text-wrap: pretty; }
.sp-mail { margin: 16px 0 0; font: 700 1.5rem/1.2 var(--st-display); }
.sp-mail a { color: var(--st-gold); text-decoration: none; }
.sp-mail a:hover { text-decoration: underline; text-underline-offset: .2em; }

.nw-group { margin-top: 56px; }
.nw-h { margin: 0 0 8px; font: 600 1rem/1 var(--st-text); color: var(--st-ink-soft); }
.nw-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-top: 1px solid var(--st-line); }
.nw-item--photo { grid-template-columns: 76px minmax(0, 1fr) 200px; }
.nw-date { margin: 0; line-height: 1; }
.nw-date b { display: block; font: 700 2.6rem/.9 var(--st-display); color: var(--st-ink); font-variant-numeric: tabular-nums; }
.nw-date span { display: block; margin-top: 6px; color: var(--st-ink-soft); font-size: .86rem; font-variant-numeric: tabular-nums; }
.nw-item--live .nw-date b { color: var(--st-gold); }
.nw-body h3 { margin: 0 0 6px; font: 700 1.6rem/1.08 var(--st-display); text-wrap: balance; }
.nw-body h3 a { color: var(--st-ink); text-decoration: none; }
.nw-body h3 a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.nw-body p { margin: 4px 0 0; color: var(--st-ink); line-height: 1.55; max-width: 62ch; }
.nw-body p.nw-meta, .nw-meta { color: var(--st-ink-soft); }
.nw-links { margin-top: 10px !important; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nw-links a { color: var(--st-gold); font-weight: 600; text-underline-offset: .2em; }
.nw-photo { width: 200px; height: 140px; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 18px -6px rgba(2, 10, 13, .6); }
.nw-empty { padding: 32px 0; border-top: 1px solid var(--st-line); color: var(--st-ink-soft); }
.nw-empty a { color: var(--st-gold); }
@media (max-width: 640px) {
  .nw-item, .nw-item--photo { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .nw-date b { font-size: 2rem; }
  .nw-photo { grid-column: 2; width: 100%; height: auto; aspect-ratio: 16 / 10; }
}

/* ---- the contact form ('Zorganizuj zawody'), on the landing page and on /kontakt */
.ld-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: clamp(22px, 3vw, 36px); border-radius: 18px; background: var(--st-surface);
           border: 1px solid var(--st-line); box-shadow: inset 0 1px 0 rgba(243, 247, 248, .06), 0 18px 40px -16px rgba(2, 10, 13, .6); }
.ld-form__title { grid-column: 1 / -1; margin: 0; font: 700 2.1rem/1 var(--st-display); color: var(--st-ink); }
.ld-form__lead { grid-column: 1 / -1; margin: -4px 0 6px; color: var(--st-ink-soft); line-height: 1.5; }
.ld-form__errors { grid-column: 1 / -1; padding: 12px 14px; border-radius: 10px; background: rgba(255, 107, 87, .12); border: 1px solid rgba(255, 107, 87, .45); }
.ld-form__errors p { margin: 0; color: #FFC2B8; }
.ld-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ld-field--full { grid-column: 1 / -1; }
.ld-field span { color: var(--st-ink); font-weight: 600; font-size: .95rem; }
.ld-field small { color: var(--st-ink-soft); font-weight: 400; }
.ld-field input, .ld-field textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--st-line); background: #0B232B; color: var(--st-ink);
           font: 400 1rem/1.4 var(--st-text); caret-color: var(--st-gold); transition: border-color 160ms var(--st-ease); }
.ld-field input::placeholder { color: #6E8A93; }
.ld-field input:hover, .ld-field textarea:hover { border-color: #2D5361; }
.ld-field input:focus, .ld-field textarea:focus { outline: none; border-color: var(--st-gold); box-shadow: 0 0 0 3px rgba(255, 210, 31, .18); }
.ld-field textarea { resize: vertical; min-height: 96px; }
.ld-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ld-form__send { grid-column: 1 / -1; justify-self: start; margin-top: 6px; padding: 15px 24px; font-size: 1.12rem; }
.ld-form__fine { grid-column: 1 / -1; margin: 2px 0 0; color: var(--st-ink-soft); font-size: .88rem; }
.ld-form__fine a { color: var(--st-ink); text-underline-offset: .2em; }
.ld-sent { padding: clamp(22px, 3vw, 36px); border-radius: 18px; background: var(--st-surface); border: 1px solid var(--st-gold); }
.ld-sent h3 { margin: 0; font: 700 2rem/1.05 var(--st-display); color: var(--st-ink); }
.ld-sent p { margin: 10px 0 0; color: var(--st-ink-soft); }
@media (max-width: 560px) { .ld-form { grid-template-columns: 1fr; } }

/* the "Aplikacja" drop-down: a plain list of places on the page */
.sb-dd-panel--list { width: 260px; padding: 8px; }
.sb-dd-panel--list a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--st-ink); font-weight: 600; text-decoration: none; }
.sb-dd-panel--list a:hover { background: var(--st-raise); color: var(--st-gold); }
.sb-dd-btn.is-on::after { content: ""; position: absolute; left: 12px; right: 28px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--st-gold); }
body.site [id] { scroll-margin-top: 84px; }
@media (max-width: 900px) { .sb-dd-panel--list { width: auto; } }
/* the site pages are always dark, also for a visitor who picked the light look: the footer keeps its light-on-dark text */
body.site footer { color: var(--st-ink-soft); border-top-color: var(--st-line); }
