/* Shared one-column layout. Race tables keep their column structure and charts keep their distance axis. */
@media screen and (max-width: 700px) {
  body, main, .end, .segment-drawer, dialog { text-align: center; }
  .topbar, .stages, .race-heading, .racebar, .category-picker, .flow-title,
  .row, .segment-picks, .action-row, .inline-units, .tabline, .avatar-pick,
  .chart-key, .race-facts, .surface-legend, .byline, .step-buttons,
  .challenge-page .result-line, .checkbox, .fold > summary {
    justify-content: center;
  }
  .topbar { gap: clamp(.5rem, 3vw, 1.15rem); }
  .feature-heading, .flow-hero { grid-template-columns: minmax(0, 1fr); }
  .feature-heading .hero-copy, .flow-hero .hero-copy { padding: 1.35rem .5rem .8rem; }
  .ridge { min-height: 4rem; background-position: center 45%; mask-image: linear-gradient(transparent, black 55%); }
  .race-heading, .racebar, .flow-title, .course-heading, [data-course-widget] .row,
  .station-row .station-head, .byline, .reading-guide > div, .station-setting {
    flex-direction: column;
    align-items: center;
  }
  .race-heading .category-picker, .race-facts > a, .accuracy-chevron,
  .byline div:last-child, .ci-rules .ci-steps { margin-inline: 0; }
  .course-heading, .reading-guide > div, .byline, .station-row .station-head { gap: .5rem; }
  .byline, .challenge-page .compact, .segment-info, .comm-copy,
  .flow-title .distance-label, .pacing-hook a, .field-label, .goal-fields legend,
  .goal-choice legend, .chart-key .chart-hint, .segment-drawer .eyebrow {
    margin-inline: auto;
  }
  .plan-grid > .challenge-side { width: 100%; }
  .comm-links, .pacing-direct a { justify-self: center; align-self: center; }
  .pacing-hook, .accuracy-notice > summary { align-items: center; justify-content: center; }
  .reading-guide > div { justify-content: center; }
  .disclosure > summary small { float: none; }
  .goal-choice label { margin: 0 .4rem; justify-content: center; }
  .station-setting { gap: .35rem; }
  .budget-list > div { flex-direction: column; align-items: center; gap: .1rem; }
  .field input, .field textarea, .field select, .distance-select, .inline-units input,
  .station-setting input, .section-tab, .schedule :is(td, th, caption),
  .disclosure :is(td, th), .ci-sizeguide :is(th, td, caption), .split-factors caption {
    text-align: center;
  }
  .field select, .distance-select { text-align-last: center; }
  .mobile-control input { padding-inline: 3.4rem; }
  :is(.disclosure-body, .segment-drawer, #about-data) ul { list-style-position: inside; padding-inline-start: 0; }
  .ci-rules .ci-toolbar, .ci-rules .ci-next { flex-direction: column; align-items: center; justify-content: center; }
  .ci-rules .ci-tear, .ci-distance-picker, .ci-rules legend { justify-content: center; margin-inline: auto; }
  .ci-rules .ci-lead p:last-child { margin-inline: auto; }
  .ci-rules .ci-steps { list-style-position: inside; padding: 0; }
  .ci-rules .ci-steps li { padding: 0; }
  .ci-rules .ci-steps li > strong { display: inline; }
  .ci-rules .ci-example :is(caption, th, td),
  .ci-rules .ci-example :is(th, td):last-child { text-align: center; }
  .ci-rules .ci-example caption b { float: none; display: block; }
}
