/* FDE article page — scoped to match Crack System Design (styles.css tokens) */

.fde-page .app {
  flex: 1;
  min-height: 100vh;
}

.fde-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 56px);
}

.fde-page .menu-toggle {
  display: none;
}

.fde-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: var(--topbar-h, 56px);
  align-self: flex-start;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 12px 24px;
  border-right: 1px solid var(--border);
  background: var(--bg2);
  z-index: 40;
}

.fde-sidebar::-webkit-scrollbar {
  width: 5px;
}

.fde-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.fde-sidebar__header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.fde-sidebar__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.fde-sidebar__meta {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  opacity: 0.85;
}

.fde-sidebar__group {
  margin-bottom: 14px;
}

.fde-sidebar__group:last-child {
  margin-bottom: 0;
}

.fde-sidebar__group-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 0 10px 6px;
  opacity: 0.75;
}

.fde-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fde-sidebar__nav a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: var(--transition);
  line-height: 1.35;
}

.fde-sidebar__num {
  flex-shrink: 0;
  min-width: 1.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.7;
  padding-top: 1px;
}

.fde-sidebar__nav a.is-active .fde-sidebar__num {
  color: var(--accent);
  opacity: 1;
}

.fde-sidebar__nav a:hover {
  color: var(--fg);
  background: var(--progress-bg);
}

.fde-sidebar__nav a.is-active {
  color: var(--accent);
  background: var(--progress-bg);
  border-left-color: var(--accent);
  font-weight: 500;
}

.fde-main {
  flex: 1;
  min-width: 0;
  padding: 0 24px 64px;
  overflow-x: hidden;
}

.fde-sidebar__read {
  margin-top: 10px;
}

.fde-sidebar__read-bar {
  height: 4px;
  background: var(--code-bg);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.fde-sidebar__read-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
  transition: width 0.15s ease-out;
}

.fde-sidebar__read-label {
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
}

.fde-article {
  max-width: 820px;
  margin: 0 auto;
}

/* ── Hero ── */
.fde-article .hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.fde-article .hero-label {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--blue-dim);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.fde-article .hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 16px;
}

.fde-article .hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.fde-article .hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.fde-article .hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

/* ── Inline TOC (mobile-friendly duplicate) ── */
.fde-article .toc {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.fde-article .toc-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.fde-article .toc ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
  padding-left: 20px;
  font-size: 14px;
}

.fde-article .toc ol li { color: var(--muted); }
.fde-article .toc ol li a {
  color: var(--link);
  text-decoration: none;
}
.fde-article .toc ol li a:hover { text-decoration: underline; }

/* ── Sections ── */
.fde-article .section,
.fde-article .fde-widget[id],
.fde-article .fde-end {
  scroll-margin-top: 88px;
}

.fde-article .section { margin-bottom: 56px; }

.fde-continue {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.fde-continue a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: var(--transition);
}

.fde-continue a:hover {
  border-color: var(--accent);
  background: var(--blue-dim);
  transform: translateX(2px);
}

.fde-continue a:focus-visible,
.fde-end__card:focus-visible,
.fde-sidebar__nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.fde-article .section-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.fde-article h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 20px;
}

.fde-article h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin: 28px 0 10px;
}

.fde-article h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin: 20px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fde-article p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.fde-article strong { color: var(--fg); font-weight: 600; }

/* ── Callouts ── */
.fde-article .callout {
  border-left: 3px solid;
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 15px;
}

.fde-article .callout-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.fde-article .callout p { font-size: 15px; margin-bottom: 0; }
.fde-article .callout.insight { border-color: var(--accent); background: var(--blue-dim); }
.fde-article .callout.insight .callout-title { color: var(--accent); }
.fde-article .callout.tip { border-color: var(--secondary); background: var(--secondary-dim); }
.fde-article .callout.tip .callout-title { color: var(--secondary); }
.fde-article .callout.warning { border-color: var(--yellow); background: var(--yellow-dim); }
.fde-article .callout.warning .callout-title { color: var(--yellow); }
.fde-article .callout.example { border-color: var(--purple); background: var(--purple-dim); }
.fde-article .callout.example .callout-title { color: var(--purple); }

.fde-article .pull-quote {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--fg);
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--border);
  padding: 20px 0 16px;
  margin: 32px 0;
  line-height: 1.45;
}

.fde-article code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--pink);
  border: 1px solid var(--border);
}

.fde-article pre {
  background: var(--code-bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
  margin: 20px 0;
}

.fde-article pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

.fde-article .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin: 24px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.fde-article table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fde-article thead { background: var(--bg-elevated); }
.fde-article th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.fde-article td {
  padding: 12px 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.fde-article tr:last-child td { border-bottom: none; }
.fde-article tr:nth-child(even) { background: var(--bg2); }

.fde-article .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.fde-article .card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.fde-article .card-icon { font-size: 1.35rem; margin-bottom: 8px; }
.fde-article .card-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--fg); }
.fde-article .card-body { font-size: 13px; color: var(--muted); line-height: 1.55; }

.fde-article .role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.fde-article .role-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--bg-elevated);
}

.fde-article .role-card.highlight {
  border: 2px solid var(--accent);
  background: var(--blue-dim);
}

.fde-article .role-tag {
  display: inline-block;
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: 600;
}

.fde-article .role-name { font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--fg); }
.fde-article .role-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

.fde-article .salary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}

.fde-article .salary-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: var(--bg-elevated);
}

.fde-article .salary-region {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.fde-article .salary-range {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 4px;
}

.fde-article .salary-label { font-size: 13px; color: var(--muted); }
.fde-article .salary-note { font-size: 12px; color: var(--muted); margin-top: 8px; font-style: italic; opacity: 0.85; }

.fde-article .roadmap { margin: 24px 0; }

.fde-article .roadmap-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.fde-article .roadmap-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -24px;
  width: 1px;
  background: var(--border);
}

.fde-article .roadmap-item:last-child::before { display: none; }

.fde-article .roadmap-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  z-index: 1;
}

.fde-article .roadmap-content { flex: 1; padding-top: 6px; }
.fde-article .roadmap-content h3 { margin-top: 0; font-size: 15px; }
.fde-article .roadmap-content p { font-size: 14px; margin-top: 4px; }

.fde-article .skill-bars { margin: 16px 0; }
.fde-article .skill-bar { margin-bottom: 12px; }
.fde-article .skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
}

.fde-article .skill-bar-label span:first-child { color: var(--muted); font-weight: 500; }
.fde-article .skill-bar-label span:last-child {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.fde-article .skill-bar-track {
  height: 6px;
  background: var(--code-bg);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.fde-article .skill-bar-fill { height: 100%; border-radius: 3px; }

.fde-article .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

.fde-article .tag {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg-elevated);
  font-weight: 500;
}

.fde-article .tag.accent { background: var(--blue-dim); color: var(--accent); border-color: transparent; }
.fde-article .tag.teal { background: var(--secondary-dim); color: var(--secondary); border-color: transparent; }
.fde-article .tag.purple { background: var(--purple-dim); color: var(--purple); border-color: transparent; }
.fde-article .tag.gold { background: var(--yellow-dim); color: var(--yellow); border-color: transparent; }
.fde-article .tag.green { background: var(--green-dim); color: var(--green); border-color: transparent; }
.fde-article .tag.coral { background: var(--red-dim); color: var(--red); border-color: transparent; }

.fde-article .procon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.fde-article .procon-col {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--bg2);
}

.fde-article .procon-title,
.fde-article .procon-col > h3 {
  font-weight: 600;
  font-size: 12px;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: "JetBrains Mono", monospace;
  color: var(--fg);
}

.fde-article .procon-item {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.fde-article .divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.fde-article .footer {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  font-family: "JetBrains Mono", monospace;
}

.fde-article .checklist { list-style: none; margin: 14px 0; }

.fde-article .checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}

.fde-article .checklist li:last-child { border-bottom: none; }
.fde-article .checklist li span.check { color: var(--green); flex-shrink: 0; }
.fde-article .checklist li span.dot { color: var(--accent); flex-shrink: 0; }

.fde-article .company-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

.fde-article .company-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-elevated);
  color: var(--muted);
}

.fde-article .company-dot { width: 8px; height: 8px; border-radius: 50%; }

.fde-article .stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.fde-article .stat {
  text-align: center;
  padding: 18px 14px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.fde-article .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.fde-article .stat-label {
  font-size: 11px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}

.nav-link--fde {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-dim);
}

.nav-link--fde:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-dim);
  filter: brightness(1.08);
}

@media (max-width: 900px) {
  .fde-page .menu-toggle {
    display: flex;
  }

  .fde-page .sidebar-overlay {
    display: none;
  }

  .fde-page .sidebar-overlay.active {
    display: block;
  }

  .fde-sidebar {
    position: fixed;
    left: 0;
    top: var(--topbar-h, 56px);
    bottom: 0;
    width: min(300px, 88vw);
    max-height: none;
    height: calc(100vh - 56px);
    z-index: 95;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lg);
    padding: 16px 14px 24px;
  }

  .fde-sidebar.active {
    transform: translateX(0);
  }

  .fde-article .toc { display: none; }
  .fde-main { padding: 0 16px 48px; }

  .fde-end__grid {
    grid-template-columns: 1fr;
  }
}

/* ── End-of-guide engagement ── */
.fde-end {
  margin-top: 16px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg2) 0%, var(--purple-dim) 120%);
}

.fde-end h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--fg);
}

.fde-end__sub {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 520px;
}

.fde-end__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.fde-end__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  text-decoration: none;
  transition: var(--transition);
}

.fde-end__card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.fde-end__card--primary {
  border-color: rgba(49, 120, 198, 0.45);
  background: var(--blue-dim);
}

.fde-end__card--primary:hover {
  border-color: var(--accent);
}

.fde-end__card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.fde-end__card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}

.fde-end__card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.fde-page .back-to-top {
  z-index: 90;
}

.fde-page .back-to-top.visible {
  bottom: 24px;
}

body.fde-sidebar-open {
  overflow: hidden;
}

@media (min-width: 901px) {
  .fde-page .menu-toggle {
    display: none !important;
  }

  .fde-article .toc { display: none; }

  body.fde-sidebar-open {
    overflow: auto;
  }
}

@media (max-width: 600px) {
  .fde-article .toc ol,
  .fde-article .salary-grid,
  .fde-article .procon-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar__right .nav-link--fde span.fde-nav-label { display: none; }
}

/* ── Hero CTAs ── */
.fde-article .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.fde-article .hero-cta__primary,
.fde-article .hero-cta__secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.fde-article .hero-cta__primary {
  background: var(--accent);
  color: #fff;
}

.fde-article .hero-cta__primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.fde-article .hero-cta__secondary {
  border: 1px solid var(--border);
  color: var(--fg);
  background: var(--bg2);
}

.fde-article .hero-cta__secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.fde-sidebar__sheet-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-dim);
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border);
}

.fde-sidebar__sheet-link:hover {
  filter: brightness(1.08);
  color: var(--purple);
}

/* ── Interactive widgets ── */
.fde-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 40px;
}

.fde-widget--inline {
  margin: 32px 0 8px;
}

.fde-widget__head {
  margin-bottom: 16px;
}

.fde-widget__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 8px;
}

.fde-widget__sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.55;
}

.fde-quiz__progress {
  height: 4px;
  background: var(--code-bg);
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.fde-quiz__progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.35s ease;
  width: 12.5%;
}

.fde-quiz__step-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}

.fde-quiz__q {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 16px;
  line-height: 1.45;
}

.fde-quiz__opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fde-quiz__opt {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: var(--transition);
}

.fde-quiz__opt:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.fde-quiz__opt.is-selected {
  border-color: var(--accent);
  background: var(--blue-dim);
  color: var(--fg);
}

.fde-quiz__result {
  padding-top: 8px;
}

.fde-quiz__tier {
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.fde-quiz__tier--high {
  background: var(--green-dim);
  color: var(--green);
}

.fde-quiz__tier--mid {
  background: var(--yellow-dim);
  color: var(--yellow);
}

.fde-quiz__tier--low {
  background: var(--purple-dim);
  color: var(--purple);
}

.fde-quiz__score {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.fde-quiz__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.fde-quiz__cta-row .fde-btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.fde-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-top: 12px;
  transition: var(--transition);
}

.fde-btn--primary {
  background: var(--accent);
  color: #fff;
}

.fde-btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.fde-btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.fde-sim__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.fde-sim__range {
  width: 100%;
  margin-bottom: 20px;
  accent-color: var(--accent);
}

.fde-sim__panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  min-height: 100px;
}

.fde-sim__panel h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--accent);
}

.fde-sim__panel p {
  margin: 0;
  font-size: 14px;
}

.fde-scenario {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fde-scenario__btn {
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.fde-scenario__btn:hover,
.fde-scenario__btn.is-selected {
  border-color: var(--accent);
  background: var(--blue-dim);
  color: var(--fg);
}

.fde-scenario__feedback {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.55;
}

.fde-scenario__feedback--good {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid transparent;
}

.fde-scenario__feedback--mid {
  background: var(--yellow-dim);
  color: var(--yellow);
}

.fde-scenario__feedback--bad {
  background: var(--red-dim);
  color: var(--red);
}

.fde-accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.fde-accordion__item summary {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
}

.fde-accordion__item summary::-webkit-details-marker {
  display: none;
}

.fde-accordion__item summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.fde-accordion__item[open] summary::after {
  content: "−";
}

.fde-accordion__item p {
  padding: 0 16px 14px;
  margin: 0;
  font-size: 14px;
}

.fde-article .role-card.highlight .role-tag {
  background: var(--accent);
  color: #fff;
}

.fde-article .salary-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 4px;
}

.fde-article .salary-level {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.fde-article .salary-card.highlight {
  border-color: var(--accent);
  background: var(--blue-dim);
}

.fde-article .skill-bar-fill {
  transition: width 0.8s ease;
}

/* ── FDE Sheet CTA (interviews section) ── */
.fde-sheet-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  margin: 32px 0;
  background: linear-gradient(135deg, var(--purple-dim) 0%, var(--blue-dim) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.fde-sheet-cta__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 520px;
}

.fde-sheet-cta__text strong {
  color: var(--fg);
}

.fde-sheet-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.fde-sheet-cta__btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(49, 120, 198, 0.35);
}

@media (max-width: 768px) {
  .fde-sheet-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .fde-sheet-cta__btn {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .fde-widget {
    padding: 20px 16px;
  }

  .fde-article .hero-cta {
    flex-direction: column;
  }

  .fde-article .hero-cta__primary,
  .fde-article .hero-cta__secondary {
    justify-content: center;
  }
}

/* ── Page Layout Styles ── */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.breadcrumb {
  padding: 12px 20px;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  overflow-x: auto;
}

.breadcrumb a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ── Hero Section ── */
.fde-hero {
  padding: 48px 40px;
  background: linear-gradient(135deg, rgba(49, 120, 198, 0.08) 0%, rgba(44, 177, 166, 0.04) 100%);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}

.fde-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 16px;
  margin-top: 0;
}

.fde-hero .subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 800px;
}

/* ── Quick Stats Section ── */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--transition);
}

.stat:hover {
  border-color: var(--accent);
  background: var(--blue-dim);
  transform: translateY(-2px);
}

.stat .number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  font-family: "JetBrains Mono", monospace;
}

.stat .label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Main Content Area ── */
.fde-content {
  flex: 1;
  padding: 40px 40px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.fde-introduction {
  margin-bottom: 48px;
}

.fde-introduction h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 16px;
  margin-top: 0;
}

.fde-introduction > p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ── Topics Grid ── */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.topic {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.topic:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.topic h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.topic ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.topic li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.topic li:hover {
  color: var(--fg);
}

/* ── Content Note ── */
.content-note {
  padding: 16px 20px;
  background: var(--blue-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 32px 0;
  line-height: 1.6;
}

/* ── Responsive Design ── */
@media (max-width: 1024px) {
  .fde-hero {
    padding: 40px 32px;
  }

  .fde-content {
    padding: 32px 32px;
  }

  .topics-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
  }

  .quick-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .fde-hero {
    padding: 32px 24px;
  }

  .fde-hero h1 {
    font-size: 1.5rem;
  }

  .fde-hero .subtitle {
    font-size: 0.95rem;
  }

  .fde-content {
    padding: 24px 20px;
  }

  .topics-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat {
    padding: 16px;
  }

  .stat .number {
    font-size: 1.5rem;
  }

}

@media (max-width: 480px) {
  .breadcrumb {
    padding: 10px 16px;
    font-size: 12px;
  }

  .fde-hero {
    padding: 24px 16px;
  }

  .fde-hero h1 {
    font-size: 1.25rem;
  }

  .fde-hero .subtitle {
    font-size: 0.9rem;
  }

  .fde-content {
    padding: 20px 16px;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .stat .number {
    font-size: 1.35rem;
  }

  .topic {
    padding: 16px;
  }

  .topic h3 {
    font-size: 1rem;
  }

  .topic li {
    font-size: 0.9rem;
  }
}
