@charset "UTF-8";
/* ==========================================================================
   GREAT BLOG INTERFACE STYLE
   A self-contained CSS port of the "monospace newspaper" look:
   warm paper white, one monospaced font for everything, uppercase headings,
   hairline rules, zero border-radius, zero shadows, one classic link blue.

   Structure
     1.  Fonts
     2.  Design tokens (light + dark)
     3.  Reset & base
     4.  Page shell
     5.  Prose (article typography)
     6.  Post header, breadcrumb, footer meta
     7.  Separator
     8.  Callouts, banners, figures
     9.  Panels ("app" blocks: bar, tabs, tables, controls)
     10. Chips & cards (sidebar / sponsor rail)
     11. Announcement bar
     12. Site footer
     13. Utilities
     14. Print
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS  — Geist Mono, variable weight 100–900, SIL OFL 1.1
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-mono-cyrillic-ext-wght-normal.X_5orZeX.woff2") format("woff2-variations");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-mono-cyrillic-wght-normal.DiZS0aHC.woff2") format("woff2-variations");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-mono-symbols2-wght-normal.CO5SzqOn.woff2") format("woff2-variations");
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-mono-vietnamese-wght-normal.DadHysG0.woff2") format("woff2-variations");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-mono-latin-ext-wght-normal.Bwz-egvJ.woff2") format("woff2-variations");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, 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;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-mono-latin-wght-normal.XN7g48iV.woff2") format("woff2-variations");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS
   Colours are stored as bare RGB triplets so they can be re-composed with an
   alpha channel:  rgb(var(--color-text-muted) / 40%)
   -------------------------------------------------------------------------- */
:root {
  /* palette ------------------------------------------------------------- */
  --color-primary-main: 0 0 0;

  --color-text-body: 0 0 0;
  --color-text-heading: 0 0 0;
  --color-text-bold: 0 0 0;
  --color-text-muted: 100 100 100;
  --color-text-link: 0 0 238;      /* the one accent: browser-default blue */
  --color-text-code: 0 0 0;
  --color-text-selection: 255 255 255;

  --color-bg-body: 252 252 250;    /* warm paper, deliberately not #fff */
  --color-bg-code: 243 243 240;
  --color-bg-selection: 0 0 0;

  --color-border-code: 210 210 205;

  /* type ---------------------------------------------------------------- */
  --font-body: "Geist Mono Variable", "Geist Mono", ui-monospace, monospace;
  --font-heading: "Geist Mono Variable", "Geist Mono", ui-monospace, monospace;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;

  /* rhythm & measure ----------------------------------------------------- */
  --page-measure: 52.5rem;         /* the whole column is 840px wide      */
  --page-gutter: 1.5rem;
  --rule: 1px solid rgb(var(--color-border-code));
  --rule-strong: 1px solid rgb(var(--color-text-heading));
  --radius: 0;                     /* nothing is rounded                  */
  --site-announcement-height: 4rem;
}

/* dark: driven by a class on <html> so it can follow the OS *or* a toggle  */
.dark {
  --color-primary-main: 220 220 220;

  --color-text-body: 220 220 220;
  --color-text-heading: 240 240 240;
  --color-text-bold: 255 255 255;
  --color-text-muted: 160 160 160;
  --color-text-link: 100 149 237;
  --color-text-code: 220 220 220;
  --color-text-selection: 0 0 0;

  --color-bg-body: 30 30 30;
  --color-bg-code: 50 50 50;
  --color-bg-selection: 220 220 220;

  --color-border-code: 80 80 80;
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font-body);
  background-color: rgb(var(--color-bg-body));
  color: rgb(var(--color-text-body));
  scroll-behavior: smooth;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background-color: rgb(var(--color-bg-body));
  color: rgb(var(--color-text-body));
}

img, video { max-width: 100%; height: auto; }

::selection {
  background: rgb(var(--color-bg-selection));
  color: rgb(var(--color-text-selection));
}

:focus-visible {
  outline: 2px solid rgb(var(--color-text-link));
  outline-offset: 3px;
}

/* every interactive element keeps the square, un-rounded look */
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   4. PAGE SHELL
   One centred column. Sidebar rails float out of it, they never widen it.
   -------------------------------------------------------------------------- */
.site-body {
  margin-inline: auto;
  min-height: 100vh;
  padding-inline: var(--page-gutter);
  max-width: var(--page-measure);
  font-size: 0.875rem;
}
@media (min-width: 40rem) {
  .site-body { padding-inline: 2rem; }
}

.site-main { margin-bottom: 5rem; }

/* two-column variant: sticky rail + content. Collapses on phones. */
.split-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 46rem);
  justify-content: center;
  gap: 2.5rem;
  margin-top: 0;
}
.split-rail { border-right: var(--rule); }
.split-rail-inner {
  --rail-top: max(0.5rem, calc(var(--site-announcement-height, 0px) - 1.5rem));
  position: sticky;
  top: var(--rail-top);
  max-height: calc(100vh - var(--rail-top) - 1.5rem);
  overflow-y: auto;
  padding: 2rem 1.5rem 2rem 0;
}
.split-main { min-width: 0; padding: 2rem 0 3rem; }
.split-rail-title {
  color: rgb(var(--color-text-muted));
  text-transform: uppercase;
  margin-top: 2rem;
  font-size: 0.68rem;
  font-weight: 700;
}
.split-rail-name {
  text-transform: uppercase;
  margin-top: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.split-rail-nav { margin-top: 2rem; display: grid; }
.split-rail-nav a { padding: 0.25rem 0; font-size: 0.72rem; line-height: 1.35; }
.split-rail-nav a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.split-rail-group {
  color: rgb(var(--color-text-muted));
  margin-top: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
}
.split-rail-group:first-of-type { margin-top: 0; }
.split-rail-nav .is-child { padding-left: 0.75rem !important; }

@media (max-width: 47.9375rem) {
  .split-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .split-rail { border-right: 0; border-bottom: var(--rule); }
  .split-rail-inner {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 1.5rem 0;
  }
  .split-rail-mobile-hidden { display: none; }
}

/* --------------------------------------------------------------------------
   5. PROSE — the article body
   Everything inside .prose is monospaced with ligatures off, so code and
   prose share one voice. Headings are uppercase with a hair of tracking.
   -------------------------------------------------------------------------- */
.prose {
  max-width: 65ch;
  font-size: 0.875rem;
  color: rgb(var(--color-text-body));
  --tw-prose-body: rgb(var(--color-text-body));
  --tw-prose-headings: rgb(var(--color-text-heading));
  --tw-prose-lead: rgb(var(--color-text-body));
  --tw-prose-links: rgb(var(--color-text-link));
  --tw-prose-bold: rgb(var(--color-text-bold));
  --tw-prose-counters: rgb(var(--color-text-body));
  --tw-prose-bullets: rgb(var(--color-text-body));
  --tw-prose-hr: rgb(var(--color-text-muted));
  --tw-prose-quotes: rgb(var(--color-text-body));
  --tw-prose-quote-borders: rgb(var(--color-primary-main));
  --tw-prose-captions: rgb(var(--color-text-muted));
}
.prose,
.prose :is(p, li, h1, h2, h3, h4, h5, h6, blockquote, code, pre, td, th, figcaption, a) {
  font-family: var(--font-body);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
}
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.prose p {
  margin: 1.25em 0;
  font-size: 0.875rem;
  line-height: 1.7;
}
.prose .lead,
.prose .lead p { font-size: 1.25em; line-height: 1.6; }

.prose :is(h1, h2, h3, h4, h5) {
  color: rgb(var(--color-text-heading));
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-family: var(--font-heading);
}
.prose h1 { margin: 0 0 0.889em; font-size: 2.25em; font-weight: 800; line-height: 1.111; }
.prose h2 { margin: 2em 0 1em;   font-size: 1.5em;  font-weight: 700; line-height: 1.333; }
.prose h3 { margin: 1.6em 0 .6em; font-size: 1.25em; font-weight: 600; line-height: 1.6; }
.prose h4 { margin: 1.5em 0 .5em; font-size: 1em;    font-weight: 600; line-height: 1.5; }

.prose strong { color: rgb(var(--color-text-bold)); font-weight: 600; }
.prose :is(a, blockquote, thead) strong { color: inherit; }

/* links: always underlined, always the one blue, dim on hover */
.prose a {
  color: rgb(var(--color-text-link));
  font-weight: 500;
  text-decoration: underline;
}
.prose a:hover { opacity: 0.7; }
.prose a code { color: inherit; }

.prose ul, .prose ol { margin: 1.25em 0; padding-inline-start: 1.625em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.5em 0; font-size: 0.875rem; padding-inline-start: 0.375em; }
.prose li::marker { color: rgb(var(--color-text-body)); font-weight: 400; }
.prose li p { margin: 0.75em 0; }
.prose :is(li ul, li ol) { margin-block: 0.75em; }
.prose > ul > li > p:first-child { margin-top: 1.25em; }
.prose > ul > li > p:last-child { margin-bottom: 1.25em; }

.prose dl { margin: 1.25em 0; }
.prose dt { color: rgb(var(--color-text-heading)); margin-top: 1.25em; font-weight: 600; }
.prose dd { margin: 0.5em 0 0; padding-inline-start: 1.625em; }

.prose hr {
  border: none;
  color: rgb(var(--color-text-muted));
  text-align: left;
  margin: 3em 0;
}
.prose :is(hr, h2, h3, h4) + * { margin-top: 0; }

.prose blockquote {
  border: none;
  border-inline-start: 0.25rem solid rgb(var(--color-text-heading));
  color: rgb(var(--color-text-body));
  padding: 1rem 1.5rem 0.5rem 1em;
  margin: 1.5em 0;
  font-size: 1rem;
  font-style: normal;
}
.prose blockquote p:first-of-type::before,
.prose blockquote p:last-of-type::after { content: ""; }

.prose code {
  color: rgb(var(--color-text-code));
  font-family: var(--font-body);
  font-size: 0.875em;
  font-weight: 600;
}
.prose code::before, .prose code::after { content: none; }

.prose pre {
  background-color: rgb(var(--color-bg-code));
  color: rgb(var(--color-text-code));
  border: var(--rule);
  border-radius: 0.375rem;          /* the only rounded thing in the kit */
  margin: 1.714em 0;
  padding: 0.857em 1.143em;
  font-size: 0.875em;
  font-weight: 400;
  line-height: 1.714;
  overflow-x: auto;
}
.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

.prose kbd {
  box-shadow: 0 0 0 1px rgb(var(--color-border-code)), 0 3px 0 rgb(var(--color-border-code));
  border-radius: 0.3125rem;
  padding: 0.1875em 0.375em;
  font-family: inherit;
  font-size: 0.875em;
  font-weight: 500;
}

.prose table {
  width: 100%;
  table-layout: auto;
  margin: 2em 0;
  font-size: 0.875em;
  line-height: 1.714;
  border-collapse: collapse;
}
.prose thead { border-bottom: 1px solid rgb(var(--color-text-heading)); }
.prose thead th {
  color: rgb(var(--color-text-heading));
  text-align: start;
  vertical-align: bottom;
  padding: 0 0.571em 0.571em;
  font-weight: 600;
}
.prose tbody tr { border-bottom: 1px solid rgb(var(--color-border-code)); }
.prose tbody tr:last-child { border-bottom: 0; }
.prose :is(th, td) { text-align: start; }
.prose tbody td { vertical-align: baseline; padding: 0.571em; }
.prose :is(thead th, tbody td):first-child { padding-inline-start: 0; }
.prose :is(thead th, tbody td):last-child { padding-inline-end: 0; }
.prose tfoot { border-top: 1px solid rgb(var(--color-text-heading)); }

.prose figure { margin: 2em 0; }
.prose figure > * { margin: 0; }
.prose figcaption {
  color: rgb(var(--color-text-muted));
  margin-top: 0.857em;
  font-size: 0.875em;
  line-height: 1.43;
}
.prose img { margin: 2em 0; }
.prose picture { display: block; margin: 2em 0; }
.prose picture > img { margin: 0; }

/* opt out of prose styling for a widget sitting inside an article */
.not-prose, .not-prose * { font-family: var(--font-body); }

/* --------------------------------------------------------------------------
   6. POST HEADER / BREADCRUMB / FOOTER META
   -------------------------------------------------------------------------- */
.breadcrumb {
  color: rgb(var(--color-text-muted));
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  padding-top: 2rem;
}
.breadcrumb a { color: rgb(var(--color-text-link)); }
.breadcrumb a:hover { opacity: 0.7; }

.post-header h1 {
  font-size: 1.25rem;          /* deliberately small: a masthead, not a poster */
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}
.post-byline { margin: 0 0 0.25rem; font-size: 0.875rem; }
.post-byline .muted, .muted { color: rgb(var(--color-text-muted)); }
.post-byline a { color: rgb(var(--color-text-link)); }
.post-time {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: rgb(var(--color-text-muted));
}
.post-dek {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: rgb(var(--color-text-muted));
}

.post-tags { margin-top: 2rem; font-size: 0.875rem; }
.post-tags a { color: rgb(var(--color-text-link)); }

/* --------------------------------------------------------------------------
   7. SEPARATOR
   The signature section break: three tildes, in muted ink, unselectable.
   -------------------------------------------------------------------------- */
.separator {
  color: rgb(var(--color-text-muted));
  margin: 1.5rem 0;
  padding-inline-start: 0.25ch;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  -webkit-user-select: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   8. CALLOUTS, BANNERS, FIGURES
   -------------------------------------------------------------------------- */
/* double frame: a 1px border plus a 1px outline offset by 3px */
.post-banner {
  background-color: rgb(var(--color-bg-code));
  border: 1px solid rgb(var(--color-text-heading));
  outline: 1px solid rgb(var(--color-text-heading));
  outline-offset: 3px;
  padding: 1.1rem 1.25rem 1.25rem;
  margin: 2rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
}
.post-banner-mid { margin: 3rem 0; }
.post-banner-kicker {
  color: rgb(var(--color-text-muted));
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
}
.post-banner-title {
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.post-banner-text { margin: 0 0 0.9rem; }
.post-banner-cta {
  display: inline-block;
  background-color: rgb(var(--color-text-body));
  color: rgb(var(--color-bg-body));
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  padding: 0.55rem 1rem;
}
.post-banner-cta:hover { opacity: 0.8; }

/* plain inset note */
.post-note {
  border: var(--rule-strong);
  padding: 1.25rem;
  margin: 2.5rem 0;
  font-size: 0.875rem;
}
.post-note-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin: 0 0 0.5rem;
}
.post-note a.outline-cta {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 0.4rem 0.8rem;
  margin-top: 0.5rem;
  text-decoration: none;
  font-weight: 700;
}
.post-note a.outline-cta:hover { background: rgb(var(--color-text-body)); color: rgb(var(--color-bg-body)); }

/* technical figure: bordered box, uppercase micro-captions top and bottom */
.post-fig {
  border: var(--rule);
  background: rgb(var(--color-bg-body));
  color: rgb(var(--color-text-muted));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  font-size: 0.6875rem;
}
.post-fig-head, .post-fig-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}
.post-fig-foot { flex-wrap: wrap; }
.post-fig-n, .post-fig-status { text-transform: none; }
.post-fig-status { margin-left: auto; text-align: right; }
.post-fig-art svg { display: block; width: 100%; height: auto; margin: 0.75rem auto; }
.post-fig-art text { letter-spacing: 0; text-transform: none; }

/* --------------------------------------------------------------------------
   9. PANELS — the bordered "app" block
   A self-contained framed widget inside an article: title bar, sticky tabs,
   ruled sections, tables, segmented controls. All hairline, all square.
   -------------------------------------------------------------------------- */
.app {
  --app-ink: rgb(var(--color-text-heading));
  --app-text: rgb(var(--color-text-body));
  --app-muted: rgb(var(--color-text-muted));
  --app-paper: rgb(var(--color-bg-body));
  --app-panel: rgb(var(--color-bg-code));
  --app-rule: rgb(var(--color-border-code));
  --app-link: rgb(var(--color-text-link));

  border: 1px solid var(--app-ink);
  background: var(--app-paper);
  color: var(--app-text);
  margin: 2rem 0;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.app h2, .app h3, .app h4 { color: var(--app-ink); margin: 0; }
.app p { margin: 0; }
.app a { color: var(--app-link); text-decoration: underline; }
.app a:hover { opacity: 0.7; }
.app ul, .app ol { list-style: none; margin: 0; padding: 0; }
.app li { margin: 0; padding: 0; position: relative; }
.app li::before { content: none; }

.app-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  border-bottom: 1px solid var(--app-ink);
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.app-bar-name { display: flex; align-items: center; gap: 0.5rem; color: var(--app-ink); font-weight: 700; }
.app-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--app-link); }
.app-bar-meta { color: var(--app-muted); }

.app-nav {
  position: sticky;
  top: var(--site-announcement-height, 0px);
  z-index: 5;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--app-ink);
  background: var(--app-paper);
}
.app-nav::-webkit-scrollbar { display: none; }
.app-nav a {
  display: block;
  white-space: nowrap;
  padding: 0.625rem 1rem;
  border-right: 1px solid var(--app-rule);
  color: var(--app-text);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.app-nav a:hover,
.app-nav a[aria-current="true"] {
  background: var(--app-ink);
  color: var(--app-paper);
  opacity: 1;
}

.app-section {
  border-bottom: 1px solid var(--app-ink);
  padding: 1.5rem 1rem;
  scroll-margin-top: calc(var(--site-announcement-height, 0px) + 3rem);
}
.app-section:last-child { border-bottom: 0; }
@media (min-width: 40rem) { .app-section { padding: 2rem 1.5rem; } }

.app-section-head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.5rem; }
.app-section-num { color: var(--app-muted); font-size: 0.6875rem; font-variant-numeric: tabular-nums; }
.app-section-title { font-size: 1rem; font-weight: 700; text-transform: uppercase; }
.app-section-lead { max-width: 42rem; color: var(--app-muted); margin-bottom: 1.25rem !important; }

.app-panes { display: grid; gap: 1.5rem; }
@media (min-width: 56.25rem) { .app-panes { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 2rem; } }

.app-q { border: 0; min-width: 0; margin: 0 0 1.25rem; padding: 0; }
.app-label, .app-q legend {
  display: block;
  color: var(--app-ink);
  margin-bottom: 0.375rem;
  padding: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* segmented control: negative margins collapse the 1px borders into one */
.app-options { display: flex; flex-wrap: wrap; padding: 1px 0 0 1px; }
.app-options--stack { flex-direction: column; }
.app-option { display: block; position: relative; margin: -1px 0 0 -1px; cursor: pointer; }
.app-option input { position: absolute; opacity: 0; pointer-events: none; }
.app-option span {
  display: block;
  border: 1px solid var(--app-ink);
  background: var(--app-paper);
  padding: 0.375rem 0.625rem;
}
.app-option:hover span { background: var(--app-panel); }
.app-option input:checked + span { background: var(--app-ink); color: var(--app-paper); }
.app-option input:focus-visible + span { outline: 2px solid var(--app-link); outline-offset: 2px; }
.app-option small { display: block; opacity: 0.75; font-size: 0.6875rem; }

.app-select, .app-input {
  border: 1px solid var(--app-ink);
  background: var(--app-paper);
  color: var(--app-text);
  border-radius: 0;
  width: 100%;
  padding: 0.375rem 0.5rem;
}
.app-button {
  border: 1px solid var(--app-ink);
  background: var(--app-paper);
  color: var(--app-ink);
  border-radius: 0;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.app-button:hover, .app-button[aria-pressed="true"] { background: var(--app-ink); color: var(--app-paper); }
.app-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }

.app-table-wrap { border: 1px solid var(--app-ink); overflow-x: auto; }
.app-table { border-collapse: collapse; width: 100%; margin: 0; font-size: 0.75rem; }
.app-table th {
  border-bottom: 1px solid var(--app-ink);
  background: var(--app-panel);
  color: var(--app-ink);
  padding: 0.5rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.app-table td, .app-table tbody th[scope="row"] {
  border-bottom: 1px solid var(--app-rule);
  padding: 0.5rem 0.625rem;
  vertical-align: top;
}
.app-table tbody th[scope="row"] { background: none; font-size: inherit; letter-spacing: 0; text-transform: none; white-space: normal; }
.app-table tbody tr:last-child :is(td, th[scope="row"]) { border-bottom: 0; }

.app-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.app-tag {
  display: inline-block;
  border: 1px solid;
  padding: 0 0.375rem;
  font-size: 0.625rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.app-muted { color: var(--app-muted); }
.app-small { font-size: 0.6875rem; }
.app-rank { color: var(--app-ink); font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.app-price { color: var(--app-ink); font-size: 1.25rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.app-callout { border: 1px solid var(--app-ink); background: var(--app-panel); padding: 0.625rem 0.75rem; }
.app-bullets li { padding-left: 1rem; }
.app-bullets li::before { content: "-"; color: var(--app-muted); position: absolute; left: 0; }

/* --------------------------------------------------------------------------
   10. CHIPS & CARDS — the sidebar rail
   On wide screens the rail floats right, out of the reading column, and
   sticks under the announcement bar. Below that it is a horizontal strip.
   -------------------------------------------------------------------------- */
.sponsors {
  display: none;
  float: right;
  position: sticky;
  top: calc(var(--site-announcement-height, 0px) + 1rem);
  z-index: 10;
  width: 10rem;
  margin: 0 0 0 1rem;
  padding: 0;
  background: none;
}
@media (min-width: 64rem) { .sponsors { display: block; } }

.sponsors-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: var(--rule);
  margin-top: 1rem;
  padding: 0.5rem 0;
  white-space: nowrap;
}
.sponsors-strip::-webkit-scrollbar { display: none; }
.sponsors-label {
  flex-shrink: 0;
  color: rgb(var(--color-text-muted));
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sponsors-chip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.4rem;
  border: var(--rule);
  background-color: rgb(var(--color-bg-code));
  color: rgb(var(--color-text-body));
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}
.sponsors-chip:hover { border-color: currentColor; }
.sponsors-chip--cta { border-style: dashed; background-color: transparent; color: rgb(var(--color-text-muted)); font-weight: 400; }
.sponsors-chip-logo { width: 0.9rem; height: 0.9rem; }

.sponsors-side { display: flex; flex-direction: column; gap: 0.75rem; }
.sponsors-card {
  display: block;
  border: var(--rule);
  background-color: rgb(var(--color-bg-code));
  color: rgb(var(--color-text-body));
  padding: 0.85rem 0.9rem 1rem;
  font-size: 0.72rem;
  line-height: 1.45;
  text-decoration: none;
}
.sponsors-card:hover { border-color: currentColor; }
.sponsors-card--cta { border-style: dashed; background-color: transparent; }
.sponsors-card-kicker {
  display: block;
  color: rgb(var(--color-text-muted));
  margin-bottom: 0.6rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}
.sponsors-card-plus { display: block; margin-bottom: 0.6rem; font-size: 1.1rem; line-height: 1; }
.sponsors-card-name { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.sponsors-card-tagline { display: block; margin-top: 0.2rem; color: rgb(var(--color-text-muted)); }

/* --------------------------------------------------------------------------
   11. ANNOUNCEMENT BAR — sticky strip pinned to the top of the viewport
   -------------------------------------------------------------------------- */
.site-announcement {
  position: sticky;
  top: 0;
  z-index: 30;
  box-sizing: border-box;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.1rem;
  height: var(--site-announcement-height, 4rem);
  padding-top: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid currentColor;
  background-color: rgb(var(--color-bg-body));
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
}
.site-announcement-tagline {
  max-width: 100%;
  overflow: hidden;
  color: rgb(var(--color-text-body));
  font-weight: normal;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}
@media (max-width: 39.9375rem) {
  .site-announcement { align-content: center; height: auto; min-height: 4rem; padding-block: 1rem; }
  .site-announcement-tagline { display: none; }
  /* covers the strip Safari reveals above the sticky bar */
  .site-announcement::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: calc((100% - 100vw) / 2);
    width: 100vw;
    height: calc(4rem + env(safe-area-inset-top, 0px));
    background-color: rgb(var(--color-bg-body));
    pointer-events: none;
  }
}

/* --------------------------------------------------------------------------
   12. SITE FOOTER
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 4rem; padding-bottom: 2.5rem; font-size: 0.875rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-title { margin: 0 0 0.5rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: rgb(var(--color-text-muted)); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin: 0.25rem 0; }
.footer-list a { color: rgb(var(--color-text-link)); }
.footer-list a:hover { opacity: 0.7; }
.footer-note { color: rgb(var(--color-text-muted)); font-size: 0.75rem; }

/* --------------------------------------------------------------------------
   13. UTILITIES
   -------------------------------------------------------------------------- */
.u-uppercase { text-transform: uppercase; }
.u-bold { font-weight: 700; }
.u-small { font-size: 0.875rem; }
.u-xs { font-size: 0.75rem; }
.u-muted { color: rgb(var(--color-text-muted)); }
.u-block { display: block; }
.u-mt-8 { margin-top: 2rem; }
.u-mb-3 { margin-bottom: 0.75rem; }
.u-my-10 { margin-block: 2.5rem; }
.u-tracking-wide { letter-spacing: 0.025em; }
.u-tabular { font-variant-numeric: tabular-nums; }
.u-list-plain { list-style: none; margin: 0; padding: 0; }
.u-flex-baseline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5rem; }
[x-cloak] { display: none !important; }

/* --------------------------------------------------------------------------
   14. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-announcement, .sponsors, .app-nav, .post-banner, .post-note { display: none !important; }
  html { font-size: 11pt; }
  .site-body { max-width: none; padding: 0; }
  .prose a { color: inherit; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}

/* ==========================================================================
   CV COMPONENTS — the renderer's own stylesheet (index.html links this
   file only). Selectors/behaviour belong to index.html; every colour and
   font below comes from the theme tokens above.
   ========================================================================== */
/* =====================================================================
   CV components dressed in the great-blog-interface-style theme.
   All colours/typography come from the theme's tokens
   (css/great-blog.css); .dark/.light on <html> is driven by js/theme.js.
   ===================================================================== */
:root{
  /* aliases onto theme tokens so component CSS below stays short */
  --fg:    rgb(var(--color-text-body));
  --dim:   rgb(var(--color-text-muted));
  --acc:   rgb(var(--color-text-link));     /* the one accent: browser blue   */
  --ink:   rgb(var(--color-text-heading));  /* strong rules, pressed buttons  */
  --bd:    rgb(var(--color-border-code));   /* hairline rules                 */
  --card:  rgb(var(--color-bg-body));       /* warm paper (opaque topbar)     */
  --chipbg:rgb(var(--color-bg-code));       /* code-plate grey for fills      */
}
body{margin:0 auto;padding:18px 1.5rem 60px;max-width:52.5rem;
  font-family:var(--font-body);font-size:.875rem;line-height:1.7;
  color:var(--fg);background:rgb(var(--color-bg-body));
  font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0;
  font-variant-numeric:tabular-nums}
h1{font-size:1.35rem;font-weight:700;text-transform:uppercase;letter-spacing:.02em;
  line-height:1.3;color:var(--ink);margin:.1em 0 .05em}
h2{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;
  color:var(--ink);margin:2.2rem 0 .8rem;display:flex;align-items:center;gap:.7rem}
h2::after{content:"";flex:1;height:1px;background:var(--bd)}
h2.norule::after{content:none}
a{color:var(--acc);font-weight:500;text-decoration:underline}
a:hover{opacity:.7}
.tagline{font-size:.875rem;color:var(--dim)}
/* highlight pills: the kit's `app-tag` chip — square, uppercase, hairline */
.stats{display:flex;flex-wrap:wrap;gap:.4rem;margin:.5rem 0 .8rem}
.stat{font-size:.625rem;padding:.05rem .45rem;line-height:1.7;border-radius:0;
  border:1px solid var(--bd);background:var(--chipbg);color:var(--dim);
  text-transform:uppercase;letter-spacing:.06em}
.stat b{color:var(--ink);font-weight:700}

/* sticky masthead: name + search only, solid paper, permanent hairline —
   nothing animates, nothing collapses; everything else scrolls normally */
.topbar{position:sticky;top:0;z-index:20;margin:-18px -1.5rem 0;padding:.65rem 1.5rem .55rem;
  background:var(--card);border-bottom:1px solid var(--bd)}
.namerow{display:flex;align-items:center;justify-content:space-between;gap:.4rem .9rem;flex-wrap:nowrap}
.namerow h1{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tools{display:flex;align-items:center;gap:.4rem;flex:0 1 auto;min-width:0;justify-content:flex-end}
/* search field: the kit's `app-input` — flat, square, ink border on focus */
#searchBox{display:flex;align-items:center;gap:.35rem;width:min(460px,52vw);max-width:88px;min-width:0;
  border:1px solid var(--bd);border-radius:0;padding:.25rem .55rem;background:transparent;
  transition:max-width .25s ease}
#searchBox:focus-within,#searchBox.filled{max-width:min(460px,52vw);border-color:var(--ink)}
#searchBox input{min-width:0}
#searchBox .nav{display:none}
#searchBox:focus-within .nav{display:inline-block}
html{scroll-padding-top:76px}
.tagline{margin:.8em 0 .5em}
header{padding:0}
.bar{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;padding:.45rem 0 .15rem;margin-top:.15rem}
.search input{flex:1;border:0;outline:0;background:transparent;color:var(--fg);font:inherit;font-size:.8rem;min-width:60px}
.search .cnt{font-size:.7rem;color:var(--dim);white-space:nowrap;font-variant-numeric:tabular-nums}
/* buttons: the kit's `app-button` — hairline, uppercase, press inverts to ink */
.btn{border:1px solid var(--ink);background:transparent;color:var(--ink);border-radius:0;
  padding:.25rem .6rem;font-size:.6875rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;cursor:pointer;white-space:nowrap}
.btn:hover{background:var(--ink);color:var(--card)}
.btn.on{background:var(--ink);border-color:var(--ink);color:var(--card)}
.status{font-size:.72rem;color:var(--dim);min-height:1em;margin:.45rem 0 .2rem}
.status b{color:var(--acc)}
.dotlive{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--acc);margin-right:.3rem;
  animation:pulse 2s infinite}
@keyframes pulse{50%{opacity:.35}}

/* timeline: hairline rail, square blue nodes (nothing is round in this kit) */
.tl{list-style:none;margin:0;padding:0 0 0 18px;border-left:1px solid var(--bd)}
.tl>li{position:relative;margin:.55rem 0;padding-left:.55rem}
.tl>li::before{content:"";position:absolute;left:-25px;top:.7em;width:8px;height:8px;
  border-radius:0;background:var(--acc);box-shadow:0 0 0 3px var(--card)}
/* cards: hairline box; open card steps up to the strong 1px ink rule */
.card{border:1px solid var(--bd);border-radius:0;padding:.8rem 1rem;background:transparent;
  transition:opacity .25s,border-color .25s}
.card:hover{border-color:var(--dim)}
.card.open{border-color:var(--ink)}
.dot{display:none;position:absolute;left:-31px;top:.95em;width:17px;height:17px;border-radius:0;
  background:var(--acc);color:#fff;font-size:10px;line-height:17px;text-align:center;z-index:2}
.hit-active .dot{display:block}
.hit-active{border-color:var(--acc)}
.dim{opacity:.22}
.match{box-shadow:0 0 0 1.5px var(--acc)}
.role{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.2rem .8rem;align-items:baseline}
.role>span:first-child{font-size:1.05rem;font-weight:700;color:var(--ink)}
.role em{font-style:normal;font-size:.9rem;font-weight:500;color:var(--dim)}
.dates{font-size:.72rem;color:var(--dim);white-space:nowrap;text-transform:uppercase;letter-spacing:.04em}
.meta{font-size:.76rem;color:var(--dim);margin:.3rem 0 .1rem}
.body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .28s ease}
.card.open .body{grid-template-rows:1fr}
.body>div{overflow:hidden}
.body ol,.body ul{margin:.4rem 0 .2rem;padding-left:1.3em}
.body li{margin:.28em 0}
.body li::marker{color:var(--dim);font-size:.85em}
.note{color:var(--dim);font-size:.875rem}
/* tag badges: `app-tag` chips; active = inverted ink */
.badges{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.55rem}
.badge{font-size:.625rem;padding:0 .4rem;line-height:1.7;border-radius:0;background:transparent;
  color:var(--dim);border:1px solid var(--bd);text-transform:uppercase;letter-spacing:.06em;
  cursor:pointer;transition:.15s}
.badge:hover{border-color:var(--ink);color:var(--ink)}
.badge.on{background:var(--ink);color:var(--card);border-color:var(--ink)}

mark{background:var(--acc);color:#fff;border-radius:0;padding:0 2px}
.dark mark{color:rgb(var(--color-bg-body))}
mark.cur{outline:2px solid var(--acc);outline-offset:1px}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.7rem}
.edu .role{display:block}
.edu .role .dates{display:inline; margin-left:.5em; font-size:.7rem}
.kv{font-size:.72rem;color:var(--dim);margin-top:.2rem}
/* languages table: `app-table` — ink-framed, code-plate uppercase headers */
table.langs{border-collapse:collapse;font-size:.78rem;border:1px solid var(--ink)}
table.langs th,table.langs td{border:1px solid var(--bd);padding:.35rem .7rem;text-align:center}
table.langs th{background:var(--chipbg);color:var(--ink);font-size:.625rem;font-weight:700;
  text-transform:uppercase;letter-spacing:.08em}
table.langs td:first-child{text-align:left;font-weight:600}
.sec-actions{margin-left:auto;display:flex;gap:.4rem}
.mini{border:1px solid var(--bd);background:transparent;color:var(--dim);font-size:.625rem;cursor:pointer;
  text-transform:uppercase;letter-spacing:.06em;padding:.05rem .45rem;border-radius:0}
.mini:hover{color:var(--card);background:var(--ink);border-color:var(--ink)}
.hidden{display:none}
footer{margin-top:2.5rem;font-size:.7rem;color:var(--dim);border-top:1px solid var(--bd);padding-top:.7rem}
kbd{border:0;box-shadow:0 0 0 1px var(--bd),0 2px 0 var(--bd);border-radius:4px;
  padding:.05em .35em;font-size:.85em;background:var(--card)}

/* loader / error */
#loader{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:18vh 1rem;color:var(--dim)}
#loader .ring{width:34px;height:34px;border:3px solid var(--bd);border-top-color:var(--acc);
  border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(1turn)}}
/* error box: the kit's `post-note` — strong 1px frame, no fill */
#errbox{border:1px solid var(--ink);border-radius:0;padding:1.2rem 1.4rem;max-width:640px;margin:8vh auto;
  background:transparent}
#errbox h3{margin:.1rem 0 .6rem;text-transform:uppercase;letter-spacing:.02em;color:var(--ink)}
#errbox code{background:var(--chipbg);padding:.05em .35em;border-radius:0}
#errbox ol{padding-left:1.2em}
#errbox textarea{width:100%;height:140px;font:12px/1.4 var(--font-body);border:1px solid var(--ink);
  border-radius:0;padding:.5rem;color:var(--fg);background:transparent}

/* ==========================================================================
   CV PRINT — one clean A4 document from any screen size (Ctrl/Cmd-P).
   Rules: expand every card, drop the app chrome, force light-on-light even
   when the screen was in dark mode, and switch to a serif for the paper —
   monospace is the screen identity, not the reading face.
   ========================================================================== */
@media print{
  /* force light tokens regardless of the .dark class on <html> */
  :root, .dark{
    --color-text-body:0 0 0; --color-text-heading:0 0 0; --color-text-bold:0 0 0;
    --color-text-muted:90 90 90; --color-text-link:0 0 0; --color-text-code:0 0 0;
    --color-bg-body:255 255 255; --color-bg-code:245 245 243;
    --color-border-code:165 165 165;
  }
  @page{ margin:14mm 15mm; }

  html, body{
    font-family:Georgia, "Times New Roman", ui-serif, serif;
    font-size:10.5pt; line-height:1.5; font-feature-settings:normal;
    -webkit-print-color-adjust:exact; print-color-adjust:exact;
  }
  body{ max-width:none; margin:0; padding:0; }

  /* the app chrome disappears; the masthead stays and unsticks */
  .tools, .bar, .status, .sec-actions, .expand-hint, #loader, #errbox, .dot { display:none !important; }
  .topbar{ position:static; margin:0; padding:0; border-bottom:0; background:none; }
  .namerow h1{ white-space:normal; overflow:visible; }
  h1{ font-size:20pt; margin:.2em 0 .1em; }
  .tagline{ font-size:11pt; margin:.4em 0 .6em; }

  /* chips become plain separator-joined lines */
  .stats{ gap:0; margin:.4rem 0; }
  .stat{ border:0; background:none; padding:0; font-size:8.5pt; }
  .stat::after{ content:"\00a0\00b7\00a0"; color:var(--dim); }
  .stat:last-child::after{ content:""; }

  h2{ font-size:10pt; margin:11pt 0 4pt; break-after:avoid; }
  h2::after{ background:rgb(0 0 0); }

  /* everything is open on paper, however the screen was left */
  .body{ grid-template-rows:1fr; }
  .body>div{ overflow:visible; }

  /* tighter vertical rhythm than the screen: this is paper, not a scroll */
  .body p{ margin:.35em 0; }
  .body ol,.body ul{ margin:.25em 0 .15em; }
  .body li{ margin:.12em 0; }

  /* no boxes on paper — every card flows as plain continuous text */
  .card{ border:0; padding:0; margin:0 0 .7rem; break-inside:avoid; background:none; }
  .grid{ display:block; }
  .role>span:first-child{ font-size:11.5pt; }
  .dates{ font-size:9pt; }
  .meta, .note, .body li{ font-size:10pt; }

  /* the timeline becomes a plain list of entries — rail and nodes are screen decor */
  .tl{ border-left:0; padding-left:0; }
  .tl>li{ break-inside:avoid; margin:0 0 .7rem; padding-left:0; }
  .tl>li::before{ display:none; }

  /* links: black ink, still underlined; no URL expansion — the link text
     already is the domain (pliant.io), on paper the URL would be noise */
  a{ color:var(--fg); text-decoration:underline; }

  /* search/filter state must not leak into the printout */
  .dim{ opacity:1 !important; }
  .match{ box-shadow:none !important; }
  mark{ background:none; color:inherit; font-weight:700; padding:0; }

  /* badges become a small keyword line instead of 95 little boxes */
  .badges{ gap:0; margin-top:.25rem; }
  .badge{ border:0; padding:0; background:none; color:var(--dim); font-size:8pt;
    text-transform:uppercase; letter-spacing:.04em; }
  .badge::after{ content:",\00a0"; }
  .badge:last-child::after{ content:""; }

  /* languages table: rules only, booktabs style — no cell boxes */
  table.langs{ font-size:9.5pt; border:0; width:100%; max-width:24rem;
    border-top:1.5px solid rgb(0 0 0); border-bottom:1.5px solid rgb(0 0 0); }
  table.langs th, table.langs td{ border:0; border-bottom:1px solid var(--bd); padding:.25rem .8rem; }
  table.langs tr:last-child td{ border-bottom:0; }
  table.langs th{ background:none; }

  /* the shortcuts footer has no meaning on paper — gone entirely */
  footer{ display:none; }
}
