/* Treatment guides (/<slug>/) and 404 — on top of style.css, same tokens. Built by seo/render.py. */
.g-page { background: var(--pearl); }
.g-head .bar { height: 70px; }
.g-prog { position: absolute; inset: auto 0 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .g-prog { transform-origin: left; }

.g-hero { position: relative; background: radial-gradient(120% 90% at 85% 0%, #10303f 0%, var(--ink) 55%, var(--night) 100%); color: #fff; padding: calc(70px + clamp(28px, 5vw, 60px)) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.g-hero::after { content: ""; position: absolute; inset: auto -10% -1px; height: 120px; background: radial-gradient(60% 100% at 50% 100%, rgba(34, 193, 238, .16), transparent 70%); pointer-events: none; }
.g-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font: 500 13.5px/1.4 var(--f-head); color: rgba(255, 255, 255, .55); margin-bottom: clamp(26px, 4vw, 44px); }
.g-crumbs li + li::before { content: "‹"; margin-inline-end: 10px; color: var(--gold); }
[dir="ltr"] .g-crumbs li + li::before { content: "›"; }
.g-crumbs a:hover { color: var(--gold); }
.g-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.g-hero .h-lg { color: #fff; font-size: clamp(34px, 4.6vw, 64px); }
.g-lead { margin-top: 22px; font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.85; color: rgba(255, 255, 255, .75); max-width: 620px; }
.g-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.g-fig { position: relative; margin: 0; border-radius: 28px; overflow: hidden; background: var(--ink-3); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08); animation: g-in 1.1s var(--ease) both; }
.g-fig img { width: 100%; height: auto; }
.g-fig .tag { position: absolute; top: 14px; padding: 7px 14px; border-radius: 99px; font: 600 13px/1 var(--f-head); background: rgba(10, 20, 28, .65); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.g-fig .t-before { inset-inline-start: 14px; }
.g-fig .t-after { inset-inline-end: 14px; background: var(--gold); color: var(--ink); }
@keyframes g-in { from { opacity: 0; transform: translateY(26px) scale(.98); } }
.g-hero .kicker, .g-hero .h-lg, .g-lead, .g-cta { animation: g-up .9s var(--ease) both; }
.g-hero .h-lg { animation-delay: .08s; } .g-lead { animation-delay: .16s; } .g-cta { animation-delay: .24s; }
@keyframes g-up { from { opacity: 0; transform: translateY(18px); } }

.g-answer { position: relative; z-index: 1; margin-top: -34px; background: #fff; border-radius: 22px; padding: 22px clamp(20px, 3vw, 34px); box-shadow: 0 30px 60px -40px rgba(10, 20, 28, .55), inset 0 0 0 1px var(--line); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.g-answer b { font: 700 13px/1 var(--f-head); color: var(--ink); background: var(--gold); padding: 9px 14px; border-radius: 99px; white-space: nowrap; }
.g-answer p { font-size: 17px; line-height: 1.85; color: var(--text); }

.g-facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 26px; background: var(--line); border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.g-facts dl > div { background: var(--pearl); padding: 16px 20px; }
.g-facts dt { font: 500 12.5px/1.4 var(--f-head); color: var(--muted); }
.g-facts dd { font: 600 15px/1.5 var(--f-head); color: var(--ink); margin-top: 4px; }
.g-facts dd [dir="ltr"], .g-doc [dir="ltr"] { white-space: nowrap; }

.g-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(30px, 5vw, 70px); padding-block: clamp(50px, 7vw, 90px); align-items: start; }
.g-doc section { padding-block: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.g-doc section:first-child { padding-top: 0; }
.g-doc h2 { font: 600 clamp(24px, 2.4vw, 32px)/1.35 var(--f-head); color: var(--ink); margin-bottom: 14px; }
.g-doc p { color: var(--text); margin-top: 10px; }
.g-doc a { color: var(--gold-d); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(10, 106, 134, .3); text-underline-offset: 4px; }
.g-doc a:hover { text-decoration-color: currentColor; }
.g-doc ul, .g-doc ol { display: grid; gap: 10px; margin-top: 14px; }
.g-doc ul li { position: relative; padding-inline-start: 26px; }
.g-doc ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .72em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(34, 193, 238, .18); }
.g-doc ol { counter-reset: s; }
.g-doc ol li { counter-increment: s; position: relative; padding: 14px 18px; padding-inline-start: 62px; background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.g-doc ol li::before { content: counter(s, decimal-leading-zero); position: absolute; inset-inline-start: 16px; top: 14px; font: 800 18px/1.6 "Manrope", sans-serif; color: var(--gold-d); }
.g-doc b { color: var(--ink); }
.g-note { margin-top: 26px !important; font-size: 14px; color: var(--muted) !important; }

.g-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.g-doccard { background: var(--ink); color: #fff; border-radius: 24px; padding: 24px; display: grid; gap: 16px; }
.g-id { display: flex; align-items: center; gap: 14px; }
.g-id img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; box-shadow: 0 0 0 2px var(--gold); }
.g-id b { display: block; font: 600 18px/1.3 var(--f-head); }
.g-id small { display: block; font-size: 13px; color: rgba(255, 255, 255, .6); }
.g-doccard p { font-size: 14.5px; line-height: 1.75; color: rgba(255, 255, 255, .72); }
.g-doccard .btn { width: 100%; }
.g-toc { background: #fff; border-radius: 20px; padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 2px; font: 500 14.5px/1.5 var(--f-head); }
.g-toc b { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.g-toc a { padding: 7px 0; color: var(--muted); border-top: 1px solid var(--line); }
.g-toc a:hover { color: var(--gold-d); }

.g-faq { background: #fff; padding-block: clamp(60px, 8vw, 110px); }
.g-faq .h-lg, .g-more .h-lg { font-size: clamp(30px, 3.6vw, 50px); }
.g-faq .qa { margin-top: 26px; max-width: 920px; }

.g-more { background: var(--ink); color: #fff; padding-block: clamp(60px, 8vw, 110px); }
.g-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.g-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .45s var(--ease), box-shadow .45s; }
.g-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--gold), 0 24px 40px -30px rgba(34, 193, 238, .6); }
.g-card .ic { width: 46px; height: 46px; padding: 10px; flex: none; border-radius: 14px; background: var(--gold); color: var(--ink); }
.g-card b { display: block; font: 600 16.5px/1.4 var(--f-head); }
.g-card small { display: block; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .6); }
.g-card svg.dir { margin-inline-start: auto; color: var(--gold); }
.g-card:hover svg.dir { transform: scaleX(-1) translateX(4px); }
.g-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 40px; padding: 24px clamp(20px, 3vw, 34px); border-radius: 24px; background: linear-gradient(120deg, rgba(34, 193, 238, .16), rgba(34, 193, 238, .04)); box-shadow: inset 0 0 0 1px rgba(34, 193, 238, .3); }
.g-band p { font: 500 clamp(17px, 1.6vw, 21px)/1.6 var(--f-head); max-width: 640px; }

.g-ftop { grid-template-columns: 1.3fr 1fr 1fr 1fr !important; }
.g-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; padding-top: 60px; }
.g-404 .g-lead { margin-inline: auto; }
.g-404 .g-cta { justify-content: center; }
.g-404links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.g-404links a { padding: 9px 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); font: 500 14px/1 var(--f-head); }
.g-404links a:hover { background: var(--gold); color: var(--ink); }

@media (max-width: 1000px) {
  .g-grid, .g-body { grid-template-columns: 1fr; }
  .g-side { position: static; }
  .g-toc { display: none; }
  .g-cards { grid-template-columns: 1fr 1fr; }
  .g-facts dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .g-ftop { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 760px) {
  .g-head .actions .btn.sm { display: none; }
  .g-answer { grid-template-columns: 1fr; gap: 12px; margin-top: -26px; }
  .g-answer b { justify-self: start; }
  .g-answer p { font-size: 16px; }
  .g-cards { grid-template-columns: 1fr; }
  .g-cta .btn { flex: 1 1 auto; }
  .g-doc ol li { padding-inline-start: 54px; }
  .g-fig { border-radius: 20px; }
}
@media (max-width: 560px) {
  .g-ftop { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  .g-fig, .g-hero .kicker, .g-hero .h-lg, .g-lead, .g-cta { animation: none; }
}
