.study-home { display: grid; gap: 20px; }
.home-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-heading h1 {
  font-family: var(--display-serif);
  font-size: clamp(34px, 5vw, 57px);
  font-weight: 700;
  line-height: 1.06;
  margin: 0;
}
.home-heading .button { flex-shrink: 0; }
.home-heading::after {
  content: ""; position: relative; flex: 1; order: 1; height: 1px;
  background: linear-gradient(90deg,var(--study-ornament),transparent);
  opacity: .47;
}
.home-heading .home-map-link { order: 2; }
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(125px, .48fr);
  align-items: center;
  min-height: 215px;
  gap: 20px;
  border-radius: 15px;
  padding: clamp(23px, 4vw, 45px);
  border: 1px solid #917749;
  background: radial-gradient(ellipse at 85% 17%, #223e2e, #0c2015 56%, #09150e);
  color: #fcf0d7;
}
.home-hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: var(--orbit-engraving) right -125px center / 425px auto no-repeat;
  opacity: .68;
}
.home-hero .eyebrow { color: #e6c991; }
.home-hero h2 {
  margin: 7px 0 14px;
  font-family: var(--display-serif);
  font-size: clamp(28px, 4vw, 45px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.home-hero p { color: #dcdfd0; margin: -5px 0 14px; }
.learner-app .home-hero .home-continue { background: var(--study-cta); border-color: var(--study-cta); color: #203725; }
.learner-app .home-hero .home-continue:hover { background: var(--study-cta-hover); }
.home-orbit {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 183px);
  aspect-ratio: 1;
  color: #e7d7aa;
}
.home-orbit-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; pointer-events: none; }
.home-orbit-inner { stroke: #b9975755; stroke-dasharray: 1 4; }
.home-orbit-arc {
  transform-origin: center;
  transform: rotate(var(--orbit-angle));
  stroke: #bc9c5e87;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-dasharray: 22 78;
}
.home-orbit-arc.filled { stroke: #eace8b; stroke-width: 2.8; }
.home-orbit-count { position: relative; text-align: center; }
.home-orbit-count strong { display: block; font-size: 27px; letter-spacing: -.04em; line-height: 1.12; color: #f7ead0; }
.home-orbit-count strong span { font-size: 14px; color: #d6c7a1; }
.home-orbit-count small { display: block; max-width: 82px; margin: 6px auto 0; color: #dcd8c5; font-size: 10px; line-height: 1.2; }
.home-orbit-step {
  position: absolute;
  z-index: 1;
  left: var(--point-x,50%);
  top: var(--point-y,50%);
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #927a4e;
  border-radius: 50%;
  background: #1b3525;
  color: #f5e9ca;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.home-orbit-step[data-orbit-position="0"] { --point-y: 11%; }
.home-orbit-step[data-orbit-position="1"] { --point-x: 89%; }
.home-orbit-step[data-orbit-position="2"] { --point-y: 89%; }
.home-orbit-step[data-orbit-position="3"] { --point-x: 11%; }
.home-orbit-step.pending { border-style: dashed; color: #c7d7bf; }
.home-orbit-step.done { border-color: #d1b86e; color: #f9e1a0; }
.home-orbit-step[aria-current="step"] { border-color: #f3d792; background: #ead299; color: #193627; box-shadow: 0 0 0 3px #e7bd6347; }
.home-orbit-step:is(:hover,:focus-visible) { border-color: #f7dfa6; }
.home-orbit-step .icon { width: 17px; height: 17px; }
.home-board { display: grid; align-items: start; gap: 16px; }
.home-board:has(.home-study-cards > section) { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.home-study-cards { display: grid; align-content: start; gap: 16px; }
.home-study-cards:empty { display: none; }
.home-card { padding: 16px 18px 12px; }
.home-card h2 { font-size: clamp(17px, 2vw, 22px); margin: 0 0 3px; }
.learner-app .home-route {
  border-color: color-mix(in srgb,var(--study-ornament) 53%,var(--line));
  border-radius: 13px;
  box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px var(--line);
}
.home-route h2 { font: 700 clamp(23px, 3vw, 33px)/1.03 var(--display-serif); }
.home-card .section-top { margin-bottom: 6px; gap: 8px; }
.home-card ol { list-style: none; margin: 0; padding: 0; }
.home-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  min-height: 49px;
  border-block-start: 1px solid var(--line);
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: 13px;
}
.home-item:hover { color: var(--green); background: var(--tint); }
.home-item small { display: block; margin-top: 3px; color: var(--secondary); font-size: 11px; }
.home-item > .icon { color: var(--green); width: 16px; }
.home-step { grid-template-columns: 36px minmax(0,1fr) auto; }
.home-step-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--study-symbol);
  color: var(--green);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.home-step-number.complete { background: #d8dfb0; color: #1e432d; }
.home-upcoming { display: flex; gap: 8px; align-items: flex-start; margin: 9px 0 4px; color: var(--green); }
.home-upcoming .icon { flex: none; width: 16px; height: 16px; }
.home-upcoming strong { font-size: 12px; }
.home-upcoming p { color: var(--secondary); margin: 3px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.map-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  align-items: center;
  gap: 7px 13px;
  margin: 14px 0 17px;
}
.learner-app .map-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--green);
  border-radius: 10px;
}
.learner-app .map-search input {
  min-width: 0;
  min-height: 43px;
  width: 100%;
  margin: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.map-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.map-filters button {
  min-height: 39px;
  border-radius: 9px;
  padding: 6px 9px;
  color: var(--green);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  font-size: 12px;
}
.map-filters button:hover, .map-filters button[aria-pressed=true] { border-color: var(--green); background: var(--tint); }
.map-toolbar > .hint { margin: 0; color: var(--secondary); font-size: 11px; }
.map-empty { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.locked-previous { margin: 8px 0 16px; font-size: 13px; color: var(--secondary); }
.locked-previous :is(a,strong) { display: block; margin-top: 4px; color: var(--green); }
.locked-previous a { text-decoration: underline; }
.entry-facet-copy .eyebrow { color: #bfdc9b; }
.entry-facet-copy p { margin: 9px 0 12px; color: #edf5e8; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.62; }
.entry-facet-copy a { color: #d4efab; text-decoration: underline; font-weight: 700; font-size: 13px; }
@media (max-width: 905px) {
  .home-board:has(.home-study-cards > section) { grid-template-columns: 1fr; }
  .map-toolbar { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .study-home { gap: 13px; }
  .home-heading { align-items: baseline; flex-wrap: wrap; }
  .home-heading::after { display: none; }
  .home-hero { min-height: 180px; grid-template-columns: minmax(0,1fr); gap: 14px; padding: 19px 16px; border-radius: 19px; }
  .home-hero::before { background-position: right -112px center; background-size: 290px auto; opacity: .42; }
  .home-orbit {
    grid-template-columns: minmax(0, 1fr) repeat(4, minmax(0, 39px));
    gap: clamp(4px, 1.1vw, 8px);
    width: 100%;
    aspect-ratio: auto;
    border-top: 1px solid #82a88a65;
    padding-top: 11px;
    place-items: center stretch;
  }
  .home-orbit-ring { display:none; }
  .home-orbit-count { text-align: start; }
  .home-orbit-count strong { font-size: 18px; }
  .home-orbit-count strong span { font-size: 12px; }
  .home-orbit-count small { margin: 4px 0 0; }
  .home-orbit-step { position: relative; left: auto; top: auto; translate: none; width: 100%; height: 39px; }
  .home-card { padding: 13px; }
  .map-filters button { min-height: 37px; }
}

@media (max-width: 375px) {
  .home-heading .home-map-link { min-width: 42px; padding-inline: 10px; }
  .home-map-link span { display: none; }
}

.entry-shell.entry-with-background { position: relative; isolation: isolate; }
.entry-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.entry-with-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, #fffaf2e8 0%, #fffaf2dc 37%, #fffaf24a 72%);
  pointer-events: none;
}
.entry-content .lead, .entry-preview .preview-path small {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.entry-content h1, .entry-preview .preview-path strong { overflow-wrap: anywhere; }
.entry-illustration {
  display: block;
  width: 100%;
  height: clamp(115px,22vw,295px);
  margin-bottom: 24px;
  border-radius: 15px;
  object-fit: contain;
}
.trial-duration {
  display: flex;
  align-items: center;
  gap: 7px;
}
.trial-duration .icon { width: 15px; height: 15px; flex: none; }
.trial-lock { margin-block: 0 18px; }
.facet-actions [data-open-quiz]:empty { display: none; }
@media (max-width: 720px) {
  .entry-with-background::after {
    background: linear-gradient(170deg, #fffaf2ed 0%, #fffaf2df 42%, #fffaf24a 87%);
  }
}
