/* Customer-facing type scale: page title > section title > panel title > label.
   This stylesheet follows page CSS and keeps card/form typography compact. */
body.deep-theme {
    --type-page:clamp(28px,2.4vw,34px);
    --type-section:clamp(22px,1.7vw,24px);
    --type-subsection:clamp(17px,1.4vw,20px);
    --heading-ink:#193b64;
    --heading-muted:#526983;
}
body.deep-theme #main-content h1 {
    font-size:var(--type-page);
    font-weight:650;
    line-height:1.25;
    letter-spacing:-.025em;
    text-wrap:balance;
    overflow-wrap:anywhere;
    margin-bottom:12px;
}
body.deep-theme #main-content h2 {
    font-size:var(--type-subsection);
    font-weight:600;
    line-height:1.35;
    letter-spacing:-.015em;
    text-wrap:balance;
    overflow-wrap:anywhere;
}
body.deep-theme #main-content :is(.dh-section-heading,.popular-services-heading,.arrivals-heading,.dh-collection-header,.ab-section-heading,.sd-related-heading) {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:12px 24px;
    margin-bottom:18px;
}
body.deep-theme #main-content :is(.dh-section-heading,.popular-services-heading,.arrivals-heading,.dh-collection-header,.ab-section-heading,.sd-related-heading)>div { min-width:0; }
body.deep-theme #main-content :is(.dh-section-heading,.popular-services-heading,.arrivals-heading,.dh-collection-header,.ab-section-heading,.sd-related-heading,.tiles-intro,.hardware-intro,.paint-intro,.electric-collection-header,.electrical-support-intro,.service-concierge-intro,.dh-business-grid,.dh-service,.ab-story-copy,.ab-values-copy,.ab-closing-panel,.cu-form-heading,.cu-resource-heading) h2,
body.deep-theme #main-content :is(.about-page>.container>section,.sd-section)>h2 {
    font-size:var(--type-section);
    font-family:inherit;
    font-weight:600;
    line-height:1.3;
    letter-spacing:-.02em;
    margin:0;
}
body.deep-theme #main-content :is(.dh-section-heading,.popular-services-heading,.arrivals-heading,.dh-collection-header,.ab-section-heading,.sd-related-heading) p {
    max-width:52ch;
    margin:7px 0 0;
    color:var(--heading-muted);
    font-size:13px;
    line-height:1.65;
    text-wrap:pretty;
}
/* Small, readable labels replace the competing badges and decorative rules. */
body.deep-theme #main-content :is(.deep-kicker,.eyebrow,.dh-hero-eyebrow,.dh-collection-eyebrow,.popular-services-eyebrow,.arrivals-eyebrow,.ab-eyebrow,.cu-eyebrow,.browse-eyebrow,.sd-eyebrow,.tiles-eyebrow,.hardware-eyebrow,.paint-eyebrow,.electric-collection-eyebrow,.electrical-support-eyebrow) {
    display:flex;
    align-items:center;
    gap:7px;
    width:fit-content;
    max-width:100%;
    margin:0 0 7px;
    padding:0;
    border:0;
    border-radius:0;
    background:none;
    box-shadow:none;
    font-size:10px;
    font-weight:600;
    line-height:1.6;
    letter-spacing:.09em;
    text-transform:uppercase;
    overflow-wrap:anywhere;
}
body.deep-theme #main-content :is(.deep-kicker,.dh-collection-eyebrow,.popular-services-eyebrow,.arrivals-eyebrow,.ab-eyebrow,.cu-eyebrow,.browse-eyebrow,.sd-eyebrow)::before,
body.deep-theme #main-content :is(.deep-kicker,.dh-collection-eyebrow,.popular-services-eyebrow,.arrivals-eyebrow,.ab-eyebrow,.cu-eyebrow,.browse-eyebrow,.sd-eyebrow)::after { content:none; }
body.deep-theme #main-content :is(.popular-services-eyebrow,.arrivals-eyebrow)>svg { display:none; }
body.deep-theme #main-content [class$="-eyebrow"] { font-size:10px; letter-spacing:.09em; line-height:1.6; }
/* Consistent section header geometry; existing section colours are retained. */
body.deep-theme #main-content :is(#shop-by-category,#popular-products,#bestselling-products,#upcoming-products) .dh-section-heading {
    padding:0;
    border:0;
    border-radius:0;
    background:none;
}
body.deep-theme #main-content #shop-by-room .dh-room-heading>div,
body.deep-theme #main-content .popular-services-intro,
body.deep-theme #main-content .dh-collection-list .dh-collection-intro { padding:0; border:0; }
body.deep-theme #main-content #shop-by-room h2 {
    font-family:inherit;
    font-size:var(--type-section);
    font-weight:650;
    line-height:1.3;
    letter-spacing:-.025em;
}
body.deep-theme #main-content .arrivals-heading h2 { text-decoration:none; }
body.deep-theme #main-content #shop-by-category h2::after,
body.deep-theme #main-content .service-concierge-intro h2::after { content:none; }
body.deep-theme #main-content :is(.dh-section-heading>a,.popular-services-browse,.arrivals-browse,.dh-collection-view,.sd-related-heading>a) {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    gap:7px;
    min-height:44px;
    padding:8px 12px;
    border:1px solid #cfdeec;
    border-radius:6px;
    background:#fff;
    color:#285b8c;
    font-size:12px;
    font-weight:600;
    line-height:1.4;
    white-space:nowrap;
    text-decoration:none;
}
body.deep-theme #main-content :is(.dh-section-heading>a,.popular-services-browse,.arrivals-browse,.dh-collection-view,.sd-related-heading>a):hover { background:#edf4fc; border-color:#9cb8d3; }
body.deep-theme #main-content :is(.dh-section-heading>a,.popular-services-browse,.arrivals-browse,.dh-collection-view,.sd-related-heading>a):focus-visible { outline:3px solid #285b8c; outline-offset:3px; }
/* Introductions use the same title/subtitle rhythm across page families. */
body.deep-theme #main-content .dh-storefront .dh-hero h1 { font-size:clamp(30px,2.6vw,36px); max-width:22ch; }
body.deep-theme #main-content :is(.browse-hero-grid,.cu-hero-grid,.help-hero-grid,.bulk-order-hero-grid,.provider-apply-hero-grid)>div>p,
body.deep-theme #main-content :is(.ab-hero-copy,.auth-card,.account-page-head,.welcome-banner)>p,
body.deep-theme #main-content :is(.dh-hero-description,.sd-intro) {
    max-width:60ch;
    font-size:14px;
    line-height:1.7;
    margin-top:0;
    margin-bottom:18px;
    text-wrap:pretty;
}
body.deep-theme #main-content :is(.browse-toolbar,.product-panel-heading,.product-lane-heading,.pdp-about-header,.pdp-spec-sheet-header,.cu-contact-info,.help-section-title,.account-panel-head,.card-heading) h2 {
    font-size:var(--type-subsection);
    line-height:1.35;
    margin:0 0 6px;
}
body.deep-theme #main-content :is(.hardware-products-heading,.paint-options-heading,.tiles-products-heading,.electrical-support-heading,.arrivals-more-heading) h3 {
    font-size:var(--type-subsection);
    font-weight:600;
    line-height:1.4;
    letter-spacing:-.015em;
}
body.deep-theme #main-content :is(.browse-filter-title,.profile-mini) h2 { font-size:14px; }
body.deep-theme #main-content .auth-story h2 { font-size:var(--type-section); }
/* Masthead: brand, navigation, supporting labels. Search stays readable. */
body.deep-theme .shell-header .shell-brand strong { font-size:23px; font-weight:700; line-height:1.2; letter-spacing:-.025em; }
body.deep-theme .shell-header .shell-brand small { font-size:10px; line-height:1.5; letter-spacing:.01em; }
body.deep-theme .shell-header .shell-nav-links>a { font-size:13px; font-weight:600; line-height:1.4; }
body.deep-theme .shell-header :is(.shell-account,.shell-cart-label) strong { font-size:12px; font-weight:600; }
body.deep-theme .shell-header :is(.shell-account,.shell-cart-label) small { font-size:10px; }
body.deep-theme .shell-header .shell-search input { font-size:14px; }
@media(max-width:767px) {
    body.deep-theme { --type-page:26px; --type-section:20px; --type-subsection:18px; }
    body.deep-theme #main-content .dh-storefront .dh-hero h1 { font-size:28px; line-height:1.25; }
    body.deep-theme #main-content :is(.dh-section-heading,.popular-services-heading,.arrivals-heading,.dh-collection-header,.ab-section-heading,.sd-related-heading) { align-items:center; gap:10px 12px; margin-bottom:16px; }
    body.deep-theme #main-content :is(.dh-section-heading,.popular-services-heading,.arrivals-heading,.sd-related-heading)>div:first-child { flex:1 1 180px; }
    body.deep-theme #main-content :is(.dh-section-heading,.popular-services-heading,.arrivals-heading) p { font-size:13px; }
    body.deep-theme #main-content :is(#shop-by-category,#popular-products,#bestselling-products,#upcoming-products) .dh-section-heading { padding-bottom:0; }
    body.deep-theme #main-content :is(.dh-section-heading>a,.popular-services-browse,.arrivals-browse,.dh-collection-view,.sd-related-heading>a) { padding:8px 10px; font-size:11px; }
    body.deep-theme .shell-header .shell-brand strong { font-size:20px; }
    body.deep-theme .shell-header .shell-search input { font-size:16px; }
}

/* Section title groups only: quiet label, clear title, supporting sentence.
   Page heroes, navigation, cards and section layouts retain their own styles. */
body.deep-theme #main-content :is(.dh-section-heading,.popular-services-heading,.arrivals-heading,.dh-collection-header,.ab-section-heading,.sd-related-heading,.collection-jump-heading) {
    text-align:left;
}
body.deep-theme #main-content :is(.dh-section-heading .deep-kicker,.popular-services-heading .popular-services-eyebrow,.arrivals-heading .arrivals-eyebrow,.dh-collection-header .dh-collection-eyebrow,.ab-section-heading .ab-eyebrow,.sd-related-heading .sd-eyebrow) {
    gap:8px;
    margin-bottom:6px;
    color:#4c6580;
    font-size:10px;
    font-weight:500;
    letter-spacing:.07em;
    line-height:1.6;
}
body.deep-theme #main-content :is(.dh-section-heading .deep-kicker,.popular-services-heading .popular-services-eyebrow,.arrivals-heading .arrivals-eyebrow,.dh-collection-header .dh-collection-eyebrow,.ab-section-heading .ab-eyebrow,.sd-related-heading .sd-eyebrow)::before {
    content:"";
    display:block;
    flex:0 0 16px;
    width:16px;
    height:2px;
    margin:0;
    border-radius:2px;
    background:#a47719;
    box-shadow:none;
}
body.deep-theme #main-content :is(.dh-section-heading,.popular-services-heading,.arrivals-heading,.dh-collection-header,.ab-section-heading,.sd-related-heading,.collection-jump-heading) h2 {
    font-size:var(--type-section);
    font-weight:600;
    letter-spacing:-.02em;
    line-height:1.35;
}
body.deep-theme #main-content :is(.tiles-intro-copy,.hardware-intro-copy,.paint-intro-copy,.electric-collection-intro,.electrical-support-copy,.service-concierge-intro)>p,
body.deep-theme #main-content .collection-jump-heading p {
    max-width:52ch;
    margin-top:7px;
    font-size:13px;
    line-height:1.65;
    text-wrap:pretty;
}
body.deep-theme #main-content :is(.tiles-eyebrow,.hardware-eyebrow,.paint-eyebrow,.electric-collection-eyebrow,.electrical-support-eyebrow,.service-concierge-eyebrow) {
    margin-bottom:6px;
    font-size:10px;
    font-weight:500;
    letter-spacing:.07em;
    line-height:1.6;
}
body.deep-theme #main-content .hardware-eyebrow>svg { width:14px; height:14px; flex-basis:14px; }

/* Collection intros stay content-sized when the header stacks on small screens. */
body.deep-theme #main-content .dh-collection-header .dh-collection-intro {
    flex:1 1 0%;
    min-width:0;
}
body.deep-theme #main-content .dh-collection-header h2 { max-width:none; }
@media(max-width:767px) {
    body.deep-theme #main-content .dh-collection-header {
        align-items:flex-start;
        gap:10px;
        padding-bottom:12px;
        margin-bottom:12px;
    }
    body.deep-theme #main-content .dh-collection-header .dh-collection-intro {
        flex:0 1 auto;
        width:100%;
    }
    body.deep-theme #main-content .dh-collection-header .dh-collection-eyebrow { margin-bottom:4px; }
    body.deep-theme #main-content .dh-collection-header p { margin-top:4px; line-height:1.5; }
}
