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