/* HERSMEED components. Colors, spacing, radii and type come from tokens.css; type sizes from its style classes (.label, .title, .small, .code). */

body { margin: 0; font-family: var(--font-sans); background: var(--surface); color: var(--ink); }

/* Iron context: wrap any part of a page in .hs-iron to set it on the dark ground. Components inside switch to their on-iron colors. */
.hs-iron { background: var(--iron); color: var(--on-iron); }

/* Preview helpers */
.hs-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; padding: var(--space-4); }
.hs-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4); }

/* ---------- DisciplineMarker ---------- */
.hs-dm { color: var(--ink); }
.hs-dm-mark { color: var(--forge); display: inline-flex; }
.hs-glyph { display: block; }
.hs-dm-label { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); text-transform: uppercase; }
.hs-dm-icon { display: inline-flex; color: var(--forge); }
.hs-dm-block { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 180px; box-sizing: border-box; }
.hs-dm-block-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-4); }
.hs-dm-code { color: var(--ink-muted); font-family: var(--font-mono); }
.hs-dm-name { font-family: var(--font-display); }
.hs-dm-desc { color: var(--ink-muted); }
.hs-iron .hs-dm { color: var(--on-iron); }
.hs-iron .hs-dm-mark, .hs-iron .hs-dm-icon { color: var(--ember); }
.hs-iron .hs-dm-block { background: transparent; border-color: var(--iron-line); }
.hs-iron .hs-dm-code, .hs-iron .hs-dm-desc { color: var(--on-iron-muted); }

/* ---------- Tag ---------- */
.hs-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--space-2); box-sizing: border-box; border: 1px solid; border-radius: var(--radius-sm); font-family: var(--font-display); text-transform: uppercase; white-space: nowrap; }
.hs-tag-outline.hs-tag-neutral { color: var(--ink); border-color: var(--ink-muted); background: transparent; }
.hs-tag-outline.hs-tag-forge { color: var(--forge); border-color: var(--forge); background: transparent; }
.hs-tag-outline.hs-tag-quench { color: var(--quench); border-color: var(--quench); background: transparent; }
.hs-tag-solid.hs-tag-neutral { color: var(--on-iron); background: var(--iron); border-color: var(--iron); }
.hs-tag-solid.hs-tag-forge { color: var(--on-forge); background: var(--forge); border-color: var(--forge); }
.hs-tag-solid.hs-tag-quench { color: var(--on-forge); background: var(--quench); border-color: var(--quench); }
.hs-iron .hs-tag-outline.hs-tag-neutral { color: var(--on-iron); border-color: var(--on-iron-muted); }
.hs-iron .hs-tag-outline.hs-tag-forge { color: var(--ember); border-color: var(--ember); }
.hs-iron .hs-tag-quench { color: var(--on-iron); background: var(--quench); border-color: var(--quench); }
.hs-iron .hs-tag-solid.hs-tag-neutral { color: var(--iron); background: var(--on-iron); border-color: var(--on-iron); }
.hs-iron .hs-tag-solid.hs-tag-forge { color: var(--iron); background: var(--ember); border-color: var(--ember); }

/* ---------- SpecTable ---------- */
/* Same calm language as the invoice: a small label and reference over the table, 1.5px ink rules top and bottom, hairlines between rows. */
.hs-spec { margin: 0; color: var(--ink); break-inside: avoid; }
.hs-spec-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding-bottom: var(--space-2); }
.hs-spec-title { font-family: var(--font-display); text-transform: uppercase; color: var(--ink-muted); }
.hs-spec-ref { color: var(--ink-muted); font-family: var(--font-mono); white-space: nowrap; }
.hs-spec-table { width: 100%; border-collapse: collapse; border-bottom: 0; }
.hs-spec-table thead th { text-align: left; font-family: var(--font-display); text-transform: uppercase; color: var(--ink-muted); padding: var(--space-2) var(--space-4) var(--space-2) 0; border-top: 0; border-bottom: 1px solid var(--ink); }
.hs-spec-table td, .hs-spec-table tbody th { text-align: left; vertical-align: baseline; padding: 8px var(--space-4) 8px 0; border-top: 1px solid var(--line); }
.hs-spec-table tbody tr:first-child > * { border-top: 0; }
.hs-spec-param { font-weight: 400; font-family: var(--font-sans); color: var(--ink); }
.hs-spec-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-spec-unit { color: var(--ink-muted); }
.hs-spec-tol { font-family: var(--font-mono); white-space: nowrap; }
.hs-spec-note { color: var(--ink-muted); font-family: var(--font-sans); }
.hs-spec-cap { caption-side: bottom; text-align: left; color: var(--ink-muted); padding-top: var(--space-2); font-family: var(--font-sans); }
.hs-iron .hs-spec { color: var(--on-iron); }
.hs-iron .hs-spec-table, .hs-iron .hs-spec-table thead th { border-color: var(--on-iron); }
.hs-iron .hs-spec-table thead th { color: var(--on-iron-muted); }
.hs-iron .hs-spec-table td, .hs-iron .hs-spec-table tbody th { border-top-color: var(--iron-line); }
.hs-iron .hs-spec-param { color: var(--on-iron); }
.hs-iron .hs-spec-title, .hs-iron .hs-spec-ref, .hs-iron .hs-spec-unit, .hs-iron .hs-spec-note, .hs-iron .hs-spec-cap { color: var(--on-iron-muted); }

/* ---------- Readout ---------- */
.hs-readout { display: inline-flex; flex-direction: column; gap: var(--space-1); color: var(--ink); padding-top: var(--space-2); border-top: 2px solid var(--ink); min-width: 160px; }
.hs-readout-fig { display: flex; align-items: baseline; gap: var(--space-2); }
.hs-readout-value { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.hs-readout-md .hs-readout-value { font-size: 44px; }
.hs-readout-lg .hs-readout-value { font-size: 64px; }
.hs-readout-unit { font-family: var(--font-mono); font-size: 16px; color: var(--ink-muted); }
.hs-readout-lg .hs-readout-unit { font-size: 20px; }
.hs-readout-label { font-family: var(--font-display); text-transform: uppercase; color: var(--ink-muted); margin-top: var(--space-1); }
.hs-readout-detail { color: var(--ink-muted); font-family: var(--font-sans); max-width: 28ch; }
.hs-readout-accent { border-top-color: var(--forge); }
.hs-readout-accent .hs-readout-value { color: var(--forge); }
.hs-iron .hs-readout { color: var(--on-iron); border-top-color: var(--on-iron); }
.hs-iron .hs-readout-unit, .hs-iron .hs-readout-label, .hs-iron .hs-readout-detail { color: var(--on-iron-muted); }
.hs-iron .hs-readout-accent { border-top-color: var(--ember); }
.hs-iron .hs-readout-accent .hs-readout-value { color: var(--ember); }

/* ---------- Shared: icons, plus grid, focus ---------- */
.hs-icon { display: block; flex: none; }
.hs-plusgrid { display: block; }
.hs-plus { stroke: var(--iron-line); }
.hs-plus-hot { stroke: var(--ember); }
.hs-btn:focus-visible, .hs-link:focus-visible, .hs-link-standalone:focus-visible, .hs-nav-link:focus-visible, .hs-wordmark:focus-visible,
.hs-menu-btn:focus-visible, .hs-footer-link:focus-visible, .hs-pcard-link:focus-visible, .hs-input:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.hs-iron .hs-btn:focus-visible, .hs-iron .hs-link:focus-visible, .hs-iron .hs-link-standalone:focus-visible, .hs-iron .hs-nav-link:focus-visible,
.hs-iron .hs-wordmark:focus-visible, .hs-iron .hs-menu-btn:focus-visible, .hs-iron .hs-footer-link:focus-visible { box-shadow: 0 0 0 2px var(--iron), 0 0 0 4px var(--ember); }

/* ---------- Button ---------- */
.hs-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); box-sizing: border-box; border: 1.5px solid transparent; border-radius: var(--radius-sm); font-family: var(--font-display); text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .12s, border-color .12s, color .12s; }
.hs-btn-sm { height: 36px; padding: 0 var(--space-4); }
.hs-btn-md { height: 44px; padding: 0 20px; }
.hs-btn-lg { height: 52px; padding: 0 var(--space-8); }
.hs-btn-primary { background: var(--forge); border-color: var(--forge); color: var(--on-forge); }
.hs-btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.hs-btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.hs-btn-secondary:hover { background: var(--ink); color: var(--surface-raised); }
.hs-btn-ghost { background: transparent; color: var(--ink); padding-left: var(--space-2); padding-right: var(--space-2); }
.hs-btn-ghost:hover { color: var(--forge); }
.hs-btn .hs-icon { transition: transform .12s; }
.hs-btn:hover .hs-icon { transform: translateX(2px); }
.hs-btn[disabled] { opacity: 1; background: var(--line); border-color: var(--line); color: var(--ink-muted); cursor: not-allowed; }
.hs-iron .hs-btn-primary { background: var(--ember); border-color: var(--ember); color: var(--iron); }
.hs-iron .hs-btn-primary:hover { background: var(--on-iron); border-color: var(--on-iron); }
.hs-iron .hs-btn-secondary { border-color: var(--on-iron); color: var(--on-iron); }
.hs-iron .hs-btn-secondary:hover { background: var(--on-iron); color: var(--iron); }
.hs-iron .hs-btn-ghost { color: var(--on-iron); }
.hs-iron .hs-btn-ghost:hover { color: var(--ember); }

/* ---------- Link ---------- */
.hs-link { color: var(--forge); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; border-radius: var(--radius-sm); }
.hs-link:hover { text-decoration-thickness: 2px; }
.hs-link-standalone { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--forge); font-family: var(--font-display); text-transform: uppercase; text-decoration: none; border-radius: var(--radius-sm); }
.hs-link-standalone .hs-icon { transition: transform .12s; }
.hs-link-standalone:hover .hs-icon { transform: translateX(3px); }
.hs-link-standalone:hover span { text-decoration: underline; text-underline-offset: 3px; }
.hs-iron .hs-link, .hs-iron .hs-link-standalone { color: var(--ember); }

/* ---------- HeroBand ---------- */
.hs-hero { position: relative; overflow: hidden; padding: 96px var(--space-8) 80px; }
.hs-hero-pattern { position: absolute; top: 0; right: 0; }
.hs-hero-inner { position: relative; max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-end; justify-content: space-between; }
.hs-hero-main { flex: 1 1 560px; max-width: 880px; }
.hs-hero-eyebrow { font-family: var(--font-display); text-transform: uppercase; color: var(--ember); margin-bottom: var(--space-4); }
.hs-hero-title { margin: 0; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.04; color: var(--on-iron); }
.hs-hero-intro { margin: 20px 0 0; font-size: 18px; line-height: 28px; color: var(--on-iron-muted); max-width: 56ch; }
.hs-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }
.hs-hero-aside { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: var(--space-8); }

/* ---------- ProjectCard ---------- */
.hs-pcard { position: relative; display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .12s; }
.hs-pcard:hover { border-color: var(--ink); }
.hs-pcard-media { aspect-ratio: 16 / 10; overflow: hidden; }
.hs-pcard-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-pcard-plate { position: relative; width: 100%; height: 100%; }
.hs-pcard-pattern { position: absolute; top: 0; right: 0; }
.hs-pcard-plate-ref { position: absolute; left: var(--space-4); bottom: var(--space-4); color: var(--on-iron-muted); font-family: var(--font-mono); }
.hs-pcard-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--space-4) 20px; flex: 1; }
.hs-pcard-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.hs-pcard-dis { display: inline-flex; gap: var(--space-2); }
.hs-pcard-metatext { color: var(--ink-muted); font-family: var(--font-mono); }
.hs-pcard-title { margin: var(--space-1) 0 0; font-family: var(--font-display); color: var(--ink); }
.hs-pcard-link { color: inherit; text-decoration: none; border-radius: var(--radius-sm); }
.hs-pcard-link::after { content: ""; position: absolute; inset: 0; }
.hs-pcard:hover .hs-pcard-link { color: var(--forge); }
.hs-pcard-summary { margin: 0; color: var(--ink-muted); }
.hs-pcard-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }

/* ---------- ServiceCard ---------- */
.hs-scard { display: flex; flex-direction: column; gap: var(--space-2); padding: 20px 20px var(--space-4); background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-sizing: border-box; }
.hs-scard-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-4); }
.hs-scard-index { color: var(--forge); font-family: var(--font-mono); font-weight: 500; }
.hs-scard-title { margin: 0; font-family: var(--font-display); }
.hs-scard-desc { margin: 0; color: var(--ink-muted); }
.hs-scard-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; color: var(--ink); }
.hs-scard-list li { position: relative; padding: 6px 0 6px 20px; border-top: 1px solid var(--line); }
.hs-scard-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; background: var(--forge); }
.hs-scard-foot { margin-top: auto; padding-top: var(--space-4); }
.hs-iron .hs-scard { background: transparent; border-color: var(--iron-line); border-top-color: var(--on-iron); }
.hs-iron .hs-scard-index { color: var(--ember); }
.hs-iron .hs-scard-desc { color: var(--on-iron-muted); }
.hs-iron .hs-scard-list { color: var(--on-iron); }
.hs-iron .hs-scard-list li { border-top-color: var(--iron-line); }
.hs-iron .hs-scard-list li::before { background: var(--ember); }

/* ---------- ProcessSteps ---------- */
.hs-steps { list-style: none; margin: 0; padding: 0; color: var(--ink); }
.hs-steps-horizontal { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); }
.hs-steps-vertical { display: flex; flex-direction: column; gap: 0; }
.hs-step { position: relative; display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.hs-steps-horizontal .hs-step::before { content: ""; position: absolute; top: -5.5px; left: 0; width: 10px; height: 10px; background: var(--forge); }
.hs-steps-vertical .hs-step { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 var(--space-8) 28px; }
.hs-steps-vertical .hs-step:last-child { padding-bottom: 0; }
.hs-steps-vertical .hs-step::before { content: ""; position: absolute; top: 4px; left: -5.5px; width: 10px; height: 10px; background: var(--forge); }
.hs-step-num { color: var(--forge); font-family: var(--font-mono); font-weight: 500; }
.hs-step-title { margin: 0; font-family: var(--font-display); }
.hs-step-desc { margin: 0; color: var(--ink-muted); max-width: 36ch; }
.hs-iron .hs-steps { color: var(--on-iron); }
.hs-iron .hs-step { border-color: var(--iron-line); }
.hs-iron .hs-step::before { background: var(--ember); }
.hs-iron .hs-step-num { color: var(--ember); }
.hs-iron .hs-step-desc { color: var(--on-iron-muted); }

/* ---------- SiteHeader ---------- */
.hs-header { container-type: inline-size; }
.hs-header-light { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.hs-header-bar { display: flex; align-items: center; gap: var(--space-8); height: 72px; padding: 0 var(--space-8); max-width: 1184px; margin: 0 auto; box-sizing: border-box; }
.hs-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 24px; letter-spacing: 0.02em; color: inherit; text-decoration: none; border-radius: var(--radius-sm); }
.hs-header-nav { flex: 1; }
.hs-nav-list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.hs-nav-link { display: inline-block; padding: 26px 0 24px; font-family: var(--font-display); text-transform: uppercase; color: inherit; text-decoration: none; border-bottom: 2px solid transparent; }
.hs-nav-link:hover { color: var(--forge); }
.hs-nav-link[aria-current="page"] { border-bottom-color: var(--forge); }
.hs-iron .hs-nav-link:hover { color: var(--ember); }
.hs-iron .hs-nav-link[aria-current="page"] { border-bottom-color: var(--ember); }
.hs-menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1.5px solid currentColor; border-radius: var(--radius-sm); color: inherit; cursor: pointer; }
.hs-header-panel { padding: 0 var(--space-8) var(--space-8); border-top: 1px solid var(--line); }
.hs-iron .hs-header-panel { border-top-color: var(--iron-line); }
.hs-panel-list { list-style: none; margin: 0; padding: 0; }
.hs-panel-list .hs-nav-link { display: block; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.hs-iron .hs-panel-list .hs-nav-link { border-bottom-color: var(--iron-line); }
.hs-panel-list .hs-nav-link[aria-current="page"] { color: var(--forge); }
.hs-iron .hs-panel-list .hs-nav-link[aria-current="page"] { color: var(--ember); }
.hs-panel-cta { margin-top: var(--space-8); }
@container (max-width: 760px) {
  .hs-header-bar { padding: 0 var(--space-4); height: 64px; }
  .hs-header-nav, .hs-header-cta { display: none; }
  .hs-menu-btn { display: inline-flex; }
  .hs-header-panel { padding: 0 var(--space-4) var(--space-8); }
}
@container (min-width: 761px) { .hs-header-panel { display: none; } }

/* ---------- SiteFooter ---------- */
.hs-footer { padding: 64px var(--space-8) var(--space-8); }
.hs-footer-top { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-8); }
.hs-footer-tagline { margin: var(--space-4) 0 0; color: var(--on-iron-muted); max-width: 32ch; }
.hs-footer-contact { margin-top: var(--space-4); color: var(--on-iron); font-style: normal; }
.hs-footer-coltitle { font-family: var(--font-display); text-transform: uppercase; color: var(--on-iron-muted); margin-bottom: var(--space-4); }
.hs-footer-col ul, .hs-footer-legal { list-style: none; margin: 0; padding: 0; }
.hs-footer-col li { margin-bottom: var(--space-2); }
.hs-footer-link { color: var(--on-iron); text-decoration: none; border-radius: var(--radius-sm); }
.hs-footer-link:hover { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }
.hs-footer-bottom { max-width: 1120px; margin: 48px auto 0; padding-top: var(--space-4); border-top: 1px solid var(--iron-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); color: var(--on-iron-muted); }
.hs-footer-legal { display: flex; gap: var(--space-4); }
.hs-footer-bottom .hs-footer-link { color: var(--on-iron-muted); }

/* ---------- Form fields ---------- */
.hs-field { display: flex; flex-direction: column; gap: 6px; }
.hs-field-label { font-family: var(--font-sans); font-weight: 600; color: var(--ink); }
.hs-field-opt { font-weight: 400; color: var(--ink-muted); }
.hs-field-hint { color: var(--ink-muted); font-family: var(--font-sans); margin-top: -2px; }
.hs-input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; font-family: var(--font-sans); color: var(--ink); background: var(--surface-raised); border: 1px solid var(--ink-muted); border-radius: var(--radius-sm); margin: 0; }
textarea.hs-input { resize: vertical; min-height: 120px; }
.hs-input::placeholder { color: var(--ink-muted); opacity: 1; }
.hs-input:hover { border-color: var(--ink); }
.hs-input:focus-visible { border-color: var(--forge); }
.hs-field-invalid .hs-input { border-color: var(--danger); border-width: 2px; padding: 9px 11px; }
.hs-field-error { display: flex; align-items: flex-start; gap: 6px; color: var(--danger); font-family: var(--font-sans); }
.hs-field-error .hs-icon { margin-top: 2px; }
.hs-select-wrap { position: relative; }
.hs-select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.hs-field-invalid .hs-select { padding-right: 39px; }
.hs-select-icon { position: absolute; right: 12px; top: 50%; margin-top: -8px; pointer-events: none; color: var(--ink); }
.hs-check { display: flex; flex-direction: column; gap: 6px; }
.hs-check-row { display: flex; align-items: flex-start; gap: 12px; }
.hs-check-box { position: relative; flex: none; width: 20px; height: 20px; margin-top: 0; }
.hs-check-input { appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--ink-muted); border-radius: var(--radius-sm); background: var(--surface-raised); cursor: pointer; display: block; }
.hs-check-input:hover { border-color: var(--ink); }
.hs-check-input:checked { background: var(--forge); border-color: var(--forge); }
.hs-check-input:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.hs-field-invalid .hs-check-input { border: 2px solid var(--danger); }
.hs-check-icon { position: absolute; inset: 2px; width: 16px; height: 16px; color: var(--on-forge); pointer-events: none; opacity: 0; }
.hs-check-input:checked + .hs-check-icon { opacity: 1; }
.hs-check-label { font-family: var(--font-sans); color: var(--ink); cursor: pointer; padding-top: 0; }
.hs-check-indent { padding-left: 32px; }

/* ---------- Documents ---------- */
/* .hs-paper: a document page on screen; on paper it drops its frame. Colors print exactly. */
.hs-paper { background: var(--surface-raised); color: var(--ink); padding: var(--space-8); border: 1px solid var(--line); box-sizing: border-box; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* .hs-desk: the gray surround a page sits on in previews; gone on paper. */
.hs-desk { padding: 24px; background: var(--surface); }
@page { size: A4; margin: 14mm 16mm; }
@media print { body { background: #ffffff; } .hs-paper { border: 0; padding: 0; } .hs-desk { padding: 0; background: none; } }

/* TitleBlock: a quiet document header. Brand row over a hairline, the title, then the details in a light grid. */
.hs-tblock { color: var(--ink); break-inside: avoid; }
.hs-tblock-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.hs-tblock-brand { font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 20px; letter-spacing: 0.03em; }
.hs-tblock-flags { display: flex; align-items: center; gap: 12px; }
.hs-tblock-type { font-family: var(--font-display); text-transform: uppercase; color: var(--forge); }
.hs-tblock-main { padding: 28px 0 0; }
.hs-tblock-title { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.005em; max-width: 32ch; }
.hs-tblock-sub { margin: 6px 0 0; color: var(--ink-muted); max-width: 60ch; }
.hs-tblock-dis { display: flex; flex-wrap: wrap; gap: 20px; margin-top: var(--space-4); }
.hs-tblock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 0; border-top: 1px solid var(--line); }
.hs-tblock-cell { padding: 10px var(--space-4) 10px 0; border-bottom: 1px solid var(--line); }
.hs-tblock-cell dt { font-family: var(--font-sans); font-size: 12px; line-height: 16px; color: var(--ink-muted); margin-bottom: 2px; }
.hs-tblock-cell dd { margin: 0; color: var(--ink); font-family: var(--font-sans); }
.hs-tblock-cell dd.hs-tblock-mono { font-family: var(--font-mono); }

/* PageFooter */
.hs-pfoot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--ink); color: var(--ink-muted); font-size: 12px; line-height: 16px; }
.hs-pfoot-left { display: flex; align-items: baseline; gap: 12px; }
.hs-pfoot-left .code, .hs-pfoot-page { font-family: var(--font-mono); font-size: 12px; }
.hs-pfoot-brand { font-family: var(--font-display); font-weight: 800; font-size: 11px; line-height: 16px; letter-spacing: 0.04em; color: var(--ink); }
.hs-pfoot-mid { display: flex; gap: var(--space-2); align-items: baseline; justify-content: center; font-family: var(--font-sans); font-size: 12px; }
.hs-pfoot-class { font-family: var(--font-display); text-transform: uppercase; color: var(--ink-muted); font-size: 11px; }
.hs-pfoot-page { justify-self: end; color: var(--ink-muted); }

/* SectionHeading: a numbered section in a document, over a 1px ink rule. */
.hs-section { color: var(--ink); padding-top: 16px; break-after: avoid; }
.hs-section-title { margin: 0; display: flex; align-items: baseline; gap: 14px; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 28px; letter-spacing: -0.005em; }
.hs-section-num { font-family: var(--font-mono); font-weight: 400; font-size: 15px; color: var(--ink-muted); min-width: 24px; }
.hs-section-lead { margin: var(--space-2) 0 0; font-family: var(--font-sans); color: var(--ink); max-width: 68ch; }
.hs-section-num + span { flex: 1; }

/* Callout: no box. A labelled block between two rules; the kind is carried by its word and icon. */
.hs-callout { color: var(--ink); padding: 8px 0 10px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); break-inside: avoid; }
.hs-callout-head { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.hs-callout-head .hs-icon { width: 14px; height: 14px; }
.hs-callout-ref { margin-left: auto; color: var(--ink-muted); font-family: var(--font-mono); text-transform: none; letter-spacing: 0; }
.hs-callout-title { font-family: var(--font-sans); font-weight: 600; margin-bottom: 2px; }
.hs-callout-body { font-family: var(--font-sans); font-size: 15px; line-height: 22px; max-width: 68ch; }
.hs-callout-body > :first-child { margin-top: 0; }
.hs-callout-body > :last-child { margin-bottom: 0; }
.hs-callout-note .hs-callout-head { color: var(--quench); }
.hs-callout-caution { border-top: 1.5px solid var(--forge); }
.hs-callout-caution .hs-callout-head { color: var(--forge); }
.hs-callout-assumption { border-top-style: dashed; }
.hs-callout-assumption .hs-callout-head { color: var(--ink-muted); }

/* SignatureBlock */
.hs-sign { color: var(--ink); break-inside: avoid; }
.hs-sign-heading { font-family: var(--font-display); text-transform: uppercase; color: var(--ink-muted); padding-bottom: var(--space-2); margin-bottom: var(--space-4); border-bottom: 1px solid var(--ink); }
.hs-sign-grid { display: grid; grid-template-columns: repeat(var(--hs-sign-cols, 2), minmax(0, 1fr)); gap: var(--space-8); }
.hs-sign-cell { display: flex; flex-direction: column; }
.hs-sign-role { font-family: var(--font-display); text-transform: uppercase; color: var(--ink); }
.hs-sign-line { height: 44px; border-bottom: 1px solid var(--ink); }
.hs-sign-caption { color: var(--ink-muted); margin-top: var(--space-1); font-family: var(--font-sans); font-size: 12px; }
.hs-sign-fields { margin: 12px 0 0; display: grid; gap: 6px; }
.hs-sign-fields > div { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; gap: var(--space-2); }
.hs-sign-fields dt { color: var(--ink-muted); font-family: var(--font-sans); }
.hs-sign-fields dd { margin: 0; min-height: 20px; border-bottom: 1px solid var(--line); font-family: var(--font-sans); }
.hs-sign-fields dd.code { font-family: var(--font-mono); }

/* A4 page: 210 x 297 mm at 96 dpi. On paper the browser's page box takes over. */
.hs-page-a4 { width: 794px; min-height: 1123px; padding: 40px 48px 32px; display: flex; flex-direction: column; gap: 24px; }
.hs-page-a4 + .hs-page-a4 { margin-top: 24px; }
.hs-page-a4 > .hs-page-end { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-4); }
/* A4 pages carry their own margins: the named page drops the printer's. */
.hs-page-a4 { page: hs-a4; }
@page hs-a4 { size: A4; margin: 0; }
@media print { .hs-paper.hs-page-a4 { width: 210mm; min-height: 0; padding: 40px 48px 32px; break-after: page; } .hs-paper.hs-page-a4:last-child { break-after: auto; } .hs-page-a4 + .hs-page-a4 { margin-top: 0; } }
.hs-mono { font-family: var(--font-mono); }
.hs-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- AddressBlock ---------- */
.hs-addr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); color: var(--ink); break-inside: avoid; }
.hs-addr-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.hs-party { display: flex; flex-direction: column; gap: 2px; }
.hs-party-role { font-family: var(--font-display); text-transform: uppercase; color: var(--ink-muted); padding-bottom: var(--space-2); margin-bottom: var(--space-2); border-bottom: 1px solid var(--ink); }
.hs-party-name { font-family: var(--font-display); }
.hs-party-addr { font-family: var(--font-sans); }
.hs-party-ids { margin: var(--space-2) 0 0; display: grid; gap: 2px; }
.hs-party-ids > div { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-2); align-items: baseline; }
.hs-party-ids dt { color: var(--ink-muted); font-family: var(--font-sans); }
.hs-party-ids dd { margin: 0; font-family: var(--font-mono); }
.hs-party-ids dd.small { font-family: var(--font-sans); }

/* ---------- InvoiceDetails ---------- */
.hs-invd { color: var(--ink); break-inside: avoid; }
.hs-invd-list { margin: 0; display: grid; gap: 4px; }
.hs-invd-row { display: grid; grid-template-columns: 112px 1fr; gap: var(--space-2); align-items: baseline; }
.hs-invd-row dt { color: var(--ink-muted); font-family: var(--font-sans); }
.hs-invd-row dd { margin: 0; font-family: var(--font-sans); }
.hs-invd-row dd.hs-mono { font-family: var(--font-mono); }
.hs-invd-strong dt { color: var(--ink); }
.hs-invd-strong dd { font-weight: 500; }

/* ---------- LineItemsTable ---------- */
.hs-lines { width: 100%; border-collapse: collapse; color: var(--ink); border-bottom: 2px solid var(--ink); }
.hs-lines thead th { text-align: left; font-family: var(--font-display); text-transform: uppercase; color: var(--ink-muted); padding: var(--space-2) 12px var(--space-2) 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.hs-lines thead th:last-child, .hs-lines td:last-child { padding-right: 0; }
.hs-lines td { padding: 7px 12px 7px 0; vertical-align: baseline; border-top: 1px solid var(--line); }
.hs-lines tbody tr:first-child td { border-top: 0; }
.hs-lines tr { break-inside: avoid; }
.hs-lines thead { display: table-header-group; }
.hs-lines-n { width: 28px; color: var(--ink-muted); font-family: var(--font-mono); }
.hs-lines td.code { font-family: var(--font-mono); }
.hs-lines-main { font-family: var(--font-sans); }
.hs-lines-detail { font-family: var(--font-sans); color: var(--ink-muted); }
.hs-lines td.small { font-family: var(--font-sans); }
.hs-lines-amt { font-weight: 500; }
.hs-lines-cap { caption-side: bottom; text-align: left; color: var(--ink-muted); padding-top: var(--space-2); font-family: var(--font-sans); }

/* ---------- TotalsSummary ---------- */
.hs-tot { margin: 0 0 0 auto; width: 100%; max-width: 340px; color: var(--ink); break-inside: avoid; }
.hs-tot-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: 6px 0; }
.hs-tot-row dt { color: var(--ink-muted); font-family: var(--font-sans); }
.hs-tot-row dd { margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-tot-total { border-top: 2px solid var(--ink); margin-top: var(--space-1); padding-top: 10px; }
.hs-tot-total dt { font-family: var(--font-display); text-transform: uppercase; color: var(--ink); }
.hs-tot-total dd { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 28px; letter-spacing: -0.01em; }

/* ---------- PaymentDetails ---------- */
.hs-pay { border-top: 1px solid var(--ink); padding-top: 12px; color: var(--ink); break-inside: avoid; }
.hs-pay-head { font-family: var(--font-display); text-transform: uppercase; color: var(--forge); margin-bottom: var(--space-2); }
.hs-pay-intro { margin: 0 0 12px; font-family: var(--font-sans); }
.hs-pay-intro strong { font-weight: 600; }
.hs-pay-grid { display: grid; grid-template-columns: minmax(200px, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 12px var(--space-4); margin: 0; }
@container (max-width: 560px) { .hs-pay-grid { grid-template-columns: 1fr 1fr; } }
.hs-pay { container-type: inline-size; }
.hs-pay-grid dt { color: var(--ink-muted); font-family: var(--font-sans); }
.hs-pay-grid dd { margin: 2px 0 0; font-family: var(--font-sans); }
.hs-pay-grid dd.hs-mono { font-family: var(--font-mono); font-size: 14px; }
.hs-pay-ref dd { font-weight: 500; }
.hs-pay-terms { margin: 12px 0 0; padding-top: var(--space-2); border-top: 1px solid var(--line); color: var(--ink-muted); font-family: var(--font-sans); }

/* ---------- CompanyDetails ---------- */
.hs-co { display: flex; flex-wrap: wrap; gap: 2px 0; color: var(--ink-muted); font-family: var(--font-sans); font-size: 12px; line-height: 18px; padding-top: var(--space-2); border-top: 1px solid var(--line); }
.hs-co > span + span::before { content: "\00b7"; margin: 0 var(--space-2); color: var(--ink-muted); }
.hs-co-name { color: var(--ink); font-weight: 600; }

/* Compact variants for dense documents such as invoices */
.hs-tblock-compact .hs-tblock-main { padding-top: 20px; }
.hs-tblock-compact .hs-tblock-title { font-size: 22px; line-height: 28px; }
.hs-tblock-compact .hs-tblock-sub { margin-top: var(--space-1); }
.hs-callout-compact .hs-callout-body { font-size: 14px; line-height: 20px; }

/* ProcessSteps on paper: quieter rules and numbers, one row of steps on an A4 page. */
.hs-paper .hs-step { border-top-width: 1px; }
.hs-paper .hs-step::before { display: none; }
.hs-paper .hs-step-num { color: var(--ink-muted); }
.hs-paper .hs-step-title { font-weight: 600; font-size: 16px; line-height: 22px; }
.hs-paper .hs-steps-vertical .hs-step { border-left-width: 1px; }
.hs-page-a4 .hs-steps-horizontal { grid-template-columns: repeat(var(--hs-steps, 4), minmax(0, 1fr)); }
.hs-page-a4 .hs-body { margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 23px; color: var(--ink); max-width: 68ch; }

/* ================= Website components, part 2 ================= */

/* ---------- SectionIntro ---------- */
.hs-sintro { display: flex; flex-direction: column; gap: var(--space-4); max-width: 720px; color: var(--ink); }
.hs-sintro-center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.hs-sintro-eyebrow { font-family: var(--font-display); text-transform: uppercase; color: var(--forge); }
.hs-sintro-title { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; text-wrap: balance; }
.hs-sintro-lead { margin: 0; font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 60ch; }
.hs-sintro-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-2); }
.hs-iron .hs-sintro { color: var(--on-iron); }
.hs-iron .hs-sintro-eyebrow { color: var(--ember); }
.hs-iron .hs-sintro-lead { color: var(--on-iron-muted); }

/* ---------- FeatureList ---------- */
.hs-feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--hs-feat-cols, 3), minmax(0, 1fr)); gap: var(--space-8); }
.hs-feat-item { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.hs-feat-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; box-sizing: border-box; color: var(--forge); background: color-mix(in srgb, var(--forge) 9%, transparent); border-radius: var(--radius-sm); margin-bottom: var(--space-2); }
.hs-feat-title { margin: 0; font-family: var(--font-display); font-weight: 650; font-size: 16px; line-height: 22px; color: var(--ink); }
.hs-feat-desc { margin: 0; color: var(--ink-muted); }
.hs-feat-mark svg { width: 18px; height: 18px; }
.hs-iron .hs-feat-mark { color: var(--ember); background: color-mix(in srgb, var(--ember) 14%, transparent); }
.hs-iron .hs-feat-title { color: var(--on-iron); }
.hs-iron .hs-feat-desc { color: var(--on-iron-muted); }
@media (max-width: 860px) { .hs-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hs-feat { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } }

/* ---------- ComparisonTable ---------- */
.hs-cmp { margin: 0; color: var(--ink); }
.hs-cmp-scroll { overflow-x: auto; border-radius: var(--radius-sm); }
.hs-cmp-scroll:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.hs-cmp-table { width: 100%; min-width: 640px; border-collapse: collapse; border-bottom: 1.5px solid var(--ink); font-variant-numeric: tabular-nums; }
.hs-cmp-table thead th, .hs-cmp-corner { text-align: left; vertical-align: bottom; padding: 12px var(--space-4) 12px 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--font-display); text-transform: uppercase; color: var(--ink-muted); }
.hs-cmp-colname { display: block; color: var(--ink); }
.hs-cmp-flag { display: block; margin-bottom: var(--space-1); color: var(--forge); font-size: 10px; line-height: 14px; }
.hs-cmp-table tbody th, .hs-cmp-table tbody td { text-align: left; vertical-align: top; padding: 12px var(--space-4) 12px 0; border-top: 1px solid var(--line); color: var(--ink); }
.hs-cmp-table tbody tr:first-child > * { border-top: 0; }
.hs-cmp-param { font-weight: 400; width: 26%; }
.hs-cmp-table .hs-cmp-hi { background: color-mix(in srgb, var(--forge) 6%, transparent); padding-left: var(--space-4); }
.hs-cmp-table tbody td.hs-cmp-hi { font-weight: 600; }
.hs-cmp-table .hs-cmp-hi + th, .hs-cmp-table .hs-cmp-hi + td { padding-left: var(--space-4); }
.hs-cmp-table thead th.hs-cmp-hi { border-top: 3px solid var(--forge); }
.hs-cmp-yes, .hs-cmp-no { display: inline-flex; align-items: center; gap: 6px; }
.hs-cmp-yes .hs-icon { color: var(--ink); }
.hs-cmp-hi .hs-cmp-yes .hs-icon { color: var(--forge); }
.hs-cmp-no { color: var(--ink-muted); font-weight: 400; }
.hs-cmp-cap { caption-side: bottom; text-align: left; padding-top: var(--space-2); color: var(--ink-muted); }
.hs-cmp-note { margin-top: var(--space-2); font-size: 12px; color: var(--ink-muted); }
/* Phones: each criterion becomes a block listing every option, HERSMEED first in its tinted line. */
@media (max-width: 560px) {
  .hs-cmp-scroll { overflow: visible; }
  .hs-cmp-table { min-width: 0; border-bottom: 0; }
  .hs-cmp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hs-cmp-table, .hs-cmp-table tbody, .hs-cmp-table tr, .hs-cmp-table tbody th, .hs-cmp-table tbody td { display: block; }
  .hs-cmp-table tbody tr { padding: 12px 0 4px; border-top: 1.5px solid var(--ink); }
  .hs-cmp-table tbody tr:last-child { border-bottom: 1.5px solid var(--ink); }
  .hs-cmp-table tbody th.hs-cmp-param { width: auto; padding: 0 0 8px; border-top: 0; font-weight: 600; }
  .hs-cmp-table tbody td, .hs-cmp-table tbody tr:first-child > td { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 8px 0; border-top: 1px solid var(--line); text-align: right; }
  .hs-cmp-table tbody td::before { content: attr(data-label); flex: none; font-family: var(--font-display); font-weight: 650; font-size: 11px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); text-align: left; }
  .hs-cmp-table tbody tr > td.hs-cmp-hi, .hs-cmp-table tbody tr:first-child > td.hs-cmp-hi { padding: 8px 12px; border-left: 3px solid var(--forge); }
  .hs-cmp-table tbody td.hs-cmp-hi::before { color: var(--ink); }
  .hs-cmp-table .hs-cmp-hi + td { padding-left: 0; }
  .hs-cmp-table tbody tr > td:first-of-type { border-top: 0; }
}

/* ---------- PhaseCard ---------- */
.hs-phase { display: flex; flex-direction: column; gap: 12px; padding: var(--space-8) 24px 24px; background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-sizing: border-box; color: var(--ink); min-width: 0; }
.hs-phase-hi { border-top-color: var(--forge); }
.hs-phase-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.hs-phase-num { font-family: var(--font-display); text-transform: uppercase; color: var(--forge); }
.hs-phase-dur { color: var(--ink-muted); }
.hs-phase-title { margin: 0; font-family: var(--font-display); }
.hs-phase-desc { margin: 0; color: var(--ink-muted); }
.hs-phase-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); padding: 12px 0; margin: var(--space-1) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hs-phase-amount { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hs-phase-pnote { color: var(--ink-muted); }
.hs-phase-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.hs-phase-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.hs-phase-list .hs-icon { flex: none; margin-top: 2px; color: var(--forge); }
.hs-phase-pay { margin: 0; font-size: 12px; color: var(--ink-muted); }
.hs-phase-foot { margin-top: auto; padding-top: var(--space-2); }

/* ---------- VideoBlock ---------- */
.hs-video { margin: 0; }
.hs-video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-radius: var(--radius-sm); }
.hs-video-cover { position: absolute; inset: 0; }
.hs-video-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-video-pattern { position: absolute; top: 0; right: 0; }
.hs-video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--ember); color: var(--iron); cursor: pointer; transition: background-color .12s; }
.hs-video-play .hs-icon path { fill: currentColor; }
.hs-video-play:hover { background: var(--on-iron); }
.hs-video-play:disabled { cursor: default; }
.hs-video-play:disabled:hover { background: var(--ember); }
.hs-video-play:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--iron), 0 0 0 4px var(--ember); }
.hs-video-meta { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.hs-video-title { font-family: var(--font-display); text-transform: uppercase; color: var(--on-iron); }
.hs-video-dur { color: var(--on-iron-muted); }
.hs-video-el { display: block; width: 100%; height: 100%; background: var(--iron); }
.hs-video-cap { margin-top: var(--space-2); color: var(--ink-muted); }
@media (max-width: 560px) { .hs-video-play { width: 56px; height: 56px; } .hs-video-meta { left: 16px; right: 16px; bottom: 12px; } }

/* ---------- TestLog ---------- */
.hs-log { margin: 0; border-radius: var(--radius-sm); overflow: hidden; }
.hs-log-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: 12px var(--space-4); border-bottom: 1px solid var(--iron-line); }
.hs-log-title { font-family: var(--font-display); text-transform: uppercase; color: var(--on-iron); }
.hs-log-target { color: var(--on-iron-muted); }
.hs-log-body { margin: 0; padding: 12px var(--space-4); font-family: var(--font-mono); font-size: 13px; line-height: 22px; color: var(--on-iron); overflow-x: auto; }
.hs-log-line { display: grid; grid-template-columns: 64px 40px 1fr auto; gap: 12px; white-space: pre; min-width: max-content; }
@media (max-width: 560px) { .hs-log-line { grid-template-columns: 40px 1fr auto; } .hs-log-time { display: none; } .hs-log-body { font-size: 12px; } }
.hs-log-time { color: var(--on-iron-muted); }
.hs-log-status { font-weight: 500; }
.hs-log-pass .hs-log-status { color: var(--on-iron); }
.hs-log-fail .hs-log-status, .hs-log-fail .hs-log-text { color: var(--ember); }
.hs-log-run .hs-log-status, .hs-log-info .hs-log-text { color: var(--on-iron-muted); }
.hs-log-value { color: var(--on-iron-muted); text-align: right; }
.hs-log-sum { display: flex; flex-wrap: wrap; gap: var(--space-2) 24px; padding: 12px var(--space-4); border-top: 1px solid var(--iron-line); font-family: var(--font-mono); font-size: 13px; color: var(--on-iron-muted); }
.hs-log-sum strong { font-weight: 500; color: var(--on-iron); }
.hs-log-sum-pass strong, .hs-log-sum-fail strong { color: var(--ember); }
.hs-log-sum-note { margin-left: auto; }

/* ---------- FounderCard ---------- */
.hs-person { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: start; color: var(--ink); }
.hs-person-media { aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; border-radius: var(--radius-sm); }
.hs-person-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-person-plate { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-end; padding: var(--space-4); box-sizing: border-box; }
.hs-person-pattern { position: absolute; top: 0; right: 0; }
.hs-person-initials { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.02em; color: var(--on-iron); }
.hs-person-body { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.hs-person-name { margin: 0; font-family: var(--font-display); }
.hs-person-role { color: var(--ink-muted); }
.hs-person-bio { margin: 0; color: var(--ink-muted); max-width: 52ch; }
.hs-person-links { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-1); }
@media (max-width: 560px) { .hs-person { grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-4); } .hs-person-initials { font-size: 28px; } }

/* ---------- FAQ ---------- */
.hs-faq { border-bottom: 1px solid var(--ink); color: var(--ink); }
.hs-faq-item { border-top: 1px solid var(--ink); }
.hs-faq-q { list-style: none; display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 12px; align-items: baseline; padding: 20px 0; cursor: pointer; font-family: var(--font-display); font-weight: 650; font-size: 17px; line-height: 24px; border-radius: var(--radius-sm); }
.hs-faq-q::-webkit-details-marker { display: none; }
.hs-faq-q::marker { content: ""; }
.hs-faq-q:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.hs-faq-q:hover .hs-faq-qtext { color: var(--forge); }
.hs-faq-num { font-weight: 400; color: var(--ink-muted); }
.hs-faq-icon { display: inline-flex; align-self: center; justify-self: end; color: var(--forge); }
.hs-faq-minus { display: none; }
.hs-faq-item[open] .hs-faq-plus { display: none; }
.hs-faq-item[open] .hs-faq-minus { display: block; }
.hs-faq-a { padding: 0 36px 24px 52px; color: var(--ink-muted); max-width: 68ch; }
.hs-faq-a p { margin: 0 0 var(--space-2); }
@media (max-width: 560px) { .hs-faq-q { grid-template-columns: 28px minmax(0, 1fr) 20px; font-size: 15px; line-height: 22px; } .hs-faq-a { padding: 0 0 20px 40px; } }

/* ---------- CtaBand ---------- */
.hs-cta { position: relative; overflow: hidden; padding: 72px var(--space-8); }
.hs-cta-pattern { position: absolute; top: 0; right: 0; }
.hs-cta-inner { position: relative; max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: var(--space-8) 64px; align-items: flex-end; justify-content: space-between; }
.hs-cta-main { flex: 1 1 480px; max-width: 680px; }
.hs-cta-eyebrow { font-family: var(--font-display); text-transform: uppercase; color: var(--ember); margin-bottom: var(--space-4); }
.hs-cta-title { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; color: var(--on-iron); text-wrap: balance; }
.hs-cta-intro { margin: var(--space-4) 0 0; color: var(--on-iron-muted); max-width: 56ch; }
.hs-cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
@media (max-width: 560px) { .hs-cta { padding: 48px var(--space-4); } .hs-cta-pattern { display: none; } }

/* ---------- FormMessage ---------- */
.hs-msg { display: flex; gap: 12px; padding: 12px var(--space-4); background: var(--surface-raised); border: 1px solid var(--line); border-left: 3px solid; border-radius: var(--radius-sm); color: var(--ink); }
.hs-msg-success { border-left-color: var(--quench); }
.hs-msg-error { border-color: var(--danger); }
.hs-msg-info { border-left-color: var(--quench); }
.hs-msg-icon { flex: none; margin-top: 2px; }
.hs-msg-success .hs-msg-icon, .hs-msg-info .hs-msg-icon { color: var(--quench); }
.hs-msg-error .hs-msg-icon { color: var(--danger); }
.hs-msg-title { font-weight: 600; }
.hs-msg-text { margin-top: 2px; color: var(--ink-muted); }
.hs-msg-action { margin-top: var(--space-2); }

/* ---------- DocumentCover ---------- */
/* A whole A4 page. Iron by default; tone="light" saves ink. Margins match .hs-page-a4, with more air. */
.hs-cover { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0; padding: 48px 56px 40px; border-color: var(--iron); }
.hs-cover.hs-page-a4 { gap: 0; }
.hs-paper.hs-cover.hs-iron { background: var(--iron); color: var(--on-iron); }
.hs-cover-light { background: var(--surface-raised); color: var(--ink); border-color: var(--line); }
.hs-cover-pattern { position: absolute; top: 112px; right: 0; }
.hs-cover-light .hs-plus { stroke: var(--line); }
.hs-cover-light .hs-plus-hot { stroke: var(--forge); }
.hs-cover-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-bottom: 14px; border-bottom: 1px solid var(--on-iron); }
.hs-cover-light .hs-cover-top { border-bottom-color: var(--ink); }
.hs-cover-brand { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 24px; letter-spacing: 0.03em; }
.hs-cover-flags { display: flex; align-items: center; gap: 12px; }
.hs-cover-type { font-family: var(--font-display); text-transform: uppercase; color: var(--ember); }
.hs-cover-light .hs-cover-type { color: var(--forge); }
.hs-cover-main { position: relative; margin-top: auto; padding: 0 0 56px; display: flex; flex-direction: column; gap: 16px; }
.hs-cover-eyebrow { font-family: var(--font-display); text-transform: uppercase; color: var(--on-iron-muted); }
.hs-cover-light .hs-cover-eyebrow { color: var(--ink-muted); }
.hs-cover-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 48px; letter-spacing: -0.015em; max-width: 15ch; text-wrap: balance; }
.hs-cover-sub { margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 26px; color: var(--on-iron-muted); max-width: 46ch; }
.hs-cover-light .hs-cover-sub { color: var(--ink-muted); }
.hs-cover-dis { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 8px; }
.hs-cover-client { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.hs-cover-client-label { font-family: var(--font-display); text-transform: uppercase; color: var(--on-iron-muted); }
.hs-cover-light .hs-cover-client-label { color: var(--ink-muted); }
.hs-cover-client-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 26px; }
.hs-cover-foot { position: relative; display: flex; flex-direction: column; gap: 20px; }
.hs-cover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--on-iron); border-bottom: 1px solid var(--iron-line); }
.hs-cover-light .hs-cover-grid { border-top-color: var(--ink); border-bottom-color: var(--line); }
.hs-cover-cell { padding: 10px var(--space-4) 10px 0; }
.hs-cover-cell dt { font-family: var(--font-sans); font-size: 12px; line-height: 16px; color: var(--on-iron-muted); margin-bottom: 2px; }
.hs-cover-light .hs-cover-cell dt { color: var(--ink-muted); }
.hs-cover-cell dd { margin: 0; font-family: var(--font-sans); font-size: 14px; line-height: 20px; }
.hs-cover-cell dd.hs-cover-mono { font-family: var(--font-mono); font-size: 13px; }
.hs-cover-issuer { display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-sans); font-size: 12px; line-height: 16px; color: var(--on-iron-muted); }
.hs-cover-light .hs-cover-issuer { color: var(--ink-muted); }
@media print { .hs-paper.hs-cover { min-height: 297mm; height: 297mm; padding: 48px 56px 40px; } }

/* ================= Technical documentation ================= */

/* ---------- StatusMark ---------- */
.hs-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 650; font-size: 10.5px; line-height: 14px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.hs-status .hs-icon { flex: none; }
.hs-status-lg { gap: 8px; font-size: 12px; line-height: 16px; }
.hs-status-pass { color: var(--quench); }
.hs-status-fail { color: var(--danger); }
.hs-status-gap { color: var(--forge); }
.hs-status-open { color: var(--ink); }
.hs-status-muted { color: var(--ink-muted); }
/* Calm: only problems carry an icon; the word says the rest. */
.hs-status-pass .hs-icon, .hs-status-open .hs-icon, .hs-status-muted .hs-icon { display: none; }

/* ---------- Technical table (shared) ---------- */
.hs-tt { margin: 0; color: var(--ink); }
.hs-tt-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding-bottom: var(--space-2); }
.hs-tt-title { font-family: var(--font-display); text-transform: uppercase; color: var(--ink); }
.hs-tt-ref { color: var(--ink-muted); font-size: 12px; }
.hs-tt-table { width: 100%; border-collapse: collapse; border: 0; font-variant-numeric: tabular-nums; }
.hs-tt-table thead th { text-align: left; vertical-align: bottom; padding: 0 12px 8px 0; border-bottom: 1px solid var(--ink); font-family: var(--font-display); font-size: 10px; line-height: 14px; text-transform: uppercase; color: var(--ink-muted); }
.hs-tt-table tbody th, .hs-tt-table tbody td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-top: 1px solid var(--line); font-family: var(--font-sans); font-size: 13px; line-height: 19px; font-weight: 400; color: var(--ink); }
.hs-tt-table tbody tr:first-child > * { border-top: 0; }
.hs-tt-table th:last-child, .hs-tt-table td:last-child { padding-right: 0; }
.hs-tt-table tbody tr { break-inside: avoid; }
.hs-tt-table .hs-tt-id { font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; }
.hs-tt-table .hs-tt-mono { font-family: var(--font-mono); font-size: 12.5px; }
.hs-tt-table .hs-tt-status { white-space: nowrap; padding-top: 10px; }
/* The issue list stays without row lines: few rows, each with its own severity and status. */
.hs-issues .hs-tt-table tbody th, .hs-issues .hs-tt-table tbody td { border-top: 0; padding-top: 9px; padding-bottom: 9px; }
.hs-issues .hs-tt-table .hs-tt-status { padding-top: 11px; }
.hs-tt-table .hs-tt-r { text-align: right; }
.hs-tt-main { display: block; }
.hs-tt-sub { display: block; margin-top: 2px; font-size: 12px; line-height: 17px; color: var(--ink-muted); }
.hs-tt-table tr.hs-tt-em > * { font-weight: 600; }
.hs-tt-table tr.hs-tt-em .hs-tt-id { color: var(--forge); }
.hs-tt-cap { caption-side: bottom; text-align: left; padding-top: var(--space-2); color: var(--ink-muted); }
.hs-tt-note { margin-top: var(--space-2); color: var(--ink-muted); }

/* ---------- Test summary ---------- */
.hs-tsum { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 32px; padding: 4px 0 16px; }
.hs-tsum-fig { display: flex; flex-direction: column; gap: 2px; min-width: 64px; }
.hs-tsum-n { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 32px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hs-tsum-bad { color: var(--danger); }
.hs-tsum-l { font-family: var(--font-display); text-transform: uppercase; color: var(--ink-muted); font-size: 10px; line-height: 14px; }
.hs-tsum-verdict { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-bottom: 2px; }
.hs-tsum-run { color: var(--ink-muted); font-size: 12px; }

/* ---------- Severity ---------- */
.hs-sev { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.hs-sev-bars { display: inline-flex; gap: 2px; }
.hs-sev-bars span { width: 6px; height: 10px; border: 1px solid var(--ink-muted); box-sizing: border-box; }
.hs-sev-bars span.on { background: var(--ink); }

/* ---------- TableOfContents ---------- */
.hs-toc { color: var(--ink); }
.hs-toc-title { font-family: var(--font-display); text-transform: uppercase; padding-bottom: var(--space-2); border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
.hs-toc-list { list-style: none; margin: 0; padding: 0; }
.hs-toc-item { display: grid; grid-template-columns: 44px auto minmax(16px, 1fr) auto; align-items: baseline; gap: 8px; padding: 7px 0; }
.hs-toc-l1 { border-top: 0; padding-top: 9px; }
.hs-toc-list > .hs-toc-l1:first-child { border-top: 0; }
.hs-toc-l1 .hs-toc-text { font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 20px; }
.hs-toc-l2 { padding: 2px 0 4px; }
.hs-toc-l2 .hs-toc-text { font-family: var(--font-sans); font-size: 14px; line-height: 20px; color: var(--ink); }
.hs-toc-num { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-muted); }
.hs-toc-l2 .hs-toc-num { padding-left: 0; }
.hs-toc-dots { border-bottom: 1px dotted color-mix(in srgb, var(--ink-muted) 55%, transparent); transform: translateY(-4px); min-width: 16px; }
.hs-toc-page { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); min-width: 24px; text-align: right; }
.hs-toc-link { color: inherit; text-decoration: none; border-radius: var(--radius-sm); }
.hs-toc-link:hover { color: var(--forge); }
.hs-toc-link:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

/* ---------- FigureFrame ---------- */
.hs-fig { margin: 0; color: var(--ink); break-inside: avoid; }
.hs-fig-area { position: relative; display: flex; align-items: center; justify-content: center; min-height: 160px; padding: 24px; box-sizing: border-box; border-top: 0; overflow: hidden; }
.hs-fig-area > svg, .hs-fig-area > img, .hs-fig-img { display: block; max-width: 100%; height: auto; }
.hs-fig-grid .hs-fig-area { background-color: var(--surface-raised); background-image: linear-gradient(color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px); background-size: 16px 16px; background-position: -1px -1px; }
.hs-fig-tint .hs-fig-area { background: var(--surface); }
.hs-fig-iron .hs-fig-area { background: var(--iron); color: var(--on-iron); }
.hs-fig-empty { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px; }
.hs-fig-pattern { position: absolute; top: 0; right: 0; }
.hs-fig-pattern .hs-plus { stroke: var(--line); }
.hs-fig-pattern .hs-plus-hot { stroke: var(--forge); }
.hs-fig-iron .hs-fig-pattern .hs-plus { stroke: var(--iron-line); }
.hs-fig-iron .hs-fig-pattern .hs-plus-hot { stroke: var(--ember); }
.hs-fig-empty-text { position: relative; color: var(--ink-muted); }
.hs-fig-iron .hs-fig-empty-text { color: var(--on-iron-muted); }
.hs-fig-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.hs-fig-cap-main { flex: 1 1 320px; min-width: 0; font-family: var(--font-sans); font-size: 13px; line-height: 19px; }
.hs-fig-num { font-family: var(--font-display); text-transform: uppercase; color: var(--ink); margin-right: 10px; font-size: 11px; }
.hs-fig-title { font-weight: 600; margin-right: 6px; }
.hs-fig-text { color: var(--ink-muted); }
.hs-fig-meta { color: var(--ink-muted); font-size: 12px; white-space: nowrap; }

/* ---------- References ---------- */
.hs-refs, .hs-gloss, .hs-build { color: var(--ink); }
.hs-refs-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.hs-refs-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 0; break-inside: avoid; }
.hs-refs-item:first-child { border-top: 0; }
.hs-refs-id { font-family: var(--font-mono); font-size: 12.5px; line-height: 19px; color: var(--ink-muted); }
.hs-refs-title { font-family: var(--font-sans); font-size: 13px; line-height: 19px; font-weight: 600; }
.hs-refs-meta { font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--ink-muted); margin-top: 2px; }
.hs-refs-url { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; line-height: 17px; color: var(--forge); text-decoration: none; word-break: break-all; margin-top: 2px; border-radius: var(--radius-sm); }
.hs-refs-url:hover { text-decoration: underline; }
.hs-refs-url:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

/* ---------- Glossary ---------- */
.hs-gloss-list { margin: 0; border-top: 1px solid var(--ink); }
.hs-gloss-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 16px; padding: 8px 0; border-top: 0; break-inside: avoid; }
.hs-gloss-row:first-child { border-top: 0; }
.hs-gloss-term { font-family: var(--font-display); font-weight: 650; font-size: 12.5px; line-height: 19px; }
.hs-gloss-abbr { font-family: var(--font-mono); font-weight: 500; font-size: 13px; }
.hs-gloss-exp { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 12px; line-height: 17px; color: var(--ink-muted); }
.hs-gloss-def { margin: 0; font-family: var(--font-sans); font-size: 13px; line-height: 19px; }

/* ---------- BuildInfo ---------- */
.hs-build-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--ink); }
.hs-build-cell { padding: 10px 16px 10px 0; border-top: 0; min-width: 0; }
.hs-build-cell:nth-child(-n+3) { border-top: 0; }
.hs-build-cell dt { font-family: var(--font-sans); font-size: 12px; line-height: 16px; color: var(--ink-muted); margin-bottom: 2px; }
.hs-build-cell dd { margin: 0; font-family: var(--font-sans); font-size: 13px; line-height: 19px; overflow-wrap: anywhere; }
.hs-build-cell dd.hs-build-mono { font-family: var(--font-mono); font-size: 12.5px; }
.hs-build-files { margin-top: 12px; border-bottom: 0; }
.hs-build-files-head, .hs-build-file { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 16px; padding: 6px 0; }
.hs-build-files-head { font-family: var(--font-display); font-weight: 650; font-size: 10px; line-height: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--ink); }
.hs-build-file { border-top: 1px solid var(--line); }
.hs-build-file:nth-child(2) { border-top: 0; }
.hs-build-fname { font-family: var(--font-mono); font-size: 12.5px; line-height: 18px; overflow-wrap: anywhere; }
.hs-build-hash { font-family: var(--font-mono); font-size: 11.5px; line-height: 18px; color: var(--ink-muted); word-break: break-all; }

/* ---------- CodeListing ---------- */
.hs-code { margin: 0; color: var(--ink); break-inside: avoid; }
.hs-code-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 12px; background: var(--surface); border-top: 0; border-bottom: 1px solid var(--line); }
.hs-code-file { font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--ink); }
.hs-code-lang { font-family: var(--font-display); text-transform: uppercase; color: var(--ink-muted); font-size: 10px; line-height: 14px; }
.hs-code-body { margin: 0; padding: 8px 0; background: var(--surface); border-bottom: 0; overflow-x: auto; font-family: var(--font-mono); font-size: 12px; line-height: 19px; tab-size: 4; }
.hs-code-body code { display: block; min-width: max-content; font: inherit; }
.hs-code-line { display: grid; grid-template-columns: 44px auto; border-left: 3px solid transparent; }
.hs-code-n { padding-right: 12px; text-align: right; color: var(--ink-muted); user-select: none; opacity: .8; }
.hs-code-t { padding-right: 16px; white-space: pre; }
.hs-code-hl { background: color-mix(in srgb, var(--forge) 8%, transparent); border-left-color: var(--forge); }
.hs-code-hl .hs-code-n { color: var(--forge); opacity: 1; }
.hs-code-k { font-weight: 500; color: var(--ink); }
.hs-code-c { color: var(--ink-muted); }
.hs-code-s { color: var(--quench); }
.hs-code-num { color: var(--ink); }
.hs-code-a, .hs-code-m { color: var(--ink-muted); }
.hs-code .hs-fig-cap { border-top: 0; }

/* ---------- MemoryMap ---------- */
.hs-mem { margin: 0; color: var(--ink); break-inside: avoid; }
.hs-mem-body { display: grid; grid-template-columns: 284px minmax(0, 1fr); gap: 28px; align-items: start; border-top: 0; padding: 8px 0 16px; }
.hs-mem-bar { display: flex; flex-direction: column; margin-left: 92px; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); }
.hs-mem-block { position: relative; display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; padding: 0 10px; box-sizing: border-box; border-top: 1px solid var(--ink); background: var(--surface-raised); min-height: 30px; }
.hs-mem-block:first-child { border-top: 0; }
.hs-mem-name { min-width: 0; font-family: var(--font-display); font-weight: 650; font-size: 10px; line-height: 14px; letter-spacing: 0.04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-mem-size { flex: none; font-family: var(--font-mono); font-size: 11px; line-height: 14px; color: var(--ink-muted); }
.hs-mem-addr { position: absolute; right: calc(100% + 10px); font-family: var(--font-mono); font-size: 11px; line-height: 14px; color: var(--ink-muted); white-space: nowrap; }
.hs-mem-desc .hs-mem-addr { bottom: -8px; }
.hs-mem-asc .hs-mem-addr { top: -8px; }
.hs-mem-boot { background: var(--iron); color: var(--on-iron); }
.hs-mem-boot .hs-mem-size { color: var(--on-iron-muted); }
.hs-mem-data { background: var(--surface); }
.hs-mem-data .hs-mem-name, .hs-mem-data .hs-mem-size { background: none; padding: 0; }
.hs-mem-reserved { background: var(--surface); }
.hs-mem-reserved .hs-mem-name { color: var(--ink-muted); }
.hs-mem-free { background: var(--surface-raised); }
.hs-mem-free .hs-mem-name { color: var(--ink-muted); font-weight: 500; }
.hs-mem-hi { box-shadow: inset 0 0 0 2px var(--forge); }
.hs-mem-table .hs-tt-table { border-top: 0; }
.hs-mem-table .hs-tt-table thead th { padding-top: 0; }
@media (max-width: 720px) { .hs-mem-body { grid-template-columns: minmax(0, 1fr); } }

/* ---------- RegisterMap ---------- */
.hs-reg { margin: 0; color: var(--ink); break-inside: avoid; }
.hs-reg-desc { margin: 0 0 12px; color: var(--ink-muted); }
.hs-reg-diagram { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 20px; border-top: 0; }
.hs-reg-row { display: flex; flex-direction: column; gap: 4px; }
.hs-reg-nums, .hs-reg-cells { display: grid; }
.hs-reg-nums span { font-family: var(--font-mono); font-size: 10.5px; line-height: 14px; color: var(--ink-muted); text-align: center; }
.hs-reg-cells { border: 1px solid var(--ink); border-radius: var(--radius-sm); }
.hs-reg-field { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: 52px; padding: 0 4px; box-sizing: border-box; border-left: 1px solid var(--ink); text-align: center; }
.hs-reg-field:first-child { border-left: 0; }
.hs-reg-fname { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; line-height: 14px; }
.hs-reg-acc { font-family: var(--font-mono); font-size: 10px; line-height: 12px; color: var(--ink-muted); }
.hs-reg-rsvd { background: var(--surface); }
.hs-reg-rsvd .hs-reg-fname { color: var(--ink-muted); font-weight: 400; background: none; padding: 0; }
.hs-reg-hi { background: color-mix(in srgb, var(--forge) 8%, transparent); box-shadow: inset 0 -3px 0 var(--forge); }
.hs-reg-table .hs-tt-table { border-top: 0; }

/* ---------- InterfaceTable ---------- */
.hs-dir { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hs-dir .hs-icon { color: var(--ink-muted); flex: none; }
.hs-iface-id { font-family: var(--font-mono); font-size: 11px; word-break: break-all; }
.hs-iface-unit { color: var(--ink-muted); }

/* ---------- StateTable ---------- */
.hs-state-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin: 0 0 16px; }
.hs-state-item { padding: 8px 0 0; border-top: 1px solid var(--ink); }
.hs-state-initial { border-top-color: var(--forge); }
.hs-state-item dt { display: flex; align-items: baseline; gap: 8px; }
.hs-state-name { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; line-height: 18px; }
.hs-state-flag { font-family: var(--font-display); text-transform: uppercase; color: var(--forge); font-size: 10px; line-height: 14px; }
.hs-state-item dd { margin: 2px 0 0; font-family: var(--font-sans); font-size: 12px; line-height: 17px; color: var(--ink-muted); }
.hs-state .hs-tt-table tbody tr > * { border-top-color: transparent; }
.hs-state .hs-tt-table tbody tr.hs-state-first > * { border-top: 1px solid var(--line); }
.hs-state .hs-tt-table tbody tr:first-child > * { border-top: 0; }
.hs-state .hs-tt-table tbody th, .hs-state .hs-tt-table tbody td { padding-top: 6px; padding-bottom: 6px; }
.hs-state .hs-tt-table tbody tr.hs-state-first > * { padding-top: 10px; }
.hs-state-guard { color: var(--ink-muted); }
.hs-state-arrow { color: var(--ink-muted); }

/* ---------- PinoutTable ---------- */
.hs-pin-kind { font-size: 13px; color: var(--ink-muted); }

/* ---------- BillOfMaterials ---------- */
.hs-bom { color: var(--ink); }
.hs-bom .hs-tt-table .hs-tt-mono { overflow-wrap: anywhere; }
.hs-bom-dnp { display: inline-block; margin-left: 8px; padding: 0 4px; border: 1px solid var(--ink-muted); border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 650; font-size: 9.5px; line-height: 14px; letter-spacing: 0.06em; color: var(--ink-muted); vertical-align: 1px; }
.hs-bom-mpn { font-family: var(--font-mono); font-size: 11.5px; }
.hs-tt-table tr.hs-bom-dnprow > * { color: var(--ink-muted); }
.hs-bom-sum { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 32px; margin: 12px 0 0; }
.hs-bom-sum div { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hs-bom-sum dt { font-family: var(--font-sans); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.hs-bom-sum dd { margin: 0; font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.hs-bom-sum-total dd { font-weight: 500; }

/* ---------- PowerBudget ---------- */
.hs-pwr { margin: 0; color: var(--ink); break-inside: avoid; }
.hs-pwr-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 4px 0 20px; }
.hs-pwr-figs .hs-readout { min-width: 0; }
.hs-pwr-figs .hs-readout-md .hs-readout-value { font-size: 32px; }
.hs-pwr-figs .hs-readout-unit { font-size: 13px; }
.hs-pwr-figs .hs-readout-label { font-size: 10px; line-height: 14px; }
.hs-pwr-figs .hs-readout-detail { font-size: 12px; line-height: 17px; }
.hs-pwr-share { display: flex; align-items: center; gap: 8px; }
.hs-pwr-bar { flex: 1 1 auto; height: 8px; background: var(--surface); border: 1px solid var(--line); box-sizing: border-box; }
.hs-pwr-bar span { display: block; height: 100%; background: var(--ink); }
.hs-pwr-pct { flex: none; width: 32px; text-align: right; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-muted); }

/* ---------- DrawingFrame ---------- */
.hs-dwg { position: relative; box-sizing: border-box; padding: 0; background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); overflow: hidden; }
.hs-dwg-zones { position: absolute; display: grid; font-family: var(--font-mono); font-size: 10px; line-height: 12px; color: var(--ink-muted); }
.hs-dwg-zones span { display: flex; align-items: center; justify-content: center; }
.hs-dwg-zones-top, .hs-dwg-zones-bottom { left: 28px; right: 28px; height: 20px; }
.hs-dwg-zones-top { top: 8px; }
.hs-dwg-zones-bottom { bottom: 8px; }
.hs-dwg-zones-left, .hs-dwg-zones-right { top: 28px; bottom: 28px; width: 20px; }
.hs-dwg-zones-left { left: 8px; }
.hs-dwg-zones-right { right: 8px; }
.hs-dwg-zones-top span + span, .hs-dwg-zones-bottom span + span { border-left: 1px solid var(--line); }
.hs-dwg-zones-left span + span, .hs-dwg-zones-right span + span { border-top: 1px solid var(--line); }
.hs-dwg-inner { position: absolute; inset: 28px; border: 1.5px solid var(--ink); }
.hs-dwg-area { position: absolute; top: 0; left: 0; bottom: 0; right: 400px; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; }
.hs-dwg-area > svg, .hs-dwg-img { max-width: 100%; max-height: 100%; }
.hs-dwg-empty { color: var(--ink-muted); }
.hs-dwg-tb { position: absolute; right: 0; bottom: 0; width: 400px; background: var(--surface-raised); border-left: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink); display: flex; flex-direction: column; }
.hs-dwg-brand { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px; border-bottom: 1px solid var(--ink); }
.hs-dwg-word { font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 20px; letter-spacing: 0.03em; }
.hs-dwg-co { font-family: var(--font-sans); font-size: 11px; color: var(--ink-muted); }
.hs-dwg-row { display: flex; border-top: 1px solid var(--line); }
.hs-dwg-title + .hs-dwg-row { border-top: 1px solid var(--ink); }
.hs-dwg-cell { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 4px 8px 5px; box-sizing: border-box; }
.hs-dwg-cell + .hs-dwg-cell { border-left: 1px solid var(--line); }
.hs-dwg-w2 { flex-grow: 2; }
.hs-dwg-l { font-family: var(--font-sans); font-size: 9.5px; line-height: 12px; color: var(--ink-muted); }
.hs-dwg-v { font-family: var(--font-sans); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-dwg-mono { font-family: var(--font-mono); font-size: 11.5px; }
.hs-dwg-title { padding: 6px 10px 8px; }
.hs-dwg-tv { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 20px; }
.hs-dwg-sub { font-family: var(--font-sans); font-size: 11.5px; line-height: 16px; color: var(--ink-muted); }
.hs-dwg-proj { display: block; margin-top: 1px; color: var(--ink); }
.hs-dwg-class { padding: 4px 10px; border-top: 1px solid var(--ink); font-family: var(--font-display); font-weight: 650; font-size: 9.5px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.hs-dwg-revs { position: absolute; right: 0; top: 0; width: 400px; background: var(--surface-raised); border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); font-size: 11px; }
.hs-dwg-revs-head, .hs-dwg-revs-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 84px; gap: 8px; padding: 4px 8px; }
.hs-dwg-revs-head { font-family: var(--font-display); font-weight: 650; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--ink); }
.hs-dwg-revs-row { font-family: var(--font-sans); line-height: 15px; }
.hs-dwg-revs-row + .hs-dwg-revs-row { border-top: 1px solid var(--line); }
.hs-dwg-A4 { page: hs-a4l; }
.hs-dwg-A3 { page: hs-a3l; }
@page hs-a4l { size: A4 landscape; margin: 0; }
@page hs-a3l { size: A3 landscape; margin: 0; }
@media print { .hs-paper.hs-dwg { border: 0; break-after: page; } .hs-dwg-A4 { width: 297mm !important; height: 210mm !important; } .hs-dwg-A3 { width: 420mm !important; height: 297mm !important; } }
