.guide-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.6rem;
  max-width: 63rem;
}
.guide-masthead a { display: inline-flex; align-items: center; min-height: 48px; font-size: .9rem; }
.guide-page {
  --guide-gold: #eeddb2;
  --guide-ease: cubic-bezier(.23, 1, .32, 1);
  max-width: 63rem;
  margin-block: 1.6rem 4rem;
}
.guide-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  margin-block-end: .55rem;
  font-size: .9rem;
}
.guide-top-loading, .guide-loading .guide-top-label { display: none; }
.guide-loading .guide-top-loading { display: inline; }
.guide-top::after {
  position: absolute;
  content: "";
  inset-inline: 0;
  inset-block-end: -.4rem;
  height: 3px;
  border-radius: 1em;
  background: var(--green);
  opacity: 0;
}
.guide-loading .guide-top::after { animation: guide-wait .9s infinite alternate; }
@keyframes guide-wait {
  from { transform: scaleX(.12); opacity: .45; }
  to { transform: scaleX(1); opacity: 1; }
}
.guide-panel {
  padding: clamp(1.1rem, 4vw, 3.25rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 1.4rem;
}
@media (prefers-reduced-motion: no-preference) {
  .guide-panel-enter, .guide-result-loading:not([hidden]) { animation: guide-panel-in 230ms var(--guide-ease); }
}
@keyframes guide-panel-in {
  from { opacity: .48; transform: translateY(.55rem); }
}
.guide-panel-home {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--white);
}
.guide-heading > p { color: var(--muted); margin-block: .65rem .8rem; }
.guide-panel-home .guide-heading > p { color: var(--guide-gold); }
.guide-round-intro .guide-icon { margin-block-end: .75rem; }
.guide-intro-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.guide-result-loading:not([hidden]) {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .8rem;
  min-block-size: 13rem;
  text-align: center;
}
.guide-panel h1 { font-size: clamp(1.55rem, 4vw, 2.65rem); text-wrap: balance; }
.guide-panel h2 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
.guide-panel h1:focus { outline: none; }
.guide-courses { display: grid; gap: .75rem; margin-block-start: 1.3rem; }
.guide-courses { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guide-profile-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-block-start: 1.25rem; }
.guide-profile-options .guide-course-tile { display: flex; align-items: center; min-block-size: 3.65rem; }
.guide-track-picker-actions { margin-block-start: .8rem; }
.guide-track-picker-actions svg, .guide-plan-assessment svg { inline-size: 1.2rem; block-size: 1.2rem; }
.guide-track-picker-actions .guide-secondary, .guide-plan-assessment .guide-secondary { gap: .4rem; }
.guide-tile {
  display: grid;
  align-content: start;
  gap: .48rem;
  width: 100%;
  height: 100%;
  padding: .9rem;
  border: 1px solid var(--rule);
  border-radius: .85rem;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.guide-tile:hover, button.guide-choice:hover { background: var(--wash); border-color: var(--green); }
.guide-tile > strong { font: 700 1.05rem/1.65 Abar, Dana, sans-serif; }
.guide-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.65rem;
  height: 2.65rem;
  color: var(--green);
  background: var(--wash);
  border-radius: .8rem;
}
.guide-icon svg { display: block; place-self: center; inline-size: 1.4rem; block-size: 1.4rem; margin: 0; }
.guide-course-tile { min-height: 6.4rem; }
.guide-round { max-width: 42rem; margin-inline: auto; }
.guide-round .guide-heading { margin-block: 1rem; }
.guide-round .guide-heading:has(+ .guide-options) h1 { font-size: clamp(1.25rem, 3vw, 1.8rem); }
.guide-progress-label { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; font-weight: 700; color: var(--green); }
.guide-progress { display: block; width: 100%; height: .45rem; margin-block-start: .3rem; border: 0; border-radius: 1rem; appearance: none; background: var(--wash); overflow: hidden; }
.guide-progress::-webkit-progress-bar { background: var(--wash); }
.guide-progress::-webkit-progress-value { background: var(--green); border-radius: 1rem; }
.guide-progress::-moz-progress-bar { background: var(--green); border-radius: 1rem; }
.guide-kicker { display: block; font-size: .9rem; color: var(--green); font-weight: 700; margin-block-end: .4rem; }
.guide-options { display: grid; gap: .55rem; margin-block: 1rem; }
.guide-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 52px;
  width: 100%;
  padding: .66rem .8rem;
  text-align: start;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: .65rem;
  font: inherit;
}
button.guide-choice { cursor: pointer; }
.guide-choice:disabled:not(.is-correct):not(.is-incorrect) { cursor: wait; }
.guide-choice.is-correct { background: #e4f2e7; color: #174b2c; border-color: #39764d; }
.guide-choice.is-incorrect { background: #f9e9e7; color: #852a26; border-color: #ac5149; }
.guide-mark { flex: none; font-weight: 700; }
.guide-next { display: flex; justify-content: end; margin-block-start: 1.1rem; }
.guide-next[hidden] { display: none; }
.guide-passage { padding: .7rem; border: 1px solid var(--rule); border-radius: .65rem; }
.guide-passage summary { color: var(--green); cursor: pointer; font-weight: 700; }
.guide-primary, .guide-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: .65rem;
  border: 1px solid var(--green);
  padding: .5rem 1rem;
  font: 700 1rem/1.6 Dana, sans-serif;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.guide-primary { background: var(--green); color: white; }
.guide-primary:hover { background: var(--deep); color: white; }
.guide-secondary { background: var(--white); color: var(--deep); }
.guide-secondary:hover { background: var(--wash); }
.guide-score { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.guide-score strong { border-radius: .65rem; padding: .2rem .65rem; background: var(--wash); color: var(--deep); font-size: 1.3rem; }
.guide-sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .2rem; padding: .8rem 0; margin: 1rem 0; border-block: 1px solid var(--rule); list-style: none; }
.guide-sequence li { display: grid; justify-items: center; text-align: center; gap: .35rem; font-size: .88rem; }
.guide-sequence .guide-icon { animation: guide-arrive 200ms var(--guide-ease) backwards; }
.guide-sequence li:nth-child(2) .guide-icon { animation-delay: 70ms; }
.guide-sequence li:nth-child(3) .guide-icon { animation-delay: 140ms; }
@keyframes guide-arrive { from { transform: translateY(.38rem) scale(.95); opacity: .5; } }
.guide-reward { background: var(--paper); border: 1px solid var(--rule); border-radius: 1rem; padding: .9rem; }
.guide-choice-with-icon { justify-content: start; }
.guide-choice-with-icon .guide-icon, .guide-track-insight .guide-icon, .guide-track-name .guide-icon {
  width: 2rem;
  height: 2rem;
  border-radius: .6rem;
}
.guide-choice-with-icon .guide-icon svg, .guide-track-insight .guide-icon svg, .guide-track-name .guide-icon svg {
  inline-size: 1.1rem;
  block-size: 1.1rem;
}
.guide-track-insight {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-block: 1rem;
  padding: .65rem;
  border-inline-start: 3px solid var(--green);
  border-radius: .55rem;
  background: var(--wash);
  color: var(--deep);
  font-size: .9rem;
}
.guide-track-insight .guide-icon { background: var(--white); }
.guide-fit-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-block: 1.25rem .65rem; }
.guide-fit-table :is(th, td) { text-align: start; vertical-align: top; padding: .75rem .45rem; border-block-end: 1px solid var(--line, var(--rule)); }
.guide-fit-table thead { background: var(--wash); color: var(--green); }
.guide-fit-table thead th { font-size: .84rem; }
.guide-fit-table thead th:last-child { width: clamp(6.25rem, 28%, 11rem); }
.guide-track-name { display: flex; align-items: center; gap: .5rem; min-block-size: 44px; font-weight: 700; line-height: 1.55; }
.guide-fit-table small { display: block; margin-block-start: .2rem; color: var(--muted); font-weight: 400; line-height: 1.6; }
.guide-fit-table td strong { color: var(--green); }
.guide-fit-meter { display: block; width: 100%; height: .55rem; margin-block-start: .25rem; border: 0; border-radius: 1rem; overflow: hidden; background: var(--wash); }
.guide-fit-meter::-webkit-meter-bar { border: 0; border-radius: 1rem; background: var(--wash); }
.guide-fit-meter::-webkit-meter-optimum-value { border-radius: 1rem; background: var(--green); }
.guide-fit-meter::-moz-meter-bar { border-radius: 1rem; background: var(--green); }
.guide-track-note { color: var(--muted); font-size: .88rem; }
.guide-track-links { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-block: .4rem .85rem; }
.guide-track-links a { display: inline-flex; min-block-size: 44px; align-items: center; gap: .35rem; font-size: .9rem; }
.guide-track-links svg, .guide-track-study .guide-primary svg { inline-size: 1.15rem; block-size: 1.15rem; flex: none; }
.guide-track-study { margin-block-start: 1rem; padding: .9rem; border: 1px solid var(--rule); border-radius: .85rem; background: var(--paper); }
.guide-profile-summary, .guide-track-selection {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-block: .75rem 1.1rem;
  padding: .8rem;
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: var(--paper);
}
.guide-profile-summary p, .guide-plan-assessment p { margin-block: .25rem .5rem; color: var(--muted); }
.guide-profile-need { display: block; color: var(--muted); font-size: .88rem; }
.guide-plan-assessment { margin-block-start: 1.4rem; padding-block-start: 1rem; border-block-start: 1px solid var(--rule); }
.guide-text-action { min-block-size: 44px; padding-inline: .5rem; border: 0; background: transparent; color: var(--green); text-decoration: underline; text-underline-offset: .2em; font: inherit; cursor: pointer; }
.guide-track-study-content { display: flex; align-items: flex-start; gap: .75rem; }
.guide-track-study-content > div { min-inline-size: 0; }
.guide-track-study h2 { margin-block-end: .3rem; }
.guide-track-study .guide-primary { gap: .4rem; }
.guide-track-coefficients { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0; padding: 0; list-style: none; }
.guide-track-coefficients li { padding: .18rem .45rem; border-radius: .35rem; background: var(--wash); color: var(--deep); font-size: .77rem; }
.guide-reading-signup { display: flex; justify-content: center; margin-block: 1rem; }
.guide-reading-signup .guide-primary { gap: .5rem; }
.guide-reading-signup svg { flex: none; inline-size: 1.25rem; block-size: 1.25rem; }
.guide-reward { display: flex; align-items: start; gap: .7rem; margin-block: 1.15rem; border-color: #d2b979; background: #faf2de; }
.guide-reward .guide-icon { background: #f1dfad; }
.guide-code { display: inline-block; padding: .22rem .5rem; margin-block: .4rem .7rem; border: 1px dashed #8d7544; border-radius: .4rem; font-size: .9rem; overflow-wrap: anywhere; }
.guide-reward p { margin-block: .25rem; }
.guide-exit { display: inline-flex; align-items: center; min-height: 48px; }
.guide-back { display: flex; width: fit-content; margin-block-start: .55rem; }
.guide-invite { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; padding: .75rem .9rem; border: 1px solid var(--rule); background: var(--wash); border-radius: .9rem; margin-block: .8rem; }
.guide-invite-copy { display: flex; align-items: center; gap: .7rem; flex: 1 1 18rem; }
.guide-invite .guide-icon { background: var(--white); }
.guide-invite p { color: var(--muted); }
.guide-invite-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-block-size: 48px;
  padding: .35rem .6rem .35rem .85rem;
  border: 1px solid #b89343;
  border-radius: 2rem;
  background: #f2dfa9;
  color: var(--deep);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.guide-invite-start:is(:hover, :focus-visible) { background: #f8e8b9; color: var(--deep); }
.guide-invite-arrow {
  display: grid;
  place-items: center;
  inline-size: 1.8rem;
  block-size: 1.8rem;
  border-radius: 50%;
  background: var(--deep);
  color: var(--white);
  font-size: 1.12rem;
  line-height: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .guide-invite-start.is-highlighted { animation: guide-invite-nudge 300ms cubic-bezier(.77, 0, .175, 1) .18s; }
  .guide-invite-start.is-highlighted .guide-invite-arrow { animation: guide-invite-arrow 300ms cubic-bezier(.77, 0, .175, 1) .23s; }
}
@keyframes guide-invite-nudge { 50% { transform: translateY(-.25rem); } }
@keyframes guide-invite-arrow { 50% { transform: translateX(-.2rem); } }
.guide-dismiss { width: 48px; height: 48px; background: transparent; border: 0; color: var(--green); font: 1.6rem/1 Dana,sans-serif; cursor: pointer; }
.guide-error { color: var(--error); padding-block: .4rem; }
.guide-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 44rem) {
  .guide-page { width: calc(100% - 1.2rem); margin-block-start: .65rem; }
  .guide-profile-options { grid-template-columns: 1fr; }
  .guide-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-next > button { width: 100%; }
}
@media (min-width: 56rem) and (min-height: 40rem) {
  html:has(#study-guide):not(:has(.guide-screen-result)) { overflow: hidden; }
  body:has(#study-guide):not(:has(.guide-screen-result)) { min-block-size: 0; block-size: 100dvh; overflow: hidden; }
  body:has(#study-guide):not(:has(.guide-screen-result)) #main { display: flex; min-block-size: 0; animation-name: guide-desktop-page-in; }
  .guide-page:not(:has(.guide-screen-result)) { display: flex; flex-direction: column; margin-block: .65rem 1rem; }
  .guide-page:not(:has(.guide-screen-result)) .guide-top { flex: none; }
  .guide-page:not(:has(.guide-screen-result)) #guide-panel { min-block-size: 0; overflow: auto; }
  .guide-panel:not(.guide-screen-result) { padding: clamp(1rem, 3.2vh, 2rem) clamp(1rem, 3vw, 2.25rem); }
  .guide-panel:not(.guide-screen-result) h1 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
  .guide-courses, .guide-profile-options { margin-block-start: .7rem; gap: .5rem; }
  .guide-course-tile { display: flex; align-items: center; gap: .55rem; min-block-size: 3.4rem; padding: .5rem; }
  .guide-course-tile strong { font-size: .9rem; line-height: 1.55; }
  .guide-course-tile .guide-icon { inline-size: 2rem; block-size: 2rem; border-radius: .6rem; }
  .guide-course-tile .guide-icon svg { inline-size: 1.1rem; block-size: 1.1rem; }
  .guide-passage[open] { max-block-size: 23vh; overflow: auto; }
}
@keyframes guide-desktop-page-in {
  from { opacity: .46; }
}
@media (prefers-reduced-motion: reduce) {
  body:has(#study-guide) #main { animation: none; }
  .guide-loading .guide-top::after { animation: none; opacity: 1; }
  .guide-sequence .guide-icon { animation: none; }
}
