:root {
  color-scheme: light dark;
  --brand: #066f71;
  --on-brand: #fff;
  --brand-bright: #05585a;
  --brand-deep: #003623;
  --brand-wash: #e8f4f0;
  --treemap-1: #d9f0e9; --treemap-2: #e6e1fa; --treemap-3: #fae3d2; --treemap-4: #dceafc;
  --treemap-5: #f5dce8; --treemap-6: #e6edcf; --treemap-7: #f5e8bc; --treemap-8: #d8eef2;
  --accent: #f16b84;
  --ink: #192321;
  --muted: #65716e;
  --canvas: #f3f6f5;
  --surface: #fff;
  --surface-raised: #fff;
  --line: #e2e9e6;
  --soft: #edf2f0;
  --error-ink: #7f1d1d;
  --error-surface: #fef2f2;
  --error-accent: #b91c1c;
  --warning-ink: #713f12;
  --warning-surface: #fffbeb;
  --warning-accent: #b45309;
  --info-ink: #1e3a8a;
  --info-surface: #eff6ff;
  --info-accent: #2563eb;
  --code-keyword: #0550ae;
  --code-muted: #545d66;
  --shadow: 0 12px 34px rgb(25 50 45 / 6%);
  --body-font: "Manrope", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --heading-font: "Manrope", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --code-font: "Source Code Pro", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 16px/1.72 var(--body-font); font-feature-settings: "kern" 1, "liga" 1; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; text-underline-offset: .2em; }
a:hover { color: var(--brand-bright); text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; border-radius: 4px; }
::selection { color: var(--on-brand); background: var(--brand); }

.site-header { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 3px 12px rgb(25 50 45 / 0%); transition: box-shadow .2s ease; }
.site-header.is-compact { box-shadow: 0 4px 16px rgb(25 50 45 / 10%); }
.site-brand { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 24px 32px 20px; transition: padding .2s ease, gap .2s ease; }
.site-title { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); font-size: 20px; font-weight: 750; letter-spacing: -.045em; }
.site-title:hover { color: var(--ink); text-decoration: none; }
.header-subscribe { display: inline-flex; min-height: 42px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid var(--brand); border-radius: 9px; color: var(--surface); background: var(--brand); font-size: 15px; font-weight: 800; box-shadow: 0 3px 10px color-mix(in srgb, var(--brand) 20%, transparent); }
.header-subscribe:hover, .header-subscribe:focus-visible { border-color: var(--brand-bright); color: var(--surface); background: var(--brand-bright); text-decoration: none; }
.header-search { display: flex; width: min(100%, 390px); min-width: 230px; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); transition: border-color .18s ease, box-shadow .18s ease, width .2s ease; }
.header-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.header-search input { flex: 1; min-width: 0; padding: 10px 15px; border: 0; outline: 0; color: var(--ink); background: transparent; font: 14px/1.4 var(--body-font); transition: padding .2s ease; }
.header-search input::placeholder { color: var(--muted); }
.header-search button { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 0; color: var(--brand); background: transparent; cursor: pointer; transition: width .2s ease, height .2s ease, flex-basis .2s ease; }
.header-search button:hover { color: var(--brand-bright); }
.header-search button:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: -4px; border-radius: 50%; }
.header-search svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.brand-mark { display: block; width: 64px; height: 64px; flex: 0 0 64px; border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); border-radius: 17px; background: var(--brand-wash); object-fit: contain; box-shadow: 0 6px 18px rgb(8 127 125 / 18%); transition: width .2s ease, height .2s ease, flex-basis .2s ease, border-radius .2s ease; }
.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.brand-name { font-size: 28px; transition: font-size .2s ease; }
.brand-tagline { max-height: 2em; color: var(--muted); font-family: var(--code-font); font-size: 11px; font-weight: 500; letter-spacing: .005em; line-height: 1.35; transition: opacity .15s ease, max-height .2s ease; }
.main-nav { position: relative; z-index: 10; border-top: 1px solid var(--line); background: var(--surface); }
.nav-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1280px; margin: 0 auto; padding: 7px 32px; }
.nav-toolbar .header-search { flex: 1; width: auto; min-width: 0; max-width: 390px; }
.nav-menu { position: relative; flex: 0 0 auto; margin: 0; }
.nav-toggle { display: inline-flex; min-height: 42px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle::marker { content: ""; }
.nav-toggle:hover, .nav-menu[open] > .nav-toggle { border-color: var(--brand); color: var(--brand); background: var(--brand-wash); }
.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.nav-panel { position: absolute; top: 100%; left: 0; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); box-shadow: var(--shadow); }
.nav-inner { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.nav-item { min-width: 0; }
.nav-inner a { display: block; padding: 8px 11px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 650; transition: color .18s ease, background .18s ease; }
.nav-icon { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.nav-icon--avatar { display: inline-block; border-radius: 50%; object-fit: cover; }
.nav-icon--home, .nav-icon--scales, .nav-icon--email { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.nav-icon--github { fill: currentColor; }
.nav-icon--stack-exchange { fill: currentColor; }
.nav-icon--send-love { fill: currentColor; }
.nav-inner > .nav-item > a:hover, .nav-inner > .nav-item > a:focus-visible, .submenu a:hover, .submenu a:focus-visible { color: var(--brand); background: var(--brand-wash); text-decoration: none; }
.site-header.is-compact .site-brand { gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.site-header.is-compact .brand-mark { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }
.site-header.is-compact .brand-name { font-size: 20px; }
.site-header.is-compact .brand-tagline { max-height: 0; overflow: hidden; opacity: 0; }
.site-header.is-compact .header-search { width: min(100%, 330px); }
.site-header.is-compact .header-search input { padding-top: 6px; padding-bottom: 6px; }
.site-header.is-compact .header-search button { width: 34px; height: 34px; flex-basis: 34px; }
.submenu { display: grid; gap: 1px; margin: 0 0 4px 12px; padding-left: 8px; border-left: 2px solid var(--line); }
.submenu a { padding: 6px 9px; font-size: 13px; }

.page-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 292px; align-items: start; gap: 54px; max-width: 1280px; min-height: 70vh; margin: 0 auto; padding: 48px 32px 72px; }
.page-wrap.not-found-page-wrap { display: block; }
.home-page-wrap { display: block; max-width: 1880px; padding-right: 32px; padding-left: 32px; }
.main-content { min-width: 0; }
.archive-heading { margin: 2px 0 30px; }
.home-heading { max-width: 740px; margin-bottom: 35px; }
.eyebrow { margin: 0 0 9px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .15em; line-height: 1.5; text-transform: uppercase; }
.home-heading .eyebrow { font-size: 20px; letter-spacing: .1em; }
.home-heading h1.eyebrow { font: 800 20px/1.5 var(--heading-font); letter-spacing: .1em; }
.archive-heading h1 { margin: 0; font: 700 clamp(32px, 4vw, 48px)/1.12 var(--heading-font); letter-spacing: -.04em; }
.archive-heading > p:last-child:not(.eyebrow) { max-width: 640px; margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.year-archive-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); align-items: start; gap: 22px; }
.year-archive-heading-copy { min-width: 0; }
.year-selector { padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.year-selector h2 { margin: 0 0 10px; font: 700 14px/1.3 var(--heading-font); }
.year-selector ul { display: grid; grid-template-columns: repeat(var(--year-selector-columns), minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.year-selector a { display: flex; min-height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface-raised); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.year-selector a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-wash); text-decoration: none; }
.year-selector a[aria-current="page"] { border-color: var(--brand); color: var(--on-brand); background: var(--brand); }
.year-archive-nav { margin: 0 0 30px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.year-archive-nav h2 { margin: 0 0 11px; font-size: 14px; }
.year-archive-nav ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.year-archive-nav a { display: inline-flex; min-width: 42px; min-height: 40px; align-items: center; justify-content: center; padding: 4px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-raised); font-size: 13px; font-weight: 700; }
.year-archive-nav a:hover { border-color: var(--brand); background: var(--brand-wash); text-decoration: none; }
.year-index-section { margin: 0 0 32px; }
.year-index-section h2 { margin: 0 0 10px; font: 680 23px/1.28 var(--heading-font); }
.year-post-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.year-post-list li { display: grid; grid-template-columns: minmax(125px, 155px) minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.year-post-list time { color: var(--muted); font-size: 13px; }
.year-post-entry-title { min-width: 0; }
.year-post-type-icon { display: inline-block; width: 14px; height: 14px; margin-right: 5px; background-color: currentColor; vertical-align: -2px; -webkit-mask: url('/wp-content/uploads/stackoverflow-icon.webp') center / contain no-repeat; mask: url('/wp-content/uploads/stackoverflow-icon.webp') center / contain no-repeat; }
.year-empty-message { max-width: 680px; margin: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: var(--surface); font-size: 17px; }
.year-view-toggle { margin: 0 0 20px; }
.year-filter-picker { margin: 0 0 26px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.year-filter-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.year-filter-disclosure { min-width: 0; flex: 1 1 280px; }
.year-filter-disclosure > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; list-style: none; cursor: pointer; }
.year-filter-disclosure > summary::marker { content: ""; }
.year-filter-disclosure > summary::-webkit-details-marker { display: none; }
.year-filter-title { font: 700 17px/1.3 var(--heading-font); }
.year-filter-arrow { color: var(--brand); font-size: 18px; font-weight: 800; line-height: 1; transition: transform .15s ease; }
.year-filter-disclosure:not([open]) .year-filter-arrow { transform: rotate(-90deg); }
.year-filter-collapsed-selection { flex: 1 1 100%; color: var(--muted); font-size: 13px; line-height: 1.6; }
.year-filter-editor { padding-top: 14px; }
.year-filter-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 3px; color: var(--muted); font-size: 12px; }
.year-filter-actions button { padding: 0; border: 0; color: var(--brand); background: transparent; font: inherit; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }
.year-filter-actions button:hover { color: var(--ink); }
.year-filter-options { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 3px 3px 2px; }
.year-filter-pill { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-raised); font: 600 13px/1.25 var(--body-font); text-align: left; cursor: pointer; }
.year-filter-pill.is-selected { border-color: var(--brand); color: var(--ink); background: var(--brand-wash); }
.year-filter-pill:hover { border-color: var(--brand-bright); }
.year-filter-pill:focus-visible, .year-filter-actions button:focus-visible, .year-filter-search input:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.year-filter-glyph { display: inline-flex; width: 1.1em; justify-content: center; color: var(--brand); font-weight: 800; }
.year-filter-search { display: grid; max-width: 380px; gap: 5px; margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 650; }
.year-filter-search input { min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface-raised); font: 14px var(--body-font); }
.year-filter-empty { margin: 0 0 28px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--surface); }
.year-filter-status { margin: 0 0 17px; color: var(--muted); font-size: 12px; }
.year-index [hidden] { display: none !important; }
.not-found-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); align-items: center; gap: 24px; max-width: 1080px; margin: 4vh 0 24px; }
.not-found-page { max-width: 760px; margin: 0; padding: clamp(26px, 5vw, 52px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.not-found-photo { width: min(100%, 280px); height: auto; max-height: 430px; justify-self: center; border: 1px solid var(--line); border-radius: 16px; object-fit: contain; box-shadow: var(--shadow); }
.not-found-page h1 { margin: 0; font: 750 clamp(32px, 4.5vw, 52px)/1.12 var(--heading-font); letter-spacing: -.045em; }
.not-found-page > p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.not-found-page mark { padding: 0 .12em; border-radius: 3px; color: var(--ink); background: color-mix(in srgb, var(--accent) 28%, var(--surface)); }
.not-found-page .no-break { white-space: nowrap; }
.not-found-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }
.not-found-home { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 999px; color: var(--ink); background: var(--brand-wash); font-weight: 750; }
.not-found-home:hover { color: var(--ink); background: color-mix(in srgb, var(--brand-wash) 72%, var(--brand) 28%); text-decoration: none; }
.not-found-post-carousel { margin-top: 0; }
.not-found-post-carousel__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.not-found-post-carousel__heading h2 { margin: 0; font: 700 clamp(22px, 2.5vw, 30px)/1.2 var(--heading-font); letter-spacing: -.03em; }
.not-found-post-carousel__controls { display: flex; flex: 0 0 auto; gap: 8px; }
.not-found-post-carousel__controls[hidden] { display: none; }
.not-found-post-carousel__controls button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); font: 700 24px/1 var(--body-font); cursor: pointer; }
.not-found-post-carousel__controls button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.not-found-post-carousel__controls button:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }
.not-found-post-carousel__controls button:disabled { opacity: .45; cursor: not-allowed; }
.not-found-post-carousel__track { display: grid; grid-auto-columns: minmax(260px, calc((100% - 36px) / 3)); grid-auto-flow: column; align-items: stretch; gap: 18px; overflow-x: auto; padding: 4px 3px 16px; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; }
.not-found-post-carousel__track:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }
.not-found-post-carousel__item { min-width: 0; height: 100%; scroll-snap-align: start; }
.not-found-post-carousel__item .home-post-card { height: 100%; }
.category-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: 12px; }
.category-index-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, color .18s ease; }
.category-index-item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); color: var(--brand); text-decoration: none; }
.category-index-name { font-weight: 700; }
.category-index-count { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.tag-view-toggle { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; gap: 4px; margin: -12px 0 20px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
.tag-view-toggle button { padding: 7px 13px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font: 650 12px/1.25 var(--body-font); cursor: pointer; }
.tag-view-toggle button[aria-pressed="true"] { color: var(--ink); background: var(--surface-raised); box-shadow: 0 1px 4px rgb(0 0 0 / 10%); }
.tag-view-toggle button:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.tag-treemap { position: relative; min-height: 460px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.tag-treemap[hidden], .tag-list-view[hidden] { display: none; }
.tag-treemap-tile { position: absolute; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 0; overflow: hidden; padding: clamp(8px, 1.2vw, 17px); border: 1px solid var(--surface); color: var(--ink); background: var(--tile-color, var(--brand-wash)); transition: filter .15s ease, color .15s ease; }
.tag-treemap-tile:nth-child(8n + 1) { --tile-color: var(--treemap-1); }
.tag-treemap-tile:nth-child(8n + 2) { --tile-color: var(--treemap-2); }
.tag-treemap-tile:nth-child(8n + 3) { --tile-color: var(--treemap-3); }
.tag-treemap-tile:nth-child(8n + 4) { --tile-color: var(--treemap-4); }
.tag-treemap-tile:nth-child(8n + 5) { --tile-color: var(--treemap-5); }
.tag-treemap-tile:nth-child(8n + 6) { --tile-color: var(--treemap-6); }
.tag-treemap-tile:nth-child(8n + 7) { --tile-color: var(--treemap-7); }
.tag-treemap-tile:nth-child(8n) { --tile-color: var(--treemap-8); }
.tag-treemap-tile:hover { z-index: 1; color: var(--ink); filter: brightness(.96); text-decoration: none; }
.tag-treemap-name { font-size: 16px; font-weight: 750; line-height: 1.25; overflow-wrap: normal; word-break: normal; }
.tag-treemap-count { max-width: 100%; margin-top: 6px; overflow: hidden; color: var(--ink); font-size: clamp(10px, .8vw, 12px); text-overflow: ellipsis; white-space: nowrap; }
.tag-treemap-note { display: none; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.tag-index[data-view="treemap"] .tag-treemap-note { display: block; }
.tag-cloud-view { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 15px; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.tag-cloud-view[hidden], .tag-grouped-view[hidden] { display: none; }
.tag-cloud-item { display: inline-flex; align-items: baseline; gap: 4px; color: var(--brand-bright); font-size: var(--tag-cloud-size, 16px); font-weight: 700; line-height: 1.4; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.tag-cloud-item:hover { color: var(--brand); }
.tag-cloud-count { color: var(--muted); font-size: .68em; font-variant-numeric: tabular-nums; }
.tag-grouped-view { display: block; }
.tag-groups-note { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.tag-groups-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.tag-group { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.tag-group summary { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; align-items: center; gap: 16px; padding: 16px 20px; color: var(--ink); cursor: pointer; list-style: none; }
.tag-group summary::-webkit-details-marker { display: none; }
.tag-group summary::after { flex: 0 0 auto; color: var(--brand); content: "+"; font-size: 22px; font-weight: 500; line-height: 1; }
.tag-group[open] summary::after { content: "−"; }
.tag-group summary:hover { color: var(--brand); background: var(--brand-wash); }
.tag-group-summary-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.tag-group-title { font-size: 16px; font-weight: 750; }
.tag-group-description { color: var(--muted); font-size: 13px; font-weight: 450; line-height: 1.45; }
.tag-group summary .tag-group-count { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.tag-group-content { padding: 0 20px 16px; }
.tag-group-content > p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.tag-group ul { margin: 0; padding: 0; list-style: none; }
.tag-group li + li { border-top: 1px solid var(--line); }
.tag-group a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--ink); }
.tag-group a:hover { color: var(--brand); text-decoration: none; }
.tag-group-count { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.home-heading h1 { max-width: 700px; }

.home-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
.home-post-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-raised); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.home-post-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); box-shadow: 0 18px 42px rgb(25 50 45 / 10%); }
.home-post-card__image { display: grid; width: 100%; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; padding: 8px; border-bottom: 1px solid var(--line); background: var(--soft); }
.home-post-card__image img { width: 100%; height: 100%; object-fit: contain; }
.home-post-card__copy { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; padding: 17px 18px 18px; }
.home-post-card h2 { margin: 10px 0 9px; font: 680 clamp(17px, 1.3vw, 21px)/1.28 var(--heading-font); letter-spacing: -.025em; }
.home-post-card h2 a { color: var(--ink); }
.home-post-card h2 a:hover { color: var(--brand); text-decoration: none; }
.home-post-card .category-chips { min-height: 22px; }
.home-post-card .category-chips a { padding: 3px 7px; font-size: 9px; }
.home-post-card .post-meta { font-size: 11px; }
.home-post-card .preview-summary { margin: 10px 0 14px; font-size: 13px; line-height: 1.6; }
.home-post-card .read-more { margin-top: auto; font-size: 12px; }
.post-preview { display: flex; overflow: hidden; margin: 0 0 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-raised); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.post-preview:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); box-shadow: 0 18px 42px rgb(25 50 45 / 10%); }
.post-card-image { display: grid; flex: 0 0 220px; min-height: 160px; place-items: center; overflow: hidden; padding: 9px; border-right: 1px solid var(--line); background: var(--soft); }
.post-card-image img { width: 100%; height: 100%; max-height: 185px; object-fit: contain; }
.preview-copy { min-width: 0; padding: 25px 29px 27px; }
.post-preview h2 { max-width: 760px; margin: 5px 0 9px; font: 680 24px/1.28 var(--heading-font); letter-spacing: -.025em; }
.post-preview h2 a { color: var(--ink); }
.post-preview h2 a:hover { color: var(--brand); text-decoration: none; }
.category-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.category-chips a { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; color: var(--brand); background: var(--brand-wash); font-size: 10px; font-weight: 800; letter-spacing: .07em; line-height: 1.5; text-transform: uppercase; }
.category-chips a:hover { color: var(--on-brand); background: var(--brand); text-decoration: none; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 550; }
.post-meta > a { color: inherit; text-decoration: underline; text-decoration-style: dotted; }
.post-meta > a:hover { color: var(--brand); text-decoration-style: solid; }
.preview-summary { margin: 14px 0 16px; color: var(--muted); font-size: 15px; line-height: 1.72; }
.preview-summary p { margin: 0; }
.read-more { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: 13px; font-weight: 750; }
.read-more span { transition: transform .18s ease; }
.read-more:hover { color: var(--brand-bright); text-decoration: none; }
.read-more:hover span { transform: translateX(3px); }
.pagination { margin-top: 32px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; list-style: none; }
.pagination li a, .pagination li span { display: grid; min-width: 38px; min-height: 38px; place-items: center; padding: 5px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

.sidebar { display: grid; gap: 17px; padding-top: 5px; }
.widget { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.widget h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.widget h2 a { color: inherit; }
.widget h2 a:hover { color: var(--brand); text-decoration: none; }
.widget h2::before { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-bright); content: ""; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.widget-recent-posts li { font-size: 14px; }
.widget li:first-child { border-top: 0; }
.widget li a { color: var(--ink); font-weight: 600; }
.widget li a:hover { color: var(--brand); }

.single-post { padding: 0; }
.article-header { max-width: 850px; margin: 0 auto 30px; }
.article-header h1 { margin: 13px 0 14px; font: 720 clamp(36px, 5vw, 58px)/1.08 var(--heading-font); letter-spacing: -.045em; }
.article-header h1 code { font: 500 1em/1.08 var(--code-font); letter-spacing: -.06em; }
.heading-link { display: inline-grid; width: 1em; height: 1em; margin-left: .24em; padding: 0; place-items: center; border: 0; color: var(--brand-bright); background: transparent; cursor: pointer; font-size: clamp(12px, .4em, 22px); opacity: .14; vertical-align: .02em; transition: opacity .15s ease, color .15s ease; }
.article-header h1 .heading-link { opacity: .3; }
.entry-content h2 .heading-link, .entry-content h3 .heading-link { opacity: .1; }
.article-header h1:hover .heading-link, .article-header h1:focus-within .heading-link,
.entry-content h2:hover .heading-link, .entry-content h2:focus-within .heading-link,
.entry-content h3:hover .heading-link, .entry-content h3:focus-within .heading-link,
.heading-link:hover, .heading-link:focus-visible { color: var(--brand); opacity: 1; }
.heading-link svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.heading-link:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 3px; }
@media (hover: none) {
  .article-header h1 .heading-link { opacity: .55; }
  .entry-content h2 .heading-link, .entry-content h3 .heading-link { opacity: .38; }
}
.article-deck { max-width: 720px; margin: 0 0 19px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.qa-article-header { padding: 22px 26px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.qa-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.qa-mark { display: inline-grid; min-width: 45px; min-height: 30px; place-items: center; border-radius: 9px; color: var(--brand); background: var(--brand-wash); font-size: 11px; letter-spacing: .02em; }
.qa-note { margin: 17px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.question-answer-post .entry-content h2 { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.question-answer-post .entry-content h2:first-of-type { color: var(--brand); }
.question-answer-post .entry-content h2:nth-of-type(2) { color: var(--ink); }
.question-answer-post .entry-content .qa-attribution { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin: 18px 0 1.5em; padding: 10px 14px; border-left: 3px solid var(--brand); border-radius: 0 9px 9px 0; color: var(--muted); background: var(--brand-wash); font-size: 13px; line-height: 1.5; }
.question-answer-post .entry-content .qa-attribution-label { color: var(--brand-bright); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.question-answer-post .entry-content .qa-attribution-date a { color: var(--muted); font-variant-numeric: tabular-nums; text-decoration-thickness: 1px; }
.question-answer-post .entry-content .qa-attribution-user a { color: var(--ink); font-weight: 700; text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.question-answer-post .entry-content .qa-attribution-by { color: var(--muted); }
.author-avatar { display: inline-grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line)); border-radius: 50%; color: var(--brand); background: var(--brand-wash); font-size: 9px; font-weight: 850; letter-spacing: -.04em; object-fit: cover; }
.post-authors { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.post-meta .post-authors { font-size: 14px; }
.post-author { display: inline-flex; align-items: center; gap: 8px; }
.post-author-separator { margin-right: -4px; }
.entry-content { max-width: 78ch; margin: 0 auto; color: var(--ink); font-size: 17px; line-height: 1.82; overflow-wrap: anywhere; }
.entry-content > * { margin-top: 0; margin-bottom: 1.45em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2.1em; font-family: var(--heading-font); font-weight: 680; line-height: 1.3; letter-spacing: -.02em; }
.entry-content h2 { font-size: 31px; }
.entry-content h3 { font-size: 24px; }
.entry-content h3#footnotes { margin-top: 1.6em; margin-bottom: .5em; font-size: 14pt; }
.entry-content .footnotes { font-size: .85em; line-height: 1.55; }
.entry-content .footnotes > hr { display: none; }
.entry-content .footnotes > ol { margin-top: 0; }
.entry-content p { margin-top: 0; }
.entry-content a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 38%, transparent); text-decoration-thickness: 1px; }
.entry-content img { height: auto; border-radius: 12px; }
.entry-content .main-post-image { width: min(46%, var(--main-post-image-max-width, 360px)); max-width: 100%; margin: .25em 0 1.1em 1.6em; text-align: left; }
.entry-content .main-post-image--right { float: right; clear: right; }
.entry-content .main-post-image--left { float: left; clear: left; margin-right: 1.6em; margin-left: 0; }
.entry-content .main-post-image img { display: block; width: 100%; height: auto; }
.entry-content .main-post-image figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.fundraiser-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border: 1px solid var(--brand); border-radius: 999px; color: var(--on-brand) !important; background: var(--brand); font-weight: 750; text-decoration: none !important; }
.fundraiser-button:hover, .fundraiser-button:focus-visible { color: var(--on-brand) !important; background: var(--brand-bright); text-decoration: underline !important; }
.newsletter-signup-form { display: grid; max-width: 520px; gap: 9px; margin: 24px 0; }
.newsletter-signup-form label { color: var(--ink); font-size: 14px; font-weight: 700; }
.newsletter-signup-form input[type="email"] { min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); font: 16px/1.4 var(--body-font); }
.newsletter-signup-form input[type="email"]:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; border-color: var(--brand); }
.newsletter-signup-form button { justify-self: start; min-height: 46px; padding: 0 20px; border: 1px solid var(--brand); border-radius: 999px; color: var(--on-brand); background: var(--brand); font: 750 15px/1 var(--body-font); cursor: pointer; }
.newsletter-signup-form button:hover { background: var(--brand-bright); }
.newsletter-signup-form button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 3px; }
.fundraiser-video { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #101514; }
.fundraiser-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.youtube-video { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #101514; }
.youtube-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.youtube-video-link { margin: -1em 0 1.5em; color: var(--muted); font-size: 13px; text-align: right; }
.fundraiser-video-link { color: var(--muted); font-size: 10px; text-align: right; }
.entry-content img.alignright { float: right; clear: right; width: min(46%, 360px); margin: .25em 0 1.1em 1.6em; }
.entry-content img.alignleft { float: left; clear: left; width: min(46%, 360px); margin: .25em 1.6em 1.1em 0; }
.entry-content img.aligncenter { display: block; max-width: 100%; margin-right: auto; margin-left: auto; }
.entry-content figure img.aligncenter { display: inline-block; margin-right: 0; margin-left: 0; }
.entry-content img.stack-exchange-question-icon { float: left; clear: left; width: 96px; height: 96px; margin: .25em 1.25em .75em 0; }
.entry-content figure { margin: 2em auto; text-align: center; }
.entry-content figure.alignright { float: right; clear: right; width: min(46%, 360px); margin: .25em 0 1.1em 1.6em; text-align: left; }
.entry-content figure.alignleft { float: left; clear: left; width: min(46%, 360px); margin: .25em 1.6em 1.1em 0; text-align: left; }
.entry-content figure.aligncenter { margin-right: auto; margin-left: auto; }
.entry-content figure img { display: inline-block; }
.entry-content .venmo-support { display: flex; flex-direction: column; align-items: flex-start; gap: .25em; margin: 1.45em 0; }
.entry-content .venmo-support > p { margin: 0; }
.entry-content .venmo-support__link { color: var(--ink); font-weight: 700; text-decoration: none; }
.entry-content .venmo-support__link:hover { color: var(--brand); }
.entry-content .venmo-support__qr { display: block; max-width: 100%; }
.entry-content .venmo-support__qr img { display: block; width: 220px; max-width: 100%; height: auto; }
.entry-content .support-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 6vw, 80px); margin-top: 1.45em; }
.entry-content .support-option { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.entry-content .support-option > p { margin: 0; }
.entry-content .support-option__link { color: var(--ink); font-weight: 700; text-decoration: none; }
.entry-content .support-option__link:hover { color: var(--brand); }
.entry-content .support-option__qr { display: block; width: min(100%, 240px); margin-top: .5em; }
.entry-content .support-option__qr img { display: block; width: 100%; height: auto; border-radius: 13px; }
@media (max-width: 560px) {
  .entry-content .support-options { gap: 18px; }
  .entry-content .support-option__qr { width: min(100%, 190px); }
}
.entry-content figure.wp-caption { color: var(--muted); font-size: 12px; line-height: 1.5; }
.entry-content figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.entry-content .about-carousel { float: left; clear: left; width: min(46%, 360px); margin: .25em 1.6em 1.1em 0; container-type: inline-size; }
.about-carousel__slides { --photo-frame-height: 430px; --photo-frame-height: min(430px, 120cqw); display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.about-carousel__slide { grid-area: 1 / 1; display: grid; grid-template-rows: var(--photo-frame-height) auto; margin: 0 !important; text-align: center; }
.about-carousel__slide[hidden] { display: none; }
.about-carousel__slide img { display: block; width: 100%; height: var(--photo-frame-height); object-fit: contain; }
.about-carousel__slide--outlier { padding: 14px 12px 0; background: var(--brand-wash); }
.about-carousel__slide--outlier img { height: calc(var(--photo-frame-height) - 14px); border: 8px solid var(--surface-raised); box-shadow: 0 10px 20px rgb(25 35 33 / 20%); transform: rotate(-2deg) scale(.92); }
.about-carousel__slide figcaption { padding: 0 10px 10px; }
.about-carousel__controls { display: none; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.about-carousel.is-ready .about-carousel__controls { display: flex; }
.about-carousel__controls button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface-raised); font: 28px/1 var(--body-font); cursor: pointer; }
.about-carousel__controls button:hover { border-color: var(--brand); color: var(--brand); }
.about-carousel__controls button:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }

.entry-content .errorMsg,
.entry-content .warningMsg,
.entry-content .infoMsg {
  display: block;
  margin: 1.35rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--message-accent);
  border-inline-start-width: 5px;
  border-radius: 9px;
  background: var(--message-surface);
  color: var(--message-ink);
}
.entry-content .errorMsg {
  --message-ink: var(--error-ink);
  --message-surface: var(--error-surface);
  --message-accent: var(--error-accent);
  overflow-x: auto;
  font-family: var(--code-font);
  font-size: .88rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.entry-content .warningMsg {
  --message-ink: var(--warning-ink);
  --message-surface: var(--warning-surface);
  --message-accent: var(--warning-accent);
  font-family: var(--body-font);
  font-size: 1em;
  line-height: 1.6;
}
.entry-content .sql-output pre {
  overflow-x: auto;
  border-color: var(--line);
  font-family: var(--code-font);
  white-space: pre;
}
.entry-content .sql-output .line.hl {
  display: inline-block;
  width: 100%;
  color: var(--error-ink);
  background: var(--error-surface);
  box-shadow: 20px 0 0 var(--error-surface), -20px 0 0 var(--error-surface);
}
.entry-content pre.errorMsg { white-space: pre-wrap; }
.entry-content pre.infoMsg { white-space: pre-wrap; }
.entry-content pre.errorMsg code,
.entry-content pre.warningMsg code,
.entry-content pre.infoMsg code { color: inherit; background: transparent; font: inherit; }
.entry-content .infoMsg {
  --message-ink: var(--info-ink);
  --message-surface: var(--info-surface);
  --message-accent: var(--info-accent);
  font-family: var(--body-font);
  font-size: 1em;
  line-height: 1.6;
}
.entry-content .errorMsg::before,
.entry-content .warningMsg::before,
.entry-content .infoMsg::before {
  display: block;
  margin: 0 0 .65rem;
  font-family: var(--body-font);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.2;
  color: var(--message-accent);
  user-select: none;
}
.entry-content .errorMsg::before { content: "✖  ERROR"; }
.entry-content .warningMsg::before { content: "⚠  WARNING"; }
.entry-content .infoMsg::before { content: "ⓘ  INFO"; }

.entry-content pre, .entry-content code { color: var(--ink); background: var(--soft); }
.entry-content code { padding: .12em .35em; border-radius: 5px; font: .88em/1.5 var(--code-font); }
.entry-content pre { overflow-x: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--code-font); font-size: .9em; line-height: 1.6; }
.entry-content pre code { padding: 0; background: transparent; }
/* Keep highlighted code surfaces tied to the active site theme. */
.entry-content .highlight pre, .entry-content pre.chroma { color: var(--ink); background-color: var(--soft) !important; }
.entry-content .chroma .bp, .entry-content .chroma .ln, .entry-content .chroma .lnt { color: var(--code-muted) !important; }
.entry-content .chroma .k, .entry-content .chroma .kc, .entry-content .chroma .kd,
.entry-content .chroma .kn, .entry-content .chroma .kp, .entry-content .chroma .kr,
.entry-content .chroma .kt { color: var(--code-keyword) !important; }
.entry-content blockquote { margin-left: 0; padding: 5px 0 5px 20px; border-left: 3px solid var(--brand); color: var(--muted); font-family: var(--body-font); font-size: 18px; line-height: 1.65; }
.entry-content .tweet-card { display: block; width: 100%; max-width: 620px; margin: 1.8em 0; padding: 18px 20px 14px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface-raised); box-shadow: var(--shadow); text-align: left; }
.entry-content .tweet-card--right { float: right; clear: right; width: min(100%, 380px); margin: .25em 0 22px 28px; }
.tweet-card__header { display: flex; align-items: center; gap: 11px; }
.tweet-card__avatar { display: block; width: 42px; height: 42px; flex: 0 0 42px; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; color: var(--brand); background: var(--brand-wash); font-size: 13px; font-weight: 800; letter-spacing: -.04em; object-fit: cover; object-position: center 38%; }
.tweet-card__avatar:not(img) { display: grid; place-items: center; }
.tweet-card__identity { display: flex; min-width: 0; flex-direction: column; line-height: 1.35; }
.tweet-card__identity strong { overflow: hidden; color: var(--ink); font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.tweet-card__identity span { color: var(--muted); font-size: 13px; }
.tweet-card__brand { display: flex; align-items: center; gap: 5px; margin-left: auto; color: #1d9bf0; font-size: 11px; font-weight: 750; letter-spacing: -.035em; }
.tweet-card__bird { display: block; width: 18px; height: 18px; flex: 0 0 18px; fill: #1da1f2; }
.entry-content .tweet-card__text { margin: 14px 0 16px; color: var(--ink); font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.tweet-card__text p { margin: 0 0 .65em; }
.tweet-card__text p:last-child { margin-bottom: 0; }
.tweet-card__image { max-height: 420px; width: auto; margin: 12px auto; border: 1px solid var(--line); border-radius: 12px; object-fit: contain; }
.tweet-card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.tweet-card__text--plain { white-space: pre-line; }
.tweet-archive[hidden] { display: none; }
.tweet-archive__entry { scroll-margin-top: 160px; }
.tweet-archive__entry:target .tweet-card { outline: 3px solid var(--brand); outline-offset: 4px; }
.tweet-ref { text-decoration: underline; text-decoration-style: dotted; }
.tweet-ref:has(img) { display: inline-block; max-width: 100%; }
.tweet-popover { width: min(620px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface-raised); box-shadow: 0 20px 70px rgb(0 0 0 / 25%); }
.tweet-popover::backdrop { background: rgb(0 0 0 / 45%); }
.tweet-popover__header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.tweet-popover__header h2 { margin: 0; font: 650 13px/1.4 var(--body-font); }
.tweet-popover__header form { margin: 0; flex-shrink: 0; }
.tweet-popover__close { min-height: 44px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--soft); font: 650 14px var(--body-font); cursor: pointer; }
.tweet-popover__close:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.tweet-popover .tweet-card { max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.image-popover-trigger { text-decoration: underline; text-decoration-style: dotted; }
.image-popover-trigger:has(img) { display: inline-block; max-width: 100%; cursor: zoom-in; }
.image-popover { position: relative; width: fit-content; max-width: calc(100% - 24px); max-height: calc(100dvh - 32px); padding: 48px 12px 12px; overflow: auto; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface-raised); box-shadow: 0 20px 70px rgb(0 0 0 / 35%); }
.image-popover::backdrop { background: rgb(0 0 0 / 65%); }
.image-popover__toolbar { position: absolute; top: 8px; right: 8px; margin: 0; }
.image-popover__close { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--soft); font: 650 14px var(--body-font); cursor: pointer; }
.image-popover__close:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.image-popover__image { display: block; width: auto; max-width: min(90vw, 1400px); max-height: calc(100dvh - 84px); margin: 0 auto; object-fit: contain; }
.search-page-form { max-width: 780px; margin: 0 0 10px; }
.search-page-form > label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 750; }
.search-page-input-row { display: flex; align-items: stretch; gap: 9px; }
.search-page-input-row input { min-width: 0; flex: 1; padding: 13px 17px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); font: 15px/1.4 var(--body-font); box-shadow: var(--shadow); }
.search-page-input-row input:focus-visible, .search-controls select:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 1px; border-color: var(--brand); }
.search-submit, .search-clear, .search-reset, .search-load-more { min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); font: 700 13px/1 var(--body-font); cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.search-submit { border-color: var(--brand); color: var(--on-brand); background: var(--brand-bright); }
.search-submit:hover, .search-clear:hover, .search-reset:hover, .search-load-more:hover { border-color: var(--brand); background: var(--brand-wash); }
.search-submit:hover { color: var(--on-brand); background: var(--brand); }
.search-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin: 12px 0 24px; color: var(--muted); font-size: 12px; }
.search-examples a { font-weight: 700; }
.search-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 11px; margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.search-controls label { display: grid; min-width: 148px; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 750; }
.search-controls select { min-height: 39px; padding: 0 32px 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font: 13px/1.2 var(--body-font); }
.search-reset { min-height: 39px; padding: 0 12px; color: var(--brand-bright); font-size: 12px; }
.search-status { min-height: 27px; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.search-results { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.search-result-kind { padding: 3px 8px; border-radius: 999px; color: var(--brand-bright); background: var(--brand-wash); font-size: 10px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.search-results mark { padding: 0 .12em; border-radius: 3px; color: var(--ink); background: color-mix(in srgb, var(--accent) 28%, var(--surface)); }
.search-load-more { display: block; min-width: 160px; margin: 20px auto 0; }
.search-results [hidden], .search-page-form [hidden], .search-load-more[hidden] { display: none !important; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--soft); }
.post-taxonomy { padding-top: 9px; color: var(--muted); font-size: 12px; }
.post-footer { max-width: 78ch; margin: 44px auto 0; }
.post-history { margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--line); }
.post-history h2, .giscus-comments h2 { margin: 0 0 18px; color: var(--ink); font: 650 25px/1.25 var(--heading-font); letter-spacing: -.025em; }
.reference-list, .comment-list { margin: 0; padding: 0; list-style: none; }
.reference-list > li, .comment-card { margin: 0 0 13px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.reference-list > li { border-left: 3px solid var(--brand); }
.reference-list time, .comment-meta time { margin-left: 9px; color: var(--muted); font-size: 11px; }
.reference-list blockquote { margin: 10px 0 0; padding-left: 13px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; }
.comment-meta strong { font-size: 13px; }
.comment-body { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.giscus-comments { margin-top: 34px; padding-top: 25px; border-top: 1px solid var(--line); }
.giscus-help { max-width: 72ch; margin: -8px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.site-footer { color: #d7e4e0; background: #15211f; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; max-width: 1280px; margin: 0 auto; padding: 26px 32px; font-size: 12px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .45rem; }
.footer-link-icon { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.footer-sponsor { display: block; margin-top: .35rem; color: #a9bbb6; font-size: .9em; }
.footer-sponsor:hover, .footer-sponsor:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.site-footer a { color: #8ad6ce; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #70d8cd;
    --on-brand: #10201d;
    --brand-bright: #91ebe0;
    --brand-wash: #1b3532;
    --treemap-1: #28534d; --treemap-2: #493d67; --treemap-3: #68432f; --treemap-4: #2c4f70;
    --treemap-5: #63394c; --treemap-6: #455b30; --treemap-7: #654b24; --treemap-8: #2c5260;
    --ink: #e7efec;
    --muted: #a0b1ac;
    --canvas: #101715;
    --surface: #151e1b;
    --surface-raised: #192320;
    --line: #2b3935;
    --soft: #202c28;
    --error-ink: #fecaca;
    --error-surface: #3b171b;
    --error-accent: #f87171;
    --warning-ink: #fde68a;
    --warning-surface: #3b2c11;
    --warning-accent: #fbbf24;
    --info-ink: #bfdbfe;
    --info-surface: #172a3a;
    --info-accent: #60a5fa;
    --code-keyword: #79c0ff;
    --code-muted: #8b949e;
    --shadow: 0 12px 34px rgb(0 0 0 / 18%);
  }
  .site-footer { background: #263631; border-top: 1px solid #3c514b; }
}

:root[data-theme="light"] {
  color-scheme: light;
  --brand: #066f71;
  --on-brand: #fff; --brand-bright: #05585a; --brand-wash: #e8f4f0; --accent: #f16b84;
  --treemap-1: #d9f0e9; --treemap-2: #e6e1fa; --treemap-3: #fae3d2; --treemap-4: #dceafc;
  --treemap-5: #f5dce8; --treemap-6: #e6edcf; --treemap-7: #f5e8bc; --treemap-8: #d8eef2;
  --ink: #192321; --muted: #65716e; --canvas: #f3f6f5;
  --surface: #fff; --surface-raised: #fff; --line: #e2e9e6; --soft: #edf2f0;
  --error-ink: #7f1d1d; --error-surface: #fef2f2; --error-accent: #b91c1c;
  --warning-ink: #713f12; --warning-surface: #fffbeb; --warning-accent: #b45309;
  --info-ink: #1e3a8a; --info-surface: #eff6ff; --info-accent: #2563eb;
  --code-keyword: #0550ae;
  --code-muted: #545d66;
  --shadow: 0 12px 34px rgb(25 50 45 / 6%);
}
:root[data-theme="light"] .site-footer { background: #15211f; }
:root[data-theme="light"] .home-post-card,
:root[data-theme="light"] .post-preview {
  border-color: #d4dfdc;
  box-shadow: 0 12px 34px rgb(25 50 45 / 10%);
}
:root[data-theme="light"] .home-post-card__image,
:root[data-theme="light"] .post-card-image {
  background: #e8efed;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #70d8cd; --on-brand: #10201d; --brand-bright: #91ebe0; --brand-wash: #1b3532; --accent: #ff91a4;
  --treemap-1: #28534d; --treemap-2: #493d67; --treemap-3: #68432f; --treemap-4: #2c4f70;
  --treemap-5: #63394c; --treemap-6: #455b30; --treemap-7: #654b24; --treemap-8: #2c5260;
  --ink: #e7efec; --muted: #a0b1ac; --canvas: #101715;
  --surface: #151e1b; --surface-raised: #192320; --line: #2b3935; --soft: #202c28;
  --error-ink: #fecaca; --error-surface: #3b171b; --error-accent: #f87171;
  --warning-ink: #fde68a; --warning-surface: #3b2c11; --warning-accent: #fbbf24;
  --info-ink: #bfdbfe; --info-surface: #172a3a; --info-accent: #60a5fa;
  --code-keyword: #79c0ff;
  --code-muted: #8b949e;
  --shadow: 0 12px 34px rgb(0 0 0 / 18%);
}
:root[data-theme="dark"] .site-footer { background: #263631; border-top: 1px solid #3c514b; }

.theme-toggle { position: fixed; z-index: 20; right: 22px; bottom: 20px; display: grid; grid-template-columns: 24px 1fr; align-items: center; width: 100px; min-height: 42px; padding: 0 12px; border: 1px solid var(--toggle-line, var(--line)); border-radius: 999px; color: var(--toggle-ink, var(--ink)); background: var(--toggle-surface, var(--surface-raised)); box-shadow: 0 5px 18px rgb(0 0 0 / 14%); font: 650 12px/1 var(--body-font); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.theme-toggle[data-next-theme="dark"] { --toggle-ink: #e7efec; --toggle-surface: #192320; --toggle-line: #2b3935; --toggle-accent: #70d8cd; }
.theme-toggle[data-next-theme="light"] { --toggle-ink: #192321; --toggle-surface: #fff; --toggle-line: #e2e9e6; --toggle-accent: #078b8d; }
.theme-toggle:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgb(0 0 0 / 18%); }
.theme-toggle-icon { display: grid; place-items: center; width: 24px; color: var(--toggle-accent, var(--brand)); font-size: 18px; }
.theme-toggle-label { text-align: center; }
.theme-toggle:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }

@media (max-width: 900px) {
  .page-wrap { grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; padding: 36px 24px 56px; }
  .site-brand, .nav-toolbar { padding-right: 24px; padding-left: 24px; }
  .post-card-image { flex-basis: 185px; }
  .preview-copy { padding: 22px; }
}
@media (max-width: 1100px) {
  .year-archive-heading { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .year-selector { width: 100%; box-sizing: border-box; }
}
@media (max-width: 760px) {
  .not-found-intro { grid-template-columns: 1fr; gap: 18px; }
  .not-found-page { padding: 26px; }
}
@media (min-width: 600px) {
  .home-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .home-post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 2400px) {
  .home-post-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 3200px) {
  .home-post-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .site-brand { align-items: center; gap: 12px; padding: 18px; }
  .site-title { min-width: 0; gap: 9px; }
  .brand-mark { width: 48px; height: 48px; flex-basis: 48px; }
  .brand-name { font-size: 20px; }
  .brand-tagline { font-size: 10px; }
  .header-subscribe { min-height: 40px; padding-right: 12px; padding-left: 12px; }
  .header-search { width: 100%; min-width: 0; }
  .brand-mark { width: 56px; height: 56px; flex-basis: 56px; border-radius: 15px; }
  .nav-toolbar { gap: 10px; padding-right: 18px; padding-left: 18px; }
  .nav-toolbar .header-search { max-width: none; }
  .site-header.is-compact .site-brand { gap: 8px; padding: 7px 18px 6px; }
  .site-header.is-compact .site-title { gap: 9px; }
  .site-header.is-compact .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  .site-header.is-compact .brand-name { font-size: 19px; }
  .site-header.is-compact .nav-toolbar .header-search { width: auto; max-width: none; }
  .site-header.is-compact .header-search input { padding: 5px 12px; }
  .site-header.is-compact .header-search button { width: 32px; height: 32px; flex-basis: 32px; }
  .page-wrap { grid-template-columns: 1fr; gap: 28px; margin: 0 auto; padding: 32px 16px 48px; }
  .not-found-intro { grid-template-columns: 1fr; gap: 18px; margin-top: 2vh; }
  .not-found-photo { width: min(100%, 280px); }
  .home-heading { margin-bottom: 25px; }
  .home-heading h1 { font-size: 37px; }
  .post-preview { flex-direction: column; margin-bottom: 14px; border-radius: 14px; }
  .home-page-wrap { padding: 32px 16px 48px; }
  .year-post-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .home-post-grid { gap: 12px; }
  .not-found-post-carousel__track { grid-auto-columns: minmax(82%, 1fr); gap: 12px; }
  .not-found-post-carousel__heading h2 { font-size: 22px; }
  .home-post-card { border-radius: 12px; }
  .home-post-card__copy { padding: 11px 12px 13px; }
  .home-post-card h2 { margin: 8px 0; font-size: 16px; }
  .home-post-card .category-chips { gap: 4px; }
  .home-post-card .category-chips a { padding: 2px 5px; font-size: 8px; }
  .home-post-card .post-meta { gap: 4px; font-size: 10px; }
  .home-post-card .preview-summary { margin: 8px 0 10px; font-size: 12px; }
  .post-card-image { flex: 0 0 auto; width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .post-card-image img { width: 100%; height: 100%; max-height: none; }
  .preview-copy { padding: 20px; }
  .post-preview h2 { font-size: 23px; }
  .sidebar { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
  .article-header h1 { font-size: 40px; }
  .qa-article-header { padding: 19px; }
  .article-deck { font-size: 17px; }
  .entry-content { font-size: 16px; line-height: 1.78; }
  .entry-content h2 { font-size: 27px; }
  .entry-content figure.alignright, .entry-content figure.alignleft,
  .entry-content img.alignright, .entry-content img.alignleft { float: none; clear: both; width: auto; max-width: 100%; margin: 1.5em auto; }
  .entry-content .main-post-image { float: none; clear: both; width: min(100%, var(--main-post-image-max-width, 100%)); margin: 1.5em auto; }
  .entry-content .about-carousel { float: none; clear: both; width: min(100%, 480px); margin: 1.2em auto 1.6em; }
  .about-carousel__slides { --photo-frame-height: 560px; --photo-frame-height: min(560px, 120cqw); }
  .entry-content .tweet-card--right { float: none; clear: both; width: 100%; max-width: 100%; margin: 1.5em 0; }
  .post-footer { margin-top: 34px; }
  .footer-inner { display: grid; gap: 8px; padding: 22px 18px; }
  .theme-toggle { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .site-header, .site-brand, .brand-mark, .brand-name, .brand-tagline,
  .header-search, .header-search input, .header-search button, .nav-inner, .nav-inner a { transition: none; }
}

/* Minimal standalone landing pages, matching the original shrink-page layout. */
.standalone-body { color: #202020; background: #a4a6a8; }
.standalone-sheet { display: flex; flex-direction: column; width: min(95%, 2400px); min-height: 88vh; margin: 4vh auto; overflow: hidden; color: #202020; background: #fff; box-shadow: 0 3px 18px rgb(0 0 0 / 15%); }
.standalone-header { padding: 26px 24px 0; text-align: center; }
.standalone-header h1 { margin: 0; font-size: clamp(23px, 1.55vw, 38px); font-weight: 400; line-height: 1.3; letter-spacing: -.035em; }
.standalone-main { display: flex; flex: 1; min-height: 76vh; }
.standalone-message { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; padding: 2vh 28px 82px; }
.shrink-answer { display: flex; flex-direction: column; justify-content: center; flex: 1; width: 100%; color: #cf352e; text-align: center; font-size: clamp(86px, 10vw, 220px); font-weight: 300; line-height: 1.35; letter-spacing: -.055em; }
.shrink-answer p { margin: 0; }
.shrink-answer p + p { margin-top: .48em; }
.standalone-note { max-width: 92%; margin: 0 auto 20px; font-size: 15px; line-height: 1.55; text-align: center; }
.standalone-note a { color: #078b8d; }
.shrink-methods { position: absolute; bottom: 26px; left: 28px; margin: 0; padding: 0; list-style: none; font: 8px/1.4 ui-monospace, Consolas, monospace; }
.shrink-methods li { display: flex; gap: 3px; align-items: center; }
.shrink-methods code { color: inherit; background: transparent; }
.standalone-links { display: grid; gap: 14px; width: min(900px, 92%); margin: 0 auto 24px; padding: 0; list-style: none; text-align: center; font-size: clamp(16px, 1.4vw, 24px); font-weight: 600; }
.standalone-footer { padding: 14px 4%; color: #d7e4e0; background: #231f20; font-size: 13px; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) body.standalone-body { color: #e8efec; background: #101715; }
  html:not([data-theme]) .standalone-sheet { color: #e8efec; background: #192320; }
  html:not([data-theme]) .standalone-footer { color: #d7e4e0; background: #0b100f; }
  html:not([data-theme]) .standalone-note a { color: #70d8cd; }
}
html[data-theme="dark"] body.standalone-body { color: #e8efec; background: #101715; }
html[data-theme="dark"] .standalone-sheet { color: #e8efec; background: #192320; }
html[data-theme="dark"] .standalone-footer { color: #d7e4e0; background: #0b100f; }
html[data-theme="dark"] .standalone-note a { color: #70d8cd; }
@media (max-width: 700px) {
  .standalone-sheet { width: 100%; min-height: 100svh; margin: 0; box-shadow: none; }
  .standalone-header { padding: 24px 16px 0; }
  .standalone-main { min-height: calc(100svh - 100px); }
  .standalone-message { padding: 3vh 16px 104px; }
  .shrink-answer { font-size: clamp(64px, 14vw, 110px); }
  .standalone-note { max-width: 100%; margin-bottom: 22px; font-size: 14px; }
  .shrink-methods { bottom: 24px; left: 16px; }
  .standalone-links { font-size: 17px; }
}

/* Open tag lists float above card content without changing card dimensions. */
.post-tags { position: relative; align-self: stretch; margin: 12px 0 0 auto; text-align: right; }
.post-tags summary { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--brand); background: var(--brand-wash); cursor: pointer; list-style: none; }
.post-tags summary::-webkit-details-marker { display: none; }
.post-tags summary:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.post-tags ul { position: absolute; z-index: 3; right: 0; bottom: calc(100% + 7px); display: grid; width: max-content; max-width: min(300px, calc(100vw - 40px)); max-height: min(20rem, 50vh); overflow-y: auto; gap: 4px; margin: 0; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); box-shadow: 0 8px 24px rgb(0 0 0 / 22%); list-style: none; text-align: left; }
.post-tags li { margin: 0; padding: 0; }
.post-tags a { display: block; padding: 7px 9px; overflow-wrap: anywhere; font-size: 13px; }
.post-tags[data-placement="below"] ul { top: calc(100% + 7px); bottom: auto; }
.home-post-card:has(.post-tags[open]), .post-preview:has(.post-tags[open]) { position: relative; z-index: 2; overflow: visible; }
.home-post-card:has(.post-tags[open]) .home-post-card__image { border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.post-preview:has(.post-tags[open]) .post-card-image { border-radius: inherit; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.post-tags a:hover, .post-tags a:focus-visible { color: var(--brand); background: var(--brand-wash); border-radius: 6px; }

@media (max-width: 700px) {
  .post-preview:has(.post-tags[open]) .post-card-image { border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
}
.entry-content .legacy-centered-flow { clear: both; text-align: center; }
.entry-content .legacy-centered-flow--image { padding-block: 1lh; }
.entry-content .legacy-centered-flow img { display: block; margin: 0 auto; }

/* Preserve the cleared, centered legacy execution plan screenshots. */
.entry-content figure.legacy-plan-image { clear: both; margin: 0 auto; }

/* Preserve the legacy Ghostbusters post's right-floated linked image. */
.entry-content .legacy-image-flow-clear { clear: both; }
.entry-content .legacy-image-float-right { clear: right; float: right; margin: 0 0 1em 1em; }

/* Match the legacy Query Analyzer image block spacing. */
.entry-content figure.legacy-query-analyzer-figure { margin: 1em auto; }


/* Charity directory cards: a two-column matrix that collapses cleanly on narrow screens. */
.charities-pitch { max-width: 68ch; font-size: 1.08em; }
.charity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.charity-card { display: flex; min-width: 0; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); box-shadow: var(--shadow); }
.charity-card__logo { display: flex; align-items: center; justify-content: center; min-height: 130px; margin-bottom: 14px; }
.charity-card__logo-link { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; border-radius: 10px; text-decoration: none; }
.charity-card__logo-link:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }
.charity-card__logo img { display: block; width: 100%; height: 112px; max-width: 100%; object-fit: contain; border-radius: 0; }
.charity-card h2 { margin: 0 0 8px; font-size: 1.08em; line-height: 1.35; }
.charity-card h2 a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.charity-card h2 a:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; border-radius: 2px; }
.charity-card__mission { margin: 0; color: var(--muted); font-size: .94em; line-height: 1.55; }
.charity-card__mission strong { color: var(--ink); }
.charity-card__rating { position: relative; align-self: flex-end; margin-top: auto; --charity-rating-popover-width: min(260px, calc(100vw - 48px)); }
.charity-card__rating[open] { z-index: 31; }
.charity-card__rating[open]::before { position: absolute; z-index: 4; right: 0; bottom: 100%; width: var(--charity-rating-popover-width); height: 10px; content: ""; }
.charity-card__rating-trigger { display: block; list-style: none; cursor: pointer; color: var(--brand); font-size: .88em; text-decoration: underline; text-underline-offset: 3px; }
.charity-card__rating-trigger::marker { content: ""; }
.charity-card__rating-trigger::-webkit-details-marker { display: none; }
.charity-card__rating-trigger:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; border-radius: 2px; }
.charity-card__rating-trigger:hover { color: var(--brand-bright); }
.charity-card__rating-popover { position: absolute; z-index: 5; right: 0; bottom: calc(100% + 8px); width: var(--charity-rating-popover-width); padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); box-shadow: var(--shadow); color: var(--ink); font-size: .9em; }
.charity-card__rating-score { margin: 0; color: var(--brand); font-size: 1.2em; font-weight: 750; font-variant-numeric: tabular-nums; }
.charity-card__rating-date { margin: 6px 0; color: var(--muted); font-size: .9em; }
.charity-card__logo--framed { box-sizing: border-box; width: min(100%, 380px); padding: 10px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
@media (max-width: 620px) {
  .charity-grid { grid-template-columns: 1fr; gap: 12px; margin: 18px 0; }
  .charity-card { padding: 16px; }
}

/* Keep framed charity marks consistent and readable against dark cards. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .charity-card__logo--dark-contrast,
  html:not([data-theme]) .charity-card__logo--framed {
    border-color: #e8ecea;
  }
}
html[data-theme="dark"] .charity-card__logo--dark-contrast,
html[data-theme="dark"] .charity-card__logo--framed {
  border-color: #e8ecea;
}

/* Keep No Kid Hungry's tagline legible when the card switches to dark mode. */
.charity-card__logo .nkh-logo { display: block; width: 100%; height: 112px; max-width: 100%; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .charity-card__logo--dark-contrast .share-strength { fill: #fff; }
}
html[data-theme="dark"] .charity-card__logo--dark-contrast .share-strength { fill: #fff; }
