/* xftf.org — palette carried over from the Odoo site it replaced:
   --o-color-1 #38383B, --o-color-5 #202022, --o-color-2 #a1a1a1,
   --o-color-3 #f2f2f3, with the inline accents rgb(47,113,142) steel blue
   and rgb(210,65,65) red. */

:root {
  --ink:      #202022;
  --charcoal: #38383B;
  --grey:     #6c6c70;
  --line:     #dfdfe2;
  --sunken:   #f2f2f3;
  --paper:    #ffffff;
  --accent:   #2f718e;
  --accent-d: #24596f;
  --red:      #d24141;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:      #f2f2f3;
    --charcoal: #e4e4e7;
    --grey:     #a1a1a1;
    --line:     #35353a;
    --sunken:   #26262a;
    --paper:    #202022;
    --accent:   #6aa9c4;
    --accent-d: #8cc0d6;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
/* The counterpart to .wrap: a section that spans the whole page instead of the
   68rem column. It still needs .wrap's side padding, because .band only sets
   padding-top/bottom and text against the edge of the screen is the one thing
   full width must not cost. */
.bleed { max-width: none; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.bar {
  max-width: var(--wrap); margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; margin-right: auto; }
/* The logo carries height="40", but the global `img { height: auto }` wins over
   the attribute, so it was rendering at its natural size — about 110px on a
   desktop and a quarter of the screen on a phone, pushing the hero below the
   fold. */
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: .3rem 1.05rem; flex-wrap: wrap; }
.nav a {
  color: var(--charcoal); text-decoration: none;
  font-size: .925rem; font-weight: 500; padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav a.cta {
  background: var(--accent); color: #fff; border-radius: 4px;
  padding: .4rem .85rem; border-bottom: 0;
}
.nav a.cta:hover { background: var(--accent-d); color: #fff; }

.navtoggle, .burger { display: none; }

@media (max-width: 52rem) {
  .burger {
    display: flex; flex-direction: column; gap: 4px; cursor: pointer; padding: .5rem;
  }
  .burger span { width: 22px; height: 2px; background: var(--charcoal); }
  .nav {
    display: none; flex-basis: 100%; flex-direction: column;
    align-items: flex-start; gap: .1rem; padding-bottom: .5rem;
  }
  .navtoggle:checked ~ .nav { display: flex; }
}

/* ---------- hero + bands ---------- */
.hero { background: var(--sunken); border-bottom: 1px solid var(--line); padding: 3rem 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center;
}
@media (max-width: 52rem) { .hero-grid { grid-template-columns: 1fr; } }

.band { padding-top: 2.75rem; padding-bottom: 2.75rem; }
/* padding-top/bottom, NOT the `padding: 2.75rem 0` this used to be. Every band
   on the site is `class="wrap band"`, and the shorthand reset .wrap's
   `padding: 0 1.25rem` to zero — invisible on a desktop, where the 68rem
   max-width leaves margin anyway, and on a phone it put every heading and
   paragraph hard against the edge of the screen. */

.eyebrow {
  margin: 0 0 .5rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
h1 {
  font-size: clamp(1.8rem, 4.6vw, 2.7rem); line-height: 1.12;
  letter-spacing: -.02em; color: var(--ink); margin: 0 0 .8rem; text-wrap: balance;
}
h2 {
  font-size: 1.4rem; line-height: 1.25; letter-spacing: -.01em;
  color: var(--ink); margin: 0 0 .7rem; text-wrap: balance;
}
h3 { font-size: 1.03rem; color: var(--ink); margin: .7rem 0 0; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.1rem; color: var(--grey); }
.prose { max-width: 62ch; }
.meta { color: var(--grey); font-size: .875rem; }

.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: .62rem 1.15rem; border-radius: 4px; text-decoration: none;
  font-weight: 600; font-size: .95rem; border: 1px solid var(--accent); cursor: pointer;
}
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- crew ---------- */
.crew {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1.5rem;
}
.crew li { text-align: center; }
.crew img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; background: var(--sunken);
}

/* A circular headshot gives no hint that it is clickable, so the ring and the
   lift are the whole signal — plus the arrow the heading picks up from .ext.
   Focus is styled as deliberately as hover: this is reachable by keyboard and
   the ring is the only thing telling you where you are. */
.crew-link { display: block; text-decoration: none; color: inherit; border-radius: 8px; }
.crew-link img { transition: transform .15s ease, box-shadow .15s ease; }
.crew-link:hover img,
.crew-link:focus-visible img {
  box-shadow: 0 0 0 3px var(--accent);
  transform: translateY(-2px);
}
.crew-link:hover h3 { color: var(--accent); }
.crew-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .crew-link img { transition: none; }
  .crew-link:hover img, .crew-link:focus-visible img { transform: none; }
}

/* ---------- cards ---------- */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem;
}
.card {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column;
}
.card > img { width: 100%; height: 9.5rem; object-fit: contain; background: var(--sunken); padding: .9rem; }
.card-body { padding: 1.1rem 1.15rem 1.25rem; }
.card-body h2 { font-size: 1.08rem; }
.card-body p { font-size: .93rem; color: var(--grey); }

/* ---------- posts ---------- */
.posts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.75rem; }
.posts h2 { margin-bottom: .2rem; }
.posts h2 a { text-decoration: none; }

/* ---------- forms ---------- */
.form { max-width: 34rem; margin-top: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.input {
  font: inherit; font-size: .95rem; padding: .55rem .7rem;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper); color: var(--charcoal); width: 100%;
}
textarea.input { min-height: 8rem; resize: vertical; }
.err { color: var(--red); font-size: .82rem; }
.flash {
  background: var(--sunken); border-left: 3px solid var(--accent);
  padding: .7rem 1rem; margin: 1.25rem 0 0;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 2.5rem; padding: 1.75rem 0; }
.foot { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.foot p { margin: 0; color: var(--grey); font-size: .9rem; }
.foot-links { display: flex; gap: 1.1rem; }
.foot-links a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- blog chrome ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.topics { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .8rem; font-size: .85rem; font-weight: 600;
  color: var(--charcoal); text-decoration: none; background: var(--paper);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.on:hover { color: #fff; }
.chip-n { font-weight: 500; opacity: .7; font-size: .78rem; }
.chip.small { padding: .12rem .55rem; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.chip.draft { border-color: var(--red); color: var(--red); }

.searchbar { display: flex; gap: .6rem; margin: 0 0 1.5rem; max-width: 30rem; }
.searchbar .input { flex: 1; }

.post-item { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.posts li:last-child { border-bottom: 0; }
.post-item .meta { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-bottom: .35rem; }

.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: .6rem 0 0; }
.tag { font-size: .82rem; color: var(--grey); text-decoration: none; }
.tag:hover { color: var(--accent); }

.pager { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.empty { color: var(--grey); }
.hint { font-size: .8rem; color: var(--grey); }
.hint code { font-size: .95em; }

.form.wide { max-width: 46rem; }
.upload-box {
  border: 1px dashed var(--line); border-radius: 6px;
  padding: 1rem 1.1rem .4rem; margin: 0 0 1.5rem; background: var(--sunken);
}
.upload-box legend { font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--grey); padding: 0 .4rem; }
textarea.editor {
  min-height: 26rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .9rem; line-height: 1.6;
}
.field.check { flex-direction: row; align-items: center; gap: .5rem; }
.btn.danger { color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.actions form { margin: 0; }

/* ---------- rendered markdown ----------
   Aimed at Obsidian's reading view, since that is what authors compose against.
   Scoped under .md so nothing here can leak into the rest of the site. */
.md { max-width: 40rem; }
.md > *:first-child { margin-top: 0; }
.md p, .md ul, .md ol, .md dl { margin: 0 0 1.05rem; }
.md h2 { font-size: 1.45rem; margin: 2.2rem 0 .7rem; }
.md h3 { font-size: 1.16rem; margin: 1.8rem 0 .5rem; }
.md h4 { font-size: 1rem; margin: 1.5rem 0 .4rem; color: var(--ink); }
.md h5, .md h6 { font-size: .92rem; margin: 1.3rem 0 .4rem; color: var(--grey);
  text-transform: uppercase; letter-spacing: .08em; }
.md ul, .md ol { padding-left: 1.4rem; }
.md li { margin: .3rem 0; }
.md li > ul, .md li > ol { margin: .3rem 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.md img { border-radius: 6px; margin: 1.2rem 0; }
.md dt { font-weight: 600; color: var(--ink); }
.md dd { margin: 0 0 .6rem 1.2rem; }
.md abbr { text-decoration: underline dotted; cursor: help; }

.md blockquote {
  margin: 1.4rem 0; padding: .2rem 0 .2rem 1.1rem;
  border-left: 3px solid var(--line); color: var(--grey);
}
.md blockquote p:last-child { margin-bottom: 0; }

.md :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .875em; background: var(--sunken);
  border: 1px solid var(--line); border-radius: 3px; padding: .1em .35em;
}
.md pre {
  background: var(--sunken); border: 1px solid var(--line); border-radius: 6px;
  padding: .9rem 1rem; overflow-x: auto; margin: 1.3rem 0;
  font-size: .875rem; line-height: 1.55;
}
.md pre code { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }

/* Wide tables and code scroll inside their own box rather than pushing the
   page sideways on a phone. */
.md table {
  border-collapse: collapse; width: 100%; margin: 1.4rem 0; font-size: .93rem;
  display: block; overflow-x: auto;
}
.md th, .md td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.md th { background: var(--sunken); color: var(--ink); font-weight: 600; }

.md mark { background: #fdf3a7; color: #202022; padding: .05em .2em; border-radius: 2px; }
@media (prefers-color-scheme: dark) { .md mark { background: #6b5d16; color: #f2f2f3; } }

/* Task lists — pymdownx renders a disabled checkbox; CSP blocks scripts, so
   they are decorative by design. */
.md .task-list { list-style: none; padding-left: .2rem; }
.md .task-list-item { display: flex; align-items: flex-start; gap: .55rem; }
.md .task-list-item input[type="checkbox"] { flex: none; margin-top: .4rem; }

.md .footnote { font-size: .9rem; color: var(--grey); border-top: 1px solid var(--line);
  margin-top: 2.5rem; padding-top: .5rem; }
.md .footnote ol { padding-left: 1.2rem; }
.md .footnote > hr { display: none; }  /* the block's border-top already divides it */

.md .wikilink { text-decoration: none; border-bottom: 1px solid currentColor; }
.md .wikilink.missing { color: var(--grey); border-bottom: 1px dashed var(--grey); cursor: help; }
.md .embed-missing {
  display: inline-block; font-size: .85rem; color: var(--grey);
  background: var(--sunken); border: 1px dashed var(--line);
  border-radius: 4px; padding: .1rem .5rem;
}

/* ---------- callouts ---------- */
.md .callout, .md details.callout {
  --callout: var(--accent);
  margin: 1.4rem 0; padding: .85rem 1rem;
  border: 1px solid var(--line); border-left: 4px solid var(--callout);
  border-radius: 6px; background: color-mix(in srgb, var(--callout) 7%, var(--paper));
}
.md .callout p:last-child { margin-bottom: 0; }
.md .callout-title, .md summary.callout-title {
  font-weight: 700; color: var(--callout); margin: 0 0 .4rem;
  font-size: .95rem; letter-spacing: .01em;
}
.md details.callout > summary.callout-title { cursor: pointer; margin-bottom: 0; }
.md details.callout[open] > summary.callout-title { margin-bottom: .5rem; }

.md .callout-note     { --callout: #2f718e; }
.md .callout-abstract { --callout: #00a0a0; }
.md .callout-info     { --callout: #2f718e; }
.md .callout-tip      { --callout: #00a396; }
.md .callout-success  { --callout: #2b8a3e; }
.md .callout-question { --callout: #b08900; }
.md .callout-warning  { --callout: #d97706; }
.md .callout-danger   { --callout: #d24141; }
.md .callout-bug      { --callout: #d24141; }
.md .callout-example  { --callout: #7048e8; }
.md .callout-quote    { --callout: #6c6c70; }

@media (prefers-color-scheme: dark) {
  .md .callout-note     { --callout: #6aa9c4; }
  .md .callout-abstract { --callout: #4dd0d0; }
  .md .callout-info     { --callout: #6aa9c4; }
  .md .callout-tip      { --callout: #4dcabb; }
  .md .callout-success  { --callout: #69db7c; }
  .md .callout-question { --callout: #e5b83a; }
  .md .callout-warning  { --callout: #f0a35e; }
  .md .callout-danger   { --callout: #ef6b6b; }
  .md .callout-bug      { --callout: #ef6b6b; }
  .md .callout-example  { --callout: #a68bfa; }
  .md .callout-quote    { --callout: #a1a1a1; }
}

/* ---------- syntax highlighting ----------
   Generated from Pygments (light: friendly, dark: github-dark) and scoped to
   .md so it cannot touch anything but a rendered post. To regenerate:
     python -c "from pygments.formatters import HtmlFormatter; \
       print(HtmlFormatter(style='friendly').get_style_defs('.md .highlight'))"
*/
.md .highlight { background: transparent; }
.md .highlight pre { margin: 0; }
pre { line-height: 125%; }
td.linenos .normal { color: #666666; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: #666666; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.md .highlight .hll { background-color: #ffffcc }
.md .highlight .c { color: #60A0B0; font-style: italic } /* Comment */
.md .highlight .err { border: 1px solid #F00 } /* Error */
.md .highlight .k { color: #007020; font-weight: bold } /* Keyword */
.md .highlight .o { color: #666 } /* Operator */
.md .highlight .ch { color: #60A0B0; font-style: italic } /* Comment.Hashbang */
.md .highlight .cm { color: #60A0B0; font-style: italic } /* Comment.Multiline */
.md .highlight .cp { color: #007020 } /* Comment.Preproc */
.md .highlight .cpf { color: #60A0B0; font-style: italic } /* Comment.PreprocFile */
.md .highlight .c1 { color: #60A0B0; font-style: italic } /* Comment.Single */
.md .highlight .cs { color: #60A0B0; background-color: #FFF0F0 } /* Comment.Special */
.md .highlight .gd { color: #A00000 } /* Generic.Deleted */
.md .highlight .ge { font-style: italic } /* Generic.Emph */
.md .highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.md .highlight .gr { color: #F00 } /* Generic.Error */
.md .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.md .highlight .gi { color: #00A000 } /* Generic.Inserted */
.md .highlight .go { color: #888 } /* Generic.Output */
.md .highlight .gp { color: #C65D09; font-weight: bold } /* Generic.Prompt */
.md .highlight .gs { font-weight: bold } /* Generic.Strong */
.md .highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.md .highlight .gt { color: #04D } /* Generic.Traceback */
.md .highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */
.md .highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
.md .highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
.md .highlight .kp { color: #007020 } /* Keyword.Pseudo */
.md .highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
.md .highlight .kt { color: #902000 } /* Keyword.Type */
.md .highlight .m { color: #40A070 } /* Literal.Number */
.md .highlight .s { color: #4070A0 } /* Literal.String */
.md .highlight .na { color: #4070A0 } /* Name.Attribute */
.md .highlight .nb { color: #007020 } /* Name.Builtin */
.md .highlight .nc { color: #0E84B5; font-weight: bold } /* Name.Class */
.md .highlight .no { color: #60ADD5 } /* Name.Constant */
.md .highlight .nd { color: #555; font-weight: bold } /* Name.Decorator */
.md .highlight .ni { color: #D55537; font-weight: bold } /* Name.Entity */
.md .highlight .ne { color: #007020 } /* Name.Exception */
.md .highlight .nf { color: #06287E } /* Name.Function */
.md .highlight .nl { color: #002070; font-weight: bold } /* Name.Label */
.md .highlight .nn { color: #0E84B5; font-weight: bold } /* Name.Namespace */
.md .highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */
.md .highlight .nv { color: #BB60D5 } /* Name.Variable */
.md .highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */
.md .highlight .w { color: #BBB } /* Text.Whitespace */
.md .highlight .mb { color: #40A070 } /* Literal.Number.Bin */
.md .highlight .mf { color: #40A070 } /* Literal.Number.Float */
.md .highlight .mh { color: #40A070 } /* Literal.Number.Hex */
.md .highlight .mi { color: #40A070 } /* Literal.Number.Integer */
.md .highlight .mo { color: #40A070 } /* Literal.Number.Oct */
.md .highlight .sa { color: #4070A0 } /* Literal.String.Affix */
.md .highlight .sb { color: #4070A0 } /* Literal.String.Backtick */
.md .highlight .sc { color: #4070A0 } /* Literal.String.Char */
.md .highlight .dl { color: #4070A0 } /* Literal.String.Delimiter */
.md .highlight .sd { color: #4070A0; font-style: italic } /* Literal.String.Doc */
.md .highlight .s2 { color: #4070A0 } /* Literal.String.Double */
.md .highlight .se { color: #4070A0; font-weight: bold } /* Literal.String.Escape */
.md .highlight .sh { color: #4070A0 } /* Literal.String.Heredoc */
.md .highlight .si { color: #70A0D0; font-style: italic } /* Literal.String.Interpol */
.md .highlight .sx { color: #C65D09 } /* Literal.String.Other */
.md .highlight .sr { color: #235388 } /* Literal.String.Regex */
.md .highlight .s1 { color: #4070A0 } /* Literal.String.Single */
.md .highlight .ss { color: #517918 } /* Literal.String.Symbol */
.md .highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
.md .highlight .fm { color: #06287E } /* Name.Function.Magic */
.md .highlight .vc { color: #BB60D5 } /* Name.Variable.Class */
.md .highlight .vg { color: #BB60D5 } /* Name.Variable.Global */
.md .highlight .vi { color: #BB60D5 } /* Name.Variable.Instance */
.md .highlight .vm { color: #BB60D5 } /* Name.Variable.Magic */
.md .highlight .il { color: #40A070 } /* Literal.Number.Integer.Long */

@media (prefers-color-scheme: dark) {
  pre { line-height: 125%; }
  td.linenos .normal { color: #6e7681; background-color: #0d1117; padding-left: 5px; padding-right: 5px; }
  span.linenos { color: #6e7681; background-color: #0d1117; padding-left: 5px; padding-right: 5px; }
  td.linenos .special { color: #e6edf3; background-color: #6e7681; padding-left: 5px; padding-right: 5px; }
  span.linenos.special { color: #e6edf3; background-color: #6e7681; padding-left: 5px; padding-right: 5px; }
  .md .highlight .hll { background-color: #6e7681 }
  .md .highlight .c { color: #8B949E; font-style: italic } /* Comment */
  .md .highlight .err { color: #F85149 } /* Error */
  .md .highlight .esc { color: #E6EDF3 } /* Escape */
  .md .highlight .g { color: #E6EDF3 } /* Generic */
  .md .highlight .k { color: #FF7B72 } /* Keyword */
  .md .highlight .l { color: #A5D6FF } /* Literal */
  .md .highlight .n { color: #E6EDF3 } /* Name */
  .md .highlight .o { color: #FF7B72; font-weight: bold } /* Operator */
  .md .highlight .x { color: #E6EDF3 } /* Other */
  .md .highlight .p { color: #E6EDF3 } /* Punctuation */
  .md .highlight .ch { color: #8B949E; font-style: italic } /* Comment.Hashbang */
  .md .highlight .cm { color: #8B949E; font-style: italic } /* Comment.Multiline */
  .md .highlight .cp { color: #8B949E; font-weight: bold; font-style: italic } /* Comment.Preproc */
  .md .highlight .cpf { color: #8B949E; font-style: italic } /* Comment.PreprocFile */
  .md .highlight .c1 { color: #8B949E; font-style: italic } /* Comment.Single */
  .md .highlight .cs { color: #8B949E; font-weight: bold; font-style: italic } /* Comment.Special */
  .md .highlight .gd { color: #FFA198; background-color: #490202 } /* Generic.Deleted */
  .md .highlight .ge { color: #E6EDF3; font-style: italic } /* Generic.Emph */
  .md .highlight .ges { color: #E6EDF3; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
  .md .highlight .gr { color: #FFA198 } /* Generic.Error */
  .md .highlight .gh { color: #79C0FF; font-weight: bold } /* Generic.Heading */
  .md .highlight .gi { color: #56D364; background-color: #0F5323 } /* Generic.Inserted */
  .md .highlight .go { color: #8B949E } /* Generic.Output */
  .md .highlight .gp { color: #8B949E } /* Generic.Prompt */
  .md .highlight .gs { color: #E6EDF3; font-weight: bold } /* Generic.Strong */
  .md .highlight .gu { color: #79C0FF } /* Generic.Subheading */
  .md .highlight .gt { color: #FF7B72 } /* Generic.Traceback */
  .md .highlight .g-Underline { color: #E6EDF3; text-decoration: underline } /* Generic.Underline */
  .md .highlight .kc { color: #79C0FF } /* Keyword.Constant */
  .md .highlight .kd { color: #FF7B72 } /* Keyword.Declaration */
  .md .highlight .kn { color: #FF7B72 } /* Keyword.Namespace */
  .md .highlight .kp { color: #79C0FF } /* Keyword.Pseudo */
  .md .highlight .kr { color: #FF7B72 } /* Keyword.Reserved */
  .md .highlight .kt { color: #FF7B72 } /* Keyword.Type */
  .md .highlight .ld { color: #79C0FF } /* Literal.Date */
  .md .highlight .m { color: #A5D6FF } /* Literal.Number */
  .md .highlight .s { color: #A5D6FF } /* Literal.String */
  .md .highlight .na { color: #E6EDF3 } /* Name.Attribute */
  .md .highlight .nb { color: #E6EDF3 } /* Name.Builtin */
  .md .highlight .nc { color: #F0883E; font-weight: bold } /* Name.Class */
  .md .highlight .no { color: #79C0FF; font-weight: bold } /* Name.Constant */
  .md .highlight .nd { color: #D2A8FF; font-weight: bold } /* Name.Decorator */
  .md .highlight .ni { color: #FFA657 } /* Name.Entity */
  .md .highlight .ne { color: #F0883E; font-weight: bold } /* Name.Exception */
  .md .highlight .nf { color: #D2A8FF; font-weight: bold } /* Name.Function */
  .md .highlight .nl { color: #79C0FF; font-weight: bold } /* Name.Label */
  .md .highlight .nn { color: #FF7B72 } /* Name.Namespace */
  .md .highlight .nx { color: #E6EDF3 } /* Name.Other */
  .md .highlight .py { color: #79C0FF } /* Name.Property */
  .md .highlight .nt { color: #7EE787 } /* Name.Tag */
  .md .highlight .nv { color: #79C0FF } /* Name.Variable */
  .md .highlight .ow { color: #FF7B72; font-weight: bold } /* Operator.Word */
  .md .highlight .pm { color: #E6EDF3 } /* Punctuation.Marker */
  .md .highlight .w { color: #6E7681 } /* Text.Whitespace */
  .md .highlight .mb { color: #A5D6FF } /* Literal.Number.Bin */
  .md .highlight .mf { color: #A5D6FF } /* Literal.Number.Float */
  .md .highlight .mh { color: #A5D6FF } /* Literal.Number.Hex */
  .md .highlight .mi { color: #A5D6FF } /* Literal.Number.Integer */
  .md .highlight .mo { color: #A5D6FF } /* Literal.Number.Oct */
  .md .highlight .sa { color: #79C0FF } /* Literal.String.Affix */
  .md .highlight .sb { color: #A5D6FF } /* Literal.String.Backtick */
  .md .highlight .sc { color: #A5D6FF } /* Literal.String.Char */
  .md .highlight .dl { color: #79C0FF } /* Literal.String.Delimiter */
  .md .highlight .sd { color: #A5D6FF } /* Literal.String.Doc */
  .md .highlight .s2 { color: #A5D6FF } /* Literal.String.Double */
  .md .highlight .se { color: #79C0FF } /* Literal.String.Escape */
  .md .highlight .sh { color: #79C0FF } /* Literal.String.Heredoc */
  .md .highlight .si { color: #A5D6FF } /* Literal.String.Interpol */
  .md .highlight .sx { color: #A5D6FF } /* Literal.String.Other */
  .md .highlight .sr { color: #79C0FF } /* Literal.String.Regex */
  .md .highlight .s1 { color: #A5D6FF } /* Literal.String.Single */
  .md .highlight .ss { color: #A5D6FF } /* Literal.String.Symbol */
  .md .highlight .bp { color: #E6EDF3 } /* Name.Builtin.Pseudo */
  .md .highlight .fm { color: #D2A8FF; font-weight: bold } /* Name.Function.Magic */
  .md .highlight .vc { color: #79C0FF } /* Name.Variable.Class */
  .md .highlight .vg { color: #79C0FF } /* Name.Variable.Global */
  .md .highlight .vi { color: #79C0FF } /* Name.Variable.Instance */
  .md .highlight .vm { color: #79C0FF } /* Name.Variable.Magic */
  .md .highlight .il { color: #A5D6FF } /* Literal.Number.Integer.Long */
}

/* ---------- navigation ---------- */
/* Divider between the seven site links and the account links, so the bar reads
   as two groups rather than nine equal items. Hidden on mobile, where the nav
   is a vertical list and the grouping is already obvious. */
.nav-sep {
  width: 1px; height: 1.1rem; background: var(--line); margin: 0 .15rem;
}

/* Marks a link that leaves the site. The arrow is decorative — the sr-only text
   is what a screen reader announces. */
.ext::after {
  content: "↗"; font-size: .8em; margin-left: .25em;
  display: inline-block; vertical-align: baseline; opacity: .75;
}

/* The mobile toggle is a real, focusable checkbox now. Visually hidden rather
   than `hidden`, because `hidden` takes it out of the tab order and there is no
   other way to open the menu without a pointer. */
.navtoggle {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.navtoggle:focus-visible + .burger {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px;
}

/* ---------- footer sitemap ---------- */
.foot-map {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.5rem 2rem; padding-bottom: 1.5rem;
}
.foot-col h2 {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--grey); margin: 0 0 .6rem;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 .4rem; }
.foot-col a { text-decoration: none; font-size: .93rem; }
.foot-col a:hover { text-decoration: underline; }
.foot-legal {
  border-top: 1px solid var(--line); padding-top: 1.1rem; margin: 0;
  color: var(--grey); font-size: .875rem;
}

/* ---------- home page wayfinding ---------- */
/* Three plain routes onward, for the visitor who has just read the hero and is
   deciding whether this community has anything for them. */
.paths { list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.path {
  border: 1px solid var(--line); border-radius: 6px; padding: 1.15rem 1.25rem 1.3rem;
  background: var(--paper);
}
.path h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.path p { font-size: .93rem; color: var(--grey); margin: 0 0 .8rem; }
.path a.more { font-size: .93rem; }

@media (max-width: 52rem) {
  .nav-sep { display: none; }
}

/* The two MOCS links, promoted onto the conferences page when they came out of
   the header. */
.mocs-strip {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 6px; background: var(--sunken);
  padding: 1.2rem 1.35rem; margin-top: 1.75rem;
}
.mocs-strip h2 { font-size: 1.12rem; margin-bottom: .3rem; }
.mocs-strip p { margin-bottom: 0; }
.mocs-strip .actions { margin-top: .9rem; }

/* On the 404 the same grid holds bare links rather than descriptions. */
.paths.compact { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; }
.paths.compact .path { padding: .75rem 1rem; }

/* Conference blurbs come from their organisers and run from two lines to
   twenty, so a grid row stretched to the longest one and left the short cards
   mostly empty with their "Learn more" floating mid-card. Clamp the blurb and
   pin the link to the bottom so every card ends the same way. */
.card-body { display: flex; flex-direction: column; flex: 1; }
.card-body p {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7;
  overflow: hidden;
}
.card-body p:last-child { margin-bottom: 0; }
.card-body .more, .card-body p:has(> .more) { margin-top: auto; margin-bottom: 0; }
.card-body p:has(> .more) { padding-top: .8rem; }
