/* Scoped by inclusion on the Hong Kong English programme pages. */
.hk-phrase {display:inline-block;white-space:nowrap}
.hk-site .hk-floating-contact[hidden], .hk-demo button[hidden] {display:none!important}
.hk-site .hk-floating-contact {position:fixed;right:16px;bottom:max(12px,env(safe-area-inset-bottom));z-index:22;min-height:44px}
.hk-site .hk-demo {margin:16px 0 20px;background:white;color:var(--navy);padding:14px 20px;border:1px solid var(--line);border-radius:10px;text-align:left}
.hk-demo figcaption {display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:14px;line-height:1.4}
.hk-demo button {background:transparent;color:var(--navy);border:0;text-decoration:underline;cursor:pointer;min-height:44px;min-width:44px;font:inherit}
.hk-demo ol {list-style:none;margin:0;padding:0}
.hk-demo li {display:grid;grid-template-columns:minmax(7em, 26%) minmax(0,1fr);gap:10px;border-inline-start:3px solid var(--line);padding:10px 12px;margin:0;color:var(--ink);font-size:16px;line-height:1.5;transition:background .24s ease,border-color .24s ease}
.hk-demo li + li {margin-top:3px}
.hk-demo .hk-step-seen {border-color:var(--green);background:#f5f8ed}
.hk-demo .hk-step-current {border-color:var(--navy);background:var(--ice)}
.hk-demo li strong {font-size:inherit}
.hk-demo mark {background:#e6efbb;color:inherit}
.hk-home-feedback {max-width:56rem;margin:24px auto}
.hk-site .hk-chart-key {display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px}
.hk-site .reading-evidence-map i {font-size:16px}
.hk-site .genre-family {--family-tone:#eaf3f7}
.hk-site .genre-family:nth-child(2) {--family-tone:#f0f4df}
.hk-site .genre-family:nth-child(3) {--family-tone:#f9e9e5}
.hk-site .genre-family:nth-child(4) {--family-tone:#eceef7}
.hk-site .genre-tiles .genre-tile {background:var(--family-tone)}
.hk-site .genre-family .genre-icon {width:26px;height:26px}
.hk-site .esssp-unit-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch}
.hk-site .esssp-unit {min-width:0;align-self:start}
.hk-site .esssp-unit:has(details[open]) {grid-column:1/-1}
.hk-site .esssp-unit summary {min-height:0;padding:16px}
.hk-site .esssp-unit .esssp-unit-heading {display:block;padding:0;margin:0}
.hk-site .hk-unit-icon {display:block;width:24px;height:24px;margin-bottom:6px}
.hk-site .esssp-unit-heading .esssp-unit-label,.hk-site .esssp-unit-heading .esssp-unit-action {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.hk-site .esssp-unit-heading .esssp-unit-title {font-size:18px;line-height:1.4}
.hk-site .esssp-unit-heading .esssp-unit-theme {font-size:16px;line-height:1.5}
.hk-site .esssp-unit-heading .esssp-toggle {top:1px}
.hk-site .v6-portraits,.hk-site .teacher-profile-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:1000px;margin-inline:auto;gap:16px}
.hk-site .v6-portraits figure,.hk-site .teacher-profile {display:grid;grid-template-columns:minmax(90px,.75fr) minmax(0,1fr);align-items:center;gap:16px;background:white;color:var(--navy);padding:16px;border:1px solid var(--line);border-radius:10px;max-width:none;width:auto;margin:0}
.hk-site .v6-portraits figure img,.hk-site .teacher-profile img {width:100%;max-width:none;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:6px}
.hk-site .v6-portraits figcaption {position:static;display:grid;gap:4px;background:none;text-align:start;padding:0;color:var(--navy)}
.hk-site .v6-portraits figcaption small,.hk-site .teacher-profile [lang=en]:not(h3) {font-size:14px;line-height:1.45}
.hk-site .hk-teaching-note {font-size:16px;line-height:1.55;margin:6px 0}
.hk-video {position:relative;aspect-ratio:16/9;background:var(--navy)}
.hk-video button,.hk-video iframe,.hk-video img {display:block;width:100%;height:100%;border:0;padding:0;max-width:none}
.hk-video button {position:relative;cursor:pointer;background:transparent}
.hk-video button span {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:54px;height:54px;border-radius:50%;color:white;background:var(--navy);font-size:22px}
.hk-site .breadcrumbs,.hk-site .breadcrumbs :is(a,span) {font-size:14px}
.hk-site main :is(small,.eyebrow,.teacher-eyebrow,.tiny-label,.v6-context,.hk-caption,.course-term,.v6-example-label,.teacher-illustration,.v7-photo-credit) {font-size:14px}
@media(max-width:767px){
 .hk-site .breadcrumbs {display:none}
 .hk-site .esssp-unit-grid,.hk-site .genre-family .genre-tiles {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .hk-site .esssp-unit summary {padding:10px}
 .hk-site .esssp-unit-heading .esssp-unit-title {font-size:16px}
 .hk-site .esssp-unit-heading .esssp-unit-theme {font-size:14px}
 .hk-site .genre-family .genre-tile {display:flex;align-items:flex-start;flex-direction:column;padding:10px;min-width:0;gap:4px;overflow-wrap:anywhere}
 .hk-site .genre-tile p {margin:0}
 .hk-site .hk-demo {padding:6px 10px;margin:10px 0}
 .hk-demo li {display:block;padding:7px 10px}
 .hk-demo li>strong {display:block}
 .hk-site .teacher-profile-grid,.hk-site .v6-portraits {grid-template-columns:1fr;gap:8px}
 .hk-site .teacher-profile,.hk-site .v6-portraits figure {grid-template-columns:minmax(72px,28%) minmax(0,1fr);gap:12px;padding:10px}
 .hk-site .hk-phrase {font-size:inherit;letter-spacing:inherit}
 .hk-site :is(.wg-delivery,.esssp-catalog,.esssp-mode,.hk-section,.v6-faculty,.brand-support,.v6-writing-path,.teacher-section) {padding-block:26px}
 .hk-site .hk-home-feedback {margin:16px 0}
 .hk-site .hk-video button {min-height:44px}
}
@media(prefers-reduced-motion:reduce){.hk-demo li {transition:none}}

/* Caption and legend sizes in the original Hong Kong layouts. */
html body.hk-site article.feedback-story>header>p.feedback-context,
html body.hk-site blockquote.feedback-quote>cite,
html body.hk-site details.course-format>summary>span,
html body.hk-site details.v6-deep.v8-mixed-writing>div>p.v6-context,
html body.hk-site details.v6-deep>div>p.v6-context,
html body.hk-site details.v6-reveal>div>p.v6-context,
html body.hk-site details.v6-skill-library.v6-deep>div>p.v6-context,
html body.hk-site div.course-dropdown>a>span,
html body.hk-site div.course-overview.course-overview--brief>div>span,
html body.hk-site div.experience-copy>p.eyebrow,
html body.hk-site div.feedback-reading>strong,
html body.hk-site div.mf-bottom>span,
html body.hk-site div.student-network-person>span.student-network-label,
html body.hk-site div.tab-nav>a,
html body.hk-site div.tab-nav>a>span,
html body.hk-site div.v6-reference-line>div>span,
html body.hk-site div.v8-orbit-controls.js-only>button,
html body.hk-site div.v8-subject-balance>span,
html body.hk-site div.v8-subject-balance>span>b,
html body.hk-site div.wrap>p.v6-level-note,
html body.hk-site figure.v8-orbit-diagram>figcaption,
html body.hk-site figure.v8-orbit-diagram>figcaption>span,
html body.hk-site h3.esssp-unit-heading>span.esssp-unit-label,
html body.hk-site nav.feedback-topics>a>span,
html body.hk-site ol.v8-mixed-route>li>span,
html body.hk-site p.v6-context>a,
html body.hk-site span.esssp-unit-action>span.esssp-show,
html body.hk-site ul.brand-partner-grid>li>span,
html body.hk-site ul.lesson-list>li>span.lesson-code,
html body.hk-site ul.lesson-list>li>span>strong {font-size:14px!important}
.hk-site .hk-extended summary {display:flex;align-items:center;min-height:44px;text-decoration:underline;cursor:pointer}
.hk-site .v6-portraits figcaption :is(span,b,small,p) {color:var(--navy)}
.hk-site .v6-portraits figcaption span {font-size:16px}
html .hk-site .actions :is(a.button,.line-cta-label,.text-link,.text-link>span) {font-size:16px}
html .hk-site :is(.course-format,.feedback-reading,.reading-benefit-head,.teacher-video-copy) > p:not([class]),html .hk-site main :is(.v8-orbit-feedback,.v8-lesson-goal,.esssp-curriculum-key) {font-size:16px}
@media(max-width:767px){html .hk-site .experience-copy .hk-hero-lead,html .hk-site .people-hero-lead {font-size:16px}}
.hk-site .v8-course-total p {font-size:16px}
.hk-site .hk-chart-key .course-term {font-size:16px}
@media(max-width:767px){
 .hk-site #start .hk-start-grid {gap:0}
 .hk-site #start .hk-start-grid article {display:grid;grid-template-columns:2em 1fr;gap:3px 10px;padding:12px 0;min-height:0;border-width:0 0 1px}
 .hk-site #start .hk-start-grid article>span {grid-row:span 2;font-size:16px}
 .hk-site #start .hk-start-grid article :is(h3,p) {margin:0}
 .hk-site #reading-in-action .hk-reading-paper {min-height:0;padding:14px 18px}
 .hk-site #reading-in-action .hk-reading-paper p {font-size:20px;line-height:1.45;margin:4px 0}
 .hk-site #reading-in-action .hk-evidence {gap:14px}
 .hk-site.page-index main .section-head,.hk-site.page-index .brand-support-heading,.hk-site .v6-section-head {margin-bottom:16px}
 .hk-site .brand-support .brand-team-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .hk-site .brand-team-grid figcaption {padding:8px}
 .hk-site .brand-team-grid .hk-phrase {white-space:normal;text-wrap:balance}
 .hk-site .brand-team-grid figcaption p .hk-phrase {white-space:nowrap}
 .hk-site #writing-levels .writing-stop {gap:6px;padding:12px;min-height:0}
 .hk-site #writing-levels .writing-stop p {line-height:1.55;margin-block:6px}
 .hk-site #writing-levels .wg-delivery {margin-block:16px;padding-block:12px}
 .hk-site #writing-levels .v6-deep {margin-block:10px}
 .hk-site .v6-writing-studio,.hk-site #writing-levels {padding-block:24px}
 .hk-site #writing-levels .v6-genre-header {margin-block:18px}
 .hk-site .closing {padding-block:36px;min-height:0}
 .hk-site .hk-section .wrap {padding-block:0}
}
@media(max-width:767px){
 /* The shared home skin sets 48px above and below every section. */
 .hk-site.page-index main>section:not(.experience-hero) {padding-block:22px!important}
 .hk-site #reading-in-action .hk-evidence {display:block}
 .hk-site #reading-in-action .hk-evidence details {margin:10px 0}
 .hk-site.page-index .learning-card .learning-card-photo {height:155px}
 .hk-site #learning-deck .learning-card-copy {padding:14px 18px}
 .hk-site .v6-section-heading>p,.hk-site .brand-support-heading>p {margin-block:8px}
 .hk-site .brand-support-overview {padding-block:12px}
 .hk-site .brand-recognition,.hk-site .brand-team {margin-top:16px;padding-top:12px}
 .hk-site .hk-home-feedback h3 {color:inherit;margin:0}
 .hk-site .v6-teaching-links {padding-top:10px;margin-top:8px}
 .hk-site .v6-teaching-links .v6-classroom-link {min-height:64px}
 .hk-site #writing-levels .writing-stop {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;column-gap:12px}
 .hk-site .writing-stop>div {justify-self:end}
 .hk-site .writing-stop :is(p,a) {grid-column:1/-1}
 .hk-site #writing-levels .writing-advanced-intro {margin-top:22px}
 .hk-site .page-writing .wg-genre-scope,.hk-site .wg-dlp {margin-block:12px}
 .hk-site .course-panorama--writing>img {height:195px}
 .hk-site #writing-levels .genre-family>summary {min-height:44px;padding:10px}
 .hk-site .v6-section-head h2,.hk-site .wg-delivery-head h3 {margin-block:8px}
 .hk-site #writing-levels .v6-deep>summary {min-height:44px;padding-block:10px}
}
html body.hk-site .closing .closing-inner p:not(.eyebrow),
html body.hk-site .reading-foundation-actions>div>p,
html body.hk-site .reading-benefit-example>div>p {font-size:16px;line-height:1.65}
@media(max-width:767px){
 .hk-site.home-v7 .learning-card .learning-card-photo {height:140px}
 .hk-site.home-v7 .experience-hero .wrap {padding-block:24px}
 .hk-site .brand-support-overview .student-network {max-width:280px;margin-inline:auto}
 .hk-site.home-v7 .brand-support-overview {gap:8px}
 .hk-site.page-index .v6-faculty .v6-section-heading {margin-bottom:12px}
 .hk-site.page-index .hk-start-grid,.hk-site.page-index .hk-faq-list {margin-block:10px}
 .hk-site.page-writing .world-cover>img {height:200px}
 .hk-site .world-cover--writing .wrap {padding-block:22px}
}

/* Break at editorial phrase boundaries while allowing the same copy to reflow. */
.hk-site main :is(h1,h2,h3,h4,h5,h6,.esssp-unit-title) {text-wrap:balance}
.hk-site main .hk-words {display:inline-block;white-space:nowrap;font:inherit;letter-spacing:inherit;color:inherit}
.hk-site .reading-evidence-map {display:grid;grid-template-columns:auto auto auto auto auto auto auto;align-items:center;justify-content:center;gap:6px}
.hk-site .reading-evidence-map>span {font-size:16px}
.hk-site .reading-evidence-map>span,.hk-site .reading-evidence-map>strong {min-width:0;padding:8px;text-align:center}
.hk-site .reading-evidence-map .flow-down {display:none}
@media(max-width:767px){
 .hk-site.page-esssp .motion-facts li {padding-inline:4px;text-align:center}
 .hk-site.page-esssp .motion-facts li>span {white-space:nowrap}
 .hk-site .reading-passage-banner {grid-template-columns:minmax(0,1fr)}
 .hk-site .reading-world-title h4 br {display:initial}
 .hk-site .reading-evidence-map {grid-template-columns:minmax(0,1fr);justify-items:center;gap:4px}
 .hk-site .reading-evidence-map>span,.hk-site .reading-evidence-map>strong {width:100%;max-width:224px;box-sizing:border-box}
 .hk-site .reading-evidence-map .flow-across {display:none}
 .hk-site .reading-evidence-map .flow-down {display:inline}
}

@media(max-width:359px){
 .hk-site .reading-passage-banner h4 {font-size:25px}
 .hk-site.page-esssp .motion-facts li>span {display:block}
 .hk-site .v6-genre-header {gap:12px}
 .hk-site .v6-genre-header>strong {font-size:54px}
 .hk-site .v6-genre-header h3 {font-size:22px}
}
