/* ==========================================================================
   getkmspico.com — design system
   No external requests. System fonts. Light + dark. WCAG AA contrast.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --brand-orange: #e8710a;      /* AA on white */
  --brand-orange-bright: #ff8c1a;
  --brand-blue: #1877cc;        /* AA on white */
  --brand-blue-bright: #2a9df4;
  --brand-red: #d93a45;
  --brand-red-dark: #b02932;

  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-panel: #ffffff;
  --bg-code: #f0f2f5;
  --border: #e2e5ea;
  --border-strong: #cfd4dc;

  --text: #1d2733;
  --text-soft: #4a5563;
  --text-muted: #667085;
  --heading: #14202e;

  --link: #1666b8;
  --link-hover: #0f4e8f;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, .08), 0 2px 4px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);

  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1120px;
  --measure: 72ch;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-orange: #ff9a3c;
    --brand-blue: #59b0f7;
    --bg: #0e141b;
    --bg-soft: #141c26;
    --bg-panel: #161f2b;
    --bg-code: #1b2532;
    --border: #24303e;
    --border-strong: #33414f;
    --text: #e4e9ef;
    --text-soft: #b9c2cd;
    --text-muted: #8b97a6;
    --heading: #f2f5f8;
    --link: #6bb4f8;
    --link-hover: #9acbfb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, .45);
    --shadow-lg: 0 14px 36px rgba(0, 0, 0, .55);
  }
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin-top: 1.6em; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); margin-top: 1.4em; }
p { margin: 0 0 1.1em; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
strong { font-weight: 700; color: var(--heading); }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin: .35em 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
code, kbd {
  font-family: var(--mono); font-size: .9em;
  background: var(--bg-code); padding: .12em .4em; border-radius: 5px;
  border: 1px solid var(--border);
}

:focus-visible { outline: 3px solid var(--brand-blue-bright); outline-offset: 2px; border-radius: 3px; }

/* ---- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  background: var(--brand-blue); color: #fff; padding: .6rem 1rem;
  border-radius: 8px; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---- Layout ------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
main { display: block; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--soft { background: var(--bg-soft); }
.prose { max-width: var(--measure); }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 1.5rem 0; }
.lead { font-size: 1.2rem; color: var(--text-soft); }
.center { text-align: center; }
.muted { color: var(--text-muted); }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text); padding: .5rem .7rem; border-radius: 8px;
  font: inherit; font-size: .95rem; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-menu { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: inline-block; padding: .5rem .8rem; border-radius: 8px;
  color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.nav-menu a:hover { color: var(--heading); background: var(--bg-soft); }
.nav-menu a[aria-current="page"] { color: var(--brand-blue); background: color-mix(in srgb, var(--brand-blue) 12%, transparent); }
.nav-cta a {
  background: var(--brand-red); color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.nav-cta a:hover { background: var(--brand-red-dark); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--bg-panel); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: .6rem clamp(1rem, 4vw, 2rem) 1rem;
  }
  .nav-menu[hidden] { display: none; }
  .nav-menu a { padding: .7rem .8rem; }
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-red); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--brand-red-dark); color: #fff; }
.btn-secondary { background: var(--bg); color: var(--heading); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-soft); color: var(--heading); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at 15% -10%, color-mix(in srgb, var(--brand-orange) 16%, transparent), transparent 60%),
    radial-gradient(1000px 400px at 90% 0%, color-mix(in srgb, var(--brand-blue) 16%, transparent), transparent 55%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; color: var(--text-muted); font-size: .95rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-meta svg { width: 18px; height: 18px; color: var(--brand-blue); flex: none; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } }

/* The red activation button motif */
.activator {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(180deg, #2b3542, #1b232d);
  border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid #0c1116;
  padding: 2rem;
}
.activator .big-button {
  width: min(240px, 55%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ff7a7f, var(--brand-red) 45%, var(--brand-red-dark) 78%);
  box-shadow:
    inset 0 -10px 24px rgba(0,0,0,.35),
    inset 0 8px 18px rgba(255,255,255,.35),
    0 14px 30px rgba(0,0,0,.45);
  display: grid; place-items: center; color: #fff; text-align: center;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 1.1rem;
  border: 6px solid rgba(0,0,0,.15);
}

/* ---- Cards / grids ------------------------------------------------------ */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .1s ease, box-shadow .15s ease, border-color .15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); color: inherit; }
.feature { text-align: center; }
.feature .icon {
  width: 54px; height: 54px; margin: 0 auto .8rem; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-orange-bright), var(--brand-orange));
}
.feature .icon svg { width: 28px; height: 28px; }
.feature.blue .icon { background: linear-gradient(135deg, var(--brand-blue-bright), var(--brand-blue)); }
.feature.red .icon { background: linear-gradient(135deg, #ff6b73, var(--brand-red)); }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--text-soft); font-size: .97rem; margin-bottom: 0; }

/* Article card */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .tag {
  align-self: flex-start; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 12%, transparent);
  padding: .25rem .55rem; border-radius: 6px; margin-bottom: .7rem;
}
.post-card h3 { font-size: 1.18rem; margin: 0 0 .4rem; }
.post-card p { color: var(--text-soft); font-size: .96rem; }
.post-card .read { margin-top: auto; padding-top: .6rem; color: var(--brand-blue); font-weight: 700; font-size: .92rem; }

/* ---- Tables ------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: .98rem; background: var(--bg-panel); }
caption { text-align: left; color: var(--text-muted); font-size: .9rem; padding: .6rem .9rem; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--bg-soft); color: var(--heading); font-weight: 700; position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--brand-blue) 5%, transparent); }

/* ---- Download panel ----------------------------------------------------- */
.dl-panel {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(1.4rem, 3vw, 2rem);
}
.dl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem;
  padding: .35rem .7rem; border-radius: 999px;
  background: color-mix(in srgb, #22a06b 15%, transparent); color: #1a7d52;
}
@media (prefers-color-scheme: dark) { .badge { color: #55d6a0; } }
.mirror-list { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.mirror {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem;
  padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft);
}
.mirror .m-num {
  width: 38px; height: 38px; flex: none; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand-blue-bright), var(--brand-blue));
}
.mirror .m-body { flex: 1 1 200px; }
.mirror .m-body strong { display: block; }
.mirror .m-body span { color: var(--text-muted); font-size: .9rem; }
.callout {
  border-left: 4px solid var(--brand-orange); background: color-mix(in srgb, var(--brand-orange) 8%, transparent);
  padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.4rem 0;
}
.callout.info { border-left-color: var(--brand-blue); background: color-mix(in srgb, var(--brand-blue) 8%, transparent); }
.callout.warn { border-left-color: var(--brand-red); background: color-mix(in srgb, var(--brand-red) 8%, transparent); }
.callout p:last-child { margin-bottom: 0; }
.pass-box {
  display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  background: var(--bg-code); border: 1px dashed var(--border-strong);
  padding: .5rem .8rem; border-radius: 8px; font-family: var(--mono);
}
.pass-box b { color: var(--brand-red); }

/* ---- Steps -------------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.4rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange-bright), var(--brand-orange));
  color: #fff; font-weight: 800; display: grid; place-items: center;
}
.steps > li h3 { margin: .15rem 0 .3rem; font-size: 1.15rem; }
.steps > li p { margin-bottom: 0; color: var(--text-soft); }

/* ---- FAQ (details) ------------------------------------------------------ */
.faq { display: grid; gap: .7rem; }
.faq details {
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-panel); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--heading);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand-blue); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq-body { padding: 1rem 1.2rem; color: var(--text-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---- Breadcrumbs -------------------------------------------------------- */
.crumbs { font-size: .9rem; color: var(--text-muted); padding-block: 1rem 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li::after { content: "/"; margin-left: .4rem; color: var(--border-strong); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--text-muted); }

/* ---- Article meta ------------------------------------------------------- */
.article-head { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 1.8rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--text-muted); font-size: .92rem; }
.toc {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.1rem 1.3rem; margin: 0 0 1.8rem;
}
.toc strong { display: block; margin-bottom: .5rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.toc ol { margin: 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---- Video facade ------------------------------------------------------- */
.video-facade {
  position: relative; aspect-ratio: 16 / 9; border: 0; padding: 0; width: 100%;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, #22303f, #131a22); box-shadow: var(--shadow-md);
  display: grid; place-items: center;
}
.video-facade .play {
  width: 78px; height: 78px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand-red) 92%, #000); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .12s ease;
}
.video-facade:hover .play { transform: scale(1.08); }
.video-facade .play svg { width: 34px; height: 34px; color: #fff; margin-left: 4px; }
.video-facade .vlabel { position: absolute; bottom: 14px; left: 16px; color: #dfe6ee; font-weight: 600; font-size: .95rem; }
.video-frame { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-blue), #0f5aa8);
  color: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center; box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #e6eefb; max-width: 60ch; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--brand-blue); }
.cta-band .btn-primary:hover { background: #eef4fb; color: var(--brand-blue); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding-block: 3rem 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .4rem 0; }
.site-footer a { color: var(--text-soft); text-decoration: none; font-size: .96rem; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.footer-brand img { height: 38px; margin-bottom: .8rem; }
.footer-brand p { color: var(--text-muted); font-size: .92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.4rem; color: var(--text-muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; }
.disclaimer { color: var(--text-muted); font-size: .85rem; }

/* ---- Back to top -------------------------------------------------------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-blue); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, transform .12s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-2px); }
.to-top svg { width: 22px; height: 22px; }

/* ---- Social share bar --------------------------------------------------- */
.share-section { padding-block: 1.5rem 3rem; }
.share-bar {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 2rem;
}
.share-label { font-weight: 700; color: var(--text-soft); }
.share-btns { display: flex; gap: .55rem; flex-wrap: wrap; }
.share-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; border: 0; cursor: pointer; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .1s ease, filter .15s ease;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff; }
.share-btn svg { width: 20px; height: 20px; }
.share-copy { position: relative; font: inherit; }
.share-copy.copied::after {
  content: attr(data-copied); position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); background: var(--heading); color: var(--bg);
  font-size: .75rem; font-weight: 600; padding: .28rem .55rem; border-radius: 6px; white-space: nowrap;
}
[dir="rtl"] .share-bar { direction: rtl; }

/* ---- Language switcher --------------------------------------------------- */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .7rem; border: 1px solid var(--border-strong); border-radius: 8px;
  color: var(--text-soft); font-weight: 600; font-size: .95rem; background: var(--bg);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary svg { width: 18px; height: 18px; }
.lang-switch summary .chev { width: 14px; height: 14px; transition: transform .15s; }
.lang-switch[open] summary .chev { transform: rotate(180deg); }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 1100;
  list-style: none; margin: 0; padding: .4rem; min-width: 168px;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-md); display: grid; gap: 2px;
}
.lang-switch li { margin: 0; }
.lang-switch ul a {
  display: block; padding: .5rem .7rem; border-radius: 7px; text-decoration: none;
  color: var(--text-soft); font-size: .95rem; font-weight: 600;
}
.lang-switch ul a:hover { background: var(--bg-soft); color: var(--heading); }
.lang-switch ul a[aria-current="true"] { color: var(--brand-blue); background: color-mix(in srgb, var(--brand-blue) 12%, transparent); }
.nav-right { display: flex; align-items: center; gap: .6rem; }
@media (max-width: 860px) {
  .lang-switch ul { right: auto; left: 0; }
}

/* ---- RTL (Urdu) ---------------------------------------------------------- */
[dir="rtl"] { direction: rtl; }
[dir="rtl"] ul, [dir="rtl"] ol { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .steps > li { padding-left: 0; padding-right: 3.4rem; }
[dir="rtl"] .steps > li::before { left: auto; right: 0; }
[dir="rtl"] .callout { border-left: 0; border-right: 4px solid var(--brand-orange); border-radius: 10px 0 0 10px; }
[dir="rtl"] .callout.info { border-right-color: var(--brand-blue); }
[dir="rtl"] .callout.warn { border-right-color: var(--brand-red); }
[dir="rtl"] .crumbs li::after { margin-left: 0; margin-right: .4rem; }
[dir="rtl"] .to-top { right: auto; left: 18px; }
[dir="rtl"] .lang-switch ul { right: auto; left: 0; }
[dir="rtl"] .article-head .article-meta,
[dir="rtl"] .hero-meta { direction: rtl; }
[dir="rtl"] th, [dir="rtl"] td, [dir="rtl"] caption { text-align: right; }
[dir="rtl"] .skip-link { left: auto; right: 8px; }
[dir="rtl"] .prose, [dir="rtl"] .lead { text-align: right; }

/* ---- Utilities ---------------------------------------------------------- */
.stack > * + * { margin-top: 1.1rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
