/* Datasheet – the company documented like an electronics component datasheet. */

:root {
  --bg: #e7eaee;
  --paper: #ffffff;
  --ink: #111418;
  --ink-2: #4a525c;
  --line: #c9ced6;
  --rule: #111418;
  --accent: #0b57a4;
  --accent-dark: #083f78;
  --tint: #eef3f9;
  --zebra: #f5f7f9;
  --font-body: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sheet-pad: clamp(18px, 5vw, 72px);
}

body { font-size: 1rem; line-height: 1.55; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Document header bar ---------- */
.ds-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 3px solid var(--rule);
}
.ds-top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  max-width: 1240px;
  margin-inline: auto;
  padding: 10px var(--sheet-pad);
}
.ds-brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; }
.ds-brand__chip { width: 30px; height: 30px; }
.ds-brand__name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.ds-brand__sub { display: none; padding-left: 10px; border-left: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-2); }
.ds-nav { order: 3; display: flex; flex-wrap: wrap; gap: 0 18px; width: 100%; font-size: 0.9375rem; }
.ds-nav a { padding: 6px 0; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.ds-nav a:hover { border-bottom-color: currentColor; }
.ds-lang {
  padding: 4px 9px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}
.ds-lang:hover { background: var(--ink); color: #fff; }
@media (min-width: 760px) {
  .ds-nav { order: 0; width: auto; }
  .ds-brand__sub { display: inline; }
}

/* ---------- Sheets ---------- */
main { padding: clamp(10px, 3vw, 40px) clamp(8px, 2vw, 24px) 8px; }
.ds-sheet {
  position: relative;
  max-width: 1240px;
  margin: 0 auto clamp(10px, 3vw, 40px);
  padding: 22px var(--sheet-pad) 18px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(17 20 24 / 0.08), 0 12px 32px -18px rgb(17 20 24 / 0.35);
}
.ds-run, .ds-pagefoot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
}
.ds-run { padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.ds-run span:first-child { font-weight: 700; color: var(--ink); }
.ds-pagefoot { margin-top: clamp(40px, 6vw, 72px); padding-top: 8px; border-top: 1px solid var(--rule); }
.ds-pagefoot span:last-child { font-weight: 700; color: var(--ink); }

/* ---------- Title block ---------- */
.ds-titleblock { padding: clamp(22px, 3.5vw, 40px) 0 clamp(18px, 2.5vw, 28px); border-bottom: 3px solid var(--rule); }
.ds-part { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.ds-part__no { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.75rem, 3.6vw, 2.75rem); letter-spacing: -0.01em; line-height: 1; }
.ds-part__status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.ds-part__status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--accent); }
.ds-hero h1 {
  max-width: 22ch;
  font-size: clamp(2.25rem, 5.4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.ds-qfp { display: none; }
.ds-qfp text { font-family: var(--font-mono); font-weight: 700; }
.ds-subtitle { margin-top: 12px; font-size: clamp(1rem, 1.4vw, 1.1875rem); color: var(--ink-2); }

.ds-hero__grid { display: grid; gap: 28px; padding-top: 24px; }
.ds-colhead {
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.3;
}
.ds-lead { max-width: 60ch; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.55; }
.ds-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.ds-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
}
.ds-btn:hover { background: var(--accent-dark); color: #fff; }
.ds-tel { font-family: var(--font-mono); font-size: 0.9375rem; color: var(--ink); }

/* ---------- Tables ---------- */
.ds-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.ds-table caption {
  caption-side: top;
  padding-bottom: 8px;
  text-align: left;
  font-weight: 700;
  font-size: 0.9375rem;
}
.ds-table thead th {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  text-align: left;
  padding: 8px 12px;
  border: 1px solid var(--accent);
}
.ds-table td, .ds-table tbody th {
  padding: 9px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
.ds-table tbody tr:nth-child(even) { background: var(--zebra); }
.ds-specs tbody th { width: 46%; color: var(--ink-2); }
.ds-specs td { font-weight: 600; }
.ds-mono { font-family: var(--font-mono); font-size: 0.875rem; white-space: nowrap; }
.ds-table h3 { font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.35; }

/* ---------- Sections ---------- */
.ds-sec { padding-top: clamp(32px, 4.5vw, 56px); }
.ds-h2 {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--rule);
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.ds-h2__no { font-family: var(--font-mono); font-weight: 500; font-size: 0.75em; color: var(--accent); }
.ds-intro { max-width: 68ch; margin: 16px 0 0; font-size: 1.0625rem; color: var(--ink-2); }
.ds-cols { display: grid; gap: 32px; margin-top: 28px; }

.ds-bullets > li { position: relative; padding-left: 20px; }
.ds-bullets > li + li { margin-top: 18px; }
.ds-bullets > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--ink);
}
.ds-bullets h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.35; margin-bottom: 2px; }
.ds-bullets p { max-width: 62ch; }
.ds-bullets ul { margin-top: 6px; padding-left: 0; list-style: none; }
.ds-bullets ul li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 0.9375rem; hyphens: auto; }
.ds-bullets ul li + li { margin-top: 3px; }
.ds-bullets ul li::before { content: "–"; position: absolute; left: 2px; color: var(--ink); }
.ds-bullets--apps > li { hyphens: auto; }
.ds-bullets--apps strong { font-weight: 700; }
.ds-pin {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  background: var(--tint);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  vertical-align: 1px;
}

/* Figures */
.ds-fig { margin: 28px 0 0; }
.ds-fig figcaption { margin-top: 10px; font-weight: 700; font-size: 0.9375rem; text-align: center; }
.ds-fig svg text { font-family: var(--font-mono); }
.ds-fig .ds-svg-block text { font-family: var(--font-display); font-weight: 700; }
.ds-fig--pins { padding: 18px 12px 12px; border: 1px solid var(--line); }
.ds-fig--pins svg { width: 100%; max-width: 420px; margin-inline: auto; }
.ds-fig--block { padding: clamp(14px, 2.5vw, 28px); border: 1px solid var(--line); background: linear-gradient(var(--paper), var(--paper)) padding-box; }
.ds-block--h { display: none; width: 100%; }
.ds-block--v { width: 100%; max-width: 360px; margin-inline: auto; }

.ds-phases { margin-top: 32px; }
.ds-phases td:nth-child(1), .ds-phases td:nth-child(2) { width: 1%; }
.ds-phases tbody th { width: 18%; }

.ds-h3 { display: flex; gap: 0.5em; align-items: baseline; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
.ds-h3__no { font-family: var(--font-mono); font-weight: 500; font-size: 0.8em; color: var(--accent); }
.ds-cols--notes { margin-top: clamp(32px, 4vw, 48px); }
.ds-small p { max-width: 62ch; hyphens: auto; }
.ds-small p + p { margin-top: 12px; }
.ds-notes details { border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.ds-notes details + details { margin-top: 8px; }
.ds-notes summary {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 11px 40px 11px 14px;
  position: relative;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.ds-notes summary::-webkit-details-marker { display: none; }
.ds-notes summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 9px;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--accent);
}
.ds-notes details[open] summary::after { content: "–"; }
.ds-notes details[open] summary { background: var(--tint); }
.ds-an { flex: none; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--accent); }
.ds-notes details p { padding: 10px 14px 14px; color: var(--ink-2); max-width: 64ch; }

/* Ordering information */
.ds-order { margin-top: 28px; }
.ds-order .ds-meta { color: var(--ink-2); font-size: 0.875rem; }
.ds-link { font-weight: 600; white-space: nowrap; }
@media (max-width: 899px) {
  .ds-order thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ds-order, .ds-order tbody, .ds-order tr, .ds-order td, .ds-order th { display: block; }
  .ds-order tr { border: 1px solid var(--line); border-top: 4px solid var(--accent); margin-top: 14px; background: var(--paper) !important; }
  .ds-order td, .ds-order tbody th { border: 0; padding: 4px 14px; }
  .ds-order td:first-child { padding-top: 12px; color: var(--accent); }
  .ds-order td:last-child { padding-bottom: 14px; padding-top: 8px; }
  .ds-order tbody th h3 { font-size: 1.125rem; }
  .ds-link { white-space: normal; }
}

/* Contact */
.ds-contact { padding-top: clamp(40px, 6vw, 72px); }
.ds-contact .ds-colhead { border: 0; margin-bottom: 4px; padding: 0; font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; color: var(--accent); }
.ds-h2--contact { display: block; font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.ds-contact__table { border: 1px solid var(--line); }
.ds-contact__table div { display: grid; grid-template-columns: minmax(84px, 30%) 1fr; }
.ds-contact__table div + div { border-top: 1px solid var(--line); }
.ds-contact__table dt { padding: 10px 12px; background: var(--accent); color: #fff; font-weight: 600; font-size: 0.875rem; }
.ds-contact__table dd { padding: 10px 14px; overflow-wrap: anywhere; }
.ds-contact__table div:first-child dd a { font-weight: 700; font-size: 1.0625rem; }

/* ---------- Footer: important notice ---------- */
.ds-foot { padding: 0 clamp(8px, 2vw, 24px) clamp(16px, 3vw, 40px); }
.ds-foot__sheet {
  max-width: 1240px;
  margin-inline: auto;
  padding: 22px var(--sheet-pad);
  background: var(--paper);
  border-top: 3px solid var(--rule);
  font-size: 0.875rem;
}
.ds-foot__head { font-weight: 800; font-size: 0.9375rem; }
.ds-foot__notice { margin-top: 4px; color: var(--ink-2); max-width: 90ch; }
.ds-foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.ds-foot__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ds-foot__copy { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-2); }

/* ---------- Legal pages ---------- */
.legal { max-width: 1240px; margin: 0 auto clamp(10px, 3vw, 40px); background: var(--paper); box-shadow: 0 12px 32px -18px rgb(17 20 24 / 0.35); }
.legal h1 { font-weight: 700; letter-spacing: -0.03em; padding-bottom: 12px; border-bottom: 3px solid var(--rule); }
.legal h2 { font-weight: 700; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.legal p, .legal li { color: var(--ink-2); }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  .ds-block--h { display: block; }
  .ds-block--v { display: none; }
}
@media (min-width: 900px) {
  .ds-titleblock { display: grid; grid-template-columns: 1fr auto; column-gap: 40px; }
  .ds-titleblock > :not(.ds-qfp) { grid-column: 1; }
  .ds-qfp { display: block; grid-column: 2; grid-row: 1 / span 3; align-self: center; width: clamp(180px, 18vw, 240px); }
  .ds-hero__grid { grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
  .ds-cols { grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
  .ds-sheet--first .ds-cols { grid-template-columns: 7fr 5fr; }
  .ds-cols > .ds-lead { align-self: start; }
}

@media (max-width: 599px) {
  .ds-phases td:nth-child(1), .ds-phases td:nth-child(2), .ds-phases thead th:nth-child(1), .ds-phases thead th:nth-child(2) { display: none; }
  .ds-phases tbody th { width: 34%; }
  .ds-table td, .ds-table tbody th { padding: 8px 10px; }
}
@media (max-width: 899px) {
  .ds-order caption { display: block; width: 100%; }
}
