/* Copied from the ExpertPdf website (assets/css/base.css) by tools/build_wp_theme.py. Do not edit here. */
/* ============================================================
   ExpertPdf redesign — Design tokens
   Light-first navy palette, mirroring the existing site's
   blue chrome (no red).
   ============================================================ */
:root {
  --bg: #f5f7fa;
  --bg-elev: #ffffff;
  --bg-elev-2: #eef2f7;
  --bg-inset: #e9eef4;
  --bg-deep: #0a2540;       /* deepest navy — inverted blocks */
  --border: rgba(10, 37, 64, 0.10);
  --border-strong: rgba(10, 37, 64, 0.22);
  --text: #0a2540;
  --text-dim: #475569;
  --text-mute: #7a8595;
  --accent: #0b66c2;        /* primary navy-blue */
  --accent-hover: #084e96;
  --accent-deep: #062a55;
  --accent-soft: rgba(11, 102, 194, 0.08);
  --accent-line: rgba(11, 102, 194, 0.32);
  --success: #15803d;
  --shadow-lg: 0 30px 80px -20px rgba(10, 37, 64, 0.18);
  --shadow-md: 0 10px 30px -10px rgba(10, 37, 64, 0.14);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 1px 2px rgba(10, 37, 64, 0.05);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

[data-theme="dark"] {
  --bg: #07182c;
  --bg-elev: #0f2440;
  --bg-elev-2: #16314f;
  --bg-inset: #051324;
  --bg-deep: #04101e;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --text: #eaf0f8;
  --text-dim: #aab6c6;
  --text-mute: #6e7c91;
  --accent: #4d9bff;
  --accent-hover: #6dafff;
  --accent-deep: #1b6bd2;
  --accent-soft: rgba(77, 155, 255, 0.14);
  --accent-line: rgba(77, 155, 255, 0.35);
  --success: #4ade80;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 1px 2px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Sticky nav is 64px desktop / 60px mobile — offset anchor jumps so
     #features etc. don't land underneath it. */
  scroll-padding-top: 40px;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: white; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-dim); }
.hl { color: var(--accent); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   Brand mark (used in nav & footer; reflects the selected logo)
   ============================================================ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 15.5px;
  color: var(--text);
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  position: relative;
  background: transparent;
  box-shadow: none;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
}
.brand-mark span { position: relative; z-index: 1; }
.brand .wm {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}
.brand .br {
  color: var(--accent);
  font-weight: 500;
  margin: 0 1px;
}
.brand .name-a { color: var(--text); font-weight: 600; }
.brand .name-b { color: var(--accent); font-weight: 600; }
.brand small {
  font-size: 10.5px;
  color: var(--text-mute);
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   Top navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-link {
  padding: 6px 11px;
  font-size: 13.5px;
  color: var(--text-dim);
  border-radius: 6px;
  transition: color .12s, background .12s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { color: var(--text); background: var(--accent-soft); }
.nav-link[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

/* ----- Items with a sub-menu (Converter, Products) ----- */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-item.has-sub > .nav-link { padding-right: 6px; }
.nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 6px 8px;
  margin-left: -2px;
  color: var(--text-dim);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  transition: color .12s, background .12s, transform .15s;
}
.nav-caret:hover { color: var(--text); background: var(--accent-soft); }
.nav-caret .caret { width: 10px; height: 10px; opacity: .65; transition: transform .18s; }
.nav-item[data-open="true"] .nav-caret .caret { transform: rotate(180deg); }
.nav-item[data-open="true"] > .nav-link,
.nav-item[data-open="true"] > .nav-caret { color: var(--text); }

.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: -6px;
  min-width: 260px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(6, 42, 85, 0.12), 0 2px 6px rgba(6, 42, 85, 0.06);
  padding: 8px;
  z-index: 60;
}
.nav-item[data-open="true"] > .sub-menu { display: block; }

.sub-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.35;
}
.sub-link .sub-desc {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-mute);
  font-weight: 400;
  grid-column: 1 / -1;
}
.sub-link:hover { background: var(--accent-soft); }
.sub-link:hover .sub-arrow { transform: translateX(2px); }
.sub-arrow {
  width: 12px; height: 12px;
  color: var(--text-mute);
  transition: transform .15s, color .15s;
}
.sub-link:hover .sub-arrow { color: var(--accent); }

.nav-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.theme-toggle {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  background: var(--bg-elev);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  place-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 1px 2px rgba(6, 42, 85, 0.25);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary {
  background: var(--bg-elev);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--border-strong); background: var(--bg-elev-2); }
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-lg { padding: 13px 22px; font-size: 14.5px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }

/* ============================================================
   Section base
   ============================================================ */
section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  margin-bottom: 48px;
  align-items: end;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 12px;
  align-self: start;
  margin-top: 8px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 12px;
  text-wrap: balance;
}
.section-sub {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 640px;
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   Code samples — tabs
   ============================================================ */
.code-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-inset);
  padding: 8px 8px 0 8px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
}
.tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  color: var(--text-dim);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
  transition: color .12s, background .12s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] {
  background: var(--bg-elev);
  color: var(--text);
  border-color: var(--border);
  position: relative;
  z-index: 2;
  margin-bottom: -1px;
}
.tab .dot-lang { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.dot-cs { background: #6f4cb8; }
.dot-vb { background: #2c7ad9; }
.dot-mvc { background: #d97706; }
.dot-razor { background: #16a34a; }

.code-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.code-pane { display: none; min-width: 0; }
.code-pane[aria-hidden="false"] { display: block; min-width: 0; }
.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mute);
  gap: 12px;
  flex-wrap: wrap;
}
.code-toolbar .file { color: var(--text-dim); }
.code-toolbar .actions { display: flex; gap: 6px; }
.ico-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  transition: color .12s, border-color .12s;
}
.ico-btn:hover { color: var(--text); border-color: var(--border-strong); }
.code-pane pre.code,
.code-body pre.code,
pre.code {
  margin: 0;
  padding: 20px 22px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-elev);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
pre.code .ln { display: inline-block; width: 22px; color: var(--text-mute); user-select: none; -webkit-user-select: none; margin-right: 14px; text-align: right; font-size: 12px; }
pre.code .kw { color: #7c3aed; }
pre.code .str { color: #15803d; }
pre.code .num { color: #b45309; }
pre.code .cm { color: var(--text-mute); font-style: italic; }
pre.code .fn { color: #0369a1; }
pre.code .ty { color: #be185d; }
pre.code .at { color: var(--accent); }

[data-theme="dark"] pre.code .kw { color: #a78bfa; }
[data-theme="dark"] pre.code .str { color: #4ade80; }
[data-theme="dark"] pre.code .num { color: #f59e0b; }
[data-theme="dark"] pre.code .fn { color: #38bdf8; }
[data-theme="dark"] pre.code .ty { color: #f472b6; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq { border-bottom: 1px solid var(--border); }
.faq:last-child { border-bottom: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background .12s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--bg-elev-2); }

/* Question span carries inline `display:flex; align-items:center` — make sure
   long inline content (long <code>, codey identifiers) wraps instead of pushing
   the row past the viewport on narrow screens. */
.faq summary > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.faq summary code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.faq summary .plus {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  transition: transform .2s, background .12s, color .12s;
}
.faq[open] summary .plus {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.faq summary .q-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  margin-right: 16px;
  width: 26px;
  flex-shrink: 0;
}
.faq .q-label { flex: 1; }
.faq .answer {
  padding: 0 26px 22px 26px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 720px;
}
.faq .answer code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--bg-inset);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  padding: 60px 0 36px;
  background: var(--bg-elev-2);
  border-top: 1px solid var(--border);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 48px;
}
.foot-grid h6 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.foot-grid ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 9px;
}
.foot-grid ul a {
  color: var(--text-dim);
  font-size: 13px;
  transition: color .12s;
}
.foot-grid ul a:hover { color: var(--text); }
.foot-brand p {
  color: var(--text-dim);
  font-size: 13px;
  margin: 14px 0 18px;
  max-width: 280px;
  line-height: 1.55;
}
.foot-social { display: flex; gap: 8px; }
.foot-social a {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 8px;
  color: var(--text-dim);
  transition: color .15s, border-color .15s;
}
.foot-social a:hover { color: var(--accent); border-color: var(--accent-line); }
.foot-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mute);
  gap: 16px;
  flex-wrap: wrap;
}
.foot-bottom a { color: var(--text-dim); }
.foot-bottom a:hover { color: var(--text); }

/* ============================================================
   Converter detail page
   ============================================================ */
.subhero {
  padding: 64px 0 84px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 460px at 92% 8%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mute);
  margin-bottom: 28px;
}
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .5; }
.crumbs .current { color: var(--accent); }

.subhero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  position: relative;
  align-items: center;
}
.subhero h1 {
  margin: 14px 0 18px;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.subhero h1 em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.subhero .lede {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 540px;
  text-wrap: pretty;
}
.subhero .lede + .lede { margin-top: 12px; }

/* Annotated PDF visual */
.annot {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0 auto;
  padding: 8px 0;
}
.annot-page {
  position: relative;
  aspect-ratio: 8.5/11;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  padding: 30px 28px 36px;
  color: #0a2540;
  font-family: var(--font-sans);
}
[data-theme="dark"] .annot-page { background: #f4f7fb; color: #0a2540; }
.annot-page .ap-head {
  padding-bottom: 8px;
  border-bottom: 1px dashed #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #64748b;
  letter-spacing: 0.05em;
}
.annot-page h5 {
  margin: 14px 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #0a2540;
}
.annot-page .ap-line {
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin-bottom: 5px;
  opacity: 0.7;
}
.annot-page .ap-line.s { width: 55%; }
.annot-page .ap-line.m { width: 78%; }
.annot-page .ap-line.l { width: 94%; }
.annot-page .ap-link {
  height: 4px;
  background: var(--accent);
  opacity: 0.55;
  border-radius: 2px;
  margin-bottom: 5px;
  width: 38%;
}
.annot-page .ap-block {
  margin: 12px 0;
  height: 70px;
  background: repeating-linear-gradient(45deg, #cbd5e1 0 4px, transparent 4px 9px);
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  opacity: 0.65;
}
.annot-page .ap-foot {
  position: absolute;
  bottom: 14px;
  left: 28px;
  right: 28px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #64748b;
}
.annot-page .ap-bm {
  position: absolute;
  top: 86px;
  left: -8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.annot-page .ap-bm i {
  display: block;
  width: 18px;
  height: 4px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.78;
}
.annot-page .ap-bm i:nth-child(2) { width: 14px; opacity: 0.55; }
.annot-page .ap-bm i:nth-child(3) { width: 12px; opacity: 0.45; margin-left: 4px; }
.annot-page .ap-bm i:nth-child(4) { width: 16px; opacity: 0.6; }

/* Callouts (annotation pills) */
.annot-pill {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--accent);
  background: var(--bg-elev);
  border: 1px solid var(--accent-line);
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.annot-pill::before {
  content: "";
  position: absolute;
  background: var(--accent-line);
  height: 1px;
}
.annot-pill.tl { top: 22px; left: -86px; }
.annot-pill.tl::before { right: -42px; top: 50%; width: 42px; }
.annot-pill.tr { top: 50%; right: -126px; transform: translateY(-50%); }
.annot-pill.tr::before { left: -42px; top: 50%; width: 42px; }
.annot-pill.bl { bottom: 16%; left: -110px; }
.annot-pill.bl::before { right: -42px; top: 50%; width: 42px; }
.annot-pill.br { bottom: 5%; right: -110px; }
.annot-pill.br::before { left: -42px; top: 50%; width: 42px; }
.annot-pill.bm { bottom: -6px; left: 50%; transform: translateX(-50%); }

.annot-pill .dot { color: var(--accent); margin-right: 4px; opacity: 0.6; }


/* Feature directory (grouped) */
.fdir { display: flex; flex-direction: column; gap: 56px; }
.fdir-group { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.fdir-group .gh {
  position: sticky;
  top: 96px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--accent);
}
.fdir-group .gh h3 {
  margin: 8px 0 6px;
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.fdir-group .gh p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  max-width: 240px;
}
.fdir-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fdir-item {
  background: var(--bg-elev);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .2s;
}
.fdir-item:hover { background: var(--bg-elev-2); }
.fdir-item .fnum {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
.fdir-item h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.fdir-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* Conversion options reference */
.optref {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  overflow: hidden;
}
.optref-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  padding: 12px 22px;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.optref-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
  align-items: start;
  transition: background .15s;
}
.optref-row:hover { background: var(--bg-elev-2); }
.optref-row:last-child { border-bottom: 0; }
.optref-row .key {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  word-break: break-word;
}
.optref-row .desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}
.optref-row .desc strong {
  color: var(--text);
  font-weight: 500;
}

/* Collapse trigger for long optref tables (release histories) */
.optref-more {
  border-top: 1px solid var(--border);
}
.optref-more > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  background: var(--bg-elev);
  transition: background .15s, color .15s;
}
.optref-more > summary::-webkit-details-marker { display: none; }
.optref-more > summary::marker { content: ""; }
.optref-more > summary:hover { background: var(--bg-elev-2); color: var(--accent-hover); }
.optref-more .om-chev {
  display: inline-flex;
  transition: transform .2s;
}
.optref-more[open] > summary { border-bottom: 1px solid var(--border); }
.optref-more[open] > summary .om-chev { transform: rotate(180deg); }
.optref-more[open] .om-label-show { display: none; }
.optref-more .om-label-hide { display: none; }
.optref-more[open] .om-label-hide { display: inline; }
.optref-more .optref-row { border-bottom: 1px solid var(--border); }
.optref-more .optref-row:last-of-type { border-bottom: 0; }

/* Feature intro band */
.fact-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}
.fact-band .cell {
  background: var(--bg-elev);
  padding: 24px;
}
.fact-band .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.fact-band .val {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}
.fact-band .val em {
  font-style: normal;
  color: var(--accent);
}


/* CTA block */
.cta-block {
  background: var(--bg-deep);
  color: #e8eef7;
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 320px at 90% 110%, rgba(77,155,255,0.22), transparent 60%),
    radial-gradient(500px 240px at 6% -10%, rgba(77,155,255,0.10), transparent 70%);
  pointer-events: none;
}
.cta-block h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
  color: white;
}
.cta-block p {
  position: relative;
  margin: 0 0 24px;
  color: rgba(255,255,255,0.74);
  font-size: 15px;
  line-height: 1.55;
  max-width: 460px;
  text-wrap: pretty;
}
.cta-block .cta-actions {
  position: relative;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-block .btn-primary {
  background: white;
  color: var(--bg-deep);
  border-color: white;
}
.cta-block .btn-primary:hover { background: #d4e3f7; border-color: #d4e3f7; }
.cta-block .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.32);
  box-shadow: none;
}
.cta-block .btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.06); }
.cta-block .cta-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.cta-block .cta-meta .row {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.cta-block .cta-meta .row strong {
  color: white;
  font-weight: 500;
  min-width: 56px;
}
.cta-block .cta-meta .row a { color: var(--accent-hover); }
[data-theme="dark"] .cta-block .cta-meta .row a { color: #6dafff; }
.cta-block .cta-meta .row a:hover { text-decoration: underline; }

/* Sub-page responsive */
@media (max-width: 1000px) {
  .subhero-grid { grid-template-columns: 1fr; gap: 56px; }
  .annot { max-width: 380px; margin: 0 auto; }
  .annot-pill.tl, .annot-pill.bl { left: 8px; }
  .annot-pill.tl::before, .annot-pill.bl::before { display: none; }
  .annot-pill.tr, .annot-pill.br { right: 8px; }
  .annot-pill.tr::before, .annot-pill.br::before { display: none; }
  .fdir-group { grid-template-columns: 1fr; gap: 24px; }
  .fdir-group .gh { position: static; border-left: 0; padding: 0; border-top: 2px solid var(--accent); padding-top: 14px; }
  .fdir-group .gh p { max-width: none; }
  .fact-band { grid-template-columns: 1fr; }
  .cta-block { grid-template-columns: 1fr; padding: 40px 32px; }
}
@media (max-width: 760px) {
  .subhero { padding: 48px 0 64px; }
  .fdir-list { grid-template-columns: 1fr; }
  .optref-head, .optref-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .optref-head { display: none; }
  .optref-row .key { font-size: 12.5px; }
  .annot { max-width: 320px; }
  .annot-pill.tl, .annot-pill.tr, .annot-pill.bl, .annot-pill.br { display: none; }
  .annot-pill.bm { font-size: 10px; }
  .cta-block { padding: 32px 22px; }
}


/* ============================================================
   SUBHERO RIGHT-SIDE VISUALS
   ============================================================ */
.hero-side {
  position: relative;
  max-width: 480px;
  margin-left: auto;
  width: 100%;
}

/* Subhero visual responsive */
@media (max-width: 1000px) {
  .hero-side {
    max-width: 560px;
    margin: 0 auto;
  }
}
@media (max-width: 760px) {
  .zip-card { border-radius: 12px; }
  .zip-head { padding: 22px 16px 14px; gap: 10px; }
  .zip-ic { width: 32px; height: 32px; }
  .zip-name { font-size: 11.5px; }
  .zip-meta { font-size: 10.5px; }
  .zip-badge { font-size: 9.5px; padding: 3px 7px; }
  .zip-tree li { padding: 5px 10px; font-size: 11px; }
  .zip-cli { margin: 4px 12px 14px; padding: 9px 11px; font-size: 11px; }
  .zp-chip { font-size: 10px; padding: 5px 9px; }

  .cmap { padding: 16px; border-radius: 12px; }
  .cmap-grid { gap: 6px; }
  .cmap-tile { min-height: 64px; padding: 10px 10px 8px; }
  .cmap-tile .cmap-name { font-size: 11.5px; }
  .cmap-tile .cmap-ic { width: 22px; height: 22px; }
  .cmap-foot { font-size: 9.5px; gap: 10px; }

  .lic-stack { padding: 18px 16px 16px; border-radius: 12px; }
  .lic-stack-tier { padding: 12px; gap: 10px; }
  .lst-name { font-size: 13px; }
  .lst-sub { font-size: 10.5px; }
  .lst-price strong { font-size: 20px; }

  .tline { padding: 18px 16px; border-radius: 12px; }
  .tline-tag { font-size: 8.5px; }
  .tline-label { font-size: 10px; }
  .tline-list li { font-size: 12px; }
}

/* ============================================================
   NAV — Products mega-menu (multi-column grouped layout)
   ============================================================ */
.sub-menu.sub-menu-mega {
  left: -6px;
  right: auto;
  min-width: 600px;
  padding: 14px 14px 10px;
  display: none;
}
.nav-item[data-open="true"] > .sub-menu.sub-menu-mega { display: block; }
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px 14px;
}
.mega-col h6 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
  margin: 6px 12px 4px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}
.mega-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.3;
  white-space: nowrap;
}
.mega-link .mega-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.mega-link:hover { background: var(--accent-soft); color: var(--text); }
.mega-link.is-flag { font-weight: 600; color: var(--accent); }
.mega-foot {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.mega-foot a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--bg-inset);
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
.mega-foot a:hover { background: var(--accent-soft); color: var(--accent); }
.mega-foot a svg { color: var(--text-mute); transition: transform .15s, color .15s; }
.mega-foot a:hover svg { color: var(--accent); transform: translateX(2px); }

@media (max-width: 1000px) {
  .sub-menu.sub-menu-mega { min-width: 0; right: auto; left: -6px; }
  .mega-grid { grid-template-columns: 1fr; gap: 4px; }
  .mega-col h6 { margin-top: 10px; }
  .mega-col:first-child h6 { margin-top: 0; }
}
