/* SecTools OpenCTI Handbook — light glass design system. */
:root {
  --ink: #142d44;
  --muted: #546c80;
  --line: #dce7f0;
  --paper: #fff;
  --navy: #102b42;
  --lime: #007da8;
  --teal: #006b96;
  --blue: #006b96;
  --blue-dark: #004f76;
  --blue-light: #e6f4fb;
  --glass: rgba(255,255,255,.78);
  --glass-border: rgba(255,255,255,.95);
  --shadow: 0 8px 30px rgba(34,86,121,.07);
  --sidebar: 260px;
  color-scheme: light;
  background: #f6f9fc;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
body { background: linear-gradient(130deg, #f3f8fd 0, #fff 50%, #f7fbff 100%); }
::selection { background: #c5eafb; color: #103a55; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline-color: #007aa5; }
a { text-decoration-thickness: 1px; }
.header {
  background: rgba(249,252,255,.84);
  border-bottom: 1px solid rgba(160,190,215,.3);
  box-shadow: 0 1px 0 #fff inset, 0 4px 22px #1d4f7910;
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  backdrop-filter: blur(24px) saturate(165%);
}
.brand { letter-spacing: -.5px; }
.brand-icon { background: linear-gradient(140deg,#0086ae,#005c8a); color: #fff; box-shadow: 0 4px 11px #00618b20, 0 1px 0 #ffffff66 inset; border: 1px solid #ffffffaa; border-radius: 10px; }
.brand-sub { color: #5f7385; font-size: .875rem; }
.header-nav { font-size: .875rem; gap: 22px; }
.header-nav .sectools-link { color: #fff; background: linear-gradient(140deg,#007fa7,#00648f); border: 1px solid #00648f; box-shadow: 0 3px 9px #006b961b, 0 1px 0 #ffffff30 inset; border-radius: 9px; padding: 10px 15px; }
.header-nav .sectools-link:hover { background: #005b82; color: #fff; }
.search-trigger { background: #ffffff9c; border-color: #d6e3ee; border-radius: 8px; color: #4f6b80; min-height: 40px; }
kbd { border-color: #d8e4ec; color: #638094; border-radius: 4px; }
.sidebar { background: rgba(242,248,253,.8); border-right-color: #dce7f0; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); padding: 30px 18px 24px; }
.sidebar-top .overline { color: #52758c; font-size: .75rem; letter-spacing: .075em; }
.sidebar-top p { font-size: 1.0625rem; color: #244961; line-height: 1.75; margin-bottom: 25px; }
.nav-label { font-size: .75rem; letter-spacing: .07em; color: #687f90; }
.sidebar nav a { border: 1px solid transparent; border-radius: 7px; font-size: .875rem; padding: 9px 10px; color: #4d687d; gap: 8px; }
.sidebar nav a:hover { background: #ffffffc9; color: #005c82; border-color: #e3edf4; }
.sidebar nav a.active, .sidebar nav a[aria-current="page"] { color: #005f88; background: linear-gradient(105deg,#ddf0fc,#eef8ff); border-color: #c9e4f6; box-shadow: 0 1px 0 #fff inset; font-weight: 650; }
.sidebar nav a span { font-size: .75rem; color: #50778b; border-color: #d5e6f1; background: #fff; flex-shrink: 0; }
.sidebar-note { border-color: #d8e5ee; }
.sidebar-note p { font-size: .8125rem; color: #607c90; }
.tiny-tag, .version-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid #c9e1ee; border-radius: 6px; background: #f5fbff; color: #225d7d; font-size: .75rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.sidebar-promo { background: linear-gradient(120deg,#e7f4fc,#f8fcff); border-color: #cfe3f2; border-radius: 12px; box-shadow: 0 1px 0 #fff inset; }
.sidebar-promo:hover { background: #e0f1fb; }
.sidebar-promo>span,.sidebar-promo small { color: #456f86; font-size: .75rem; }
.sidebar-promo strong { color: #00668d; font-size: 1.25rem; }
main { background: #ffffffed; }
.hero {
  background: radial-gradient(ellipse at 82% 30%,#c5eafb8c,transparent 48%),radial-gradient(ellipse at 15% 90%,#e2e9ffb0,transparent 50%),linear-gradient(130deg,#f1faff,#fafdff 60%,#eaf6fe);
  color: var(--ink);
  border-bottom: 1px solid #d3e6f2;
  box-shadow: 0 1px 0 #fff inset;
  padding: 68px 5.5% 62px;
  min-height: 490px;
}
.hero:before { background-image: radial-gradient(#5486a917 .8px,transparent .8px); background-size: 20px 20px; mask-image: linear-gradient(to right,transparent,#000); }
.hero:after { content: ""; position: absolute; width: 390px; height: 390px; right: -180px; top: -220px; border: 1px solid #ffffffc7; border-radius: 50%; box-shadow: 0 0 0 45px #ffffff30,0 0 0 90px #ffffff20; pointer-events: none; }
.eyebrow { color: #3f718b; font-size: .75rem; letter-spacing: .08em; }
.eyebrow>span { background: #2b91b8; }
h1 { font-size: clamp(2.25rem,3.35vw,3.65rem); letter-spacing: -.045em; line-height: 1.35; font-weight: 750; color: #153a54; }
h1>span { color: #007fa9; }
.hero-copy>p { color: #506f84; font-size: 1rem; line-height: 1.95; max-width: 38rem; }
.hero-actions { gap: 12px; flex-wrap: wrap; }
.button { border-radius: 9px; font-size: .875rem; min-height: 46px; padding: 12px 20px; transition: background .18s,box-shadow .18s; }
.button:hover { transform: none; }
.primary { background: linear-gradient(135deg,#007fa8,#00698f); color: #fff; box-shadow: 0 5px 14px #00739820,0 1px 0 #ffffff3d inset; border: 1px solid #006a94; }
.primary:hover { background: #005d86; box-shadow: 0 7px 17px #00739826; }
.secondary { background: #ffffffa3; color: #285d79; border-color: #bcd7e7; box-shadow: 0 1px 0 #fff inset; }
.secondary:hover { background: #fff; border-color: #7eafca; }
.hero-meta { font-size: .75rem; line-height: 1.7; color: #5d7b8f; gap: 12px; flex-wrap: wrap; }
.hero-meta span+span:before { color: #7f9fb3; margin-right: 12px; }
.hero-lines path { stroke: #4b9cbd; opacity: .55; }
.orbit { border-color: #75b7d529; }
.orbit-one { background: #ffffff21; box-shadow: 0 0 40px #ffffff26 inset; }
.art-center { background: radial-gradient(circle at 25% 10%,#ffffffdf,#e2f2fbe0); border-color: #ffffff; box-shadow: 0 14px 45px #277ca321,0 0 0 1px #a7d0e65c,0 2px 1px #fff inset; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #00678e; width: 150px; height: 150px; }
.center-symbol { color: #0087b4; }
.art-center small { color: #416f88; font-size: .75rem; }
.art-node { background: linear-gradient(130deg,#fffffff2,#f7fbff99); border: 1px solid #ffffff; color: #355f76; box-shadow: 0 8px 25px #3e82a115,0 0 0 1px #bedce85c; border-radius: 11px; font-size: .875rem; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.art-node i,.node-technique i,.node-observable i { color: #0083ac; }
.art-dot { background: #48a5c9; box-shadow: 0 0 0 7px #83c7e024; }
.art-caption { color: #56829b; font-size: .625rem; letter-spacing: .12em; }
.intro-strip { background: #f8fcff; border-color: #dfeaf2; font-size: .8125rem; }
.strip-mark { color: #335b74; font-size: .875rem; }
.intro-strip a { color: #006d96; font-size: .8125rem; }
.intro-strip b { color: #a0bacb; }
.reading-layout { width: 100%; max-width: 1136px; margin-inline: auto; padding: 0 48px; grid-template-columns: minmax(0,760px) 180px; gap: 48px; }
article { width: 100%; max-width: 760px; min-width: 0; }
article section, .article-section { scroll-margin-top: 110px; }
article>section { padding: 42px 0 10px; }
article>section+section { border-top: 1px solid #ecf1f6; margin-top: 22px; }
article .section-kicker { color: #00769e; font-size: .75rem; letter-spacing: .09em; }
h2 { font-size: 1.8rem; line-height: 1.5; letter-spacing: -.025em; color: #173b55; font-weight: 720; }
article h3 { font-size: 1.125rem; line-height: 1.65; color: #224963; margin: 29px 0 12px; }
article p, article li, article dd { font-size: 1rem; line-height: 1.95; color: #405b70; letter-spacing: .012em; }
article p { margin: 20px 0; }
article ul,article ol { padding-left: 25px; }
article li { margin: 9px 0; }
article li::marker { color: #7a9cb4; }
article strong { color: #244b66; font-weight: 650; }
article a:not(.button):not(.chapter-card):not(.roadmap-row) { color: #006c96; }
article a:hover { color: #004a6e; }
article :not(pre)>code { font-family: "SFMono-Regular",Consolas,"Liberation Mono",monospace; font-size: .875em; border: 1px solid #dce8f1; padding: 2px 5px; border-radius: 4px; background: #f3f8fc; color: #2d5c78; overflow-wrap: anywhere; }
.article-meta { font-size: .75rem; color: #627f93; flex-wrap: wrap; gap: 12px; }
blockquote { border-color: #58a9cc; color: #285671; font-size: 1.125rem; background: linear-gradient(90deg,#f0f9fe,transparent); border-radius: 0 10px 10px 0; padding: 18px 22px; }
.note { background: #f0f7fc; border: 1px solid #d6e9f5; border-left: 3px solid #5cabc8; border-radius: 0 10px 10px 0; padding: 20px 23px; }
.note strong { color: #1f6587; font-size: .875rem; }
.note p { color: #456b82; font-size: 1rem; }
.note.warning { background: #fffaf0; border-color: #eed9b1; color: #6c522b; }
.source-link { font-size: .8125rem; white-space: normal; }
.on-this-page, .chapter-toc { position: sticky; top: calc(var(--header) + 36px); align-self: start; margin-top: 48px; color: #58778e; font-size: .875rem; max-height: calc(100dvh - var(--header) - 70px); overflow-y: auto; scrollbar-width: thin; }
.chapter-toc h2,.chapter-toc h3 { font-size: .8125rem; letter-spacing: .04em; color: #627f93; margin: 0 0 16px; }
.chapter-toc ul,.chapter-toc ol { list-style: none; padding: 0; margin: 0; }
.chapter-toc li { margin: 0; }
.chapter-toc a { display: block; padding: 8px 0 8px 13px; font-size: .8125rem; line-height: 1.65; color: #5a778d; border-left: 1px solid #d5e5ef; text-decoration: none; }
.chapter-toc a:hover,.chapter-toc a.active { border-left-color: #0081ad; color: #00668f; background: #f3faff; }
.on-this-page>p { color: #5d7a8f; }
.on-this-page>a { color: #006b96; font-size: .8125rem; }
.reading-progress { font-size: .75rem; }
.reading-progress strong { color: #00759d; }
.reading-progress>div { background: #e6f0f6; }
.reading-progress>div>span { background: linear-gradient(90deg,#0094b6,#77c6e5); }
.question-list>div>span { background: #e8f4fc; color: #2b6f92; }
.question-list p,.compare li,.glossary dd,.steps p,details p { font-size: 1rem; }
.compare h3 { font-size: 1.0625rem; margin-top: 0; }
.graph-demo { border-color: #cfe4f1; border-radius: 14px; box-shadow: var(--shadow); }
.graph-toolbar { background: #edf7fd; font-size: .75rem; color: #52778e; }
.graph-toolbar span:last-child { color: #006d96; }
.graph-canvas { background-color: #f5faff; background-image: radial-gradient(#b8d4e8 1px,transparent 1px); }
.graph-node { border-color: #c5deed; color: #007ca5; border-radius: 8px; }
.graph-node span { color: #27516b; font-size: .875rem; }
.graph-node small { font-size: .6875rem; color: #5e7e94; }
.graph-node:hover,.graph-node.selected { background: #eaf7ff; border-color: #58a2c5; box-shadow: 0 0 0 3px #86bfdf22; }
.edge-label,.uses-label { color: #587e94; font-size: .75rem; background: #f5faff; }
.graph-detail strong { color: #145b7f; }
.graph-detail p { font-size: 1rem; }
article p.caption { font-size: .8125rem; color: #607e92; line-height: 1.8; }
.inline-promo { background: linear-gradient(110deg,#eaf7ff,#f6fbff); border: 1px solid #cde5f3; border-radius: 14px; box-shadow: 0 1px 0 white inset; padding: 25px; }
.promo-icon { color: #228bb1; }
.inline-promo .section-kicker { font-size: .75rem; }
.inline-promo h3 { color: #155373; font-size: 1.25rem; margin: 0; }
.inline-promo p { font-size: .9375rem; }
.inline-promo a { font-size: .875rem; color: #006a92; }
.glossary dt { font-size: 1rem; }
.glossary dt span { font-size: .8125rem; color: #617e92; }
.steps { padding-left: 0; }
.steps li { padding-left: 48px; }
.steps li:before { color: #2f7c9d; border-color: #cce1ef; background: #edf7fd; }
.steps li:not(:last-child):after { border-color: #d8e9f3; }
.steps h3 { font-size: 1.0625rem; margin: 0; }
.roadmap-symbol { color: #4e8cab; }
.status { font-size: .75rem; color: #637f92; background: #f0f6fa; }
.published { color: #1d7296; background: #e7f4fb; }
.roadmap-row h3 { color: #27516b; font-size: 1rem; margin: 0; }
.roadmap-row p { font-size: .875rem; color: #617d90; }
summary { font-size: 1rem; color: #2c526a; }
summary:after { color: #4d8da8; }
.references li>a { font-size: .875rem; }
.references li>span { font-size: .8125rem; color: #607f93; }
.chapter-hero { position: relative; padding: 40px max(5.5%,32px) 38px; border-bottom: 1px solid #daeaf4; background: radial-gradient(ellipse at 90% 10%,#caeafa90,transparent 55%),linear-gradient(120deg,#f3faff,#fff); overflow: hidden; }
.chapter-hero:after { content: ""; position: absolute; right: -50px; top: -160px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid #a8d7eb40; box-shadow: 0 0 0 50px #e7f5fc66,0 0 0 100px #e7f5fc30; pointer-events: none; }
.chapter-hero>* { position: relative; z-index: 1; }
.chapter-hero h1 { max-width: 880px; font-size: clamp(1.9rem,3vw,2.75rem); line-height: 1.5; margin: 23px 0 18px; }
.chapter-hero>p { max-width: 760px; font-size: 1rem; line-height: 1.95; color: #53758c; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8125rem; line-height: 1.7; color: #617e93; }
.breadcrumbs a { color: #2b7397; text-decoration: none; }
.breadcrumbs span[aria-hidden] { color: #9ab3c4; }
.chapter-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: .8125rem; line-height: 1.8; color: #5c7b90; }
.chapter-meta .version-badge { font-size: .75rem; }
.terminal { position: relative; margin: 27px 0; background: #112c42; color: #deeff8; border: 1px solid #27495f; border-radius: 11px; overflow: hidden; min-width: 0; max-width: 100%; box-shadow: 0 6px 20px #163b5112; }
.terminal-title,.terminal-label { display: block; min-height: 47px; padding: 13px 102px 12px 18px; background: #1a3a51; color: #d2e9f5; border-bottom: 1px solid #335269; font-size: .8125rem; font-weight: 500; line-height: 1.7; letter-spacing: .02em; }
.terminal pre,article pre { margin: 0; padding: 21px 22px; overflow-x: auto; max-width: 100%; white-space: pre; tab-size: 2; scrollbar-color: #4b7b96 #10283c; font-family: "SFMono-Regular",Consolas,"Liberation Mono",monospace; font-size: .875rem; line-height: 1.85; color: #d9ecf7; background: #112c42; }
.terminal pre code { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; overflow-wrap: normal; word-break: normal; }
.copy-code { position: absolute; top: 9px; right: 11px; border: 1px solid #6b8da2; border-radius: 5px; padding: 5px 10px; color: #edf8ff; background: #264b64; font-size: .8125rem; line-height: 1.4; min-height: 30px; cursor: pointer; }
.copy-code:hover { background: #386781; border-color: #9ac0d6; }
.copy-code:focus-visible { outline-color: #a6e6ff; }
.terminal[data-kind="verified"] .terminal-title,.terminal[data-kind="verified"] .terminal-label { border-left: 3px solid #72d8c7; }
.terminal[data-kind="example"] .terminal-title,.terminal[data-kind="example"] .terminal-label { border-left: 3px solid #f1d298; }
.table-wrap,.table-scroll { width: 100%; min-width: 0; overflow-x: auto; margin: 26px 0; border: 1px solid #dbe7ef; border-radius: 10px; scrollbar-color: #b3cede #f6faff; }
article table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.8; text-align: left; background: #fff; }
article th { background: #eef7fc; color: #275a78; font-weight: 650; font-size: .875rem; }
article th,article td { padding: 14px 17px; border-bottom: 1px solid #e2edf4; vertical-align: top; }
article td { color: #45657b; min-width: 135px; }
article tr:last-child td { border-bottom: 0; }
article tbody tr:nth-child(even) { background: #fbfdff; }
article td code { overflow-wrap: anywhere; }
.chapter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; border-top: 1px solid #cfdfeb; margin: 26px 0; }
.chapter-card { display: flex; flex-direction: column; gap: 8px; padding: 24px 4px; border-bottom: 1px solid #dce8f1; text-decoration: none; min-width: 0; transition: background .2s; }
.chapter-card:hover { background: linear-gradient(90deg,#eef8fe,#fff); }
.chapter-card h3 { color: #1d5778; font-size: 1.0625rem; margin: 0; line-height: 1.65; }
.chapter-card p { color: #5e7a8e; font-size: .875rem; line-height: 1.85; margin: 0; }
.chapter-card small,.chapter-card .chapter-number { color: #55859f; font-size: .75rem; letter-spacing: .04em; }
.learning-paths { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 28px 0; }
.learning-paths>a,.learning-paths>div { padding: 21px; border: 1px solid #d5e5f0; background: linear-gradient(135deg,#f0f8fd,#ffffffc9); border-radius: 10px; box-shadow: 0 1px 0 #fff inset; text-decoration: none; min-width: 0; }
.learning-paths h3 { font-size: 1rem; margin: 0 0 10px; color: #27617f; }
.learning-paths p { font-size: .875rem; margin: 0; color: #5c7a8e; }
.learning-paths a:hover { border-color: #82b6d2; }
.release-note { margin: 24px 0; padding: 20px 23px; background: #f1f8fd; border: 1px solid #d7e8f3; border-radius: 10px; font-size: .875rem; color: #3f6c87; }
.release-note p { margin: 7px 0; font-size: .9375rem; }
.chapter-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid #dce8f0; padding: 30px 0 42px; margin-top: 30px; }
.chapter-pagination a { padding: 18px 20px; border: 1px solid #d5e6f1; border-radius: 10px; text-decoration: none; background: #f7fbff; color: #205a7c; font-size: 1rem; line-height: 1.7; min-width: 0; }
.chapter-pagination a:hover { border-color: #8dbbd3; background: #edf7fd; }
.chapter-pagination small { display: block; font-size: .75rem; color: #6a879b; margin-bottom: 5px; }
.checklist { list-style: square; }
.closing { background: radial-gradient(ellipse at 88% 40%,#d6edfbbd,transparent 48%),linear-gradient(110deg,#e9f5fe,#f5faff); color: #204e6c; border: 1px solid #cfe4f3; border-radius: 16px; box-shadow: 0 1px 0 #fff inset,var(--shadow); }
.closing .eyebrow { color: #4f89a4; font-size: .75rem; }
.closing h2 { color: #164a6b; }
.closing p { color: #567c94; font-size: .9375rem; }
.closing .button { font-size: .875rem; }
.site-footer,footer { background: #f3f8fc; border-top: 1px solid #dce8f1; color: #56758a; font-size: .8125rem; padding: 32px 5.5%; }
.site-footer { display: block; }
.site-footer .maintenance { display: block; max-width: 760px; line-height: 1.95; font-size: .9375rem; margin: 0 0 16px; }
.site-footer .maintenance strong { color: #295a78; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 12px 23px; line-height: 1.8; margin: 18px 0; }
.site-footer a { color: #1b6a91; font-size: .875rem; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer small,.site-footer p:last-child { font-size: .75rem; line-height: 1.85; color: #617e92; }
dialog { border: 1px solid #d7e6f0; background: #fcfefff5; border-radius: 16px; box-shadow: 0 25px 100px #113b6040,0 1px 0 #fff inset; }
dialog::backdrop { background: #21466566; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
dialog label { font-size: .875rem; color: #55788e; }
dialog input { border-color: #bdd8e8; border-radius: 8px; font-size: 1rem; padding: 14px; }
#search-status { font-size: .8125rem; color: #5a7e94; }
#search-results small { font-size: .8125rem; color: #627f91; }
#search-results a { font-size: 1rem; }
@media (min-width:1500px) {
  .hero { padding: 75px 7%; }
  .reading-layout { padding-inline: 42px; }
}
@media (max-width:1250px) {
  :root { --sidebar: 230px; }
  .reading-layout { max-width: 856px; grid-template-columns: minmax(0,760px); padding-inline: 40px; gap: 0; }
  .chapter-toc { position: static; max-height: none; margin: 24px 0 0; order: -1; padding: 17px 20px; border: 1px solid #d8e9f3; border-radius: 10px; background: #f6fbff; }
  .chapter-toc ul,.chapter-toc ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 15px; }
  .chapter-toc a { padding-block: 6px; }
  .chapter-toc .reading-progress { display: none; }
  .hero { grid-template-columns: 1.2fr 1fr; padding: 52px 5%; }
  .hero-copy>p { font-size: 1rem; }
  .hero-meta { font-size: .75rem; gap: 10px; }
  .hero-meta span+span:before { margin-right: 10px; }
  .hero-art { transform: scale(.85); }
  .hero-actions .button { font-size: .875rem; }
  .chapter-hero { padding: 34px 40px; }
  .learning-paths { grid-template-columns: 1fr; gap: 10px; }
  .learning-paths>a,.learning-paths>div { padding: 18px 20px; }
}
@media (max-width:960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .header-nav .sectools-link { font-size: .875rem; }
  .header-nav .search-trigger { font-size: .875rem; }
  .header { padding-inline: 20px; }
  .chapter-grid { gap: 0 20px; }
  .graph-node span { font-size: .75rem; }
  .graph-node small { font-size: .625rem; }
}
@media (max-width:720px) {
  :root { --header: 68px; }
  .header { gap: 8px; padding-inline: 14px; }
  .brand { font-size: 1.0625rem; gap: 7px; }
  .brand-icon { width: 31px; height: 31px; }
  .header-nav { gap: 10px; }
  .header-nav .sectools-link { background: transparent; box-shadow: none; border: none; color: #00688f; font-size: .8125rem; padding: 8px 0; }
  .header-nav .sectools-link:hover { background: transparent; color: #004b70; }
  .search-trigger { min-width: 34px; width: 34px; min-height: 34px; padding: 4px 7px; }
  .header-nav .search-trigger { font-size: 0; }
  .menu-toggle { color: #285b79; border-color: #cce0ee; border-radius: 6px; font-size: .8125rem; padding: 7px 8px; background: #ffffffb8; }
  .sidebar { width: min(300px,calc(100vw - 32px)); background: rgba(245,250,254,.97); box-shadow: 15px 12px 50px #1644672b; }
  .sidebar nav a { font-size: .875rem; min-height: 42px; }
  .hero { padding: 40px 25px 38px; min-height: 0; }
  .eyebrow { font-size: .75rem; letter-spacing: .03em; line-height: 1.8; }
  h1 { font-size: 2.25rem; line-height: 1.4; margin-top: 22px; }
  .hero-copy>p { font-size: 1rem; line-height: 1.9; }
  .hero-meta { gap: 8px 13px; font-size: .75rem; }
  .hero-meta span+span:before { display: none; }
  .hero-actions .button { font-size: .875rem; padding: 12px 17px; }
  .intro-strip { padding: 18px 25px; flex-wrap: wrap; }
  .strip-mark { font-size: .875rem; }
  .intro-strip a { font-size: .8125rem; }
  .reading-layout { padding: 0 24px; }
  article>section { padding-top: 32px; }
  article>section+section { margin-top: 15px; }
  h2 { font-size: 1.55rem; line-height: 1.6; }
  article h3 { font-size: 1.125rem; }
  article p,article li,article dd { font-size: 1rem; line-height: 1.95; }
  .article-meta { font-size: .75rem; gap: 8px 13px; }
  .note { padding: 18px; }
  .note p,.steps p,.glossary dd,.question-list p,.compare li,details p { font-size: 1rem; }
  .chapter-hero { padding: 28px 24px 30px; }
  .chapter-hero h1 { font-size: 1.8rem; line-height: 1.5; }
  .chapter-hero>p { font-size: 1rem; }
  .chapter-meta { font-size: .75rem; gap: 10px; }
  .breadcrumbs { font-size: .75rem; }
  .chapter-toc { margin-top: 24px; padding: 16px; }
  .chapter-toc ul,.chapter-toc ol { grid-template-columns: 1fr; }
  .chapter-toc a { font-size: .875rem; }
  .graph-node { width: 245px; }
  .graph-node span { font-size: .875rem; }
  .graph-node small { font-size: .75rem; }
  .graph-toolbar { font-size: .75rem; }
  .graph-detail { padding: 18px; }
  .inline-promo { padding: 22px 19px; }
  .inline-promo .section-kicker { font-size: .75rem; }
  .inline-promo h3 { font-size: 1.125rem; }
  .inline-promo p { font-size: .9375rem; }
  .glossary dt span { font-size: .8125rem; }
  .terminal-title,.terminal-label { font-size: .75rem; padding: 12px 87px 12px 14px; }
  .terminal pre,article pre { padding: 17px 15px; font-size: .8125rem; line-height: 1.85; }
  .copy-code { right: 8px; top: 9px; padding: 5px 8px; font-size: .75rem; }
  .table-wrap,.table-scroll { border-radius: 8px; }
  article table { min-width: 510px; }
  article th,article td { padding: 12px 14px; }
  .chapter-grid { grid-template-columns: 1fr; gap: 0; }
  .chapter-card { padding: 22px 1px; }
  .chapter-card h3 { font-size: 1.0625rem; }
  .chapter-card p { font-size: .875rem; }
  .chapter-pagination { grid-template-columns: 1fr; gap: 12px; padding-bottom: 32px; }
  .roadmap-row p { font-size: .875rem; }
  .roadmap-row h3 { font-size: 1rem; }
  .status { font-size: .75rem; }
  .closing { margin: 0 16px 24px; padding: 27px 23px; border-radius: 13px; }
  .closing h2 { font-size: 1.375rem; }
  .closing p { font-size: .9375rem; }
  .site-footer,footer { padding: 28px 24px; font-size: .8125rem; }
  .site-footer .maintenance { font-size: .9375rem; }
  .site-footer .footer-links { gap: 12px 20px; }
  .site-footer small,.site-footer p:last-child { font-size: .75rem; }
}
@media (max-width:380px) {
  .header { padding-inline: 10px; gap: 6px; }
  .header-nav { gap: 7px; }
  .header-nav .sectools-link { font-size: .75rem; }
  .brand { font-size: 1rem; gap: 5px; }
  .hero,.chapter-hero { padding-inline: 21px; }
  .reading-layout { padding-inline: 21px; }
  h1 { font-size: 2.05rem; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header,.sidebar { background: #f4f9fd; }
  .art-center,.art-node { background: #f7fcff; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *,*:before,*:after { transition: none !important; animation: none !important; }
}
@media print {
  :root,body,main { background: white; color: #172c3b; }
  .header,.sidebar,.on-this-page,.chapter-toc,.chapter-pagination,.hero-art,.hero-actions,.intro-strip,.inline-promo,.closing,.site-footer,footer,dialog,.copy-code { display: none !important; }
  .hero,.chapter-hero { background: white; border: 0; padding: 15px 0; min-height: 0; box-shadow: none; }
  .hero:before,.hero:after,.chapter-hero:after { display: none; }
  .reading-layout { display: block; padding: 0; max-width: none; }
  article { max-width: none; }
  article>section { padding: 15px 0; }
  h1,h2,h3,article p,article li,article dd { color: #172c3b; }
  .terminal,.terminal-title,.terminal-label,.terminal pre,article pre { color: #142e42; background: #f3f6f8; box-shadow: none; border-color: #ccd7df; }
  .terminal pre,article pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .table-wrap,.table-scroll { overflow: visible; }
  article table { min-width: 0; font-size: .8125rem; }
  .terminal,.table-wrap,.table-scroll { break-inside: avoid; }
}
/* Preserve a continued exercise's step numbers across prose sections. */
.steps[start="2"] { counter-reset: step 1; }
.steps[start="3"] { counter-reset: step 2; }
.steps[start="4"] { counter-reset: step 3; }
.steps[start="5"] { counter-reset: step 4; }
/* Keep inline links and translated technical names inside the reading measure. */
article p, article li, article td, .chapter-card, .chapter-pagination a { overflow-wrap: break-word; }
@media screen and (min-width:721px) and (max-width:1100px) {
  .graph-canvas { height: 330px; }
  .graph-canvas svg,.edge-label,.uses-label { display: none; }
  .graph-node { width: 245px; min-height: 56px; padding: 10px 15px; gap: 12px; z-index: 1; }
  .graph-node.report { top: 18px; left: 50%; }
  .graph-node.actor { top: 92px; left: 50%; }
  .graph-node.malware { top: 166px; left: 50%; }
  .graph-node.domain { top: 240px; left: 50%; }
  .graph-node span { font-size: .875rem; }
  .graph-node small { font-size: .75rem; }
  .graph-canvas:before { content: ""; position: absolute; top: 45px; bottom: 50px; left: 50%; border-left: 2px dashed #a3c4d8; }
}
/* Metadata remains readable at small sizes on the light glass surfaces. */
.article-meta,.chapter-meta,.breadcrumbs,.hero-meta,.nav-label,.reading-progress,
.chapter-card small,.chapter-card .chapter-number,.chapter-pagination small,
.references li>span,.site-footer small,.site-footer p:last-child,
article p.caption,.glossary dt span,.sidebar-note p { color: #526f83; }
/* Second review: homepage reading rhythm and chapter navigation at all widths. */
.home-intro,.home-catalogue{padding:64px 5.4%;max-width:1250px;margin:0 auto}.home-intro>p{max-width:760px;font-size:1.0625rem;line-height:1.95;color:#486678}.home-catalogue{padding-top:18px}.home-catalogue>p{font-size:1rem;line-height:1.9;color:#486678;max-width:760px}.learning-paths strong{display:block;font-size:1rem;line-height:1.7;margin-bottom:9px;color:#27617f}.learning-paths span{display:block;font-size:.875rem;line-height:1.8;color:#5c7a8e}.card-read{font-size:.875rem;color:#00668f;font-weight:650}.chapter-toc{display:block}
@media(max-width:1250px){.chapter-toc{display:block;position:static;order:-1;max-height:260px;overflow:auto;margin:28px 0 0;padding:20px;background:#f4faff;border:1px solid #d8e9f3;border-radius:10px}.chapter-toc .reading-progress{display:none}}
@media(max-width:720px){.home-intro,.home-catalogue{padding:38px 24px}.home-catalogue{padding-top:5px}.home-intro h2{font-size:1.6rem}.home-intro>p{font-size:1rem}.chapter-toc{max-height:230px}}
/* Integration review: the TOC inherits .on-this-page; remove its legacy link gaps. */
.chapter-toc>a { margin: 0; font-size: .875rem; }
.chapter-toc>.nav-label { display: block; margin: 0 0 12px; }
.site-footer .maintenance>p { margin: 9px 0; }
.site-footer .maintenance>.version-badge { margin-top: 7px; }
/* Keep the handbook/platform version pair visible on the homepage at narrow widths. */
@media (max-width:1250px) {
  .intro-strip { flex-wrap: wrap; }
  .intro-strip>span:nth-child(2) { display: block; font-size: .75rem; }
}
