/* Professional guide pages — scoped to /html/*.html. */
:root {
  --guide-navy: #0f213a;
  --guide-navy-2: #173a61;
  --guide-blue: #2167b3;
  --guide-blue-soft: #eaf3fc;
  --guide-gold: #f2c94c;
  --guide-gold-soft: #fff7da;
  --guide-green: #16825d;
  --guide-green-soft: #e9f7f1;
  --guide-red: #ad3636;
  --guide-red-soft: #fff0ef;
  --guide-ink: #132238;
  --guide-body: #3e5068;
  --guide-muted: #5f718a;
  --guide-line: #d9e3ee;
  --guide-canvas: #f3f7fb;
  --guide-white: #fff;
  --guide-radius: 22px;
  --guide-shadow: 0 18px 54px rgba(15, 33, 58, .09);
}

body.guide-document {
  margin: 0;
  color: var(--guide-body);
  background:
    radial-gradient(circle at 8% 8%, rgba(33, 103, 179, .08), transparent 26rem),
    linear-gradient(180deg, #f9fbfe 0, var(--guide-canvas) 42rem);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

.guide-document *, .guide-document *::before, .guide-document *::after { box-sizing: border-box; }
.guide-document img { max-width: 100%; }
.guide-document a { color: var(--guide-blue); text-underline-offset: 3px; }
.guide-document a:hover { color: #144f8c; }
.guide-document a:focus-visible,
.guide-document button:focus-visible,
.guide-document summary:focus-visible { outline: 3px solid rgba(242, 201, 76, .75); outline-offset: 4px; border-radius: 8px; }
.guide-document strong { color: var(--guide-ink); }
.guide-document #header-container { min-height: 74px; }
.guide-document .brand-copy strong { color: #fff; }
.guide-document .brand-copy small { color: #b9c7d8; }

.guide-shell {
  position: relative;
  width: min(1240px, calc(100% - 40px));
  margin: 24px auto 56px;
}

.guide-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--guide-muted);
  font-size: 14px;
}
.guide-breadcrumbs a { color: var(--guide-blue); font-weight: 700; text-decoration: none; }
.guide-breadcrumbs span[aria-hidden="true"] { color: #a9b6c5; }

.guide-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(28px, 5vw, 64px);
  min-height: 420px;
  padding: clamp(34px, 5vw, 64px);
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(75, 154, 219, .35), transparent 28rem),
    linear-gradient(125deg, #0c2039 0%, #12385f 58%, #245c82 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  box-shadow: var(--guide-shadow);
}
.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}
.guide-hero-copy, .guide-hero-media { position: relative; z-index: 1; }
.guide-hero-copy { align-self: center; }
.guide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 7px 12px;
  color: #ffe897;
  background: rgba(242, 201, 76, .1);
  border: 1px solid rgba(242, 201, 76, .34);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}
.guide-eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--guide-gold); border-radius: 50%; box-shadow: 0 0 0 4px rgba(242,201,76,.13); }
.guide-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.guide-hero-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #d8e5f3;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.58;
}
.guide-meta-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.guide-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: #eaf2fb;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}
.guide-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.guide-button:hover { transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.38); }
.guide-button-primary { color: var(--guide-navy) !important; background: var(--guide-gold); border-color: var(--guide-gold); }
.guide-button-primary:hover { background: #ffda67; border-color: #ffda67; }

.guide-hero-media {
  align-self: stretch;
  min-height: 290px;
  padding: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  backdrop-filter: blur(6px);
}
.guide-hero-media img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; border-radius: 15px; }
.guide-media-caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  margin: 0;
  padding: 12px 14px;
  color: #eef5fc;
  background: rgba(7, 24, 43, .78);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  backdrop-filter: blur(8px);
}

.guide-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}
.guide-summary-card {
  padding: 20px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--guide-line);
  border-radius: 17px;
  box-shadow: 0 5px 20px rgba(15, 33, 58, .04);
}
.guide-summary-card span { display: block; margin-bottom: 6px; color: var(--guide-blue); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.guide-summary-card strong { display: block; font-size: 17px; line-height: 1.35; }
.guide-summary-card p { margin: 7px 0 0; color: var(--guide-muted); font-size: 14px; line-height: 1.5; }

.guide-layout {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.guide-toc {
  position: sticky;
  top: 92px;
  overflow: hidden;
  padding: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--guide-line);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(15,33,58,.06);
  backdrop-filter: blur(10px);
}
.guide-toc-title { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--guide-ink); font-size: 14px; font-weight: 800; }
.guide-toc-title::before { content: ""; width: 4px; height: 18px; background: var(--guide-gold); border-radius: 4px; }
.guide-toc ol { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.guide-toc li { margin: 0; counter-increment: toc; }
.guide-toc a { display: grid; grid-template-columns: 22px 1fr; gap: 7px; padding: 8px; color: #53657c; border-radius: 9px; font-size: 13px; font-weight: 650; line-height: 1.35; text-decoration: none; }
.guide-toc a::before { content: counter(toc, decimal-leading-zero); color: #91a0b2; font-size: 10px; letter-spacing: .02em; padding-top: 2px; }
.guide-toc a:hover { color: var(--guide-blue); background: var(--guide-blue-soft); }
.guide-toc-links { display: grid; gap: 7px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--guide-line); }
.guide-toc-links a { display: block; color: var(--guide-blue); font-size: 12px; }
.guide-toc-links a::before { content: none; }

.guide-content { min-width: 0; }
.guide-section {
  scroll-margin-top: 98px;
  margin: 0 0 18px;
  padding: clamp(24px, 4vw, 38px);
  background: #fff;
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius);
  box-shadow: 0 9px 30px rgba(15,33,58,.045);
}
.guide-section-heading { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 14px; margin-bottom: 18px; }
.guide-section-number { display: grid; place-items: center; width: 42px; height: 42px; color: var(--guide-blue); background: var(--guide-blue-soft); border: 1px solid #cce0f5; border-radius: 12px; font-size: 13px; font-weight: 850; }
.guide-section h2 { margin: 0; color: var(--guide-ink); font-size: clamp(25px, 3vw, 34px); line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.guide-section h3 { margin: 27px 0 10px; color: var(--guide-ink); font-size: 21px; line-height: 1.3; }
.guide-section p { margin: 0 0 1.1em; }
.guide-section p:last-child { margin-bottom: 0; }
.guide-section ul, .guide-section ol { padding-left: 22px; }
.guide-section li { margin: 0 0 .62em; padding-left: 3px; }
.guide-section li::marker { color: var(--guide-blue); font-weight: 800; }

.guide-answer {
  margin: 0 0 22px;
  padding: 18px 20px;
  color: #244462;
  background: linear-gradient(135deg, #edf6ff, #f8fbff);
  border: 1px solid #cfe2f4;
  border-left: 4px solid var(--guide-blue);
  border-radius: 14px;
  font-size: 17px;
  line-height: 1.62;
}
.guide-answer strong { color: #11395f; }
.guide-note, .guide-warning, .guide-success {
  margin: 20px 0;
  padding: 17px 19px;
  border: 1px solid;
  border-left-width: 4px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.62;
}
.guide-note { color: #705016; background: var(--guide-gold-soft); border-color: #efd891; border-left-color: #d49a10; }
.guide-warning { color: #7b3434; background: var(--guide-red-soft); border-color: #efc7c3; border-left-color: var(--guide-red); }
.guide-success { color: #185b43; background: var(--guide-green-soft); border-color: #bae4d4; border-left-color: var(--guide-green); }
.guide-note strong, .guide-warning strong, .guide-success strong { color: inherit; }

.guide-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 18px 0; }
.guide-card { min-width: 0; padding: 20px; background: #fbfdff; border: 1px solid var(--guide-line); border-radius: 15px; }
.guide-card h3 { margin: 0 0 9px; font-size: 18px; }
.guide-card p, .guide-card li { font-size: 15px; line-height: 1.58; }
.guide-card p { margin: 0; }
.guide-card ul { margin-bottom: 0; }
.guide-card-label { display: inline-block; margin-bottom: 9px; color: var(--guide-blue); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.guide-steps { margin: 20px 0; padding: 0 !important; list-style: none; counter-reset: step; }
.guide-steps > li { position: relative; min-height: 52px; margin: 0 0 13px; padding: 14px 16px 14px 62px; background: #fbfdff; border: 1px solid var(--guide-line); border-radius: 14px; counter-increment: step; }
.guide-steps > li::before { content: counter(step); position: absolute; top: 13px; left: 14px; display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--guide-navy-2); border-radius: 10px; font-size: 13px; font-weight: 850; }
.guide-steps > li::after { content: none; }

.guide-checklist { margin: 16px 0; padding: 0 !important; list-style: none; }
.guide-checklist li { position: relative; margin: 0; padding: 11px 12px 11px 40px; border-bottom: 1px solid #e5edf5; }
.guide-checklist li:last-child { border-bottom: 0; }
.guide-checklist li::before { content: "✓"; position: absolute; top: 11px; left: 10px; display: grid; place-items: center; width: 21px; height: 21px; color: var(--guide-green); background: var(--guide-green-soft); border-radius: 7px; font-size: 12px; font-weight: 900; }

.guide-source-list { display: grid; gap: 10px; margin: 16px 0 0 !important; padding: 0 !important; list-style: none; }
.guide-source-list li { margin: 0; padding: 15px 16px; background: #f8fbfe; border: 1px solid var(--guide-line); border-radius: 12px; }
.guide-source-list a { font-weight: 750; }
.guide-source-meta { display: block; margin-top: 3px; color: var(--guide-muted); font-size: 13px; line-height: 1.5; }

.guide-faq { display: grid; gap: 9px; }
.guide-faq details { background: #fbfdff; border: 1px solid var(--guide-line); border-radius: 13px; }
.guide-faq summary { padding: 16px 18px; color: var(--guide-ink); cursor: pointer; font-weight: 750; line-height: 1.4; }
.guide-faq details p { padding: 0 18px 17px; font-size: 15px; }

.guide-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.guide-related a { display: block; min-width: 0; padding: 17px; color: var(--guide-ink); background: #fff; border: 1px solid var(--guide-line); border-radius: 14px; font-weight: 800; line-height: 1.4; text-decoration: none; }
.guide-related a span { display: block; margin-top: 5px; color: var(--guide-muted); font-size: 13px; font-weight: 500; }
.guide-related a:hover { color: var(--guide-blue); border-color: #abc9e7; background: var(--guide-blue-soft); }

.guide-disclaimer { margin: 18px 0 0; color: var(--guide-muted); font-size: 13px; line-height: 1.6; }
.guide-side-ad { display: none; }

@media (min-width: 1450px) {
  .guide-side-ad { position: absolute; top: 610px; left: calc(100% + 18px); display: block; width: 180px; min-height: 180px; overflow: hidden; }
  .guide-side-ad ins.adsbygoogle { width: 100%; min-height: 180px; }
}

@media (max-width: 980px) {
  .guide-shell { width: min(100% - 28px, 860px); margin-top: 16px; }
  .guide-hero { grid-template-columns: 1fr; min-height: 0; padding: 38px; }
  .guide-hero-media { min-height: 240px; }
  .guide-hero-media img { min-height: 220px; max-height: 340px; }
  .guide-summary-grid { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .guide-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body.guide-document { font-size: 16px; }
  .guide-document #header-container { min-height: 60px; }
  .guide-shell { width: calc(100% - 20px); margin: 10px auto 34px; }
  .guide-breadcrumbs { padding: 0 3px; font-size: 12px; }
  .guide-hero { gap: 24px; padding: 28px 20px; border-radius: 20px; }
  .guide-hero h1 { font-size: clamp(31px, 9.3vw, 43px); }
  .guide-hero-lead { margin-top: 16px; font-size: 16px; }
  .guide-meta-row { margin-top: 18px; }
  .guide-meta-chip { font-size: 12px; }
  .guide-hero-actions { margin-top: 20px; }
  .guide-button { width: 100%; }
  .guide-hero-media { min-height: 200px; padding: 7px; }
  .guide-hero-media img { min-height: 190px; max-height: 260px; }
  .guide-media-caption { right: 16px; bottom: 16px; left: 16px; padding: 10px 11px; }
  .guide-summary-grid { gap: 9px; margin: 12px 0 16px; }
  .guide-summary-card { padding: 16px; }
  .guide-toc { padding: 15px; border-radius: 15px; }
  .guide-toc ol { grid-template-columns: 1fr; }
  .guide-toc a { padding: 7px; }
  .guide-section { margin-bottom: 12px; padding: 22px 18px; border-radius: 17px; }
  .guide-section-heading { grid-template-columns: 36px minmax(0,1fr); gap: 10px; }
  .guide-section-number { width: 36px; height: 36px; }
  .guide-section h2 { font-size: clamp(23px, 7vw, 29px); overflow-wrap: normal; word-break: normal; hyphens: none; }
  .guide-section h3 { font-size: 19px; }
  .guide-answer { padding: 15px 16px; font-size: 16px; }
  .guide-card-grid, .guide-related { grid-template-columns: 1fr; }
  .guide-card { padding: 17px; }
  .guide-steps > li { padding: 13px 13px 13px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-document *, .guide-document *::before, .guide-document *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  body.guide-document { color: #111; background: #fff; }
  .guide-document #header-container, .guide-toc, .guide-side-ad, .guide-hero-actions, footer { display: none !important; }
  .guide-shell { width: 100%; margin: 0; }
  .guide-hero { display: block; min-height: 0; padding: 24px; color: #111; background: #fff; border: 1px solid #bbb; box-shadow: none; }
  .guide-hero h1, .guide-hero-lead { color: #111; }
  .guide-hero-media { display: none; }
  .guide-layout { display: block; }
  .guide-section { break-inside: avoid; border-color: #ccc; box-shadow: none; }
}
