:root { color-scheme: dark; background-color: #020817; }
body { margin: 0; min-height: 100vh; background-color: #020817; }
.guide { --offset: 18px; --rubric-size: 26px; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: clip; }
.guide .public-landing-scroll { min-height: 0; container-type: size; scroll-behavior: auto; }
.guide [id] { scroll-margin-top: var(--offset); }
.guide .public-landing-header { position: relative; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.guide-summary-link { justify-self: center; }
.guide-home-link { justify-self: end; max-width: 100%; text-align: center; }
@media (max-width: 620px) {
  .guide .public-landing-header { gap: 6px; padding-inline: 10px; }
  .guide .public-landing-header .public-button { min-height: 44px; padding-inline: 9px; line-height: 1.2; }
}
@media (max-width: 480px) {
  .guide .public-brand span { display: none; }
}
.guide-heading { padding: 31px 0 22px; }
.guide-heading h1 { font-size: clamp(29px,3.4vw,46px); margin: 0; line-height: 1.12; letter-spacing: -.048em; }
.guide-layout { display: grid; grid-template-columns: clamp(248px,24vw,310px) minmax(0,1fr); align-items: start; gap: clamp(24px,4vw,60px); border-top: 1px solid var(--public-line); padding-top: 22px; }
.guide-index { position: sticky; top: var(--offset); display: flex; flex-direction: column; max-height: calc(100cqh - var(--offset) - 14px); border: 1px solid var(--public-line); border-radius: 18px; background: linear-gradient(135deg,#121a29,#080f1b 68%); overflow: hidden; }
.index-head { padding: 16px 16px 11px; border-bottom: 1px solid var(--public-line); }
.index-head h2 { font-size: 21px; margin: 0 0 9px; letter-spacing: -.035em; }
.guide-index input { width: 100%; padding: 9px 12px; background: #060d18; border: 1px solid var(--public-line); border-radius: 8px; color: var(--public-ink); font: inherit; font-size: 14px; color-scheme: dark; }
.guide-index input::placeholder { color: #a5b9cb; opacity: 1; }
#search-status { margin: 6px 0 0; font-size: 12px; color: var(--public-blue-soft); }
#search-status:empty { display:none; }
.guide-links { overflow: auto; scrollbar-width: thin; scrollbar-color: #345071 transparent; padding: 4px 8px 8px; }
.guide-links details { border-bottom: 1px solid var(--public-line-soft); }
.guide-links details:last-child { border-bottom: 0; }
.guide-links summary { list-style: none; display: grid; grid-template-columns: 32px 1fr 12px; align-items: center; gap: 9px; min-height: 42px; padding: 4px 8px; cursor: pointer; font-size: 14px; font-weight: 620; line-height: 1.22; }
.guide-links summary::-webkit-details-marker { display: none; }
.guide-links summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid #a4bcce; border-bottom: 1.5px solid #a4bcce; transform: rotate(45deg); }
.guide-links details[open] > summary::after { transform: rotate(225deg); }
.guide-links details[open] > summary { color: var(--public-blue-soft); }
.rubric-icon { width: var(--rubric-size); height: var(--rubric-size); object-fit: contain; flex: 0 0 auto; }
.guide-links ul { list-style: none; padding: 0 4px 6px 25px; margin: 0; }
.guide-links li a { display: block; text-decoration: none; font-size: 13px; line-height: 1.35; padding: 6px 9px; border-left: 1px solid #34485b; color: var(--public-muted); }
.guide-links li a[aria-current],.guide-links li a:hover { color: var(--public-blue-soft); border-left: 2px solid #61c3ff; background: #12253b; }
.guide :focus-visible { outline: 2px solid #91dafa; outline-offset: -2px; }
.guide-chapters { min-width: 0; }
.guide-overview { padding:clamp(17px,3vw,38px);border:1px solid var(--public-line);border-radius:19px;background:linear-gradient(125deg,#0f1b2a,#060d18); }
.guide-overview h2 { margin:0;color:var(--public-blue-soft);font-size:clamp(23px,2.4vw,32px); }
.guide-overview h3 { margin:1.5em 0 0;font-size:clamp(19px,1.8vw,24px);line-height:1.25; }
.guide-overview p { max-width:72ch;margin:.7em 0 0;color:var(--public-muted);font-size:16px;line-height:1.65; }
.guide-overview strong { color:var(--public-ink); }
.guide-chapters section + section { margin-top: 34px; }
.group-title { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.guide-action { position: relative; padding: clamp(16px,2vw,27px); display: grid; grid-template-columns: minmax(0,1fr) minmax(215px,44%); gap: clamp(15px,2.1vw,32px); align-items: start; border: 1px solid var(--public-line); border-radius: 19px; background: linear-gradient(125deg,rgba(15,27,42,.97),rgba(6,13,24,.95)); }
.guide-action + .guide-action { margin-top: 14px; }
.guide-action:target { border-color: #3c667f; }
.action-context { display:flex; align-items:center; gap:7px; font-size: 22px; font-weight: 650; color:var(--public-blue-soft); margin:0 0 13px; }
.guide-action :is(h3, h4) { font-size: clamp(20px,2vw,28px); letter-spacing: -.035em; line-height: 1.19; margin: 0; text-wrap: pretty; overflow-wrap: anywhere; }
.action-copy { font-size: 16px; color: var(--public-muted); line-height: 1.62; margin: 12px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.guide-action figure { min-width: 0; margin: 0; }
.guide-action figcaption { font-size: 12px; line-height: 1.4; color: var(--public-muted); margin: 9px 0 0; text-align: center; }
.guide [hidden] { display: none !important; }
.guide-chapters { padding-bottom: 65vh; }
@media (min-width: 761px) and (max-width: 1010px) {
 .guide-layout { grid-template-columns: 226px minmax(0,1fr); gap: 16px; }
 .guide-action { grid-template-columns: minmax(0,1fr) minmax(155px,40%); gap: 12px; }
}
@media (max-width: 760px) {
 .guide { --offset: 12px; --rubric-size: 24px; }
 .guide-heading { padding: 22px 0 15px; }
 .guide-layout { display: block; padding-top: 13px; }
 .guide-index { position: static; max-height: none; margin-bottom: 27px; }
 .index-head { padding: 12px; }
 .index-head h2 { font-size: 19px; }
 .guide-index input { font-size: 16px; }
 .guide-links { display: block; padding: 4px 7px 7px; overflow: visible; }
 .guide-links summary { min-height: 44px; padding: 4px; grid-template-columns: 24px 1fr 8px; gap: 5px; font-size: 13px; }
 .guide-links li a { padding: 9px; }
 .guide-action { display: block; padding: 16px; border-radius: 15px; }
 .action-context { margin-bottom: 8px; }
 .action-copy { font-size: 15px; margin-top: 8px; }
 .guide-action figure { margin-top: 14px; }
 .guide-chapters section + section { margin-top: 27px; }
}
.illustration {
  --plate-height: clamp(360px, 58vh, 520px);
  width: 100%;
  height: var(--plate-height);
  display: grid;
  grid-template-rows: minmax(0, 1fr) 20px;
  gap: 7px;
  padding: 12px;
  border: 1px solid #233447;
  border-radius: 13px;
  background: #0a1420;
}
.illustration:has(button) { cursor: zoom-in; }
.illustration > img {
  width: min(100%, var(--reading-width));
  height: 100%;
  min-height: 0;
  justify-self: center;
  object-fit: contain;
}
.illustration button, .capture-toolbar button {
  color: #cbeaff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.illustration button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.illustration button svg { width: 13px; height: 13px; }
.capture-dialog {
  width: min(960px, calc(100vw - 30px));
  height: min(960px, calc(100dvh - 30px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #41566b;
  border-radius: 16px;
  background: #0a1420;
  color: #f7fbff;
  font: 15px/1.4 Inter, system-ui, sans-serif;
}
.capture-dialog[open] { display: flex; flex-direction: column; }
.capture-dialog::backdrop { background: rgba(0, 4, 10, .88); }
.capture-toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #253746; }
.capture-toolbar h2 { font: inherit; font-weight: 650; flex: 1; margin: 0; }
.capture-toolbar button { white-space: nowrap; padding: 7px; font-size: 13px; }
.capture-scroller { flex: 1; min-height: 0; overflow: auto; padding: 10px; }
.capture-scroller img { display: block; width: 100%; height: 100%; object-fit: contain; }
.capture-scroller.is-original img { width: auto; height: auto; margin-inline: auto; max-width: none; }
@media (max-width: 760px) {
  .illustration { --plate-height: clamp(335px, 52dvh, 485px); padding: 9px; }
  .capture-dialog { width: calc(100vw - 12px); height: calc(100dvh - 20px); }
  .capture-toolbar { gap: 4px; padding: 8px; }
}

