/* Product content uses the existing website tokens on React and Go surfaces. */
.catalog-page { width:var(--site-width); margin-inline:auto; padding-bottom:64px; }
.catalog-page *, .product-discover * { box-sizing:border-box; }
.catalog-page h1 { font-size:clamp(36px,4.4vw,64px); font-weight:650; line-height:1.3; margin:20px 0 24px; }
.catalog-page h2,.product-discover h2,.product-home-platforms h2 { font-size:clamp(26px,3vw,40px); font-weight:600; line-height:1.45; }
.catalog-page h3,.feature-highlights h3 { font-size:22px; line-height:1.5; font-weight:600; }
.catalog-page p,.product-discover p { color:var(--zo-text-secondary); line-height:1.85; }
.catalog-page .eyebrow,.product-discover .eyebrow { color:var(--site-link,var(--zo-accent)); font-size:13px; font-weight:600; }
.catalog-page a { text-underline-offset:5px; }
.catalog-page :is(a,button,input,select):focus-visible { outline:3px solid var(--zo-accent); outline-offset:4px; }
.catalog-page section,.catalog-page article { scroll-margin-top:110px; }
.catalog-intro { padding:72px 0 48px; max-width:850px; }
.catalog-lead { font-size:clamp(17px,1.6vw,20px); max-width:38em; }
.product-overview-hero,.topic-hero { display:grid; grid-template-columns:1.08fr 1fr; gap:64px; align-items:center; padding:64px 0; }
.product-overview-hero figure,.topic-hero figure { margin:0; min-width:0; }
.product-overview-hero img,.topic-hero img { display:block; width:100%; height:auto; border-radius:24px; }
.catalog-page figcaption { color:var(--zo-text-secondary); font-size:12px; line-height:1.7; text-align:center; padding-top:16px; }
.product-platform-line { margin-top:30px; font-size:13px; }
.product-discover { padding:64px 0; border-top:1px solid var(--zo-border-subtle); }
.catalog-section-heading { max-width:760px; margin-bottom:32px; }
.catalog-section-heading h2 { margin:12px 0 20px; }
.feature-highlights { display:grid; grid-template-columns:1fr 1fr; gap:0 48px; }
.feature-highlights > a { display:grid; grid-template-columns:36px 1fr; gap:20px; padding:32px 0; border-top:1px solid var(--zo-border-subtle); text-decoration:none; color:var(--zo-text-primary); transition:color .18s; }
.feature-highlights > a:hover h3 { color:var(--site-link,var(--zo-accent)); }
.feature-highlights .feature-number { font-size:14px; color:var(--zo-text-secondary); font-variant-numeric:tabular-nums; padding-top:3px; }
.feature-highlights h3 { margin:10px 0; }
.feature-highlights p { margin:0 0 14px; font-size:15px; }
.feature-read { color:var(--site-link,var(--zo-accent)); font-size:14px; }
.topic-section { padding:52px 0; border-top:1px solid var(--zo-border-subtle); }
.product-group-links { display:grid; grid-template-columns:1fr 1fr; gap:0 48px; }
.product-group-links a { padding:20px 0; text-decoration:none; color:inherit; }
.product-group-links h3 { margin:0 0 8px; }
.product-group-links span { color:var(--site-link,var(--zo-accent)); font-size:14px; }
.catalog-controls { display:flex; gap:24px; align-items:end; flex-wrap:wrap; padding:24px; background:var(--zo-bg-secondary); border-radius:16px; }
.catalog-controls label { display:grid; gap:8px; font-size:13px; font-weight:550; flex:1; min-width:180px; }
.catalog-controls label:first-child { flex:2; }
.catalog-controls input,.catalog-controls select { width:100%; padding:12px 14px; min-height:48px; border:1px solid var(--zo-border-subtle); border-radius:8px; background:var(--zo-bg-primary); color:var(--zo-text-primary); font:inherit; font-size:16px; }
.catalog-controls p { font-size:13px; margin:0 0 12px; }
.catalog-jump { display:flex; flex-wrap:wrap; gap:12px 28px; padding:24px 0; border-bottom:1px solid var(--zo-border-subtle); }
.catalog-jump a { color:var(--zo-text-secondary); font-size:14px; }
.catalog-group { display:grid; grid-template-columns:240px 1fr; gap:64px; padding:52px 0; border-bottom:1px solid var(--zo-border-subtle); }
.catalog-group[hidden] { display:none; }
.catalog-group-heading h2 { margin:0 0 12px; font-size:28px; }
.catalog-group-heading p { font-size:15px; }
.catalog-feature-list { display:grid; grid-template-columns:1fr 1fr; gap:36px 40px; }
.catalog-feature-list h3 { font-size:20px; margin:0 0 12px; }
.catalog-feature-list p { font-size:15px; margin:0 0 12px; }
.catalog-feature-list .feature-availability { font-size:12px; line-height:1.9; }
.catalog-feature-list .text-link { font-size:14px; }
.catalog-note,.catalog-empty { padding:40px; margin:48px 0; border-radius:16px; background:var(--zo-bg-secondary); }
.catalog-note span { display:block; margin-top:20px; color:var(--zo-text-secondary); font-size:12px; }
.capability-matrix-wrap { overflow-x:auto; overscroll-behavior-inline:contain; margin:24px 0; border:1px solid var(--zo-border-subtle); border-radius:12px; }
.capability-matrix { border-collapse:collapse; width:100%; min-width:640px; font-size:14px; text-align:left; }
.capability-matrix caption { text-align:left; padding:18px 20px; font-size:13px; color:var(--zo-text-secondary); line-height:1.8; }
.capability-matrix th,.capability-matrix td { padding:16px 20px; border-top:1px solid var(--zo-border-subtle); width:25%; }
.capability-matrix thead th { background:var(--zo-bg-secondary); font-weight:600; }
.capability-matrix th a { color:var(--zo-text-primary); text-decoration:none; }
.capability-matrix th a:hover { color:var(--site-link,var(--zo-accent)); text-decoration:underline; }
.capability-matrix .matrix-unspecified { color:var(--zo-text-secondary); }
.catalog-breadcrumb { display:flex; flex-wrap:wrap; gap:12px; padding-top:32px; font-size:13px; color:var(--zo-text-secondary); }
.catalog-breadcrumb a { color:inherit; }
.topic-hero { padding-top:40px; }
.topic-hero > div > p:not(.eyebrow):not(.catalog-lead) { font-size:14px; margin:24px 0; }
.topic-video { text-align:center; }
.topic-video video { width:100%; max-width:300px; height:auto; max-height:520px; border-radius:22px; background:var(--zo-bg-secondary); }
.topic-steps { list-style:none; padding:0; margin:0; }
.topic-steps li { display:grid; grid-template-columns:64px 1fr; gap:20px; padding:24px 0; border-top:1px solid var(--zo-border-subtle); }
.topic-steps li > span { color:var(--site-link,var(--zo-accent)); font-size:26px; font-variant-numeric:tabular-nums; }
.topic-steps h3 { margin:0 0 12px; }
.topic-steps p { margin:0; max-width:52em; }
.topic-boundaries { display:grid; grid-template-columns:1fr 1.2fr; gap:64px; }
.topic-boundaries ul { padding-left:20px; color:var(--zo-text-secondary); }
.topic-boundaries li { margin-bottom:20px; line-height:1.9; }
.topic-questions dl { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.topic-questions dt { font-size:20px; font-weight:550; margin-bottom:16px; }
.topic-questions dd { margin:0; color:var(--zo-text-secondary); line-height:1.85; }
.topic-footer { border-top:1px solid var(--zo-border-subtle); padding-top:24px; }
.topic-footer > p { font-size:12px; }
.topic-footer nav { display:flex; flex-wrap:wrap; gap:20px; margin:28px 0; }
.catalog-closing { padding:40px 0; }
.catalog-closing .text-link { margin-left:24px; }
.product-home-platforms { padding:36px 0 64px; }
.product-home-platforms > p { max-width:750px; color:var(--zo-text-secondary); }
.product-home-platforms nav { display:flex; flex-wrap:wrap; gap:24px; }
.product-home-platforms nav a { color:var(--site-link,var(--zo-accent)); }
.product-brand-poster { margin:16px 0 56px; }
.product-brand-poster img { width:100%; height:auto; border-radius:20px; display:block; }
.product-brand-poster figcaption { font-size:12px; color:var(--zo-text-secondary); padding-top:12px; }
@media(max-width:1000px) {
  .catalog-group { grid-template-columns:180px 1fr; gap:32px; }
  .product-overview-hero,.topic-hero { gap:32px; }
}
@media(max-width:720px) {
  .catalog-intro { padding:40px 0 28px; }
  .product-overview-hero,.topic-hero { grid-template-columns:1fr; padding:32px 0; gap:32px; }
  .product-discover,.topic-section { padding:36px 0; }
  .feature-highlights,.product-group-links,.topic-questions dl { grid-template-columns:1fr; gap:0; }
  .feature-highlights > a { gap:12px; padding:24px 0; }
  .catalog-group { grid-template-columns:1fr; gap:24px; padding:32px 0; }
  .catalog-feature-list { gap:28px; grid-template-columns:1fr; }
  .catalog-controls { padding:20px; gap:16px; }
  .catalog-controls p { margin:0; width:100%; }
  .catalog-controls label { min-width:100%; }
  .catalog-note,.catalog-empty { padding:24px; }
  .topic-boundaries { grid-template-columns:1fr; gap:12px; }
  .topic-steps li { grid-template-columns:38px 1fr; gap:12px; }
  .topic-questions dl > div { margin:20px 0; }
  .catalog-closing .text-link { display:block; margin:24px 0 0; }
  .catalog-page h1 { font-size:36px; }
  .catalog-page .platform-section { width:100%; }
}

.editorial-main .feature-highlights > a { grid-template-columns:1fr; }
.catalog-page .platform-section,.catalog-page .theme-section { width:100%; }
.topic-hero .topic-portrait { max-width:300px; justify-self:center; }

.product-title-line { display:block; }
@media(min-width:721px) and (max-width:1000px) { .journal-intro h1,.product-overview-hero h1 { font-size:38px; } }

.scheme-example { padding: 3rem; background: var(--surface, #f2f4ef); border-radius: 20px; text-align: center; } .scheme-example strong { display:block; font-size:clamp(2rem,6vw,4rem); letter-spacing:.06em; } .scheme-example span { display:block; margin:1rem; } .keymap-search { display:grid; gap:.6rem; max-width:420px; } .keymap-search input { padding: .8rem; font:inherit; border:1px solid #aaa; border-radius:8px; } .keymap-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(115px,1fr)); gap:8px; } .keymap-grid > div { display:flex; justify-content:space-between; padding:.6rem; border-bottom:1px solid #bbb6; } .keymap-grid kbd { font:inherit; font-weight:700; }

/* Clip only the white corners outside the supplied keyboard. Keep source pixels and key labels intact. */
.zeroone-keyboard-cutout img { border-radius: 0; clip-path: inset(1px round 6.5% 6.5% 17% 17%); }
.zeroone-keyboard-cutout .product-image-link { background: transparent; }

.keymap-grid { max-height: 480px; overflow-y: auto; scrollbar-gutter: stable; padding: 4px; }
.keymap-grid:focus-visible { outline: 2px solid var(--zo-accent); outline-offset: 3px; }
.keymap-scroll-hint { color: var(--zo-text-secondary); font-size: 14px; }
@media (max-width: 480px) {
  .catalog-title-ending { display: block; }
  .keymap-grid { max-height: 360px; }
}

/* Central-help links replace FAQ bodies, so use a callout layout instead of the old answer grid. */
.product-help-callout{display:flex;align-items:center;justify-content:space-between;gap:24px}.product-help-callout h2{margin:0}.product-help-callout>a{display:inline-flex;align-items:center;min-height:44px;flex-shrink:0}@media(max-width:720px){.product-help-callout{align-items:flex-start;flex-direction:column;gap:16px}}

/* Zhuyin choices keep the product examples beside readable text. */
.zhuyin-layouts>p:not(.eyebrow){max-width:48em;line-height:1.75}.zhuyin-layout-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,4vw,48px);max-width:700px;margin:32px auto}.zhuyin-layout-grid figure{margin:0;min-width:0}.zhuyin-layout-grid img{display:block;width:100%;height:auto;border-radius:16px}.zhuyin-layout-grid figcaption{display:grid;gap:6px;margin-top:14px;line-height:1.65}.zhuyin-layout-grid figcaption span,.zhuyin-image-note{color:var(--zo-text-secondary);font-size:14px}.zhuyin-steps{padding-left:1.5em;max-width:48em}.zhuyin-steps li{padding-left:8px;margin:20px 0;line-height:1.75}.zhuyin-steps p{margin:6px 0;color:var(--zo-text-secondary)}
@media(max-width:480px){.zhuyin-layout-grid{grid-template-columns:1fr;max-width:300px;gap:32px}}

.input-method-choice{margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--line,#d9d9d9);scroll-margin-top:6rem}.input-method-answers{margin:1.5rem 0}.input-method-answers>div{padding:1rem 0;border-bottom:1px solid var(--line,#d9d9d9)}.input-method-answers dt{font-weight:650;line-height:1.6}.input-method-answers dd{margin:.5rem 0 0;line-height:1.8;max-width:70ch}#input-methods{scroll-margin-top:6rem}
