/* ── Home page v3: guided funnel (stream → course → material) ──────────────
   Implements the owner's Home Page Redesign (variant 2a, 2026-08-01).
   Palette and type straight from the design file: navy #0b1d4e hero, blue
   #1d50ca actions, Lora for display text, IBM Plex Sans for UI text. */

.mn-hw-body {
  margin: 0;
  background: #f8f9fc;
  color: #0d1526;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mn-hw-body main a { text-decoration: none; }

/* The wizard toggles visibility with the hidden attribute; keep it winning
   over the display classes below. */
.mn-hw-body [hidden] { display: none !important; }

/* Keyboard focus: a clear ring on every interactive piece of the funnel. */
.mn-hw-stream:focus-visible,
.mn-hw-course:focus-visible,
.mn-hw-suggest-row:focus-visible,
.mn-hw-search:focus-within,
.mn-hw-chip:focus-visible,
.mn-hw-more:focus-visible,
.mn-hw-change:focus-visible,
.mn-hw-typelink:focus-visible,
.mn-hw-open-course:focus-visible,
.mn-hw-also-card:focus-visible,
.mn-hw-feature:focus-visible,
.mn-hw-upload-btn:focus-visible {
  outline: 2px solid #1d50ca;
  outline-offset: 2px;
}

/* ── Hero ── */
.mn-hw-hero {
  padding: 26px 16px 10px;
  max-width: 1080px;
  margin: 0 auto;
}

.mn-hw-hero-card {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(140deg, #0b1d4e 0%, #123178 55%, #1e3a8a 100%);
  padding: 42px 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mn-hw-hero-grid {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.mn-hw-hero-card > * { position: relative; z-index: 1; }

.mn-hw-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #93b4f8;
  text-align: center;
}

.mn-hw-hero-h1 {
  margin: 12px 0 0;
  font-family: Lora, Georgia, serif;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 680px;
  text-align: center;
  text-wrap: pretty;
}

.mn-hw-hero-sub {
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #b8cbeb;
  max-width: 540px;
  text-align: center;
  text-wrap: pretty;
}

/* ── Wizard card ── */
.mn-hw-wizard {
  width: 100%;
  max-width: 880px;
  margin-top: 26px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(7, 16, 44, .3);
  padding: 20px 24px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mn-hw-step {
  border: 1px solid #dce6f5;
  border-radius: 11px;
  overflow: hidden;
  background: #ffffff;
}

.mn-hw-step-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  background: #ffffff;
}

.mn-hw-step-head.is-active { background: #f6f9fe; }

.mn-hw-step-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e8eef8;
  color: #8ba0ba;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.mn-hw-step-head.is-active .mn-hw-step-num { background: #0b1d4e; color: #ffffff; }
.mn-hw-step-head.is-done .mn-hw-step-num { background: #1d50ca; color: #ffffff; }

.mn-hw-step-title { font-size: 13.5px; font-weight: 600; color: #8ba0ba; }
.mn-hw-step-head.is-active .mn-hw-step-title,
.mn-hw-step-head.is-done .mn-hw-step-title { color: #0d1526; }

.mn-hw-step-picked {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.mn-hw-step-value {
  font-size: 13px;
  color: #2c3e5c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mn-hw-change {
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #1d50ca;
  cursor: pointer;
}

.mn-hw-step-body {
  padding: 16px;
  border-top: 1px solid #e8effa;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mn-hw-hint { margin: 0; font-size: 12.5px; color: #5a718c; }


/* ── Streams (step 1) ── */
.mn-hw-streams { display: flex; flex-direction: column; gap: 6px; }

.mn-hw-stream,
.mn-hw-course,
.mn-hw-suggest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #ffffff;
  border: 1px solid #dce6f5;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.mn-hw-stream:hover,
.mn-hw-course:hover { border-color: #1d50ca; }

.mn-hw-radio {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 2px solid #c9d5e8;
  background: #ffffff;
  box-sizing: border-box;
}

.mn-hw-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Lora, Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  background: #1d50ca;
}

.mn-hw-mark.is-com { background: #1d50ca; }
.mn-hw-mark.is-sci { background: #0e7490; }
.mn-hw-mark.is-eng { background: #b45309; }
.mn-hw-mark.is-arts { background: #5b3fb5; }
.mn-hw-mark.is-law { background: #9f1239; }
.mn-hw-mark.is-phar { background: #166534; }

.mn-hw-stream-text,
.mn-hw-course-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mn-hw-stream-label { font-size: 13.5px; font-weight: 600; color: #0d1526; }
.mn-hw-stream-ex { font-size: 11.5px; color: #5a718c; }
.mn-hw-stream-count { font-size: 11.5px; font-weight: 600; color: #5a718c; white-space: nowrap; }

/* ── Type-a-course (step 1) ── */
.mn-hw-typebox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #e8effa;
  padding-top: 14px;
}

.mn-hw-typebox-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5a718c;
}

.mn-hw-search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d3ddeb;
  border-radius: 9px;
  padding: 10px 13px;
  max-width: 420px;
  color: #8ba0ba;
}

.mn-hw-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  color: #0d1526;
}

.mn-hw-search input::placeholder { color: #8ba0ba; }

.mn-hw-suggest {
  display: flex;
  flex-direction: column;
  border: 1px solid #dce6f5;
  border-radius: 10px;
  overflow: hidden;
  max-width: 420px;
}

.mn-hw-suggest-row {
  border: 0;
  border-bottom: 1px solid #eef3fb;
  border-radius: 0;
  padding: 10px 13px;
}

.mn-hw-suggest-row:last-child { border-bottom: 0; }
.mn-hw-suggest-row:hover { background: #f6f9fe; }

.mn-hw-suggest-empty { margin: 0; font-size: 12px; color: #5a718c; }

/* ── Course list (step 2) ── */
.mn-hw-level { display: flex; flex-direction: column; gap: 8px; }
.mn-hw-level + .mn-hw-level { margin-top: 14px; }

.mn-hw-level-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5a718c;
}

.mn-hw-course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mn-hw-course { padding: 11px 13px; border-radius: 9px; }
.mn-hw-course .mn-hw-mark { width: 36px; height: 36px; border-radius: 9px; }
.mn-hw-course-name { font-size: 13.5px; font-weight: 600; color: #0d1526; line-height: 1.35; }
.mn-hw-course-meta { font-size: 11.5px; color: #5a718c; }

.mn-hw-more {
  border: 1px solid #d3ddeb;
  background: #ffffff;
  border-radius: 999px;
  align-self: flex-start;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #1d50ca;
  cursor: pointer;
}

.mn-hw-more:hover { border-color: #1d50ca; }

.mn-hw-typelink {
  border: 0;
  background: none;
  padding: 0;
  margin-top: 2px;
  align-self: flex-start;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #1d50ca;
  cursor: pointer;
}

.mn-hw-typelink:hover { color: #1740a0; }

/* ── Material (step 3) ── */
.mn-hw-c3-head { display: flex; align-items: center; gap: 14px; }

.mn-hw-c3-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #1d50ca;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Lora, Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
}

.mn-hw-c3-mark.is-com { background: #1d50ca; }
.mn-hw-c3-mark.is-sci { background: #0e7490; }
.mn-hw-c3-mark.is-eng { background: #b45309; }
.mn-hw-c3-mark.is-arts { background: #5b3fb5; }
.mn-hw-c3-mark.is-law { background: #9f1239; }
.mn-hw-c3-mark.is-phar { background: #166534; }

.mn-hw-c3-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.mn-hw-c3-name {
  font-family: Lora, Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0d1526;
  line-height: 1.25;
}

.mn-hw-c3-meta { font-size: 12.5px; color: #5a718c; }

.mn-hw-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.mn-hw-tile {
  background: #f9fbfe;
  border: 1px solid #dce6f5;
  border-radius: 10px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mn-hw-tile-n {
  font-family: Lora, Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: #0d1526;
}

.mn-hw-tile-l { font-size: 12px; font-weight: 600; color: #2c3e5c; }
.mn-hw-tile-s { font-size: 11px; color: #5a718c; line-height: 1.45; }

.mn-hw-chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mn-hw-chips-label { font-size: 12px; font-weight: 600; color: #5a718c; }
.mn-hw-chips-list { display: contents; }

.mn-hw-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #d3ddeb;
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: #40566f;
}

.mn-hw-chip:hover { border-color: #1d50ca; color: #1d50ca; }

.mn-hw-also { display: flex; flex-direction: column; gap: 8px; }

.mn-hw-also-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5a718c;
}

.mn-hw-also-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mn-hw-also-card {
  background: #ffffff;
  border: 1px solid #dce6f5;
  border-radius: 10px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #0d1526;
}

.mn-hw-also-card:hover { border-color: #1d50ca; }
.mn-hw-also-card svg { color: #1d50ca; }
.mn-hw-also-title { font-size: 13px; font-weight: 600; }
.mn-hw-also-sub { font-size: 11.5px; color: #5a718c; line-height: 1.45; }
.mn-hw-also-cta { font-size: 11.5px; font-weight: 600; color: #1d50ca; margin-top: auto; }

/* Save-this-course card: the account ask, placed after the value is visible. */
.mn-hw-save {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: #f6f9fe;
  border: 1px solid #d3e2f7;
  border-radius: 10px;
  padding: 14px 16px;
}

.mn-hw-save.is-saved {
  background: #f2fbf5;
  border-color: #cdead6;
}

.mn-hw-save-text {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mn-hw-save-title { font-size: 13.5px; font-weight: 600; color: #0d1526; }
.mn-hw-save-sub { font-size: 12px; color: #5a718c; line-height: 1.45; }

.mn-hw-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #d3ddeb;
  color: #0d1526;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.mn-hw-save-btn:hover {
  border-color: #1d50ca;
  color: #0d1526;
}

.mn-hw-save-btn:focus-visible {
  outline: 2px solid #1d50ca;
  outline-offset: 2px;
}

.mn-hw-c3-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #e8effa;
  padding-top: 16px;
}

.mn-hw-groupline { flex: 1; font-size: 12.5px; color: #5a718c; }

.mn-hw-open-course {
  padding: 11px 22px;
  border-radius: 9px;
  background: #1d50ca;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.mn-hw-open-course:hover { background: #1740a0; color: #ffffff; }

.mn-hw-noscript { margin: 16px 0 0; font-size: 13px; color: #b8cbeb; text-align: center; }
.mn-hw-noscript a { color: #ffffff; text-decoration: underline; }

/* ── Stats strip ── */
.mn-hw-stats {
  margin-top: 26px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.mn-hw-stat {
  padding: 0 26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mn-hw-stat + .mn-hw-stat { border-left: 1px solid rgba(255, 255, 255, .16); }

.mn-hw-stat-n {
  font-family: Lora, Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.mn-hw-stat-l { font-size: 11.5px; color: #b8cbeb; }

/* ── Sections below the hero ── */
.mn-hw-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 16px 0;
}

.mn-hw-section:last-of-type { padding-bottom: 44px; }

.mn-hw-section-head h2,
.mn-hw-upload h2 {
  margin: 0;
  font-family: Lora, Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mn-hw-section-head p { margin: 6px 0 0; font-size: 13.5px; color: #5a718c; }
.mn-hw-section-head { margin-bottom: 14px; }

.mn-hw-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mn-hw-feature {
  background: #ffffff;
  border: 1px solid #dce6f5;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #0d1526;
}

.mn-hw-feature:hover { border-color: #1d50ca; }
.mn-hw-feature svg { color: #1d50ca; }

.mn-hw-feature-title {
  font-family: Lora, Georgia, serif;
  font-size: 16px;
  font-weight: 600;
}

.mn-hw-feature-sub { font-size: 12.5px; color: #5a718c; line-height: 1.5; }

/* ── Upload band ── */
.mn-hw-upload {
  background: #0b1d4e;
  border-radius: 12px;
  padding: 22px 26px;
  color: #eaf1fd;
  display: flex;
  align-items: center;
  gap: 28px;
}

.mn-hw-upload-text { flex: 1; min-width: 0; }
.mn-hw-upload h2 { font-size: 20px; }

.mn-hw-upload p {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #a9c0e8;
  max-width: 560px;
}

.mn-hw-upload-btn {
  padding: 11px 20px;
  border-radius: 8px;
  background: #ffffff;
  color: #0b1d4e;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .mn-hw-feature-grid { grid-template-columns: 1fr 1fr; }
  .mn-hw-also-grid { grid-template-columns: 1fr; }
  .mn-hw-course-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .mn-hw-hero { padding: 14px 12px 6px; }
  .mn-hw-hero-card { padding: 22px 14px 20px; border-radius: 14px; }
  .mn-hw-hero-h1 { font-size: 25px; line-height: 1.18; }
  .mn-hw-hero-sub { font-size: 13px; margin-top: 8px; }
  .mn-hw-wizard { padding: 14px; margin-top: 14px; border-radius: 12px; }
  .mn-hw-step-body { padding: 12px; gap: 10px; }
  .mn-hw-step-head { padding: 11px 12px; }
  .mn-hw-stream, .mn-hw-course { gap: 10px; padding: 10px 12px; }
  .mn-hw-c3-mark { width: 38px; height: 38px; border-radius: 10px; font-size: 12px; }
  .mn-hw-c3-name { font-size: 17px; }
  .mn-hw-tiles { grid-template-columns: 1fr 1fr; }
  .mn-hw-c3-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .mn-hw-open-course { text-align: center; }
  .mn-hw-save { padding: 13px 14px; gap: 12px; }
  .mn-hw-save-text { min-width: 0; }
  .mn-hw-save-btn { width: 100%; justify-content: center; padding: 12px 18px; }
  .mn-hw-stats { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 0; justify-content: stretch; }
  .mn-hw-stat { padding: 2px 14px 2px 0; }
  .mn-hw-stat + .mn-hw-stat { border-left: 0; }
  .mn-hw-stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .16); padding-left: 14px; }
  .mn-hw-stat-n { font-size: 15px; }
  .mn-hw-stat-l { font-size: 9.5px; }
  .mn-hw-feature-grid { gap: 8px; }
  .mn-hw-feature { padding: 13px; }
  .mn-hw-feature-title { font-size: 13.5px; }
  .mn-hw-feature-sub { font-size: 11px; }
  .mn-hw-section { padding-top: 24px; }
  .mn-hw-upload { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px; }
  .mn-hw-upload h2 { font-size: 16.5px; }
  .mn-hw-upload p { font-size: 12.5px; }
}
