:root {
  --guide-navy: #082b50;
  --guide-blue: #147fc3;
  --guide-cyan: #36b6d3;
  --guide-green: #25a77a;
  --guide-amber: #e5a325;
  --guide-red: #d95f48;
  --guide-purple: #7656d8;
  --guide-radius: 22px;
  --guide-shadow: 0 22px 64px rgba(8, 36, 68, .13);
}

body[data-page="inside-guide"] { overflow-x: hidden; }

.guide-page {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  padding: 1.3rem 0 5rem;
}

.guide-back {
  display: inline-flex;
  margin: .4rem 0 1.3rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}

.guide-back:hover { color: var(--accent-strong); }

.guide-hero {
  --hero-image-height: clamp(400px, 56.3vw, 664px);
  --hero-signals-space: 76px;
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding-top: var(--hero-signals-space);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #07192d;
  box-shadow: var(--guide-shadow);
  isolation: isolate;
}

.guide-hero::before {
  content: "";
  position: absolute;
  inset: var(--hero-signals-space) 0 auto;
  height: var(--hero-image-height);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(4,20,38,.28), transparent 34%);
}

.guide-hero > img {
  position: relative;
  display: block;
  width: 100%;
  height: var(--hero-image-height);
  object-fit: cover;
  object-position: center 48%;
  transition: filter .25s ease, opacity .25s ease;
}

html[data-theme="night"] .guide-hero__image {
  filter: brightness(.78) contrast(1.08) saturate(.86);
}

html[data-theme="day"] .guide-hero__image {
  filter: brightness(1.02) contrast(1.02) saturate(1.02);
}

.guide-hero__signals {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  display: grid;
  width: 100%;
  height: var(--hero-signals-space);
  padding: .85rem clamp(1rem, 3vw, 2rem);
  box-sizing: border-box;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.35rem, .8vw, .65rem);
  transform: translateX(-50%);
  pointer-events: none;
  background: #edf6fb;
}

.guide-hero__signals > span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .48rem .55rem;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 13px;
  background: rgba(247,251,255,.76);
  box-shadow: 0 8px 22px rgba(8,43,80,.1);
  color: #082b50;
  font-size: clamp(.62rem, 1vw, .78rem);
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  backdrop-filter: blur(9px);
}

.guide-hero__signals i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #1595d3;
  box-shadow: 0 0 0 4px rgba(21,149,211,.13);
}

.guide-hero__signals > span:nth-child(2) i,
.guide-hero__signals > span:nth-child(5) i { background: #25a77a; box-shadow: 0 0 0 4px rgba(37,167,122,.13); }
.guide-hero__signals > span:nth-child(3) i,
.guide-hero__signals > span:nth-child(6) i { background: #e5a325; box-shadow: 0 0 0 4px rgba(229,163,37,.14); }

html[data-theme="night"] .guide-hero__signals > span {
  border-color: rgba(132,211,255,.24);
  background: rgba(5,29,51,.66);
  color: #eff8ff;
  box-shadow: 0 8px 22px rgba(2,13,26,.2);
}

html[data-theme="night"] .guide-hero__signals { background: #07192d; }

.guide-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: clamp(160px, 22.52vw, 266px);
  min-height: clamp(160px, 22.52vw, 266px);
  max-width: none;
  margin-top: 0;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  padding: clamp(.85rem, 2.1vw, 1.45rem) clamp(1.5rem, 4vw, 3.4rem);
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 92% 12%, rgba(54,182,211,.16), transparent 32%),
    linear-gradient(135deg, #061a30, #0a3155);
  box-shadow: 0 -18px 42px rgba(3,17,34,.16);
  color: #fff;
}

.guide-kicker {
  width: fit-content;
  margin-bottom: .65rem;
  padding: .36rem .65rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(4,30,56,.62);
  color: #bdefff;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.guide-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.15rem, 3.3vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.guide-hero__deck {
  max-width: 850px;
  margin: .7rem 0 0;
  color: #e5f3ff;
  font-size: clamp(.9rem, 1.35vw, 1.08rem);
  line-height: 1.35;
  text-wrap: balance;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.35rem;
  margin-top: .65rem;
  color: #b9cde0;
  font-size: .74rem;
  font-weight: 700;
}

.guide-content {
  width: min(100%, 940px);
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.78;
}

.guide-content p,
.scenario-card p,
.guide-role-card p,
.guide-process__step p,
.guide-note p,
.guide-cta p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.guide-content > p,
.guide-content > h2,
.guide-content > blockquote,
.guide-content > details { width: min(100%, 780px); margin-inline: auto; }
.guide-content p { margin-top: 0; margin-bottom: 1.3rem; }

.guide-lead {
  margin-top: 3.5rem !important;
  font-size: clamp(1.18rem, 2.2vw, 1.46rem);
  font-weight: 580;
  line-height: 1.62;
}

.guide-content h2 {
  margin-top: 5rem;
  margin-bottom: 1.25rem;
  color: var(--ink);
  font-size: clamp(2rem, 4.3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.guide-thesis {
  position: relative;
  margin-top: 2.1rem !important;
  margin-bottom: 2.1rem !important;
  padding: 1.65rem 1.8rem 1.65rem 2rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--guide-cyan) 35%, var(--line));
  border-radius: 0 var(--guide-radius) var(--guide-radius) 0;
  background: color-mix(in srgb, var(--guide-cyan) 8%, var(--surface));
  box-shadow: 0 16px 42px rgba(13,72,112,.08);
  font-size: 1.2rem;
  font-weight: 760;
  line-height: 1.55;
}

.guide-thesis::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(var(--guide-cyan), var(--guide-blue));
}

.guide-summary,
.guide-note,
.guide-table-wrap,
.guide-cta { width: 100%; }

.guide-summary {
  margin: 3rem 0 4.5rem;
  padding: clamp(1.35rem,3vw,2.25rem);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: color-mix(in srgb, var(--surface) 95%, var(--guide-cyan));
  box-shadow: var(--guide-shadow);
}

.guide-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.guide-summary__head strong { font-size: 1.15rem; }
.guide-summary__head span { color: var(--muted); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.guide-summary__grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: .8rem;
}

.guide-summary__item {
  min-height: 130px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.guide-summary__item b {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: .75rem;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb,var(--guide-blue) 14%,var(--surface));
  color: var(--accent-strong);
  font-size: .84rem;
}
.guide-summary__item span { display: block; font-size: .92rem; font-weight: 750; line-height: 1.42; }

.guide-figure { width: 100%; margin: 3.2rem 0 4.2rem; }
.guide-figure__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--guide-shadow);
}
.guide-figure__visual {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: clamp(.55rem, 1.4vw, 1rem);
  object-fit: contain;
}

.guide-visual-brand {
  position: absolute;
  right: clamp(.7rem, 1.8vw, 1.15rem);
  bottom: clamp(.7rem, 1.8vw, 1.15rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(8,38,83,.74);
  font-size: clamp(.6rem, 1.2vw, .74rem);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
  opacity: .78;
  text-shadow: 0 1px 1px rgba(255,255,255,.7);
}

.guide-visual-brand > img {
  width: 42px;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(3,20,38,.16));
}

html[data-theme="night"] .guide-visual-brand {
  color: rgba(238,246,255,.78);
  text-shadow: 0 1px 2px rgba(2,13,26,.8);
}

.guide-visual-brand--hero {
  color: rgba(255,255,255,.82);
  text-shadow: 0 1px 3px rgba(2,13,26,.9);
}

.guide-visual-brand--hero {
  top: calc(var(--hero-signals-space) + var(--hero-image-height) - 58px);
  bottom: auto;
}
.guide-figure figcaption {
  width: min(100% - 1rem,760px);
  margin: .85rem auto 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
}

.guide-role-grid,
.guide-process {
  display: grid;
  width: 100%;
  margin: 2rem 0 4.5rem;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
}

.guide-role-card,
.guide-process__step {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.guide-role-card svg { width: 34px; height: 34px; margin-bottom: .9rem; color: var(--accent-strong); }
.guide-role-card strong,
.guide-process__step strong { display: block; margin-bottom: .45rem; font-size: 1.05rem; }
.guide-role-card p,
.guide-process__step p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

.scenario-stack { display: grid; width: 100%; margin: 2rem 0 4.5rem; gap: 1rem; }
.scenario-card {
  --scenario-color: var(--guide-blue);
  display: grid;
  grid-template-columns: 72px minmax(0,1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(11,45,78,.07);
}
.scenario-card:nth-child(2) { --scenario-color: var(--guide-green); }
.scenario-card:nth-child(3) { --scenario-color: var(--guide-amber); }
.scenario-card:nth-child(4) { --scenario-color: var(--guide-red); }
.scenario-card:nth-child(5) { --scenario-color: var(--guide-purple); }
.scenario-card:nth-child(6) { --scenario-color: #1597aa; }
.scenario-number {
  display: grid;
  min-height: 100%;
  padding-top: 1.45rem;
  place-items: start center;
  background: color-mix(in srgb,var(--scenario-color) 14%,transparent);
  color: var(--scenario-color);
  font-size: 1.4rem;
  font-weight: 900;
}
.scenario-card__body { padding: 1.45rem 1.55rem 1.55rem; }
.scenario-card h3 { margin: 0 0 .8rem; color: var(--ink); font-size: clamp(1.28rem,2.5vw,1.68rem); line-height: 1.2; }
.scenario-card p { margin-bottom: .9rem; }
.scenario-question {
  margin: 1.05rem 0 0 !important;
  padding: .9rem 1rem;
  border-left: 3px solid var(--scenario-color);
  border-radius: 0 11px 11px 0;
  background: color-mix(in srgb,var(--scenario-color) 8%,transparent);
  font-size: .94rem;
  line-height: 1.52;
}

.guide-morning-list {
  display: grid;
  width: 100%;
  margin: 1.8rem 0 2rem;
  gap: .75rem;
}

.guide-morning-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.guide-morning-item > b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--guide-blue) 13%, var(--surface));
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 900;
}

.guide-morning-item p { margin: 0; }

.guide-note {
  margin: 2rem 0 4.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid color-mix(in srgb,var(--guide-amber) 45%,var(--line));
  border-radius: 18px;
  background: color-mix(in srgb,var(--guide-amber) 10%,var(--surface));
}
.guide-note strong { display: block; margin-bottom: .35rem; }
.guide-note p { margin: 0; }

.guide-table-wrap {
  margin: 2rem 0 4.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--guide-shadow);
}
.guide-table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.guide-table th,
.guide-table td { padding: 1rem 1.15rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table th { background: var(--guide-navy); color: #fff; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table td:first-child { width: 34%; font-weight: 800; }
.guide-table tr:nth-child(even) td { background: color-mix(in srgb,var(--guide-blue) 4%,transparent); }

.guide-process__step b {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 12px;
  background: var(--guide-navy);
  color: #fff;
}

.guide-cta {
  margin: 4.5rem 0 3rem;
  padding: clamp(1.7rem,4vw,3rem);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 15%,rgba(55,184,214,.25),transparent 28%),
    linear-gradient(135deg,#072746,#0d4773);
  box-shadow: 0 28px 75px rgba(4,28,53,.28);
  color: #fff;
}
.guide-cta__eyebrow { display: block; margin-bottom: .65rem; color: #87d8eb; font-size: .78rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.guide-cta h2 { width: auto; margin: 0 0 1rem; color: #fff; }
.guide-cta p { max-width: 760px; color: #dcecf8; }
.guide-cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.guide-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.15rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  background: #fff;
  color: #082a4b;
  font-size: .9rem;
  font-weight: 850;
}
.guide-button--ghost { background: transparent; color: #fff; }

.guide-closing-statement {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 2.5rem 0 4.5rem;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.35rem, 6vw, 5rem);
  border: 1px solid rgba(82,190,255,.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 18%, rgba(34,190,255,.22), transparent 32%),
    linear-gradient(135deg, #061a31 0%, #092b49 58%, #0b3c5a 100%);
  box-shadow: 0 28px 70px rgba(5,26,49,.2);
  color: #fff;
  text-align: center;
}

.guide-closing-statement::before {
  content: "“";
  position: absolute;
  z-index: -1;
  top: -2.8rem;
  left: 1rem;
  color: rgba(91,207,255,.1);
  font-family: Georgia, serif;
  font-size: clamp(10rem, 25vw, 18rem);
  line-height: 1;
}

.guide-closing-statement > span {
  display: inline-block;
  margin-bottom: 1rem;
  color: #8bdcff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.guide-closing-statement p {
  max-width: 820px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(1.65rem, 4.2vw, 3.2rem);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.16;
  text-align: center;
  text-wrap: balance;
}

.guide-closing-statement strong {
  display: inline-block;
  color: #ffd36b;
  font-weight: 950;
  letter-spacing: -.015em;
}

@media (max-width: 840px) {
  .guide-hero__content { padding: .85rem 1.5rem; }
  .guide-kicker { margin-bottom: .35rem; padding: .25rem .55rem; font-size: .6rem; }
  .guide-hero h1 { font-size: 2.25rem; }
  .guide-hero__deck { margin-top: .35rem; font-size: .78rem; line-height: 1.25; }
  .guide-meta { gap: .35rem .8rem; margin-top: .4rem; font-size: .64rem; }
  .guide-summary__grid { grid-template-columns: repeat(2,1fr); }
  .guide-role-grid,
  .guide-process { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .guide-page { width: min(100% - 1rem,1180px); padding-top: .8rem; }
  .guide-hero {
    --hero-image-height: clamp(280px, 62vw, 360px);
    --hero-signals-space: 88px;
    border-radius: 22px;
  }
  .guide-hero::before,
  .guide-hero > img { height: var(--hero-image-height); }
  .guide-hero > img { object-position: center center; }
  .guide-hero__signals {
    top: 0;
    width: 100%;
    height: var(--hero-signals-space);
    padding: .55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .3rem;
  }
  .guide-hero__signals > span {
    min-height: 34px;
    gap: .3rem;
    padding: .34rem .38rem;
    border-radius: 9px;
    font-size: clamp(.52rem, 2.15vw, .65rem);
  }
  .guide-hero__signals i { width: 5px; height: 5px; flex-basis: 5px; box-shadow: none !important; }
  .guide-hero__content {
    height: clamp(112px, 24.8vw, 144px);
    min-height: clamp(112px, 24.8vw, 144px);
    margin-top: 0;
    padding: .6rem 1.15rem;
    border-radius: 18px 18px 0 0;
  }
  .guide-hero h1 { font-size: clamp(1.65rem,7vw,2rem); line-height: 1.04; }
  .guide-kicker { margin-bottom: .28rem; padding: .2rem .48rem; font-size: .54rem; }
  .guide-hero__deck { margin-top: .28rem; font-size: .7rem; line-height: 1.22; }
  .guide-meta { gap: .25rem .65rem; margin-top: .3rem; font-size: .58rem; }
  .guide-content { font-size: 1rem; line-height: 1.72; }
  .guide-content h2 { margin-top: 4rem; }
  .guide-lead { margin-top: 2.5rem !important; }
  .guide-summary { margin-bottom: 3.5rem; padding: 1rem; border-radius: 20px; }
  .guide-summary__grid { grid-template-columns: 1fr; }
  .guide-summary__item { min-height: 0; }
  .guide-figure { margin: 2.3rem 0 3.5rem; }
  .guide-figure__media { border-radius: 16px; }
  .guide-figure__visual { padding: .45rem; }
  .guide-visual-brand { right: .65rem; bottom: .65rem; }
  .guide-visual-brand > img { width: 34px; height: auto; }
  .guide-visual-brand--hero { top: calc(var(--hero-signals-space) + var(--hero-image-height) - 48px); bottom: auto; }
  .guide-morning-item { grid-template-columns: 40px minmax(0,1fr); gap: .75rem; padding: .9rem; }
  .guide-morning-item > b { width: 36px; height: 36px; }
  .scenario-card { grid-template-columns: 50px minmax(0,1fr); border-radius: 17px; }
  .scenario-number { padding-top: 1.2rem; font-size: 1.05rem; }
  .scenario-card__body { padding: 1.2rem 1rem 1.25rem; }
  .guide-table-wrap { border: 0; background: transparent; box-shadow: none; }
  .guide-table,
  .guide-table tbody,
  .guide-table tr,
  .guide-table td { display: block; width: 100%; }
  .guide-table thead { display: none; }
  .guide-table tr { margin-bottom: .9rem; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
  .guide-table td,
  .guide-table td:first-child { width: 100%; padding: .8rem 1rem .8rem 42%; position: relative; border-bottom: 1px solid var(--line); }
  .guide-table td::before { content: attr(data-label); position: absolute; left: 1rem; width: calc(42% - 1.4rem); color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .guide-table tr:last-child td { border-bottom: 1px solid var(--line); }
  .guide-table tr td:last-child { border-bottom: 0; }
  .guide-cta { border-radius: 22px; }
  .guide-closing-statement { border-radius: 22px; }
}

@media (max-width: 480px) {
  .guide-meta { display: none; }
  .guide-hero__content { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  .site-header,
  .guide-back,
  .quick-contact,
  .scroll-top,
  footer { display: none !important; }
  .guide-page { width: 100%; padding: 0; }
  .guide-hero { min-height: 0; padding: 2rem; background: #fff; box-shadow: none; }
  .guide-hero > img,
  .guide-hero::before { display: none; }
  .guide-hero__content { min-height: 0; max-width: none; margin: 0; padding: 0; border-radius: 0; background: transparent; box-shadow: none; color: #111; }
  .guide-hero h1,
  .guide-hero__deck { color: #111; }
  .guide-figure__media,
  .guide-summary,
  .scenario-card,
  .guide-table-wrap { box-shadow: none; break-inside: avoid; }
  .guide-closing-statement { border: 2px solid #111; background: #fff; box-shadow: none; color: #111; }
  .guide-closing-statement > span,
  .guide-closing-statement p,
  .guide-closing-statement strong { color: #111; }
}
