/* ===== EDF languages portal — public site ===== */
:root {
  --ink: #1f1c17;
  --ink-2: #3b362d;
  --muted: #6b655a;
  --gold: #c8901e;
  --gold-2: #e8c15a;
  --gold-tint: #fbf4e2;
  --red: #ce1126;
  --line: #e7e2d8;
  --paper: #ffffff;
  --tint: #f3f4f5;
  --ar: "Plex Arabic", "Segoe UI", Tahoma, sans-serif;
  --kufi: "Kufi", "Plex Arabic", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body.site { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--ar); font-size: 17px; line-height: 1.8; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; top: 10px; right: 12px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.wrapx { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.45; }

/* buttons */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font: 600 .98rem/1.4 var(--ar);
  text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.b-lg { padding: 13px 26px; font-size: 1.05rem; }
.b-gold { background: var(--gold); color: #1a1408; }
.b-gold:hover { background: var(--gold-2); }
.b-dark { background: var(--ink); color: #fff; }
.b-dark:hover { background: var(--ink-2); }
.b-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.b-line:hover { background: var(--ink); color: #fff; }
.b-ghost { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.b-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* header */
.sh { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.sh-in { max-width: var(--wrap); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; }
.sh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.sh-brand img { width: 56px; height: 56px; display: block; }
.sh-name { display: grid; line-height: 1.35; }
.sh-name strong { font: 800 1.02rem/1.4 var(--kufi); }
.sh-name span { color: var(--muted); font-size: .86rem; }
.sh-nav-desk { margin-inline-start: auto; }
.sh-menu { display: none; }
.sh-menu summary { display: none; list-style: none; cursor: pointer; }
.sh-menu summary::-webkit-details-marker { display: none; }
.sh-nav { display: flex; gap: 4px; }
.sh-nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.sh-nav a:hover { background: var(--tint); color: var(--ink); }
.sh-actions { display: flex; gap: 8px; }
.sh-actions .b { padding: 8px 16px; font-size: .92rem; }

/* hero */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero-in { max-width: var(--wrap); margin: 0 auto; padding: 64px 20px 72px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-kicker { color: var(--gold-2); font-weight: 600; margin: 0 0 14px; font-size: .95rem; }
.hero h1 { font: 800 clamp(2rem, 4.6vw, 3.25rem)/1.45 var(--kufi); letter-spacing: 0; max-width: 16ch; }
.hero-lead { color: rgba(255,255,255,.82); font-size: 1.12rem; max-width: 52ch; margin: 18px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.greet { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(232,193,90,.35); }
.greet-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 4px; border-bottom: 1px solid rgba(232,193,90,.35); }
.greet-word { font: 800 clamp(2.6rem, 6.4vw, 4.9rem)/1.1 var(--kufi); color: var(--gold-2); letter-spacing: -.01em; }
.greet-past .greet-word { color: transparent; -webkit-text-stroke: 1.5px rgba(232,193,90,.75); }
.greet-open .greet-word { color: #fff; }
.greet-meta { display: grid; justify-items: start; gap: 6px; text-align: start; }
.greet-name { font-weight: 600; font-size: 1.02rem; }
.flagline { display: grid; grid-template-rows: repeat(3, 5px); }
.flagline span:nth-child(1) { background: var(--red); }
.flagline span:nth-child(2) { background: #fff; }
.flagline span:nth-child(3) { background: #000; }

/* chips */
.chip { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; line-height: 1.7; }
.chip-open { background: #1e7a46; color: #fff; }
.chip-current { background: var(--gold); color: #1a1408; }
.chip-past { background: rgba(127,120,107,.18); color: inherit; border: 1px solid rgba(127,120,107,.45); }
.chip-upcoming { background: transparent; border: 1px dashed currentColor; }

/* facts */
.facts { padding-top: 36px; padding-bottom: 8px; }
.facts-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.fact { padding: 20px 18px; display: flex; flex-direction: column-reverse; gap: 2px; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact dd { margin: 0; font: 800 1.75rem/1.3 var(--kufi); color: var(--ink); }
.fact dt { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.facts-note { color: var(--muted); font-size: .8rem; margin: 8px 0 0; }

/* sections */
.sec { padding-top: 64px; padding-bottom: 64px; }
.sec-tint { background: var(--tint); }
.sec-head { max-width: 64ch; margin-bottom: 28px; }
.sec-head h2, .about h2, .market h2 { font: 700 1.85rem/1.45 var(--kufi); margin-bottom: 8px; }
.sec-head p { color: var(--muted); margin: 0; }
.group-h { font-size: 1.05rem; font-weight: 700; color: var(--ink-2); margin: 28px 0 12px; padding-inline-start: 12px; border-inline-start: 4px solid var(--gold); line-height: 1.5; }
.empty { border: 1.5px dashed var(--line); border-radius: 14px; padding: 22px 24px; background: #fff; max-width: 720px; }
.empty p { margin: 0 0 6px; }
.empty p + p { color: var(--muted); margin-bottom: 14px; }

/* course cards */
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.course { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 20px; display: flex; flex-direction: column; }
.course-current { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.course-past { background: #fbfbfa; }
.course-empty { border-style: dashed; border-width: 1.5px; background: #fff; }
.course-empty h4 { font-size: 1.15rem; }
.course-greet { position: absolute; inset-inline-end: -6px; bottom: -14px; font: 800 4.6rem/1 var(--kufi); color: rgba(200,144,30,.09); pointer-events: none; }
.course-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.course h4 { font: 700 1.3rem/1.5 var(--kufi); }
.course-native { font: 500 .95rem var(--ar); color: var(--muted); margin-inline-start: 6px; }
.course-date { color: var(--muted); font-size: .88rem; margin: 2px 0 8px; }
.course-sum { margin: 0 0 14px; }
.course-dl { margin: 0 0 18px; display: grid; gap: 8px; position: relative; }
.course-dl div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; font-size: .92rem; }
.course-dl dt { color: var(--muted); }
.course-dl dd { margin: 0; }
.course-act { margin-top: auto; position: relative; }
.course-closed { color: var(--muted); font-size: .9rem; }
.flag { display: inline-block; width: 40px; height: 27px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.flag-fr { background: linear-gradient(90deg, #1f4f9a 0 33.3%, #fff 33.3% 66.6%, #c8102e 66.6%); }
.flag-it { background: linear-gradient(90deg, #009246 0 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%); }
.flag-de { background: linear-gradient(180deg, #111 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.flag-es { background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }

/* steps (a real sequence) */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.steps li { counter-increment: s; padding: 0 0 0 24px; position: relative; }
.steps li + li { padding-inline-start: 24px; border-inline-start: 1px solid #d9dbdd; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold-2);
  font: 800 1.05rem/1 var(--kufi); margin-bottom: 14px; }
.steps h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* about */
.about { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; }
.about-text p { max-width: 68ch; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 26px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 11px; height: 11px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.about-logo { margin: 0; display: grid; place-items: center; }

/* market */
.market { background: var(--ink); color: #fff; }
.market-in { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; }
.market-text p { color: rgba(255,255,255,.84); max-width: 64ch; }
.tri { position: relative; margin: 0; width: 100%; max-width: 380px; aspect-ratio: 360 / 330; justify-self: center; }
.tri svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tri-l { position: absolute; font-weight: 600; font-size: .92rem; line-height: 1.5; text-align: center; width: 9.5em; }
.tri-top { top: -8%; left: 50%; transform: translateX(-50%); }
.tri-right { right: -6%; top: 90%; }
.tri-left { left: -6%; top: 90%; color: var(--gold-2); font-weight: 700; }
.tri-here { display: table; margin: 4px auto 0; font-size: .76rem; font-weight: 600; background: var(--red); color: #fff; padding: 0 10px; border-radius: 99px; }

/* quote */
.quote-wrap { padding-top: 56px; padding-bottom: 8px; }
.quote { margin: 0; max-width: 820px; padding: 4px 0 4px; padding-inline-start: 28px; border-inline-start: 5px solid var(--red); }
.quote p { font: 700 clamp(1.3rem, 2.6vw, 1.75rem)/1.6 var(--kufi); margin: 0 0 10px; }
.quote footer { color: var(--muted); }

/* faq */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.3rem/1 var(--kufi); color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 72ch; }

/* notes / footer */
.note { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--gold-tint); }
.sf { background: var(--ink); color: rgba(255,255,255,.8); margin-top: 24px; }
.sf-in { max-width: var(--wrap); margin: 0 auto; padding: 32px 20px 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.sf-brand { display: flex; align-items: center; gap: 14px; }
.sf-brand img { background: #fff; border-radius: 50%; padding: 4px; }
.sf-brand p { margin: 0; line-height: 1.6; font-size: .92rem; }
.sf-brand strong { color: #fff; }
.sf-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sf-links a { text-decoration: none; font-size: .92rem; }
.sf-links a:hover { color: var(--gold-2); }
.sf-copy { max-width: var(--wrap); margin: 0 auto; padding: 12px 20px 24px; font-size: .8rem; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.1); }

/* simple inner pages (login / register placeholders) */
.page { max-width: 560px; margin: 48px auto; padding: 0 20px; }
.page h1 { font: 800 1.7rem/1.5 var(--kufi); margin-bottom: 10px; }
.page .lead { color: var(--muted); }
.choice { display: grid; gap: 12px; margin-top: 22px; }
.choice a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.choice a:hover { border-color: var(--gold); }
.choice small { display: block; color: var(--muted); }

/* responsive */
@media (max-width: 1020px) {
  .sh-nav a { padding: 8px 8px; font-size: .9rem; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; padding: 44px 20px 52px; }
  .market-in, .about { grid-template-columns: 1fr; }
  .about-logo { order: -1; justify-self: start; }
  .about-logo img { width: 140px; height: 140px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-inline-start: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .sh-in { gap: 10px; }
  .sh-nav-desk { display: none; }
  .sh-menu { display: block; order: 3; margin-inline-start: 0; position: static; }
  .sh-brand { min-width: 0; flex: 0 1 auto; gap: 8px; }
  .sh-name { min-width: 0; }
  .sh-actions .b { padding: 7px 12px; font-size: .88rem; }
  .sh-menu summary { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
  .sh-menu summary span { display: block; width: 20px; height: 2px; background: var(--ink); }
  .sh-menu .sh-nav { display: none; }
  .sh-menu[open] .sh-nav { display: grid; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 14px; box-shadow: 0 12px 24px rgba(31,28,23,.08); }
  .sh-menu[open] .sh-nav a { padding: 10px 4px; border-bottom: 1px solid var(--tint); }
  .sh-actions { order: 2; margin-inline-start: auto; }
  .sh-menu summary { padding: 9px 9px; }
  .sh-name span { display: none; }
}
@media (max-width: 560px) {
  body.site { font-size: 16px; }
  .sh-brand img { width: 44px; height: 44px; }
  .sh-name strong { font-size: .86rem; line-height: 1.35; }
  .sh-in { padding-inline: 14px; }
  .sh-actions .b-gold { display: none; }
  .hero-cta .b { flex: 1 1 100%; }
  .greet-row { padding: 12px 2px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { border-inline-start: 0; padding-inline-start: 0; }
  .courses { grid-template-columns: 1fr; }
  .sec { padding-top: 48px; padding-bottom: 48px; }
  .tri { max-width: 300px; margin-top: 24px; }
  .tri-l { font-size: .82rem; width: 8em; }
  .fact dd { font-size: 1.45rem; }
}

.flag-en { background: linear-gradient(180deg, #012169 0 100%); }
.flag-ru { background: linear-gradient(180deg, #fff 0 33.3%, #0039a6 33.3% 66.6%, #d52b1e 66.6%); }
.flag-tr { background: #e30a17; }
.flag-pt { background: linear-gradient(90deg, #046a38 0 40%, #da291c 40%); }
.flag-zh { background: #de2910; }
.flag-ja { background: radial-gradient(circle at 50% 50%, #bc002d 0 28%, #fff 29%); }
.flag-ko { background: radial-gradient(circle at 50% 50%, #cd2e3a 0 22%, #fff 23%); }
.flag-generic { background: linear-gradient(135deg, #c8901e, #e8c15a); }

/* ===== accounts: forms and the account page ===== */
.inline { display: inline; margin: 0; }
.sh-actions button.b { cursor: pointer; font-family: var(--ar); }
.page-wide { max-width: 980px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; margin-top: 18px; }
.f { display: grid; gap: 16px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.f input:not([type=checkbox]), .f select { font: 400 1rem/1.5 var(--ar); padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.f input:focus, .f select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,144,30,.18); }
.f input[dir=ltr] { text-align: left; }
.f .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.f .err { font-weight: 600; color: #b3261e; font-size: .86rem; }
.f .has-err input, .f .has-err select { border-color: #b3261e; }
.f .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.f .check input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--gold); }
.f .b { width: 100%; cursor: pointer; border: 1px solid transparent; }
.f-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .92rem; margin-top: 14px; }
.note-error { background: #fdecea; border-color: #f3b8b2; }
.note-success { background: #e8f5ec; border-color: #b9e2cb; }
.acc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.acc-head h1 { margin: 0; }
.acc-meta { color: var(--muted); font-size: .92rem; }
.acc-sec { margin-top: 32px; }
.acc-sec > h2 { font: 800 1.2rem/1.5 var(--kufi); margin: 0 0 12px; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pcard { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.pcard-top { display: flex; align-items: center; gap: 12px; }
.pcard h3 { margin: 0; font-size: 1.1rem; }
.pcard .state { color: var(--muted); font-size: .92rem; margin: 0; }
.pcard .b { align-self: flex-start; margin-top: auto; }
.pcard-past { background: #fbfbfa; }
.lvl { display: inline-block; font-weight: 700; background: var(--ink); color: #fff; border-radius: 8px; padding: 1px 9px; direction: ltr; }
@media (max-width: 560px) {
  .f-row { grid-template-columns: 1fr; }
  .fcard { padding: 20px 16px; }
  .sh-actions .b-gold.sh-keep { display: inline-flex; }
  .sh-actions .sh-out { display: none; }
}
.mt { margin-top: 14px; }
.page-mid { max-width: 720px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.push-box { border: 1px solid #c9d3e0; background: #f4f8fd; border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1rem; }
.push-box.push-is-on { background: #f3faf5; border-color: #bfe0c8; }
.push-msg { margin: 0 0 .5rem; font-size: .95rem; }
.push-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.push-btns button { font: inherit; border: 1px solid #2d6cb5; background: #fff; color: #2d6cb5; border-radius: 999px; padding: .4rem .9rem; cursor: pointer; }
.push-btns .push-on, .push-btns .push-install { background: #2d6cb5; color: #fff; }
.push-btns button[hidden] { display: none; }
.push-box.push-is-on .push-msg { margin: 0 0 .3rem; }

.install h2 { font: 800 1.2rem/1.5 var(--kufi); margin: 0 0 10px; }
.inst-list { margin: 6px 0 18px; padding-inline-start: 22px; color: var(--ink-2); }
.inst-tabs { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.inst-tabs a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; background: #fff; }
.inst-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.inst-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 0 0 16px; scroll-margin-top: 16px; }
.inst-card.inst-mine { border: 2px solid var(--gold); box-shadow: 0 6px 20px rgba(200,144,30,.12); }
.inst-steps { margin: 0; padding-inline-start: 22px; }
.inst-steps li { margin: 0 0 10px; line-height: 1.8; }
.inst-note { display: block; color: var(--muted); font-size: .92rem; margin-top: 4px; }
.install .url { font-weight: 700; }
.install .ico { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.install .en { color: var(--muted); font-size: .9rem; }
.inst-faq p { margin: 0 0 10px; line-height: 1.8; }
.push-help { align-self: center; font-size: .9rem; margin-inline-start: .3rem; }

/* ---------- user guides ---------- */
.guide .g-body { line-height: 1.9; }
.guide .g-body h2 { margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); scroll-margin-top: 16px; }
.guide .g-body h3 { margin: 18px 0 6px; }
.guide .g-body ul, .guide .g-body ol { padding-inline-start: 22px; margin: 6px 0 12px; }
.guide .g-body li { margin: 3px 0; }
.guide .g-body li ul, .guide .g-body li ol { margin: 4px 0; }
.guide .g-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.guide .g-table th, .guide .g-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.guide .g-table th { background: #faf7f0; white-space: nowrap; }
.guide .table-wrap { overflow-x: auto; margin: 8px 0 16px; }
.guide .g-code { background: #1f1c17; color: #f5efe2; padding: 12px 14px; border-radius: 8px; overflow-x: auto; font-size: .9em; line-height: 1.6; text-align: left; }
.guide code { font-family: ui-monospace, Consolas, monospace; }
.guide .g-toc { background: #faf7f0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; }
.guide .g-toc ol { margin: 6px 0 0; padding-inline-start: 22px; }
.guide .g-toc a { text-decoration: none; }
.guide .g-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.guide .g-tabs a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: #fff; color: inherit; }
.guide .g-tabs a.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.guide .g-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.guide .g-head .spacer { flex: 1; }
.guide .g-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.guide .g-layout .g-toc { position: sticky; top: 12px; }
.guide .g-actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .guide .g-layout { grid-template-columns: 1fr; } .guide .g-layout .g-toc { position: static; } }
@media print {
  .topbar, .course-switch, .admin-nav, .sh, .sf, .g-tabs, .g-head .btn, .g-actions, .skip { display: none !important; }
  .guide .g-layout { display: block; }
  .guide .g-body h2 { break-after: avoid; }
  .guide .g-table tr, .guide .g-code { break-inside: avoid; }
}
