/* Signed-in Home inherits the visitor's Inter face and dark canvas. */
#activeView #home:not([hidden]) {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  font-family: Inter, system-ui, sans-serif;
  color: #f2f2ef;
}
#activeView #home [hidden] { display: none !important; }
#activeView #home :is(h1,h2,h3,p,figure) { margin: 0; }
#activeView #home :is(h1,h2,h3) {
  font-family: inherit; color: inherit; text-transform: none; text-wrap: pretty;
}
#activeView #home > :is(section,.hero):not([hidden]) { margin: clamp(42px,5vw,70px) 0 0; }
#activeView #home h2 { font-size: clamp(26px,2.4vw,36px); font-weight: 650; line-height: 1.16; letter-spacing: -.038em; }
#activeView #home h3 { font-size: 22px; font-weight: 590; line-height: 1.32; letter-spacing: -.025em; }
#activeView #home p { color: #b4b4ae; line-height: 1.55; }
#activeView #home a { color: inherit; text-decoration: none; }
#activeView #home a:hover { color: white; }
#activeView #home :is(a,button,summary):focus-visible { outline: 2px solid #efefec; outline-offset: 4px; }
#home .mh-feature {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
  grid-template-areas: "author art" "title art" "summary art" "action art";
  align-content: center; align-items: center;
  column-gap: clamp(22px,4vw,76px);
}
#home .mh-byline { grid-area: author; display: flex; gap: 10px; align-items: center; margin-bottom: 20px; color: #c9c9c4; font-size: 15px; }
#home .mh-byline img { border-radius: 50%; object-fit: cover; }
#activeView #home .mh-feature h1 { grid-area: title; font-size: clamp(43px,4.5vw,68px); line-height: 1.01; letter-spacing: -.055em; font-weight: 650; max-width: 14ch; }
#activeView #home .mh-summary { grid-area: summary; margin-top: 18px; max-width: 39ch; font-size: clamp(17px,1.4vw,20px); color: #d3d3cf; }
#activeView #home .mh-primary {
  grid-area: action; justify-self: start; display: inline-flex; align-items: center; gap: 18px;
  min-height: 46px; padding: 10px 19px; margin-top: 24px; color: #111; background: #f1f1ed;
  font: 650 16px/1.35 Inter,system-ui,sans-serif; border-radius: 8px;
}
#activeView #home .mh-primary:hover { color: #111; background: white; }
#home .mh-book-art {
  grid-area: art; position: relative; width: 100%; aspect-ratio: 1.12; max-height: 380px;
  overflow: hidden; container-type: inline-size; border-radius: 14px; background: #19191b;
  background-image: radial-gradient(ellipse at 65% 35%,#363638 0%,#212123 48%,#151517 90%);
}
#home .mh-book-art img { position: absolute; height: 66%; width: auto; border-radius: 2px; box-shadow: 0 8px 18px #0007; }
#home .mh-open-book {
  --pw: 42cqw; --ph: calc(var(--pw) * 1.4142);
  --ov: clamp(1px,.7cqw,4px); --ed: clamp(1px,1cqw,5px);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  perspective: 1500px; perspective-origin: 50% 20%;
}
#home .mh-book-art .mh-open-book img { position: static; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
#home .show-step-preview .mh-open-book { display:none; }
#home .mh-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#activeView #home #homeProgress { color: #b4b4ae; font-size: 15px; }
#home .mh-steps,#home .mh-library-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(20px,4vw,65px); margin-top: 21px; }
#activeView #home .mh-step p,#activeView #home .mh-news p { margin: 7px 0 10px; max-width: 40ch; font-size: 16px; }
#home .mh-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
#activeView #home .mh-step-actions :is(.btn,.mark-done,.badge,.mh-text-link),#home .mh-text-link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 2px 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none; color: #b4b4ae;
  font: 500 14px/1.5 Inter,system-ui,sans-serif; text-transform: none; letter-spacing: 0; transform: none;
}
#activeView #home .mh-step-actions .mark-done { cursor: pointer; gap: 8px; }
#home .mh-step-actions .mark-done::before { content: ''; width: 14px; height: 14px; border: 1px solid #858581; border-radius: 4px; }
#home .mh-step-actions .done::before { content: '✓'; margin-right: 7px; }
#activeView #home .mh-step-actions :is(a,button):hover { color: white; }
#home #homeInstallFilm details { max-width: 590px; margin: 14px 0 0; }
#home #homeInstallFilm summary { color: #c7c7c1; font: 500 15px/1.5 Inter,system-ui,sans-serif; cursor: pointer; padding: 8px 0; }
#home #homeInstallFilm .player-frame { overflow: hidden; border-radius: 8px; border: 0; margin-top: 8px; }
#home .mh-library-links a { display: flex; align-items: start; flex-direction: column; gap: 5px; }
#home .mh-library-links strong { font-size: 21px; font-weight: 590; letter-spacing: -.025em; }
#home .mh-library-links a > span { font-size: 16px; color: #b4b4ae; }
#home :is(h2,h3,strong) a span,#home .mh-library-links strong span { font-weight: 400; color: #aaa; white-space: nowrap; }
#home :is(#latestEmailsBlock,#workshopsPreviewBlock,#resourcesPreviewBlock) { margin-top: 24px; }
#home .mh-library-list { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
#activeView #home :is(.tile,.hero,.row,.post-row,.wk-up,.offer-strip-row,.trial-row,.trial-promo) { background: transparent; border: 0; box-shadow: none; border-radius: 0; transform: none; clip-path: none; }
#activeView #home :is(.tile,.row,.post-row,.offer-strip-row) { padding: 6px 0; }
#activeView #home .tile { display: grid; grid-template-columns: minmax(100px,24%) 1fr; gap: 18px; align-items: center; }
#activeView #home :is(.tile,.hero) :is(.poster,.hero-media,.tile-media) { border: 0; border-radius: 8px; overflow: hidden; }
#activeView #home .hero-body { padding: 16px; }
#activeView #home .mh-invite { margin: 15px 0; font-size: 18px; }
#activeView #home #homeOffersBlock .offer-strip { gap: 6px; }
#activeView #home :is(.offer-strip-row,.trial-row) :is(.offer-status,.tag,.pill,.next-chip,.offer-strip-go) { border-radius: 4px; box-shadow: none; transform: none; }
@media (max-width:700px) {
  #home .mh-feature { grid-template-columns: minmax(0,1fr) 30%; grid-template-areas: "author art" "title art" "summary summary" "action action"; gap: 0 9px; }
  #activeView #home .mh-feature h1 { font-size: clamp(34px,8.8vw,47px); max-width: 14ch; letter-spacing: -.05em; }
  #home .mh-byline { margin-bottom: 12px; font-size: 14px; gap: 8px; }
  #home .mh-byline img { width: 28px; height: 28px; }
  #home .mh-book-art { aspect-ratio: .79; border-radius: 8px; }
  #home .mh-book-art img { height: 60%; }
  #activeView #home .mh-summary { margin-top: 16px; }
  #activeView #home .mh-primary { margin-top: 16px; }
  #home .mh-steps,#home .mh-library-links { grid-template-columns: minmax(0,1fr); gap: 20px; }
  #home .mh-step-actions :is(button,a),#home #homeInstallFilm summary { min-height: 44px; }
}

#activeView #home .mh-setup .mh-news { margin-top: clamp(28px,3.8vw,48px); }
#activeView #home .hero-body .eyebrow { display: block; color: #b4b4ae; font: 500 15px/1.5 Inter,system-ui,sans-serif; margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
#activeView #home :is(.tile,.hero,.wk-up) :is(.poster,.badge,.poster-play) { background-color: #242426; border: 0; border-radius: 6px; color: #efefeb; box-shadow: none; transform: none; }
#activeView #home :is(.tile,.hero) .poster-play { border-radius: 50%; }
#activeView #home :is(.tile,.hero) .poster-mark { display: none; }
#activeView #home .poster:not(:has(img)) { background: #222224; }
#activeView #home .hero .hero-media .poster:not(:has(img)) .poster-num { color: #b4b4ae; }
#home .mh-completed { margin-top: 20px; font-size: 15px; }
#home .mh-completed summary { width: fit-content; padding: 8px 0; color: #ccc; cursor: pointer; }
#home .mh-completed ul { max-width: 34rem; margin: 4px 0 0; padding: 0; list-style: none; }
#home .mh-completed li { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
#activeView #home .mh-completed button { min-height: 40px; padding: 6px 0 6px 12px; border: 0; background: transparent; color: #d3d3cf; font: inherit; cursor: pointer; }
#home [aria-disabled="true"] { opacity: .7; cursor: progress; }
#activeView #home #homeStepMessage:not(:empty) { margin-top: 8px; font-size: 15px; }
#activeView #home #homeReadingActions a { color: #f2f2ef; font-size: 16px; font-weight: 600; }


#home .mh-path {
  grid-area: action; margin: clamp(24px, 2.4vw, 36px) 0 0; padding: 0; list-style: none;
}
#home .mh-path > li {
  position: relative; padding: 0 0 22px 46px; min-height: 30px;
}
#home .mh-path > li:last-child { padding-bottom: 0; }
#home .mh-path > li:not(:last-child)::before {
  content: ""; position: absolute; left: 14px; top: 15px; bottom: -15px;
  width: 1px; background: #555552;
}
#home .mh-marker {
  position: absolute; z-index: 1; top: 2px; left: 1px; width: 27px; height: 27px;
  box-sizing: border-box; display: grid; place-items: center; border: 1px solid #73736f;
  border-radius: 50%; background: #101010; color: #d5d5d0; font: 550 14px/1 Inter, system-ui, sans-serif;
}
#home .mh-path [aria-current="step"] .mh-marker {
  color: #111; background: #f1f1ed; border-color: #f1f1ed; outline: 1px solid #f1f1ed; outline-offset: 2px;
}
#home .mh-done .mh-marker { font-size: 16px; }
#activeView #home .mh-path-link {
  display: block; width: fit-content; padding: 1px 0; color: #e9e9e5;
  font: 580 clamp(18px, 1.45vw, 21px)/1.4 Inter, system-ui, sans-serif; letter-spacing: -.025em;
}
#activeView #home .mh-path [aria-current="step"] > .mh-path-link { font-weight: 700; }
#activeView #home .mh-outcome { margin: 2px 0 0; color: #c4c4bf; font-size: 16px; line-height: 1.45; }
#activeView #home .mh-path-aside {
  display: block; width: fit-content; padding: 5px 0; color: #c5c5c0; font: 500 15px/1.45 Inter, system-ui, sans-serif;
}
#activeView #home .mh-path a:hover { text-decoration: underline; text-underline-offset: 3px; }
#activeView #home .mh-path #homeCoursePlace { margin: 3px 0 0; color: #afafaa; font-size: 14px; }
@media(max-width:700px) {
  #home .mh-path > li { padding-left: 41px; padding-bottom: 19px; }
  #home .mh-path > li:last-child { padding-bottom: 0; }
  #activeView #home .mh-outcome { font-size: 15px; }
}

/* Keep each next-step preview in the approved book artwork space. */
#home .mh-book-art.show-step-preview img:not(.mh-step-preview) { display:none; }
#home .mh-book-art .mh-step-preview:not([hidden]) {
  inset:0; width:100%; height:100%; padding:clamp(6px,1vw,16px); box-sizing:border-box;
  object-fit:contain; border-radius:0; box-shadow:none;
}

#home #homeLatestIssue {max-width:680px;margin:18px 0 20px}
#home .mh-issue-date {display:block;color:#b4b4ae;font-size:14px;line-height:1.5;margin-bottom:6px}
#activeView #home .mh-issue-title {display:block;width:fit-content;font-size:clamp(21px,2vw,26px);line-height:1.35;font-weight:580;letter-spacing:-.025em;color:#efefeb}
#activeView #home #homeReadingActions a {display:inline-block;padding:10px 0;font-size:18px;text-decoration:underline;text-underline-offset:5px}

#home .mh-path button.mh-path-aside {border:0;background:none;text-align:left;cursor:pointer}
#home .mh-path button.mh-path-aside:hover {text-decoration:underline;text-underline-offset:3px}
#home #homeHarnessInvitation {max-width:680px;margin:32px 0}
#home #homeHarnessInvitation p {margin:12px 0 16px;font-size:17px;line-height:1.65;color:#c4c4bf}
#home .mh-issue-image {display:block;width:min(100%,520px);margin:0 0 18px}
#home .mh-issue-image img {display:block;max-height:300px;width:100%;object-fit:contain;object-position:left;border-radius:6px}

/* The directory uses the paper colour of its own diagram. */
#home .mh-directory-cover {
  display:grid;grid-template-rows:auto minmax(0,1fr);align-content:center;
  gap:clamp(6px,1.2vw,18px);padding:clamp(11px,1.8vw,26px);box-sizing:border-box;
  background:#101010;border:1px solid #303032;
}
#home .mh-directory-title:not([hidden]) {
  display:block;max-width:15ch;font:600 clamp(18px,2vw,32px)/1.12 Inter,system-ui,sans-serif;
  letter-spacing:-.035em;color:#f0efec;
}
#home .mh-directory-cover .mh-step-preview:not([hidden]) {
  position:static;align-self:center;width:100%;height:100%;min-height:0;padding:0;
}
#activeView #home .mh-news {
  width:min(100%,750px);padding:clamp(16px,2.4vw,30px);box-sizing:border-box;
  border:1px solid #303032;border-radius:9px;background:#101010;
}
#activeView #home #homeNewsTitle {
  display:flex;align-items:center;gap:11px;font-size:clamp(20px,2vw,28px);
  line-height:1.16;letter-spacing:-.035em;
}
#home #homeNewsTitle img {flex:none;width:32px;height:32px;}
#home #homeLatestIssue:has(.mh-issue-image) {
  display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);column-gap:22px;
  align-content:center;align-items:center;
}
#home #homeLatestIssue .mh-issue-image {grid-area:1/2/3/3;width:100%;margin:0;}
#home #homeLatestIssue .mh-issue-image img {max-height:170px;object-fit:contain;object-position:center;}
#home #homeLatestIssue .mh-issue-date {align-self:end;}
#home #homeLatestIssue .mh-issue-title {align-self:start;}
@media(max-width:700px) {
  #home .mh-directory-cover {padding:9px;gap:4px;}
  #home .mh-directory-title:not([hidden]) {font-size:clamp(13px,3.5vw,21px);}
  #home #homeLatestIssue:has(.mh-issue-image) {grid-template-columns:1fr;}
  #home #homeLatestIssue .mh-issue-image {grid-area:3/1;margin:12px 0 0;}
  #home #homeLatestIssue .mh-issue-image img {max-height:180px;object-position:left;}
}

/* The editorial story stands apart from the two setup tasks. */
#activeView #home > .mh-news {width:100%;max-width:100%;padding:0;border:0;border-radius:0;background:none}
#home > .mh-news #homeLatestIssue {position:relative;isolation:isolate;overflow:hidden;max-width:none;margin:24px 0 12px;padding:34px;box-sizing:border-box;border-radius:4px;background:#0b0b0c;gap:0 34px}
#home > .mh-news #homeLatestIssue:has(.mh-issue-image) {grid-template-columns:minmax(0,1fr) minmax(0,.9fr);min-height:340px}
#home > .mh-news #homeLatestIssue:has(.mh-issue-image)::before {content:"";position:absolute;inset:-20px;z-index:-2;background-image:var(--home-issue-art);background-size:cover;background-position:center;filter:blur(18px);opacity:.3;transform:scale(1.08)}
#home > .mh-news #homeLatestIssue:has(.mh-issue-image)::after {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0b0b0c77 0%,#0b0b0cbb 40%,#0b0b0c00 80%);pointer-events:none}
#home > .mh-news #homeLatestIssue .mh-issue-image {position:absolute;grid-area:auto;inset:0 0 0 auto;width:48%;height:100%;margin:0;z-index:-2;mask-image:linear-gradient(90deg,transparent,#000 27%)}
#home > .mh-news #homeLatestIssue .mh-issue-image img {height:100%;max-height:none;object-fit:cover;border-radius:0}
#home > .mh-news #homeLatestIssue .mh-issue-date {grid-column:1;align-self:end;margin-bottom:14px;color:#ccc}
#activeView #home > .mh-news .mh-issue-title {grid-column:1;font-size:clamp(30px,3.6vw,45px);line-height:1.12;letter-spacing:-.035em;font-weight:600;color:#f2f1ee}
#activeView #home .mh-issue-read {grid-column:1;display:inline-flex;justify-self:start;align-self:start;margin-top:24px;padding:8px 0;font-size:16px;font-weight:600;text-decoration:underline;text-underline-offset:5px;color:#f2f1ee}
@media(max-width:700px) {
 #home > .mh-news #homeLatestIssue {padding:0 24px 24px}
 #home > .mh-news #homeLatestIssue:has(.mh-issue-image) {grid-template-columns:minmax(0,1fr);min-height:0}
 #home > .mh-news #homeLatestIssue:has(.mh-issue-image)::before,#home > .mh-news #homeLatestIssue:has(.mh-issue-image)::after {display:none}
 #home > .mh-news #homeLatestIssue .mh-issue-image {position:relative;grid-area:1/1;inset:auto;width:calc(100% + 48px);height:auto;margin:0 -24px 24px;z-index:0;mask-image:none}
 #home > .mh-news #homeLatestIssue .mh-issue-image img {height:auto;aspect-ratio:3/2}
 #activeView #home > .mh-news .mh-issue-title {font-size:32px}
}

/* Setup controls belong to the second roadmap step, not a second checklist. */
#home .mh-path .mh-setup {margin:0;max-width:640px}
#activeView #home .mh-path #homeSetupTitle {font-size:20px;line-height:1.35;font-weight:580;letter-spacing:-.025em}
#home .mh-path .mh-section-head {gap:3px 16px}
#activeView #home .mh-path #homeProgress {font-size:13px}
#home .mh-path .mh-steps {grid-template-columns:minmax(0,1fr);gap:16px;margin-top:14px}
#activeView #home .mh-path .mh-step h3,#activeView #home .mh-path .mh-step .mh-path-link {font-size:17px;line-height:1.4;margin:0;font-weight:550}
#activeView #home .mh-path .mh-step p {font-size:14px;margin:3px 0 4px}
#home .mh-path .mh-completed {margin-top:10px}
#home .mh-path #homeInstallFilm summary {font-size:13px}
#activeView #home .mh-issue-publication {grid-column:1;align-self:end;display:block;margin-bottom:14px;font-size:14px;font-weight:400;line-height:1.5;letter-spacing:0;color:#bbb}
#activeView #home .mh-issue-publication:hover {text-decoration:underline;text-underline-offset:3px}

/* Completed setup stays attached to the roadmap as reviewable branches. */
#home .mh-path .mh-steps {gap:18px;margin-left:1px;padding-left:17px;border-left:1px solid #454548}
#home .mh-path .mh-step {position:relative}
#home .mh-path .mh-step::before {content:"";position:absolute;left:-18px;top:12px;width:12px;height:1px;background:#606064}
#home .mh-path .mh-step.is-complete::before {content:"✓";left:-26px;top:3px;width:18px;height:18px;display:grid;place-items:center;border:1px solid #4b7359;border-radius:50%;background:#101010;color:#82b391;font:12px/1 Inter,system-ui,sans-serif}
#activeView #home .mh-step-finished {display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-top:4px;color:#b4b4ae;font-size:13px;line-height:1.5}
#activeView #home .mh-step-finished button {min-height:36px;padding:3px 0;border:0;background:none;color:#b4b4ae;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
