@font-face {
    font-family: "Jua";
    src: url("jua-regular.d4c5c7a86538.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Gowun Dodum";
    src: url("gowun-dodum-regular.be29c5a7b3b2.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

.itticlass-reader {
    --itticlass-lettering: "Jua", "Gowun Dodum", system-ui, sans-serif;
    --itticlass-dialogue: "Gowun Dodum", system-ui, sans-serif;
}

.itticlass-reader > header h1,
.itticlass-reader .itticlass-bubble--docked,
.itticlass-reader .itticlass-sound {
    font-family: var(--itticlass-lettering);
    font-weight: 400;
}

.itticlass-reader > header h1 {
    letter-spacing: normal;
}

.itticlass-reader .itticlass-bubble--docked {
    font-size: clamp(1.0625rem, 3.38cqi, 1.56rem);
    line-height: 1.28;
    text-wrap: balance;
}

/* Anchor the tail to the art, so wrapping moves the body away from the speaker. */
.itticlass-reader .itticlass-bubble--docked {
    --bubble-lift: -100%;
    translate: calc(-1 * var(--tail-x)) var(--bubble-lift);
}

.itticlass-reader .itticlass-bubble--docked.itticlass-bubble--tail-up {
    --bubble-lift: 0%;
}

.itticlass-reader .itticlass-sound {
    inset-block-start: var(--sound-y, 11%);
    inset-inline-start: var(--sound-x, 5%);
}

.itticlass-reader .itticlass-note,
.itticlass-reader .spoken-caption .dialogue-balloon,
.itticlass-reader .phone-chat__copy {
    font-family: var(--itticlass-dialogue);
    font-size: clamp(1.0625rem, 2.2vw, 1.16rem);
    line-height: 1.62;
}

.itticlass-reader .itticlass-note strong,
.itticlass-reader .spoken-caption .speaker {
    font-family: system-ui, sans-serif;
}

/* At large browser zoom the panel may be too narrow for legible overlays. */
@container (max-width: 260px) {
    .itticlass-reader .itticlass-bubble--docked {
        position: relative;
        inset: auto;
        translate: none;
        max-inline-size: calc(100% - 16px);
        margin: 6px 8px;
        text-align: start;
    }
    .itticlass-reader .itticlass-bubble--docked .itticlass-bubble-tail {
        display: none;
    }
    .itticlass-reader .itticlass-bubble--docked .sr-only {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        clip: auto;
        clip-path: none;
        white-space: normal;
    }
}
