/* A quiet reading rail, with a reserved gutter so it never covers the page. */
.section-menu { position: fixed; right: 22px; top: 50%; z-index: 20; width: 172px; transform: translateY(-50%); color: var(--ink); }
.section-menu-panel { max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
.section-menu-title { margin: 0 0 16px 20px; font: 500 10px/1.5 "DM Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.section-menu ol { list-style: none; margin: 0; padding: 0; }
.section-menu li { margin: 2px 0; padding: 0; }
.section-menu a { display: flex; gap: 10px; align-items: center; min-height: 38px; padding: 8px 7px; border-radius: 6px; color: #586762; font-size: 12px; line-height: 1.4; text-decoration: none; }
.section-menu a:hover { background: #e9eee7; color: var(--deep); }
.section-menu a[aria-current="location"] { background: #e1ebe4; color: #154d43; font-weight: 700; }
.section-menu-dot { flex: 0 0 4px; height: 4px; border-radius: 50%; background: #aab7af; }
.section-menu a[aria-current="location"] .section-menu-dot { background: #247776; box-shadow: 0 0 0 3px #c6dfd7; }
.section-menu-toggle { display: none; }
.section-menu-focus-target:focus { outline: none; }
#start, #method, #result, #trait-questionnaire, #decode-report, #types { scroll-margin-top: 24px; }

@media (min-width: 1200px) {
  body.has-section-menu { padding-right: 212px; }
  .has-section-menu .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, 420px); gap: clamp(28px, 3.2vw, 62px); }
  .has-section-menu .how-it-works { gap: 42px; }
  .has-section-menu .card-content { padding-inline: 34px; }
}

@media (max-width: 1199px) {
  .section-menu { top: auto; bottom: 18px; right: 18px; width: min(292px, calc(100vw - 36px)); transform: none; border-radius: 10px; border: 1px solid #d5dfd7; background: #fffdf8; box-shadow: 0 7px 30px #153f4224; }
  .section-menu-toggle { display: flex; width: 100%; min-height: 48px; align-items: center; gap: 12px; border: 0; border-radius: 10px; background: #fffdf8; color: var(--deep); padding: 12px 15px; text-align: left; font-size: 12px; font-weight: 700; }
  .section-menu-current { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 400; font-size: 11px; color: #586762; }
  .section-menu-toggle > span:last-child { font-size: 19px; line-height: 1; }
  .section-menu[data-expanded="true"] .section-menu-toggle > span:last-child { transform: rotate(180deg); }
  .section-menu-panel { display: none; position: absolute; bottom: 55px; right: -1px; width: calc(100% + 2px); max-height: min(65dvh, 520px); padding: 17px 12px 12px; border-radius: 10px; border: 1px solid #d5dfd7; background: #fffdf8; box-shadow: 0 7px 30px #153f4224; }
  .section-menu[data-expanded="true"] .section-menu-panel { display: block; }
  .section-menu-title { margin-left: 8px; margin-bottom: 9px; }
  .section-menu a { min-height: 42px; padding-inline: 10px; font-size: 13px; }
  .has-section-menu footer { padding-bottom: 72px; }
}
