/* Student-facing community: a warm, readable workshop, not a competition leaderboard. */
:root { --youth-green:#176752; --youth-mint:#e7f3e9; --youth-yellow:#f7e7a0; }
.youth-page { --brand:#176752; --brand-strong:#104e3d; --brand-soft:#e7f3e9; --accent:#176752; --ink:#24352d; --muted:#617168; --line:#dce4dd; --surface:#fffefb; --surface-soft:#f6f7f0; background:var(--surface-soft); font-size:16px; line-height:1.65; }
.youth-main { padding-top:38px; }
.youth-page h1,.youth-page h2,.youth-page h3 { letter-spacing:-.04em; line-height:1.35; }
.youth-page h2 { font-size:23px; margin:8px 0 12px; }
.youth-page p { line-height:1.8; }
.youth-page .section-kicker { color:var(--brand); font:700 11px/1.5 var(--mono); letter-spacing:.12em; }
.youth-header { height:auto; min-height:80px; background:var(--surface); backdrop-filter:none; }
.site-header.youth-header .header-inner { display:flex; flex-wrap:wrap; min-height:80px; height:auto; gap:16px 26px; padding-block:14px; }
.youth-header .main-nav { display:flex; flex:1; gap:8px; justify-content:center; }
.youth-header .main-nav a { font-size:14px; padding:10px 9px; color:var(--muted); white-space:nowrap; }
.youth-header .main-nav a.active { color:var(--brand); background:var(--brand-soft); }
.youth-header .main-nav a.active::after { display:none; }
.youth-header .header-actions { display:flex; gap:8px; margin-left:auto; }
.youth-header .brand { min-width:0; gap:9px; }
.youth-header .brand-copy b { font-size:17px; line-height:1.3; }
.youth-header .brand-copy small { font-size:11px; letter-spacing:.04em; }
.youth-mark { display:grid; place-content:center; position:relative; width:42px; height:42px; flex-shrink:0; border:1px solid var(--brand); border-radius:12px 12px 12px 3px; background:var(--brand); color:white; font:900 25px/1 var(--mono); padding-right:9px; }
.youth-mark span { position:absolute; right:8px; bottom:9px; color:var(--youth-yellow); }
.youth-intro { display:flex; align-items:center; justify-content:space-between; gap:32px; margin:8px 0 30px; }
.youth-intro h1 { font-size:clamp(30px,3.6vw,46px); margin:9px 0 14px; font-weight:800; }
.youth-intro em { font-style:normal; color:var(--brand); }
.youth-intro p { margin:0; color:var(--muted); max-width:720px; }
.youth-intro > .btn { flex-shrink:0; }
.youth-page .btn { border-radius:9px; font-size:14px; min-height:42px; box-shadow:none; }
.youth-page .btn-primary { color:#fff; background:var(--brand); border-color:var(--brand); }
.youth-page .btn-primary:hover { background:var(--brand-strong); }
.youth-page .btn-ghost { background:var(--surface); border-color:var(--line); color:var(--ink); }
.youth-page .btn:disabled { opacity:.6; cursor:wait; }
.text-link { color:var(--brand); font-size:14px; font-weight:700; }
.youth-page a:focus-visible,.youth-page button:focus-visible,.youth-page summary:focus-visible,.youth-page input:focus-visible,.youth-page select:focus-visible,.youth-page textarea:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; left:16px; top:-80px; z-index:100; padding:12px; background:var(--surface); color:var(--brand); }
.skip-link:focus { top:10px; }
.youth-shortcuts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--line); border-radius:12px; background:var(--surface); margin:0 0 34px; overflow:hidden; }
.youth-shortcuts > a { display:flex; gap:11px; align-items:center; padding:20px 16px; border-right:1px solid var(--line); }
.youth-shortcuts > a:last-child { border-right:0; }
.youth-shortcuts > a:hover { background:var(--brand-soft); }
.youth-shortcuts b { font-size:15px; display:block; }
.youth-shortcuts small { display:block; color:var(--muted); font-size:12px; margin-top:3px; }
.youth-shortcuts > a > span:last-child { margin-left:auto; color:var(--brand); }
.shortcut-icon { font:600 12px var(--mono); color:var(--brand); align-self:flex-start; margin-top:5px; }
.youth-hall-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:30px; align-items:start; }
.youth-projects { min-width:0; scroll-margin-top:110px; }
.youth-page .section-head { margin-bottom:20px; gap:20px; align-items:center; }
.youth-page .section-head h2 { margin:5px 0; font-size:25px; }
.youth-page .section-head p { margin:0; font-size:14px; color:var(--muted); }
.youth-search { display:flex; gap:9px; padding:8px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.youth-search input { width:100%; min-width:0; background:transparent; color:var(--ink); border:0; padding:6px 10px; font-size:15px; }
.youth-page .channel-bar { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 12px; padding:0; border:0; background:none; box-shadow:none; }
.youth-page .channel { display:block; flex:0 1 auto; min-height:38px; width:auto; padding:7px 14px; border:1px solid var(--line); background:var(--surface); border-radius:7px; color:var(--muted); font-size:14px; box-shadow:none; }
.youth-page .channel-icon { display:none; }
.youth-page .channel.active { border-color:var(--brand); color:var(--brand); background:var(--brand-soft); }
.youth-project-filters { justify-content:flex-end; margin-bottom:22px; font-size:14px; color:var(--muted); }
.youth-project-filters select { min-height:38px; }
.youth-projects .project-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px 16px; }
.youth-projects .project-card { min-width:0; background:var(--surface); padding:10px; border:1px solid var(--line); border-radius:12px; box-shadow:none; }
.youth-projects .project-title { font-size:17px; }
.youth-projects .project-card:hover { transform:translateY(-2px); box-shadow:0 5px 15px #1637260b; }
.youth-sidebar { display:grid; gap:18px; }
.youth-panel { padding:23px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.youth-panel h2 { font-size:20px; }
.youth-panel p { color:var(--muted); font-size:14px; }
.starter-panel { background:var(--brand-soft); border-color:transparent; }
.growth-steps { list-style:none; counter-reset:steps; padding:0; margin:22px 0; }
.growth-steps li { position:relative; padding:0 0 20px 29px; }
.growth-steps li:last-child { padding-bottom:0; }
.growth-steps li::before { counter-increment:steps; content:counter(steps); position:absolute; left:0; top:0; width:20px; height:20px; display:grid; place-content:center; border:1px solid var(--brand); border-radius:50%; color:var(--brand); font:600 11px var(--mono); }
.growth-steps b { display:block; font-size:14px; }
.growth-steps span { display:block; color:var(--muted); font-size:12px; margin-top:3px; }
.youth-safety { padding:10px 15px; border-left:3px solid #b8cdbb; }
.youth-safety b { font-size:14px; }
.youth-safety p,.youth-safety a { color:var(--muted); font-size:13px; }
.youth-safety a { color:var(--brand); }
.home-event-item { display:block; border-top:1px solid var(--line); padding:13px 0; }
.home-event-item b { font-size:14px; line-height:1.6; display:block; }
.home-event-item small { font-size:12px; color:var(--muted); }
.youth-discussions { margin:42px 0; }
.youth-page .discussion-card,.youth-page .discussion-list-card { box-shadow:none; border:1px solid var(--line); background:var(--surface); }
.youth-page .discussion-card p,.youth-page .discussion-list-card p { color:var(--muted); }
.youth-page .community-empty { grid-column:1/-1; padding:26px; border:1px dashed var(--line); background:var(--surface); }
.youth-bridge { display:flex; justify-content:space-between; align-items:center; gap:24px; border-block:1px solid var(--line); padding:27px 0; }
.youth-bridge p { margin:6px 0 0; color:var(--muted); font-size:14px; }
.youth-bridge .btn { flex-shrink:0; }
.youth-footer { margin-top:45px; background:var(--surface); }
.youth-footer > .container { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding-block:28px; }
.youth-footer p,.youth-footer small { color:var(--muted); font-size:12px; margin:6px 0 0; }
.youth-footer nav { display:flex; flex-wrap:wrap; gap:16px; font-size:13px; }
.youth-footer small { width:100%; }
.community-prompts { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:28px; }
.community-prompts a { padding:10px 16px; border-radius:7px; background:var(--brand-soft); color:var(--brand); font-size:14px; }
.youth-community-layout { grid-template-columns:minmax(0,1fr) 350px; gap:28px; }
.youth-page .community-tabs { flex-wrap:wrap; gap:8px; }
.youth-page .community-tabs button { font-size:14px; border-color:var(--line); background:var(--surface); min-height:39px; color:var(--muted); }
.youth-page .community-tabs button.active { color:var(--brand); background:var(--brand-soft); border-color:var(--brand); }
.youth-page .community-toolbar .filter-row { margin-top:14px; }
.youth-page .community-toolbar input { min-width:0; flex:1; }
.youth-page .community-compose { scroll-margin-top:110px; }
.youth-page .field label { font-size:14px; }
.youth-page .field textarea { min-height:220px; font-size:15px; line-height:1.65; }
.youth-page .field input,.youth-page .field select { font-size:15px; min-height:44px; }
.composer-tip { font-size:13px !important; padding:10px 12px; background:var(--brand-soft); border-radius:7px; }
.template-button { margin:0 0 12px; }
.form-status { font-size:14px; color:var(--brand); }
.event-trust { display:flex; justify-content:space-between; align-items:center; gap:25px; background:var(--brand-soft); border:1px solid var(--line); border-radius:12px; padding:20px 24px; margin-bottom:30px; }
.event-trust p { margin:5px 0; color:var(--muted); font-size:14px; }
.event-trust small { font-size:12px; color:var(--muted); }
.event-trust > a { flex:0 0 230px; }
.event-filters { display:flex; align-items:end; flex-wrap:wrap; gap:12px; padding:19px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.event-filters label { display:grid; gap:6px; font-size:13px; color:var(--muted); flex:1; min-width:140px; }
.event-filters select,.event-filters input { width:100%; border:1px solid var(--line); color:var(--ink); background:var(--surface); padding:10px; border-radius:7px; min-height:44px; font-size:14px; }
.event-filters .event-search-label { flex:1.4; }
#eventResult { font-size:14px; padding:6px 0; }
.event-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; align-items:start; }
.event-card { border:1px solid var(--line); border-radius:12px; background:var(--surface); padding:26px; scroll-margin-top:110px; min-width:0; }
.event-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:15px; flex-wrap:wrap; }
.event-kind { color:var(--brand); font:600 11px var(--mono); letter-spacing:.05em; }
.event-status { font-size:12px; border:1px solid var(--line); border-radius:5px; padding:3px 8px; color:var(--muted); background:var(--surface-soft); }
.status-open { background:var(--brand-soft); border-color:var(--brand); color:var(--brand); }
.event-card h2 { font-size:23px; margin:0 0 7px; }
.event-card p { font-size:14px; color:var(--muted); }
.event-subtitle { margin:0 0 15px; font-size:13px !important; }
.event-facts { font-size:14px; margin:18px 0; }
.event-facts > div { display:grid; grid-template-columns:65px minmax(0,1fr); gap:9px; margin:10px 0; }
.event-facts dt { color:var(--muted); }
.event-facts dd { margin:0; overflow-wrap:anywhere; }
.event-note { padding:12px; background:var(--surface-soft); border-left:3px solid #b7c5b6; border-radius:0 7px 7px 0; }
.event-card details { border-block:1px solid var(--line); padding:13px 0; margin:20px 0; }
.event-card summary,.events-faq summary { cursor:pointer; color:var(--brand); font-size:14px; font-weight:600; }
.event-actions { display:flex; gap:10px; flex-wrap:wrap; }
.event-sources { display:grid; gap:5px; padding-top:18px; font-size:12px; color:var(--muted); }
.event-sources a { text-decoration:underline; text-underline-offset:3px; }
.preparation { margin-top:30px; }
.preparation-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; margin:24px 0; }
.preparation-grid b { font-size:15px; }
.events-faq { margin-top:24px; }
.events-faq details { padding:18px 0; border-bottom:1px solid var(--line); }
.events-faq p { font-size:14px; color:var(--muted); }
:root[data-theme="dark"] .youth-page { --brand:#8ed5ae; --brand-strong:#a6e5c2; --brand-soft:#203d31; --ink:#e3ece5; --muted:#a7b9ad; --line:#34483c; --surface:#17271e; --surface-soft:#101e17; }
:root[data-theme="dark"] .youth-page .btn-primary { color:#102c20; }
:root[data-theme="dark"] .youth-header { background:var(--surface); }
:root[data-theme="dark"] .youth-page .channel-bar { background:none; }
:root[data-theme="dark"] .youth-page .youth-mark { color:#102c20; }
:root[data-theme="dark"] .youth-page .youth-mark span { color:#294a36; }
@media(max-width:1150px) { .youth-header .header-inner { gap:12px !important; } .youth-header .main-nav { order:3; flex-basis:100%; justify-content:flex-start; } .youth-header .header-actions { margin-left:auto; } .youth-shortcuts { grid-template-columns:1fr 1fr; } .youth-shortcuts>a:nth-child(2) { border-right:0; } .youth-shortcuts>a:nth-child(-n+2) { border-bottom:1px solid var(--line); } .youth-projects .project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:850px) { .youth-intro { align-items:flex-start; flex-direction:column; gap:20px; } .youth-hall-layout { grid-template-columns:1fr; } .youth-sidebar { grid-template-columns:1fr 1fr; } .youth-safety { grid-column:1/-1; } .youth-community-layout { grid-template-columns:1fr; } .youth-community-layout .community-aside { grid-row:auto; } .event-trust { display:block; } .event-trust>a { display:inline-block; margin-top:12px; } .event-grid { grid-template-columns:1fr; } .preparation-grid { grid-template-columns:1fr 1fr; } .youth-bridge { flex-direction:column; align-items:flex-start; } }
@media(max-width:520px) { .youth-page .container { width:calc(100% - 28px); } .youth-main { padding-top:22px; } .youth-header .header-actions .desktop-only { display:none; } .youth-header .brand-copy b { font-size:15px; } .youth-header .brand-copy small { font-size:10px; } .youth-header .main-nav { gap:2px; justify-content:space-between; overflow-x:auto; } .youth-header .main-nav a { font-size:12px; padding:7px; } .youth-header .btn { font-size:12px; padding:8px; min-height:36px; } .youth-header .header-actions { gap:4px; } .youth-header .header-actions .theme-toggle { display:none; } .youth-intro h1 { font-size:30px; } .youth-shortcuts>a { padding:15px 12px; } .youth-shortcuts b { font-size:13px; } .youth-shortcuts small { font-size:11px; } .shortcut-icon,.youth-shortcuts>a>span:last-child { display:none; } .youth-projects .project-grid { grid-template-columns:1fr; } .youth-sidebar { grid-template-columns:1fr; } .youth-page .section-head { align-items:flex-start; flex-direction:column; gap:10px; } .youth-page .channel-bar { flex-wrap:wrap; overflow:visible; } .youth-page .channel { font-size:13px; padding:7px 10px; } .event-card { padding:19px; } .event-card h2 { font-size:21px; } .event-filters { padding:14px; } .event-filters>button { width:100%; } .preparation-grid { grid-template-columns:1fr; gap:12px; } .youth-page .community-toolbar .filter-row { flex-wrap:wrap; } }
@media(prefers-reduced-motion:reduce) { .youth-page * { scroll-behavior:auto !important; transition:none !important; } }
