/* The youth section (Nachwuchs): mobile first, nothing wider than the screen. */
.youth__hub, .youth { min-width: 0; }
.youth__areas, .youth__decisions, .youth__counts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.youth__area { display: grid; gap: 4px; }
.youth__area-head { display: flex; justify-content: space-between; gap: 8px; }
.youth__area-label { display: inline-flex; align-items: center; gap: 4px; }
.youth__bar { position: relative; height: 14px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.youth__bar-fill { height: 100%; background: var(--lamp-ok); }
.youth__area--star .youth__bar-fill { background: var(--accent, var(--lamp-ok)); }
.youth__bar-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); }
.youth__plus { margin: 0; font-weight: 700; }
.youth__total { margin: 0; font-weight: 700; }
.youth__teams { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.youth__team { display: grid; gap: 2px; padding: 10px; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: inherit; text-decoration: none; }
.youth__decision { display: grid; gap: 8px; }
.youth__counts a, .youth__staff-link { display: inline-block; min-height: 44px; line-height: 44px; }
/* team page: roster cards with the range bar (360 px safe) */
.youth__roster, .youth__games, .youth__goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.youth__junior-tap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; width: 100%; min-height: 44px; padding: 8px 10px; text-align: left; color: inherit; font: inherit; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; }
.youth__junior-tap > * { min-width: 0; overflow-wrap: anywhere; }
.youth__junior-tap .youth__range, .youth__junior-tap > :last-child { grid-column: 1 / -1; }
.youth__junior-name { font-weight: 700; }
.youth__junior-ovr { font-weight: 700; grid-row: 1; grid-column: 2; }
.youth__late { margin-left: 6px; }
.youth__range { position: relative; display: block; height: 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 5px; }
.youth__range-span { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 4px; opacity: .85; }
.youth__range-anchor { position: absolute; top: 2px; bottom: 2px; width: 1px; background: var(--text-muted); opacity: .6; text-decoration: none; }
.youth__range-tick { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1px; background: var(--text); border-radius: 1px; box-shadow: 0 0 0 1px var(--bg); }
.youth__range-legend { margin: 0; font-size: .85em; }
.youth__game { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.youth__goals { flex-basis: 100%; gap: 2px; padding-left: 8px; }
.youth__stats { width: 100%; }
/* budget page: sliders with a 44 px thumb area, chips, the sum in red above the frame */
.youth__budget { min-width: 0; }
.youth__lines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.youth__line, .youth__fixed { display: grid; gap: 4px; padding: 8px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); min-width: 0; }
.youth__line-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.youth__slider { width: 100%; min-height: 44px; margin: 0; padding: 0; accent-color: var(--accent, var(--lamp-ok)); cursor: pointer; box-sizing: border-box; }
.youth__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.youth__chip { padding: 1px 6px; font-size: .8em; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-muted); }
.youth__sum { margin: 0 0 10px; font-weight: 700; }
.youth__sum--over { color: var(--danger-text); }
.youth__effects { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.youth__effect--up { color: var(--lamp-ok); }
.youth__effect--down { color: var(--danger-text); }
/* groups, staff and loans pages (360 px safe) */
.youth__slots, .youth__candidates, .youth__loans { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.youth__slot-head, .youth__candidate, .youth__loan { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; min-width: 0; }
.youth__slot-head > *, .youth__candidate > *, .youth__loan > * { min-width: 0; overflow-wrap: anywhere; }
.youth__candidate, .youth__loan { padding: 8px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.youth__slot-head p { margin: 0; }
.youth__wage, .youth__hint { margin: 0; overflow-wrap: anywhere; }
.youth__over { color: var(--danger-text); }
.youth__slot-head .btn, .youth__candidate .btn, .youth__loan .btn { min-height: 44px; }
/* slider thumbs of 44 px (touch area), tracks stay slim */
.youth__slider { -webkit-appearance: none; appearance: none; background: transparent; }
.youth__slider::-webkit-slider-runnable-track { height: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 4px; }
.youth__slider::-moz-range-track { height: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 4px; }
.youth__slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; margin-top: -17px; background: var(--accent); border: 2px solid var(--text); border-radius: 50%; box-sizing: border-box; }
.youth__slider::-moz-range-thumb { width: 44px; height: 44px; background: var(--accent); border: 2px solid var(--text); border-radius: 50%; box-sizing: border-box; }
.youth__slider:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
