/* Concursuri Pescuit — "Competition Central" brand layer (loaded after app.css; replaces the earlier "Scoreboard" layer).
   Navy + cool light neutrals structure the site. Lime marks LIVE and nothing else. Gold/silver/bronze are medals (and gold = charity).
   Fishing identity without illustration: measuring-tape ruler, peg (stand) numbers as bibs, catch gauges. */
:root {
  --navy: #0A2540; --navy-2: #12355A; --navy-3: #1C4A78; --lime: #FF6A2B; --lime-ink: #2A1104;
  --float: #FF6A2B; --float-deep: #E2551C; --float-ink: #2A1104; --water: #0A6FC2; --reed: #6E8B3D; --sand: #F3F6F9; --deep: #071B30;
  --medal-gold: #E0A526; --medal-silver: #AEB8C4; --medal-bronze: #B9794A;
  --bg: #F3F6F9; --surface: #FFFFFF; --surface-2: #EEF2F6; --border: #E2E8EF; --border-strong: #B5A988;
  --text: #0A2540; --text-2: #5A6B7D;
  --primary: #0A6FC2; --primary-hover: #0A2540; --on-primary: #FFFFFF; --link: #0A6FC2;
  --gold: #E0A526; --on-gold: #0A2540; --gold-ink: #7A5200; --header-bg: #0A2540; --focus: #0A6FC2; --ocean: #0A6FC2;
  --info-bg: #DDF0EC; --info-ink: #0A5049; --success-bg: #E2F1DC; --success-ink: #2F5A1A; --success: #4E7F2E;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071B30; --surface: #0C2522; --surface-2: #12332F; --border: #1F4641; --border-strong: #326259;
    --text: #E8F1EC; --text-2: #A2BEB5; --primary: #5ED3C3; --primary-hover: #9BE6DA; --on-primary: #04201D; --link: #6FD8C9; --focus: #5ED3C3;
    --gold-ink: #F2C660; --header-bg: #071B30; --navy: #082522; --sand: #071B30;
    --info-bg: #0E3A35; --info-ink: #8FE3D6; --success-bg: #1B3415; --success-ink: #B5DE8F;
  }
}
body { background: var(--bg); color: var(--text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- atoms ---- */
.btn { border-radius: 10px; font-weight: 700; }
.btn-gold, .btn-signal { background: #fff; color: var(--navy); border-color: #fff; } .btn-gold:hover, .btn-signal:hover { background: var(--surface-2); color: var(--navy); border-color: var(--surface-2); }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); } .btn-ghost-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.eyebrow, .kicker { font: 700 .75rem/1.2 Inter, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin: 0 0 var(--s-2); }
.tag-live, .badge.b-live, .badge.s-in_progress { display: inline-flex; align-items: center; gap: 7px; background: var(--lime); color: var(--lime-ink); border: 0; border-radius: 4px; font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; }
.tag-live::before, .badge.b-live::before, .badge.s-in_progress::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-ink); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } } @media (prefers-reduced-motion: reduce) { .tag-live::before, .badge.b-live::before { animation: none; } }
.badge.b-final, .badge.s-finalized { background: var(--navy); color: #fff; border-radius: 4px; } .badge.b-charity { background: var(--gold); color: var(--on-gold); border-radius: 4px; }
.bib { display: inline-grid; place-items: center; min-width: 40px; height: 24px; padding: 0 8px; font-size: .75rem; font-weight: 800; color: var(--navy); background: #fff; border: 1.5px solid var(--navy); border-radius: 3px; position: relative; white-space: nowrap; }
.bib::before, .bib::after { content: ""; position: absolute; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--navy); transform: translateY(-50%); } .bib::before { left: 3px; } .bib::after { right: 3px; }
@media (prefers-color-scheme: dark) { .bib { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); } .bib::before, .bib::after { background: rgba(255, 255, 255, .6); } }
.gauge { position: relative; height: 10px; border-radius: 2px; background: var(--surface-2); overflow: hidden; } .gauge i { position: absolute; inset: 0 auto 0 0; background: var(--navy-3); }
.gauge::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, .55) 9px 10px); }
.gauge.g1 i { background: var(--medal-gold); } .gauge.g2 i { background: var(--medal-silver); } .gauge.g3 i { background: var(--medal-bronze); }
.ruler { height: 14px; color: var(--navy); opacity: .5; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px) bottom / 100% 6px no-repeat, repeating-linear-gradient(90deg, currentColor 0 1.5px, transparent 1.5px 40px) bottom / 100% 12px no-repeat; }
@media (prefers-color-scheme: dark) { .ruler { color: #fff; opacity: .35; } }

/* ---- header / footer ---- */
.site-header { background: var(--navy); border-bottom: 0; }
.brand { gap: 10px; } .brand span { display: grid; line-height: 1.05; } .brand span small { font-size: .6rem; letter-spacing: .2em; font-weight: 600; color: #A9BCD0; text-transform: uppercase; margin-top: 3px; } .brand b { color: #fff; }
.nav a.live-link { display: inline-flex; align-items: center; gap: 8px; } .nav a.live-link::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.site-footer { background: var(--navy); } .footer-credits a { color: #fff; }
.site-footer .brand b { color: #fff; }

/* ---- hero ---- */
.cc-hero { position: relative; background: var(--navy) url("../img/contours.svg") right center / cover no-repeat; color: #fff; margin-top: calc(var(--s-5) * -1); overflow: hidden; }
.cc-hero .container { display: grid; gap: var(--s-6); padding-block: var(--s-7) var(--s-8); align-items: center; position: relative; } @media (min-width: 960px) { .cc-hero .container { grid-template-columns: 1.15fr .85fr; gap: var(--s-8); } }
.cc-hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1; letter-spacing: -.04em; font-weight: 800; margin: 0 0 var(--s-4); text-wrap: balance; } .cc-hero h1 em { font-style: normal; color: var(--lime); }
.cc-hero .lead { color: #C9D6E3; font-size: var(--fs-lg); max-width: 48ch; margin: 0 0 var(--s-5); } .cc-hero .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0 0 var(--s-5); }
.cc-hero .kicker { color: var(--lime); display: inline-flex; align-items: center; gap: 8px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex: none; animation: sig 1.8s infinite; box-shadow: 0 0 0 0 rgba(255, 106, 43, .6); } @keyframes sig { 70% { box-shadow: 0 0 0 9px rgba(255, 106, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 43, 0); } } @media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: 0; padding: 0; font-size: var(--fs-sm); font-weight: 600; color: #C9D6E3; } .proof li { display: flex; gap: 8px; align-items: center; } .proof svg { width: 16px; height: 16px; stroke-width: 3; color: var(--lime); flex: none; } .proof--col { flex-direction: column; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-md); font-weight: 500; margin-bottom: var(--s-5); }
.board { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: var(--s-5); box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .6); color: #fff; }
@media (min-width: 960px) { .board { transform: rotate(1deg); } }
.board header { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); } .board-tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A9BCD0; }
.board h2 { color: #fff; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 4px; } .board h2 a { color: #fff; text-decoration: none; } .board h2 a:hover { text-decoration: underline; } .board-sub { margin: 0 0 var(--s-3); color: #A9BCD0; font-size: var(--fs-sm); }
.board-rows { list-style: none; margin: 0 0 var(--s-2); padding: 0; } .board-rows li { display: grid; grid-template-columns: 30px 1fr auto; gap: var(--s-3); align-items: center; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.board-rows .rk { font-weight: 800; font-size: 1.3rem; color: #7FA79C; } .board-rows .r1 .rk { color: var(--medal-gold); } .board-rows .r2 .rk { color: var(--medal-silver); } .board-rows .r3 .rk { color: var(--medal-bronze); }
.board-rows .nm { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .board-rows .wt { font-weight: 800; font-variant-numeric: tabular-nums; }
.board-empty { color: #A9BCD0; margin: 0 0 var(--s-3); } .board-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--lime); font-weight: 700; text-decoration: none; } .board-cta:hover { text-decoration: underline; } .board-cta svg { width: 16px; height: 16px; }
.board--next .countdown { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0 0 var(--s-3); color: var(--lime); }
.ticker { background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .12); color: #fff; } .ticker .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-6); padding-block: 14px; font-size: var(--fs-sm); font-weight: 600; color: #C9D6E3; } .ticker b { color: #fff; font-size: 1.15rem; margin-right: 4px; }

/* ---- bands ---- */
.band { padding-block: var(--s-8); } .band--navy { background: var(--navy); color: #fff; } .band--navy h2, .band--navy h3 { color: #fff; } .band--white { background: var(--surface); } .band--mist { background: var(--surface-2); }
.band--gold { background: color-mix(in srgb, var(--medal-gold) 14%, var(--bg)); }
.band-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6); } .band-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0; text-wrap: balance; } .band-head p { margin: var(--s-2) 0 0; color: var(--text-2); max-width: 56ch; } .band--navy .band-head p { color: #A9BCD0; }
.band-head > a { font-weight: 700; display: inline-flex; align-items: center; min-height: var(--tap); color: var(--link); } .band--navy .band-head > a { color: var(--lime); } .band .grid { margin-bottom: 0; }
.live-grid { display: grid; gap: var(--s-4); } @media (min-width: 960px) { .live-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } } .live-side { display: grid; gap: var(--s-4); }
.up-grid { display: grid; gap: var(--s-4); } @media (min-width: 960px) { .up-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } } .up-stack { display: grid; gap: var(--s-4); }
.mini-search { display: flex; gap: var(--s-2); } .mini-search input { min-width: 0; width: min(100%, 260px); } .mini-search svg { width: 18px; height: 18px; }
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); } @media (min-width: 860px) { .route { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); } }
.route li { border-top: 3px solid var(--navy); padding-top: var(--s-4); } .route .n { display: block; font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--navy); } .route h3 { margin: var(--s-3) 0 var(--s-2); font-size: 1.2rem; font-weight: 750; letter-spacing: -.02em; } .route p { margin: 0; color: var(--text-2); max-width: 36ch; }
@media (prefers-color-scheme: dark) { .route li { border-color: var(--border-strong); } .route .n { color: var(--text); } }
.styles { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } .style-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: var(--s-4) var(--s-4) 0; text-decoration: none; color: var(--text); display: grid; gap: var(--s-5); align-content: space-between; min-height: 140px; } .style-tile:hover { border-color: var(--navy-3); } .style-tile h3 { font-size: 1.35rem; letter-spacing: -.03em; margin: 0; } .style-tile small { display: block; color: var(--text-2); margin-top: 4px; } .style-tile .ruler { margin-inline: calc(var(--s-4) * -1); }
.offer-grid { display: grid; gap: var(--s-7); align-items: center; } @media (min-width: 960px) { .offer-grid { grid-template-columns: 1fr 1.05fr; gap: var(--s-8); } }
.offer h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; margin: 0 0 var(--s-4); color: #fff; } .offer .lead { color: #B8C9DA; font-size: var(--fs-lg); max-width: 46ch; margin: 0 0 var(--s-5); } .offer .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.offer .proof--col svg { color: var(--lime); } .offer .proof--col { color: #DCEBE5; } .offer .kicker { color: #A9BCD0; }
.ui { background: #fff; color: #0A2540; border-radius: 12px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); overflow: hidden; } .ui-top { display: flex; gap: 6px; padding: 10px 14px; background: #EEF2F6; border-bottom: 1px solid #E2E8EF; } .ui-top i { width: 9px; height: 9px; border-radius: 50%; background: #C2B79C; }
.ui-body { display: grid; grid-template-columns: 140px 1fr; min-height: 270px; } @media (max-width: 600px) { .ui-body { grid-template-columns: 1fr; } .ui-side { display: none; } } .ui-side { background: var(--navy); padding: 14px 10px; display: grid; gap: 4px; align-content: start; font-size: 13px; color: #C2DAD2; } .ui-side span { padding: 7px 10px; border-radius: 6px; } .ui-side .on { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; }
.ui-main { padding: 16px; display: grid; gap: 12px; align-content: start; } .ui-main h3 { font-size: 15px; margin: 0; color: #0A2540; } .stands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .stands span { text-align: center; padding: 9px 0; border: 1px solid #E2E8EF; border-radius: 6px; font-weight: 800; font-size: 13px; color: #5A6B7D; } .stands .on { background: var(--navy); color: #fff; border-color: var(--navy); } .stands .done { background: #E2F3EA; color: #1E7B52; border-color: transparent; }
.ui-input { display: flex; justify-content: space-between; align-items: center; border: 2px solid var(--navy); border-radius: 8px; padding: 12px 14px; font-weight: 800; font-size: 1.5rem; } .ui-input small { font-size: 12px; font-weight: 600; color: #5A6B7D; } .ui-btn { background: var(--navy); color: #fff; text-align: center; border-radius: 8px; padding: 12px; font-weight: 700; }
.ui-caption { margin: var(--s-3) 0 0; color: #B8C9DA; font-size: var(--fs-sm); }

/* ---- competition cards: three families ---- */
.k { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform .12s, box-shadow .12s; }
.k:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); } .k:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; } .k svg { width: 15px; height: 15px; flex: none; }
.k-link::after { content: ""; position: absolute; inset: 0; z-index: 1; } .k a { text-decoration: none; } .k h3 a { color: inherit; }
.k-chip { display: inline-flex; align-self: start; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.k-chip.ok { background: #E2F3EA; color: #1E6B49; } .k-chip.warn { background: #FFF1D6; color: #7A4B00; } .k-chip.urgent { box-shadow: 0 0 0 2px color-mix(in srgb, #1E7B52 40%, transparent); }
@media (prefers-color-scheme: dark) { .k-chip.ok { background: #0F3A31; color: #7FE3C8; } .k-chip.warn { background: #4A3A0F; color: #F7D98A; } }
.k-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: var(--fs-sm); color: var(--text-2); } .k-meta span { display: inline-flex; align-items: center; gap: 5px; }
.k-charity { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--gold-ink); } .k-charity svg { fill: currentColor; stroke: currentColor; }
.k--charity { border-left: 4px solid var(--medal-gold); }
/* upcoming */
.k-up { display: grid; grid-template-columns: 78px 1fr; } .k-date { background: var(--surface-2); display: grid; align-content: center; justify-items: center; padding: 12px 6px; border-right: 1px solid var(--border); line-height: 1; text-align: center; } .k-date b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; } .k-date span { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--link); margin-top: 5px; } .k-date em { font-style: normal; font-size: .7rem; color: var(--text-2); margin-top: 4px; }
.k-up .k-body { padding: var(--s-4); display: grid; gap: 8px; min-width: 0; } .k-up h3 { font-size: 1.12rem; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.k-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-top: 4px; } .k-price { font-weight: 800; font-size: 1.05rem; } .k-places { display: grid; gap: 5px; font-size: .78rem; color: var(--text-2); min-width: 110px; }
.k-cta { display: inline-flex; align-items: center; gap: 4px; font-weight: 750; font-size: var(--fs-sm); color: var(--link); } .k-cta svg { width: 14px; height: 14px; }
.k-up.is-feature { grid-template-columns: 1fr; } .k-up.is-feature .k-photo { height: 190px; background: var(--navy) url("../img/contours.svg") center / cover; position: relative; } .k-up.is-feature .k-photo img { width: 100%; height: 100%; object-fit: cover; display: block; } .k-up.is-feature .k-inner { display: grid; grid-template-columns: 78px 1fr; }
/* live */
.k-live { background: var(--navy); color: #fff; border: 0; box-shadow: 0 0 0 1.5px var(--lime), 0 18px 40px -18px rgba(0, 0, 0, .6); }
.k-live .k-top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--s-4); border-bottom: 1px solid rgba(255, 255, 255, .14); } .k-live .k-top small { color: #A9BCD0; }
.k-live .k-body { padding: var(--s-4); display: grid; gap: var(--s-3); } .k-live h3 { color: #fff; font-size: 1.3rem; margin: 0; } .k-live .k-meta { color: #A9BCD0; }
.k-board { display: grid; } .k-board .r { display: grid; grid-template-columns: 24px 44px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-weight: 600; } .k-board .pos { font-weight: 800; font-size: 1.05rem; } .k-board .w { font-weight: 800; font-variant-numeric: tabular-nums; } .k-board .r:nth-child(1) .pos { color: var(--medal-gold); } .k-board .r:nth-child(2) .pos { color: var(--medal-silver); } .k-board .r:nth-child(3) .pos { color: var(--medal-bronze); } .k-board .bib { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); } .k-board .bib::before, .k-board .bib::after { background: rgba(255, 255, 255, .55); }
.k-live .k-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--s-4); border-top: 1px solid rgba(255, 255, 255, .14); } .k-live .k-cta { color: var(--lime); }
/* final */
.k-final .k-head { padding: var(--s-4) var(--s-4) var(--s-3); display: flex; justify-content: space-between; gap: 10px; align-items: start; } .k-final h3 { font-size: 1.1rem; margin: 4px 0 0; } .k-final .eyebrow { margin: 0; }
.k-stamp { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text); border: 1.5px solid currentColor; border-radius: 3px; padding: 3px 8px; white-space: nowrap; transform: rotate(-3deg); }
.k-pod { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); } .k-pod div { padding: 12px 14px; border-left: 1px solid var(--border); font-size: .8rem; min-width: 0; } .k-pod div:first-child { border-left: 0; background: color-mix(in srgb, var(--medal-gold) 14%, var(--surface)); }
.k-pod b { display: block; font-size: .7rem; letter-spacing: .1em; margin-bottom: 4px; } .k-pod .p1 b { color: #9A6B00; } .k-pod .p2 b { color: #5E6A78; } .k-pod .p3 b { color: #8A5128; } .k-pod strong { display: block; font-size: .85rem; line-height: 1.25; overflow-wrap: anywhere; } .k-pod span { color: var(--text-2); font-weight: 700; }
@media (prefers-color-scheme: dark) { .k-pod .p1 b { color: #F2C660; } .k-pod .p2 b { color: #C9D3DF; } .k-pod .p3 b { color: #E2A877; } }
.k-final .k-none { padding: 0 var(--s-4) var(--s-3); color: var(--text-2); font-size: var(--fs-sm); margin: 0; }
.k-final .k-foot { padding: 12px var(--s-4); border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); color: var(--text-2); }
.k-final.is-review .k-stamp { color: #7A4B00; } @media (prefers-color-scheme: dark) { .k-final.is-review .k-stamp { color: #F7D98A; } }

/* ---- podium zone + results ---- */
.podium-zone { display: grid; gap: var(--s-6); } @media (min-width: 960px) { .podium-zone { grid-template-columns: 5fr 7fr; gap: var(--s-7); align-items: stretch; } }
.pdm { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 10px; min-height: 340px; } .pcol { display: grid; align-content: end; text-align: center; gap: 8px; } .pcol .who strong { display: block; font-size: .95rem; line-height: 1.2; overflow-wrap: anywhere; } .pcol .who span { font-weight: 800; font-size: 1.1rem; }
.pcol .blk { display: grid; place-items: start center; padding-top: 14px; border-radius: 8px 8px 0 0; color: var(--navy); font-weight: 800; font-size: 2.5rem; line-height: 1; position: relative; } .pcol.p1 .blk { height: 180px; background: linear-gradient(var(--medal-gold), #C78F14); } .pcol.p2 .blk { height: 130px; background: linear-gradient(#C9D2DC, var(--medal-silver)); } .pcol.p3 .blk { height: 100px; background: linear-gradient(#CE9068, var(--medal-bronze)); }
.pcol .blk::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(90deg, rgba(10, 37, 64, .5) 0 1px, transparent 1px 8px); }

/* ---- listing header ---- */
.page-band { background: var(--navy) url("../img/contours.svg") right center / cover no-repeat; color: #fff; margin-top: calc(var(--s-5) * -1); padding-block: var(--s-7); } .page-band h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1; letter-spacing: -.04em; font-weight: 800; margin: 0 0 var(--s-3); } .page-band .lead { color: #C9D6E3; margin: 0; max-width: 54ch; } .page-band .kicker { color: var(--lime); }
.list-body { padding-top: var(--s-6); padding-bottom: var(--s-8); }
.list-body .tabs { gap: var(--s-2); border: 0; flex-wrap: wrap; } .list-body .tabs .tab { border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 700; padding-inline: var(--s-4); }
.list-body .tabs .tab[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); } .list-body .tabs .tab.tab-charity[aria-current] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
@media (prefers-color-scheme: dark) { .list-body .tabs .tab[aria-current] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); } }

/* ---- event page, same system ---- */
.event-hero { background: var(--navy); } .event-hero .cover-img img { opacity: .38; }
.event-hero h1 { letter-spacing: -.04em; font-weight: 800; }
.event-nav { background: var(--surface); } .event-nav a[aria-current], .event-nav a.active { color: var(--text); border-bottom-color: var(--navy); }
.auth-side { background: var(--navy) url("../img/contours.svg") right center / cover no-repeat !important; }
.rank-table .gcell { width: 30%; min-width: 120px; } .rank-table td.stand { white-space: nowrap; }
#standings .podium { align-items: end; } #standings .pod { border-radius: 10px 10px 0 0; }
.hero-art, .hero { background-image: none; }

/* ---- small screens ---- */
@media (max-width: 639px) { .cc-hero .container { padding-block: var(--s-6) var(--s-7); } .band { padding-block: var(--s-7); } .band-head { margin-bottom: var(--s-5); } .mini-search { width: 100%; } .mini-search input { flex: 1; width: auto; } .k-up { grid-template-columns: 64px 1fr; } .k-date b { font-size: 1.6rem; } }
@media print { .cc-hero, .band--navy, .ticker { background: #fff !important; color: #000 !important; } }

.k-live .k-foot small { color: #A9BCD0; }
/* Points ranking column */
.rank-table .pts { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; width: 72px; }
@media (max-width: 639px) { .rank-table td.pts { grid-column: 3; font-size: var(--fs-sm); color: var(--text-2); font-weight: 600; } .rank-table td.pts::after { content: " p"; } }

/* ---------------------------------------------------------------- Workspace: auth, dashboard, organizer, admin */
/* Auth side panel */
.auth-side { gap: var(--s-4); justify-content: flex-end; }
.auth-side .kicker { margin: 0; color: #C9D6E3; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; position: relative; z-index: 1; }
.auth-side h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0; }
.auth-side > p { margin: 0; color: #C9D6E3; }
.auth-proof { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); position: relative; z-index: 1; }
.auth-proof li { display: flex; gap: var(--s-3); align-items: center; color: #fff !important; font-weight: 600; }
.auth-side .bib, .ws-on-navy .bib { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); } .auth-side .bib::before, .auth-side .bib::after { background: rgba(255, 255, 255, .7); }
.auth-gauges { display: grid; gap: 8px; position: relative; z-index: 1; } .auth-gauges .gauge { background: rgba(255, 255, 255, .12); }
.auth-side .ruler { color: #fff; opacity: .35; position: relative; z-index: 1; }

/* Sidebar as a navy control panel */
.sidebar { background: var(--navy); border-color: var(--navy); color: #fff; }
.sidebar .org-name { border-bottom-color: rgba(255, 255, 255, .14); } .sidebar .org-name .avatar { background: var(--navy-3); color: #fff; } .sidebar .org-name small { color: #A9BCD0; }
.sidebar h2 { color: #93A9C0; }
.sidebar a { color: #D8E8E2; } .sidebar a .ico { color: #93A9C0; } .sidebar a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar a[aria-current="page"] { background: #fff; color: var(--navy); } .sidebar a[aria-current="page"] .ico { color: var(--navy); }
.sidebar summary { color: #fff; } .sidebar summary:hover { background: rgba(255, 255, 255, .08); }
@media (prefers-color-scheme: dark) { .sidebar { background: #0A2A26; border-color: rgba(255, 255, 255, .1); } }

/* Page header of workspace pages: compact navy panel with a ruler edge */
.page-head { background: var(--navy) url("../img/contours.svg") right center / cover no-repeat; color: #fff; border-radius: var(--r-lg); padding: var(--s-5) var(--s-5) calc(var(--s-5) + 10px); position: relative; overflow: hidden; align-items: center; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; opacity: .3; background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 8px) bottom / 100% 5px no-repeat, repeating-linear-gradient(90deg, #fff 0 1.5px, transparent 1.5px 40px) bottom / 100% 11px no-repeat; }
.page-head h1 { color: #fff; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; } .page-head p { color: #C9D6E3; }
.page-head .btn { background: #fff; color: var(--navy); border-color: #fff; } .page-head .btn:hover { background: var(--surface-2); border-color: var(--surface-2); color: var(--navy); }
.page-head .btn-alt { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); } .page-head .btn-alt:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* KPIs as a scoreboard */
.kpi { position: relative; padding-bottom: calc(var(--s-4) + 8px); }
.kpi b { font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.kpi::after { content: ""; position: absolute; left: var(--s-4); right: var(--s-4); bottom: 6px; height: 8px; opacity: .35; background: repeating-linear-gradient(90deg, var(--navy) 0 1px, transparent 1px 8px) bottom / 100% 4px no-repeat, repeating-linear-gradient(90deg, var(--navy) 0 1.5px, transparent 1.5px 40px) bottom / 100% 8px no-repeat; }
@media (prefers-color-scheme: dark) { .kpi b { color: #fff; } .kpi::after { background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 8px) bottom / 100% 4px no-repeat, repeating-linear-gradient(90deg, #fff 0 1.5px, transparent 1.5px 40px) bottom / 100% 8px no-repeat; } }

/* Dashboard quick actions: tiles with a navy icon plate */
.quick-actions a { font-weight: 700; } .quick-actions a .ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; padding: 9px; flex: none; }
.quick-actions a:hover { border-color: var(--navy-3); }

/* Widget generator */
.gen { display: grid; gap: var(--s-5); align-items: start; } @media (min-width: 1000px) { .gen { grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); } .gen-form { position: sticky; top: 84px; } }
.gen-form fieldset.card { margin: 0 0 var(--s-4); } .gen-form legend { font-weight: 800; padding: 0 var(--s-2); }
.gen-form input[type="color"] { width: 100%; height: 44px; padding: 3px; border-radius: var(--r-sm); } .gen-form .two > div { display: grid; gap: var(--s-1); align-content: start; }
.gen-form fieldset.plain { border: 0; padding: 0; margin: var(--s-4) 0 0; } .gen-form .sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2px var(--s-3); margin-top: var(--s-2); }
.gen-out .card { margin-bottom: var(--s-4); } .gen-out textarea { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.gen-frame { display: block; width: 100%; height: 640px; border: 1px dashed var(--border-strong); border-radius: var(--r-md); background: var(--surface); }
.gen-form fieldset.card { padding-top: var(--s-4); } .gen-form legend { float: left; width: 100%; padding: 0 0 var(--s-3); font-size: 1.1rem; font-weight: 800; } .gen-form legend + * { clear: both; }

/* ---------- Admin: platform settings ---------- */
.set-toc { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-3) 0 var(--s-4); }
.set-toc a { padding: .35rem .8rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.set-toc a:hover { border-color: var(--border-strong); background: var(--surface-2); }
.set-card { scroll-margin-top: 80px; margin-bottom: var(--s-4); }
.set-card > h2 { margin-top: 0; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-4) var(--s-5); margin: var(--s-4) 0; }
.set-row { display: grid; gap: var(--s-1); align-content: start; min-width: 0; }
.set-row label:not(.choice) { font-weight: 600; }
.set-row input:not([type="checkbox"]), .set-row select { width: 100%; }
.set-row .choice { display: flex; gap: var(--s-2); align-items: center; font-weight: 600; }
.set-row .choice input { width: auto; margin: 0; flex: none; }
.set-row input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.set-bool { grid-column: 1 / -1; }
.set-row .hint, .set-row .src { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.4; }
.set-row .src.ok { color: var(--success-ink); display: inline-flex; gap: .3rem; align-items: center; }
.set-row .src.ok svg { width: 14px; height: 14px; }
.set-row .choice.small { font-size: var(--fs-sm); color: var(--text-2); }
.set-status { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.set-status li { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); min-width: 0; }
.set-status li > div { display: grid; gap: .15rem; min-width: 0; }
.set-status code { justify-self: start; max-width: 100%; overflow-wrap: anywhere; font-size: .8em; }
.set-status small { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.4; }
.set-status .ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.set-status .ic svg { width: 16px; height: 16px; }
.set-status .ok .ic { background: var(--success-bg); color: var(--success-ink); }
.set-status .warn { border-color: color-mix(in srgb, var(--warn-ink) 35%, var(--border)); }
.set-status .warn .ic { background: var(--warn-bg); color: var(--warn-ink); }
.set-more { margin-top: var(--s-4); }
.set-more summary { cursor: pointer; font-weight: 600; }
.set-more pre { background: var(--surface-2); padding: var(--s-3); border-radius: var(--r-sm); overflow-x: auto; font-size: .85em; }
.set-callback { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--surface-2); }
.set-callback p { margin: 0 0 var(--s-1); } .set-callback ul { margin: 0; padding-left: 1.1rem; } .set-callback code { overflow-wrap: anywhere; background: var(--surface); }
.set-envlist { padding-left: 1.1rem; } .set-envlist li { margin-bottom: var(--s-1); }
.set-test .btn svg { width: 16px; height: 16px; }

.narrow-form { max-width: 520px; display: grid; gap: var(--s-1); }
.narrow-form .actions { margin-top: var(--s-3); }
