/* LBIC shell footer — narrow-width overflow fix (ADDITIVE, scoped to .ftr). v0.1.0
 * Root cause: .ftr-grid uses grid tracks (1fr 1fr below 640px) whose items default to
 * min-width:auto, so a long unbreakable token (the contact email) forces one track wider than
 * the ~265px container at 320px → the DOCUMENT overflows (305 client / 324 scroll). This lets the
 * tracks shrink and long tokens wrap, and collapses to a single column on the smallest phones.
 * No overflow is hidden; every footer link/text is preserved. Remove the two mu-plugins files to revert. */
.ftr-grid > *{ min-width:0; }
.ftr a,.ftr .about,.ftr .contact,.ftr .contact b{ overflow-wrap:anywhere; }
@media (max-width:360px){ .ftr-grid{ grid-template-columns:1fr; } }

/* 2026-10-11: Keep the sticky shell header below the fixed WordPress toolbar.
   At 600px and below the toolbar scrolls away, so retain the original top:0. */
@media(min-width:783px){body.admin-bar header.hdr{top:32px;}}
@media(min-width:601px) and (max-width:782px){body.admin-bar header.hdr{top:46px;}}

/* 2026-10-11: Wrap the Starter Pack staging label without changing disabled checkout. */
body.page-id-49 main .btn{box-sizing:border-box;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center;}

/* The open navigation dialog must cover the admin toolbar as well as the page. */
body.admin-bar #drawer.drawer{z-index:100000;}

/* 2026-10-11 owner correction: preserve navy footer; lighten only the two corridor closing sections using existing LBIC blue tokens. */
body:is(.page-id-6,.page-id-7) main > .section-ink:last-child{background:var(--lbic-secondary-tint);color:var(--lbic-text);--lbic-on-dark-muted:var(--lbic-muted);}
body:is(.page-id-6,.page-id-7) main > .section-ink:last-child :is(h2,h3,.eyebrow){color:var(--lbic-brand-primary);}
body:is(.page-id-6,.page-id-7) main > .section-ink:last-child .eyebrow::before{background:var(--lbic-brand-primary);}
body:is(.page-id-6,.page-id-7) main > .section-ink:last-child a:not(.btn-primary){color:var(--lbic-brand-primary)!important;}
body:is(.page-id-6,.page-id-7) main > .section-ink:last-child .btn-primary{background:var(--lbic-brand-primary);border-color:var(--lbic-brand-primary);color:var(--lbic-brand-white);}
body:is(.page-id-6,.page-id-7) main > .section-ink:last-child .btn-primary:hover{background:var(--lbic-brand-dark);border-color:var(--lbic-brand-dark);color:var(--lbic-brand-white);}
body:is(.page-id-6,.page-id-7) main > .section-ink:last-child .btn-ghost:hover{background:var(--lbic-powder);}
body:is(.page-id-6,.page-id-7) main > .section-ink:last-child :focus-visible{outline:3px solid var(--lbic-brand-primary);outline-offset:3px;}
body:is(.page-id-6,.page-id-7) main > .section-ink:last-child p{color:var(--lbic-text);}

/* 2026-10-11 owner direction: use the homepage type scale and blue action palette.
   Homepage itself is the reference and is unchanged. Presentation only. */
body:not(.page-id-4) main{font-family:var(--font-body);font-size:17px;line-height:1.6;}
body:not(.page-id-4) main :is(h1,h2,h3){font-family:var(--font-head)!important;letter-spacing:-.005em!important;}
body:not(.page-id-4) main h1{font-size:clamp(34px,3.3vw,46px)!important;line-height:1.08!important;font-weight:700!important;}
body:not(.page-id-4) main h2{font-size:var(--lbic-h2)!important;line-height:var(--lbic-heading-leading)!important;font-weight:700!important;}
body:not(.page-id-4) main h3{font-size:var(--lbic-h3)!important;line-height:var(--lbic-heading-leading)!important;font-weight:600!important;}
body:not(.page-id-4) main p:where(:not(.eyebrow):not(.small):not(.lead):not(.rh-lead):not(.pp-title):not(.pp-sub):not(.pp p):not(.project-preview p)){font-family:var(--font-body)!important;font-size:17px!important;line-height:1.6!important;}
body:not(.page-id-4) main :is(.lead,.rh-lead){font-family:var(--font-body)!important;font-size:clamp(17px,1.3vw,19.5px)!important;line-height:1.6!important;}
body:not(.page-id-4) main :is(button,input,select,textarea,.btn,.tw-btn,.acct-btn,.iit-btn){font-family:var(--font-body)!important;font-size:16px!important;}
/* Keep the same intentional small-copy hierarchy used on Home. */
body:not(.page-id-4) main :is(p.small,p.dash-small,p.rh-hero-note,p.rh-source,p.rh-date,p.rh-disclosure,p.rh-endnote,.rh-section-heading>p,.rh-source-guide p){font-size:14.5px!important;line-height:1.6!important;}
body:not(.page-id-4) main :is(p.eyebrow,p.rh-eyebrow){font-family:var(--font-body)!important;font-size:12.5px!important;line-height:1.6!important;letter-spacing:.12em!important;}
body:not(.page-id-4) main .rh-paths h2{font-size:var(--lbic-h3)!important;font-weight:600!important;}
/* Existing application roots previously supplied independent system fonts and red accents. */
body main#main .lbic-tw{--tw-bg:var(--lbic-surface);--tw-panel:var(--lbic-brand-light);--tw-ink:var(--lbic-text);--tw-sub:var(--lbic-muted);--tw-line:var(--lbic-border);--tw-brand:var(--lbic-brand-primary);--tw-brand-ink:var(--lbic-brand-white);--tw-accent:var(--lbic-brand-primary);--tw-chip:var(--lbic-secondary-tint);--tw-shadow:var(--shadow);font-family:var(--font-body);font-size:17px;line-height:1.6;}
body.page-id-45 #lbic-owner-archive{font-family:var(--font-body);color:var(--lbic-text);background:var(--lbic-brand-light);border-color:var(--lbic-border);}
body.page-id-45 #lbic-owner-archive h2{color:var(--lbic-brand-primary);}
body.page-id-45 #lbic-owner-archive p{color:var(--lbic-muted);}
body main :is(.tw-btn-primary,.acct-btn,.iit-btn-primary),body.page-id-45 #lbic-owner-archive button{background:var(--lbic-brand-primary)!important;border-color:var(--lbic-brand-primary)!important;color:var(--lbic-brand-white)!important;}
body main :is(.tw-btn-primary,.acct-btn,.iit-btn-primary):hover,body.page-id-45 #lbic-owner-archive button:hover{background:var(--lbic-brand-dark)!important;border-color:var(--lbic-brand-dark)!important;color:var(--lbic-brand-white)!important;}
body main :is(.tw-btn,.acct-btn,.iit-btn),body.page-id-45 #lbic-owner-archive button{font-family:var(--font-body)!important;font-size:16px!important;line-height:1.1!important;font-weight:600;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;}
body main :is(.tw-btn-primary,.acct-btn,.iit-btn-primary):focus-visible,body.page-id-45 #lbic-owner-archive button:focus-visible{outline:3px solid var(--lbic-brand-primary);outline-offset:3px;}

/* The recommended-step title has heading presentation in existing strong markup. */
body main .tw-nextbig strong{font-family:var(--font-head);font-size:var(--lbic-h3);line-height:var(--lbic-heading-leading);font-weight:600;color:var(--lbic-brand-primary);}

/* Preserve the light secondary account-action hierarchy. */
body main .acct-btn.acct-btn--secondary{background:var(--lbic-secondary-tint)!important;border-color:var(--lbic-border)!important;color:var(--lbic-brand-primary)!important;}
body main .acct-btn.acct-btn--secondary:hover{background:var(--lbic-powder)!important;border-color:var(--lbic-border-strong)!important;color:var(--lbic-brand-primary)!important;}

/* main#main is the observed shell main element. This root rule outranks the
   legacy automatic dark preference so Workspace retains the homepage light-blue palette. */

/* Existing calculator presentation has an important component heading override. */
body:not(.page-id-4) main#main :is(.lbic-lcs h2.expenses-heading,.lbic-ecp form h2){font-size:var(--lbic-h2)!important;}

/* 2026-10-12: Center the five Learn & Tools introductions using the shell container width and gutters. */
body:is(.page-id-109,.page-id-110,.page-id-111,.page-id-112,.page-id-113) main#main{box-sizing:border-box;width:100%;max-width:var(--max,1180px);margin-inline:auto;padding:32px 16px 48px;}
body:is(.page-id-109,.page-id-110,.page-id-111,.page-id-112,.page-id-113) main#main > :first-child{margin-top:0;}
body:is(.page-id-109,.page-id-110,.page-id-111,.page-id-112,.page-id-113) main#main > :last-child{margin-bottom:0;}
@media(min-width:768px){body:is(.page-id-109,.page-id-110,.page-id-111,.page-id-112,.page-id-113) main#main{padding-inline:32px;}}
