/* r114 — tighter reading groups, right-hand introductions and complete hover states.
   Scoped to product interiors. Content remains left aligned and naturally sized. */
#main#main :is(.ay73-trace-notes,.zt-two-notes,.jh-two-notes,.yt-supply-notes,.yt-menu-rules,.ay73-connect-rules,.jh-three-notes,.yt-pass-foot,.bg-learning-notes,.bg-connect-ledger,.y93-technical,.h88-planning,.ag-screen-notes){
 --kp-notes-width:920px;
 column-gap:40px;
 margin-top:28px;
}
#main#main :is(.ay73-connect-rules,.jh-three-notes,.yt-pass-foot,.bg-learning-notes,.bg-connect-ledger,.y93-technical,.ag-screen-notes){--kp-notes-width:1080px;column-gap:32px}
/* Longer paragraphs retain their reading measure while the outside edges move inward. */
#main#main :is(.jh-two-notes,.h88-planning){--kp-notes-width:1120px;column-gap:28px}
#main#main .yt-menu-rules{column-gap:24px}
#main#main .ay73-trace-notes{--kp-notes-width:960px;padding-top:24px}
#main#main .kp-build :is(.jh-two-notes,.jh-three-notes)>div{padding-top:20px}
/* Remove redundant bottom space, retaining the shorter transitions already in use. */
#main#main :is(.ay73,.kp-mes,.kp-build,.kp-food,.kp-edu)>.kp-section{padding-block:64px 46px}
#main#main .kp-edu>.bg-pickup{padding-block:64px 46px}
#main#main .y93-page>.y93-section{padding-block:60px 44px}
#main#main .h85-page>.h85-section,#main#main .ag-product>.ag-section{padding-block:64px 44px}
#main#main .ay73>.ay73-verification{padding-bottom:40px}
#main#main .kp-food>:is(.yt-fit,.yt-trace){padding-bottom:42px}
#main#main .h85-page>.h85-exceptions{padding-top:12px}
#main#main .h85-page>#hg-stock{padding-bottom:30px}
#main#main .r80-overview{padding-top:64px}
#main#main :is(.kp-product,.h85-page,.y93-page,.ag-product)>.r74-faq-section{padding-block:60px 52px}
/* Keep the heading and explanation on separate sides of the composition.
   Nested photo/story headings retain their own single-column layout. */
@media(min-width:1201px){
 #main#main :is(.r80-overview-heading,.zt-heading,.yt-heading,.yt-menu-heading,.bg-section-heading,.bg-dark-heading,.jh-section-head,.ag-section-head){column-gap:72px;align-items:end}
 #main#main :is(.r80-overview-heading,.zt-heading,.yt-heading,.yt-menu-heading,.bg-section-heading,.bg-dark-heading,.jh-section-head,.ag-section-head)>p,
 #main#main .h85-heading>p,#main#main .y93-heading>p{
  justify-self:end;align-self:end;width:100%;max-width:34em;margin-inline:auto 0;padding-block:0;
 }
 #main#main .r80-overview-heading{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #main#main .r80-overview-heading>p{max-width:32em}
 #main#main .jh-section-head>.jh-intro{max-width:34em;justify-self:end}
 /* The one-line eyebrow spans both columns; spacing must not push the copy upward. */
 #main#main .bg-section-heading>p{align-self:end}
 #main#main .h90-story .h85-heading>p,#main#main .y93-story .y93-heading>p{margin-inline:0;max-width:none}
}
/* One final note beneath the student map: no extra empty row below it. */
#main#main .kp-edu .bg-admission-note{width:min(100%,960px);max-width:960px;gap:40px;padding-top:24px;margin-bottom:0}
#main#main .kp-edu .bg-admission-grid{row-gap:30px}
/* Course changes: consistent inset and legible hovered step numbers. */
#main#main .kp-edu .bg-change-route>li>div{min-width:0}
#main#main .kp-edu .bg-change-route .bg-route-number{flex:0 0 34px;color:#6665aa;box-shadow:none}
#main#main .kp-edu .bg-change-route>li:is(:hover,:focus-visible,:focus-within) .bg-route-number{background:#6665aa;color:#fff;box-shadow:0 0 0 4px #eeedf8}
#main#main .kp-edu .bg-route-result>span{margin-left:0;flex:0 0 27px}
#main#main .kp-edu .bg-change-route .bg-route-result{gap:16px;align-items:center}
/* The common foundation is a pale panel, so its text uses a dark ink. */
#main#main .kp-edu .bg-campus-core{margin-left:0;color:#424467}
#main#main .kp-edu .bg-campus-core>span{color:#67688e}
#main#main .kp-edu .bg-campus-core>strong{color:#424467}
#main#main .kp-edu .bg-campus-branch:before{display:none}
/* Fill the entire top rule from left to right. */
#main#main .kp-edu .bg-editorial-columns>div{position:relative;padding-inline:0;border-bottom:0}
#main#main .kp-edu .bg-editorial-columns>div:after{content:'';display:block;position:absolute;inset:-2px 0 auto;height:2px;width:auto;background:#6665aa;transform:scaleX(0);transform-origin:left;transition:transform .42s ease;pointer-events:none}
#main#main .kp-edu .bg-editorial-columns>div:is(:hover,:focus-visible,:focus-within):after{transform:scaleX(1)}
/* Full card wash, not an inset stripe. Text stays dark throughout the transition. */
#main#main .kp-edu .bg-profile-branches>div{position:relative;isolation:isolate;overflow:hidden;box-shadow:none;background:#fff;transition:border-color .35s ease}
#main#main .kp-edu .bg-profile-branches>div:after{content:'';position:absolute;inset:0;z-index:-1;background:#e9e8f7;transform:scaleX(0);transform-origin:left;transition:transform .4s ease;pointer-events:none}
#main#main .kp-edu .bg-profile-branches>div:is(:hover,:focus-visible,:focus-within){box-shadow:none;background:#fff;border-color:#b3b1d5}
#main#main .kp-edu .bg-profile-branches>div:is(:hover,:focus-visible,:focus-within):after{transform:scaleX(1)}
@media(max-width:1000px){
 #main#main :is(.ay73,.kp-mes,.kp-build,.kp-food,.kp-edu)>.kp-section,#main#main .kp-edu>.bg-pickup{padding-block:56px 40px}
 #main#main .y93-page>.y93-section,#main#main .h85-page>.h85-section,#main#main .ag-product>.ag-section{padding-block:56px 40px}
 #main#main .h85-page>.h85-exceptions{padding-top:12px}
 #main#main .h85-page>#hg-stock{padding-bottom:30px}
 #main#main :is(.ay73-trace-notes,.zt-two-notes,.jh-two-notes,.yt-supply-notes,.ay73-connect-rules,.jh-three-notes,.yt-pass-foot,.bg-learning-notes,.bg-connect-ledger,.y93-technical,.h88-planning,.ag-screen-notes){column-gap:28px}
}
@media(max-width:750px){
 #main#main :is(.ay73,.kp-mes,.kp-build,.kp-food,.kp-edu)>.kp-section,#main#main .kp-edu>.bg-pickup,
 #main#main .y93-page>.y93-section,#main#main .h85-page>.h85-section,#main#main .ag-product>.ag-section{padding-block:48px 36px}
 #main#main .h85-page>.h85-exceptions{padding-top:12px}
 #main#main .h85-page>#hg-stock{padding-bottom:28px}
 #main#main .r80-overview{padding-top:48px}
 #main#main :is(.kp-product,.h85-page,.y93-page,.ag-product)>.r74-faq-section{padding-block:48px 40px}
 #main#main :is(.ay73-trace-notes,.zt-two-notes,.jh-two-notes,.yt-supply-notes,.yt-menu-rules,.ay73-connect-rules,.jh-three-notes,.yt-pass-foot,.bg-learning-notes,.bg-connect-ledger,.y93-technical,.h88-planning,.ag-screen-notes){gap:24px;margin-top:26px}
 #main#main .kp-edu .bg-admission-note{grid-template-columns:1fr;gap:14px}
 #main#main .kp-edu .bg-profile-branches{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
 #main#main .kp-edu .bg-editorial-columns>div:after,#main#main .kp-edu .bg-profile-branches>div:after{transition:none}
}
/* Avoid legacy nested two-column rules inside a three-column note group. */
#main#main .kp-build .jh-three-notes>div{display:block}
/* These panels formerly reserved space for the longest state, leaving blank tails. */
#main#main .kp-build .jh-cases-panel{min-height:0}
#main#main .kp-build .jh-portfolio-board{border-radius:12px;overflow:hidden;background:#fff;border-color:#dce3d5}
#main#main .y93-page .y93-food-panel{min-height:0}
#main#main .ag-product .ag-panel{min-height:0;padding-block:28px 0}
#main#main .ag-product .ag-scenario-panel{padding:32px}
@media(max-width:900px){
 #main#main :is(.ay73-connect-rules,.jh-three-notes,.yt-pass-foot,.bg-learning-notes,.bg-connect-ledger,.y93-technical,.h88-planning,.ag-screen-notes){grid-template-columns:minmax(0,1fr);row-gap:24px}
 #main#main .kp-edu .bg-editorial-columns{grid-template-columns:minmax(0,1fr);gap:28px}
 #main#main .kp-food .yt-pass-foot>div+div{border-left:0;padding-left:0}
}
@media(max-width:750px){
 #main#main .ag-product .ag-scenario-panel{padding:24px}
 #main#main .ag-product .ag-panel{padding-block:24px 0}
}
/* If a two-line paragraph has no suitable sentence break, balance its natural
   wrapping instead of leaving one or two characters on the last line.
   Longer paragraphs and measured semantic breaks remain untouched. */
#main#main#main#main :is(.kp-product,.y93-page,.h85-page,.ag-product) p.kw110-prose[data-kw110-lines="2"][data-kw110-wrap="natural"]{text-wrap:balance!important}
@media(max-width:600px){
 #main#main .kp-edu .bg-route-result>strong{text-wrap:balance}
}
/* Align the actual short copy, not a wide invisible paragraph box. */
@media(min-width:1201px){
 #main#main :is(.r80-overview-heading,.zt-heading,.yt-heading,.yt-menu-heading,.bg-section-heading,.bg-dark-heading,.jh-section-head,.ag-section-head)>p,
 #main#main .h85-heading>p,#main#main .y93-heading>p{width:fit-content;max-width:min(100%,34em);justify-self:center;margin-inline:auto}
 #main#main .r80-overview-heading>p{max-width:min(100%,32em)}
 #main#main .h90-story .h85-heading>p,#main#main .y93-story .y93-heading>p{width:auto;max-width:none}
 #main#main :is(.ay73-trace-notes,.zt-two-notes,.jh-two-notes)>div{width:fit-content;max-width:100%;justify-self:center}
}
