:root {
    --hec-forest: #321842;
    --hec-purple: #633080;
    --hec-saffron: #e7b04b;
    --hec-coral: #bf5b49;
    --hec-paper: #f5f1f7;
    --hec-ink: #2b1d32;
}

.hec-experience {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background: var(--hec-forest);
    color: #fff;
}

.hec-world {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #321842;
    pointer-events: none;
}

.hec-world__fallback,
.hec-world__canvas,
.hec-world__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hec-world__fallback {
    background-position: center;
    background-size: cover;
    transform: scale(1.03);
}

.hec-world__canvas {
    display: block;
    opacity: 0;
    transition: opacity 800ms ease;
}

.hec-world.is-ready .hec-world__canvas {
    opacity: 1;
}

.hec-world__shade {
    background: linear-gradient(90deg, rgba(25, 12, 32, .78) 0%, rgba(34, 17, 42, .4) 47%, rgba(38, 21, 47, .12) 100%), linear-gradient(0deg, rgba(25, 12, 32, .48), transparent 42%);
}

.hec-chapter {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 88svh;
    align-items: center;
    padding: 112px max(8vw, 36px);
    scroll-margin-top: 82px;
}

.hec-hero {
    min-height: min(820px, calc(100svh - 110px));
    align-items: center;
    padding-top: 90px;
    padding-bottom: 110px;
}

.hec-hero__content {
    width: min(100%, 980px);
    margin: 0 auto;
}

.hec-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hec-eyebrow span {
    display: inline-block;
    width: 32px;
    height: 1px;
    flex: 0 0 32px;
    background: var(--hec-saffron);
}

.hec-hero h1 {
    max-width: 860px;
    margin: 0;
    color: #fff;
    font-size: 64px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
    text-shadow: 0 4px 28px rgba(0, 0, 0, .24);
}

.hec-hero h1 span {
    color: #f0c46e;
}

.hec-hero__lead {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: 20px;
    line-height: 1.7;
}

.hec-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: 32px;
}

.hec-action {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hec-action--light {
    background: var(--hec-purple);
}

.hec-action--light:hover,
.hec-action--light:focus-visible {
    background: #70418a;
    color: #fff;
    transform: translateY(-2px);
}

.hec-action--quiet {
    padding-right: 0;
    padding-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .55);
}

.hec-action--quiet:hover,
.hec-action--quiet:focus-visible {
    color: #f0c46e;
    border-color: #f0c46e;
}

.hec-banner-select {
    position: absolute;
    right: max(8vw, 36px);
    bottom: 56px;
    display: flex;
    gap: 8px;
}

.hec-banner-select button {
    min-width: 44px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .4);
    background: transparent;
    color: rgba(255, 255, 255, .62);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
}

.hec-banner-select button[aria-pressed="true"] {
    border-color: var(--hec-saffron);
    color: #fff;
}

.hec-scroll-cue {
    position: absolute;
    bottom: 52px;
    left: max(8vw, 36px);
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    text-decoration: none;
}

.hec-scroll-cue i {
    color: var(--hec-saffron);
}

.hec-hero__index,
.hec-chapter__index {
    position: absolute;
    right: max(8vw, 36px);
    top: 50%;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    transform: translateY(-50%);
}

.hec-hero__index {
    right: auto;
    left: max(8vw, 36px);
    top: auto;
    bottom: 20px;
    transform: none;
}

.hec-hero__index span {
    padding: 0 5px;
    color: var(--hec-saffron);
}

.hec-scene-nav {
    position: fixed;
    z-index: 8;
    top: 50%;
    right: 28px;
    display: grid;
    gap: 14px;
    transform: translateY(-50%);
    transition: opacity 180ms ease;
}

.hec-scene-nav.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.hec-scene-nav a {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 50%;
    color: rgba(255, 255, 255, .82);
    font-size: 9px;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hec-scene-nav a[aria-current="location"] {
    border-color: var(--hec-saffron);
    background: var(--hec-saffron);
    color: var(--hec-ink);
}

.hec-purpose::before,
.hec-directions::before,
.hec-film::before,
.hec-visit::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 13, 37, .88), rgba(39, 20, 49, .62) 58%, rgba(43, 24, 53, .22));
    content: "";
}

.hec-purpose {
    justify-content: space-between;
    gap: 10vw;
}

.hec-chapter__copy {
    max-width: 680px;
}

.hec-chapter h2,
.hec-updates h2,
.hec-visit h2 {
    margin: 0;
    color: #fff;
    font-size: 46px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
}

.hec-purpose__copy > p:not(.hec-eyebrow) {
    max-width: 630px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.95;
}

.hec-text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 27px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 7px;
    color: #eec36d;
    font-size: 14px;
    text-decoration: none;
}

.hec-text-link:hover,
.hec-text-link:focus-visible {
    color: #fff;
}

.hec-purpose__aside {
    min-width: 190px;
    align-self: flex-end;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, .78);
    text-align: right;
}

.hec-purpose__mark {
    display: block;
    color: rgba(255, 255, 255, .32);
    font-size: 72px;
    font-weight: 600;
    line-height: 1;
}

.hec-purpose__aside p {
    margin: 16px 0 4px;
    color: #fff;
    font-size: 22px;
}

.hec-purpose__aside > span:last-child {
    font-size: 12px;
}

.hec-directions {
    align-items: center;
}

.hec-directions__content {
    width: min(100%, 900px);
    margin: 0 auto;
}

.hec-pillar-tabs {
    display: flex;
    gap: 0;
    margin-top: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, .34);
}

.hec-pillar-tabs button {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 14px 18px 14px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    text-align: left;
}

.hec-pillar-tabs button + button {
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, .22);
}

.hec-pillar-tabs button span {
    color: #eec36d;
    font-size: 10px;
}

.hec-pillar-tabs button[aria-selected="true"] {
    border-bottom-color: var(--hec-saffron);
    color: #fff;
}

.hec-pillar-panel {
    min-height: 150px;
    padding-top: 28px;
}

.hec-pillar-panel__label {
    margin: 0 0 10px;
    color: #efc66f;
    font-size: 12px;
}

.hec-pillar-panel__copy {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-size: 27px;
    line-height: 1.6;
}

.hec-directions__note {
    position: absolute;
    right: max(8vw, 36px);
    bottom: 48px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.hec-directions__note span {
    padding: 0 8px;
    color: var(--hec-saffron);
}

.hec-news-feed {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: calc(100vh - 80px);
    min-height: calc(100svh - 80px);
    display: flex;
    align-items: center;
    padding: clamp(44px, 7vh, 82px) clamp(24px, 6vw, 92px);
    overflow: hidden;
    color: #173a35;
    background: linear-gradient(145deg, #f3f5ed 0%, #e4eee6 52%, #d9e8e2 100%);
    scroll-margin-top: 80px;
}

.hec-news-feed__inner {
    width: min(100%, 1440px);
    margin: 0 auto;
}

.hec-news-feed__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.hec-news-feed__header .hec-eyebrow {
    margin-bottom: 10px;
    color: #48665e;
}

.hec-news-feed__header h2 {
    margin: 0;
    color: #173a35;
    font: 500 clamp(30px, 4vw, 54px)/1.2 'Kanit', sans-serif;
}

.hec-news-feed__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hec-news-feed__all {
    margin-right: 12px;
    color: #285d52;
    font: 500 13px/1.4 'Kanit', sans-serif;
    text-decoration: none;
}

.hec-news-feed__all:hover {
    color: #9c4b35;
}

.hec-news-feed__actions button {
    display: grid;
    width: 42px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(23, 58, 53, .24);
    border-radius: 50%;
    color: #173a35;
    background: rgba(255, 255, 255, .52);
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.hec-news-feed__actions button:hover,
.hec-news-feed__actions button:focus-visible {
    border-color: #173a35;
    color: #fff;
    background: #173a35;
}

.hec-news-feed__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 5px 2px 20px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-color: rgba(23, 58, 53, .45) rgba(23, 58, 53, .1);
    scrollbar-width: thin;
}

.hec-news-feed__track:focus-visible {
    outline: 2px solid #285d52;
    outline-offset: 3px;
}

.hec-news-card {
    flex: 0 0 clamp(280px, 31vw, 410px);
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(23, 58, 53, .13);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(27, 57, 48, .1);
    scroll-snap-align: start;
}

.hec-news-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.hec-news-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #d7e4dc;
}

.hec-news-card__image img,
.hec-news-card__image-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.hec-news-card__image img {
    object-fit: cover;
    transition: transform .45s ease;
}

.hec-news-card:hover .hec-news-card__image img {
    transform: scale(1.035);
}

.hec-news-card__image-fallback {
    color: rgba(23, 58, 53, .42);
    font-size: 40px;
}

.hec-news-card__flag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 2px;
    color: #fff;
    background: #a74734;
    font: 500 11px/1.4 'Kanit', sans-serif;
}

.hec-news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px 19px 19px;
}

.hec-news-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    margin: 0 0 10px;
    color: #61766e;
    font: 400 12px/1.5 'Kanit', sans-serif;
}

.hec-news-card__meta > span {
    color: #9c4b35;
    font-weight: 500;
}

.hec-news-card__body h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.2em;
    margin: 0 0 18px;
    color: #183b35;
    font: 500 19px/1.6 'Kanit', sans-serif;
    overflow-wrap: anywhere;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hec-news-card__read {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(23, 58, 53, .12);
    color: #285d52;
    font: 500 12px/1.5 'Kanit', sans-serif;
}

.hec-news-feed__empty {
    margin: 0;
    color: #48665e;
    font: 400 16px/1.6 'Kanit', sans-serif;
}

.hec-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.hec-news-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: var(--hec-ink);
    text-decoration: none;
}

.hec-news-item__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.45;
    background: #e7deeb;
}

.hec-news-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.hec-news-item:hover .hec-news-item__image img {
    transform: scale(1.04);
}

.hec-news-item__flag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: var(--hec-coral);
    color: #fff;
    font-size: 11px;
}

.hec-news-item__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: #74677a;
    font-size: 11px;
}

.hec-news-item h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 58px;
    margin: 9px 0 0;
    color: var(--hec-ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hec-news-item__more {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--hec-purple);
    font-size: 12px;
}

.hec-news-empty {
    margin: 0;
    padding: 28px 0;
    color: #74677a;
}

.hec-film {
    min-height: 90svh;
    display: block;
    padding-top: 90px;
    padding-bottom: 100px;
    text-align: center;
}

.hec-film__heading {
    margin-bottom: 28px;
}

.hec-film__heading .hec-eyebrow {
    justify-content: center;
}

.hec-film h2 {
    font-size: 38px;
}

.hec-film__video {
    display: block;
    width: min(100%, 1060px);
    max-height: 66svh;
    margin: 0 auto;
    background: #21152a;
    object-fit: cover;
}

.hec-film__toggle {
    display: grid;
    width: 50px;
    aspect-ratio: 1;
    place-items: center;
    margin: 22px auto 0;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.hec-film__toggle:hover,
.hec-film__toggle:focus-visible {
    border-color: var(--hec-saffron);
    background: var(--hec-saffron);
    color: var(--hec-ink);
}

.hec-visit {
    position: relative;
    z-index: 1;
    padding: 92px max(8vw, 36px);
    background: var(--hec-forest);
    color: #fff;
    scroll-margin-top: 82px;
}

.hec-visit__inner {
    display: flex;
    width: min(100%, 1140px);
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    margin: 0 auto;
}

.hec-visit h2 {
    font-size: 40px;
}

.hec-visit__details {
    display: grid;
    justify-items: start;
    gap: 10px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

.hec-visit__details p,
.hec-visit__details span {
    margin: 0;
}

.hec-visit__details > a:not(.hec-action) {
    color: #fff;
    font-size: 22px;
    text-decoration: none;
}

.hec-visit__details .hec-action {
    margin-top: 14px;
}

.hec-chapter__index--dark {
    color: rgba(50, 24, 66, .58);
}

@media (max-width: 900px) {
    .hec-chapter {
        padding-right: 8vw;
        padding-left: 8vw;
    }

    .hec-purpose {
        gap: 36px;
    }

    .hec-purpose__aside {
        min-width: 145px;
    }

    .hec-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hec-scene-nav {
        right: 14px;
    }

    .hec-news-feed {
        min-height: calc(100vh - 64px);
        min-height: calc(100svh - 64px);
        padding-right: 8vw;
        padding-left: 8vw;
        scroll-margin-top: 64px;
    }

    .hec-visit {
        padding-right: 8vw;
        padding-left: 8vw;
    }
}

@media (max-width: 640px) {
    .hec-chapter {
        min-height: 82svh;
        padding: 92px 24px;
    }

    .hec-hero {
        min-height: calc(100svh - 110px);
        padding-top: 72px;
        padding-bottom: 112px;
    }

    .hec-hero h1 {
        font-size: 38px;
        line-height: 1.35;
    }

    .hec-hero__lead {
        max-width: 320px;
        font-size: 17px;
    }

    .hec-hero__index {
        left: 24px;
    }

    .hec-scroll-cue {
        bottom: 50px;
        left: 24px;
    }

    .hec-banner-select {
        right: 24px;
        bottom: 45px;
    }

    .hec-scene-nav {
        display: none;
    }

    .hec-purpose {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
    }

    .hec-chapter h2,
    .hec-visit h2 {
        font-size: 32px;
    }

    .hec-purpose__copy > p:not(.hec-eyebrow) {
        font-size: 14px;
        line-height: 1.9;
    }

    .hec-purpose__aside {
        align-self: flex-start;
        margin: 0;
        text-align: left;
    }

    .hec-purpose__mark {
        font-size: 48px;
    }

    .hec-directions {
        min-height: 88svh;
    }

    .hec-pillar-tabs button {
        min-height: 54px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
        padding-right: 8px;
        font-size: 13px;
    }

    .hec-pillar-tabs button + button {
        padding-left: 10px;
    }

    .hec-pillar-panel__copy {
        font-size: 21px;
    }

    .hec-directions__note {
        right: 24px;
        bottom: 24px;
        left: 24px;
    }

    .hec-news-feed {
        padding: 76px 24px;
    }

    .hec-news-feed__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 22px;
    }

    .hec-news-feed__actions {
        width: 100%;
    }

    .hec-news-feed__all {
        margin-right: auto;
    }

    .hec-news-card {
        flex-basis: min(82vw, 350px);
    }

    .hec-updates {
        padding: 76px 24px;
    }

    .hec-updates__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .hec-updates h2,
    .hec-film h2 {
        font-size: 30px;
    }

    .hec-news-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hec-news-item h3 {
        min-height: 0;
    }

    .hec-film {
        min-height: 75svh;
    }

    .hec-visit {
        padding: 72px 24px;
    }

    .hec-visit__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .hec-world__canvas,
    .hec-action,
    .hec-news-item__image img {
        transition-duration: 0.01ms !important;
    }
}

.hec-news-shelf {
    position: relative;
    z-index: 1;
    width: 100%;
    height: calc(100vh - 80px);
    height: calc(100svh - 80px);
    min-height: 560px;
    padding: clamp(24px, 4vh, 42px) clamp(24px, 5vw, 76px) 0;
    overflow: hidden;
    color: #f2e9d8;
    background:
        radial-gradient(ellipse at 48% 42%, rgba(99, 48, 128, .28), transparent 55%),
        linear-gradient(150deg, var(--hec-forest) 0%, #21152a 62%, #402052 100%);
    scroll-margin-top: 80px;
}

.hec-news-shelf__inner {
    display: flex;
    width: min(100%, 1520px);
    height: 100%;
    min-height: 0;
    flex-direction: column;
    margin: 0 auto;
}

.hec-news-shelf__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 8px;
}

.hec-news-shelf__header .hec-eyebrow {
    margin-bottom: 6px;
    color: #c1ae91;
}

.hec-news-shelf__header h2 {
    margin: 0;
    color: #f2e9d8;
    font: 400 clamp(25px, 2.8vw, 38px)/1.2 'Kanit', sans-serif;
}

.hec-news-shelf__all {
    color: #e6d6ba;
    font: 500 13px/1.4 'Kanit', sans-serif;
    text-decoration: none;
}

.hec-news-shelf__all:hover {
    color: #e8ad55;
}

.hec-news-shelf__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 300px;
}

.hec-news-shelf__track {
    --news-book-width: clamp(170px, 15vw, 230px);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    gap: clamp(22px, 3vw, 44px);
    overflow: auto hidden;
    padding: 18px 0 42px;
    perspective: 1400px;
    overscroll-behavior-x: contain;
    scroll-snap-type: none;
    scrollbar-width: none;
}

.hec-news-shelf__track::-webkit-scrollbar {
    display: none;
}

.hec-news-shelf__track:focus-visible {
    outline: 2px solid #e8ad55;
    outline-offset: -2px;
}

.hec-news-shelf__plank {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 14px;
    left: 0;
    height: 12px;
    border-top: 2px solid rgba(231, 176, 75, .62);
    background: linear-gradient(180deg, #3a2149, #21152a 76%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .34);
    pointer-events: none;
}

.hec-news-book {
    position: relative;
    z-index: 1;
    flex: 0 0 var(--news-book-width);
    width: var(--news-book-width);
    height: clamp(240px, 42vh, 370px);
    min-width: 0;
    transform: perspective(1100px) rotateY(5deg) rotateZ(-.5deg);
    transform-origin: center bottom;
    transition: transform .35s ease, filter .35s ease;
}

.hec-news-book:nth-child(odd) {
    transform: perspective(1100px) rotateY(-5deg) rotateZ(.5deg);
}

.hec-news-book[data-active="true"],
.hec-news-book:focus-within {
    z-index: 4;
    transform: perspective(1100px) translateY(-22px) rotateY(0) rotateZ(0) scale(1.055);
    filter: brightness(1.08);
}

.hec-news-book[data-active="true"] .hec-news-book__cover,
.hec-news-book:focus-within .hec-news-book__cover {
    border-color: rgba(65, 62, 62, 0.98);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .48), inset -10px 0 18px rgba(0, 0, 0, .28), inset 5px 0 10px rgba(255, 255, 255, .16);
}

.hec-news-book__link {
    display: block;
    width: 100%;
    height: 100%;
    color: #fff5e3;
    text-decoration: none;
}

.hec-news-book__cover {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 0px solid rgba(255, 255, 255, .62);
    border-radius: 2px 7px 7px 2px;
    background: #4a4b57;
    box-shadow: 12px 13px 22px rgba(0, 0, 0, .37), inset -10px 0 18px rgba(0, 0, 0, .28), inset 5px 0 10px rgba(255, 255, 255, .16);
}

.hec-news-book__cover::before {
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .46) 52%, rgba(255, 255, 255, .08));
    content: '';
    pointer-events: none;
}

.hec-news-book__cover::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 14, 17, .05) 12%, rgba(12, 14, 17, .08) 42%, rgba(12, 14, 17, .78));
    content: '';
    pointer-events: none;
}

.hec-news-book__cover img,
.hec-news-book__fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hec-news-book__cover img {
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.hec-news-book:focus-within .hec-news-book__cover img,
.hec-news-book[data-active="true"] .hec-news-book__cover img {
    transform: scale(1.045);
}

.hec-news-book__fallback {
    display: grid;
    place-items: center;
    color: rgba(255, 245, 227, .72);
    background: radial-gradient(circle at 72% 24%, #a34a37, transparent 36%), linear-gradient(145deg, #696354, #29272d 75%);
    font-size: 42px;
}

.hec-news-book__copy {
    position: absolute;
    z-index: 2;
    inset: 9% 9% 8% 11%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .65);
}

.hec-news-book__category,
.hec-news-book__date {
    color: rgba(255, 244, 224, .82);
    font: 500 10px/1.5 'Kanit', sans-serif;
}

.hec-news-book__category {
    margin-bottom: 8px;
    color: #f1c778;
}

.hec-news-book__flag {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 240, 218, .35);
    color: #fff1d8;
    background: rgba(118, 49, 37, .88);
    font: 500 10px/1.4 'Kanit', sans-serif;
}

.hec-news-shelf__caption {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 52px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    min-height: 118px;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(231, 210, 178, .2);
}

.hec-news-shelf__counter {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: rgba(242, 233, 216, .55);
    font: 500 11px/1.4 'Kanit', sans-serif;
    white-space: nowrap;
}

.hec-news-shelf__counter span:first-child {
    color: #e8ad55;
}

.hec-news-shelf__active {
    min-width: 0;
}

.hec-news-shelf__active p {
    margin: 0 0 4px;
    color: #d4ae75;
    font: 500 11px/1.5 'Kanit', sans-serif;
}

.hec-news-shelf__active p span {
    padding: 0 5px;
    color: rgba(242, 233, 216, .45);
}

.hec-news-shelf__active h3 {
    display: -webkit-box;
    overflow: hidden;
    max-width: 760px;
    max-height: 2.6em;
    margin: 0;
    color: #f5ead8;
    font: 400 clamp(22px, 2.5vw, 35px)/1.3 'Kanit', sans-serif;
    line-clamp: 2;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hec-news-shelf__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hec-news-shelf__controls button {
    display: grid;
    width: 38px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(242, 233, 216, .36);
    border-radius: 50%;
    color: #f2e9d8;
    background: transparent;
    cursor: pointer;
}

.hec-news-shelf__controls button:hover,
.hec-news-shelf__controls button:focus-visible {
    border-color: #e8ad55;
    color: #211f23;
    background: #e8ad55;
}

.hec-news-shelf__controls a {
    min-width: 90px;
    padding: 10px 15px;
    border: 1px solid rgba(242, 233, 216, .42);
    border-radius: 24px;
    color: #f2e9d8;
    font: 500 11px/1.4 'Kanit', sans-serif;
    text-align: center;
    text-decoration: none;
}

.hec-news-shelf__controls a:hover {
    border-color: #e8ad55;
    color: #e8ad55;
}

.hec-news-shelf__hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: rgba(242, 233, 216, .55);
    font: 500 9px/1.4 'Kanit', sans-serif;
    white-space: nowrap;
}

.hec-news-shelf__empty {
    align-self: center;
    margin: 0;
    color: rgba(242, 233, 216, .7);
    font: 400 16px/1.6 'Kanit', sans-serif;
}

@media (max-width: 900px) {
    .hec-news-shelf {
        height: calc(100vh - 64px);
        height: calc(100svh - 64px);
        min-height: 540px;
        padding-right: 8vw;
        padding-left: 8vw;
        scroll-margin-top: 64px;
    }

    .hec-news-shelf__track {
        --news-book-width: 180px;
        padding-right: 0;
        padding-left: 0;
    }

    .hec-news-shelf__caption {
        grid-template-columns: 46px minmax(0, 1fr) auto;
    }

    .hec-news-shelf__hint {
        display: none;
    }
}

@media (max-width: 640px) {
    .hec-news-shelf {
        height: auto;
        min-height: 610px;
        padding: 24px 18px 0;
    }

    .hec-news-shelf__header h2 {
        font-size: 25px;
    }

    .hec-news-shelf__stage {
        min-height: 330px;
    }

    .hec-news-shelf__track {
        --news-book-width: min(52vw, 190px);
        gap: 24px;
        padding-right: 0;
        padding-bottom: 40px;
        padding-left: 0;
    }

    .hec-news-book {
        height: clamp(235px, 39vh, 285px);
    }

    .hec-news-shelf__caption {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 120px;
        padding: 15px 0 18px;
    }

    .hec-news-shelf__active h3 {
        font-size: 19px;
    }

    .hec-news-shelf__controls {
        gap: 6px;
    }

    .hec-news-shelf__controls button {
        width: 32px;
    }

    .hec-news-shelf__controls a {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hec-news-book,
    .hec-news-book__cover img {
        transition-duration: 0.01ms !important;
    }
}