/* Generated by scripts/gen_chroma_css.py (github + github-dark) - do not edit by hand. */

/* Background */ .bg { background-color:light-dark(#f7f7f7,#0d1117);color:light-dark(#1f2328,#e6edf3) }
/* PreWrapper */ .chroma { background-color:light-dark(#f7f7f7,#0d1117);-webkit-text-size-adjust:none;color:light-dark(#1f2328,#e6edf3) }
/* Error */ .chroma .err { color:light-dark(#f6f8fa,#f85149);background-color:light-dark(#82071e,transparent) }
/* LineLink */ .chroma .lnlinks { outline:none;text-decoration:none;color:inherit }
/* LineTableTD */ .chroma .lntd { vertical-align:top;padding:0;margin:0;border:0 }
/* LineTable */ .chroma .lntable { border-spacing:0;padding:0;margin:0;border:0 }
/* LineHighlight */ .chroma .hl { background-color:light-dark(#dedede,#6e7681) }
/* LineNumbersTable */ .chroma .lnt { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:light-dark(#7f7f7f,#737679) }
/* LineNumbers */ .chroma .ln { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:light-dark(#7f7f7f,#6e7681) }
/* Line */ .chroma .line { display:flex }
/* Keyword */ .chroma .k { color:light-dark(#cf222e,#ff7b72) }
/* KeywordConstant */ .chroma .kc { color:light-dark(#cf222e,#79c0ff) }
/* KeywordDeclaration */ .chroma .kd { color:light-dark(#cf222e,#ff7b72) }
/* KeywordNamespace */ .chroma .kn { color:light-dark(#cf222e,#ff7b72) }
/* KeywordPseudo */ .chroma .kp { color:light-dark(#cf222e,#79c0ff) }
/* KeywordReserved */ .chroma .kr { color:light-dark(#cf222e,#ff7b72) }
/* KeywordType */ .chroma .kt { color:light-dark(#cf222e,#ff7b72) }
/* NameAttribute */ .chroma .na { color:light-dark(#1f2328,#e6edf3) }
/* NameClass */ .chroma .nc { color:light-dark(#1f2328,#f0883e) }
/* NameConstant */ .chroma .no { color:light-dark(#0550ae,#79c0ff) }
/* NameDecorator */ .chroma .nd { color:light-dark(#0550ae,#d2a8ff) }
/* NameEntity */ .chroma .ni { color:light-dark(#6639ba,#ffa657) }
/* NameLabel */ .chroma .nl { color:light-dark(#900,#79c0ff);font-weight:bold }
/* NameNamespace */ .chroma .nn { color:light-dark(#24292e,#ff7b72) }
/* NameOther */ .chroma .nx { color:light-dark(#1f2328,#e6edf3) }
/* NameTag */ .chroma .nt { color:light-dark(#0550ae,#7ee787) }
/* NameBuiltin */ .chroma .nb { color:light-dark(#6639ba,#e6edf3) }
/* NameBuiltinPseudo */ .chroma .bp { color:light-dark(#6a737d,#e6edf3) }
/* NameVariable */ .chroma .nv { color:light-dark(#953800,#79c0ff) }
/* NameVariableClass */ .chroma .vc { color:light-dark(#953800,#79c0ff) }
/* NameVariableGlobal */ .chroma .vg { color:light-dark(#953800,#79c0ff) }
/* NameVariableInstance */ .chroma .vi { color:light-dark(#953800,#79c0ff) }
/* NameVariableMagic */ .chroma .vm { color:light-dark(#953800,#79c0ff) }
/* NameFunction */ .chroma .nf { color:light-dark(#6639ba,#d2a8ff) }
/* NameFunctionMagic */ .chroma .fm { color:light-dark(#6639ba,#d2a8ff) }
/* LiteralString */ .chroma .s { color:light-dark(#0a3069,#a5d6ff) }
/* LiteralStringAffix */ .chroma .sa { color:light-dark(#0a3069,#79c0ff) }
/* LiteralStringBacktick */ .chroma .sb { color:light-dark(#0a3069,#a5d6ff) }
/* LiteralStringChar */ .chroma .sc { color:light-dark(#0a3069,#a5d6ff) }
/* LiteralStringDelimiter */ .chroma .dl { color:light-dark(#0a3069,#79c0ff) }
/* LiteralStringDoc */ .chroma .sd { color:light-dark(#0a3069,#a5d6ff) }
/* LiteralStringDouble */ .chroma .s2 { color:light-dark(#0a3069,#a5d6ff) }
/* LiteralStringEscape */ .chroma .se { color:light-dark(#0a3069,#79c0ff) }
/* LiteralStringHeredoc */ .chroma .sh { color:light-dark(#0a3069,#79c0ff) }
/* LiteralStringInterpol */ .chroma .si { color:light-dark(#0a3069,#a5d6ff) }
/* LiteralStringOther */ .chroma .sx { color:light-dark(#0a3069,#a5d6ff) }
/* LiteralStringRegex */ .chroma .sr { color:light-dark(#0a3069,#79c0ff) }
/* LiteralStringSingle */ .chroma .s1 { color:light-dark(#0a3069,#a5d6ff) }
/* LiteralStringSymbol */ .chroma .ss { color:light-dark(#032f62,#a5d6ff) }
/* LiteralNumber */ .chroma .m { color:light-dark(#0550ae,#a5d6ff) }
/* LiteralNumberBin */ .chroma .mb { color:light-dark(#0550ae,#a5d6ff) }
/* LiteralNumberFloat */ .chroma .mf { color:light-dark(#0550ae,#a5d6ff) }
/* LiteralNumberHex */ .chroma .mh { color:light-dark(#0550ae,#a5d6ff) }
/* LiteralNumberInteger */ .chroma .mi { color:light-dark(#0550ae,#a5d6ff) }
/* LiteralNumberIntegerLong */ .chroma .il { color:light-dark(#0550ae,#a5d6ff) }
/* LiteralNumberOct */ .chroma .mo { color:light-dark(#0550ae,#a5d6ff) }
/* Operator */ .chroma .o { color:light-dark(#0550ae,#ff7b72) }
/* OperatorWord */ .chroma .ow { color:light-dark(#0550ae,#ff7b72) }
/* OperatorReserved */ .chroma .or { color:light-dark(#0550ae,#ff7b72) }
/* Punctuation */ .chroma .p { color:light-dark(#1f2328,#e6edf3) }
/* Comment */ .chroma .c { color:light-dark(#57606a,#8b949e) }
/* CommentHashbang */ .chroma .ch { color:light-dark(#57606a,#8b949e) }
/* CommentMultiline */ .chroma .cm { color:light-dark(#57606a,#8b949e) }
/* CommentSingle */ .chroma .c1 { color:light-dark(#57606a,#8b949e) }
/* CommentSpecial */ .chroma .cs { color:light-dark(#57606a,#8b949e) }
/* CommentPreproc */ .chroma .cp { color:light-dark(#57606a,#8b949e) }
/* CommentPreprocFile */ .chroma .cpf { color:light-dark(#57606a,#8b949e) }
/* GenericDeleted */ .chroma .gd { color:light-dark(#82071e,#ffa198);background-color:light-dark(#ffebe9,#490202) }
/* GenericEmph */ .chroma .ge { color:light-dark(#1f2328,#e6edf3) }
/* GenericInserted */ .chroma .gi { color:light-dark(#116329,#56d364);background-color:light-dark(#dafbe1,#0f5323) }
/* GenericOutput */ .chroma .go { color:light-dark(#1f2328,#8b949e) }
/* GenericUnderline */ .chroma .gl { text-decoration:underline }
/* TextWhitespace */ .chroma .w { color:light-dark(#fff,#6e7681) }
/* NameException */ .chroma .ne { color:light-dark(#1f2328,#f0883e) }
/* NameProperty */ .chroma .py { color:light-dark(#1f2328,#79c0ff) }
/* Literal */ .chroma .l { color:light-dark(#1f2328,#a5d6ff) }
/* LiteralDate */ .chroma .ld { color:light-dark(#1f2328,#79c0ff) }
/* GenericError */ .chroma .gr { color:light-dark(#1f2328,#ffa198) }
/* GenericHeading */ .chroma .gh { color:light-dark(#1f2328,#79c0ff) }
/* GenericPrompt */ .chroma .gp { color:light-dark(#1f2328,#8b949e) }
/* GenericSubheading */ .chroma .gu { color:light-dark(#1f2328,#79c0ff) }
/* GenericTraceback */ .chroma .gt { color:light-dark(#1f2328,#ff7b72) }
:root {
  /* Brand palette (raw values). */
  --color-edgj-light-blue: rgb(0, 92, 151);
  --color-edgj-navy: rgb(14, 23, 38);
  --color-overlay-bg: rgba(59, 68, 75, 0.5);
  --color-text-light: #ffffff;

  /* Semantic tokens. Each resolves via light-dark() against the active
     color-scheme, so the whole palette flips with no JavaScript. */
  --color-bg: light-dark(#ffffff, #14181d);
  --color-text: light-dark(#1c1e21, #d7dade);
  --color-muted: light-dark(#555555, #9aa1a9);
  --color-accent: light-dark(var(--color-edgj-light-blue), rgb(125, 180, 226));
  --color-border: var(--color-accent);
  --color-surface: light-dark(#f3f5f7, #1e242b);

  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: light dark;
  interpolate-size: allow-keywords;
}

/* The header checkbox (no JavaScript) forces the scheme *opposite* to the
   system preference; unchecked means "follow the system". light-dark()
   tokens and form controls all flip with it. State is per-page: a static
   site has nowhere to persist it without JS or a server-set cookie. */
@media (prefers-color-scheme: light) {
  html:has(.theme-toggle-input:checked) {
    color-scheme: dark;
  }
}
@media (prefers-color-scheme: dark) {
  html:has(.theme-toggle-input:checked) {
    color-scheme: light;
  }
}

body {
  font-family: "IBM Plex Sans", Verdana, Geneva, Tahoma, sans-serif;
  line-height: 1.6;
  /* Comfortable reading measure; figures may break out wider (see
     .photo-container and .photo-page). */
  max-width: 72ch;
  margin-inline: auto;
  padding-inline: 1rem;
  background-color: var(--color-bg);
  color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  /* Real SemiBold glyphs (woff2 below) instead of synthesized bold. */
  font-weight: 600;
  text-wrap: balance;
}

b,
strong,
th {
  font-weight: 600;
}

p,
li,
figcaption {
  text-wrap: pretty;
}

:is(h1, h2, h3, h4, h5, h6)[id] {
  scroll-margin-block-start: 1rem;
}

a {
  color: var(--color-accent);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* || Inline code and keys */

code {
  font-family: var(--font-mono);
}

:not(pre) > code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background-color: var(--color-surface);
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.05em 0.4em;
  border: 1px solid var(--color-muted);
  border-block-end-width: 2px;
  border-radius: 3px;
  background-color: var(--color-surface);
}

/* || Blockquotes and GitHub-style alerts */

blockquote {
  margin-inline: 0;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--color-border);
  color: var(--color-muted);
}

blockquote.alert {
  --alert-accent: var(--color-accent);
  padding-block: 0.5rem;
  padding-inline-end: 1rem;
  border-inline-start-color: var(--alert-accent);
  border-radius: 0 4px 4px 0;
  background-color: color-mix(in srgb, var(--alert-accent) 7%, transparent);
  color: var(--color-text);
}

blockquote.alert > :last-child {
  margin-block-end: 0;
}

.alert-heading {
  margin-block: 0 0.4rem;
  font-weight: 600;
  color: var(--alert-accent);
}

.alert-tip {
  --alert-accent: light-dark(#1a7f37, #3fb950);
}

.alert-warning {
  --alert-accent: light-dark(#9a6700, #d29922);
}

.alert-caution {
  --alert-accent: light-dark(#cf222e, #f85149);
}

article {
  text-align: start;
}

article header p {
  font-size: smaller;
}

body > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.2rem;
  margin-block: 1.5rem;
  border-block-end: 1px solid var(--color-border);
}

.site-title {
  margin: 0;
  font-size: 1.3rem;
}

/* The sun/moon in the site title doubles as the dark-mode toggle: a label
   for the visually-hidden checkbox at the top of <header>. Its box is held
   at 24px minimum so the target meets WCAG 2.5.8 even though the glyph is
   smaller. */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  min-inline-size: 24px;
  min-block-size: 24px;
  vertical-align: middle;
  cursor: pointer;
}

.theme-toggle-input,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.theme-toggle-input:focus-visible ~ .site-title .theme-toggle {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* An icon for the page's *current* scheme: a sun when light is active, a
   moon when dark is. Both glyphs are masks stacked in the same grid cell,
   and each is filled only in its own scheme (transparent in the other).
   light-dark() resolves against the color-scheme rules above, so the swap
   needs no per-preference media queries. */
.theme-toggle-icon {
  display: grid;
  inline-size: 0.85em;
  aspect-ratio: 1;
  color: var(--color-text);
}

.theme-toggle-icon::before,
.theme-toggle-icon::after {
  content: "";
  grid-area: 1 / 1;
}

.theme-toggle-icon::before {
  background-color: light-dark(currentColor, transparent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.25'/%3E%3Cpath d='M8 .9v1.7M8 13.4v1.7M.9 8h1.7M13.4 8h1.7M2.98 2.98l1.2 1.2M11.82 11.82l1.2 1.2M2.98 13.02l1.2-1.2M11.82 4.18l1.2-1.2' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.theme-toggle-icon::after {
  background-color: light-dark(transparent, currentColor);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 1.2a7 7 0 1 0 8.6 8.6A5.6 5.6 0 0 1 6.2 1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.theme-toggle:hover .theme-toggle-icon {
  color: var(--color-accent);
}

/* Forced-colors mode replaces background colours, which would erase both
   glyphs. Opt out and fill with the system text colour instead (see the
   note on currentColor under "Monochrome icons"). */
@media (forced-colors: active) {
  .theme-toggle-icon::before,
  .theme-toggle-icon::after {
    forced-color-adjust: none;
  }
  .theme-toggle-icon::before {
    background-color: light-dark(CanvasText, transparent);
  }
  .theme-toggle-icon::after {
    background-color: light-dark(transparent, CanvasText);
  }
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
  margin: 0;
  font-size: 1.3rem;
  gap: 0.4rem 1.2rem;
}

body > header nav a {
  text-decoration: none;
}

body > header nav a:hover {
  text-decoration: underline;
}

body > header nav a[aria-current="page"] {
  border-block-end: 2px solid var(--color-accent);
}

footer {
  font-size: smaller;
  text-align: center;
  margin-block: 1.5rem;
  padding-block-start: 0.5rem;
  border-block-start: 1px solid var(--color-border);
}

footer ul {
  display: flex;
  list-style: none;
  justify-content: center;
  padding: 0;
  flex-wrap: wrap;
  font-size: 1.3rem;
  column-gap: 1.875rem;
}

footer a {
  text-decoration: none;
}

/* || Monochrome icons
   The CC and RSS glyphs are used as masks over a currentColor fill, so they
   take the surrounding link colour in either scheme (an <img> can't: its
   SVG renders in its own document, where currentColor is always black).
   Sized in rem so they scale with the reader's font-size setting. Mastodon
   and Signal stay as <img> — they're brand-coloured. */
.icon {
  display: inline-block;
  inline-size: 1.125rem;
  block-size: 1.125rem;
  vertical-align: text-bottom;
  background-color: currentColor;
  mask: var(--icon) center / contain no-repeat;
}

/* Pads a lone icon link out to the 24x24px minimum target size (WCAG 2.5.8)
   without growing the glyph. */
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 1.5rem;
  min-block-size: 1.5rem;
}

/* Embedded as data: URIs (the CSP's img-src allows them) so the footer icons
   paint with the stylesheet instead of waiting on four more requests. */
.icon-cc { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M14.972 0c4.196 0 7.769 1.465 10.715 4.393A14.426 14.426 0 0128.9 9.228C29.633 11.04 30 12.964 30 15c0 2.054-.363 3.978-1.085 5.772a13.77 13.77 0 01-3.2 4.754 15.417 15.417 0 01-4.983 3.322A14.932 14.932 0 0114.973 30c-1.982 0-3.88-.38-5.692-1.14a15.087 15.087 0 01-4.875-3.293c-1.437-1.437-2.531-3.058-3.281-4.862A14.71 14.71 0 010 15c0-1.982.38-3.888 1.138-5.719a15.062 15.062 0 013.308-4.915C7.303 1.456 10.812 0 14.972 0zm.055 2.706c-3.429 0-6.313 1.196-8.652 3.589a12.896 12.896 0 00-2.72 4.031 11.814 11.814 0 00-.95 4.675c0 1.607.316 3.156.95 4.646a12.428 12.428 0 002.72 3.992 12.362 12.362 0 003.99 2.679c1.483.616 3.037.924 4.662.924 1.607 0 3.164-.312 4.675-.937a12.954 12.954 0 004.084-2.705c2.339-2.286 3.508-5.152 3.508-8.6 0-1.66-.304-3.231-.91-4.713a11.994 11.994 0 00-2.651-3.965c-2.412-2.41-5.314-3.616-8.706-3.616zm-.188 9.803l-2.01 1.045c-.215-.445-.477-.758-.79-.937-.312-.178-.602-.268-.87-.268-1.34 0-2.01.884-2.01 2.652 0 .803.17 1.446.509 1.928.34.482.84.724 1.5.724.876 0 1.492-.43 1.85-1.286l1.847.937a4.407 4.407 0 01-1.634 1.728c-.696.42-1.464.63-2.303.63-1.34 0-2.42-.41-3.242-1.233-.821-.82-1.232-1.964-1.232-3.428 0-1.428.416-2.562 1.246-3.401.83-.84 1.879-1.26 3.147-1.26 1.858 0 3.188.723 3.992 2.17zm8.652 0l-1.983 1.045c-.214-.445-.478-.758-.79-.937-.313-.178-.613-.268-.897-.268-1.34 0-2.01.884-2.01 2.652 0 .803.17 1.446.51 1.928.338.482.838.724 1.5.724.874 0 1.49-.43 1.847-1.286l1.875.937a4.606 4.606 0 01-1.66 1.728c-.696.42-1.455.63-2.277.63-1.357 0-2.441-.41-3.253-1.233-.814-.82-1.22-1.964-1.22-3.428 0-1.428.415-2.562 1.246-3.401.83-.84 1.879-1.26 3.147-1.26 1.857 0 3.18.723 3.965 2.17z'/%3E%3C/svg%3E"); }
.icon-cc-by { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M14.973 0c4.213 0 7.768 1.446 10.66 4.34C28.544 7.25 30 10.803 30 15c0 4.215-1.43 7.723-4.287 10.526C22.678 28.51 19.098 30 14.973 30c-4.054 0-7.571-1.474-10.553-4.42C1.474 22.633 0 19.107 0 15S1.474 7.34 4.42 4.34C7.313 1.446 10.83 0 14.973 0zm.054 2.706c-3.41 0-6.295 1.196-8.652 3.589-2.447 2.5-3.67 5.402-3.67 8.706 0 3.321 1.214 6.196 3.642 8.624 2.429 2.429 5.322 3.642 8.679 3.642 3.339 0 6.25-1.222 8.732-3.67 2.358-2.267 3.536-5.133 3.536-8.598 0-3.41-1.197-6.311-3.589-8.705-2.392-2.392-5.285-3.588-8.678-3.588zm4.018 8.57v6.134H17.33v7.286h-4.66V17.41h-1.714v-6.134a.93.93 0 01.28-.683.933.933 0 01.684-.281h6.161c.25 0 .474.093.67.28a.912.912 0 01.294.684zM12.91 7.42c0-1.41.696-2.116 2.09-2.116s2.09.705 2.09 2.116c0 1.393-.697 2.09-2.09 2.09-1.393 0-2.09-.697-2.09-2.09z'/%3E%3C/svg%3E"); }
.icon-cc-nc { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M14.973 0c4.214 0 7.768 1.446 10.66 4.339C28.544 7.232 30 10.786 30 15c0 4.215-1.429 7.723-4.287 10.527C22.678 28.51 19.097 30 14.973 30c-4.072 0-7.59-1.482-10.553-4.446C1.474 22.607 0 19.09 0 15c0-4.107 1.474-7.66 4.42-10.66C7.313 1.446 10.83 0 14.973 0zM3.375 10.956c-.446 1.232-.67 2.58-.67 4.045 0 3.321 1.214 6.196 3.642 8.624 2.447 2.412 5.34 3.617 8.679 3.617 3.375 0 6.285-1.223 8.733-3.67.875-.839 1.561-1.714 2.061-2.626l-5.651-2.518a3.866 3.866 0 01-1.433 2.317c-.76.598-1.657.943-2.693 1.031v2.304h-1.74v-2.304c-1.661-.017-3.18-.615-4.554-1.794l2.063-2.089c.981.91 2.098 1.366 3.348 1.366.517 0 .96-.116 1.326-.349.366-.231.55-.615.55-1.151 0-.376-.135-.68-.402-.911l-1.447-.617-1.767-.804-2.384-1.044-7.661-3.427zm11.652-8.278c-3.41 0-6.295 1.206-8.652 3.616-.59.59-1.143 1.26-1.66 2.01l5.732 2.571a3.513 3.513 0 011.42-1.888c.695-.473 1.508-.737 2.437-.79V5.893h1.741v2.304c1.376.071 2.625.535 3.75 1.392L17.84 11.6c-.84-.59-1.697-.884-2.572-.884-.464 0-.88.09-1.245.267-.366.179-.55.483-.55.911 0 .125.045.25.134.375l1.902.858 1.313.59 2.41 1.07 7.687 3.429c.25-1.054.375-2.125.375-3.214 0-3.447-1.196-6.349-3.588-8.707-2.375-2.41-5.27-3.616-8.68-3.616z'/%3E%3C/svg%3E"); }
.icon-rss { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 96 960 960'%3E%3Cpath d='M215.788 912Q186 912 165 890.788q-21-21.213-21-51Q144 810 165.212 789q21.213-21 51-21Q246 768 267 789.212q21 21.213 21 51Q288 870 266.788 891q-21.213 21-51 21ZM720 912q0-119-45.5-224T551 505q-78-78-183-123.5T144 336v-96q139.341 0 261.882 52.871 122.542 52.87 213.459 143.788 90.918 90.917 143.788 213.459Q816 772.659 816 912h-96Zm-240 0q0-140-98.175-238T144 576v-96q90 0 168.621 33.873 78.62 33.872 137.095 92.291 58.474 58.418 92.379 136.963Q576 821.673 576 912h-96Z'/%3E%3C/svg%3E"); }

.build-info {
  max-inline-size: 32rem;
  margin: 1.75rem auto 0;
  text-align: start;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
}

.build-info > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-accent);
  width: max-content;
  margin: -0.75em auto 0;
  padding: 0 0.6rem;
  background: var(--color-bg);
  list-style: none;
}

.build-info > summary::-webkit-details-marker,
.build-info > summary::marker {
  display: none;
  content: "";
}

.build-info::details-content {
  block-size: 0;
  opacity: 0;
  overflow: clip;
  transition: content-visibility 1s ease allow-discrete,
              block-size 1s ease,
              opacity 0.8s ease;
}

.build-info[open]::details-content {
  block-size: auto;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .build-info::details-content {
    transition: none;
  }
}

.build-info-card {
  margin-block-start: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.build-info-card section {
  padding: 0.6rem 1rem;
  border-block-end: 1px dashed color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.build-info-card section:last-child {
  border-block-end: none;
}

.build-info-card h2 {
  margin: 0 0 0.3rem;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  opacity: 0.75;
}

.build-info-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.2rem 1.25rem;
  margin: 0;
}

.build-info-card dt {
  font-weight: 600;
  color: var(--color-accent);
}

.build-info-card dd {
  margin: 0;
  word-break: break-word;
}

.build-info-card .session-info {
  display: block;
  inline-size: 100%;
  max-inline-size: 21rem;
  height: auto;
  margin-block-start: 0.1rem;
}

.build-info-card .build-verify {
  background: color-mix(in srgb, var(--color-accent) 6%, transparent);
}

.build-info-card .build-verify > details > summary {
  cursor: pointer;
  margin: 0 0 0.3rem;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  opacity: 0.75;
  list-style: revert;
}

.build-info-card .build-verify > details::details-content {
  block-size: 0;
  opacity: 0;
  overflow: clip;
  transition: content-visibility 1s ease allow-discrete,
              block-size 1s ease,
              opacity 0.8s ease;
}

.build-info-card .build-verify > details[open]::details-content {
  block-size: auto;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .build-info-card .build-verify > details::details-content {
    transition: none;
  }
}

.build-info-card .build-verify p {
  margin: 0 0 0.4rem;
}

.build-info-card .build-verify pre {
  margin: 0;
  padding: 0.5rem 0.6rem;
  background: var(--color-edgj-navy);
  color: var(--color-text-light);
  border-radius: 3px;
  overflow-x: auto;
  font-size: 0.95em;
  line-height: 1.4;
}

/* Scoped to prose so the icon can't dangle after a link-wrapped image. */
main :is(p, li, figcaption) a[href^='http']::after {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-inline-start: 0.3em;
  vertical-align: middle;
  background-color: currentColor;
  /* SVG for the mask - paths will default to black, forming the shape */
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 2h-3a.5.5 0 0 0 0 1h1.8L7.65 7.65a.5.5 0 0 0 .7.7L13 3.7v1.8a.5.5 0 0 0 1 0v-3a.5.5 0 0 0-.5-.5Z'/%3E%3Cpath d='M12 11a.5.5 0 0 0-.5.5v1.5H4V5h1.5a.5.5 0 0 0 0-1H3.5A.5.5 0 0 0 3 4.5v9a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V11.5A.5.5 0 0 0 12 11Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Forced-colors mode (e.g. Windows High Contrast) replaces background
   colours, which would erase mask-drawn icons. Opt them out and paint them
   in the system colours instead. currentColor isn't an option: with
   forced-color-adjust: none it resolves to the author colour, not the forced
   link colour. So mirror the link states by hand: LinkText, VisitedText for
   visited links, and CanvasText for an icon outside any link. */
@media (forced-colors: active) {
  .icon,
  main :is(p, li, figcaption) a[href^='http']::after {
    forced-color-adjust: none;
    background-color: CanvasText;
  }

  a > .icon,
  main :is(p, li, figcaption) a[href^='http']::after {
    background-color: LinkText;
  }

  a:visited > .icon,
  main :is(p, li, figcaption) a[href^='http']:visited::after {
    background-color: VisitedText;
  }
}

/* Link that wraps a clickable image (navigates to the full-screen photo page). */
.photo-trigger {
  display: block;
  cursor: zoom-in;
}
.photo-trigger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

img,
video,
iframe {
  max-inline-size: 100%;
  block-size: auto;
}

@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans";
  font-weight: 400;
  src: url("/fonts/ibm-plex-sans-v14-latin-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans";
  font-weight: 600;
  src: url("/fonts/ibm-plex-sans-semibold-latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131,
    U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A,
    U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC,
    U+2122, U+2212, U+FB01-FB02;
}

h1 {
  text-align: center;
  margin-block: 0.67em;
  font-size: 2em;
}

.post-metadata {
  opacity: 0.4;
  text-align: center;
  font-style: italic;
}

.content p {
  text-align: start;
}

ol.posts-toc-index {
  list-style-type: square;
}

ol.posts-toc {
  list-style-type: none;
}

/* || Photo Overlay */

.photo-container {
  position: relative;
  display: block;
  /* Photos are first-class: shrink to the image but allow breaking out of
     the 72ch text column, up to 56rem. left + translateX centres the figure
     even when it is wider than its container (auto margins can't). The
     extra rem of slack keeps wide figures clear of the scrollbar, which
     100vw includes. */
  width: fit-content;
  max-width: min(56rem, calc(100vw - 3rem));
  margin-block: 2.5rem;
  margin-inline: 0;
  left: 50%;
  transform: translateX(-50%);
}

.photo-container img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.photo-caption-overlay {
  border-radius: 0 0 6px 6px;
}

/* || Photo Gallery (CSS grid of figure-overlay tiles, no JavaScript) */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
  gap: 0.75rem;
  width: min(56rem, calc(100vw - 3rem));
  margin-block: 2.5rem;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* Tiles fill their grid cell; undo the standalone-figure breakout. */
.gallery .photo-container {
  width: auto;
  max-width: none;
  margin: 0;
  left: auto;
  transform: none;
}

/* Uniform tiles: equal-width columns and a fixed crop ratio. */
.gallery .photo-container img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 60%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5em 1em;
  text-align: center;
  font-size: 0.9em;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}
.photo-caption-overlay a {
  color: white;
  text-decoration: none;
}
.photo-caption-overlay a:hover {
  text-decoration: underline;
}
/* Only hover-capable devices reveal overlays on hover/focus. (Gating focus-within to
   these devices also prevents the overlays re-appearing on touch when focus returns to
   the trigger button after the lightbox closes.) */
@media (hover: hover) {
  .photo-container:hover .photo-caption-overlay,
  .photo-container:focus-within .photo-caption-overlay {
    opacity: 1;
    visibility: visible;
  }
}

.photo-caption-below {
  padding: 0.5em 0;
  font-size: 0.9em;
  color: var(--color-muted);
  text-align: center;
}
.photo-caption-below a {
  color: inherit;
}

.photo-exif-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
  overflow-y: auto;
  overflow-wrap: anywhere;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.5em;
  font-size: 0.8em;
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}
@media (hover: hover) {
  .photo-container:hover .photo-exif-overlay,
  .photo-container:focus-within .photo-exif-overlay {
    opacity: 1;
    visibility: visible;
  }
}

/* Tap-to-toggle for touch devices: a hidden checkbox, flipped by the info button, reveals
   the overlays. Visually hidden but kept focusable so the toggle is keyboard-operable. */
.photo-details-toggle,
.photo-details-srlabel {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.photo-details-toggle:checked ~ .photo-exif-overlay,
.photo-details-toggle:checked ~ .photo-caption-overlay {
  opacity: 1;
  visibility: visible;
}

/* The info button is only needed where hover isn't available. */
.photo-details-btn {
  display: none;
}

/* On hover-capable devices the overlays reveal on hover, so the toggle is unused; remove it
   from the layout and a11y tree (otherwise the visually-hidden checkbox stays focusable). */
@media (hover: hover) {
  .photo-details-toggle {
    display: none;
  }
}

.photo-details-toggle:focus-visible ~ .photo-details-btn {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (hover: none) {
  /* On touch the overlays are revealed over the image by the info button (tap-to-toggle).
     They're size-capped (max-width/max-height above) and scroll internally so they can't
     cover the whole photo. Keep the EXIF box clear of the top-right button. */
  .photo-exif-overlay {
    max-width: calc(100% - 60px);
  }

  /* The info button sits in the image's top-right corner, drawn as a white info-circle SVG
     (recoloured via the mask + background-color) with a drop-shadow so it stays legible
     over light photos. */
  .photo-details-btn {
    display: block;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 1.75rem;
    height: 1.75rem;
    cursor: pointer;
    z-index: 2;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  }
  /* The glyph is drawn on ::before so the mask doesn't also clip the
     label's focus outline, nor the drop-shadow (mask applies after filter,
     so on one element the shadow is masked away). */
  .photo-details-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #fff;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zM8 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm1 3H7v6h2z'/%3E%3C/svg%3E")
      center / contain no-repeat;
  }
}

/* The info button is a white mask over the photo itself, not over the page
   background, so keep its fill in forced-colors mode too. */
@media (forced-colors: active) {
  .photo-details-btn::before {
    forced-color-adjust: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-caption-overlay,
  .photo-exif-overlay {
    transition: none;
  }
}

/* Styling for items within the EXIF overlay (from exif.html) */
.exif-details .exif-item {
  margin-bottom: 0.3em;
}
.exif-details .exif-item:last-child {
  margin-bottom: 0;
}

/* Year groups on the posts list are <h2> for a correct document outline
   (h1 -> h2), but keep the visual size of the <h3> they used to be. */
.posts-year {
  font-size: 1.17em;
  margin-block: 1em;
}

/* || Tables */

.data-table {
  overflow-x: auto;
  margin-block: 1.5rem;
}

table {
  table-layout: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

caption {
  caption-side: top;
  text-align: start;
  padding-block-end: 0.5rem;
  font-weight: 600;
  color: var(--color-muted);
}

th,
td {
  padding: 0.5rem 0.75rem;
  text-align: start;
}

thead th {
  border-block-end: 2px solid var(--color-border);
}

/* Hairlines between body rows; per-cell alignment from markdown still
   applies via the table shortcode's inline styles. */
tbody th,
tbody td {
  border-block-end: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent);
}

tfoot th {
  text-align: end;
}

/* Column alignment from markdown (:---: etc.). Emitted as classes by
   _markup/render-table.html, because the CSP's default-src 'self' blocks
   inline style="" attributes. */
:is(th, td).align-left { text-align: left; }
:is(th, td).align-center { text-align: center; }
:is(th, td).align-right { text-align: right; }


.anchor {
  text-decoration: none;
  margin-left: 0.25em; /* Adjust spacing as needed */
  font-weight: normal;
  opacity: 0.25;

  &:hover,
  &:focus-visible {
    opacity: 0.8;
    text-decoration: underline;
  }
}

/* Keep headings quiet until pointed at; touch devices (no hover) retain
   the always-visible faint anchor above. */
@media (hover: hover) {
  .anchor {
    opacity: 0;
  }

  :is(h1, h2, h3, h4, h5, h6):hover .anchor,
  .anchor:focus-visible {
    opacity: 0.8;
  }
}

#page-title .anchor {
  visibility: hidden;
}

/* || Photo Page (full-screen view, one HTML page per image) */

.photo-page {
  /* Escape the 90ch body cap so the image can use the whole viewport. The
     negative margin trick pulls the panel back to the viewport edges from
     within the constrained <body> + <main>. */
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  box-sizing: border-box;
}

.photo-page-nav {
  align-self: flex-start;
  font-size: 0.95em;
}

.photo-page-back {
  text-decoration: none;
}
.photo-page-back:hover,
.photo-page-back:focus-visible {
  text-decoration: underline;
}

.photo-page-figure {
  margin: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.photo-page-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  height: auto;
  width: auto;
  object-fit: contain;
}

.photo-page-caption {
  max-width: 70ch;
  text-align: center;
  font-size: 0.95em;
  color: var(--color-muted);
}

.photo-page-caption-text {
  margin: 0 0 0.5em;
}

.photo-page-exif {
  font-size: 0.85em;
  opacity: 0.85;
}

/* || Page transitions
   Cross-document view transitions: a cross-fade between pages, and the
   clicked thumbnail grows into the photo page's image. No JavaScript — the
   thumbnail is named only while hovered or keyboard-focused, so exactly one
   element per page carries the name when navigation starts. Browsers without
   support (or readers who prefer reduced motion) just navigate normally. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* Hover is matched on the figure, not the link: the EXIF and caption
   overlays sit on top of the link, so the pointer is often over one of them
   (and off the link itself) at the moment of the click. */
.photo-container:hover .photo-trigger img,
.photo-trigger:focus-visible img,
.photo-page-figure img {
  view-transition-name: photo;
}

/* Gallery thumbnails are 4:3 object-fit: cover crops, but the photo page
   shows the whole image. By default the snapshots stretch to the animating
   box, squashing the picture mid-morph; instead let the group interpolate
   the box and have each snapshot cover it, so the crop opens up as it grows.
   Clipping stops the covering snapshot spilling out of the group. */
::view-transition-group(photo) {
  overflow: clip;
}

::view-transition-old(photo),
::view-transition-new(photo) {
  block-size: 100%;
  inline-size: 100%;
  object-fit: cover;
}

/* || Code blocks
   Token colours come from chroma.css (generated, light-dark() aware);
   this is just the shell around them. */

pre {
  overflow-x: auto;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  line-height: 1.5;
  tab-size: 2;
  background-color: var(--color-surface);
}

pre code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* || Safari mask workaround
   WebKit bugs 301609 and 320220: mask-drawn pseudo-elements can fail to paint
   until the user interacts with the page. A zero-length animation on them
   forces a repaint. The @supports list matches Safari only, so other engines
   never see it. Scoped to this site's masked pseudo-elements (the
   external-link glyph, the theme toggle and the photo info button) rather
   than every ::before/::after; none has an animation of its own to clobber, so the
   guide's @layer wrapper (which vnu's CSS checker rejects) isn't needed. */
@keyframes webkit-301609 {}

@supports ((-webkit-nbsp-mode: normal) or (-webkit-touch-callout: none) or (font: -apple-system-body)) and (content-visibility: auto) {
  main :is(p, li, figcaption) a[href^='http']::after,
  .theme-toggle-icon::before,
  .theme-toggle-icon::after,
  .photo-details-btn::before {
    animation: webkit-301609 0s;
  }
}
