/* Match the Flash home page's full-width hero without changing the shared header or footer. */
body.asp-flash-landing #flash-breadcrumbs,
body.asp-flash-landing #primary article.page > .entry-header {
    display: none;
}

body.asp-flash-landing #content > .tg-container {
    width: 100%;
    max-width: none;
    padding-inline: 0;
}

body.asp-flash-landing #primary,
body.asp-flash-landing #main,
body.asp-flash-landing #primary article.page,
body.asp-flash-landing #primary article.page > .entry-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

body.asp-flash-landing .as-catalog .as-container {
    width: min(1440px, calc(100% - 2 * clamp(18px, 4vw, 76px)));
}

body.asp-flash-landing .as-catalog #products {
    scroll-margin-top: 8rem;
}

body.asp-flash-landing .as-catalog #products.as-products-compact {
    scroll-margin-top: max(152px, 12vh);
}

/* The catalog is a browsing destination. Keep the photographic hero on Home. */
.as-catalog:has(.as-products-compact) {
    font-family: inherit;
}

.as-catalog .as-products-compact {
    padding-block-start: clamp(25px, 3.2vw, 48px);
}

.entry-content:has(> .as-catalog .as-products-compact) > p:empty { display: none; }

.as-catalog .as-catalog-intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px 36px;
    margin-bottom: clamp(19px, 2.5vw, 31px);
}

.as-catalog .as-catalog-intro .as-eyebrow {
    margin: 0;
    text-transform: uppercase;
}

.as-catalog .as-catalog-intro :is(h1, h2) {
    margin-block: 7px 10px;
    color: var(--as-ink);
    font-size: clamp(31px, 3.15vw, 52px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.as-catalog .as-catalog-intro .as-catalog-intro-copy {
    max-width: 63ch;
    color: var(--as-muted);
    font-size: 16px;
    line-height: 1.55;
}

.as-catalog .as-catalog-intro .as-catalog-help {
    display: inline-flex;
    flex: none;
    gap: 9px;
    align-items: center;
    min-height: 44px;
    color: #315922;
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.as-catalog .as-catalog-intro .as-catalog-help:hover {
    color: var(--as-ink);
}

.as-catalog .as-products-compact .as-tools {
    padding: clamp(13px, 1.7vw, 21px);
}

.as-catalog .as-products-compact .as-search-row label,
.as-catalog .as-products-compact .as-results,
.as-catalog .as-products-compact .as-reset {
    font-size: 14px;
}

.as-catalog .as-products-compact .as-results {
    min-height: 48px;
    padding-block: 12px;
}

@media (max-width: 640px) {
    .as-catalog .as-products-compact { padding-block-start: 24px; }
    .as-catalog .as-catalog-intro { display: block; margin-bottom: 10px; }
    .as-catalog .as-catalog-intro .as-catalog-help { margin-top: 4px; }
    .as-catalog .as-products-compact .as-search-row { gap: 10px; }
}

/* Match the Home draft's closing sections while keeping the catalog itself distinct. */
.as-catalog .as-closing-wrap {
    width: min(calc(100% - 2 * clamp(18px, 4.6vw, 72px)), 1200px);
    min-width: 0;
    margin-inline: auto;
    font-size: 16px;
    line-height: 1.65;
}

.as-catalog :is(.as-closing-field, .as-closing-region) {
    scroll-margin-top: max(130px, 12vh);
}

.as-catalog .as-closing-field {
    padding-block: clamp(34px, 4.8vw, 68px);
    background: #1d2c22;
    color: #fff;
}

.as-catalog .as-closing-field-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(28px, 5vw, 70px);
}

.as-catalog .as-closing-wrap .as-closing-kicker {
    color: #3b6b16;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.as-catalog .as-closing-field .as-closing-kicker { color: #b4e675; }

.as-catalog .as-closing-wrap h2 {
    color: #212d25;
    font-size: clamp(27px, 3.1vw, 42px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.13;
}

.as-catalog .as-closing-field h2 {
    color: #fff;
    font-size: clamp(27px, 3.4vw, 44px);
}

.as-catalog .as-closing-kicker + h2 { margin-top: 10px; }
.as-catalog .as-closing-field h2 + p { margin-top: 15px; }
.as-catalog .as-closing-field :is(h2 + p, .as-closing-points li) { color: #d6dfd2; }

.as-catalog .as-closing-field .as-closing-points {
    display: grid;
    gap: 11px;
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}

.as-catalog .as-closing-points li {
    padding-inline-start: 15px;
    border-inline-start: 3px solid #91ac82;
}

.as-catalog .as-closing-points strong { color: #fff; }

.as-catalog .as-closing-photo-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(9px, 1.25vw, 17px);
}

.as-catalog .as-closing-photo-pair figure { margin: 0; }
.as-catalog .as-closing-photo-pair img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}

.as-catalog .as-closing-region {
    padding-block: clamp(31px, 4.4vw, 60px);
    background: #fff;
}

.as-catalog .as-closing-region-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, .52fr);
    align-items: center;
    gap: clamp(22px, 5vw, 64px);
}

.as-catalog .as-closing-region .as-closing-states {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 19px 11px;
    padding: 0;
    list-style: none;
}

.as-catalog .as-closing-states li {
    margin: 0;
    padding: 4px 11px;
    border: 1px solid #d6dfd2;
    border-radius: 3px;
    color: #212d25;
    font-size: 14px;
    line-height: 1.55;
}

.as-catalog .as-closing-map {
    justify-self: center;
    width: min(100%, 215px);
}

.as-catalog a:is(.as-closing-rep, .as-closing-phone) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #3b6b16;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .19em;
}

.as-catalog a:is(.as-closing-rep, .as-closing-phone):hover { text-decoration-thickness: .13em; }

.as-catalog .as-closing-cta {
    padding-block: clamp(27px, 4.6vw, 55px);
    border-block: 1px solid #d6dfd2;
    background: #edf4e7;
}

.as-catalog .as-closing-cta h2 + p {
    max-width: 64ch;
    margin-top: 12px;
    color: #404e43;
    text-wrap: pretty;
}

.as-catalog .as-closing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 22px;
    margin-top: 19px;
}

.as-catalog a.as-closing-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 47px;
    padding: 10px 17px;
    border: 1px solid #212d25;
    border-radius: 4px;
    background: #212d25;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.as-catalog a.as-closing-primary:hover { border-color: #3b6b16; background: #3b6b16; }

@media (max-width: 710px) {
    .as-catalog .as-closing-field-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 580px) {
    .as-catalog .as-closing-region-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .as-catalog .as-closing-map { width: min(46vw, 155px); justify-self: start; }
}

/* Keep text readable inside themes that set their own entry-content link color. */
.entry-content .as-catalog .as-hero .as-text-link {
    color: #fff;
}

.entry-content .as-catalog .as-hero .as-text-link:hover {
    color: var(--as-lime);
}

.as-catalog .as-hero :is(a, button):focus-visible {
    outline-color: var(--as-lime);
}

.as-catalog .as-a11y {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.as-catalog .as-product-actions {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--as-line);
}

/* Flash sets the root to 10px. Minimum sizes keep these readable in that theme. */
.as-catalog .as-product-actions .as-inquiry {
    min-height: 54px;
    margin: 0;
    padding: 13px 18px;
    justify-content: center;
    text-align: center;
    background: #245731;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 6px;
    line-height: 1.35;
    font-size: max(17px, 1.0625rem);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.as-catalog .as-product-actions .as-inquiry:hover {
    background: #173e22;
    color: #fff;
    text-decoration: none;
}

.as-catalog .as-product-actions .as-inquiry .as-a11y {
    margin: -1px;
    font-size: inherit;
}

.as-catalog .as-resource-actions {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.as-catalog .as-resource-actions li {
    padding: 0;
    margin: 0;
}

.as-catalog .as-resource-actions a {
    display: grid;
    align-content: center;
    gap: 4px;
    min-height: 54px;
    padding: 11px 15px;
    border: 1px solid #c8d6c2;
    border-radius: 6px;
    background: #fff;
    color: var(--as-ink);
    font-size: max(16px, 1rem);
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.as-catalog .as-resource-actions a:hover {
    background: #edf4e7;
    border-color: #8eab7b;
    text-decoration: none;
}

.as-catalog .as-resource-actions a:hover > span:first-child {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.as-catalog .as-resource-actions small {
    color: #405343;
    font-size: max(14px, 0.875rem);
    font-weight: 400;
}

.as-catalog .as-dialog-copy .as-detail {
    font-size: max(16px, 1rem);
    line-height: 1.6;
}

.as-catalog .as-dialog-bar,
.as-catalog .as-dialog-bar button,
.as-catalog .as-lifecycle {
    font-size: max(14px, 0.875rem);
}

/* Keep the actions close to the product copy on small screens. */
@media (max-width: 640px) {
    .as-catalog .as-dialog-visual {
        height: clamp(128px, 38vw, 190px);
        padding: 14px;
    }

    .as-catalog .as-dialog-copy {
        padding: 20px 18px 25px;
    }
}

