/* Vision Portal on LWR: the page-frame rules the Aura template supplied.
 *
 * On the Aura site these come from the platform (the Customer Service template's header,
 * "themeHeaderCompact", and its content area). KJSTheme is written against that markup and
 * overrides parts of it. The LWR site has no such header, so c/visionThemeLayout renders
 * the same elements with the same class names, and this file restates the platform's own
 * rules for them: same selectors, same order, copied by script from the live Aura page
 * (kjm-uat-dev, 2026-11-12; rules for parts the portal does not use, such as the search
 * box and the app launcher, left out; theme tokens replaced by their values). It loads BEFORE KJSTheme, as the platform's rules did, so
 * every KJSTheme rule wins or loses exactly as it does on the Aura site.
 *
 * Do not style the portal here. Portal styling stays in KJSTheme and the components.
 */

/* ---- document defaults: where the Aura site's base sheet differs from the LWR one ---- */
/* (Both ship the same SLDS reset; these are the rules that differ, Aura's side, with the
   site's branding values filled in.) */
html { font-family: Montserrat; background: #faf6ee; color: rgba(0, 0, 0, 0.8); }
body { font-family: Montserrat; }
h1, h2, h3, h4, h5, h6 { font-family: Montserrat; }
a { color: #0d73bb; text-decoration: none; transition: color 0.1s linear; }
a:hover, a:focus { text-decoration: underline; color: #0a588f; }
a:active { color: #0a588f; }
a:active, a:focus { color: #0a588f; }
::selection { background: rgb(180, 213, 254); }

/* ---- the Aura template's own rules for the frame, in its order ---- */
.siteforceContentArea .comm-layout-column:not(:empty) { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.forceCommunityThemeLogo { display: inline-block; }
.forceCommunityThemeLogo .logoImage { background-size: contain; background-repeat: no-repeat; background-position: center center; height: 50px; }
.forceCommunityThemeHeaderBase { color: #0d73bb; width: 100%; position: relative; z-index: 5; }
.forceCommunityThemeHeaderBase .themeBgImage, .forceCommunityThemeHeaderBase .themeBgOverlay { width: 100%; height: 100%; position: absolute; inset: 0px; z-index: 0; }
.forceCommunityThemeHeaderBase .themeBgImage { z-index: 1; }
.forceCommunityThemeHeaderBase .themeBgOverlay { z-index: 2; }
@media only screen and (max-width: 47.9375em) { .forceCommunityThemeHeaderBase { height: 48px; } }
.forceCommunityThemeHeaderCompact { padding-left: 20px; padding-right: 20px; }
.forceCommunityThemeHeaderCompact .themeHeaderInner { opacity: 1; display: flex; position: relative; z-index: 3; align-items: center; height: 100%; min-height: 34px; max-width: 100%; }
.forceCommunityThemeHeaderCompact .themeLogo { display: flex; }
.forceCommunityThemeHeaderCompact .themeNav { flex-grow: 1; flex-basis: 0px; min-width: 0px; }
.forceCommunityThemeHeaderCompact .themeUtil .slds-button:focus { outline: rgb(11, 92, 171) auto 1px; outline-offset: 1px; }
.forceCommunityThemeHeaderCompact .themeUtils { flex-grow: 0; text-align: right; padding-left: 60px; }
.forceCommunityThemeHeaderCompact .themeUtils .themeUtilsContainer { display: flex; justify-content: flex-end; align-items: center; }
.forceCommunityThemeHeaderCompact .themeUtils .themeUtil { margin-left: 20px; display: flex; }
.forceCommunityThemeHeaderCompact .themeUtils .themeUtil .slds-icon_container { margin: 0px; width: 18px; height: 18px; }
.forceCommunityThemeHeaderCompact .comm-hide { display: none; }
@media only screen and (min-width: 48em) { .forceCommunityThemeHeaderCompact .themeHeaderInner.centerAlignLogo-false.searchStyle-expanded .themeUtils .themeUtilsContainer { max-width: 50vw; } }
@media only screen and (min-width: 48em) { .forceCommunityThemeHeaderCompact .themeLogo { margin-right: 40px; } }
@media only screen and (min-width: 48em) { .forceCommunityThemeHeaderCompact .themeUtils .themeUtil svg { height: 100%; } }
@media only screen and (max-width: 47.9375em) { .forceCommunityThemeHeaderCompact { padding-left: 0px; padding-right: 0px; } }
@media only screen and (max-width: 47.9375em) { .forceCommunityThemeHeaderCompact .themeLogo { position: absolute; left: 50%; transform: translateX(-50%); padding-top: 1px; } }
@media only screen and (max-width: 47.9375em) { .forceCommunityThemeHeaderCompact .themeHeaderInner[style] { min-height: auto; padding: 10px 12px !important; } }
@media only screen and (max-width: 47.9375em) { .forceCommunityThemeHeaderCompact .themeNav { position: fixed; top: 49px; left: 0px; right: 0px; width: 100%; max-height: calc(100% - 48px); overflow: auto; z-index: 5002; color: rgb(255, 255, 255); } }
@media only screen and (max-width: 47.9375em) { .forceCommunityThemeHeaderCompact .themeUtils { flex-grow: 1; text-align: right; padding-left: 0px; } }
@media only screen and (max-width: 47.9375em) { .forceCommunityThemeHeaderCompact .themeUtils .themeUtil { margin-left: 2px; height: 30px; display: flex; align-items: center; } }
@media only screen and (max-width: 47.9375em) { .forceCommunityThemeHeaderCompact .themeUtils .themeUtilsContainer:not(:last-child) { margin-right: 10px; } }
@media only screen and (max-width: 47.9375em) { .forceCommunityThemeHeaderCompact .themeUtils .themeProfileMenu { margin-left: 11px; position: relative; top: 1px; } }
@media only screen and (max-width: 350px) { .forceCommunityThemeHeaderCompact .themeLogo { left: 103px; } }
.siteforceThemeLayoutStarter { position: relative; z-index: 1; font-size: 0.8125rem; width: 100%; touch-action: manipulation; }
.siteforceThemeLayoutStarter * { box-sizing: border-box; }
.siteforceThemeLayoutStarter ::selection { background: rgb(180, 213, 254) !important; }
.siteforceThemeLayoutStarter .header { transition: background 0.5s; }
.siteforceThemeLayoutStarter.isHeaderPinned-true > .a11y-banner > .header { position: fixed; top: 0px; inset-inline: 0px; z-index: 5; }
.siteforceThemeLayoutStarter > .body:focus { outline: none; }

.siteforceThemeLayoutStarter > .body.isPageWidthFixed-true { margin: 0px auto; max-width: 100%; }

/* ---- components in a column ---- */
/* Aura stacks a column's components as blocks, each in a wrapper with a bottom margin, so
   the margin of a component that renders nothing collapses away. LWR stacks them in a flex
   column, where it would not. Stack them as blocks here too. (:where keeps the second rule
   weightless: a component's own :host display always wins.) */
community_layout-column .column-content { display: block !important; }
:where(community_layout-column .column-content) > :where(*) { display: block; }

/* ---- sections (Aura forceCommunity:section inside a dynamic layout) ---- */
/* An LWR section's column stands in for the Aura section's column, 16px padded. */
.siteforceDynamicLayout community_layout-column { padding: 16px; }
/* Side by side (64em and up), Aura's columns share a 16px gutter (8px each) and LWR's put a
   spacer between them. Stacked on a tablet (48em to 64em) each keeps its full 16px; stacked
   on a phone (below 48em) Aura's keep 8px between. */
.siteforceDynamicLayout community_layout-column-spacer { display: none; }
.siteforceDynamicLayout community_layout-column:not(:only-of-type):first-of-type { padding: 16px 8px 16px 16px; }
.siteforceDynamicLayout community_layout-column:not(:only-of-type):last-of-type { padding: 16px 16px 16px 8px; }
@media (max-width: 63.9375em) {
    .siteforceDynamicLayout community_layout-column:not(:only-of-type):first-of-type,
    .siteforceDynamicLayout community_layout-column:not(:only-of-type):last-of-type { padding: 16px; }
}
@media (max-width: 47.9375em) {
    .siteforceDynamicLayout community_layout-column:not(:only-of-type):first-of-type { padding: 16px 16px 8px; }
    .siteforceDynamicLayout community_layout-column:not(:only-of-type):last-of-type { padding: 8px 16px 16px; }
}

/* ---- sign-in pages ---- */
/* The Aura sign-in pages run in the template's lighter login app, whose sheet has no
   vertical padding rule for the content column. */
.vision-frame_no-header .siteforceContentArea .comm-layout-column:not(:empty) { padding-top: 0; padding-bottom: 0; }

/* ---- what the Aura template does from script ---- */
/* The spacer under the fixed header takes the header's height. */
.siteforceThemeLayoutStarter > .a11y-banner > .spacer { height: 96px; }
@media only screen and (max-width: 47.9375em) {
    .siteforceThemeLayoutStarter > .a11y-banner > .spacer { height: 48px; }
    /* The header's nav slot gets the class comm-hide on phones. */
    .forceCommunityThemeHeaderCompact .themeNav { display: none; }
}

/* ── The platform's pop-up message (lightning/toast) ─────────────────────────────────────
   Its heading is an h2, which the theme's page-heading size and the heading font above
   would restyle. On the Aura site the pop-up's title is a 17px line in the body font. */
lightning-toast h2 { font-family: inherit; font-size: 17px !important; line-height: 21.25px; font-weight: 400 !important; }

/* ── Phones and tablets ──────────────────────────────────────────────────────────────────
   The Aura site serves the platform's touch styles to phone and tablet browsers by their
   identity (not by width). Measured against a desktop identity at the same width, exactly
   two things change: the root line height and the size of form labels. VisionLwrBoot puts
   vision-touch on <html> for the same browsers. */
html.vision-touch, html.vision-touch body { line-height: 1.375; }
html.vision-touch .slds-form-element__label { font-size: 0.875rem; }
/* The Aura sign-in pages run in the template's lighter login app, which keeps the desktop
   line height for every browser. */
html.vision-touch:has(.vision-frame_no-header), html.vision-touch:has(.vision-frame_no-header) body { line-height: 1.5; }
/* With the tighter lines the full header is 95px tall on a tablet, and the Aura script
   sizes the spacer under it to match. */
@media (min-width: 48em) {
    html.vision-touch .siteforceThemeLayoutStarter > .a11y-banner > .spacer { height: 95px; }
}

/* ── Platform form fields ────────────────────────────────────────────────────────────────
   An LWR site already has the platform's newer, higher-contrast form colours; the Aura site
   does not yet (its page carries slds-no-wcag). These four keep today's look. Delete them
   to adopt the platform's colours. (html in front: just above the platform's base rule,
   below its focus and error rules.) */
html .slds-form-element__label { color: rgba(0, 0, 0, 0.6); }
html .slds-input, html .slds-combobox__input.slds-input_faux, html .slds-listbox_vertical { border-color: rgb(147, 147, 147); }
html .slds-listbox_vertical { color: rgba(0, 0, 0, 0.8); }
html .slds-required { color: rgb(234, 0, 30); }
