/* ==========================================================================
   Signal by Sudarva — shared site chrome (header + footer)
   Makes the standalone /signal/*.html articles carry the exact same navbar
   and footer as the main Sudarva site, and adds full light/dark theming.
   Loaded by each article via <link rel="stylesheet" href="/signal/_chrome.css">.
   ========================================================================== */

/* ---- theme variables (light + dark), shared with the rest of the site ---- */
:root {
  --sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-sans: 'Poppins';
  --font-mono: 'JetBrains Mono';

  --acc: #e8191a;
  --text: #0c0c12;
  --mut: #55555e;
  --fnt: #8b8b93;
  --faint: #8b8b93;
  --bg: #ffffff;
  --card: #ffffff;
  --pnl: #f7f7f8;
  --ln: rgba(0, 0, 0, 0.10);
  --line: rgba(0, 0, 0, 0.10);
  --hair: rgba(0, 0, 0, 0.07);
  --pbd: rgba(0, 0, 0, 0.14);
  --nav: rgba(255, 255, 255, 0.82);
}

:root[data-theme="dark"] {
  --text: #f4f4f7;
  --mut: #9a9aa8;
  --fnt: #67676f;
  --faint: #67676f;
  --bg: #0a0a0d;
  --card: #141419;
  --pnl: #141419;
  --ln: rgba(255, 255, 255, 0.10);
  --line: rgba(255, 255, 255, 0.10);
  --hair: rgba(255, 255, 255, 0.07);
  --pbd: rgba(255, 255, 255, 0.13);
  --nav: rgba(10, 10, 13, 0.72);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); transition: background .35s ease, color .35s ease; }
.acc { color: var(--acc); }

/* =========================== NAVBAR =========================== */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px,2.4vw,20px) clamp(20px,4vw,64px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
  background: var(--nav);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ln);
}
.nav .brand {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; text-align: center; width: fit-content; max-width: 100%; text-decoration: none;
}
.nav .brand-name { font-size: clamp(24px,4vw,30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; color: var(--text); }
.nav .brand-tag {
  font-family: var(--mono); font-size: clamp(7px,1.7vw,8.5px); font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fnt);
  text-align: center; align-self: stretch; padding-right: 0.12em;
}

.desktop-nav { display: flex; align-items: center; gap: clamp(18px,2.2vw,38px); font-size: 16px; font-weight: 500; color: var(--mut); position: static; }
.nav-item { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--mut); transition: color .18s ease; white-space: nowrap; }
.nav-item:hover { color: var(--text); }

.dropdown { position: static; }
.mega {
  position: absolute; top: 100%; left: 0; right: 0;
  transform: translateY(-8px);
  background: var(--bg); border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln);
  box-shadow: 0 24px 44px -30px rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.dropdown:hover .mega, .dropdown.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mega-inner { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: clamp(32px,3.4vw,48px) clamp(20px,4vw,64px); }
.mega-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(28px,4vw,72px); }
.mega-link { display: grid; grid-template-columns: 22px 1fr; column-gap: 11px; row-gap: 12px; align-items: center; cursor: pointer; text-decoration: none; }
.mega-ico { display: flex; align-items: center; justify-content: center; color: var(--text); grid-column: 1; grid-row: 1; }
.mega-ico svg { width: 20px; height: 20px; }
.mega-tx { display: contents; }
.mega-tx b { grid-column: 2; grid-row: 1; font-size: 13px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--text); display: flex; align-items: center; gap: 8px; transition: color .16s ease; }
.mega-tx small { grid-column: 1 / -1; grid-row: 2; font-size: 14px; line-height: 1.5; color: var(--mut); max-width: 30ch; }
.mega-link:hover .mega-ico, .mega-link:hover .mega-tx b { color: var(--acc); }
.mega-link--soon { opacity: 0.9; }
.soon-badge { font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fnt); border: 1px solid var(--pbd); border-radius: 999px; padding: 2px 7px; }
.hiring-badge { font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc); border: 1px solid rgba(232,25,26,0.4); border-radius: 999px; padding: 2px 7px; }

.nav-actions { display: flex; align-items: center; gap: clamp(10px,1.4vw,16px); }
.theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0.5px solid var(--pbd); background: transparent; color: var(--text);
  cursor: pointer; flex-shrink: 0; transition: border-color .2s ease, background .2s ease;
}
.theme-btn svg { width: 17px; height: 17px; display: block; }
.theme-btn .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-btn .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-btn .theme-icon-sun { display: block; }
.theme-btn:hover { border-color: var(--text); background: var(--pnl); }
.contact-btn { display: flex; align-items: center; gap: 12px; padding: 13px 24px; border: 1px solid var(--pbd); border-radius: 999px; font-size: 16px; font-weight: 500; color: var(--text); text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.contact-btn:hover { border-color: var(--text); background: var(--pnl); }
.burger { display: none; flex-direction: column; gap: 5px; padding: 10px; background: transparent; border: none; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---- mobile menu ---- */
.mobile-menu { display: none; }
.mobile-menu.open {
  position: fixed; top: 64px; left: clamp(12px,4vw,64px); right: clamp(12px,4vw,64px); z-index: 59;
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 18px 16px; max-height: calc(100vh - 80px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border: 1px solid var(--pbd); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
}
.mm-theme-footer { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--ln); }
.mm-group { border-bottom: 1px solid var(--ln); }
.mm-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 0; background: transparent; border: none; font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; }
.mm-chev { color: var(--mut); transition: transform .22s ease; }
.mm-head[aria-expanded="true"] .mm-chev { transform: rotate(180deg); }
.mm-sub { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mm-group.open .mm-sub { max-height: 640px; padding-bottom: 8px; }
.mm-item { display: block; font-size: 16px; font-weight: 500; color: var(--mut); padding: 9px 0 9px 14px; cursor: pointer; text-decoration: none; transition: color .16s ease; }
.mm-item:hover { color: var(--text); }
.mm-contact { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; padding: 16px; border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--bg); background: var(--text); text-decoration: none; }

/* =========================== FOOTER =========================== */
.site-footer { position: relative; z-index: 5; padding: clamp(48px,6vw,80px) clamp(20px,4vw,64px) clamp(32px,4vw,48px); background: transparent; border: none; margin-top: clamp(40px,6vw,72px); }
.footer-divider { position: relative; height: 1px; background: var(--ln); max-width: 1280px; margin: 0 auto clamp(48px,6vw,84px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(6, minmax(0, 1fr)); gap: clamp(20px,2.2vw,40px); max-width: 1280px; margin: 0 auto; }
.footer-grid > div { min-width: 0; }
.footer-col-title { overflow-wrap: anywhere; }
.footer-link { max-width: 100%; overflow-wrap: anywhere; }
.footer-brand .brand-name { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--text); }
.footer-brand .brand-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fnt); margin-top: 4px; }
.footer-desc { margin-top: 20px; font-size: 15px; line-height: 1.65; color: var(--mut); max-width: 300px; }
.brand-rule { width: 56px; height: 2px; background: var(--acc); margin: 26px 0 18px; }
.footer-social { display: flex; align-items: center; gap: 16px; color: var(--mut); }
.footer-social a { color: inherit; display: inline-flex; transition: color .18s ease; }
.footer-social a:hover { color: var(--acc); }
.footer-col-title { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.footer-col-rule { width: 28px; height: 2px; background: var(--acc); margin: 12px 0 24px; }
.footer-col-links { display: flex; flex-direction: column; gap: 16px; }
.footer-link { font-size: 15px; color: var(--mut); text-decoration: none; transition: color .18s ease; width: fit-content; display: inline-flex; align-items: center; gap: 8px; }
.footer-link:hover { color: var(--text); }

/* footer accordion — headings only on mobile, tap to expand (one open) */
.footer-col { min-width: 0; }
.footer-fold-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: none; border: 0; padding: 0; margin: 0; font-family: inherit; text-align: left; cursor: default; }
.footer-fold-chev { display: none; flex-shrink: 0; color: var(--mut); transition: transform .2s ease; }

.footer-legal { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1280px; margin: clamp(44px,6vw,72px) auto 0; padding-top: 28px; border-top: 1px solid var(--ln); color: var(--mut); }
.footer-legal .copy { font-size: 14px; color: var(--fnt); line-height: 1.7; }
.footer-legal .copy b { color: var(--mut); font-weight: 500; }
.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px,1.8vw,26px); font-size: 14px; }
.legal-link { color: var(--mut); text-decoration: none; transition: color .18s ease; }
.legal-link:hover { color: var(--text); }

/* =========================== responsive =========================== */
@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .theme-btn { display: none; }
  .contact-btn { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 4px; }
  .footer-col { border-top: 1px solid var(--ln); }
  .footer-col:last-of-type { border-bottom: 1px solid var(--ln); }
  .footer-fold-trigger { cursor: pointer; padding: 16px 2px; }
  .footer-fold-chev { display: inline-flex; }
  .footer-col-rule { display: none; }
  .footer-col-links { display: none; padding: 0 2px; }
  .footer-col.is-open .footer-col-links { display: flex; padding-bottom: 18px; }
  .footer-col.is-open .footer-fold-chev { transform: rotate(180deg); }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 16px; }
}
/* ===== cookie consent banner ===== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none; padding: clamp(14px,2vw,20px) clamp(16px,4vw,40px); background: var(--nav); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--ln); }
.cookie-banner.show { display: block; animation: cookie-rise .45s cubic-bezier(.16,.84,.44,1) both; }
@keyframes cookie-rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
.cookie-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: clamp(14px,3vw,36px); flex-wrap: wrap; }
.cookie-text { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--mut); max-width: 72ch; }
.cookie-text a { color: var(--acc); text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { font-family: inherit; font-size: 14px; font-weight: 600; padding: 10px 22px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .18s ease, border-color .18s ease, opacity .18s ease; }
.cookie-btn--ghost { background: transparent; border: 1px solid var(--pbd); color: var(--text); }
.cookie-btn--ghost:hover { background: var(--pnl); border-color: var(--text); }
.cookie-btn--solid { background: var(--acc); border: 1px solid var(--acc); color: #fff; }
.cookie-btn--solid:hover { opacity: .9; }
@media (max-width: 560px) { .cookie-inner { flex-direction: column; align-items: stretch; } .cookie-actions { justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner.show { animation: none; } }

/* signal pages: remove the top reading-progress line */
.progress { display: none !important; }

/* Sudarva dropdown */
.mega--brand { overflow: hidden; }

/* Solutions dropdown — Demand/Supply groups (matches main site) */
.sol-groups { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(28px,3.4vw,56px); align-items: start; max-width: 920px; position: relative; z-index: 1; }
.mega-group-label { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fnt); margin-bottom: clamp(16px,1.8vw,22px); }
.sol-group--supply { border-left: 1px solid var(--pbd); padding-left: clamp(28px,3.4vw,56px); }
.sol-group--demand .sol-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px,2.4vw,30px) clamp(24px,3vw,44px); }
.sol-group--supply .sol-links { display: grid; grid-template-columns: 1fr; gap: clamp(20px,2.4vw,28px); }
@media (max-width: 1140px) {
  .sol-groups { grid-template-columns: 1fr; gap: clamp(22px,3vw,32px); max-width: 560px; }
  .sol-group--supply { border-left: 0; padding-left: 0; border-top: 1px solid var(--pbd); padding-top: clamp(22px,3vw,30px); }
}

/* Signal dropdown — equalizer animation (matches main site) */
.mega--sig { overflow: hidden; }
.mega--sig .mega-links--sig { max-width: 760px; }
.sig-eq { position: absolute; right: clamp(24px,5vw,80px); top: 50%; transform: translateY(-50%); width: clamp(150px,18vw,230px); z-index: 0; opacity: .5; -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%); mask-image: linear-gradient(90deg, transparent, #000 34%); }
.sig-eq svg { width: 100%; height: auto; display: block; overflow: visible; }
.sig-bar { fill: var(--pbd); transform-box: fill-box; transform-origin: bottom; animation: sig-eq 1.3s ease-in-out infinite; }
.sig-bar:nth-child(3n+2) { fill: rgba(232,25,26,.55); }
.sig-bar:nth-child(1){animation-delay:-.10s}.sig-bar:nth-child(2){animation-delay:-.55s}.sig-bar:nth-child(3){animation-delay:-.30s}.sig-bar:nth-child(4){animation-delay:-.80s}.sig-bar:nth-child(5){animation-delay:-.15s}.sig-bar:nth-child(6){animation-delay:-.65s}.sig-bar:nth-child(7){animation-delay:-.40s}.sig-bar:nth-child(8){animation-delay:-.90s}.sig-bar:nth-child(9){animation-delay:-.20s}.sig-bar:nth-child(10){animation-delay:-.70s}
@keyframes sig-eq { 0%,100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }
@media (max-width: 1080px) { .sig-eq { display: none; } }

/* Pause dropdown animations while closed — no background CPU. */
.mega, .mega * { animation-play-state: paused; }
.dropdown:hover .mega, .dropdown:hover .mega *, .dropdown.open .mega, .dropdown.open .mega * { animation-play-state: running; }

/* footer: Signal-by-Sudarva title + mobile column safety */
.footer-title-sm { font-size: 10px; letter-spacing: 0.06em; text-transform: none; font-weight: 500; color: var(--mut); margin-left: 3px; }
.mm-sublabel { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fnt); margin: 14px 0 4px; }
.mm-sublabel:first-child { margin-top: 4px; }

/* ===== mini API terminal — Developers mega dropdown only ===== */
.mega--dev { overflow: hidden; }
.mega--dev .mega-links { max-width: 560px; }
.mega-term {
  position: absolute; z-index: 0; pointer-events: none;
  right: clamp(20px, 4vw, 64px); top: 50%; transform: translateY(-50%);
  width: clamp(300px, 33vw, 396px);
  border: 1px solid var(--pbd); border-radius: 12px; overflow: hidden;
  background: var(--pnl); box-shadow: 0 22px 46px -30px rgba(0,0,0,.55);
  font-family: var(--mono), var(--font-mono), ui-monospace, "JetBrains Mono", monospace;
  font-size: 12px; line-height: 1.75; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
}
.mega-term-top { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--ln); }
.mega-term-top .mt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pbd); }
.mega-term-top .mt-dot:first-child { background: var(--acc); }
.mega-term-top .mt-title { margin-left: 8px; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--fnt); }
.mega-term-body { padding: 12px 14px; color: var(--mut); }
.mega-term-body .mt-row { margin: 0; white-space: nowrap; }
.mt-prompt { color: var(--acc); }
.mt-cmd { color: var(--text); display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: 40ch; max-width: 100%; }
.dropdown:hover .mt-cmd { animation: mt-type 1.7s steps(40, end) both; }
@keyframes mt-type { from { width: 0; } to { width: 40ch; } }
.mt-dim { color: var(--fnt); }
.mt-json { color: var(--mut); }
.mt-ok { color: #1a9e57; }
.mt-check { color: #1a9e57; font-weight: 700; }
.mt-cursor { display: inline-block; width: 7px; height: 13px; background: var(--acc); margin-left: 5px; vertical-align: -2px; animation: mt-blink 1s step-end infinite; }
@keyframes mt-blink { 50% { opacity: 0; } }
@media (max-width: 1080px) { .mega-term { display: none; } }
@media (prefers-reduced-motion: reduce) { .dropdown:hover .mt-cmd { animation: none; } .mt-cursor { animation: none; } }

/* ===== Solutions dropdown — two cables plugging in ===== */
.mega--sol { overflow: hidden; }
.mega--sol .mega-links { max-width: 640px; }
.mega-cable {
  position: absolute; z-index: 0; pointer-events: none;
  right: clamp(24px, 5vw, 76px); top: 50%; transform: translateY(-50%);
  width: clamp(210px, 23vw, 300px); opacity: .6;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
}
.mega-cable svg { width: 100%; height: auto; display: block; overflow: visible; }
.cb-wire { stroke: var(--pbd); stroke-width: 2.5; stroke-linecap: round; }
.cb-plug line { stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.cb-plug rect { fill: var(--pnl); stroke: var(--text); stroke-width: 2; }
.cb-plug-l { animation: cb-plug-l 3.6s ease-in-out infinite; }
.cb-plug-r { animation: cb-plug-r 3.6s ease-in-out infinite; }
@keyframes cb-plug-l { 0%,100% { transform: translateX(-11px); } 38%,82% { transform: translateX(0); } }
@keyframes cb-plug-r { 0%,100% { transform: translateX(11px); } 38%,82% { transform: translateX(0); } }
.cb-led { fill: var(--acc); opacity: .18; }
.cb-led1 { animation: cb-blink 3.6s ease-in-out infinite; }
.cb-led2 { animation: cb-blink 3.6s ease-in-out .18s infinite; }
.cb-led3 { fill: #1a9e57; animation: cb-blink 3.6s ease-in-out .36s infinite; }
@keyframes cb-blink { 0%,36% { opacity: .16; } 44%,80% { opacity: 1; } 88%,100% { opacity: .16; } }
.cb-pkt { fill: var(--acc); opacity: 0; }
.cb-pkt-a { animation: cb-flow-a 3.6s linear infinite; }
.cb-pkt-b { animation: cb-flow-b 3.6s linear infinite; }
@keyframes cb-flow-a { 0%,42% { transform: translateX(0); opacity: 0; } 46% { opacity: 1; } 74% { transform: translateX(96px); opacity: 1; } 80%,100% { transform: translateX(96px); opacity: 0; } }
@keyframes cb-flow-b { 0%,42% { transform: translateX(0); opacity: 0; } 46% { opacity: 1; } 74% { transform: translateX(-96px); opacity: 1; } 80%,100% { transform: translateX(-96px); opacity: 0; } }

/* ===== Platforms dropdown — phone + eSIM with pulsing signal waves ===== */
.mega--plat { overflow: hidden; }
.mega--plat .mega-links { max-width: 560px; }
.mega-signal {
  position: absolute; z-index: 0; pointer-events: none;
  right: clamp(28px, 6vw, 96px); top: 50%; transform: translateY(-50%);
  width: clamp(170px, 18vw, 240px); opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
}
.mega-signal svg { width: 100%; height: auto; display: block; overflow: visible; }
.ps-phone, .ps-line { stroke: var(--text); stroke-width: 2; fill: none; stroke-linecap: round; }
.ps-chip { fill: var(--pnl); stroke: var(--pbd); stroke-width: 2; animation: ps-chip 2.4s ease-in-out infinite; }
@keyframes ps-chip { 0%,100% { stroke: var(--pbd); } 50% { stroke: var(--acc); } }
.ps-src { fill: var(--acc); }
.ps-wave { stroke: var(--acc); stroke-width: 2.2; stroke-linecap: round; fill: none; opacity: 0; transform-box: fill-box; transform-origin: left center; }
.ps-w1 { animation: ps-wave 2.2s ease-out infinite; }
.ps-w2 { animation: ps-wave 2.2s ease-out .34s infinite; }
.ps-w3 { animation: ps-wave 2.2s ease-out .68s infinite; }
@keyframes ps-wave { 0% { opacity: 0; transform: translateX(-3px) scaleX(.7); } 45% { opacity: .95; } 100% { opacity: 0; transform: translateX(2px) scaleX(1); } }
@media (max-width: 1080px) { .mega-cable, .mega-signal { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cb-plug-l, .cb-plug-r, .cb-led1, .cb-led2, .cb-led3, .cb-pkt-a, .cb-pkt-b, .ps-chip, .ps-wave { animation: none; }
  .cb-led { opacity: 1; }
}

/* ===== mobile theme switcher (mobile menu) ===== */
.compact-divider { height: 1px; margin: 6px 8px; background: var(--ln); }
.mm-theme-divider { margin: 8px 14px; }
.theme-switcher { display: flex; align-items: center; gap: 10px; padding: 8px 10px 6px; }
.mm-theme-switcher { padding: 10px 14px 12px; }
.theme-side { display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; border: none; background: transparent; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--fnt); cursor: pointer; transition: color .18s ease; }
.theme-side svg { width: 15px; height: 15px; flex-shrink: 0; }
.theme-side.is-active { color: var(--text); }
.theme-toggle { position: relative; flex-shrink: 0; width: 44px; height: 26px; padding: 0; border: 1px solid var(--pbd); border-radius: 999px; background: var(--pnl); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.theme-toggle[aria-checked="true"] { border-color: var(--text); background: var(--text); }
.theme-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform .2s ease; }
.theme-toggle[aria-checked="true"] .theme-knob { transform: translateX(18px); }

/* ===== Signal article content — never exceed the mobile viewport ===== */
.tbl { table-layout: fixed; width: 100%; }
.tbl td, .tbl th { overflow-wrap: anywhere; word-break: break-word; }
figure, .fig { max-width: 100%; }
figure img, .fig img, img { max-width: 100%; height: auto; }
pre { max-width: 100%; }
