@import url('./questions.css');
/*
 * UI-011 guided-practice proposal: Reverse Kegels as the reference page (revision 3).
 * Colour, type size and space come from canonical --gs-* roles. The hero frame uses the shared
 * white page surface; the player card is .gs-surface-light and
 * follows gutsphere_app's now-playing layout. Section order is the current page's.
 * Prefix p- marks proposal-only classes. On adoption these become the registered
 * "guided-practice page" section family (see tasks/UI-011.md).
 */
body.p-page {
  margin: 0;
  background: var(--gs-neutral-0);
  color: var(--gs-color-text);
  font: var(--gs-weight-regular) var(--gs-text-md)/var(--gs-leading-body) var(--gs-font-body);
}
/* Element resets carry element-level specificity only, so a component's own margin
   (.p-hero__cta, .p-facts…) still applies; they load after the legacy element rules they reset. */
:where(.p-page) main :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
:where(.p-page) main :where(ul, ol) { padding: 0; list-style: none; }
.p-section .journey-row > :is(h2, h3) { margin-bottom: var(--gs-space-3); }
.p-page main { overflow-wrap: break-word; }
.p-page main :where(h1, h2, h3) { font-family: var(--gs-font-heading); font-weight: var(--gs-weight-medium); }
.p-page main h3 { font-size: var(--gs-text-lg); line-height: var(--gs-leading-snug); letter-spacing: var(--gs-tracking-heading); }
.p-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.p-anchor-alias { display: block; position: relative; height: 0; scroll-margin-top: var(--gs-anchor-offset); }
.p-wrap { box-sizing: border-box; width: 100%; max-width: var(--gs-content-width); margin-inline: auto; padding-inline: var(--gs-gutter); }
html.no-js [data-js-only], html.js .p-nojs { display: none; }
.p-page [hidden] { display: none; }
.p-page :focus-visible { outline: var(--gs-focus-width) solid var(--gs-color-focus); outline-offset: var(--gs-focus-offset); }
.p-small { font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); }


.p-crumbs ol { display: flex; flex-wrap: wrap; gap: var(--gs-space-1) var(--gs-space-2); padding-block: var(--gs-space-3); font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); }
.p-crumbs li + li::before { content: '/'; margin-right: var(--gs-space-2); }
.p-crumbs a { color: var(--gs-color-text-muted); }

/* Shared text roles. */
.p-eyebrow { margin-bottom: var(--gs-space-4); font-size: var(--gs-text-xs); font-weight: var(--gs-weight-bold); letter-spacing: var(--gs-tracking-eyebrow); text-transform: uppercase; color: var(--gs-color-text-muted); }
.p-lead { font-size: var(--gs-text-lg); line-height: var(--gs-leading-snug); }
.p-text-link { color: var(--gs-color-link); font-weight: var(--gs-weight-medium); text-decoration: underline; text-underline-offset: .2em; }

/* Buttons (proposal stand-ins for the shared .gs-button variants). */
.p-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: var(--gs-space-2); min-height: var(--gs-control-height); padding: var(--gs-space-2) var(--gs-space-5); border: var(--gs-border-width) solid var(--gs-color-border-strong); border-radius: var(--gs-radius-control); background: var(--gs-color-surface); color: var(--gs-color-text); font: var(--gs-weight-medium) var(--gs-text-md)/1.2 var(--gs-font-body); text-align: center; text-decoration: none; cursor: pointer; transition: background var(--gs-duration-fast); }
.p-btn:hover { background: var(--gs-color-secondary-hover); }
.p-btn--action { border-color: var(--gs-color-action); background: var(--gs-color-action); color: var(--gs-color-on-action); }
.p-btn--action:hover { border-color: var(--gs-color-action-hover); background: var(--gs-color-action-hover); }
.p-btn--light { border-color: var(--gs-color-action); background: var(--gs-color-action); color: var(--gs-color-on-action); }
.p-btn--wide { width: 100%; }

.p-btn--ghost { border-color: var(--gs-color-border-strong); background: transparent; color: var(--gs-color-text); }
.p-btn--ghost:hover { background: var(--gs-color-secondary-hover); }
.p-text-link--btn { padding: 0; border: 0; background: none; font: inherit; font-weight: var(--gs-weight-medium); cursor: pointer; min-height: var(--gs-control-height); }

/* 1 · Hero frame: the Home hero's rounded dark frame, inset from the page edge, with the player in it. */
.p-hero-frame { margin-inline: var(--gs-float-inset); border-radius: var(--gs-radius-panel); background: var(--gs-neutral-0); color: var(--gs-color-text); }
.p-hero { display: grid; gap: var(--gs-space-8); align-items: center; padding-block: var(--gs-space-10); }
.p-hero h1 { font-size: var(--gs-text-4xl); line-height: var(--gs-leading-tight); letter-spacing: var(--gs-tracking-display); hyphens: manual; overflow-wrap: break-word; }
.p-hero h1 span { color: var(--gs-color-text-muted); }
@media (max-width: 40em) { .p-hero h1 { font-size: var(--gs-text-3xl); } }
.p-hero__lead { max-width: var(--gs-measure-lead); margin-top: var(--gs-space-5); font-size: var(--gs-text-lg); line-height: var(--gs-leading-snug); }
.p-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gs-space-3); margin-top: var(--gs-space-6); }
.p-facts { display: flex; flex-wrap: wrap; gap: var(--gs-space-2) var(--gs-space-5); margin-top: var(--gs-space-6); font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); }
.p-facts li { display: inline-flex; align-items: center; gap: var(--gs-space-2); }
.p-facts li::before { content: ''; width: .375rem; height: .375rem; border-radius: 50%; background: var(--gs-color-border-strong); }
.p-hero__note { margin-top: var(--gs-space-5); padding-left: var(--gs-space-3); border-left: var(--gs-border-width-strong) solid var(--gs-color-notice-rule); font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); max-width: var(--gs-measure-lead); }
@media (min-width: 60em) {
  .p-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: var(--gs-space-12); padding-block: var(--gs-space-12); }
}
/* Small screens: do it first. The player follows the headline directly; the rest follows the player. */
@media (max-width: 59.99em) {
  .p-hero { gap: 0; padding-block: var(--gs-space-8); }
  .p-hero__copy { display: contents; }
  .p-np { order: 1; margin-block: var(--gs-space-6) var(--gs-space-2); }
  .p-hero__copy > :not(.p-eyebrow, h1) { order: 2; }
  .p-hero__cta { display: none; }
}

/* The player: gutsphere_app's now-playing layout (DESIGN.md › Now-playing layout system) in site tokens.
   One column, a header row, the art field, then the current pane; the main action last. */
.p-np { --np-gap: var(--gs-space-4); --np-field: var(--gs-color-soft); --np-play: calc(var(--gs-control-height) * 1.75); --np-start: calc(var(--gs-control-height) * 1.5);
  --gs-text-primary: var(--gs-color-text); --gs-text-secondary: var(--gs-color-text-muted);
  box-sizing: border-box; display: flex; flex-direction: column; gap: var(--np-gap); border: var(--gs-border-width) solid var(--gs-color-border); width: 100%; max-width: 30rem; min-width: 0; justify-self: center; padding: var(--gs-space-3) var(--gs-space-5) var(--gs-space-5); border-radius: calc(var(--gs-radius-panel) + var(--gs-space-1)); background: var(--gs-color-surface); color: var(--gs-color-text); scroll-margin-top: var(--gs-anchor-offset); }
.p-np svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.p-np__head { display: grid; grid-template-columns: var(--gs-control-height) minmax(0, 1fr) var(--gs-control-height); align-items: center; min-height: calc(var(--gs-control-height) + var(--gs-space-3)); }
.p-np__title { grid-column: 2; font-size: var(--gs-text-md); font-weight: var(--gs-weight-bold); letter-spacing: 0; text-align: center; overflow-wrap: anywhere; }
.p-np__title:focus { outline: none; }
.p-np__title:focus-visible { outline: var(--gs-focus-width) solid var(--gs-color-focus); outline-offset: var(--gs-focus-offset); }
.p-icon-btn { display: grid; place-items: center; width: var(--gs-control-height); height: var(--gs-control-height); padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--gs-color-text); cursor: pointer; }
.p-icon-btn:hover { background: var(--gs-color-secondary-hover); }

/* The art field: one soft neutral, the mascot centred and nothing else. */
.p-np__field { display: grid; place-items: center; padding: var(--gs-space-4); border-radius: calc(var(--gs-radius-panel) + var(--gs-space-1)); background: var(--np-field); }
.p-np__art { width: min(100%, 13rem, 26vh); aspect-ratio: 332 / 360; }
.p-np__art > img, .p-np__art .pelvic-art-frame { width: 100%; height: 100%; object-fit: contain; display: block; }
.p-np:is([data-screen='practice'], [data-screen='position'], [data-screen='stages'], [data-screen='customize'], [data-screen='before'], [data-screen='high'], [data-screen='comfort'], [data-screen='checkin']) .p-np__field { display: none; }
.p-np[data-screen='result'] .p-np__art { width: min(100%, 9rem, 18vh); }
.p-np[data-screen='playing'] .p-np__art { width: min(100%, 16rem, 32vh); }
/* On phones the cue and controls must share the screen with the art while a practice runs. */
@media (max-width: 40em) { .p-np[data-screen='playing'] .p-np__art { width: min(100%, 9rem, 20vh); } }
.p-np__pane { display: flex; flex-direction: column; gap: var(--np-gap); }

/* Welcome: title and one line of facts; the tools beside a round Start; the Rows; the safety line. */
.p-np__intro { display: flex; flex-direction: column; gap: var(--gs-space-1); }
.p-np__name { font: var(--gs-weight-bold) var(--gs-text-2xl)/var(--gs-leading-tight) var(--gs-font-heading); letter-spacing: var(--gs-tracking-heading); }
.p-np__facts { font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); }
.p-np__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--gs-space-3); }
.p-tools { display: flex; flex-wrap: wrap; gap: var(--gs-space-2); flex: 1; min-width: 0; }
.p-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--gs-space-1); min-height: var(--gs-control-height); min-width: 0; padding: var(--gs-space-1); border: 0; border-radius: var(--gs-radius-md); background: none; color: var(--gs-color-text); font: var(--gs-weight-medium) var(--gs-text-xs)/1.2 var(--gs-font-body); text-align: center; text-decoration: none; cursor: pointer; flex: 1 1 auto; overflow-wrap: break-word; }
.p-tool:hover { background: var(--gs-color-secondary-hover); }
.p-play { display: grid; place-items: center; flex: none; width: var(--np-play); height: var(--np-play); padding: 0; border: 0; border-radius: 50%; background: var(--gs-color-action); color: var(--gs-color-on-action); cursor: pointer; transition: background var(--gs-duration-fast), transform var(--gs-duration-fast); }
.p-play:hover { background: var(--gs-color-action-hover); }
.p-play:active { transform: scale(.96); }
.p-play svg { width: 1.75rem; height: 1.75rem; fill: currentColor; stroke-width: 2.4; }
.p-play--start { width: var(--np-start); height: var(--np-start); }
.p-rows { display: flex; flex-direction: column; gap: var(--gs-space-2); }
.p-row { box-sizing: border-box; display: flex; align-items: center; gap: var(--gs-space-3); width: 100%; min-height: calc(var(--gs-control-height) + var(--gs-space-1)); padding: var(--gs-space-1) var(--gs-space-4); border: var(--gs-border-width) solid var(--gs-color-border); border-radius: var(--gs-radius-panel); background: var(--gs-color-surface); color: var(--gs-color-text); font: var(--gs-weight-regular) var(--gs-text-md)/var(--gs-leading-snug) var(--gs-font-body); text-align: start; cursor: pointer; }
.p-row:hover { background: var(--gs-color-secondary-hover); }
.p-row > svg:first-child { width: 1.25rem; height: 1.25rem; color: var(--gs-color-text-muted); }
.p-row__label { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.p-row__label small { font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); }
.p-row__value { font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); text-align: end; overflow-wrap: anywhere; }
.p-np .p-row__chev { width: 1rem; height: 1rem; color: var(--gs-color-text-muted); }
.p-row__tick { visibility: hidden; color: var(--gs-color-action); }
.p-row--tick[aria-pressed='true'] { border-color: var(--gs-color-text); }
.p-row--tick[aria-pressed='true'] .p-row__tick { visibility: visible; }
.p-row--switch { cursor: default; }
.p-row--switch input { width: 2.75rem; height: 1.5rem; margin: 0; accent-color: var(--gs-color-action); flex: none; }
.p-row-helper { margin-top: calc(var(--gs-space-1) * -1); padding-inline: var(--gs-space-4); font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); }
.p-safety { display: flex; align-items: flex-start; gap: var(--gs-space-2); padding: var(--gs-space-3) var(--gs-space-4); border-radius: var(--gs-radius-panel); background: var(--gs-color-notice-bg); font-size: var(--gs-text-sm); }
.p-safety svg { width: 1.125rem; height: 1.125rem; margin-top: .1em; }
.p-steps-static { display: grid; gap: var(--gs-space-2); padding-left: var(--gs-space-5); list-style: decimal; }
.p-np__note { font-size: var(--gs-text-xs); color: var(--gs-color-text-muted); text-align: center; }

/* Stages and Customize. */
.p-stage-list { display: flex; flex-direction: column; gap: var(--gs-space-2); counter-reset: stage; }
.p-stage-list li { display: flex; flex-direction: column; padding: var(--gs-space-3) var(--gs-space-4); border: var(--gs-border-width) solid var(--gs-color-border); border-radius: var(--gs-radius-panel); }
.p-stage-list span { font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); }
.p-group { display: flex; flex-direction: column; gap: var(--gs-space-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.p-group legend { margin-bottom: var(--gs-space-2); padding: 0; font-size: var(--gs-text-xs); font-weight: var(--gs-weight-bold); letter-spacing: var(--gs-tracking-eyebrow); text-transform: uppercase; color: var(--gs-color-text-muted); }
.p-group__help { font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); }
.p-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gs-space-1); padding: var(--gs-space-1); border-radius: var(--gs-radius-control); background: var(--gs-color-soft); }
.p-seg button { min-width: 0; min-height: var(--gs-control-height); border: 0; border-radius: var(--gs-radius-control); background: transparent; color: var(--gs-color-text); font: var(--gs-weight-medium) var(--gs-text-md)/1.2 var(--gs-font-body); cursor: pointer; overflow-wrap: anywhere; }
.p-seg [aria-pressed='true'] { background: var(--gs-color-action); color: var(--gs-color-on-action); }

/* Before you start and the check-in: one question, number pills, two end labels, a fixed footer. */
.p-q { display: flex; flex-direction: column; gap: var(--gs-space-3); text-align: center; }
.p-q__title { font: var(--gs-weight-bold) var(--gs-text-xl)/var(--gs-leading-snug) var(--gs-font-heading); letter-spacing: var(--gs-tracking-heading); text-align: center; overflow-wrap: anywhere; }
.p-q__title:focus { outline: none; }
.p-q__sub { font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); text-align: center; }
.p-scale { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gs-space-2); margin-top: var(--gs-space-1); }
.p-scale button, .p-choices button { min-width: 0; min-height: var(--gs-control-height); border: var(--gs-border-width) solid var(--gs-color-border-strong); border-radius: var(--gs-radius-control); background: var(--gs-color-surface); color: var(--gs-color-text); font: var(--gs-weight-medium) var(--gs-text-md)/1 var(--gs-font-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.p-scale button:hover, .p-choices button:hover { background: var(--gs-color-secondary-hover); }
.p-scale [aria-pressed='true'], .p-choices [aria-pressed='true'] { border-color: var(--gs-color-action); background: var(--gs-color-action); color: var(--gs-color-on-action); }
.p-scale__ends { display: flex; justify-content: space-between; gap: var(--gs-space-3); overflow-wrap: anywhere; font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); }
.p-choices { display: flex; flex-direction: column; gap: var(--gs-space-2); }
.p-panel { padding: var(--gs-space-3) var(--gs-space-4); border-radius: var(--gs-radius-panel); background: var(--gs-color-notice-bg); font-size: var(--gs-text-sm); text-align: start; }
.p-panel--stack { display: flex; flex-direction: column; gap: var(--gs-space-2); }
.p-np__foot { display: flex; flex-direction: column; align-items: stretch; gap: var(--gs-space-2); margin-top: var(--gs-space-2); }
.p-np__foot:has(> .p-step:only-child) { align-items: center; }
.p-step { display: inline-flex; align-items: center; gap: var(--gs-space-1); min-height: var(--gs-control-height); padding-inline: var(--gs-space-3); border: 0; border-radius: var(--gs-radius-control); background: none; color: var(--gs-color-text); font: var(--gs-weight-medium) var(--gs-text-md)/1.2 var(--gs-font-body); cursor: pointer; }
.p-step:hover { background: var(--gs-color-secondary-hover); }
.p-step svg { width: 1.125rem; height: 1.125rem; }
.p-stepnav { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; row-gap: var(--gs-space-1); }
.p-dots { display: flex; gap: var(--gs-space-2); }
.p-dots span { width: .5rem; height: .5rem; border-radius: 50%; background: var(--gs-color-border); }
.p-dots span[data-current] { background: var(--gs-color-text); }
.p-quiet { align-self: center; min-height: var(--gs-control-height); padding: 0 var(--gs-space-2); border: 0; background: none; color: var(--gs-color-link); font: var(--gs-weight-medium) var(--gs-text-sm) var(--gs-font-body); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.p-chip { display: inline-flex; align-items: center; align-self: flex-start; padding: var(--gs-space-1) var(--gs-space-3); border-radius: 999px; background: var(--gs-color-soft); font-size: var(--gs-text-xs); font-weight: var(--gs-weight-bold); overflow-wrap: anywhere; }
.p-chip--center { align-self: center; }
.p-np .p-tick { width: 2.75rem; height: 2.75rem; align-self: center; color: var(--gs-color-action); }

/* Now playing: chip, the phase word large with its count, the detail line, the track and times, the transport. */
.p-now { display: flex; flex-direction: column; align-items: center; gap: var(--gs-space-2); text-align: center; min-height: 8.5rem; }
.p-now .p-chip { align-self: center; }
.p-now__phase { font: var(--gs-weight-bold) var(--gs-text-3xl)/var(--gs-leading-tight) var(--gs-font-heading); letter-spacing: var(--gs-tracking-display); }
.p-now__count { font-size: var(--gs-text-xl); color: var(--gs-color-text-muted); font-variant-numeric: tabular-nums; }
.p-now__detail { color: var(--gs-color-text-muted); }
.p-bar { height: .25rem; border-radius: 999px; background: var(--gs-color-border); overflow: hidden; }
.p-bar span { display: block; width: 0; height: 100%; background: var(--gs-color-text); }
.p-times { display: flex; justify-content: space-between; margin-top: calc(var(--gs-space-2) * -1); font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); font-variant-numeric: tabular-nums; }
.p-transport { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; justify-items: center; margin-top: var(--gs-space-2); }
.p-transport > :first-child { justify-self: start; }
.p-transport__slot { width: 0; }
.p-confirm { display: flex; flex-direction: column; gap: var(--gs-space-2); padding: var(--gs-space-4); border: var(--gs-border-width) solid var(--gs-color-border-strong); border-radius: var(--gs-radius-panel); background: var(--gs-color-surface); }

/* Summary and result: the pair big, one line of facts, what the check-in said, the tools, Done. */
.p-pair { display: flex; flex-direction: column; align-items: center; gap: var(--gs-space-1); }
.p-pair__label { font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); }
.p-pair__nums { display: inline-flex; align-items: center; gap: var(--gs-space-3); }
.p-pair__nums b { font: var(--gs-weight-bold) var(--gs-text-4xl)/1 var(--gs-font-heading); font-variant-numeric: tabular-nums; letter-spacing: var(--gs-tracking-display); }
.p-pair__nums svg { width: 1.75rem; height: 1.75rem; color: var(--gs-color-text-muted); }
.p-pair--sheet .p-pair__nums b { font-size: var(--gs-text-3xl); }
.p-said { font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); text-align: center; }
.p-q--summary { align-items: stretch; }
.p-result { display: flex; flex-direction: column; align-items: center; gap: var(--gs-space-2); text-align: center; }
.p-result__outcome { font: var(--gs-weight-bold) var(--gs-text-2xl)/var(--gs-leading-tight) var(--gs-font-heading); letter-spacing: var(--gs-tracking-heading); }
.p-result__said { font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); }
.p-result [data-result-panel]:not(:empty) { align-self: stretch; margin-top: var(--gs-space-2); }
.p-tools--result { flex: none; }


/* The current page's two-column sections: heading on the left, content on the right. */
.p-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gs-space-8); align-items: start; }
.p-two__head { display: flex; flex-direction: column; gap: var(--gs-space-4); max-width: 30rem; }
.p-two__head .p-eyebrow { margin: 0; }
.p-two__head h2 { font-size: var(--gs-text-3xl); line-height: var(--gs-leading-tight); letter-spacing: var(--gs-tracking-display); }
.p-two__head > p { color: var(--gs-color-text-muted); }
.p-two__body { display: flex; flex-direction: column; gap: var(--gs-space-4); max-width: var(--gs-measure-lead); }
@media (min-width: 60em) {
  .p-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--gs-space-16); }
  .p-two--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}
.p-rule { border-top: var(--gs-border-width) solid var(--gs-color-border); }
.p-band { background: var(--gs-neutral-0); }





/* Section rhythm. */
.p-section { padding-block: var(--gs-section-space); scroll-margin-top: var(--gs-anchor-offset); }
.p-section--raised { background: var(--gs-neutral-0); }
.p-section__head { display: flex; flex-direction: column; gap: var(--gs-space-4); max-width: var(--gs-measure-lead); margin-bottom: var(--gs-space-8); }
.p-section__head .p-eyebrow { margin-bottom: 0; }
.p-section__head h2 { font-size: var(--gs-text-3xl); line-height: var(--gs-leading-tight); letter-spacing: var(--gs-tracking-display); }
.p-section__head--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; max-width: none; }
.p-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gs-space-8); }
.p-split .p-section__head { margin-bottom: 0; }
@media (min-width: 60em) { .p-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gs-space-16); align-items: start; } }


/* Disclosures. */
.p-page summary, .p-page details > p { overflow-wrap: anywhere; }
.p-page details { border: var(--gs-border-width) solid var(--gs-color-border); border-radius: var(--gs-radius-panel); background: var(--gs-color-surface); }
.p-page summary { display: flex; align-items: center; justify-content: space-between; gap: var(--gs-space-4); min-height: var(--gs-control-height); padding: var(--gs-space-3) var(--gs-space-5); font-weight: var(--gs-weight-medium); cursor: pointer; list-style: none; }
.p-page summary::-webkit-details-marker { display: none; }
.p-page summary::after { content: '+'; flex: none; font-size: var(--gs-text-xl); line-height: 1; color: var(--gs-color-text-muted); }
.p-page details[open] summary::after { content: '−'; }
.p-page details > p { padding: 0 var(--gs-space-5) var(--gs-space-4); max-width: var(--gs-measure-lead); }
.p-source { font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); }
.p-source a { color: inherit; }

/* 7 · Evidence. */
.p-review { font-size: var(--gs-text-sm); color: var(--gs-color-text-muted); }
.p-sources { display: grid; border-top: var(--gs-border-width) solid var(--gs-color-border); }
.p-sources li { border-bottom: var(--gs-border-width) solid var(--gs-color-border); }
.p-sources a { display: flex; align-items: center; min-height: var(--gs-control-height); padding-block: var(--gs-space-3); color: var(--gs-color-text); text-underline-offset: .2em; }



/* 6 · Questions: the current page's card row, refined.
   Kept: heading with intro, topic chips, View all, count with Previous/Next, a row of answer cards
   (topic, number, question, answer, source, share). Refined: readable sizes, counts on chips, a
   live "Questions 4–6 of 24" status that follows the filter and scroll, arrows that disable at the
   ends, a peek of the next card on phones, keyboard arrows on the row, share feedback, and a
   highlighted card when someone arrives from a shared link. */
/* The Welcome has no header row: its title sits under the art, as in the app. */
.p-np[data-screen='welcome'] .p-np__head { display: none; }
.p-np[data-screen='welcome'] { padding-top: var(--gs-space-5); }
.p-scale__ends span { min-width: 0; }
.p-scale__ends span:last-child { text-align: end; }
.p-safety span { min-width: 0; overflow-wrap: anywhere; }

.p-seg button:disabled { cursor: default; opacity: .6; }

/* 4 · Make it yours: a short hand-off to the app, with what the app keeps as its History summary. */
.p-perks { display: flex; flex-direction: column; gap: var(--gs-space-3); margin-top: var(--gs-space-2); }
.p-perks li { display: flex; align-items: flex-start; gap: var(--gs-space-3); font-weight: var(--gs-weight-medium); }
.p-perks svg { width: 1.375rem; height: 1.375rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; color: var(--gs-color-text-muted); }
.p-app__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gs-space-3) var(--gs-space-5); margin-top: var(--gs-space-4); }
.p-app__cta .gs-link-state { margin-left: calc(var(--gs-space-2) * -1); }
.p-pair__nums svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- The app in a phone (Make it yours, Notice what changes) ----------
   A modern iPhone frame (393 × 852 points, Dynamic Island) around the app's own now-playing screens, drawn to
   the app's measurements (gutsphere_app guided_tokens.css and box_player.css, the now-playing layout system).
   --u is one app point at the frame's width, so every app size below is "points × --u". Colours map the app's
   look onto the site's primitives: charcoal actions on white, the warm paper as the app's soft neutral. The
   screens are pictures (role="img", described), not controls. */
.p-phone-figure { display: flex; flex-direction: column; align-items: center; gap: var(--gs-space-3); margin: 0; min-width: 0; }
.p-phone-figure figcaption { text-align: center; }
/* iPhone 15 Pro, from Apple's specifications: body 70.6 × 146.6 mm; display 1179 × 2556 px at 460 ppi
   (393 × 852 pt, 65.1 × 141.1 mm), so 2.75 mm (16.6 pt) of edge on every side: a 2 pt titanium rim and a
   14.6 pt black bezel. Display corners 55 pt, so the body's are 55 + 16.6. --pt is one point on the page: a
   fixed size at every page width, reduced only where a screen is too narrow to hold the phone. */
.p-phone { --pt: min(0.72px, calc((100vw - 3rem) / 426.2)); --edge: calc(16.6 * var(--pt)); position: relative; box-sizing: content-box; flex: none; width: calc(393 * var(--pt)); height: calc(852 * var(--pt)); padding: calc(14.6 * var(--pt)); border: calc(2 * var(--pt)) solid var(--gs-neutral-400); border-radius: calc(71.6 * var(--pt)); background: var(--gs-ink-900); box-shadow: var(--gs-shadow-float); }
/* The side buttons: Action, volume up and down on the left; the side button on the right. */
.p-phone::before, .p-phone::after { content: ''; position: absolute; width: calc(3 * var(--pt)); border-radius: calc(2 * var(--pt)); background: var(--gs-neutral-400); }
.p-phone::before { left: calc(-5 * var(--pt)); top: calc(168 * var(--pt)); height: calc(32 * var(--pt)); box-shadow: 0 calc(64 * var(--pt)) 0 0 var(--gs-neutral-400), 0 calc(136 * var(--pt)) 0 0 var(--gs-neutral-400); }
.p-phone::after { right: calc(-5 * var(--pt)); top: calc(236 * var(--pt)); height: calc(102 * var(--pt)); }
.p-phone--sm { --pt: min(0.6px, calc((100vw - 3rem) / 426.2)); }
.p-phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(55 * var(--pt)); }
.p-appui { --u: var(--pt); --a-ink: var(--gs-ink-900); --a-muted: var(--gs-ink-600); --a-line: var(--gs-line-200); --a-soft: var(--gs-paper-100); --a-surface: var(--gs-neutral-0); --a-action: var(--gs-ink-900); --a-on-action: var(--gs-neutral-0);
  background: var(--a-surface); color: var(--a-ink); font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-size: max(var(--gs-text-xs), calc(16 * var(--u))); line-height: 1.3; }
.p-appui svg { fill: currentColor; }
.p-phone__status { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; justify-content: space-between; height: calc(54 * var(--u)); padding-inline: calc(34 * var(--u)) calc(28 * var(--u)); font-weight: 600; font-size: max(var(--gs-text-xs), calc(16 * var(--u))); }
.p-phone__island { position: absolute; left: 50%; top: calc(11 * var(--u)); width: calc(126 * var(--u)); height: calc(37.33 * var(--u)); border-radius: 999px; background: var(--gs-ink-900); transform: translateX(-50%); }
.p-phone__icons { display: flex; align-items: center; gap: calc(6 * var(--u)); }
.p-phone__icons svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.p-phone__icons svg:last-child { width: calc(26 * var(--u)); }

/* The player under the sheet, dimmed. */
.a-under { position: absolute; inset: calc(54 * var(--u)) 0 0; display: flex; flex-direction: column; gap: calc(16 * var(--u)); padding-inline: calc(20 * var(--u)); }
.a-head { display: grid; grid-template-columns: calc(44 * var(--u)) 1fr calc(44 * var(--u)); align-items: center; height: calc(56 * var(--u)); text-align: center; font-weight: 600; }
.a-iconbtn { font-size: calc(22 * var(--u)); color: var(--a-muted); }
.a-field { position: relative; overflow: hidden; height: calc(300 * var(--u)); border-radius: calc(28 * var(--u)); background: var(--a-soft); }
.a-field img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.a-field--sm { height: calc(240 * var(--u)); }
.a-scrim { position: absolute; inset: 0; z-index: 1; background: var(--gs-ink-900); opacity: .42; }

/* The sheet: grab handle, 56pt header with boxed Back and Close, the body, a fixed footer. */
.a-sheet { position: absolute; inset: auto 0 0; z-index: 2; display: flex; flex-direction: column; height: 82%; border-radius: calc(28 * var(--u)) calc(28 * var(--u)) 0 0; background: var(--a-surface); }
.a-sheet--short { height: 66%; }
.a-handle { align-self: center; width: calc(36 * var(--u)); height: calc(5 * var(--u)); margin-block: calc(12 * var(--u)) calc(8 * var(--u)); border-radius: 999px; background: var(--a-line); }
.a-sheet__head { display: grid; grid-template-columns: calc(44 * var(--u)) minmax(0, 1fr) calc(44 * var(--u)); align-items: center; min-height: calc(56 * var(--u)); padding: 0 calc(20 * var(--u)) calc(8 * var(--u)); text-align: center; font-weight: 600; }
.a-boxbtn { display: grid; place-items: center; width: calc(44 * var(--u)); height: calc(44 * var(--u)); border: 1px solid var(--a-line); border-radius: calc(16 * var(--u)); font-size: calc(22 * var(--u)); line-height: 1; }
.a-sheet__body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: calc(24 * var(--u)); padding: calc(8 * var(--u)) calc(20 * var(--u)); -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent); mask-image: linear-gradient(to bottom, black 82%, transparent); }
.a-section { display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.a-section > b { font-weight: 600; }
.a-section small { color: var(--a-muted); font-size: max(var(--gs-text-xs), calc(14 * var(--u))); }
.a-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(8 * var(--u)); }
.a-seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.a-seg > span { display: grid; place-items: center; min-height: calc(44 * var(--u)); padding-inline: calc(4 * var(--u)); border: 1px solid var(--a-line); border-radius: calc(14 * var(--u)); font-weight: 500; text-align: center; }
.a-seg > .is-on { border-color: var(--a-action); background: var(--a-action); color: var(--a-on-action); }
.a-row { display: flex; align-items: center; justify-content: space-between; min-height: calc(56 * var(--u)); padding: 0 calc(16 * var(--u)); border: 1px solid var(--a-line); border-radius: calc(16 * var(--u)); }
.a-row i { font-style: normal; color: var(--a-muted); }
.a-switch { position: relative; width: calc(48 * var(--u)); height: calc(28 * var(--u)); border-radius: 999px; background: var(--a-action); }
.a-switch::after { content: ''; position: absolute; top: calc(4 * var(--u)); right: calc(4 * var(--u)); width: calc(20 * var(--u)); height: calc(20 * var(--u)); border-radius: 50%; background: var(--a-on-action); }
.a-sheet__foot { display: flex; flex-direction: column; gap: calc(10 * var(--u)); padding: calc(16 * var(--u)) calc(20 * var(--u)) calc(30 * var(--u)); border-top: 1px solid var(--a-line); }
.a-sheet__foot--row { flex-direction: row; align-items: center; justify-content: space-between; border-top: 0; }
.a-sheet__foot--row .a-primary { flex: 1; margin-left: calc(12 * var(--u)); }
.a-primary { display: grid; place-items: center; min-height: calc(52 * var(--u)); border-radius: calc(14 * var(--u)); background: var(--a-action); color: var(--a-on-action); font-weight: 600; }
.a-quiet { text-align: center; color: var(--a-muted); padding-block: calc(4 * var(--u)); }

/* The check-in card: the question in Heading, the Before chip, 0–10 in six columns, the end labels, the footer row. */
.a-q, .a-summary { flex: 1; display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--u)); padding: calc(8 * var(--u)) calc(20 * var(--u)); text-align: center; }
.a-q__title { font-size: calc(22 * var(--u)); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.a-chip { padding: calc(4 * var(--u)) calc(12 * var(--u)); border-radius: 999px; background: var(--a-soft); font-size: max(var(--gs-text-xs), calc(13 * var(--u))); font-weight: 600; }
.a-chip[hidden] { display: none; }
.a-scale { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: calc(8 * var(--u)); width: 100%; }
.a-scale span { display: grid; place-items: center; min-height: calc(48 * var(--u)); border: 1px solid var(--a-line); border-radius: calc(14 * var(--u)); font-weight: 500; font-variant-numeric: tabular-nums; }
.a-scale .is-on { border-color: var(--a-action); background: var(--a-action); color: var(--a-on-action); }
.a-ends { display: flex; justify-content: space-between; width: 100%; color: var(--a-muted); font-size: max(var(--gs-text-xs), calc(13 * var(--u))); }
.a-link { color: var(--a-muted); font-size: max(var(--gs-text-xs), calc(14 * var(--u))); text-decoration: underline; text-underline-offset: .2em; }
.a-stepnav { display: flex; align-items: center; justify-content: space-between; padding: calc(12 * var(--u)) calc(20 * var(--u)) calc(30 * var(--u)); }
.a-step { min-height: calc(44 * var(--u)); display: grid; place-items: center; padding-inline: calc(8 * var(--u)); font-weight: 600; }
.a-dots { display: flex; gap: calc(8 * var(--u)); }
.a-dots i { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: var(--a-line); }
.a-dots .is-on { background: var(--a-ink); }

/* The summary: the tick over All set, the pair big, the answers, Change, the panel. */
.p-appui .a-tick { width: calc(44 * var(--u)); height: calc(44 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-tick[hidden] { display: none; }
.a-pair__label { color: var(--a-muted); font-size: max(var(--gs-text-xs), calc(14 * var(--u))); }
.a-pair { display: flex; align-items: center; gap: calc(12 * var(--u)); margin-top: calc(-8 * var(--u)); }
.a-pair b { font-size: calc(56 * var(--u)); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.p-appui .a-pair svg { width: calc(28 * var(--u)); height: calc(28 * var(--u)); fill: none; stroke: var(--a-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-answers { color: var(--a-muted); font-size: max(var(--gs-text-xs), calc(14 * var(--u))); }
.a-panel { width: 100%; box-sizing: border-box; padding: calc(12 * var(--u)) calc(16 * var(--u)); border-radius: calc(16 * var(--u)); background: var(--a-soft); font-size: max(var(--gs-text-xs), calc(14 * var(--u))); text-align: start; }

/* Section layouts around the phones. */
.p-app { align-items: center; }
.p-phones { display: flex; justify-content: center; gap: var(--gs-space-4); min-width: 0; }
.p-phones .p-phone-figure { flex: none; }
.p-phone-figure--offset { margin-top: var(--gs-space-10); }
@media (max-width: 40em) {
  .p-phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--gs-space-3); }
  .p-phones.is-overflowing::before { content:""; flex:0 0 max(0px,calc((100% - var(--first-card-width)) / 2 - var(--gs-space-4))); }
  .p-phones.is-overflowing::after { content:""; flex:0 0 max(0px,calc((100% - var(--last-card-width)) / 2 - var(--gs-space-4))); }
  .p-phones .p-phone-figure { scroll-snap-align: center; }
  .p-phone-figure--offset { margin-top: 0; }
}

/* Guided-practice destination cards use the shared catalog row. */
/* ---------- The other practices (practice.js, generated pages) ---------- */
/* The still art in the player rises a little on the in-breath (breathing pause only); --breath is 0 to 1. */
.p-np__art--still img { width: 100%; height: 100%; object-fit: contain; transform: scale(calc(1 + var(--breath, 0) * .03)); transform-origin: 50% 85%; transition: transform 120ms linear; }
@media (prefers-reduced-motion: reduce) { .p-np__art--still img { transform: none; transition: none; } }
/* Step-by-step practices show where they are as dots instead of a time track. */
.p-dots--steps { justify-content: center; }
.p-dots--steps span { width: 1.75rem; height: .25rem; border-radius: 999px; }
.p-dots--steps span[data-current] { background: var(--gs-color-text); }
.p-play:disabled, .p-icon-btn:disabled { opacity: .4; cursor: default; }
.p-play svg[data-icon-finish] { fill: none; stroke: currentColor; stroke-width: 2; }
.p-answer__steps { display: grid; gap: var(--gs-space-1); padding-left: var(--gs-space-5); list-style: decimal; }
.p-sources li { display: flex; flex-direction: column; padding-block: var(--gs-space-2); }
.p-sources li .p-small { padding-bottom: var(--gs-space-1); }
.p-sources li a { min-height: 0; padding-block: var(--gs-space-1); }
/* The app's one-tap choices in a phone: full-width choice pills, the chosen one filled. */
.a-choices { display: flex; flex-direction: column; gap: calc(8 * var(--u)); width: 100%; }
.a-choices span { display: grid; place-items: center; min-height: calc(52 * var(--u)); border: 1px solid var(--a-line); border-radius: calc(14 * var(--u)); font-weight: 500; }
.a-choices .is-on { border-color: var(--a-action); background: var(--a-action); color: var(--a-on-action); }
.a-ends--center { justify-content: center; }
.a-answers--big { font-size: max(var(--gs-text-md), calc(18 * var(--u))); color: var(--a-ink); font-weight: 600; }
.p-hero h1, .p-eyebrow, .p-now__phase, .p-np__name, .p-fit__quote { overflow-wrap: anywhere; }
/* The paired phones keep their fixed size unless their column is narrower than both (then they shrink together). */
.p-phones { container-type: inline-size; }
.p-phones .p-phone--sm { --pt: min(0.6px, calc((100cqw - 1rem) / 2 / 426.2)); }
@media (max-width: 40em) { .p-phones .p-phone--sm { --pt: min(0.6px, calc((100vw - 3rem) / 426.2)); } }

/* Guided-practice directory, using the same app-card family as Keep going. */
.p-hub { padding-bottom: var(--gs-space-12); background: var(--gs-neutral-0); }
.p-hub__intro { max-width: var(--gs-measure-lead); padding-block: var(--gs-space-10); }
.p-hub__intro h1 { font-size: var(--gs-text-4xl); line-height: var(--gs-leading-tight); letter-spacing: var(--gs-tracking-display); }
.p-hub__intro .p-lead { margin-top: var(--gs-space-5); }
.p-hub__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--gs-space-5); }
.p-hub__grid .p-rc { min-width: 0; width: auto; }

.p-hub__more { margin-block: var(--gs-space-8); }
.p-hub__example { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gs-space-6); padding: var(--gs-space-6); border: var(--gs-border-width) solid var(--gs-color-border); border-radius: var(--gs-radius-panel); }
.p-hub__example > div { max-width: var(--gs-measure-lead); }
.p-hub__example h2 { font-size: var(--gs-text-xl); }
.p-hub__example p:not(.p-eyebrow) { margin-top: var(--gs-space-3); }

/* Reverse Kegels pilot: keep the written route ahead of the mobile player. */
.rk-hero-facts { margin-top:var(--gs-space-3); font-size:var(--gs-text-md); }
#practice.p-hero .rk-hero-facts { order:0; }
#practice.p-hero .p-text-link { text-underline-offset:0.15em; }
#practice .p-np[data-screen="confirm"] .p-np__field { display:none; }
@media (max-width:40em) {
  #practice.p-hero { padding-block:var(--gs-space-4); }
  #practice .p-np { margin-top:var(--gs-space-3); }
}


@media (max-width:40em) {
  #practice .p-np[data-screen="welcome"] .p-np__art { width:min(100%,8rem); }
  #your-question .p-fit summary { padding:var(--gs-space-3); min-height:0; }
}
