/* ==========================================================================
   Page: How Hepatitis B Treatment Guidelines Use Test Results
   Loaded only on /work/how-hepatitis-b-treatment-guidelines-use-test-results.php
   ========================================================================== */

.hbv-page {
    --hbv-ink: #2b2b2b;
    --hbv-charcoal: #303030;
    --hbv-charcoal-2: #3d3d3d;
    --hbv-wheat: #F5DEB3;
    --hbv-rust: #a44c0e;
    --hbv-rust-dark: #7c3909;
    --hbv-beige: #ece1d4;
    --hbv-paper: #f6f4f2;
    --hbv-line: #e1d6c8;
    --hbv-muted: #4f4b46;
    font-family: 'EB Garamond', serif;
    font-size: 20px;
    line-height: 1.6;
    color: var(--hbv-ink);
    background: #fff;
}

/* ---------- base text ---------- */

.hbv-page h1,
.hbv-page h2 {
    font-family: 'EB Garamond', serif;
    font-weight: 500;
}

.hbv-page h2 {
    font-size: 36px;
    line-height: 1.15;
    color: var(--hbv-charcoal);
    margin: 0 0 24px;
}

.hbv-page h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 14px;
    background: var(--hbv-rust);
}

.hbv-page p {
    margin: 0 0 18px;
}

.hbv-page p:last-child {
    margin-bottom: 0;
}

.hbv-page a {
    color: var(--hbv-rust);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.hbv-page a:hover,
.hbv-page a:focus {
    color: var(--hbv-rust-dark);
    text-decoration-thickness: 2px;
}

.hbv-page a:focus-visible {
    outline: 2px solid var(--hbv-rust);
    outline-offset: 2px;
}

/* ---------- hero ---------- */

.hbv-page .hbv-hero {
    position: relative;
    overflow: hidden;
    background: var(--hbv-charcoal);
}

.hbv-page .hbv-hero__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% 40%;
}

.hbv-page .hbv-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(34, 34, 34, .93) 0%, rgba(34, 34, 34, .8) 36%, rgba(34, 34, 34, .28) 66%, rgba(34, 34, 34, .06) 100%);
}

.hbv-page .hbv-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 96px;
    padding-bottom: 168px;
}

.hbv-page .hbv-hero__title {
    max-width: 660px;
    margin: 0;
    color: #fff;
    font-size: 60px;
    line-height: 1.06;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.hbv-page .hbv-hero__title::before {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin-bottom: 26px;
    background: var(--hbv-wheat);
}

/* ---------- intro card over the hero ---------- */

.hbv-page .hbv-intro {
    position: relative;
    z-index: 2;
    margin-top: -92px;
    padding: 38px 48px 36px;
    background: #fff;
    border-top: 4px solid var(--hbv-rust);
    box-shadow: 0 26px 50px -24px rgba(48, 48, 48, .45);
}

.hbv-page .hbv-intro p {
    font-size: 23px;
    line-height: 1.55;
    color: var(--hbv-charcoal);
}

/* ---------- bands ---------- */

.hbv-page .hbv-band {
    padding: 68px 0;
}

.hbv-page .hbv-band--first {
    padding-top: 60px;
}

.hbv-page .hbv-band--beige {
    background: var(--hbv-beige);
}

.hbv-page .hbv-band--paper {
    background: var(--hbv-paper) url('../imgs/simplebg.png');
}

/* ---------- results table ---------- */

.hbv-page .hbv-table-wrap {
    margin: 32px 0;
    overflow-x: auto;
    background: #fff;
    box-shadow: 0 20px 40px -28px rgba(48, 48, 48, .5);
}

.hbv-page .hbv-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.hbv-page .hbv-table th {
    padding: 16px 26px;
    background: var(--hbv-charcoal);
    color: var(--hbv-wheat);
    font-size: 20px;
    font-weight: 500;
    text-align: left;
    vertical-align: middle;
}

.hbv-page .hbv-table th:first-child {
    width: 31%;
}

.hbv-page .hbv-table td {
    padding: 20px 26px;
    border-top: 1px solid var(--hbv-line);
    vertical-align: top;
    word-wrap: break-word;
}

.hbv-page .hbv-table td:first-child {
    color: var(--hbv-rust);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
}

.hbv-page .hbv-table tbody tr:nth-child(even) td {
    background: #fbf8f4;
}

/* ---------- guidance documents ---------- */

.hbv-page .hbv-guides {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    margin: 0 0 34px;
}

.hbv-page .hbv-guide {
    padding: 30px 34px;
    background: var(--hbv-paper);
    border-top: 3px solid var(--hbv-rust);
}

.hbv-page .hbv-decision {
    padding: 4px 0 4px 26px;
    border-left: 4px solid var(--hbv-rust);
    color: var(--hbv-charcoal);
    font-size: 23px;
    line-height: 1.5;
}

/* ---------- individual review notice ---------- */

.hbv-page .hbv-review {
    padding: 44px 52px;
    background: #fff;
    border-left: 6px solid var(--hbv-rust);
    box-shadow: 0 24px 48px -30px rgba(48, 48, 48, .55);
}

/* ---------- monitoring: photo card ---------- */

.hbv-page .hbv-visit {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    background: #fff;
    border: 1px solid var(--hbv-line);
    box-shadow: 0 24px 48px -32px rgba(48, 48, 48, .5);
}

.hbv-page .hbv-visit__photo {
    position: relative;
    min-height: 380px;
    margin: 0;
}

.hbv-page .hbv-visit__photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 38% 50%;
}

.hbv-page .hbv-visit__text {
    padding: 46px 50px;
}

/* ---------- questions for the visit ---------- */

.hbv-page .hbv-questions {
    margin-top: 36px;
    padding: 46px 50px 50px;
    background: var(--hbv-charcoal);
    color: #e5e3e3;
}

.hbv-page .hbv-questions > p {
    margin: 0 0 28px;
    color: var(--hbv-wheat);
    font-size: 24px;
    line-height: 1.45;
}

.hbv-page .hbv-questions ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hbv-page .hbv-questions li {
    position: relative;
    padding: 22px 26px 22px 66px;
    background: var(--hbv-charcoal-2);
    border-left: 3px solid var(--hbv-wheat);
    color: #f3f0ea;
    font-size: 21px;
    line-height: 1.45;
}

.hbv-page .hbv-questions li::before {
    content: "?";
    position: absolute;
    top: 13px;
    left: 24px;
    color: var(--hbv-wheat);
    font-size: 42px;
    font-weight: 500;
    line-height: 1;
}

.hbv-page .hbv-closing {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--hbv-line);
    color: var(--hbv-muted);
}

/* ---------- responsive ---------- */

@media (max-width: 1199px) {
    .hbv-page .hbv-hero__title {
        font-size: 52px;
        max-width: 600px;
    }
}

@media (max-width: 991px) {
    .hbv-page .hbv-hero__inner {
        padding-top: 80px;
        padding-bottom: 150px;
    }

    .hbv-page .hbv-hero__title {
        font-size: 46px;
        max-width: 520px;
    }

    .hbv-page .hbv-hero::after {
        background: linear-gradient(90deg, rgba(34, 34, 34, .93) 0%, rgba(34, 34, 34, .78) 46%, rgba(34, 34, 34, .3) 80%, rgba(34, 34, 34, .12) 100%);
    }

    .hbv-page .hbv-visit {
        grid-template-columns: minmax(0, 1fr);
    }

    .hbv-page .hbv-visit__photo {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .hbv-page .hbv-visit__text,
    .hbv-page .hbv-questions {
        padding: 38px 38px 40px;
    }

    .hbv-page .hbv-questions ul {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .hbv-page .hbv-review {
        padding: 38px 40px;
    }

    .hbv-page .hbv-guides {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .hbv-page {
        font-size: 18px;
    }

    .hbv-page h2 {
        font-size: 29px;
        margin-bottom: 20px;
    }

    .hbv-page .hbv-hero__img {
        object-position: 64% 40%;
    }

    .hbv-page .hbv-hero::after {
        background: linear-gradient(180deg, rgba(34, 34, 34, .62) 0%, rgba(34, 34, 34, .78) 100%);
    }

    .hbv-page .hbv-hero__inner {
        padding-top: 56px;
        padding-bottom: 110px;
    }

    .hbv-page .hbv-hero__title {
        font-size: 37px;
        line-height: 1.1;
    }

    .hbv-page .hbv-hero__title::before {
        margin-bottom: 18px;
    }

    .hbv-page .hbv-intro {
        margin-top: -64px;
        padding: 26px 22px 24px;
    }

    .hbv-page .hbv-intro p {
        font-size: 20px;
    }

    .hbv-page .hbv-band {
        padding: 46px 0;
    }

    .hbv-page .hbv-band--first {
        padding-top: 44px;
    }

    .hbv-page .hbv-table th {
        padding: 12px 14px;
        font-size: 17px;
    }

    .hbv-page .hbv-table th:first-child {
        width: 36%;
    }

    .hbv-page .hbv-table td {
        padding: 14px;
        font-size: 17px;
    }

    .hbv-page .hbv-table td:first-child {
        font-size: 18px;
    }

    .hbv-page .hbv-guides {
        gap: 18px;
        margin-bottom: 28px;
    }

    .hbv-page .hbv-guide {
        padding: 24px 22px;
    }

    .hbv-page .hbv-decision {
        padding-left: 18px;
        font-size: 20px;
    }

    .hbv-page .hbv-review {
        padding: 30px 22px;
        border-left-width: 5px;
    }

    .hbv-page .hbv-visit__photo {
        aspect-ratio: 16 / 10;
    }

    .hbv-page .hbv-visit__text,
    .hbv-page .hbv-questions {
        padding: 28px 22px 30px;
    }

    .hbv-page .hbv-questions > p {
        font-size: 20px;
        margin-bottom: 22px;
    }

    .hbv-page .hbv-questions li {
        padding: 18px 18px 18px 54px;
        font-size: 18px;
    }

    .hbv-page .hbv-questions li::before {
        top: 12px;
        left: 18px;
        font-size: 36px;
    }

    .hbv-page .hbv-closing {
        margin-top: 32px;
        padding-top: 24px;
    }
}
