/*
 * Spider Digitizing — customer compact layer
 *
 * Loaded after the Avista vendor sheets on the public site and customer
 * account shell only. It keeps the cinematic identity, but removes the
 * oversized presentation spacing that makes real forms feel like a landing
 * page. Staff/admin deliberately do not load this file.
 */

/* Public site: tighter reading rhythm and a clearer form hierarchy. */
body.as-inner:not(.as-panel) #main .as-inner-hero {
    padding-top: clamp(74px, 8vw, 112px) !important;
    padding-bottom: clamp(40px, 5vw, 68px) !important;
}
body.as-inner:not(.as-panel) #main .as-inner-hero .as-h-1,
body.as-inner:not(.as-panel) #main .as-inner-hero .tx-title {
    font-size: clamp(2rem, 4.6vw, 3.7rem) !important;
    line-height: 1.04;
    margin-bottom: 12px;
}
body.as-inner:not(.as-panel) #main .as-inner-hero .tx-description {
    max-width: 62ch;
    font-size: .98rem;
    line-height: 1.55;
}
body.as-inner:not(.as-panel) #main .as-inner-hero .item-tags { margin-top: 18px; }
body.as-inner:not(.as-panel) #main .tx-section.pt-95 {
    padding-top: clamp(42px, 5vw, 70px) !important;
}
body.as-inner:not(.as-panel) #main .tx-section.pb-95,
body.as-inner:not(.as-panel) #main .tx-section.pb-100 {
    padding-bottom: clamp(42px, 5vw, 70px) !important;
}
body.as-inner:not(.as-panel) #main .tx-section.pt-80,
body.as-inner:not(.as-panel) #main .tx-section.pt-90,
body.as-inner:not(.as-panel) #main .tx-section.pt-100 {
    padding-top: clamp(36px, 4vw, 58px) !important;
}
body.as-inner:not(.as-panel) #main .tx-section.pb-80,
body.as-inner:not(.as-panel) #main .tx-section.pb-90,
body.as-inner:not(.as-panel) #main .tx-section.pb-110 {
    padding-bottom: clamp(36px, 4vw, 58px) !important;
}
body.as-inner:not(.as-panel) #main .as-cta-2-form-wrap {
    padding: clamp(22px, 3vw, 36px) !important;
    border-radius: 18px;
}
body.as-inner:not(.as-panel) #main .as-cta-2-form-content { margin-bottom: 20px; }
body.as-inner:not(.as-panel) #main .as-cta-2-form-content .title {
    font-size: clamp(1.65rem, 3vw, 2.45rem) !important;
    line-height: 1.08;
    margin-bottom: 8px;
}
body.as-inner:not(.as-panel) #main .as-cta-2-form-content .disc,
body.as-inner:not(.as-panel) #main .as-cta-2-form-content .qf-micro {
    font-size: .9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Form controls remain comfortable to tap while wasting less vertical space. */
body.as-inner:not(.as-panel) #main .as-cta-2-form-input {
    height: 44px !important;
    min-height: 44px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-size: .94rem;
    margin-bottom: 8px !important;
}
body.as-inner:not(.as-panel) #main textarea.as-cta-2-form-input {
    height: 96px !important;
    min-height: 96px;
}
body.as-inner:not(.as-panel) #main .input-box,
body.as-inner:not(.as-panel) #main .qf-fields,
body.as-inner:not(.as-panel) #main .checkout-desk,
body.as-inner:not(.as-panel) #main .contact-desk { gap: 18px 24px; }
body.as-inner:not(.as-panel) #main .as-cta-2-form .input-box {
    gap: 18px;
    margin-bottom: 6px;
}
body.as-inner:not(.as-panel) #main .contact-field .as-cta-2-form-input,
body.as-inner:not(.as-panel) #main .checkout-field .as-cta-2-form-input,
body.as-inner:not(.as-panel) #main .quote-field .as-cta-2-form-input { margin-bottom: 14px; }
body.as-inner:not(.as-panel) #main .qf-fields { row-gap: 14px; }
body.as-inner:not(.as-panel) #main .qf-rail { margin-bottom: 24px; }
body.as-inner:not(.as-panel) #main .qf-choice { padding: 14px 16px 13px; border-radius: 12px; }
body.as-inner:not(.as-panel) #main .qf-choices { gap: 12px; margin-bottom: 20px; }
body.as-inner:not(.as-panel) #main .qf-actions { margin-top: 22px; padding-top: 18px; }
body.as-inner:not(.as-panel) #main .qf-estimate__panel { padding: 22px !important; }
body.as-inner:not(.as-panel) #main .qf-estimate__range { font-size: 2rem; }
body.as-inner:not(.as-panel) #main .qf-textarea { height: 96px; }

/* The homepage hero is still an event, but should expose the first action. */
body.has-hero-3 #main .as-hero-3-area { min-height: min(680px, 74vh); }
body.has-hero-3 #main .as-hero-3-height { height: auto !important; min-height: 0 !important; }
body.has-hero-3 #main .as-hero-3-top { margin-bottom: 56px !important; }
body.has-hero-3 #main .as-hero-3-big-title { display: none !important; }
body.has-hero-3 #main .as-hero-3-area {
    min-height: 500px !important;
    padding-top: 18px !important;
}
body.has-hero-3 #main .as-hero-3-area .as-h-1,
body.has-hero-3 #main .as-hero-3-area h1 { font-size: clamp(2.35rem, 5.2vw, 4.65rem); line-height: 1.02; }
body.has-hero-3 #main .as-hero-3-content .disc,
body.has-hero-3 #main .as-hero-3-content .tx-description { color: #d0d0d4 !important; }
body.has-hero-3 #main .as-hero-3-content .item-tags { margin-top: 18px; }
body.has-hero-3 #main .as-hero-3-cta { margin-top: 20px; }

/* The homepage is a shop floor, not a scroll experiment. Keep the first
   quote action and the supporting sections within a practical rhythm. */
body.has-hero-3 #main .sp-quickstart {
    padding-top: 44px !important;
    padding-bottom: 48px !important;
}
body.has-hero-3 #main .sp-quickstart__grid { gap: 28px; }
body.has-hero-3 #main .sp-quickstart-title {
    font-size: clamp(1.8rem, 3.4vw, 2.8rem) !important;
    margin: 10px 0 12px;
}
body.has-hero-3 #main .sp-quickstart-disc { font-size: .92rem; margin-bottom: 14px; }
body.has-hero-3 #main .sp-flow { margin-top: 18px; }
body.has-hero-3 #main .sp-flow__step { gap: 12px; padding: 12px 0; }
body.has-hero-3 #main .sp-flow__title { font-size: 14px; margin-bottom: 2px; }
body.has-hero-3 #main .sp-flow__disc { font-size: 13px; line-height: 1.45; }
body.has-hero-3 #main .sp-web,
body.has-hero-3 #main .as-services-3-area,
body.has-hero-3 #main .as-projects-3-area,
body.has-hero-3 #main .as-marquee-text-3-area { padding-block: 44px !important; }
body.has-hero-3 #main .sp-pricing__title { font-size: clamp(2rem, 4vw, 3.5rem) !important; }
body.has-hero-3 #main .sp-shelf .as-projects-3-sec-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
    margin-bottom: 20px;
}
body.has-hero-3 #main .sp-sec-disc { margin-top: -8px; font-size: .92rem; }

/* Home quick quote: Liberty-style two-up contact rows, with only the file and
   notes rows spanning the card. This is the main conversion form, so it gets
   the densest treatment on the site. */
body.has-hero-3 #main .quick-quote .as-cta-2-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 2px;
}
body.has-hero-3 #main .quick-quote .qq-field--full,
body.has-hero-3 #main .quick-quote .as-cta-2-form > .as-pr-btn-3,
body.has-hero-3 #main .quick-quote .as-cta-2-form > .as-btn,
body.has-hero-3 #main .quick-quote .as-cta-2-form > .form-note,
body.has-hero-3 #main .quick-quote .as-cta-2-form > .item-tags,
body.has-hero-3 #main .quick-quote .as-cta-2-form > .as-recaptcha-note { grid-column: 1 / -1; }
body.has-hero-3 #main .quick-quote .qq-field--full .as-cta-2-form-input { margin-bottom: 5px !important; }
body.has-hero-3 #main .quick-quote .dropzone { margin-bottom: 5px; padding: 10px 12px; }
body.has-hero-3 #main .quick-quote .form-note { margin-top: 8px; }

/* Liberty-style form density: labels stay readable, controls do not create a
   full extra line of empty space after every field. */
body.as-inner:not(.as-panel) #main .as-auth-area {
    padding-top: clamp(24px, 4vw, 56px) !important;
    padding-bottom: 46px !important;
}
body.as-inner:not(.as-panel) #main .as-auth-card {
    max-width: 660px;
    padding: 30px 30px 28px !important;
}
body.as-inner:not(.as-panel) #main .as-auth-card .as-cta-2-form-content .disc { margin-bottom: 14px; }
body.as-inner:not(.as-panel) #main .as-auth-card .as-form-section {
    margin-top: 18px;
    padding-top: 18px;
}
body.as-inner:not(.as-panel) #main .as-auth-card .as-form-section-title { margin-bottom: 10px; }
body.as-inner:not(.as-panel) #main .as-auth-card .field-hint,
body.as-inner:not(.as-panel) #main .as-auth-card .field-error { margin-bottom: 8px; }

/* Bench stations are useful proof, but they should read as compact content
   blocks like Liberty's service sections rather than full-screen chapters. */
body.as-inner:not(.as-panel) #main .bench-station {
    min-height: clamp(330px, 48vh, 540px);
}
body.as-inner:not(.as-panel) #main .bench-station__content {
    padding-block: 38px 42px;
}
body.as-inner:not(.as-panel) #main .bench-station__title {
    font-size: clamp(1.8rem, 3.8vw, 3rem);
}
body.as-inner:not(.as-panel) #main .bench-station__lede { font-size: .96rem; line-height: 1.55; }
body.as-inner:not(.as-panel) #main .bench-caption { bottom: 32px; padding: 14px 18px; }

/* Bundle and direct checkout use the same three-column contact row. */
body.as-inner:not(.as-panel) #main .quote-desk .as-cta-2-form .input-box,
body.as-inner:not(.as-panel) #main .checkout-form .as-cta-2-form .input-box {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 4px;
}
body.as-inner:not(.as-panel) #main .quote-desk .quote-field .as-cta-2-form-input,
body.as-inner:not(.as-panel) #main .checkout-form .checkout-field .as-cta-2-form-input { margin-bottom: 7px !important; }
body.as-inner:not(.as-panel) #main .quote-desk textarea.as-cta-2-form-input,
body.as-inner:not(.as-panel) #main .checkout-form textarea.as-cta-2-form-input { height: 78px !important; min-height: 78px; }

/* Customer panel: dense, calm utility UI. The admin shell is intentionally
   excluded so staff queue density remains under its own design contract. */
.as-account .as-inner-hero.as-inner-hero--panel {
    padding-top: 56px !important;
    padding-bottom: 34px !important;
}
.as-account .as-inner-hero.as-inner-hero--panel .as-h-1 {
    font-size: clamp(1.85rem, 3.4vw, 2.8rem) !important;
    margin-bottom: 8px;
}
.as-account .as-inner-hero.as-inner-hero--panel .tx-description { font-size: .9rem; }
.as-account .as-admin-topbar { padding-top: 10px; padding-bottom: 10px; }
.as-account .as-admin-rail { gap: 20px; padding: 20px 18px; }
.as-account main#main .tx-section.pb-100,
.as-account main#main .tx-section.pb-95 { padding-bottom: 48px !important; }
.as-account main#main .as-cta-2-form-wrap { padding: 24px !important; border-radius: 16px; }
.as-account main#main .as-cta-2-form-input { min-height: 42px; padding-block: 9px !important; font-size: .92rem; }
.as-account main#main .as-cta-2-form-input { height: 44px !important; min-height: 44px; margin-bottom: 8px !important; }
.as-account main#main textarea.as-cta-2-form-input { height: 92px !important; min-height: 92px; }
.as-account main#main .as-cta-2-form-content { margin-bottom: 16px; }
.as-account main#main .as-cta-2-form-content .title { font-size: clamp(1.45rem, 2.5vw, 2rem) !important; }
.as-account .as-data-table { font-size: 13.5px; }
.as-account .as-data-table th,
.as-account .as-data-table td { padding: 10px 12px; }
.as-account .acct-profile form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.as-account .acct-profile form > .profile-section,
.as-account .acct-profile form > button,
.as-account .acct-profile form > .as-pr-btn-3 { grid-column: 1 / -1; }
.as-account .acct-profile .profile-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin-top: 12px;
    padding-top: 16px;
}
.as-account .acct-profile .profile-section-title { grid-column: 1 / -1; margin-bottom: 2px; }

/* The account drawer's trigger lives outside the sliding rail so it stays
   reachable while the drawer is closed. */
.as-account-nav-scrim { display: none; }
@media (max-width: 999px) {
    .as-account.nav-open { overflow: hidden; }
    .as-account .as-admin-rail { padding-top: 76px; overflow-y: auto; }
    .as-account .as-admin-rail nav a,
    .as-account .as-admin-rail__exit { transition-property: color, background-color, border-color; }
    .js .as-account .as-admin-rail { visibility: hidden; }
    .js .as-account.nav-open .as-admin-rail { visibility: visible; }
    .as-account .as-account-nav-scrim:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1100;
        background: rgba(0, 0, 0, 0.6);
    }
    html:not(.js) .as-account .as-admin-rail {
        position: static;
        width: auto;
        height: auto;
        padding-top: 20px;
        transform: none;
    }
    html:not(.js) .as-account .as-panel-nav-toggle { display: none; }
}

@media (max-width: 767px) {
    body.as-inner:not(.as-panel) #main .as-cta-2-form-wrap,
    .as-account main#main .as-cta-2-form-wrap { padding: 20px 16px !important; }
    .as-account .acct-profile form,
    .as-account .acct-profile .profile-section { grid-template-columns: 1fr; }
    .as-account .acct-profile form > .profile-section,
    .as-account .acct-profile .profile-section-title { grid-column: auto; }
    .as-account .field input:not([type="checkbox"]):not([type="radio"]),
    .as-account .field select,
    .as-account .field textarea { font-size: 16px; }
    body.has-hero-3 #main .quick-quote .as-cta-2-form { grid-template-columns: 1fr; }
    body.has-hero-3 #main .quick-quote .qq-field--full,
    body.has-hero-3 #main .quick-quote .as-cta-2-form > .as-pr-btn-3,
    body.has-hero-3 #main .quick-quote .as-cta-2-form > .as-btn,
    body.has-hero-3 #main .quick-quote .as-cta-2-form > .form-note,
    body.has-hero-3 #main .quick-quote .as-cta-2-form > .item-tags,
    body.has-hero-3 #main .quick-quote .as-cta-2-form > .as-recaptcha-note { grid-column: auto; }
    body.as-inner:not(.as-panel) #main .quote-desk .as-cta-2-form .input-box,
    body.as-inner:not(.as-panel) #main .checkout-form .as-cta-2-form .input-box { grid-template-columns: 1fr; }
}

/* Original public header proportions: full Logo-03 lockup and the normal
   desktop nav. The content below remains compact, but the brand chrome gets
   its original visual authority back. */
@media (min-width: 1200px) {
    body.as-inner:not(.as-panel) .as-header-3-logo .brand__lockup {
        display: block;
        width: auto;
        height: 60px;
    }
    body.as-inner:not(.as-panel) .as-header-3-wrap { padding-block: 12px; }
}
@media (max-width: 1199px) {
    body.as-inner:not(.as-panel) .as-header-3-logo .brand__lockup { height: 48px; width: auto; }
}

/* The restored first home section: original editorial image hero, bounded so
   it feels like a strong opening panel rather than a full-page scroll trap. */
body.has-hero-3 #main .legacy-home-hero {
    position: relative;
    min-height: min(590px, 72vh);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    background-color: #080c1a;
    background-size: cover;
    background-position: center;
}
body.has-hero-3 #main .legacy-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(8,12,26,.22), rgba(8,12,26,.88));
    pointer-events: none;
}
body.has-hero-3 #main .legacy-home-hero .swiper,
body.has-hero-3 #main .legacy-home-hero .swiper-wrapper,
body.has-hero-3 #main .legacy-home-hero .swiper-slide,
body.has-hero-3 #main .legacy-home-hero .at-hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
body.has-hero-3 #main .legacy-home-hero .at-hero__slide {
    background-size: cover;
    background-position: center;
}
body.has-hero-3 #main .legacy-home-hero .at-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 44px;
    padding-bottom: 48px;
}
body.has-hero-3 #main .legacy-home-hero .at-hero__kicker {
    margin: 0 0 12px;
    color: #d2d4d8;
    font-family: var(--as-font-2, monospace);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
body.has-hero-3 #main .legacy-home-hero h1 {
    max-width: 12ch;
    margin: 0 0 12px;
    color: #f2f3ef;
    font-family: var(--at-serif, var(--as-font-3, sans-serif));
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.02;
}
body.has-hero-3 #main .legacy-home-hero h1 em { color: #e02742; font-style: italic; }
body.has-hero-3 #main .legacy-home-hero .at-hero__sub {
    max-width: 48ch;
    margin: 0 0 20px;
    color: #d0d2d6;
    font-size: 1rem;
    line-height: 1.55;
}
body.has-hero-3 #main .legacy-home-hero .at-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
body.has-hero-3 #main .legacy-home-hero .at-hero__actions .btn {
    min-height: 44px;
    padding: 11px 20px;
}
body.has-hero-3 #main .legacy-home-hero .swiper-pagination { z-index: 3; text-align: left; padding-bottom: 20px; }
@media (max-width: 767px) {
    body.has-hero-3 #main .legacy-home-hero { min-height: 520px; }
    body.has-hero-3 #main .legacy-home-hero .at-hero__content { padding: 34px 12px 38px; }
    body.has-hero-3 #main .legacy-home-hero h1 { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    body.as-inner:not(.as-panel) #main *, .as-account main#main * { transition-duration: .01ms !important; }
}

/* ========================================================================== 
   FINAL COMPACT SCALE
   The vendor theme was authored as a presentation template: 60px display
   headings, 50px inputs, and generous section bands. Liberty's working site
   reads like a compact service desk. These final rules are intentionally
   explicit and loaded after every page's meta styles.
   ========================================================================== */
body.as-inner:not(.as-panel) #main {
    font-size: 14px;
}
body.as-inner:not(.as-panel) #main h1.as-h-1,
body.as-inner:not(.as-panel) #main h1.tx-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
    line-height: 1.04 !important;
}
body.as-inner:not(.as-panel) #main h2.as-h-1,
body.as-inner:not(.as-panel) #main h2.tx-title,
body.as-inner:not(.as-panel) #main .as-projects-3-sec-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    line-height: 1.08 !important;
}
body.as-inner:not(.as-panel) #main h3.as-h-1,
body.as-inner:not(.as-panel) #main h3.tx-title {
    font-size: clamp(1.15rem, 1.8vw, 1.45rem) !important;
    line-height: 1.12 !important;
}
body.as-inner:not(.as-panel) #main .as-p-1,
body.as-inner:not(.as-panel) #main .tx-description {
    font-size: .9rem;
    line-height: 1.5;
}
body.as-inner:not(.as-panel) #main .tx-section {
    padding-top: 34px !important;
    padding-bottom: 38px !important;
}
body.as-inner:not(.as-panel) #main .as-inner-hero {
    padding-top: 58px !important;
    padding-bottom: 34px !important;
}
body.as-inner:not(.as-panel) #main .as-inner-hero h1.tx-title {
    font-size: clamp(1.7rem, 2.8vw, 2.3rem) !important;
}
body.as-inner:not(.as-panel) #main .as-cta-2-form-wrap {
    padding: 20px !important;
    border-radius: 14px;
}
body.as-inner:not(.as-panel) #main .as-cta-2-form-content {
    margin-bottom: 12px !important;
}
body.as-inner:not(.as-panel) #main .as-cta-2-form-content .title {
    font-size: clamp(1.35rem, 2.3vw, 1.9rem) !important;
}
body.as-inner:not(.as-panel) #main .as-cta-2-form-input {
    font-size: .88rem !important;
}
body.as-inner:not(.as-panel) #main .qf-panel .wa_title_spilt_1,
body.as-inner:not(.as-panel) #main .qf-panel .wa_title_spilt_1 * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
body.as-inner:not(.as-panel) #main .qf-panel .qf-micro { margin-bottom: 12px !important; }
body.as-inner:not(.as-panel) #main .qf-panel .qf-rail { margin-bottom: 18px !important; }
body.as-inner:not(.as-panel) #main .qf-panel .qf-group-label { margin-top: 16px; }
body.as-inner:not(.as-panel) #main .qf-panel .qf-choice {
    padding: 10px 12px !important;
    gap: 5px;
    border-radius: 10px;
}
body.as-inner:not(.as-panel) #main .qf-panel .qf-choice__title { font-size: 14px; }
body.as-inner:not(.as-panel) #main .qf-panel .qf-choice__desc { font-size: 12px; line-height: 1.35; }
body.as-inner:not(.as-panel) #main .qf-panel .qf-choice__token { font-size: 9px; }
body.as-inner:not(.as-panel) #main .qf-panel .qf-choices { gap: 8px; margin: 8px 0 14px; }
body.as-inner:not(.as-panel) #main .qf-panel .qf-fields { gap: 8px 14px; }
body.as-inner:not(.as-panel) #main .qf-panel .qf-field { gap: 4px; }
body.as-inner:not(.as-panel) #main .qf-panel .qf-label { font-size: 14px; }
body.as-inner:not(.as-panel) #main .qf-panel .qf-actions { margin-top: 14px; padding-top: 12px; }
body.as-inner:not(.as-panel) #main .qf-panel .qf-under { margin-top: 10px; }
body.as-inner:not(.as-panel) #main .sp-quickstart,
body.as-inner:not(.as-panel) #main .sp-web,
body.as-inner:not(.as-panel) #main .as-services-3-area,
body.as-inner:not(.as-panel) #main .as-projects-3-area,
body.as-inner:not(.as-panel) #main .as-marquee-text-3-area {
    padding-top: 34px !important;
    padding-bottom: 38px !important;
}
body.as-inner:not(.as-panel) #main .sp-pricing__visual { min-height: 320px; }
body.as-inner:not(.as-panel) #main .sp-pricing__title { font-size: clamp(1.9rem, 3.5vw, 3rem) !important; }
body.as-inner:not(.as-panel) #main .sp-shelf .as-projects-3-sec-title { font-size: clamp(2rem, 4vw, 3.2rem) !important; }
body.as-inner:not(.as-panel) #main .bench-station {
    min-height: clamp(280px, 38vh, 420px);
}
body.as-inner:not(.as-panel) #main .bench-station__content { padding-block: 26px 30px; }

/* Customer panel gets the same working-scale typography without touching the
   staff/admin body. */
.as-account main#main {
    font-size: 14px;
}
.as-account main#main h1.as-h-1,
.as-account main#main h1.tx-title { font-size: clamp(1.8rem, 3vw, 2.6rem) !important; }
.as-account main#main h2.as-h-1,
.as-account main#main h2.tx-title { font-size: clamp(1.45rem, 2.4vw, 2rem) !important; }
.as-account main#main .tx-section { padding-top: 28px !important; padding-bottom: 34px !important; }
.as-account .as-inner-hero.as-inner-hero--panel { padding-top: 40px !important; padding-bottom: 24px !important; }
.as-account main#main .as-cta-2-form-wrap { padding: 18px !important; }
.as-account main#main .as-data-table th,
.as-account main#main .as-data-table td { padding: 8px 10px; }

/* Chrome and action scale, not just page headings. */
body.as-inner:not(.as-panel) .as-header-3-wrap { padding-block: 6px; gap: 16px; }
body.as-inner:not(.as-panel) .as-header-3-logo .brand__lockup { height: 44px; }
body.as-inner:not(.as-panel) .as-header-3-action-link { gap: 14px; }
body.as-inner:not(.as-panel) .as-main-navigation .navbar-nav > li > a,
body.as-inner:not(.as-panel) .as-main-navigation .navbar-nav > li > .as-nav-item__link,
body.as-inner:not(.as-panel) .as-main-navigation .navbar-nav > li > .as-mega__toggle {
    font-size: 13px !important;
    padding: 10px 8px !important;
}
body.as-inner:not(.as-panel) .as-pr-btn-3,
.as-account .as-pr-btn-3 {
    font-size: 13px !important;
    padding: 11px 22px !important;
    min-height: 44px;
}
body.as-inner:not(.as-panel) .as-mega__grid { gap: 20px; }
body.as-inner:not(.as-panel) .as-mega__panel { padding: 18px 24px; }
body.as-inner:not(.as-panel) #main .as-hero-3-content .item-tags,
body.as-inner:not(.as-panel) #main .as-hero-3-cta {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Clean horizontal wordmark: the source artwork's tall spider dominates a
   compact bar, so the header uses the approved mark plus a small text lockup. */
.as-header-3-logo.brand::before,
.as-header-3-logo > .brand__silk { display: none !important; }
.brand__legacy-lockup { display: none !important; }
.brand__compact-lockup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: max-content;
    color: #f1f2f4;
    line-height: 1;
    text-decoration: none;
}
.brand__compact-mark {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.brand__compact-name {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--as-font-1, sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}
.brand__compact-name b {
    color: var(--as-clr-pr-1);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .25em;
}
.wa-offcanvas-top-logo .brand__compact-name { font-size: 14px; }
.wa-offcanvas-top-logo .brand__compact-name b { font-size: 9px; }

/* Restore a normal, readable desktop navbar. Compact content does not mean
   shrinking the primary navigation into tiny text. */
@media (min-width: 1200px) {
    body.as-inner:not(.as-panel) .as-header-3-wrap {
        padding-block: 10px;
        gap: 20px;
    }
    body.as-inner:not(.as-panel) .as-header-3-logo .brand__compact-mark {
        width: 34px;
        height: 34px;
    }
    body.as-inner:not(.as-panel) .as-header-3-logo .brand__compact-name { font-size: 14px; }
    body.as-inner:not(.as-panel) .as-header-3-logo .brand__compact-name b { font-size: 9px; }
    body.as-inner:not(.as-panel) .as-main-navigation .navbar-nav > li > .as-nav-item__link {
        padding: 12px 16px !important;
        font-size: 15px !important;
    }
    body.as-inner:not(.as-panel) .as-header-3-action-link { gap: 16px; }
    body.as-inner:not(.as-panel) .as-header-3-action-link .site-header__cart,
    body.as-inner:not(.as-panel) .as-header-3-action-link .site-header__account {
        font-size: 15px;
    }
    body.as-inner:not(.as-panel) .as-header-3-action-link .as-header-3-btn {
        display: inline-flex;
        min-height: 48px;
        padding: 13px 26px !important;
        font-size: 15px !important;
    }
}

/* The header is fixed. Reserve its full two-row height before the hero so the
   first line never disappears beneath the navbar while JS is loading. */
.as-header-3-spacer {
    height: max(var(--as-header-h, 112px), 104px);
}
body.has-hero-3 #main .as-hero-3-area {
    padding-top: 28px !important;
}
body.has-hero-3 #main .as-hero-3-top { margin-bottom: 72px !important; }
@media (max-width: 1199px) {
    .as-header-3-spacer { height: max(var(--as-header-h, 92px), 84px); }
    body.has-hero-3 #main .as-hero-3-area { padding-top: 20px !important; }
    body.has-hero-3 #main .as-hero-3-top { margin-bottom: 52px !important; }
}

/* Stable announcement rail. No moving text, no seam, no clipped first item:
   customers can read the actual turnaround promise at a glance. */
.as-marquee__viewport {
    padding: 0 16px !important;
    overflow-x: auto;
    scrollbar-width: none;
}
.as-marquee__viewport::-webkit-scrollbar { display: none; }
.as-marquee__track,
.js .as-marquee__track {
    width: max-content;
    min-width: 0;
    justify-content: flex-start;
    transform: none !important;
    animation: none !important;
    will-change: auto;
}
.as-marquee__group {
    min-width: 0 !important;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0;
}
.as-marquee__item {
    padding: 6px 0;
    color: #c5c7cc;
    font-size: 10px;
    letter-spacing: .03em;
}
.as-marquee__dot { margin-inline: 12px; width: 3px; height: 3px; }
.as-marquee__pause { display: none !important; }

@media (max-width: 1199px) {
    body.as-inner:not(.as-panel) .as-header-3-wrap { padding: 7px 14px; gap: 12px; }
    body.as-inner:not(.as-panel) .as-header-3-logo .brand__compact-mark { width: 26px; height: 26px; }
    body.as-inner:not(.as-panel) .as-header-3-logo .brand__compact-name { font-size: 11px; }
    body.as-inner:not(.as-panel) .as-header-3-logo .brand__compact-name b { font-size: 7px; }
    body.as-inner:not(.as-panel) .as-header-3-action-link { gap: 10px; }
    body.as-inner:not(.as-panel) .as-header-3-action-link .as-header-3-btn { display: none; }
}
@media (max-width: 767px) {
    .as-marquee__track { justify-content: flex-start; width: max-content; }
    .as-marquee__group { flex-wrap: nowrap; justify-content: flex-start; }
    .as-marquee__item { font-size: 9px; }
    .as-marquee__dot { margin-inline: 9px; }
    body.as-inner:not(.as-panel) .as-header-3-wrap { padding: 6px 12px; }
    body.as-inner:not(.as-panel) .as-header-3-action-link .site-header__cart,
    body.as-inner:not(.as-panel) .as-header-3-action-link .site-header__account { display: none !important; }
    body.as-inner:not(.as-panel) .as-header-3-action-link .sr-offcanvas-btn-1 {
        display: inline-flex !important;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
    }
    body.as-inner:not(.as-panel) .as-header-3-wrap { position: relative; }
    body.as-inner:not(.as-panel) .as-header-3-action-link {
        position: absolute;
        right: 12px;
        top: 50%;
        display: flex !important;
        transform: translateY(-50%);
        z-index: 20;
    }
    body.as-inner:not(.as-panel) .as-header-3-action-link .sr-offcanvas-btn-1 {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        border: 1px solid #fff !important;
        color: #fff !important;
        background: #0b0b0d !important;
    }
    body.has-hero-3 #main .as-hero-3-content .disc,
    body.has-hero-3 #main .as-hero-3-content .tx-description { max-width: 100%; overflow-wrap: anywhere; }
    body.has-hero-3 #main .as-hero-3-content .item-tags { flex-wrap: wrap; max-width: 100%; }
    body.has-hero-3 #main .as-hero-3-cta { flex-wrap: wrap; gap: 12px; max-width: 100%; }
    body.has-hero-3 #main .as-hero-3-cta > p { max-width: 100%; white-space: normal !important; }
    body.has-hero-3 #main .legacy-home-hero .container {
        width: 100%;
        max-width: none;
        padding-inline: 12px;
    }
    body.has-hero-3 #main .legacy-home-hero .at-hero__kicker,
    body.has-hero-3 #main .legacy-home-hero .at-hero__sub { overflow-wrap: anywhere; }
    body.has-hero-3 #main .legacy-home-hero .at-hero__sub { width: 100%; max-width: 46ch; }
}

@media (max-width: 767px) {
    body.has-hero-3 #main .as-hero-3-area { min-height: 540px !important; }
}

/* Production usability: readable controls and unobstructed mobile actions. */
.nojs-navigation { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 20px max(20px, 5vw); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.nojs-navigation a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-policies {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    padding-block: 20px;
    margin-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}
.footer-policies a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #d1d1d1;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.footer-policies a:hover { color: #fff; }
body.as-inner .as-footer-3-contact .link-el-1 { color: #b3b3b3; }
body.as-inner #main .as-ledger-panel .as-ledger-table td.as-p-1 { color: #d5d5d5; }
body.as-inner #main .as-ledger-panel :is(.subtitle, .checklist li, .checklist li span) { color: #d5d5d5; }
body.as-inner #main .as-ledger-table tbody tr.is-hot .as-ledger-price { color: #fff; }
body.as-inner #main .cart-desk .as-cta-2-form-wrap .as-cta-2-form-content .item-disc strong { color: #18181b; }
.footer-policies a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.as-marquee__group[aria-hidden="true"] { display: none; }
.as-marquee__item { font-size: 12px; }
.site-menu-open { overflow: hidden; }
.site-menu-open :is(.sp-chat, .wa-back-to-top, .as-wa-float, .ticket-bar) { visibility: hidden; pointer-events: none; }
.as-wa-float { bottom: 152px; }
@media (max-width: 899px) {
    body.as-inner { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
    body.as-inner.without-ticket-bar { padding-bottom: env(safe-area-inset-bottom, 0px); }
    body.as-inner #main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) { font-size: 16px !important; }
    .as-marquee__item { font-size: 11px; }
    .sp-chat__launcher { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
    .without-ticket-bar .sp-chat__launcher { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
    .wa-back-to-top, .as-wa-float { display: none !important; }
    .form-in-view .ticket-bar:not(:focus-within),
    .form-in-view .sp-chat:not(:focus-within) .sp-chat__launcher { display: none; }
    .ticket-bar__cart { min-height: 44px; display: inline-flex; align-items: center; }
    .wa-cursor { display: none !important; }
    .footer-policies { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
}
@media (max-width: 767px) {
    body.as-inner:not(.as-panel) .as-header-3-action-link .sr-offcanvas-btn-1 { width: 44px; height: 44px; flex-basis: 44px; }
    body.as-inner .as-footer-3-area { padding: 48px 0 32px; border-top: 1px solid #292929; }
    .as-footer-3-area :is(.as-footer-3-circle-text, .as-footer-3-bg-line, .as-footer-3-bg-img, .as-footer-3-bg-shape, .as-footer-3-bottom) { display: none; }
    .as-footer-3-area .as-footer-3-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-bottom: 32px; }
    .as-footer-3-wrap .as-footer-3-contact { grid-row: 1; }
    .as-footer-3-wrap .as-footer-3-menu-col { grid-row: 2; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: 24px; }
    .as-footer-3-wrap .as-footer-3-menu li { font-size: 16px; line-height: 1.45; margin: 0; }
    .as-footer-3-area .as-footer-3-wrap .as-footer-3-menu a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; font-size: 16px; line-height: 1.45; }
    .as-footer-3-wrap .as-footer-3-newsletter { grid-row: 3; margin-bottom: 0; }
    .as-footer-3-wrap .as-footer-3-newsletter .title { font-size: 24px; margin-bottom: 12px; }
    .as-footer-3-area .as-footer-3-copyright { margin-top: 24px; }
}
@media (pointer: coarse) {
    .wa-cursor { display: none !important; }
    .sp-chat__back, .sp-chat__close { min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .wa-cursor { display: none !important; }
}
