/* Readability layer. Load after the visual styles. No remote font requests. */
:root {
  --reading-size: 20px;
  --reading-leading: 1.8;
  --reading-width: 66ch;
  --interface-size: 16px;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC",
    "Manrope", "Noto Sans TC", "Segoe UI", sans-serif;
  font-size: var(--reading-size);
  line-height: var(--reading-leading);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { overflow-wrap: anywhere; text-wrap: balance; }
h1 { font-size: clamp(56px, 5.8vw, 80px); line-height: 1.1; letter-spacing: -.045em; }
h2 { font-size: clamp(40px, 4.1vw, 56px); line-height: 1.16; letter-spacing: -.035em; }
h3 { font-size: 30px; line-height: 1.3; letter-spacing: -.02em; }
p, li, dd { overflow-wrap: break-word; }
small { font-size: 14px; line-height: 1.6; }
.wrap, .head-inner, .content-flow > *, .split-detail > *, .layout-catalog > *,
.section-heading > *, .product-grid > *, .collection-grid > *, .info-grid > *,
.footer-top > *, .mega-inner > *, .product-mega > *, .form-grid > * { min-width: 0; }

/* Make page and section hierarchy visible before adding decoration. */
.page-hero { padding-bottom: 72px; }
.page-hero h1, .product-intro h1, .review-page h1 {
  font-size: clamp(56px, 5.8vw, 80px);
  line-height: 1.1;
  max-width: 22ch;
}
.page-hero .lead, .review-page .lead, .product-intro .description {
  font-size: 20px;
  line-height: 1.8;
  max-width: var(--reading-width);
  margin-top: 28px;
}
.section-heading { align-items: flex-start; gap: 36px; margin-bottom: 44px; }
.section-heading h2, .platform-copy h2, .support-band h2 {
  font-size: clamp(44px, 4.1vw, 56px);
  line-height: 1.16;
  max-width: 24ch;
}
.section-heading > p, .platform-copy > p, .support-band p {
  font-size: 20px;
  line-height: 1.8;
  max-width: 60ch;
}
.eyebrow, .card-kicker, .collection-card .card-top {
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: .09em;
}
.text-small, .filter-note, .modal-note, .source-line, .language-notice {
  font-size: 16px;
  line-height: 1.75;
}
.source-line { gap: 12px 18px; }
.source-line a { overflow-wrap: anywhere; }
.badge, .chip, .status-list small, .fallback-image small { font-size: 14px; line-height: 1.6; }
.breadcrumb { font-size: 14px; line-height: 1.6; gap: 8px 12px; padding: 26px 0; }
.breadcrumb a { min-height: 40px; display: inline-flex; align-items: center; }
.page-nav { gap: 32px; max-width: 100%; }
.page-nav a { font-size: 16px; min-height: 64px; padding: 19px 0; }

/* Navigation has its own size; it must not shrink to fit. */
.head-inner { min-height: 88px; height: auto; padding: 10px 0; gap: 18px; }
.desktop-nav { gap: 0; min-width: 0; }
.nav-item > button, .nav-item > a { font-size: 16px; line-height: 1.4; min-height: 48px; padding: 10px 9px; }
.desktop-nav .nav-item > :is(button,a) { border-bottom: 2px solid transparent; }
.desktop-nav .nav-item > :is(button,a)[aria-current] { border-bottom-color: #42c2d6; color: #8de5ee; }
.locale-trigger { font-size: 16px; line-height: 1.4; min-height: 48px; }
.icon-btn { min-width: 48px; min-height: 48px; }
.mega { top: 100%; max-height: min(78vh, calc(100dvh - 128px)); }
.mega-intro strong { font-size: 32px; line-height: 1.25; }
.mega-intro p, .mega-feature p { font-size: 17px; line-height: 1.7; }
.mega-grid a { min-height: 76px; padding: 16px 12px; }
.mega-grid a strong, .mega-categories > div > a, .mega-child { font-size: 16px; line-height: 1.6; }
.mega-grid a span { font-size: 14px; line-height: 1.6; margin-top: 6px; }
.mega-categories > div > a, .mega-child { min-height: 48px; padding-top: 12px; padding-bottom: 12px; }
.mega-categories > div > button { min-width: 48px; min-height: 48px; }
.mega-detail-heading h2 { font-size: 36px; line-height: 1.2; }
.mega-detail-grid h3 { font-size: 18px; line-height: 1.5; }
.mega-detail-grid .chip { font-size: 15px; min-height: 44px; white-space: normal; }
.demo-bar { font-size: 13px; line-height: 1.5; min-height: 38px; }
.demo-bar nav { gap: 18px; flex-wrap: wrap; }
.demo-bar a { display: inline-flex; align-items: center; min-height: 32px; }

/* Product selection and controls stay readable alongside the body copy. */
.btn, .btn.small, .link, .pagination { font-size: 16px; line-height: 1.5; }
.btn, .btn.small { min-height: 48px; padding: 13px 22px; }
.link { min-height: 48px; }
.layout-catalog { grid-template-columns: 248px minmax(0, 1fr); gap: 40px; }
.sidebar { padding-right: 24px; top: 112px; max-height: calc(100dvh - 144px); }
.sidebar h2 { font-size: 20px; line-height: 1.4; }
.sidebar a { font-size: 16px; line-height: 1.55; min-height: 48px; padding: 11px 12px; }
.filter-group h3 { font-size: 17px; line-height: 1.5; margin-bottom: 12px; }
.filter-group label { font-size: 16px; line-height: 1.55; min-height: 48px; padding: 7px 0; }
.filter-group label small { font-size: 14px; }
.filter-group input[type="checkbox"], .product-card .compare-check input { width: 20px; height: 20px; flex-shrink: 0; }
.filter-note { margin-top: 18px; }
.search-box { min-width: min(260px, 100%); }
.search-box input { font-size: 18px; line-height: 1.5; min-height: 54px; padding-top: 13px; padding-bottom: 13px; }
.search-box svg { top: 18px; }
.result-count { font-size: 16px; line-height: 1.5; }
.search-row > select { max-width: 100%; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.product-card .card-copy, .collection-card .card-copy { padding: 26px 24px; }
.product-card h3, .collection-card h3, .info-card h3, .industry-card h3, .topology h3 {
  font-size: clamp(28px, 2.2vw, 32px);
  line-height: 1.3;
}
.product-card p, .collection-card p, .info-card p, .industry-card p, .topology p, .article-row p {
  font-size: 17px;
  line-height: 1.8;
}
.product-card .link, .collection-card .link, .info-card .link, .topology .link, .article-row .link {
  font-size: 16px;
  line-height: 1.5;
}
.product-card .compare-check { font-size: 16px; line-height: 1.5; min-height: 52px; padding: 13px 20px; }
.product-card .badge { font-size: 14px; }
.info-card ul, .body-block ul, .product-intro ul { font-size: 18px; line-height: 1.8; }
.info-card .number, .topology .number { font-size: 14px; line-height: 1.6; }
.info-card { padding: 34px; }
.topology { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-grid strong { font-size: 18px; line-height: 1.5; }
.quick-grid small { font-size: 14px; line-height: 1.6; }
.hero-bottom, .map-label { font-size: 14px; line-height: 1.6; }
.map-label b { font-size: 16px; }
.value-list div { font-size: 18px; line-height: 1.7; }

/* A comfortable measure for actual reading, not a wide text wall. */
.content-flow { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 56px; }
.content-reading { width: 100%; max-width: var(--reading-width); }
.content-reading p, .content-reading li, .body-block p { font-size: 20px; line-height: 1.8; }
.content-reading h2 { font-size: clamp(36px, 3.4vw, 48px); line-height: 1.22; margin: 52px 0 24px; }
.content-reading h3 { font-size: 30px; line-height: 1.35; margin: 36px 0 18px; }
.content-reading p + p { margin-top: 24px; }
.body-block { margin-bottom: 28px; }
.aside-card h3 { font-size: 28px; line-height: 1.3; }
.aside-card a { font-size: 16px; line-height: 1.6; min-height: 48px; padding: 13px 0; }
.aside-card p { font-size: 17px; line-height: 1.8; }
.notice, .empty p, .faq-list p, .choice-row p { font-size: 18px; line-height: 1.8; }
.empty h2 { font-size: 32px; line-height: 1.3; }
.notice { padding: 22px 26px; }
.faq-list summary { font-size: 20px; line-height: 1.55; min-height: 56px; }
.faq-list p { padding-top: 18px; }
.article-row { grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); gap: 36px; }
.article-row h2 { font-size: 32px; line-height: 1.3; }

/* Preserve real tables; overflow belongs in their existing scroll containers. */
.spec-table, .comparison-table, .download-table { font-size: 16px; line-height: 1.75; max-width: 100%; }
.spec-table { table-layout: fixed; }
.spec-table th, .spec-table td, .comparison-table th, .comparison-table td,
.download-table th, .download-table td {
  font-size: 16px;
  line-height: 1.75;
  padding: 22px 24px;
  overflow-wrap: anywhere;
  word-break: normal;
}
.spec-table th { width: 30%; }
.spec-table small, .comparison-table small, .download-table small { font-size: 14px; line-height: 1.6; }
.download-table th { white-space: normal; }
.download-table td { min-width: 120px; }
.download-table td:nth-child(2) { min-width: 240px; }
.comparison-table th, .comparison-table td { min-width: 210px; }
.table-scroll { max-width: 100%; }
.matrix-table { font-size: 15px; line-height: 1.6; }
.matrix-table th, .matrix-table td { padding: 13px; }
.matrix-table small { font-size: 13px; line-height: 1.6; }
.matrix-table th:first-child, .matrix-table td:first-child { min-width: 310px; max-width: 380px; }
.compare-tray { flex-wrap: wrap; padding: 18px 32px; }
.compare-tray > div { font-size: 16px; line-height: 1.5; }
.compare-tray .chip { font-size: 14px; }

/* Forms, dialogs and the review tools are part of the experience too. */
.form-grid label { font-size: 16px; line-height: 1.6; }
.form-grid input, .form-grid select, .form-grid textarea,
.review-toolbar input, .review-toolbar select {
  font-size: 18px;
  line-height: 1.5;
  min-height: 52px;
  max-width: 100%;
  padding: 13px 15px;
}
.review-toolbar input { min-width: min(220px, 100%); }
.review-toolbar select { min-width: 0; }
.form-grid textarea { min-height: 170px; }
.modal { width: min(960px, 100%); }
.modal-head h2 { font-size: 32px; line-height: 1.3; }
.modal-body { padding: 32px; }
.locale-option { min-height: 96px; padding: 18px; }
.locale-option strong { font-size: 18px; line-height: 1.5; }
.locale-option small { font-size: 14px; line-height: 1.6; }
.global-results strong { font-size: 20px; line-height: 1.5; }
.global-results small { font-size: 16px; line-height: 1.65; }
.global-results a { padding: 20px; }
.choice-row strong { font-size: 18px; line-height: 1.5; }
.choice-row input { flex-shrink: 0; }
.calc-output small { font-size: 16px; line-height: 1.6; }
.calc-output b { font-size: 52px; line-height: 1.25; margin-top: 10px; }
.calc-output p { font-size: 17px; line-height: 1.75; }
.status-list b { font-size: 40px; line-height: 1.3; }
.provenance-card h2 { font-size: 30px; line-height: 1.3; }
.provenance-card dl { grid-template-columns: 170px minmax(0, 1fr); font-size: 17px; line-height: 1.75; gap: 14px 24px; }
.provenance-card dt, .provenance-card dd { font-size: 17px; line-height: 1.75; }
.regional-diffs b, .regional-diffs p { font-size: 16px; line-height: 1.75; }
.save-bar { font-size: 16px; line-height: 1.5; flex-wrap: wrap; }
.review-dock a, .review-dock button { font-size: 14px; line-height: 1.5; min-height: 48px; padding: 11px 16px; }
#toast { font-size: 16px; line-height: 1.65; }
.boot p { font-size: 18px; line-height: 1.8; }

/* Footer text must remain useful, even when it is visually secondary. */
.footer { padding-bottom: 96px; }
.footer-top { grid-template-columns: minmax(230px, 1.35fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer h3 { font-size: 18px; line-height: 1.5; margin-bottom: 18px; }
.footer a { font-size: 15px; line-height: 1.6; min-height: 44px; padding: 9px 0; overflow-wrap: anywhere; }
.footer-brand p { font-size: 16px; line-height: 1.8; max-width: 30ch; }
.footer-bottom { font-size: 15px; line-height: 1.7; align-items: flex-start; }
.footer-bottom nav { gap: 8px 22px; align-items: flex-start; }
.footer-bottom a, .footer-bottom button { font-size: 15px; line-height: 1.6; min-height: 44px; }
.footer-bottom button[style] { font-size: 15px !important; min-height: 44px !important; }

@media (max-width: 1300px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: inline-flex; }
  .mobile-only { display: block; }
  .head-actions { margin-left: auto; gap: 8px; }
  .head-actions .btn { display: none; }
  .mega-inner { grid-template-columns: minmax(0, 1fr); }
  .mega-intro { border-right: 0; border-bottom: 1px solid #dce8ee; padding: 0 0 24px; }
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-mega { grid-template-columns: 245px minmax(0, 1fr); gap: 32px; }
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 22px; }
  .section-heading > p { max-width: var(--reading-width); }
}

@media (max-width: 1100px) {
  .footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 60ch; }
  .content-flow { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-catalog { grid-template-columns: 215px minmax(0, 1fr); gap: 28px; }
  .sidebar { padding-right: 18px; }
  .split-detail { gap: 36px; }
  .product-card .card-copy, .collection-card .card-copy { padding: 24px 20px; }
}

@media (max-width: 900px) {
  .content-flow, .split-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .aside-card { position: static; width: 100%; }
  .product-mega { grid-template-columns: minmax(0, 1fr); }
  .mega-categories { border: 0; padding: 0; }
  .mega-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .layout-catalog { display: block; }
  .sidebar { position: static; border: 0; padding: 0; max-height: none; margin-bottom: 32px; }
  .category-sidebar { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding-bottom: 8px; }
  .category-sidebar a { white-space: nowrap; border: 1px solid #d9e6ed; }
  .filter-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; }
  .topology { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .topology li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -32px; }
}

@media (max-width: 760px) {
  :root { --reading-size: 18px; }
  html { scroll-padding-top: 104px; }
  .wrap { width: calc(100% - 40px); }
  .section { padding-top: 72px; padding-bottom: 72px; }
  h1, .page-hero h1, .product-intro h1, .review-page h1 { font-size: clamp(40px, 8vw, 48px); line-height: 1.15; max-width: 100%; }
  h2, .section-heading h2, .platform-copy h2, .support-band h2 { font-size: clamp(34px, 6.8vw, 42px); line-height: 1.22; }
  h3, .product-card h3, .collection-card h3, .info-card h3, .industry-card h3, .topology h3 { font-size: 28px; line-height: 1.3; }
  .page-hero .lead, .review-page .lead, .product-intro .description,
  .content-reading p, .content-reading li, .body-block p,
  .section-heading > p, .platform-copy > p, .support-band p { font-size: 18px; line-height: 1.8; }
  .content-reading { max-width: 100%; }
  .content-reading h2 { font-size: 34px; line-height: 1.25; margin-top: 40px; }
  .content-reading h3, .article-row h2, .aside-card h3 { font-size: 28px; line-height: 1.3; }
  .page-hero { padding-top: 16px; padding-bottom: 48px; }
  .page-hero .lead { margin-top: 22px; }
  .head-inner { width: calc(100% - 32px); min-height: 80px; gap: 8px; padding: 8px 0; }
  .head-actions { gap: 0; }
  .locale-trigger { font-size: 16px; padding-left: 10px; }
  .logo img { width: 118px; }
  .demo-bar { font-size: 13px; padding: 6px 16px; gap: 10px; flex-wrap: wrap; }
  .demo-bar nav { gap: 14px; }
  .demo-bar .bar-detail { display: none; }
  .eyebrow, .card-kicker, .collection-card .card-top { font-size: 13px; line-height: 1.6; }
  .breadcrumb { font-size: 14px; line-height: 1.65; padding: 18px 0; }
  .page-nav a { font-size: 16px; min-height: 60px; padding: 18px 0; }
  .btn, .btn.small { font-size: 16px; min-height: 48px; padding: 13px 18px; }
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .info-card { padding: 28px; }
  .info-card p, .collection-card p, .product-card p, .industry-card p, .topology p, .article-row p { font-size: 17px; line-height: 1.8; }
  .product-card .compare-check { font-size: 16px; padding: 13px 16px; }
  .product-card .badge { font-size: 14px; }
  .notice, .empty p, .faq-list p, .choice-row p { font-size: 18px; line-height: 1.8; }
  .notice { padding: 20px; }
  .empty { padding: 28px; }
  .empty h2, .modal-head h2 { font-size: 28px; line-height: 1.3; }
  .faq-list summary { font-size: 18px; line-height: 1.6; }
  .spec-table th, .spec-table td, .comparison-table th, .comparison-table td,
  .download-table th, .download-table td { font-size: 16px; line-height: 1.7; padding: 16px 14px; }
  .spec-table th { width: 34%; }
  .spec-table small, .comparison-table small, .download-table small { font-size: 14px; }
  .comparison-table th, .comparison-table td { min-width: 190px; }
  .matrix-table { font-size: 15px; }
  .matrix-table small { font-size: 13px; }
  .modal-backdrop { padding: 12px; }
  .modal-body { padding: 24px 20px; }
  .modal-head { padding: 20px; gap: 12px; }
  .locale-grid { gap: 12px; }
  .locale-option { min-height: 100px; padding: 16px; }
  .locale-option strong { font-size: 18px; }
  .locale-option small { font-size: 14px; }
  .modal-note, .text-small, .source-line, .language-notice, .filter-note { font-size: 16px; line-height: 1.75; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid label { font-size: 16px; }
  .form-grid input, .form-grid select, .form-grid textarea, .review-toolbar input, .review-toolbar select { font-size: 18px; min-height: 52px; }
  .review-toolbar { padding: 16px; }
  .review-toolbar > * { max-width: 100%; }
  .provenance-card { padding: 22px 20px; }
  .provenance-card h2 { font-size: 28px; }
  .provenance-card dl { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .provenance-card dt, .provenance-card dd { font-size: 17px; line-height: 1.75; }
  .provenance-card dd { margin-bottom: 18px; overflow-wrap: anywhere; }
  .save-bar { font-size: 16px; padding: 16px; }
  .article-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .article-row img { height: 240px; }
  .calculator { padding: 24px 20px; }
  .calc-output b { font-size: 44px; }
  .calc-output small { font-size: 16px; }
  .calc-output p { font-size: 17px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
  .footer-brand { display: block; }
  .footer-brand p { margin-top: 20px; font-size: 16px; max-width: 36ch; }
  .footer h3 { font-size: 18px; }
  .footer a, .footer-bottom, .footer-bottom a, .footer-bottom button { font-size: 15px; line-height: 1.7; }
  .review-dock { max-width: calc(100vw - 24px); right: 12px; bottom: 12px; }
  .review-dock a, .review-dock button { font-size: 13px; padding: 11px 12px; min-height: 48px; }
  .compare-tray { padding: 14px 16px; gap: 12px; }
  .compare-tray > div { font-size: 16px; }
  .compare-tray .chip { font-size: 14px; padding: 7px 10px; }
  .compare-tray + .review-dock { bottom: 160px; }
  .mega-grid a strong { font-size: 16px; }
  .mega-grid a span { font-size: 14px; }
}

@media (max-width: 600px) {
  .product-grid, .collection-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .product-card .picture, .collection-card .picture { height: 230px; }
  .product-card .card-copy, .collection-card .card-copy { padding: 26px 24px; }
  .filter-groups { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { max-width: 100%; }
  .spec-table th, .spec-table td { font-size: 15px; padding: 16px 12px; }
  .spec-table th { width: 35%; }
  .search-row > select { width: 100%; }
  .locale-grid { grid-template-columns: minmax(0, 1fr); }
  .locale-option { min-height: 88px; }
  .modal-head h2 { font-size: 26px; }
  .choice-row { align-items: flex-start; padding: 18px; }
  .choice-row input { margin-top: 5px; }
  .quick-grid { grid-template-columns: minmax(0, 1fr); }
  .quick-grid a { padding: 24px 20px; border-right: 0; border-bottom: 1px solid #e0e9ef; }
  .quick-grid strong { font-size: 18px; }
  .quick-grid small { font-size: 14px; }
  .mega-grid { grid-template-columns: minmax(0, 1fr); }
  .provenance-card h2 { font-size: 26px; }
  .review-toolbar input, .review-toolbar select { width: 100%; flex-basis: 100%; }
  .review-dock svg { display: none; }
  .review-dock a, .review-dock button { font-size: 13px; padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  .head-inner { width: calc(100% - 24px); gap: 4px; }
  .logo img { width: 96px; padding: 8px; }
  .locale-trigger { border-left: 0; padding-left: 6px; gap: 4px; }
  .head-actions > .icon-btn[data-action="search"] { min-width: 44px; }
  .locale-trigger > svg:last-child { display: none; }
  .review-dock { right: 8px; max-width: calc(100vw - 16px); }
  .review-dock a, .review-dock button { font-size: 13px; padding-left: 8px; padding-right: 8px; }
}
