/* Open article layouts share the site's page edges and native watch artwork. */
.guide-page { min-height: 100svh; display: flex; flex-direction: column; }
.guide-main { width: min(var(--page-width), calc(100% - var(--page-gutter) * 2)); margin: 0 auto; padding: 40px 0 80px; flex: 1; }
.guide-main h1 { font-size: 48px; line-height: 56px; font-weight: 700; letter-spacing: -.04em; }
.guide-main h2 { font-size: 30px; line-height: 36px; letter-spacing: -.02em; }
.guide-main h3 { font-size: 20px; line-height: 28px; letter-spacing: -.02em; }
.guide-main p { font-size: 16px; line-height: 24px; color: var(--muted); }
.guide-main a:not(.button) { text-underline-offset: .25em; }
.guide-main a:hover { text-decoration-color: var(--guide-color); }
.guide-article-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 16px 40px; padding-bottom: 32px; }
.guide-article-header nav { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 14px; line-height: 24px; }
.guide-article-header nav a { display: inline-flex; align-items: center; min-height: 36px; }
.story-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 32px 80px; margin: 0; padding: 48px 0; border-top: 1px solid #ffffff26; }
.story-lead { row-gap: 16px; padding-top: 32px; }
.story-lead-visual { grid-column: 1; grid-row: 1 / span 2; }
.story-lead-visual img { display: block; width: min(100%,416px); height: auto; margin: auto; }
.story-lead-sequence { grid-column: 2; grid-row: 1; align-self: end; }
.story-lead-sequence h2 { margin-bottom: 16px; }
.story-lead figcaption { grid-column: 2; grid-row: 2; align-self: start; }
.story-panel figcaption { min-width: 0; }
.story-panel figcaption h2 { margin-bottom: 16px; }
.story-panel figcaption p { max-width: 36ch; font-size: 18px; line-height: 28px; }
.story-lead figcaption { max-width: 36ch; font-size: 18px; line-height: 28px; color: var(--muted); }
.story-panel svg { display: block; width: 100%; height: auto; color: var(--guide-color); overflow: visible; }
.story-lead-sequence svg { max-width: 440px; }
.story-panel svg text { font-family: Manrope,sans-serif; fill: #ffffff; font-size: 16px; }
.story-panel svg .story-small { font-size: 15px; }
.story-panel svg .story-muted { fill: #ffffffa3; }
.story-panel svg .story-value { fill: var(--guide-color); font-weight: 600; }
.story-panel svg .story-rule { fill: none; stroke: #ffffff55; stroke-width: 1; }
.story-panel svg .story-shade { fill: #ffffff08; }
.story-chart-wrap { width: 100%; max-width: 480px; }
.story-chart-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.story-chart-fill { fill: currentColor; fill-opacity: .08; stroke: none; }
.story-chart-dot { fill: currentColor; }
.story-duration > svg { grid-column: 2; grid-row: 1; max-width: 480px; }
.story-duration > figcaption { grid-column: 1; grid-row: 1; }
.story-duration-edge { fill: #ffffff40; }
.story-duration-main { fill: currentColor; }
.story-extra { fill: currentColor; fill-opacity: .16; stroke: currentColor; stroke-width: 1; }
.story-action { padding: 32px 0 48px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.story-action p { margin: 0 auto 0 0; max-width: 40ch; }
.guide-open-section { margin: 0; padding: 48px 0; border-top: 1px solid #ffffff26; }
.guide-open-section > h2 { margin-bottom: 16px; }
.guide-open-section > p { max-width: 65ch; }
.guide-button-map { display: grid; grid-template-columns: minmax(0,360px) minmax(0,360px); justify-content: center; gap: 64px; align-items: center; margin: 32px 0 48px; }
.guide-watch { width: 100%; position: relative; aspect-ratio: 1; overflow: hidden; }
.guide-watch-photo { position: absolute; width: 160%; height: auto; left: -30%; top: -34%; }
.guide-watch-screen { position: absolute; left: 22.32%; top: 20.88%; width: 57.28%; height: auto; aspect-ratio: 1; border-radius: 50%; background: #000000; }
.guide-control-point { position: absolute; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--guide-color); color: #000000; font-size: 16px; line-height: 24px; font-weight: 700; transform: translate(-50%,-50%); }
.guide-control-start { left: 88.4%; top: 29.3%; }
.guide-control-up { left: 10.5%; top: 51%; }
.guide-control-down { left: 14%; top: 70%; }
.guide-control-back { left: 88.4%; top: 69.3%; }
.guide-control-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.guide-control-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.guide-control-number { color: var(--guide-color); font-size: 16px; line-height: 24px; }
.guide-control-list strong { font-size: 16px; line-height: 24px; font-weight: 600; display: block; }
.guide-control-list li div > span { font-size: 14px; line-height: 24px; color: var(--muted); display: block; margin-top: 4px; }
.guide-walkthrough-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 48px 40px; margin-top: 32px; }
.guide-step { min-width: 0; }
.guide-screen { display: block; width: min(240px,100%); height: auto; aspect-ratio: 1; object-fit: contain; margin: 0 auto 24px; }
.guide-step figcaption { width: min(240px,100%); margin: auto; text-align: center; }
.guide-step h3 { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.guide-step h3 > span:first-child { color: var(--guide-color); }
.guide-step h3 > span:last-child { color: #ffffff; }
.guide-step p { margin: 8px auto 0; max-width: 28ch; }
.guide-main .guide-step .guide-step-controls { font-size: 14px; line-height: 24px; color: var(--guide-color); }
.guide-main .guide-settings-intro { margin-bottom: 32px; }
.guide-settings-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; }
.guide-setting-group { min-width: 0; }
.guide-setting-group h3 { margin-bottom: 16px; }
.guide-setting-group p { margin: 0 0 16px; }
.guide-profile-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); list-style: none; margin: 0 0 16px; padding: 0; gap: 8px 16px; font-size: 14px; line-height: 24px; color: #ffffffcc; }
.guide-profile-fields span { display: block; color: var(--muted); }
.guide-setting-group dl { margin: 0; }
.guide-setting-group dl > div { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 16px; margin-bottom: 16px; }
.guide-setting-group dt { color: var(--muted); font-size: 14px; line-height: 24px; }
.guide-setting-group dd { margin: 0; color: #ffffffcc; font-size: 14px; line-height: 24px; }
.guide-source-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 40px; list-style: none; margin: 24px 0 0; padding: 0; }
.guide-source-index li { min-width: 0; }
.guide-source-index a { display: inline-flex; align-items: center; min-height: 36px; font-size: 18px; line-height: 28px; font-weight: 600; text-decoration: underline; }
.guide-source-index p { max-width: 44ch; margin: 4px 0 0; }
.guide-library { border-top: 1px solid #ffffff26; padding-top: 32px; }
.guide-library h2 { font-size: 20px; line-height: 28px; margin-bottom: 16px; }
.guide-library div { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.guide-library a { display: inline-flex; align-items: center; min-height: 36px; font-size: 16px; line-height: 24px; text-decoration: underline; }
@media (min-width:761px) and (max-width:1000px) {
  .story-panel { column-gap: 40px; }
  .guide-settings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
  .guide-setting-group:last-child { grid-column: 1 / -1; }
  .guide-button-map { gap: 32px; }
  .guide-walkthrough-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; }
}
@media (max-width:760px) {
  .guide-main { padding: 24px 0 56px; }
  .guide-main h1 { font-size: 36px; line-height: 44px; }
  .guide-main h2 { font-size: 24px; line-height: 32px; }
  .guide-article-header { justify-content: center; text-align: center; gap: 12px; padding-bottom: 24px; }
  .guide-article-header h1 { width: 100%; }
  .guide-article-header nav { justify-content: center; gap: 8px 24px; }
  .story-panel { grid-template-columns: minmax(0,1fr); gap: 24px; padding: 32px 0; }
  .story-lead { row-gap: 16px; }
  .story-lead-visual { grid-column: 1; grid-row: 1; }
  .story-lead-visual img { width: min(100%,280px); }
  .story-lead-sequence { grid-column: 1; grid-row: 2; text-align: center; }
  .story-lead-sequence svg { margin: auto; }
  .story-lead figcaption { grid-column: 1; grid-row: 3; margin: auto; text-align: center; }
  .story-panel figcaption p { font-size: 16px; line-height: 24px; }
  .story-targets > figcaption, .story-duration > figcaption { grid-column: 1; grid-row: 1; }
  .story-targets > .story-chart-wrap, .story-duration > svg { grid-column: 1; grid-row: 2; margin: auto; }
  .story-panel figcaption h2 { margin-bottom: 8px; }
  .story-action { padding: 24px 0 32px; }
  .guide-open-section { padding: 32px 0; }
  .guide-button-map { grid-template-columns: minmax(0,1fr); gap: 24px; margin: 24px 0 40px; }
  .guide-watch { max-width: 320px; margin: auto; }
  .guide-control-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; }
  .guide-control-list li { grid-template-columns: 16px minmax(0,1fr); gap: 8px; }
  .guide-control-list strong { font-size: 14px; }
  .guide-walkthrough-grid { grid-template-columns: minmax(0,1fr); gap: 40px; margin-top: 24px; }
  .guide-screen, .guide-step figcaption { width: min(280px,100%); }
  .guide-settings-grid, .guide-source-index { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .guide-source-index { gap: 24px; }
  .guide-setting-group { max-width: 480px; }
}
.training-guides { width: min(var(--page-width), calc(100% - var(--page-gutter) * 2)); margin: 0 auto; }

/* Homepage guide library. Article layouts keep their own visual story. */
#guides { padding: 64px 0; }
#guides > h2 { margin: 0 0 32px; }
#guides .guide-foundations, #guides .guide-programs { display: grid; gap: 32px; align-items: start; }
#guides .guide-foundations { grid-template-columns: repeat(3,minmax(0,1fr)); }
#guides .guide-programs { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 64px; }
#guides .guide-figure { display: block; min-width: 0; color: #ffffff; text-decoration: none; }
#guides .guide-figure figure { margin: 0; }
#guides .guide-cover { position: relative; width: 100%; aspect-ratio: 3 / 2; }
#guides .guide-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; filter: none; }
#guides .guide-cover .guide-cover-watch { inset: 4% 0; height: 92%; }
#guides .guide-cover-diagram { width: 100%; height: 100%; }
#guides .guide-figure figcaption { margin-top: 16px; text-align: center; }
#guides .guide-figure h3 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; }
#guides .guide-programs h3 { color: var(--guide-color); }
#guides .guide-figure:hover h3, #guides .guide-figure:focus-visible h3 { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width:760px) {
  #guides { padding: 48px 0; }
  #guides .guide-foundations { grid-template-columns: 1fr; gap: 32px; }
  #guides .guide-programs { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 24px; margin-top: 64px; }
  #guides .guide-figure h3 { font-size: 20px; line-height: 28px; }
  #guides .guide-figure figcaption { margin-top: 12px; }
}
