/* Current pages only. Historical entry points keep their original styles. */
:root {
  --reading-scale: 1;
  --reading-min: 20px;
  --reading-body: calc(20px * var(--reading-scale));
  --reading-label: calc(18px * var(--reading-scale));
  --reading-step: calc(28px * var(--reading-scale));
}
:root[data-reading-size="large"] { --reading-scale: 1.15; }
:root[data-reading-size="extra-large"] { --reading-scale: 1.3; }
html { font-size: 16px; }
body { font-size: var(--reading-body); }
main p, main li, main dd, main blockquote { text-wrap: pretty; }
main :is(p,li,dd,blockquote,small,label,summary,td,th) { line-height: 1.75; }
main :is(h1,h2,h3,h4) { text-wrap: balance; }
button, input, select, textarea { font-family: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select {
  font-size: var(--reading-label);
}
.eyebrow, .brand-en, .location, .breadcrumbs, .site-header, .brand-header,
.site-footer, .page-footer, .hero-scene-selectors, .hero-photo-caption time,
.hero-photo-count, .content-carousel-caption > span, .content-carousel-counter,
.product-carousel-count-v17, small, .source-note, .note {
  --reading-min: 18px;
}
.site-header .main-nav, .site-header .main-nav a,
.site-header .contact-nav, .site-header .theme-toggle, .site-header .menu-toggle,
.site-footer, .site-footer a, .site-footer p, .page-footer, .page-footer a,
.eyebrow, .brand-en, .location, .breadcrumbs,
.hero-scene-selectors button, .hero-scene-selectors .hero-scene-number,
.hero-photo-caption time, .hero-photo-caption .hero-photo-count,
.content-carousel-heading .eyebrow, .content-carousel-caption > span,
.content-carousel-counter, .product-carousel-count-v17,
.product-carousel-brand-selector-v17 button, .yz-home-item-toggle button,
.yz-home-wordmark, .yz-home-wordmark span {
  font-size: var(--reading-label) !important;
}
.hero-activity-link, .yz-home-link, .text-link, .actions .action,
.service p, .service .text-link, .company-about p, .steps p,
.content-carousel-heading > p:last-child, .page-top p,
.contact-path p, .contact-details p {
  font-size: var(--reading-body) !important;
}
.hero-activity-link, .yz-home-link, .text-link {
  border-bottom: 0;
  min-height: 48px;
  align-items: center;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}
.hero-activity-link:hover, .yz-home-link:hover, .text-link:hover { text-decoration: underline; }
.service p, .company-about p { max-width: 65ch; }
.service .text-link { margin-top: 24px; }
.company-about { gap: clamp(40px, 5vw, 80px); }
.site-footer { align-items: flex-start; gap: 32px; }
.site-footer nav { max-width: 700px; gap: 12px 28px; }
.site-footer a { min-height: 44px; }
.site-footer p { margin-top: 12px; }
.steps > li { border-top: 0; padding-top: 0; min-width: 0; }
.steps > li > span {
  font-size: var(--reading-step) !important;
  font-weight: 600;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  margin: 0 0 20px;
}
.steps > li > h3 { font-size: calc(24px * var(--reading-scale)); line-height: 1.4; }
.steps { gap: clamp(24px, 2.4vw, 40px); }
.content-carousel-v9 { border-bottom: 0; padding-bottom: 0; margin-bottom: 64px; }
.content-carousel-v9 + .section { border-top: 0; padding-top: 0; }
.content-carousel-bottom { gap: 28px; }
.content-carousel-caption { flex-wrap: wrap; row-gap: 4px; }
.content-carousel-caption h2 { font-size: calc(24px * var(--reading-scale)); }
.content-carousel-pagination { margin-top: 20px; }
.content-carousel-pagination button { min-height: 44px; }
.hero-scene-selectors { max-width: none !important; gap: clamp(20px, 2vw, 36px) !important; }
.hero-scene-selectors button {
  gap: 12px !important;
  min-height: 56px !important;
  line-height: 1.4;
  white-space: normal !important;
  letter-spacing: 0 !important;
}
.hero-scene-selectors .hero-scene-number { opacity: .85; display: inline !important; }
.hero-photo-caption { gap: 24px; min-height: 64px; }
.hero-photo-caption p { font-size: var(--reading-body); }
.hero-activity-heading { flex-wrap: wrap; row-gap: 4px; }
.hero-activity-heading .hero-activity-link { margin-left: auto; }
.yz-home-wordmark { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.yz-home-material { font-size: var(--reading-body) !important; line-height: 1.7; }
.product-carousel-controls-v17 { flex-wrap: wrap; }
.product-carousel-navigation-v17 { flex-shrink: 0; }
.product-carousel-navigation-v17 .product-carousel-arrow-v17,
.hero-carousel-controls button,
.content-carousel-controls button {
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  border: 0;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: inherit;
}
.product-carousel-navigation-v17 button:hover,
.hero-carousel-controls button:hover,
.content-carousel-controls button:hover { background: color-mix(in srgb, currentColor 7%, transparent); }
.product-carousel-navigation-v17 svg,
.hero-carousel-controls svg,
.content-carousel-controls svg,
.reading-direction-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent, #e7380d);
  outline-offset: 4px;
}
.site-header { column-gap: 20px; row-gap: 12px; }
.reading-heading-phrase { white-space: nowrap; }
.public-header { flex-wrap: wrap; gap: 12px 20px; }
.public-header .reading-size-control { margin-left: auto; }
.site-header .main-nav { gap: clamp(16px, 1.7vw, 28px) !important; }
.reading-size-control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text, var(--ink, currentColor));
  font-size: var(--reading-label);
  line-height: 1.4;
  white-space: nowrap;
}
.reading-size-control select {
  appearance: auto;
  color: inherit;
  background: transparent;
  border: 1px solid var(--rule, #a9a19b);
  border-radius: 6px;
  font: inherit;
  padding: 8px 6px 8px 10px;
  min-height: 44px;
  max-width: 7em;
  cursor: pointer;
}
.reading-size-control option { background: var(--page, #fff); color: var(--text, #211a17); }
.reading-size-floating {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 20;
  padding: 8px 12px;
  border: 1px solid var(--rule, #a9a19b);
  border-radius: 8px;
  background: var(--page, #fff);
}
@media (max-width: 1360px) {
  .site-header .main-nav { gap: 16px !important; }
  .site-header { column-gap: 14px; }
  .site-header .company-logo { width: 150px; }
}
@media (max-width: 1180px) {
  .site-header { flex-wrap: wrap; }
  .site-header .main-nav { display: none !important; order: 5; width: 100%; }
  .site-header .main-nav.is-open { display: flex !important; flex-wrap: wrap; }
  .site-header .main-nav a { width: auto; flex: 1 1 35%; min-height: 48px; }
  .site-header .menu-toggle { display: block !important; min-height: 44px; }
}
@media (min-width: 901px) {
  :root[data-reading-size="extra-large"] .site-header { flex-wrap: wrap; }
  :root[data-reading-size="extra-large"] .site-header .main-nav { column-gap: 18px !important; }
  :root[data-reading-size="extra-large"] .hero-carousel-v18 { min-height: 780px; }
  :root[data-reading-size="extra-large"] .hero-carousel-bottom { gap: 16px; }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px 28px; }
  .company-about { grid-template-columns: 1fr; }
  .site-footer { flex-wrap: wrap; }
  .site-footer nav { justify-content: flex-start; }
}
@media (max-width: 600px) {
  :root { --reading-min: 18px; --reading-body: calc(18px * var(--reading-scale)); --reading-label: calc(18px * var(--reading-scale)); }
  :root[data-reading-size="large"] { --reading-scale: 1.111111; }
  :root[data-reading-size="extra-large"] { --reading-scale: 1.222222; }
  .site-header { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px 12px; padding: 12px 20px; }
  .site-header .company-logo { grid-row: 1; grid-column: 1; width: 136px; }
  .site-header .theme-toggle { grid-row: 1; grid-column: 2; }
  .site-header .menu-toggle { grid-row: 1; grid-column: 3; }
  .site-header .reading-size-control { grid-row: 2; grid-column: 1; }
  .site-header .contact-nav { grid-row: 2; grid-column: 2 / 4; justify-self: end; }
  .site-header .main-nav { grid-row: 3; grid-column: 1 / -1; }
  .site-header .main-nav a { flex-basis: 40%; }
  .site-header .theme-toggle, .site-header .menu-toggle { padding-inline: 8px; min-width: 48px; }
  .reading-size-control { gap: 8px; }
  .reading-size-control select { padding-inline: 6px; }
  .hero-carousel-v18 { height: auto; min-height: 920px; }
  .hero-carousel-v18 .hero-activity-scene { padding-top: 175px; padding-bottom: 205px; }
  .hero-carousel-v18 .hero-product-scene { padding-top: 175px; padding-bottom: 205px; }
  .hero-carousel-v18 .immersive-copy { top: 190px; }
  .hero-activity-heading { gap: 8px 18px; }
  .hero-product-scene > .hero-activity-heading { flex-wrap: wrap; }
  .hero-activity-heading .hero-activity-link { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-left: 0; }
  .hero-photo-caption { min-height: 112px; }
  .hero-carousel-bottom { align-items: center; left: 24px; right: 24px; bottom: 24px; }
  .hero-scene-selectors { display: grid; grid-template-columns: 1fr 1fr; flex-basis: 100%; gap: 10px 20px !important; }
  .hero-scene-selectors button { display: grid !important; grid-template-columns: auto 1fr; gap: 8px !important; min-height: 48px !important; }
  .hero-carousel-controls { margin-left: auto; }
  .product-carousel-controls-v17, .product-carousel-v17.is-embedded .product-carousel-controls-v17 { flex-direction: column; gap: 12px; }
  .product-carousel-brand-selector-v17 button { font-size: var(--reading-label) !important; min-height: 48px !important; padding: 8px 24px !important; }
  .product-carousel-v17.is-embedded { grid-template-rows: minmax(0,1fr) auto; }
  .content-carousel-heading { display: block; }
  .content-carousel-heading > p:last-child { margin-top: 12px; }
  .content-carousel-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
  .content-carousel-controls { align-self: flex-end; }
  .content-carousel-caption h2 { font-size: calc(22px * var(--reading-scale)); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps > li { display: grid; grid-template-columns: 44px minmax(0,1fr); column-gap: 16px; }
  .steps > li > span { grid-row: 1 / 3; margin: 0; }
  .steps > li > h3 { font-size: calc(24px * var(--reading-scale)); }
  .steps > li > p { margin-top: 10px; }
  .site-footer { padding: 32px 24px; }
  .site-footer nav { gap: 8px 24px; }
  .site-footer p { overflow-wrap: anywhere; }
  .reading-size-floating { right: 12px; bottom: 12px; }
}

/* Reading controls must reflow with the React product shell as well. */
.public-header-actions > a { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 900px) {
  .public-brand .public-header {
    height: 128px;
    padding: 12px 20px;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: 44px 48px;
    gap: 8px 16px;
  }
  .public-header .parent-link { grid-column: 1; grid-row: 1; }
  .public-header-actions { display: contents; }
  .public-header-actions .theme-toggle { grid-column: 2; grid-row: 1; justify-self: end; }
  .public-header-actions .reading-size-control { grid-column: 1; grid-row: 2; margin-left: 0; }
  .public-header-actions > a { grid-column: 2; grid-row: 2; justify-self: end; }
  .public-section-nav { top: 128px; margin-top: 128px; }
}

@media (max-width: 700px) {
  .ps-navigation { flex-wrap: wrap; gap: 12px; height: auto; min-height: 60px; padding-block: 12px; }
  .ps-modes { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ps-modes button { white-space: nowrap; padding-inline: 8px; }
  .ps-motion { width: 100%; justify-content: flex-end; }
}

@media (max-width: 700px) {
  html:has(body > .brand-header) { --header-height: 124px; }
  body > .brand-header {
    height: 124px;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: 44px 44px;
    gap: 8px 16px;
    padding: 12px 20px;
  }
  .brand-header .brand-mark { grid-column: 1; grid-row: 1; max-width: 100%; }
  .brand-header .header-actions { display: contents; }
  .brand-header .header-actions > button { grid-column: 2; grid-row: 1; justify-self: end; }
  .brand-header .header-actions .reading-size-control { grid-column: 1 / -1; grid-row: 2; }
  body:has(> .brand-header) > .section-nav {
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
  }
  body > .section-nav a { flex: 0 0 auto; }
  .topic-selector { grid-template-columns: minmax(0,1fr); }
  .topic-selector label { min-width: 0; }
  .topic-selector label > span { border-right: 0; }
  .topic-selector small { overflow-wrap: anywhere; }
  .hero-art { margin-top: 32px; }
}

@media (max-width: 700px) {
  .hero-art .art-caption {
    transform: none;
    position: absolute;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px 16px;
    font-size: var(--reading-label);
    line-height: 1.5;
  }
  .art-caption .caption-line { display: none; }
  .art-caption [data-hero-caption] { min-width: 0; }
  .art-caption .hero-focus-count { white-space: nowrap; }
}

.product-carousel-navigation-v17 .product-carousel-pause-v17 {
  width: auto;
  min-width: 0;
  min-height: 48px;
  padding: 8px 12px;
  margin-left: 0;
  border: 0;
  border-radius: 6px;
  font-size: var(--reading-label);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .product-carousel-v17[data-product-presentation="brand-scenes"] .product-carousel-stage-v17 { min-height: 680px; }
  .product-carousel-v17[data-product-presentation="brand-scenes"] [data-product-card="yanzitai"],
  .product-carousel-v17[data-product-presentation="brand-scenes"].is-embedded [data-product-card="yanzitai"] {
    height: calc(100% - 64px);
    max-height: none;
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto minmax(0,1fr);
    padding: 0 8px 48px;
  }
  .yz-home-copy { display: block; padding: 0 4px; }
  .yz-home-wordmark { margin-bottom: 12px; }
  .yz-home-copy h3 { margin-bottom: 16px; }
  .yz-home-material { text-align: left; padding-bottom: 12px; }
  .yz-home-art { margin-top: 0; }
  .yz-home-focus-controls button { white-space: nowrap; min-height: 44px; }
  #brand-hero.hero-carousel-v18[data-scene="products"] { min-height: 1320px; }
}

/* Reserve real text space around the shared D art at every reading size. */
.product-carousel-v17[data-product-presentation="brand-scenes"] [data-lineament-cutout="20261024-v1"] {
  width: min(76cqw,calc((100cqh - 130px * var(--reading-scale) - 50px) * var(--lineament-art-aspect)),960px);
}
.product-carousel-v17[data-product-presentation="brand-scenes"] [data-lineament-cutout] .product-card-title-v17 {
  height: auto;
  align-items: flex-start;
}
.product-carousel-v17[data-product-presentation="brand-scenes"] [data-lineament-cutout] .product-card-title-v17 p {
  font-size: var(--reading-label);
}
.product-carousel-v17[data-product-presentation="brand-scenes"] [data-lineament-cutout] .product-card-caption-v17 {
  height: auto;
  min-height: calc(28px * var(--reading-scale));
}

/* Publication-time footer and latest SMS gate retain the shared reading size. */
.site-icp-record,.site-icp-record a{font-size:var(--reading-label)!important;line-height:1.6}
.sms-phone-gate,.sms-phone-gate p,.sms-phone-gate label,.sms-phone-gate input,.sms-phone-gate button{font-size:var(--reading-body)}

/* Direct A controls replace the old visible label and native select. */
#reading-size-control { display:inline-flex; align-items:center; gap:0; min-height:44px; }
#reading-size-control .reading-size-option { position:relative; display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; min-width:44px; height:44px; min-height:44px; margin:0; padding:0; border:0; border-radius:4px; background:transparent; color:inherit; font-family:inherit; line-height:1; cursor:pointer; }
#reading-size-control .reading-size-option span { font-weight:500; line-height:1; }
#reading-size-control .reading-size-option-0 span { font-size:18px!important; }
#reading-size-control .reading-size-option-1 span { font-size:22px!important; }
#reading-size-control .reading-size-option-2 span { font-size:26px!important; }
#reading-size-control .reading-size-option[aria-pressed="true"] { color:var(--accent,var(--purple,#e54b2c)); }
#reading-size-control .reading-size-option[aria-pressed="true"]::after { content:""; position:absolute; bottom:4px; left:16px; right:16px; height:2px; background:currentColor; border-radius:1px; }
#reading-size-control .reading-size-option:hover { background:color-mix(in srgb,currentColor 7%,transparent); }
#reading-size-control .reading-size-option:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
/* Keep the app-owned text/ARIA and listeners intact; only its visual presentation changes. */
.site-header #theme-toggle,.brand-header #theme-toggle,.public-header .theme-toggle { display:inline-flex!important; align-items:center; justify-content:center; flex:0 0 44px; width:44px; min-width:44px; height:44px; min-height:44px; padding:10px!important; border:0!important; border-radius:50%; background:transparent; color:inherit; font-size:0!important; line-height:0; }
.site-header #theme-toggle::before,.brand-header #theme-toggle::before,.public-header .theme-toggle::before { content:""; display:block; width:24px; height:24px; flex:none; background:currentColor; mask:var(--reading-theme-icon) center / contain no-repeat; -webkit-mask:var(--reading-theme-icon) center / contain no-repeat; }
.site-header #theme-toggle,.brand-header #theme-toggle,.public-header .theme-toggle { --reading-theme-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.5%2013.4A8.6%208.6%200%200%201%2010.6%203.5%208.6%208.6%200%201%200%2020.5%2013.4Z%22%2F%3E%3C%2Fsvg%3E"); }
.site-header #theme-toggle[aria-label*="淺"],.brand-header #theme-toggle[aria-label*="淺"],.public-header .theme-toggle[aria-label*="淺"] { --reading-theme-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M12%202v2m0%2016v2M2%2012h2m16%200h2M4.93%204.93l1.42%201.42m11.3%2011.3%201.42%201.42M4.93%2019.07l1.42-1.42m11.3-11.3%201.42-1.42%22%2F%3E%3C%2Fsvg%3E"); }
.site-header #theme-toggle:hover,.brand-header #theme-toggle:hover,.public-header .theme-toggle:hover { background:color-mix(in srgb,currentColor 7%,transparent); }
.site-header #theme-toggle:focus-visible,.brand-header #theme-toggle:focus-visible,.public-header .theme-toggle:focus-visible { outline:2px solid currentColor; outline-offset:2px; }

/* Auxiliary copy is deliberately below brand/product content and main body. */
:root{--reading-aux:14px}
:root[data-reading-size="large"]{--reading-aux:15px}
:root[data-reading-size="extra-large"]{--reading-aux:16px}
.ps-motion p,
.ps-pause,
.tc-intro,
.tc-status,
.cube-toolbar>span,
.cube-loading,
.cube-error,
.public-model-start>span,
.public-models .public-section-heading>p:last-child,
.mx-status,
.mx-disclaimer,
.mx-help,
.tc-source-note,
.tc-dialog-note,
.product-hero-note,
.public-note,
.public-profile-grid>div:last-child>p,
#fish-structure-caption,
.fish-structure-error,
.dialog-note,
.source-note,
.tool-note,
.ft-rule-note,
.ft-plan-note,
.ft-table-note,
.note,
.ai-privacy,
.ai-file-note,
.sms-phone-note,
.sms-phone-status,
.sms-consent,
.sms-consent-label,
.site-icp-record,
.site-icp-record a,
.content-carousel-status,
.product-carousel-status-v17,
.copy-status,
#copy-status,
main p[role="status"]{font-size:var(--reading-aux)!important;line-height:1.65!important;}

/* Mobile company header: reading choices belong to the expanded menu, never the hero. */
#reading-size-control[hidden] { display:none!important; }
@media (max-width:1180px) {
  .site-header #reading-size-control[data-reading-menu] {
    grid-column:1 / -1;
    grid-row:4;
    order:6;
    flex-basis:100%;
    width:100%;
    margin:0;
    padding:4px 0;
    justify-content:flex-end;
    background:var(--hero-bg,var(--page,transparent));
    color:inherit;
  }
}
