﻿/* HTML to PDF Converter samples: the design of the ExpertPdf web site (www.html-to-pdf.net), then the styles of this sample. */

/* ---- Fonts, design tokens and components of the web site (do not edit this part) ---- */
/* Geist and Geist Mono (SIL Open Font License 1.1), self-hosted latin subset, variable weight. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/geist.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/geist-mono.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   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; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .demo-wrap { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .suite-grid { grid-template-columns: repeat(2, 1fr); }
  .suite-card.featured { grid-column: span 2; }
  .news-wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .logo-grid { grid-template-columns: repeat(5, 1fr); }
  .quote-wrap { grid-template-columns: 1fr; padding: 44px 36px; gap: 28px; }
  .quote-meta { text-align: left; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .nav-inner { gap: 12px; height: 60px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 16px;
    gap: 2px;
  }
  .nav-links.open .nav-link { padding: 10px 12px; font-size: 14px; }
  .nav-links.open .nav-item { display: flex; flex-wrap: wrap; align-items: center; }
  .nav-links.open .nav-item > .nav-link { flex: 1; }
  .nav-links.open .nav-caret {
    width: 44px; height: 40px; padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elev-2);
  }
  .nav-links.open .sub-menu {
    position: static;
    width: 100%;
    flex-basis: 100%;
    margin-top: 6px;
    box-shadow: none;
    background: var(--bg-inset);
    border-color: var(--border);
  }
  .nav-toggle { display: grid; }
  .nav-right .btn { display: none; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-meta { gap: 16px; font-size: 11.5px; }
  .feat-grid { grid-template-columns: 1fr; }
  .suite-grid { grid-template-columns: 1fr; }
  .suite-card.featured { grid-column: span 1; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; gap: 4px; }
  .faq summary { padding: 18px 20px; font-size: 14.5px; }
  .faq summary .q-idx { display: none; }
  .faq .answer { padding: 0 20px 20px 20px; }
  .logo-picker { padding: 22px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-wrap { padding: 32px 24px; }
  .demo-wrap { padding: 22px; }
  .code-wrap { border-radius: 12px; }
  pre.code { padding: 16px 16px 20px; font-size: 12.5px; line-height: 1.55; }
  pre.code .ln { width: 20px; margin-right: 12px; font-size: 11.5px; }
  .code-toolbar { padding: 10px 16px; font-size: 11px; }
  .ico-btn { padding: 4px 9px; font-size: 11px; }
  .tab { padding: 9px 13px; font-size: 11.5px; }
  .demo-input-row { flex-wrap: wrap; padding: 6px; }
  .demo-input-row input { width: 100%; padding: 8px 6px; }
  .demo-input-row .btn { width: 100%; }
  .demo-opts-link { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 440px) {
  .hero h1 { font-size: 34px; }
  .section-title { font-size: 24px; }
  pre.code { font-size: 12.5px; padding: 14px 14px 18px; }
  pre.code .ln { width: 20px; margin-right: 12px; font-size: 11.5px; }
  .code-toolbar { padding: 9px 14px; font-size: 10.5px; }
  .tab { padding: 8px 12px; font-size: 11px; }
  .news-card { padding: 22px; }
}

/* ============================================================
   site.css - additions to the design's layers (loaded last).
   Accessibility fixes, and the page types the design has no styles for:
   long-form text, developer guides, the online tools, news, legal pages.
   ============================================================ */

/* Muted text meets WCAG AA (4.5:1) on both backgrounds; the design's value was ~3.6:1. */
:root { --text-mute: #5d6878; }
[data-theme="dark"] { --text-mute: #8d9ab0; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1000;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.demo-input-row input:focus-visible, .eval-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Menu and footer column titles are paragraphs (not h6) to keep the heading outline clean. */
.mega-col .mega-head {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 600; margin: 6px 12px 4px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 1000px) {
  .mega-col .mega-head { margin-top: 10px; }
  .mega-col:first-child .mega-head { margin-top: 0; }
}
.foot-grid .foot-head {
  margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 500;
}
.foot-cta { margin-top: 18px; }
.nav-link[aria-current="page"] { color: var(--text); }

/* ---------- Long-form text (legal, guides, news, landing pages) ---------- */
.page-head { padding: 56px 0 24px; border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.025em; margin: 14px 0 12px; text-wrap: balance; }
.page-head .lede { font-size: 18px; color: var(--text-dim); max-width: 760px; margin: 0; }
.page-head .meta { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }
.prose { max-width: 780px; font-size: 16.5px; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.015em; margin: 2em 0 .6em; scroll-margin-top: 90px; }
.prose h3 { font-size: 19px; line-height: 1.3; margin: 1.6em 0 .5em; scroll-margin-top: 90px; }
.prose h4 { font-size: 16px; margin: 1.4em 0 .4em; }
.prose p, .prose li { color: var(--text-dim); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-inset); padding: .1em .35em; border-radius: 4px; }
.prose pre { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; background: var(--bg-elev-2); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent-line); color: var(--text-dim); }
.prose .callout { padding: 14px 18px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius); }
.prose .callout p { margin: 0; }
.section-pad { padding: 48px 0 64px; }

/* Long pages with an "On this page" column */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; align-items: start; }
.doc-toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; font-size: 13.5px; }
.doc-toc .toc-head { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); margin: 0 0 10px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.doc-toc li a { display: block; padding: 4px 0 4px 14px; color: var(--text-dim); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.doc-toc li a:hover { color: var(--text); }
.doc-toc li a[aria-current="true"] { color: var(--accent); border-left-color: var(--accent); }
.doc-toc li.l3 a { padding-left: 26px; font-size: 13px; }
@media (max-width: 1000px) { .doc-layout { grid-template-columns: 1fr; } .doc-toc { display: none; } }

/* ---------- Online tools ---------- */
.tool { padding: 40px 0 56px; }
.tool-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 22px; }
.tool-card label, .field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.tool-card textarea {
  width: 100%; min-height: 300px; resize: vertical; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.55;
  color: var(--text); background: var(--bg-inset); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 14px;
}
.field input, .field select {
  width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.field-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
@media (max-width: 760px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.tool-actions .demo-status { margin: 0; }
.form-error { color: #b45309; font-size: 14px; margin-top: 10px; }
.form-ok { color: var(--success); font-size: 14px; margin-top: 10px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Cards and lists used by the content pages ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }
.card { display: block; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--accent-line); }
.card h2, .card h3 { font-size: 17px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.card .meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); margin-bottom: 6px; }
.logo-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; }
.logo-wall li { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elev); font-weight: 600; text-align: center; color: var(--text-dim); }
@media (max-width: 760px) { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote-list { display: grid; gap: 16px; }
.quote-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin: 0; }
.quote-card p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.6; }
.quote-card footer { all: unset; display: block; margin-top: 10px; font-size: 13.5px; color: var(--text-mute); }

/* News */
.post-list { display: grid; gap: 14px; max-width: 820px; }
.post-body img { max-width: 100%; height: auto; }

/* 404 */
.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { font-size: clamp(32px, 5vw, 56px); margin: 10px 0; }
.notfound p { color: var(--text-dim); }
.notfound .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* Shared partials: the CTA title is an h2 (the design used h3 after an h1), FAQ question text */
.cta-block .cta-title {
  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-section { border-bottom: 0; }
/* The CTA block is navy in both themes; the design's light-theme link colour (#084e96) was unreadable on it. */
.cta-block .cta-meta .row a { color: #6dafff; }
.faq-q { display: flex; align-items: center; }

/* Tool pages */
.tool .crumbs { margin-bottom: 18px; }
.tool-title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; margin: 14px 0 12px; text-wrap: balance; }
.tool .lede { font-size: 18px; color: var(--text-dim); max-width: 780px; margin: 0 0 24px; }
.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 760px) { .split-2 { grid-template-columns: 1fr; gap: 8px; } }
.split-2 .prose h2 { margin-top: 0; }
ol.steps { list-style: none; padding: 0; margin: 0; }

/* ---------- Home page (headings are h3/p where the design used h4/h5) ---------- */
.feat h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.suite-card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.hv-pdf .hv-title { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: #0a2540; }
.preview-page .pp-title { margin: 0 0 8px; font-family: var(--font-sans); font-size: 11px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.trust-wrap { margin-top: 44px; }
@media (max-width: 760px) { .trust-wrap { margin-top: 32px; } }
.hero-tool-link { margin: 18px 0 0; font-size: 14.5px; color: var(--text-dim); }
.hero-tool-link a { color: var(--accent); font-weight: 600; text-decoration: none; }
.hero-tool-link a:hover { text-decoration: underline; }
.code-note { margin-top: 24px; font-family: var(--font-mono); font-size: 13px; color: var(--text-mute); }
.code-note a { color: var(--accent); }
.suite-bundles { margin-top: 32px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.suite-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }
.quote-wrap { margin: 0; }
.quote-more { margin: 16px 0 0; font-size: 14px; }
.quote-more a { color: var(--accent); text-decoration: none; font-weight: 600; }
@media (max-width: 760px) { .quote-wrap { grid-template-columns: 1fr; padding: 36px 24px; gap: 24px; } .quote-meta { text-align: left; } }
.demo-status[data-state="error"] .txt { color: #b45309; }
/* 4 columns: the flagship takes 2x2 and the Excel companion 2 wide, so every row is full (16 cells). */
.suite-card.featured { grid-row: span 2; }
.suite-card.wide { grid-column: span 2; }
@media (max-width: 1000px) { .suite-card.featured { grid-row: auto; } }
@media (max-width: 760px) { .suite-card.wide { grid-column: span 1; } }
/* The hero illustration shrinks with the screen instead of widening the page. */
.hero-grid > * { min-width: 0; }
.hero-visual { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); width: 100%; }
.hv-code { overflow: hidden; }
@media (max-width: 760px) { .hero-visual { gap: 10px; } .hv-pdf { padding: 12px 12px 20px; } }

/* The full menu fits from 1001px up; below that it becomes the drawer (the design switched at 760px,
   which overflows at tablet widths). */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px 20px 16px; gap: 2px;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-links.open .nav-link { padding: 10px 12px; font-size: 14px; }
  .nav-links.open .nav-item { display: flex; flex-wrap: wrap; align-items: center; }
  .nav-links.open .nav-item > .nav-link { flex: 1; }
  .nav-links.open .nav-caret { width: 44px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-elev-2); }
  .nav-links.open .sub-menu { position: static; width: 100%; flex-basis: 100%; margin-top: 6px; box-shadow: none; background: var(--bg-inset); border-color: var(--border); }
  .nav-toggle { display: grid; }
}
/* The bundle buttons wrap their label on a phone instead of running off the screen. */
@media (max-width: 760px) { .suite-bundles .btn { white-space: normal; height: auto; min-height: 40px; padding-block: 8px; text-align: left; } }

/* Product pages */
.annot-page .ap-title { margin: 14px 0 10px; font-size: 14px; font-weight: 600; letter-spacing: -0.015em; color: #0a2540; }
.fact-section { padding: 56px 0 16px; border-bottom: 0; }
.fact-band .val a { color: var(--accent); font-size: .85em; }
.optref .desc code, .section-sub code { font-family: var(--font-mono); font-size: .9em; }
.section-sub a { color: var(--accent); }
.prose .meta-inline { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--text-mute); }
.shared-band .col h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.components-section { padding-bottom: 56px; }

/* Pricing (design h4/span headings are h3/h4 here for a clean outline) */
.pricing-hero { padding-bottom: 56px; }
.pricing-section { padding-top: 24px; }
.subhero .lede a, .section-sub a { color: var(--accent); }
h4.ft-name { display: block; font-weight: 500; margin-top: 0; }
.flag-hero-title { font-size: clamp(24px, 2.8vw, 32px); margin: 0 0 12px; }
.lic-mini h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.note-card h3 { margin: 0 0 8px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.note-card a { color: var(--accent); }
.price-row .col-prod a { color: inherit; text-decoration: none; }
.price-row .col-prod a:hover strong { color: var(--accent); }
.notes-grid.notes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .notes-grid.notes-2 { grid-template-columns: 1fr; } }
.price-foot-note a { color: var(--accent); }
/* Hero columns shrink with the screen; illustrations never set the column width. */
.subhero-grid > * { min-width: 0; }
.hero-side { max-width: 100%; }
.cmap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmap-tile .cmap-name { overflow-wrap: anywhere; }
@media (max-width: 440px) { .cmap-tile .cmap-name { font-size: 10.5px; } .cmap { padding: 12px; } }
.flag-hero-head > *, .cg-list > *, .comp-card > * { min-width: 0; }
.meta-side code { overflow-wrap: anywhere; }
@media (max-width: 440px) { .comp-card.is-flagship { flex-wrap: wrap; } .comp-card.is-flagship .rhs { width: 100%; } }

/* Downloads */
.dl-row-main h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 760px) { .dl-row-main h3 { font-size: 15px; } }
.dl-subhead { margin-top: 56px; }
.eval-form > label { display: block; margin: 0 0 -2px; }
.eval-form .form-error:empty { display: none; }
.eval-form .eval-check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.eval-form .eval-check input { width: 16px; height: 16px; margin: 1px 0 0; padding: 0; flex: none; accent-color: var(--accent); box-shadow: none; }
.eval-form .eval-check span { font-family: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text-dim); line-height: 1.4; }
.eval-note a, .ic-feats a { color: var(--accent); }
.install-grid > *, .contact-grid > *, .doc-list > * { min-width: 0; }
.cmd-row { min-width: 0; }
.cmd-row code, .zip-cli code { min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }

/* PDF to Text: the fake section titles in the hero visual are paragraphs (the design used h5) */
.ex-pdf-body .ex-pdf-title { margin: 8px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: 0; color: #0a2540; }
.ex-pdf-body .ex-pdf-title:first-child { margin-top: 0; }

/* PDF Viewer page: the fake document title in the hero visual is a p (the design used h6) */
.vwr-paper .vp-title { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: -0.01em; color: #0a2540; line-height: 1.2; }

/* Home hero chart bars (heights were inline styles in the design) */
.hv-chart span:nth-child(1) { height: 30%; }
.hv-chart span:nth-child(2) { height: 55%; }
.hv-chart span:nth-child(3) { height: 42%; }
.hv-chart span:nth-child(4) { height: 72%; }
.hv-chart span:nth-child(5) { height: 88%; }
.hv-chart span:nth-child(6) { height: 65%; }

/* Downloads: NuGet id under each component */
.dl-nuget { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }

/* News */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-card h2 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card .meta { margin-bottom: 6px; }
.post-body .post-img { float: left; margin: 4px 20px 12px 0; max-width: 150px; height: auto; border-radius: var(--radius-sm); }
.post-body::after { content: ""; display: block; clear: both; }
.post-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 48px; max-width: 820px; }
.post-nav .card { display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
@media (max-width: 760px) { .post-nav { grid-template-columns: 1fr; } .post-body .post-img { float: none; display: block; margin: 0 0 12px; } }

/* Customers */
.customer-list li { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.customer-list .cl-name { color: var(--text); }
.customer-list .cl-country { font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; color: var(--text-mute); }
#list .section-title, #testimonials .section-title { margin-bottom: 20px; }
.quote-card blockquote { margin: 0; }
.quote-card figcaption { margin-top: 10px; font-size: 13.5px; color: var(--text-mute); }
.quote-long { margin-bottom: 16px; }
.quote-long ul { margin: 10px 0; padding-left: 1.2em; color: var(--text-dim); }
.quote-long p + p { margin-top: 10px; }

/* FAQ page */
.faq-group-title { font-size: 22px; letter-spacing: -0.015em; margin: 40px 0 14px; scroll-margin-top: 90px; }
.faq-group-title:first-child { margin-top: 0; }
.faq-group-note { color: var(--text-dim); font-size: 14.5px; margin: -6px 0 14px; max-width: 760px; }
.faq .answer.prose { max-width: none; font-size: 15px; }

/* Developer guides */
.guide-note { margin-top: 18px; max-width: 780px; font-size: 14.5px; }
.guide-note a { color: var(--accent); }
.guide-body h2, .guide-body h3, .guide-body h4 { scroll-margin-top: 90px; }
.guide-body h4 { font-size: 16.5px; margin-top: 1.6em; }
.guide-body h5 { font-size: 15px; margin: 1.4em 0 .4em; color: var(--text); }

/* Comparison table (wkhtmltopdf) */
.compare-table .col-price { text-align: left; font-family: inherit; font-size: 14.5px; font-weight: 400; color: var(--text-dim); }
.compare-table .price-row { grid-template-columns: 1.1fr 1.6fr 1.6fr; }
@media (max-width: 760px) {
  .compare-table .price-row { grid-template-columns: 1fr; }
  .compare-table .col-price { white-space: normal; }
}

/* Long pages: the text column never grows past the screen (wide tables and code scroll inside it). */
.doc-layout > * { min-width: 0; }
@media (max-width: 1000px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } }
.prose { overflow-wrap: anywhere; }
.prose pre, .prose code { overflow-wrap: normal; }
/* Pricing: no "Most popular" badge (no data says so) */
.flag-tier-recommended::before { content: none; display: none; }
/* The section kicker label is used on more pages than pricing (downloads, support, renewals). */
.kicker { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; }
.section-head h2:not(.section-title) { font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 12px; text-wrap: balance; }

/* PDF Viewer hero: the labels sit 90-120px outside the viewer, which only fits from 1400px up. Between the tablet
   layout and that, they overlap the viewer's edges instead (as on tablets), without the connector lines. */
@media (min-width: 1001px) and (max-width: 1399px) {
  .vwr-pill::before { display: none; }
  .vwr-pill.vp-tl, .vwr-pill.vp-ml, .vwr-pill.vp-bl { left: -14px; }
  .vwr-pill.vp-tr, .vwr-pill.vp-mr, .vwr-pill.vp-br { right: -14px; }
}

/* Home hero illustration: the panels keep the page shape but grow when their content needs more height (the
   last lines of code were cut and the chart squashed at some widths), both rows the same height; the code text
   scales with its panel so the longest line (27 characters) always fits. */
.hv-chart { flex-shrink: 0; }
.hero-visual { align-items: stretch; }
.hero-visual .hv-arrow { align-self: center; }
/* overflow visible lets the page-shaped box grow with its content (an aspect-ratio box does that only then). */
.hv-side { overflow: visible; min-width: 0; width: 100%; }
.hv-bar { border-radius: 7px 7px 0 0; }
.hv-html { container-type: inline-size; }
.hv-code { flex-shrink: 0; font-size: min(10.5px, calc((100cqi - 20px) / 16.8)); padding: 14px 10px 16px; }

/* PDF Creator hero: the invoice is taller than the page shape at every width (total, signature cut and the footer
   over the tax row). The page grows with its content, and the footer follows the content instead of being pinned
   to the bottom. */
.builder-page { overflow: visible; width: 100%; }
.bp-foot { position: static; margin-top: 16px; flex-wrap: wrap; gap: 2px 10px; }

/* PDF Security hero: same as the PDF Viewer, the outside labels only fit from 1400px up. */
@media (min-width: 1001px) and (max-width: 1399px) {
  .psec-pill::before { display: none; }
  .psec-pill.pp-tl, .psec-pill.pp-ml, .psec-pill.pp-bl { left: -14px; }
  .psec-pill.pp-tr, .psec-pill.pp-mr, .psec-pill.pp-br { right: -14px; }
}
/* PDF Viewer hero: the title bar has no room for the host name on the narrowest phones. */
@media (max-width: 359px) { .vwr-host { display: none; } }
/* PDF Creator hero: below 1001px the labels sit on the page, and the top two covered its header (as on the
   other product heroes, they are left out there). */
@media (max-width: 1000px) { .builder-pill.bp-tl, .builder-pill.bp-tr { display: none; } }

/* Option tables: property names broke mid-word in the 220px column; they get more room and break only after a dot. */
.optref-row .key { word-break: normal; overflow-wrap: normal; }
@media (min-width: 761px) { .optref-head, .optref-row { grid-template-columns: 300px minmax(0, 1fr); } }

/* Links inside running text (page intros, FAQ answers) looked like the text around them. */
.page-head .lede a, .faq .answer a, .notfound p a { color: var(--accent); }
.page-head .lede a:hover, .faq .answer a:hover, .notfound p a:hover { text-decoration: underline; }

/* Feature grids with an odd number of items left an empty grey cell; the last item takes the whole row. */
.fdir-list > .fdir-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Support: the documentation links of the white cards were white on white (the chip style was made for the dark
   flagship card only). */
.doc-card:not(.doc-card-flag) .doc-link-chip { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.doc-card:not(.doc-card-flag) .doc-link-chip:hover { background: var(--accent); color: #fff; }
/* wkhtmltopdf comparison on phones: the label stays in its own column and the value wraps beside it. */
@media (max-width: 760px) {
  .compare-table .price-row .col-price { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: baseline; }
  .compare-table .price-row .col-price::before { min-width: 0; margin: 0; }
}

/* Downloads: the archive name breaks after a hyphen instead of mid-number. */
.zip-name { word-break: normal; overflow-wrap: anywhere; }

/* Mock-up paper cards in the product heroes: their <footer> strips took the page footer's themed background, which
   is dark in the dark theme and made the strip's text unreadable. The paper stays light in both themes. */
.iex-foot, .rastr-pdf-foot, .ex-pdf-foot, .psec-foot { background: #eaeff5; }
[data-theme="dark"] .merge-name { color: #0a2540; }
[data-theme="dark"] .merge-meta { color: #5d6878; }
@media (max-width: 760px) { .builder-pill.bp-bl, .builder-pill.bp-br { display: none; } }

/* HTML to PDF hero: the labels covered the page header text and its page number. */
@media (min-width: 1001px) {
  .annot-pill.tl { top: 6px; }
  .annot-pill.br { bottom: 16%; }
  .annot-pill.bm { bottom: -22px; }
}
/* PDF Viewer hero: between the tablet and wide layouts the top labels covered the toolbar buttons. */
@media (min-width: 1001px) and (max-width: 1399px) { .vwr-pill.vp-tl, .vwr-pill.vp-tr { display: none; } }
/* PDF Library: the "Flagship" tag stretched across the card; it hugs its text. */
.comp-card.is-flagship .flag-tag { align-self: flex-start; width: fit-content; }

/* Customer names longer than the card (PricewaterhouseCoopers) wrap inside it. */
.customer-list .cl-name { overflow-wrap: anywhere; hyphens: auto; }
.customer-list li { min-width: 0; }

/* Price tables: the column titles took the 19px price style; they are the small caps label of the table head,
   right-aligned with the buy buttons below them. */
.price-row.price-head .col-price { font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; }
.compare-table .price-row.price-head .col-price { text-align: left; }

/* Support hero illustration: a long method name wraps on the narrowest phones instead of leaving the card. */
.ds-api li code { overflow-wrap: anywhere; }
.ds-api li { min-width: 0; }

/* Home hero: tighter spacing around the "Supports" row (the meta lines wrapped with a 28px row gap, and the hero
   kept 96px under the row). */
.hero { padding-bottom: 36px; }
.hero-meta { gap: 8px 28px; margin-top: 28px; }
.trust { padding: 16px 0; border-bottom: 0; } /* the hero's own bottom border closes the strip */

/* Online converters: the switch between HTML to PDF and URL to PDF, and the optional-field note. */
.tool-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--radius); }
.tool-switch a { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text-dim); }
.tool-switch a:hover { color: var(--text); }
.tool-switch a[aria-current="page"] { background: var(--bg-elev); color: var(--accent); box-shadow: var(--shadow-sm); }
.tool-card .field { margin-top: 16px; }
.tool-card .field:first-child, .tool-card .field-row .field { margin-top: 0; }
.opt-note { font-weight: 400; color: var(--text-mute); }

/* Pricing with four licenses (Developer, Developer + Maintenance, Company, Enterprise). */
.flag-tier-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kit-prices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lic-mini-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.price-table-4 .price-row { grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .flag-tier-grid, .lic-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-table-4 .price-row { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .flag-tier-grid, .lic-mini-grid { grid-template-columns: 1fr; }
  .price-table-4 .price-row { grid-template-columns: 1fr; }
}

/* ---------- ExpertPdf Anywhere page ---------- */
.any-cmd { margin-top: 22px; max-width: 520px; }
.any-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 440px; width: 100%; margin-left: auto; }
.any-card-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg-inset); font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.any-card-ver { font-size: 11px; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 4px; }
.any-card-list { list-style: none; margin: 0; padding: 8px 0; }
.any-card-list li { display: flex; justify-content: space-between; align-items: center; padding: 11px 20px; border-bottom: 1px dashed var(--border); }
.any-card-list li:last-child { border-bottom: 0; }
.any-os { font-weight: 600; color: var(--text); }
.any-os::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-right: 10px; vertical-align: 1px; }
.any-arch { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.any-card-foot { display: flex; justify-content: space-between; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mute); }
.any-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.any-tool { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.any-tool h3 { margin: 0; font-size: 16.5px; letter-spacing: -0.01em; }
.any-tool h3 a { color: var(--text); }
.any-tool h3 a:hover { color: var(--accent); }
.any-tool p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.any-tool code { margin-top: auto; font-family: var(--font-mono); font-size: 12px; color: var(--accent); overflow-wrap: normal; }
.any-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.any-price { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); color: inherit; }
.any-price:hover { border-color: var(--accent-line); }
.any-price-tier { font-weight: 600; color: var(--text); }
.any-price-amt { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.any-price-sub { font-size: 13.5px; color: var(--text-dim); }
#migrate pre { margin: 0; }
@media (max-width: 1000px) { .any-card { margin: 0 auto; } .any-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .any-tools, .any-prices { grid-template-columns: minmax(0, 1fr); } }

/* Renewals with three columns (Developer, Company, Enterprise). */
@media (min-width: 761px) { #renewal-prices .price-table-3 .price-row { grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); } }
@media (min-width: 761px) and (max-width: 1000px) { #renewal-prices .price-table-3 .price-row { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }

/* ---------- ExpertPdf Anywhere across the site ---------- */
.nav-any { display: inline-flex; align-items: center; gap: 6px; }
.nav-new { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 1px 6px; border-radius: 4px; }
.mega-any { display: flex; flex-direction: column; gap: 3px; margin: 4px 4px 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); }
.mega-any:hover { border-color: var(--accent); }
.mega-any-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mega-any-desc { font-size: 12.5px; color: var(--text-dim); }
.mega-classic { margin: 4px 12px 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); }
.hero-announce { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 12px 5px 6px; border: 1px solid var(--accent-line); border-radius: 100px; background: var(--accent-soft); color: var(--text); font-size: 13.5px; font-weight: 500; max-width: 100%; }
.hero-announce:hover { border-color: var(--accent); }
.hero-announce .pill-tag { margin: 0; }
.trust-list a { color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft); padding: 6px 12px; border-radius: 100px; }
.suite-card.suite-any { grid-column: 1 / -1; background: var(--bg-deep); border-color: var(--bg-deep); color: #fff; }
.suite-card.suite-any h3 { color: #fff; font-size: 22px; }
.suite-card.suite-any p { color: rgba(255,255,255,.78); max-width: 720px; }
.suite-card.suite-any .label { color: #9cc8ff; }
.suite-card.suite-any .meta { color: #fff; }
.any-banner { display: grid; gap: 8px; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--bg-deep); color: #fff; border: 1px solid var(--bg-deep); }
.any-banner:hover { border-color: var(--accent); }
.any-banner .kicker { justify-self: start; margin: 0; background: rgba(255,255,255,.1); color: #9cc8ff; }
.any-banner-title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.any-banner-text { color: rgba(255,255,255,.78); max-width: 760px; line-height: 1.55; }
.any-banner-text code { font-family: var(--font-mono); font-size: .9em; color: #c7e1ff; overflow-wrap: normal; }
.any-banner-go { display: inline-flex; align-items: center; gap: 8px; color: #9cc8ff; font-weight: 600; font-size: 14.5px; }
.any-band-section { padding: 8px 0 48px; border-bottom: 0; }
#anywhere.pricing-section .any-prices { margin-top: 8px; }

/* Home: ExpertPdf Anywhere is the hero; the HTML to PDF Converter follows in the same layout, with an h2. */
.hero-any { padding-bottom: 72px; }
.hero-any .any-card { margin-left: auto; }
.hero-classic { padding-top: 64px; background: var(--bg); }
.hero-classic::before { opacity: .55; }
.hero .hero-h2 { margin: 22px 0 18px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.hero .hero-h2 em { font-style: normal; color: var(--accent); font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.05em; }
@media (max-width: 1000px) { .hero-any .any-card { margin: 0 auto; } }

/* ---------- Code never scrolls sideways (decision 2026-10-21) ----------
   Tab rows wrap onto more lines; code lines wrap with a hanging indent past the line numbers; commands wrap. */
/* Tab rows and toolbars stay on one line: a tab row that does not fit becomes a dropdown (site.js adds .tabs-select),
   a long file name is shortened. */
.tabs { flex-wrap: nowrap; overflow: hidden; }
.tabs-picker { display: none; }
.tabs.tabs-select { padding: 8px; }
.tabs.tabs-select .tab { display: none; }
.tabs.tabs-select .tabs-picker {
  display: block; width: 100%; height: 36px; padding: 0 10px; font-family: var(--font-mono); font-size: 13px;
  color: var(--text); background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 8px;
}
.code-toolbar { flex-wrap: nowrap; }
.code-toolbar .file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-toolbar .actions { flex: none; align-items: center; }
.lang-switch { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-inset); }
.lang-btn { background: transparent; border: 0; border-radius: 5px; padding: 3px 9px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); }
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: var(--bg-elev); color: var(--accent); box-shadow: var(--shadow-sm); }
pre.code, .code-pane pre.code, .code-body pre.code { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
pre.code.code-lines .cl { display: block; padding-left: 36px; text-indent: -36px; }
pre.code.code-lines .ln { text-indent: 0; }
@media (max-width: 760px) { pre.code.code-lines .cl { padding-left: 32px; text-indent: -32px; } }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
.cmd-row code, .zip-cli code { overflow-x: visible; white-space: normal; overflow-wrap: anywhere; }
.prose pre code { white-space: inherit; overflow-wrap: anywhere; }

/* Option and release tables: long identifiers (package names) wrap inside their cell. */
.optref-row > * { min-width: 0; }
.optref-row .desc { overflow-wrap: anywhere; }

/* ============================================================
   Compact spacing (user decision 2026-11-17, after evopdf.com): less air around heroes and sections, smaller
   display headings, hero columns aligned to the top. Overrides base.css, home.css and responsive.css.
   ============================================================ */
section { padding: 44px 0; }
.section-head { gap: 20px; margin-bottom: 28px; }
.section-title { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 8px; }
.section-sub { font-size: 15.5px; }

.hero { padding: 40px 0 48px; }
.hero-grid, .subhero-grid { gap: 48px; align-items: start; }
.hero h1 { margin: 14px 0 12px; font-size: clamp(32px, 4vw, 48px); line-height: 1.06; }
.hero .lede { font-size: 16.5px; }
.hero-ctas { margin-top: 20px; }
.hero-meta { margin-top: 24px; }
.hero-tool-link { margin-top: 14px; }
.hero .hero-h2 { margin: 14px 0 12px; font-size: clamp(28px, 3.4vw, 40px); }
.hero-classic { padding-top: 40px; }

.subhero { padding: 32px 0 44px; }
.subhero h1 { margin: 10px 0 12px; font-size: clamp(30px, 3.6vw, 42px); }
.subhero .lede { font-size: 16px; }
.subhero .lede + .lede { margin-top: 8px; }
.crumbs { margin-bottom: 16px; }
.tool .crumbs { margin-bottom: 14px; }

.page-head { padding: 32px 0 16px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 10px; }
.tool-title { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 10px; }
.section-pad { padding: 32px 0 44px; }
.tool { padding: 28px 0 40px; }
.fact-section { padding: 40px 0 12px; }
.components-section { padding-bottom: 40px; }
.pricing-hero { padding-bottom: 40px; }
/* Menu items stay on one line; between 1001px and 1199px the gaps are tighter so the full menu still fits. */
.nav-link { white-space: nowrap; }
@media (min-width: 1001px) and (max-width: 1199px) { .nav-inner { gap: 16px; } .nav-link { padding: 6px 8px; } }
/* Downloads: the two flagship cards hold long, unbreakable archive names; side by side only from 1100px. */
@media (max-width: 1100px) { .dl-flag { grid-template-columns: minmax(0, 1fr); } }
.cta-block { padding: 40px 44px; }
.notfound { padding: 64px 0; }
footer { padding: 44px 0 28px; }

@media (max-width: 1000px) {
  .hero-grid, .subhero-grid { gap: 32px; }
}
@media (max-width: 760px) {
  section { padding: 32px 0; }
  .hero { padding: 28px 0 36px; }
  .subhero { padding: 24px 0 32px; }
  .section-head { margin-bottom: 20px; }
  .cta-block { padding: 28px 20px; }
}
@media (max-width: 440px) {
  .hero h1 { font-size: 30px; }
  .subhero h1 { font-size: 28px; }
  .section-title { font-size: 22px; }
}

/* Home suite grid: the featured HTML to PDF card (two columns, two rows) lists its features instead of empty space. */
.suite-feats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.92); }
.suite-feats li { position: relative; padding-left: 20px; }
.suite-feats li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; color: #fff; opacity: .85; }
.suite-install { display: block; font-family: var(--font-mono); font-size: 12px; padding: 9px 12px; border-radius: var(--radius-sm); background: rgba(7, 24, 44, 0.32); color: #fff; overflow-wrap: anywhere; }
.suite-install .dim { opacity: .6; margin-right: 4px; }
@media (max-width: 760px) { .suite-feats { grid-template-columns: 1fr; } }

/* Pricing: ExpertPdf Anywhere in the hero (its price panel links to the order pages); the HTML to PDF Converter
   section opens with its own price panel beside the description. */
a.lic-stack-tier { color: inherit; text-decoration: none; }
a.lic-stack-tier:hover { border-color: var(--accent-line); }
.flag-intro { margin-bottom: 28px; }
.flag-intro-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 12px; text-wrap: balance; }
.flag-intro .section-sub + .section-sub { margin-top: 10px; }

/* Product resources under each product hero (_ProductLinks): one line per product, the product named when several. */
.product-links + .product-links { margin-top: 6px; }
.product-links-name { color: var(--text); font-weight: 600; margin-right: 4px; }
/* Downloads, other components: each row links the product page, its docs and NuGet package, and the archive. */
.dl-row-main h3 a { color: inherit; text-decoration: none; }
.dl-row-main h3 a:hover { color: var(--accent); }
.dl-row-main p.dl-links { margin-top: 6px; font-size: 12.5px; color: var(--text-mute); }
.dl-links a { color: var(--accent); text-decoration: none; font-weight: 500; }
.dl-links a:hover { text-decoration: underline; }
a.dl-row-cta { text-decoration: none; }
a.dl-row-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.dl-row:hover .dl-row-cta:not(:hover) { background: var(--bg-elev); color: var(--text); border-color: var(--border-strong); }

/* ---- Sample pages ---- */
.foot-slim { padding: 36px 0 28px; margin-top: 0; }
.foot-slim-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 40px; margin-bottom: 24px; }
.foot-slim .foot-brand { max-width: 460px; }
.foot-slim .foot-brand p { margin: 12px 0 14px; font-size: 13.5px; color: var(--text-dim); }
.foot-slim-links { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; }
.foot-slim-links a { color: var(--text-dim); }
.foot-slim-links a:hover { color: var(--text); }

.sample-bar { background: var(--bg-elev); border-bottom: 1px solid var(--border); }
.sample-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.sample-bar-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 600; font-size: 15px; color: var(--text); }
.sample-bar-title:hover { color: var(--accent); }
.sample-bar-title .tag { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.sample-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.sample-tabs a { padding: 6px 11px; border-radius: 6px; font-size: 13.5px; color: var(--text-dim); }
.sample-tabs a:hover { color: var(--text); background: var(--accent-soft); }
.sample-tabs a.active, .sample-tabs a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

main.sample { display: block; padding: 32px 0 64px; }
.sample-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.sample-card { min-width: 0; overflow-wrap: break-word; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 28px 32px 32px; }
.sample-narrow { max-width: 960px; }

.sample-rail { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; font-size: 13.5px; padding-right: 4px; }
.rail-toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rail-toggle { display: none; }
.rail-list a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-dim); line-height: 1.4; }
.rail-list a:hover { color: var(--text); border-left-color: var(--border-strong); }
.rail-list a.selected, .rail-list a.active, .rail-list a[aria-current="page"] { color: var(--accent); border-left-color: var(--accent); }
.rail-list ul { list-style: none; margin: 0 0 18px; padding: 0; border-left: 1px solid var(--border); }
.rail-list .rail-head { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.rail-list a.rail-home { margin: 0 0 18px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elev); color: var(--text); font-weight: 600; }
.rail-list a.rail-home:hover { border-color: var(--accent-line); color: var(--accent); }

/* content */
.sample h1, .sample .entry-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--text); font-weight: 600; text-wrap: balance; }
.sample h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; margin: 28px 0 10px; color: var(--text); font-weight: 600; }
.sample h3 { font-size: 16.5px; line-height: 1.35; margin: 22px 0 8px; color: var(--text); font-weight: 600; }
.sample h2:first-child, .sample h3:first-child { margin-top: 0; }
.sample p, .sample li { color: var(--text-dim); line-height: 1.65; }
.sample b, .sample strong { color: var(--text); }
.sample p { margin: 0 0 14px; }
.sample :is(.sample-card, .options) a:not(.btn) { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 2px; }
.sample :is(.sample-card, .options) a:not(.btn):hover { text-decoration-color: currentColor; }
.sample code { font-family: var(--font-mono); font-size: .88em; background: var(--bg-inset); padding: .1em .35em; border-radius: 4px; }
.sample img { max-width: 100%; height: auto; }
.sample hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.sample article, .sample .entry-content, .sample .entry-header { display: block; }
.sample section { padding: 0; border-bottom: 0; }
.sample footer { padding: 0; background: none; border-top: 0; }

/* the code of the sample, shown below it */
.sample pre.code { margin: 8px 0 0; max-height: 640px; overflow: auto; background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--radius); font-size: 12.5px; }

/* form controls */
.sample input[type="text"], .sample input[type="password"], .sample input[type="number"], .sample input[type="email"],
.sample input[type="url"], .sample input[type="search"], .sample input[type="tel"], .sample input:not([type]),
.sample select, .sample textarea {
  max-width: 100%; min-height: 36px; padding: 6px 10px; font: inherit; font-size: 14px; line-height: 1.4; color: var(--text);
  background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); vertical-align: middle;
  transition: border-color .12s, box-shadow .12s;
}
.sample select { padding-right: 28px; }
/* inputs sized by the page (Width="50px", style="width: 90%"): the size is the text area, as in the original samples */
.sample input[style*="width"] { box-sizing: content-box; padding-left: 8px; padding-right: 8px; max-width: calc(100% - 18px); }
.sample textarea { display: block; width: 100%; min-height: 160px; font-family: var(--font-mono); font-size: 13px; line-height: 1.55; background: var(--bg-inset); resize: vertical; }
.sample input:focus, .sample select:focus, .sample textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sample input[type="checkbox"], .sample input[type="radio"] { width: 16px; height: 16px; margin: 0 7px 0 0; vertical-align: -3px; accent-color: var(--accent); }
.sample input[type="checkbox"] + label, .sample input[type="radio"] + label { color: var(--text); margin-right: 10px; }
.sample input[type="file"] { max-width: 100%; font: inherit; font-size: 14px; color: var(--text-dim); }
.sample input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 14px; font: inherit; font-size: 13.5px; color: var(--text); background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 8px; cursor: pointer; }
.sample label { color: var(--text); }
.sample input[type="submit"], .sample input[type="button"], .sample input[type="reset"], .sample button,
.sample .mybutton, .sample .button, .sample .primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 18px;
  font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; color: #fff; white-space: nowrap; cursor: pointer;
  background: var(--accent); border: 1px solid var(--accent); border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 1px 2px rgba(6, 42, 85, 0.25);
  transition: background .15s, border-color .15s; text-decoration: none;
}
.sample input[type="submit"]:hover, .sample input[type="button"]:hover, .sample input[type="reset"]:hover, .sample button:hover,
.sample .mybutton:hover, .sample .button:hover, .sample .primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.sample .secondary, .sample button.secondary, .sample input.secondary { color: var(--text); background: var(--bg-elev); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.sample .secondary:hover, .sample button.secondary:hover, .sample input.secondary:hover { background: var(--bg-elev-2); border-color: var(--border-strong); }
.sample input:disabled, .sample button:disabled { opacity: .55; cursor: not-allowed; }
.sample fieldset { min-width: 0; margin: 18px 0; padding: 14px 18px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.sample legend { padding: 0 6px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sample .message, .sample .error { color: #b42318; }
[data-theme="dark"] .sample .message, [data-theme="dark"] .sample .error { color: #fda29b; }
.sample .note { color: var(--text-mute); font-size: 13px; }

/* tables (GridView, the demo lists) */
.sample table { border-collapse: collapse; }
.sample table.grid, .sample .entry-content table { display: block; max-width: 100%; overflow-x: auto; font-size: 13.5px; }
.sample table.grid th, .sample table.grid td { padding: 7px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; color: var(--text-dim); }
.sample table.grid th { color: var(--text); font-weight: 600; background: var(--bg-elev-2); }
.sample table.choices td { padding: 3px 0; vertical-align: top; }

/* the WordPress-style markup of the feature tour pages */
.sample .col2 { float: left; width: 50%; padding-right: 20px; margin-bottom: 8px; color: var(--text-dim); }
.sample .col-clear { clear: both; }
.sample .entry-content { color: var(--text-dim); }
.sample .entry-content::after { content: ""; display: table; clear: both; }
.sample nav.nav-single { margin: 0 0 18px; }
.sample .sample-card nav.nav-single a { display: block; padding: 3px 0; text-decoration: none; }
.sample nav.nav-single br { display: none; }

@media (max-width: 1080px) {
  .sample-layout { grid-template-columns: 1fr; gap: 20px; }
  .sample-rail { position: static; max-height: none; overflow: visible; padding: 0; }
  .rail-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; }
  .rail-toggle .caret { width: 12px; height: 12px; transition: transform .15s; }
  .rail-list { display: none; margin-top: 10px; padding: 14px 16px 2px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
  .rail-toggle-input:checked ~ .rail-list { display: block; }
  .rail-toggle-input:checked + .rail-toggle .caret { transform: rotate(180deg); }
  .rail-toggle-input:focus-visible + .rail-toggle { outline: 2px solid var(--accent); outline-offset: 2px; }
}
@media (max-width: 760px) {
  main.sample { padding: 20px 0 40px; }
  .sample-card { padding: 20px 18px 24px; border-radius: var(--radius); }
  .sample .col2 { float: none; width: auto; padding-right: 0; }
  .sample-tabs { margin-left: 0; }
  .foot-slim-row { flex-direction: column; }
}

/* ---- Styles of this sample ---- */
/* the lists of samples on the home page */
.sample .col2 h3 { margin-top: 0; }

/* ---- Source code panel of the hosted samples (tools/deploy/preview_patch.py) ---- */
.sample-code { margin-top: 32px; }
.sample-code h2 { margin: 0 0 12px; font-size: 18px; }
.sample-code .code-wrap { margin: 0; }
/* the sample styles make every button a primary button: the tabs and Copy keep the site's look */
.sample .sample-code button { display: inline-block; min-height: 0; gap: 0; font-weight: 400; line-height: normal; box-shadow: none; }
.sample .sample-code .tab { padding: 10px 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim);
  background: transparent; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; }
.sample .sample-code .tab:hover { color: var(--text); background: transparent; border-color: transparent; }
.sample .sample-code .tab[aria-selected="true"] { color: var(--text); background: var(--bg-elev); border-color: var(--border); }
.sample .sample-code .ico-btn { padding: 4px 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim);
  background: transparent; border: 1px solid var(--border); border-radius: 6px; }
.sample .sample-code .ico-btn:hover { color: var(--text); background: transparent; border-color: var(--border-strong); }
/* the sample bar title is the page's h1 where the pages have none of their own */
.sample-bar-h1 { margin: 0; font: inherit; letter-spacing: inherit; }
