/* Academy owner portal — built on app.css tokens (night stadium, pitch green, trophy gold).
   One signature element: chalk pitch markings, used for the readiness "kickoff" board. */

.portal {
  --chalk: rgba(236, 244, 239, .78);
  --chalk-soft: rgba(236, 244, 239, .16);
  --turf: #0b2a1f;
  --floodlight: rgba(247, 212, 143, .16);
  --pending: #f1c567;
  --rejected: #ff8a7a;
  --portal-side: 286px;
  --portal-header: 72px;
  background: var(--bg);
}
.portal::before { opacity: .018; }
.portal .shell { width: min(1240px, calc(100% - 40px)); }
.portal h1, .portal h2, .portal h3 { text-wrap: balance; }
.portal p { text-wrap: pretty; }
.portal :focus-visible { outline: 3px solid rgba(73, 221, 160, .45); outline-offset: 3px; }

/* ---------- Header ---------- */
.portal-header { position: sticky; top: 0; z-index: 50; height: var(--portal-header); background: rgba(6, 17, 15, .9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-soft); }
.portal-header-inner { height: 100%; display: flex; align-items: center; gap: 18px; padding-inline: 24px; }
.portal-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.portal-brand .brand-mark { width: 30px; height: 48px; }
.portal-brand b { color: var(--gold); font-weight: 600; }
.portal-brand-divider { width: 1px; height: 26px; background: var(--line); }
.portal-brand small { color: var(--muted-strong); font-size: 13px; }
.portal-header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.portal-link { color: var(--muted-strong); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; }
.portal-link:hover { color: var(--green); background: rgba(73, 221, 160, .06); }
.portal-user { display: inline-flex; align-items: center; gap: 9px; padding: 5px 6px 5px 12px; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 13px; color: var(--muted-strong); }
.portal-user i { font-size: 20px; color: var(--green); }
.portal-logout { border: 0; background: transparent; color: #d99b96; cursor: pointer; padding: 8px; border-radius: 10px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.portal-logout:hover { background: rgba(255, 116, 109, .08); }

/* ---------- Status ---------- */
.academy-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid currentColor; line-height: 1.6; white-space: nowrap; }
.academy-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.academy-status-draft { color: var(--muted-strong); border-color: var(--line); }
.academy-status-pending { color: var(--pending); border-color: rgba(241, 197, 103, .4); }
.academy-status-approved { color: var(--green); border-color: rgba(73, 221, 160, .4); }
.academy-status-rejected { color: var(--rejected); border-color: rgba(255, 138, 122, .4); }

/* ---------- Crest ---------- */
.crest { flex: none; width: var(--crest-size, 56px); height: var(--crest-size, 56px); border-radius: 30%; padding: 3px; background: linear-gradient(160deg, #f7d48f, #8f6a2e); display: grid; place-items: center; }
.crest > span, .crest > img { width: 100%; height: 100%; border-radius: 28%; object-fit: cover; background: #0c231b; display: grid; place-items: center; color: var(--gold); font-weight: 700; font-size: calc(var(--crest-size, 56px) * .38); }
.crest-plain { background: var(--line); }

/* ---------- Workspace layout ---------- */
.portal-shell { display: grid; grid-template-columns: var(--portal-side) minmax(0, 1fr); min-height: calc(100vh - var(--portal-header)); }
.portal-side { position: sticky; top: var(--portal-header); height: calc(100vh - var(--portal-header)); overflow-y: auto; border-inline-end: 1px solid var(--line-soft); padding: 26px 18px; background: #071512; display: flex; flex-direction: column; gap: 22px; }
.portal-side-academy { display: flex; align-items: center; gap: 12px; }
.portal-side-academy b { display: block; font-size: 15px; line-height: 1.4; }
.portal-side-academy .academy-status { margin-top: 6px; font-size: 11px; padding: 2px 9px; }
.portal-switcher { position: relative; }
.portal-switcher summary { list-style: none; cursor: pointer; color: var(--muted); font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
.portal-switcher summary::-webkit-details-marker { display: none; }
.portal-switcher[open] summary { color: var(--green); }
.portal-switcher-list { margin-top: 10px; display: grid; gap: 4px; }
.portal-switcher-list a { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 10px; font-size: 13px; color: var(--muted-strong); }
.portal-switcher-list a:hover { background: #10271f; color: var(--text); }
.portal-switcher-list .crest { --crest-size: 28px; padding: 2px; }
.portal-nav { display: grid; gap: 3px; }
.portal-nav a { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 8px 13px; border-radius: 12px; color: var(--muted-strong); font-size: 14px; }
.portal-nav a i { font-size: 21px; }
.portal-nav a:hover { background: #10271f; color: var(--text); }
.portal-nav a.active { background: #12301f; color: var(--green); box-shadow: inset -3px 0 0 var(--green); }
.portal-nav .badge { margin-inline-start: auto; min-width: 24px; padding: 0 7px; border-radius: 999px; background: var(--gold); color: #1c1406; font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.portal-nav .dot { margin-inline-start: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--pending); }
.portal-side-foot { margin-top: auto; display: grid; gap: 8px; }
.portal-main { min-width: 0; padding: 34px clamp(20px, 3.4vw, 46px) 80px; }
.portal-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.portal-page-head h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.3; }
.portal-page-head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.portal-page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Panels & forms ---------- */
.panel { border: 1px solid var(--line); background: var(--panel); border-radius: 20px; padding: clamp(20px, 2.4vw, 30px); }
.panel + .panel { margin-top: 18px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-title h2 { margin: 0; font-size: 19px; }
.panel-title p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.portal .field > span { font-size: 13px; }
.portal .field > small { font-size: 12px; line-height: 1.7; }
.portal .field-error { font-size: 12px !important; }
.portal .field input, .portal .field textarea, .portal .field select { font-size: 15px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.field-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.form-actions .hint { color: var(--muted); font-size: 12px; }
.counter { float: inline-end; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.form-error-banner { display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(255, 116, 109, .35); background: rgba(255, 116, 109, .07); color: #ffc9c4; border-radius: 14px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: #091914; overflow: hidden; }
.input-prefix > span { display: grid; place-items: center; padding-inline: 12px; color: var(--muted); font-size: 13px; border-inline-end: 1px solid var(--line); background: #0c211a; direction: ltr; }
.portal .input-prefix input { border: 0 !important; border-radius: 0; background: transparent; }

/* Image pickers (logo / cover) */
.brand-pickers { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; margin-bottom: 22px; }
.image-picker { position: relative; border: 1px dashed var(--line); border-radius: 18px; background: #0a1c16; overflow: hidden; min-height: 190px; display: grid; place-items: center; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.image-picker:hover, .image-picker:focus-within { border-color: var(--green-strong); background: #0c231b; }
.image-picker input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.image-picker img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-picker-logo { aspect-ratio: 1; min-height: 0; border-radius: 30%; }
.image-picker-copy { position: relative; z-index: 1; display: grid; gap: 6px; padding: 18px; font-size: 13px; }
.image-picker-copy i { font-size: 30px; color: var(--green); }
.image-picker.has-image .image-picker-copy { opacity: 0; }
.image-picker.has-image:hover .image-picker-copy { opacity: 1; background: rgba(4, 16, 12, .72); border-radius: 12px; }
.image-picker-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ---------- Kickoff readiness board (signature) ---------- */
.kickoff { position: relative; border-radius: 26px; overflow: hidden; background: radial-gradient(120% 90% at 50% 120%, #10402c 0%, var(--turf) 45%, #07170f 100%); border: 1px solid #1d4a37; padding: 26px clamp(18px, 3vw, 34px) 22px; isolation: isolate; }
.kickoff-lines { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); z-index: -1; opacity: .9; }
.kickoff-lines * { vector-effect: non-scaling-stroke; }
.kickoff-light { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--progress, 0%); z-index: -1; background: linear-gradient(to left, rgba(73, 221, 160, .2), rgba(73, 221, 160, .05)); border-inline-end: 1px solid rgba(73, 221, 160, .35); transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }
[dir=ltr] .kickoff-light { background: linear-gradient(to right, rgba(73, 221, 160, .2), rgba(73, 221, 160, .05)); }
.kickoff-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kickoff-head h2 { margin: 0; font-size: 20px; }
.kickoff-head p { margin: 4px 0 0; color: var(--muted-strong); font-size: 14px; }
.kickoff-center { width: 132px; height: 132px; border-radius: 50%; margin: 18px auto 10px; display: grid; place-items: center; align-content: center; border: 2px solid var(--chalk); background: rgba(4, 18, 12, .55); text-align: center; }
.kickoff-center strong { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.kickoff-center small { color: var(--muted-strong); font-size: 11px; margin-top: 6px; }
.kickoff.is-ready .kickoff-center { border-color: var(--gold); box-shadow: 0 0 0 6px rgba(216, 171, 87, .12), 0 0 60px rgba(247, 212, 143, .25); }
.kickoff.is-ready .kickoff-center strong { color: var(--gold); }
.kickoff-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr)); gap: 8px; position: relative; }
.kickoff-steps::before { content: ""; position: absolute; top: 13px; inset-inline: 6%; height: 2px; background: var(--chalk-soft); }
.kickoff-steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.kickoff-steps a { display: grid; justify-items: center; gap: 8px; color: var(--muted-strong); font-size: 12px; line-height: 1.5; }
.kickoff-steps a:hover { color: var(--text); }
.kickoff-marker { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--chalk-soft); background: #08180f; display: grid; place-items: center; color: transparent; font-size: 15px; -webkit-text-stroke: .9px currentColor; }
.kickoff-steps .done .kickoff-marker { background: var(--green); border-color: var(--green); color: #03110c; }
.kickoff-steps .done a { color: var(--text); }
.kickoff-foot { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; text-align: center; }
.kickoff-foot p { margin: 0; color: var(--muted-strong); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .kickoff-light { transition: none; } }

/* Status banners */
.status-banner { display: flex; gap: 16px; align-items: flex-start; border-radius: 18px; padding: 18px 20px; margin-bottom: 20px; border: 1px solid var(--line); background: var(--panel); }
.status-banner > i { font-size: 28px; flex: none; margin-top: 2px; }
.status-banner h2 { margin: 0; font-size: 17px; }
.status-banner p { margin: 4px 0 0; color: var(--muted-strong); font-size: 14px; }
.status-banner .form-actions { margin-top: 12px; }
.status-banner-pending { border-color: rgba(241, 197, 103, .35); background: rgba(241, 197, 103, .06); }
.status-banner-pending > i { color: var(--pending); }
.status-banner-rejected { border-color: rgba(255, 138, 122, .35); background: rgba(255, 138, 122, .06); }
.status-banner-rejected > i { color: var(--rejected); }
.status-banner-approved { border-color: rgba(73, 221, 160, .3); background: rgba(73, 221, 160, .05); }
.status-banner-approved > i { color: var(--green); }
.review-note { margin-top: 10px; padding: 10px 14px; border-inline-start: 3px solid var(--rejected); background: rgba(0, 0, 0, .18); border-radius: 8px; color: var(--text); font-size: 14px; white-space: pre-line; }

/* Scoreboard (approved academies) */
.scoreboard { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); overflow: hidden; }
.scoreboard > * { padding: 18px 16px; display: grid; gap: 4px; border-inline-start: 1px solid var(--line-soft); }
.scoreboard > *:first-child { border-inline-start: 0; }
.scoreboard strong { font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.scoreboard span { color: var(--muted); font-size: 12px; }
.scoreboard a:hover { background: #10271f; }
.scoreboard .is-hot strong { color: var(--gold); }
.share-link { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #0a1c16; border-radius: 14px; padding: 6px 6px 6px 14px; margin-top: 12px; }
.share-link input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--muted-strong); direction: ltr; font-size: 13px; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.mini-list { display: grid; gap: 8px; }
.mini-list > * { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: #0a1c16; border: 1px solid var(--line-soft); }
.mini-list img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.mini-list b { display: block; font-size: 14px; }
.mini-list small { color: var(--muted); font-size: 12px; }
.mini-list .grow { flex: 1; min-width: 0; }
.missing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.missing-list a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: #0a1c16; border: 1px solid var(--line-soft); font-size: 14px; }
.missing-list a:hover { border-color: var(--green-dark); }
.missing-list i { color: var(--pending); font-size: 18px; }
.missing-list .optional i { color: var(--muted); }

/* ---------- Dashboard ---------- */
.academy-rows { display: grid; gap: 12px; }
.academy-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
.academy-row:hover { border-color: #2f5c49; }
.academy-row .crest { --crest-size: 64px; }
.academy-row h2 { margin: 0; font-size: 19px; line-height: 1.4; }
.academy-row-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.academy-row-meta span { display: inline-flex; align-items: center; gap: 5px; }
.academy-row-meta i { font-size: 16px; color: var(--green-dark); }
.academy-row-meta .hot { color: var(--gold); }
.academy-row-meta .hot i { color: var(--gold); }
.academy-row-actions { display: flex; gap: 8px; align-items: center; }
.meter { display: inline-flex; align-items: center; gap: 8px; }
.meter progress { width: 120px; height: 6px; appearance: none; border: 0; border-radius: 99px; background: #183329; overflow: hidden; }
.meter progress::-webkit-progress-bar { background: #183329; }
.meter progress::-webkit-progress-value { background: var(--green); border-radius: 99px; }
.meter progress::-moz-progress-bar { background: var(--green); }
.meter span { font-size: 12px; color: var(--muted-strong); font-variant-numeric: tabular-nums; }
.empty-pitch { position: relative; border: 1px dashed var(--line); border-radius: 26px; padding: clamp(34px, 6vw, 70px) 24px; text-align: center; overflow: hidden; }
.empty-pitch svg { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); opacity: .5; z-index: -1; }
.empty-pitch h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.empty-pitch p { margin: 0 auto 22px; color: var(--muted-strong); max-width: 52ch; }
.empty-pitch { isolation: isolate; }

/* ---------- Location ---------- */
.map-frame { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); height: min(58vh, 520px); min-height: 340px; background: #0a1914; }
.map-frame .leaflet-container { width: 100%; height: 100%; background: #2a2926; font-family: inherit; }
.map-frame .leaflet-tile-pane { filter: invert(.92) hue-rotate(180deg) saturate(.55) brightness(.92) contrast(.9); }
.map-search { position: absolute; z-index: 500; top: 14px; inset-inline-start: 14px; inset-inline-end: 64px; display: flex; gap: 8px; }
.map-search input { flex: 1; min-width: 0; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8, 24, 18, .94); color: var(--text); padding-inline: 14px; font: inherit; font-size: 15px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.map-search .button { min-height: 46px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.map-results { position: absolute; z-index: 600; top: 66px; inset-inline-start: 14px; inset-inline-end: 64px; max-height: 240px; overflow-y: auto; border-radius: 14px; border: 1px solid var(--line); background: rgba(8, 24, 18, .98); box-shadow: var(--shadow); display: grid; }
.map-results button { text-align: start; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--muted-strong); padding: 12px 14px; cursor: pointer; font-size: 13px; line-height: 1.6; }
.map-results button:hover, .map-results button:focus-visible { background: #10271f; color: var(--text); }
.map-results p { margin: 0; padding: 12px 14px; color: var(--muted); font-size: 13px; }
.map-locate { position: absolute; z-index: 500; bottom: 16px; inset-inline-start: 14px; }
.map-coordinates { position: absolute; z-index: 500; bottom: 30px; inset-inline-end: 14px; font-size: 12px; color: var(--muted-strong); background: rgba(8, 24, 18, .9); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-variant-numeric: tabular-nums; }
.map-pin { width: 44px; height: 54px; position: relative; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); }
.map-pin::before { content: ""; position: absolute; inset: 0 2px 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(160deg, #f7d48f, #c8963d); border: 3px solid #071512; }
.map-pin::after { content: ""; position: absolute; top: 12px; inset-inline-start: 14px; width: 16px; height: 16px; border-radius: 50%; background: #071512; }
.map-hint { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; margin: 12px 2px 0; }
.leaflet-control-attribution { background: rgba(6, 17, 15, .75) !important; color: var(--muted) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--green) !important; }
.leaflet-bar a { background: #0d201a !important; color: var(--text) !important; border-color: var(--line) !important; }

/* ---------- Media gallery ---------- */
.dropzone { display: block; cursor: pointer; position: relative; border: 1.5px dashed #2f5a47; border-radius: 22px; padding: 30px 20px; text-align: center; background: repeating-linear-gradient(90deg, transparent 0 60px, rgba(73, 221, 160, .025) 60px 120px); transition: border-color .2s ease, background-color .2s ease; }
.dropzone.is-dragging { border-color: var(--green); background-color: rgba(73, 221, 160, .06); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone i { font-size: 38px; color: var(--green); }
.dropzone h3 { margin: 8px 0 4px; font-size: 17px; }
.dropzone p { margin: 0; color: var(--muted); font-size: 13px; }
.upload-progress { display: none; margin-top: 16px; }
.upload-progress.is-visible { display: block; }
.upload-progress-track { height: 8px; border-radius: 99px; background: #183329; overflow: hidden; }
.upload-progress-bar { height: 100%; width: 0; background: linear-gradient(to left, var(--green), #2ccb85); transition: width .2s ease; }
.upload-progress-copy { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted-strong); font-size: 13px; font-variant-numeric: tabular-nums; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 20px; }
.gallery-tile { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #0a1c16; display: flex; flex-direction: column; }
.gallery-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0c231b; display: grid; place-items: center; }
.gallery-media img, .gallery-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #06110f; }
.gallery-media .gallery-state { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 12px; background: rgba(4, 16, 12, .72); font-size: 12px; color: var(--muted-strong); }
.gallery-media .gallery-state i { font-size: 26px; }
.gallery-state.is-processing i { color: var(--green); animation: spin 1.2s linear infinite; }
.gallery-state.is-failed i, .gallery-state.is-rejected i { color: var(--rejected); }
.gallery-state.is-review i { color: var(--pending); }
.gallery-type { position: absolute; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(4, 16, 12, .75); color: var(--text); font-size: 15px; }
.gallery-body { padding: 10px 12px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.gallery-body form { display: flex; gap: 6px; }
.gallery-body input { flex: 1; min-width: 0; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #091914; color: var(--text); padding-inline: 10px; font: inherit; font-size: 13px; }
.icon-action { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #0d201a; color: var(--muted-strong); display: grid; place-items: center; cursor: pointer; }
.icon-action:hover { color: var(--text); border-color: var(--green-dark); }
.icon-action.danger:hover { color: var(--rejected); border-color: rgba(255, 138, 122, .5); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gallery-state.is-processing i { animation: none; } }

/* ---------- Reels ---------- */
.reels-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 18px; align-items: start; }
.reel-list { display: grid; gap: 10px; }
.reel-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid var(--line-soft); background: #0a1c16; }
.reel-thumb { width: 64px; height: 86px; border-radius: 12px; overflow: hidden; background: #0c231b; display: grid; place-items: center; color: var(--muted); }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reel-row b { display: block; font-size: 15px; line-height: 1.5; }
.reel-row-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12px; margin-top: 4px; }
.reel-row-meta span { display: inline-flex; gap: 4px; align-items: center; }
.reel-state { font-size: 12px; font-weight: 600; }
.reel-state-published { color: var(--green); }
.reel-state-processing, .reel-state-uploading { color: var(--muted-strong); }
.reel-state-pending_review { color: var(--pending); }
.reel-state-failed, .reel-state-rejected { color: var(--rejected); }
.toggle-row { display: flex; align-items: center; gap: 10px; color: var(--muted-strong); font-size: 14px; margin: 4px 0 16px; }
.toggle-row input { width: 18px; height: 18px; accent-color: var(--green); }

/* ---------- Requests ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; }
.tabs a { padding: 10px 14px; border-radius: 12px 12px 0 0; color: var(--muted-strong); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--green); border-bottom-color: var(--green); }
.tabs a span { min-width: 22px; padding: 0 6px; border-radius: 99px; background: #183329; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.request-list { display: grid; gap: 12px; }
.request-card { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
.request-card img.avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.request-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.request-head h3 { margin: 0; font-size: 17px; }
.role-tag { display: inline-flex; gap: 5px; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: #12301f; color: var(--green); }
.role-tag.coach { background: rgba(216, 171, 87, .12); color: var(--gold); }
.request-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.request-facts span { display: inline-flex; gap: 5px; align-items: center; }
.request-message { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #0a1c16; border: 1px solid var(--line-soft); color: var(--text); font-size: 14px; white-space: pre-line; }
.request-contact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.request-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.request-actions input { flex: 1; min-width: 180px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #091914; color: var(--text); padding-inline: 12px; font: inherit; font-size: 13px; }
.request-decided { margin-top: 10px; color: var(--muted); font-size: 13px; }

/* ---------- Followers ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line-soft); background: #0a1c16; }
.person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.person b { display: block; font-size: 14px; }
.person small { color: var(--muted); font-size: 12px; }

/* Danger zone */
.danger-zone { border-color: rgba(255, 116, 109, .35); }
.danger-zone h2 { color: #ffb3ab; }
.button-danger { background: #3a1513; border-color: #6b2722; color: #ffb3ab; }
.button-danger:hover { background: #4c1a17; border-color: #8a332c; color: #ffd3ce; }

/* ---------- Auth (portal variant) ---------- */
.portal-auth .auth-visual { background-image: url("../images/academy-night.webp"); background-position: 30% bottom; }
.portal-auth .auth-visual::before { background: linear-gradient(to bottom, rgba(2, 12, 9, .78), rgba(2, 12, 9, .35) 55%, rgba(2, 12, 9, .7)); }
.portal-auth .auth-visual-copy h1 { font-size: clamp(36px, 4.4vw, 58px); }
.portal-auth-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; color: var(--muted-strong); font-size: 15px; }
.portal-auth-points li { display: flex; gap: 10px; align-items: flex-start; }
.portal-auth-points i { color: var(--gold); font-size: 20px; margin-top: 2px; }
.portal .auth-card .field input { min-height: 52px; }
.portal-auth-switch { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.portal-auth-switch a { color: var(--green); }

/* ---------- Landing ---------- */
.portal-landing { overflow-x: hidden; }
.landing-hero { position: relative; min-height: min(860px, 100svh); display: grid; align-items: end; isolation: isolate; }
.landing-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; z-index: -2; }
.landing-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to left, rgba(6, 17, 15, .72), rgba(6, 17, 15, 0) 58%),
  linear-gradient(to bottom, rgba(6, 17, 15, .92) 0%, rgba(6, 17, 15, .45) 38%, rgba(6, 17, 15, .2) 62%, var(--bg) 100%); }
[dir=ltr] .landing-hero::after { background:
  linear-gradient(to right, rgba(6, 17, 15, .72), rgba(6, 17, 15, 0) 58%),
  linear-gradient(to bottom, rgba(6, 17, 15, .92) 0%, rgba(6, 17, 15, .45) 38%, rgba(6, 17, 15, .2) 62%, var(--bg) 100%); }
.landing-hero-nav { position: absolute; top: 0; inset-inline: 0; }
.landing-hero-nav .shell { height: 88px; display: flex; align-items: center; gap: 24px; }
.landing-hero-nav nav { margin-inline-start: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted-strong); }
.landing-hero-nav nav a:not(.button):hover { color: var(--green); }
.landing-hero-copy { padding-block: 170px 120px; max-width: 860px; }
.landing-hero-copy h1 { margin: 0; font-size: clamp(42px, 6.4vw, 86px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.landing-hero-copy > p { margin: 22px 0 32px; color: var(--muted-strong); font-size: clamp(16px, 1.6vw, 19px); max-width: 56ch; line-height: 1.85; }
.landing-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.landing-hero-note { margin-top: 26px; display: flex; gap: 10px; align-items: center; color: var(--muted-strong); font-size: 14px; }
.landing-hero-note i { color: var(--gold); font-size: 22px; }
.chalk-pin { position: absolute; inset-inline-end: 12%; bottom: 23%; display: grid; justify-items: center; gap: 10px; color: var(--chalk); font-size: 13px; }
.chalk-pin .map-pin { transform: scale(.9); }
.chalk-pin span { padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--chalk); background: rgba(4, 16, 12, .55); white-space: nowrap; }
.landing-stats { display: flex; gap: 26px; margin-top: 34px; }
.landing-stats div { display: grid; }
.landing-stats strong { font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--gold); }
.landing-stats span { color: var(--muted); font-size: 13px; }
.landing-section { padding-block: clamp(70px, 9vw, 120px); }
.landing-section > .shell > h2 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; }
.landing-section > .shell > p.lead { margin: 0 0 46px; color: var(--muted-strong); font-size: 17px; max-width: 60ch; }
.touchline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: step; }
.touchline::before { content: ""; position: absolute; top: 23px; inset-inline: 0; height: 2px; background: linear-gradient(to left, var(--chalk), var(--chalk-soft)); }
.touchline li { position: relative; padding-inline-end: 24px; counter-increment: step; }
.touchline li::before { content: counter(step); position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--chalk); font-weight: 700; font-size: 18px; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.touchline li:last-child::before { border-color: var(--gold); color: var(--gold); }
.touchline h3 { margin: 0 0 8px; font-size: 19px; }
.touchline p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.showcase-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.showcase-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.showcase-list i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: var(--green); border: 1px solid var(--line); background: var(--panel); }
.showcase-list h3 { margin: 2px 0 4px; font-size: 18px; }
.showcase-list p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.mock-page { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.mock-cover { height: 170px; position: relative; }
.mock-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; }
.mock-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(13, 32, 26, .95)); }
.mock-body { padding: 0 24px 24px; margin-top: -44px; position: relative; }
.mock-body .crest { --crest-size: 84px; }
.mock-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.mock-title h3 { margin: 12px 0 2px; font-size: 22px; display: flex; gap: 6px; align-items: center; }
.mock-title h3 i { color: var(--green); font-size: 20px; }
.mock-title p { margin: 0; color: var(--muted); font-size: 13px; }
.mock-actions { display: flex; gap: 8px; margin-top: 16px; }
.mock-actions span { flex: 1; text-align: center; padding: 10px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.mock-actions .follow { background: linear-gradient(to bottom, #efc873, var(--gold)); color: #1c1406; }
.mock-actions .join { background: var(--green-strong); color: #03110c; }
.mock-map { margin-top: 16px; height: 120px; border-radius: 16px; position: relative; overflow: hidden; border: 1px solid var(--line-soft); background:
  linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 28px 28px,
  radial-gradient(circle at 60% 40%, #15382a, #0a1c16); }
.mock-map::before { content: ""; position: absolute; inset-block: 46%; inset-inline: -10%; height: 10px; background: rgba(216, 171, 87, .18); transform: rotate(-12deg); }
.mock-map .map-pin { position: absolute; top: 22px; inset-inline-start: 46%; transform: scale(.7); }
.mock-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mock-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted-strong); line-height: 1.9; }
.landing-final { border-top: 1px solid var(--line-soft); }
.landing-final .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.landing-final h2 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); }
.landing-final p { margin: 8px 0 0; color: var(--muted); }
.portal-footer { border-top: 1px solid var(--line-soft); padding-block: 26px; color: var(--muted); font-size: 13px; }
.portal-footer .shell { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.portal-footer a { color: var(--muted-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .scoreboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scoreboard > *:nth-child(4) { border-inline-start: 0; }
  .scoreboard > *:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .reels-layout, .overview-grid, .showcase { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-side { position: static; height: auto; border-inline-end: 0; border-bottom: 1px solid var(--line-soft); padding: 16px 16px 10px; gap: 12px; }
  .portal-nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .portal-nav::-webkit-scrollbar { display: none; }
  .portal-nav a { flex: none; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line-soft); font-size: 13px; }
  .portal-nav a.active { box-shadow: none; border-color: rgba(73, 221, 160, .4); }
  .portal-side-foot { display: none; }
  .portal-brand small, .portal-brand-divider { display: none; }
  .portal-user span { display: none; }
  .touchline { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .touchline::before { display: none; }
}
@media (max-width: 700px) {
  .portal .shell { width: calc(100% - 32px); }
  .portal-header-inner { padding-inline: 16px; gap: 10px; }
  .portal-link span { display: none; }
  .portal-main { padding: 22px 16px 70px; }
  .portal-page-head { flex-direction: column; align-items: stretch; }
  .field-row, .field-row-3, .brand-pickers { grid-template-columns: 1fr; }
  .brand-pickers .image-picker-logo { width: 160px; }
  .academy-row { grid-template-columns: auto minmax(0, 1fr); }
  .academy-row-actions { grid-column: 1 / -1; }
  .academy-row-actions .button { flex: 1; }
  .scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scoreboard > * { border-inline-start: 0 !important; border-top: 1px solid var(--line-soft); }
  .scoreboard > *:nth-child(-n+2) { border-top: 0; }
  .scoreboard > *:nth-child(even) { border-inline-start: 1px solid var(--line-soft) !important; }
  .kickoff-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .kickoff-steps::before { display: none; }
  .kickoff-head { flex-direction: column; align-items: flex-start; }
  .request-card { grid-template-columns: 1fr; }
  .landing-hero-nav nav a:not(.button) { display: none; }
  .landing-hero-copy { padding-block: 130px 90px; }
  .chalk-pin { display: none; }
  .touchline { grid-template-columns: 1fr; }
  .reel-row { grid-template-columns: 54px minmax(0, 1fr); }
  .reel-row > :last-child { grid-column: 1 / -1; }
  .map-search { flex-wrap: wrap; }
}

/* ---------- Public academy page (inside the main app chrome) ---------- */
.academy-page { padding-block: 26px 80px; }
.academy-public-guest .academy-page { padding-top: 6px; }
.academy-safety { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.button-gold { background: linear-gradient(to bottom, #efc873, var(--gold)); border-color: #efc873; color: #1c1406; }
.button-gold:hover { background: #f7d48f; border-color: #f7d48f; color: #1c1406; }
.button.icon-only { width: 46px; padding: 0; }
.button.icon-only.is-copied { color: var(--green); border-color: var(--green-strong); }
/* Sized by its own width, not the viewport: the app sidebar eats a variable share of the screen. */
.academy-hero { container-type: inline-size; border: 1px solid var(--line); border-radius: 30px; background: var(--panel); overflow: hidden; }
.academy-hero-cover { position: relative; height: clamp(180px, 26vw, 320px); }
.academy-hero-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.academy-hero-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6, 17, 15, 0) 30%, rgba(13, 32, 26, .96)); }
.academy-hero-body { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "crest copy" ". actions"; gap: 16px 20px; align-items: end; padding: 0 clamp(18px, 3vw, 34px) 22px; margin-top: -64px; }
.academy-hero-body > .crest { grid-area: crest; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.academy-hero-copy { grid-area: copy; min-width: 0; }
.academy-kind { color: var(--gold); font-size: 13px; font-weight: 600; }
.academy-hero-copy h1 { margin: 4px 0 2px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.25; }
.academy-hero-copy h1 i { color: var(--green); font-size: .7em; vertical-align: middle; }
.academy-tagline { margin: 2px 0 6px; color: var(--muted-strong); font-size: 16px; }
.academy-place { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.academy-place i { color: var(--green-dark); font-size: 17px; }
.academy-place span { color: var(--line); margin-inline: 6px; }
.academy-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; align-items: center; }
@container (min-width: 980px) {
  .academy-hero-body { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "crest copy actions"; }
  .academy-actions { justify-content: flex-end; max-width: 440px; }
}
.academy-actions form { margin: 0; }
.academy-member-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 16px; border-radius: 13px; border: 1px solid rgba(73, 221, 160, .4); color: var(--green); font-weight: 600; }
.academy-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); }
.academy-stats > div { padding: 14px 18px; display: grid; gap: 2px; border-inline-start: 1px solid var(--line-soft); }
.academy-stats > div:first-child { border-inline-start: 0; }
.academy-stats strong { font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.academy-stats span { color: var(--muted); font-size: 12px; }
.academy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; margin-top: 18px; align-items: start; }
.academy-main { display: grid; gap: 18px; min-width: 0; }
.academy-main .panel + .panel, .academy-aside .panel + .panel { margin-top: 0; }
.academy-aside { display: grid; gap: 18px; position: sticky; top: 96px; }
.academy-section-title { margin: 0 0 14px; font-size: 19px; }
.academy-about { margin: 0; color: var(--muted-strong); white-space: pre-line; line-height: 1.95; }
.academy-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.academy-gallery figure { margin: 0; border-radius: 16px; overflow: hidden; background: #0a1c16; border: 1px solid var(--line-soft); }
.academy-gallery img, .academy-gallery video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #06110f; }
.academy-gallery figcaption { padding: 8px 12px; color: var(--muted); font-size: 12px; }
.academy-reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.academy-reels .reel-preview { height: 260px; }
.contact-list { display: grid; gap: 8px; }
.contact-list a { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #0a1c16; border: 1px solid var(--line-soft); }
.contact-list a:hover { border-color: var(--green-dark); }
.contact-list i { grid-row: span 2; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #12301f; color: var(--green); font-size: 19px; }
.contact-list span { color: var(--muted); font-size: 12px; }
.contact-list b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.social-row a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: #0a1c16; color: var(--muted-strong); font-size: 21px; }
.social-row a:hover { color: var(--gold); border-color: rgba(216, 171, 87, .5); }
.academy-map { height: 230px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #2a2926; }
.academy-map .leaflet-tile-pane { filter: invert(.92) hue-rotate(180deg) saturate(.55) brightness(.92) contrast(.9); }
.academy-address { display: flex; gap: 8px; align-items: flex-start; color: var(--muted-strong); font-size: 14px; margin: 12px 0; }
.academy-address i { color: var(--green); font-size: 18px; margin-top: 3px; }
.directions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.academy-join-cta p { color: var(--muted); margin: 0 0 14px; }
@media (max-width: 1000px) {
  .academy-layout { grid-template-columns: 1fr; }
  .academy-aside { position: static; }
}
@media (max-width: 760px) {
  .academy-hero-body { grid-template-columns: 1fr; grid-template-areas: "crest" "copy" "actions"; margin-top: -54px; }
  .academy-hero-body > .crest { --crest-size: 86px !important; }
  .academy-actions .button:not(.icon-only), .academy-actions form { flex: 1 1 auto; }
  .academy-actions form .button { width: 100%; }
  .academy-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .academy-stats > div:nth-child(3) { border-inline-start: 0; }
  .academy-stats > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

.portal-status-wrap { padding: 0 16px; }
.portal-status-wrap .step-label { display: block; margin-top: 14px; }

/* Directory cards: the academy crest rides on the cover edge. */
.organization-card-academy > div { position: relative; padding-top: 36px; }
.organization-card-academy .crest { position: absolute; top: -30px; inset-inline-start: 15px; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }

/* Home: the academies section stays visible; its call to action doubles as the empty state. */
.home-academies .directory-academy-cta { margin: 12px 0 0; }
.home-academies .academy-list + .directory-academy-cta { padding: 12px 14px; }
.home-academies .academy-list + .directory-academy-cta b { font-size: 14px; }
.home-academies-empty { padding: 22px 18px; }

/* Directory call-to-action for academy owners */
.directory-academy-cta { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(216, 171, 87, .35); background: linear-gradient(to left, rgba(216, 171, 87, .1), rgba(216, 171, 87, .02)); }
.directory-academy-cta > i:first-child { font-size: 30px; color: var(--gold); }
.directory-academy-cta span { flex: 1; display: grid; }
.directory-academy-cta b { font-size: 16px; }
.directory-academy-cta small { color: var(--muted-strong); font-size: 13px; }
.directory-academy-cta > i:last-child { color: var(--gold); font-size: 20px; }
.directory-academy-cta:hover { border-color: var(--gold); }
