/* Hackathon's independent shell. Shared project components keep their own styles. */
:root{--paper:#f5f1ea;--paper-bright:#fdfcf9;--ink:#3d3428;--muted:#9a8b72;--line:rgba(60,52,44,.16);--accent-color:#4c7e69;--ui-font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;--project-font:var(--ui-font);--font-ui:var(--ui-font);--ink-color:var(--ink);--muted-color:var(--muted);color-scheme:light}
*{box-sizing:border-box}html{background:var(--paper);color:var(--ink);font:400 16px/1.65 var(--ui-font);scrollbar-gutter:stable}body{margin:0;min-height:100vh}body [hidden]{display:none!important}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:2px solid var(--accent-color);outline-offset:4px}button{color:inherit}input,textarea,select{min-width:0;max-width:100%;border:1px solid var(--line);border-radius:8px;padding:10px 12px;color:var(--ink);background:var(--paper-bright)}h1,h2,h3{font-family:var(--ui-font);font-weight:600;line-height:1.45}h1{font-size:26px}h2{font-size:21px}
/* One navigation row, with a quiet account mark matching GooGooStudy. */
.hack-app-header{position:relative;z-index:30;max-width:1280px;margin:auto;padding:14px 40px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}
.hack-app-brand{font-size:21px;font-weight:650;letter-spacing:-.035em;white-space:nowrap;line-height:1.4}
.hack-app-brand:hover{text-decoration:none}
.hack-app-header nav{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;font-size:13px}
.hack-nav-pill{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:7px 14px;border:1px solid var(--line);border-radius:999px;background:var(--paper-bright);white-space:nowrap;line-height:1.5;transition:border-color .15s,background .15s}
.hack-nav-pill:hover{border-color:rgba(60,52,44,.3);background:#fffaf4;text-decoration:none}
.hack-nav-pill[aria-current=page]{color:var(--accent-color);border-color:rgba(76,126,105,.32)}
.hack-nav-pill::after{content:"";position:absolute;inset:-4px 0;border-radius:inherit}
.hack-nav-pill[data-hack-nav="projects"]{border:0;background:transparent;min-height:44px;padding-inline:8px;font-size:13px}
.hack-nav-pill svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#hackSavedCount{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.hack-account-dock{position:relative;display:flex;align-items:center;flex:none}
.hack-app-header .hack-avatar{position:relative;display:inline-grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;outline-offset:2px;font-size:15px;line-height:1;color:var(--ink)}
.hack-avatar::before{content:"";position:absolute;inset:3px;border:1px solid var(--line);border-radius:50%;background:var(--paper-bright);pointer-events:none;transition:border-color .15s}
.hack-avatar:hover::before,.hack-avatar[aria-expanded=true]::before{border-color:rgba(60,52,44,.4)}
.hack-avatar img{position:relative;width:38px;height:38px;border-radius:50%;object-fit:cover;border:1px solid var(--line)}
.hack-avatar>span{position:relative;font-size:15px;font-weight:550}
.hack-avatar>svg{position:relative;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.hack-account-menu{position:absolute;top:calc(100% + 10px);right:0;z-index:60;width:264px;max-width:calc(100vw - 32px);max-height:min(80dvh,calc(100dvh - 100px));overflow-y:auto;padding:10px;border:1px solid var(--line);border-radius:16px;background:#fffaf4;box-shadow:0 16px 38px rgba(40,28,14,.1);text-align:left;overscroll-behavior:contain}
.hack-account-menu-head{display:grid;gap:3px;padding:8px 10px 14px;margin-bottom:5px;border-bottom:1px solid rgba(60,52,44,.09);overflow-wrap:anywhere}
.hack-account-menu-head strong{font-size:15px;font-weight:600;line-height:1.5}
.hack-account-menu-head small{font-size:12px;color:var(--muted);line-height:1.6}
.hack-account-menu>a,.hack-account-menu>button{display:flex;align-items:center;gap:11px;width:100%;min-height:42px;margin:0;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:400 13px/1.6 var(--ui-font);text-align:left;text-decoration:none;white-space:normal}
.hack-account-menu>a:hover,.hack-account-menu>button:hover{background:rgba(60,52,44,.055);text-decoration:none}
.hack-account-menu svg{width:17px;height:17px;flex:none;fill:none;stroke:var(--muted);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hack-account-legal{display:flex;gap:18px;margin-top:7px;padding:12px 10px 5px;border-top:1px solid rgba(60,52,44,.09);font-size:11px;color:var(--muted)}
.hack-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.hack-section-anchor{display:block;height:0;scroll-margin-top:28px}
.hack-app-notice{max-width:980px;margin:18px auto;padding:0 24px;color:#785e30;font-size:14px}.hack-gallery{max-width:1280px;margin:auto}.hack-gallery iframe{display:block;width:100%;height:80vh;min-height:560px;border:0;background:var(--paper)}.hack-app-workspace{max-width:1200px;margin:32px auto;padding:0 28px;min-height:60vh}.hack-app-workspace[data-section=saved] #hackathonProjectSpaces{display:none}.hack-app-workspace[data-section=projects] .hackathon-saved-section{display:none}.hack-app-workspace h1{margin:0}.hack-app-workspace .hackathon-section-head{margin-bottom:24px}.hack-access-gate,.hack-auth{width:min(100%,460px);margin:68px auto 90px;padding:0 24px}.hack-access-gate{min-height:42vh}.hack-access-gate h1,.hack-auth h1{margin:20px 0 12px}.hack-access-gate p{color:var(--muted);margin-bottom:24px}.hack-access-gate>.hack-text-link{display:block;margin-top:18px}.hack-primary,.hack-secondary,.study-secondary-btn,.study-ghost-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:9px 15px;font-size:14px;line-height:1.5;background:transparent;text-decoration:none}.hack-primary{background:var(--accent-color);color:#fff;border-color:var(--accent-color)}.hack-primary:hover{text-decoration:none;background:#355b40}.hack-secondary:hover,.study-secondary-btn:hover,.study-ghost-btn:hover{background:rgba(66,106,78,.06);text-decoration:none}.hack-text-link,.hack-text-button{font-size:14px;color:var(--muted)}.hack-text-button{background:none;border:0;text-decoration:underline;padding:8px 0}.hack-auth-tabs{display:flex;flex-wrap:wrap;gap:12px;border-bottom:1px solid var(--line);margin:24px 0}.hack-auth-tabs button{border:0;background:none;padding:0 0 10px;color:var(--muted);font-size:14px}.hack-auth-tabs [aria-pressed=true]{color:var(--ink);border-bottom:2px solid var(--accent-color)}.hack-auth form>label,.hack-auth form>div>label{display:block;font-size:14px;margin:14px 0 6px}.hack-auth form input:not([type=checkbox]),.hack-auth select{width:100%}.hack-auth form>.hack-primary{width:100%;margin-top:24px}.hack-auth fieldset{border:0;border-top:1px solid var(--line);padding:16px 0 0;margin:24px 0 0;font-size:13px}.hack-auth legend{color:var(--muted);padding:0 8px 0 0}.hack-auth fieldset>label:not(.hack-check){display:block;margin:8px 0}.hack-check{display:flex;align-items:flex-start;gap:10px;margin:14px 0;line-height:1.7}.hack-check input{flex:none;accent-color:var(--accent-color);margin-top:5px}.hack-check a{text-decoration:underline}.hack-google{width:100%;margin-top:16px}.hack-otp-row{display:flex;gap:10px}.hack-otp-row input{flex:1;width:0}.hack-otp-row button{flex:none}.hack-auth-status{font-size:14px;color:#785e30;min-height:1.6em;overflow-wrap:anywhere}.hack-auth-help{color:var(--muted);font-size:12px}.hack-auth-help a{display:block;margin-top:10px;text-decoration:underline}.hack-app-footer{max-width:1200px;margin:40px auto 0;padding:24px 28px;display:flex;gap:20px;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}
@media(max-width:650px){.hack-app-workspace{padding:0 16px;margin-top:24px}.hack-auth,.hack-access-gate{margin-top:36px}.hack-app-workspace .hackathon-section-head{align-items:flex-start;gap:12px}h1{font-size:23px}.hack-app-footer{padding:20px 16px}.hack-gallery iframe{min-height:640px}.hack-app-notice{padding:0 16px}}

/* Keep the original bordered paper sections and stacked personal projects. */
.hack-app-workspace .hackathon-saved-heading{margin:0;padding:0;border:0}
@media(max-width:650px){
 .hack-app-header{padding:12px 16px;gap:12px;align-items:center;flex-wrap:nowrap}
 .hack-app-brand{font-size:19px}
 .hack-app-header nav{width:auto;justify-content:flex-end;flex-wrap:nowrap;gap:7px;font-size:12px}
 .hack-nav-pill{min-height:36px;padding:7px 10px;gap:5px}
 .hack-account-menu{top:calc(100% + 8px)}
}
@media(max-width:380px){
 .hack-app-brand{font-size:18px}
 #hackSavedLink{font-size:0;padding:8px;gap:5px}
 #hackSavedLink svg{width:16px;height:16px}
}
@media(prefers-reduced-motion:reduce){.hack-nav-pill,.hack-avatar::before{transition:none}}
/* Account-owned saves and course-owned project navigation are distinct views. */
.hack-app-workspace[data-section=saved] .hackathon-own-section,.hack-app-workspace[data-section=projects] .hackathon-own-section{display:none}
.hack-app-workspace[data-section=own] #hackathonProjectSpaces,.hack-app-workspace[data-section=own] .hackathon-saved-section{display:none}
.hack-account-menu #hackSavedCount{margin-left:auto}

/* The collection owns its only discovery navigation; the host scrolls as one page. */
.hack-app-header,.hack-gallery{max-width:1460px}
.hack-gallery{min-width:0}
.hack-gallery iframe{width:100%;min-width:0;overflow:hidden}
@media(min-width:1500px){.hack-app-header{padding-inline:44px}}

/* Persistent LearnHackathon reading shell. */
.hack-app-brand{display:inline-flex;gap:0;font-weight:400;letter-spacing:-.045em}
.hack-app-brand strong{font-weight:650}
:root{--hack-header-height:68px;--hack-nav-width:184px;--hack-nav-gap:var(--hack-page-pad);--hack-page-pad:32px}
html{scroll-padding-top:calc(var(--hack-header-height) + 16px)}
body{padding-top:var(--hack-header-height)}
.hack-app-header{position:fixed;inset:0 0 auto;z-index:70;height:var(--hack-header-height);max-width:none;margin:0;padding:12px var(--hack-page-pad);gap:16px;background:var(--paper);border-bottom:1px solid var(--line)}
.hack-brand-dock{display:flex;align-items:center;gap:8px;min-width:0}
.hack-nav-toggle{display:inline-grid;place-items:center;width:44px;height:44px;min-width:44px;border:0;border-radius:50%;padding:0;background:transparent;color:var(--ink)}
.hack-nav-toggle:hover{background:rgba(60,52,44,.05)}
.hack-nav-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
.hack-shell-layout{display:grid;grid-template-columns:var(--hack-nav-width) minmax(0,1fr);align-items:start;gap:var(--hack-nav-gap);max-width:none;margin:0;padding:16px var(--hack-page-pad) 48px}
.hack-shell-content{grid-column:2;min-width:0;container:learn-workspace / inline-size}
.hack-shell-content:focus{outline:none}
.hack-sidebar{position:fixed;z-index:50;top:calc(var(--hack-header-height) + 12px);bottom:12px;left:var(--hack-page-pad);width:var(--hack-nav-width);min-width:0;padding:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:transparent transparent}
.hack-sidebar:hover{scrollbar-color:rgba(60,52,44,.2) transparent}
.hack-sidebar-backdrop{position:fixed;z-index:45;inset:var(--hack-header-height) 0 0;width:100%;border:0;background:rgba(42,35,28,.18)}
.hack-detail iframe{display:block;width:100%;min-width:0;min-height:320px;border:0;background:var(--paper)}
.hack-sidebar-compact{--hack-nav-width:68px;--hack-nav-gap:var(--hack-page-pad)}
.hack-sidebar-compact .hack-sidebar-link{flex-direction:column;justify-content:center;gap:5px;min-height:66px;padding:10px 2px;font-size:10px;line-height:1.35;text-align:center}
.hack-sidebar-compact .hack-sidebar-link>span:not([class]){max-width:64px}
.hack-sidebar-compact .hack-sidebar-count,.hack-sidebar-compact .hack-sidebar-heading{display:none}
.hack-sidebar-compact .hack-sidebar-group{margin-top:16px}
.hack-sidebar-compact .hack-sidebar-unread{top:9px;right:15px}
.hack-app-footer{margin-left:calc(var(--hack-page-pad) + var(--hack-nav-width) + var(--hack-nav-gap));margin-right:var(--hack-page-pad);padding-inline:0}
/* Once the shell exists, a single pending surface replaces only its content. */
html.hack-shell-ready.gg-page-loading body[data-product="hackathon"]>:is(.hack-app-header,.hack-shell-layout,.hack-sidebar-backdrop):not(#googooPageTransition){visibility:visible!important}
html.hack-shell-ready.gg-page-loading .hack-shell-content{visibility:hidden!important}
html.hack-shell-ready body[data-product="hackathon"]>#googooPageTransition.googoo-page-transition{inset:var(--hack-header-height) 0 0 calc(var(--hack-page-pad) + var(--hack-nav-width) + var(--hack-nav-gap))!important}
.hack-sidebar-navigation,.hack-discovery-navigation,.hack-sidebar-group{display:flex;flex-direction:column;gap:3px}
.hack-sidebar-group{margin-top:24px}
.hack-sidebar-link{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px 12px;border-radius:7px;font:400 13px/1.6 var(--ui-font);color:var(--ink);overflow-wrap:anywhere;text-decoration:none}
.hack-sidebar-link:hover{background:rgba(60,52,44,.035);text-decoration:none}
.hack-sidebar-link[aria-current=page]{background:rgba(76,126,105,.09);color:var(--accent-color);font-weight:600}
.hack-sidebar-link svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.hack-sidebar-count{margin-left:auto;font:400 11px/1.5 var(--ui-font);color:var(--muted);font-variant-numeric:tabular-nums}
.hack-sidebar-unread{position:absolute;top:10px;right:5px;width:5px;height:5px;border-radius:50%;background:#d83c35}
.hack-sidebar-heading{padding:0 12px 7px;font:400 11px/1.6 var(--ui-font);color:var(--muted)}
.hack-shell-content .hack-gallery{max-width:none;margin:0}
.hack-shell-content .hack-app-workspace,.hack-history-view{max-width:none;margin:0;padding:0;min-height:60vh}
.hack-history-view #hackHistoryStatus{font-size:13px;color:var(--muted);margin:0 0 24px}
.hack-history-view #hackHistoryStatus:empty{display:none}
.hack-shell-content .hack-app-workspace[data-section=playlists] :is(.hackathon-saved-section,.hackathon-own-section){display:none}
.hack-shell-content #hackathonProjectSpaces{padding:0;border:0;border-radius:0;background:transparent}
/* A second section frame must not consume the mobile card's reading width. */
.hack-shell-content .hackathon-saved-section{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.hack-shell-content :is(.hackathon-project-grid,.ps-recommendation-grid){grid-template-columns:minmax(0,1fr)}
@container learn-workspace (min-width:640px){.hack-shell-content :is(.hackathon-project-grid,.ps-recommendation-grid){grid-template-columns:repeat(2,minmax(0,1fr))}}
@container learn-workspace (min-width:1000px){.hack-shell-content :is(.hackathon-project-grid,.ps-recommendation-grid){grid-template-columns:repeat(3,minmax(0,1fr))}}
.hack-shell-content .hack-access-gate,.hack-shell-content .hack-auth{margin-top:12px}
@media(max-width:1180px) and (min-width:761px){
 :root{--hack-nav-width:166px;--hack-nav-gap:24px;--hack-page-pad:24px}
 .hack-sidebar-compact{--hack-nav-width:68px;--hack-nav-gap:var(--hack-page-pad)}
}
@media(max-width:760px){
 :root{--hack-header-height:64px;--hack-page-pad:16px;--hack-nav-width:0px;--hack-nav-gap:0px}
 .hack-app-header{height:var(--hack-header-height);padding:10px var(--hack-page-pad);gap:8px;flex-wrap:nowrap}
 .hack-brand-dock{gap:3px;margin-left:-8px}
 .hack-app-brand{font-size:18px}
 .hack-shell-layout{display:block;padding:8px var(--hack-page-pad) 32px}
 .hack-sidebar{top:var(--hack-header-height);bottom:0;left:0;width:min(280px,84vw);padding:12px 16px 24px;background:var(--paper);border-right:1px solid var(--line);visibility:hidden;transform:translateX(-100%);pointer-events:none}
 .hack-sidebar-open .hack-sidebar{visibility:visible;transform:none;pointer-events:auto}
 .hack-sidebar-navigation{display:none;padding:0}
 .hack-sidebar-navigation.is-open{display:flex}
 .hack-sidebar-group{margin-top:16px}
 .hack-shell-content .hack-app-workspace,.hack-history-view{margin:0;padding:0}
 .hack-shell-content .hack-access-gate,.hack-shell-content .hack-auth{margin-top:0}
 .hack-app-footer{margin-inline:16px;padding-inline:0}
 html.hack-shell-ready body[data-product="hackathon"]>#googooPageTransition.googoo-page-transition{inset:var(--hack-header-height) 0 0!important}
}
/* Detail's first reading row shares the discovery rail's first-item baseline. */
@media(min-width:761px){.hack-shell-content .hack-detail{margin-top:-4px}}
