/* 学道 — content discovery, November 2026. Final shared chrome and campus homepage. */
html[data-ui-theme] body[data-page] .site-header .header-actions { display:flex;gap:22px;align-items:center; }
html[data-ui-theme] body[data-page] .header-actions > a { display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0;border:0;background:transparent;font-size:13px;font-weight:500; }
html[data-ui-theme] body[data-page] .site-header .ui-theme-trigger { display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:50%;background:transparent;color:var(--muted); }
html[data-ui-theme] .site-header .ui-theme-trigger:hover { background:var(--cp-wash,#edf2f7);color:var(--action); }
html[data-ui-theme] .site-header .ui-theme-trigger > span { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0; }
html[data-ui-theme] .site-header .ui-theme-trigger svg { display:block;width:19px;height:19px; }
html[data-ui-theme] .brand strong { font-size:22px;letter-spacing:.07em;font-weight:700; }
.xd-course-topics { display:flex;flex-wrap:wrap;align-items:center;gap:4px 24px;margin:-8px 0 22px; }
.xd-course-topics > a { display:inline-flex;align-items:center;gap:6px;min-height:40px;color:var(--muted);font-size:13px; }
.xd-course-topics > a > span { display:none; }
.xd-course-topics > a[aria-current],.xd-course-topics > a:hover { color:var(--action); }
.xd-course-topics > a[aria-current] { font-weight:650; }

/* The three other art directions keep their existing compositions. */
html[data-ui-theme="classic"] body[data-page="home"] { --bg:#f6f7f9;--ink:#253246;--muted:#667183; }
html[data-ui-theme="classic"] body[data-page="home"] .site-header { height:auto;background:#fff;box-shadow:none; }
html[data-ui-theme="classic"] body[data-page="home"] .site-header .header-inner { width:calc(100% - 64px);max-width:1280px;padding:16px 0 0;height:auto;min-height:0;display:grid;grid-template-columns:190px minmax(220px,1fr) auto;gap:8px 32px; }
html[data-ui-theme="classic"] body[data-page="home"] .brand { grid-column:1;grid-row:1; }
html[data-ui-theme="classic"] body[data-page="home"] .main-nav { display:flex;grid-column:1/-1;grid-row:2;gap:36px;height:49px;min-width:0;border-top:1px solid #f0f2f5;padding-left:0; }
html[data-ui-theme="classic"] body[data-page="home"] .main-nav a { font-size:14px;font-weight:500; }
html[data-ui-theme="classic"] body[data-page="home"] .header-actions { grid-column:3;grid-row:1;margin:0; }
html[data-ui-theme="classic"] body[data-page="home"] .xd-header-search { grid-column:2;grid-row:1;min-width:0;max-width:470px;width:100%; }
html[data-ui-theme="classic"] .xd-header-search .hero-search { display:flex;align-items:center;gap:0;height:44px;min-height:44px;width:100%;max-width:none;margin:0;padding:3px 4px 3px 16px;border:1px solid #dce2eb;border-radius:24px;background:#f8f9fb;box-shadow:none; }
.xd-header-search .hero-search input { width:0;min-width:0;flex:1;height:34px;min-height:0;border:0;background:transparent;padding:0;outline:0;font:inherit;font-size:13px;color:#35445a;box-shadow:none; }
.xd-header-search .hero-search:focus-within { border-color:#7f9bc4;box-shadow:0 0 0 3px #2d60b40d; }
html[data-ui-theme="classic"] .xd-header-search .hero-search button { flex:none;display:flex;align-items:center;height:34px;min-height:34px;padding:0 16px;border:0;border-radius:20px;background:#255bb3;color:#fff;font:inherit;font-size:12px;cursor:pointer; }
.xd-header-search .hero-search button:hover { background:#1b4b9a; }
.xd-header-search .hero-search button:focus-visible { outline:2px solid #255bb3;outline-offset:3px; }
html[data-ui-theme="classic"] #main .cp-home { width:min(100% - 64px,1280px);max-width:1280px;padding-top:24px; }
html[data-ui-theme="classic"] #main .xd-discovery { display:grid;grid-template-columns:170px minmax(0,1fr) 210px;gap:18px;align-items:stretch; }
html[data-ui-theme="classic"] #main .xd-subjects { display:flex;flex-direction:column;background:#fff;border:1px solid #e8ebf0;border-radius:12px;padding:16px 16px 12px; }
html[data-ui-theme="classic"] #main .xd-subjects h2 { font-size:15px;margin:0 0 10px;font-weight:650; }
html[data-ui-theme="classic"] #main .xd-subjects > a { display:flex;align-items:center;gap:8px;min-height:39px;font-size:13px;color:#526074; }
html[data-ui-theme="classic"] #main .xd-subjects > a > span:first-child { display:none; }
html[data-ui-theme="classic"] #main .xd-subjects > a > span:last-child { display:inline;margin-left:auto;color:#8a95a5;font-size:12px; }
html[data-ui-theme="classic"] #main .xd-subjects > a:nth-last-child(2) { border-top:1px solid #edf0f4;margin-top:5px;padding-top:4px; }
html[data-ui-theme="classic"] #main .xd-subjects > a:hover { color:#255bb3; }
html[data-ui-theme="classic"] #main .cp-campus-opening { position:relative;display:grid;grid-template-columns:1.13fr 1fr;min-height:338px;background:#eaf0f9;border-radius:12px;box-shadow:none; }
html[data-ui-theme="classic"] #main .cp-campus-opening [data-cp-slot="welcome"] { position:relative;z-index:1;align-self:center;padding:28px 24px 28px 30px;background:transparent; }
html[data-ui-theme="classic"] #main .cp-home .hero h1 { color:#4e6d99;font-size:14px;font-weight:550;letter-spacing:.12em;margin:0 0 18px; }
html[data-ui-theme="classic"] #main .cp-home .hero .hero-statement { max-width:12em;font-size:29px;color:#203a60;font-weight:650;line-height:1.6;letter-spacing:-.035em;margin:0 0 18px; }
html[data-ui-theme="classic"] #main .cp-home .hero p:not(.hero-statement) { color:#61748d;font-size:12px;line-height:1.9; }
html[data-ui-theme="classic"] #main .cp-home .hero .button-row { gap:8px 16px;margin-top:18px; }
html[data-ui-theme="classic"] #main .cp-home .hero-link { color:#315f9f;font-size:12px;min-height:36px; }
html[data-ui-theme="classic"] #main .cp-campus-opening .cp-photo { height:100%;border-radius:0; }
html[data-ui-theme="classic"] #main .cp-campus-opening .cp-photo img { object-position:58% center; }
html[data-ui-theme="classic"] #main .xd-learning-entry { display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;background:#fff;border:1px solid #e8ebf0;border-radius:12px;padding:22px 18px;text-align:center; }
html[data-ui-theme="classic"] #main .xd-entry-mark { display:grid;place-items:center;width:70px;height:70px;border-radius:50%;background:#f0f4fb;color:#5f80af;margin-bottom:18px; }
html[data-ui-theme="classic"] #main .xd-learning-entry h2 { font-size:16px;line-height:1.6;font-weight:650;margin:0 0 10px; }
html[data-ui-theme="classic"] #main .xd-learning-entry p { color:#7c8592;font-size:12px;line-height:1.9;margin:0 0 22px; }
html[data-ui-theme="classic"] #main .xd-learning-entry .btn { width:100%;min-height:40px;border-radius:22px;font-size:12px;padding:10px 12px; }
html[data-ui-theme="classic"] #main .xd-learning-entry > a:not(.btn) { display:inline-flex;align-items:center;gap:10px;min-height:38px;font-size:12px;color:#63738a;margin-top:6px; }
html[data-ui-theme="classic"] #main .cp-services { margin:18px 0 40px;border:0;background:#fff;border-radius:12px;box-shadow:none; }
html[data-ui-theme="classic"] #main .cp-services > a { min-height:86px;padding:18px 18px 18px 72px;border-color:#eef1f5; }
html[data-ui-theme="classic"] #main .cp-services strong { font-size:16px;font-weight:600; }
html[data-ui-theme="classic"] #main .cp-services a > span:not(.cp-service-icon) { font-size:12px; }
html[data-ui-theme="classic"] #main .cp-services .cp-service-icon { position:absolute;left:22px;top:24px;width:32px;height:32px;border-radius:8px;background:#f0f4fa;margin:0; }
html[data-ui-theme="classic"] #main .cp-home .section { margin-bottom:40px; }
html[data-ui-theme="classic"] #main .cp-home .section-head { margin-bottom:20px;align-items:center; }
html[data-ui-theme="classic"] #main .cp-home .section-head h2 { font-size:23px;font-weight:650;line-height:1.6;letter-spacing:-.02em; }
html[data-ui-theme="classic"] #main .cp-home .section-head p { font-size:13px;color:#798494;margin-top:4px; }
html[data-ui-theme="classic"] #main .cp-home-courses .grid { grid-template-columns:repeat(4,minmax(0,1fr));gap:22px; }
html[data-ui-theme="classic"] #main .cp-home-courses .card { border:1px solid #e9edf2;border-radius:10px;box-shadow:none; }
html[data-ui-theme="classic"] #main .cp-home-courses .card-body { padding:18px; }
html[data-ui-theme="classic"] #main .cp-home-courses h3 { font-size:16px;line-height:1.7; }
html[data-ui-theme="classic"] #main .cp-home-courses .card-body > p { font-size:12px;line-height:1.85; }
html[data-ui-theme="classic"] #main .cp-home-courses .card-meta { font-size:11px;gap:6px; }
html[data-ui-theme="classic"] #main .cp-home-courses .card-footer { margin-top:16px;padding-top:14px;gap:12px;font-size:11px; }
html[data-ui-theme="classic"] #main .cp-home-courses .cp-course-price { font-size:16px; }
html[data-ui-theme="classic"] #main .cp-home-courses .cp-course-action { font-size:11px; }
.v2-video-online-state { position:relative;padding:18px 22px;background:#eef3fa;border-bottom:1px solid #dbe5f0; }
.v2-video-online-state strong { display:block;font-size:16px;color:#294e7b;margin-bottom:6px; }
.v2-video-online-state p { font-size:13px;line-height:1.8;color:#5c7089;margin:0; }

@media(max-width:1200px) {
  html[data-ui-theme="classic"] body[data-page="home"] .site-header .header-inner { grid-template-columns:164px minmax(200px,1fr) auto;gap:8px 22px; }
  html[data-ui-theme="classic"] #main .xd-discovery { grid-template-columns:150px minmax(0,1fr) 185px;gap:14px; }
  html[data-ui-theme="classic"] #main .cp-campus-opening { grid-template-columns:1.3fr 1fr; }
  html[data-ui-theme="classic"] #main .cp-campus-opening [data-cp-slot="welcome"] { padding:24px; }
  html[data-ui-theme="classic"] #main .cp-home .hero .hero-statement { font-size:25px; }
  html[data-ui-theme="classic"] #main .cp-services > a { padding-left:58px;padding-right:14px; }
  html[data-ui-theme="classic"] #main .cp-services .cp-service-icon { left:16px; }
  html[data-ui-theme="classic"] #main .cp-home-courses .grid { gap:16px; }
}
@media(max-width:1000px) {
  html[data-ui-theme="classic"] #main .xd-discovery { grid-template-columns:150px minmax(0,1fr); }
  html[data-ui-theme="classic"] #main .xd-learning-entry { display:none; }
  html[data-ui-theme="classic"] #main .cp-home-courses .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html[data-ui-theme] body[data-page] .site-header .header-actions { gap:16px; }
  html[data-ui-theme] body:not([data-page="admin"]) .header-actions > .admin-link { display:none; }
}
@media(max-width:800px) {
  html[data-ui-theme="classic"] body[data-page="home"] .site-header .header-inner { width:calc(100% - 32px);grid-template-columns:minmax(0,1fr) auto;padding:10px 0 12px;gap:10px 16px;min-height:0;height:auto; }
  html[data-ui-theme="classic"] body[data-page="home"] .header-actions { display:flex;grid-column:2;gap:14px; }
  html[data-ui-theme="classic"] body[data-page="home"] .header-actions > a { display:none; }
  html[data-ui-theme="classic"] body[data-page="home"] .main-nav { display:none; }
  html[data-ui-theme="classic"] body[data-page="home"] .xd-header-search { grid-column:1/-1;grid-row:2;max-width:none; }
  html[data-ui-theme="classic"] #main .cp-home { width:calc(100% - 32px);padding-top:18px; }
  html[data-ui-theme="classic"] #main .xd-discovery { grid-template-columns:minmax(0,1fr);gap:14px; }
  html[data-ui-theme="classic"] #main .cp-campus-opening { display:grid;grid-template-columns:1.1fr 1fr;min-height:300px;order:1; }
  html[data-ui-theme="classic"] #main .cp-campus-opening .cp-photo { height:100%; }
  html[data-ui-theme="classic"] #main .cp-campus-opening [data-cp-slot="welcome"] { padding:24px; }
  html[data-ui-theme="classic"] #main .cp-home .hero .hero-statement { font-size:26px; }
  html[data-ui-theme="classic"] #main .xd-subjects { order:2;flex-direction:row;overflow-x:auto;align-items:center;gap:20px;padding:4px 16px;border-radius:8px; }
  html[data-ui-theme="classic"] #main .xd-subjects h2,html[data-ui-theme="classic"] #main .xd-subjects > a > span { display:none; }
  html[data-ui-theme="classic"] #main .xd-subjects > a { flex:none;min-height:44px;white-space:nowrap; }
  html[data-ui-theme="classic"] #main .xd-subjects > a:nth-last-child(2) { border:0;padding:0;margin:0; }
  html[data-ui-theme="classic"] #main .cp-services { grid-template-columns:repeat(2,minmax(0,1fr));margin:16px 0 32px; }
  html[data-ui-theme="classic"] #main .cp-services > a { min-height:86px;padding:16px 14px 16px 60px; }
  html[data-ui-theme="classic"] #main .cp-services .cp-service-icon { left:16px;top:22px; }
  html[data-ui-theme="classic"] #main .cp-services strong { font-size:15px; }
  html[data-ui-theme="classic"] #main .cp-services a > span:not(.cp-service-icon) { font-size:11px; }
  html[data-ui-theme="classic"] #main .cp-home .section-head h2 { font-size:21px; }
  html[data-ui-theme="classic"] #main .cp-home-courses .grid { gap:14px; }
  .xd-course-topics { gap:0 18px;margin-bottom:16px; }
  html[data-ui-theme] .brand strong { font-size:20px; }
}
@media(max-width:480px) {
  html[data-ui-theme="classic"] #main .cp-campus-opening { grid-template-columns:minmax(0,1fr); }
  html[data-ui-theme="classic"] #main .cp-campus-opening [data-cp-slot="welcome"] { padding:26px; }
  html[data-ui-theme="classic"] #main .cp-home .hero .hero-statement { font-size:27px;max-width:11em; }
  html[data-ui-theme="classic"] #main .cp-campus-opening .cp-photo { height:156px; }
  html[data-ui-theme="classic"] #main .cp-campus-opening .cp-photo img { object-position:50% 47%; }
  html[data-ui-theme="classic"] #main .cp-home-courses .grid { grid-template-columns:minmax(0,1fr); }
  html[data-ui-theme="classic"] #main .cp-home-courses .card-body { padding:18px; }
  html[data-ui-theme="classic"] #main .cp-home-courses h3 { font-size:17px; }
  html[data-ui-theme="classic"] #main .cp-services > a { padding:16px 12px 16px 50px; }
  html[data-ui-theme="classic"] #main .cp-services .cp-service-icon { width:26px;height:26px;left:12px;top:23px; }
  html[data-ui-theme="classic"] #main .cp-services .cp-service-icon svg { width:20px;height:20px; }
  html[data-ui-theme="classic"] #main .cp-services a > span:not(.cp-service-icon) { font-size:10px;gap:4px; }
}
@media(max-width:640px) {
  html[data-ui-theme] body[data-page] { grid-template-rows:64px minmax(0,1fr) calc(58px + env(safe-area-inset-bottom)); }
  html[data-ui-theme] body[data-page="admin"] { grid-template-rows:64px minmax(0,1fr); }
  html[data-ui-theme] body[data-page] .site-header { height:64px; }
  html[data-ui-theme="classic"] body[data-page="home"] { grid-template-rows:auto minmax(0,1fr) calc(58px + env(safe-area-inset-bottom)); }
  html[data-ui-theme="classic"] body[data-page="home"] .site-header { height:auto; }
  html[data-ui-theme] body[data-page] .header-actions > a { display:none; }
  html[data-ui-theme] body[data-page="admin"] .header-actions > .admin-link { display:inline-flex; }
  html[data-ui-theme] body[data-page] .site-header .header-actions { gap:12px;margin-left:auto; }
  html[data-ui-theme="classic"] .xd-header-search .hero-search input { font-size:16px; }
}

/* Compact charcoal footer: all destinations retained; mobile groups disclose on demand. */
html[data-ui-theme] body[data-page] .site-footer { --footer-bg:#27282f;--footer-text:#b9bdc8;--footer-muted:#aeb3c0;--footer-heading:#f3f4f7;--footer-rule:#ffffff18;background:var(--footer-bg);color:var(--footer-text);border:0;margin:0;padding:24px 0 18px; }
html[data-ui-theme] .site-footer .xd-footer-wrap { width:min(100% - 64px,1280px);margin:0 auto; }
html[data-ui-theme] .site-footer .footer-inner { display:grid;grid-template-columns:minmax(220px,1.3fr) repeat(4,minmax(0,1fr));gap:28px;max-width:none;padding:0;margin:0; }
html[data-ui-theme] .site-footer a { color:var(--footer-text);text-decoration:none;transition:color 150ms ease; }
html[data-ui-theme] .site-footer a:hover { color:#fff; }
html[data-ui-theme] .site-footer :is(a,summary):focus-visible { outline:2px solid #c1d8ff;outline-offset:2px; }
html[data-ui-theme] .site-footer .xd-footer-brand { display:inline-flex;align-items:center;min-height:40px;margin-bottom:10px; }
html[data-ui-theme] .site-footer .xd-footer-brand .xd-logo { width:132px; }
html[data-ui-theme] .site-footer .xd-footer-motto { color:#b9bdc8;font-size:12px;line-height:1.9;margin:0;max-width:19em; }
html[data-ui-theme] .site-footer .xd-footer-column { display:block;min-width:0; }
html[data-ui-theme] .site-footer .xd-footer-column > summary { color:var(--footer-heading);font-size:13px;font-weight:550;line-height:1.6;margin-bottom:8px;list-style:none;pointer-events:none; }
html[data-ui-theme] .site-footer summary::-webkit-details-marker { display:none; }
html[data-ui-theme] .site-footer .xd-footer-column > nav { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px; }
html[data-ui-theme] .site-footer .xd-footer-column a { display:inline-flex;align-items:center;min-height:30px;font-size:12px;line-height:1.8; }
html[data-ui-theme] .site-footer .footer-partners { display:flex;align-items:center;gap:10px 24px;width:100%;margin:16px 0 0;padding:9px 0;border-top:1px solid var(--footer-rule); }
html[data-ui-theme] .site-footer .footer-partners h2 { flex:none;color:#c6cad4;font-size:12px;font-weight:500;line-height:1.8;margin:0; }
html[data-ui-theme] .site-footer .xd-footer-institutions { display:flex;flex-wrap:wrap;column-gap:22px; }
html[data-ui-theme] .site-footer .xd-footer-institutions a { display:inline-flex;align-items:center;min-height:32px;font-size:12px;line-height:1.8;border:0;background:none;padding:0; }
html[data-ui-theme] .site-footer .xd-footer-bottom { border-top:1px solid var(--footer-rule);padding-top:10px; }
html[data-ui-theme] .site-footer .xd-footer-legal { display:flex;justify-content:space-between;align-items:center;gap:8px 24px; }
html[data-ui-theme] .site-footer .xd-footer-legal > p { display:flex;flex-wrap:wrap;gap:4px 16px;color:var(--footer-muted);font-size:12px;line-height:1.8;margin:0; }
html[data-ui-theme] .site-footer .xd-footer-legal nav { display:flex;flex-wrap:wrap;gap:0 20px; }
html[data-ui-theme] .site-footer .xd-footer-legal a { display:inline-flex;align-items:center;min-height:32px;color:var(--footer-muted);font-size:12px;line-height:1.8; }
@media(max-width:1100px) {
  html[data-ui-theme] .site-footer .footer-inner { grid-template-columns:minmax(190px,1.3fr) repeat(4,minmax(0,1fr));gap:20px; }
  html[data-ui-theme] .site-footer .xd-footer-column > nav { grid-template-columns:1fr; }
  html[data-ui-theme] .site-footer .footer-partners { align-items:flex-start; }
}
@media(max-width:900px) {
  html[data-ui-theme] .site-footer .footer-inner { grid-template-columns:repeat(4,minmax(0,1fr));gap:16px; }
  html[data-ui-theme] .site-footer .xd-footer-intro { grid-column:1/-1;display:flex;align-items:center;gap:24px; }
  html[data-ui-theme] .site-footer .xd-footer-brand { margin:0; }
  html[data-ui-theme] .site-footer .xd-footer-motto { max-width:none; }
  html[data-ui-theme] .site-footer .xd-footer-legal { align-items:flex-start;flex-direction:column; }
}
@media(max-width:640px) {
  html[data-ui-theme] body[data-page] .site-footer { padding:22px 0 20px; }
  html[data-ui-theme] .site-footer .xd-footer-wrap { width:calc(100% - 40px); }
  html[data-ui-theme] .site-footer .footer-inner { grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px; }
  html[data-ui-theme] .site-footer .xd-footer-intro { display:block;margin-bottom:16px; }
  html[data-ui-theme] .site-footer .xd-footer-brand { margin-bottom:8px; }
  html[data-ui-theme] .site-footer .xd-footer-column { border-top:1px solid var(--footer-rule); }
  html[data-ui-theme] .site-footer .xd-footer-column > summary { display:flex;align-items:center;justify-content:space-between;min-height:44px;margin:0;pointer-events:auto;cursor:pointer; }
  html[data-ui-theme] .site-footer .xd-footer-column > summary::after { content:'+';font-size:16px;color:var(--footer-muted); }
  html[data-ui-theme] .site-footer .xd-footer-column[open] > summary::after { content:'−'; }
  html[data-ui-theme] .site-footer .xd-footer-column > nav { padding-bottom:8px; }
  html[data-ui-theme] .site-footer .xd-footer-column a { min-height:44px; }
  html[data-ui-theme] .site-footer .footer-partners { display:block;margin-top:8px;padding:14px 0 10px; }
  html[data-ui-theme] .site-footer .footer-partners h2 { margin:0 0 6px; }
  html[data-ui-theme] .site-footer .xd-footer-institutions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px; }
  html[data-ui-theme] .site-footer .xd-footer-institutions a { min-height:44px;font-size:11px; }
  html[data-ui-theme] .site-footer .xd-footer-legal { gap:6px; }
  html[data-ui-theme] .site-footer .xd-footer-legal > p { gap:3px 12px; }
  html[data-ui-theme] .site-footer .xd-footer-legal nav { gap:0 16px; }
  html[data-ui-theme] .site-footer .xd-footer-legal a { min-height:44px;font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { html[data-ui-theme] .site-footer a { transition:none; } }

/* Homepage chapters: distinct surfaces and ruled boundaries, inspired by Rona's
   broad editorial panels. Business nodes and the four compositions stay intact. */
html[data-ui-theme] #main .cp-home { --chapter-line:#ced9e6;--chapter-wash:#edf3f9;--chapter-radius:24px;padding-bottom:32px; }
html[data-ui-theme] #main .cp-home .section { position:relative;scroll-margin-top:140px; }
html[data-ui-theme] #main .cp-home .section-head { gap:24px; }
html[data-ui-theme] #main .cp-home .section-head > div { min-width:0; }
html[data-ui-theme] #main .cp-home .section-head h2 { letter-spacing:-.035em; }
html[data-ui-theme] #main .cp-home .section-head > a { flex:none;display:inline-flex;align-items:center;min-height:44px;font-size:13px;white-space:nowrap; }
html[data-ui-theme] #main .cp-home .section-head p { max-width:42em; }
html[data-ui-theme] #main .cp-home .section .card-image { display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover; }
html[data-ui-theme] #main .cp-home .v2-home-mentor-portrait img { width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;object-position:center top; }

/* Campus: full-width chapters alternate white and blue; events use a side title. */
html[data-ui-theme="classic"] body[data-page="home"] { --bg:#edf1f6; }
html[data-ui-theme="classic"] #main .cp-home .section { margin:0 0 28px;padding:36px;border:1px solid var(--chapter-line);border-radius:var(--chapter-radius);background:#fff; }
html[data-ui-theme="classic"] #main .cp-home .section-head { margin-bottom:26px; }
html[data-ui-theme="classic"] #main .cp-home .section-head h2 { font-size:30px;font-weight:600;line-height:1.4; }
html[data-ui-theme="classic"] #main .cp-home .section-head p { margin-top:10px;font-size:14px;color:#647389; }
html[data-ui-theme="classic"] #main .cp-home .cp-home-courses { border-top:3px solid #799ac7; }
html[data-ui-theme="classic"] #main .cp-home .cp-home-courses .card { border-color:#e4eaf1;border-radius:12px; }
html[data-ui-theme="classic"] #main .cp-home .cp-home-events { padding:40px;background:#e3edf8;border-color:#c3d3e7; }
html[data-ui-theme="classic"] #main .cp-home-events > .container { display:grid;grid-template-columns:210px minmax(0,1fr);gap:40px;align-items:start; }
html[data-ui-theme="classic"] #main .cp-home-events .section-head { display:flex;flex-direction:column;align-items:flex-start;gap:24px;margin:0; }
html[data-ui-theme="classic"] #main .cp-home-events .section-head h2 { max-width:5em;font-size:36px;line-height:1.45; }
html[data-ui-theme="classic"] #main .cp-home-events .image-list { grid-template-columns:repeat(2,minmax(0,1fr));gap:20px; }
html[data-ui-theme="classic"] #main .cp-home-events .event-card { border:0;border-radius:14px;overflow:hidden;box-shadow:none;background:#fff; }
html[data-ui-theme="classic"] #main .cp-home-mentors .grid { grid-template-columns:repeat(4,minmax(0,1fr));gap:24px; }
html[data-ui-theme="classic"] #main .cp-home-mentors .v2-home-mentor-card { border:1px solid #e3e9f0;border-radius:14px;overflow:hidden;box-shadow:none; }
html[data-ui-theme="classic"] #main .cp-home-mentors .v2-home-mentor-card .card-body { display:block;padding:0; }
html[data-ui-theme="classic"] #main .cp-home-mentors .v2-home-mentor-portrait { width:100%;margin:0; }
html[data-ui-theme="classic"] #main .cp-home-mentors .v2-home-mentor-portrait img { border-radius:0; }
html[data-ui-theme="classic"] #main .cp-home-mentors .v2-home-mentor-copy { padding:20px 22px 14px; }
html[data-ui-theme="classic"] #main .cp-home-mentors .v2-home-mentor-copy h3 { font-size:20px; }
html[data-ui-theme="classic"] #main .cp-home .cp-home-projects { background:#f5f8fc; }
html[data-ui-theme="classic"] #main .cp-home-projects .grid { gap:24px; }
html[data-ui-theme="classic"] #main .cp-home-projects .card { border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;box-shadow:none;background:#fff; }
html[data-ui-theme="classic"] #main .cp-home-community > .container { display:grid;grid-template-columns:210px minmax(0,1fr);gap:40px;align-items:start; }
html[data-ui-theme="classic"] #main .cp-home-community .section-head { display:flex;flex-direction:column;align-items:flex-start;gap:24px;margin:0; }
html[data-ui-theme="classic"] #main .cp-home-community .grid { grid-template-columns:1fr;gap:0; }
html[data-ui-theme="classic"] #main .cp-home-community .card { border:0;border-top:1px solid var(--chapter-line);border-radius:0;background:transparent;box-shadow:none; }
html[data-ui-theme="classic"] #main .cp-home-community .card:last-child { border-bottom:1px solid var(--chapter-line); }
html[data-ui-theme="classic"] #main .cp-home-community .card-body { padding:22px 0; }
html[data-ui-theme="classic"] #main .cp-home-community .card-footer { border:0;margin-top:12px;padding:0; }
html[data-ui-theme="classic"] #main .cp-home .cp-home-goals { background:#e6edf6;border-color:#c9d5e4; }
html[data-ui-theme="classic"] #main .cp-home-goals .quick-grid { gap:12px;border:0; }
html[data-ui-theme="classic"] #main .cp-home-goals .quick-link { padding:24px 18px;min-width:0;border:1px solid #cedbe9;border-radius:12px;background:#ffffffb3; }
html[data-ui-theme="classic"] #main .cp-home .cp-home-paths { border-top:3px solid #799ac7; }
html[data-ui-theme="classic"] #main .cp-home .cp-home-explore { background:transparent;border:0;border-top:1px solid #b9c9db;border-radius:0;padding:32px 0 8px;margin-bottom:12px; }
html[data-ui-theme="classic"] #main .cp-home-explore .section-head h2 { font-size:24px; }

/* Community: white feed panels, purple rules and compact independent side boards. */
html[data-ui-theme="cobalt"] #main .cp-home { --chapter-line:#d9d3ea;--chapter-wash:#f1eef8; }
html[data-ui-theme="cobalt"] #main .cp-home .section { padding:26px;margin-bottom:28px;border:1px solid var(--chapter-line);border-top:3px solid #b4a5da;border-radius:18px;background:#fff; }
html[data-ui-theme="cobalt"] #main .cp-home .section-head { padding:0 0 18px;border-bottom:1px solid #e6e0f0; }
html[data-ui-theme="cobalt"] #main .cp-home .section-head h2 { font-size:25px; }
html[data-ui-theme="cobalt"] #main .cp-community-columns { gap:24px; }
html[data-ui-theme="cobalt"] #main .cp-community-columns > div:nth-child(2) .section { padding:22px;background:#eeebf7; }
html[data-ui-theme="cobalt"] #main .cp-community-columns > div:nth-child(2) .section-head { display:block; }
html[data-ui-theme="cobalt"] #main .cp-community-columns > div:nth-child(2) .section-head h2 { font-size:22px; }
html[data-ui-theme="cobalt"] #main .cp-community-columns > div:nth-child(2) .section-head > a { margin-top:8px; }
html[data-ui-theme="cobalt"] #main .cp-home-courses .card { grid-template-columns:minmax(120px,34%) minmax(0,1fr);gap:16px;padding:14px; }
html[data-ui-theme="cobalt"] #main .cp-home .cp-home-goals { background:var(--chapter-wash); }
html[data-ui-theme="cobalt"] #main .cp-home .cp-home-mentors .grid.four { grid-template-columns:1fr; }

/* Academy: broad open spreads, prominent rules, restrained blue inset surfaces. */
html[data-ui-theme="atelier"] #main .cp-home .section { padding:44px 0 0;margin-bottom:56px;border-top:1px solid #aebcca;border-radius:0; }
html[data-ui-theme="atelier"] #main .cp-home .section-head { align-items:flex-start;margin-bottom:32px;padding:0;border:0; }
html[data-ui-theme="atelier"] #main .cp-home .section-head h2 { font-size:34px;font-weight:500; }
html[data-ui-theme="atelier"] #main .cp-home-courses .grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:32px; }
html[data-ui-theme="atelier"] #main .cp-home .cp-home-events,
html[data-ui-theme="atelier"] #main .cp-home .cp-home-projects { padding:40px;background:#edf2f6;border:1px solid #d2dce5;border-radius:24px; }
html[data-ui-theme="atelier"] #main :is(.cp-home-events,.cp-home-projects) > .container { display:grid;grid-template-columns:230px minmax(0,1fr);gap:40px;align-items:start; }
html[data-ui-theme="atelier"] #main :is(.cp-home-events,.cp-home-projects) .section-head { flex-direction:column;gap:24px;margin:0; }
html[data-ui-theme="atelier"] #main .cp-home-projects .grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:24px; }
html[data-ui-theme="atelier"] #main .cp-home-projects .card:last-child { grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;background:#fff; }
html[data-ui-theme="atelier"] #main .cp-home-projects .card:last-child .card-body { padding:24px; }
html[data-ui-theme="atelier"] #main .cp-home .cp-home-goals { padding:40px;background:#f5f7f9;border:1px solid #d2dce5;border-radius:24px; }
html[data-ui-theme="atelier"] #main .cp-home-mentors .v2-home-mentor-card .card-body { display:block;padding:0; }
html[data-ui-theme="atelier"] #main .cp-home-mentors .v2-home-mentor-portrait { width:100%; }
html[data-ui-theme="atelier"] #main .cp-home-mentors .v2-home-mentor-copy { padding:22px 16px 12px; }

/* Workspace: orderly dashboard panels and a clearly ruled lower tool area. */
html[data-ui-theme="studio"] #main .cp-home .section { padding:28px;margin-bottom:24px;border:1px solid #c8d3df;border-top:3px solid #8eabbf;border-radius:14px;background:#fff; }
html[data-ui-theme="studio"] #main .cp-home .section-head { padding-bottom:18px;margin-bottom:22px;border-bottom:1px solid #d8e1e9; }
html[data-ui-theme="studio"] #main .cp-home .section-head h2 { font-size:25px; }
html[data-ui-theme="studio"] #main .cp-workspace-columns > div:nth-child(2) .section { background:#f7f9fb; }
html[data-ui-theme="studio"] #main .cp-home .cp-home-paths { background:#e6edf4;border-color:#becddd; }
html[data-ui-theme="studio"] #main .cp-home .cp-home-mentors .grid.four { grid-template-columns:repeat(2,minmax(0,1fr)); }

@media(max-width:1100px) {
  html[data-ui-theme="classic"] #main .cp-home .section { padding:28px; }
  html[data-ui-theme="classic"] #main :is(.cp-home-events,.cp-home-community) > .container { grid-template-columns:180px minmax(0,1fr);gap:28px; }
  html[data-ui-theme="classic"] #main .cp-home-mentors .grid { gap:16px; }
  html[data-ui-theme="classic"] #main .cp-home-mentors .v2-home-mentor-copy { padding:18px 16px 10px; }
  html[data-ui-theme="atelier"] #main :is(.cp-home-events,.cp-home-projects) > .container { grid-template-columns:180px minmax(0,1fr);gap:28px; }
  html[data-ui-theme="cobalt"] #main .cp-home .section { padding:20px; }
}
@media(max-width:900px) {
  html[data-ui-theme="classic"] #main :is(.cp-home-events,.cp-home-community) > .container,
  html[data-ui-theme="atelier"] #main :is(.cp-home-events,.cp-home-projects) > .container { display:block; }
  html[data-ui-theme="classic"] #main :is(.cp-home-events,.cp-home-community) .section-head,
  html[data-ui-theme="atelier"] #main :is(.cp-home-events,.cp-home-projects) .section-head { flex-direction:row;align-items:center;margin-bottom:24px; }
  html[data-ui-theme="classic"] #main .cp-home-events .section-head h2 { max-width:none;font-size:30px; }
  html[data-ui-theme="classic"] #main .cp-home-mentors .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html[data-ui-theme="studio"] #main .cp-home .cp-home-mentors .grid.four { grid-template-columns:1fr; }
}
@media(max-width:640px) {
  html[data-ui-theme] #main .cp-home { --chapter-radius:18px;padding-bottom:20px; }
  html[data-ui-theme] #main .cp-home .section { padding:22px 18px;margin-bottom:20px;scroll-margin-top:90px; }
  html[data-ui-theme] #main .cp-home .section-head { gap:12px;margin-bottom:20px; }
  html[data-ui-theme] #main .cp-home .section-head h2 { font-size:24px;line-height:1.4; }
  html[data-ui-theme] #main .cp-home .section-head p { font-size:13px;line-height:1.85; }
  html[data-ui-theme] #main .cp-home .section-head > a { font-size:12px; }
  html[data-ui-theme="classic"] #main :is(.cp-home-events,.cp-home-community) .section-head,
  html[data-ui-theme="atelier"] #main :is(.cp-home-events,.cp-home-projects) .section-head { align-items:flex-start; }
  html[data-ui-theme="classic"] #main .cp-home-events .image-list { grid-template-columns:1fr; }
  html[data-ui-theme="classic"] #main .cp-home-mentors .grid { gap:12px; }
  html[data-ui-theme="classic"] #main .cp-home-mentors .v2-home-mentor-copy { padding:14px 12px 8px; }
  html[data-ui-theme="classic"] #main .cp-home-mentors .v2-home-mentor-copy h3 { font-size:17px; }
  html[data-ui-theme="classic"] #main .cp-home-goals .quick-grid { grid-template-columns:1fr; }
  html[data-ui-theme="classic"] #main .cp-home-goals .quick-link { padding:20px; }
  html[data-ui-theme="classic"] #main .cp-home .cp-home-explore { padding:24px 0 0; }
  html[data-ui-theme="cobalt"] #main .cp-home-courses .card { display:block;padding:0;overflow:hidden; }
  html[data-ui-theme="cobalt"] #main .cp-home-courses .card-image { border-radius:0; }
  html[data-ui-theme="cobalt"] #main .cp-home-courses .card-body { padding:18px; }
  html[data-ui-theme="atelier"] #main .cp-home .section { padding:28px 0 0; }
  html[data-ui-theme="atelier"] #main .cp-home :is(.cp-home-events,.cp-home-projects,.cp-home-goals) { padding:22px 18px; }
  html[data-ui-theme="atelier"] #main .cp-home-courses .grid { grid-template-columns:1fr;gap:28px; }
  html[data-ui-theme="atelier"] #main .cp-home-projects .grid { grid-template-columns:1fr; }
  html[data-ui-theme="atelier"] #main .cp-home-projects .card:last-child { grid-column:auto;display:block; }
  html[data-ui-theme="atelier"] #main .cp-home-projects .card:last-child .card-body { padding:20px; }
  html[data-ui-theme="atelier"] #main .cp-home-mentors .grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }
  html[data-ui-theme="atelier"] #main .cp-home-mentors .v2-home-mentor-copy { padding:16px 8px 8px; }
}

/* Full-width chapter bands. Keep the reading grid inset; extend the surfaces
   through the available page area without viewport-width overflow tricks. */
html[data-ui-theme] body[data-page="home"] #main .cp-home {
  width:100%;max-width:none;margin-inline:0;padding-inline:0;padding-bottom:0;
}
html[data-ui-theme] body[data-page="home"] #main .cp-home > :is(.xd-discovery,.cp-services,.cp-discovery-opening,.cp-directions,.cp-academy-opening,.cp-academy-channels,.cp-workspace-opening,.cp-workspace-tools) {
  width:min(100% - 64px,1280px);max-width:1280px;margin-inline:auto;
}
html[data-ui-theme] body[data-page="home"] #main .cp-home .section {
  width:100%;margin:0;padding:44px 0;border-inline-width:0;border-bottom-width:0;border-radius:0;
}
html[data-ui-theme] body[data-page="home"] #main .cp-home .section > .container {
  width:min(100% - 64px,1280px);max-width:1280px;margin-inline:auto;padding:0;
}
html[data-ui-theme] body[data-page="home"] #main .cp-home :is(.cp-community-columns,.cp-workspace-columns) {
  gap:0;
}
html[data-ui-theme] body[data-page="home"] #main .cp-home :is(.cp-community-columns,.cp-workspace-columns) > div:nth-child(2) {
  border-left:1px solid var(--chapter-line);background:var(--chapter-wash);
}
html[data-ui-theme] body[data-page="home"] #main .cp-home .cp-community-columns .cp-learning-desk {
  margin:0;padding:32px;border:0;border-top:1px solid var(--chapter-line);border-radius:0;
}
html[data-ui-theme] #main .cp-home .section-head > div { flex:1;min-width:0;max-width:100%; }
html[data-ui-theme] #main .cp-home .section-head h2 {
  max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
/* Only preview titles are abbreviated. Detail page headings retain full text. */
html[data-ui-theme] #main :is(.cp-home .section,#course-grid,#project-grid,#event-grid,#mentor-grid) h3 {
  min-width:0;max-width:100%;min-height:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
html[data-ui-theme] #main :is(.cp-home .section,#course-grid,#project-grid,#event-grid,#mentor-grid) h3 > a {
  display:block;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
html[data-ui-theme] #main :is(.cp-home .section,#course-grid,#project-grid,#event-grid,#mentor-grid) h3 > a:focus-visible {
  outline:2px solid var(--action);outline-offset:-2px;
}
@media(max-width:800px) {
  html[data-ui-theme] body[data-page="home"] #main .cp-home > :is(.xd-discovery,.cp-services,.cp-discovery-opening,.cp-directions,.cp-academy-opening,.cp-academy-channels,.cp-workspace-opening,.cp-workspace-tools) {
    width:calc(100% - 32px);
  }
  html[data-ui-theme] body[data-page="home"] #main .cp-home .section { padding-block:30px; }
  html[data-ui-theme] body[data-page="home"] #main .cp-home .section > .container { width:calc(100% - 36px); }
  html[data-ui-theme] body[data-page="home"] #main .cp-home :is(.cp-community-columns,.cp-workspace-columns) > div:nth-child(2) { border-left:0; }
  html[data-ui-theme] body[data-page="home"] #main .cp-home .cp-community-columns .cp-learning-desk { padding:28px 18px; }
}
