/* Stage components extend the existing site design and keep navigation available. */
:root{--t-pregnancy-tint:#F1E5EE;--t-pregnancy:#714366;--t-pregnancy-strong:#714366;--t-postpartum-tint:#E5EDE5;--t-postpartum:#3D604D;--t-postpartum-strong:#3D604D}
[data-topic="pregnancy"]{--t:var(--t-pregnancy);--t-tint:var(--t-pregnancy-tint);--t-strong:var(--t-pregnancy-strong)}
[data-topic="postpartum"]{--t:var(--t-postpartum);--t-tint:var(--t-postpartum-tint);--t-strong:var(--t-postpartum-strong)}
.hub{max-width:1000px}
.hub-intro{max-width:720px}
.hub .stage-cards{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:20px;margin:12px 0 0}
.stage-cards li{min-width:0;text-align:center}
.stage-cards a{display:flex;flex-direction:column;align-items:center;gap:12px;padding:8px;text-decoration:none;color:var(--ink);height:100%}
.stage-circle{display:grid;place-items:center;width:100%;max-width:190px;aspect-ratio:1;border-radius:50%;background:var(--t-tint);color:var(--t)}
.stage-circle svg{width:64px;height:64px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.stage-cards strong{font-family:var(--display);font-size:24px;line-height:1.2;color:var(--ink)}
.stage-cards .eyebrow{font-size:11px;color:var(--t);letter-spacing:.08em}
.carousel-controls{display:none;align-items:center;gap:16px;margin-top:14px}
.carousel-controls button{width:44px;height:44px;border-radius:50%;background:var(--paper);border:1px solid var(--line);font:inherit;color:var(--ink);cursor:pointer}
.carousel-controls button:disabled{opacity:.4;cursor:default}
.carousel-controls progress{flex:1;min-width:0;height:5px;appearance:none;border:0;border-radius:4px;background:var(--line);color:var(--ink)}
.carousel-controls progress::-webkit-progress-bar{background:var(--line);border-radius:4px}
.carousel-controls progress::-webkit-progress-value{background:var(--ink);border-radius:4px}
.carousel-controls progress::-moz-progress-bar{background:var(--ink);border-radius:4px}
.hub section{min-width:0}
.hub .cta{margin-top:28px}
.due-mode{border:0;padding:0;margin:0;width:100%}
.due-mode legend{font-weight:800;margin-bottom:10px}
.due-options{display:flex;flex-wrap:wrap;gap:10px}
.due-options label{display:flex;align-items:center;gap:8px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;min-height:48px;font-size:16px;background:var(--cream);cursor:pointer}
.due-options input{width:18px;height:18px;margin:0;accent-color:var(--ink)}
.due-options label:has(input:checked){background:var(--t-pregnancy-tint);border-color:var(--t-pregnancy)}
.due-result{background:var(--t-pregnancy-tint)}
.due-result dl{grid-template-columns:1fr}
.due-result #due-result-title:focus{outline:3px solid var(--t-pregnancy);outline-offset:4px}
.tool input[type=date]{min-width:0;max-width:100%;box-sizing:border-box}
.stage-pick{display:flex;flex-wrap:wrap;gap:18px 28px}
.stage-pick>div{min-width:0}
.stage-pick p{margin-bottom:8px}
/* Phones and tablets: stage links stay reachable in a horizontally scrolling second row.
   Desktop keeps the original one-row header from site.css. */
@media(max-width:900px){
 .top{grid-template-columns:minmax(0,1fr) auto}
 .top .nav,.top-inner .nav{grid-column:1/-1;grid-row:2;display:flex;justify-content:flex-start;gap:12px;margin-right:0}
 .nav-cta{grid-column:2}
}
@media(max-width:899px){
 .top .nav,.top-inner .nav{flex-wrap:nowrap;overflow-x:auto;min-width:0;margin:0 -20px;padding:4px 20px 6px;scrollbar-width:thin}
 .hub .stage-cards{display:flex;flex-direction:row;overflow-x:auto;scroll-snap-type:x mandatory;gap:20px;padding:4px 4px 12px;scrollbar-width:thin}
 .stage-cards li{flex:0 0 clamp(170px,65vw,240px);scroll-snap-align:start}
 .stage-circle{max-width:210px}
 .carousel-controls{display:flex}
}
@media(min-width:901px){.top .nav{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.stage-cards{scroll-behavior:auto}}
/* Photo tiles for choosing a stage on the home page, and hub cover photos */
.stage-pick ul:has(.pick-photo){display:grid;grid-template-columns:repeat(3,minmax(0,112px));gap:8px}
.stage-pick a.pick-photo{flex-direction:column;justify-content:flex-start;gap:8px;min-height:0;padding:10px 8px 12px;border-radius:22px;width:100%;text-align:center;line-height:1.25}
.stage-pick a.pick-photo img{width:min(88px,100%);height:auto;aspect-ratio:1;border-radius:50%;object-fit:cover;display:block;background:var(--cream)}
.stage-pick a.pick-photo span{font-size:14.5px}
.hub-cover{margin:0}
.hub-cover img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:24px}
@media(min-width:900px){.hub-cover img{aspect-ratio:3/1;object-position:50% 35%}}
