body.post-type-archive-htan_resource {
    overflow-x: clip;
}

.hsp-downloads-page {
    --hspd-navy: #082b50;
    --hspd-blue: #174d78;
    --hspd-orange: #e87822;
    --hspd-orange-hover: #c96117;
    --hspd-ink: #26394a;
    --hspd-muted: #667684;
    --hspd-line: #d8e0e7;
    --hspd-soft: #f4f7f9;
    --hspd-white: #fff;
    color: var(--hspd-ink);
    background: var(--hspd-white);
    font-size: 16px;
    line-height: 1.6;
}

.hsp-downloads-page *,
.hsp-downloads-page *::before,
.hsp-downloads-page *::after {
    box-sizing: border-box;
}

.hsp-downloads-container {
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
}

.hsp-downloads-page a,
.hsp-downloads-page button,
.hsp-downloads-page input,
.hsp-downloads-page textarea {
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.hsp-downloads-page a:focus-visible,
.hsp-downloads-page button:focus-visible,
.hsp-downloads-page input:focus-visible,
.hsp-downloads-page textarea:focus-visible {
    outline: 3px solid rgba(232, 120, 34, .42);
    outline-offset: 2px;
}

.hsp-downloads-hero {
    padding: 54px 0 42px;
    background: var(--hspd-soft);
    border-bottom: 1px solid var(--hspd-line);
}

.hsp-downloads-eyebrow {
    margin: 0 0 10px;
    color: var(--hspd-orange);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .11em;
    line-height: 1.3;
}

.hsp-downloads-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--hspd-navy);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1.08;
}

.hsp-downloads-hero p:last-child {
    max-width: 900px;
    margin: 18px 0 0;
    color: var(--hspd-muted);
    font-size: 18px;
    line-height: 1.65;
}

.hsp-downloads-catalogs {
    padding: 58px 0 64px;
}

.hsp-downloads-catalogs h2,
.hsp-downloads-inquiry h2 {
    margin: 0;
    color: var(--hspd-navy);
    font-size: clamp(27px, 2.5vw, 34px);
    font-weight: 750;
    letter-spacing: -.015em;
    line-height: 1.2;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin-top: 28px;
}

.catalog-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--hspd-white);
    border: 1px solid var(--hspd-line);
    border-radius: 3px;
    transition: border-color .16s ease;
}

.catalog-card:hover {
    border-color: #b9c5cf;
}

.catalog-card > p:empty {
    display: none;
}

.catalog-card__cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 270px;
    min-width: 0;
    overflow: hidden;
    padding: 22px;
    background: var(--hspd-soft);
    border-bottom: 1px solid var(--hspd-line);
}

.catalog-card__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-card__body {
    display: flex;
    flex: 1;
    min-width: 0;
    min-height: 165px;
    flex-direction: column;
    padding: 22px 20px 20px;
}

.catalog-card__body > p:last-child {
    margin: auto 0 0;
}

.catalog-card__title {
    min-height: 52px;
    margin: 0 0 20px;
    color: var(--hspd-navy);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.catalog-card__title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: inherit;
    text-decoration: none;
}

.catalog-card__title a:hover {
    color: var(--hspd-blue);
}

.catalog-card__download {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    margin-top: auto;
    padding: 10px 16px;
    color: var(--hspd-navy);
    background: var(--hspd-orange);
    border: 1px solid var(--hspd-orange);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.catalog-card__download:hover {
    color: #fff;
    background: var(--hspd-orange-hover);
    border-color: var(--hspd-orange-hover);
}

@media (max-width: 1199px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 599px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-card__cover {
        height: 280px;
    }

    .catalog-card__body {
        min-height: 155px;
        padding: 20px;
    }

    .catalog-card__title {
        margin-bottom: 20px;
    }
}

.hsp-downloads-inquiry {
    padding: 58px 0 64px;
    background: var(--hspd-soft);
    border-top: 1px solid var(--hspd-line);
}

.hsp-downloads-inquiry__intro {
    max-width: 850px;
    margin-bottom: 26px;
}

.hsp-downloads-inquiry__intro p {
    margin: 12px 0 0;
    color: var(--hspd-muted);
    font-size: 17px;
    line-height: 1.65;
}

.hsp-downloads-inquiry .htan-form-wrap {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hsp-downloads-inquiry .hsp-compact-attachment-form {
    padding: 26px;
    background: var(--hspd-white);
    border: 1px solid var(--hspd-line);
}

.hsp-downloads-inquiry .hsp-compact-attachment-form__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.hsp-downloads-inquiry .htan-form-field {
    min-width: 0;
    margin: 0;
}

.hsp-downloads-inquiry .htan-form-field-wide {
    grid-column: 1 / -1;
}

.hsp-downloads-inquiry .htan-form-field > label {
    display: block;
    margin-bottom: 7px;
    color: var(--hspd-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.hsp-downloads-inquiry .htan-form-field input[type="text"],
.hsp-downloads-inquiry .htan-form-field input[type="email"],
.hsp-downloads-inquiry .htan-form-field input[type="tel"],
.hsp-downloads-inquiry .htan-form-field textarea {
    width: 100%;
    margin: 0;
    color: var(--hspd-ink);
    background: var(--hspd-white);
    border: 1px solid #bac6d0;
    border-radius: 2px;
    box-shadow: none;
    font: inherit;
}

.hsp-downloads-inquiry .htan-form-field input[type="text"],
.hsp-downloads-inquiry .htan-form-field input[type="email"],
.hsp-downloads-inquiry .htan-form-field input[type="tel"] {
    min-height: 48px;
    padding: 10px 13px;
}

.hsp-downloads-inquiry .htan-form-field textarea {
    display: block;
    min-height: 142px;
    padding: 12px 13px;
    resize: vertical;
}

.hsp-downloads-inquiry .htan-upload-field small {
    display: block;
    margin: 7px 0 0;
    color: var(--hspd-muted);
    font-size: 13px;
}

.hsp-downloads-inquiry .hsp-file-picker {
    margin-top: 7px;
    background: var(--hspd-soft);
    border-color: #bac6d0;
}

.hsp-downloads-inquiry .hsp-file-picker__action {
    color: #fff;
    background: var(--hspd-navy);
}

.hsp-downloads-inquiry .htan-consent label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    font-weight: 500;
}

.hsp-downloads-inquiry .htan-consent input {
    flex: 0 0 auto;
    margin-top: 4px;
}

.hsp-downloads-inquiry .htan-consent a {
    color: var(--hspd-blue);
    text-underline-offset: 3px;
}

.hsp-downloads-inquiry button[type="submit"] {
    min-height: 48px;
    min-width: 220px;
    margin: 0;
    padding: 11px 22px;
    color: var(--hspd-navy);
    background: var(--hspd-orange);
    border: 1px solid var(--hspd-orange);
    border-radius: 0;
    box-shadow: none;
    font-weight: 750;
}

.hsp-downloads-inquiry button[type="submit"]:hover {
    color: #fff;
    background: var(--hspd-orange-hover);
    border-color: var(--hspd-orange-hover);
}

@media (max-width: 1099px) {
    .hsp-downloads-inquiry .hsp-compact-attachment-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hsp-downloads-inquiry .hsp-compact-attachment-form__grid > .htan-form-field:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .hsp-downloads-container {
        width: min(100% - 32px, 1280px);
    }

    .hsp-downloads-hero {
        padding: 40px 0 34px;
    }

    .hsp-downloads-hero h1 {
        font-size: clamp(32px, 9vw, 42px);
    }

    .hsp-downloads-hero p:last-child {
        margin-top: 15px;
        font-size: 16px;
    }

    .hsp-downloads-catalogs,
    .hsp-downloads-inquiry {
        padding: 44px 0 48px;
    }

    .hsp-downloads-inquiry .hsp-compact-attachment-form__grid {
        grid-template-columns: 1fr;
    }

    .hsp-downloads-inquiry .hsp-compact-attachment-form__grid > .htan-form-field:nth-child(3) {
        grid-column: auto;
    }

    .hsp-downloads-inquiry .hsp-compact-attachment-form {
        padding: 20px;
    }

    .hsp-downloads-inquiry .hsp-file-picker {
        grid-template-columns: 1fr;
    }

    .hsp-downloads-inquiry .hsp-file-picker__action {
        justify-content: center;
        border-inline-end: 0;
        border-bottom: 1px solid #bac6d0;
    }

    .hsp-downloads-inquiry .hsp-file-picker__name {
        text-align: center;
    }

    .hsp-downloads-inquiry button[type="submit"] {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hsp-downloads-page a,
    .hsp-downloads-page button,
    .hsp-downloads-page input,
    .hsp-downloads-page textarea {
        transition: none;
    }
}
