/* Readable event guide. Styles are scoped to the roadmap page. */
html:has(.page-roadmap) { scroll-behavior: auto; scroll-padding-top: 24px; }
body.page-roadmap {
  --guide-text: #20251f;
  --guide-muted: #4c5548;
  --guide-line: #d2d8cc;
  --guide-soft: #f1f4ed;
  font: 400 18px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--guide-text);
  overflow-x: visible;
}
.page-roadmap *, .page-roadmap *::before, .page-roadmap *::after {
  animation: none !important;
  transition: none !important;
}
.page-roadmap [hidden] { display: none !important; }
.page-roadmap h1, .page-roadmap h2, .page-roadmap h3,
.page-roadmap p, .page-roadmap ul, .page-roadmap ol { margin: 0; }
.page-roadmap h1, .page-roadmap h2, .page-roadmap h3 {
  font-family: inherit;
  text-transform: none;
  letter-spacing: -.025em;
  color: #111810;
}
.page-roadmap h1 { font-size: clamp(34px, 3.7vw, 46px); font-weight: 700; line-height: 1.2; }
.page-roadmap h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 650; line-height: 1.25; }
.page-roadmap h3 { font-size: 26px; font-weight: 650; line-height: 1.3; }
.page-roadmap a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.page-roadmap button, .page-roadmap input,
.page-roadmap select, .page-roadmap textarea { font: inherit; }
.page-roadmap button { cursor: pointer; }
.page-roadmap :is(button, a):is(:hover, :focus-visible) { transform: none !important; }
.page-roadmap :focus-visible { outline: 3px solid #b51e2e; outline-offset: 4px; }
.page-roadmap fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.page-roadmap .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-roadmap .masthead.site-header {
  position: relative;
  top: auto;
  height: auto;
  min-height: 80px;
  margin-top: 8px;
  margin-bottom: 0;
  z-index: 2;
}
.page-roadmap .masthead.site-header::before,
.page-roadmap .masthead.site-header::after { display: none; }
.page-roadmap .site-header .hex,
.page-roadmap .site-header .wordmark-text,
.page-roadmap .site-header .contact-nav .arrow { transform: none !important; }
.page-roadmap .site-header .primary-nav { box-shadow: none; backdrop-filter: none; }
.page-roadmap .site-header .primary-nav a { font-size: 14px; padding-inline: 12px; }
.page-roadmap .site-header :is(.site-pages-toggle, .contact-nav) { font-size: 14px; }
.page-roadmap .site-pages-panel { font-size: 16px; }
.page-roadmap .site-pages-group > a { font-size: 16px; }
.page-roadmap .site-pages-group > p { font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; }
.page-roadmap .site-header .primary-nav a::after { display: none; }
.guide-main { width: calc(100% - 64px); max-width: 1080px; margin: 0 auto; }
.page-roadmap .guide-intro { padding: 28px 0 24px; max-width: none; }
.intro-description { margin-top: 14px !important; max-width: 68ch; font-size: 19px; line-height: 1.65; color: var(--guide-muted); }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 22px; }
.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 21px;
  border: 1px solid #20251f;
  border-radius: 8px;
  background: #20251f;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  box-shadow: none;
}
.guide-button.secondary { background: #fff; border-color: #7b8574; color: var(--guide-text); }
.guide-button:not(:disabled):hover { background: #384330; color: white; border-color: #384330; }
.guide-button:disabled { background: #ecefe8; color: #656e60; border-color: #cbd2c5; cursor: default; }
.text-link-simple { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; text-decoration: underline; }
.guide-section { padding: 36px 0 48px; scroll-margin-top: 24px; }
.section-intro { margin-bottom: 28px; max-width: 76ch; }
.section-intro > p:not(.section-label) { margin-top: 14px; color: var(--guide-muted); }
.step-index { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0 0 18px; }
.step-index a { display: flex; align-items: center; gap: 10px; font-size: 17px; min-height: 44px; text-decoration: underline; }
.road-step { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 38px; padding: 28px 0; border-top: 1px solid var(--guide-line); scroll-margin-top: 24px; }
.step-title { display: flex; align-items: start; gap: 14px; }
.step-number { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 39px; background: #e7eddf; clip-path: var(--hex); font-size: 17px; font-weight: 650; margin-top: 2px; }
.resource-name { color: var(--guide-muted); font-size: 15px; line-height: 1.5; margin-bottom: 10px !important; }
.step-title h3 { font-size: 26px; }
.step-content { min-width: 0; }
.step-description { max-width: 67ch; }
.page-roadmap .learning-points { padding-left: 23px; margin-top: 12px; }
.learning-points li + li { margin-top: 8px; }
.page-roadmap .resource-links { padding: 0; margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.resource-links a { font-size: 17px; font-weight: 600; text-decoration: underline; display: inline-block; padding-block: 4px; }
.resource-links .primary-resource { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 16px; background: #20251f; color: #fff; border: 1px solid #20251f; border-radius: 7px; text-decoration: none; font-size: 16px; }
.resource-links .primary-resource:hover { background: #384330; border-color: #384330; }
.feedback-section { position: relative; border-top: 1px solid var(--guide-line); display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 40px; }
/* Keep the old fragment target without creating a third grid item. */
.feedback-section > .anchor-target { position: absolute; top: 0; left: 0; width: 0; height: 0; }
.feedback-copy p { margin-top: 14px; color: var(--guide-muted); }
.feedback-copy .guide-button { margin-top: 24px; text-decoration: none; }
.feedback-copy .feedback-note { font-size: 15px; }
.feedback-qr { display: block; width: 100%; max-width: 360px; background: white; border: 1px solid var(--guide-line); border-radius: 12px; padding: 8px; }
.feedback-qr img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.page-roadmap .foot { margin-top: 20px; }
.page-roadmap .foot :is(a, .foot-brand, .foot-legal) { font-family: inherit; font-size: 14px; }
#presentation { width: 100vw; max-width: none; height: 100dvh; max-height: none; padding: 0; margin: 0; border: 0; background: #fafbf8; color: var(--guide-text); overscroll-behavior: contain; }
#presentation::backdrop { background: #fafbf8; }
.presentation-shell { min-height: 100%; max-width: 1280px; padding: 24px 48px; margin: 0 auto; display: flex; flex-direction: column; }
.presentation-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--guide-line); padding-bottom: 18px; }
.presentation-top > span { font-size: 17px; font-weight: 600; }
.presentation-close { font-size: 15px !important; padding: 10px 14px; border: 1px solid #8e9984; border-radius: 6px; background: white; color: var(--guide-text); min-height: 44px; }
.presentation-topic-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 20px; font-size: 16px; }

.topic-menu { flex: 1; min-width: 0; max-width: 740px; border: 1px solid #c9d0c2; border-radius: 14px; background: #fff; overflow: hidden; }
.topic-menu > summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 12px 18px; cursor: pointer; }
.topic-menu > summary::-webkit-details-marker { display: none; }
.topic-menu > summary > svg { margin-left: auto; flex-shrink: 0; }
.topic-menu[open] > summary > svg { transform: rotate(180deg); }
.topic-index { display: grid; place-items: center; min-width: 42px; height: 46px; clip-path: var(--hex); background: #e7eddf; font-size: 17px; font-weight: 650; }
.topic-current { display: grid; gap: 2px; min-width: 0; }
.topic-label { font-size: 12px; color: var(--guide-muted); }
.topic-current strong { font-size: 19px; font-weight: 650; }
#presentation-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-top: 1px solid var(--guide-line); padding: 10px; }
.topic-option { display: flex; gap: 12px; padding: 12px; border: 1px solid transparent; border-radius: 8px; text-align: left; background: white; color: var(--guide-text); min-height: 76px; }
.topic-option-number { font-size: 14px; color: var(--guide-muted); padding-top: 2px; }
.topic-option strong, .topic-option small { display: block; }
.topic-option strong { font-size: 16px; font-weight: 650; }
.topic-option small { font-size: 13px; line-height: 1.45; margin-top: 3px; color: var(--guide-muted); }
.topic-option[aria-current], .topic-option:hover { background: #f1f4ed; border-color: #d2d8cc; }

#presentation-count { margin-left: auto; color: var(--guide-muted); }
.presentation-content { flex: 1; padding: 30px 0; }
.page-roadmap #presentation-title { font: 650 clamp(32px, 4vw, 48px)/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.025em; max-width: 34ch; margin-bottom: 22px; }
#presentation-description { font-size: clamp(20px, 2vw, 25px); line-height: 1.6; max-width: 75ch; }
.page-roadmap #presentation-points { margin-top: 18px; padding-left: 28px; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.6; max-width: 78ch; }
#presentation-points li + li { margin-top: 8px; }
.presentation-resources { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; }
.presentation-resources a { font-size: 17px; text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; }
.presentation-resources .guide-button { font-size: 18px; text-decoration: none; }
.presentation-copy { min-width: 0; }
.presentation-content { display: flex; flex-direction: column; justify-content: center; }
.presentation-resources { margin-top: 28px; }
.qr-slide .presentation-content { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; align-content: center; gap: 48px; }
.presentation-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--guide-line); padding-top: 20px; margin-top: auto; }
.presentation-controls p { color: var(--guide-muted); font-size: 14px; max-width: 40ch; }
.presentation-controls > div { display: flex; gap: 12px; }
body.presentation-open { overflow: hidden; }
@media(max-width: 1100px) {
  .page-roadmap .masthead.site-header { grid-template-columns: 1fr auto; gap: 10px 20px; padding-block: 12px; }
  .page-roadmap .primary-nav { grid-row: 2; grid-column: 1/-1; justify-content: space-between; width: 100%; }
  .page-roadmap .primary-nav a { flex: 1; }
  .road-step { grid-template-columns: 1fr 1.8fr; gap: 26px; }
  .step-title { gap: 10px; }
  .step-title h3 { font-size: 24px; }
}
@media(max-width: 760px) {
  .qr-slide .presentation-content { grid-template-columns: 1fr; gap: 28px; }
  .feedback-section { grid-template-columns: 1fr; gap: 24px; }
  .feedback-qr { max-width: 300px; }
  .guide-main { width: calc(100% - 40px); }
  .page-roadmap .guide-intro { padding-top: 24px; }
  .intro-description { font-size: 19px; }
  .road-step { grid-template-columns: 1fr; gap: 16px; padding-block: 25px; }
  .step-title h3 { font-size: 26px; }
  .step-title { gap: 14px; }
  .resource-name { margin-bottom: 5px !important; }
  .step-index { gap: 10px 24px; }
  .presentation-shell { padding: 20px 24px; }
  .presentation-top { gap: 16px; }
  .presentation-top > span { font-size: 16px; }
  .presentation-content { padding-block: 24px; }
  .presentation-controls { align-items: start; flex-direction: column; gap: 16px; }
  .presentation-controls p { max-width: none; }
  .presentation-controls > div { width: 100%; }
  .presentation-controls .guide-button { flex: 1; }
}
@media(max-width: 480px) {
  body.page-roadmap { font-size: 17px; }
  .page-roadmap .masthead.wrap { width: calc(100% - 32px); }
  .page-roadmap .site-header .primary-nav { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 12px; gap: 0; }
  .page-roadmap .site-header .primary-nav a { min-height: 44px; font-size: 14px; padding: 9px 8px; }
  .page-roadmap .site-header .wordmark { font-size: 12px; gap: 5px; }
  .page-roadmap .site-header .wordmark > .hex { width: 19px; height: 23px; }
  .page-roadmap .site-header :is(.site-pages-toggle, .contact-nav) { font-size: 13px; padding: 9px 11px; }
  .page-roadmap .site-header-actions { gap: 6px; }
  .page-roadmap .site-header .contact-nav .arrow { display: none; }
  .guide-main { width: calc(100% - 36px); }
  .page-roadmap .guide-intro { padding-top: 24px; padding-bottom: 24px; }
  .page-roadmap h1 { font-size: 35px; }
  .intro-description { font-size: 18px; margin-top: 20px !important; }
  .intro-actions { gap: 12px 22px; margin-top: 24px; }
  .guide-section { padding-top: 28px; padding-bottom: 32px; }
  .section-intro { margin-bottom: 20px; }
  .step-index { column-gap: 20px; }
  .step-index a { font-size: 16px; gap: 7px; }
  .step-number { width: 30px; height: 35px; }
  .step-title h3 { font-size: 24px; }
  .resource-name { font-size: 14px; }
  .page-roadmap .learning-points { padding-left: 22px; }
  .resource-links a { font-size: 17px; }
  .presentation-shell { padding: 16px; }
  .presentation-top { align-items: start; }
  .presentation-top > span { max-width: 135px; line-height: 1.5; }
  .presentation-close { font-size: 14px !important; padding: 8px 10px; max-width: 150px; }
  .presentation-topic-picker { gap: 8px; }
  .topic-menu > summary { gap: 10px; padding: 10px 12px; }
  .topic-current strong { font-size: 16px; }
  .topic-index { min-width: 32px; height: 38px; font-size: 14px; }
  #presentation-topics { grid-template-columns: 1fr; padding: 6px; }
  .topic-option { min-height: 66px; }
  #presentation-count { font-size: 14px; }
  .page-roadmap #presentation-title { font-size: 31px; }
  #presentation-description { font-size: 19px; }
  .page-roadmap #presentation-points { font-size: 18px; padding-left: 23px; }
  .presentation-resources { gap: 6px 18px; }
  .presentation-resources a { font-size: 16px; }
  .presentation-controls .guide-button { padding: 10px 14px; }
}
@media print {
  .page-roadmap .masthead, .page-roadmap .foot, .intro-actions, #presentation { display: none !important; }
  .guide-main { width: 100%; max-width: none; }
  .road-step { break-inside: avoid; }
}
