/* Honeywell Detector — Static Site */
:root {
  --brand: #a81b23;
  --brand-dark: #7a1218;
  --brand-soft: #f8e8e9;
  --ink: #1a1f2e;
  --ink-soft: #3d4558;
  --muted: #6b7385;
  --line: #d8dde8;
  --surface: #f4f6fa;
  --white: #ffffff;
  --accent: #0b6e99;
  --ok: #2d7a4f;
  --shadow: 0 12px 40px rgba(26, 31, 46, 0.08);
  --radius: 4px;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 .6em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.35em; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Top bar */
.topbar {
  background: var(--ink);
  color: #c9d0de;
  font-size: 13px;
  padding: .45rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: #c9d0de; }
.topbar a:hover { color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.brand-text span { font-size: 12px; color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-soft);
  padding: .55rem .85rem;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  position: relative;
}
.nav a:hover,
.nav a.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  padding: .5rem .7rem;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #1a2438;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  z-index: 0;
  transform: scale(1.04);
  animation: heroKen 18s ease-in-out alternate both;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(12,16,28,.86) 0%, rgba(12,16,28,.55) 42%, rgba(12,16,28,.28) 68%, rgba(120,24,32,.22) 100%),
    linear-gradient(to top, rgba(10,14,24,.72) 0%, transparent 48%);
  pointer-events: none;
}
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 35%, transparent 90%);
  opacity: .55;
}
@keyframes heroKen {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -0.6%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none; transform: none; }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 0 4.5rem;
  max-width: 640px;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: .04em;
  margin: 0 0 .4rem;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  animation: fadeUp .8s ease both;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  margin: 0 0 1rem;
  text-shadow: 0 1px 16px rgba(0,0,0,.3);
  animation: fadeUp .8s .12s ease both;
}
.hero p {
  color: rgba(255,255,255,.9);
  font-size: 1.05rem;
  max-width: 34em;
  text-shadow: 0 1px 12px rgba(0,0,0,.28);
  animation: fadeUp .8s .22s ease both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
  animation: fadeUp .8s .32s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .85rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(168,27,35,.35);
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn-outline:hover { background: var(--brand-soft); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); }
.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.section-head p { color: var(--muted); margin: 0; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: #c5cad6;
}
.product-card .thumb {
  aspect-ratio: 4/3;
  background:
    linear-gradient(145deg, #eef2f8, #e2e8f2),
    repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(255,255,255,.4) 8px, rgba(255,255,255,.4) 9px);
  display: grid;
  place-items: center;
  position: relative;
}
.product-card .thumb svg { width: 72px; height: 72px; opacity: .9; }
.product-card .badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 2px;
}
.product-card .body { padding: 1.1rem 1.15rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card .brand-tag {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .35rem;
}
.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: .4rem;
  font-family: var(--font-body);
}
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--brand); }
.product-card p {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
  margin-bottom: .9rem;
}
.product-card .more {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

/* Brand strip */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.brand-tile {
  padding: 1.75rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.brand-tile:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.brand-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: .35rem;
}
.brand-tile span { color: var(--muted); font-size: 13px; }

/* Feature rows */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-item {
  padding: 1.5rem 0;
  border-top: 2px solid var(--brand);
}
.feature-item h3 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  margin-bottom: .5rem;
}
.feature-item p { color: var(--muted); margin: 0; font-size: 15px; }

/* Article list */
.article-list { display: grid; gap: .75rem; }
.article-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.article-item time {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.article-item h3 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  margin: 0 0 .35rem;
}
.article-item h3 a { color: var(--ink); }
.article-item h3 a:hover { color: var(--brand); }
.article-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* Layout with sidebar */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.sidebar h2 {
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: .85rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--brand);
}
.side-nav { list-style: none; padding: 0; margin: 0; }
.side-nav li { margin: 0; }
.side-nav a {
  display: block;
  padding: .55rem .65rem;
  color: var(--ink-soft);
  font-size: 14px;
  border-radius: var(--radius);
}
.side-nav a:hover,
.side-nav a.is-active {
  background: var(--white);
  color: var(--brand);
  font-weight: 600;
}
.side-nav .group { margin-top: .75rem; font-size: 12px; color: var(--muted); padding: .4rem .65rem; text-transform: uppercase; letter-spacing: .06em; }

/* Page hero (inner) */
.page-hero {
  background:
    linear-gradient(120deg, #1a1f2e 0%, #2c3344 60%, #4a1e24 100%);
  color: #fff;
  padding: 3.25rem 0 2.75rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .6;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin-bottom: .85rem;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  margin-bottom: .5rem;
}
.page-hero p {
  color: rgba(255,255,255,.8);
  max-width: 42em;
  margin: 0;
}

/* Product detail */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}
.detail-visual {
  background: linear-gradient(160deg, #eef2f8, #e4eaf4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}
.detail-visual svg { width: 160px; height: 160px; }
.detail-meta .brand-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.detail-meta h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: .75rem;
}
.detail-meta .lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 14px;
}
.spec-table th,
.spec-table td {
  text-align: start;
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  width: 28%;
  color: var(--muted);
  font-weight: 600;
  background: var(--surface);
}
.prose {
  max-width: 72ch;
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--line);
}
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; font-family: var(--font-body); }
.prose li { margin-bottom: .35rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: start; }
.prose th { background: var(--surface); }

/* Sensepoint XCD ordering */
.ordering-block,
.xcd-gas-block {
  max-width: none;
  margin-top: 2rem;
}
.ordering-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.25rem;
  align-items: flex-end;
  margin: 1rem 0 1.25rem;
}
.ordering-tools label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.ordering-tools select,
.ordering-tools input[type="search"] {
  min-width: 12rem;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}
.ordering-tools input[type="search"] { min-width: 16rem; }
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.ordering-table {
  margin: 0;
  min-width: 640px;
}
.ordering-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.ordering-table .pn {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
}
.ordering-empty { margin-top: .85rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 640px;
}
.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: .35rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(168,27,35,.25);
  border-color: var(--brand);
}
.form-hint { font-size: 13px; color: var(--muted); margin-top: .35rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-block {
  padding: 1.5rem;
  background: var(--surface);
  border-left: 3px solid var(--brand);
}
.contact-block h3 { font-size: 1.05rem; font-family: var(--font-body); margin-bottom: .5rem; }
.contact-block p { margin: 0; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  background: linear-gradient(110deg, var(--brand-dark), var(--brand) 55%, #c43a42);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 36em; margin: 0 auto 1.5rem; }

/* Footer */
.site-footer {
  background: #121620;
  color: #a8b0c0;
  padding: 3.5rem 0 1.5rem;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer h3 {
  color: #fff;
  font-size: .95rem;
  font-family: var(--font-body);
  margin-bottom: 1rem;
  letter-spacing: .04em;
}
.site-footer a { color: #a8b0c0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-brand strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: .5rem;
}
.footer-bottom {
  border-top: 1px solid #2a3142;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: 13px;
}

/* Keyword chips */
.chip-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-block;
  padding: .4rem .75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* Utils */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.mt-2 { margin-top: 2rem; }
.text-muted { color: var(--muted); }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 1rem;
  }
  .nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .brand-strip { grid-template-columns: 1fr; }
  .article-item { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 4.5rem 0 3rem; }
  .hero-media { object-position: 78% 40%; }
}


.product-card .thumb img.product-photo,
.detail-visual img.detail-photo {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  padding: .75rem; background: linear-gradient(145deg, #eef2f8, #e2e8f2);
}
.product-card .thumb img.product-photo[src*="sensepoint-xcd"],
.detail-visual img.detail-photo[src*="sensepoint-xcd"],
.product-card .thumb img.product-photo[src*="searchpoint-optima-plus"],
.detail-visual img.detail-photo[src*="searchpoint-optima-plus"],
.product-card .thumb img.product-photo[src*="xnx-universal-transmitter"],
.detail-visual img.detail-photo[src*="xnx-universal-transmitter"] {
  padding: 0;
  object-fit: cover;
  background: #0a3a78;
}
.detail-visual { overflow: hidden; padding: 1rem; }
.thumb-fallback { color: var(--muted); font-size: 14px; }
.prose img { max-width: 100%; height: auto; }
.article-cover {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 1.25rem;
  background: #eef2f8;
}
.prose img[src*="scenes/"] { border-radius: var(--radius); background: #eef2f8; }
@media (max-width: 960px) {
  .hero-content { max-width: 100%; padding: 4.5rem 0 3rem; }
}


.topbar .container { align-items: center; }
.topbar-tools { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.header-tools { display: flex; align-items: center; gap: .6rem; margin-left: auto; flex-shrink: 0; }
.lang-switch { position: relative; }
.lang-switch-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08);
  color: inherit; border-radius: 999px; padding: .28rem .7rem; cursor: pointer; font-size: 13px;
}
.site-header .lang-switch-btn {
  border-color: var(--line); background: var(--white); color: var(--ink);
}
.lang-ico { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.lang-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  min-width: 220px; max-height: min(70vh, 420px); overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); padding: .35rem 0; margin: 0; list-style: none;
}
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-switch.is-open .lang-menu { display: block; }
.lang-menu a {
  display: block; padding: .5rem .9rem; color: var(--ink); font-size: 14px;
}
.lang-menu a:hover, .lang-menu a.is-active { background: var(--brand-soft); color: var(--brand); }
.lang-footer {
  display: flex; flex-wrap: wrap; gap: .45rem .7rem; margin: 1.5rem 0 .75rem;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12);
}
.lang-footer a {
  color: #c9d0de; font-size: 13px; padding: .2rem .55rem; border-radius: 999px; border: 1px solid transparent;
}
.lang-footer a:hover, .lang-footer a.is-active { color: #fff; border-color: rgba(255,255,255,.35); }
.lang-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  max-width: 28rem;
}
.lang-bar a {
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--white);
  line-height: 1.3;
  white-space: nowrap;
}
.lang-bar a:hover { color: var(--brand); border-color: var(--brand); }
.lang-bar a.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
html[dir="rtl"] .lang-bar { justify-content: flex-start; }
html[dir="rtl"] body { font-family: "Noto Naskh Arabic", "Noto Sans", var(--font-body); }
html[lang="ru"] body { font-family: "Noto Sans", var(--font-body); }
html[lang="ms"] body { font-family: "Noto Sans", var(--font-body); }
html[dir="rtl"] .nav, html[dir="rtl"] .header-inner, html[dir="rtl"] .topbar .container { direction: rtl; }
@media (max-width: 960px) {
  .brand { order: 1; }
  .header-tools { order: 2; margin-left: auto; }
  .nav { order: 3; }
  .topbar-tools { width: 100%; justify-content: space-between; }
  .lang-bar { max-width: 100%; justify-content: flex-end; }
}

.prose-float {
  float: left;
  margin: 0 1.1rem 1rem 0;
  max-width: min(100%, 400px);
  border-radius: var(--radius);
}
html[dir="rtl"] .prose-float {
  float: right;
  margin: 0 0 1rem 1.1rem;
}
.prose::after { content: ""; display: block; clear: both; }
.prose ul { margin: 0.4rem 0 1.1rem; }
.prose li { line-height: 1.65; }

html[lang="zh-CN"] .prose {
  max-width: 40rem;
  line-height: 1.9;
}
html[lang="zh-CN"] .prose p { text-align: justify; text-justify: inter-ideograph; }

html[lang="en"] {
  --font-body: "Noto Sans", "Segoe UI", sans-serif;
  --font-display: "Noto Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
html[lang="en"] .prose {
  max-width: 66ch;
  line-height: 1.7;
  font-size: 1.05rem;
  hanging-punctuation: first;
}
html[lang="en"] .prose p { text-align: start; hyphens: auto; }

html[lang="ms"] {
  --font-body: "Noto Sans", "Segoe UI", sans-serif;
  --font-display: "Noto Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
html[lang="ms"] h1, html[lang="ms"] h2, html[lang="ms"] h3 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}
html[lang="ms"] .prose {
  max-width: 68ch;
  line-height: 1.75;
  font-size: 1.05rem;
}
html[lang="ms"] .prose p { text-align: start; hyphens: auto; }

html[lang="ru"] {
  --font-body: "Noto Sans", "Segoe UI", sans-serif;
  --font-display: "Noto Sans", "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
html[lang="ru"] body { font-family: "Noto Sans", var(--font-body); }
html[lang="ru"] h1, html[lang="ru"] h2, html[lang="ru"] h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}
html[lang="ru"] .prose {
  max-width: 64ch;
  line-height: 1.75;
  font-size: 1.06rem;
}
html[lang="ru"] .prose p { text-align: start; hyphens: auto; }

html[lang="ar"] {
  --font-body: "Noto Naskh Arabic", "Noto Sans", sans-serif;
  --font-display: "Noto Naskh Arabic", "Noto Sans", serif;
  font-size: 17.5px;
  line-height: 1.95;
}
html[lang="ar"] body { font-family: "Noto Naskh Arabic", "Noto Sans", var(--font-body); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 {
  font-family: var(--font-display);
  line-height: 1.5;
}
html[lang="ar"] .prose {
  max-width: 42rem;
  line-height: 2;
  font-size: 1.12rem;
}
html[lang="ar"] .prose p { text-align: start; }
html[dir="rtl"] .spec-table th, html[dir="rtl"] .spec-table td,
html[dir="rtl"] .prose th, html[dir="rtl"] .prose td { text-align: start; }
html[dir="rtl"] .brand-text { text-align: start; }
