/* FinPath's Slush-inspired shell. The long-form reading rules remain in reading-comfort.css. */
:root {
  --slush-ink: #19272b;
  --slush-blue: #2459ef;
  --slush-pale: #eaf5f8;
  --slush-border: #1c292b;
  --slush-lime: #dff577;
  --slush-lilac: #e5dcff;
  --slush-yellow: #ffef9a;
  --bg: #eaf5f8;
  --paper: #fff;
  --ink: #19272b;
  --text: #39494a;
  --line: #ccdadd;
  --green: #1d4660;
  --lime: #dff577;
}
body {
  background: #eaf5f8;
  color: var(--slush-ink);
  background-image: none;
}
.sidebar {
  background: #f7fcfc;
  border-right: 1px solid #aabdbf;
  box-shadow: none;
  color: var(--slush-ink);
}
.sidebar .brand { color: var(--slush-ink); }
.sidebar .brand-symbol { background: var(--slush-blue); color: #fff; }
.sidebar .brand-en, .sidebar .workspace-label, .sidebar .nav-label { color: #485d60; }
.sidebar .nav-link { color: #263a3e; font-weight: 650; border: 1px solid transparent; }
.sidebar .nav-link:hover { color: #13252b; background: #e4eff2; }
.sidebar .nav-link.active {
  background: #dff577;
  border-color: #1c292b;
  color: #16282a;
  box-shadow: 2px 2px 0 #1c292b;
}
.sidebar .nav-count, .sidebar .saved-count { background: #fff; color: #1b3035; border: 1px solid #c4d4d5; }
.sidebar .nav-divider { background: #c2d3d5; }
.sidebar .sidebar-tip { background: #e6f1f3; border: 1px solid #b4c8ca; color: #1c3033; }
.sidebar .sidebar-tip p, .sidebar .sidebar-tip .text-button { color: #304a4c; }
.sidebar .profile { color: #1c3033; }
.sidebar .profile small { color: #4b6164; }
.topbar { background: #f8fcfc; border-bottom: 1px solid #c1d1d3; }
.breadcrumb, .breadcrumb b { color: #253b40; }
.search-box { background: white; border: 1px solid #a6b9bc; border-radius: 999px; }
.search-box input { color: #243b40; }
.search-box input::placeholder { color: #53686c; opacity: 1; }
.app-notices .offline-strip { color: #365255; }
.offline-strip .status-dot { background: #3e7452; }
.page-heading { gap: 20px; }
.page-heading h1 {
  color: var(--slush-ink);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1.2;
}
.page-heading p { color: #3c5356; font-size: 16px; line-height: 1.7; }
.page-eyebrow { color: #2450a8; font-weight: 800; letter-spacing: .12em; }
.section-heading h2 { color: var(--slush-ink); font-weight: 800; }
.section-heading .caption, .section-subtitle { color: #415b60; }
/* Cards get editorial borders; article/quiz reading surfaces keep their own rules. */
.career-card, .lesson-card, .module-card, .catalog-card, .paper-card,
.paper-question-card, .profile-panel, .rail-card, .mine-card:not(.mine-hero), .stage-card,
.job-search-form, .job-comparison, .daily-library article, .daily-how {
  background-color: #fff;
  border: 1px solid #adbec0;
  border-radius: 20px;
  box-shadow: 0 4px 0 rgba(24, 44, 47, .07);
}
.career-card, .career-card:nth-child(3n+2), .career-card:nth-child(3n) { border-top: 1px solid #adbec0; }
.career-card.featured { background: #f2f1ff; border-color: #aeb7bf; }
.career-card h3, .lesson-card h3, .module-card h3, .catalog-card h2,
.catalog-card h3, .paper-card h2, .paper-card h3 { color: #192a2e; font-weight: 800; }
.career-desc, .module-desc, .catalog-lead, .job-card .career-desc { color: #405256; }
:where(.career-card,.module-card,.catalog-card,.paper-card) :is(.tag,.catalog-tags span,.paper-tags span) {
  background: #ecf5dc;
  color: #29443c;
  border: 1px solid #c8d9bd;
}
.tile-icon.sage, .tile-icon.green { background: #def6dd; color: #285747; }
.tile-icon.lilac, .tile-icon.purple { background: #e8e2ff; color: #584682; }
.tile-icon.peach { background: #fff0c5; color: #6a5128; }
/* Restrict black-filled buttons to normal surfaces so tinted hero and dialog states stay legible. */
.button { border-radius: 999px; border-color: #22383b; }
.button.primary { background: #1c2b30; border-color: #1c2b30; color: #fff; }
.button.primary:hover { background: #30474a; color: #fff; }
.filter-button { border: 1px solid #a4b8bb; border-radius: 999px; background: #fff; color: #283e42; }
.filter-button.active, .filter-button[aria-pressed="true"] {
  background: #dff577; border-color: #1d3033; color: #172b2d;
}
.filter-button:focus-visible, .button:focus-visible, .nav-link:focus-visible,
.mobile-nav a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #2359ed;
  outline-offset: 3px;
}
.job-search-form { background: #f8fcfc; }
.job-search-form input, .job-search-form select, .catalog-toolbar input,
.catalog-toolbar select { background: #fff; color: #273d41; border-color: #9fb5b8; }
.job-match, .job-data-note { color: #40585c; }
.intro-strip, .daily-feature, .profile-entry, .review-card {
  border: 1px solid #b8c9ca;
  border-radius: 20px;
  background: #f7fcfc;
  box-shadow: 0 4px 0 rgba(24, 44, 47, .06);
}
.daily-feature::after { border-color: #c9def0; box-shadow: 0 0 0 20px rgba(42,107,195,.04), 0 0 0 40px rgba(42,107,195,.03); }
.daily-feature h2, .daily-feature h3, .daily-feature p, .daily-meta { color: #253f43; }
/* Keep reading on a light surface, even while the surrounding UI is colorful. */
.detail-dialog { background: #fff; color: #303a36; }
.dialog-header { background: #f2f9fa; }
#dialog-content > article.dialog-body:has(.reading-section),
#dialog-content > article.lab-body, .paper-unit { background-color: #fff; color: #303a36; }
#dialog-content .reading-section p, .paper-unit :is(.paper-abstract p,.paper-column-body p,.paper-column-body li) {
  color: #303a36; font-size: 16px; line-height: 1.6;
}
.footer { color: #3e5658; }
@media (hover: hover) and (pointer: fine) {
  .career-card:hover, .lesson-card:hover, .module-card:hover, .catalog-card:hover, .paper-card:hover {
    border-color: #78999d;
    box-shadow: 0 7px 0 rgba(24,44,47,.09);
  }
}
@media (max-width: 760px) {
  .topbar { background: #f7fcfc; border-color: #bfd0d1; }
  .breadcrumb:before { background: var(--slush-blue); color: #fff; }
  .breadcrumb b { color: #263c3f; }
  .page-heading h1 { font-size: clamp(30px, 8vw, 42px); letter-spacing: -.045em; line-height: 1.25; }
  .page-heading p { font-size: 16px; line-height: 1.6; }
  .mobile-nav { background: #f9fdfdf5; border-color: #b4c9cb; }
  .mobile-nav a { color: #435d60; }
  .mobile-nav a.active { color: #193c78; background: #dce9ff; }
  .mobile-nav a svg { stroke-width: 1.8; }
  .career-card,.lesson-card,.module-card,.catalog-card,.paper-card,.rail-card,.stage-card,.mine-card,.profile-panel { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Ensure the independent study label remains readable on the light sidebar. */
.sidebar .workspace-label .brand-context { color: #40585b; }

/* Shared editorial shell and the original overview feature are part of the same visual system. */
.sidebar .nav-link { border-radius: 999px; min-height: 44px; }
.sidebar .brand-symbol { border: 1.5px solid #111820; box-shadow: 2px 2px 0 #111820; }
.sidebar .sidebar-tip { border: 1px solid #344b52; border-radius: 20px; background: #e6f3ff; }
.topbar .search-box { min-height: 44px; }
.section-heading h2 { letter-spacing: -.035em; }
.hero { background: #1645b6; border: 1.5px solid #111820; box-shadow: 4px 5px 0 #111820; }
.hero:after { background: linear-gradient(120deg, #153eac 0%, #195bc9 72%, #2b85e3 100%); }
.hero:before { border-color: rgba(255,255,255,.22); box-shadow: 0 0 0 26px rgba(255,255,255,.05), 0 0 0 53px rgba(255,255,255,.03); }
.hero .hero-eyebrow { color: #efff8b; }
.hero h2 { color: #fff; letter-spacing: -.03em; }
.hero h2 span { color: #efff8b; }
.hero p { color: #fff; font-size: 16px; line-height: 1.6; }
.hero .hero-pill { background: #fff; border: 1px solid #151b21; color: #17212c; }
.hero .hero-art-note { color: #e7f3ff; }
.hero .chart-label { fill: #f2f7ff; }
.hero .button.lime { color: #111820; background: #dff577; border: 1px solid #111820; }
.hero .button.ghost { color: #fff; border: 1px solid #fff; background: rgba(14,35,88,.28); }
.hero .button.lime:hover { background: #edffac; }
.hero .button.ghost:hover { background: rgba(8,20,58,.65); }
.footer { border-color: #b2c8cc; }
@media (max-width: 760px) {
  .hero p { font-size: 16px; line-height: 1.6; }
  .sidebar.open { background: #f7fcfc; }
  .mobile-nav a { min-height: 44px; }
}

/* Put the next study action before the overview cards. */
[data-view="overview"] .page-heading { margin-bottom: 22px; }
.mosaic-stage .mosaic-automate.home-study { min-height: 370px; }
.mosaic-stage .home-study-copy h2 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 4.2vw, 63px);
  line-height: 1.14;
  overflow-wrap: anywhere;
}
.mosaic-stage .home-study-copy .mosaic-actions { margin-top: 22px; }
.mosaic-stage .home-study-meta { color: #194789; letter-spacing: .035em; }
.home-study-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 18px;
  margin-top: 8px;
}
.home-study-links button {
  min-height: 44px;
  padding: 4px 0;
  color: #143d7b;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .24em;
}
@media (max-width: 760px) {
  [data-view="overview"] .page-heading { margin-bottom: 15px; }
  .mosaic-stage .mosaic-automate.home-study { min-height: 0; }
  .mosaic-stage .home-study-copy { width: 100%; padding: 22px 20px 0; }
  .mosaic-stage .home-study-copy h2 { margin: 12px 0 8px; font-size: clamp(28px, 7.5vw, 40px); }
  .mosaic-stage .home-study-copy .mosaic-actions { margin-top: 16px; gap: 8px; }
  .mosaic-stage .home-study-copy .mosaic-actions button { padding-inline: 13px; }
  .home-study .slush-art { height: 128px; margin-top: 0; }
  .home-study .slush-art .slush-sticker { width: 65px; }
  .home-study .slush-art .slush-sticker--spark { width: 52px; }
}
