*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy-hv: #14213d;
    --steel-hv: #4a5d7e;
    --coral-hv: #e5533c;
    --ink-hv: #101828;
    --bg-hv: #f8f9fb;
    --white-hv: #ffffff;
    --muted-hv: #4f5b73;
    --border-hv: #d9dee8;
    --head-font-hv: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    --body-font-hv: Verdana, Geneva, Tahoma, sans-serif;
    --round-hv: 12px;
    --round-lg-hv: 22px;
    --lift-hv: 0 8px 20px rgba(20, 33, 61, .1);
}

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--body-font-hv);
    background: var(--bg-hv);
    color: var(--ink-hv);
    line-height: 1.75;
    font-size: 15px;
}

a {
    color: var(--coral-hv);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease;
}
a:hover { color: var(--navy-hv); }

/* ---------- masthead ---------- */
.masthead-hv {
    padding: 16px 20px;
    text-align: center;
    background: var(--navy-hv);
}
.masthead-brand-hv {
    display: inline-block;
    padding: 8px 26px;
    border: 1.5px solid var(--coral-hv);
    border-radius: 999px;
    font-family: var(--head-font-hv);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .2em;
    text-indent: .2em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: background .2s ease;
}
.masthead-brand-hv:hover { background: var(--coral-hv); color: #fff; }

/* ---------- intro ---------- */
.intro-hv {
    background: var(--white-hv);
    border-bottom: 1px solid var(--border-hv);
}
.intro-inner-hv {
    max-width: 860px;
    margin: 0 auto;
    padding: 46px 22px 34px;
    text-align: center;
}
.intro-title-hv {
    font-family: var(--head-font-hv);
    font-size: clamp(26px, 4.2vw, 42px);
    font-weight: 700;
    line-height: 1.22;
    color: var(--navy-hv);
}
.intro-sub-hv {
    display: block;
    margin: 12px auto 0;
    max-width: 600px;
    font-size: 15px;
    color: var(--muted-hv);
}
.intro-date-hv {
    display: inline-block;
    margin-top: 18px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--navy-hv);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}

/* ---------- chapters ---------- */
.chapters-hv {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 22px 60px;
}
.chapter-hv {
    padding: 26px 0;
    border-bottom: 1px solid var(--border-hv);
}
.chapter-hv:last-child { border-bottom: none; }
.chapter-head-hv {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}
.chapter-badge-hv {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-family: var(--head-font-hv);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--navy-hv);
    margin-top: 2px;
}
.chapter-hv:hover .chapter-badge-hv { background: var(--coral-hv); }
.chapter-name-hv {
    font-family: var(--head-font-hv);
    font-size: clamp(19px, 2.3vw, 23px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy-hv);
}
.chapter-text-hv { padding-left: 50px; }
.chapter-text-hv p { margin-bottom: 12px; color: var(--muted-hv); }
.chapter-text-hv p:last-child { margin-bottom: 0; }
.chapter-text-hv strong { color: var(--ink-hv); }
.chapter-text-hv ul,
.chapter-text-hv ol {
    margin: 0 0 12px;
    padding-left: 0;
    list-style: none;
    color: var(--muted-hv);
}
.chapter-text-hv ol { counter-reset: hvItem; }
.chapter-text-hv li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}
.chapter-text-hv ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--coral-hv);
}
.chapter-text-hv ol > li {
    counter-increment: hvItem;
    padding-left: 28px;
}
.chapter-text-hv ol > li::before {
    content: counter(hvItem) ")";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--head-font-hv);
    font-weight: 700;
    color: var(--coral-hv);
}
@media (max-width: 620px) {
    .chapter-text-hv { padding-left: 0; }
    .chapter-badge-hv { width: 30px; height: 30px; font-size: 13px; }
}

/* ---------- inserts ---------- */
.highlight-hv {
    margin: 14px 0 4px;
    padding: 16px 18px;
    border-radius: var(--round-hv);
    background: var(--navy-hv);
    color: #fff;
}
.highlight-hv p { color: #e6e9f0; margin: 0; font-size: 14px; }
.highlight-hv strong { color: #fff; }

.grid-hv {
    margin: 12px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}
.cell-hv {
    padding: 12px 14px;
    background: var(--white-hv);
    border: 1px solid var(--border-hv);
    border-radius: var(--round-hv);
    font-size: 14px;
}
.cell-k-hv {
    display: block;
    font-family: var(--head-font-hv);
    font-weight: 700;
    color: var(--navy-hv);
    margin-bottom: 4px;
}
.cell-v-hv { color: var(--muted-hv); }

.matrix-hv {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 14px;
    background: var(--white-hv);
    border-radius: var(--round-hv);
    overflow: hidden;
    box-shadow: var(--lift-hv);
}
.matrix-hv th {
    background: var(--steel-hv);
    color: #fff;
    text-align: left;
    padding: 12px 14px;
    font-family: var(--head-font-hv);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.matrix-hv td {
    padding: 11px 14px;
    border-top: 1px solid var(--border-hv);
    color: var(--muted-hv);
}
.matrix-hv td:last-child { font-weight: 700; color: var(--navy-hv); }

.labels-hv {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.label-hv {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(229, 83, 60, .1);
    font-size: 12px;
    font-weight: 700;
    color: var(--coral-hv);
}

.outro-hv {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 22px 56px;
}
.outro-inner-hv {
    padding: 18px 22px;
    border-radius: var(--round-hv);
    background: var(--white-hv);
    border: 1px solid var(--border-hv);
    font-size: 14px;
    color: var(--muted-hv);
    text-align: center;
}

/* ---------- bottom ---------- */
.bottom-hv {
    margin-top: auto;
    flex-shrink: 0;
    background: var(--white-hv);
    color: var(--muted-hv);
    padding: 26px 20px 24px;
    text-align: center;
    border-top: 4px solid var(--navy-hv);
}
.bottom-inner-hv {
    max-width: 900px;
    margin: 0 auto;
}
.bottom-nav-hv {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-bottom: 14px;
}
.bottom-nav-hv a {
    color: var(--navy-hv);
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}
.bottom-nav-hv a:hover { color: var(--coral-hv); }
.bottom-copy-hv {
    font-size: 12px;
    color: var(--muted-hv);
    margin-bottom: 10px;
}
.bottom-legal-hv {
    font-size: 11px;
    line-height: 1.7;
    color: #7c869a;
    max-width: 760px;
    margin: 0 auto;
}
