:root {
  --ps-ink: #0f172a;
  --ps-body: #334155;
  --ps-muted: #64748b;
  --ps-line: #e2e8f0;
  --ps-paper: #ffffff;
  --ps-soft: #f8fafc;
  --ps-radius: 18px;

  /* Default / Hub Theme (Signature Green) */
  --ps-primary: #15803d;
  --ps-primary-dark: #166534;
  --ps-primary-soft: #f0fdf4;
  --ps-primary-border: #bbf7d0;
  --ps-glow: rgba(21, 128, 61, 0.22);
  --ps-shadow: 0 18px 50px rgba(21, 128, 61, .09);
  --ps-hero-panel-bg: #090d16;
  --ps-hero-panel-border: rgba(34, 197, 94, 0.25);
  --ps-hero-panel-kicker: #4ade80;
  --ps-hero-panel-chain: #22c55e;
  --ps-hero-gradient: radial-gradient(circle at 85% 15%, rgba(21, 128, 61, 0.20), transparent 32rem),
                      radial-gradient(circle at 15% 85%, rgba(180, 83, 9, 0.08), transparent 28rem),
                      #ffffff;

  /* Universal Level Badges */
  --ps-green: #15803d;
  --ps-green-dark: #166534;
  --ps-green-soft: #f0fdf4;
  --ps-blue: #1d5f9d;
  --ps-blue-soft: #eaf3fb;
  --ps-amber: #b45309;
  --ps-amber-soft: #fffbeb;
  --ps-red: #a23b3b;
  --ps-red-soft: #fff0ef;
}

/* ==========================================================================
   Topic 1: MMMC Theme (Teal / Cyan - 1:1 match with MMMC Guide)
   ========================================================================== */
body[data-topic="mmmc"], [data-topic="mmmc"] {
  --ps-primary: #0f766e;
  --ps-primary-dark: #115e59;
  --ps-primary-soft: #f0fdfa;
  --ps-primary-border: #99f6e4;
  --ps-glow: rgba(15, 118, 110, 0.25);
  --ps-shadow: 0 18px 50px rgba(15, 118, 110, .10);
  --ps-hero-panel-bg: #061e1c;
  --ps-hero-panel-border: rgba(45, 212, 191, 0.28);
  --ps-hero-panel-kicker: #5eead4;
  --ps-hero-panel-chain: #2dd4bf;
  --ps-hero-gradient: radial-gradient(circle at 85% 15%, rgba(15, 118, 110, 0.22), transparent 32rem),
                      radial-gradient(circle at 15% 85%, rgba(13, 148, 136, 0.10), transparent 26rem),
                      #ffffff;
}

/* ==========================================================================
   Topic 2: STA Theme (Signature Forest Green - 1:1 match with STA Guide)
   ========================================================================== */
body[data-topic="sta"], [data-topic="sta"] {
  --ps-primary: #15803d;
  --ps-primary-dark: #166534;
  --ps-primary-soft: #f0fdf4;
  --ps-primary-border: #bbf7d0;
  --ps-glow: rgba(21, 128, 61, 0.22);
  --ps-shadow: 0 18px 50px rgba(21, 128, 61, .09);
  --ps-hero-panel-bg: #090d16;
  --ps-hero-panel-border: rgba(34, 197, 94, 0.25);
  --ps-hero-panel-kicker: #4ade80;
  --ps-hero-panel-chain: #22c55e;
  --ps-hero-gradient: radial-gradient(circle at 85% 15%, rgba(21, 128, 61, 0.20), transparent 32rem),
                      radial-gradient(circle at 15% 85%, rgba(4, 120, 87, 0.08), transparent 28rem),
                      #ffffff;
}

/* ==========================================================================
   Topic 3: Low Power Theme (Electric Amber / Power, Voltage & Energy Domain)
   ========================================================================== */
body[data-topic="lowpower"], body[data-topic="low-power"], [data-topic="lowpower"], [data-topic="low-power"] {
  --ps-primary: #d97706;
  --ps-primary-dark: #b45309;
  --ps-primary-soft: #fffbeb;
  --ps-primary-border: #fde68a;
  --ps-glow: rgba(217, 119, 6, 0.25);
  --ps-shadow: 0 18px 50px rgba(217, 119, 6, .10);
  --ps-hero-panel-bg: #181105;
  --ps-hero-panel-border: rgba(251, 191, 36, 0.28);
  --ps-hero-panel-kicker: #fbbf24;
  --ps-hero-panel-chain: #f59e0b;
  --ps-hero-gradient: radial-gradient(circle at 85% 15%, rgba(217, 119, 6, 0.18), transparent 32rem),
                      radial-gradient(circle at 15% 85%, rgba(180, 83, 9, 0.08), transparent 28rem),
                      #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ps-paper);
  color: var(--ps-body);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: normal;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: rgba(21, 128, 61, 0.1); }
:focus-visible { outline: 3px solid var(--ps-primary); outline-offset: 3px; }
.ps-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.ps-narrow { width: min(820px, calc(100% - 40px)); }

.ps-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ps-nav { min-height: 70px; display: flex; align-items: center; gap: 20px; }
.ps-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ps-ink); text-decoration: none; font-family: Outfit, sans-serif; font-weight: 800; }
.ps-brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ps-primary), var(--ps-primary-dark));
  color: white;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -.03em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--ps-glow);
}
.ps-product { display: flex; flex-direction: column; padding-left: 20px; border-left: 1px solid var(--ps-line); text-decoration: none; line-height: 1.1; }
.ps-product span { color: var(--ps-ink); font-family: Outfit, sans-serif; font-weight: 800; }
.ps-product small { margin-top: 4px; color: var(--ps-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ps-nav-links { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.ps-nav-links a { color: var(--ps-body); text-decoration: none; font-size: 14px; font-weight: 650; }
.ps-nav-links a:hover { color: var(--ps-primary); }

.ps-hero, .ps-page-hero {
  background: var(--ps-hero-gradient);
  border-bottom: 1px solid var(--ps-line);
}
.ps-hero { padding: 78px 0 86px; }
.ps-page-hero { padding: 58px 0 64px; }
.ps-mmmc-hero { padding: 24px 0 28px; }
.ps-mmmc-hero .ps-breadcrumbs { margin-bottom: 8px; }
.ps-mmmc-hero h1 { font-size: clamp(1.9rem, 4vw, 3.15rem); }
.ps-mmmc-hero .ps-lead { margin-top: 8px; font-size: clamp(.95rem, 1.6vw, 1.08rem); }
.ps-mmmc-hero .ps-actions { margin-top: 16px; }
.ps-mmmc-hero .ps-button { min-height: 40px; }
.ps-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); align-items: center; gap: 70px; }
.ps-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ps-primary-soft);
  color: var(--ps-primary);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--ps-primary-border);
  letter-spacing: .06em;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--ps-ink); font-family: Outfit, Inter, sans-serif; line-height: 1.15; overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(2.3rem, 5.5vw, 4.6rem); letter-spacing: -.04em; }
h1 span {
  background: linear-gradient(135deg, var(--ps-primary), var(--ps-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.5rem); letter-spacing: -.03em; }
h3 { margin: 0; font-size: 1.25rem; }
.ps-page-hero h1 { max-width: 920px; font-size: clamp(2.1rem, 4.8vw, 3.8rem); }
.ps-lead { max-width: 760px; margin: 20px 0 0; color: #475569; font-size: clamp(1.02rem, 1.8vw, 1.18rem); line-height: 1.6; }
.ps-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ps-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
}
.ps-button-primary { background: var(--ps-primary); color: white; box-shadow: 0 8px 22px var(--ps-glow); }
.ps-button-primary:hover { background: var(--ps-primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px var(--ps-glow); }
.ps-button-ghost { border-color: var(--ps-line); background: white; color: var(--ps-ink); }
.ps-button-ghost:hover { border-color: var(--ps-primary); transform: translateY(-2px); }
.ps-free-note { margin: 16px 0 0; color: var(--ps-muted); font-size: 13px; font-weight: 600; }

.ps-hero-panel {
  padding: 30px;
  border: 1px solid var(--ps-hero-panel-border);
  border-radius: 24px;
  background: var(--ps-hero-panel-bg);
  color: white;
  box-shadow: 0 20px 45px rgba(9, 13, 22, 0.35), 0 0 30px var(--ps-glow);
}
.ps-panel-kicker { color: var(--ps-hero-panel-kicker); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ps-chain { margin: 16px 0 26px; font-family: Outfit, sans-serif; font-size: 1.45rem; line-height: 1.5; word-break: break-word; }
.ps-chain b { color: var(--ps-hero-panel-chain); }
.ps-hero-panel dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.ps-hero-panel dl div { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); }
.ps-hero-panel dt { font-size: 1.35rem; font-weight: 800; line-height: 1.1; color: #f8fafc; }
.ps-hero-panel dd { margin: 4px 0 0; color: #94a3b8; font-size: 11px; }

.ps-breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 24px; color: var(--ps-muted); font-size: 12px; font-weight: 650; line-height: 1.4; }
.ps-breadcrumbs a { color: var(--ps-primary); text-decoration: none; }
.ps-section { padding: 72px 0; }
.ps-section-muted { background: var(--ps-soft); border-block: 1px solid var(--ps-line); }
.ps-section-heading { max-width: 720px; margin-bottom: 34px; }
.ps-section-heading > p:last-child { margin: 14px 0 0; }
.ps-topic-card { border: 1px solid var(--ps-line); border-radius: 24px; background: white; box-shadow: var(--ps-shadow); }
.ps-topic-library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ps-library-topic { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border-radius: 20px; border: 1px solid var(--ps-line); background: white; box-shadow: var(--ps-shadow); }
.ps-library-topic p:not(.ps-eyebrow) { flex: 1; margin: 10px 0 16px; }
.ps-library-topic .ps-button { margin-top: 12px; width: 100%; }
.ps-topic-level-links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 16px; font-size: .88rem; }
.ps-topic-level-links a {
  color: var(--ps-primary);
  font-weight: 700;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--ps-primary-soft);
  border: 1px solid var(--ps-primary-border);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.ps-topic-level-links a:hover {
  transform: translateY(-1px);
  background: var(--ps-primary-border);
}

/* Landing Page Topic Cards - 1:1 Guide Color Schemes */
.ps-topic-card-mmmc .ps-topic-icon { background: #ccfbf1; color: #0f766e; }
.ps-topic-card-mmmc .ps-eyebrow { background: #f0fdfa; color: #0f766e; border-color: #99f6e4; }
.ps-topic-card-mmmc .ps-button-primary { background: #0f766e; box-shadow: 0 8px 22px rgba(15, 118, 110, 0.25); }
.ps-topic-card-mmmc .ps-button-primary:hover { background: #115e59; }
.ps-topic-card-mmmc .ps-topic-level-links a { color: #0f766e; background: #f0fdfa; border-color: #99f6e4; }
.ps-topic-card-mmmc .ps-topic-level-links a:hover { background: #ccfbf1; }

.ps-topic-card-sta .ps-topic-icon { background: #f0fdf4; color: #15803d; }
.ps-topic-card-sta .ps-eyebrow { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.ps-topic-card-sta .ps-button-primary { background: #15803d; box-shadow: 0 8px 22px rgba(21, 128, 61, 0.22); }
.ps-topic-card-sta .ps-button-primary:hover { background: #166534; }
.ps-topic-card-sta .ps-topic-level-links a { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.ps-topic-card-sta .ps-topic-level-links a:hover { background: #dcfce7; }

.ps-topic-card-lowpower .ps-topic-icon { background: #fef3c7; color: #d97706; }
.ps-topic-card-lowpower .ps-eyebrow { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.ps-topic-card-lowpower .ps-button-primary { background: #d97706; box-shadow: 0 8px 22px rgba(217, 119, 6, 0.25); }
.ps-topic-card-lowpower .ps-button-primary:hover { background: #b45309; }
.ps-topic-card-lowpower .ps-topic-level-links a { color: #d97706; background: #fffbeb; border-color: #fde68a; }
.ps-topic-card-lowpower .ps-topic-level-links a:hover { background: #fef3c7; }

.ps-featured { display: grid; grid-template-columns: 1fr 420px; gap: 50px; padding: 42px; }
.ps-featured p { max-width: 620px; }
.ps-topic-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 14px; background: var(--ps-primary-soft); color: var(--ps-primary); font-family: Outfit; font-weight: 800; font-size: 1.25rem; }
.ps-topic-levels { display: grid; gap: 10px; }
.ps-topic-levels > a:not(.ps-button) { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--ps-line); border-radius: 12px; text-decoration: none; transition: border-color 0.15s ease; }
.ps-topic-levels > a:not(.ps-button):hover { border-color: var(--ps-primary); }
.ps-topic-levels span { color: var(--ps-ink); font-weight: 700; }
.ps-topic-levels strong { color: var(--ps-muted); font-size: 12px; }
.ps-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ps-steps article { padding: 24px; border: 1px solid var(--ps-line); border-radius: 16px; background: white; }
.ps-steps article > span { color: var(--ps-primary); font-family: Outfit; font-weight: 800; font-size: 1.1rem; }
.ps-steps h3 { margin-top: 16px; font-size: 1.05rem; }
.ps-steps p { margin-bottom: 0; font-size: 14px; }
.ps-coming-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ps-coming-grid div { padding: 18px; border: 1px dashed #b8c7c0; border-radius: 14px; background: white; }
.ps-coming-grid span { display: block; margin-bottom: 6px; color: var(--ps-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.ps-coming-grid strong { color: var(--ps-ink); font-size: 14px; }

.ps-two-column { display: grid; grid-template-columns: 1fr 360px; gap: 70px; align-items: start; }
.ps-answer-framework { padding: 0; list-style: none; counter-reset: framework; }
.ps-answer-framework li { display: grid; grid-template-columns: 34px 1fr; gap: 0 14px; padding: 15px 0; border-bottom: 1px solid var(--ps-line); counter-increment: framework; }
.ps-answer-framework li::before { content: counter(framework); grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ps-primary-soft); color: var(--ps-primary); font-weight: 800; }
.ps-answer-framework b { color: var(--ps-ink); }
.ps-answer-framework span { font-size: 14px; }
.ps-reasoning-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 20px;
  background: var(--ps-hero-panel-bg);
  border: 1px solid var(--ps-hero-panel-border);
  color: white;
  box-shadow: 0 16px 36px rgba(9, 13, 22, 0.25);
}
.ps-reasoning-card span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; text-align: center; font-size: 13px; font-weight: 700; }
.ps-reasoning-card b { color: var(--ps-hero-panel-chain); text-align: center; }

/* Low Power Library */
.lp-simple-hero { padding-block: 54px 58px; }
.lp-guide-banner {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  overflow: hidden;
  border: 1px solid var(--ps-primary-border);
  border-radius: 22px;
  background: linear-gradient(135deg, #fffdf6, var(--ps-primary-soft));
  color: var(--ps-body);
  text-decoration: none;
  box-shadow: var(--ps-shadow);
}
.lp-guide-banner > div { max-width: 780px; }
.lp-guide-banner .ps-eyebrow { margin-bottom: 3px; font-size: 10px; }
.lp-guide-banner h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.lp-guide-banner p:not(.ps-eyebrow) { max-width: 650px; margin: 5px 0 0; font-size: 13px; line-height: 1.45; }
.lp-guide-offer-action { display: flex; flex: 0 0 auto; align-items: center; gap: 22px; }
.lp-guide-price { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.lp-guide-price del { color: var(--ps-muted); font-size: 1.15rem; font-weight: 700; }
.lp-guide-price strong { color: var(--ps-primary-dark); font-size: 1.55rem; }
.lp-guide-banner .lp-guide-coming-line { display: flex; align-items: center; gap: 10px; margin-top: 9px; color: var(--ps-ink); }
.lp-guide-coming-line span { padding: 3px 8px; border: 1px solid var(--ps-primary-border); border-radius: 999px; background: white; color: var(--ps-primary-dark); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.lp-guide-coming-line a { color: var(--ps-primary-dark); font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.lp-basics-coming { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 48px; padding: 30px; border: 1px dashed var(--ps-primary-border); border-radius: 18px; background: linear-gradient(135deg, #fffdf6, var(--ps-primary-soft)); }
.lp-basics-coming h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.lp-basics-coming p:not(.ps-eyebrow) { max-width: 720px; margin-top: 8px; }
.lp-coming-badge { flex: 0 0 auto; padding: 9px 15px; border: 1px solid var(--ps-primary-border); border-radius: 999px; background: white; color: var(--ps-primary-dark); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.lp-guide-banner img { width: 100%; border: 1px solid var(--ps-primary-border); border-radius: 15px; box-shadow: 0 16px 32px rgba(120, 53, 15, .14); }
.lp-simple-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.lp-simple-links a { padding: 22px; border: 1px solid var(--ps-line); border-radius: 15px; background: white; text-decoration: none; }
.lp-simple-links a:hover { border-color: var(--ps-primary); }
.lp-simple-links strong, .lp-simple-links span { display: block; }
.lp-simple-links strong { color: var(--ps-ink); }
.lp-simple-links span { margin-top: 5px; color: var(--ps-primary-dark); font-size: 13px; font-weight: 700; }
.lp-chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.lp-chapter-section { padding-top: 58px; scroll-margin-top: 80px; }
.lp-chapter-card { display: flex; min-height: 620px; overflow: hidden; flex-direction: column; border: 1px solid var(--ps-line); border-radius: 18px; background: white; box-shadow: 0 8px 22px rgba(120, 53, 15, .08); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lp-chapter-card:hover { transform: translateY(-6px); border-color: var(--ps-primary); box-shadow: 0 20px 40px rgba(120, 53, 15, .15); }
.lp-chapter-image { display: flex; height: 250px; align-items: center; justify-content: center; padding: 16px; border-bottom: 1px solid var(--ps-line); background: var(--ps-primary-soft); }
.lp-chapter-image img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; image-rendering: high-quality; filter: contrast(1.03) saturate(1.02); }
.lp-chapter-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.lp-chapter-badge { width: fit-content; padding: 4px 11px; border: 1px solid var(--ps-primary-border); border-radius: 999px; background: var(--ps-primary-soft); color: var(--ps-primary-dark); font-size: 11px; font-weight: 800; }
.lp-chapter-card h3 { margin-top: 10px; font-size: 1.12rem; }
.lp-chapter-card p { margin: 8px 0 12px; font-size: 13px; line-height: 1.5; }
.lp-chapter-list { flex: 1; margin: 0 0 15px; padding: 0; list-style: none; }
.lp-chapter-list li { position: relative; padding: 3px 0 3px 18px; color: var(--ps-body); font-size: 12.5px; line-height: 1.45; }
.lp-chapter-list li::before { position: absolute; top: 9px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--ps-primary); content: ""; }
.lp-chapter-actions { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ps-line); }
.lp-chapter-card .lp-download-button { width: 100%; padding-top: 11px; padding-bottom: 11px; }
.lp-premium-section { margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--ps-line); scroll-margin-top: 80px; }
.lp-premium-offer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 30px; border: 1px solid var(--ps-primary-border); border-radius: 20px; background: linear-gradient(135deg, #fff7ed, var(--ps-primary-soft)); box-shadow: 0 14px 34px rgba(120, 53, 15, .1); }
.lp-premium-offer > div:first-child { min-width: 0; max-width: 760px; }
.lp-premium-offer h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
.lp-premium-offer p:not(.ps-eyebrow) { margin-top: 8px; line-height: 1.6; }
.lp-premium-offer .lp-premium-free-note { margin-top: 13px; color: var(--ps-muted); font-size: 11.5px; line-height: 1.5; }
.lp-premium-free-note strong { color: var(--ps-ink); }
.lp-premium-free-note a { color: var(--ps-primary-dark); font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.lp-premium-offer-action { display: flex; flex: 0 0 auto; align-items: center; gap: 20px; }
.lp-premium-offer-action > span { display: flex; flex-direction: column; white-space: nowrap; }
.lp-premium-offer-action del { margin-bottom: 3px; color: var(--ps-muted); font-size: .9rem; font-weight: 750; line-height: 1; }
.lp-premium-offer-action strong { color: var(--ps-primary-dark); font-size: 2rem; line-height: 1; }
.lp-premium-offer-action small { margin-top: 5px; color: var(--ps-muted); font-size: 11px; font-weight: 700; }
.lp-premium-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 32px; }
.lp-premium-card { min-width: 0; min-height: 600px; }
.lp-premium-card h3, .lp-premium-card p, .lp-premium-card li { overflow-wrap: anywhere; }
.lp-premium-card-meta { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.lp-premium-card-meta .lp-chapter-badge { min-width: 0; }
.lp-premium-card-meta > strong { flex: 0 0 auto; color: var(--ps-primary-dark); font-size: 1.15rem; }
.lp-paid-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
.lp-paid-actions .ps-button { width: 100%; min-width: 0; padding: 10px 8px; text-align: center; white-space: normal; }

/* Low Power Basics one-minute eBook reader */
body.lp-reader-open { overflow: hidden; }
.lp-pdf-modal[hidden] { display: none; }
.lp-pdf-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; background: rgba(9, 13, 22, .9); opacity: 0; backdrop-filter: blur(10px); transition: opacity .22s ease; }
.lp-pdf-modal.is-active { opacity: 1; }
.lp-pdf-window { position: relative; display: flex; width: min(100%, 940px); height: min(94vh, 900px); min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid #334155; border-radius: 20px; background: #111827; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); transform: scale(.97); transition: transform .22s ease; }
.lp-pdf-modal.is-active .lp-pdf-window { transform: scale(1); }
.lp-pdf-toolbar { display: flex; min-width: 0; min-height: 62px; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px; border-bottom: 1px solid #334155; background: #0f172a; color: white; }
.lp-pdf-heading { display: flex; min-width: 0; align-items: center; gap: 12px; }
.lp-pdf-heading > strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.lp-pdf-timer { flex: 0 0 auto; padding: 5px 10px; border: 1px solid rgba(34, 197, 94, .38); border-radius: 999px; background: rgba(34, 197, 94, .15); color: #4ade80; font-size: 11px; font-weight: 800; white-space: nowrap; }
.lp-pdf-timer.is-expired { border-color: rgba(248, 113, 113, .4); background: rgba(239, 68, 68, .15); color: #f87171; }
.lp-pdf-toolbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.lp-pdf-buy { padding: 8px 12px; font-size: 12px; white-space: nowrap; }
.lp-pdf-close { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: white; font: inherit; font-size: 23px; cursor: pointer; }
.lp-pdf-close:hover { background: rgba(255, 255, 255, .2); }
.lp-pdf-pages { position: relative; display: flex; min-width: 0; flex: 1; overflow: auto; flex-direction: column; align-items: center; gap: 22px; padding: 24px 20px 48px; background: #3b3e40; }
.lp-pdf-loading { margin: auto; color: white; font-weight: 750; }
.lp-pdf-sheet { width: min(100%, 820px); flex: 0 0 auto; overflow: hidden; border-radius: 5px; background: white; box-shadow: 0 12px 34px rgba(0, 0, 0, .45); }
.lp-pdf-sheet canvas { display: block; width: 100%; height: auto; }
.lp-pdf-paywall { width: min(100%, 720px); padding: 32px 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: #0f172a; color: white; text-align: center; box-shadow: 0 18px 42px rgba(0, 0, 0, .4); }
.lp-pdf-paywall h3 { margin: 8px 0; color: white; font-size: 1.45rem; }
.lp-pdf-paywall p { max-width: 500px; margin: 0 auto 20px; color: #cbd5e1; font-size: 13px; line-height: 1.6; }
.lp-pdf-interview { width: min(100%, 720px); padding: 24px; border: 1px solid #fed7aa; border-radius: 16px; background: #fff7ed; color: #431407; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.lp-pdf-interview > span { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #ffedd5; color: #9a3412; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.lp-pdf-interview h3 { margin: 12px 0 8px; color: #431407; font-size: 1.15rem; line-height: 1.4; }
.lp-pdf-interview p { margin: 0; color: #7c2d12; font-size: 13px; line-height: 1.65; }
.lp-pdf-window.is-locked .lp-pdf-pages { filter: blur(7px); pointer-events: none; user-select: none; }
.lp-pdf-expired { position: absolute; top: 50%; left: 50%; z-index: 5; width: min(88%, 510px); padding: 30px 24px; border: 1px solid rgba(248, 113, 113, .45); border-radius: 18px; background: rgba(15, 23, 42, .96); color: white; text-align: center; box-shadow: 0 28px 65px rgba(0, 0, 0, .62); transform: translate(-50%, -50%); }
.lp-pdf-expired h3 { margin: 8px 0; color: white; font-size: 1.5rem; }
.lp-pdf-expired p { margin: 0 0 20px; color: #cbd5e1; font-size: 13px; line-height: 1.6; }
.lp-bundle-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 24px; padding: 28px; border: 1px solid var(--ps-primary-border); border-radius: 18px; background: linear-gradient(135deg, #fff7ed, #fffbeb); }
.lp-bundle-card p:not(.ps-eyebrow) { max-width: 720px; margin: 10px 0 0; }
.lp-bundle-card .ps-button { flex: 0 0 auto; }
.lp-download-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(15, 23, 42, .72); }
.lp-download-modal[hidden] { display: none; }
.lp-modal-open { overflow: hidden; }
.lp-download-dialog { position: relative; width: min(520px, 100%); padding: 30px; border: 1px solid var(--ps-primary-border); border-radius: 20px; background: white; box-shadow: 0 28px 80px rgba(15, 23, 42, .35); }
.lp-download-dialog h2 { font-size: 1.8rem; }
.lp-download-dialog > p:not(.ps-eyebrow) { margin: 10px 0 20px; }
.lp-modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--ps-line); border-radius: 50%; background: white; color: var(--ps-ink); font-size: 1.25rem; cursor: pointer; }
.lp-download-dialog label { display: block; margin-bottom: 7px; color: var(--ps-ink); font-size: 13px; font-weight: 800; }
.lp-download-dialog input[type="email"] { width: 100%; min-height: 48px; margin-bottom: 14px; padding: 10px 13px; border: 1px solid var(--ps-line); border-radius: 10px; color: var(--ps-ink); font: inherit; }
.lp-download-dialog input[type="email"]:focus { border-color: var(--ps-primary); outline: 3px solid var(--ps-primary-soft); }
.lp-marketing-consent { display: grid !important; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; margin: 1px 0 15px; color: var(--ps-muted) !important; font-size: 12px !important; font-weight: 600 !important; line-height: 1.45; }
.lp-marketing-consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ps-primary); }
.lp-download-dialog form > .ps-button { width: 100%; }
.lp-privacy-note { margin-top: 12px; color: var(--ps-muted); font-size: 12px; }
.lp-download-status { min-height: 20px; margin-top: 12px; color: var(--ps-primary-dark); font-size: 13px; font-weight: 700; }
.lp-download-dialog button:disabled { cursor: wait; opacity: .7; }
.lp-bundle-suggestion { padding: 20px; border: 1px solid var(--ps-primary-border); border-radius: 14px; background: linear-gradient(135deg, var(--ps-primary-soft), #fff); }
.lp-bundle-suggestion > span { display: inline-block; margin-bottom: 8px; padding: 4px 9px; border-radius: 999px; background: var(--ps-primary); color: white; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lp-bundle-suggestion h3 { margin: 0; color: var(--ps-ink); font-size: 1.25rem; }
.lp-bundle-suggestion p { margin: 8px 0 16px; color: var(--ps-muted); font-size: 13px; line-height: 1.6; }
.lp-bundle-suggestion .ps-button { width: 100%; }
.lp-chapter-continue { display: block; width: 100%; margin-top: 10px; padding: 9px; border: 0; background: transparent; color: var(--ps-muted); font: inherit; font-size: 12px; font-weight: 750; text-decoration: underline; cursor: pointer; }
.lp-chapter-continue:hover { color: var(--ps-primary); }
.lp-library-hero { padding-block: 68px 76px; }
.lp-library-hero .ps-breadcrumbs { margin-bottom: 18px; }
.lp-track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-track-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--ps-line);
  border-top: 4px solid var(--ps-primary);
  border-radius: 18px;
  background: white;
  color: var(--ps-body);
  text-decoration: none;
  box-shadow: var(--ps-shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.lp-track-card:hover { transform: translateY(-3px); border-color: var(--ps-primary); }
.lp-track-card > span { color: var(--ps-primary); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lp-track-card h3 { margin-top: 14px; font-size: 1.45rem; }
.lp-track-card p { flex: 1; margin: 12px 0 22px; }
.lp-track-card strong { color: var(--ps-primary-dark); font-size: 13px; }
.lp-section-intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr); gap: 64px; align-items: end; margin-bottom: 34px; }
.lp-section-intro > p { margin: 0; }
.lp-tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-tool-card { position: relative; padding: 26px 22px 24px; overflow: hidden; border: 1px solid var(--ps-primary-border); border-radius: 18px; background: white; }
.lp-tool-card > span { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--ps-primary-soft); color: var(--ps-primary); font-family: Outfit, sans-serif; font-weight: 800; }
.lp-tool-card h3 { margin-top: 22px; font-size: 1.12rem; }
.lp-tool-card p { min-height: 110px; margin: 10px 0 18px; font-size: 14px; }
.lp-tool-card a { color: var(--ps-primary-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.lp-tool-card a:hover { text-decoration: underline; }
.lp-tool-footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 22px; padding: 24px 26px; border: 1px solid var(--ps-primary-border); border-radius: 18px; background: #fff8e7; }
.lp-tool-footer strong { color: var(--ps-ink); font-family: Outfit, sans-serif; font-size: 1.08rem; }
.lp-tool-footer p { margin: 4px 0 0; font-size: 13px; }
.ps-level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ps-level-card { padding: 28px; border: 1px solid var(--ps-line); border-top: 4px solid var(--ps-primary); border-radius: 16px; background: white; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.ps-level-card:hover { transform: translateY(-3px); box-shadow: var(--ps-shadow); }
.ps-level-card > span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ps-level-card h3 { margin-top: 10px; font-size: 1.5rem; }
.ps-level-card p { font-size: 14px; }
.ps-level-card strong { color: var(--ps-primary); font-size: 13px; }
.ps-level-blue { border-top-color: var(--ps-blue); }
.ps-level-blue > span, .ps-level-blue strong { color: var(--ps-blue); }
.ps-level-amber { border-top-color: var(--ps-amber); }
.ps-level-amber > span, .ps-level-amber strong { color: var(--ps-amber); }

.ps-filter { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; margin-bottom: 24px; }
.ps-filter label { width: 100%; }
.ps-filter label span { display: block; margin-bottom: 7px; color: var(--ps-ink); font-size: 12px; font-weight: 750; }
.ps-filter input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #bac7c1;
  border-radius: 12px;
  color: var(--ps-ink);
  background: white;
  font-size: 16px; /* Prevents auto-zoom on iOS Safari */
  -webkit-appearance: none;
}
.ps-filter input:focus { border-color: var(--ps-primary); outline: none; box-shadow: 0 0 0 3px var(--ps-glow); }
.ps-filter-buttons {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--ps-line);
  border-radius: 12px;
  background: var(--ps-soft);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ps-filter-buttons::-webkit-scrollbar { display: none; }
.ps-filter-buttons button {
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ps-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.ps-filter-buttons button.is-active { background: var(--ps-primary); color: white; }

.ps-question-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ps-line); }
.ps-question-row[hidden] { display: none; }
.ps-question-list .ps-question-row a {
  display: grid;
  grid-template-columns: 46px 1fr 24px;
  gap: 18px;
  align-items: start;
  padding: 18px 10px;
  border-bottom: 1px solid var(--ps-line);
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 0.15s ease;
}
.ps-question-list .ps-question-row a:hover { background: var(--ps-primary-soft); }
.ps-question-number { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--ps-primary-soft); color: var(--ps-primary); font-size: 12px; font-weight: 800; flex-shrink: 0; }
.ps-question-list .ps-question-row strong { display: block; color: var(--ps-ink); line-height: 1.4; font-size: 15px; }
.ps-question-list .ps-question-row small { display: -webkit-box; margin-top: 6px; overflow: hidden; color: var(--ps-muted); font-size: 13px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ps-arrow { color: var(--ps-primary); font-weight: 800; align-self: center; }
.ps-empty { padding: 28px; border: 1px dashed var(--ps-line); border-radius: 14px; text-align: center; }
.ps-guide-level { scroll-margin-top: 92px; }
.ps-guide-level + .ps-guide-level { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--ps-line); }
.ps-guide-level[hidden] { display: none; }
.ps-guide-level-heading { max-width: 720px; margin-bottom: 24px; }
.ps-guide-level-heading h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.ps-level-index-link { color: var(--ps-primary); font-size: 12px; font-weight: 750; }
.ps-answer-guide { display: grid; gap: 26px; }
.ps-guide-question {
  scroll-margin-top: 92px;
  padding: clamp(20px, 3.5vw, 36px);
  border: 1px solid var(--ps-line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 34px rgba(17, 52, 39, .06);
}
.ps-guide-question[hidden] { display: none; }
.ps-guide-question-header { position: relative; margin-bottom: 20px; padding-right: 140px; }
.ps-guide-question-header h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.35; }
.ps-guide-question-header h2 a { color: inherit; text-decoration: none; }
.ps-guide-question-header h2 a:hover { color: var(--ps-primary); text-decoration: underline; }
.ps-guide-question-header .ps-question-meta { margin-bottom: 10px; }
.ps-permalink {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ps-primary);
  font-size: 11.5px;
  font-weight: 750;
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--ps-primary-soft);
  border: 1px solid var(--ps-primary-border);
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.ps-permalink:hover {
  background: var(--ps-primary-border);
  transform: translateY(-1px);
}
.ps-guide-answer {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid var(--ps-line);
  border-left-width: 5px;
  border-radius: 12px;
}
.ps-guide-answer h3 { margin-bottom: 8px; font-size: 1rem; }
.ps-guide-answer p { margin: 0; white-space: pre-line; line-height: 1.6; }
.ps-guide-answer ul { margin: 8px 0 0; padding-left: 20px; }
.ps-guide-answer li + li { margin-top: 4px; }
.ps-guide-answer > code {
  display: block;
  max-width: 100%;
  padding: 13px 15px;
  margin-top: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 9px;
  background: #0f172a;
  color: #a7f3d0;
  font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.ps-guide-takeaways { border-left-color: var(--ps-primary); background: #fcfdfd; }
.ps-guide-question .ps-complete { margin-top: 18px; }
.ps-guide-section { padding-top: 10px; }
.ps-guide-main { min-width: 0; }
.ps-guide-toolbar { margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--ps-line); border-radius: 16px; background: var(--ps-soft); }
.ps-guide-toolbar .ps-filter { margin-bottom: 10px; }
.ps-prep-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding-top: 14px; border-top: 1px solid var(--ps-line); }
.ps-prep-links span { color: var(--ps-ink); font-size: 12px; font-weight: 800; }
.ps-prep-links a { color: var(--ps-primary); font-size: 12px; font-weight: 750; }
.ps-related-topics, .ps-related-questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ps-related-topics a, .ps-related-questions a { padding: 20px; border: 1px solid var(--ps-line); border-radius: 14px; background: white; text-decoration: none; transition: border-color 0.15s ease; }
.ps-related-topics a:hover, .ps-related-questions a:hover { border-color: var(--ps-primary); }
.ps-related-topics strong, .ps-related-questions strong { display: block; color: var(--ps-ink); font-size: 14px; }
.ps-related-topics span, .ps-related-questions span { color: var(--ps-muted); font-size: 12px; }

.ps-progress { max-width: 560px; margin-top: 28px; }
.ps-progress span { font-size: 13px; font-weight: 650; }
.ps-progress > div { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #dce8e2; }
.ps-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ps-primary); transition: width .25s ease; }
.ps-level-intro { margin-bottom: 32px; padding: 22px 24px; border-left: 4px solid var(--ps-primary); background: var(--ps-primary-soft); border-radius: 0 12px 12px 0; }
.ps-level-intro h2 { font-size: 1.35rem; }
.ps-level-intro p { margin-bottom: 0; font-size: 14.5px; }
.ps-level-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ps-level-nav a { padding: 9px 14px; border: 1px solid var(--ps-line); border-radius: 9px; color: var(--ps-primary); text-decoration: none; font-size: 13px; font-weight: 700; background: white; }
.ps-level-nav a:hover { border-color: var(--ps-primary); background: var(--ps-primary-soft); }

.ps-question-hero { padding: 46px 0 40px; border-bottom: 1px solid var(--ps-line); background: var(--ps-primary-soft); }
.ps-question-hero h1 { font-size: clamp(1.85rem, 4.2vw, 3.25rem); }
.ps-question-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 16px; color: var(--ps-muted); font-size: 12px; font-weight: 700; }
.ps-level-pill { padding: 4px 10px; border-radius: 99px; background: var(--ps-green-soft); color: var(--ps-green); font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; }
.ps-level-pill.ps-level-blue { background: var(--ps-blue-soft); color: var(--ps-blue); }
.ps-level-pill.ps-level-amber { background: var(--ps-amber-soft); color: var(--ps-amber); }
.ps-source-line { margin: 16px 0 0; color: var(--ps-muted); font-size: 12px; }
.ps-article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; justify-content: center; gap: 40px; padding-block: 48px; }
.ps-article-main { min-width: 0; }
.ps-answer-card { margin-bottom: 18px; padding: 26px; border: 1px solid var(--ps-line); border-radius: var(--ps-radius); background: white; }
.ps-answer-card h2 { margin-bottom: 12px; font-size: 1.15rem; }
.ps-answer-card p { margin: 0; white-space: pre-line; line-height: 1.6; }
.ps-answer-card ul { margin: 8px 0 0; padding-left: 20px; }
.ps-answer-card li + li { margin-top: 4px; }

/* STA concept schematics and timing waveforms */
.ps-sta-visual { margin: 22px 0; overflow-x: auto; border: 1px solid var(--ps-primary-border); border-radius: var(--ps-radius); background: linear-gradient(180deg, var(--ps-primary-soft), #fff 34%); box-shadow: 0 12px 34px rgba(15, 23, 42, .07); }
.ps-article-main { min-width: 0; }
.ps-sta-visual figcaption { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; min-width: 0; padding: 16px 20px 0; }
.ps-sta-visual figcaption span { color: var(--ps-primary); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ps-sta-visual figcaption strong { min-width: 0; overflow-wrap: anywhere; color: var(--ps-ink); font-family: Outfit, sans-serif; font-size: 1rem; }
.ps-sta-visual svg { display: block; width: 100%; min-width: 620px; height: auto; padding: 4px 12px 12px; }
.ps-sta-visual text { font-family: Inter, sans-serif; text-anchor: middle; dominant-baseline: middle; }
.ps-viz-title { fill: var(--ps-ink); font-size: 14px; font-weight: 750; }
.ps-viz-label { fill: var(--ps-body); font-size: 12px; font-weight: 650; }
.ps-viz-note { fill: var(--ps-muted); font-size: 12px; font-weight: 600; }
.ps-viz-left { text-anchor: start !important; }
.ps-viz-node { fill: #fff; stroke: var(--ps-primary); stroke-width: 2; }
.ps-viz-node-accent { fill: var(--ps-primary-soft); }
.ps-viz-buffer { fill: var(--ps-primary-soft); stroke: var(--ps-primary); stroke-width: 1.6; }
.ps-viz-port { fill: var(--ps-primary); stroke: var(--ps-primary-dark); stroke-width: 2; }
.ps-viz-signal, .ps-viz-measure, .ps-viz-axis { fill: none; stroke: var(--ps-primary); stroke-width: 2.5; }
.ps-viz-measure { stroke-width: 1.6; }
.ps-viz-axis { stroke: var(--ps-muted); stroke-width: 1.5; }
.ps-viz-arrow { fill: var(--ps-primary); }
.ps-viz-wave, .ps-viz-clock { fill: none; stroke: var(--ps-primary-dark); stroke-width: 3; stroke-linejoin: round; }
.ps-viz-data { fill: none; stroke: var(--ps-blue); stroke-width: 3; stroke-linejoin: round; }
.ps-viz-guide { stroke: var(--ps-muted); stroke-width: 1.2; stroke-dasharray: 5 5; }
.ps-viz-capture { stroke: var(--ps-primary); stroke-width: 2.2; }
.ps-viz-arrival { stroke: var(--ps-blue); stroke-width: 2.2; }
.ps-viz-window { fill: var(--ps-amber-soft); stroke: var(--ps-amber); stroke-width: 1.2; stroke-dasharray: 4 3; opacity: .78; }
.ps-viz-dot { fill: var(--ps-blue); }
.ps-viz-dot-alt { fill: var(--ps-primary); }
.ps-card-short { border-left: 5px solid var(--ps-primary); background: var(--ps-primary-soft); }
.ps-card-mentor { border-left: 5px solid var(--ps-blue); }
.ps-card-example { border-left: 5px solid #7c3aed; background: #fbf9ff; }
.ps-card-trap { border-left: 5px solid var(--ps-amber); background: #fffcf8; }
.ps-card-tool { border-left: 5px solid #475569; background: #f8fafc; }
.ps-answer-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.ps-copy { padding: 7px 12px; border: 1px solid var(--ps-primary-border); border-radius: 8px; background: white; color: var(--ps-primary); font-size: 11px; font-weight: 750; cursor: pointer; touch-action: manipulation; }
.ps-copy:active { background: var(--ps-primary-soft); }
.ps-share { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--ps-line); border-radius: 12px; background: var(--ps-soft); }
.ps-share > span { margin-right: 2px; color: var(--ps-muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.ps-share a { padding: 7px 12px; border: 1px solid var(--ps-primary-border); border-radius: 8px; background: white; color: var(--ps-primary); font-size: 11px; font-weight: 750; text-decoration: none; }
.ps-share a:hover { background: var(--ps-primary-soft); }
.ps-tool-check + .ps-tool-check { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ps-line); }
.ps-tool-check strong { display: block; margin-bottom: 8px; color: var(--ps-ink); font-size: 13px; }
.ps-tool-check code {
  display: block;
  max-width: 100%;
  padding: 13px 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 9px;
  background: #0f172a;
  color: #a7f3d0;
  font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.ps-tool-check p { margin-top: 8px; color: var(--ps-muted); font-size: 12px; }
.ps-self-check { margin: 24px 0; border: 1px solid var(--ps-line); border-radius: 14px; background: var(--ps-soft); }
.ps-self-check summary { padding: 16px 18px; color: var(--ps-ink); font-weight: 750; cursor: pointer; touch-action: manipulation; }
.ps-self-check div { padding: 0 18px 16px; }
.ps-complete {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--ps-primary-border);
  border-radius: 12px;
  background: var(--ps-primary-soft);
  color: var(--ps-primary-dark);
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.ps-complete input { width: 20px; height: 20px; accent-color: var(--ps-primary); cursor: pointer; }
.ps-sticky-card { position: sticky; top: 96px; padding: 22px; border: 1px solid var(--ps-line); border-radius: 16px; background: var(--ps-soft); }
.ps-sticky-card ol { padding-left: 22px; font-size: 13px; }
.ps-sticky-card a { display: block; margin-top: 10px; color: var(--ps-primary); font-size: 12px; font-weight: 700; }
.ps-question-resource {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: 28px;
  align-items: center;
  width: min(820px, calc(100% - 40px));
  margin: 0 auto 28px;
  padding: 28px;
  border: 1px solid var(--ps-primary-border);
  border-radius: 18px;
  background: var(--ps-primary-soft);
}
.ps-question-resource h2 { margin: 4px 0 8px; color: var(--ps-ink); font-size: clamp(22px, 3vw, 30px); }
.ps-question-resource p { margin: 0; color: var(--ps-muted); line-height: 1.6; }
.ps-question-resource form { display: grid; gap: 10px; }
.ps-question-resource form > label:first-child { color: var(--ps-ink); font-size: 13px; font-weight: 750; }
.ps-question-resource input[type="email"] { min-height: 46px; padding: 10px 13px; border: 1px solid var(--ps-line); border-radius: 10px; background: white; color: var(--ps-ink); font: inherit; }
.ps-resource-consent { display: flex; gap: 9px; align-items: flex-start; color: var(--ps-muted); font-size: 12px; line-height: 1.45; }
.ps-resource-consent input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--ps-primary); }
.ps-question-resource [data-question-resource-status]:not(:empty) { color: var(--ps-primary-dark); font-size: 13px; font-weight: 700; }
.ps-prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 52px; }
.ps-prev-next a { padding: 18px; border: 1px solid var(--ps-line); border-radius: 14px; text-decoration: none; background: white; transition: border-color 0.15s ease; }
.ps-prev-next a:hover { border-color: var(--ps-primary); }
.ps-prev-next a:last-child { text-align: right; }
.ps-prev-next span { display: block; color: var(--ps-primary); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.ps-prev-next strong { display: block; margin-top: 5px; color: var(--ps-ink); font-size: 13px; line-height: 1.4; }

.ps-footer { padding: 64px 0 32px; border-top: 1px solid #1e293b; background: #090d16; color: #94a3b8; }
.ps-footer .ps-brand { color: white; }
.ps-footer a { color: #94a3b8; text-decoration: none; }
.ps-footer a:hover { color: white; }
.ps-footer p { max-width: 520px; margin: 14px 0 0; color: #94a3b8; font-size: 14px; }
.ps-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 48px; }
.ps-footer nav { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; }
.ps-footer nav h2 { margin-bottom: 6px; color: white; font-size: 15px; }
.ps-footer nav a { color: #94a3b8; font-size: 14px; font-weight: 500; }
.ps-footer-brand { color: white !important; }
.ps-footer-support a { color: var(--ps-primary) !important; font-weight: 700; }
.ps-footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #1e293b; color: #64748b; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 960px) {
  .ps-hero-grid, .ps-featured, .ps-two-column, .ps-article-layout { grid-template-columns: 1fr; }
  .ps-hero-grid { gap: 36px; }
  .ps-featured { gap: 28px; }
  .ps-steps { grid-template-columns: repeat(2, 1fr); }
  .ps-coming-grid { grid-template-columns: repeat(3, 1fr); }
  .ps-article-aside { display: none; }
  .ps-level-grid, .ps-related-topics, .ps-topic-library-grid { grid-template-columns: 1fr; }
  .lp-track-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-tool-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-guide-banner { align-items: flex-start; flex-direction: column; }
  .lp-guide-offer-action { width: 100%; justify-content: space-between; }
  .lp-basics-coming { align-items: flex-start; flex-direction: column; }
  .lp-chapter-grid, .lp-premium-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-premium-offer { align-items: flex-start; flex-direction: column; }
  .lp-premium-offer-action { width: 100%; justify-content: space-between; }
  .lp-bundle-card { align-items: flex-start; flex-direction: column; }
  .lp-section-intro { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 680px) {
  .ps-question-resource { grid-template-columns: 1fr; width: min(100% - 24px, 820px); padding: 20px; }
  .ps-shell, .ps-narrow { width: min(100% - 24px, 1160px); }
  .ps-nav { min-height: 58px; gap: 10px; }
  .ps-brand span:last-child { font-size: 1.1rem; }
  .ps-brand-mark { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
  .ps-product { padding-left: 10px; }
  .ps-product span { font-size: 13px; }
  .ps-product small, .ps-nav-links { display: none; }
  
  .ps-hero { padding: 42px 0 48px; }
  .ps-page-hero { padding: 34px 0 38px; }
  .ps-page-hero.ps-mmmc-hero { padding: 16px 0 20px; }
  .ps-page-hero h1 { font-size: clamp(1.75rem, 6.5vw, 2.4rem); }
  
  .ps-section { padding: 44px 0; }
  .ps-hero-panel { padding: 20px 18px; border-radius: 18px; }
  .ps-chain { font-size: 1.15rem; margin: 12px 0 18px; }
  .ps-hero-panel dl { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ps-hero-panel dt { font-size: 1.15rem; }
  .ps-hero-panel dd { font-size: 10px; }
  
  .ps-featured { padding: 20px; }
  .ps-library-topic { padding: 22px 18px; border-radius: 16px; }
  .lp-library-hero { padding-block: 42px 48px; }
  .lp-simple-hero { padding-block: 34px 38px; }
  .lp-guide-banner { gap: 24px; padding: 20px 18px; border-radius: 17px; }
  .lp-guide-offer-action { align-items: stretch; flex-direction: column; gap: 14px; }
  .lp-guide-offer-action .ps-button { width: 100%; }
  .lp-simple-links, .lp-chapter-grid, .lp-premium-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-chapter-card { min-height: 0; }
  .lp-premium-section { margin-bottom: 44px; padding-bottom: 44px; }
  .lp-premium-offer { gap: 22px; padding: 22px 18px; }
  .lp-premium-offer-action { align-items: stretch; flex-direction: column; }
  .lp-premium-offer-action .ps-button { width: 100%; }
  .lp-pdf-modal { padding: 0; }
  .lp-pdf-window { width: 100%; height: 100dvh; border-radius: 0; }
  .lp-pdf-toolbar { min-height: 68px; padding: 8px 10px; }
  .lp-pdf-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .lp-pdf-heading > strong { max-width: 175px; }
  .lp-pdf-buy { display: none; }
  .lp-pdf-pages { gap: 14px; padding: 14px 10px 34px; }
  .lp-bundle-card { padding: 22px 18px; }
  .lp-bundle-card .ps-button { width: 100%; }
  .lp-download-dialog { padding: 26px 18px 22px; }
  .lp-track-grid, .lp-tool-grid { grid-template-columns: 1fr; }
  .lp-track-card { min-height: 0; padding: 22px 18px; }
  .lp-tool-card p { min-height: 0; }
  .lp-tool-footer { align-items: stretch; flex-direction: column; padding: 20px 18px; }
  .lp-tool-footer .ps-button { width: 100%; }
  .ps-steps, .ps-coming-grid, .ps-related-questions, .ps-related-topics { grid-template-columns: 1fr; }
  
  .ps-filter { grid-template-columns: 1fr; gap: 12px; margin-bottom: 18px; }
  .ps-filter input { min-height: 46px; font-size: 16px; }
  .ps-filter-buttons { width: 100%; justify-content: flex-start; }
  .ps-filter-buttons button { flex: 1 0 auto; text-align: center; padding: 8px 11px; font-size: 12px; }
  
  .ps-question-list .ps-question-row a { grid-template-columns: 34px 1fr 14px; gap: 10px; padding: 14px 4px; }
  .ps-question-number { width: 34px; height: 34px; font-size: 11px; border-radius: 8px; }
  .ps-question-list .ps-question-row strong { font-size: 14px; }
  .ps-question-list .ps-question-row small { font-size: 12px; }
  
  .ps-guide-level + .ps-guide-level { margin-top: 40px; padding-top: 36px; }
  .ps-guide-question { padding: 18px 16px; border-radius: 16px; }
  .ps-guide-question-header { padding-right: 0; margin-bottom: 16px; }
  .ps-permalink { position: static; display: inline-block; margin-top: 10px; }
  .ps-guide-answer { padding: 14px 15px; border-left-width: 4px; border-radius: 10px; }
  .ps-guide-answer h3 { font-size: 0.95rem; }
  .ps-guide-answer p { font-size: 13.5px; }
  .ps-guide-answer > code { padding: 11px 13px; font-size: 11.5px; }
  .ps-guide-toolbar { padding: 12px; }
  
  .ps-question-hero { padding: 32px 0 28px; }
  .ps-question-hero h1 { font-size: clamp(1.45rem, 5.5vw, 2.1rem); }
  .ps-article-layout { padding-block: 30px; gap: 24px; }
  .ps-answer-card { padding: 18px 16px; border-radius: 14px; margin-bottom: 14px; }
  .ps-answer-card h2 { font-size: 1.05rem; }
  .ps-answer-card p { font-size: 13.5px; }
  .ps-tool-check code { padding: 11px 13px; font-size: 11.5px; }
  
  .ps-self-check summary { padding: 14px 16px; font-size: 13.5px; }
  .ps-self-check div { padding: 0 16px 14px; font-size: 13.5px; }
  .ps-complete { padding: 14px 16px; font-size: 13px; border-radius: 10px; }
  
  .ps-prev-next { grid-template-columns: 1fr; gap: 10px; padding-bottom: 38px; }
  .ps-prev-next a { padding: 14px 16px; border-radius: 12px; }
  .ps-prev-next a:last-child { text-align: left; }
  
  .ps-footer { padding: 36px 0 28px; }
  .ps-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .ps-footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 34px; }
}

@media (max-width: 420px) {
  .ps-hero-panel dl { grid-template-columns: 1fr; gap: 10px; }
  .ps-hero-panel dl div { padding-top: 10px; }
  .ps-actions .ps-button { width: 100%; }
}

@media print {
  .ps-header, .ps-footer, .ps-copy, .ps-share, .ps-complete, .ps-article-aside, .ps-prev-next, .ps-related-questions, .ps-filter, .ps-permalink { display: none !important; }
  body { color: #000; }
  .ps-question-hero, .ps-section-muted { background: white; }
  .ps-article-layout { display: block; padding: 20px 0; }
  .ps-answer-card, .ps-guide-question { break-inside: avoid; box-shadow: none; }
}
