.hle-explorer {
    --hle-ink: #242621;
    --hle-muted: #6a6c63;
    --hle-paper: #f3f0e8;
    --hle-paper-light: #fffdf8;
    --hle-green: #263f34;
    --hle-green-deep: #172820;
    --hle-gold: #b89a5f;
    --hle-gold-pale: #dbc89e;
    --hle-russet: #8c513e;
    --hle-line: rgba(36, 38, 33, 0.18);
    --hle-content-width: 1400px;
    container: hle-explorer / inline-size;
    box-sizing: border-box;
    width: auto !important;
    max-width: none !important;
    margin-block: 0 !important;
    margin-inline: calc(50% - 50vw) !important;
    overflow: hidden;
    border-block: 1px solid rgba(36, 38, 33, 0.26);
    border-inline: 0;
    background: var(--hle-green-deep);
    color: var(--hle-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

.hle-explorer *,
.hle-explorer *::before,
.hle-explorer *::after {
    box-sizing: border-box;
}

.hle-explorer [hidden] {
    display: none !important;
}

.hle-explorer button,
.hle-explorer input {
    font: inherit;
}

.hle-hero {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    background-image: var(--hle-hero-image);
    background-position: center 42%;
    background-size: cover;
    color: #fff;
}

.hle-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(13, 24, 19, 0.96) 0%, rgba(13, 24, 19, 0.83) 43%, rgba(13, 24, 19, 0.26) 76%, rgba(13, 24, 19, 0.08) 100%),
        linear-gradient(0deg, rgba(13, 24, 19, 0.58), transparent 50%);
}

.hle-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: end;
    width: min(100%, var(--hle-content-width));
    min-height: 470px;
    margin-inline: auto;
    padding: clamp(30px, 5vw, 70px);
}

.hle-explorer .hle-eyebrow {
    margin: 0 0 9px !important;
    color: var(--hle-gold-pale);
    font-size: 0.69rem !important;
    font-weight: 850;
    letter-spacing: 0.16em;
    line-height: 1.35 !important;
    text-transform: uppercase;
}

.hle-explorer .hle-hero h2 {
    max-width: 780px;
    margin: 0 !important;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6.2vw, 6.1rem) !important;
    font-weight: 400;
    letter-spacing: -0.052em;
    line-height: 0.92 !important;
}

.hle-explorer .hle-intro {
    max-width: 680px;
    margin: 19px 0 0 !important;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(0.92rem, 1.5vw, 1.08rem) !important;
    line-height: 1.6 !important;
}

.hle-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    width: max-content;
    max-width: 100%;
    margin-top: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.16);
}

.hle-hero__stats span {
    display: grid;
    min-width: 135px;
    padding: 12px 15px;
    background: rgba(15, 27, 21, 0.58);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hle-hero__stats strong {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.05;
}

.hle-view-nav {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--hle-green-deep);
}

.hle-view-nav button {
    min-height: 56px;
    padding: 12px clamp(18px, 3vw, 38px);
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
    cursor: pointer;
}

.hle-view-nav button:hover,
.hle-view-nav button.is-active {
    background: var(--hle-paper);
    color: var(--hle-ink);
}

.hle-panel {
    padding: clamp(20px, 3.5vw, 48px);
    background: var(--hle-paper);
}

.hle-panel > * {
    width: min(100%, var(--hle-content-width));
    margin-inline: auto;
}

.hle-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
    gap: clamp(24px, 4vw, 70px);
    align-items: end;
    margin-bottom: 28px;
}

.hle-section-head--narrow {
    max-width: 1050px;
}

.hle-explorer .hle-section-head .hle-eyebrow,
.hle-explorer .hle-meaning-copy .hle-eyebrow,
.hle-explorer .hle-current-record .hle-eyebrow {
    color: var(--hle-russet);
}

.hle-explorer .hle-section-head h3 {
    margin: 0 !important;
    color: var(--hle-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4.5vw, 4.5rem) !important;
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.98 !important;
}

.hle-explorer .hle-section-head > p {
    margin: 0 !important;
    color: var(--hle-muted);
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
}

.hle-chapters {
    display: grid;
    grid-template-columns: repeat(9, minmax(125px, 1fr));
    overflow-x: auto;
    margin-bottom: 14px;
    border: 1px solid var(--hle-line);
    background: var(--hle-line);
}

.hle-chapters button {
    display: grid;
    gap: 3px;
    min-height: 70px;
    padding: 11px 12px;
    border: 0;
    background: rgba(255, 255, 255, 0.74);
    color: var(--hle-ink);
    text-align: left;
    cursor: pointer;
}

.hle-chapters button:hover,
.hle-chapters button.is-active {
    background: var(--hle-green);
    color: #fff;
}

.hle-chapters b {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
    line-height: 1.1;
}

.hle-chapters span {
    color: var(--hle-muted);
    font-size: 0.59rem;
    line-height: 1.3;
}

.hle-chapters button.is-active span,
.hle-chapters button:hover span {
    color: rgba(255, 255, 255, 0.64);
}

.hle-searchbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
    padding: 11px;
    border: 1px solid var(--hle-line);
    background: rgba(255, 255, 255, 0.56);
}

.hle-searchbar label {
    display: grid;
    gap: 5px;
}

.hle-searchbar label span {
    color: #585b53;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hle-searchbar input,
.hle-searchbar button {
    min-height: 42px;
    border: 1px solid rgba(36, 38, 33, 0.28);
    border-radius: 0;
    background: var(--hle-paper-light);
    color: var(--hle-ink);
}

.hle-searchbar input {
    width: 100%;
    padding: 8px 11px;
}

.hle-searchbar > p {
    min-width: 100px;
    margin: 0 !important;
    padding: 11px 8px;
    color: var(--hle-green);
    font-size: 0.72rem !important;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.hle-searchbar button {
    padding: 8px 15px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.hle-searchbar button:hover {
    border-color: var(--hle-green);
    color: var(--hle-green);
}

.hle-succession-layout {
    display: grid;
    grid-template-columns: minmax(310px, 0.38fr) minmax(0, 0.62fr);
    gap: 14px;
    align-items: stretch;
}

.hle-timeline,
.hle-records {
    min-width: 0;
    border: 1px solid var(--hle-line);
    background: var(--hle-paper-light);
}

.hle-timeline {
    position: relative;
    max-height: 830px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(38, 63, 52, 0.45) transparent;
}

.hle-timeline__line {
    position: absolute;
    z-index: 0;
    top: 28px;
    bottom: 28px;
    left: 38px;
    width: 1px;
    background: rgba(38, 63, 52, 0.25);
}

.hle-holder {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 79px;
    padding: 10px 13px 10px 14px;
    border: 0;
    border-bottom: 1px solid rgba(36, 38, 33, 0.1);
    background: transparent;
    color: var(--hle-ink);
    text-align: left;
    cursor: pointer;
}

.hle-holder:hover,
.hle-holder.is-active {
    background: #edf0e8;
    box-shadow: inset 4px 0 0 var(--hle-green);
}

.hle-holder__number {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(38, 63, 52, 0.4);
    border-radius: 50%;
    background: var(--hle-paper-light);
    color: var(--hle-green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.85rem;
    font-weight: 700;
}

.hle-holder.is-active .hle-holder__number {
    border-color: var(--hle-green);
    background: var(--hle-green);
    color: #fff;
}

.hle-holder__copy {
    display: grid;
}

.hle-holder__copy small {
    color: var(--hle-russet);
    font-size: 0.59rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hle-holder__copy b {
    color: var(--hle-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
}

.hle-holder__copy em {
    color: var(--hle-muted);
    font-size: 0.66rem;
    font-style: normal;
}

.hle-empty {
    margin: 0 !important;
    padding: 28px 18px;
    color: var(--hle-muted);
    text-align: center;
}

.hle-records {
    min-height: 720px;
    overflow: hidden;
}

.hle-record {
    display: grid;
    grid-template-columns: minmax(210px, 0.38fr) minmax(0, 0.62fr);
    min-height: 100%;
}

.hle-record__visual {
    position: relative;
    display: grid;
    min-height: 720px;
    place-items: center;
    overflow: hidden;
    padding: 34px;
    border-right: 1px solid var(--hle-line);
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(150deg, #334f43, #172820);
}

.hle-record__visual img {
    display: block;
    width: min(100%, 340px);
    max-height: 530px;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.28));
}

.hle-record__visual--type > span {
    color: rgba(255, 255, 255, 0.82);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(7rem, 14vw, 12rem);
    line-height: 0.8;
}

.hle-record__visual--type > small {
    margin-top: -120px;
    color: var(--hle-gold-pale);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hle-record__era {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(14, 25, 20, 0.72);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-align: center;
    text-transform: uppercase;
}

.hle-record__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(25px, 4vw, 48px);
}

.hle-record__number {
    margin: 0 0 7px !important;
    color: var(--hle-russet);
    font-size: 0.64rem !important;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hle-explorer .hle-record h4 {
    margin: 0 !important;
    color: var(--hle-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 4.1vw, 4rem) !important;
    font-weight: 400;
    letter-spacing: -0.042em;
    line-height: 0.98 !important;
}

.hle-record__title {
    margin: 8px 0 0 !important;
    color: var(--hle-green);
    font-size: 0.77rem !important;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hle-record__summary {
    margin: 24px 0 0 !important;
    color: #4e5049;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 1.8vw, 1.28rem) !important;
    line-height: 1.48 !important;
}

.hle-record__details {
    margin-top: 19px;
    padding-top: 18px;
    border-top: 1px solid var(--hle-line);
}

.hle-explorer .hle-record__details p {
    margin: 0 0 12px !important;
    color: var(--hle-muted);
    font-size: 0.82rem !important;
    line-height: 1.65 !important;
}

.hle-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.hle-highlights li {
    padding: 5px 8px !important;
    border: 1px solid rgba(38, 63, 52, 0.17);
    background: #edf0e8;
    color: var(--hle-green);
    font-size: 0.62rem;
    font-weight: 750;
}

.hle-record__nav {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 24px;
}

.hle-record__nav button {
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--hle-line);
    background: transparent;
    color: var(--hle-green);
    font-size: 0.69rem;
    font-weight: 800;
    cursor: pointer;
}

.hle-record__nav button:hover:not(:disabled) {
    border-color: var(--hle-green);
    background: var(--hle-green);
    color: #fff;
}

.hle-record__nav button:disabled {
    opacity: 0.32;
    cursor: default;
}

.hle-components {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--hle-line);
    background: var(--hle-line);
}

.hle-components article {
    min-height: 220px;
    padding: clamp(22px, 3vw, 38px);
    background: var(--hle-paper-light);
}

.hle-components article > span {
    color: var(--hle-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.4rem;
}

.hle-explorer .hle-components h4,
.hle-explorer .hle-meaning-copy h4 {
    margin: 28px 0 8px !important;
    color: var(--hle-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem !important;
    font-weight: 500;
}

.hle-explorer .hle-components p {
    margin: 0 !important;
    color: var(--hle-muted);
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
}

.hle-meaning-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.48fr);
    gap: 14px;
    margin-top: 14px;
}

.hle-meaning-copy,
.hle-current-record {
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid var(--hle-line);
    background: var(--hle-paper-light);
}

.hle-explorer .hle-meaning-copy h4 {
    margin-top: 0 !important;
    font-size: clamp(1.8rem, 3vw, 3rem) !important;
}

.hle-explorer .hle-meaning-copy > p:not(.hle-eyebrow) {
    max-width: 770px;
    margin: 0 0 14px !important;
    color: var(--hle-muted);
    font-size: 0.86rem !important;
    line-height: 1.7 !important;
}

.hle-current-record {
    background: var(--hle-green);
    color: #fff;
}

.hle-explorer .hle-current-record .hle-eyebrow {
    color: var(--hle-gold-pale);
}

.hle-current-record > div {
    display: grid;
    gap: 2px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hle-current-record > div span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hle-current-record > div strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    font-weight: 400;
}

.hle-explorer .hle-record-note {
    margin: 18px 0 0 !important;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.65rem !important;
    line-height: 1.5 !important;
}

.hle-glossary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hle-glossary details {
    border: 1px solid var(--hle-line);
    background: var(--hle-paper-light);
}

.hle-glossary summary {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 17px 18px;
    color: var(--hle-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.hle-glossary summary::-webkit-details-marker {
    display: none;
}

.hle-glossary summary::after {
    margin-left: auto;
    color: var(--hle-green);
    content: "+";
    font-family: Inter, sans-serif;
}

.hle-glossary details[open] summary::after {
    content: "−";
}

.hle-glossary summary span {
    color: var(--hle-gold);
    font-size: 0.72rem;
}

.hle-explorer .hle-glossary details p {
    margin: 0 !important;
    padding: 0 18px 19px 58px;
    color: var(--hle-muted);
    font-size: 0.8rem !important;
    line-height: 1.65 !important;
}

.hle-domesday-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 25px;
    align-items: center;
    margin-top: 14px;
    padding: clamp(22px, 3vw, 36px);
    background: var(--hle-green);
    color: #fff;
}

.hle-domesday-note strong {
    color: var(--hle-gold-pale);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 5.4rem);
    font-weight: 400;
    line-height: 1;
}

.hle-explorer .hle-domesday-note p {
    max-width: 820px;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.84rem !important;
    line-height: 1.65 !important;
}

.hle-note {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
    padding-block: 15px;
    padding-inline: max(clamp(20px, 3.5vw, 48px), calc((100% - var(--hle-content-width)) / 2));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--hle-green-deep);
}

.hle-explorer .hle-note p {
    max-width: 900px;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.53);
    font-size: 0.66rem !important;
    line-height: 1.5 !important;
}

.hle-note a {
    flex: 0 0 auto;
    color: var(--hle-gold-pale);
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
}

.hle-note a:hover {
    color: #fff;
}

.hle-view-nav button:focus-visible,
.hle-chapters button:focus-visible,
.hle-searchbar input:focus-visible,
.hle-searchbar button:focus-visible,
.hle-holder:focus-visible,
.hle-record__nav button:focus-visible,
.hle-glossary summary:focus-visible {
    outline: 3px solid var(--hle-gold);
    outline-offset: 2px;
}

@container hle-explorer (max-width: 1050px) {
    .hle-succession-layout {
        grid-template-columns: 290px minmax(0, 1fr);
    }

    .hle-record {
        grid-template-columns: 1fr;
    }

    .hle-record__visual {
        min-height: 330px;
        border-right: 0;
        border-bottom: 1px solid var(--hle-line);
    }

    .hle-record__visual img {
        max-height: 250px;
    }

    .hle-record__visual--type > small {
        margin-top: -60px;
    }
}

@container hle-explorer (max-width: 760px) {
    .hle-view-nav {
        justify-content: flex-start;
    }

    .hle-section-head,
    .hle-succession-layout,
    .hle-meaning-grid {
        grid-template-columns: 1fr;
    }

    .hle-timeline {
        display: flex;
        max-height: none;
        overflow-x: auto;
    }

    .hle-timeline__line {
        display: none;
    }

    .hle-holder {
        flex: 0 0 235px;
        border-right: 1px solid rgba(36, 38, 33, 0.1);
        border-bottom: 0;
    }

    .hle-records {
        min-height: 0;
    }

    .hle-components,
    .hle-glossary {
        grid-template-columns: 1fr;
    }

    .hle-note {
        display: grid;
    }
}

@container hle-explorer (max-width: 560px) {
    .hle-hero,
    .hle-hero__content {
        min-height: 520px;
    }

    .hle-hero__stats {
        display: grid;
        width: 100%;
    }

    .hle-searchbar {
        grid-template-columns: 1fr auto;
    }

    .hle-searchbar label {
        grid-column: 1 / -1;
    }

    .hle-record__body {
        padding: 22px;
    }

    .hle-domesday-note {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hle-explorer *,
    .hle-explorer *::before,
    .hle-explorer *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
