/* Laowai HSK hub. Existing level palettes, shared artwork and public light reading profile. */
body.learning-design.hsk-hub main { padding-bottom:64px; }
.hsk-hub .hsk-hub-opening { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:40px;align-items:center;margin:32px 0 48px; }
.hsk-hub .hsk-hub-intro h1 { font-size:clamp(2.25rem,4.5vw,4rem);line-height:1.08;margin:0 0 20px;max-width:15ch; }
.hsk-hub .hsk-hub-intro p { max-width:36ch;margin:0 0 16px; }
.hsk-hub-intro nav { display:flex;flex-wrap:wrap;gap:8px 24px; }
.hsk-hub-intro nav a { display:inline-flex;align-items:center;min-height:44px;font-size:.9375rem;text-underline-offset:4px; }
.hsk-hub .hsk-hub-mock { position:relative;display:block;overflow:hidden;isolation:isolate;padding:28px;border-radius:var(--lw-ds-radius-web-feature);background:var(--lw-ds-gradient-forest);color:var(--lw-ds-gradient-forest-ink);text-decoration:none; }
.hsk-hub-mock-copy { position:relative;z-index:1;max-width:66%; }
.hsk-hub .hsk-hub-mock h2 { color:inherit;font-size:2.25rem;line-height:1.12;margin:0 0 16px;max-width:10ch; }
.hsk-hub .hsk-hub-mock p { color:inherit;font-size:.9375rem;line-height:1.5;margin:0 0 20px;max-width:24ch; }
.hsk-hub-mock>img { position:absolute;inset:0 0 0 auto;width:40%;height:100%;object-fit:cover;object-position:54% center;mask-image:linear-gradient(to right,transparent,#000 32%); }
.hsk-hub-feature-action { display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 14px;border-radius:var(--lw-ds-radius-web-control);font-size:.9375rem;font-weight:600;line-height:1.35;background:var(--lw-ds-gradient-forest-action-fill);color:var(--lw-ds-gradient-forest-action-ink); }
.hsk-hub .hsk-hub-mock:hover .hsk-hub-feature-action { text-decoration:underline;text-underline-offset:4px; }
.hsk-hub .hsk-hub-section-heading h2 { margin:0 0 8px; }
.hsk-hub-section-heading p { margin:0 0 20px; }
.hsk-hub .hsk-editions { margin:0 0 24px; }
.hsk-hub .hsk-hub-levels { margin-bottom:48px; }
body.learning-design.hsk-hub .hsk-hub-level { display:block;position:relative;isolation:isolate;overflow:hidden;container:hsk-level / inline-size;font-size:1rem;background:var(--hub-level-bg);color:var(--lw-ds-ink);min-height:218px;padding:24px;gap:0;padding-inline-end:24px!important; }
.hsk-hub-level-copy { position:relative;z-index:1;max-width:calc(58% - 12px); }
body.learning-design.hsk-hub .hsk-hub-level h3 { margin:0 0 8px;font:400 var(--lw-ds-type-title-size)/1.2 var(--lw-ds-font-editorial)!important;color:var(--level-accent); }
body.learning-design.hsk-hub .hsk-hub-level .hsk-card-count { margin:0 0 20px;font-size:.875rem;line-height:1.5;font-variant-numeric:tabular-nums; }
.hsk-hub-level-actions { display:flex;flex-wrap:wrap;align-items:center;gap:0 16px;margin-top:8px; }
body.learning-design.hsk-hub .hsk-hub-level a.hsk-hub-level-action { position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;margin:0;padding:10px 12px;border:1px solid transparent;border-radius:var(--lw-ds-radius-web-control);font:600 .9375rem/1.3 var(--lw-ds-font-interface);text-align:center;text-decoration:none;color:var(--level-accent); }
body.learning-design.hsk-hub .hsk-hub-level a.hsk-hub-level-action-main { display:inline-flex;max-width:100%;justify-content:space-between;gap:16px;background:var(--lw-ds-action-fill);color:var(--lw-ds-on-action); }
body.learning-design.hsk-hub .hsk-hub-level a.hsk-hub-level-action-quiet { justify-content:flex-start;padding:6px 0;border:0;border-radius:0;font-size:.875rem;font-weight:400;text-align:start;text-decoration:underline;text-underline-offset:4px; }
body.learning-design.hsk-hub .hsk-hub-level a.hsk-hub-level-action:hover { text-decoration:underline;text-underline-offset:4px; }
body.learning-design.hsk-hub .hsk-hub-level a.hsk-hub-level-action-main:hover { background:var(--lw-ds-action-hover); }
body.learning-design.hsk-hub .hsk-hub-level a.hsk-hub-level-action:focus-visible { outline:2px solid var(--lw-ds-accent-text);outline-offset:3px; }
/* Canonical destination-illustrated: one outer shell, full-height trailing scene,
   inner-edge fade only. The picture is not a thumbnail or a second card. */
.hsk-hub .hsk-hub-level > .hsk-hub-level-art { position:absolute;z-index:0;inset:0 0 0 auto;width:42%;height:100%;margin:0;padding:0;border:0;border-radius:0;object-fit:cover;object-position:center;opacity:1;mask-image:linear-gradient(to right,transparent,#000 25%); }
.hsk-hub-grammar-link { margin:20px 0 0; }
.hsk-hub-grammar-link a { display:inline-flex;align-items:center;min-height:44px;font-size:.9375rem; }
.hsk-hub .hsk-hub-downloads { display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:32px;padding:32px;border-radius:var(--lw-ds-radius-web-feature);background:var(--lw-ds-sage);margin:0 0 48px;scroll-margin-top:100px; }
.hsk-hub .hsk-hub-downloads h2 { margin:0 0 16px; }
.hsk-hub .hsk-hub-downloads p { margin:0; }
.hsk-hub-downloads fieldset { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border:0;margin:0;padding:0;min-width:0; }
.hsk-hub-downloads label { display:grid;gap:6px;min-width:0;font-size:.875rem;font-weight:600; }
.hsk-hub .hsk-hub-downloads select { width:100%;min-width:0;min-height:48px;height:calc(1.4em + 22px);max-width:100%;padding:10px 36px 10px 12px;background-color:var(--lw-ds-field);background-image:var(--lw-ds-select-icon);background-repeat:no-repeat;background-position:right 12px center;background-size:16px 16px;appearance:none;border:1px solid var(--lw-ds-muted);border-radius:var(--lw-ds-radius-web-control);color:var(--lw-ds-ink);font:400 1rem/1.4 var(--lw-ds-font-interface); }
.hsk-hub-download-action { display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:20px; }
.hsk-hub .hsk-hub-file { display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:12px 18px;border-radius:var(--lw-ds-radius-web-control);background:var(--lw-ds-action-fill);color:var(--lw-ds-on-action);text-decoration:none;font-size:.9375rem;font-weight:600;line-height:1.4; }
.hsk-hub .hsk-hub-file:hover { background:var(--lw-ds-action-hover);text-decoration:underline;text-underline-offset:4px; }
.hsk-hub .hsk-hub-download-action p { font-size:.875rem;line-height:1.5;max-width:27ch; }
.hsk-hub .hsk-hub-download-fallback { margin-top:12px;font-size:.875rem; }
.hsk-hub-download-fallback a { display:inline-flex;align-items:center;min-height:44px; }
.hsk-hub .hsk-word-search { padding:0;margin:0 0 48px;border:0;background:none; }
.hsk-hub .hsk-word-search h2 { margin:0 0 12px; }
.hsk-hub .hsk-hub-tools { margin:0 0 40px; }
.hsk-hub .hsk-hub-tools h2 { margin:0 0 16px; }
.hsk-hub-tool-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px; }
.hsk-hub-tool-list a { display:flex;align-items:center;min-height:56px;padding:12px 0;border-bottom:1px solid var(--lw-ds-line);font-size:var(--lw-ds-type-body-size);line-height:1.5;text-underline-offset:4px; }
.hsk-hub .site-wide-callout:not(.hsk-word-search) { margin:0 0 32px;padding:24px 0;border:0;border-top:1px solid var(--lw-ds-line);background:none; }
.hsk-hub .site-wide-callout h2 { margin:0 0 12px; }
.hsk-hub .hsk-hub-reference { border-block:1px solid var(--lw-ds-line);padding:0;margin:32px 0 0; }
.hsk-hub-reference summary { cursor:pointer;min-height:56px;padding:16px 0;font-size:1.0625rem;font-weight:600; }
.hsk-hub-reference>section,.hsk-hub-reference>p { margin-block:20px; }
.hsk-hub-reference table { font-variant-numeric:tabular-nums; }
.hsk-hub-sr { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.hsk-hub #choose-level,.hsk-hub #word-search { scroll-margin-top:100px; }
@media(max-width:950px) { .hsk-hub .hsk-hub-opening { grid-template-columns:1fr;gap:24px;margin-bottom:40px; }.hsk-hub .hsk-hub-intro h1 br { display:none; }.hsk-hub .hsk-hub-intro h1 { max-width:22ch; }.hsk-hub .hsk-hub-mock { max-width:680px; }.hsk-hub .hsk-hub-downloads { grid-template-columns:1fr;gap:24px; } }
@media(max-width:650px) { .hsk-hub .hsk-hub-opening { margin-top:24px;gap:20px; }.hsk-hub .hsk-hub-intro h1 { font-size:2.25rem;max-width:18ch;margin-bottom:14px; }.hsk-hub .hsk-hub-intro p { margin-bottom:6px; }.hsk-hub .hsk-hub-mock { padding:24px; }.hsk-hub .hsk-hub-mock h2 { font-size:1.875rem;margin-bottom:12px; }.hsk-hub .hsk-hub-mock p { margin-bottom:16px; }.hsk-hub-mock-copy { max-width:70%; }.hsk-hub-mock>img { width:36%; }.hsk-hub-feature-action { padding:10px 12px;gap:8px; }.hsk-hub .hsk-hub-levels { margin-bottom:32px; }body.learning-design.hsk-hub .hsk-hub-level { min-height:210px;padding:20px;padding-inline-end:20px!important; }.hsk-hub .hsk-hub-downloads { padding:24px 20px;margin-bottom:36px; }.hsk-hub-tool-list { grid-template-columns:1fr; }.hsk-hub .hsk-editions>a { min-height:44px; } }
@media(max-width:370px) { .hsk-hub-downloads fieldset { grid-template-columns:1fr; }.hsk-hub-mock-copy { max-width:76%; }.hsk-hub-mock>img { width:30%; }.hsk-hub .hsk-hub-mock { padding:20px; }.hsk-hub-level-actions { column-gap:8px; } }

/* Related links wrap as text navigation inside a protected reading column.
   Only accessibility-size content may take the decorative image's space. */
@container hsk-level (width < 12em) { .hsk-hub-level-copy { max-width:none; } .hsk-hub-level > .hsk-hub-level-art { display:none; } }
