/* THULIR side-journey caption repair — 2026-11-24.
   Minimal scoped fix. Keep original right-side vertical journey and scroll behavior. */
@media (max-width:860px) {
  /* Prevent the external WEEK caption from sitting on top of the moving badge. */
  html body.th25-journey #growthRail .journey-edge-label {
    display:none!important;
    visibility:hidden!important;
  }
  /* One compact, readable caption directly under the illustration. */
  html body.th25-journey #growthRail #growthPill .growth-mini-week {
    display:flex!important;
    flex:0 0 30px!important;
    min-height:30px!important;
    max-height:30px!important;
    width:100%!important;
    box-sizing:border-box!important;
    padding:0!important;
    margin:0!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    font-size:0!important;
    line-height:0!important;
  }
  html body.th25-journey #growthRail #growthPill .growth-mini-week::before {
    content:'WEEK'!important;
    position:static!important;
    display:block!important;
    flex:0 0 10px!important;
    font-size:8px!important;
    line-height:10px!important;
    letter-spacing:.03em!important;
    font-weight:800!important;
    margin:0!important;
    padding:0!important;
    color:#fff!important;
    animation:none!important;
  }
  html body.th25-journey #growthRail #growthPill .growth-mini-week::after {
    display:none!important;
    content:none!important;
    animation:none!important;
  }
  html body.th25-journey #growthRail #growthPill .growth-mini-week #growthMiniWeek {
    position:static!important;
    display:block!important;
    visibility:visible!important;
    flex:0 0 19px!important;
    height:19px!important;
    min-height:19px!important;
    max-height:19px!important;
    font-size:17px!important;
    line-height:19px!important;
    font-weight:900!important;
    color:#fff!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    animation:none!important;
  }
  html body.th25-journey #growthRail #growthPill .growth-mini-week .v7-week-window,
  html body.th25-journey #growthRail #growthPill .growth-mini-week .v7-week-reel {
    display:none!important;
    visibility:hidden!important;
  }
}
@media (max-width:355px){
 html body.th25-journey #growthRail #growthPill .growth-mini-week{flex-basis:27px!important;min-height:27px!important;max-height:27px!important}
 html body.th25-journey #growthRail #growthPill .growth-mini-week #growthMiniWeek{font-size:15px!important;line-height:17px!important;height:17px!important;min-height:17px!important;max-height:17px!important;flex-basis:17px!important}
}
/* Only the due-date calculator inputs need width correction. Do not mask overflow globally. */
html body.th25-core .calc-field-grid,
html body.th25-core .calc-field {min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
html body.th25-core .calc-field #phase21Lmp,
html body.th25-core .calc-field #phase21Cycle {
  display:block!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}


/* 2026-11-26: iOS Safari native date-control containment.
   The built-in date editor can exceed its declared border-box width by about
   40 CSS px on iOS. This allowance ONLY applies to WebKit touch browsers.
   Do not alter the right-side Week journey or the calculator layout. */
html body.th25-core #calculatorForm .calc-card,
html body.th25-core #calculatorForm #phase21LmpControls,
html body.th25-core #calculatorForm .calc-field-grid,
html body.th25-core #calculatorForm .calc-field {
  min-inline-size:0 !important;
  max-inline-size:100% !important;
  box-sizing:border-box !important;
}
html body.th25-core #calculatorForm #phase21Lmp,
html body.th25-core #calculatorForm #phase21DoctorDue,
html body.th25-core #calculatorForm #phase21Cycle {
  display:block !important;
  inline-size:100% !important;
  max-inline-size:100% !important;
  min-inline-size:0 !important;
  box-sizing:border-box !important;
  margin-inline:0 !important;
}
/* WebKit on iOS sometimes paints the input's built-in editor outside its box.
   Reserve its intrinsic trailing space while keeping the cycle select full width. */
@supports (-webkit-touch-callout: none) {
  @media screen and (max-width: 860px) {
    html body.th25-core #calculatorForm #phase21Lmp,
    html body.th25-core #calculatorForm #phase21DoctorDue {
      inline-size:calc(100% - 44px) !important;
      width:calc(100% - 44px) !important;
      max-inline-size:calc(100% - 44px) !important;
      max-width:calc(100% - 44px) !important;
      min-inline-size:0 !important;
      box-sizing:border-box !important;
    }
  }
}
