/* OpenClaw or Second Brain First — page-scoped layout prototype.
   Load after styles.css and admiralty-tokens.css. */

.openclaw-guide-page {
  overflow-x: clip;
  background: var(--paper);
}

.openclaw-guide-page [id] {
  scroll-margin-top: 104px;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.guide-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(82px, 10vw, 136px) clamp(18px, 5vw, 48px) clamp(70px, 9vw, 112px);
  background:
    radial-gradient(760px 580px at 84% 16%, rgba(27, 63, 139, 0.5), transparent 66%),
    linear-gradient(145deg, #071022 0%, #0a1730 52%, #0d1f3a 100%);
  color: var(--paper);
}

.guide-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(232, 238, 249, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 249, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}

.guide-hero__glow {
  position: absolute;
  z-index: -1;
  right: -180px;
  bottom: -270px;
  width: 660px;
  height: 660px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 176, 74, 0.15), transparent 66%);
  pointer-events: none;
}

.guide-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.guide-hero__copy {
  max-width: 720px;
}

.guide-hero .eyebrow,
.decision-section .section-kicker,
.guide-close .section-kicker {
  margin: 0;
  color: var(--brass-soft);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.prototype-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 0;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prototype-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 5px rgba(217, 176, 74, 0.12);
}

.guide-hero h1 {
  max-width: 10.8em;
  margin: 22px 0 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(3.25rem, 5.8vw, 5.8rem);
  font-weight: 680;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.guide-hero__lede {
  max-width: 20ch;
  margin: 28px 0 0;
  color: var(--brass-soft);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  font-style: italic;
  line-height: 1.16;
}

.guide-hero__summary {
  max-width: 64ch;
  margin: 24px 0 0;
  color: #c3d1e8;
  font-size: 1.04rem;
  line-height: 1.75;
}

.guide-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.guide-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-weight: 760;
  text-decoration-color: rgba(228, 197, 112, 0.55);
  text-underline-offset: 6px;
}

.guide-text-link span {
  color: var(--brass-soft);
}

.guide-hero .article-meta {
  margin-top: 28px;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.65;
  letter-spacing: 0.04em;
}

.guide-hero .article-meta a {
  color: var(--paper);
  text-underline-offset: 4px;
}

.guide-hero__disclosure {
  display: grid;
  gap: 10px;
  max-width: 66ch;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(157, 176, 206, 0.24);
}

.guide-hero__disclosure p {
  margin: 0;
  color: #9db0ce;
  font-size: 0.76rem;
  line-height: 1.6;
}

.guide-hero__disclosure strong {
  color: #d5e0f1;
}

.hero-art-reserve {
  margin: 0;
  padding: 14px;
  background: rgba(2, 8, 20, 0.68);
  border: 1px solid rgba(228, 197, 112, 0.42);
  border-radius: 10px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
}

.hero-art-reserve__label,
.guide-figure__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  color: var(--brass-soft);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-art-reserve__stage {
  position: relative;
  min-height: 410px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(232, 238, 249, 0.1);
  border-radius: 6px;
  background:
    linear-gradient(rgba(232, 238, 249, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 249, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 44%, rgba(27, 63, 139, 0.36), transparent 58%),
    #050d1b;
  background-size: 40px 40px, 40px 40px, auto, auto;
}

.hero-art-reserve__library,
.hero-art-reserve__operator {
  position: absolute;
  top: 50%;
  display: grid;
  gap: 9px;
  width: 25%;
  padding: 18px;
  border: 1px solid rgba(232, 238, 249, 0.2);
  background: rgba(13, 31, 58, 0.8);
  transform: translateY(-50%);
}

.hero-art-reserve__library {
  left: 8%;
}

.hero-art-reserve__operator {
  right: 8%;
  grid-template-columns: repeat(3, 1fr);
}

.hero-art-reserve__library i {
  display: block;
  height: 12px;
  border-left: 2px solid var(--brass);
  background: rgba(232, 238, 249, 0.08);
}

.hero-art-reserve__operator i {
  display: block;
  aspect-ratio: 1;
  border: 1px solid rgba(232, 238, 249, 0.24);
  border-radius: 50%;
  background: rgba(27, 63, 139, 0.35);
}

.hero-art-reserve__bridge {
  position: absolute;
  left: 33%;
  right: 33%;
  top: 50%;
  height: 1px;
  background: rgba(228, 197, 112, 0.55);
}

.hero-art-reserve__bridge::before,
.hero-art-reserve__bridge::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 48px;
  height: 88px;
  border: 1px solid rgba(228, 197, 112, 0.32);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  transform: translateY(-100%);
}

.hero-art-reserve__bridge::before {
  left: 12%;
}

.hero-art-reserve__bridge::after {
  right: 12%;
}

.hero-art-reserve__ball {
  position: absolute;
  left: 49%;
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 7px rgba(217, 176, 74, 0.1), 0 0 28px rgba(217, 176, 74, 0.5);
}

.hero-art-reserve figcaption {
  margin: 12px 2px 0;
  color: var(--fog);
  font-size: 0.79rem;
  line-height: 1.55;
}

.decision-section {
  padding: clamp(72px, 9vw, 118px) clamp(18px, 5vw, 48px);
  background: var(--paper);
}

.decision-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.65fr);
  column-gap: clamp(40px, 8vw, 100px);
  align-items: end;
}

.decision-heading .section-kicker {
  grid-column: 1 / -1;
  color: var(--brass-ink);
}

.decision-heading h2 {
  max-width: 11em;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 4.3vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.decision-heading > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.75;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.decision-grid article {
  position: relative;
  min-height: 270px;
  padding: 28px 26px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.decision-grid article::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--forest-2);
}

.decision-grid .decision-card--priority {
  border-color: rgba(111, 85, 21, 0.5);
  box-shadow: 0 18px 45px rgba(7, 16, 34, 0.1);
}

.decision-grid .decision-card--priority::before {
  background: var(--brass);
}

.decision-grid article > span {
  color: var(--brass-ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.decision-grid h3 {
  margin: 52px 0 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.15;
}

.decision-grid p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.decision-scenarios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 1020px;
  margin-top: 28px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.decision-scenarios p {
  margin: 0;
  padding: 24px 26px;
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1.72;
}

.decision-scenarios strong {
  color: var(--ink);
}

.decision-bridge {
  max-width: 72ch;
  margin: 38px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.decision-quote {
  max-width: 900px;
  margin: 22px 0 0;
  padding: 28px 0 0 28px;
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-style: italic;
  line-height: 1.25;
}

.decision-recommendation {
  max-width: 76ch;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.76;
}

.decision-recommendation strong {
  color: var(--ink);
}

.evidence-strip {
  padding: 24px clamp(18px, 5vw, 48px);
  background: var(--forest);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.evidence-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.evidence-strip p {
  margin: 0;
  color: var(--brass-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.evidence-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c3d1e8;
  font-size: 0.78rem;
}

.evidence-strip li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.evidence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fog);
}

.evidence-dot--stable { background: #8fc6a3; }
.evidence-dot--current { background: #85a9e6; }
.evidence-dot--proposed { background: var(--brass); }
.evidence-dot--pilot { background: #ca9b7f; }
.evidence-dot--reported { background: #c4a9db; }

.guide-main {
  background:
    linear-gradient(90deg, transparent calc(50% - 580px), rgba(13, 31, 58, 0.035) calc(50% - 580px), rgba(13, 31, 58, 0.035) calc(50% - 579px), transparent calc(50% - 579px)),
    var(--paper);
}

.guide-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(48px, 7vw, 88px);
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 126px);
  overflow: auto;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.guide-toc__label {
  margin: 0 0 16px;
  color: var(--brass-ink);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-toc ol,
.mobile-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-toc a,
.mobile-toc a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 8px;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  font-size: 0.79rem;
  line-height: 1.35;
  text-decoration: none;
}

.guide-toc a span,
.mobile-toc a span {
  color: var(--fog-ink);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.guide-toc a:hover,
.guide-toc a:focus-visible,
.guide-toc a[aria-current] {
  color: var(--ink);
  border-left-color: var(--brass);
  background: rgba(27, 63, 139, 0.055);
}

.guide-toc__cta {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
  padding: 12px 10px !important;
  color: var(--brass-ink) !important;
  border-top: 1px solid var(--line);
  border-left: 0 !important;
  font-weight: 800;
}

.mobile-toc {
  display: none;
}

.guide-article {
  min-width: 0;
}

.guide-chapter {
  position: relative;
  padding: 20px 0 clamp(72px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
}

.guide-chapter + .guide-chapter {
  padding-top: clamp(68px, 7vw, 96px);
}

.guide-chapter--tint {
  margin-inline: -28px;
  padding-inline: 28px;
  background: linear-gradient(135deg, rgba(233, 237, 245, 0.78), rgba(255, 255, 255, 0.48));
  border: 1px solid rgba(213, 219, 230, 0.8);
  border-radius: var(--radius);
}

.guide-chapter__heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}

.guide-chapter__number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 5px;
  color: var(--brass-ink);
  border: 1px solid rgba(111, 85, 21, 0.34);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.guide-chapter h2 {
  max-width: 15em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 3.8vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.guide-chapter__content {
  min-width: 0;
}

.guide-chapter__content > p,
.guide-chapter__content > ul,
.guide-chapter__content > ol,
.guide-chapter__content > blockquote,
.guide-chapter__content > pre,
.guide-chapter__content > h3,
.guide-chapter__content > h4,
.guide-chapter__content > details {
  max-width: 72ch;
}

.guide-chapter__content p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 1.01rem;
  line-height: 1.78;
}

.guide-chapter__content > p:first-child {
  color: var(--ink);
  font-size: 1.11rem;
}

.guide-chapter__content strong {
  color: var(--ink);
}

.guide-chapter__content a {
  color: #173f86;
  text-decoration-color: rgba(27, 63, 139, 0.34);
  text-underline-offset: 4px;
}

.guide-chapter__content a:hover,
.guide-chapter__content a:focus-visible {
  text-decoration-color: var(--brass-ink);
}

.guide-chapter__content h3 {
  margin: 42px 0 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.guide-chapter__content h4 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
}

.guide-chapter__content ul,
.guide-chapter__content ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 26px;
  padding-left: 1.35rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.guide-chapter__content ol li::marker {
  color: var(--brass-ink);
  font-family: var(--mono);
  font-size: 0.76em;
  font-weight: 800;
}

.guide-chapter__content ul li::marker {
  color: var(--brass-ink);
}

.guide-chapter__content blockquote {
  margin: 30px 0;
  padding: 22px 24px 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-style: italic;
  line-height: 1.38;
}

.guide-chapter__content blockquote p {
  margin: 0;
  color: inherit;
  font: inherit;
}

.guide-chapter__content code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--paper-warm);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9em;
}

.guide-chapter__content pre {
  overflow-x: auto;
  margin: 28px 0;
  padding: 22px;
  background: var(--forest-deep);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: #dce6f5;
  line-height: 1.7;
}

.guide-chapter__content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.table-shell {
  width: 100%;
  margin: 30px 0 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(7, 16, 34, 0.05);
}

.table-shell::before {
  content: "Comparison table · scroll horizontally on small screens";
  display: block;
  padding: 10px 14px;
  color: var(--brass-ink);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.guide-chapter table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.85rem;
  line-height: 1.55;
}

.guide-chapter th,
.guide-chapter td {
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guide-chapter th:last-child,
.guide-chapter td:last-child {
  border-right: 0;
}

.guide-chapter tr:last-child td {
  border-bottom: 0;
}

.guide-chapter th {
  background: var(--paper-warm);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-chapter td {
  color: var(--ink-soft);
}

.guide-chapter td strong {
  color: var(--ink);
}

.guide-figure {
  position: relative;
  margin: 34px 0 40px;
  padding: 12px;
  overflow: hidden;
  background: var(--forest-deep);
  border: 1px solid rgba(228, 197, 112, 0.36);
  border-radius: 10px;
  box-shadow: 0 24px 56px rgba(7, 16, 34, 0.17);
}

.guide-figure__badge {
  position: relative;
  z-index: 2;
  margin-bottom: 6px;
}

.guide-figure__frame {
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(232, 238, 249, 0.1);
  border-radius: 6px;
  background: #030814;
}

.guide-figure__frame img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
}

.guide-figure--architecture .guide-figure__frame {
  background: #071022;
}

.guide-figure figcaption {
  margin: 12px 4px 2px;
  color: var(--fog);
  font-size: 0.8rem;
  line-height: 1.58;
}

.visual-reserve {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 400px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(232, 238, 249, 0.1);
  border-radius: 6px;
  background:
    radial-gradient(circle at 62% 38%, rgba(27, 63, 139, 0.38), transparent 42%),
    #030814;
}

.visual-reserve__grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(232, 238, 249, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 249, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.visual-reserve__route {
  position: absolute;
  left: 13%;
  right: 13%;
  top: 48%;
  display: flex;
  justify-content: space-between;
  height: 1px;
  background: rgba(228, 197, 112, 0.48);
}

.visual-reserve__route span {
  width: 13px;
  height: 13px;
  margin-top: -6px;
  border: 1px solid rgba(228, 197, 112, 0.75);
  border-radius: 50%;
  background: #071022;
}

.visual-reserve__ball {
  position: absolute;
  left: 42%;
  top: -8px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 8px rgba(217, 176, 74, 0.1), 0 0 24px rgba(217, 176, 74, 0.44);
}

.visual-reserve__plates {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 21%;
  display: grid;
  grid-template-columns: 1.05fr 0.8fr 1.15fr;
  gap: 7%;
  align-items: end;
}

.visual-reserve__plates span {
  display: block;
  min-height: 90px;
  border: 1px solid rgba(232, 238, 249, 0.18);
  background: linear-gradient(145deg, rgba(27, 63, 139, 0.25), rgba(232, 238, 249, 0.025));
}

.visual-reserve__plates span:nth-child(2) {
  min-height: 130px;
}

.visual-reserve > p {
  position: relative;
  z-index: 2;
  max-width: 22ch;
  margin: 0;
  color: rgba(247, 248, 251, 0.72);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-style: italic;
  line-height: 1.15;
}

.guide-figure--logos .visual-reserve__plates span {
  aspect-ratio: 1;
  min-height: 0;
  border-radius: 50%;
}

.guide-figure--risk .visual-reserve__plates {
  align-items: end;
  transform: rotate(-5deg);
}

.guide-figure--risk .visual-reserve__plates span:nth-child(1) { min-height: 65px; }
.guide-figure--risk .visual-reserve__plates span:nth-child(2) { min-height: 112px; }
.guide-figure--risk .visual-reserve__plates span:nth-child(3) { min-height: 168px; }

.guide-figure--hybrid {
  border-color: rgba(228, 197, 112, 0.62);
}

.guide-figure--hybrid .visual-reserve {
  min-height: 500px;
}

.guide-figure--hybrid .visual-reserve__plates {
  top: 16%;
  grid-template-columns: repeat(3, 1fr);
}

.guide-figure--hybrid .visual-reserve__plates span {
  min-height: 180px;
}

.guide-close {
  padding-right: clamp(18px, 5vw, 48px);
  padding-left: clamp(18px, 5vw, 48px);
  background:
    radial-gradient(900px 520px at 78% 12%, rgba(27, 63, 139, 0.5) 0%, transparent 62%),
    var(--forest-deep);
}

.guide-close__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.65fr);
  gap: clamp(48px, 8vw, 108px);
  align-items: end;
}

.guide-close .contact-mega-title {
  margin-top: 20px;
  color: var(--paper);
}

.guide-close p:not(.section-kicker) {
  max-width: 58ch;
  color: var(--fog);
}

.guide-close .contact-mail {
  margin-left: 92px;
}

@media (max-width: 1100px) {
  .guide-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
    gap: 48px;
  }

  .guide-shell {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 44px;
  }

  .guide-chapter--tint {
    margin-inline: -18px;
    padding-inline: 18px;
  }
}

@media (max-width: 920px) {
  .guide-hero__grid,
  .decision-heading,
  .guide-close__grid {
    grid-template-columns: 1fr;
  }

  .guide-hero__copy {
    max-width: 760px;
  }

  .guide-hero h1 {
    max-width: 11em;
    font-size: clamp(3.3rem, 9vw, 5.2rem);
  }

  .hero-art-reserve {
    width: min(720px, 100%);
  }

  .decision-heading > p:last-child {
    max-width: 64ch;
    margin-top: 22px;
  }

  .decision-grid {
    grid-template-columns: 1fr;
  }

  .decision-grid article {
    min-height: 0;
  }

  .decision-grid h3 {
    margin-top: 34px;
  }

  .decision-scenarios {
    grid-template-columns: 1fr;
  }

  .guide-shell {
    display: block;
  }

  .guide-toc {
    display: none;
  }

  .mobile-toc {
    display: block;
    margin: 0 0 44px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .mobile-toc summary {
    cursor: pointer;
    padding: 16px 18px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-toc ol {
    padding: 0 12px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-close .contact-mail {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .openclaw-guide-page [id] {
    scroll-margin-top: 22px;
  }

  .reading-progress {
    position: absolute;
  }

  .guide-hero {
    padding-top: 64px;
  }

  .guide-hero::after {
    background-size: 36px 36px;
  }

  .guide-hero h1 {
    max-width: 9.4em;
    font-size: clamp(2.65rem, 14vw, 4.2rem);
    line-height: 0.98;
  }

  .guide-hero__lede {
    font-size: 1.45rem;
  }

  .guide-hero__actions {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 330px);
  }

  .guide-text-link {
    justify-content: space-between;
    padding: 10px 0;
  }

  .hero-art-reserve__stage {
    min-height: 290px;
  }

  .hero-art-reserve__library,
  .hero-art-reserve__operator {
    width: 28%;
    padding: 10px;
  }

  .hero-art-reserve__library {
    left: 5%;
  }

  .hero-art-reserve__operator {
    right: 5%;
  }

  .hero-art-reserve__bridge {
    left: 33%;
    right: 33%;
  }

  .hero-art-reserve__bridge::before,
  .hero-art-reserve__bridge::after {
    width: 30px;
    height: 58px;
  }

  .decision-heading h2 {
    max-width: 9.8em;
    font-size: 2.45rem;
  }

  .decision-grid article {
    padding: 24px 22px 26px;
  }

  .decision-quote {
    padding-left: 20px;
    font-size: 1.42rem;
  }

  .evidence-strip__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .evidence-strip ul {
    justify-content: flex-start;
  }

  .mobile-toc ol {
    grid-template-columns: 1fr;
  }

  .guide-chapter--tint {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .guide-chapter__heading {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .guide-chapter__number {
    width: 32px;
    height: 32px;
  }

  .guide-chapter h2 {
    max-width: 11.5em;
    font-size: clamp(1.85rem, 9vw, 2.65rem);
  }

  .guide-chapter__content p {
    font-size: 0.98rem;
  }

  .guide-chapter__content > p:first-child {
    font-size: 1.04rem;
  }

  .guide-chapter__content blockquote {
    padding: 18px 18px 18px 20px;
    font-size: 1.22rem;
  }

  .guide-figure {
    margin-inline: -4px;
    padding: 8px;
  }

  .guide-figure__badge {
    font-size: 0.56rem;
  }

  .visual-reserve {
    min-height: 300px;
    padding: 20px;
  }

  .guide-figure--hybrid .visual-reserve {
    min-height: 360px;
  }

  .guide-figure--hybrid .visual-reserve__plates span {
    min-height: 112px;
  }

  .guide-figure__frame {
    min-height: 180px;
  }

  .visual-reserve > p {
    font-size: 1.25rem;
  }

  .guide-close .start-cta {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .openclaw-guide-page {
    scroll-behavior: auto;
  }

  .reading-progress span,
  .guide-text-link,
  .start-ring {
    transition: none;
  }
}
