/* =====================================================================================================
   Concursuri Pescuit "Lake at dawn" identity (loaded after app.css and brand.css).
   Deep lake water, the orange tip of a float, reeds and warm sand. The float (pluta) is the mark:
   orange = the main action and LIVE; teal = water, navigation and data; gold/silver/bronze stay medals.
   ===================================================================================================== */
:root {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24C120 8 240 8 360 20S600 36 720 24 960 4 1080 16 1320 34 1440 22V40z'/%3E%3C/svg%3E");
  --wave-h: clamp(18px, 3vw, 38px);
  --scene: url("../img/hero.svg");
  --lake-fade: rgba(7, 27, 48, .94);
  --r-lg: 18px; --r-md: 14px;
  --live: #E2551C;
}
body { background: var(--bg); }

/* header: frosted deep water, float-orange accents */
.site-header { background: color-mix(in srgb, var(--navy) 94%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -18px rgba(0, 0, 0, .55); }
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
.brand b, .site-footer .brand b { color: var(--float); }
.brand span small { color: #A9BCD0; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); box-shadow: inset 0 -2px 0 var(--float); }
@media (max-width: 859px) { .js .nav { background: var(--navy); } }
.avatar { background: var(--float); color: var(--float-ink); }

/* buttons: rounded like a float, orange for the main action */
.btn { border-radius: 999px; }
.btn-gold, .btn-signal { background: var(--float); color: var(--float-ink); border-color: var(--float); box-shadow: 0 8px 22px -10px rgba(255, 106, 43, .8); }
.btn-gold:hover, .btn-signal:hover { background: #FF8550; border-color: #FF8550; color: var(--float-ink); }
/* header call to action keeps the float colour (nav links reset backgrounds) */
.nav a.btn-gold { background: var(--float); color: var(--float-ink); border-color: var(--float); font-weight: 700; }
.nav a.btn-gold:hover { background: #FF8550; color: var(--float-ink); }

/* a small float in front of section labels */
.eyebrow, .page-band .kicker, .offer .kicker { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before, .page-band .kicker::before, .offer .kicker::before { content: ""; width: 9px; height: 13px; flex: none; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; background: linear-gradient(var(--float) 0 55%, #fff 55%); box-shadow: 0 0 0 1.5px color-mix(in srgb, currentColor 55%, transparent); }
.eyebrow { color: var(--primary); }
.band--navy .eyebrow { color: #8CC8FA; }

/* LIVE: float orange with a ripple */
.tag-live, .badge.b-live, .badge.s-in_progress { background: var(--float); color: var(--float-ink); border-radius: 999px; }
.tag-live::before, .badge.b-live::before, .badge.s-in_progress::before { background: var(--float-ink); animation: ripple 1.8s infinite; }
@keyframes ripple { 0% { box-shadow: 0 0 0 0 rgba(42, 17, 4, .5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(42, 17, 4, 0); } }
.note.live { border-color: var(--float); background: color-mix(in srgb, var(--float) 12%, var(--surface)); color: var(--text); }

/* scenes: the dawn lake illustration behind the big headers */
.cc-hero { background: linear-gradient(90deg, var(--lake-fade) 0%, rgba(7, 27, 48, .82) 40%, rgba(7, 27, 48, .3) 72%, rgba(7, 27, 48, .1) 100%), var(--deep) var(--scene) 72% 64% / cover no-repeat; }
@media (max-width: 959px) { .cc-hero { background: linear-gradient(180deg, rgba(7, 27, 48, .45) 0%, rgba(7, 27, 48, .88) 42%, var(--lake-fade)), var(--deep) var(--scene) 78% 0 / auto 520px no-repeat; } }
.cc-hero h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.auth-side em, .hero h1 em, .cc-hero h1 em { color: var(--float); }
.board { background: rgba(7, 34, 31, .72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; }
.board-rows li { border-top-color: rgba(255, 255, 255, .1); }
.ticker { background: var(--deep); position: relative; } .ticker b { color: var(--float); }
.page-band { position: relative; background: linear-gradient(90deg, var(--lake-fade), rgba(7, 27, 48, .8) 55%, rgba(7, 27, 48, .45)), var(--deep) var(--scene) 72% 66% / cover no-repeat; padding-bottom: calc(var(--s-7) + var(--wave-h)); }
.auth-side { background: linear-gradient(180deg, rgba(7, 27, 48, .05) 0%, rgba(7, 27, 48, .5) 45%, var(--lake-fade) 78%), var(--deep) var(--scene) 70% 40% / cover no-repeat !important; }

/* competition header: illustrated cover of the fishing style < dark overlay < text */
.event-hero { background: var(--deep); }
.event-hero .cover-art, .event-hero .cover-img { z-index: 0; }
.event-hero .cover-art { opacity: 1; }
.event-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--lake-fade), rgba(7, 27, 48, .7) 60%, rgba(7, 27, 48, .4)); }
.event-hero > .container { position: relative; z-index: 3; padding-bottom: calc(var(--s-6) + var(--wave-h)); }
.event-hero .breadcrumbs, .event-hero .breadcrumbs a, .event-hero .breadcrumbs [aria-current] { color: #C9D6E3; }
.event-hero h1 { text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }

/* wavy waterline at the bottom of dark scenes: a shape in the page colour rising into the section */
.cc-hero::after, .ticker::after, .page-band::after, .event-hero::after, .band--navy::after {
  content: ""; position: absolute; left: 0; right: 0; top: auto; bottom: -1px; height: var(--wave-h); background: var(--bg); z-index: 2; pointer-events: none;
  -webkit-mask: var(--wave) center bottom / 100% 100% no-repeat; mask: var(--wave) center bottom / 100% 100% no-repeat;
}
.band--navy { position: relative; padding-bottom: calc(var(--s-8) + var(--wave-h)); }
.cc-hero:has(+ .ticker)::after, .ticker:has(+ .band--navy)::after, .band--navy:has(+ .band--navy)::after, .band--navy.offer::after { display: none; }
.band--navy.offer { padding-bottom: var(--s-8); }
.cc-hero:not(:has(+ .ticker)) > .container { padding-bottom: calc(var(--s-8) + var(--wave-h)); }
.ticker:not(:has(+ .band--navy)) > .container { padding-bottom: calc(14px + var(--wave-h)); }

/* footer: the lake at night, with a waterline on top */
.site-footer { position: relative; background: linear-gradient(180deg, var(--navy), var(--deep)); margin-top: calc(var(--s-7) + var(--wave-h)); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--wave-h); background: var(--navy); -webkit-mask: var(--wave) center bottom / 100% 100% no-repeat; mask: var(--wave) center bottom / 100% 100% no-repeat; }
body:has(main > .offer:last-child) .site-footer { margin-top: 0; }
body:has(main > .offer:last-child) .site-footer::before { display: none; }
.site-footer .brand-mark { width: 34px; height: 34px; }

/* bands and section titles */
.band--mist { background: var(--surface-2); }
.band--white { background: var(--surface); }
.band-head h2 { letter-spacing: -.03em; }
.route li { border-top: 0; padding-top: 0; }
.route .n { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 1.9rem; color: var(--float-ink); background: radial-gradient(circle at 50% 36%, #FFA778, var(--float) 64%); box-shadow: 0 0 0 7px color-mix(in srgb, var(--float) 18%, transparent), 0 0 0 15px color-mix(in srgb, var(--float) 8%, transparent); margin: 15px 0 var(--s-2) 15px; }
@media (prefers-color-scheme: dark) { .route .n { color: var(--float-ink); } }

/* competition cards: rounded, warm, the illustrated cover where a feature card has no photo */
.k { border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(19, 35, 31, .05), 0 8px 24px -18px rgba(19, 35, 31, .35); }
.k:hover { box-shadow: 0 2px 4px rgba(19, 35, 31, .06), 0 20px 40px -22px rgba(10, 37, 64, .55); }
.k-up.is-feature .k-photo { background: var(--deep) url("../img/cover-default.svg") center 62% / cover no-repeat; }
.k-up .k-body { display: flex; flex-direction: column; gap: 8px; }
.k-up .k-row { margin-top: auto; padding-top: 4px; }
.k-date { background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--primary) 14%, var(--surface-2))); }
.k-date span { color: var(--float-deep); }
.k-chip { border-radius: 999px; }
.k-live { box-shadow: 0 0 0 1.5px var(--float), 0 22px 44px -20px rgba(0, 0, 0, .6); background: linear-gradient(160deg, var(--navy-2), var(--navy)); }
@media (prefers-color-scheme: dark) { .k-date span { color: #FF9A68; } }

/* tabs, sidebar, workspace headers */
.list-body .tabs .tab[aria-current], .tab.on, .tab[aria-current="page"], .admin-nav a.on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: inset 0 -3px 0 var(--float); }
.list-body .tabs .tab.tab-charity[aria-current] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.sidebar { background: linear-gradient(180deg, var(--navy), var(--deep)); }
.sidebar a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--float); }
.page-head { background: linear-gradient(90deg, rgba(10, 37, 64, .96), rgba(10, 37, 64, .8)), var(--deep) var(--scene) 72% 66% / cover no-repeat; }
.page-head .btn:not(.btn-alt) { background: var(--float); border-color: var(--float); color: var(--float-ink); }
.page-head .btn:not(.btn-alt):hover { background: #FF8550; border-color: #FF8550; color: var(--float-ink); }
.kpi b { color: var(--primary); }
.quick-actions a .ico { background: linear-gradient(160deg, var(--navy-3), var(--navy)); }
.quick-actions a:hover { border-color: var(--float); }

/* forms and cards */
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea { border-radius: 12px; }
.card { border-radius: var(--r-lg); }
.auth .card { box-shadow: 0 24px 50px -30px rgba(10, 37, 64, .45); }

@media (prefers-reduced-motion: reduce) { .tag-live::before, .badge.b-live::before, .badge.s-in_progress::before { animation: none; } }
@media print { .cc-hero::after, .ticker::after, .page-band::after, .event-hero::after, .band--navy::after, .site-footer::before { display: none; } }

/* ---------- Organizer forms: numbered steps, optional parts folded, save always in reach ---------- */
.back-link { margin: 0 0 var(--s-2); font-size: var(--fs-sm); } .back-link a { color: var(--text-2); text-decoration: none; } .back-link a:hover { color: var(--link); }
.status-card { display: grid; gap: var(--s-2); }
.status-line { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.status-public { margin-left: auto; font-weight: 700; font-size: var(--fs-sm); }
.status-next { margin: 0; color: var(--text-2); max-width: 70ch; }
.status-card .actions { margin-top: var(--s-2); }
.push-right { margin-left: auto; }
.link-danger { background: none; border: 0; padding: 0 var(--s-2); min-height: var(--tap); font: inherit; font-weight: 600; font-size: var(--fs-sm); color: var(--danger-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.form-step h2 { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-1); }
.form-step > .muted { margin-bottom: var(--s-2); }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--float); color: var(--float-ink); font-size: 1rem; font-weight: 800; }
.form-grid { display: grid; gap: 0 var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.with-unit { display: flex; gap: var(--s-2); } .with-unit input { flex: 1; min-width: 0; } .with-unit select { width: auto; flex: none; }
details.fold { margin-top: var(--s-4); border-top: 1px solid var(--border); padding-top: var(--s-2); }
details.fold > summary { color: var(--link); gap: var(--s-2); list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-weight: 800; flex: none; }
details.fold[open] > summary::before { content: "−"; }
details.fold-card { margin-top: 0; border-top: 1px solid var(--border); padding-top: var(--s-4); }
details.fold-card > summary { margin: calc(var(--s-2) * -1) 0; }
details.fold .std-form { border: 0; padding: 0; margin: var(--s-2) 0 0; background: none; box-shadow: none; }
details.fold .std-form > h2 { display: none; }
.comp-form .charity-guide { margin: 0 0 var(--s-4); }
.save-bar { position: sticky; bottom: 0; z-index: 30; display: flex; justify-content: flex-end; gap: var(--s-3); padding: var(--s-3) var(--s-4); margin: var(--s-4) calc(var(--s-4) * -1) 0; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--border); }
@media (max-width: 639px) { .save-bar .btn { width: 100%; } }

/* ---------- Widget generator: what visitors get, then copy → paste, look folded ---------- */
.life:has(> li:nth-child(4)) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.life { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.life li { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.life li div { display: grid; gap: 2px; } .life li span:not(.life-ic) { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; }
.life-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.life-ic svg { width: 20px; height: 20px; }
.gen-side { display: grid; gap: var(--s-4); min-width: 0; } .gen-side .card { margin: 0; }
.emb-step textarea { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.gen-side .gen-form { position: static; margin-top: var(--s-3); }
.gen-side .gen-form fieldset.card { border: 0; box-shadow: none; padding: 0; background: none; margin: 0 0 var(--s-4); }
@media (min-width: 1000px) { .gen { grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); } .gen-out { position: sticky; top: 84px; } }
.widget-promo { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; margin: var(--s-5) 0; padding: var(--s-5); border-radius: 18px; color: #fff;
  background: linear-gradient(120deg, rgba(7, 27, 48, .94), rgba(10, 37, 64, .86)), var(--scene, none) center / cover, var(--navy); }
.widget-promo h2 { color: #fff; margin: 0 0 var(--s-1); font-size: var(--fs-xl); } .widget-promo p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 62ch; }
.widget-promo .life-ic { background: rgba(255, 106, 43, .18); color: var(--float); }
.widget-promo > div:first-child { display: flex; gap: var(--s-4); align-items: flex-start; }
.emb-step details.fold-card { border-top: 0; padding-top: 0; } .emb-step details.fold-card > summary { margin: 0; }
.aside-facts { list-style: none; padding: 0; margin: var(--s-3) 0 var(--s-4); display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.aside-facts li { display: flex; gap: var(--s-2); align-items: flex-start; } .aside-facts svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--primary); }
.event-meta .em-place { font-style: normal; }
/* Phones: price, date and the register button come before the long content. */
@media (max-width: 959px) { .event-layout .event-aside { order: -1; } }
/* Competition list: one compact search row, the rest folded. */
.list-filters { padding: var(--s-4) var(--s-5); align-items: end; }
@media (min-width: 760px) { .list-filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; } .list-filters .fa .btn { width: auto; } }
.list-filters label { margin-bottom: var(--s-1); }
.list-filters details.fold { margin-top: var(--s-1); padding-top: var(--s-2); }
.list-filters details.fold .filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
/* Sign-in / sign-up */
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); } .label-row label { margin-bottom: var(--s-1); }
.auth-switch { margin: var(--s-4) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--border); text-align: center; }
.type-pick { border: 0; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: var(--s-2); }
.type-pick legend { font-weight: 700; margin-bottom: var(--s-2); padding: 0; }
.type-card { display: flex; gap: var(--s-3); align-items: center; margin: 0; padding: var(--s-3); border: 1.5px solid var(--border); border-radius: 14px; cursor: pointer; font-weight: 400; background: var(--surface); }
.type-card:hover { border-color: var(--border-strong); }
.type-card:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); box-shadow: 0 0 0 1px var(--primary) inset; }
.type-card:has(input:focus-visible) { outline: 3px solid var(--focus, var(--primary)); outline-offset: 2px; }
.type-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-card > span:last-child { display: grid; gap: 2px; } .type-card small { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.4; }
.type-card .life-ic { width: 40px; height: 40px; }
/* Angler: registrations, dashboard, registration form */
.reg-list { display: grid; gap: var(--s-3); }
.reg-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; margin: 0; padding: var(--s-3) var(--s-4) var(--s-3) var(--s-3); }
.reg-row .k-date { border-radius: 12px; border-right: 0; padding: 10px 4px; align-self: stretch; }
.reg-row h3 { margin: 4px 0 2px; font-size: 1.08rem; } .reg-row h3 a { color: inherit; text-decoration: none; } .reg-row h3 a:hover { color: var(--link); text-decoration: underline; }
.reg-why { margin: 6px 0 0; font-size: var(--fs-sm); }
.reg-facts { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin: 6px 0 0; font-size: var(--fs-sm); }
.reg-row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.reg-row-actions form { margin: 0; }
.reg-row.is-past { opacity: .82; } .reg-row.is-past .k-date b { color: var(--text-2); }
@media (max-width: 639px) { .reg-row { grid-template-columns: 60px minmax(0, 1fr); } .reg-row-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }
.org-link { display: flex; gap: var(--s-3); align-items: center; margin: 0; color: inherit; text-decoration: none; }
.org-link .avatar { width: 44px; height: 44px; border-radius: 12px; flex: none; background: var(--navy); color: var(--float); display: grid; place-items: center; font-weight: 800; }
.org-link > span:nth-child(2) { display: grid; flex: 1; } .org-link small { color: var(--text-2); } .org-link > svg { color: var(--text-2); }
.org-link:hover { border-color: var(--primary); }
.reg-page h1 { margin-bottom: var(--s-1); }
.reg-summary { padding: var(--s-4) var(--s-5); } .reg-summary-title { font-size: 1.15rem; } .reg-summary .aside-facts { margin-bottom: 0; }
.reg-summary .aside-charity { margin-top: var(--s-3); }
.reg-submit { width: 100%; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-3); }
.sec-head h2 { margin: 0; font-size: var(--fs-xl); } .sec-head > a { font-weight: 700; }
.account-grid { display: grid; gap: var(--s-4); align-items: start; margin-bottom: var(--s-4); }
@media (min-width: 900px) { .account-grid { grid-template-columns: 1fr 1fr; } }
.account-grid .card { margin: 0; } .account-grid input, .account-grid select, .account-grid .input-group { max-width: none; }
section.card > details.fold-card { border-top: 0; padding-top: 0; margin: 0; } section.card > details.fold-card > summary { margin: 0; font-weight: 700; } details.fold-danger > summary { font-size: var(--fs-lg); color: var(--danger-ink); }
.link-muted { background: none; border: 0; padding: 0 var(--s-2); min-height: var(--tap); font: inherit; font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.row-actions { white-space: nowrap; } .row-actions form { display: inline-flex; vertical-align: middle; }
#add { scroll-margin-top: 90px; }
.tool-row { margin: 0 0 var(--s-4); }
details.row-remove > summary { list-style: none; display: inline-flex; align-items: center; } details.row-remove > summary::-webkit-details-marker { display: none; }
.table td.num, .table th.num { text-align: right; }
.card.inline-form > div { flex: 1 1 260px; } .card.inline-form input { max-width: none; } .org-link form { margin-left: auto; }

/* Calendar, organizer and venue pages */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.cal-nav h2 { margin: 0; font-size: var(--fs-xl); text-align: center; }
@media (max-width: 639px) { .hide-sm { display: none; } }
.reg-row .k-date em { text-transform: capitalize; }
.page-band a.on-dark { color: #fff; }
.about-card { max-width: 75ch; }
.page-band .lead + p { margin-top: var(--s-3); }

/* Admin: short page intro, compact search, result count */
.admin-h1 { margin-bottom: var(--s-1); }
.admin-lede { color: var(--muted); margin: 0 0 var(--s-4); max-width: 70ch; }
.card.admin-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2); align-items: center; padding: var(--s-3); }
.card.admin-search input { margin: 0; }
.card.admin-search .btn { width: auto; }
.admin-count { margin: var(--s-3) 0 var(--s-2); font-size: var(--fs-sm); }
@media (min-width: 760px) { .list-filters.admin-filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; } }
.card.admin-search .btn { margin: 0; }
.table td.row-actions { white-space: normal; text-align: right; }
.table td.row-actions form { margin: 2px 0; }
.row-actions .btn { white-space: nowrap; }

/* ===== Header v2: one-line wordmark, compact on phones ===== */
.site-header .bar { min-height: 58px; gap: var(--s-2); }
.brand { gap: 10px; min-height: 44px; }
.brand-mark { width: 34px; height: 34px; filter: none; border-radius: 10px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.brand .wordmark { display: block; font-size: 1.14rem; font-weight: 600; letter-spacing: -.035em; line-height: 1; color: #fff; white-space: nowrap; }
.brand .wordmark b { font-weight: 800; color: var(--float); }
@media (min-width: 860px) {
  .site-header .bar { min-height: 70px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand .wordmark { font-size: 1.28rem; }
  .nav { gap: 2px; }
  .nav a.live-link { margin-right: var(--s-2); padding: 0 var(--s-3); border-radius: 999px; background: rgba(255, 106, 43, .14); color: #FFB48F; font-weight: 700; letter-spacing: .02em; min-height: 36px; }
  .nav a.live-link::before { background: var(--float); box-shadow: 0 0 0 4px rgba(255, 106, 43, .22); }
  .nav a.live-link:hover { background: rgba(255, 106, 43, .24); color: #fff; }
}
@media (max-width: 859px) {
  .menu-toggle { min-width: 44px; min-height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
  .js .nav .nav-primary { display: none; }
  .js .nav { top: 100%; padding: var(--s-2) var(--s-4) var(--s-4); gap: 2px; border-radius: 0 0 20px 20px; }
  .js .nav a, .js .nav .link { min-height: 52px; padding: 0 var(--s-3); border-radius: 12px; }
  .js .nav .lang { align-self: flex-start; min-width: 64px; }
  .js .nav .btn { min-height: 52px; font-size: var(--fs-md); border-radius: 14px; }
}

/* ===== Bottom tab bar (phones): the main places within thumb reach ===== */
.tabbar { display: none; }
@media (max-width: 859px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: color-mix(in srgb, var(--navy) 95%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-top: 1px solid rgba(255, 255, 255, .08); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .6); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; padding: 6px 2px; color: rgba(255, 255, 255, .66); text-decoration: none; font-size: .68rem; font-weight: 600; letter-spacing: .01em; -webkit-tap-highlight-color: transparent; }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .ico { width: 23px; height: 23px; }
  .tabbar a[aria-current="page"] { color: #fff; }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--float); }
  .tabbar a[aria-current="page"] .ico { color: var(--float); }
  .tabbar a:active { background: rgba(255, 255, 255, .06); }
  .tabbar .tab-live .ico { color: var(--float); }
  body.has-tabbar { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  body.has-tabbar .cta-bar { bottom: calc(60px + env(safe-area-inset-bottom)); padding-bottom: var(--s-3); }
  body.has-tabbar.has-cta { padding-bottom: calc(136px + env(safe-area-inset-bottom)); }
  body.has-tabbar .toasts { bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.has-tabbar.has-cta .toasts { bottom: calc(148px + env(safe-area-inset-bottom)); }
}

/* ===== Footer: partner logos ===== */
.site-footer .brand { margin: 0 0 var(--s-2); }
.footer-credits { align-items: center; gap: var(--s-4) var(--s-6); }
.fc-group { display: flex; align-items: center; gap: var(--s-2) var(--s-3); flex-wrap: wrap; }
.fc-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #8FB0AA; margin-right: var(--s-1); }
.footer-credits a.fc-logo { display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 8px 16px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); transition: background .15s, border-color .15s, transform .15s; }
.footer-credits a.fc-logo:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .18); transform: translateY(-1px); }
.fc-logo img { display: block; height: 40px; width: auto; }
.fc-logo img[alt="EuPescar.ro"] { height: 46px; }
.fc-logo img[alt="MURAVIAN"] { height: 30px; }
@media (max-width: 639px) { .footer-credits { flex-direction: column; align-items: flex-start; } }
@media (max-width: 859px) {
  body.has-tabbar, body.has-tabbar.has-cta { padding-bottom: 0; }
  body.has-tabbar .site-footer { padding-bottom: calc(var(--s-5) + 60px + env(safe-area-inset-bottom)); }
  body.has-tabbar.has-cta .site-footer { padding-bottom: calc(var(--s-5) + 136px + env(safe-area-inset-bottom)); }
}
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
.k-up, .k-up.is-feature .k-inner { grid-template-columns: 78px minmax(0, 1fr); }
@media (max-width: 639px) { .k-up, .k-up.is-feature .k-inner { grid-template-columns: 64px minmax(0, 1fr); } }
.k-up.is-feature { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 959px) { .event-layout.aside-last .event-aside { order: 0; } }
@media (max-width: 759px) {
  .list-filters { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2); padding: var(--s-3); }
  .list-filters > div:not(.fa) > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .list-filters > div:first-of-type { grid-column: 1; grid-row: 1; }
  .list-filters > .fa { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: var(--s-2); }
  .list-filters > .fa .btn { width: auto; min-width: 52px; padding: 0 14px; }
  .list-filters > .fa .btn-txt { display: none; }
  .list-filters > div:nth-of-type(2) { grid-column: 1 / -1; }
  .list-filters details.fold { margin-top: 0; padding-top: var(--s-1); }
}

/* ---------- Legal / info pages (mobile first) ---------- */
.doc-layout { display: grid; gap: var(--s-5); padding-top: var(--s-5); padding-bottom: var(--s-8); }
.doc-docs { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding: 2px 0; scroll-snap-type: x proximity; }
.doc-docs::-webkit-scrollbar { display: none; }
.doc-docs a { flex: none; scroll-snap-align: start; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; min-height: var(--tap, 44px); display: inline-flex; align-items: center; }
.doc-docs a:hover { border-color: var(--primary); }
.doc-docs a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.doc-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5) var(--s-4); max-width: none; line-height: 1.7; font-size: 1.02rem; }
.doc-body > :first-child { margin-top: 0; }
.doc-body h2 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -.01em; margin: var(--s-6) 0 var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--border); scroll-margin-top: 90px; }
.doc-body h2:first-of-type { border-top: 0; padding-top: 0; }
.doc-body ul { margin: 0 0 var(--s-4); padding-left: 1.2em; }
.doc-body li { margin-bottom: 6px; }
.doc-body li::marker { color: var(--primary); }
.doc-body a { color: var(--link); text-underline-offset: 2px; }
.doc-body strong { color: var(--text); }
.doc-body mark.todo { background: var(--warn-bg); color: var(--warn-ink); padding: 0 6px; border-radius: 4px; font-weight: 600; font-size: .92em; }
.doc-toc { background: var(--surface-2); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-5); }
.doc-toc summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.doc-toc ul { margin: var(--s-2) 0 0; padding: 0; list-style: none; columns: 1; }
.doc-toc li { margin: 0; break-inside: avoid; }
.doc-toc li a { display: block; padding: 6px 0; }
.doc-toc a { text-decoration: none; }
.doc-toc a:hover { text-decoration: underline; }
.doc-foot { display: flex; gap: 10px; align-items: flex-start; margin: var(--s-6) 0 0; padding: var(--s-4); border-radius: var(--r-md); background: var(--info-bg); color: var(--info-ink); }
.doc-foot svg { flex: none; width: 20px; height: 20px; margin-top: 3px; }
@media (min-width: 720px) {
  .doc-body { padding: var(--s-6) var(--s-7); }
  .doc-toc ul { columns: 2; column-gap: var(--s-6); }
}
@media (min-width: 1000px) {
  .doc-layout { grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: var(--s-6); padding-top: var(--s-6); }
  .doc-layout.doc-solo { grid-template-columns: minmax(0, 860px); justify-content: center; }
  .doc-docs { flex-direction: column; overflow: visible; margin: 0; padding: 0; position: sticky; top: 90px; gap: 4px; }
  .doc-docs a { border: 0; background: none; border-radius: var(--r-md); white-space: normal; padding: 10px 14px; }
  .doc-docs a:hover { background: var(--surface-2); }
  .doc-body { max-width: 860px; }
}
@media print {
  .doc-docs, .doc-toc, .tabbar { display: none !important; }
  .doc-layout { display: block; }
  .doc-body { border: 0; padding: 0; }
}
.doc-toc summary { list-style: none; gap: 10px; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--t-fast, .15s); }
.doc-toc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

/* Longer wordmark (Concursuri Pescuit): keep the bar on one line on mid-size screens. */
.nav .btn { white-space: nowrap; }
@media (min-width: 860px) and (max-width: 1100px) {
  .nav a[href$="/developers"] { display: none; }
  .nav { gap: 0; }
}
