.hv-dictionary-archive-template {
    --hv-dic-main: #8b623f;
    --hv-dic-main-dark: #665e55;
    --hv-dic-accent: #d5a640;
    --hv-dic-paper: #fffaf0;
    --hv-dic-cream: #f8f0d8;
    --hv-dic-ink: #2f302c;
    --hv-dic-muted: #776f61;
    --hv-dic-line: #e2d6b8;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    background: #fff;
}

.hv-dictionary-archive-template *,
.hv-dictionary-archive-template *::before,
.hv-dictionary-archive-template *::after {
    box-sizing: border-box;
}

.hv-dictionary-archive-template .hv-dictionary-archive {
    min-width: 0;
    max-width: 100%;
    padding: 32px;
    color: var(--hv-dic-ink);
    background: #fff;
}

.hv-dictionary-archive-template .hv-content-top--dictionary {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 220px;
    margin: 0 0 32px;
    padding: 34px 38px;
    overflow: hidden;
    color: var(--hv-dic-ink);
    background: rgba(255, 250, 240, 0.66);
    border: 1px solid rgba(213, 166, 64, 0.42);
    border-radius: 0;
    box-shadow: none;
}

.hv-dictionary-archive-template .hv-content-top--dictionary::before {
    position: absolute;
    top: -90px;
    right: -70px;
    z-index: 0;
    width: 260px;
    height: 260px;
    pointer-events: none;
    content: "";
    background: var(--hv-dic-accent);
    border-radius: 50%;
    opacity: 0.15;
}

.hv-dictionary-archive-template .hv-content-top--dictionary::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 42%;
    z-index: 0;
    pointer-events: none;
    content: "";
    background-image: url("../images/dictionary-top-card.png");
    background-position: right center;
    background-repeat: no-repeat;
    background-size: auto 120%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 100%);
    opacity: 0.18;
}

.hv-dictionary-archive-template .hv-dictionary-archive__hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 56%;
}

.hv-dictionary-archive-template .hv-dictionary-archive__eyebrow {
    margin: 0 0 8px;
    color: var(--hv-dic-main);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0;
}

.hv-dictionary-archive-template .hv-content-top--dictionary h1 {
    margin: 0 0 16px;
    padding: 0;
    color: var(--hv-dic-ink);
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
    background: none;
    border: 0;
}

.hv-dictionary-archive-template .hv-content-top--dictionary h1::before,
.hv-dictionary-archive-template .hv-content-top--dictionary h1::after {
    content: none;
}

.hv-dictionary-archive-template .hv-dictionary-archive__lead {
    max-width: none;
    margin: 0;
    color: var(--hv-dic-muted) !important;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.9;
}

.hv-dictionary-archive-template .hv-dictionary-archive__beta-notice {
    min-width: 0;
    max-width: 100%;
    margin: 0 0 24px;
    padding: 17px 20px;
    color: var(--hv-dic-ink);
    background: var(--hv-dic-paper);
    border: 1px solid var(--hv-dic-line);
    border-left: 3px solid var(--hv-dic-accent);
    border-radius: 2px;
    box-shadow: none;
    overflow-wrap: anywhere;
}

.hv-dictionary-archive-template .hv-dictionary-archive__beta-label {
    margin: 0 0 5px;
    color: var(--hv-dic-main-dark);
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.5;
}

.hv-dictionary-archive-template .hv-dictionary-archive__beta-text {
    margin: 0;
    color: var(--hv-dic-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.hv-dictionary-archive-template .hv-dictionary-archive__search {
    min-width: 0;
    margin: 0 0 42px;
    padding: 26px 0 28px;
    border-top: 1px solid var(--hv-dic-line);
    border-bottom: 1px solid var(--hv-dic-line);
}

.hv-dictionary-archive-template .hv-dictionary-archive__search h2,
.hv-dictionary-archive-template .hv-dictionary-archive__section-head h2 {
    margin: 0 0 16px;
    padding: 0;
    color: var(--hv-dic-main-dark);
    font-size: 1.22rem;
    line-height: 1.45;
    background: none;
    border: 0;
}

.hv-dictionary-archive-template .hv-dictionary-archive__search h2::before,
.hv-dictionary-archive-template .hv-dictionary-archive__search h2::after,
.hv-dictionary-archive-template .hv-dictionary-archive__section-head h2::before,
.hv-dictionary-archive-template .hv-dictionary-archive__section-head h2::after {
    content: none;
}

.hv-dictionary-archive-template .hv-dictionary-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    max-width: 680px;
}

.hv-dictionary-archive-template .hv-dictionary-search__input,
.hv-dictionary-archive-template .hv-dictionary-search__button {
    min-width: 0;
    min-height: 52px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.hv-dictionary-archive-template .hv-dictionary-search__input {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    color: var(--hv-dic-ink);
    font: inherit;
    background: #fff;
    border: 2px solid var(--hv-dic-main);
}

.hv-dictionary-archive-template .hv-dictionary-search__input:focus {
    position: relative;
    z-index: 1;
    outline: 3px solid rgba(213, 166, 64, 0.28);
    outline-offset: 1px;
}

.hv-dictionary-archive-template .hv-dictionary-search__button {
    padding: 10px 26px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: var(--hv-dic-main);
    border: 2px solid var(--hv-dic-main);
}

.hv-dictionary-archive-template .hv-dictionary-search__button:hover,
.hv-dictionary-archive-template .hv-dictionary-search__button:focus-visible {
    background: var(--hv-dic-main-dark);
    border-color: var(--hv-dic-main-dark);
}

.hv-dictionary-archive-template .hv-dictionary-archive__entries {
    min-width: 0;
}

.hv-dictionary-archive-template .hv-dictionary-archive__section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    margin-bottom: 4px;
}

.hv-dictionary-archive-template .hv-dictionary-archive__section-head h2 {
    margin-bottom: 0;
}

.hv-dictionary-archive-template .hv-dictionary-archive__section-head p {
    flex: 0 0 auto;
    margin: 0;
    color: var(--hv-dic-muted);
    font-size: 0.86rem;
}

.hv-dictionary-archive-template .hv-dictionary-archive__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    margin-top: 18px;
    border-top: 2px solid var(--hv-dic-main);
}

.hv-dictionary-archive-template .hv-dictionary-archive__item {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 23px 22px 24px 0;
    background: transparent;
    border-bottom: 1px solid var(--hv-dic-line);
    border-radius: 0;
    box-shadow: none;
}

.hv-dictionary-archive-template .hv-dictionary-archive__item:nth-child(even) {
    padding-right: 0;
    padding-left: 22px;
    border-left: 1px solid var(--hv-dic-line);
}

.hv-dictionary-archive-template .hv-dictionary-archive__title {
    margin: 0;
    padding: 0;
    font-size: 1.28rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    background: none;
    border: 0;
}

.hv-dictionary-archive-template .hv-dictionary-archive__title::before,
.hv-dictionary-archive-template .hv-dictionary-archive__title::after {
    content: none;
}

.hv-dictionary-archive-template .hv-dictionary-archive__title a {
    color: var(--hv-dic-main-dark);
    text-decoration: none;
}

.hv-dictionary-archive-template .hv-dictionary-archive__title a:hover,
.hv-dictionary-archive-template .hv-dictionary-archive__title a:focus-visible {
    color: var(--hv-dic-main);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.hv-dictionary-archive-template .hv-dictionary-archive__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 11px 0 0;
    color: var(--hv-dic-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.hv-dictionary-archive-template .hv-dictionary-archive__item-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px 10px;
    align-items: center;
    min-width: 0;
}

.hv-dictionary-archive-template .hv-dictionary-archive__sense-count {
    margin: 0;
    padding: .16rem .42rem;
    color: var(--hv-dic-muted);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    background: #f7f4ef;
    border: 1px solid #d5cec4;
    border-radius: 3px;
}

.hv-dictionary-archive-template .hv-dictionary-archive__first-definition {
    margin: 13px 0 0;
    color: var(--hv-dic-muted);
    font-size: .93rem;
    font-weight: 600;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.hv-dictionary-archive-template .hv-dictionary-archive__entry-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    margin: 0;
    padding: .28rem .58rem;
    color: #626262;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #a9a9a9;
    border-radius: 3px;
}

.hv-dictionary-archive-template .hv-dictionary-archive__entry-link:hover,
.hv-dictionary-archive-template .hv-dictionary-archive__entry-link:focus-visible {
    color: #fff;
    background: #626262;
    border-color: #626262;
    text-decoration: none;
}

.hv-dictionary-archive-template .hv-dictionary-archive__empty {
    margin: 18px 0 0;
    padding: 24px 0;
    color: var(--hv-dic-muted);
    border-top: 2px solid var(--hv-dic-main);
    border-bottom: 1px solid var(--hv-dic-line);
}

.hv-dictionary-archive-template .navigation.pagination {
    margin-top: 28px;
}

.hv-dictionary-archive-template .hv-dictionary-archive__back {
    margin: 30px 0 0;
}

.hv-dictionary-archive-template .hv-dictionary-archive__back a {
    color: var(--hv-dic-main);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

@media (max-width: 959px) {
    .hv-dictionary-archive-template .hv-dictionary-archive {
        padding: 28px;
    }
}

@media (max-width: 600px) {
    .hv-dictionary-archive-template .hv-dictionary-archive {
        padding: 20px;
    }

    .hv-dictionary-archive-template .hv-content-top--dictionary {
        min-height: 220px;
        margin-bottom: 30px;
        padding: 24px;
    }

    .hv-dictionary-archive-template .hv-dictionary-archive__hero-copy {
        max-width: 100%;
    }

    .hv-dictionary-archive-template .hv-content-top--dictionary::after {
        left: 0;
        background-position: right bottom;
        background-size: auto 100%;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28%, #000 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 28%, #000 100%);
        opacity: 0.09;
    }

    .hv-dictionary-archive-template .hv-dictionary-archive__lead {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .hv-dictionary-archive-template .hv-dictionary-archive__beta-notice {
        margin-bottom: 20px;
        padding: 14px 16px;
    }

    .hv-dictionary-archive-template .hv-dictionary-archive__search {
        margin-bottom: 34px;
        padding: 22px 0 24px;
    }

    .hv-dictionary-archive-template .hv-dictionary-search {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .hv-dictionary-archive-template .hv-dictionary-search__button {
        width: 100%;
    }

    .hv-dictionary-archive-template .hv-dictionary-archive__section-head {
        align-items: flex-start;
    }

    .hv-dictionary-archive-template .hv-dictionary-archive__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .hv-dictionary-archive-template .hv-dictionary-archive__item,
    .hv-dictionary-archive-template .hv-dictionary-archive__item:nth-child(even) {
        padding: 20px 0 21px;
        border-left: 0;
    }

    .hv-dictionary-archive-template .hv-dictionary-archive__item-head {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .hv-dictionary-archive-template .hv-dictionary-archive__title {
        grid-column: 1 / -1;
    }
}
