:root {
  --ink: #101820;
  --muted: #65707c;
  --line: #dfe3e6;
  --paper: #ffffff;
  --canvas: #eef0f1;
  --soft: #f6f7f7;
  --green: #0d8567;
  --green-dark: #06664f;
  --green-soft: #e7f4f0;
  --warning: #b56a13;
  --danger: #bd2c24;
  --shadow: 0 22px 60px rgba(16, 24, 32, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
button, input { font: inherit; }
.guide-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.guide-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.guide-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: var(--green); font-weight: 900; letter-spacing: -.04em; }
.guide-brand-copy { display: grid; line-height: 1.16; }
.guide-brand-copy strong { font-size: 15px; }
.guide-brand-copy small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.guide-top-actions { display: flex; align-items: center; gap: 10px; }
.guide-button, .guide-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}
.guide-button { color: #fff; background: var(--green); }
.guide-button:hover { background: var(--green-dark); }
.guide-button-secondary { color: var(--ink); background: var(--paper); border-color: var(--line); }
.guide-button-secondary:hover { border-color: #aeb7bd; }
.guide-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 8vw, 110px) clamp(20px, 7vw, 96px) 84px;
  background: #171d20;
  color: #fff;
}
.guide-hero::after { content: ""; position: absolute; inset: -30% -10% auto 45%; height: 500px; background: radial-gradient(circle, rgba(13,133,103,.72), transparent 66%); pointer-events: none; }
.guide-page--admin .guide-hero { background: #10241f; }
.guide-hero-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 60px; align-items: end; }
.guide-kicker { margin: 0 0 14px; color: #68dbb9; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .18em; }
.guide-hero h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 6vw, 72px); line-height: .98; letter-spacing: -.055em; }
.guide-hero-lead { max-width: 720px; margin: 24px 0 0; color: #c9d0d2; font-size: clamp(17px, 2vw, 21px); }
.guide-meta-card { padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.guide-meta-card strong { display: block; margin-bottom: 8px; font-size: 17px; }
.guide-meta-card p { margin: 0; color: #cbd4d3; font-size: 14px; }
.guide-version { display: inline-flex; margin-top: 18px; padding: 5px 10px; border-radius: 999px; background: rgba(104,219,185,.14); color: #8ce6ca; font-size: 12px; font-weight: 800; }
.guide-layout { display: grid; grid-template-columns: 280px minmax(0, 820px); gap: 34px; max-width: 1180px; margin: -36px auto 0; padding: 0 24px 80px; position: relative; z-index: 2; align-items: start; }
.guide-toc { position: sticky; top: 94px; max-height: calc(100vh - 116px); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.guide-toc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.guide-toc-title { margin: 0; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; color: var(--green-dark); }
.guide-toc-toggle { display: none; border: 0; background: var(--soft); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.guide-search { position: relative; display: block; margin-bottom: 14px; }
.guide-search svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: #68747c; stroke-width: 1.8; }
.guide-search input { width: 100%; height: 42px; padding: 8px 12px 8px 38px; border: 1px solid var(--line); border-radius: 10px; outline: none; }
.guide-search input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(13,133,103,.10); }
.guide-toc nav { display: grid; gap: 4px; }
.guide-toc a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; color: #4c5861; font-size: 13px; font-weight: 700; text-decoration: none; }
.guide-toc a span { display: grid; place-items: center; flex: 0 0 23px; height: 23px; border-radius: 7px; color: var(--green-dark); background: var(--green-soft); font-size: 11px; }
.guide-toc a:hover, .guide-toc a.is-active { color: var(--green-dark); background: var(--green-soft); }
.guide-content { min-width: 0; display: grid; gap: 22px; }
.guide-intro, .guide-section { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 12px 34px rgba(16,24,32,.055); }
.guide-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-intro-card { padding: 18px; border-radius: 14px; background: var(--soft); }
.guide-intro-card b { display: block; margin-bottom: 5px; color: var(--green-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.guide-intro-card p { margin: 0; color: var(--muted); font-size: 13px; }
.guide-section[hidden] { display: none !important; }
.guide-section-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.guide-section-number { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; color: #fff; background: var(--green); font-weight: 900; }
.guide-section h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.guide-section-head p { margin: 7px 0 0; color: var(--muted); }
.guide-section h3 { margin: 28px 0 8px; font-size: 18px; }
.guide-section p { color: #4d5962; }
.guide-steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: steps; display: grid; gap: 12px; }
.guide-steps li { position: relative; padding: 15px 16px 15px 52px; border: 1px solid var(--line); border-radius: 13px; color: #35414a; background: #fff; }
.guide-steps li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--green-dark); background: var(--green-soft); font-weight: 900; font-size: 12px; }
.guide-list { margin: 12px 0 0; padding-left: 20px; color: #4d5962; }
.guide-list li + li { margin-top: 7px; }
.guide-note { margin: 20px 0 0; padding: 16px 18px; border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; background: var(--green-soft); color: #285146; }
.guide-note strong { color: var(--green-dark); }
.guide-note--warning { border-left-color: var(--warning); background: #fff5e8; color: #684514; }
.guide-shot { margin: 26px 0 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #e5e7e8; }
.guide-shot img { display: block; width: 100%; height: auto; }
.guide-shot figcaption { padding: 11px 14px; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.guide-feature { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.guide-feature strong { display: block; margin-bottom: 5px; }
.guide-feature p { margin: 0; font-size: 13px; }
.guide-no-results { display: none; padding: 30px; text-align: center; border-radius: 18px; background: #fff; color: var(--muted); }
.guide-no-results.is-visible { display: block; }
.guide-footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1180px; margin: 0 auto; padding: 28px 24px 42px; color: var(--muted); font-size: 13px; }
.guide-footer a { color: var(--green-dark); font-weight: 750; }

@media (max-width: 900px) {
  .guide-hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .guide-layout { grid-template-columns: 1fr; margin-top: -28px; }
  .guide-toc { position: relative; top: auto; max-height: none; }
  .guide-toc-toggle { display: inline-flex; }
  .guide-toc nav { display: none; }
  .guide-toc.is-open nav { display: grid; }
}
@media (max-width: 640px) {
  .guide-brand-copy small, .guide-button-secondary.print-button { display: none; }
  .guide-topbar { min-height: 64px; padding: 10px 14px; }
  .guide-top-actions { gap: 6px; }
  .guide-button, .guide-button-secondary { padding-inline: 12px; }
  .guide-hero { padding: 46px 20px 70px; }
  .guide-layout { padding-inline: 12px; }
  .guide-intro { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-section, .guide-intro { border-radius: 15px; }
  .guide-footer { flex-direction: column; }
}
@media print {
  body { background: #fff; }
  .guide-topbar, .guide-toc, .guide-footer, .print-button { display: none !important; }
  .guide-hero { padding: 36px; background: #fff !important; color: #111; border-bottom: 2px solid #111; }
  .guide-hero::after { display: none; }
  .guide-hero-lead, .guide-meta-card p { color: #444; }
  .guide-meta-card { border-color: #ccc; background: #f5f5f5; }
  .guide-layout { display: block; max-width: none; margin: 0; padding: 20px 0; }
  .guide-content { display: block; }
  .guide-intro, .guide-section { box-shadow: none; break-inside: avoid; margin: 0 0 18px; }
}
