/* ============================================================
   ESP32 Coder · "Aurora Terminal" design system
   No frameworks · no external fonts · no plugins
   ============================================================ */

:root{
  color-scheme:dark;

  /* ---- Base ---- */
  --bg:#05080f;
  --bg-2:#070c18;
  --panel:#0a1320;
  --panel-2:#0e1a2b;
  --line:#162a3d;
  --line-2:#21384f;

  /* ---- Ink ---- */
  --ink:#eaf6f6;
  --ink-2:#a4bfd0;
  --muted:#6b8299;

  /* ---- Accents ---- */
  --mint:#6cf0c7;
  --mint-2:#34dba7;
  --cyan:#6cc8ff;
  --violet:#a78bfa;
  --amber:#ffc478;

  /* ---- Effects ---- */
  --glow-mint:0 0 60px rgba(108,240,199,.25);
  --glow-cyan:0 0 60px rgba(108,200,255,.2);

  /* ---- Structure ---- */
  --radius-sm:10px;
  --radius:18px;
  --radius-lg:26px;
  --max:1270px;

  --font-sans:'Inter','Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  --font-mono:ui-monospace,'JetBrains Mono','SF Mono','Cascadia Code',Consolas,'Liberation Mono',monospace;
}

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth;scroll-padding-top:110px;-webkit-text-size-adjust:100%}

body{
  position:relative;
  margin:0;
  overflow-x:hidden;
  background:
    radial-gradient(ellipse 1400px 900px at 8% -8%,rgba(28,130,110,.26),transparent 55%),
    radial-gradient(ellipse 1200px 800px at 100% 5%,rgba(30,90,170,.15),transparent 55%),
    radial-gradient(ellipse 900px 700px at 50% 115%,rgba(120,60,200,.10),transparent 55%),
    var(--bg);
  color:var(--ink);
  font:15px/1.6 var(--font-sans);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Fine film grain over everything */
body::before{
  content:'';
  position:fixed;
  inset:0;
  z-index:1000;
  pointer-events:none;
  opacity:.035;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.08;letter-spacing:-.03em}

::selection{background:rgba(108,240,199,.28);color:#fff}

:focus-visible{outline:2px solid var(--mint);outline-offset:4px;border-radius:4px}

.container{max-width:var(--max);width:calc(100% - 80px);margin-inline:auto}

/* ---------- Ambient aurora fields ---------- */
.ambient{position:fixed;z-index:0;pointer-events:none;filter:blur(80px);will-change:transform}
.ambient-a{
  top:-220px;left:-320px;
  width:900px;height:900px;
  background:radial-gradient(circle,rgba(40,200,160,.22),transparent 62%);
  animation:drift-a 26s ease-in-out infinite alternate;
}
.ambient-b{
  top:18%;right:-320px;
  width:1000px;height:900px;
  background:radial-gradient(circle,rgba(60,130,240,.16),transparent 62%);
  animation:drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a{to{transform:translate3d(90px,70px,0)}}
@keyframes drift-b{to{transform:translate3d(-110px,-50px,0)}}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(5,8,15,.72);
  backdrop-filter:blur(22px) saturate(1.6);
  -webkit-backdrop-filter:blur(22px) saturate(1.6);
  border-bottom:1px solid rgba(108,240,199,.08);
  box-shadow:0 1px 0 rgba(108,240,199,.04);
}
.header-inner{display:flex;align-items:center;justify-content:flex-start;gap:25px;min-height:88px}

.brand{display:flex;align-items:center;gap:0;min-width:280px;flex:0 0 auto;margin-right:auto;justify-content:flex-start}
.brand img.brand-logo-full{
  width:260px;height:auto;max-height:72px;object-fit:contain;object-position:left center;
  filter:drop-shadow(0 0 22px rgba(108,240,199,.30));
  transition:transform .35s cubic-bezier(.2,.8,.2,1);
}
.brand:hover img.brand-logo-full{transform:scale(1.02)}
.brand-type{display:none}

.main-nav{display:flex;align-items:center;gap:30px}
.main-nav a{
  position:relative;padding:6px 0;
  color:var(--ink-2);font-size:13px;font-weight:600;
  transition:color .2s;
}
.main-nav a::after{
  content:'';position:absolute;left:0;right:0;bottom:0;height:1px;
  background:linear-gradient(90deg,transparent,var(--mint),transparent);
  transform:scaleX(0);transform-origin:center;
  transition:transform .3s cubic-bezier(.2,.8,.2,1);
}
.main-nav a:hover{color:var(--mint)}
.main-nav a:hover::after{transform:scaleX(1)}

.nav-download{margin-left:6px}

.nav-download{
  display:inline-flex;align-items:center;gap:6px;
  padding:11px 20px;border-radius:12px;
  border:1px solid rgba(108,240,199,.28);
  background:linear-gradient(135deg,rgba(108,240,199,.10),rgba(108,200,255,.04));
  color:#d9fff2;font-size:13px;font-weight:720;white-space:nowrap;
  transition:transform .25s,border-color .25s,background .25s,box-shadow .25s;
}
.nav-download:hover{
  transform:translateY(-1px);
  border-color:rgba(108,240,199,.55);
  background:linear-gradient(135deg,rgba(108,240,199,.22),rgba(108,200,255,.10));
  box-shadow:0 8px 28px -8px rgba(108,240,199,.45);
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:50px;align-items:start;
  padding:24px 0 56px;min-height:0;
  position:relative;
}

.hero-copy{position:relative;z-index:2}

.microtag{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 16px 8px 14px;border-radius:100px;
  border:1px solid rgba(108,240,199,.22);
  background:linear-gradient(135deg,rgba(108,240,199,.08),rgba(108,200,255,.03));
  color:#88e5cf;font-size:11px;font-weight:740;
  letter-spacing:.08em;text-transform:uppercase;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.led{
  width:7px;height:7px;flex:0 0 7px;border-radius:100px;
  background:var(--mint);
  box-shadow:0 0 12px var(--mint),0 0 0 3px rgba(108,240,199,.18);
  animation:led-pulse 2.4s ease-in-out infinite;
}
@keyframes led-pulse{
  0%,100%{box-shadow:0 0 12px var(--mint),0 0 0 3px rgba(108,240,199,.18)}
  50%{box-shadow:0 0 20px var(--mint),0 0 0 6px rgba(108,240,199,.06)}
}

.hero h1{
  margin-top:0;
  font-size:clamp(48px,5.4vw,84px);
  line-height:1.02;
  letter-spacing:-.045em;
  font-weight:840;
}
.hero h1>span{color:var(--mint)}
.hero h1 em{
  font-style:normal;
  background:linear-gradient(100deg,#b8ffe6,var(--mint) 45%,var(--cyan) 100%);
  background-size:200% 100%;
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
  animation:shimmer-text 6s linear infinite;
}
@keyframes shimmer-text{
  0%{background-position:0% 50%}
  100%{background-position:200% 50%}
}

.hero-intro{max-width:540px;margin-top:28px;color:var(--ink-2);font-size:17px;line-height:1.75}

.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:30px}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:54px;padding:14px 24px;border-radius:14px;
  font-size:14px;font-weight:740;letter-spacing:-.005em;white-space:nowrap;
  transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s,background .25s,border-color .25s;
  will-change:transform;
}
.btn:hover{transform:translateY(-2px)}

.btn-primary{
  position:relative;overflow:hidden;
  color:#032721;
  background:linear-gradient(135deg,#b6ffe7,#5ff0c2 45%,#34dba7);
  border:1px solid rgba(190,255,235,.6);
  box-shadow:
    0 1px 0 rgba(255,255,255,.5) inset,
    0 -2px 0 rgba(0,0,0,.1) inset,
    0 14px 36px -12px rgba(52,219,167,.6),
    0 0 0 1px rgba(52,219,167,.1);
}
.btn-primary::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.5) 50%,transparent 70%);
  transform:translateX(-100%);
  transition:transform .7s ease;
}
.btn-primary:hover::before{transform:translateX(100%)}
.btn-primary:hover{
  box-shadow:
    0 1px 0 rgba(255,255,255,.5) inset,
    0 -2px 0 rgba(0,0,0,.1) inset,
    0 22px 48px -14px rgba(52,219,167,.8),
    0 0 0 1px rgba(52,219,167,.2);
}

.btn-subtle{
  background:rgba(20,35,52,.6);
  border:1px solid var(--line-2);
  color:var(--ink);
  backdrop-filter:blur(10px);
}
.btn-subtle:hover{
  border-color:rgba(108,240,199,.4);
  background:rgba(24,44,65,.8);
}


/* ---------- Hero artwork ---------- */
.hero-art{
  position:relative;min-height:580px;
  display:flex;align-items:center;
  padding:40px 0;
}
.art-grid{
  position:absolute;inset:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(108,240,199,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(108,240,199,.045) 1px,transparent 1px);
  background-size:32px 32px;
  mask-image:radial-gradient(ellipse at center,#000 20%,transparent 72%);
  -webkit-mask-image:radial-gradient(ellipse at center,#000 20%,transparent 72%);
}
.mini-label{
  position:absolute;top:0;left:26px;
  display:flex;align-items:center;gap:8px;
  color:var(--muted);letter-spacing:.2em;font-size:9px;font-weight:900;
}
.mini-label span{width:24px;height:1px;background:var(--mint)}

.ide-window{
  position:relative;z-index:1;width:100%;
  overflow:hidden;border-radius:20px;
  border:1px solid var(--line-2);
  background:#0a121e;
  transform:rotate(-1.1deg);
  box-shadow:
    0 60px 120px -20px rgba(0,0,0,.85),
    0 0 0 1px rgba(108,240,199,.05),
    0 0 120px -20px rgba(108,240,199,.18);
  transition:transform .5s cubic-bezier(.2,.8,.2,1),box-shadow .5s;
}
.hero-art:hover .ide-window{
  transform:rotate(0deg);
  box-shadow:
    0 60px 120px -20px rgba(0,0,0,.9),
    0 0 0 1px rgba(108,240,199,.12),
    0 0 160px -20px rgba(108,240,199,.25);
}

.ide-titlebar{
  height:48px;display:flex;align-items:center;padding:0 16px;gap:10px;
  background:linear-gradient(180deg,#142434,#0f1c2b);
  border-bottom:1px solid var(--line);
  color:#d8e6f0;font-size:11.5px;
}
.ide-titlebar b{font-size:12.5px;font-weight:700;letter-spacing:-.01em}
.ide-mark{width:28px;height:28px;display:grid;place-items:center}
.ide-mark img{width:28px;height:28px;object-fit:contain}
.wver{
  padding:2px 7px;border-radius:5px;
  border:1px solid rgba(108,240,199,.22);
  background:rgba(108,240,199,.05);
  color:var(--mint);font:700 10px var(--font-mono);
}
.ide-window-control{display:flex;gap:7px;margin-left:auto}
.ide-window-control span{
  width:10px;height:10px;border-radius:50%;
  background:#2a3b4d;font-size:0;
}
.ide-window-control span:first-child{background:#ff6b6b}
.ide-window-control span:nth-child(2){background:#ffd93d}
.ide-window-control span:nth-child(3){background:var(--mint)}

.ide-toolbar{
  display:flex;align-items:center;gap:8px;
  padding:10px 14px;
  background:#0d1826;border-bottom:1px solid var(--line);
}
.ide-toolbar span{
  padding:5px 10px;border-radius:6px;
  border:1px solid var(--line);background:#142235;
  color:#b0c8da;font-size:10px;font-weight:600;
}
.ide-toolbar span.active{
  background:linear-gradient(135deg,rgba(108,240,199,.16),rgba(108,240,199,.06));
  border-color:rgba(108,240,199,.45);color:#a8ffdc;
  box-shadow:0 0 20px -6px rgba(108,240,199,.4);
}
.ide-toolbar em{
  margin-left:auto;color:var(--mint);
  font:700 9px var(--font-mono);letter-spacing:.1em;
}

.ide-main{display:grid;grid-template-columns:118px minmax(0,1fr);min-height:300px}
.ide-tree{
  padding:15px 10px;background:#0b1624;
  border-right:1px solid var(--line);overflow:hidden;
}
.ide-tree small{
  display:block;margin:0 0 12px 6px;color:var(--muted);
  font:700 9px var(--font-mono);letter-spacing:.1em;
}
.ide-tree div{
  padding:5px 7px;border-radius:5px;
  color:#8fa8bd;font:10.5px/1.5 var(--font-mono);white-space:nowrap;
}
.ide-tree .tree-active{background:rgba(108,240,199,.10);color:var(--mint)}
.ide-tree .tree-tail{
  margin-top:48px;padding-top:12px;
  border-top:1px solid var(--line);color:var(--mint);
}

.ide-edit{background:#131b26;overflow:hidden}
.ide-tab{
  height:34px;display:flex;align-items:center;gap:8px;
  width:140px;padding:0 12px;
  background:#1d2836;border-right:1px solid var(--line);border-bottom:1px solid var(--line);
  color:#cddbe7;font:10.5px var(--font-mono);
}
.ide-tab i{width:6px;height:6px;border-radius:2px;background:var(--mint)}
.ide-tab span{margin-left:auto;color:var(--muted)}

.ide-code{
  padding:14px 14px 14px 18px;
  color:#c8d6e5;
  font:11.5px/1.75 var(--font-mono);
  white-space:pre;overflow:hidden;
}
.ide-code .n{color:#4d5f72;display:inline-block;width:28px;user-select:none}
.token-purple{color:#c9a3ff}
.token-orange{color:#ff9b73}
.token-blue{color:#7cc1ff}
.token-gold{color:#9ee57b}
.token-yellow{color:#ffd97a}
.muted{color:#7a8ea1}

.ide-terminal{
  padding:12px 18px 14px;
  background:#0a1420;border-top:1px solid var(--line);
  min-height:110px;font:10.5px/1.8 var(--font-mono);
}
.terminal-title{
  display:flex;align-items:center;gap:6px;
  margin-bottom:6px;color:#a6bccd;font-size:10.5px;
}
.terminal-title span{margin-left:auto;font-size:8px;color:var(--mint)}
.ide-terminal p{color:#8ed8bd}
.ide-terminal p span{color:var(--mint);margin-right:6px}

.device-card{
  z-index:2;position:absolute;right:-30px;bottom:10px;
  display:flex;align-items:center;gap:14px;
  min-width:268px;padding:15px 17px;border-radius:16px;
  border:1px solid rgba(108,240,199,.22);
  background:rgba(10,24,30,.95);
  backdrop-filter:blur(20px);
  box-shadow:0 30px 70px -10px rgba(0,0,0,.85),0 0 40px -10px rgba(108,240,199,.18);
  transform:rotate(1.1deg);
}
.device-icon{
  display:grid;place-items:center;
  width:46px;height:46px;border-radius:12px;
  border:1px solid rgba(108,240,199,.25);
  background:linear-gradient(135deg,rgba(108,240,199,.15),rgba(108,240,199,.05));
  color:var(--mint);
}
.device-card>div:nth-child(2){display:flex;flex-direction:column}
.device-card small{color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.06em}
.device-card strong{color:#d1ffef;font-size:13px;font-weight:750;letter-spacing:.04em;margin-top:3px}
.device-card span{color:#7fc4b5;font-size:10px}
.device-card>i{
  width:8px;height:8px;margin-left:auto;flex-shrink:0;border-radius:50%;
  background:var(--mint);
  box-shadow:0 0 12px var(--mint),0 0 0 4px rgba(108,240,199,.12);
  animation:led-pulse 2.4s ease-in-out infinite;
}

.build-signal{
  position:absolute;z-index:2;left:-16px;bottom:66px;
  display:flex;align-items:center;gap:8px;
  padding:11px 14px;border-radius:12px;
  border:1px solid var(--line-2);
  background:rgba(12,24,38,.9);
  backdrop-filter:blur(16px);
  color:#a9cbdc;font-size:10.5px;font-weight:700;
  box-shadow:0 20px 50px -10px rgba(0,0,0,.6);
  transform:rotate(.5deg);
}
.pulsing{
  width:6px;height:6px;border-radius:50%;
  background:var(--cyan);
  box-shadow:0 0 0 4px rgba(108,200,255,.14);
}

/* ============================================================
   RAIL (feature strip)
   ============================================================ */
.rail{
  position:relative;overflow:hidden;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,rgba(10,18,30,.8),rgba(6,10,18,.8));
}
.rail::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(108,240,199,.04) 50%,transparent);
}
.rail-grid{
  min-height:110px;display:grid;
  grid-template-columns:1fr 1fr 1fr .9fr;
  gap:25px;align-items:center;
}
.rail-grid>div{
  display:flex;flex-direction:column;gap:3px;
  padding-right:20px;border-right:1px solid var(--line);
}
.rail-grid>div strong{
  color:#d9fff3;font:750 16px var(--font-mono);
  letter-spacing:-.02em;
}
.rail-grid>div span{font-size:11px;color:var(--muted)}
.rail-grid>div.rail-final{
  border:0;padding:0;
  display:flex;flex-direction:row;align-items:center;gap:12px;
  font:700 10px var(--font-mono);letter-spacing:.1em;
  color:var(--muted);white-space:nowrap;
}
.rail-line{width:32px;height:1px;background:linear-gradient(90deg,var(--mint),transparent)}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section{padding:130px 0 0}
.section-head{max-width:820px;margin:0 0 50px}
.eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  margin-bottom:18px;
  color:var(--mint);
  font:800 11px var(--font-mono);
  letter-spacing:.18em;text-transform:uppercase;
}
.eyebrow::before{content:'';width:22px;height:1px;background:var(--mint)}
.section h2{
  font-size:clamp(34px,4.6vw,58px);
  font-weight:830;letter-spacing:-.04em;line-height:1.06;
}
.section-head p{
  max-width:640px;margin-top:22px;
  color:var(--ink-2);font-size:16px;line-height:1.78;
}
.section h2 em{
  font-style:normal;
  background:linear-gradient(100deg,var(--mint),var(--cyan));
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.bento-card{
  position:relative;overflow:hidden;
  min-height:340px;padding:36px 38px;
  border-radius:var(--radius);border:1px solid var(--line);
  background:
    radial-gradient(ellipse at 0% 0%,rgba(108,240,199,.06),transparent 60%),
    linear-gradient(180deg,rgba(13,24,40,.9),rgba(8,15,26,.9));
  transition:transform .35s cubic-bezier(.2,.8,.2,1),border-color .35s,box-shadow .35s;
  will-change:transform;
}
.bento-card::before{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:radial-gradient(500px circle at 50% 0%,rgba(108,240,199,.08),transparent 60%);
  opacity:0;transition:opacity .4s;
}
.bento-card:hover{
  transform:translateY(-4px);
  border-color:rgba(108,240,199,.32);
  box-shadow:0 30px 60px -20px rgba(0,0,0,.8),0 0 0 1px rgba(108,240,199,.08);
}
.bento-card:hover::before{opacity:1}

.card-eyebrow{
  margin-bottom:22px;color:var(--mint);opacity:.85;
  font:800 10px var(--font-mono);letter-spacing:.14em;
}
.bento-card h3{
  position:relative;z-index:1;
  max-width:490px;font-size:26px;font-weight:780;
  letter-spacing:-.03em;line-height:1.15;
}
.bento-card p{
  position:relative;z-index:1;
  max-width:440px;margin-top:14px;
  color:var(--ink-2);font-size:14px;line-height:1.72;
}

.bento-editor{
  grid-row:span 2;min-height:596px;
  background:
    radial-gradient(ellipse at 100% 100%,rgba(52,219,167,.13),transparent 60%),
    linear-gradient(180deg,rgba(13,24,40,.95),rgba(8,15,26,.95));
}
.bento-editor h3{font-size:34px;max-width:420px}
.bento-editor p{max-width:450px}
.bento-build{min-height:284px}
.bento-serial{min-height:284px}
.bento-libs{
  grid-column:span 2;min-height:250px;
  background:
    radial-gradient(ellipse at 100% 50%,rgba(108,200,255,.06),transparent 60%),
    linear-gradient(180deg,rgba(13,24,40,.9),rgba(8,15,26,.9));
}

.bento-editor-line{
  position:absolute;left:38px;right:0;bottom:36px;
  min-height:200px;padding:30px;
  border:1px solid var(--line-2);border-right:0;
  border-radius:14px 0 0 14px;
  background:rgba(8,14,22,.95);
  color:#b9cbdc;font:18px/2.4 var(--font-mono);
  box-shadow:0 0 60px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.02);
}
.bento-caret{
  position:absolute;right:22px;top:21px;
  width:2px;height:18px;background:var(--mint);
  box-shadow:0 0 12px var(--mint);
  animation:blink 1.2s steps(2,start) infinite;
}
.card-deco{
  position:absolute;right:0;top:20px;
  font-size:140px;font-weight:850;line-height:1;
  letter-spacing:-.1em;color:rgba(108,240,199,.05);
  pointer-events:none;
}

.build-bars{
  position:absolute;right:38px;bottom:0;
  display:flex;align-items:flex-end;gap:10px;
  height:85px;opacity:.9;
}
.build-bars i{
  width:14px;border-radius:4px 4px 0 0;
  background:linear-gradient(180deg,var(--mint),rgba(52,219,167,.1));
  box-shadow:0 0 12px rgba(108,240,199,.3);
}

.serial-chart{position:absolute;inset:auto 0 0 0;height:96px;padding:0 30px;opacity:.9}
.serial-chart svg{width:100%;height:100%;overflow:visible}
.chart-grid{fill:none;stroke:rgba(108,240,199,.12);stroke-width:1;stroke-dasharray:4 6}
.chart-wave{
  fill:none;stroke:var(--mint);stroke-width:2.4;
  stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 0 8px rgba(108,240,199,.5));
}

.library-pills{
  position:absolute;right:40px;top:100px;
  display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;
  max-width:320px;
}
.library-pills span{
  padding:8px 12px;border-radius:8px;
  border:1px solid rgba(108,240,199,.18);
  background:rgba(108,240,199,.06);
  color:#98f0d3;font:11.5px var(--font-mono);
}

/* ============================================================
   FLASH PANEL
   ============================================================ */
.flash-section{padding-top:140px}
.flash-head{max-width:900px}

.flash-panel{
  position:relative;overflow:hidden;
  padding:50px 50px 24px;
  border-radius:var(--radius-lg);
  border:1px solid rgba(108,240,199,.18);
  background:
    radial-gradient(ellipse at 50% -10%,rgba(52,219,167,.18),transparent 60%),
    linear-gradient(160deg,#0c1a25,#08121d);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.flash-panel-lines{
  position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(115deg,transparent 0 90px,rgba(108,240,199,.03) 91px,transparent 92px);
  mask-image:radial-gradient(ellipse at 50% 0%,#000,transparent 70%);
  -webkit-mask-image:radial-gradient(ellipse at 50% 0%,#000,transparent 70%);
}

.flash-cards{
  display:grid;grid-template-columns:1fr 52px 1fr;
  gap:16px;align-items:stretch;
}
.flash-card{
  position:relative;z-index:1;
  display:flex;align-items:flex-start;gap:20px;
  min-height:210px;padding:28px 26px;
  border-radius:16px;border:1px solid var(--line-2);
  background:rgba(7,15,24,.7);
  transition:border-color .3s,background .3s,transform .3s;
}
.flash-card:hover{
  border-color:rgba(108,240,199,.3);
  background:rgba(10,22,34,.85);
  transform:translateY(-2px);
}

.file-emblem{
  position:relative;display:grid;place-items:center;
  flex:0 0 62px;color:var(--mint);
  filter:drop-shadow(0 0 12px rgba(108,240,199,.35));
}
.file-emblem span{
  position:absolute;top:24px;left:50%;transform:translateX(-50%);
  color:var(--mint);font:800 11px var(--font-mono);white-space:nowrap;text-align:center;
}
.blue-file{color:var(--cyan);filter:drop-shadow(0 0 12px rgba(108,200,255,.35))}
.blue-file span{color:var(--cyan)}

.flash-number{
  display:block;color:var(--mint);opacity:.8;
  font:800 10px var(--font-mono);letter-spacing:.12em;
}
.flash-card h3{margin:12px 0 10px;font-size:22px;font-weight:760;letter-spacing:-.02em}
.flash-card p{color:var(--ink-2);font-size:13px;line-height:1.72}

.flash-divider{
  display:grid;place-items:center;
  color:var(--mint);font-size:26px;font-weight:300;opacity:.6;
}
.flash-bottom{
  position:relative;display:flex;align-items:center;justify-content:space-between;
  gap:25px;padding:26px 0 4px;
  color:var(--muted);font-size:12px;
}
.flash-bottom>a{color:var(--mint);font-weight:740;white-space:nowrap;transition:opacity .2s}
.flash-bottom>a:hover{opacity:.75}

/* ============================================================
   STANCE
   ============================================================ */
.stance-section{padding-top:148px}
.stance{
  position:relative;overflow:hidden;
  display:grid;grid-template-columns:.78fr 1.22fr;
  gap:70px;align-items:center;
  min-height:470px;padding:44px 72px 44px 20px;
  border-radius:var(--radius-lg);border:1px solid var(--line);
  background:
    radial-gradient(ellipse at 15% 50%,rgba(108,240,199,.08),transparent 60%),
    linear-gradient(150deg,#0a1422,#060b14);
}
.stance::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(108,240,199,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(108,240,199,.03) 1px,transparent 1px);
  background-size:40px 40px;
  mask-image:radial-gradient(ellipse at 20% 50%,#000,transparent 55%);
  -webkit-mask-image:radial-gradient(ellipse at 20% 50%,#000,transparent 55%);
}

.stance-symbol{position:relative;display:grid;place-items:center;height:380px}
.orbit{
  position:absolute;width:340px;height:340px;
  border:1px solid rgba(108,240,199,.18);
  border-radius:50%;
  animation:spin 30s linear infinite;
}
.orbit-2{
  width:244px;height:244px;
  border-color:rgba(108,200,255,.16);
  animation-duration:20s;animation-direction:reverse;
}
.orbit-1::before,.orbit-2::after{
  content:'';position:absolute;
  width:8px;height:8px;border-radius:50%;
  background:var(--mint);box-shadow:0 0 16px var(--mint);
}
.orbit-1::before{top:12%;left:14%}
.orbit-2::after{top:82%;right:8%;background:var(--cyan);box-shadow:0 0 16px var(--cyan)}
@keyframes spin{to{transform:rotate(360deg)}}

.core-chip{
  position:relative;display:grid;place-items:center;
  width:176px;height:176px;border-radius:28px;
  border:1px solid rgba(108,240,199,.3);
  background:linear-gradient(135deg,#0f3433,#0b2230);
  color:var(--mint);
  box-shadow:
    0 0 80px rgba(52,219,167,.25),
    0 25px 50px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.core-chip span{
  position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);
  color:#dbfff2;font:800 13px var(--font-mono);letter-spacing:.12em;
}

.stance-text h2{font-size:clamp(34px,4.1vw,54px);font-weight:830;letter-spacing:-.04em}
.stance-text>p{margin-top:24px;color:var(--ink-2);font-size:15px;line-height:1.9}
.stance-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.stance-tags span{
  padding:9px 13px;border-radius:8px;
  border:1px solid rgba(108,240,199,.18);
  background:rgba(108,240,199,.05);
  color:#9ee5cf;font-size:11px;font-weight:620;
}

/* ============================================================
   WORKFLOW
   ============================================================ */
.workflow-section{padding-top:145px}
.step-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;position:relative;
}
.step-card{
  position:relative;min-height:235px;padding:30px 26px 34px;
  border-radius:16px;border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(12,22,36,.8),rgba(8,14,24,.8));
  transition:border-color .3s,transform .3s;
}
.step-card:hover{border-color:rgba(108,240,199,.3);transform:translateY(-3px)}
.step-number{color:var(--mint);font:800 30px var(--font-mono);letter-spacing:-.03em}
.step-track{
  height:1px;margin:20px 0 22px;
  background:linear-gradient(90deg,var(--mint),transparent);
}
.step-card h3{font-size:17px;font-weight:740;letter-spacing:-.01em}
.step-card p{margin-top:10px;color:var(--ink-2);font-size:13px;line-height:1.72}

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download-section{padding-top:142px}
.download-shell{
  position:relative;overflow:hidden;
  display:grid;grid-template-columns:1.18fr .82fr;
  gap:50px;align-items:center;
  padding:70px;border-radius:30px;
  border:1px solid rgba(108,240,199,.22);
  background:
    radial-gradient(ellipse at 100% 0%,rgba(52,219,167,.2),transparent 55%),
    radial-gradient(ellipse at 0% 100%,rgba(108,200,255,.1),transparent 55%),
    linear-gradient(150deg,#0a1a25,#060b14);
  box-shadow:
    0 40px 100px -20px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.04);
}
.download-glow{
  position:absolute;right:-80px;top:-220px;
  width:700px;height:700px;
  background:radial-gradient(circle,rgba(52,219,167,.22),transparent 65%);
  filter:blur(30px);pointer-events:none;
}
.download-content,.release-panel{position:relative;z-index:1}
.download-content h2{
  font-size:clamp(34px,4vw,54px);
  font-weight:830;letter-spacing:-.04em;line-height:1.05;
}
.download-content h2 span{color:#9ec8c2}
.download-content>p{
  max-width:580px;margin-top:24px;
  color:var(--ink-2);font-size:14px;line-height:1.82;
}
.download-tags{display:flex;flex-wrap:wrap;gap:9px;margin-top:28px}
.download-tags span{
  padding:8px 12px;border-radius:7px;
  border:1px solid rgba(108,240,199,.18);
  background:rgba(108,240,199,.05);
  color:#9ee5cf;font:700 10.5px var(--font-mono);letter-spacing:.06em;
}
.download-all{
  display:inline-flex;margin-top:26px;
  color:var(--mint);font-size:13px;font-weight:740;
}
.download-all:hover{opacity:.75}

.release-panel{
  padding:34px;border-radius:20px;
  border:1px solid rgba(108,240,199,.28);
  background:rgba(6,14,22,.8);
  backdrop-filter:blur(24px);
  box-shadow:
    0 30px 70px -20px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.04);
}
.release-top{
  display:flex;justify-content:space-between;
  color:var(--mint);
  font:800 10px var(--font-mono);letter-spacing:.18em;
}
.release-dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--mint);box-shadow:0 0 14px var(--mint);
  animation:led-pulse 2.4s ease-in-out infinite;
}
.release-panel>strong{
  display:block;margin:22px 0 0;
  font:800 42px var(--font-mono);letter-spacing:-.03em;
}
.release-panel>p{
  min-height:44px;margin:9px 0 22px;
  color:var(--ink-2);font-size:13px;
}
.release-panel>.btn{width:100%;white-space:normal;text-align:center}
.release-meta{margin-top:13px;color:#a8c8c3;font-size:11px}
.release-panel>small{
  display:block;margin-top:20px;
  color:var(--muted);font-size:10.5px;line-height:1.65;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section{padding-bottom:130px}
.faq-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;align-items:start;
}
.faq-grid details{
  padding:22px 26px;border-radius:14px;
  border:1px solid var(--line);
  background:rgba(9,16,27,.7);
  transition:border-color .3s,background .3s;
}
.faq-grid details[open]{
  border-color:rgba(108,240,199,.28);
  background:rgba(11,22,36,.9);
}
.faq-grid summary{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  cursor:pointer;list-style:none;
  font-size:14px;font-weight:720;color:var(--ink);
}
.faq-grid summary::-webkit-details-marker{display:none}
.faq-grid summary::after{
  content:'+';color:var(--mint);
  font:300 24px/1 var(--font-sans);
  transition:transform .3s;flex-shrink:0;
}
.faq-grid details[open] summary::after{content:'−'}
.faq-grid details p{margin-top:16px;color:var(--ink-2);font-size:13px;line-height:1.78}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{border-top:1px solid var(--line);background:#04070c}
.footer-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;min-height:140px;
}
.footer-brand{
  display:flex;align-items:center;gap:0;white-space:nowrap;
}
.footer-brand img.footer-brand-logo{
  width:220px;height:auto;max-height:58px;
  filter:drop-shadow(0 0 18px rgba(108,240,199,.2));
}

.footer-inner p{color:var(--muted);font-size:12px}
.footer-links{display:flex;gap:20px}
.footer-links a{
  color:var(--ink-2);font-size:12px;white-space:nowrap;
  transition:color .2s;
}
.footer-links a:hover{color:var(--mint)}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes blink{50%{opacity:0}}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1190px){
  .container{width:calc(100% - 64px)}
  .main-nav{gap:19px}
  .hero{grid-template-columns:.98fr 1.02fr;gap:22px}
  .hero h1{font-size:clamp(48px,5.4vw,74px);letter-spacing:-.035em}
  .device-card{right:-4px}
  .ide-main{min-height:260px}
  .ide-code{font-size:10.5px}
  .ide-tree div{font-size:9.5px}
  .library-pills{max-width:225px}
  .stance{gap:25px;padding-right:40px}
  .download-shell{gap:30px;padding:50px}
}

@media(max-width:950px){
  .brand{min-width:0;margin-right:auto}
  .brand img.brand-logo-full{width:220px;max-height:64px}
  .main-nav{gap:13px}
  .main-nav a{font-size:11px}
  .nav-download{font-size:12px;padding:10px 14px}

  .hero{grid-template-columns:1fr;gap:28px;padding:24px 0 54px}
  .hero-copy{max-width:750px}
  .hero-art{max-width:680px;width:100%;margin:0 auto}
  .hero h1{font-size:clamp(52px,8vw,78px)}
  .hero-intro{max-width:700px}

  .rail-grid{grid-template-columns:repeat(3,1fr)}
  .rail-grid .rail-final{display:none}

  .bento-libs p{max-width:450px}
  .library-pills{position:relative;right:auto;top:auto;max-width:100%;justify-content:flex-start;margin-top:25px}

  .flash-cards{grid-template-columns:1fr 28px 1fr;gap:8px}
  .flash-card{display:block;min-height:300px}
  .flash-card .file-emblem{margin:0 0 10px;width:65px}

  .stance{grid-template-columns:.75fr 1.25fr;padding:30px}
  .orbit{width:250px;height:250px}
  .orbit-2{width:190px;height:190px}
  .stance-symbol{height:300px}

  .step-grid{grid-template-columns:repeat(2,1fr)}

  .download-shell{grid-template-columns:1fr;padding:50px}
  .download-content>p{max-width:640px}
  .release-panel{max-width:540px;width:100%}

  .footer-inner{flex-wrap:wrap;padding:28px 0}
  .footer-inner p{order:3;width:100%}
}

@media(max-width:680px){
  .container{width:calc(100% - 34px)}
  .header-inner{min-height:83px;gap:8px}
  .brand img.brand-logo-full{width:180px;max-height:52px}
  .main-nav{display:none}
  .nav-download{font-size:11px;padding:9px 12px}

  .hero{padding:18px 0 35px}
  .microtag{font-size:10px;letter-spacing:.05em;line-height:1.5}
  .hero h1{font-size:clamp(40px,9vw,60px);line-height:1.05;letter-spacing:-.04em;margin-top:0}
  .hero-intro{font-size:15px;margin-top:22px}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:9px}
  .hero-actions .btn{width:100%}
  .hero-art{min-height:440px;padding:33px 0 46px}
  .mini-label{left:3px;font-size:8px}
  .ide-window{transform:none}
  .ide-titlebar{height:39px;padding:0 12px}
  .ide-toolbar{gap:4px;padding:7px}
  .ide-toolbar span{font-size:8px;padding:3px 6px}
  .ide-toolbar em{font-size:7px}
  .ide-main{grid-template-columns:85px minmax(0,1fr);min-height:244px}
  .ide-tree{padding:12px 4px}
  .ide-tree div{font-size:8.5px}
  .ide-tree small{font-size:8px}
  .ide-tree .tree-tail{margin-top:32px}
  .ide-code{font-size:9.5px;padding:10px 7px;line-height:1.65}
  .ide-code .n{width:22px}
  .ide-terminal{min-height:94px;font-size:9px;padding:10px}
  .ide-terminal p{white-space:nowrap}
  .device-card{right:0;bottom:9px;min-width:0;width:220px;padding:10px;gap:8px}
  .device-icon{height:38px;width:38px}
  .device-card small{font-size:7.5px}
  .device-card strong{font-size:11px}
  .device-card span{font-size:8px}
  .build-signal{left:3px;bottom:61px;padding:7px 9px;font-size:9px}

  .rail-grid{grid-template-columns:repeat(2,1fr);padding:19px 0;gap:18px}
  .rail-grid>div:nth-child(2){border:0}
  .rail-grid>div:nth-child(3){grid-column:span 2;padding-top:12px;border-top:1px solid var(--line);border-right:0;padding-right:0}
  .rail-grid>div strong{font-size:14px}

  .section{padding-top:85px}
  .section h2{font-size:clamp(32px,8vw,44px);letter-spacing:-.035em}
  .section-head{margin-bottom:30px}
  .section-head p{font-size:14px;margin-top:15px}

  .bento{grid-template-columns:1fr;gap:12px}
  .bento-editor{grid-row:auto;min-height:435px}
  .bento-card{padding:27px 25px;min-height:265px}
  .bento-editor h3{font-size:30px}
  .bento-card h3{font-size:24px}
  .bento-editor-line{bottom:24px;left:25px;min-height:140px;padding:20px;font-size:14px}
  .bento-build,.bento-serial{min-height:265px}
  .bento-libs{grid-column:auto;min-height:225px}
  .bento-libs p{max-width:100%}
  .library-pills{margin-top:18px}

  .flash-panel{padding:20px;border-radius:20px}
  .flash-cards{grid-template-columns:1fr;gap:10px}
  .flash-card{display:flex;gap:14px;min-height:0;padding:20px 15px}
  .flash-divider{display:none}
  .flash-card h3{font-size:19px}
  .flash-card p{font-size:12px}
  .file-emblem{transform:scale(.85);transform-origin:top left;flex-basis:54px}
  .flash-bottom{flex-direction:column;align-items:flex-start;gap:12px;line-height:1.65}

  .stance-section{padding-top:85px}
  .stance{grid-template-columns:1fr;gap:0;padding:8px 25px 32px}
  .stance-symbol{height:210px}
  .orbit{width:192px;height:192px}
  .orbit-2{width:142px;height:142px}
  .core-chip{width:115px;height:115px;border-radius:18px}
  .core-chip svg{width:83px;height:83px}
  .core-chip span{font-size:9px}
  .stance-text h2{font-size:34px}
  .stance-text>p{font-size:13px;line-height:1.85;margin-top:18px}
  .stance-tags{margin-top:20px}

  .step-grid{grid-template-columns:1fr}
  .step-card{min-height:185px}
  .step-track{margin:13px 0}

  .download-section{padding-top:92px}
  .download-shell{padding:33px 22px;gap:30px}
  .download-content h2{font-size:34px;letter-spacing:-.035em}
  .download-content>p{font-size:13px}
  .release-panel{padding:24px}

  .faq-section{padding-bottom:75px}
  .faq-grid{grid-template-columns:1fr}
  .faq-grid details{padding:18px}

  .footer-inner{flex-direction:column;align-items:flex-start}
  .footer-inner p{order:0;width:auto}
  .footer-links{flex-wrap:wrap}
}

@media(max-width:370px){
  .brand img.brand-logo-full{width:150px;max-height:46px}
  .nav-download{padding:8px}
  .ide-code{font-size:8.5px}
  .ide-main{grid-template-columns:70px minmax(0,1fr)}
  .ide-tree div{font-size:7.5px}
  .ide-toolbar em{display:none}
  .hero h1{font-size:38px}
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .bento-caret,.led,.device-card>i,.release-dot,.orbit{animation:none!important}
  .hero h1 em{animation:none}
  .ambient-a,.ambient-b{animation:none}
  *,*::before,*::after{transition:none!important}
}

/* Hero: equal emphasis on Arduino IDE users and PlatformIO users */
.hero-intro strong{color:#e8fff7;font-weight:720}
.audience-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;max-width:540px;margin-top:22px;
}
.audience-card{
  display:flex;flex-direction:column;align-items:flex-start;gap:5px;
  min-width:0;padding:15px 16px 16px;
  border:1px solid rgba(108,240,199,.19);border-radius:13px;
  background:linear-gradient(135deg,rgba(108,240,199,.065),rgba(108,200,255,.035));
}
.audience-card:nth-child(2){border-color:rgba(108,200,255,.21)}
.audience-label{
  font-size:10px;font-weight:790;letter-spacing:.09em;color:var(--mint);
}
.audience-card:nth-child(2) .audience-label{color:var(--cyan)}
.audience-card strong{font-size:15px;line-height:1.32;font-weight:750;color:var(--ink)}
.audience-card>span:last-child{font-size:12px;line-height:1.5;color:var(--ink-2)}
@media(min-width:951px) and (max-width:1250px){
  .hero h1{font-size:clamp(45px,4.7vw,66px)}
}
@media(max-width:680px){
  .audience-grid{gap:8px;margin-top:20px}
  .audience-card{padding:12px 10px}
  .audience-card strong{font-size:13px}
  .audience-card>span:last-child{font-size:11px}
  .audience-label{font-size:9px}
  .hero h1{font-size:clamp(37px,8.7vw,58px)}
}
@media(max-width:370px){
  .hero h1{font-size:36px}
  .audience-grid{grid-template-columns:1fr}
}


/* RU editorial showcase: advantages and library manager */
.benefits-section .section-head{max-width:880px}
.benefits-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.benefit-card{position:relative;isolation:isolate;overflow:hidden;min-height:275px;padding:32px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(155deg,rgba(16,33,47,.93),rgba(8,15,26,.91));transition:border-color .25s,transform .25s,box-shadow .25s}
.benefit-card:hover{transform:translateY(-3px);border-color:rgba(108,240,199,.34);box-shadow:0 20px 60px rgba(0,0,0,.16)}
.benefit-card::before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 100% 0%,rgba(108,240,199,.09),transparent 52%)}
.benefit-index{position:relative;z-index:1;color:var(--mint);font:750 10px var(--font-mono);letter-spacing:.11em}
.benefit-symbol{position:absolute;top:20px;right:24px;color:rgba(108,240,199,.26);font:500 43px var(--font-mono);line-height:1}
.benefit-card h3{position:relative;z-index:1;margin:36px 0 15px;font-size:clamp(21px,2.15vw,29px);font-weight:790;letter-spacing:-.03em}
.benefit-card p{position:relative;z-index:1;color:var(--ink-2);font-size:14px;line-height:1.73}
.benefit-turbo{background:linear-gradient(155deg,rgba(17,55,55,.82),rgba(8,17,30,.92));border-color:rgba(108,240,199,.23)}
.chip-pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:18px}
.chip-pills span{font:750 10px var(--font-mono);color:#aff2d9;padding:5px 8px;border:1px solid rgba(108,240,199,.19);background:rgba(108,240,199,.06);border-radius:6px}
.libraries-layout{display:grid;grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);gap:18px;align-items:stretch}
.libraries-spotlight{position:relative;overflow:hidden;min-height:525px;padding:38px 36px;border:1px solid rgba(108,240,199,.3);border-radius:22px;background:radial-gradient(circle at 8% 0%,rgba(51,174,147,.19),transparent 48%),linear-gradient(140deg,#101f2a,#07121e 70%)}
.spotlight-top{display:flex;gap:10px;align-items:center}
.spotlight-mark{display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(108,240,199,.25);border-radius:12px;background:rgba(108,240,199,.08);font-size:23px}
.spotlight-kicker{font:740 10px/1.6 var(--font-mono);letter-spacing:.06em;color:var(--mint)}
.libraries-spotlight h3{position:relative;z-index:1;max-width:480px;margin-top:42px;font-size:clamp(29px,3.1vw,43px);font-weight:800;line-height:1.2;letter-spacing:-.045em}
.libraries-spotlight h3 em{font-style:normal;color:var(--mint)}
.libraries-spotlight p{position:relative;z-index:1;max-width:480px;margin-top:22px;color:var(--ink-2);font-size:15px;line-height:1.78}
.spotlight-chips{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.spotlight-chips span{padding:7px 12px;border:1px solid rgba(108,240,199,.24);border-radius:30px;background:rgba(108,240,199,.09);font-size:12px;color:#abf6df}
.spotlight-decoration{position:absolute;left:36px;right:30px;bottom:15px;color:rgba(108,240,199,.24);font:12px/1.8 var(--font-mono);letter-spacing:.01em;white-space:pre-line;transform:rotate(-3deg);pointer-events:none}
.library-list{display:grid;grid-template-columns:1fr;gap:10px}
.library-line{display:flex;gap:17px;align-items:flex-start;padding:21px 23px;border:1px solid var(--line);border-radius:14px;background:rgba(11,23,36,.82);transition:border-color .25s}
.library-line:hover{border-color:rgba(108,240,199,.33)}
.library-check{flex:0 0 30px;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(108,240,199,.1);color:var(--mint);font-weight:900}
.library-line h3{margin-top:2px;font-size:17px;font-weight:760;letter-spacing:-.015em}
.library-line p{margin-top:7px;color:var(--ink-2);font-size:12.5px;line-height:1.7}
@media(max-width:1190px){.benefit-card{padding:27px;min-height:295px}.library-line{padding:19px}.libraries-spotlight{padding:32px}}
@media(max-width:950px){.benefits-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.libraries-layout{grid-template-columns:1fr}.libraries-spotlight{min-height:430px}.library-list{grid-template-columns:repeat(2,minmax(0,1fr))}.library-line:last-child{grid-column:span 2}}
@media(max-width:680px){.benefits-grid,.library-list{grid-template-columns:1fr;gap:12px}.benefit-card{min-height:0;padding:27px 25px}.benefit-card h3{margin-top:26px;font-size:24px}.library-line:last-child{grid-column:auto}.libraries-spotlight{min-height:480px;padding:27px 25px}.libraries-spotlight h3{margin-top:35px;font-size:30px}.libraries-spotlight p{font-size:14px}.spotlight-decoration{left:25px}.library-line{padding:18px}}
/* Keep the five-link Russian navigation from crowding the header on tablets. */
@media(min-width:681px) and (max-width:900px){.main-nav{display:none}}

/* ============================================================
   Real ESP32 Coder interface: RU and EN screenshots, example project
   ============================================================ */
.hero-art.hero-screenshot {
  min-height:0;
  width:100%;
  display:block;
  padding:44px 0 20px;
}
.hero-screenshot .mini-label{top:10px;left:5px;white-space:nowrap}
.screenshot-figure{position:relative;z-index:1;margin:0;max-width:100%}
.interface-shot {
  position:relative;display:block;overflow:hidden;
  border:1px solid rgba(108,240,199,.28);
  border-radius:17px;background:#1e1e1e;
  box-shadow:0 35px 85px -28px rgba(0,0,0,.9),0 0 50px -25px rgba(108,240,199,.25);
  transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.interface-shot:hover,.interface-shot:focus-visible{
  transform:translateY(-3px);border-color:rgba(108,240,199,.7);
  box-shadow:0 39px 90px -27px rgba(0,0,0,.9),0 0 65px -25px rgba(108,240,199,.4);
}
.interface-shot img{display:block;width:100%;height:auto;object-fit:contain}
.screenshot-zoom{
  position:absolute;right:10px;bottom:10px;display:grid;place-items:center;
  width:30px;height:30px;border-radius:8px;
  background:rgba(5,17,22,.87);border:1px solid rgba(108,240,199,.35);
  color:#bafbe9;font-size:19px;font-weight:700;
}
.screenshot-caption{
  display:flex;align-items:center;justify-content:space-between;gap:9px 18px;
  margin-top:13px;color:var(--muted);font-size:11px;line-height:1.6;
}
.screenshot-caption a{white-space:nowrap;color:var(--mint);font-weight:650}
.screenshot-caption a:hover{text-decoration:underline}
.screenshot-carousel{position:relative;z-index:1}
.carousel-track{position:relative}
.carousel-slide{display:none}
.carousel-slide.is-active{display:block}
.carousel-arrow{position:absolute;top:42%;transform:translateY(-50%);z-index:3;width:44px;height:44px;border-radius:999px;border:1px solid rgba(108,240,199,.34);background:rgba(7,13,20,.9);color:#dffff7;font-size:28px;line-height:1;display:grid;place-items:center;cursor:pointer;transition:transform .2s ease,border-color .2s ease,background .2s ease}
.carousel-arrow:hover,.carousel-arrow:focus-visible{transform:translateY(-50%) scale(1.04);border-color:rgba(108,240,199,.7);background:rgba(13,24,33,.96)}
.carousel-arrow.prev{left:-18px}.carousel-arrow.next{right:-18px}
.carousel-dots{display:flex;justify-content:center;gap:10px;margin-top:14px}
.carousel-dot{width:10px;height:10px;border-radius:999px;border:1px solid rgba(108,240,199,.48);background:rgba(108,240,199,.16);padding:0;cursor:pointer;transition:transform .2s ease,background .2s ease,border-color .2s ease}
.carousel-dot.is-active{background:var(--mint);border-color:var(--mint);transform:scale(1.15)}
@media(max-width:950px){.carousel-arrow.prev{left:-10px}.carousel-arrow.next{right:-10px}}
@media(max-width:680px){.carousel-arrow{width:36px;height:36px;font-size:22px;top:40%}.carousel-arrow.prev{left:-4px}.carousel-arrow.next{right:-4px}.carousel-dots{margin-top:10px}}
@media(max-width:950px){
  .hero-art.hero-screenshot{max-width:100%;padding:42px 0 15px}
}
@media(max-width:680px){
  .hero-art.hero-screenshot{min-height:0;padding:36px 0 12px}
  .screenshot-caption{display:block}
  .screenshot-caption a{display:inline-block;margin-top:6px}
  .interface-shot{border-radius:10px}
  .screenshot-zoom{width:24px;height:24px;font-size:16px;right:6px;bottom:6px}
}

/* ================================================
   Getting started docs / native ESP32 Coder example
   ================================================ */
.docs-teaser{padding-block:48px 10px}
.docs-teaser-card{display:flex;align-items:center;justify-content:space-between;gap:26px;padding:38px 42px;border:1px solid rgba(108,240,199,.24);border-radius:22px;background:radial-gradient(circle at 95% 20%,rgba(43,185,154,.15),transparent 50%),#0a1723}
.docs-teaser-card h2{font-size:clamp(28px,3.5vw,40px);margin:12px 0 14px}
.docs-teaser-card h2 em{font-style:normal;color:var(--mint)}
.docs-teaser-card p{color:var(--ink-2);font-size:14px;line-height:1.7;max-width:650px}
.docs-teaser-card .btn{flex:0 0 auto;white-space:nowrap}
.docs-page{position:relative;z-index:1}
.docs-hero{padding:70px 0 58px;border-bottom:1px solid var(--line)}
.docs-breadcrumb{display:flex;gap:12px;align-items:center;font-size:12px;color:var(--muted);margin-bottom:28px}
.docs-breadcrumb a:hover{color:var(--mint)}
.docs-hero .eyebrow{color:var(--mint);margin-bottom:16px}
.docs-hero h1{font-size:clamp(38px,5.5vw,64px);max-width:950px}
.docs-hero h1 em{font-style:normal;color:var(--mint)}
.docs-hero>p{font-size:17px;color:var(--ink-2);line-height:1.7;max-width:790px;margin-top:22px}
.docs-layout{display:grid;grid-template-columns:minmax(185px,250px) minmax(0,1fr);gap:56px;padding-top:62px;padding-bottom:85px}
.docs-sidebar{position:sticky;top:113px;align-self:start;display:flex;flex-direction:column;gap:4px;padding:21px;background:rgba(11,24,35,.88);border:1px solid var(--line);border-radius:16px}
.docs-sidebar-title{font:750 11px var(--font-mono);letter-spacing:.12em;color:var(--mint);margin-bottom:15px}
.docs-sidebar a{font-size:12px;color:var(--ink-2);line-height:1.35;border-radius:8px;padding:10px}
.docs-sidebar a:hover,.docs-sidebar a:focus-visible{background:rgba(108,240,199,.08);color:var(--mint)}
.docs-body{min-width:0;max-width:860px}
.docs-section{scroll-margin-top:115px;padding-bottom:56px;margin-bottom:56px;border-bottom:1px solid var(--line)}
.docs-section:last-child{border:0;margin-bottom:0;padding-bottom:0}
.docs-step{font:750 10px var(--font-mono);letter-spacing:.12em;color:var(--mint);margin-bottom:16px}
.docs-section h2{font-size:clamp(27px,3vw,39px);margin-bottom:20px}
.docs-section p{margin:12px 0 18px;color:var(--ink-2);font-size:14px;line-height:1.85}
.docs-section ol,.docs-section ul{padding-left:23px;margin:16px 0 23px;color:var(--ink-2);font-size:14px;line-height:1.9}
.docs-section li{padding-left:6px;margin:9px 0}
.docs-section strong{color:var(--ink)}
.docs-section a{color:var(--mint);font-weight:680;text-decoration:underline;text-underline-offset:3px}
.docs-section a:hover{color:#c5ffef}
.docs-section code{font-family:var(--font-mono);font-size:.92em;color:#b7fbeb;overflow-wrap:anywhere}
.docs-tree,.docs-code{max-width:100%;overflow:auto;padding:22px 24px;margin:20px 0 25px;border:1px solid #234459;border-radius:14px;background:#071321;color:#c5f4e6;font:12.5px/1.65 var(--font-mono);white-space:pre;tab-size:2}
.docs-tree code,.docs-code code{font-size:inherit;color:inherit;overflow-wrap:normal}
.docs-notice{padding:22px 24px;margin:20px 0 27px;background:linear-gradient(115deg,rgba(108,240,199,.12),rgba(108,200,255,.035));border:1px solid rgba(108,240,199,.37);border-left:4px solid var(--mint);border-radius:12px;color:var(--ink-2);font-size:14px;line-height:1.8}
.docs-notice strong{display:block;font-size:16px;color:#d1fff1;margin-bottom:7px}
.docs-note{border-left:3px solid #78b9ef;background:rgba(108,200,255,.055);padding:15px 20px;color:var(--ink-2);border-radius:0 9px 9px 0;font-size:13px;line-height:1.85;margin:25px 0}
.docs-section p.docs-muted{font-size:12px;color:var(--muted)}
.docs-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}
.docs-action-grid>div{border:1px solid var(--line);background:rgba(10,23,36,.7);border-radius:12px;padding:20px}
.docs-action-grid strong{color:var(--mint)}
.docs-action-grid p{font-size:12px;line-height:1.6;margin:10px 0 0}
.docs-section details{border-bottom:1px solid var(--line);padding:18px 0}
.docs-section summary{color:var(--ink);font-weight:680;cursor:pointer}
.docs-section details p{margin-bottom:0}
@media(max-width:1100px){.docs-layout{gap:30px;grid-template-columns:215px minmax(0,1fr)}.docs-top-nav{gap:15px}}
@media(max-width:950px){.docs-layout{grid-template-columns:1fr;gap:28px;padding-top:38px}.docs-sidebar{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}.docs-sidebar-title{grid-column:1/-1}.docs-hero{padding:55px 0 39px}}
@media(max-width:680px){.docs-teaser-card{padding:26px;flex-direction:column;align-items:flex-start}.docs-teaser-card .btn{width:100%;text-align:center}.docs-hero>p{font-size:14px}.docs-section{margin-bottom:40px;padding-bottom:40px}.docs-section ol{font-size:13px}.docs-tree,.docs-code{padding:14px;font-size:10.5px}.docs-action-grid{grid-template-columns:1fr}.docs-sidebar{padding:12px}.docs-sidebar a{font-size:11px;padding:10px 7px}.docs-notice{padding:18px 17px}}

.download-folder-hint{margin:18px 0 22px;padding:15px 17px;border-left:3px solid var(--mint);border-radius:0 8px 8px 0;background:rgba(108,240,199,.075);font-size:12.5px;line-height:1.75;color:var(--ink-2)}
.download-folder-hint strong{color:var(--ink)}
.download-folder-hint code{font:12px var(--font-mono);color:#b4f8e1}
.download-folder-hint a{color:var(--mint);font-weight:700;white-space:nowrap}
.download-folder-hint a:hover{text-decoration:underline}

/* Release download guidance */
.hero-download-note {margin-top:12px;max-width:600px;color:var(--ink-2);font-size:12px;line-height:1.65}
.hero-download-note strong{color:#bafbe9;font-weight:750}
.hero-download-note code{font:inherit;color:#bafbe9}
.download-folder-hint strong{color:#bafbe9}
.docs-notice a{color:var(--mint);font-weight:700;text-decoration:underline;text-underline-offset:3px}


/* Actual GitHub release number is loaded at runtime; no hard-coded version. */
.hero-live-release{margin:13px 0 0;color:var(--ink-2);font-size:12px;line-height:1.5}
.hero-live-release a{color:var(--mint);font-weight:750;border-bottom:1px dashed rgba(108,240,199,.38);transition:color .15s}
.hero-live-release a:hover{color:#dcfff3;border-color:#dcfff3}
/* Updated chevrons for the in-page screenshot carousel. */
.carousel-arrow{
 display:flex;align-items:center;justify-content:center;width:46px;height:46px;
 padding:0;flex:none;cursor:pointer;line-height:1;
 border:1px solid rgba(108,240,199,.46);border-radius:50%;
 background:linear-gradient(145deg,rgba(27,52,57,.94),rgba(7,16,27,.96));
 color:#a9ffe5;box-shadow:0 7px 25px rgba(0,0,0,.40),inset 0 1px 0 rgba(255,255,255,.08);
}
.carousel-arrow svg{pointer-events:none;transition:transform .2s}
.carousel-arrow:hover{color:#fff;border-color:var(--mint);box-shadow:0 0 22px rgba(108,240,199,.25),0 8px 25px rgba(0,0,0,.55)}
.carousel-arrow.prev:hover svg{transform:translateX(-2px)}
.carousel-arrow.next:hover svg{transform:translateX(2px)}
/* Full-window image viewer: no side gutters, maximize image immediately.
   The first click also requests the browser's native fullscreen; CSS below
   remains a usable full-viewport fallback if the browser declines it. */
.screenshot-lightbox{
  position:fixed;inset:0;z-index:5000;display:none;
  align-items:center;justify-content:center;width:100vw;height:100dvh;
  padding:4px;background:#02070d;
  backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);
}
.screenshot-lightbox.is-open,.screenshot-lightbox:fullscreen{display:flex}
.screenshot-lightbox:fullscreen{width:100%;height:100%;padding:4px;background:#02070d}
.lightbox-dialog{
  position:relative;display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;max-width:none;min-width:0;min-height:0;
}
.lightbox-image-wrap{
  display:flex;align-items:center;justify-content:center;
  position:relative;width:100%;height:100%;min-width:0;min-height:0;
}
.lightbox-image{
  display:block;max-width:100%;max-height:100%;width:auto;height:auto;
  object-fit:contain;border-radius:4px;border:1px solid rgba(108,240,199,.26);
  box-shadow:0 0 50px rgba(0,0,0,.45);
}
/* Captions remain on the page; no caption consumes available screenshot height. */
.lightbox-caption{display:none}
.lightbox-close,.lightbox-nav{
  position:fixed;z-index:5005;display:flex;align-items:center;justify-content:center;
  padding:0;color:#b7ffe9;border-radius:50%;
  border:1px solid rgba(108,240,199,.58);
  background:rgba(11,34,39,.92);cursor:pointer;
  box-shadow:0 10px 28px rgba(0,0,0,.58);
  transition:background .16s,transform .16s,border-color .16s,color .16s;
}
.lightbox-close:hover,.lightbox-nav:hover{border-color:var(--mint);color:white;background:#1d5554}
.lightbox-close:focus-visible,.lightbox-nav:focus-visible{outline:3px solid #b7ffe9;outline-offset:3px}
.lightbox-close{top:12px;right:12px;width:48px;height:48px}
.lightbox-close:hover{transform:scale(1.06)}
.lightbox-nav{top:50%;transform:translateY(-50%);width:52px;height:52px}
.lightbox-nav:hover{transform:translateY(-50%) scale(1.06)}
.lightbox-prev{left:10px}.lightbox-next{right:10px}
.lightbox-close svg,.lightbox-nav svg{display:block;pointer-events:none}
@media(max-width:680px){
 .carousel-arrow{width:36px;height:36px}
 .carousel-arrow svg{width:19px;height:19px}
 .screenshot-lightbox,.screenshot-lightbox:fullscreen{padding:2px}
 .lightbox-image{border-radius:3px}
 .lightbox-nav{width:38px;height:38px}
 .lightbox-prev{left:4px}.lightbox-next{right:4px}
 .lightbox-close{top:8px;right:8px;width:40px;height:40px}
}
@media(prefers-reduced-motion:reduce){.lightbox-close,.lightbox-nav,.carousel-arrow svg{transition:none}}


/* ============================================================
   Compact section rhythm — remove oversized blank bands between
   sections while preserving legible gaps inside components.
   Applies to both RU and EN pages and the Docs pages.
   ============================================================ */
.hero{padding-bottom:32px}
.rail-grid{min-height:92px}
.section,
.flash-section,
.stance-section,
.workflow-section,
.download-section{padding-top:56px}
.section-head{margin-bottom:34px}
.eyebrow{margin-bottom:13px}
.section-head p{margin-top:17px}
.docs-teaser{padding-top:36px;padding-bottom:0}
.faq-section{padding-bottom:75px}

/* The documentation has its own rhythm but should not start with
   another oversized spacer. */
.docs-hero{padding-top:44px;padding-bottom:38px}
.docs-layout{padding-top:40px;padding-bottom:52px}
.docs-section{padding-bottom:36px;margin-bottom:36px}
.docs-section:last-child{padding-bottom:0;margin-bottom:0}

@media(max-width:950px){
  .section,
  .flash-section,
  .stance-section,
  .workflow-section,
  .download-section{padding-top:46px}
  .section-head{margin-bottom:28px}
  .docs-hero{padding-top:38px;padding-bottom:30px}
  .docs-layout{padding-top:30px;padding-bottom:45px}
}
@media(max-width:680px){
  .hero{padding-bottom:22px}
  .section,
  .flash-section,
  .stance-section,
  .workflow-section,
  .download-section{padding-top:34px}
  .section-head{margin-bottom:24px}
  .eyebrow{margin-bottom:11px}
  .section-head p{margin-top:13px}
  .docs-teaser{padding-top:28px;padding-bottom:0}
  .faq-section{padding-bottom:38px}
  .docs-hero{padding-top:30px;padding-bottom:25px}
  .docs-layout{padding-top:24px;padding-bottom:34px}
  .docs-section{padding-bottom:26px;margin-bottom:26px}
}

/* ============================================================
   Laptop / short viewport layout
   Keep all copy visible: use denser spacing and shorter card designs,
   instead of fixed-height clipping or hiding a feature.
   ============================================================ */
@media (min-width: 951px) and (max-height: 850px) {
  html { scroll-padding-top: 78px; }
  .header-inner { min-height: 68px; }
  .brand img.brand-logo-full { width: 216px; max-height: 58px; }
  .main-nav { gap: clamp(12px, 1.5vw, 22px); }
  .main-nav a { font-size: 12px; }
  .nav-download { padding: 9px 15px; }
  .hero { padding: 12px 0 18px; gap: 20px; }
  .hero h1 { font-size: clamp(38px, 4.5vw, 62px); }
  .hero-intro { margin-top: 14px; font-size: 14px; line-height: 1.55; }
  .audience-grid { margin-top: 13px; gap: 9px; }
  .audience-card { padding: 12px 14px; }
  .audience-card strong { font-size: 14px; }
  .audience-card>span:last-child { font-size: 11.5px; }
  .hero-actions { margin-top: 15px; }
  .btn { min-height: 44px; padding: 10px 17px; }
  .hero-live-release { margin-top: 8px; }
  .hero-download-note { margin-top: 8px; line-height: 1.45; }
  .hero-art.hero-screenshot { padding: 30px 0 12px; }
  .section,
  .flash-section,
  .stance-section,
  .workflow-section,
  .download-section { padding-top: 22px; scroll-margin-top: 74px; }
  .section-head { max-width: 100%; margin-bottom: 14px; }
  .section-head h2 { font-size: clamp(30px, 2.95vw, 40px); line-height: 1.08; }
  .section-head p { max-width: 1000px; font-size: 13px; line-height: 1.45; margin-top: 8px; }
  .eyebrow { margin-bottom: 8px; font-size: 10px; }

  /* Six capabilities remain six fully readable cards. */
  .benefits-grid { gap: 9px; }
  .benefit-card { min-height: 0; padding: 16px 19px; }
  .benefit-index { font-size: 9px; }
  .benefit-symbol { top: 12px; right: 14px; font-size: 28px; }
  .benefit-card h3 { margin: 14px 0 7px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.15; }
  .benefit-card p { font-size: 12px; line-height: 1.42; }
  .chip-pills { gap: 4px; margin-top: 8px; }
  .chip-pills span { padding: 3px 6px; font-size: 9px; }

  /* All five manager functions visible beside the Trema feature. */
  .libraries-layout { gap: 12px; }
  .libraries-spotlight { min-height: 0; padding: 19px 23px; display: flex; flex-direction: column; justify-content: center; }
  .spotlight-top { gap: 8px; }
  .spotlight-mark { width: 36px; height: 36px; font-size: 19px; border-radius: 9px; }
  .spotlight-kicker { font-size: 9px; line-height: 1.3; }
  .libraries-spotlight h3 { margin-top: 17px; font-size: clamp(24px, 2.35vw, 31px); line-height: 1.14; }
  .libraries-spotlight p { margin-top: 12px; font-size: 12.5px; line-height: 1.5; }
  .spotlight-chips { gap: 5px; margin-top: 15px; }
  .spotlight-chips span { padding: 5px 9px; font-size: 11px; }
  .spotlight-decoration { display: none; }
  .library-list { gap: 6px; }
  .library-line { gap: 10px; padding: 11px 12px; border-radius: 11px; }
  .library-check { flex-basis: 24px; width: 24px; height: 24px; border-radius: 7px; }
  .library-line h3 { font-size: 14px; line-height: 1.2; }
  .library-line p { margin-top: 4px; font-size: 11.5px; line-height: 1.4; }

  /* Other sections use the same vertical rhythm. */
  .flash-panel { padding: 22px 25px 14px; }
  .flash-cards { gap: 10px; }
  .flash-card { min-height: 0; padding: 16px 17px; gap: 13px; }
  .flash-card h3 { margin: 8px 0 6px; font-size: 19px; }
  .flash-card p { font-size: 12px; line-height: 1.5; }
  .flash-bottom { padding: 12px 0 0; gap: 10px; }
  .stance { min-height: 0; gap: 30px; padding: 18px 42px 18px 16px; }
  .stance-symbol { height: 245px; }
  .orbit { width: 240px; height: 240px; }
  .orbit-2 { width: 174px; height: 174px; }
  .core-chip { width: 126px; height: 126px; }
  .stance-text h2 { font-size: 33px; }
  .stance-text>p { margin-top: 12px; font-size: 13px; line-height: 1.55; }
  .stance-tags { margin-top: 12px; gap: 7px; }
  .stance-tags span { padding: 6px 9px; }
  .step-grid { gap: 10px; }
  .step-card { min-height: 0; padding: 17px 18px 20px; }
  .step-number { font-size: 24px; }
  .step-track { margin: 10px 0 12px; }
  .step-card h3 { font-size: 16px; }
  .step-card p { font-size: 12px; line-height: 1.5; }
  .docs-teaser { padding-top: 20px; }
  .docs-teaser-card { padding: 22px 26px; }
  .docs-teaser-card h2 { margin: 6px 0 7px; font-size: 28px; }
  .docs-teaser-card p { font-size: 12px; }
  .download-shell { padding: 26px 30px; gap: 28px; }
  .download-content h2 { font-size: 32px; }
  .download-content>p { margin-top: 13px; font-size: 12.5px; line-height: 1.5; }
  .download-folder-hint { margin: 10px 0 12px; padding: 9px 12px; line-height: 1.5; }
  .download-tags { margin-top: 12px; gap: 6px; }
  .download-tags span { padding: 5px 8px; }
  .download-all { margin-top: 11px; }
  .release-panel { padding: 18px 21px; }
  .release-panel>strong { margin-top: 9px; font-size: 32px; }
  .release-panel>p { min-height: 20px; margin: 7px 0 12px; }
  .release-panel>small { margin-top: 10px; }
  .faq-grid { gap: 8px; }
  .faq-grid details { padding: 14px 18px; }
  .faq-section { padding-bottom: 35px; }

  /* English landing page uses Bento cards instead of the RU benefits grid. */
  .bento { gap: 10px; }
  .bento-card { min-height: 0; padding: 16px 20px; }
  .bento-editor { min-height: 295px; }
  .bento-editor h3 { font-size: 27px; }
  .bento-build,.bento-serial { min-height: 142px; }
  .bento-libs { min-height: 105px; }
  .bento-card h3 { font-size: 21px; }
  .bento-card p { margin-top: 7px; font-size: 12px; line-height: 1.5; }
  .card-eyebrow { margin-bottom: 12px; }
  .bento-editor-line { left: 20px; bottom: 13px; min-height: 95px; padding: 13px; font-size: 12px; line-height: 1.6; }
  .bento-build p,.bento-serial p { max-width: 72%; }
  .bento-build .build-bars { right: 12px; transform: scale(.55); transform-origin: right bottom; opacity: .65; }
  .bento-serial .serial-chart { left: auto; right: 0; width: 48%; height: 55px; padding: 0 10px; opacity: .56; }
  .library-pills { top: 24px; right: 20px; max-width: 280px; }
  .library-pills span { padding: 5px 8px; }

  /* Getting started: reduce paddings but keep reading size and content. */
  .docs-hero { padding: 25px 0 22px; }
  .docs-breadcrumb { margin-bottom: 13px; }
  .docs-hero h1 { font-size: 38px; }
  .docs-hero>p { font-size: 14px; margin-top: 10px; }
  .docs-layout { padding-top: 20px; padding-bottom: 35px; gap: 32px; }
  .docs-sidebar { top: 86px; padding: 13px; gap: 2px; }
  .docs-sidebar-title { margin-bottom: 7px; }
  .docs-sidebar a { padding: 6px 9px; }
  .docs-section { padding-bottom: 23px; margin-bottom: 23px; scroll-margin-top: 78px; }
  .docs-section h2 { font-size: 27px; margin-bottom: 11px; }
  .docs-step { margin-bottom: 9px; }
  .docs-section p { margin: 8px 0 11px; line-height: 1.55; }
  .docs-section ol,.docs-section ul { margin: 8px 0 12px; line-height: 1.6; }
  .docs-section li { margin: 4px 0; }
  .docs-tree,.docs-code { padding: 13px 17px; margin: 11px 0 15px; line-height: 1.5; }
  .docs-notice { padding: 14px 17px; margin: 12px 0; }
}

/* Narrower, very short notebooks (1280x720 and 1024x600). */
@media (min-width: 951px) and (max-height: 710px) {
  .section,.flash-section,.stance-section,.workflow-section,.download-section { padding-top: 15px; }
  .section-head { margin-bottom: 10px; }
  .section-head h2 { font-size: clamp(28px, 2.8vw, 37px); }
  .section-head p { margin-top: 6px; font-size: 12.5px; }
  .libraries-spotlight { padding: 15px 18px; }
  .libraries-spotlight h3 { font-size: clamp(23px, 2.2vw, 29px); margin-top: 12px; }
  .library-line { padding: 9px 10px; }
  .library-line p { font-size: 11px; }
  .benefit-card { padding: 13px 17px; }
  .benefit-card h3 { margin: 11px 0 6px; }
  .benefit-card p { font-size: 11.5px; }
  .flash-panel { padding: 18px 20px 12px; }
  .step-card { padding: 14px 16px; }
  .download-shell { padding: 20px 25px; }
}


/* ===== ESP32 Coder | clean light visual theme (RU / EN / Docs) ===== */
:root{
  color-scheme:light;
  --bg:#ffffff; --bg-2:#ffffff;
  --panel:#ffffff; --panel-2:#f5f9fb;
  --line:#dce7eb; --line-2:#cbdde2;
  --ink:#10262f; --ink-2:#1f3a45; --muted:#2d4a56;
  --mint:#087e72; --mint-2:#10a690; --cyan:#277eac;
  --glow-mint:0 10px 38px rgba(13,120,112,.08);
  --glow-cyan:0 10px 38px rgba(36,110,150,.08);
}
html,body{background:#fff;color:var(--ink)}
body::before{display:none}
::selection{background:#c3eee2;color:#102f34}
.ambient{opacity:.22;filter:blur(90px)}
.ambient-a{background:radial-gradient(circle,rgba(85,209,180,.12),transparent 65%)}
.ambient-b{background:radial-gradient(circle,rgba(90,155,200,.10),transparent 65%)}
.site-header{background:rgba(255,255,255,.97);border-color:#dfebed;box-shadow:0 5px 20px rgba(23,52,62,.035)}
/* Preserve the authentic white-on-dark wordmark in a small brand plate. */
.brand img.brand-logo-full,.footer-brand img.footer-brand-logo{background:#09141c;border-radius:12px;padding:5px 10px;filter:none;box-shadow:0 3px 12px rgba(12,38,45,.12)}
.brand:hover img.brand-logo-full{transform:scale(1.015)}
.main-nav a{color:#24414c;font-size:16px;font-weight:700}
.main-nav a:hover,.main-nav a:focus-visible{color:var(--mint)}
.nav-download{background:#ecfaf5;color:#075f57;border-color:#b9dfd7;font-size:16px;font-weight:750}
.nav-download:hover{background:#ddf6ec;border-color:#75c6b2;box-shadow:0 6px 17px rgba(5,114,102,.10)}
.hero h1 em,.section h2 em{background:linear-gradient(108deg,#087d72,#18ad99 48%,#277eac 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#087d72}
.hero-intro strong{color:#153b40}
.hero-intro{color:var(--ink-2)}
.audience-card,.audience-card:nth-child(2){background:#f4faf9;border-color:#d4eae6}
.audience-card:nth-child(2){background:#f4f9fd;border-color:#d9e7ef}
.audience-label{color:#077f70}
.audience-card:nth-child(2) .audience-label{color:#206f9c}
.btn-primary{background:linear-gradient(130deg,#b4f7e2,#4eddbb);color:#053f37;border:1px solid #7bcdb9;box-shadow:0 9px 23px rgba(24,144,125,.16)}
.btn-primary:hover{box-shadow:0 10px 29px rgba(21,144,125,.21)}
.btn-subtle{background:#fff;border-color:#cadce2;color:#27434f;backdrop-filter:none}
.btn-subtle:hover{background:#f2faf9;border-color:#8acabe}
.hero-live-release a,.download-all,.flash-bottom>a,.screenshot-caption a{color:#08766a}
.hero-live-release a:hover{color:#084d48}
.hero-download-note strong,.hero-download-note code{color:#0e6159}
/* Screenshots remain dark because they represent the actual ESP32 Coder editor. */
.hero-art.hero-screenshot .mini-label{color:#5a7782}
.interface-shot{border-color:#c8e0e0;box-shadow:0 18px 45px rgba(23,60,68,.16)}
.interface-shot:hover{border-color:#4db5aa;box-shadow:0 22px 48px rgba(23,60,68,.2)}
.screenshot-caption{color:#203942;font-size:15px}
.carousel-arrow{background:#ffffff;color:#126d68;border-color:#a9d9d2;box-shadow:0 5px 18px rgba(23,60,68,.13)}
.carousel-arrow:hover,.carousel-arrow:focus-visible{background:#eaf9f5;color:#075f58;border-color:#69baaa;box-shadow:0 6px 22px rgba(23,60,68,.2)}
.carousel-dot{background:#e3f1ef;border-color:#b4d6d3}
.carousel-dot.is-active{background:#0b9380;border-color:#0b9380}
/* Flat white sections and restrained pale cards. */
.rail{background:#f6fafb;border-block:1px solid #e2ebed}
.rail::before{display:none}
.rail-grid>div strong{color:#1f454c}
.rail-grid>div span,.rail-grid>div.rail-final{color:#24414c}
.eyebrow,.benefit-index,.card-eyebrow,.docs-step,.docs-sidebar-title,.flash-number,.spotlight-kicker{color:#0b8075}
.benefit-card,.benefit-turbo{background:#fff;border-color:#dfe9ec;box-shadow:0 8px 25px rgba(29,73,85,.045)}
.benefit-turbo{background:#f2fbf8}
.benefit-card::before,.bento-card::before{background:radial-gradient(circle at 100% 0%,rgba(53,187,154,.045),transparent 50%)}
.benefit-symbol{color:rgba(10,125,109,.18)}
.chip-pills span,.library-pills span,.download-tags span,.spotlight-chips span,.stance-tags span{color:#086e61;background:#edf8f4;border-color:#cbe8df}
.libraries-spotlight{background:linear-gradient(140deg,#eaf9f5,#f7fcfa 68%,#fff);border-color:#c4e6df}
.libraries-spotlight h3 em{color:#087f72}
.spotlight-mark{background:#def3ec;border-color:#bddfd5}
.spotlight-decoration{color:#94c4b8}
.library-line,.docs-action-grid>div{background:#fff;border-color:#e0e9ed;box-shadow:0 3px 14px rgba(28,67,83,.03)}
.library-check{background:#e3f6ef;color:#128779}
.bento-card,.bento-editor,.bento-libs{background:#fff;border-color:#dde8ed;box-shadow:0 7px 24px rgba(20,66,83,.045)}
.bento-editor-line{background:#182b34;color:#d5eee8}
.flash-panel{background:#f6fafb;border-color:#deeaed;box-shadow:none}
.flash-card,.flash-card:hover{background:#fff;border-color:#dce9ec}
.stance{background:linear-gradient(140deg,#f6fbfa,#edf8f8);border-color:#d4e7e4}
.orbit,.orbit-2{border-color:#bcded7}
.core-chip{background:linear-gradient(135deg,#e2f8f0,#cae9e5);color:#08786e;box-shadow:0 15px 35px rgba(11,100,88,.13);border-color:#b4d9d0}
.core-chip span{color:#165d59}
.step-card{background:#fff;border-color:#dee8eb;box-shadow:0 5px 18px rgba(15,65,80,.04)}
.download-shell{background:linear-gradient(135deg,#f0faf6,#f6fafb);border-color:#cae5de;box-shadow:0 15px 38px rgba(20,72,83,.09)}
.download-glow{opacity:.18}
.download-content h2 span{color:#1d8c85}
.release-panel{background:#fff;border-color:#d0e4e3;backdrop-filter:none;box-shadow:0 9px 30px rgba(24,74,90,.07)}
.release-panel>strong{color:#124b4a}
.release-meta{color:#24414c;font-size:14px}
.download-folder-hint,.docs-notice{background:#e9f7f2;border-color:#b7ded4;color:#35565e}
.download-folder-hint strong,.docs-notice strong{color:#17564d}
.download-folder-hint code{color:#0f6f62}
.faq-grid details{background:#fff;border-color:#dce9ed;box-shadow:0 4px 15px rgba(24,74,90,.035)}
.site-footer{background:#f7fafb;border-color:#dce8ec}
.footer-links a:hover{color:#08766b}
/* Documentation remains complete; only its presentation changes. */
.docs-teaser-card{background:linear-gradient(125deg,#f0faf7,#f8fbfd);border-color:#d5e8e4}
.docs-hero{border-color:#dde8ec}
.docs-sidebar{background:#f7fafb;border-color:#dce8ec}
.docs-sidebar a:hover,.docs-sidebar a:focus-visible{background:#e8f5f1;color:#08736a}
.docs-section a{color:#0a7c70}
.docs-section a:hover{color:#07534c}
.docs-section code{color:#136d67}
.docs-tree,.docs-code{background:#f5f9fb;color:#193c4a;border-color:#d7e6eb}
.docs-notice strong{color:#17564d}
.docs-note{background:#eff7fc;border-color:#93c4dd}
.docs-section summary{color:#203a47}
/* Prevent harsh glow and ultra-faint text on white. */
.spotlight-top,.library-list,.release-panel,.hero,.docs-page{color:var(--ink)}
@media(max-width:680px){
  .brand img.brand-logo-full,.footer-brand img.footer-brand-logo{padding:4px 6px;border-radius:8px}
  .site-header{background:rgba(255,255,255,.98)}
}


/* =========================================================
   Full-height scroll feed: one primary page section per view.
   Tall content remains naturally scrollable on small screens.
   Applied only to landing pages, never the Docs manuals.
   ========================================================= */
html.feed-page{
  --header-h:88px;
  scroll-padding-top:var(--header-h);
  overscroll-behavior-y:auto;
}
html.feed-page main>.feed-stage{
  position:relative;
  scroll-snap-align:start;
  scroll-margin-top:0;
  min-height:max(400px,calc(100svh - var(--header-h)));
  box-sizing:border-box;
}
html.feed-page main>section.feed-stage{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-block:clamp(18px,3vh,38px);
}
html.feed-page main>.feed-hero-stage{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
html.feed-page .feed-hero-stage .hero{
  padding-block:clamp(12px,2vh,24px);
}
html.feed-page .feed-hero-stage .rail{
  flex-shrink:0;
  width:100%;
}
html.feed-page .docs-teaser{padding-block:clamp(18px,3vh,38px)}
html.feed-page .faq-section{padding-bottom:clamp(18px,3vh,38px)}
/* Pin block boundaries on desktop; softer scroll when the viewport
   is narrow or short so content is never trapped or clipped. */
@media (min-width:951px) and (min-height:650px) and (prefers-reduced-motion:no-preference){
  html.feed-page{scroll-snap-type:y mandatory}
}
@media (max-width:950px),(max-height:649px){
  html.feed-page{scroll-snap-type:y proximity}
}
@media (min-width:951px) and (min-height:851px) and (max-height:1050px){
  html.feed-page .section-head{margin-bottom:24px}
  html.feed-page .section-head h2{font-size:clamp(32px,3.1vw,46px)}
  html.feed-page .section-head p{font-size:14px;line-height:1.5;margin-top:10px}
  html.feed-page .eyebrow{margin-bottom:10px}
  html.feed-page .benefits-grid{gap:11px}
  html.feed-page .benefit-card{min-height:225px;padding:21px 23px}
  html.feed-page .benefit-card h3{font-size:clamp(20px,1.7vw,25px);margin:24px 0 10px}
  html.feed-page .benefit-card p{font-size:12.5px;line-height:1.52}
  html.feed-page .chip-pills{margin-top:9px}
  html.feed-page .libraries-spotlight{min-height:420px;padding:26px}
  html.feed-page .libraries-spotlight h3{margin-top:25px;font-size:clamp(27px,2.65vw,38px)}
  html.feed-page .libraries-spotlight p{margin-top:12px;line-height:1.55;font-size:13.5px}
  html.feed-page .spotlight-chips{margin-top:15px}
  html.feed-page .library-line{padding:13px 16px}
  html.feed-page .library-line h3{font-size:15px}
  html.feed-page .library-line p{margin-top:4px;font-size:12px;line-height:1.45}
  html.feed-page .bento-editor{min-height:345px}
  html.feed-page .bento-build,html.feed-page .bento-serial{min-height:170px}
  html.feed-page .bento-card{padding:24px}
  html.feed-page .download-shell{padding:34px}
  html.feed-page .faq-grid details{padding:15px 20px}
}
@media(max-width:950px){
  html.feed-page main>section.feed-stage{padding-block:28px}
  html.feed-page main>.feed-hero-stage{padding-top:0}
  html.feed-page main>.feed-hero-stage .hero{padding-block:22px}
}
@media(max-width:680px){
  html.feed-page main>.feed-stage{min-height:calc(100svh - var(--header-h))}
  html.feed-page main>section.feed-stage{padding-block:28px}
  html.feed-page .hero{padding-bottom:8px}
  html.feed-page .rail-grid{min-height:unset}
  html.feed-page .feed-hero-stage{justify-content:flex-start}
}
html.feed-page .feed-nav{
  position:fixed;
  z-index:40;
  top:50%;right:12px;
  transform:translateY(-50%);
  display:flex;flex-direction:column;gap:12px;
  padding:13px 9px;
  border:1px solid #dcebe8;
  border-radius:24px;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(12px);
  box-shadow:0 6px 22px rgba(17,65,74,.08);
}
html.feed-page .feed-nav a{position:relative;display:flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%}
html.feed-page .feed-nav-dot{display:block;width:8px;height:8px;border-radius:50%;background:#b0c9c7;transition:background .2s,transform .2s}
html.feed-page .feed-nav a[aria-current="step"] .feed-nav-dot{background:#0b9380;transform:scale(1.5)}
html.feed-page .feed-nav a:hover .feed-nav-dot,html.feed-page .feed-nav a:focus-visible .feed-nav-dot{background:#0b9380}
html.feed-page .feed-nav-text{position:absolute;right:29px;white-space:nowrap;pointer-events:none;opacity:0;transform:translateX(5px);transition:opacity .18s,transform .18s;background:#fff;color:#284f56;font-size:11px;font-weight:650;padding:5px 9px;border:1px solid #d4e8e3;border-radius:6px;box-shadow:0 5px 14px rgba(20,55,60,.08)}
html.feed-page .feed-nav a:hover .feed-nav-text,html.feed-page .feed-nav a:focus-visible .feed-nav-text{opacity:1;transform:none}
@media(max-width:1190px),(max-height:610px){html.feed-page .feed-nav{display:none}}
@media(prefers-reduced-motion:reduce){
  html.feed-page{scroll-snap-type:none;scroll-behavior:auto}
  html.feed-page .feed-nav-dot,html.feed-page .feed-nav-text{transition:none}
}
html.feed-page footer.site-footer{scroll-snap-align:end}


/* ============================================================
   Full-height adaptive presentation layout (v2)
   One full viewport stage under the sticky header.  Content
   grows into the available height instead of floating in the
   middle; a short screen retains natural vertical scrolling.
   ============================================================ */
html.feed-page{
  --slide-inset:clamp(18px,2.7vh,36px);
  --slide-gap:clamp(12px,2vh,24px);
}
html.feed-page main>.feed-stage{
  min-height:calc(100vh - var(--header-h));
  min-height:calc(100dvh - var(--header-h));
  scroll-snap-align:start;
}
html.feed-page main>section.feed-stage{
  display:flex;
  flex-direction:column;
  justify-content:stretch;
  padding-top:var(--slide-inset);
  padding-bottom:var(--slide-inset);
  gap:var(--slide-gap);
}
html.feed-page main>section.feed-stage>.section-head{
  flex:0 0 auto;
  width:100%;
  max-width:none;
  margin:0;
}
html.feed-page main>section.feed-stage>.section-head h2{
  font-size:clamp(27px,3.3vw,48px);
}
html.feed-page main>section.feed-stage>.section-head .eyebrow{margin-bottom:clamp(6px,1.2vh,12px)}
html.feed-page main>section.feed-stage>.section-head p{
  max-width:900px;margin-top:8px;
  line-height:1.45;font-size:clamp(12px,1.1vw,15px);
}
html.feed-page main>section.feed-stage>:not(.section-head){
  flex:1 1 auto;
  min-height:0;
  width:100%;
}
/* RU: two full-height rows of advantages. */
html.feed-page .benefits-grid{
  grid-template-rows:repeat(2,minmax(0,1fr));
  align-content:stretch;
}
html.feed-page .benefit-card{
  min-height:0;
  display:flex;flex-direction:column;align-items:flex-start;
  justify-content:center;
  padding:clamp(13px,2.2vh,31px) clamp(15px,2.2vw,32px);
}
html.feed-page .benefit-card h3{
  margin:clamp(10px,2vh,26px) 0 clamp(5px,1vh,11px);
  font-size:clamp(17px,1.8vw,27px);
}
html.feed-page .benefit-card p{font-size:clamp(11px,.95vw,14px);line-height:1.48}
html.feed-page .chip-pills{margin-top:10px}
/* RU library manager: occupy all space, with equal-height rows. */
html.feed-page .libraries-layout{align-items:stretch}
html.feed-page .libraries-spotlight{
  min-height:0;
  height:100%;
  display:flex;flex-direction:column;justify-content:center;
  padding:clamp(16px,2.6vh,37px);
}
html.feed-page .libraries-spotlight h3{margin-top:clamp(15px,2.4vh,36px)}
html.feed-page .libraries-spotlight p{margin-top:clamp(10px,1.6vh,20px)}
html.feed-page .spotlight-chips{margin-top:clamp(10px,1.8vh,24px)}
html.feed-page .library-list{grid-template-rows:repeat(5,minmax(0,1fr))}
html.feed-page .library-line{min-height:0;align-items:center;padding:clamp(8px,1.5vh,22px) clamp(12px,1.6vw,22px)}
/* EN feature mosaic. */
html.feed-page .bento{grid-template-rows:minmax(0,1fr) minmax(0,1fr) minmax(0,.62fr)}
html.feed-page .bento-card,
html.feed-page .bento-editor,
html.feed-page .bento-build,
html.feed-page .bento-serial,
html.feed-page .bento-libs{min-height:0}
/* Flash panel extends down to the bottom of the slide. */
html.feed-page .flash-panel{
  min-height:0;display:flex;flex-direction:column;
  justify-content:space-between;
  padding:clamp(17px,3vh,48px) clamp(17px,3vw,50px) clamp(12px,2vh,24px);
}
html.feed-page .flash-cards{flex:1 1 auto;min-height:0}
html.feed-page .flash-card{min-height:0;align-items:center}
html.feed-page .flash-bottom{flex:0 0 auto;padding-top:clamp(10px,2vh,25px)}
/* Standalone, workflow, docs and download all fill their stage. */
html.feed-page .stance,
html.feed-page .download-shell,
html.feed-page .docs-teaser-card{min-height:0;height:100%}
html.feed-page .stance-symbol{height:100%;min-height:180px}
html.feed-page .step-grid{align-items:stretch}
html.feed-page .step-card{min-height:0;display:flex;flex-direction:column;justify-content:center}
html.feed-page .docs-teaser-card{align-items:center}
html.feed-page .faq-grid{
  grid-template-rows:repeat(3,minmax(0,1fr));
  align-items:stretch;
}
html.feed-page .faq-grid details{
  min-height:0;
  display:flex;flex-direction:column;justify-content:center;
}
/* The hero now fills a single slide, without the redundant KPI rail. */
html.feed-page main>.feed-hero-stage{
  min-height:calc(100dvh - var(--header-h));
  display:flex;align-items:stretch;justify-content:stretch;
}
html.feed-page .feed-hero-stage .hero{
  flex:1 1 auto;min-height:0;
  padding-top:var(--slide-inset);padding-bottom:var(--slide-inset);
  align-items:center;
}
html.feed-page .feed-hero-stage .hero-art.hero-screenshot{
  min-height:0;
  padding-top:clamp(22px,3vh,38px);
  padding-bottom:5px;
}
/* At medium widths, panels stack and each stage is allowed to grow.
   Do not crop content just to obey the one-screen ideal. */
@media(max-width:950px){
 html.feed-page main>section.feed-stage{padding-block:clamp(16px,2.5vh,28px)}
 html.feed-page .benefits-grid{grid-template-rows:auto}
 html.feed-page .libraries-layout{align-items:stretch}
 html.feed-page .libraries-spotlight{height:auto}
 html.feed-page .library-list{grid-template-rows:auto}
 html.feed-page .bento{grid-template-rows:auto}
 html.feed-page .faq-grid{grid-template-rows:auto}
 html.feed-page .stance-symbol{height:240px}
}
@media(max-width:680px){
 html.feed-page main>section.feed-stage{gap:16px}
 html.feed-page .benefits-grid{grid-template-rows:none}
 html.feed-page .benefit-card{min-height:0;padding:21px}
 html.feed-page .bento-card{min-height:0}
 html.feed-page .flash-card{min-height:0}
 html.feed-page .step-card{min-height:0}
 html.feed-page .docs-teaser-card{height:auto}
 html.feed-page .faq-grid details{display:block}
}
/* Compact down if laptop height cannot support large fixed decoration. */
@media(min-width:951px) and (max-height:710px){
 html.feed-page{--slide-inset:14px;--slide-gap:10px}
 html.feed-page .benefit-card h3{margin-top:9px;margin-bottom:5px}
 html.feed-page .library-line{padding-block:7px}
 html.feed-page .step-card{padding:14px 18px}
 html.feed-page .flash-card{padding:14px}
 html.feed-page .stance{padding-block:14px}
 html.feed-page .download-shell{padding:20px 30px}
}

/* Standalone slide: focused copy instead of a decorative chip illustration. */
.stance.stance--text-only{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(30px,6vw,100px);
  text-align:left;
}
.stance--text-only .stance-text{
  width:100%;
  max-width:1050px;
  position:relative;
  z-index:1;
}
.stance--text-only .stance-text h2{
  font-size:clamp(38px,5.3vw,78px);
  line-height:1.12;
  text-wrap:balance;
}
.stance--text-only .stance-text>p{
  max-width:800px;
  font-size:clamp(15px,1.5vw,21px);
  line-height:1.65;
  margin-top:clamp(14px,2.5vh,26px);
}
.stance--text-only .stance-tags{
  margin-top:clamp(16px,3vh,30px);
}
@media(max-width:950px){
 .stance.stance--text-only{padding:clamp(24px,5vw,52px)}
 .stance--text-only .stance-text h2{font-size:clamp(32px,5vw,56px)}
}
@media(max-width:680px){
 .stance.stance--text-only{padding:26px 22px}
 .stance--text-only .stance-text h2{font-size:clamp(30px,8vw,44px)}
}

/* Interactive FAQ flip cards: white front / dark reverse. */
.faq-grid details,
html.feed-page .faq-grid details{
  background:#ffffff;
  border:1px solid #dce9ed;
  color:#193641;
  box-shadow:0 6px 18px rgba(24,74,90,.055);
  transform:perspective(1100px) rotateY(0);
  transform-origin:center center;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  will-change:transform;
}
.faq-grid details:not([open]):hover{
  border-color:#9acfc5;
  box-shadow:0 9px 25px rgba(24,74,90,.10);
}
.faq-grid summary,
html.feed-page .faq-grid summary{
  color:#193641;
  font-size:clamp(17px,1.22vw,21px);
  font-weight:750;
  line-height:1.4;
}
.faq-grid summary::after{
  color:#159b8b;
  font-size:25px;
}
.faq-grid details[open],
html.feed-page .faq-grid details[open]{
  background:#1d2d3e;
  border-color:#324c60;
  box-shadow:0 12px 28px rgba(10,30,48,.16);
}
.faq-grid details[open]:not(.faq-flip-closing),
html.feed-page .faq-grid details[open]:not(.faq-flip-closing){
  animation:faq-turn-dark .46s cubic-bezier(.4,0,.2,1) both;
}
.faq-grid details[open]:not(.faq-flip-closing) summary,
html.feed-page .faq-grid details[open]:not(.faq-flip-closing) summary{
  color:#ffffff;
  animation:faq-ink-dark .46s linear both;
}
.faq-grid details[open] summary::after{color:#78ead9}
.faq-grid details[open] p,
html.feed-page .faq-grid details[open] p{
  color:#ffffff;
  font-size:clamp(16px,1.14vw,19px);
  line-height:1.62;
  margin-top:12px;
}
.faq-grid details[open]:not(.faq-flip-closing) p{
  animation:faq-answer-appear .22s ease .22s both;
}
.faq-grid details.faq-flip-closing,
html.feed-page .faq-grid details.faq-flip-closing{
  animation:faq-turn-light .46s cubic-bezier(.4,0,.2,1) both;
}
.faq-grid details.faq-flip-closing summary,
html.feed-page .faq-grid details.faq-flip-closing summary{
  animation:faq-ink-light .46s linear both;
}
.faq-grid details.faq-flip-closing p{
  animation:faq-answer-disappear .12s ease both;
}
@keyframes faq-turn-dark{
  0%{transform:perspective(1100px) rotateY(0);background:#fff;border-color:#dce9ed}
  48%{transform:perspective(1100px) rotateY(89deg);background:#fff}
  52%{transform:perspective(1100px) rotateY(-89deg);background:#1d2d3e}
  100%{transform:perspective(1100px) rotateY(0);background:#1d2d3e;border-color:#324c60}
}
@keyframes faq-turn-light{
  0%{transform:perspective(1100px) rotateY(0);background:#1d2d3e;border-color:#324c60}
  48%{transform:perspective(1100px) rotateY(89deg);background:#1d2d3e}
  52%{transform:perspective(1100px) rotateY(-89deg);background:#fff}
  100%{transform:perspective(1100px) rotateY(0);background:#fff;border-color:#dce9ed}
}
@keyframes faq-ink-dark{
  0%,49%{color:#193641}
  50%,100%{color:#fff}
}
@keyframes faq-ink-light{
  0%,49%{color:#fff}
  50%,100%{color:#193641}
}
@keyframes faq-answer-appear{
  from{opacity:0;transform:translateY(5px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes faq-answer-disappear{
  from{opacity:1}
  to{opacity:0}
}
@media(max-width:950px){
  .faq-grid summary,html.feed-page .faq-grid summary{font-size:17px}
  .faq-grid details[open] p,html.feed-page .faq-grid details[open] p{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
  .faq-grid details,.faq-grid details[open],
  html.feed-page .faq-grid details[open],
  .faq-grid summary,.faq-grid details p{
    animation:none!important;
    transform:none!important;
    will-change:auto;
  }
}

/* Seventh advantage: full-width compact ribbon, preserving 3 × 2 feature layout. */
html.feed-page .benefits-grid{
  grid-template-rows:repeat(2,minmax(0,1fr)) clamp(82px,11vh,105px);
}
html.feed-page .benefits-grid .benefit-card-updates{
  grid-column:1 / -1;
  min-height:0;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:clamp(12px,1.8vw,26px);
  padding:clamp(11px,1.6vh,18px) clamp(17px,2.2vw,32px);
  background:linear-gradient(105deg,#f2fbf8,#fff);
  border-color:#cae6df;
}
html.feed-page .benefit-card-updates .benefit-index{
  flex:0 0 160px;
  white-space:nowrap;
}
html.feed-page .benefit-card-updates .benefit-update-copy{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:clamp(12px,2vw,26px);
}
html.feed-page .benefit-card-updates .benefit-update-copy h3{
  margin:0;
  font-size:clamp(17px,1.45vw,23px);
  line-height:1.22;
  flex:0 1 44%;
}
html.feed-page .benefit-card-updates .benefit-update-copy p{
  font-size:clamp(12px,.9vw,14px);
  line-height:1.4;
  flex:1 1 50%;
}
html.feed-page .benefit-card-updates>.benefit-symbol{
  position:static;
  flex:0 0 auto;
  align-self:center;
  font-size:26px;
  color:#439c8f;
  opacity:.6;
}
@media(max-width:1180px){
  html.feed-page .benefit-card-updates .benefit-index{flex-basis:110px}
  html.feed-page .benefit-card-updates .benefit-update-copy{gap:12px}
}
@media(min-width:681px) and (max-width:950px){
  html.feed-page .benefits-grid{grid-template-rows:repeat(3,minmax(0,1fr)) minmax(90px,auto)}
  html.feed-page .benefit-card-updates .benefit-update-copy{display:block}
  html.feed-page .benefit-card-updates .benefit-update-copy p{margin-top:5px}
}
@media(max-width:680px){
  html.feed-page .benefits-grid{grid-template-rows:none}
  html.feed-page .benefits-grid .benefit-card-updates{
    grid-column:auto;
    display:block;
    padding:21px;
  }
  html.feed-page .benefit-card-updates .benefit-update-copy{display:block}
  html.feed-page .benefit-card-updates .benefit-update-copy h3{margin:11px 0 6px}
  html.feed-page .benefit-card-updates>.benefit-symbol{display:none}
}
@media(min-width:951px) and (max-height:740px){
  html.feed-page .benefits-grid{gap:8px;grid-template-rows:repeat(2,minmax(0,1fr)) 84px}
  html.feed-page .benefits-grid .benefit-card-updates{padding-block:9px}
}

/* Improved readability of secondary text on the light website */
.hero-intro,.section-head p,.benefit-card p,.library-line p,.libraries-spotlight p,
.flash-card p,.flash-bottom,.step-card p,.docs-section p,.docs-muted,.docs-hero p,
.docs-note,.docs-notice,.footer-inner p,.footer-links a,.release-meta,
.screenshot-caption,.download-folder-hint,.docs-sidebar a {
 color:#172b35;font-size:15px;line-height:1.6;
}
html.feed-page .section-head p,html.feed-page .benefit-card p,
html.feed-page .library-line p,html.feed-page .libraries-spotlight p {font-size:15px;color:#172b35;}
.footer-brand img.footer-brand-logo {max-width:235px;width:100%;height:auto;object-fit:contain;}


/* Site-wide black typography and project icon footer · 2026-11-02 */
/* The page backgrounds are light. All standard/secondary grey type is now black. */
:root{
  --ink:#000000;
  --ink-2:#000000;
  --muted:#000000;
}
body,body .main-nav a,body .footer-inner p,body .footer-links a,
body .hero-art.hero-screenshot .mini-label,body .screenshot-caption,
body .release-meta,body .rail-grid>div span,body .rail-grid>div.rail-final,
body .hero-intro,body .hero-live-release,body .hero-download-note,
body .section-head p,body .audience-card>span:last-child,
body .benefit-card p,body .benefit-card-updates .benefit-update-copy p,
body .libraries-spotlight p,body .library-line p,
body .flash-card p,body .flash-bottom,body .stance-text>p,
body .step-card p,body .download-content>p,body .download-folder-hint,
body .release-panel p,body .release-panel small,
body .docs-breadcrumb,body .docs-hero>p,body .docs-sidebar a,
body .docs-section p,body .docs-section ul,body .docs-section ol,
body .docs-section p.docs-muted,body .docs-note,body .docs-notice,
body .docs-teaser-card p,body .docs-action-grid p,
body .faq-grid details:not([open]) p{
  color:#000000;
}
/* The FAQ's dark flip face stays white for legibility, not grey. */
body .faq-grid details[open] p,
body html.feed-page .faq-grid details[open] p {color:#ffffff;}
/* Keep colored syntax in code previews and dark app screenshots unchanged. */
/* Footer artwork: uploaded transparent ESP32Coder.png, without the old dark plaque. */
.footer-brand img.footer-brand-logo,
.brand img.footer-brand-logo{
  width:82px;
  height:82px;
  max-width:82px;
  max-height:82px;
  object-fit:contain;
  background:transparent;
  padding:0;
  border-radius:0;
  box-shadow:none;
  filter:none;
}
.footer-brand{flex:0 0 auto;}
.footer-inner{min-height:126px;}
.footer-inner p{font-size:15px;line-height:1.5;}
.footer-links a{font-size:14px;}
@media(max-width:680px){
  .footer-brand img.footer-brand-logo{width:70px;height:70px;max-width:70px;max-height:70px;padding:0;}
}

/* Consistent footer tagline on landing and Docs pages (with live Docs version below). */
.footer-copy{min-width:0;}
.footer-copy p{color:#000;line-height:1.5;}
.footer-copy .docs-footer-meta{margin-top:5px;font-size:13px;}
@media(max-width:950px){.footer-copy{flex:1 1 58%;}}
@media(max-width:680px){.footer-copy{flex-basis:auto;}}


/* Mobile screenshot pinch zoom. Only the open viewer captures touch gestures. */
.screenshot-lightbox .lightbox-image-wrap{overflow:hidden;touch-action:none;overscroll-behavior:contain}
.screenshot-lightbox .lightbox-image{transform-origin:center center;will-change:transform;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;pointer-events:none}
.screenshot-lightbox .lightbox-image-wrap.is-zoomed{cursor:grab}

/* Larger guide text in both languages, including captions, steps, code and mobile. */
body .docs-section p,body .docs-section ol,body .docs-section ul,
body .docs-section details p{font-size:17px;line-height:1.75}
body .docs-section p.docs-muted,body .docs-note,body .docs-notice,
body .docs-action-grid p{font-size:15px;line-height:1.7}
body .docs-sidebar a{font-size:15px;line-height:1.5}
body .docs-sidebar-title,body .docs-step,body .docs-breadcrumb{font-size:13px}
body .docs-tree,body .docs-code{font-size:14px;line-height:1.6}
body .docs-hero>p{font-size:18px}
body .docs-section summary{font-size:17px}
@media(max-width:680px){
 body .docs-section p,body .docs-section ol,body .docs-section ul,
 body .docs-section details p{font-size:16px;line-height:1.7}
 body .docs-section p.docs-muted,body .docs-note,body .docs-notice,
 body .docs-action-grid p{font-size:15px}
 body .docs-sidebar a{font-size:14px;line-height:1.5}
 body .docs-tree,body .docs-code{font-size:13px;line-height:1.65}
 body .docs-hero>p{font-size:17px}
 body .docs-section summary{font-size:16px}
}

/* Keep deep links to library-import steps clear of the sticky site header. */
.docs-section h3[id]{scroll-margin-top:115px}


/* ============================================================
   2026-11-08 | Centered readable navigation + verified trust cards
   Second design variant: NO yellow navigation outline.
   Badges remain hidden until their JSON proof passes JS checks.
   ============================================================ */
html.feed-page .header-inner{
  gap:clamp(10px,1.35vw,18px);
  justify-content:space-between;
}
html.feed-page .header-inner .brand{
  flex:0 1 244px;
  min-width:0;
  margin-right:0;
}
html.feed-page .header-inner .brand img.brand-logo-full{
  width:min(244px,100%);
}
html.feed-page .main-nav{
  display:flex;
  flex:1 1 auto;
  min-width:0;
  justify-content:center;
  align-items:center;
  gap:0;
  padding:0;
  border:0;
  outline:0;
  box-shadow:none;
  background:transparent;
}
html.feed-page .main-nav a{
  position:relative;
  flex:0 0 auto;
  padding:8px clamp(8px,1.08vw,15px);
  font-size:clamp(14px,1.05vw,16.5px);
  line-height:1.25;
  font-weight:780;
  white-space:nowrap;
  letter-spacing:-.025em;
  color:#17353d;
}
html.feed-page .main-nav a+a::before{
  content:'';
  position:absolute;
  width:1px;
  height:17px;
  left:0;
  top:50%;
  transform:translateY(-50%);
  background:#20b798;
  opacity:.75;
}
html.feed-page .header-inner .nav-download{
  flex:0 0 auto;
  margin-left:0;
  font-size:14px;
}
html.feed-page .hero-security-panel{
  margin-top:10px;
  padding:12px 13px 13px;
  border:1px solid #7bd6bd;
  border-radius:17px;
  background:linear-gradient(133deg,#f7fffc 0%,#edfbf5 65%,#e5f8f1 100%);
  box-shadow:0 5px 17px rgba(8,110,84,.09),inset 0 1px 0 rgba(255,255,255,.9);
  min-width:0;
}
html.feed-page .hero-security-heading{
  display:flex;
  gap:8px;
  align-items:center;
  padding:0 2px 9px;
  border-bottom:1px solid #c2e8dc;
}
html.feed-page .trust-title-icon{
  color:#119c70;
  filter:drop-shadow(0 1px 1px rgba(3,103,65,.16));
  flex:0 0 auto;
}
html.feed-page .hero-security-title{
  display:inline-block;
  font-size:clamp(14px,1.25vw,18px);
  font-weight:800;
  color:#0a3840;
  line-height:1.2;
  text-decoration:none;
}
html.feed-page .hero-security-title:hover{
  color:#057e71;
  text-decoration:underline;
  text-underline-offset:3px;
}
html.feed-page .hero-security-badges{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin-top:10px;
}
html.feed-page .hero-security-badges .trust-badge{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  min-width:0;
  min-height:49px;
  padding:7px 8px;
  background:#fff;
  border:1px solid #b2c9c6;
  border-radius:12px;
  box-shadow:0 4px 9px rgba(14,70,84,.08),inset 0 1px 0 rgba(255,255,255,.93);
  color:#183d40;
  font-weight:800;
  line-height:1.2;
  font-size:clamp(11.5px,.88vw,13.5px);
  text-decoration:none;
  transition:background .16s,border-color .16s,box-shadow .16s,transform .16s;
}
html.feed-page .hero-security-badges .trust-badge.is-verified{
  background:linear-gradient(160deg,#fff,#eefff7);
  border-color:#9bdfc3;
  color:#05663b;
}
html.feed-page .hero-security-badges .trust-badge[hidden]{display:none!important}
html.feed-page .hero-security-badges .trust-badge:hover{
  transform:translateY(-1px);
  background:#e7fff2;
  border-color:#44bc89;
  box-shadow:0 7px 15px rgba(9,114,80,.18);
}
html.feed-page .trust-brand-icon{
  flex:0 0 31px;
  max-width:31px;
  height:31px;
  padding-right:6px;
  border-right:1px solid #b2e6d0;
}
html.feed-page .trust-brand-icon-vt{color:#2864d9}
html.feed-page .trust-brand-icon-gh{color:#1d2426}
html.feed-page .trust-badge-text{
  flex:1;
  min-width:0;
  overflow-wrap:break-word;
}
html.feed-page .trust-check{
  display:none;
  flex:0 0 15px;
  color:#13a86d;
}
html.feed-page .trust-badge.is-verified .trust-check{display:block}
@media (min-width:951px) and (max-width:1190px){
  html.feed-page .header-inner .brand{flex-basis:198px}
  html.feed-page .header-inner .brand img.brand-logo-full{width:min(198px,100%)}
  html.feed-page .main-nav a{font-size:clamp(12px,1.2vw,14px);padding-inline:clamp(4px,.65vw,9px)}
  html.feed-page .header-inner .nav-download{font-size:12px;padding-inline:11px}
  html.feed-page .hero-security-badges{grid-template-columns:1fr}
}
@media(max-width:950px){
  html.feed-page .main-nav{display:none}
  html.feed-page .header-inner .brand{flex-basis:220px}
}
@media(max-width:680px){
  html.feed-page .header-inner .brand{flex-basis:clamp(155px,48vw,215px)}
  html.feed-page .hero-security-panel{padding:11px}
  html.feed-page .hero-security-heading{align-items:flex-start}
  html.feed-page .hero-security-title{font-size:15px}
  html.feed-page .hero-security-badges{grid-template-columns:1fr;gap:8px}
  html.feed-page .hero-security-badges .trust-badge{font-size:13px}
}


/* ===== November 2026 readability pass ===== */
.main-nav{justify-content:center;flex:1 1 auto}
.hero-intro,
.section-head p,
.docs-teaser-card p,
.libraries-spotlight p,
.library-line p,
.flash-card p,
.stance-text>p,
.step-card p,
.download-content>p,
.docs-hero>p,
.docs-section p,
.docs-section ol,
.docs-section ul,
.download-folder-hint,
.hero-download-note,
.hero-live-release,
.release-meta,
.docs-breadcrumb,
.docs-sidebar a,
.footer-inner p,
.footer-links a,
.release-panel>p,
.release-panel>small,
.faq-grid details p,
.audience-card>span:last-child,
.benefit-card p,
.bento-card p,
.docs-note,
.docs-notice,
.hero-download-note,
.library-line p,
.spotlight-chips span,
.chip-pills span,
.download-tags span,
.stance-tags span{
  color:var(--ink-2) !important;
}

.eyebrow,
.card-eyebrow,
.spotlight-kicker,
.docs-breadcrumb,
.docs-step,
.docs-sidebar-title,
.flash-number,
.benefit-index,
.release-label,
.audience-label,
.download-tags span,
.chip-pills span,
.stance-tags span,
.spotlight-chips span{
  font-size:14px !important;
  line-height:1.35 !important;
  letter-spacing:.06em !important;
  font-weight:780 !important;
}

.hero-intro{
  font-size:21px !important;
  line-height:1.72 !important;
  max-width:760px !important;
}

.section-head p,
.download-content>p,
.docs-teaser-card p,
.docs-hero>p{
  font-size:22px !important;
  line-height:1.65 !important;
  max-width:980px;
}

.libraries-spotlight p,
.flash-card p,
.stance-text>p,
.step-card p,
.benefit-card p,
.bento-card p,
.library-line p,
.docs-section p,
.docs-section ol,
.docs-section ul,
.docs-note,
.docs-notice,
.faq-grid details p{
  font-size:18px !important;
  line-height:1.7 !important;
}

.hero-download-note,
.download-folder-hint,
.hero-live-release,
.release-meta,
.release-panel>p,
.release-panel>small,
.docs-sidebar a,
.footer-inner p,
.footer-links a{
  font-size:17px !important;
  line-height:1.65 !important;
}

.download-folder-hint strong,
.docs-notice strong,
.hero-download-note strong,
.download-content h2 span,
.docs-section strong,
.release-panel>strong,
.library-line h3,
.flash-card h3,
.step-card h3,
.faq-grid summary,
.docs-section summary,
.docs-section h2,
.benefit-card h3,
.libraries-spotlight h3,
.docs-teaser-card h2,
.audience-card strong,
.release-panel button,
.btn-subtle,
.btn-primary,
.main-nav a,
.nav-download{
  color:var(--ink) !important;
}

.download-content h2 span,
.hero h1 em,
.section h2 em,
.libraries-spotlight h3 em{
  color:var(--mint) !important;
}

@media(max-width:1024px){
  .hero-intro{font-size:19px !important;line-height:1.65 !important;}
  .section-head p,
  .download-content>p,
  .docs-teaser-card p,
  .docs-hero>p{font-size:19px !important;line-height:1.6 !important;}
  .libraries-spotlight p,
  .flash-card p,
  .stance-text>p,
  .step-card p,
  .benefit-card p,
  .bento-card p,
  .library-line p,
  .docs-section p,
  .docs-section ol,
  .docs-section ul,
  .docs-note,
  .docs-notice,
  .faq-grid details p{font-size:16px !important;line-height:1.65 !important;}
  .hero-download-note,
  .download-folder-hint,
  .hero-live-release,
  .release-meta,
  .release-panel>p,
  .release-panel>small,
  .docs-sidebar a,
  .footer-inner p,
  .footer-links a{font-size:15px !important;}
  .eyebrow,
  .card-eyebrow,
  .spotlight-kicker,
  .docs-breadcrumb,
  .docs-step,
  .docs-sidebar-title,
  .flash-number,
  .benefit-index,
  .release-label,
  .audience-label,
  .download-tags span,
  .chip-pills span,
  .stance-tags span,
  .spotlight-chips span{font-size:12px !important;}
}

@media(max-width:680px){
  .hero-intro{font-size:17px !important;}
  .section-head p,
  .download-content>p,
  .docs-teaser-card p,
  .docs-hero>p{font-size:17px !important;}
  .libraries-spotlight p,
  .flash-card p,
  .stance-text>p,
  .step-card p,
  .benefit-card p,
  .bento-card p,
  .library-line p,
  .docs-section p,
  .docs-section ol,
  .docs-section ul,
  .docs-note,
  .docs-notice,
  .faq-grid details p{font-size:15px !important;}
  .hero-download-note,
  .download-folder-hint,
  .hero-live-release,
  .release-meta,
  .release-panel>p,
  .release-panel>small,
  .docs-sidebar a,
  .footer-inner p,
  .footer-links a{font-size:14px !important;}
}

/* Small visible counter, fixed at the bottom right of each language page.
   RU/EN totals are independent. Keep it outside the slide scaling tree. */
.site-total-visits{
  position:fixed;
  right:8px;
  bottom:6px;
  z-index:61;
  display:inline-block;
  width:auto;
  min-width:1ch;
  background:transparent;
  border:0;
  padding:0;
  margin:0;
  font:500 11px/1.3 Arial,sans-serif;
  letter-spacing:.01em;
  color:#ffffff !important;
  text-shadow:none;
  opacity:1;
  white-space:nowrap;
  cursor:text;
  -webkit-user-select:text;
  user-select:text;
}
.site-total-visits::selection{
  background:#1865a7;
  color:#ffffff;
}
.site-total-visits::-moz-selection{
  background:#1865a7;
  color:#ffffff;
}

/* v1.1.12: center the white ESP32 wordmark inside its dark logo plate.
   The plate itself stays left-aligned in the site header. */
.brand{align-items:center;justify-content:center;}
.brand img.brand-logo-full{
  display:block;box-sizing:border-box;
  object-fit:contain;object-position:center center;
  background:#090e13;
  padding:7px 11px;
  border-radius:10px;
}
@media(max-width:680px){
  .brand img.brand-logo-full{padding:5px 8px;border-radius:8px;}
}

/* FAQ dark reverse: enforce white lettering over global typography overrides. */
html body .faq-grid details[open] summary,
html body html.feed-page .faq-grid details[open] summary,
html.feed-page body .faq-grid details[open] summary,
html body .faq-grid details[open] p,
html.feed-page body .faq-grid details[open] p,
html body .faq-grid details[open] p *,
html.feed-page body .faq-grid details[open] p * {
  color: #ffffff !important;
}
/* Preserve the turquoise expand/collapse indicator. */
html body .faq-grid details[open] summary::after,
html.feed-page body .faq-grid details[open] summary::after {
  color: #78ead9 !important;
}
/* Closing animation must return to dark text on the white face. */
html body .faq-grid details.faq-flip-closing summary,
html.feed-page body .faq-grid details.faq-flip-closing summary {
  animation: faq-ink-light .46s linear both !important;
}

/* v1.1.13 adaptive one-stage wheel navigation (RU / EN only).
   Enabled by slide-navigation.js when all content fits; otherwise native scroll. */
html.feed-page.feed-wheel-mode{
  scroll-snap-type:none !important;
  scroll-behavior:auto !important;
  overscroll-behavior-y:contain;
}
html.feed-page.feed-wheel-mode main>.feed-stage{scroll-snap-align:none}
html.feed-page.feed-native-scroll{scroll-snap-type:none !important;scroll-behavior:auto !important;}
@media (max-width:1019px),(max-height:589px){
 html.feed-page{scroll-snap-type:none !important}
}
