/* ============================================================
   SelectPdf — spdf-docs.css
   2026 site design applied to the SHFB (VS2013) Website output.
   Loaded AFTER branding*.css / highlight.css so it wins.
   Source of truth lives in this folder; the post-build injector
   (spdf-docs-reskin.ps1) copies it into each Help/.../styles/.
   Design tokens mirror SelectPdf.2026 base.css; chrome mirrors
   chrome.css. Do NOT pull base.css's global reset in here — it
   would break SHFB's inline TOC/collapse <img> toggles.
   ============================================================ */

/* ─── Self-hosted fonts (latin + latin-ext woff2; zero external
   requests). Files live in ./fonts/ next to this stylesheet;
   the injector copies them into <out>/styles/fonts/. ─────────── */
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/Archivo-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/Archivo-500-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/Archivo-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/Archivo-500-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/Archivo-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/Archivo-500-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/Archivo-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/Archivo-500-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/IBMPlexMono-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/IBMPlexMono-400-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/IBMPlexMono-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/IBMPlexMono-500-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/IBMPlexMono-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/IBMPlexMono-600-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/IBMPlexSans-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/IBMPlexSans-400-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/IBMPlexSans-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/IBMPlexSans-400-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/IBMPlexSans-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/IBMPlexSans-400-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/IBMPlexSans-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/IBMPlexSans-400-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/JetBrainsMono-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/JetBrainsMono-400-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/JetBrainsMono-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/JetBrainsMono-400-latin.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;
}

/* ─── Editorial-stack fonts (Fraunces + Inter, latin+latin-ext) ─ */
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/Fraunces-400-it-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/Fraunces-400-it-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/Fraunces-400-it-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/Fraunces-400-it-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/Fraunces-400-it-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/Fraunces-400-it-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/Fraunces-400-no-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/Fraunces-400-no-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/Fraunces-400-no-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/Fraunces-400-no-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/Fraunces-400-no-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/Fraunces-400-no-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/Inter-400-no-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/Inter-400-no-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/Inter-400-no-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/Inter-400-no-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/Inter-400-no-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/Inter-400-no-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/Inter-400-no-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/Inter-400-no-latin.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;
}

/* ─── Type stacks (from base.css) ───────────────────────────── */
:root {
  --spdf-font-display-editorial:  "Fraunces", "Times New Roman", serif;
  --spdf-font-body-editorial:     "Inter", ui-sans-serif, system-ui, sans-serif;
  --spdf-font-mono-editorial:     "JetBrains Mono", ui-monospace, monospace;
  --spdf-font-display-industrial: "Archivo", "Inter Tight", system-ui, sans-serif;
  --spdf-font-body-industrial:    "IBM Plex Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --spdf-font-mono-industrial:    "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
  /* Active stack — switched by html[data-type=…]. Editorial is the
     default to match the .NET Library + homepage marketing pages. */
  --spdf-font-display: var(--spdf-font-display-editorial);
  --spdf-font-body:    var(--spdf-font-body-editorial);
  --spdf-font-mono:    var(--spdf-font-mono-editorial);
  --spdf-display-weight: 500;
  --spdf-display-letter: -0.04em;
  --spdf-display-italic-style: italic;
}
html[data-type="editorial"] {
  --spdf-font-display: var(--spdf-font-display-editorial);
  --spdf-font-body:    var(--spdf-font-body-editorial);
  --spdf-font-mono:    var(--spdf-font-mono-editorial);
  --spdf-display-weight: 500;
  --spdf-display-italic-style: italic;
}
html[data-type="industrial"] {
  --spdf-font-display: var(--spdf-font-display-industrial);
  --spdf-font-body:    var(--spdf-font-body-industrial);
  --spdf-font-mono:    var(--spdf-font-mono-industrial);
  --spdf-display-weight: 700;
  --spdf-display-italic-style: normal;
}

/* ─── Palette — Amber (site default) ───────────────────────── */
:root,
html[data-palette="amber"] {
  --spdf-bg:          #FFF8EC;
  --spdf-surface:     #FFF1D6;
  --spdf-panel:       #FFFFFF;
  --spdf-line:        rgba(40, 24, 8, 0.14);
  --spdf-line-strong: rgba(40, 24, 8, 0.26);
  --spdf-text:        #1F140A;
  --spdf-text-dim:    rgba(31, 20, 10, 0.66);
  --spdf-text-mute:   rgba(31, 20, 10, 0.42);
  --spdf-accent:      #D97706;
  --spdf-accent-ink:  #1F140A;
  --spdf-chip:        rgba(217, 119, 6, 0.14);
  --spdf-chip-text:   #7A4308;
  /* Code block — light theme (cream on warm-dark text). Mirrors
     base.css §code block. The token set drives both the SHFB code
     snippets and the syntax-highlight spans below. */
  --spdf-code:             #FAF3E2;
  --spdf-code-text:        #2C1F12;
  --spdf-code-line:        rgba(40, 24, 8, 0.10);
  --spdf-code-head:        #F2E7CC;
  --spdf-code-file:        rgba(40, 24, 8, 0.55);
  --spdf-code-copy:        rgba(40, 24, 8, 0.78);
  --spdf-code-copy-border: rgba(40, 24, 8, 0.22);
  --spdf-code-copy-hover:  rgba(40, 24, 8, 0.06);
  /* Syntax-highlight tokens — light theme (saturated-but-dark) */
  --spdf-tok-kw:   #B95C00;
  --spdf-tok-str:  #0E5A26;
  --spdf-tok-num:  #3F2DB5;
  --spdf-tok-com:  rgba(40, 24, 8, 0.40);
  --spdf-tok-fn:   #0B4A8E;
  --spdf-tok-type: #7A4308;
  --spdf-grid:        rgba(40, 24, 8, 0.05);
  --spdf-ok:          #22C55E;
}
html[data-palette="amber"][data-theme="dark"],
html[data-theme="dark"] {
  --spdf-bg:          #161009;
  --spdf-surface:     #1F1810;
  --spdf-panel:       #241B11;
  --spdf-line:        rgba(255, 220, 160, 0.10);
  --spdf-line-strong: rgba(255, 220, 160, 0.20);
  --spdf-text:        #FBE9C8;
  --spdf-text-dim:    rgba(251, 233, 200, 0.66);
  --spdf-text-mute:   rgba(251, 233, 200, 0.42);
  --spdf-accent:      #F59E0B;
  --spdf-accent-ink:  #161009;
  --spdf-chip:        rgba(245, 158, 11, 0.16);
  --spdf-chip-text:   #FCD34D;
  /* Code block — dark theme (warm cream on near-black) */
  --spdf-code:             #0F0A06;
  --spdf-code-text:        rgba(244, 241, 234, 0.92);
  --spdf-code-line:        rgba(255, 255, 255, 0.06);
  --spdf-code-head:        #1F1810;
  --spdf-code-file:        rgba(255, 255, 255, 0.50);
  --spdf-code-copy:        rgba(255, 255, 255, 0.70);
  --spdf-code-copy-border: rgba(255, 255, 255, 0.18);
  --spdf-code-copy-hover:  rgba(255, 255, 255, 0.08);
  /* Syntax-highlight tokens — dark theme (bright pastels) */
  --spdf-tok-kw:   #FBA94F;
  --spdf-tok-str:  #92DDA5;
  --spdf-tok-num:  #C8B6FF;
  --spdf-tok-com:  rgba(255, 255, 255, 0.42);
  --spdf-tok-fn:   #6EC6FF;
  --spdf-tok-type: #FFD68C;
  --spdf-grid:        rgba(255, 255, 255, 0.04);
}

[x-cloak] { display: none !important; }

/* box-sizing only where our markup needs it (NOT global — SHFB
   layout math assumes content-box). */
.spdf-nav *, .spdf-nav *::before, .spdf-nav *::after,
body > footer *, body > footer *::before, body > footer *::after {
  box-sizing: border-box;
}

/* ─── Page shell / typography ──────────────────────────────── */
body {
  background: var(--spdf-bg) !important;
  color: var(--spdf-text) !important;
  font-family: var(--spdf-font-body) !important;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0 !important;
}

/* ============================================================
   Top navigation (mirrors SelectPdf.2026 chrome.css .spdf-nav*)
   ============================================================ */
.spdf-nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--spdf-line);
  background: color-mix(in oklab, var(--spdf-bg) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.spdf-nav-row {
  padding: 14px 32px; display: flex; align-items: center;
  justify-content: space-between; max-width: 1280px; margin: 0 auto;
}
.spdf-nav-left { display: flex; align-items: center; gap: 40px; }
.spdf-nav-logo {
  /* font-family: inherit so the logo follows the active body stack
     (Inter on editorial pages, IBM Plex Sans on industrial) — same
     as chrome.css on the real site. Do NOT force the display stack.
     color !important needed because branding.css has `a:link { color:
     #1364c4 }` which outranks a plain class selector on specificity. */
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; color: var(--spdf-text) !important; font-family: inherit;
  font-weight: 600; letter-spacing: -0.01em; font-size: 16px;
}
.spdf-nav-logo span { color: var(--spdf-text); }
.spdf-nav-logo-accent { color: var(--spdf-accent) !important; }
.spdf-nav-links { display: flex; gap: 28px; }
.spdf-nav-actions { display: flex; align-items: center; gap: 12px; }
.spdf-nav-signin {
  /* !important — outranks branding.css a:link rule. */
  color: var(--spdf-text) !important; font-size: 13.5px; text-decoration: none; font-weight: 500;
}
.spdf-nav-cta {
  background: var(--spdf-accent); color: var(--spdf-accent-ink) !important;
  border: 0; padding: 9px 16px; border-radius: 8px; font-size: 13.5px;
  font-weight: 600; font-family: var(--spdf-font-body); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.spdf-theme-toggle {
  background: transparent; border: 1px solid var(--spdf-line);
  color: var(--spdf-text); width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; transition: background .15s, border-color .15s;
}
.spdf-theme-toggle:hover { background: var(--spdf-chip); }
.spdf-theme-toggle .icon-sun  { display: none; }
.spdf-theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .spdf-theme-toggle .icon-sun  { display: block; }
html[data-theme="dark"] .spdf-theme-toggle .icon-moon { display: none; }
.spdf-nav-burger {
  display: none; background: transparent; border: 1px solid var(--spdf-line);
  padding: 7px 9px; border-radius: 8px; cursor: pointer; color: var(--spdf-text);
  align-items: center; justify-content: center;
}
.spdf-nav-burger .icon-close { display: none; }
.spdf-nav-burger[aria-expanded="true"] .icon-open  { display: none; }
.spdf-nav-burger[aria-expanded="true"] .icon-close { display: block; }
.spdf-nav-drawer {
  display: none; border-top: 1px solid var(--spdf-line);
  background: var(--spdf-bg); max-height: 0; overflow: hidden;
  transition: max-height 220ms ease;
}
.spdf-nav-drawer[data-open="true"] { max-height: min(85vh, 640px); overflow-y: auto; }
.spdf-nav-drawer-inner { padding: 8px 32px 18px; display: flex; flex-direction: column; }
.spdf-nav-drawer-link {
  color: var(--spdf-text) !important; font-size: 16px; text-decoration: none;
  font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--spdf-line);
}
.spdf-nav-drawer-link:last-child { border-bottom: 0; }
.spdf-nav-item { position: relative; display: inline-flex; align-items: center; }
.spdf-nav-trigger {
  background: transparent; border: 0; padding: 0; cursor: pointer;
  font-family: var(--spdf-font-body); font-size: 13.5px; font-weight: 500;
  color: var(--spdf-text-dim); display: inline-flex; align-items: center;
  gap: 5px; transition: color .15s;
}
.spdf-nav-item:hover .spdf-nav-trigger,
.spdf-nav-trigger[aria-expanded="true"] { color: var(--spdf-text); }
.spdf-nav-caret { font-size: 9px; color: var(--spdf-text-mute); }
.spdf-nav-menu {
  position: absolute; top: calc(100% + 16px); left: 0; min-width: 300px;
  white-space: nowrap; background: var(--spdf-panel);
  border: 1px solid var(--spdf-line); border-radius: 12px; padding: 8px;
  display: flex; flex-direction: column; gap: 1px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.32); z-index: 60;
}
.spdf-nav-menu::before {
  content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.spdf-nav-menu-link {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 12px;
  border-radius: 8px; color: var(--spdf-text) !important; text-decoration: none;
  font-size: 13.5px; font-weight: 500; transition: background .12s;
}
.spdf-nav-menu-link:hover { background: var(--spdf-chip); }
.spdf-nav-menu-link small {
  color: var(--spdf-text-mute); font-size: 11.5px; font-weight: 400;
}
.spdf-nav-menu-link.is-featured {
  background: var(--spdf-chip); color: var(--spdf-accent) !important; font-weight: 600;
}
.spdf-nav-drawer-link.is-featured { color: var(--spdf-accent) !important; font-weight: 600; }
.spdf-nav-menu.is-right { left: auto; right: 0; }
.spdf-nav-menu-group {
  display: block; font-family: var(--spdf-font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--spdf-text-mute);
  padding: 9px 12px 5px;
}
.spdf-nav-menu-link + .spdf-nav-menu-group {
  margin-top: 5px; padding-top: 11px; border-top: 1px solid var(--spdf-line);
}
.spdf-nav-acc { border-bottom: 1px solid var(--spdf-line); }
.spdf-nav-acc-head {
  width: 100%; background: transparent; border: 0; cursor: pointer;
  font-family: var(--spdf-font-body); font-size: 16px; font-weight: 600;
  color: var(--spdf-text); padding: 14px 0; display: flex;
  align-items: center; justify-content: space-between;
}
.spdf-nav-acc-head[aria-expanded="true"] .spdf-nav-caret { transform: rotate(180deg); }
.spdf-nav-acc-body { display: flex; flex-direction: column; padding: 2px 0 12px 14px; }
.spdf-nav-acc-body .spdf-nav-drawer-link {
  font-size: 14.5px; font-weight: 500; color: var(--spdf-text-dim) !important;
  padding: 9px 0; border-bottom: 0;
}
.spdf-nav-acc-sub {
  display: block; font-family: var(--spdf-font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--spdf-text-mute);
  padding: 12px 0 4px;
}
.spdf-nav-acc-body .spdf-nav-drawer-link small {
  color: var(--spdf-text-mute); font-size: 11px; font-weight: 400; margin-left: 6px;
}
.spdf-nav-drawer-signin { font-weight: 600; }
@media (max-width: 1024px) { .spdf-nav-links { gap: 18px; } }
@media (max-width: 860px) {
  .spdf-nav-row { padding: 12px 18px; }
  .spdf-nav-links { display: none; }
  .spdf-nav-cta { padding: 8px 12px; font-size: 12.5px; }
  .spdf-nav-signin { display: none; }
  .spdf-nav-burger { display: inline-flex; }
  .spdf-nav-drawer { display: block; }
}

/* ============================================================
   SHFB chrome → suppressed / restyled
   ============================================================ */
/* Old dark title bar becomes a slim, on-brand search strip.
   font-size:0 kills the stray "SelectPdf …" text node; the input
   gets its size back below. */
#PageHeader.pageHeader {
  background: var(--spdf-surface) !important;
  color: transparent !important;
  border-bottom: 1px solid var(--spdf-line);
  height: auto !important;
  padding: 10px 32px !important;
  font-size: 0 !important;
  display: flex; justify-content: flex-end;
}
#PageHeader form#SearchForm {
  float: none !important; background: var(--spdf-panel) !important;
  border: 1px solid var(--spdf-line-strong); border-radius: 8px;
  width: 280px; display: flex; align-items: center; overflow: hidden;
}
#PageHeader form#SearchForm input#SearchTextBox {
  background: var(--spdf-panel) !important; color: var(--spdf-text) !important;
  font-family: var(--spdf-font-body) !important; font-size: 13.5px !important;
  border: 0 !important; flex: 1; height: 30px; padding: 0 10px;
}
#PageHeader form#SearchForm button#SearchButton {
  background-color: transparent !important; filter: var(--spdf-search-ico, none);
  opacity: .6;
}

/* The bottom SHFB footer link strip — replaced by the spdf footer. */
#PageFooter.pageFooter { display: none !important; }

/* SHFB TOC resize handles — drop the floating widgets (TOC still
   expands/collapses via its +/- toggles). */
#TocResize, #tocResizableEW { display: none !important; }

/* ─── Body / TOC / content layout ──────────────────────────── */
.pageBody {
  max-width: 1280px; margin: 0 auto !important;
  padding: 0 32px !important;
}
div#leftNav {
  width: 270px !important; border-right: 1px solid var(--spdf-line) !important;
  padding: 26px 18px 40px 4px !important; margin: 0 !important;
  background: transparent;
}
div#tocNav { font-family: var(--spdf-font-body) !important; }
div#leftNav a,
div#leftNav a:link,
div#leftNav a:visited {
  color: var(--spdf-text-dim) !important; font-size: 13px;
  border-radius: 6px; transition: color .12s;
}
div#leftNav a:hover { color: var(--spdf-accent) !important; }
div#tocNav > div.current > a,
div#tocNav > div.current > a:link,
div#tocNav > div.current > a:visited {
  color: var(--spdf-accent) !important; font-weight: 700 !important;
}

.topicContent {
  margin-left: 270px !important; max-width: 860px;
  padding: 40px 0 64px 40px !important;
  border-left: 1px solid var(--spdf-line) !important;
  font-family: var(--spdf-font-body); color: var(--spdf-text-dim);
  line-height: 1.65;
}
.topicContent p { line-height: 1.65; padding-bottom: 14px; color: var(--spdf-text-dim); }
.topicContent a, .topicContent a:link { color: var(--spdf-accent) !important; }
.topicContent a:visited { color: var(--spdf-accent) !important; }
.topicContent a:hover { text-decoration: underline !important; }

/* search.html result list — same accent treatment so the SHFB blue
   from branding.css's `a:link` doesn't leak through. */
.searchContainer a,
.searchContainer a:link,
.searchContainer a:visited {
  color: var(--spdf-accent) !important;
  text-decoration: none !important;
}
.searchContainer a:hover { text-decoration: underline !important; }

/* search.html form — SHFB wraps the form in a float:left div with a
   bare checkbox + "Sort by title" text node tacked onto the side, and
   branding-Website.css floats form#SearchForm right inside it. The
   result on mobile (and even desktop at narrow widths) is messy. Flow
   it as a block + flex the input + button + checkbox row. */
.searchContainer > div[style*="float"] {
  float: none !important;
  display: block;
  margin: 0 0 16px;
}
.searchContainer form#SearchForm {
  float: none !important;
  background: var(--spdf-panel) !important;
  border: 1px solid var(--spdf-line-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}
.searchContainer form#SearchForm input#txtSearchText {
  background: var(--spdf-panel) !important;
  color: var(--spdf-text) !important;
  font-family: var(--spdf-font-body) !important;
  font-size: 14px !important;
  border: 0 !important;
  flex: 1;
  height: 36px;
  padding: 0 12px;
  width: auto !important;
}
.searchContainer form#SearchForm button#HeaderSearchButton,
.searchContainer form#SearchForm button {
  background-color: transparent !important;
  opacity: .6;
  width: 36px;
  height: 36px;
  border: 0;
  cursor: pointer;
}
.searchContainer input#chkSortByTitle {
  margin: 0 6px 0 0;
  vertical-align: middle;
}

/* Title block */
table.titleTable, table.titleTable td { border: 0 !important; background: none !important; }
.topicContent h1 {
  font-family: var(--spdf-font-display) !important;
  font-weight: var(--spdf-display-weight) !important;
  letter-spacing: var(--spdf-display-letter) !important;
  font-size: clamp(32px, 4vw, 52px) !important; line-height: 1.05 !important;
  color: var(--spdf-text) !important; margin: 0 0 8px !important;
}
.topicContent h2, .topicContent h3, .topicContent h4 {
  font-family: var(--spdf-font-display) !important;
  font-weight: 700 !important; color: var(--spdf-text) !important;
  letter-spacing: -0.02em;
}
.topicContent h2 { font-size: 26px !important; margin-top: 36px !important; }
.topicContent h3 { font-size: 20px !important; margin-top: 28px !important; }
.topicContent h4 { font-size: 16px !important; }
td.logoColumnAbove img { display: none; }

/* Tables */
.topicContent table { border: 1px solid var(--spdf-line); border-radius: 10px; overflow: hidden; }
.topicContent th {
  background: var(--spdf-surface) !important; color: var(--spdf-text) !important;
  font-family: var(--spdf-font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; border-bottom: 1px solid var(--spdf-line) !important;
}
.topicContent td {
  color: var(--spdf-text-dim) !important;
  border-bottom: 1px solid var(--spdf-line) !important;
}

/* Inline code / keywords */
.topicContent code,
.topicContent span.code,
.topicContent span.command,
.topicContent span.selflink {
  font-family: var(--spdf-font-mono) !important; font-size: 0.88em;
  background: var(--spdf-chip) !important; color: var(--spdf-chip-text) !important;
  padding: 1px 6px; border-radius: 4px;
}

/* ─── Code snippets → 2026 code card (light + dark via tokens) ─
   All colors flow from the `--spdf-code-*` and `--spdf-tok-*` token
   set in the palette block above, so the code block flips with the
   light/dark theme toggle just like the rest of the chrome. */
.codeSnippetContainer { margin-top: 18px; }
/* SHFB tabs are floated divs — flex the row + unfloat children so
   the tab strip sits ABOVE the code box, not to the left of it. */
.codeSnippetContainerTabs {
  display: flex !important; flex-wrap: wrap; gap: 2px;
  height: auto !important; padding: 0 0 4px !important;
}
.codeSnippetContainerTab,
.codeSnippetContainerTabActive,
.codeSnippetContainerTabSingle,
.codeSnippetContainerTabPhantom {
  float: none !important;
  background: transparent !important; border: 0 !important; height: auto !important;
  padding: 8px 16px !important;
  border-bottom: 2px solid transparent !important;
}
.codeSnippetContainerTab a,
.codeSnippetContainerTabActive a {
  font-family: var(--spdf-font-mono) !important; font-size: 11.5px !important;
  font-weight: 600 !important; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--spdf-text-mute) !important; top: 0 !important;
}
.codeSnippetContainerTab:hover a { color: var(--spdf-text) !important; }
.codeSnippetContainerTabActive {
  border-bottom-color: var(--spdf-accent) !important;
}
.codeSnippetContainerTabActive a,
.codeSnippetContainerTabActive a:link { color: var(--spdf-accent) !important; }
.codeSnippetContainerCodeContainer {
  border: 1px solid var(--spdf-code-line) !important;
  border-radius: 12px !important;
  background: var(--spdf-code) !important;
  overflow: hidden; top: 0 !important;
}
/* SHFB's stock wrappers chain `position: relative + float: right +
   height: 0` and shift via negative `top`, which leaves the button
   1-2 px above the code container's top edge. Pin the Copy link
   absolutely inside .codeSnippetContainerCodeContainer (already
   position: relative from SHFB) so it lands predictably top-right
   just inside the cream/dark area. */
.codeSnippetToolBar     { height: 0 !important; }
.codeSnippetToolBarText { top: 0 !important; height: 0 !important; }
.codeSnippetToolBarText a,
.codeSnippetToolBarText a:link {
  position: absolute !important;
  top: 8px !important;
  right: 12px !important;
  margin: 0 !important;
  z-index: 2;
  background: transparent !important;
  color: var(--spdf-code-copy) !important;
  border: 1px solid var(--spdf-code-copy-border);
  border-radius: 6px;
  font-family: var(--spdf-font-mono) !important; font-size: 11px !important;
  font-weight: 600; letter-spacing: 0.06em; padding: 4px 12px !important;
}
.codeSnippetToolBarText a:hover {
  background: var(--spdf-code-copy-hover) !important;
  /* Override .topicContent a:hover { text-decoration: underline } — the
     Copy button is a button-shaped chip, not a body link. */
  text-decoration: none !important;
}
.codeSnippetContainerCode { padding: 6px 0 !important; }
.codeSnippetContainerCode pre {
  font-family: var(--spdf-font-mono) !important; font-size: 13px !important;
  line-height: 1.65 !important; color: var(--spdf-code-text) !important;
  padding: 14px 22px !important; background: transparent !important;
  overflow: auto !important;
}
/* SHFB syntax token classes (highlight-* on conceptual snippets,
   span.keyword/comment/literal on reference syntax sections). All
   colors are driven by --spdf-tok-* so light/dark themes use the
   palette-specific token palette automatically. */
.codeSnippetContainerCode .highlight-keyword,
.topicContent pre span.keyword { color: var(--spdf-tok-kw) !important; font-weight: 400; }
.codeSnippetContainerCode .highlight-string,
.codeSnippetContainerCode .highlight-literal,
.topicContent pre span.literal { color: var(--spdf-tok-str) !important; }
.codeSnippetContainerCode .highlight-number { color: var(--spdf-tok-num) !important; }
.codeSnippetContainerCode .highlight-comment,
.topicContent pre span.comment { color: var(--spdf-tok-com) !important; }
.codeSnippetContainerCode .highlight-identifier,
.codeSnippetContainerCode .highlight-text { color: var(--spdf-code-text) !important; }

/* ─── Collapsible sections ─────────────────────────────────── */
.collapsibleAreaRegion { margin: 28px 0 12px; }
.collapsibleRegionTitle {
  font-family: var(--spdf-font-display) !important; font-size: 22px !important;
  font-weight: 700 !important; color: var(--spdf-text) !important;
  letter-spacing: -0.02em; padding: 14px 0 6px !important; margin: 0 !important;
}
.collapsibleSection { padding: 0 0 0 2px !important; }
.collapsibleSection h4 {
  font-family: var(--spdf-font-mono) !important; font-size: 11px !important;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--spdf-text-mute) !important; margin-top: 18px !important;
}

/* ============================================================
   Footer (mirrors SelectPdf.2026 chrome.css .spdf-footer*)
   Selector matches the auto-extracted <footer> (no class), which
   is the same shape as _Layout.cshtml on the real site. ============ */
body > footer {
  clear: both; border-top: 1px solid var(--spdf-line);
  background: var(--spdf-bg); margin-top: 48px;
}
.spdf-footer-cols {
  max-width: 1280px; margin: 0 auto; padding: 48px 32px 40px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.15fr) minmax(0, 1.3fr) minmax(0, 0.95fr);
  gap: 32px 24px;
}
.spdf-footer-col { display: flex; flex-direction: column; min-width: 0; }
.spdf-footer-col-head {
  font-family: var(--spdf-font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--spdf-text-mute);
  margin: 0 0 16px; font-weight: 600;
}
.spdf-footer-link {
  color: var(--spdf-text-dim) !important; font-size: 13.5px;
  text-decoration: none; padding: 6px 0; transition: color .15s;
}
.spdf-footer-link:hover { color: var(--spdf-accent) !important; }
.spdf-footer-meta {
  border-top: 1px solid var(--spdf-line); padding: 24px 32px;
  max-width: 1280px; margin: 0 auto; display: flex;
  justify-content: space-between; align-items: center;
  font-family: var(--spdf-font-mono); font-size: 11px;
  color: var(--spdf-text-mute); letter-spacing: 0.06em;
  gap: 16px; flex-wrap: wrap;
}
@media (max-width: 720px) {
  .spdf-footer-cols {
    padding: 40px 18px; gap: 28px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spdf-footer-meta { flex-direction: column; text-align: center; gap: 8px; padding: 20px 18px; }
}
@media (max-width: 980px) {
  .topicContent { max-width: none; }
}

/* ============================================================
   Responsive — mobile TOC drawer + content tweaks.
   The TOC drawer reuses the SHFB #leftNav DOM (~100+ links in the
   SelectPdf docs) but slides it off-canvas on narrow screens. The
   reskin wraps .pageBody with an Alpine x-data="{ tocOpen: false }"
   scope and prepends a toggle button + backdrop — that's where the
   `[data-toc-open="true"]` attribute comes from.
   ============================================================ */

/* Desktop: hide the mobile-only TOC button + backdrop. */
.spdf-toc-btn { display: none; }
.spdf-toc-backdrop { display: none; }

@media (max-width: 860px) {
  /* TOC toggle — sits above the topic content, scrolls with page. */
  .spdf-toc-btn {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 16px 0 8px; padding: 9px 14px;
    background: var(--spdf-surface); color: var(--spdf-text);
    border: 1px solid var(--spdf-line); border-radius: 8px;
    font-family: var(--spdf-font-body); font-size: 13.5px; font-weight: 600;
    cursor: pointer;
  }
  .spdf-toc-btn:hover { background: var(--spdf-chip); }
  .spdf-toc-icon { font-size: 16px; line-height: 1; }

  /* TOC slides in from the left, full-height, ~85vw cap 320px. */
  div#leftNav {
    position: fixed !important;
    top: 0; left: 0;
    width: 85vw !important; max-width: 320px;
    height: 100vh;
    margin: 0 !important;
    padding: 64px 16px 24px 12px !important;
    background: var(--spdf-bg);
    border-right: 1px solid var(--spdf-line) !important;
    border-bottom: 0 !important;
    overflow-y: auto;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.18);
  }
  .pageBody[data-toc-open="true"] div#leftNav { transform: translateX(0); }

  /* Backdrop appears under the drawer when open. */
  .spdf-toc-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 55;
  }

  /* Topic content takes the full row; the float TOC is now overlaid. */
  .topicContent {
    margin-left: 0 !important;
    border-left: 0 !important;
    padding: 28px 0 48px !important;
  }
  .pageBody { padding: 0 18px !important; }

  /* Long API member names: PdfDocument_Save_FileStream_Boolean_Int32_...
     break-word only breaks when the word can't fit on a line by itself —
     gentler than `anywhere`, which would split "PdfDocument" mid-word. */
  .topicContent h1 { overflow-wrap: break-word; word-break: normal; }

  /* The SHFB <table class="titleTable"> wraps the page heading. Default
     auto-layout sizes the cell to the unbroken h1, overflowing the
     viewport on narrow screens. The titleTable isn't a real data table
     — flatten it to block flow so the h1 gets the full topic width. */
  .topicContent table.titleTable,
  .topicContent table.titleTable tbody,
  .topicContent table.titleTable tr,
  .topicContent table.titleTable td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  /* Search page: branding-Website.css hardcodes 700px — let it breathe. */
  .searchContainer {
    width: auto !important;
    max-width: 700px;
    margin: 32px 0 !important;
    padding: 0 4px;
  }

  /* Code tabs: tighten spacing on narrow screens. */
  .codeSnippetContainerTab,
  .codeSnippetContainerTabActive,
  .codeSnippetContainerTabSingle { padding: 7px 12px !important; }
  .codeSnippetContainerCode pre { padding: 12px 16px !important; font-size: 12.5px !important; }
}

@media (max-width: 720px) {
  /* API member / property / parameter tables — wide on small screens.
     Make them horizontally scrollable rather than overflowing the body.
     Exclude .titleTable (which is the page-heading wrapper, not a data
     table) — it stays in-flow with the table-layout:fixed wrap above. */
  .topicContent table:not(.titleTable) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  /* Allow paragraph cells to wrap; only nowrap on simple identifier cells. */
  .topicContent table:not(.titleTable) td p { white-space: normal; }
}
