/* HKC Security Suite — Product Manual
   Self-contained "blueprint" styling. No framework, no build step.
   Palette and type follow the Industry design system (steel-blue, Barlow). */

:root {
  --navy: #0b3d66;
  --accent-800: #14507f;
  --accent: #1f7ac0;
  --accent-100: #eaf1f8;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1c2530;
  --muted: #5b6672;
  --divider: #d9e0e8;
  --radius: 3px;
  --maxw: 1580px;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16.5px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-800); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c2cdd8; border-radius: 6px; }

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  height: 58px; padding: 0 22px;
  background: var(--navy); color: #eef4fa;
}
.topbar img { height: 26px; filter: brightness(0) invert(1); opacity: .96; }
.topbar .sep { width: 1px; height: 24px; background: rgba(255,255,255,.22); }
.topbar .title { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.topbar .spacer { flex: 1; }
.topbar .chip {
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.14); color: #eef4fa; padding: 4px 8px; border-radius: 2px;
}
.topbar .cta {
  font-family: var(--font-head); font-weight: 600; font-size: 13px; color: #eef4fa;
  border: 1px solid rgba(255,255,255,.28); padding: 7px 12px; border-radius: var(--radius);
}
.topbar .cta:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---- layout ---- */
.layout { display: flex; align-items: flex-start; max-width: var(--maxw); margin: 0 auto; }
.toc {
  position: sticky; top: 58px; flex: none; width: 250px;
  height: calc(100vh - 58px); overflow-y: auto; padding: 22px 14px;
  border-right: 1px solid var(--divider);
}
.toc .label {
  font-family: var(--font-head); font-weight: 600; font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  padding: 14px 10px 6px;
}
.toc a {
  display: block; padding: 5px 10px; border-radius: var(--radius);
  color: var(--text); font-size: 13px;
}
.toc a:hover { background: var(--accent-100); }
.toc a .n { color: var(--accent); font-weight: 700; }
.main { flex: 1; min-width: 0; max-width: 1320px; padding: 40px 56px 100px; }

/* ---- blueprint card + corner registration marks ---- */
.bp { position: relative; background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius); }
.bp::before, .bp::after,
.bp > .corner-b::before, .bp > .corner-b::after {
  content: ""; position: absolute; width: 7px; height: 7px; pointer-events: none;
  border-color: var(--accent); border-style: solid; border-width: 0;
}
.bp::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.bp::after  { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.bp > .corner-b { position: absolute; inset: 0; pointer-events: none; }
.bp > .corner-b::before { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.bp > .corner-b::after  { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---- generic type ---- */
.kicker { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 17.5px; color: var(--text); max-width: 720px; }
.muted { color: var(--muted); }
h1.doc { font-size: 46px; margin: 4px 0 10px; }
h2.doc { font-size: 31px; margin: 0 0 6px; }
section { scroll-margin-top: 72px; }
.section-gap { margin-top: 46px; }

/* ---- product cards ---- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 22px 0 10px; }
.grid-products .bp { padding: 16px; }
.prod-name { font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.prod-tag { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin: 2px 0 8px; }
.prod-desc { font-size: 14px; }

.callout { padding: 18px; margin-top: 8px; }
.callout h3 { margin: 0 0 8px; font-size: 16px; }
.callout p { font-size: 15px; margin: 0; }

/* ---- personas ---- */
.grid-personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.persona { padding: 18px; border-left: 4px solid var(--muted); }
.persona .head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.persona .avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 12px;
}
.persona .pname { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.persona .pside { font-size: 11px; color: var(--accent); }
.persona .row { font-size: 14.5px; margin: 9px 0; }
.persona .owns { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--divider); font-size: 12.5px; color: var(--accent); }

/* ---- tags ---- */
.tag { display: inline-block; font-size: 10.5px; font-weight: 600; color: #fff; padding: 3px 8px; border-radius: 2px; }
.tag.outline { color: var(--muted); background: transparent; border: 1px solid var(--divider); }

/* ---- workflows ---- */
.wf { scroll-margin-top: 72px; margin-top: 38px; padding-top: 22px; border-top: 2px solid var(--accent); }
.wf .num { font-family: var(--font-head); font-weight: 700; font-size: 34px; color: var(--accent); }
.wf .head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wf .head h3 { font-size: 28px; margin: 0; }
.wf .tagline { font-size: 16.5px; margin: 8px 0 16px; max-width: 860px; }
.wf .whorow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.steps { display: flex; flex-direction: column; margin-bottom: 20px; }
.step { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--divider); }
.step .n {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-100); color: var(--accent-800);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
}
.step .body { flex: 1; min-width: 0; }
.step .actor { margin-bottom: 2px; }
.step .text { font-size: 15.5px; }

/* ---- figures ---- */
.figures { display: flex; flex-direction: column; gap: 22px; }
.figure { display: grid; grid-template-columns: 1.8fr 1fr; gap: 24px; align-items: start; }
.figure .shot { padding: 10px; }
.figure .shot img { width: 100%; display: block; border: 1px solid var(--divider); }
.figure .screen { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.figure .ftitle { font-family: var(--font-head); font-weight: 600; font-size: 18.5px; margin: 2px 0 12px; }
.legend { display: flex; flex-direction: column; gap: 9px; }
.legend .item { display: flex; gap: 9px; align-items: flex-start; }
.legend .pin {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: #d64545; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.legend .ltext { font-size: 14px; line-height: 1.5; }
.feasibility {
  margin-top: 12px; padding: 11px; font-size: 12px;
  border: 1px dashed var(--accent); border-radius: var(--radius); background: var(--accent-100);
}

/* ---- screen index table ---- */
.table-wrap { overflow-x: auto; }
table.index { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.index th { background: var(--navy); color: #fff; text-align: left; padding: 8px 12px; font-family: var(--font-head); font-weight: 600; }
table.index td { padding: 7px 12px; border-bottom: 1px solid var(--divider); }
table.index td:first-child { font-weight: 600; }
table.index tr:last-child td { border-bottom: 0; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .toc { display: none; }
  .main { padding: 26px 20px 80px; }
  .figure { grid-template-columns: 1fr; }
  h1.doc { font-size: 30px; }
}
@media print {
  .toc, .topbar .cta, .topbar .chip { display: none !important; }
  .main { max-width: none; }
}

/* ============ Reference sections: agent install + best practices ============ */
.os-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin: 18px 0; }
.os-card { padding: 20px; }
.os-card .os-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.os-card .os-ico { width: 30px; height: 30px; color: var(--accent); flex: none; }
.os-card h3 { font-size: 19px; margin: 0; flex: 1; }
.os-card .diff { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: #fff; }
.os-card dl { margin: 0; font-size: 14.5px; }
.os-card dt { font-family: var(--font-head); font-weight: 600; color: var(--accent); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin-top: 10px; }
.os-card dd { margin: 2px 0 0; }
.os-card code { background: #0b3d66; color: #dbe8f4; padding: 2px 7px; border-radius: 4px; font-size: 13px; }
.callout-warn { border-left: 4px solid #E0A426; background: #fdf6e8; padding: 14px 18px; border-radius: 0 6px 6px 0; margin: 16px 0; font-size: 15px; }
.callout-warn strong { color: #9a6a10; }

.tshoot-wrap { overflow-x: auto; }
table.tshoot { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tshoot th { background: var(--navy); color: #fff; text-align: left; padding: 9px 12px; font-family: var(--font-head); font-weight: 600; }
table.tshoot td { padding: 9px 12px; border-bottom: 1px solid var(--divider); vertical-align: top; }
table.tshoot td:first-child { font-weight: 600; white-space: nowrap; }
table.tshoot .os { display: inline-block; font-size: 10.5px; font-weight: 600; color: #fff; padding: 2px 7px; border-radius: 4px; margin-right: 6px; }

.principle-banner { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 18px 0 6px; }
.principle-banner .pr { padding: 16px 18px; }
.principle-banner .pr b { font-family: var(--font-head); font-size: 16px; color: var(--navy); display: block; margin-bottom: 3px; }
.principle-banner .pr span { font-size: 13.5px; color: var(--muted); }

.bp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 20px; }
.bp-card { padding: 22px; }
.bp-illus { width: 58px; height: 58px; color: var(--accent); margin-bottom: 12px; }
.bp-card h3 { font-size: 18px; margin: 0 0 6px; }
.bp-card p { font-size: 14.5px; margin: 0 0 10px; }
.bp-card .suite { font-size: 13px; background: var(--accent-100); color: var(--accent-800); border-radius: 6px; padding: 8px 11px; }
.bp-card .suite b { font-family: var(--font-head); }
