/* The public Guide styles own the page, including type, navigation, and reading width. */
.drawing { margin:1.45rem 0 2rem; text-align:center }
.drawing img { display:block; width:min(72%,21rem); height:auto; max-height:15.5rem; object-fit:contain; margin:auto; mix-blend-mode:multiply }
.examples { margin:1rem 0; padding:.25em 0 .25em .75em; border-left:2px solid #b8cecc }
.examples summary { cursor:pointer; color:#0b706b; font-size:.9em }
.examples figure { margin:.6rem 0 }
.pop-host { margin:2rem 0 1.25rem }
.guide-quiz-link { margin:.6rem 0 0; }
.guide-quiz-link a { display:inline-block; padding:.55rem 0; color:#0b706b; text-decoration:underline; text-underline-offset:.2em; font-size:.9375rem; }
.solo-links { max-width:610px; margin:1rem auto 2rem; padding-inline:20px }
:root { --body-font:var(--gg-font-ui-base) }
html:lang(ja) { --body-font:var(--gg-font-ui-ja) }
html:lang(ko) { --body-font:var(--gg-font-ui-ko) }
.quiz-card,.pop-page,.pop-head h2,.pop-imprint { font-family:var(--body-font) }
.quiz-card { overflow-wrap:anywhere }
.pop-topic { flex-shrink:0; max-width:52%; text-align:center; white-space:normal; line-height:1.35 }
.pop-choices button { overflow-wrap:anywhere; font:700 1rem/1.45 var(--body-font); gap:9px; padding:8px 11px; min-width:0 }
.pop-choices button[lang=vi],.pop-choices[lang=vi] button { font-family:var(--gg-font-ui-vi) }
.pop-letter { flex-shrink:0 }
.quiz-card[data-format=choice] .pop-choices { display:grid; gap:8px; margin-top:0 }
.recall-actions { display:flex; gap:8px; flex-wrap:wrap; margin:.7rem 0 0 }
.recall-actions button { border:1.5px solid var(--ink); border-radius:5px; font-weight:700; padding:6px 13px; min-height:44px; background:#fffdf4 }
.recall-actions [data-show] { color:white; background:#315b49 }
[data-state=win] .recall-actions,[data-state=win] .pop-instruction,[data-state=win] .pop-export-instruction { display:none }
.menu-clues { background:#fffdf4; padding:7px 14px; border-inline-start:3px solid #ae7551; font-weight:700; display:grid; margin-bottom:.7rem }
.recognition-answer { display:block }
.quiz-card .pop-solved-phrase { display:block; line-height:1.45 }
.pop-head h2 { font-size:clamp(1.3rem,3.2vw,2.1rem) }
.pop-head { padding-inline:clamp(12px,3vw,26px) }
.pop-reset { min-height:44px }
@media(max-width:680px) {
 .drawing { margin-block:1rem 1.6rem }
 .drawing img { width:min(74%,14.5rem); max-height:11.5rem }
}
.export-mode [data-state=win] .pop-exercise,.export-mode .recall-actions { display:none }
.export-mode .pop-head { padding:18px 24px }
.export-mode .pop-head h2 { font-size:32px }
.export-mode .pop-topic { font-size:15px; padding:4px 11px }
.export-mode .pop-body { padding:19px 24px }
.export-mode .pop-prompt { grid-template-columns:74px minmax(0,1fr); gap:13px; margin-bottom:14px }
.export-mode .pop-bubble { font-size:21px; line-height:1.42; padding:10px 13px }
.export-mode .pop-exercise { padding-top:11px }
.export-mode .pop-feedback p { padding:11px 15px; font-size:19px; margin-top:7px; line-height:1.55 }
.export-mode .pop-solved-phrase { font-size:1.15em; margin:.3em 0 }
.export-mode .pop-imprint { padding-top:9px }
.export-mode .pop-choices button { font:700 18px/1.4 var(--body-font); min-height:42px }
.export-mode .pop-choices { gap:7px }
.export-mode .quiz-card[data-format=cloze] .pop-choices button { font-size:24px }
.export-mode .solo-links,.export-mode .mast { display:none }

.examples a.guide-r4-dict{color:#0b706b;text-decoration:underline;text-underline-offset:.16em}.examples a.guide-r4-dict:focus-visible{outline:2px solid #0b7f79;outline-offset:2px}

.guide-example-point {
    margin-block: var(--space-md, 1.5rem);
}

.guide-example-point > h3 {
    margin: 0;
    padding: var(--space-xs, .5rem) var(--space-sm, 1rem);
    border-block-start: 1px solid #d9d2bc;
    background: #f6f1e5;
    color: #263a35;
    font: 750 1.125rem/1.5 var(--body-font);
    text-wrap: balance;
}

.guide-example-point > figure {
    display: flow-root;
    margin: 0;
    border-block-start: 0;
}

.guide-example-point :is(.gr-term, .gs-extra strong[lang="vi"]) {
    font-family: var(--gg-font-ui-vi);
}

.guide-example-point a.guide-r4-dict {
    color: #0b706b;
    text-decoration: underline;
    text-underline-offset: .16em;
}

.guide-example-point a.guide-r4-dict:focus-visible {
    outline: 2px solid #0b7f79;
    outline-offset: 2px;
}

.guide-example-point[id],
.guide-r4-article .guide-lesson-quiz {
    scroll-margin-block-start: 5rem;
}

.guide-lesson {
    --guide-reading-gutter: clamp(24px, 5vw, 48px);
}

.guide-lesson > .guide-r4-body {
    border-block-end: 0;
    border-end-start-radius: 0;
    border-end-end-radius: 0;
    padding-block-end: 1.5rem;
}

.guide-lesson > .guide-r4-closing {
    margin-block-start: 0;
    padding-block: 0;
    border-block: 0;
    border-radius: 0;
}

.guide-lesson > .pop-host {
    margin-block-start: 0;
    padding: 1.5rem var(--guide-reading-gutter) var(--guide-reading-gutter);
    border: 1px solid rgba(31, 66, 82, 0.12);
    border-block-start: 0;
    border-end-start-radius: 26px;
    border-end-end-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
}

@media (max-width: 620px) {
    .guide-lesson {
        --guide-reading-gutter: 22px;
    }
}

.guide-lesson-audio {
    margin-block: 1rem;
    border-block: 1px solid #d9d2bc;
}

.guide-example-point > .guide-lesson-audio {
    margin: 0;
    border-block-start: 0;
    background: #f6f1e5;
}

.guide-lesson-audio__phrase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    padding: .45rem 1rem;
}

.guide-lesson-audio__phrase + .guide-lesson-audio__phrase {
    border-block-start: 1px solid #d9d2bc;
}

.guide-lesson-audio__phrase > p[lang="vi"] {
    margin: 0;
    color: #263a35;
    font: 650 1rem/1.5 var(--gg-font-ui-vi);
}

.guide-lesson-audio__voices {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.guide-lesson-audio__voice button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 44px;
    padding-inline: .6rem;
    border: 1px solid #315b49;
    border-radius: 4px;
    background: #fff;
    color: #315b49;
    font: 700 .875rem/1.25 var(--body-font);
    cursor: pointer;
}

.guide-lesson-audio [hidden] {
    display: none;
}

.guide-lesson-audio__voice button[aria-pressed="true"] {
    background: #315b49;
    color: #fff;
}

.guide-lesson-audio__voice audio {
    display: block;
    width: min(15rem, 60vw);
}

.guide-play-icon {
    width: .7rem;
    height: .7rem;
    background: currentColor;
    clip-path: polygon(15% 0, 100% 50%, 15% 100%);
}

[aria-pressed="true"] > .guide-play-icon {
    clip-path: polygon(0 0, 34% 0, 34% 100%, 0 100%, 0 0, 100% 0, 100% 100%, 66% 100%, 66% 0);
}

.guide-lesson-audio__phrase > .guide-lesson-audio__error {
    flex-basis: 100%;
    margin: 0;
    color: #83452f;
    font-size: .875rem;
}

.guide-example-point > .guide-quiz-jump {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0 1rem;
    background: #fbf9f2;
    border-block-end: 1px solid #d9d2bc;
}

.guide-quiz-jump a,
.guide-quiz-review {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #0b706b;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .16em;
}

.guide-lesson-audio button:focus-visible,
.guide-quiz-jump a:focus-visible,
.guide-quiz-review:focus-visible {
    outline: 2px solid #0b7f79;
    outline-offset: 2px;
}

.guide-r4-article .guide-lesson-quiz {
    --sheet: #f6f1e5;
    --wash: #fbf9f2;
    --ink: #263a35;
    border: 0;
    border-block: 1px solid #d9d2bc;
    border-radius: 0;
    box-shadow: none;
}

.guide-lesson-quiz .pop-head {
    flex-wrap: wrap;
    gap: 0 1rem;
    padding: .25rem 1rem;
    border-block-end: 1px solid #d9d2bc;
}

.guide-lesson-quiz .pop-head h2 {
    font: 750 1.125rem/1.5 var(--body-font);
    letter-spacing: normal;
}

.guide-lesson-quiz .pop-body {
    background-image: none;
}

.guide-lesson-quiz .pop-bubble,
.guide-lesson-quiz .pop-choices button,
.guide-lesson-quiz .pop-bank button {
    border-width: 1px;
    box-shadow: none;
}

.guide-lesson-quiz .pop-bubble::before {
    border-width: 1px;
}

.guide-lesson-audio__phrase {
    justify-content: flex-start;
    column-gap: .65rem;
}

.gs-speech > .guide-lesson-audio {
    margin: .4rem 0 0;
    border: 0;
}

.gs-speech > .guide-lesson-audio .guide-lesson-audio__phrase {
    padding: 0;
}

.gs-point > .drawing {
    margin: .5rem 1rem 0;
}

.gs-point > .drawing img {
    width: min(100%, 18rem);
    height: auto;
    max-height: none;
}

.gs-extra .gs-order-listen {
    display: block;
}

.gs-order-listen .guide-lesson-audio {
    margin: .35rem 0 0;
    border: 0;
}

.gs-order-listen .guide-lesson-audio__phrase {
    padding: 0;
}

.gs-extra .gs-order-listen dd .guide-play-icon {
    margin: 0;
}
