:root {
  --ev-sidebar-width: 248px;
  --ev-page-bg: #f4f7f5;
  --ev-surface: #ffffff;
  --ev-line: #dce6e1;
  --ev-ink: #142235;
  --ev-muted: #66756f;
  --ev-accent: #087f6b;
  --ev-accent-soft: #e8f4f1;
  --ev-radius-lg: 18px;
}

html body.onae-themed #context-hero .home-hero-cta {
  min-height: 50px !important;
  padding: 14px 24px !important;
}

html body.onae-themed #context-hero .v5-hero-photo {
  align-self: stretch;
  width: 100%;
  height: 100% !important;
  min-height: 100%;
  object-fit: cover;
}

.sidebar-marker,
.sidebar-footer {
  display: none;
}

@media (min-width: 1024px) {
  html { background: var(--ev-page-bg); }
  body { background: var(--ev-page-bg); color: var(--ev-ink); }

  header.app {
    min-height: 72px;
    background: var(--ev-surface);
    border-bottom: 1px solid var(--ev-line);
    box-shadow: none;
  }

  header.app .hd-inner {
    max-width: none;
    min-height: 72px;
    padding: 10px 24px;
  }

  header.app .brand {
    width: calc(var(--ev-sidebar-width) - 28px);
    color: var(--ev-ink);
    font-size: 21px;
  }

  header.app .brand small { color: var(--ev-muted); }

  .tabs {
    position: fixed;
    inset: 72px auto 0 0;
    width: var(--ev-sidebar-width);
    height: auto;
    background: var(--ev-surface);
    border-right: 1px solid var(--ev-line);
    border-bottom: 0;
    overflow-y: auto;
    z-index: 40;
  }

  .tabs-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    max-width: none;
    padding: 20px 14px 28px;
  }

  .sidebar-marker {
    display: block;
    margin: 18px 12px 5px;
    color: var(--ev-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .sidebar-marker:first-child { margin-top: 0; }

  .tab-btn {
    flex: 0 0 auto;
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--ev-ink);
    font-size: 15px;
    text-align: left;
  }

  .tab-btn:hover {
    color: var(--ev-accent);
    background: var(--ev-accent-soft);
    border-color: var(--ev-line);
  }

  .tab-btn.active {
    color: var(--ev-accent);
    background: var(--ev-accent-soft);
    border-color: transparent;
    box-shadow: inset 4px 0 0 var(--ev-accent);
  }

  .tab-btn::after { display: none; }
  .tab-ico {
    display: inline-grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 1px solid var(--ev-line);
    border-radius: calc(var(--ev-radius-lg) / 2);
    color: var(--ev-muted);
    background: var(--ev-surface);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
  }

  .tab-btn:hover .tab-ico,
  .tab-btn:focus-visible .tab-ico,
  .tab-btn.active .tab-ico {
    border-color: var(--ev-accent);
    color: var(--ev-accent);
    background: var(--ev-accent-soft);
  }
  .tab-lbl { font-size: 15px; font-weight: 750; }

  .sidebar-footer {
    display: grid;
    gap: 5px;
    margin: 22px 10px 0;
    padding-top: 16px;
    border-top: 1px solid var(--ev-line);
  }

  .sidebar-footer a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 9px;
    color: var(--ev-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }

  .sidebar-footer a:hover,
  .sidebar-footer a:focus-visible {
    color: var(--ev-accent);
    background: var(--ev-accent-soft);
  }

  .study-journey-nav,
  body > main,
  body > .site-foot,
  body > form + section,
  body > section[id^="lead-"] {
    margin-left: var(--ev-sidebar-width);
  }

  .study-journey-nav {
    padding: 22px 34px 10px;
    background: var(--ev-page-bg);
    border-bottom: 0;
  }

  .study-journey-inner {
    max-width: 1210px;
    border: 1px solid var(--ev-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--ev-surface);
  }

  .study-journey-step { min-height: 70px; }

  body > main {
    width: auto;
    max-width: none;
    padding: 10px 34px 60px;
  }

  body > main > * {
    width: min(100%, 1210px);
    margin-right: auto;
    margin-left: auto;
  }

  .home-top { display: grid; gap: 20px; }

  .home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: stretch;
    min-height: 430px;
    padding: 0;
    overflow: hidden;
    text-align: left;
    background: var(--ev-surface);
    border: 1px solid var(--ev-line);
    border-radius: var(--ev-radius-lg);
    box-shadow: 0 12px 34px rgba(20, 34, 53, .06);
  }

  .home-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: none;
    padding: 48px 52px;
  }

  .home-hero-eyebrow {
    margin-bottom: 18px;
    padding: 7px 13px;
    color: var(--ev-accent);
    background: var(--ev-accent-soft);
    font-size: 12px;
  }

  .home-hero-h1 {
    max-width: 640px;
    margin-bottom: 18px;
    color: var(--ev-ink);
    font-size: clamp(38px, 3.4vw, 54px);
    line-height: 1.12;
    letter-spacing: -.035em;
    text-wrap: balance;
  }

  .home-hero-sub {
    max-width: 620px;
    margin: 0 0 26px;
    color: var(--ev-muted);
    font-size: 17px;
    line-height: 1.7;
  }

  .home-hero-cta {
    min-height: 50px !important;
    padding: 14px 24px !important;
    border-radius: 10px;
    background: var(--ev-accent);
    border-color: var(--ev-accent);
    color: #fff;
    font-size: 15px;
  }

  .home-trust-chips {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .home-hero-library {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 56px 34px 42px;
    background: var(--ev-accent-soft);
    border-left: 1px solid var(--ev-line);
  }

  .home-hero-library img {
    width: min(29%, 132px);
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: 7px;
    box-shadow: 0 16px 28px rgba(20, 34, 53, .18);
  }

  .home-hero-library img:nth-child(2) { transform: translateY(-22px); }
  .home-hero-library figcaption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .coaching-journey,
  .home-daily,
  .ctx-card,
  .view > section {
    border-color: var(--ev-line);
    border-radius: 16px;
  }

  .coaching-journey-head h2,
  .sec { font-size: clamp(24px, 2vw, 32px); }

  .coaching-journey {
    margin-top: 14px !important;
  }

  .coaching-steps {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .coaching-step {
    min-width: 0;
    min-height: 152px;
    align-content: start;
  }

  .hd-actions > button,
  .hd-actions > .menu-wrap > button {
    min-height: 40px !important;
  }

  .coaching-step-action {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }
}

@media (min-width: 1024px) and (max-width: 1240px) {
  :root { --ev-sidebar-width: 220px; }
  .home-hero { grid-template-columns: 1fr 360px; }
  .home-hero-copy { padding: 38px 34px; }
  .home-hero-h1 { font-size: 40px; }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .coaching-steps {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 1023px) {
  .home-hero-h1 { font-size: clamp(29px, 7vw, 40px); }
  .home-hero-sub { font-size: 15px; }

  .home-hero-cta {
    min-height: 50px !important;
    padding: 14px 24px !important;
  }

  .coaching-step-action {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }

  .v5-menu-toggle,
  #cs-help-btn,
  #account-btn {
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

@media (max-width: 640px) {
  .coaching-steps {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-library img:nth-child(2) { transform: none; }
}

.v5-eduverse-menu{position:relative;font-size:13px}
.v5-eduverse-menu>summary{list-style:none;min-height:44px;display:inline-flex;align-items:center;padding:0 12px;border:1px solid var(--ev-line,#d8e2df);border-radius:9px;background:var(--ev-surface,#fff);color:var(--ev-ink,#172522);font-weight:750;cursor:pointer}
.v5-eduverse-menu>summary::-webkit-details-marker{display:none}
.v5-eduverse-menu>summary::after{content:"⌄";margin-left:7px;color:var(--ev-muted,#63716d)}
.v5-eduverse-menu[open]>summary,.v5-eduverse-menu>summary:focus-visible{border-color:var(--ev-accent,#078775);outline:3px solid color-mix(in srgb,var(--ev-accent,#078775) 22%,transparent)}
.v5-eduverse-links{position:absolute;top:calc(100% + 8px);right:0;z-index:80;min-width:168px;padding:7px;border:1px solid var(--ev-line,#d8e2df);border-radius:11px;background:var(--ev-surface,#fff);box-shadow:0 14px 32px rgba(20,48,43,.14)}
.v5-eduverse-links a{display:flex;min-height:42px;align-items:center;padding:9px 10px;border-radius:7px;color:var(--ev-ink,#172522);text-decoration:none;font-weight:650}
.v5-eduverse-links a:hover,.v5-eduverse-links a:focus-visible{background:var(--ev-accent-soft,#e6f3f0);color:var(--ev-accent,#078775);outline:none}
@media (hover:hover){.v5-eduverse-menu:hover>.v5-eduverse-links{display:block}.v5-eduverse-menu:not([open]):hover>.v5-eduverse-links{display:block}}
@media (max-width:640px){.v5-eduverse-menu>summary{padding:0 9px;font-size:11px}.v5-eduverse-links{position:fixed;top:58px;left:10px;right:10px;min-width:0}}
