/* Compact homepage cards; all content stays available within each card. */
#aranity-app #latest-events {align-items:start}
#aranity-app #latest-events > .event-card {height:38rem;max-height:none;min-height:24rem;display:flex;flex-direction:column;overflow:hidden}
#aranity-app #latest-events .event-art {flex:0 0 auto}
#aranity-app #latest-events .event-copy {flex:1;min-height:0;overflow:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
#aranity-app .event-art > a {display:block}
#aranity-app .event-art > a > img {position:relative;inset:auto;width:100%;height:auto;max-height:none;object-fit:contain;opacity:1;display:block}
#aranity-app .event-art > a:focus-visible {outline:3px solid #21e6c1;outline-offset:-3px}
#aranity-app .whole-card {cursor:pointer}
#aranity-app .event-podium-place .emblem,#aranity-app .desk-badge {display:inline-grid;place-items:center;flex-shrink:0}
#aranity-app .event-podium-place .emblem img,#aranity-app .desk-badge img {object-fit:contain;object-position:center;width:100%;height:100%;inset:0;margin:auto}
#aranity-app .event-podium-place > a {display:flex;align-items:center;gap:.5rem}
#aranity-app .hall-podium .podium-card {text-align:center}
#aranity-app .hall-podium .podium-card h2 a,#aranity-app .hall-podium .podium-card h3 a,#aranity-app .hall-podium .desk-team {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.65rem}
#aranity-app .hall-podium .desk-badge,#aranity-app .hall-podium .emblem {width:3.5rem;height:3.5rem;margin-inline:auto}
#aranity-app .cup-facts {display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem}
#aranity-app .cup-facts > span {display:flex;flex-direction:column;gap:.3rem}
#aranity-app .tabs a.is-current,#aranity-app .desk-tabs [aria-selected="true"] {background:#17c9cf;color:#061925;border-color:#17c9cf;font-weight:800;box-shadow:inset 0 -3px 0 #067d85}
#aranity-app .desk-report .ea-match-report {width:100%;min-width:0}
#aranity-app .desk-report .table {max-width:100%;overflow:auto}
#aranity-app .desk-report .desk-stat-editor {margin-top:1.5rem}
#aranity-app .cup-team-record {display:flex;justify-content:center;gap:.75rem;padding:.5rem;font-variant-numeric:tabular-nums}
#aranity-app .scorer-podium {margin-top:1rem}
@media(max-width:600px){
 #aranity-app #latest-events > .event-card {height:38rem;max-height:none;min-height:23rem}
 #aranity-app .desk-report {width:calc(100% - 1rem);max-width:none;padding:1rem}
 #aranity-app .cup-facts {grid-template-columns:repeat(2,minmax(0,1fr))}
 #aranity-app .hall-podium {gap:.6rem}
}

/* Header selection is text-only; keyboard focus keeps its normal outline. */
#aranity-app #primary-nav a.is-current{color:#087d80;background:transparent;border-color:transparent;box-shadow:none;font-weight:800}
#aranity-app:not(.light) #primary-nav a.is-current{color:#54e2d3}
#aranity-app #latest-events .event-copy{padding:18px}
#aranity-app #latest-events .event-art{height:9rem}
#aranity-app #latest-events .event-art>a,#aranity-app #latest-events .event-art>a>img{height:100%;width:100%;object-fit:contain}
#aranity-app #latest-events .competition-facts.compact{gap:6px;margin:12px 0}
#aranity-app #latest-events .competition-facts.compact>div{padding:6px}
#aranity-app #latest-events .event-copy h3{margin:6px 0 10px;font-size:23px}
#aranity-app .event-podium-place{display:grid;grid-template-columns:1.8rem minmax(0,1fr);align-items:center;gap:.5rem}
#aranity-app .event-podium-place>strong{width:1.8rem;text-align:center;font-variant-numeric:tabular-nums}
#aranity-app .event-podium-place>a{min-width:0;display:flex;align-items:center;margin:0;gap:.5rem}
#aranity-app .event-podium-place .emblem{width:2rem;height:2rem;flex:0 0 2rem;margin:0}
#aranity-app .competition-success{margin:0;max-width:100%;overflow:auto}
#aranity-app .competition-success table{width:100%;border-collapse:collapse}
#aranity-app .competition-success th,#aranity-app .competition-success td{padding:12px 10px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--line,#355166)}
#aranity-app .competition-success th:first-child,#aranity-app .competition-success td:first-child{width:2.2rem;font-variant-numeric:tabular-nums;text-align:center}
#aranity-app .competition-success td:nth-child(2)>a,#aranity-app .competition-success .desk-team{display:flex;align-items:center;justify-content:flex-start;gap:.65rem;text-align:left}
#aranity-app .competition-success .emblem,#aranity-app .competition-success .desk-badge{width:2.25rem;height:2.25rem;flex:0 0 2.25rem;margin:0}
#aranity-app .ea-pitch-side h4{height:3.5rem;margin:10px 0;overflow:auto}
#aranity-app .ea-pitch-band{height:calc(32px + var(--band-rows,1)*126px);min-height:0;box-sizing:border-box}
#aranity-app .ea-pitch-band>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:120px;gap:6px;align-items:start}
#aranity-app .ea-pitch-player{width:100%;height:120px;box-sizing:border-box}
#aranity-app .ea-pitch-player strong{height:2.4em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#aranity-app .ea-pitch-player>span,#aranity-app .ea-pitch-player>small{height:1.4em;line-height:1.4;white-space:nowrap}
#aranity-app .toolbar>label,#aranity-app .toolbar>.competition-picker{flex:1 1 180px;min-width:0;max-width:100%;width:180px}
#aranity-app .competition-picker{min-width:0;width:100%;max-width:100%}
#aranity-app .competition-menu>summary{height:48px;min-height:48px;max-height:48px;padding:12px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#aranity-app .competition-menu{box-sizing:border-box;width:100%;max-width:100%;align-self:stretch}
#aranity-app .competition-menu[open]>.competition-menu-items{position:absolute;left:0;right:0;z-index:30;background:var(--panel,#0b2031);box-shadow:0 8px 20px #0005;border:1px solid var(--line,#527085)}
#aranity-app .all-time-controls{display:flex;gap:1rem;align-items:end;flex-wrap:wrap}
#aranity-app .all-time-controls>label{flex:1 1 240px}
#aranity-app .all-time-controls button{min-height:48px}
#aranity-app .toolbar>label>input,#aranity-app .toolbar>label>select{width:100%;height:50px;box-sizing:border-box}

/* Administration: one clearly selected text label, without heavy filled buttons. */
#aranity-app .admin-tabs a{background:transparent;box-shadow:none;border:0;border-bottom:2px solid transparent;color:#c7d9e5;border-radius:0;padding:.65rem .85rem}
#aranity-app .admin-tabs a.is-current{color:#69f1d3;border-bottom-color:currentColor;font-weight:800}
#aranity-app.light .admin-tabs a{color:#334b5e}
#aranity-app.light .admin-tabs a.is-current{color:#006758}
#aranity-app .admin-tabs a:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
#aranity-app .cup-launch{display:grid;gap:1rem;min-width:0}
#aranity-app .cup-launch [hidden]{display:none}

/* Complete reports on every viewport: scroll data tables, never hide their columns. */
#aranity-app .desk-report {max-height:94dvh;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}
#aranity-app .desk-report>* {min-width:0;max-width:100%;box-sizing:border-box}
#aranity-app .ea-lineups {display:block;width:100%;min-width:0}
#aranity-app .ea-pitch-comparison {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;min-width:0}
#aranity-app .ea-pitch-band {height:auto;min-height:130px}
#aranity-app .ea-pitch-band>div {grid-template-columns:repeat(var(--formation-columns,3),minmax(0,1fr));grid-auto-rows:auto;gap:4px}
#aranity-app .ea-pitch-player {height:auto;min-height:105px}
#aranity-app .ea-pitch-player strong {height:auto;min-height:2.4em;display:block;overflow:visible;-webkit-line-clamp:unset;overflow-wrap:anywhere}
#aranity-app .ea-pitch-player>span,#aranity-app .ea-pitch-player>small {height:auto;white-space:normal}
#aranity-app .ea-pitch-side h4 {height:auto;min-height:3.5rem;overflow:visible}
#aranity-app .desk-report .table-wrap,#aranity-app .desk-report .rich-table {overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
#aranity-app .desk-report table {min-width:max-content}
#aranity-app .cup-media-preview img {max-width:180px;max-height:110px;object-fit:contain}
@media(max-width:900px){#aranity-app .ea-pitch-comparison {grid-template-columns:1fr}}
@media(max-width:600px){#aranity-app .desk-report {width:calc(100vw - 12px);margin:6px auto;padding:12px;max-height:calc(100dvh - 12px)}#aranity-app .ea-pitch {padding:12px 3px}#aranity-app .ea-pitch-band {padding:8px 2px}#aranity-app .ea-pitch-player strong {font-size:10px}#aranity-app .desk-report th,#aranity-app .desk-report td {display:table-cell!important}#aranity-app .cup-fields {grid-template-columns:1fr}}
