/* Editorial global-language guides. Shared brand and article rules live in blog.css. */
.global-guide { --sample-font: "Noto Sans", system-ui, sans-serif; }
.global-guide .gg-hero { gap: clamp(32px, 6vw, 86px); min-height: 630px; padding-top: 58px; padding-bottom: 80px; }
.global-guide .gg-hero::before { inset: -64px 0 0; background: radial-gradient(620px 420px at 78% 37%, rgba(212,255,58,.09), transparent 73%), linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px; }
.global-guide .gg-hero h1 { max-width: 12ch; font-size: clamp(43px, 5.8vw, 76px); line-height: 1.01; letter-spacing: -.052em; text-wrap: balance; }
.global-guide .gg-hero .lead { max-width: 54ch; }
.gg-demo { position: relative; align-self: center; width: min(100%, 432px); margin: 0 auto; padding: 12px; border: 1px solid #39393e; border-radius: 32px; background: linear-gradient(150deg, #242428, #111114 55%, #252527); box-shadow: 0 24px 90px rgba(0,0,0,.52), 0 0 80px rgba(212,255,58,.08); }
.gg-demo::before { content: ""; position: absolute; inset: -24px; z-index: -1; border: 1px solid rgba(212,255,58,.13); border-radius: 46px; transform: rotate(-3deg); }
.gg-demo-top, .gg-demo-bottom { display: flex; justify-content: space-between; align-items: center; min-height: 33px; padding: 0 10px; color: #aaaab0; font: 600 10px/1 var(--mono); letter-spacing: .09em; }
.gg-rec { display: flex; align-items: center; gap: 7px; }
.gg-rec i { width: 7px; height: 7px; border-radius: 50%; background: #ff695e; box-shadow: 0 0 12px rgba(255,105,94,.5); }
.gg-demo-screen { position: relative; display: grid; place-items: center; min-height: 330px; padding: 36px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 22px; background: radial-gradient(circle at 23% 25%, #51402c, transparent 36%), radial-gradient(circle at 80% 84%, #203c3e, transparent 44%), linear-gradient(135deg, #1b1c20, #111115); }
.gg-demo-screen::before { content: ""; position: absolute; top: -28%; right: 12%; width: 48%; height: 150%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent); transform: rotate(27deg); }
.gg-demo-glow { position: absolute; top: 22px; left: 26px; color: rgba(255,255,255,.13); font: 800 clamp(25px, 4vw, 42px)/1.1 var(--sample-font); letter-spacing: -.04em; }
.gg-demo-caption { position: relative; z-index: 1; max-width: 320px; color: #fff; font: 800 clamp(26px, 3.4vw, 38px)/1.24 var(--sample-font); letter-spacing: -.035em; text-align: center; text-shadow: 0 3px 18px rgba(0,0,0,.65); text-wrap: balance; }
.gg-demo-caption b { display: inline-block; margin: 0 3px; opacity: .48; transition: opacity .15s, color .15s; }
.gg-demo-caption b.past { opacity: .95; }
.gg-demo-caption b.now { opacity: 1; color: var(--lime); }
.gg-bars { display: flex; align-items: center; gap: 3px; width: 75%; height: 18px; }
.gg-bars i { flex: 1; height: 35%; background: #79797e; border-radius: 2px; }
.gg-bars i:nth-child(3n) { height: 80%; }
.gg-bars i:nth-child(5n) { height: 55%; background: var(--lime); }
.gg-demo figcaption { margin-top: 6px; padding: 5px 10px 8px; color: #8f8f96; font: 500 11px/1.45 var(--mono); text-align: center; }
.gg-layout { padding-top: 0; }
.global-guide .content { max-width: 770px; }
.global-guide .content h2 { text-wrap: balance; }
.global-guide .content h3 { margin-bottom: 8px; font-size: 17px; }
.global-guide .content p + ul, .global-guide .content p + ol { margin-top: 22px; }
.gg-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.gg-mini span { padding: 10px 13px; border: 1px solid var(--line-2); border-radius: 999px; color: #e7e7e9; background: var(--panel); font-size: 13px; font-weight: 650; }
.gg-mini i { color: var(--lime); font-style: normal; }
.gg-example { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 22px 0; }
.gg-example > div { min-width: 0; min-height: 114px; padding: 18px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); }
.gg-example > span { color: var(--lime); font-size: 24px; }
.gg-example small, .gg-stage > span { display: block; margin-bottom: 12px; color: var(--lime); font: 600 10px/1 var(--mono); letter-spacing: .1em; }
.gg-example p { color: var(--text); font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.gg-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px 0; list-style: none; }
.gg-checks li { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.gg-checks b, .gg-checks span { display: block; }
.gg-checks b { margin-bottom: 8px; color: var(--text); font-size: 15px; }
.gg-checks span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.gg-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.gg-choice > div { min-width: 0; padding: 22px; border: 1px solid var(--line-2); border-radius: 20px; background: radial-gradient(140% 140% at 0% 0%, rgba(212,255,58,.065), transparent 55%), var(--panel); }
.gg-choice .gg-pill { display: inline-block; margin-bottom: 18px; padding: 5px 9px; border-radius: 7px; color: #111; background: var(--lime); font: 700 11px/1 var(--mono); }
.gg-choice p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.gg-list { list-style: none; counter-reset: gg; display: grid; gap: 9px; margin: 24px 0; }
.gg-list li { position: relative; padding: 16px 18px 16px 58px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); counter-increment: gg; }
.gg-list li::before { content: counter(gg, decimal-leading-zero); position: absolute; left: 17px; top: 18px; color: var(--lime); font: 700 13px/1 var(--mono); }
.gg-list b { color: var(--text); font-size: 15px; }
.gg-list p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.gg-stage { display: grid; justify-items: center; min-width: 0; width: 100%; margin: 24px 0; padding: 22px; min-height: 245px; border: 1px solid #464345; border-radius: 20px; background: radial-gradient(circle at 30% 25%, #4b3935, transparent 42%), radial-gradient(circle at 82% 75%, #254045, transparent 47%), #191a1d; text-align: center; }
.gg-stage > span { justify-self: start; }
.gg-stage p { align-self: center; max-width: 100%; color: #fff; font-size: clamp(25px, 3vw, 34px); font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; text-shadow: 0 4px 18px #000; }
.gg-stage small { align-self: end; max-width: 100%; color: #d0d0d4; font-size: 12px; overflow-wrap: anywhere; }
.gg-note { margin: 20px 0; padding: 18px 20px; border-left: 3px solid var(--lime); border-radius: 0 14px 14px 0; background: var(--lime-dim); color: var(--body); font-size: 15.5px; line-height: 1.65; }
.gg-note b { color: var(--text); }
.gg-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 25px 0; }
.gg-proof > div { min-width: 0; padding: 21px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); }
.gg-proof > div:nth-child(2) { border-color: rgba(212,255,58,.45); background: linear-gradient(140deg, rgba(212,255,58,.10), transparent 70%), var(--panel); }
.gg-proof small { display: block; margin-bottom: 15px; color: var(--lime); font: 650 10px/1 var(--mono); letter-spacing: .09em; }
.gg-proof p { color: var(--text); font-size: clamp(18px, 2.6vw, 24px); font-weight: 700; line-height: 1.35; }
.gg-proof > span { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.5; }
.gg-rhythm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 25px 0; }
.gg-rhythm > div { min-width: 0; min-height: 157px; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); }
.gg-rhythm span { display: block; margin-bottom: 22px; color: var(--lime); font: 600 10px/1.4 var(--mono); letter-spacing: .07em; }
.gg-rhythm b { color: var(--text); font-size: 16px; line-height: 1.45; }
.gg-jp-audit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 25px 0; }
.gg-jp-audit > div { min-width: 0; padding: 19px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); }
.gg-jp-audit span { display: block; margin-bottom: 18px; color: var(--lime); font: 700 25px/1.3 var(--sample-font); }
.gg-jp-audit b { display: block; margin-bottom: 7px; color: var(--text); font-size: 15px; }
.gg-jp-audit p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.gg-jp-frame { display: grid; place-items: center; gap: 16px; min-height: 270px; margin: 25px 0; padding: 22px; border: 1px solid #344844; border-radius: 22px; background: radial-gradient(circle at 30% 23%, #194746, transparent 44%), radial-gradient(circle at 80% 75%, #40352e, transparent 48%), #15191b; text-align: center; }
.gg-jp-frame > span { justify-self: start; color: var(--lime); font: 600 10px/1 var(--mono); letter-spacing: .08em; }
.gg-jp-frame p { color: #fff; font: 700 clamp(24px, 4vw, 34px)/1.55 var(--sample-font); line-break: strict; overflow-wrap: anywhere; text-shadow: 0 5px 20px #000; }
.gg-jp-frame small { align-self: end; color: #c7d1ce; font-size: 12px; line-height: 1.5; }
.it-guide .gg-demo-screen { background: radial-gradient(circle at 22% 31%, #524332, transparent 40%), radial-gradient(circle at 84% 80%, #354333, transparent 46%), #18191a; }
.ja-guide .gg-demo-screen { background: radial-gradient(circle at 22% 23%, #275352, transparent 40%), radial-gradient(circle at 80% 80%, #38303b, transparent 46%), #17191d; }
.ja-guide .gg-demo-caption { font-size: clamp(26px, 3.4vw, 35px); line-height: 1.48; letter-spacing: 0; line-break: strict; overflow-wrap: anywhere; }
.ja-guide .gg-demo-caption b, .ja-guide .gg-final .final-line b { margin: 0; }
.ar-guide .gg-demo-screen { background: radial-gradient(circle at 24% 22%, #59442d, transparent 42%), radial-gradient(circle at 82% 82%, #244541, transparent 46%), #17191c; }
.ar-guide .gg-demo-caption { direction: rtl; font-size: clamp(27px, 3.4vw, 38px); line-height: 1.65; letter-spacing: 0; }
.ar-guide .gg-final .final-line { direction: rtl; line-height: 1.65; }
.ar-guide .gg-stage p { font-family: var(--sample-font); line-height: 1.65; }
.zh-Hans-guide .gg-demo-screen, .ko-guide .gg-demo-screen { background: radial-gradient(circle at 25% 24%, #274a50, transparent 42%), radial-gradient(circle at 81% 79%, #49343e, transparent 45%), #17191d; }
.th-guide .gg-demo-screen, .vi-guide .gg-demo-screen { background: radial-gradient(circle at 25% 24%, #3b4b2c, transparent 42%), radial-gradient(circle at 81% 79%, #413645, transparent 45%), #17191d; }
.zh-Hans-guide .gg-demo-caption, .ko-guide .gg-demo-caption, .th-guide .gg-demo-caption { letter-spacing: 0; line-height: 1.5; overflow-wrap: anywhere; }
.zh-Hans-guide .gg-demo-caption b, .th-guide .gg-demo-caption b, .zh-Hans-guide .gg-final .final-line b, .th-guide .gg-final .final-line b { margin: 0; }
.th-guide .gg-jp-frame p { line-break: auto; }
.ar-guide .gg-stage p, .zh-Hans-guide .gg-stage p, .ko-guide .gg-stage p, .th-guide .gg-stage p { line-height: 1.55; }
.gg-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0; list-style: none; counter-reset: gg-step; }
.gg-steps li { position: relative; min-width: 0; min-height: 126px; padding: 20px 20px 18px 62px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); counter-increment: gg-step; }
.gg-steps li::before { content: counter(gg-step, decimal-leading-zero); position: absolute; left: 19px; top: 20px; color: var(--lime); font: 700 17px/1 var(--mono); }
.gg-steps b { display: block; margin-bottom: 7px; color: var(--text); font-size: 16px; }
.gg-steps p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.gg-final .final-line { max-width: 850px; margin-left: auto; margin-right: auto; font-family: var(--sample-font); text-wrap: balance; }
.global-guide [lang="ru"], .global-guide [lang="pt"], .global-guide [lang="es"], .global-guide [lang="fr"], .global-guide [lang="de"], .global-guide [lang="it"], .global-guide [lang="ja"], .global-guide [lang="ar"], .global-guide [lang="zh-Hans"], .global-guide [lang="zh"], .global-guide [lang="ko"], .global-guide [lang="tr"], .global-guide [lang="nl"], .global-guide [lang="pl"], .global-guide [lang="uk"], .global-guide [lang="vi"], .global-guide [lang="th"], .global-guide [lang="id"] { font-family: var(--sample-font); }
@media (max-width: 900px) {
  .global-guide .gg-hero { min-height: 0; }
  .gg-demo { width: min(100%, 520px); }
}
@media (max-width: 640px) {
  .global-guide .gg-hero { gap: 34px; padding-top: 28px; padding-bottom: 50px; }
  .global-guide .gg-hero h1 { max-width: 14ch; font-size: clamp(40px, 11.5vw, 54px); }
  .gg-demo { padding: 9px; border-radius: 25px; }
  .gg-demo::before { display: none; }
  .gg-demo-screen { min-height: 270px; padding: 24px; border-radius: 17px; }
  .gg-example { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .gg-example > div { min-height: 0; }
  .gg-example > span { justify-self: center; transform: rotate(90deg); }
  .gg-checks, .gg-choice, .gg-steps { grid-template-columns: minmax(0, 1fr); }
  .gg-proof, .gg-rhythm, .gg-jp-audit { grid-template-columns: minmax(0, 1fr); }
  .gg-proof > span { grid-column: auto; }
  .gg-rhythm > div { min-height: 0; }
  .gg-steps li { min-height: 0; }
  .gg-final .final-line { font-size: clamp(24px, 7vw, 36px); }
}
@media (prefers-reduced-motion: reduce) {
  .gg-demo-caption b { opacity: 1; transition: none; }
}
