/* ==========================================================================
   PSeInt Hub — site stylesheet
   Palette taken from the PSeInt logo: royal blue, parchment yellow and the
   dark-red flow arrows, used lightly over white / light-gray surfaces.
   ========================================================================== */
:root {
  --blue-50: #eef3ff;
  --blue-100: #dde7ff;
  --blue-200: #b9ccff;
  --blue-500: #2f5be0;
  --blue-600: #1f47c9;
  --blue-700: #1a3aa3;
  --indigo-600: #4338ca;
  --cream-50: #fffbea;
  --cream-100: #fff6c7;
  --cream-300: #f4dd7a;
  --cream-600: #b8962e;
  --red-600: #9b1c1c;
  --red-50: #fdeeee;
  --green-600: #15803d;

  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-tint: #f0f4ff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e3e8f2;
  --border-strong: #cfd7e6;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #5b6b84;
  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --primary-soft: var(--blue-50);
  --accent: var(--red-600);
  --highlight: var(--cream-100);
  --focus: #f59e0b;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 6px 24px -8px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 60px -20px rgba(26, 58, 163, .35);
  --container: 1200px;
  --header-h: 68px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* editor tokens (light) */
  --ed-bg: #ffffff;
  --ed-gutter: #f6f8fc;
  --ed-gutter-text: #94a3b8;
  --ed-text: #1e293b;
  --ed-kw: #1f47c9;
  --ed-type: #7c3aed;
  --ed-str: #a15c00;
  --ed-num: #0f766e;
  --ed-com: #7b8794;
  --ed-fn: #9b1c1c;
  --ed-op: #be185d;
  --ed-bool: #0369a1;
  --ed-exec: #fff3c4;
  --ed-err: #fde2e2;
  --ed-sel: rgba(47, 91, 224, .22);
  --con-bg: #0f172a;
  --con-text: #e2e8f0;
}

[data-theme="dark"] {
  --bg: #0b1020;
  --bg-soft: #0f1529;
  --bg-tint: #121b36;
  --surface: #131b30;
  --surface-2: #18213a;
  --border: #253152;
  --border-strong: #33416a;
  --text: #e8ecf7;
  --text-2: #c4cce0;
  --muted: #94a0bd;
  --primary: #7b98ff;
  --primary-hover: #9db2ff;
  --primary-soft: #1a2547;
  --accent: #f08a8a;
  --highlight: #3a3418;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 28px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);

  --ed-bg: #0f1629;
  --ed-gutter: #0c1324;
  --ed-gutter-text: #55627f;
  --ed-text: #dbe3f5;
  --ed-kw: #8fa8ff;
  --ed-type: #c4a5ff;
  --ed-str: #f2c97d;
  --ed-num: #5fd4c4;
  --ed-com: #6b7a99;
  --ed-fn: #ff9b9b;
  --ed-op: #f58ac0;
  --ed-bool: #7cc7f2;
  --ed-exec: #3b3413;
  --ed-err: #4a1d24;
  --ed-sel: rgba(123, 152, 255, .3);
  --con-bg: #070b16;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--text); letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); }
:not(pre) > code { background: var(--primary-soft); color: var(--text); padding: .1em .38em; border-radius: 6px; font-size: .9em; }
kbd { background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 .35em; font-size: .82em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: 88px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.07rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.12rem; color: var(--text-2); }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px;
  font: 600 .98rem/1 var(--font); color: var(--b-fg); background: var(--b-bg); border: 1px solid var(--b-bd);
  border-radius: 12px; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--b-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--primary { --b-bg: var(--blue-600); --b-fg: #fff; --b-bd: var(--blue-600); box-shadow: 0 8px 20px -8px rgba(31, 71, 201, .7); }
.btn--primary:hover { --b-bg: var(--blue-700); --b-bd: var(--blue-700); }
.btn--cream { --b-bg: var(--cream-100); --b-fg: #3b2f05; --b-bd: var(--cream-300); }
.btn--cream:hover { --b-bg: #ffef9e; }
.btn--ghost { --b-bg: transparent; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btn--block { width: 100%; }
[data-theme="dark"] .btn--primary { --b-bg: #3d63e6; --b-bd: #3d63e6; }
[data-theme="dark"] .btn--cream { --b-bg: #f4dd7a; --b-fg: #241c00; --b-bd: #f4dd7a; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 4px 18px -12px rgba(15, 23, 42, .3); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.14rem; letter-spacing: -.02em; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); object-fit: contain; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; line-height: 1; margin-top: 3px; }
.brand-name b { color: var(--primary); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .94rem; transition: background .15s, color .15s; }
.site-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.site-nav a.is-active, .site-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-grid; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 10px 20px 18px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; margin: 0; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
  .header-actions { margin-left: auto; }
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }

/* ---------- hero with sliding backgrounds ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; isolation: isolate; min-height: 640px; display: flex; align-items: center; }
.hero-slider { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #eaf0ff; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center right; transform: translateX(-100%); transition: transform 1.4s cubic-bezier(.65, .05, .25, 1); will-change: transform; }
.hero-slide.is-active { transform: translateX(0); }
.hero-slide.is-leaving { transform: translateX(100%); }
.hero-slide:not(.is-active):not(.is-leaving) { transition: none; }
.hero-slide.is-active { animation: hero-pan 7.5s linear both; }
@keyframes hero-pan { from { background-position: 46% 50%; } to { background-position: 54% 50%; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .93) 40%, rgba(255, 255, 255, .62) 64%, rgba(255, 255, 255, .3) 100%); }
[data-theme="dark"] .hero::before { background: linear-gradient(90deg, rgba(11, 16, 32, .97) 0%, rgba(11, 16, 32, .9) 40%, rgba(11, 16, 32, .6) 65%, rgba(11, 16, 32, .35) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { background: linear-gradient(90deg, var(--blue-600), var(--indigo-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .hero h1 .accent { background: linear-gradient(90deg, #8fa8ff, #b5a6ff); -webkit-background-clip: text; background-clip: text; }
.hero .lead { max-width: 600px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: .84rem; font-weight: 600; color: var(--text-2); margin-bottom: 20px; }
.hero-badge span { background: var(--cream-100); color: #5a4300; border-radius: 999px; padding: 2px 9px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .9rem; font-weight: 500; }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 17px; height: 17px; color: var(--green-600); }
.hero-dots { display: flex; gap: 8px; margin-top: 30px; }
.hero-dots button { width: 30px; height: 6px; border-radius: 6px; border: 0; padding: 0; background: var(--border-strong); cursor: pointer; transition: background .2s, width .2s; }
.hero-dots button[aria-current="true"] { background: var(--primary); width: 46px; }

.preview-card { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.preview-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: .82rem; font-weight: 600; color: var(--muted); }
.preview-top i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; display: inline-block; }
.preview-top i:nth-child(2) { background: #fbbf24; }
.preview-top i:nth-child(3) { background: #34d399; margin-right: 8px; }
.preview-top .run-chip { margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; background: var(--blue-600); color: #fff; padding: 4px 10px; border-radius: 8px; text-decoration: none; }
.preview-code { margin: 0; padding: 16px 18px; font-size: .86rem; line-height: 1.7; background: var(--ed-bg); color: var(--ed-text); overflow: auto; }
.preview-out { background: var(--con-bg); color: var(--con-text); font: .84rem/1.6 var(--mono); padding: 12px 18px; }
.preview-out .p { color: #8fd18f; }
.preview-out .u { color: #f4dd7a; }

@media (max-width: 960px) {
  .hero { min-height: 0; padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .9)); }
  [data-theme="dark"] .hero::before { background: linear-gradient(180deg, rgba(11, 16, 32, .95), rgba(11, 16, 32, .9)); }
  .hero-slide { background-position: 72% center; }
}

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-200); }
[data-theme="dark"] .card:hover { border-color: var(--border-strong); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.icon-tile { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: var(--primary-soft); color: var(--primary); }
.icon-tile svg { width: 25px; height: 25px; }
.icon-tile.is-cream { background: var(--cream-100); color: #7a5b00; }
.icon-tile.is-red { background: var(--red-50); color: var(--red-600); }
[data-theme="dark"] .icon-tile.is-cream { background: #3a3418; color: #f4dd7a; }
[data-theme="dark"] .icon-tile.is-red { background: #3a1c22; color: #ff9b9b; }

/* ---------- download cards ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dl-card.is-recommended { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow); }
.dl-card.is-recommended::before { content: "Recommended for you"; position: absolute; top: -12px; left: 20px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.dl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dl-head .icon-tile { margin: 0; }
.dl-head h3 { margin: 0; font-size: 1.12rem; }
.dl-head p { margin: 0; font-size: .84rem; color: var(--muted); }
.spec { list-style: none; padding: 0; margin: 0 0 18px; font-size: .9rem; }
.spec li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.spec li span:first-child { color: var(--muted); }
.spec li span:last-child { font-weight: 600; text-align: right; }
.dl-actions { margin-top: auto; display: grid; gap: 8px; }
.dl-alt { font-size: .84rem; text-align: center; }
.dl-state { font-size: .78rem; text-align: center; color: var(--muted); min-height: 1.2em; }
.dl-state.is-ok { color: var(--green-600); }
.dl-state.is-warn { color: #b45309; }
[data-theme="dark"] .dl-state.is-warn { color: #fbbf24; }
.btn.is-missing { opacity: .7; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--cream-50); border: 1px solid var(--cream-300); color: #4a3a05; font-size: .94rem; }
.notice svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.notice p:last-child { margin: 0; }
[data-theme="dark"] .notice { background: #2a2612; border-color: #5c5020; color: #f3e6b0; }
.notice--info { background: var(--primary-soft); border-color: var(--blue-200); color: var(--text-2); }
[data-theme="dark"] .notice--info { border-color: var(--border-strong); color: var(--text-2); }

/* ---------- IDE ---------- */
.pse-ide { --ide-h: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.pse-ide.ide--dark { --ed-bg: #0f1629; --ed-gutter: #0c1324; --ed-gutter-text: #55627f; --ed-text: #dbe3f5; --ed-kw: #8fa8ff; --ed-type: #c4a5ff; --ed-str: #f2c97d; --ed-num: #5fd4c4; --ed-com: #6b7a99; --ed-fn: #ff9b9b; --ed-op: #f58ac0; --ed-bool: #7cc7f2; --ed-exec: #3b3413; --ed-err: #4a1d24; --ed-sel: rgba(123, 152, 255, .3); }
.pse-ide.ide--light { --ed-bg: #ffffff; --ed-gutter: #f6f8fc; --ed-gutter-text: #94a3b8; --ed-text: #1e293b; --ed-kw: #1f47c9; --ed-type: #7c3aed; --ed-str: #a15c00; --ed-num: #0f766e; --ed-com: #7b8794; --ed-fn: #9b1c1c; --ed-op: #be185d; --ed-bool: #0369a1; --ed-exec: #fff3c4; --ed-err: #fde2e2; --ed-sel: rgba(47, 91, 224, .22); }
.ide-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.tb-group { display: flex; gap: 4px; align-items: center; padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--border); }
.tb-group:last-child { border-right: 0; }
.tb { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text-2); font: 600 .84rem var(--font); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.tb:hover:not(:disabled) { background: var(--primary-soft); color: var(--primary); }
.tb:disabled { opacity: .45; cursor: not-allowed; }
.tb svg { width: 17px; height: 17px; flex: none; }
.tb--run { background: var(--green-600); color: #fff; }
.tb--run:hover:not(:disabled) { background: #166534; color: #fff; }
.tb--stop:not(:disabled) { color: var(--red-600); }
[data-theme="dark"] .tb--stop:not(:disabled) { color: #ff9b9b; }
.tb .lbl-sm { display: none; }
.ide-examples { height: 34px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 500 .84rem var(--font); padding: 0 8px; max-width: 190px; }
.ide-state { margin-left: auto; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.pse-ide[data-state="running"] .ide-state { background: #dcfce7; color: #166534; }
.pse-ide[data-state="paused"] .ide-state, .pse-ide[data-state="input"] .ide-state { background: var(--cream-100); color: #6b4f00; }
.pse-ide[data-state="error"] .ide-state { background: var(--red-50); color: var(--red-600); }
.ide-find { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.ide-find[hidden] { display: none; }
.ide-find input[type="text"] { height: 32px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 10px; background: var(--bg); color: var(--text); font: .88rem var(--font); width: 170px; }
.ide-find label.chk { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--muted); }
.find-status { font-size: .8rem; color: var(--muted); min-width: 70px; }
.ide-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.ide-editor { display: flex; flex-direction: column; border-right: 1px solid var(--border); min-width: 0; }
.ide-scroll { position: relative; height: var(--ide-h); overflow: auto; background: var(--ed-bg); display: grid; grid-template-columns: auto 1fr; align-items: start; }
.ide-gutter { position: sticky; left: 0; z-index: 2; min-height: 100%; padding: 14px 10px 14px 12px; background: var(--ed-gutter); color: var(--ed-gutter-text); text-align: right; font: 13.5px/21px var(--mono); user-select: none; border-right: 1px solid var(--border); }
.ide-gutter div { height: 21px; padding: 0 4px; border-radius: 4px; }
.ide-gutter .is-exec { background: var(--cream-300); color: #3b2f05; font-weight: 700; }
.ide-gutter .is-error { background: #f87171; color: #fff; font-weight: 700; }
.ide-code { position: relative; min-width: 100%; min-height: 100%; }
.ide-hl, .ide-input { margin: 0; padding: 14px 16px 14px 12px; font: 13.5px/21px var(--mono); tab-size: 4; white-space: pre; letter-spacing: 0; border: 0; }
.ide-hl { color: var(--ed-text); pointer-events: none; min-height: 100%; }
.ide-hl code { font: inherit; background: none; padding: 0; color: inherit; display: block; }
.ide-hl .ln { min-height: 21px; margin: 0 -16px 0 -12px; padding: 0 16px 0 12px; }
.ide-hl .ln.is-exec { background: var(--ed-exec); box-shadow: inset 3px 0 0 #f59e0b; }
.ide-hl .ln.is-error { background: var(--ed-err); box-shadow: inset 3px 0 0 #dc2626; }
.ide-input { position: absolute; inset: 0; width: 100%; height: 100%; resize: none; overflow: hidden; background: transparent; color: transparent; caret-color: var(--ed-text); outline: none; }
.ide-input::selection { background: var(--ed-sel); color: transparent; }
.ide-input:focus-visible { outline: none; }
.ide-scroll:focus-within { box-shadow: inset 0 0 0 2px var(--blue-200); }
.t-kw { color: var(--ed-kw); font-weight: 700; }
.t-type { color: var(--ed-type); font-weight: 600; }
.t-str { color: var(--ed-str); }
.t-num { color: var(--ed-num); }
.t-com { color: var(--ed-com); font-style: italic; }
.t-fn { color: var(--ed-fn); }
.t-op { color: var(--ed-op); font-weight: 600; }
.t-assign { color: var(--ed-op); font-weight: 700; }
.t-bool { color: var(--ed-bool); font-weight: 600; }
.ide-statusbar { display: flex; gap: 14px; align-items: center; padding: 6px 12px; font-size: .78rem; color: var(--muted); background: var(--surface-2); border-top: 1px solid var(--border); min-height: 32px; }
.ide-status-msg { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ide-status-msg.is-error { color: var(--red-600); font-weight: 600; }
[data-theme="dark"] .ide-status-msg.is-error { color: #ff9b9b; }
.ide-status-pos { font-family: var(--mono); }
.ide-side { display: flex; flex-direction: column; min-width: 0; }
.ide-tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.ide-tabs [role="tab"] { border: 0; background: transparent; padding: 9px 14px; font: 600 .86rem var(--font); color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.ide-tabs [role="tab"][aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.ide-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ide-panel[hidden] { display: none; }
.console-scroll { flex: 1; height: calc(var(--ide-h) - 6px); overflow: auto; background: var(--con-bg); color: var(--con-text); font: 13.5px/1.55 var(--mono); padding: 12px 14px; }
.c-line { white-space: pre-wrap; word-break: break-word; min-height: 1.55em; }
.c-info { color: #93c5fd; }
.c-ok { color: #86efac; }
.c-err { color: #fca5a5; font-weight: 600; }
.c-warn { color: #fcd34d; }
.c-in { color: #fde68a; }
.console-in { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: #111a33; border-top: 1px solid #23305a; }
.console-in[hidden] { display: none; }
.console-in label { color: #fde68a; font: 600 .82rem var(--mono); white-space: nowrap; }
.console-in input { flex: 1; min-width: 0; height: 34px; border-radius: 8px; border: 1px solid #3a4a7a; background: #0b1226; color: #fff; padding: 0 10px; font: .9rem var(--mono); }
.console-in input:focus { outline: 2px solid #f59e0b; }
.console-in button { height: 34px; border: 0; border-radius: 8px; background: #f4dd7a; color: #2a2100; font-weight: 700; padding: 0 14px; cursor: pointer; }
.vars-wrap { height: var(--ide-h); overflow: auto; padding: 10px 12px; }
.vars-scope { font-size: .78rem; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
.vars-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.vars-table th, .vars-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.vars-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.vars-table tbody th { font-family: var(--mono); color: var(--primary); }
.vars-table td code { white-space: pre-wrap; background: none; padding: 0; font-size: .84rem; word-break: break-word; }
.vars-table td:nth-child(2) { color: var(--muted); font-size: .8rem; }
.vars-empty { color: var(--muted); text-align: center; padding: 26px 8px !important; }
.ide-flow { height: var(--ide-h); }
.ide-help { padding: 14px 16px; font-size: .86rem; color: var(--text-2); height: var(--ide-h); overflow: auto; }
.ide-help h4 { font-size: .92rem; margin: 14px 0 6px; }
.ide-help ul { padding-left: 18px; margin: 0; }
.ide-help table { border-collapse: collapse; width: 100%; font-size: .84rem; }
.ide-help td { padding: 4px 6px; border-bottom: 1px solid var(--border); }
@media (max-width: 900px) {
  .pse-ide { --ide-h: 380px; }
  .ide-main { grid-template-columns: 1fr; }
  .ide-editor { border-right: 0; border-bottom: 1px solid var(--border); }
  .console-scroll, .vars-wrap, .ide-help, .ide-flow { height: 300px; }
  .tb .lbl { display: none; }
  .tb { padding: 0 9px; }
  .tb--run .lbl, .tb--step .lbl { display: inline; }
  .ide-state { margin-left: 0; }
}

/* ---------- flowchart ---------- */
.fc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.ide-flow .fc { border: 0; border-radius: 0; box-shadow: none; height: 100%; }
.fc-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.fc-toolbar select { height: 34px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 500 .85rem var(--font); padding: 0 8px; max-width: 220px; }
.fc-zoom { font: 600 .8rem var(--mono); color: var(--muted); min-width: 46px; text-align: center; }
.fc-viewport { flex: 1; overflow: auto; background: #fff; background-image: radial-gradient(#e2e8f0 1px, transparent 1px); background-size: 18px 18px; min-height: 420px; max-height: 720px; padding: 8px; text-align: center; }
.ide-flow .fc-viewport { min-height: 0; max-height: none; }
.fc-viewport svg { display: inline-block; max-width: none; }
.fc-node { cursor: pointer; }
.fc-node:hover .fc-shape { filter: brightness(.96); stroke-width: 2.4; }
.fc-node.is-active .fc-shape { stroke: #f59e0b !important; stroke-width: 3.5; filter: drop-shadow(0 0 6px rgba(245, 158, 11, .65)); }
.fc-status { font-size: .8rem; color: var(--muted); padding: 7px 12px; border-top: 1px solid var(--border); background: var(--surface-2); }
.fc-status.is-error { color: var(--red-600); }
.flow-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.flow-layout .pse-ide { --ide-h: 420px; }
@media (max-width: 1020px) { .flow-layout { grid-template-columns: 1fr; } }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; padding: 0; margin: 18px 0 0; font-size: .86rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend svg { width: 34px; height: 20px; }

/* ---------- steps (how it works) ---------- */
.steps { counter-reset: step; }
.step-card { position: relative; padding-top: 30px; }
.step-card::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 26px; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-600); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(31, 71, 201, .8); }
.step-card figure { margin: 0 0 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.step-card figure img { display: block; width: 100%; }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.cmp-table th, .cmp-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.cmp-table thead th { background: var(--surface-2); font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cmp-table tbody th { font-weight: 600; }
.cmp-table tr:last-child td, .cmp-table tr:last-child th { border-bottom: 0; }
.yes { color: var(--green-600); font-weight: 700; }
.no { color: var(--muted); }

/* ---------- cheat sheet ---------- */
.cheat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1020px) { .cheat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cheat-grid { grid-template-columns: 1fr; } }
.cheat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cheat h3 { font-size: 1rem; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); display: flex; align-items: center; gap: 8px; }
.cheat h3 span { font: 600 .74rem var(--mono); color: var(--accent); background: var(--red-50); padding: 2px 8px; border-radius: 6px; }
[data-theme="dark"] .cheat h3 span { background: #3a1c22; }
.cheat pre { margin: 0; padding: 14px 16px; font-size: .84rem; line-height: 1.65; background: var(--ed-bg); color: var(--ed-text); overflow-x: auto; }

/* ---------- examples ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.filter-bar button { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 8px 16px; font: 600 .88rem var(--font); cursor: pointer; }
.filter-bar button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.ex-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ex-card[hidden] { display: none; }
.ex-body { padding: 20px 22px 14px; }
.ex-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.tag--level { background: var(--cream-100); color: #6b4f00; }
[data-theme="dark"] .tag--level { background: #3a3418; color: #f4dd7a; }
.ex-card pre { margin: 0; max-height: 220px; overflow: auto; padding: 14px 18px; font-size: .8rem; line-height: 1.6; background: var(--ed-bg); color: var(--ed-text); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ex-actions { display: flex; gap: 8px; padding: 14px 18px; margin-top: auto; flex-wrap: wrap; }

/* ---------- requirements ---------- */
.req-card ul { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.req-card li { padding: 8px 0; border-bottom: 1px dashed var(--border); display: grid; grid-template-columns: 112px 1fr; gap: 10px; }
.req-card li:last-child { border-bottom: 0; }
.req-card li b { color: var(--muted); font-weight: 600; }

/* ---------- articles ---------- */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; }
.post-card:hover { color: inherit; }
.post-card .thumb { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--bg-tint); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.post-card p { font-size: .93rem; }
.post-meta { font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 14px; display: flex; gap: 14px; }
.post-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 8px; }

.article-hero { padding: 40px 0 24px; background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.article-hero h1 { max-width: 900px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 28px 0 80px; }
@media (max-width: 1020px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .toc-box { position: static !important; } }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin: 0 0 32px; box-shadow: var(--shadow); }
.article-cover img { display: block; width: 100%; }
.article-cover figcaption { font-size: .8rem; color: var(--muted); padding: 8px 14px; background: var(--surface-2); }
.prose { font-size: 1.06rem; line-height: 1.78; color: var(--text-2); max-width: 780px; }
.prose h2 { font-size: 1.65rem; margin: 2em 0 .7em; padding-top: .3em; color: var(--text); }
.prose h3 { font-size: 1.24rem; margin: 1.6em 0 .6em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.prose strong { color: var(--text); }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; border-left: 4px solid var(--cream-300); background: var(--cream-50); border-radius: 0 12px 12px 0; color: var(--text-2); }
[data-theme="dark"] .prose blockquote { background: #221f10; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--text); }
.prose .tip { padding: 16px 20px; border-radius: 12px; background: var(--primary-soft); border: 1px solid var(--blue-200); margin: 1.4em 0; }
[data-theme="dark"] .prose .tip { border-color: var(--border-strong); }
.prose .tip strong:first-child { color: var(--primary); }
pre.code-sample { position: relative; margin: 1.3em 0 1.6em; padding: 18px 20px; border-radius: 12px; background: var(--ed-bg); color: var(--ed-text); border: 1px solid var(--border); font-size: .9rem; line-height: 1.65; overflow-x: auto; box-shadow: var(--shadow-sm); }
pre.code-sample code { background: none; padding: 0; font-size: inherit; color: inherit; }
.copy-btn { position: absolute; top: 8px; right: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); font: 600 .74rem var(--font); padding: 4px 9px; border-radius: 7px; cursor: pointer; opacity: .85; }
.copy-btn:hover { color: var(--primary); opacity: 1; }
.toc-box { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; font-size: .9rem; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--primary); }
.side-cta { background: linear-gradient(160deg, var(--blue-600), var(--indigo-600)); color: #fff; border-radius: var(--radius); padding: 22px; }
.side-cta h2 { color: #fff; font-size: 1.1rem; }
.side-cta p { color: rgba(255, 255, 255, .85); font-size: .92rem; }
.related { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 32px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 22px; transition: border-color .2s, box-shadow .2s; }
.faq-list details[open] { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .faq-list details[open] { border-color: var(--border-strong); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; font-weight: 700; position: relative; color: var(--text); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .faq-a { padding: 0 0 18px; color: var(--text-2); }
.faq-list .faq-a p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; background: linear-gradient(130deg, #1a3aa3 0%, #2f5be0 55%, #4338ca 100%); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 246, 199, .35), transparent 70%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .88); font-size: 1.08rem; margin: 0; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }
.cta-band .btn--ghost { --b-fg: #fff; --b-bd: rgba(255, 255, 255, .5); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 44px 26px; } .cta-band .btns { justify-content: flex-start; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 44px 0 40px; background: linear-gradient(180deg, var(--bg-tint), var(--bg)); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { max-width: 760px; color: var(--text-2); font-size: 1.08rem; margin: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { font-weight: 600; font-size: .92rem; display: grid; gap: 6px; }
.form input, .form textarea, .form select { font: 1rem var(--font); padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.form textarea { min-height: 150px; resize: vertical; }
.form-status { color: var(--green-600); font-size: .92rem; }

/* ---------- footer ---------- */



@media (max-width: 1020px) {  }
@media (max-width: 560px) {  }







.disclaimer { margin-top: 40px; padding: 18px 20px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; color: #aab4d0; }


/* ---------- scroll to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--blue-600); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 26px -10px rgba(31, 71, 201, .8); opacity: 0; visibility: hidden; transform: translateY(14px); transition: .25s ease; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-700); transform: translateY(-2px); }
.to-top svg { width: 22px; height: 22px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: min(92vw, 560px); background: #111827; color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .92rem; opacity: 0; visibility: hidden; transition: .25s; z-index: 300; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; }
.stack > * + * { margin-top: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f47c9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .to-top, .ide-toolbar { display: none; } }

/* Responsive compatibility: keep content within the viewport, with local scrolling for code and tables. */
img, video, canvas { max-width: 100%; }
.container, .hero-grid > *, .grid > *, .dl-grid > *, .two-col > *, .flow-layout > *, .article-layout > *, .cta-band > *, .cheat-grid > * { min-width: 0; }
pre, .table-wrap, .ide-scroll, .fc-viewport { max-width: 100%; overflow: auto; }
@media (max-width: 960px) {
 .hero-grid, .section-head, .cta-band { text-align: center; }
 .hero .lead, .section-head p { margin-inline: auto; }
 .hero-actions, .hero-meta, .hero-dots, .cta-band .btns { justify-content: center; }
}
@media (max-width: 640px) {
 .container { width: calc(100% - 28px); }
 .hero, .section { padding-block: 44px; }
 .hero h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); overflow-wrap: anywhere; }
 .section h2 { overflow-wrap: anywhere; }
 .card, .dl-card, .step-card, .req-card{ text-align: center; }
 .icon-tile, .dl-card .icon-tile { margin-inline: auto; }
  .ide-toolbar, .fc-toolbar, .ide-find { justify-content: center; }
 .ide-tabs { overflow-x: auto; }
 .ide-tabs [role="tab"] { padding-inline: 9px; white-space: nowrap; }
 .ide-find input[type="text"], .ide-examples, .fc-toolbar select { max-width: 100%; }
 .ide-statusbar { flex-wrap: wrap; gap: 5px; }
 pre, .ide-editor, .ide-side, .table-wrap, .check-list, .article-layout, .faq-list { text-align: left; }
 .hero-actions .btn { max-width: 100%; white-space: normal; }
 .to-top { right: 12px; bottom: 12px; }
 
}

/* Homepage editorial layout */
.hero .hero-grid{grid-template-columns:minmax(0,1fr);max-width:900px;text-align:center;position:relative}.hero .hero-grid>div{margin-inline:auto;max-width:760px}.hero .lead{margin-inline:auto}.hero .hero-actions,.hero .hero-meta,.hero .hero-dots{justify-content:center}.intro-definition{background:var(--surface,#fff)}.intro-split{display:grid;grid-template-columns:1.3fr .7fr;gap:clamp(24px,5vw,72px);align-items:center}.intro-facts{border-inline-start:5px solid #bd4148;background:#fff5d7;color:#19345d;padding:clamp(20px,4vw,36px);border-radius:0 28px 28px 0}.intro-facts dt{font-weight:700;margin-top:12px}.intro-facts dd{margin:0}.single-download{display:grid;grid-template-columns:1fr auto;align-items:center;gap:28px;border:1px solid #8ba7df;border-radius:18px;padding:clamp(20px,5vw,48px);max-width:900px;margin:auto}.single-download-action{text-align:center;max-width:280px}.single-download-action button:disabled{opacity:.65;cursor:not-allowed}.single-download-action p{font-size:.9rem;margin-top:12px}.section[id]{scroll-margin-top:100px}@media(max-width:760px){.intro-split,.single-download{grid-template-columns:minmax(0,1fr);text-align:center}.intro-facts{border-inline-start:0;border-top:5px solid #bd4148;border-radius:0 0 24px 24px}.single-download-action{margin:auto;width:100%;max-width:320px}.single-download-action button{width:100%}.hero .hero-meta{align-items:center}.hero .hero-grid{padding-inline:16px}}

/* Unique editorial homepage: each section has its own visual language. */
.site-header{background:#fff;border-bottom:1px solid #e4e9f2}.site-nav a{border-radius:0;border-bottom:2px solid transparent}.site-nav a.is-active,.site-nav a[aria-current=page]{background:transparent;border-color:#2454c5}.site-nav a[href="guides.html"]{background:transparent;color:var(--text-2)}.site-nav a[href="guides.html"]:hover{color:var(--primary)}
.hero{min-height:clamp(480px,58vw,620px);border-bottom:5px solid #e7dba8}.hero::before{background:linear-gradient(110deg,rgba(255,255,255,.92),rgba(255,255,255,.78),rgba(255,249,220,.78))}.hero h1{letter-spacing:-.045em}.hero-badge{border-radius:4px;box-shadow:none}.hero-actions .btn{border-radius:6px}.hero-dots button{height:8px;width:24px}
#what-is{background:#fff}#what-is .intro-split>div{border-left:3px solid #2454c5;padding-left:24px}#what-is .intro-facts{background:#fff7d9;border:0;border-radius:48px 0 48px 0;box-shadow:none;padding:36px}
#features{background:#eef4ff}#features .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}#features .card{border:0;border-radius:5px 22px 5px 22px;box-shadow:none;background:#fff;padding:24px;position:relative;border-bottom:3px solid #c5d6f7}#features .card:first-child,#features .card:last-child{grid-column:span 2;background:#dce9ff}#features .card:nth-child(3n){background:#fff9e4;border-bottom-color:#e4ce89}#features .icon-tile{border-radius:50%;background:#e5eeff}#features .card:hover{transform:none;box-shadow:0 8px 24px #24498412}
#download{background:#fff}#download .single-download{background:#153b8c;color:#fff;border:0;border-radius:80px 12px 80px 12px;max-width:1000px;box-shadow:0 14px 30px #153b8c20;padding:clamp(28px,5vw,58px)}#download .single-download h3,#download .single-download .muted,#download .single-download .eyebrow,#download .single-download p{color:#fff}#download .single-download button{background:#fff1b9;color:#17366e;border:0;border-radius:999px}
#editor{background:#f5f7fa}#editor .pse-ide{border:1px solid #9bb0d5;border-top:7px solid #183a78;border-radius:10px;box-shadow:0 12px 34px #132f6518}#editor .ide-toolbar{background:#edf3ff}#editor .section-head{text-align:left;margin-left:0}
#flowchart{background-color:#fffdf3;background-image:radial-gradient(#d9d6be 1px,transparent 1px);background-size:22px 22px}#flowchart .flow-layout>.stack{padding:22px;background:#fffdf3;border-left:4px solid #ba4747}#flowchart .flow-layout>.fc{border:2px dashed #849bc8;border-radius:0;box-shadow:none}#flowchart .legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
#how-it-works{background:#fff}#how-it-works .steps{gap:0;grid-template-columns:repeat(3,minmax(0,1fr));border-top:2px solid #b4c6ed;margin-top:45px}#how-it-works .step-card{background:transparent;border:0;border-radius:0;box-shadow:none;padding:42px 22px 8px;text-align:center}#how-it-works .step-card::before{left:50%;transform:translateX(-50%);width:44px;height:44px;border-radius:50%;top:-23px;box-shadow:0 0 0 7px white}#how-it-works .step-card figure{border:0;border-radius:50%;width:min(100%,170px);aspect-ratio:1;margin:0 auto 18px;background:#edf3ff;display:grid;place-items:center}#how-it-works .step-card figure img{height:auto;object-fit:contain}#how-it-works .step-card:hover{transform:none}
#compare{background:#eaf0ff}#compare .table-wrap{border:0;border-radius:0;box-shadow:none;border-top:4px solid #244caa}#compare .cmp-table thead th{background:#183b82;color:#fff}#compare .cmp-table tbody tr:nth-child(even){background:#f2f6ff}
#examples{background:#fff}#examples .grid{gap:22px}#examples .ex-card{border:1px solid #c4cfdf;border-radius:0;box-shadow:5px 5px 0 #e1e8f5}#examples .ex-body{border-top:4px solid #bd4549}#examples .ex-card pre{background:#14233c;color:#f3f7ff}#examples .ex-card pre .t-kw{color:#a9caff}#examples .ex-card pre .t-str{color:#b9e3b0}#examples .ex-card pre .t-num{color:#ffdc91}#examples .ex-card pre .t-com{color:#b4c2d6}#examples .ex-card:hover{transform:none;box-shadow:5px 5px 0 #cbdafa}
#cheat-sheet{background:#f8f5e9}#cheat-sheet .cheat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}#cheat-sheet .cheat{border:0;border-bottom:1px solid #d8d0b5;border-radius:0;background:transparent;padding:14px 18px}#cheat-sheet .cheat h3{background:transparent;border:0;padding:6px 0;flex-wrap:wrap}#cheat-sheet .cheat pre{background:#fff;border-left:3px solid #d5bd73;border-radius:0}
#requirements{background:#fff}#requirements .grid{grid-template-columns:1fr;gap:0;max-width:900px;margin:auto}#requirements .req-card{display:grid;grid-template-columns:64px 1fr;column-gap:20px;align-items:start;border:0;border-bottom:1px solid #dbe3f0;border-radius:0;box-shadow:none;padding:24px 0}#requirements .req-card>*{grid-column:2}#requirements .req-card>.icon-tile{grid-column:1;grid-row:1/span 4;border-radius:16px 0 16px 0}#requirements .req-card:hover{transform:none}
#faq{background:#edf3ff}#faq>.container{display:grid;grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr);gap:clamp(24px,5vw,64px);align-items:start}#faq .section-head{text-align:left;margin:0}#faq .faq-list{width:100%;gap:0;border-top:2px solid #234ba6}#faq details{border:0;border-bottom:1px solid #c3d1eb;border-radius:0;background:transparent;padding:0 10px;box-shadow:none}#faq details[open]{background:#fff;box-shadow:none}#faq summary::after{background:transparent;border:1px solid #a1b6df;border-radius:50%}

@media(max-width:1020px){.site-nav{text-align:center;max-height:calc(100dvh - var(--header-h));overflow:auto}.site-nav ul{align-items:stretch}.site-nav a{min-height:44px}#features .grid{grid-template-columns:repeat(2,minmax(0,1fr))}#faq>.container{grid-template-columns:minmax(0,1fr)}#faq .section-head{text-align:center;margin:auto}#editor .section-head{text-align:center;margin-inline:auto}}
@media(max-width:760px){.hero{min-height:0;padding:60px 0}.hero .hero-grid{padding-inline:0}.hero .hero-meta{justify-content:center}.hero .hero-badge{max-width:100%;flex-wrap:wrap;justify-content:center}.hero .hero-actions{justify-content:center}.section,.page-hero{text-align:center}.section-head,.page-hero p{margin-inline:auto}.breadcrumbs ol,.legend,.ex-tags{justify-content:center}.brand small{font-size:.64rem}.header-inner{gap:8px}.header-actions{flex:none}.intro-split{gap:24px}#what-is .intro-split>div{border-left:0;padding:0}#what-is .intro-facts{padding:24px;border-radius:30px 0 30px 0}#features .card{padding:20px}#features .icon-tile{margin-inline:auto}#download .single-download{border-radius:32px 6px 32px 6px;text-align:center}#download .single-download-action{min-width:0}#download .single-download button{white-space:normal}#flowchart .flow-layout>.stack{border-left:0;border-top:3px solid #ba4747;padding:16px}#flowchart .legend{display:flex;justify-content:center}#how-it-works .steps{grid-template-columns:1fr;border-top:0;gap:36px}#how-it-works .step-card{border-top:2px solid #b4c6ed;padding:36px 12px 0}#cheat-sheet .cheat-grid{grid-template-columns:1fr}#cheat-sheet .cheat h3{justify-content:center}#requirements .req-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:24px 8px}#requirements .req-card .icon-tile{margin:auto}#requirements .req-card .check-list{margin-inline:auto;max-width:100%}#faq summary{text-align:center;padding-left:32px;padding-right:32px}#faq .faq-a{text-align:center}#faq .faq-list{min-width:0} .article-layout{min-width:0}.article-layout h1,.article-layout h2,.article-layout h3{text-align:center}.ide-toolbar,.fc-toolbar{justify-content:center}.ide-toolbar>*{max-width:100%}.ide-main,.flow-layout{grid-template-columns:minmax(0,1fr)}.pse-ide,.fc,.ide-main,.ide-side,.ide-editor,.ide-panel,.ide-tabs,.console-scroll,.vars-wrap,.fc-viewport{min-width:0;max-width:100%}.ide-input,.ide-hl,.console-scroll,.vars-table,.cmp-table,pre,code{text-align:left}.btn{max-width:100%;white-space:normal}.form{margin-inline:auto}}
@media(max-width:480px){#features .grid,#examples .grid{grid-template-columns:minmax(0,1fr)}#features .card:first-child,#features .card:last-child{grid-column:auto}.hero h1{font-size:clamp(1.9rem,9vw,2.7rem)}.hero-actions .btn{width:100%}.hero .hero-meta{flex-direction:column}.site-header .brand img{width:36px;height:36px}.site-header .brand{gap:8px}.ide-tabs{overflow-x:auto;justify-content:flex-start}.ide-find input[type=text]{width:100%}.container{width:calc(100% - 28px)}.section{padding-block:46px}.ex-body{padding:18px 12px}.cheat-grid .cheat{padding-inline:4px}.page-hero h1{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.hero-slide{animation:none!important;transition:none!important}}

/* Clean image-free hero */
.hero{background:linear-gradient(125deg,#eaf2ff 0%,#fff 51%,#fff5d5 100%);min-height:0;padding:clamp(64px,9vw,124px) 0;border-bottom:1px solid #dce6f4;text-align:center}.hero::before{display:none}.hero .hero-grid{display:block;width:min(100% - 32px,900px);margin-inline:auto}.hero .hero-grid>div{max-width:800px;margin-inline:auto}.hero h1{font-size:clamp(2rem,5vw,4rem);line-height:1.12}.hero .lead{max-width:680px;margin-inline:auto}.hero .hero-actions,.hero .hero-meta{justify-content:center}.hero-slider,.hero-dots{display:none!important}@media(max-width:760px){.hero{padding:60px 0}.hero h1{font-size:clamp(1.85rem,7vw,2.7rem)}.hero .hero-grid{padding:0}.hero-meta{align-items:center}.hero .hero-meta li{justify-content:center;text-align:center}.hero-actions .btn{max-width:100%}}
/* Reference-inspired editorial software layout; original PSeInt palette. */
:root{--container:1160px;--header-h:72px;--primary:#2454bb;--primary-hover:#193e91;--radius:12px}
.site-header{background:#fff;border-bottom:1px solid #e4e9f2}.site-header .brand-name{font-size:1.23rem;letter-spacing:-.045em}.site-nav a{font-size:.95rem;padding:12px 13px;border:0;border-radius:7px}.site-nav a.is-active,.site-nav a[aria-current=page]{background:#eef3ff;color:#2454bb}.hero{background:#f5f8fd;border-bottom:1px solid #e1e9f4;padding:clamp(65px,8vw,104px) 0}.hero .hero-badge{color:#2454bb;background:#e5edfc;border:0;letter-spacing:.1em;font-size:.74rem;font-weight:800}.hero h1{color:#142541;font-size:clamp(2.15rem,5vw,3.85rem);letter-spacing:-.045em}.hero .lead{font-size:1.12rem;line-height:1.75}.hero .btn{border-radius:8px;padding:14px 24px}.hero .hero-meta{color:#475b75}.section-head h2{letter-spacing:-.035em}.section{padding-block:clamp(48px,6vw,84px)}
#editor{background:white}#editor .pse-ide{box-shadow:0 14px 45px #18346014;border:1px solid #d6e0ed;border-radius:15px}#what-is{background:#f7f9fc}#what-is .intro-facts{background:#fff5da;border-radius:8px 30px 8px 8px}#features .grid{gap:0;border-block:1px solid #e0e6ef}#features .card{border:0;border-bottom:1px solid #e0e6ef;border-radius:0;box-shadow:none;background:#fff;color:#192b45;grid-column:auto;padding:26px}#features .card h3,#features .card p{color:inherit}#features .icon-tile{border-radius:50%;background:#eaf0ff;color:#2454bb}#download{background:#f1f5fb}#download .single-download{background:white;color:#182944;border:1px solid #d3ddeb;border-radius:14px;box-shadow:0 12px 36px #203c6410;max-width:100%;padding:clamp(24px,4vw,44px)}#download .single-download h3,#download .single-download p,#download .single-download .eyebrow{color:inherit}#download .single-download .btn{background:#2454bb;color:white;border:0;border-radius:8px;display:inline-flex;white-space:normal}#download .single-download .btn:hover{background:#193e91}.release-facts{display:grid;grid-template-columns:minmax(90px,.65fr) 1.35fr;gap:0;margin:24px 0 0;text-align:left;font-size:.93rem}.release-facts dt,.release-facts dd{margin:0;padding:10px 5px;border-bottom:1px solid #e5eaf2;overflow-wrap:anywhere}.release-facts dt{color:#64748b}.release-facts dd{font-weight:600}
@media(max-width:900px){.site-header .header-inner{justify-content:space-between}.site-nav ul{align-items:stretch}#features .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.hero,.section{text-align:center}.hero .hero-grid{width:calc(100% - 32px)}.hero .lead{font-size:1rem}.release-facts{text-align:center;grid-template-columns:1fr 1fr}.single-download-action{max-width:100%;width:100%}.single-download-action .btn{width:100%;justify-content:center}.site-header .brand-name{font-size:1.12rem}}
@media(max-width:480px){#features .grid{grid-template-columns:1fr}.hero .hero-meta{gap:8px}.release-facts{font-size:.82rem}.hero h1{font-size:clamp(1.9rem,8vw,2.5rem)}}


/* --- Request-based footer + requirements refresh --- */
















@media (max-width:760px){}

.single-download-action .is-disabled,.single-download-action a[aria-disabled="true"]{pointer-events:none;opacity:.72;cursor:not-allowed}
.single-download-action p:empty{display:none}

#requirements{background:linear-gradient(180deg,#f7fafc 0%,#ffffff 100%)}
#requirements .section-head{text-align:center;max-width:760px;margin-inline:auto}
#requirements .req-showcase{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:18px}
#requirements .req-panel{background:#fff;border:1px solid #dfe7f2;border-radius:26px;padding:26px;box-shadow:0 14px 40px rgba(20,43,76,.08)}
#requirements .req-panel--windows{background:linear-gradient(180deg,#ffffff 0%,#edf4ff 100%)}
#requirements .req-panel--mac{background:linear-gradient(180deg,#fffef9 0%,#fff6dc 100%)}
#requirements .req-panel--browser{background:linear-gradient(180deg,#fffafa 0%,#fff0ef 100%)}
#requirements .req-head{display:flex;gap:16px;align-items:center;margin-bottom:18px;text-align:left}
#requirements .req-head h3{margin:0 0 6px;font-size:1.2rem}
#requirements .req-head p{margin:0;color:#5d708e}
#requirements .check-list{list-style:none;padding:0;margin:0;display:grid;gap:12px}
#requirements .check-list li{position:relative;padding-left:28px;color:#21314b;line-height:1.7}
#requirements .check-list li:before{content:"✓";position:absolute;left:0;top:0;color:#2454bb;font-weight:800}
#requirements .requirements-strip{margin-top:24px;display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
#requirements .requirements-strip span{background:#0f2349;color:#fff;border-radius:999px;padding:10px 16px;font-size:.92rem;letter-spacing:.03em}
@media (max-width:960px){#requirements .req-showcase{grid-template-columns:1fr 1fr}}
@media (max-width:680px){#requirements .req-showcase{grid-template-columns:1fr}#requirements .req-head{text-align:center;flex-direction:column}#requirements .check-list li{text-align:left}}

/* Final centered footer, reference-inspired */
.single-download-action button:disabled{opacity:.6;cursor:not-allowed}#requirements .req-panel{min-width:0}#requirements .req-head .icon-tile{flex-shrink:0}
@media(max-width:760px){#requirements .check-list li{text-align:center;padding-left:0}#requirements .check-list li:before{position:static;margin-right:8px}.single-download-action .btn{max-width:100%;width:100%}}

/* Light centered footer and editorial feature mosaic */
.section-head{text-align:center;margin-inline:auto}.hero .hero-grid,.hero .hero-grid>div{margin-inline:auto;text-align:center}
#features{background:#fff;padding-block:clamp(56px,7vw,100px)}#features .feature-mosaic{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:1160px;margin:36px auto 0;text-align:center}#features .feature-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:235px;padding:34px 22px 26px;border:1px solid #dfe7f1;border-radius:4px 26px 4px 26px;background:#f5f8ff}#features .feature-item:nth-child(1),#features .feature-item:nth-child(8){grid-column:span 2;background:#eaf1ff}#features .feature-item:nth-child(2n){background:#fff9e7}#features .feature-item:nth-child(3n){background:#fff3f1}#features .feature-item:nth-child(8){background:#eaf1ff}#features .feature-index{position:absolute;top:12px;right:16px;font:600 .8rem monospace;color:#607491}#features .feature-item .icon-tile{margin:0 auto 14px;border-radius:14px;background:white;color:#2454bb}#features .feature-item h3{margin:0 0 10px;color:#172e59}#features .feature-item p{margin:0;max-width:360px;color:#485b77;line-height:1.65}#features .feature-item:nth-child(4),#features .feature-item:nth-child(7){grid-column:span 2}
@media(max-width:900px){#features .feature-mosaic{grid-template-columns:repeat(2,minmax(0,1fr))}#features .feature-item:nth-child(n){grid-column:auto}}@media(max-width:560px){#features .feature-mosaic{grid-template-columns:1fr;gap:12px}#features .feature-item{min-height:0;padding:30px 20px} }

/* Complete refresh: single footer style */
.site-footer{background:#f1f6ff;color:#334968;text-align:center;padding:70px 0 0;border-top:1px solid #d8e4f4;margin:0}.site-footer>.container{max-width:1020px;margin-inline:auto}.site-footer .footer-top{max-width:850px;margin:auto;text-align:center}.site-footer .brand{display:inline-flex;justify-content:center;align-items:center;gap:12px;color:#16376d;margin:0 auto 20px}.site-footer .brand img{width:60px;height:60px;background:white;object-fit:contain;padding:5px;border:1px solid #dce5f0;border-radius:14px}.site-footer .brand-name{font-size:2rem;color:#16376d;font-weight:800}.site-footer .footer-desc{color:#334968;font-size:1.12rem;line-height:1.8;margin:0 auto;max-width:780px}.site-footer .footer-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:24px auto}.site-footer .footer-tags span{padding:9px 16px;border:1px solid #c3d4ec;border-radius:999px;background:white;color:#284d81;font-size:.9rem}.site-footer .footer-divider{height:1px;background:#d4e0f0;margin:32px auto}.site-footer .footer-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:18px 30px;padding:0 0 42px}.site-footer .footer-links a{color:#203f6d;font-weight:650;text-decoration:none}.site-footer a:hover{text-decoration:underline}.site-footer .footer-bottom{background:#e2ecfa;border-top:1px solid #d0def1;text-align:center;padding:25px 0;color:#334968}.site-footer .footer-bottom p{margin:0 0 8px}.site-footer .footer-bottom a{color:#16376d;font-weight:700;text-decoration:underline}.site-footer .footer-note{font-size:.92rem;color:#435b7a}.site-footer .footer-bottom .container{margin:auto}
/* Center section content; preserve readable code, data and forms. */
main>.section,main .section-head,main .page-hero{text-align:center}main .section-head{margin:0 auto 30px;max-width:800px}main .section-head p{margin-inline:auto}#what-is .intro-split{grid-template-columns:minmax(0,1fr);max-width:850px;margin:auto;gap:24px;text-align:center}#what-is .intro-split>div{border:0;padding:0}#what-is .intro-facts{border:0;border-top:3px solid #bd4148;border-radius:16px;width:100%;text-align:center}#download .single-download{text-align:center}#download .release-facts{max-width:650px;margin-inline:auto}#faq>.container{display:block;max-width:900px}#faq .section-head{margin:0 auto 32px;text-align:center}#faq .faq-list{margin:auto}#faq summary,#faq .faq-a{text-align:center}#features .feature-mosaic{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;max-width:1120px;margin:36px auto 0;border:1px solid #d7e2f1;border-radius:24px;overflow:hidden;background:#fff}#features .feature-item:nth-child(n){grid-column:auto;background:#fff;border:0;border-radius:0;border-bottom:1px solid #d7e2f1;border-right:1px solid #d7e2f1;min-height:255px;padding:32px 20px;box-shadow:none}#features .feature-item:nth-child(4n){border-right:0}#features .feature-item:nth-child(n+5){border-bottom:0}#features .feature-item:nth-child(2n){background:#f4f8ff}#features .feature-item:nth-child(3n) .icon-tile{background:#fff2d4;color:#8b5d15}#features .feature-item .icon-tile{background:#e6efff;border-radius:50%;width:58px;height:58px}#features .feature-item h3{font-size:1.05rem}#features .feature-index{color:#506885}#requirements .req-head{flex-direction:column;text-align:center}#requirements .check-list li{text-align:center;padding:0}#requirements .check-list li:before{position:static;margin-right:7px}main pre,main code,.ide-input,.ide-hl,.console-scroll,.vars-table,.cmp-table{text-align:left}
@media(max-width:900px){#features .feature-mosaic{grid-template-columns:repeat(2,minmax(0,1fr))}#features .feature-item:nth-child(n){border-bottom:1px solid #d7e2f1;border-right:1px solid #d7e2f1}#features .feature-item:nth-child(2n){border-right:0}#features .feature-item:nth-last-child(-n+2){border-bottom:0}}
@media(max-width:560px){.site-footer{padding-top:42px}.site-footer .brand-name{font-size:1.6rem}.site-footer .footer-desc{font-size:1rem}.site-footer .footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px;padding-bottom:30px}.site-footer .footer-links a{overflow-wrap:anywhere}#features .feature-mosaic{grid-template-columns:1fr}#features .feature-item:nth-child(n){border-right:0;border-bottom:1px solid #d7e2f1;min-height:0;padding:30px 20px}#features .feature-item:last-child{border-bottom:0}}
@media print{.site-footer{display:none}}

/* Center hero descriptions and breadcrumbs at every viewport width. */
.page-hero > .container { text-align:center; }
.page-hero h1 { margin-inline:auto; }
.page-hero > .container > p { width:100%; max-width: 850px; margin: 0 auto; text-align:center; }
.page-hero .breadcrumbs { width:100%; text-align:center; margin-inline:auto; }
.page-hero .breadcrumbs ol { justify-content:center; align-items:center; }
#download .section-head { margin-inline:auto; text-align:center; }
#download .section-head p { margin-inline:auto; text-align:center; }
#download .single-download { max-width:1000px; margin-inline:auto; }
#download .single-download-action { margin-inline:auto; text-align:center; }
