:root {
  --paper: #ffffff;
  --ink: #032143;
  --muted: #617080;
  --forest: #04472a;
  --line: #d6ded8;
  --accent: #e5e9d9;
  --gold: #b08535;
  --field: #dce5f1;
  --live: #29715b;
  --delete: #9d414e;
  --sans: "Segoe UI", "Aptos", system-ui, sans-serif;
  --serif: "Segoe UI", "Aptos", system-ui, sans-serif;
}

.hero h1, .display { font-weight: 600; letter-spacing: -.045em; }
.hero h1 em, .display em { font-style: normal; font-weight: 600; }
.chapter strong { font-weight: 550; }
.price-card h4, .ecd-features h3 { font-weight: 600; }
.section { padding-block: clamp(2rem, 4vw, 3.75rem); }
.hero-copy { padding-block: clamp(2rem, 4vw, 4rem); }
.hero-plan { padding: clamp(1rem, 2.8vw, 2.5rem); }

.ecd-wordmark { gap: .9rem; }
.masthead .ecd-wordmark .brand-logo { width: 6.5rem; height: 2.3rem; flex: 0 0 auto; }
.ecd-wordmark b { font: 600 2.25rem/.9 var(--serif); letter-spacing: -.055em; }
.ecd-wordmark span { font-size: .61rem; letter-spacing: .14em; }
.ecd-wordmark .brand-dot { font: inherit; color: #738da8; }
.hero-plan {
  background: radial-gradient(ellipse at 80% 16%, #04472a99, transparent 66%),
    repeating-linear-gradient(90deg, #ffffff0c 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, #ffffff0c 0 1px, transparent 1px 24px), #032143;
}
.hero h1 em, .display em { color: #04472a; }
.eyebrow::before { background: #b08535; }
.plan-frame { padding: 0 .7rem .7rem; background: #fff; box-shadow: 0 1.2rem 2.8rem #162d4b70; }
.plan-titlebar { font-size: .62rem; }
.plan-titlebar i { background: #b08535; }
.hero-plan figcaption span + span, .hero-preview-link { color: #e0eafa; }
.hero-preview-link { text-decoration: none; text-transform: none; letter-spacing: .015em; }
.hero-preview-link:hover { text-decoration: underline; text-underline-offset: .3em; }
.button:hover { background: #06351f; }
.button-light:hover { background: #fff; color: var(--ink); }
.button-outline:hover { background: var(--forest); }
.hero-copy { padding-block: clamp(3rem, 6vw, 6rem); }
.hero-copy p:not(.eyebrow) { max-width: 34ch; }
.hero-plan { min-height: 0; }
#hero-course { width: 100%; height: auto; aspect-ratio: 1.294; object-fit: contain; background: #fff; }
.strap { background: #032143; }
.strap .index { color: #d8b76c; }
.showcase-section { padding-inline: clamp(1.1rem, 3.5vw, 4rem); padding-bottom: 4rem; }
.showcase-section > .section-head { padding-inline: max(0px, calc(var(--gutter) - 3.5vw)); }
.showcase-grid { display: grid; grid-template-columns: minmax(11.5rem, .78fr) minmax(0, 3.1fr); align-items: start; gap: clamp(1.2rem, 2.6vw, 2.6rem); }
.demo-chapters { display: grid; gap: .9rem; }
.explore-nav-title { font-size: .95rem; font-weight: 650; letter-spacing: -.015em; }
.chapter-group { display: grid; gap: .35rem; }
.chapter-group > h4 { margin: 0 0 .3rem; font-size: .66rem; color: #617080; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.chapter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  min-height: 0;
  padding: .65rem .7rem .65rem .8rem;
  border: 0;
  border-left: 2px solid var(--line);
  text-align: left;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.chapter:hover { background: #f2f6f4; }
.chapter.is-active { border-color: #b08535; background: #edf3ed; color: var(--ink); }
.chapter-number { font-size: .65rem; font-weight: 700; letter-spacing: .14em; line-height: 1.4; }
.chapter strong { font: 600 1.02rem/1.12 var(--sans); letter-spacing: -.025em; color: var(--ink); }
.chapter > span:not(.chapter-number, .chapter-cue) { font-size: .73rem; line-height: 1.4; }
.chapter-cue { display: inline-flex; justify-content: space-between; align-items: center; gap: .6rem; width: 100%; margin-top: auto; padding-top: .2rem; font-size: .72rem; font-weight: 650; color: #04472a; }
.chapter-cue b { font-size: 1.05rem; font-weight: 400; }
.showcase-sticky { position: sticky; top: 1rem; min-width: 0; }
.guided-coach { display: flex; justify-content: space-between; align-items: center; gap: .65rem 1rem; margin-bottom: .55rem; padding: .6rem .8rem; border: 1px solid #d4b673; border-radius: 5px; background: #fff5dd; color: #23354e; }
.guided-coach > div:first-child { flex: 1; }
#demo-step { display: block; margin-bottom: .2rem; color: #6a5427; font-size: .61rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
#demo-coach { font-size: .75rem; line-height: 1.4; }
#demo-scroll-cue { display: block; margin-top: .25rem; color: #6a5427; font-size: .62rem; }
.guided-actions { display: flex; gap: .3rem; }
.guided-actions button { min-height: 2rem; padding: .3rem .65rem; border: 1px solid #adbed3; border-radius: 4px; background: #fff; color: #23354e; font: 600 .72rem var(--sans); cursor: pointer; }
.guided-actions #demo-next { background: #04472a; color: #fff; border-color: #04472a; }
.guided-actions button:disabled { opacity: .45; cursor: default; }
.chapter-number { font-size: .59rem; }
.hero h1 { font-size: clamp(2.6rem, 4.4vw, 5.2rem); line-height: 1; }
.jump-off-card { margin-top: .65rem; }
.jump-off-order { margin: 0 0 .45rem; color: #556881; font-size: .58rem; }
.distance-editor-titlebar { position: sticky; top: 0; z-index: 1; }
.distance-editor-footer { position: sticky; bottom: 0; }
.visio-shell { position: relative; overflow: hidden; border: 1px solid #9eafc4; border-radius: 7px; background: #fff; color: #23354e; font: .75rem/1.4 "Segoe UI", sans-serif; box-shadow: 0 1.5rem 3.3rem #23354e14; }
.visio-titlebar { display: flex; align-items: center; gap: .65rem; padding: .5rem .7rem; min-height: 2.4rem; background: #285b9f; color: #fff; }
.preview-brand-logo { box-sizing: content-box; flex: 0 0 auto; width: 58px; height: 16px; padding: 3px 0; }
.visio-mark { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 2px; background: #fff; color: #285b9f; font-size: .9rem; font-weight: 700; }
.demo-badge { margin-left: auto; padding: .15rem .4rem; border: 1px solid #ffffff55; border-radius: 3px; font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.visio-tabs { display: flex; align-items: stretch; gap: 1.3rem; min-height: 2rem; padding-inline: .9rem; border-bottom: 1px solid #d4dce7; background: #f8f9fb; }
.visio-tabs > * { display: inline-flex; align-items: center; position: relative; padding-top: .12rem; font-weight: 400; font-size: .7rem; white-space: nowrap; }
.visio-tabs strong { color: #285b9f; font-weight: 650; }
.visio-tabs strong::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: #285b9f; }
.visio-ribbon { display: flex; align-items: stretch; gap: .25rem; min-height: 4.35rem; padding: .35rem .55rem .45rem; border-bottom: 1px solid #becbdb; background: #fafbfc; }
.visio-ribbon button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-width: 3.65rem; padding: .25rem .4rem; background: transparent; border: 1px solid transparent; border-radius: 4px; font-size: .62rem; line-height: 1.25; color: #23354e; cursor: pointer; }
.visio-ribbon button:hover { background: #eaf0f8; border-color: #becde0; }
.visio-ribbon button[aria-pressed="true"] { background: #dce5f1; border-color: #adbed3; }
.visio-ribbon img, .visio-ribbon svg { width: 1.65rem; height: 1.65rem; object-fit: contain; }
.visio-ribbon .ribbon-reset { margin-left: auto; }
.ribbon-group { display: flex; flex-direction: column; justify-content: space-between; padding-right: .3rem; border-right: 1px solid #d7dfe9; }
.ribbon-group-tools { display: flex; align-items: stretch; gap: .1rem; flex: 1; }
.ribbon-group-label { display: block; padding-top: .15rem; color: #68788e; font-size: .5rem; text-align: center; white-space: nowrap; }
.ribbon-group:last-child { border-right: 0; padding-right: 0; }
.visio-ribbon button:disabled { opacity: .48; cursor: default; background: transparent; border-color: transparent; }
.reset-symbol { font-size: 1.7rem; line-height: 1; }
.visio-workspace { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 20rem; }
.stencil-strip { display: flex; flex-direction: column; align-items: center; padding-top: .7rem; border-right: 1px solid #c4cfdf; background: #f2f5f9; }
.stencil-strip > span { font-size: .5rem; color: #556881; }
.stencil-strip svg { width: 2rem; margin-top: .5rem; opacity: .8; }
.canvas-stencil { display: grid; justify-items: center; gap: .15rem; margin-top: 1rem; }
.canvas-stencil img { width: 2rem; height: 2.8rem; object-fit: contain; }
.canvas-stencil figcaption { color: #556881; font-size: .48rem; line-height: 1.2; }
.drawing-area { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.drawing-ruler { display: flex; justify-content: space-between; padding: .1rem .75rem; height: 1rem; background: repeating-linear-gradient(90deg, transparent 0 9px, #9eacbd 9px 10px, transparent 10px 20px), #eef1f5; color: #6d7d92; font-size: .45rem; }
.course-stage { position: relative; display: grid; align-items: center; overflow: hidden; min-width: 0; height: clamp(21rem, 31vw, 30rem); padding: 2px; background: #fff; }
.course-viewport { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; min-height: 0; background: #fff; overflow: hidden; }
.course-viewport > svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.course-viewport svg .demo-route { fill: none; stroke: #285b9f; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.course-viewport svg .demo-drag-target { cursor: grab; touch-action: none; outline: none; }
.course-viewport svg .demo-drag-target:active { cursor: grabbing; }
.course-viewport svg .demo-selection { fill: #3d8cca17; stroke: #3977b9; stroke-width: .9; stroke-dasharray: 3 2; pointer-events: none; }
.course-viewport svg .demo-selection-handle { fill: white; stroke: #3977b9; stroke-width: 1; pointer-events: none; }
.course-viewport svg .demo-drag-target:focus-visible { outline: 2px solid #2e7085; outline-offset: 3px; }
.build-preview { position: absolute; inset: .6rem; width: calc(100% - 1.2rem); height: calc(100% - 1.2rem); min-width: 0; min-height: 0; object-fit: contain; object-position: center; background: white; box-shadow: 0 2px 9px #23354e20; }
.visio-page-tabs { display: flex; align-items: stretch; overflow-x: auto; min-height: 1.7rem; border-top: 1px solid #becbdb; padding-left: .5rem; background: #edf1f6; }
.visio-page-tabs button { padding: .3rem .65rem; border: 0; border-right: 1px solid #d3dce8; background: transparent; color: #556881; font-size: .6rem; white-space: nowrap; cursor: pointer; }
.visio-page-tabs button[aria-pressed="true"] { border-bottom: 2px solid #285b9f; color: #23354e; background: #fff; font-weight: 650; }
.specs-panel { overflow-y: auto; max-height: calc(clamp(21rem, 31vw, 30rem) + 2.7rem); border-left: 1px solid #adbed3; background: #f2f5f9; }
.specs-heading { display: flex; justify-content: space-between; gap: .75rem; padding: .65rem .6rem .5rem; border-bottom: 1px solid #d3dce8; font-size: .86rem; font-weight: 600; color: #285b9f; }
.specs-heading span + span { color: #6c7b8f; font-weight: 400; }
.tool-panel { padding: .6rem; }
.specs-field { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .65rem; }
.specs-field label, .build-row-picker label { font-size: .68rem; font-weight: 600; }
.specs-field label span { display: block; color: #556881; font-size: .57rem; font-weight: 400; }
.specs-field select, .build-row-picker select { min-width: 5rem; min-height: 1.85rem; padding: .22rem .35rem; border: 1px solid #adbed3; border-radius: 4px; background: #dce5f1; color: #23354e; font: inherit; font-size: .72rem; }
.specs-field input { width: 5.25rem; min-height: 1.85rem; padding: .22rem .35rem; border: 1px solid #adbed3; border-radius: 4px; background: #dce5f1; color: #23354e; font: inherit; font-size: .72rem; }
.round-card { padding: .6rem; border: 1px solid #adbed3; border-radius: 6px; background: white; }
.round-card > header { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .25rem; margin-bottom: .45rem; }
.round-card header strong { font-size: .72rem; }
.round-card header > span { padding: .18rem .27rem; border-radius: 3px; background: #eceff3; color: #556881; font-size: .52rem; font-weight: 650; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; margin: 0 0 .5rem; }
.specs-grid > div { padding: .33rem .38rem; border: 1px solid #c5cfdd; background: #eceff3; min-width: 0; }
.specs-grid dt { font-size: .58rem; color: #556881; }
.specs-grid dd { margin: .15rem 0 0; font-size: .79rem; color: #23354e; font-weight: 600; }
.route-actions { display: flex; flex-wrap: wrap; gap: .3rem; margin: .55rem 0; }
.tool-primary, .tool-confirm, .tool-delete { min-height: 1.9rem; padding: .3rem .55rem; border: 1px solid #285b9f; border-radius: 4px; background: #285b9f; color: #fff; font: inherit; font-size: .68rem; cursor: pointer; }
.tool-primary:hover { background: #204b83; }
.tool-confirm { background: #237047; border-color: #237047; }
.tool-confirm:hover { background: #185b36; }
.tool-delete { background: #f5dfe3; color: #9d414e; border-color: #dbb2bc; }
.tool-delete:hover { background: #edcbd3; }
.live-monitor { padding: .4rem .4rem .5rem; border: 1px solid #adbed3; background: #f4f7fb; }
.live-monitor > span { color: #556881; font-size: .55rem; }
.live-monitor > div { display: flex; justify-content: space-between; align-items: center; gap: .3rem; margin-top: .25rem; color: #29715b; }
.live-monitor b { font-size: .65rem; font-weight: 600; }
.live-monitor strong { font-size: .79rem; }
.result-grid { margin-block: .45rem; }
.result-grid dd { font-size: 1.13rem; }
.result-grid small { color: #556881; font-size: .64rem; font-weight: 400; }
.panel-note { margin: .45rem 0 0; color: #556881; font-size: .61rem; line-height: 1.5; }
.panel-intro { margin-bottom: .7rem; font-size: .74rem; font-weight: 600; }
.pony-panel { background: #eff5fc; }
.pony-result { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .85rem .4rem; margin-block: .8rem; border: 1px solid #b8c7da; border-radius: 6px; background: #f7f0fb; }
.pony-result > span { font-size: .62rem; color: #556881; }
.pony-result strong { color: #6d498b; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.pony-result small { color: #556881; font-size: .66rem; }
.pony-panel > .tool-primary { width: 100%; }
.distance-adjustments { display: flex; gap: .4rem; margin-top: .6rem; }
.distance-adjustments button { flex: 1; min-height: 1.85rem; border: 1px solid #b5a4c5; border-radius: 4px; background: #f2eef8; color: #6d498b; font: inherit; font-weight: 600; cursor: pointer; }
.hunter-panel > .specs-field { margin-top: .75rem; }
.hunter-panel > .tool-confirm { width: 100%; }
.pony-reference { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 3.6rem; padding: .65rem .8rem; border: 1px solid #9282b4; border-radius: 5px; background: #f7f0fbf7; box-shadow: 0 .2rem 1rem #23354e1c; color: #192d46; }
.pony-reference > span { display: block; margin-bottom: .2rem; font-size: .5rem; letter-spacing: .12em; color: #6d498b; }
.pony-reference > b { font-size: .75rem; }
#pony-reference-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin-top: .5rem; }
#pony-reference-lines > * { padding-top: .3rem; border-top: 2px solid #738db6; font-size: .62rem; }
#pony-reference-lines strong { display: block; font-size: .7rem; }
.build-row-picker { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .8rem; }
.build-row-picker select { min-width: 5.5rem; }
.build-inspector { margin: .7rem 0; }
.build-inspector > div { border-top: 1px solid #d0d9e5; padding: .55rem .25rem; }
.build-inspector dt { color: #556881; font-size: .6rem; }
.build-inspector dd { margin: .2rem 0 0; font-size: .73rem; overflow-wrap: anywhere; }
.full-plan-link { display: inline-block; margin-top: .3rem; color: #285b9f; font-size: .66rem; text-underline-offset: .2rem; }
.visio-statusbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1rem; padding: .28rem .6rem; border-top: 1px solid #c4cfde; background: #f5f7fa; color: #556881; font-size: .56rem; }
.demo-caption { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; gap: .45rem 1rem; padding-top: .8rem; color: var(--muted); font-size: .71rem; line-height: 1.45; }
.demo-caption p { max-width: 48ch; }
.demo-caption label { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.demo-caption input { margin: 0; accent-color: #285b9f; }
.preview-reset { padding: 0; border: 0; background: transparent; color: #04472a; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.distance-launcher p:not(.panel-intro) { font-size: .72rem; color: #556881; line-height: 1.5; margin-bottom: .85rem; }
.pcd-ta-panel { padding: .45rem; }
.pcd-ta-toolbar { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .4rem; }
.pcd-ta-toolbar button, .pcd-ta-advanced button { min-height: 1.6rem; padding: .2rem .4rem; border: 1px solid #adbed3; border-radius: 4px; background: #f4f7fb; color: #23354e; font: inherit; font-size: .6rem; }
.pcd-ta-general { display: grid; grid-template-columns: 1fr; gap: .35rem; margin-bottom: .55rem; }
.pcd-ta-field { min-width: 0; }
.pcd-ta-field label { display: block; margin-bottom: .15rem; font-size: .57rem; color: #556881; }
.pcd-ta-field input, .pcd-ta-field select, .pcd-ta-value { display: block; width: 100%; min-width: 0; min-height: 1.8rem; padding: .25rem .35rem; border: 1px solid #adbed3; border-radius: 3px; background: #dce5f1; color: #23354e; font: inherit; font-size: .65rem; overflow: hidden; text-overflow: ellipsis; }
.pcd-ta-field.full-width { grid-column: 1 / -1; }
.pcd-ta-value > input { padding: 0; min-height: 1.25rem; border: 0; border-radius: 0; background: transparent; }
.drawing-area { position: relative; padding-left: .6rem; }
.drawing-area::before { content: ""; position: absolute; top: 1rem; bottom: 1.7rem; left: 0; width: .6rem; border-right: 1px solid #b7c3d2; background: repeating-linear-gradient(0deg, #9eacbd 0 1px, transparent 1px 10px), #eef1f5; pointer-events: none; }
.pcd-ta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
.pcd-ta-round-header { display: flex; align-items: center; justify-content: space-between; gap: .3rem; margin-bottom: .4rem; font-size: .71rem; }
.pcd-ta-state { border-radius: 3px; padding: .15rem .3rem; background: #eceff3; color: #556881; font-size: .5rem; font-weight: 650; }
.pcd-ta-override { display: flex; align-items: center; gap: .3rem; padding-block: .3rem; color: #556881; font-size: .55rem; }
.pcd-ta-override input { width: auto; margin: 0; }
.pcd-ta-leads { display: flex; gap: .3rem; margin-top: .3rem; }
.pcd-ta-leads button { flex: 1; min-height: 1.6rem; border: 1px solid #adbed3; border-radius: 3px; background: #f4f7fb; color: #29715b; font: 600 .6rem var(--sans); }
.pcd-ta-advanced { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; color: #556881; font-size: .6rem; }
.pcd-ta-footer { padding-top: .65rem; border-top: 1px solid #d6dfeb; color: #285b9f; font-size: .65rem; font-weight: 600; }
.pcd-ta-panel .round-card { display: block; }
.preview-help, .preview-help * { cursor: help !important; }
#bend-viewport svg [role="button"]:focus-visible,
#bend-viewport svg [role="slider"]:focus-visible,
#multi-line-viewport svg [role="button"]:focus-visible {
  outline: none;
}

#distance-editor { position: absolute; z-index: 8; top: 7.9rem; left: 50%; transform: translateX(-50%); width: min(61rem, calc(100% - 1.25rem)); max-height: calc(100% - 8.5rem); overflow: auto; margin: 0; padding: 0; border: 1px solid #859cb9; border-radius: 6px; background: #f3f6fb; color: #192d46; box-shadow: 0 .7rem 2rem #0321434d; font: 13px/1.4 "Segoe UI", sans-serif; }
.distance-editor-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.6rem; padding-left: 1rem; border-bottom: 1px solid #b5c5da; background: #c6d7eb; }
.distance-editor-titlebar strong { font-size: .87rem; font-weight: 600; }
#distance-editor-close { display: grid; place-items: center; width: 2.6rem; min-height: 2.6rem; padding: 0; border: 0; background: transparent; color: #23354e; font-size: 1.35rem; cursor: pointer; }
#distance-editor-close:hover { background: #a23b45; color: white; }
#distance-editor-body { padding: 1rem; }
#distance-editor .tool-panel { padding: 0; background: transparent; }
#distance-editor .panel-intro { font-size: .87rem; }
#distance-editor .panel-note { font-size: .72rem; }
#distance-editor .pony-panel { display: block; }
#distance-editor .specs-field { justify-content: flex-start; gap: 1rem; margin-block: .65rem; }
#distance-editor .specs-field label { font-size: .78rem; }
#distance-editor input, #distance-editor select { font-family: inherit; }
.distance-editor-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .7rem 1rem; border-top: 1px solid #d6dfeb; background: #e8eff9; }
.distance-preset-actions, .distance-editor-actions { display: flex; align-items: center; gap: .15rem; }
.distance-preset-actions button { min-height: 2rem; padding: .25rem .65rem; border: 1px solid #8c98a7; border-radius: 2px; background: #f2f3f5; color: #192d46; font: inherit; }
#distance-editor-cancel { min-width: 5.5rem; min-height: 2rem; border: 1px solid #aebfd3; border-radius: 4px; background: #f7fafe; color: #192d46; font: inherit; cursor: pointer; }
#distance-editor-cancel:hover { background: #dce5f1; }
.pony-distance-matrix { overflow-x: auto; width: 100%; margin-block: .75rem 1rem; border: 1px solid #b8c7da; border-radius: 4px; background: white; }
.pony-distance-matrix table { width: 100%; min-width: 48rem; border-collapse: collapse; font-size: .7rem; font-variant-numeric: tabular-nums; }
.pony-distance-matrix th { padding: .4rem .25rem; border: 1px solid #d6dfeb; background: #e8eff9; font-weight: 600; text-align: center; }
.pony-distance-matrix td { border: 1px solid #d6dfeb; text-align: center; background: #f7fafe; }
.pony-distance-matrix button { width: 100%; min-height: 2rem; padding: .25rem; border: 1px solid transparent; background: transparent; color: #23354e; font: inherit; cursor: pointer; white-space: nowrap; }
.pony-distance-matrix button:hover { background: #dce9f8; }
.pony-distance-matrix button[aria-pressed="true"] { border-color: #628ec2; background: #a5c6ed; font-weight: 650; }
.pony-distance-matrix tr.is-selected td, .pony-distance-matrix tr.selected-row td { background: #edf3fc; }
.pony-adjustments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-block: 1rem; }
.pony-adjustment-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .7rem; border: 1px solid #b8c7da; border-radius: 5px; background: #eff5fc; }
.pony-adjustment-row strong { width: 100%; font-size: .8rem; }
.pony-adjustment-row label { font-size: .7rem; }
.pony-adjustment-row input { min-width: 0; width: 3.2rem; min-height: 1.8rem; border: 1px solid #aebfd3; border-radius: 3px; padding: .15rem .3rem; background: white; color: #192d46; }
.pony-adjustment-row button, .distance-adjust-button { min-height: 1.85rem; padding: .2rem .45rem; border: 1px solid #b5a4c5; border-radius: 4px; background: #f2eef8; color: #6d498b; font: inherit; font-size: .73rem; cursor: pointer; }
.hunter-distance-rows { width: 100%; overflow-x: auto; margin-block: 1rem; }
.hunter-distance-rows table { width: 100%; border-collapse: collapse; background: #fff; font-size: .78rem; }
.hunter-distance-rows th { padding: .5rem; border-bottom: 1px solid #b8c7da; background: #e8eff9; text-align: left; }
.hunter-distance-rows td { padding: .5rem; border-bottom: 1px solid #d6dfeb; white-space: nowrap; }
.hunter-distance-rows input { width: 3.5rem; min-height: 1.9rem; margin-right: .3rem; padding: .2rem .3rem; border: 1px solid #adbed3; border-radius: 3px; background: #fff; color: #192d46; }
#distance-editor.is-hunter { width: min(50rem, calc(100% - 1.25rem)); }
#distance-editor .tool-primary, #distance-editor .tool-confirm { min-height: 2.2rem; min-width: 5.5rem; font-size: .8rem; }

.build-story { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.build-story-copy > p:not(.eyebrow) { max-width: 37ch; margin: 1.3rem 0 1.5rem; color: var(--muted); }
.build-story-image { padding: 1rem; border: 1px solid #d6ded8; background: #f0f2ea; }
.build-story-image img { width: 100%; height: auto; aspect-ratio: 1.294; object-fit: contain; background: white; }
.footer { background: #032143; }
.footer-main { gap: 1.5rem; }
.footer .display { font-size: clamp(2rem, 3.25vw, 3.5rem); }
.ecd-footer { color: white; font: 600 3.5rem/1 var(--serif); letter-spacing: -.06em; text-decoration: none; }
.ecd-footer span { color: #afc6e1; }

@media (min-width: 1660px) {
  .showcase-grid { grid-template-columns: minmax(14rem, .8fr) minmax(0, 3fr); }
  .visio-shell { font-size: .86rem; }
  .specs-panel { padding-inline: .25rem; }
  .specs-grid dt { font-size: .65rem; }
  .specs-grid dd { font-size: .9rem; }
  .panel-note { font-size: .68rem; }
}
@media (min-width: 851px) {
  .showcase-grid { min-height: 0; }
  .demo-chapters { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
}
@media (max-width: 1100px) {
  .showcase-grid { grid-template-columns: minmax(11rem, .8fr) minmax(0, 2.7fr); gap: 1rem; }
  .visio-workspace { grid-template-columns: minmax(0, 1fr) 17rem; }
  .stencil-strip { display: none; }
  .visio-tabs { gap: 1.1rem; }
  .chapter { padding-left: .8rem; }
  .visio-ribbon { gap: .05rem; padding-inline: .3rem; }
  .visio-ribbon button { min-width: 3rem; font-size: .57rem; }
  .visio-ribbon .ribbon-reset { min-width: 2.5rem; }
}
@media (max-width: 850px) {
  .showcase-grid { display: block; }
  .demo-chapters { display: flex; overflow-x: auto; gap: .65rem; margin-bottom: 1rem; padding-bottom: .5rem; scroll-snap-type: x proximity; }
  .explore-nav-title, .chapter-group > h4 { display: none; }
  .chapter-group { display: contents; }
  .chapter { flex: 0 0 12.5rem; min-height: 10rem; padding: .85rem; scroll-snap-align: start; }
  .chapter strong { font-size: 1.1rem; }
  .chapter > span:not(.chapter-number, .chapter-cue) { font-size: .77rem; }
  .chapter-number { font-size: .57rem; }
  .showcase-sticky { position: static; }
  .course-stage { height: 25rem; padding: 2px; }
  .specs-panel { max-height: 27.7rem; }
  .build-story { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .guided-coach { align-items: flex-start; padding: .5rem; }
  .guided-actions button { padding-inline: .4rem; }
  .ecd-wordmark { gap: .6rem; }
  .masthead .ecd-wordmark .brand-logo { width: 4.4rem; height: 1.6rem; }
  .ecd-wordmark b { font-size: 1.9rem; }
  .ecd-wordmark > span { font-size: .48rem; }
  .hero-copy { padding-top: 2.7rem; padding-bottom: 2.7rem; }
  .hero h1 { font-size: clamp(3.35rem, 10vw, 5rem); }
  .hero-plan { padding: 1.25rem; }
  .hero-plan figcaption { flex-wrap: wrap; font-size: .56rem; }
  .visio-titlebar { gap: .45rem; padding: .4rem .5rem; }
  .demo-badge { font-size: .44rem; padding: .14rem .25rem; }
  .visio-tabs { gap: .9rem; padding-inline: .55rem; }
  .visio-tabs > * { font-size: .61rem; }
  .visio-ribbon { justify-content: space-between; }
  .visio-ribbon button { min-width: 2.6rem; padding-inline: .2rem; font-size: .52rem; }
  .visio-ribbon img, .visio-ribbon svg { width: 1.4rem; height: 1.4rem; }
  .visio-ribbon .ribbon-reset { min-width: 2.4rem; margin: 0; }
  .ribbon-group-label { font-size: .42rem; }
  .ribbon-group { padding-right: .15rem; }
  .visio-workspace { grid-template-columns: 1fr; }
  .course-stage { height: 23rem; }
  .specs-panel { border-left: 0; border-top: 1px solid #adbed3; max-height: none; }
  .tool-panel { padding: .7rem; }
  .specs-heading { font-size: .8rem; padding-block: .45rem; }
  .specs-field { margin-bottom: .5rem; }
  .specs-field select { min-width: 7rem; }
  .round-card { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .8rem; }
  .round-card > header, .round-card .panel-note { grid-column: 1 / -1; margin: 0; }
  .round-card .specs-grid, .round-card .route-actions, .round-card .result-grid { margin: 0; }
  .round-card .live-monitor { align-self: start; }
  .round-card .route-actions { align-content: start; }
  .result-grid dd { font-size: 1rem; }
  .pony-panel { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; }
  .pony-panel > .panel-intro, .pony-panel > .panel-note, .pony-panel > button { grid-column: 1 / -1; }
  .pony-panel .specs-field { flex-direction: column; align-items: flex-start; }
  .pony-panel select { width: 100%; }
  .pony-result { margin: 0; padding: .5rem; }
  .build-inspector { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .4rem; }
  .demo-caption { font-size: .65rem; }
  .pony-adjustments { grid-template-columns: 1fr; gap: .4rem; }
  .pony-adjustment-row strong { width: auto; margin-right: auto; }
  #distance-editor-body { padding: .65rem; }
  .visio-statusbar { font-size: .5rem; }
  #pony-reference-lines > * { font-size: .57rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; }
}
