@charset "UTF-8";
/* Four independent layouts. Only these body classes opt in; load after site.css. */
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade){--button-ink:#fff;font-size:14px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) :is(.main-shell,main,.portal-home,.portal-group){min-width:0}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .brand>span:last-child{min-width:0;overflow-wrap:anywhere}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .topbar{gap:16px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .eyebrow{flex:1;min-width:0;max-width:none;letter-spacing:.3px;font-size:12px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .topbar-actions{flex:0 0 auto}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .primary-nav>a,
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .language-menu nav a{min-height:44px;display:flex;align-items:center}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .searchbox{background:var(--surface);border-color:var(--line)}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .searchbox input{min-height:44px;font-size:14px;color:var(--ink)}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) input::placeholder{color:var(--muted);opacity:1}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) :is(.searchbox button,.button){min-height:44px;background:var(--button);color:var(--button-ink)}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .button.secondary{background:var(--surface);color:var(--brand)}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .resource-filters :is(input,select,button),
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .public-panel :is(input,button,summary){min-height:44px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) dialog button{min-width:44px;min-height:44px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) dialog li a{display:inline-flex;align-items:center;min-height:44px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .resource-card{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:none;transition:border-color .12s}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .resource-card:hover{transform:none;background:var(--tint);border-color:var(--brand)}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .resource-mark{background:var(--tint);color:var(--brand)}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .resource-copy strong{color:var(--ink);overflow-wrap:anywhere}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .resource-copy>span{color:var(--muted);font-size:12px;line-height:1.65}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .resource-copy small{color:var(--muted);font-size:11px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .card-arrow{color:var(--muted)}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) :is(a,button,summary,input,select,textarea):focus-visible{outline:3px solid var(--brand);outline-offset:4px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .primary-nav>a:focus-visible,
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-shortcuts a:focus-visible{outline-offset:-3px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .footer{font-size:12px;align-items:center}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .footer nav{gap:6px 18px;align-items:center}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) :is(.footer a,.pagination a,.tag-links a,.partner-links a){display:inline-flex;align-items:center;min-height:44px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .detail-content{max-width:980px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .hero-stats{color:var(--muted);font-size:12px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .hero-stats strong{color:var(--ink)}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-shortcuts>span{flex:1 0 100%;font-size:11px;font-weight:650;color:var(--muted);letter-spacing:.6px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-shortcuts a{min-width:0;min-height:44px;display:flex;align-items:center;gap:8px;padding:10px 15px;font-size:13px;color:var(--ink);background:var(--surface);border:1px solid var(--line);overflow-wrap:anywhere}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-shortcuts a:hover{background:var(--tint);border-color:var(--brand)}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;margin:30px 0 18px;color:var(--muted);font-size:12px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-toolbar h2{flex:1;min-width:0;font-size:20px;line-height:1.4;margin:0;color:var(--ink)}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-featured{margin:28px 0;min-width:0}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-featured .section-heading{margin:0 0 18px;flex-wrap:wrap}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-featured h2{font-size:20px;color:var(--ink)}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-featured .section-heading>span{font-size:12px;color:var(--muted);max-width:100%}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-groups{display:grid;gap:24px;margin:24px 0}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-group{scroll-margin-top:24px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-group-heading{display:flex;align-items:center;gap:10px;margin:0 0 16px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-group-heading h3{flex:1;min-width:0;font-size:17px;line-height:1.4;margin:0;overflow-wrap:anywhere}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-group-heading small{color:var(--muted);font-size:11px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-group-heading>a{display:inline-flex;align-items:center;flex:0 0 auto;min-height:44px;color:var(--brand);font-size:12px;gap:5px}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .pGroup-icon{flex:0 0 auto;width:30px;height:30px;display:grid;place-items:center;background:var(--tint);color:var(--brand);border-radius:7px;font-size:12px;font-weight:750}
:is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-group-grid{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}

/* COMPASS: a search desk, compact bookmark strip and three newspaper-like columns. */
.theme-compass{--bg:#fff;--surface:#fff;--ink:#1e304d;--muted:#566681;--line:#dce4ef;--brand:#245bb7;--button:#245bb7;--tint:#eef4ff;--radius:7px;--shadow:none}
.theme-compass .site-shell{display:block;max-width:1380px;margin:auto}
.theme-compass .sidebar{height:auto;position:static;flex-direction:row;align-items:center;gap:40px;padding:23px 40px;border-right:0;border-bottom:1px solid var(--line)}
.theme-compass .brand{flex:0 0 auto;font-size:21px;letter-spacing:-.7px}
.theme-compass .brand small{display:none}
.theme-compass .brand-icon{font-size:30px;width:36px;height:36px;border:1px solid var(--brand);border-radius:50%}
.theme-compass .primary-nav{min-width:0;flex:1;flex-direction:row;overflow-x:auto;margin:0;padding:4px;gap:6px;white-space:nowrap}
.theme-compass .primary-nav>a{flex:0 0 auto;font-size:12px;border-radius:5px;color:var(--muted);padding:10px 12px}
.theme-compass .primary-nav>a:is(:hover,.active){background:var(--tint);color:var(--brand)}
.theme-compass :is(.nav-label,.nav-dot,.sidebar-foot){display:none}
.theme-compass .topbar{height:60px;padding:0 40px;border:0}
.theme-compass main{padding:6px 40px 52px;max-width:none}
.theme-compass .hero{display:block;min-height:0;border:0;border-radius:0;background:transparent}
.theme-compass .hero-copy{text-align:center;max-width:900px;margin:auto;padding:30px 0 34px}
.theme-compass .hero h1{max-width:850px;margin:18px auto;font-size:clamp(34px,4vw,48px);letter-spacing:-1.6px;font-weight:750}
.theme-compass .hero p{max-width:690px;margin:16px auto;font-size:14px}
.theme-compass .hero .kicker{font-size:11px;letter-spacing:1.8px}
.theme-compass .hero-art{display:none}
.theme-compass .searchbox{margin:28px auto 20px;max-width:790px;border:2px solid var(--brand);border-radius:9px;padding:5px;box-shadow:0 5px 16px #245bb70b}
.theme-compass .searchbox input{min-height:50px;padding-left:17px;font-size:15px}
.theme-compass .searchbox button{min-height:50px;padding-inline:28px;border-radius:4px;font-size:14px}
.theme-compass .portal-shortcuts{justify-content:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;gap:6px 12px;margin:0 0 26px}
.theme-compass .portal-shortcuts>span{text-align:center}
.theme-compass .portal-shortcuts a{border:0;padding:8px 13px;border-radius:4px;color:var(--brand)}
.theme-compass .portal-featured{display:grid;grid-template-columns:145px minmax(0,1fr);gap:20px;background:var(--tint);border:1px solid var(--line);border-radius:7px;padding:18px}
.theme-compass .portal-featured .section-heading{display:block;margin:0}
.theme-compass .portal-featured h2{font-size:16px;margin:7px 0}
.theme-compass .portal-featured .section-heading>span{display:block;font-size:11px;line-height:1.7}
.theme-compass .portal-featured .resource-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.theme-compass .portal-featured .resource-card{align-items:center;padding:10px;gap:9px;min-height:64px;border:0;background:var(--surface);border-radius:4px}
.theme-compass .portal-featured .resource-mark{width:28px;height:28px;border-radius:5px;font-size:13px}
.theme-compass .portal-featured .resource-copy strong{font-size:13px;margin:0}
.theme-compass .portal-featured :is(.resource-copy>span,.resource-copy small,.card-arrow){display:none}
.theme-compass .portal-toolbar{padding-bottom:13px;border-bottom:1px solid var(--line)}
.theme-compass .portal-groups{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 26px;align-items:start}
.theme-compass .portal-group{border-top:2px solid var(--brand);padding-top:12px}
.theme-compass .portal-group-heading{gap:8px;flex-wrap:wrap;margin-bottom:6px}
.theme-compass .portal-group-heading h3{font-size:16px}
.theme-compass .portal-group-heading small{font-size:10px}
.theme-compass .portal-group-heading>a{min-height:44px;font-size:11px}
.theme-compass .pGroup-icon{width:25px;height:25px;border-radius:4px;font-size:10px}
.theme-compass .portal-group-grid{display:flex;flex-direction:column;gap:0}
.theme-compass .portal-group-grid .resource-card{min-height:78px;padding:13px 3px;border:0;border-bottom:1px solid var(--line);border-radius:0;align-items:center;gap:12px}
.theme-compass .portal-group-grid .resource-mark{width:29px;height:29px;border-radius:5px;font-size:13px}
.theme-compass .portal-group-grid .resource-copy strong{font-size:13px;margin:0 0 3px}
.theme-compass .portal-group-grid .resource-copy>span{font-size:11px;-webkit-line-clamp:1;min-height:0}
.theme-compass .portal-group-grid :is(.resource-copy small,.card-arrow){display:none}
.theme-compass .footer{padding:24px 40px}
html[data-color=dark] .theme-compass{--bg:#121925;--surface:#192334;--ink:#eff5ff;--muted:#b4c3dc;--line:#35465f;--brand:#a3c6ff;--button:#285ead;--tint:#20324f}

/* MOSAIC: a slim category rail and an asymmetric green bento directory. */
.theme-mosaic{--bg:#eef4ef;--surface:#fff;--ink:#223c2e;--muted:#50675c;--line:#cfdfd3;--brand:#16613e;--button:#16613e;--tint:#deeee2;--panel-a:#e1edd7;--panel-b:#f3ebd4;--radius:15px;--shadow:none}
.theme-mosaic .site-shell{grid-template-columns:152px minmax(0,1fr)}
.theme-mosaic .sidebar{padding:25px 12px;background:var(--surface);border-right:1px solid var(--line)}
.theme-mosaic .brand{flex-direction:column;text-align:center;gap:8px;font-size:19px;letter-spacing:-.5px}
.theme-mosaic .brand-icon{background:var(--brand);color:var(--surface);border-radius:12px;width:42px;height:42px;font-size:32px}
.theme-mosaic .brand small{font-size:9px;letter-spacing:.8px}
.theme-mosaic .primary-nav{margin-top:32px;gap:8px}
.theme-mosaic .primary-nav>a{padding:10px;font-size:12px;color:var(--muted);border-radius:8px;white-space:normal;gap:7px}
.theme-mosaic .primary-nav>a:is(:hover,.active){color:var(--brand);background:var(--tint)}
.theme-mosaic .nav-label{font-size:10px;letter-spacing:.7px;margin:14px 10px 3px}
.theme-mosaic .sidebar-foot{font-size:10px;line-height:2}
.theme-mosaic .sidebar-foot a{min-height:44px;display:inline-flex;align-items:center}
.theme-mosaic .topbar{height:74px;padding:0 32px}
.theme-mosaic main{padding:28px 32px 48px;max-width:1540px}
.theme-mosaic .hero{grid-template-columns:minmax(0,1.35fr) minmax(280px,.8fr);gap:20px;background:none;border:0;border-radius:0;overflow:visible;min-height:340px}
.theme-mosaic .hero-copy{min-width:0;padding:32px 34px;border-radius:23px;background:var(--panel-a);border:1px solid var(--line)}
.theme-mosaic .hero .kicker{font-size:11px;letter-spacing:1.4px}
.theme-mosaic .hero h1{font-size:clamp(30px,3.4vw,44px);letter-spacing:-1.5px;margin:18px 0 14px}
.theme-mosaic .hero p{font-size:13px}
.theme-mosaic .searchbox{border-radius:9px;margin:24px 0 20px}
.theme-mosaic .hero-art{display:block;min-height:340px;border:0;border-radius:23px;background:#174a35;overflow:hidden}
.theme-mosaic .orbit{left:50%;top:37px;margin-left:-120px;width:110px;height:110px;border:0;border-radius:55px;background:#d8e88b}
.theme-mosaic .orbit:before{inset:auto;left:130px;top:0;width:110px;height:110px;border:0;border-radius:22px;background:#c9e0d0}
.theme-mosaic .orbit:after{inset:auto;left:0;top:130px;width:110px;height:110px;border:0;border-radius:22px;background:#edb98e}
.theme-mosaic .art-glyph{left:calc(50% + 23px);top:172px;font-size:102px;color:#edf6d8;transform:none}
.theme-mosaic :is(.art-note,.art-label){display:none}
.theme-mosaic .portal-shortcuts a{border-radius:9px;background:var(--surface);padding-inline:17px}
.theme-mosaic .portal-featured{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px}
.theme-mosaic .portal-featured .resource-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.theme-mosaic .portal-featured .resource-card{padding:19px 16px;min-height:135px;background:var(--bg);border-radius:12px;gap:11px}
.theme-mosaic .portal-featured .resource-mark{width:38px;height:38px;border-radius:10px}
.theme-mosaic .portal-toolbar{margin-bottom:16px}
.theme-mosaic .portal-groups{grid-template-columns:repeat(12,minmax(0,1fr));gap:20px;align-items:start}
.theme-mosaic .portal-group{grid-column:span 4;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:19px}
.theme-mosaic .portal-group:nth-child(6n+1){grid-column:span 8;background:var(--panel-a)}
.theme-mosaic .portal-group:nth-child(6n+4){grid-column:span 8;background:var(--panel-b)}
.theme-mosaic .portal-group-heading{flex-wrap:wrap;gap:8px}
.theme-mosaic .portal-group-heading small{font-size:10px}
.theme-mosaic .portal-group-grid{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
.theme-mosaic .portal-group-grid .resource-card{padding:14px 10px;min-height:118px;border:0;background:var(--surface);border-radius:10px;gap:8px}
.theme-mosaic .portal-group-grid .resource-copy strong{font-size:13px;margin-top:0}
.theme-mosaic .portal-group-grid .resource-copy>span{font-size:11px;min-height:36px}
.theme-mosaic .portal-group-grid .resource-copy small{font-size:10px}
.theme-mosaic .portal-group-grid .resource-mark{width:28px;height:28px;border-radius:7px;font-size:13px}
.theme-mosaic .portal-group-grid .card-arrow{display:none}
.theme-mosaic .footer{padding:23px 32px}
html[data-color=dark] .theme-mosaic{--bg:#101e17;--surface:#1a2d22;--ink:#eef6e9;--muted:#b7ccb9;--line:#3c5c46;--brand:#b6dbae;--button:#28633c;--tint:#2d4933;--panel-a:#203d29;--panel-b:#3d3724}

/* CINEMA: a charcoal screening room, portrait-feature shelf and genre-led rows. */
.theme-cinema{--bg:#f3f1ed;--surface:#fff;--ink:#2d2b29;--muted:#6a625b;--line:#d9d2c7;--brand:#8e5000;--button:#e2b767;--button-ink:#231b0d;--tint:#f3e7d1;--radius:5px;--shadow:none}
.theme-cinema .site-shell{display:block}
.theme-cinema .sidebar{position:static;height:auto;flex-direction:row;align-items:center;gap:38px;border:0;background:#18181c;color:#fff8ed;padding:23px max(32px,calc((100vw - 1344px)/2))}
.theme-cinema .brand{flex:0 0 auto;font-size:23px;letter-spacing:1px}
.theme-cinema .brand-icon{color:#e8c583;font-size:34px}
.theme-cinema .brand small{color:#d2c2ab;letter-spacing:2px;font-size:9px}
.theme-cinema .primary-nav{flex:1;min-width:0;flex-direction:row;overflow-x:auto;white-space:nowrap;margin:0;gap:4px;padding:4px}
.theme-cinema .primary-nav>a{flex:0 0 auto;border-radius:0;border-bottom:2px solid transparent;font-size:12px;color:#e1d8cf;padding:10px 14px}
.theme-cinema .primary-nav>a:is(:hover,.active){background:#30291e;color:#f5d394;border-bottom-color:#e3bb73}
.theme-cinema .sidebar a:focus-visible{outline-color:#f0c77d}
.theme-cinema :is(.nav-label,.nav-dot,.sidebar-foot){display:none}
.theme-cinema .topbar{height:64px;max-width:1440px;margin:auto;border:0;padding:0 48px}
.theme-cinema main{max-width:1440px;padding:12px 48px 48px}
.theme-cinema .hero{grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);min-height:394px;border-radius:3px;border:1px solid #474246;background:#202025;color:#fff8ed}
.theme-cinema .hero-copy{padding:40px 42px}
.theme-cinema .hero .kicker{color:#e8c583;font-size:11px;letter-spacing:2.5px}
.theme-cinema .hero h1{font-family:Georgia,"Noto Serif SC",serif;font-size:clamp(36px,4vw,52px);font-weight:500;letter-spacing:-1.2px;color:#fff8ed;margin:22px 0 16px}
.theme-cinema .hero p{color:#ded4c8;font-size:13px}
.theme-cinema .hero-stats{color:#ded4c8;font-size:11px}
.theme-cinema .hero-stats strong{color:#fff8ed}
.theme-cinema .searchbox{border:1px solid var(--line);border-radius:3px;margin:26px 0 20px}
.theme-cinema .searchbox button{border-radius:1px;font-size:13px}
.theme-cinema .hero-art{display:block;position:relative;min-height:394px;border:0;background:radial-gradient(ellipse at center,#5f4833,#202025 70%)}
.theme-cinema .orbit{left:50%;top:54px;width:188px;height:264px;border:1px solid #d8bb86;border-radius:5px;transform:translateX(-50%) rotate(8deg);background:linear-gradient(140deg,#975d43,#34323f);box-shadow:-23px 15px 0 #715438}
.theme-cinema .orbit:before{inset:50px 24px;border:2px solid #efd49f;border-radius:50%}
.theme-cinema .orbit:after{inset:auto;left:68px;top:108px;width:0;height:0;border-style:solid;border-width:23px 0 23px 34px;border-color:transparent transparent transparent #f5ddb1;border-radius:0}
.theme-cinema :is(.art-glyph,.art-note,.art-label){display:none}
.theme-cinema .portal-shortcuts{background:#202025;padding:14px;border:1px solid #474246;border-radius:3px;gap:8px;margin:22px 0}
.theme-cinema .portal-shortcuts>span{color:#e8c583}
.theme-cinema .portal-shortcuts a{background:transparent;color:#f2e8d8;border-color:#635742;border-radius:2px;font-size:12px}
.theme-cinema .portal-shortcuts a:hover{background:#4a3924;border-color:#d5af6a;color:#fff8ed}
.theme-cinema .portal-shortcuts a:focus-visible{outline-color:#f0c77d}
.theme-cinema .portal-featured{--surface:#2e2e34;--ink:#fff8ef;--muted:#cfbfae;--line:#5f564e;--tint:#3b3225;--brand:#f1c982;background:#202025;color:var(--ink);border:1px solid #474246;border-radius:3px;padding:26px}
.theme-cinema .portal-featured .resource-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.theme-cinema .portal-featured .resource-card{display:flex;flex-direction:column;gap:0;padding:0 0 16px;min-height:278px;background:var(--surface);border:1px solid var(--line);border-radius:3px;overflow:hidden}
.theme-cinema .portal-featured .resource-mark{width:100%;height:158px;flex:0 0 auto;border-radius:0;background:linear-gradient(140deg,#79533a,#393749);color:#fff0d4;font-size:54px;font-weight:500}
.theme-cinema .portal-featured .resource-card:nth-child(3n+2) .resource-mark{background:linear-gradient(140deg,#3a526b,#3d3149)}
.theme-cinema .portal-featured .resource-card:nth-child(3n+3) .resource-mark{background:linear-gradient(140deg,#3d6456,#303537)}
.theme-cinema .portal-featured .resource-copy{padding:13px 12px 0;width:100%}
.theme-cinema .portal-featured .resource-copy strong{font-size:13px;margin:0 0 7px}
.theme-cinema .portal-featured .resource-copy>span{font-size:11px;min-height:36px}
.theme-cinema .portal-featured .resource-copy small{font-size:10px;margin-top:8px}
.theme-cinema .portal-featured .card-arrow{display:none}
.theme-cinema .portal-featured .resource-card:focus-visible{outline-offset:-3px}
.theme-cinema .portal-toolbar{border-bottom:1px solid var(--line);padding-bottom:16px}
.theme-cinema .portal-groups{display:block;margin-top:0}
.theme-cinema .portal-group{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px;padding:27px 0;border-bottom:1px solid var(--line)}
.theme-cinema .portal-group-heading{display:block;margin:0}
.theme-cinema .portal-group-heading h3{font-size:19px;margin:13px 0 9px}
.theme-cinema .portal-group-heading small{display:block;margin-bottom:7px}
.theme-cinema .portal-group-heading>a{font-size:12px}
.theme-cinema .pGroup-icon{background:transparent;border:1px solid var(--line);border-radius:0;width:32px;height:32px}
.theme-cinema .portal-group-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.theme-cinema .portal-group-grid .resource-card{padding:18px 13px;min-height:132px;gap:10px;border-radius:3px}
.theme-cinema .portal-group-grid .resource-mark{width:31px;height:31px;border-radius:3px;font-size:14px}
.theme-cinema .portal-group-grid .resource-copy strong{font-size:13px;margin-top:0}
.theme-cinema .portal-group-grid .resource-copy>span{font-size:11px;min-height:36px}
.theme-cinema .portal-group-grid .resource-copy small{font-size:10px}
.theme-cinema .portal-group-grid .card-arrow{display:none}
.theme-cinema .footer{max-width:1440px;margin:auto;padding:24px 48px}
html[data-color=dark] .theme-cinema{--bg:#101012;--surface:#1d1d22;--ink:#f6f0e7;--muted:#c4b8a8;--line:#4e4842;--brand:#f1c982;--button:#e2b767;--button-ink:#231b0d;--tint:#3b3225}

/* ARCADE: original CSS controller art, chunky borders and game-cartridge shelves. */
.theme-arcade{--bg:#f8f0d8;--surface:#fffdf4;--ink:#20271e;--muted:#555f4c;--line:#2b3025;--brand:#176339;--button:#176339;--tint:#e0ebca;--edge:#252b21;--panel-b:#f7e4be;--radius:0;--shadow:none;background-image:radial-gradient(#afb995 0.7px,transparent .7px);background-size:15px 15px}
.theme-arcade .site-shell{display:block}
.theme-arcade .sidebar{height:auto;position:static;flex-direction:row;align-items:center;gap:34px;padding:22px max(28px,calc((100vw - 1320px)/2));border:0;border-bottom:3px solid var(--edge);background:var(--surface)}
.theme-arcade .brand{flex:0 0 auto;gap:12px;font-size:25px;font-weight:850;letter-spacing:-1px}
.theme-arcade .brand small{font-size:9px;letter-spacing:1px}
.theme-arcade .brand-icon{width:42px;height:42px;font-size:30px;color:#20271e;background:#edb253;border:2px solid var(--edge);box-shadow:3px 3px 0 var(--edge);border-radius:0}
.theme-arcade .primary-nav{flex:1;min-width:0;flex-direction:row;overflow-x:auto;white-space:nowrap;margin:0;padding:5px;gap:5px}
.theme-arcade .primary-nav>a{flex:0 0 auto;border:2px solid transparent;border-radius:0;color:var(--ink);font-size:12px;padding:9px 12px}
.theme-arcade .primary-nav>a:is(:hover,.active){background:var(--tint);border-color:var(--edge);color:var(--ink)}
.theme-arcade :is(.nav-label,.nav-dot,.sidebar-foot){display:none}
.theme-arcade .topbar{height:68px;border:0;max-width:1376px;margin:auto;padding:0 28px}
.theme-arcade .icon-button,.theme-arcade .language-menu summary{border:2px solid var(--edge);border-radius:0;box-shadow:2px 2px 0 var(--edge)}
.theme-arcade main{max-width:1376px;padding:16px 28px 52px}
.theme-arcade .hero{grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr);min-height:350px;background:var(--surface);border:3px solid var(--edge);border-radius:0;box-shadow:7px 7px 0 var(--edge)}
.theme-arcade .hero-copy{padding:36px 38px}
.theme-arcade .hero .kicker{display:inline-block;background:#edb253;color:#302610;padding:6px 10px;border:2px solid #252b21;font-family:ui-monospace,Consolas,monospace;font-size:11px;letter-spacing:.8px}
.theme-arcade .hero h1{font-size:clamp(34px,4vw,51px);font-weight:850;line-height:1.2;letter-spacing:-1.8px;margin:20px 0 15px}
.theme-arcade .hero p{font-size:13px}
.theme-arcade .searchbox{border:2px solid var(--edge);border-radius:0;box-shadow:3px 3px 0 var(--edge);margin:24px 0 20px}
.theme-arcade .searchbox button{border:2px solid var(--edge);border-radius:0;font-size:12px}
.theme-arcade .hero-stats{font-size:11px;font-family:ui-monospace,Consolas,monospace}
.theme-arcade .hero-art{display:block;min-height:350px;background:var(--tint);border:0;border-left:3px solid var(--edge)}
.theme-arcade .orbit{position:absolute;left:50%;top:50%;width:160px;height:104px;transform:translate(-50%,-50%) rotate(-8deg);border:4px solid #252b21;border-radius:22px;background:#e8a844;box-shadow:0 6px 0 #252b21}
.theme-arcade .orbit:before{inset:auto;left:32px;top:22px;width:16px;height:48px;border:0;border-radius:0;background:#252b21}
.theme-arcade .orbit:after{inset:auto;left:16px;top:38px;width:48px;height:16px;border:0;border-radius:0;background:#252b21}
.theme-arcade .art-glyph{left:calc(50% + 16px);top:calc(50% - 23px);width:20px;height:20px;border:3px solid #252b21;border-radius:50%;background:#3b7b4a;font-size:0;transform:rotate(-8deg);box-shadow:24px 18px 0 -1px #d8582b,24px 18px 0 2px #252b21}
.theme-arcade .hero-art:before,.theme-arcade .hero-art:after{content:"";position:absolute;width:12px;height:12px;background:#458550;box-shadow:12px 0 #458550,0 12px #458550,-12px 0 #458550,0 -12px #458550}
.theme-arcade .hero-art:before{left:45px;top:45px}
.theme-arcade .hero-art:after{right:42px;bottom:44px;background:#db6a37;box-shadow:12px 0 #db6a37,0 12px #db6a37,-12px 0 #db6a37,0 -12px #db6a37}
.theme-arcade :is(.art-note,.art-label){display:none}
.theme-arcade .portal-shortcuts{gap:12px;margin:28px 0}
.theme-arcade .portal-shortcuts a{border:2px solid var(--edge);box-shadow:3px 3px 0 var(--edge);border-radius:0;background:var(--surface);font-size:12px;font-weight:600}
.theme-arcade .portal-shortcuts a:nth-of-type(3n+1){background:var(--tint)}
.theme-arcade .portal-shortcuts a:nth-of-type(3n+2){background:var(--panel-b)}
.theme-arcade .portal-featured{margin:32px 0}
.theme-arcade .portal-featured .resource-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:21px}
.theme-arcade .portal-featured .resource-card{display:flex;flex-direction:column;padding:0;gap:0;min-height:264px;border:3px solid var(--edge);border-radius:0;box-shadow:5px 5px 0 var(--edge);overflow:hidden;background:var(--surface)}
.theme-arcade .portal-featured .resource-mark{width:100%;height:130px;flex:0 0 auto;border:0;border-bottom:3px solid var(--edge);border-radius:0;color:#20331d;font-size:54px;background-color:#c4dca4;background-image:linear-gradient(45deg,#b2cd9000 75%,#a2c17b 75%),linear-gradient(45deg,#a2c17b 25%,#b2cd9000 25%);background-size:30px 30px;background-position:0 0,15px 15px}
.theme-arcade .portal-featured .resource-card:nth-child(2n) .resource-mark{background-color:#edbd78;background-image:linear-gradient(90deg,#e2aa6000 50%,#e2aa60 50%);background-size:28px 100%}
.theme-arcade .portal-featured .resource-copy{padding:16px 17px 19px;width:100%}
.theme-arcade .portal-featured .resource-copy strong{font-size:16px;margin:0 0 8px}
.theme-arcade .portal-featured .resource-copy>span{font-size:12px;min-height:39px}
.theme-arcade .portal-featured .resource-copy small{font-size:10px}
.theme-arcade .portal-featured .card-arrow{display:none}
.theme-arcade .portal-featured .resource-card:focus-visible{outline-offset:-3px}
.theme-arcade .portal-toolbar{padding-bottom:14px;border-bottom:3px solid var(--edge)}
.theme-arcade .portal-toolbar h2{font-size:22px;font-weight:800}
.theme-arcade .portal-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px}
.theme-arcade .portal-group{background:var(--surface);border:3px solid var(--edge);box-shadow:5px 5px 0 var(--edge);padding:20px}
.theme-arcade .portal-group:nth-child(3n+2){background:var(--panel-b)}
.theme-arcade .portal-group-heading{flex-wrap:wrap;gap:8px}
.theme-arcade .portal-group-heading h3{font-size:18px;font-weight:800}
.theme-arcade .pGroup-icon{border:2px solid var(--edge);border-radius:0;color:var(--ink);font-size:11px;font-family:ui-monospace,Consolas,monospace}
.theme-arcade .portal-group-grid{gap:11px}
.theme-arcade .portal-group-grid .resource-card{border:1px solid var(--edge);border-radius:0;min-height:126px;padding:15px 11px;gap:9px}
.theme-arcade .portal-group-grid .resource-mark{width:30px;height:30px;border:1px solid var(--edge);border-radius:0;font-size:14px}
.theme-arcade .portal-group-grid .resource-copy strong{font-size:13px;margin-top:0}
.theme-arcade .portal-group-grid .resource-copy>span{font-size:11px;min-height:36px}
.theme-arcade .portal-group-grid .resource-copy small{font-size:10px}
.theme-arcade .portal-group-grid .card-arrow{display:none}
.theme-arcade .footer{max-width:1376px;margin:auto;padding:24px 28px}
html[data-color=dark] .theme-arcade{--bg:#171e19;--surface:#252f27;--ink:#fff6dc;--muted:#c8d1b9;--line:#a6ba99;--brand:#b6e292;--button:#34764b;--tint:#344b33;--edge:#b7c9a3;--panel-b:#473a24;background-image:radial-gradient(#4f6348 .7px,transparent .7px);background-size:15px 15px}

/* Override legacy dark selectors without letting these palettes leak to other themes. */
html[data-color=dark] :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .searchbox{background:var(--surface);border-color:var(--line)}
html[data-color=dark] :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) :is(.searchbox button,.button){background:var(--button);color:var(--button-ink)}
html[data-color=dark] :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .button.secondary{background:var(--surface);color:var(--brand)}
html[data-color=dark] :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .resource-card:hover{background:var(--tint)}
html[data-color=dark] .theme-compass .hero{background:transparent;border:0}
html[data-color=dark] .theme-compass .searchbox{border-color:var(--brand)}
html[data-color=dark] .theme-mosaic .hero{background:none;border:0}
html[data-color=dark] .theme-cinema .hero{background:#202025;border-color:#474246}
html[data-color=dark] .theme-cinema :is(.hero p,.hero-stats){color:#ded4c8}
html[data-color=dark] .theme-cinema .primary-nav>a{color:#e1d8cf}
html[data-color=dark] .theme-cinema .primary-nav>a:is(:hover,.active){color:#f5d394}
html[data-color=dark] .theme-arcade .hero{background:var(--surface);border-color:var(--edge)}
html[data-color=dark] .theme-arcade .primary-nav>a{color:var(--ink)}
html[data-color=dark] .theme-arcade .searchbox{border-color:var(--edge)}

@media(max-width:1200px){
  .theme-compass .portal-groups{grid-template-columns:repeat(2,minmax(0,1fr))}
  .theme-mosaic .hero{grid-template-columns:minmax(0,1fr) minmax(260px,.7fr)}
  .theme-mosaic .portal-groups{grid-template-columns:repeat(6,minmax(0,1fr))}
  .theme-mosaic .portal-group{grid-column:span 3}
  .theme-mosaic .portal-group:nth-child(6n+1),.theme-mosaic .portal-group:nth-child(6n+4){grid-column:span 6}
  .theme-cinema .portal-featured .resource-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .theme-cinema .portal-group{grid-template-columns:160px minmax(0,1fr);gap:18px}
  .theme-cinema .portal-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:960px){
  .theme-compass .portal-featured{display:block}
  .theme-compass .portal-featured .section-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}
  .theme-compass .portal-featured .section-heading>span{margin:0}
  .theme-mosaic .site-shell{grid-template-columns:130px minmax(0,1fr)}
  .theme-mosaic :is(main,.topbar){padding-inline:24px}
  .theme-mosaic .hero{grid-template-columns:1fr;min-height:0}
  .theme-mosaic .hero-art{display:none}
  .theme-mosaic .portal-featured .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .theme-mosaic .portal-group{padding:18px}
  .theme-mosaic .portal-group-grid{grid-template-columns:1fr}
  .theme-mosaic .portal-group:nth-child(6n+1) .portal-group-grid,.theme-mosaic .portal-group:nth-child(6n+4) .portal-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .theme-cinema :is(main,.topbar){padding-inline:28px}
  .theme-cinema .hero{grid-template-columns:1fr;min-height:0}
  .theme-cinema .hero-art{display:none}
  .theme-arcade .hero{grid-template-columns:1.4fr 1fr}
  .theme-arcade .hero-copy{padding:28px}
  .theme-arcade .portal-group-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .site-shell{display:block}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .sidebar{position:static;height:auto;display:block;padding:20px 18px 13px;border-right:0}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .brand{font-size:22px;flex-direction:row;justify-content:flex-start;text-align:left}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .primary-nav{display:flex;flex-direction:row;overflow-x:auto;white-space:nowrap;margin-top:17px;gap:5px;padding:4px}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .primary-nav>a{flex:0 0 auto;font-size:12px;padding:10px 12px;min-height:44px;white-space:nowrap}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) :is(.nav-label,.sidebar-foot){display:none}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .topbar{height:auto;min-height:65px;padding:10px 16px}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .eyebrow{display:none}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .topbar-actions{margin-left:auto;gap:8px}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .language-menu summary{font-size:12px}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) main{padding:14px 15px 36px}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .searchbox input{font-size:12px;padding:10px 8px}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .searchbox button{font-size:12px;padding:10px 15px}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .resource-grid{grid-template-columns:1fr}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-group-heading{display:grid;grid-template-columns:30px minmax(0,1fr) auto;column-gap:9px;row-gap:3px}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-group-heading>.pGroup-icon{grid-row:1 / span 2}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-group-heading>h3{grid-column:2;font-size:16px}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-group-heading>small{grid-column:2;font-size:10px}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-group-heading>a{grid-column:3;grid-row:1 / span 2;margin-left:auto;font-size:11px}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-toolbar{margin-top:26px;font-size:11px}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .portal-toolbar h2{font-size:19px}
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) .footer{padding:22px 18px;align-items:flex-start}
  .theme-compass .hero-copy{padding:18px 3px 28px}
  .theme-compass .hero h1{font-size:35px;line-height:1.25;letter-spacing:-1.1px}
  .theme-compass .hero p{font-size:13px}
  .theme-compass .searchbox{margin-top:23px}
  .theme-compass .searchbox input,.theme-compass .searchbox button{min-height:46px}
  .theme-compass .portal-shortcuts{gap:2px 6px;padding:10px 0}
  .theme-compass .portal-shortcuts a{font-size:12px;padding-inline:9px}
  .theme-compass .portal-featured{padding:16px}
  .theme-compass .portal-featured .section-heading{display:block}
  .theme-compass .portal-featured .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .theme-compass .portal-featured .resource-card{padding:9px;gap:7px;min-height:68px}
  .theme-compass .portal-featured .resource-copy strong{font-size:12px}
  .theme-compass .portal-groups{grid-template-columns:1fr;gap:25px}
  .theme-compass .portal-group-grid .resource-card{min-height:78px}
  .theme-mosaic .hero-copy{padding:26px 22px;border-radius:17px}
  .theme-mosaic .hero h1{font-size:33px}
  .theme-mosaic .portal-shortcuts{gap:8px}
  .theme-mosaic .portal-shortcuts a{font-size:12px;padding-inline:12px}
  .theme-mosaic .portal-featured{padding:18px;border-radius:15px}
  .theme-mosaic .portal-featured .resource-grid{grid-template-columns:1fr}
  .theme-mosaic .portal-groups{grid-template-columns:1fr;gap:18px}
  .theme-mosaic .portal-group,.theme-mosaic .portal-group:nth-child(6n+1),.theme-mosaic .portal-group:nth-child(6n+4){grid-column:auto;padding:18px;border-radius:16px}
  .theme-mosaic .portal-group-grid,.theme-mosaic .portal-group:nth-child(6n+1) .portal-group-grid,.theme-mosaic .portal-group:nth-child(6n+4) .portal-group-grid{grid-template-columns:1fr}
  .theme-cinema .hero-copy{padding:29px 23px}
  .theme-cinema .hero h1{font-size:37px;line-height:1.25;letter-spacing:-1px}
  .theme-cinema .portal-shortcuts{padding:12px;gap:7px}
  .theme-cinema .portal-shortcuts a{font-size:11px;padding:8px 11px}
  .theme-cinema .portal-featured{padding:19px 15px}
  .theme-cinema .portal-featured .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .theme-cinema .portal-featured .resource-mark{height:147px;font-size:49px}
  .theme-cinema .portal-featured .resource-card{min-height:265px}
  .theme-cinema .portal-featured .resource-copy{padding:12px 11px 0}
  .theme-cinema .portal-group{display:block;padding:24px 0}
  .theme-cinema .portal-group-heading{margin-bottom:15px}
  .theme-cinema .portal-group-heading h3{margin:0}
  .theme-cinema .portal-group-heading small{margin:0}
  .theme-cinema .portal-group-grid{grid-template-columns:1fr}
  .theme-cinema .portal-group-grid .resource-card{min-height:117px;padding:17px 14px}
  .theme-arcade main{padding-inline:16px;padding-right:21px}
  .theme-arcade .hero{display:block;min-height:0;box-shadow:5px 5px 0 var(--edge)}
  .theme-arcade .hero-copy{padding:27px 20px}
  .theme-arcade .hero h1{font-size:35px;letter-spacing:-1.2px}
  .theme-arcade .hero-art{display:block;border-left:0;border-top:3px solid var(--edge);min-height:220px}
  .theme-arcade .hero-art:before{left:35px;top:34px}
  .theme-arcade .hero-art:after{right:32px;bottom:34px}
  .theme-arcade .portal-shortcuts{gap:11px 10px}
  .theme-arcade .portal-shortcuts a{padding:9px 12px;font-size:11px}
  .theme-arcade .portal-featured .resource-grid{grid-template-columns:1fr;gap:21px}
  .theme-arcade .portal-featured .resource-card{min-height:255px;box-shadow:4px 4px 0 var(--edge)}
  .theme-arcade .portal-featured .resource-mark{height:131px}
  .theme-arcade .portal-groups{grid-template-columns:1fr;gap:24px}
  .theme-arcade .portal-group{padding:17px;box-shadow:4px 4px 0 var(--edge)}
  .theme-arcade .portal-group-grid{grid-template-columns:1fr}
  .theme-arcade .portal-group-grid .resource-card{min-height:117px;padding:16px 11px}
}
@media(prefers-reduced-motion:reduce){
  :is(.theme-compass,.theme-mosaic,.theme-cinema,.theme-arcade) *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
