/* ===== Homepage visual identity, October 2026 =====
   Scoped to .eh-home. Shared navigation and data renderers keep their original contracts.
   Navy, terracotta, local typefaces and the real cohort photo anchor the design. */
.eh-home {
  --eh-navy: #0f2b5b; --eh-navy-soft: #163a63; --eh-blue: #1f5fae;
  --eh-brand: #c75b3a; --eh-brand-ink: #a9472d; --eh-brand-action: #a9472d; --eh-brand-hover: #923b26;
  --eh-page: #f7f5f1; --eh-white: #fff; --eh-panel: #fff; --eh-soft: #f0f4f8;
  --eh-text: #20242a; --eh-muted: #58677c; --eh-border: #e0e5ec;
  --eh-warm: #f8e9e2; --eh-shadow: 0 12px 38px rgb(15 43 91 / .07);
  --eh-focus: #1f5fae; --eh-max: 1320px; --eh-radius: 16px;
  --eh-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --eh-serif: 'Source Serif 4', Georgia, 'Noto Serif', serif;
  color: var(--eh-text); background: var(--eh-page);
}
:root[data-theme='dark'] .eh-home {
  --eh-navy: #e0eaf7; --eh-navy-soft: #c2d7ef; --eh-blue: #93bdec;
  --eh-brand-ink: #efa68a; --eh-page: #111827; --eh-white: #f2f4f7; --eh-panel: #182230; --eh-soft: #202e40;
  --eh-text: #f2f4f7; --eh-muted: #b0bfd1; --eh-border: #3e5067;
  --eh-warm: #352723; --eh-shadow: 0 12px 38px rgb(0 0 0 / .16); --eh-focus: #a7ccf7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .eh-home {
    --eh-navy: #e0eaf7; --eh-navy-soft: #c2d7ef; --eh-blue: #93bdec;
    --eh-brand-ink: #efa68a; --eh-page: #111827; --eh-white: #f2f4f7; --eh-panel: #182230; --eh-soft: #202e40;
    --eh-text: #f2f4f7; --eh-muted: #b0bfd1; --eh-border: #3e5067;
    --eh-warm: #352723; --eh-shadow: 0 12px 38px rgb(0 0 0 / .16); --eh-focus: #a7ccf7;
  }
}
:where(.eh-home main) *, :where(.eh-home main) *::before, :where(.eh-home main) *::after { box-sizing: border-box; }
:where(.eh-home main) [hidden] { display: none !important; }
:where(.eh-home main) img { max-width: 100%; }
:where(.eh-home main) a { color: var(--eh-blue); text-decoration: none; }
:where(.eh-home main) a:hover { text-decoration: none; }
:where(.eh-home main) :is(button, input, select) { font: inherit; }
:where(.eh-home main) button { cursor: pointer; }
:where(.eh-home main) :is(h1, h2, h3, p) { margin: 0; }
:where(.eh-home main) :is(h1, h2, h3) { color: var(--eh-navy); }
:where(.eh-home main) h2 { font: 500 clamp(30px, 3vw, 42px)/1.18 var(--eh-serif); letter-spacing: -.035em; }
:where(.eh-home main) h2 em { font-weight: 400; color: var(--eh-navy-soft); }
:where(.eh-home main) h3 { font-weight: 650; line-height: 1.3; }
:where(.eh-home main) :where(a, button, summary, input):focus-visible { outline: 3px solid var(--eh-focus); outline-offset: 4px; }
.eh-home :where(section, #links, #about, #welcome) { scroll-margin-top: 104px; }
.eh-home .eh-wrap { width: min(calc(var(--width-wide) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.eh-home .eh-icon { width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; }
/* Header: four groups rather than eight competing top-level destinations. */
.eh-home .eh-icon-button { border: 1px solid var(--eh-border); background: var(--eh-panel); color: var(--eh-navy); border-radius: 50%; width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; flex-shrink: 0; }
.eh-home .eh-icon-button:hover { background: var(--eh-soft); }
.eh-home .eh-icon-button:disabled { opacity: .5; cursor: default; }
/* Buttons / links */
.eh-home .eh-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 11px 20px; border: 1px solid transparent; border-radius: 9px; font: 600 13px/1.3 var(--eh-sans); transition: background 160ms, border-color 160ms, box-shadow 160ms; }
.eh-home .eh-button .eh-icon { width: 17px; height: 17px; }
.eh-home .eh-button-brand { color: var(--white); background: var(--eh-brand-action); }
.eh-home .eh-button-brand:hover { color: var(--white); background: var(--eh-brand-hover); box-shadow: 0 4px 12px rgb(116 41 17 / .15); }
.eh-home .eh-button-glass { color: var(--white); border-color: #bac9dc; background: rgb(15 43 91 / .3); }
.eh-home .eh-button-glass:hover { color: var(--white); background: rgb(255 255 255 / .12); }
.eh-home .eh-button-outline { background: transparent; border-color: var(--eh-navy); color: var(--eh-navy); }
.eh-home .eh-button-outline:hover { background: var(--eh-soft); }
.eh-home .eh-text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--eh-blue); font-weight: 600; font-size: 13px; }
.eh-home .eh-text-link .eh-icon { width: 17px; height: 17px; transition: transform 180ms; }
.eh-home .eh-text-link:hover .eh-icon { transform: translateX(3px); }
/* Hero: a generous photo frame beside the programme's student-run identity. */
.eh-home .eh-hero { margin-top: 26px; border-radius: 30px; overflow: hidden; position: relative; isolation: isolate; background: radial-gradient(ellipse at 8% 110%, #244973 0%, transparent 55%), #0f2b5b; min-height: 600px; color: #fff; padding: 0; }
.eh-home .eh-hero::before { content: ''; position: absolute; width: 470px; height: 470px; border: 1px solid rgb(255 255 255 / .1); border-radius: 50%; left: -240px; bottom: -330px; box-shadow: 0 0 0 65px rgb(255 255 255 / .025), 0 0 0 130px rgb(255 255 255 / .025); pointer-events: none; }
.eh-home .eh-hero-copy { position: relative; z-index: 2; padding: 50px 32px 75px 48px; width: 49%; }
.eh-home .eh-hero-badge { display: inline-flex; align-items: center; gap: 9px; color: #e2eaf5; font-size: 10px; font-weight: 600; letter-spacing: .13em; padding: 9px 12px; border: 1px solid #68809f; border-radius: 999px; background: rgb(255 255 255 / .04); }
.eh-home .eh-hero-badge .eh-icon { color: #efa68a; width: 15px; height: 15px; }
.eh-home .eh-hero h1 { color: #fff; font: 600 clamp(48px, 5.05vw, 72px)/1.04 var(--eh-sans); letter-spacing: -.065em; margin: 25px 0 23px; }
.eh-home .eh-hero h1 em { color: #f1b59b; font: italic 500 1.06em/1.04 var(--eh-serif); letter-spacing: -.05em; }
.eh-home .eh-hero-lead { color: #dce7f5; font-size: 15px; line-height: 1.75; max-width: 390px; }
.eh-home .eh-hero-actions { display: flex; gap: 11px; margin-top: 28px; flex-wrap: wrap; }
.eh-home .eh-hero .eh-button { min-height: 49px; border-radius: 12px; padding-inline: 19px; }
.eh-home .eh-hero-values { display: flex; gap: 22px; margin-top: 28px; color: #d6e2f2; font-size: 11px; }
.eh-home .eh-hero-values > span { display: inline-flex; gap: 7px; align-items: center; }
.eh-home .eh-hero-values .eh-icon { width: 15px; height: 15px; color: #f1b59b; }
.eh-home .eh-hero-note { font-size: 10px; line-height: 1.7; color: #c5d4e8; margin-top: 19px; max-width: 410px; }
.eh-home .eh-hero-media { position: absolute; inset: 18px 18px 59px 49%; border-radius: 140px 20px 20px 20px; overflow: hidden; background: #18395e; border: 1px solid rgb(255 255 255 / .15); }
.eh-home .eh-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(9 29 58 / .68), transparent 32%); pointer-events: none; }
.eh-home .eh-hero-media picture, .eh-home .eh-hero-media img { width: 100%; height: 100%; display: block; }
.eh-home .eh-hero-media img { object-fit: cover; object-position: 54% 76%; }
.eh-home .eh-hero-community { position: absolute; z-index: 3; top: 38px; right: 38px; display: flex; gap: 12px; align-items: center; padding: 13px 17px; background: #fffdf9; color: #0f2b5b; border-radius: 15px; box-shadow: 0 8px 30px rgb(9 29 58 / .12); }
.eh-home .eh-hero-community > .eh-icon { width: 31px; height: 31px; color: #a9472d; }
.eh-home .eh-hero-community p { display: grid; gap: 4px; }
.eh-home .eh-hero-community strong { font-size: 12px; }
.eh-home .eh-hero-community p > span { font-size: 10px; color: #58677c; }
.eh-home .eh-photo-caption { position: absolute; right: 37px; bottom: 78px; z-index: 3; display: flex; align-items: center; gap: 7px; color: #fff; background: #0c2447; padding: 11px 14px; border: 1px solid #7a8fa9; border-radius: 999px; font-size: 11px; }
.eh-home .eh-photo-caption .eh-icon { width: 15px; height: 15px; color: #f1b59b; }
.eh-home .eh-photo-caption span { color: #d6e2ef; border-left: 1px solid #7a8fa9; padding-left: 9px; }
/* Four independent metric cards sit across the edge of the hero. */
.eh-home .eh-stats-container { position: relative; z-index: 4; margin-top: -39px; padding-inline: 22px; }
.eh-home .eh-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--eh-stat-count,4),minmax(0,1fr)); gap: 12px; border: 0; border-radius: 18px; background: var(--eh-panel); box-shadow: var(--eh-shadow); }
.eh-home .home-stat { display: flex; align-items: center; gap: 14px; padding: 23px 20px; border: 1px solid var(--eh-border); border-radius: 18px; background: var(--eh-panel); }
.eh-home .home-stat-icon { display: block; width: 45px; height: 45px; padding: 10px; color: var(--eh-blue); background: var(--eh-soft); border-radius: 13px; flex-shrink: 0; }
.eh-home .home-stat:nth-child(2) .home-stat-icon { color: var(--eh-brand-ink); background: var(--eh-warm); }
.eh-home .home-stat-text { display: grid; text-align: left; min-width: 0; }
.eh-home .home-stat-number { display: block; color: var(--eh-navy); font: 600 34px/1.1 var(--eh-sans); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.eh-home .home-stat-label { display: block; color: var(--eh-navy); font-size: 11px; font-weight: 600; margin-top: 6px; }
.eh-home .home-stat-caption { color: var(--eh-muted); font-size: 10px; line-height: 1.5; margin-top: 4px; }
.eh-home .eh-stats-note { display: flex; justify-content: space-between; gap: 12px; color: var(--eh-muted); font-size: 10px; line-height: 1.6; margin-top: 13px; }
/* Everyday essentials: familiar line icons with generous, consistent tiles. */
.eh-home .eh-quick { margin-top: 34px; }
.eh-home .eh-eyebrow { color: var(--eh-blue); font: 650 10px/1.5 var(--eh-sans); letter-spacing: .16em; }
.eh-home .eh-quick-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.eh-home .eh-quick-link { display: flex; align-items: center; gap: 10px; min-height: 78px; padding: 13px 12px; border: 1px solid var(--eh-border); border-radius: 16px; background: var(--eh-panel); color: var(--eh-navy); font-size: 11px; font-weight: 600; transition: transform 180ms, border-color 180ms, box-shadow 180ms; }
.eh-home .eh-quick-link .eh-icon:first-child { width: 39px; height: 39px; padding: 9px; border-radius: 12px; color: var(--eh-blue); background: var(--eh-soft); }
.eh-home .eh-quick-link:nth-child(2) .eh-icon:first-child, .eh-home .eh-quick-link:nth-child(6) .eh-icon:first-child { color: var(--eh-brand-ink); background: var(--eh-warm); }
.eh-home .eh-quick-link .eh-icon:last-child { width: 13px; height: 13px; margin-left: auto; color: var(--eh-muted); transition: transform 180ms; }
.eh-home .eh-quick-link:hover { background: var(--eh-panel); transform: translateY(-3px); border-color: var(--eh-blue); box-shadow: var(--eh-shadow); }
.eh-home .eh-quick-link:hover .eh-icon:last-child { transform: rotate(-35deg); }
/* Sections */
.eh-home .eh-section { padding-block: 66px; }
.eh-home .eh-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 26px; }
.eh-home .eh-section-head h2 { margin-top: 10px; }
.eh-home .eh-section-description { color: var(--eh-muted); font-size: 13px; line-height: 1.75; max-width: 370px; }
.eh-home .eh-section-description + .eh-text-link { margin-top: 10px; }
.eh-home .eh-section-aside { text-align: right; padding-bottom: 4px; }
.eh-home .eh-date { color: var(--eh-muted); font-size: 12px; margin-bottom: 8px; }
/* Live-data slots: IDs preserve dashboard.js contracts. */
.eh-home .eh-week { padding-top: 60px; padding-bottom: 58px; }
.eh-home .eh-week-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.eh-home .eh-widget { display: flex; flex-direction: column; min-width: 0; background: var(--eh-panel); border: 1px solid var(--eh-border); border-radius: 15px; overflow: hidden; }
.eh-home .eh-widget-today { border-top: 3px solid var(--eh-blue); }
.eh-home .eh-widget-heading { display: flex; gap: 12px; align-items: center; padding: 22px 24px 0; }
.eh-home .eh-widget-heading h3 { font: 550 19px var(--eh-serif); }
.eh-home .eh-icon-tile { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--eh-blue); background: var(--eh-soft); flex-shrink: 0; }
.eh-home .eh-icon-warm { background: var(--eh-warm); color: var(--eh-brand-ink); }
.eh-home .eh-widget-body { padding: 18px 24px 21px; flex: 1; min-height: 153px; }
.eh-home .eh-widget-body > h4 { color: var(--eh-navy); font-size: 16px; margin: 0 0 8px; font-weight: 600; }
.eh-home .eh-widget-body > p, .eh-home .dash-empty { color: var(--eh-muted); font-size: 13px; line-height: 1.75; }
.eh-home .eh-widget-footer { padding: 14px 24px; border-top: 1px solid var(--eh-border); color: var(--eh-blue); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.eh-home .eh-widget-footer:hover { background: var(--eh-soft); }
.eh-home .eh-widget-footer .eh-icon { width: 16px; height: 16px; }
.eh-home .dash-class { display: flex; align-items: flex-start; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--eh-border); font-size: 13px; }
.eh-home .dash-class:last-child { border-bottom: 0; }
.eh-home .dash-class-time { color: var(--eh-muted); font-size: 12px; min-width: 43px; }
.eh-home .dash-class-text { flex: 1; }
.eh-home .dash-class-text strong { display: block; color: var(--eh-navy); font-size: 13px; }
.eh-home .schedule-meta { display: block; font-size: 11px; color: var(--eh-muted); margin-top: 4px; }
.eh-home .dash-countdown { display: flex; align-items: baseline; gap: 8px; }
.eh-home .dash-countdown-number { font: 500 40px var(--eh-serif); color: var(--eh-navy); }
.eh-home .dash-countdown-label { color: var(--eh-muted); font-size: 12px; }
.eh-home .dash-exam-title { display: block; color: var(--eh-navy); font-size: 14px; margin-top: 7px; }
.eh-home .dash-stats { display: flex; justify-content: space-between; margin-top: 16px; gap: 8px; }
.eh-home .dash-stat strong { display: block; color: var(--eh-navy); font-size: 20px; }
.eh-home .dash-stat span { font-size: 10px; color: var(--eh-muted); }
.eh-home .dash-plan-cfu { color: var(--eh-navy); font-size: 13px; margin-top: 8px; }
.eh-home .eh-widget .button { padding: 10px 14px; min-height: 42px; display: inline-flex; border-radius: 8px; margin-top: 12px; color: var(--white); background: var(--action-navy); font-size: 12px; }
.eh-home .eh-widget-body:empty { min-height: 190px; background: linear-gradient(var(--eh-soft),var(--eh-soft)) 24px 24px / 70% 14px no-repeat,linear-gradient(var(--eh-soft),var(--eh-soft)) 24px 55px / 85% 12px no-repeat; }
.eh-home .eh-welcome-slot:empty { display: none; }
.eh-home .eh-welcome-slot { margin-top: 18px; }
/* Resource grid: a wide Tracks feature, compact chapters, and a generous support card. */
.eh-home .eh-explore { background: var(--eh-panel); border-block: 1px solid var(--eh-border); }
.eh-home .eh-resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.eh-home .eh-resource { position: relative; isolation: isolate; border: 1px solid var(--eh-border); background: var(--eh-page); padding: 28px; border-radius: 22px; display: flex; flex-direction: column; transition: border-color 180ms, transform 180ms, box-shadow 180ms; }
.eh-home .eh-resource:hover { transform: translateY(-4px); border-color: var(--eh-blue); box-shadow: var(--eh-shadow); }
.eh-home .eh-resource-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eh-home .eh-resource-top .eh-icon { color: var(--eh-blue); width: 47px; height: 47px; padding: 11px; background: var(--eh-panel); border: 1px solid var(--eh-border); border-radius: 14px; }
.eh-home .eh-resource .eh-eyebrow { font-size: 9px; letter-spacing: .09em; }
.eh-home .eh-resource h3 { font: 600 25px/1.25 var(--eh-sans); letter-spacing: -.045em; margin: 25px 0 13px; }
.eh-home .eh-resource > p { color: var(--eh-muted); font-size: 13px; line-height: 1.8; flex: 1; }
.eh-home .eh-resource > a { margin-top: 26px; min-height: 28px; }
.eh-home .eh-resource-tracks { grid-column: span 2; min-height: 315px; background: radial-gradient(ellipse at 90% 110%, #264b76, transparent 65%), #0f2b5b; border-color: #0f2b5b; padding: 32px; overflow: hidden; }
.eh-home .eh-resource-tracks::before { content: ''; width: 260px; height: 260px; border: 1px solid #496889; border-radius: 50%; position: absolute; right: -85px; top: -155px; z-index: -1; }
.eh-home .eh-resource-tracks h3 { color: #fff; font-size: 39px; line-height: 1.08; margin-top: 24px; }
.eh-home .eh-resource-tracks > p { max-width: 47%; }
.eh-home .eh-resource-tracks p, .eh-home .eh-resource-tracks .eh-eyebrow, .eh-home .eh-resource-tracks .eh-text-link { color: #dce8f7; }
.eh-home .eh-resource-tracks .eh-resource-top .eh-icon { color: #f1b59b; background: rgb(255 255 255 / .07); border-color: #68809f; }
.eh-home .eh-resource-tracks a:focus-visible { outline-color: #fff; }
.eh-home .eh-track-preview { list-style: none; padding: 0; margin: 0; position: absolute; right: 32px; top: 104px; width: 40%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.eh-home .eh-track-preview::before { content: ''; position: absolute; inset: 25px 25%; border: 1px dashed #7c92ae; border-radius: 50%; z-index: -1; }
.eh-home .eh-track-node { display: flex; align-items: center; gap: 9px; min-height: 62px; padding: 15px; border: 1px solid #68809f; border-radius: 16px; background: #17365b; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 5px 18px rgb(0 0 0 / .1); }
.eh-home .eh-track-node:nth-child(even) { transform: translateY(22px); }
.eh-home .eh-track-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--eh-track-color); border: 1px solid #e2eaf5; }
.eh-home .eh-resource-learn .eh-resource-top .eh-icon, .eh-home .eh-resource-support .eh-resource-top .eh-icon { color: var(--eh-brand-ink); background: var(--eh-warm); }
.eh-home .eh-resource-support { grid-column: span 2; background: var(--eh-soft); }
.eh-home .eh-resource-support > p { max-width: 540px; }
/* Community */
.eh-home .eh-community { padding-bottom: 66px; }
.eh-home .eh-community-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 26px; align-items: stretch; }
.eh-home .eh-network-card { margin: 0; border: 1px solid var(--eh-border); border-radius: 16px; overflow: hidden; background: var(--eh-soft); display: flex; flex-direction: column; }
.eh-home .eh-network-copy { padding: 24px 26px 0; position: relative; z-index: 1; }
.eh-home .eh-network-copy h3 { font: 550 22px var(--eh-serif); color: var(--eh-navy); }
.eh-home .eh-network-copy p { color: var(--eh-muted); font-size: 12px; margin-top: 7px; text-align: left; }
.eh-home .eh-network-card > img { width: 100%; height: 247px; display: block; object-fit: contain; margin-top: -8px; }
.eh-home .eh-network-card figcaption { padding: 14px 25px 18px; color: var(--eh-muted); font-size: 10px; margin-top: auto; text-align: left; }
.eh-home .eh-network-card figcaption a { display: flex; gap: 9px; align-items: center; margin-top: 9px; color: var(--eh-blue); font-size: 12px; font-weight: 600; }
.eh-home .eh-map-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #a9472d; margin-right: 5px; }
.eh-home .eh-people-panel { min-width: 0; }
.eh-home .eh-people-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.eh-home .eh-people-head h3 { font: 550 23px var(--eh-serif); margin-top: 9px; }
.eh-home .eh-people-head .eh-eyebrow { font-size: 9px; }
.eh-home .eh-carousel-controls { display: flex; gap: 7px; }
.eh-home .eh-people-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.eh-home .person-card { padding: 20px 16px; min-height: 245px; border: 1px solid var(--eh-border); background: var(--eh-panel); border-radius: 12px; display: flex; flex-direction: column; min-width: 0; text-align: left; }
.eh-home .person-avatar { display: grid; place-items: center; width: 54px; height: 54px; font: 500 19px var(--eh-serif); background: var(--eh-soft); color: var(--eh-navy); border-radius: 50%; margin: 0 0 17px; }
.eh-home .person-card:nth-child(2) .person-avatar { background: var(--eh-warm); color: var(--eh-brand-ink); }
.eh-home .person-name { font: 600 14px/1.4 var(--eh-sans); color: var(--eh-navy); overflow-wrap: anywhere; }
.eh-home .person-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.eh-home .person-meta { color: var(--eh-muted); font-size: 10px; line-height: 1.6; margin-top: 7px; }
.eh-home .person-bio { color: var(--eh-muted); font-size: 11px; margin-top: 11px; line-height: 1.75; }
.eh-home .eh-demo-note { font-size: 10px; color: var(--eh-muted); margin-top: 13px; line-height: 1.7; }
.eh-home .eh-demo-note > span { display: inline-block; font-size: 8px; font-weight: 650; letter-spacing: .05em; padding: 3px 6px; border: 1px solid var(--eh-border); border-radius: 5px; margin-right: 5px; }
.eh-home .eh-privacy-mini { display: flex; align-items: center; gap: 13px; font-size: 11px; color: var(--eh-muted); padding: 16px 0 0; }
.eh-home .eh-privacy-mini strong { color: var(--eh-navy); font-weight: 600; }
/* Cities: project-generated .city-card output is styled as well as fallback artwork. */
.eh-home .eh-cities { background: var(--eh-panel); border-block: 1px solid var(--eh-border); }
.eh-home .eh-city-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; }
.eh-home #city-cards .city-card { display: flex; flex-direction: column; border: 1px solid var(--eh-border); border-radius: 14px; overflow: hidden; color: var(--eh-navy); background: var(--eh-panel); padding: 0; min-width: 0; transition: transform 180ms; }
.eh-home #city-cards .city-card:hover { transform: translateY(-3px); }
.eh-home #city-cards .city-card > picture, .eh-home #city-cards .city-card > figure { width: 100%; aspect-ratio: 2/1; margin: 0; overflow: hidden; }
.eh-home #city-cards .city-card > picture img, .eh-home #city-cards .city-card > figure img { width: 100%; height: 100%; object-fit: cover; }
.eh-home #city-cards .city-country { display: block; text-transform: uppercase; color: var(--eh-muted); letter-spacing: .12em; font-size: 9px; }
.eh-home #city-cards .city-card strong { display: block; font: 500 25px/1.25 var(--eh-serif); margin-top: 5px; }
.eh-home #city-cards .city-card span:not(.city-country):not(.city-status) { color: var(--eh-muted); font-size: 11px; margin-top: 7px; }
.eh-home #city-cards .city-status { display: flex; align-items: center; gap: 9px; color: var(--eh-blue); font-size: 11px; font-weight: 600; margin-top: auto; padding-top: 18px; }
.eh-home #city-cards .city-status .eh-icon { width: 15px; height: 15px; }
.eh-home #city-cards .city-card > :is(span,strong) { margin-inline: 19px; }
.eh-home #city-cards .city-card > .city-country { margin-top: 18px; }
.eh-home #city-cards .city-card > .city-status { margin-bottom: 19px; }
.eh-home .eh-caption { color: var(--eh-muted); font-size: 10px; line-height: 1.8; margin-top: 12px; }
/* Announcements: no invented live dates. */
.eh-home .eh-updates-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 68px; align-items: start; }
.eh-home .eh-updates h2 { margin: 10px 0 15px; }
.eh-home .eh-updates .eh-text-link { margin-top: 23px; }
.eh-home .eh-news-panel { background: var(--eh-panel); border: 1px solid var(--eh-border); border-radius: 15px; padding: 22px; }
.eh-home .eh-news-row { display: flex; align-items: center; gap: 17px; padding: 15px 2px; color: var(--eh-navy); border-top: 1px solid var(--eh-border); }
.eh-home .eh-news-row:first-child { border-top: 0; padding-top: 0; }
.eh-home .eh-news-row > div { flex: 1; }
.eh-home .eh-news-row .eh-icon-tile { width: 40px; height: 40px; }
.eh-home .eh-news-row small { display: block; font-size: 9px; color: var(--eh-muted); letter-spacing: .06em; text-transform: uppercase; }
.eh-home .eh-news-row strong { display: block; font-size: 13px; font-weight: 600; margin-top: 3px; }
.eh-home #latest-announcements article, .eh-home #latest-announcements .announcement { box-shadow: none; padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid var(--eh-border); }
.eh-home #latest-announcements h3, .eh-home #latest-announcements h4 { font-size: 15px; }
.eh-home #latest-announcements p { font-size: 12px; color: var(--eh-muted); }
/* Closing invitation / footer */
.eh-home .eh-join-banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px 40px; border: 1px solid var(--eh-border); border-radius: 17px; background: var(--eh-panel); margin-bottom: 62px; }
.eh-home .eh-join-banner .eh-eyebrow { color: var(--eh-muted); font-size: 9px; }
.eh-home .eh-join-banner h2 { font-size: 32px; margin-top: 7px; }
.eh-home .eh-join-banner p:last-child { color: var(--eh-muted); font-size: 13px; margin-top: 9px; }
/* Mobile menu and standalone search. Native dialog handles focus containment. */
/* Responsive: deliberate rearrangement, not shrinking a desktop screenshot. */
@media (max-width: 1039px) {
  .eh-home .eh-week-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .eh-home .eh-widget-today { grid-column: 1/-1; }
  .eh-home .eh-widget-today .eh-widget-body { min-height: 100px; }
  .eh-home .eh-community-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .eh-home .eh-people-cards { grid-template-columns: 1fr; }
  .eh-home .person-card { min-height: 95px; display: grid; grid-template-columns: 45px 1fr; padding: 14px; gap: 2px 10px; }
  .eh-home .person-avatar { grid-row: 1/4; margin: 0; width: 43px; height: 43px; font-size: 16px; }
  .eh-home .person-bio { display: none; }
  .eh-home .person-meta { margin-top: 3px; }
  .eh-home .eh-people-head .eh-eyebrow { display: none; }
  .eh-home .eh-people-head h3 { font-size: 22px; }
  .eh-home .eh-city-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .eh-home .eh-updates-grid { gap: 35px; }
  .eh-home .eh-resource { padding: 21px; }
  .eh-home .eh-resource-top .eh-eyebrow { font-size: 8px; }
  .eh-home .eh-resource h3 { font-size: 24px; }
}
@media (max-width: 720px) {
  .eh-home .eh-eyebrow { font-size: 8px; letter-spacing: .12em; }
  .eh-home .eh-section { padding-block: 42px; }
  .eh-home .eh-section-head { display: block; margin-bottom: 22px; }
  :where(.eh-home main) h2 { font-size: 31px; }
  .eh-home .eh-section-head h2 { margin-top: 8px; }
  .eh-home .eh-section-description { font-size: 12px; margin-top: 15px; }
  .eh-home .eh-section-aside { text-align: left; margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .eh-home .eh-date { font-size: 10px; margin: 0; }
  .eh-home .eh-section-aside .eh-text-link { font-size: 10px; }
  .eh-home .eh-week-grid { grid-template-columns: 1fr; gap: 13px; }
  .eh-home .eh-widget-today { grid-column: auto; }
  .eh-home .eh-widget-heading { padding: 18px 19px 0; }
  .eh-home .eh-widget-body { padding: 16px 19px; min-height: 95px; }
  .eh-home .eh-widget-footer { padding-inline: 19px; }
  .eh-home .eh-resource-grid { grid-template-columns: 1fr; gap: 13px; }
  .eh-home .eh-resource { padding: 24px; }
  .eh-home .eh-resource h3 { margin-top: 21px; font-size: 27px; }
  .eh-home .eh-resource-top .eh-eyebrow { font-size: 8px; }
  .eh-home .eh-section-head > .eh-button { margin-top: 20px; }
  .eh-home .eh-community-grid { grid-template-columns: 1fr; gap: 27px; }
  .eh-home .eh-network-card > img { height: 215px; margin-top: 5px; }
  .eh-home .eh-network-copy { padding: 22px 22px 0; }
  .eh-home .eh-network-copy p { font-size: 11px; }
  .eh-home .eh-network-card figcaption { padding-inline: 22px; font-size: 9px; }
  .eh-home .eh-people-cards { grid-template-columns: 1fr; }
  .eh-home .person-card { min-height: 110px; }
  .eh-home .person-bio { display: block; grid-column: 2; margin-top: 4px; font-size: 10px; }
  .eh-home .person-meta { font-size: 9px; }
  .eh-home .eh-city-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .eh-home #city-cards .city-card strong { font-size: 21px; }
  .eh-home #city-cards .city-country { font-size: 8px; }
  .eh-home #city-cards .city-card span:not(.city-country):not(.city-status) { font-size: 10px; }
  .eh-home #city-cards .city-status { font-size: 10px; gap: 6px; }
  .eh-home #city-cards .city-card > :is(span,strong) { margin-inline: 13px; }
  .eh-home .eh-caption { font-size: 9px; }
  .eh-home .eh-updates-grid { grid-template-columns: 1fr; gap: 23px; }
  .eh-home .eh-news-panel { padding: 18px; }
  .eh-home .eh-join-banner { display: block; padding: 26px; margin-bottom: 38px; }
  .eh-home .eh-join-banner h2 { font-size: 29px; }
  .eh-home .eh-join-banner > .eh-button { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .eh-home *, .eh-home *::before, .eh-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .eh-home .eh-wrap { width: 100%; }
  .eh-home .eh-section { padding-block: 25px; }
}
/* ----- Additions for the live project (not in the handoff) ----- */

/* Hero buttons keep white text (the generic link colour must not win) */
.eh-home main .eh-hero .eh-button,
.eh-home main .eh-join-banner .eh-button-brand { color: var(--white); }
.eh-home .eh-hero-badge { text-transform: uppercase; }
.eh-home .eh-eyebrow { text-transform: uppercase; }

/* Cohort origins: a compact preview of the same aggregate data as the interactive atlas. */
.eh-home .eh-origin-metrics { display: flex; gap: 28px; margin: 17px 0 0; }
.eh-home .eh-origin-metrics > div { display: flex; flex-direction: column; gap: 3px; }
.eh-home .eh-origin-metrics dt { color: var(--eh-muted); font-size: 11px; }
.eh-home .eh-origin-metrics dd { order: -1; color: var(--eh-navy); font: 600 25px/1 var(--eh-serif); margin: 0; font-variant-numeric: tabular-nums; }
.eh-home .eh-network-map { aspect-ratio: 1000 / 438; margin: 14px auto 8px; width: calc(100% - 24px); }
.eh-home .eh-network-map .map-country { fill: var(--eh-border); stroke: var(--eh-soft); stroke-width: .5; }
.eh-home .eh-network-map .map-country.has-origin { fill: var(--eh-blue); stroke: var(--eh-panel); }
.eh-home .eh-origin-groups { padding: 0 25px; }
.eh-home .eh-origin-label { color: var(--eh-muted); font-size: 10px; font-weight: 600; }
.eh-home #community-origin-countries { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 8px 0 0; }
.eh-home .eh-origin-country { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid var(--eh-border); border-radius: 7px; color: var(--eh-text); background: var(--eh-panel); font-size: 11px; }
.eh-home .eh-origin-country strong { color: var(--eh-navy); font-variant-numeric: tabular-nums; }
.eh-home .eh-origin-legend { display: block; margin-bottom: 6px; }
.eh-home .eh-origin-legend .eh-map-dot { background: var(--eh-blue); }
.eh-home .eh-origin-source { display: block; font-size: 11px; line-height: 1.6; }
.eh-home .eh-network-card figcaption a { display: inline-flex; flex-wrap: wrap; gap: 0; min-height: 36px; margin-top: 7px; }
.eh-home .eh-network-card figcaption a > [data-setting] { margin-inline: .3em; }
.eh-home .eh-network-card figcaption a > .eh-icon { margin-left: 8px; }
.eh-home .eh-network-map.is-unavailable { display: grid; align-items: center; min-height: 130px; }
.eh-home .eh-origin-map-error { padding: 18px; color: var(--eh-muted); font-size: 12px; line-height: 1.6; }

@media (max-width: 720px) {
  .eh-home .eh-origin-groups { padding-inline: 22px; }
  .eh-home .eh-origin-metrics { gap: 24px; }
}

/* Roadmap preview, under the announcements (home.js fills #roadmap-preview) */
.eh-home .eh-roadmap { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--eh-border); }
.eh-home .eh-roadmap .eh-section-head { align-items: center; margin-bottom: 18px; }
.eh-home .eh-roadmap h3 { font: 550 24px/1.25 var(--eh-serif); margin-top: 8px; }

/* Announcements panel: the project's announcement rows, quieter */
.eh-home .eh-news-panel .demo-note { margin: 0 0 12px; }
.eh-home .eh-news-panel .placeholder { color: var(--eh-muted); font-size: 13px; }

/* Your Week cards: project buttons inside (e.g. "Plan my semester") */
.eh-home .eh-widget .dash-period { margin-bottom: 12px; }

/* The fallback city cards (before home.js replaces them) */
.eh-home #city-cards .city-card:not(:has(.city-card-photo)) > .city-country { margin-top: 19px; }

/* Stats: the project's count-up numbers keep their width */
.eh-home .home-stat-number { min-width: calc(var(--digits, 2) * 0.62em); }

@media (max-width: 720px) {
  .eh-home .eh-roadmap { margin-top: 32px; padding-top: 26px; }
  .eh-home .eh-roadmap .eh-section-head { display: block; }
}

/* Focus rings on the navy hero are white */
.eh-home .eh-hero :where(a, button):focus-visible { outline-color: var(--white); }

@media print {
  .eh-home .site-header, .eh-home .site-footer, .eh-home .eh-quick, .eh-home .eh-carousel-controls, .eh-home .eh-join-banner { display: none !important; }
}

/* Class rows in "Today": room between the course-colour edge and the time */
.eh-home .dash-class { padding-left: 10px; padding-right: 6px; }

/* Finishing details remain local to this homepage. */
.eh-home .site-header { background: var(--eh-page); border-bottom: 1px solid var(--eh-border); box-shadow: 0 4px 24px rgb(15 43 91 / .035); }
.eh-home .brand-mark { border-radius: 13px; background: var(--eh-soft); padding: 8px; }
.eh-home .eh-section { padding-block: 76px; }
.eh-home .eh-week { padding-top: 65px; }
.eh-home .eh-widget { border-radius: 20px; box-shadow: 0 4px 18px rgb(15 43 91 / .025); }
.eh-home .eh-widget-heading h3 { font: 600 18px var(--eh-sans); letter-spacing: -.035em; }
.eh-home .eh-widget-today { border-top: 3px solid var(--eh-blue); }
.eh-home .eh-icon-tile { width: 43px; height: 43px; border-radius: 13px; }
.eh-home .eh-network-card { --eh-navy: #fff; --eh-blue: #f1b59b; --eh-muted: #c8d5e6; --eh-border: #3d5979; --eh-panel: #183253; --eh-soft: #0f2b5b; background: radial-gradient(ellipse at 0% 100%, #234b72, transparent 70%), #0f2b5b; border-color: #3d5979; border-radius: 24px; }
.eh-home .eh-network-copy { padding: 28px 28px 0; }
.eh-home .eh-network-copy h3 { font: 600 27px/1.2 var(--eh-sans); letter-spacing: -.045em; }
.eh-home .eh-origin-metrics { gap: 34px; margin-top: 23px; }
.eh-home .eh-origin-metrics dd { font: 600 33px/1.1 var(--eh-sans); letter-spacing: -.05em; }
.eh-home .eh-network-map .map-country { fill: #355475; stroke: #0f2b5b; }
.eh-home .eh-network-map .map-country.has-origin { fill: #f1b59b; stroke: #183253; }
.eh-home .eh-origin-country { border-radius: 999px; }
.eh-home .eh-origin-country, .eh-home .eh-origin-country strong { color: #fff; }
.eh-home .eh-people-panel { background: var(--eh-panel); border: 1px solid var(--eh-border); padding: 25px; border-radius: 24px; }
.eh-home .person-card { background: var(--eh-page); border-radius: 16px; }
.eh-home .eh-city-grid { gap: 19px; }
.eh-home #city-cards .city-card { border-radius: 22px; background: var(--eh-page); box-shadow: 0 5px 20px rgb(15 43 91 / .035); }
.eh-home #city-cards .city-card > :is(picture, figure) { aspect-ratio: 1.28; position: relative; }
.eh-home #city-cards .city-card > :is(picture, figure)::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -35px 35px -25px rgb(9 29 58 / .25); }
.eh-home #city-cards .city-card img { transition: transform 500ms; }
.eh-home #city-cards .city-card:hover img { transform: scale(1.04); }
.eh-home #city-cards .city-card strong { font: 600 25px/1.2 var(--eh-sans); letter-spacing: -.045em; }
.eh-home .eh-news-panel { border-radius: 22px; }
.eh-home .eh-join-banner { position: relative; overflow: hidden; border-radius: 24px; padding: 38px; background: var(--eh-soft); border-color: var(--eh-border); }
.eh-home .eh-join-banner::before { content: ''; position: absolute; width: 220px; height: 220px; border: 1px solid var(--eh-border); border-radius: 50%; left: 54%; top: -120px; pointer-events: none; }
.eh-home .eh-join-banner h2 { position: relative; }
@media (min-width: 1040px) {
  .home-compact .eh-home .eh-hero { min-height: 465px; }
  .home-compact .eh-home .eh-hero-copy { padding-block: 30px 60px; }
  .home-compact .eh-home .eh-hero h1 { font-size: 49px; margin-block: 17px; }
  .home-compact .eh-home .eh-hero-values { display: none; }
  .home-compact .eh-home .eh-hero-actions { margin-top: 19px; }
  .home-compact .eh-home .eh-hero-note { margin-top: 15px; }
}
@media (max-width: 1100px) {
  .eh-home .eh-hero { min-height: 560px; }
  .eh-home .eh-hero-copy { padding-left: 30px; padding-right: 20px; }
  .eh-home .eh-hero h1 { font-size: clamp(43px, 5vw, 55px); }
  .eh-home .eh-hero-community { top: 33px; right: 32px; padding: 11px 13px; }
  .eh-home .eh-hero-community strong { font-size: 10px; }
  .eh-home .home-stat { gap: 9px; padding: 20px 12px; }
  .eh-home .home-stat-icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; }
  .eh-home .home-stat-number { font-size: 30px; }
  .eh-home .eh-quick-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .eh-home .eh-quick-link { padding: 12px 16px; min-height: 68px; }
  .eh-home .eh-resource { padding: 24px; }
  .eh-home .eh-resource-top .eh-icon { width: 41px; height: 41px; padding: 9px; }
  .eh-home .eh-resource-top .eh-eyebrow { font-size: 8px; }
  .eh-home .eh-resource-tracks h3 { font-size: 34px; }
  .eh-home .eh-track-preview { right: 24px; gap: 9px; }
  .eh-home .eh-track-node { padding: 11px; font-size: 12px; }
  .eh-home .eh-people-panel { padding: 19px; }
}
@media (min-width: 721px) and (max-width: 900px) {
  .eh-home .eh-hero-copy { width: 51%; padding-top: 34px; }
  .eh-home .eh-hero h1 { font-size: 43px; }
  .eh-home .eh-hero-media { left: 51%; border-top-left-radius: 90px; }
  .eh-home .eh-hero-actions { flex-direction: column; align-items: flex-start; }
  .eh-home .eh-hero-lead { font-size: 13px; }
  .eh-home .eh-hero-community { top: 29px; right: 29px; }
  .eh-home .eh-hero-community > .eh-icon { width: 24px; height: 24px; }
  .eh-home .eh-photo-caption { right: 28px; padding: 9px 11px; }
  .eh-home .eh-photo-caption span { display: none; }
  .eh-home .home-stat { align-items: flex-start; }
  .eh-home .home-stat-icon { display: none; }
  .eh-home .eh-resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .eh-home .eh-resource-support { grid-column: auto; }
}
@media (max-width: 720px) {
  .eh-home .eh-hero { display: flex; flex-direction: column; margin-top: 16px; min-height: 0; border-radius: 24px; }
  .eh-home .eh-hero-copy { width: 100%; padding: 29px 25px 25px; }
  .eh-home .eh-hero-badge { font-size: 8px; }
  .eh-home .eh-hero h1 { font-size: clamp(41px, 10.7vw, 64px); line-height: 1.04; margin-block: 24px 20px; }
  .eh-home .eh-hero-lead { font-size: 13px; }
  .eh-home .eh-hero-actions { margin-top: 23px; gap: 9px; }
  .eh-home .eh-hero .eh-button { font-size: 11px; min-height: 46px; padding-inline: 14px; }
  .eh-home .eh-hero-values { margin-top: 23px; gap: 21px; }
  .eh-home .eh-hero-note { font-size: 9px; margin-top: 17px; }
  .eh-home .eh-hero-media { position: relative; inset: auto; height: 300px; width: calc(100% - 24px); margin: 0 12px 12px; border-radius: 80px 16px 16px 16px; }
  .eh-home .eh-hero-media img { object-position: 50% 85%; }
  .eh-home .eh-hero-community { top: auto; bottom: 243px; right: 23px; padding: 10px 12px; gap: 9px; border-radius: 12px; }
  .eh-home .eh-hero-community strong { font-size: 10px; }
  .eh-home .eh-hero-community p > span { font-size: 9px; }
  .eh-home .eh-hero-community > .eh-icon { width: 23px; height: 23px; }
  .eh-home .eh-photo-caption { bottom: 26px; right: 24px; font-size: 10px; padding: 8px 10px; }
  .eh-home .eh-photo-caption span { font-size: 9px; }
  .eh-home .eh-stats-container { margin-top: 15px; padding: 0; }
  .eh-home .eh-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; background: transparent; box-shadow: none; }
  .eh-home .home-stat { padding: 17px 12px; gap: 10px; border-radius: 16px; }
  .eh-home .home-stat-icon { width: 31px; height: 31px; padding: 7px; }
  .eh-home .home-stat-number { font-size: 28px; }
  .eh-home .home-stat-label { font-size: 10px; line-height: 1.4; }
  .eh-home .home-stat-caption { font-size: 9px; }
  .eh-home .eh-stats-note { display: block; font-size: 9px; }
  .eh-home .eh-stats-note > span { display: block; margin-top: 5px; }
  .eh-home .eh-quick { margin-top: 29px; }
  .eh-home .eh-quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .eh-home .eh-quick-link { padding: 11px; font-size: 10px; min-height: 70px; gap: 8px; }
  .eh-home .eh-quick-link .eh-icon:first-child { width: 34px; height: 34px; padding: 8px; border-radius: 10px; }
  .eh-home .eh-quick-link .eh-icon:last-child { width: 11px; height: 11px; }
  .eh-home .eh-section { padding-block: 47px; }
  .eh-home .eh-resource-grid { grid-template-columns: 1fr; }
  .eh-home .eh-resource-tracks, .eh-home .eh-resource-support { grid-column: auto; }
  .eh-home .eh-resource-tracks { min-height: 0; padding-bottom: 30px; }
  .eh-home .eh-resource-tracks h3 { font-size: 38px; }
  .eh-home .eh-resource-tracks > p { max-width: none; }
  .eh-home .eh-track-preview { position: relative; inset: auto; width: 100%; margin: 8px 0 34px; order: 3; gap: 12px; }
  .eh-home .eh-resource-tracks > p { order: 2; }
  .eh-home .eh-resource-tracks > a { order: 4; margin-top: 0; }
  .eh-home .eh-track-node { padding: 15px; font-size: 14px; }
  .eh-home .eh-people-panel { padding: 20px; }
  .eh-home .eh-people-head h3 { font-size: 22px; }
  .eh-home #city-cards .city-card { border-radius: 17px; }
  .eh-home #city-cards .city-card strong { font-size: 21px; }
  .eh-home .eh-join-banner { padding: 27px; }
  .home-compact .eh-home .eh-hero-copy { padding-bottom: 22px; }
  .home-compact .eh-home .eh-hero h1 { font-size: 39px; margin-block: 18px; }
  .home-compact .eh-home .eh-hero-values { display: none; }
  .home-compact .eh-home .eh-hero-media { height: 190px; }
  .home-compact .eh-home .eh-hero-community { bottom: 133px; }
}
@media (hover: none) {
  .eh-home .eh-resource:hover, .eh-home .eh-quick-link:hover { transform: none; }
}
@media print {
  .eh-home .eh-hero-community, .eh-home .eh-hero-values { display: none; }
}

/* Browse dates in place without losing the direct timetable and exam links. */
.eh-home .eh-widget-heading { flex-wrap: wrap; gap: 10px; padding-inline: 20px; }
.eh-home .eh-widget-heading h3 { flex: 1; min-width: 0; }
.eh-home .eh-widget-heading .dash-mine { display: block; width: fit-content; margin: 4px 0 0; font: 500 10px/1.3 var(--eh-sans); color: var(--eh-muted); }
.eh-home .dash-browse-nav { display: flex; gap: 5px; margin-left: auto; }
.eh-home .dash-browse-button { display: inline-grid; place-items: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--eh-border); border-radius: 13px; background: var(--eh-panel); color: var(--eh-blue); transition: background 160ms, border-color 160ms; }
.eh-home .dash-browse-button .icon { width: 18px; height: 18px; }
.eh-home .dash-browse-button:hover:not(:disabled) { background: var(--eh-soft); border-color: var(--eh-blue); }
.eh-home .dash-browse-button:disabled { opacity: .4; cursor: default; }
.eh-home .dash-browse-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.eh-home .dash-browse-date { color: var(--eh-navy); font-size: 12px; font-weight: 600; line-height: 1.6; }
.eh-home .dash-back-today { flex-shrink: 0; min-height: 44px; padding: 6px 10px; border: 1px solid var(--eh-border); border-radius: 10px; background: var(--eh-soft); color: var(--eh-blue); font-size: 10px; font-weight: 600; }
.eh-home .dash-back-today:hover { border-color: var(--eh-blue); }
.eh-home .dash-browse-position { display: inline-block; margin-bottom: 12px; padding: 5px 9px; border-radius: 999px; background: var(--eh-warm); color: var(--eh-brand-ink); font-size: 10px; font-weight: 600; }
.eh-home .dash-exam-content .schedule-meta { margin-block: 10px; line-height: 1.6; }
.eh-home .dash-day-content .dash-empty { margin-top: 6px; }

/* One illustrated story at a time, with stable controls and a deliberate reading area. */
.eh-home .eh-news-panel { overflow: hidden; }
.eh-home .eh-news-panel:has(.eh-news-carousel) { padding: 0; }
.eh-home .eh-news-panel:has(.eh-news-carousel) > .demo-note { margin: 16px 20px; }
.eh-home #latest-announcements { gap: 0; }
.eh-home .eh-news-slides { position: relative; }
.eh-home #latest-announcements .eh-news-slide { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 320px; margin: 0; padding: 0; border: 0; background: var(--eh-panel); border-radius: 0; box-shadow: none; }
.eh-home .eh-news-cover { position: relative; overflow: hidden; display: grid; place-items: center; min-width: 0; background: #0f2b5b; }
.eh-home .eh-news-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eh-home .eh-news-cover-fallback .icon { width: 65px; height: 65px; color: #f1b59b; }
.eh-home .eh-news-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 26px; }
.eh-home .eh-news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.eh-home .eh-news-meta .announcement-date { flex-basis: 100%; margin-top: 5px; color: var(--eh-muted); font-size: 10px; }
.eh-home #latest-announcements .eh-news-title { font: 600 25px/1.2 var(--eh-sans); letter-spacing: -.04em; }
.eh-home #latest-announcements .eh-news-title a { color: var(--eh-navy); }
.eh-home #latest-announcements .eh-news-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.eh-home #latest-announcements .eh-news-excerpt { color: var(--eh-muted); font-size: 12px; line-height: 1.8; margin-top: 16px; }
.eh-home .eh-news-read { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: auto; padding-top: 18px; color: var(--eh-blue); font-size: 12px; font-weight: 600; }
.eh-home .eh-news-read .icon { width: 17px; height: 17px; }
.eh-home .eh-news-controls { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--eh-border); background: var(--eh-page); }
.eh-home .eh-news-count { margin-right: auto; font-size: 12px; font-weight: 600; color: var(--eh-muted); font-variant-numeric: tabular-nums; }
.eh-home :is(.eh-news-prev, .eh-news-next, .eh-news-toggle) { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--eh-border); border-radius: 13px; background: var(--eh-panel); color: var(--eh-blue); font-size: 11px; font-weight: 600; }
.eh-home :is(.eh-news-prev, .eh-news-next, .eh-news-toggle):hover:not(:disabled) { background: var(--eh-soft); border-color: var(--eh-blue); }
.eh-home :is(.eh-news-prev, .eh-news-next, .eh-news-toggle):disabled { opacity: .4; cursor: default; }
.eh-home :is(.eh-news-prev, .eh-news-next, .eh-news-toggle) .icon { width: 17px; height: 17px; }

/* Shared roadmap data drives both the value and the visible quarter-width bar. */
.eh-home .eh-roadmap-progress { grid-column: 1 / -1; padding: 22px 24px; border: 1px solid var(--eh-border); border-radius: 20px; background: var(--eh-panel); }
.eh-home .eh-roadmap-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; color: var(--eh-navy); font-size: 13px; font-weight: 600; }
.eh-home .eh-roadmap-progress-heading strong { color: var(--eh-brand-ink); font: 600 21px/1.2 var(--eh-sans); letter-spacing: -.04em; white-space: nowrap; }
.eh-home .eh-roadmap-progress-bar { height: 10px; background: var(--eh-soft); border: 1px solid var(--eh-border); border-radius: 999px; overflow: hidden; }
.eh-home .eh-roadmap-progress-fill { display: block; height: 100%; border-radius: inherit; background: var(--eh-brand-ink); }
.eh-home .eh-roadmap-progress-note { margin-top: 10px; color: var(--eh-muted); font-size: 10px; line-height: 1.5; }

/* Pointer-driven depth is shallow; the reading order and keyboard layout stay steady. */
@media (hover: hover) and (pointer: fine) {
  .eh-home .eh-tilt { transform: perspective(1000px) rotateX(var(--eh-tilt-x, 0deg)) rotateY(var(--eh-tilt-y, 0deg)) translateY(var(--eh-lift, 0px)); transform-origin: center; }
  .eh-home .eh-tilt:hover { --eh-lift: -3px; transform: perspective(1000px) rotateX(var(--eh-tilt-x, 0deg)) rotateY(var(--eh-tilt-y, 0deg)) translateY(var(--eh-lift)); }
  .eh-home .eh-tilt:focus-within { transform: none; }
  .eh-home .eh-resource-top .eh-icon { transition: transform 200ms; }
  .eh-home .eh-resource:hover .eh-resource-top .eh-icon { transform: translateY(-2px) rotate(-5deg); }
}
@media (max-width: 1100px) {
  .eh-home #latest-announcements .eh-news-slide { grid-template-columns: 1fr; min-height: 0; }
  .eh-home .eh-news-cover { aspect-ratio: 8 / 5; }
  .eh-home .eh-news-copy { padding: 23px; }
}
@media (max-width: 720px) {
  .eh-home .eh-widget-heading { padding-inline: 19px; }
  .eh-home .dash-browse-date { font-size: 11px; }
  .eh-home .dash-browse-meta { gap: 8px; }
  .eh-home .eh-news-copy { padding: 23px; }
  .eh-home .eh-news-controls { padding-inline: 16px; }
  .eh-home .eh-roadmap-progress { padding: 20px; }
  .eh-home .eh-roadmap-progress-heading { align-items: flex-start; font-size: 12px; }
  .eh-home .eh-roadmap-progress-heading strong { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .eh-home .eh-tilt, .eh-home .eh-resource:hover .eh-resource-top .eh-icon { transform: none !important; }
}
@media print {
  .eh-home .dash-browse-nav, .eh-home .dash-back-today, .eh-home .eh-news-controls { display: none !important; }
  .eh-home #latest-announcements .eh-news-slide { display: block; }
  .eh-home .eh-news-cover { display: none; }
}

/* A clear first-visit entry point to the interactive project profile. */
.eh-home .eh-visitor-link { display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:12px;color:#fff;font-size:.76rem;font-weight:600;text-decoration:underline;text-underline-offset:4px; }
.eh-home .eh-visitor-link .icon { width:16px;height:16px;flex-shrink:0; }
.eh-home .eh-visitor-link:focus-visible { outline:2px solid #fff;outline-offset:4px; }
