/* styles/skin-wiki.css - the Wikipedia theme of the plain page. Everything in here is scoped to
   :root[data-skin="wiki"], which scripts/mode.js stamps before first paint.

   A look, not an impersonation: no third-party logo, wordmark or asset. One readable column,
   serif headings with a rule under them, link blue, flat grey boxes and bordered tables.

   How it works: most of the job is done by redefining the tokens that onepager.css already
   reads (colours, type scale, tracking, radii, the brush images), so the base rules flatten
   themselves. What is left below is layout: the 12-column grid becomes one column and each
   component becomes a list, a table or a box.

   ponytail: all decorative motion is off in this skin for everybody, not only under
   prefers-reduced-motion, so no resting state can depend on an animation. */

/* ---- 1. TOKENS ----------------------------------------------------------
   Light is the default. Not applied in desktop mode: the XP desktop inherits from body. */
:root[data-skin="wiki"]:not([data-mode="desktop"]) {
  color-scheme: light;

  --ground:      #ffffff;
  --band-cv:     #f8f9fa;
  --band-deep:   #f8f9fa;
  --raised:      #ffffff;
  --ink-strong:  #101418;   /* 18.4:1 on ground */
  --ink:         #202122;   /* 16.1:1 */
  --ink-quiet:   #202122;   /* the base uses this for secondary copy; an article has one text colour */
  --ink-faint:   #54595d;   /*  7.1:1 */
  --accent:      #3366cc;   /*  5.4:1 on ground, 5.1:1 on a box */
  --focus:       #3366cc;
  --rule:        #c8ccd1;
  --rule-strong: #a2a9b1;
  --border-ctrl: #72777d;   /*  4.5:1, control boundary */
  --btn-solid-bg:  #3366cc;  --btn-solid-fg:  #ffffff;   /* 5.4:1 */
  --btn-accent-bg: #3366cc;  --btn-accent-fg: #ffffff;
  --heat-0: #eaecf0;
  --heat-1: #c0d0f0;
  --heat-2: #8fabe6;
  --heat-3: #5b83d6;
  --heat-4: #2a4b8d;

  --wk-visited: #795cb2;    /*  5.3:1 on ground, 5.0:1 on a box */
  --wk-muted:   #54595d;
  --wk-box:     #f8f9fa;
  --wk-th:      #eaecf0;
  --wk-serif:   "Linux Libertine", Georgia, "Times New Roman", Times, serif;

  /* One sans for everything; the serif is applied by hand to h1, h2 and the mark. */
  --font-text:    sans-serif;
  --font-display: sans-serif;

  /* The display scale collapses to body size, h2 and h1. */
  --t--2: 0.8125rem;
  --t--1: 0.9375rem;
  --t-0:  0.9375rem;
  --t-1:  0.9375rem;
  --t-2:  0.9375rem;
  --t-3:  1.5rem;
  --t-4:  1.9rem;
  --t-5:  1.9rem;
  --lh-display: 1.3;
  --lh-tight:   1.3;
  --lh-snug:    1.6;
  --lh-body:    1.6;
  --lh-meta:    1.6;
  --tr-5: 0em; --tr-4: 0em; --tr-3: 0em; --tr-2: 0em; --tr-1: 0em; --tr-0: 0em; --tr--1: 0em; --tr--2: 0em;
  --wt-medium: 700;         /* system faces have no 500; the base uses medium where an article is bold */
  --wt-semi:   700;
  --measure: none;
  --radius-s: 2px;
  --radius-pill: 2px;

  /* The brush: link underlines and separators are images in the base. */
  --brush-u:  none;
  --brush-u2: none;
  --stroke:   transparent;
}

@media (prefers-color-scheme: dark) {
  :root[data-skin="wiki"]:not([data-mode="desktop"]):not([data-theme="light"]) {
    color-scheme: dark;
    --ground:      #101418;
    --band-cv:     #1a1f25;
    --band-deep:   #1a1f25;
    --raised:      #1a1f25;
    --ink-strong:  #f8f9fa;
    --ink:         #e3e5e8;   /* 14.7:1 on ground */
    --ink-quiet:   #e3e5e8;
    --ink-faint:   #a2a9b1;   /*  7.8:1 */
    --accent:      #88a3e8;   /*  7.4:1 on ground, 6.7:1 on a box */
    --focus:       #88a3e8;
    --rule:        #2c3138;
    --rule-strong: #3a4048;
    --border-ctrl: #72777d;   /*  4.1:1 */
    --btn-solid-bg:  #88a3e8;  --btn-solid-fg:  #101418;   /* 7.4:1 */
    --btn-accent-bg: #88a3e8;  --btn-accent-fg: #101418;
    --heat-0: #262c34;
    --heat-1: #2c4170;
    --heat-2: #3f5fa8;
    --heat-3: #6485d6;
    --heat-4: #a3b9f0;
    --wk-visited: #b0a4ef;    /*  8.3:1 on ground, 7.4:1 on a box */
    --wk-muted:   #a2a9b1;
    --wk-box:     #1a1f25;
    --wk-th:      #262c34;
  }
}
:root[data-skin="wiki"]:not([data-mode="desktop"])[data-theme="dark"] {
  color-scheme: dark;
  --ground:      #101418;
  --band-cv:     #1a1f25;
  --band-deep:   #1a1f25;
  --raised:      #1a1f25;
  --ink-strong:  #f8f9fa;
  --ink:         #e3e5e8;
  --ink-quiet:   #e3e5e8;
  --ink-faint:   #a2a9b1;
  --accent:      #88a3e8;
  --focus:       #88a3e8;
  --rule:        #2c3138;
  --rule-strong: #3a4048;
  --border-ctrl: #72777d;
  --btn-solid-bg:  #88a3e8;  --btn-solid-fg:  #101418;
  --btn-accent-bg: #88a3e8;  --btn-accent-fg: #101418;
  --heat-0: #262c34;
  --heat-1: #2c4170;
  --heat-2: #3f5fa8;
  --heat-3: #6485d6;
  --heat-4: #a3b9f0;
  --wk-visited: #b0a4ef;
  --wk-muted:   #a2a9b1;
  --wk-box:     #1a1f25;
  --wk-th:      #262c34;
}

/* ---- 2. THE SURFACE: no wallpaper, no washes, no grain, no brush ---------- */
:root[data-skin="wiki"]:not([data-mode="desktop"]) body { -webkit-font-smoothing: auto; }
:root[data-skin="wiki"] body::before,
:root[data-skin="wiki"] body::after,
:root[data-skin="wiki"] .wallpaper,
:root[data-skin="wiki"] .band::before,
:root[data-skin="wiki"] .band::after,
:root[data-skin="wiki"] .hero::before,
:root[data-skin="wiki"] .hero::after,
:root[data-skin="wiki"] .section--projects::before,
:root[data-skin="wiki"] .rail::before,
:root[data-skin="wiki"] .rail__past::before,
:root[data-skin="wiki"] .rail__points li::before,
:root[data-skin="wiki"] .index::before,
:root[data-skin="wiki"] .rows::before,
:root[data-skin="wiki"] .site-footer::before,
:root[data-skin="wiki"] .site-header::after,
:root[data-skin="wiki"] .site-nav a::after,
:root[data-skin="wiki"] main [data-glow]::after,
:root[data-skin="wiki"] .ink-c__s,
:root[data-skin="wiki"] .ink-u__s,
:root[data-skin="wiki"] .ink-note__a,
:root[data-skin="wiki"] .ink-doodle,
:root[data-skin="wiki"] .contact__underline,
:root[data-skin="wiki"] .shelf__markwrap,
:root[data-skin="wiki"] .about__pull,         /* aria-hidden pull quote; the sentence is in the prose */
:root[data-skin="wiki"] .story__n,
:root[data-skin="wiki"] .mq { display: none; } /* aria-hidden marquee; the list is in the paragraph under it */

:root[data-skin="wiki"] .ink-c,
:root[data-skin="wiki"] .ink-u { display: inline; position: static; }
:root[data-skin="wiki"] .ink-note {
  position: static;
  display: block;
  margin: 0.3rem 0;
  padding: 0;
  border: 0;
  font-size: 0.8125rem;
  text-align: start;
  color: var(--wk-muted);
}

/* ---- 3. MOTION: off. Reveals rest visible, nothing tilts, drifts or draws itself. ---- */
:root[data-skin="wiki"] :where(.site-header, main, .site-footer),
:root[data-skin="wiki"] :where(.site-header, main, .site-footer) *,
:root[data-skin="wiki"] :where(.site-header, main, .site-footer) *::before,
:root[data-skin="wiki"] :where(.site-header, main, .site-footer) *::after {
  animation: none !important;
  transition: none !important;
}
:root[data-skin="wiki"] main .rv { opacity: 1; transform: none; filter: none; }
/* These four are moved by inline transforms from scripts/motion.js and scripts/bounce.js. */
:root[data-skin="wiki"] main [data-tilt],
:root[data-skin="wiki"] main [data-parallax],
:root[data-skin="wiki"] main [data-magnetic],
:root[data-skin="wiki"] main .bnc { transform: none !important; will-change: auto; }

/* ---- 4. HEADER: a plain bar. Same geometry as the base so the mode group does not jump
   under the pointer when the skin changes. ---------------------------------- */
:root[data-skin="wiki"] .site-header {
  height: auto;
  min-height: var(--header-h);
  background: var(--wk-box);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid var(--rule-strong);
  transform: none;                       /* never steps away on scroll */
}
:root[data-skin="wiki"] .site-header__inner { height: auto; min-height: var(--header-h); }
:root[data-skin="wiki"] .site-header__mark {
  font-family: var(--wk-serif);
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0;
  color: var(--ink-strong);
}
:root[data-skin="wiki"] .site-nav ul { flex-wrap: wrap; align-items: center; gap: 0 1.1rem; }
:root[data-skin="wiki"] .site-nav a { font-size: 0.875rem; font-weight: normal; }
/* Contact is the main button: a filled control, like the article's own primary button. */
:root[data-skin="wiki"] .site-nav .site-nav__cta a {
  padding: 0.15rem 0.75rem;
  font-weight: bold;
  color: var(--btn-accent-fg);
  background: var(--btn-accent-bg);
  border-radius: 2px;
}
:root[data-skin="wiki"] .site-nav .site-nav__cta a:hover { text-decoration: none; filter: brightness(1.1); }

/* The theme trigger: a flat bordered control, like the article's own buttons. */
:root[data-skin="wiki"] .theme-trigger {
  min-height: 30px;
  padding: 0 0.75rem 0 0.55rem;
  font-weight: bold;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--border-ctrl);
  border-radius: 2px;
  transform: none;
}
:root[data-skin="wiki"] .theme-trigger:hover { background: var(--wk-th); }
:root[data-skin="wiki"] .theme-trigger:focus-visible { outline-offset: 1px; }

/* Narrow: the base drops the nav. An article keeps its links, on a second row. Contact, the
   main button, stays up on the first row at the right end and the theme button sits beside the
   mark, so a phone gets two rows of header and not three. */
@media (max-width: 759px) {
  :root[data-skin="wiki"] .site-header { position: static; }
  :root[data-skin="wiki"] .site-header__inner { position: relative; flex-wrap: wrap; row-gap: 0; padding-block: 0.35rem; }
  :root[data-skin="wiki"] .theme-trigger { margin-inline: 0.75rem auto; }
  :root[data-skin="wiki"] .site-nav { display: block; flex-basis: 100%; }
  :root[data-skin="wiki"] .site-nav ul { justify-content: space-between; column-gap: 0.75rem; }
  :root[data-skin="wiki"] .site-nav li { display: block; }
  :root[data-skin="wiki"] .site-nav .site-nav__cta {
    position: absolute;
    inset-block-start: 0.35rem;
    inset-inline-end: var(--gutter);
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}
/* Touch: the theme button is a 44px target, like Contact. */
@media (pointer: coarse) { :root[data-skin="wiki"] .theme-trigger { min-height: 44px; } }

/* ---- 5. THE ARTICLE: one column, 60rem ------------------------------------ */
:root[data-skin="wiki"] main { padding-block: 1.5rem 3rem; }
:root[data-skin="wiki"] main > section { min-block-size: 0; padding-block: 0; }
:root[data-skin="wiki"] .hero { display: block; }
:root[data-skin="wiki"] main .wrap { display: block; max-width: 60rem; padding-inline: 1.25rem; }
/* Every measure in the base is a ch cap for a narrow grid column. Here the column is the measure. */
:root[data-skin="wiki"] main :not(svg, img, canvas) { max-inline-size: none; }

:root[data-skin="wiki"] main h1,
:root[data-skin="wiki"] main h2 {
  font-family: var(--wk-serif);
  font-weight: normal;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--ink-strong);
  border-bottom: 1px solid var(--rule-strong);
}
:root[data-skin="wiki"] main h1 {
  margin: 0;
  padding: 0 0 0.15rem;
  font-size: 1.9rem;
  -webkit-mask: none;
  mask: none;
}
:root[data-skin="wiki"] main h2 { margin: 1.6rem 0 0.5rem; padding: 0 0 0.1rem; font-size: 1.5rem; }
:root[data-skin="wiki"] main h3 {
  margin: 1.3rem 0 0.3rem;
  font-family: var(--font-text);
  font-size: 1.15rem;
  font-weight: bold;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--ink-strong);
}
:root[data-skin="wiki"] main p { margin-block: 0.5em; text-wrap: pretty; }

/* On the six sub-pages the first section repeats the page title as its h2. One title is
   enough to look at; the heading stays in the outline for assistive tech. */
:root[data-skin="wiki"] .section--pagehead + section h2.marg {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Links. :where keeps this at (0,2,1) so the component rules below can still win. */
:root[data-skin="wiki"] :where(.site-header, main, .site-footer) a {
  color: var(--accent);
  text-decoration: none;
}
:root[data-skin="wiki"] main a:not(.btn):visited { color: var(--wk-visited); }
:root[data-skin="wiki"] :where(.site-header, main, .site-footer) a:hover { text-decoration: underline; }

/* Lead of the home page: the name is the article title, the line under it the short description. */
:root[data-skin="wiki"] .hero__sub { margin: 0.35rem 0 1rem; font-size: 0.8125rem; color: var(--wk-muted); }
:root[data-skin="wiki"] .page__lead { margin-block-start: 0.9rem; }
/* His goal: a quoted line under the lead, the way an article quotes its subject. */
:root[data-skin="wiki"] .hero__goal {
  margin: 0.8rem 0 0;
  padding: 0.1rem 0 0.1rem 0.9rem;
  border-left: 3px solid var(--wk-box);
  font-family: var(--wk-serif);
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 400;
}
:root[data-skin="wiki"] .hero__actions { gap: 0.5rem 1.25rem; margin-block: 0.8rem 0; }
:root[data-skin="wiki"] main .btn {
  min-height: 32px;
  padding: 0.2rem 0.8rem;
  font-size: inherit;
  font-weight: bold;
  color: var(--btn-solid-fg);
  background: var(--btn-solid-bg);
  border: 1px solid var(--btn-solid-bg);
  border-radius: 2px;
  text-decoration: none;
}
/* The quiet button: a grey box with a dark label, beside the one blue one. */
:root[data-skin="wiki"] main .btn--line { color: var(--ink); background: var(--wk-box); border-color: var(--border-ctrl); }
@media (pointer: coarse) { :root[data-skin="wiki"] main .btn { min-height: 44px; } }
/* The base enlarges the first About paragraph on wide screens. */
:root[data-skin="wiki"] .section--about .prose > p:first-child { font-size: inherit; color: inherit; }

/* ---- 6. COMPONENTS -------------------------------------------------------- */

/* Bulleted lists: earlier roles, role highlights, repositories, the page index, profiles, the
   home page's projects. */
:root[data-skin="wiki"] .rail__points,
:root[data-skin="wiki"] .rail__past,
:root[data-skin="wiki"] .shelf__list,
:root[data-skin="wiki"] .repos,
:root[data-skin="wiki"] .else,
:root[data-skin="wiki"] .index,
:root[data-skin="wiki"] .now__ledger,
:root[data-skin="wiki"] .contact__links,
:root[data-skin="wiki"] .pcards {
  display: block;
  margin: 0.3rem 0 0.5rem;
  padding: 0 0 0 1.6rem;
  border: 0;
  list-style: disc;
}
:root[data-skin="wiki"] .rail__points li,
:root[data-skin="wiki"] .rail__past li,
:root[data-skin="wiki"] .shelf__list li,
:root[data-skin="wiki"] .repos li,
:root[data-skin="wiki"] .else li,
:root[data-skin="wiki"] .index li,
:root[data-skin="wiki"] .now__ledger li,
:root[data-skin="wiki"] .contact__links li,
:root[data-skin="wiki"] .pcard {
  position: static;
  display: list-item;
  margin: 0 0 0.15rem;
  padding: 0;
  border: 0;
  font-size: inherit;
  color: inherit;
}
:root[data-skin="wiki"] .pcard { background: none; }
:root[data-skin="wiki"] .rail__past li > p,
:root[data-skin="wiki"] .shelf__list li > *,
:root[data-skin="wiki"] .repos li > *,
:root[data-skin="wiki"] .else li > *,
:root[data-skin="wiki"] .index li > *,
:root[data-skin="wiki"] .now__ledger li > *,
:root[data-skin="wiki"] .contact__links a,
:root[data-skin="wiki"] .pcard > * {
  display: inline;
  margin: 0;
  min-height: 0;
  font-size: inherit;
  font-weight: normal;
  color: inherit;
}
:root[data-skin="wiki"] .shelf__list a,
:root[data-skin="wiki"] .repos a,
:root[data-skin="wiki"] .else a,
:root[data-skin="wiki"] .index a,
:root[data-skin="wiki"] .contact__links a { color: var(--accent); }
:root[data-skin="wiki"] .rail__past .row__when::after { content: ": "; }
/* "Name: what it is". The colon hangs off the link (inline-block, so the hover underline
   stops at the name) because the markup has a space between the two spans. */
:root[data-skin="wiki"] .give__t::after,
:root[data-skin="wiki"] .else__t::after,
:root[data-skin="wiki"] .index__t::after,
:root[data-skin="wiki"] .pcard__t::after {
  content: ":";
  position: static;
  display: inline-block;
  color: var(--ink);
}
:root[data-skin="wiki"] .repos__n::before { content: "("; }
:root[data-skin="wiki"] .repos__n::after  { content: ")"; }
:root[data-skin="wiki"] .now__verb { font-weight: bold; }
/* The base stretches these links over their whole block. Here a link is its text. */
:root[data-skin="wiki"] .feature__link::after,
:root[data-skin="wiki"] .pcard__t a::after { content: none; }

/* Tables: the record, education and awards. List markup, table layout. */
:root[data-skin="wiki"] .record,
:root[data-skin="wiki"] .rows {
  display: table;
  margin: 0.8rem 0;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-collapse: collapse;
  background: var(--wk-box);
}
:root[data-skin="wiki"] .rec,
:root[data-skin="wiki"] .rows li { display: table-row; padding: 0; border: 0; }
:root[data-skin="wiki"] .rec > p,
:root[data-skin="wiki"] .rows li > p {
  display: table-cell;
  margin: 0;
  padding: 0.25em 0.6em;
  border: 1px solid var(--rule-strong);
  vertical-align: top;
  font-size: inherit;
  line-height: inherit;
  text-transform: none;
  color: inherit;
}
:root[data-skin="wiki"] .rec > .rec__big,
:root[data-skin="wiki"] .rows li > .rows__when {
  font-weight: bold;
  white-space: nowrap;
  background: var(--wk-th);
}
:root[data-skin="wiki"] .rec > .rec__label { white-space: nowrap; }
/* Four columns do not fit a phone: each would be a word wide and the source would be cut off.
   Two do: the figure in its header cell, and label, detail and source stacked in the cell
   beside it. */
@media (max-width: 559px) {
  :root[data-skin="wiki"] .record { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  :root[data-skin="wiki"] .rec {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-columns: subgrid;        /* one figure column for every row */
  }
  :root[data-skin="wiki"] .rec + .rec { border-top: 1px solid var(--rule-strong); }
  :root[data-skin="wiki"] .rec > p { display: block; grid-column: 2; padding-block: 0; border: 0; }
  :root[data-skin="wiki"] .rec > .rec__big {
    grid-column: 1;
    grid-row: 1 / span 3;
    padding-block: 0.25em;
    border-right: 1px solid var(--rule-strong);
  }
  :root[data-skin="wiki"] .rec > .rec__label { padding-block-start: 0.25em; white-space: normal; font-weight: bold; }
  :root[data-skin="wiki"] .rec > :last-child { padding-block-end: 0.25em; }
}

/* Experience: each current role is a sub-heading, "Org (dates)", a paragraph and bullets.
   The date sits before the heading in the markup; the grid only moves it one line down. */
:root[data-skin="wiki"] .rail { padding: 0; }
:root[data-skin="wiki"] .rail__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.4em;
  padding: 0;
}
:root[data-skin="wiki"] .rail__what { display: contents; }
:root[data-skin="wiki"] .rail__role { grid-area: 1 / 1 / 2 / -1; }
:root[data-skin="wiki"] .rail__org  { grid-area: 2 / 1; margin: 0; font-weight: normal; color: inherit; }
:root[data-skin="wiki"] .rail__when { grid-area: 2 / 2; margin: 0; font-size: inherit; color: var(--wk-muted); }
:root[data-skin="wiki"] .rail__when::before { content: "("; }
:root[data-skin="wiki"] .rail__when::after  { content: ")"; }
:root[data-skin="wiki"] .rail__sum,
:root[data-skin="wiki"] .rail__points { grid-column: 1 / -1; }
/* Earlier roles: the same hairline the base draws with a brush. */
:root[data-skin="wiki"] .rail__past {
  margin-block-start: 1.1rem;
  padding-block-start: 0.6rem;
  border-top: 1px solid var(--rule);
}

/* Projects and the free shelf: a sub-heading and paragraphs. */
:root[data-skin="wiki"] .feature { margin: 0; padding: 0; }
:root[data-skin="wiki"] .feature__stack { color: var(--wk-muted); }
:root[data-skin="wiki"] .shelves { display: block; margin: 0; }
:root[data-skin="wiki"] .shelf__head { display: block; margin: 0; }

/* Away from the keyboard: a flat gallery of the drawings. */
:root[data-skin="wiki"] .likes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.5rem;
  margin: 0.8rem 0;
}
:root[data-skin="wiki"] .like {
  display: block;
  padding: 0.6rem 0.5rem;
  text-align: center;
  background: var(--wk-box);
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
}
:root[data-skin="wiki"] .like__art { max-inline-size: 5.5rem; margin: 0 auto 0.3rem; color: var(--ink); opacity: 1; }
:root[data-skin="wiki"] .like__t { margin: 0; font-weight: bold; }
:root[data-skin="wiki"] .like__l { margin: 0; font-size: 0.8125rem; line-height: 1.5; }

/* Contributions: the grid stays a grid, in a flat box, on a blue scale (the heat tokens above). */
:root[data-skin="wiki"] .contrib__lead b { font-size: inherit; font-weight: bold; color: inherit; }
:root[data-skin="wiki"] .contrib {
  margin: 0.8rem 0;
  padding: 0.6rem;
  background: var(--wk-box);
  border: 1px solid var(--rule);
}
:root[data-skin="wiki"] .contrib__grid rect { rx: 0; }
:root[data-skin="wiki"] .heat-key .heat { border-radius: 0; }
:root[data-skin="wiki"] .contrib__key,
:root[data-skin="wiki"] .contrib__src { font-size: 0.8125rem; color: var(--wk-muted); }
:root[data-skin="wiki"] .repos__n { color: var(--wk-muted); }

/* Frequently asked: collapsible questions, bold, with a rule between them (the base draws it). */
:root[data-skin="wiki"] .faq { display: block; margin: 0.8rem 0; }
:root[data-skin="wiki"] details.qa { --qa-pad: 0.45rem; }
@media (pointer: coarse) { :root[data-skin="wiki"] details.qa { --qa-pad: 0.65rem; } }
:root[data-skin="wiki"] details.qa summary { font-weight: bold; }
:root[data-skin="wiki"] details.qa summary::after { color: var(--wk-muted); }

/* Contact: a sentence, the one link, then the profiles as a list. */
:root[data-skin="wiki"] .contact__display {
  margin: 0.5em 0;
  font-size: inherit;
  font-weight: bold;
  line-height: inherit;
}
:root[data-skin="wiki"] .contact__display a { padding: 0; }

/* Home: the two calls to action read as article text. Their buttons are ordinary links, with
   the " · " the .md twin puts between them. */
:root[data-skin="wiki"] .hero__cta,
:root[data-skin="wiki"] .ideas__actions { display: block; margin-block: 0.5em 0; }
:root[data-skin="wiki"] main :is(.hero__cta, .ideas__actions) .btn {
  display: inline;
  min-height: 0;
  padding: 0;
  font-weight: normal;
  color: var(--accent);
  background: none;
  border: 0;
}
:root[data-skin="wiki"] :is(.hero__cta, .ideas__actions) a + a::before {
  content: "\B7  ";
  display: inline-block;      /* not underlined with the link on hover */
  white-space: pre;
  color: var(--ink);
}
/* My ideas: a "See also" box. */
:root[data-skin="wiki"] .section--ideas .content {
  margin: 0.8rem 0;
  padding: 0.1rem 0.8rem 0.6rem;
  background: var(--wk-box);
  border: 1px solid var(--rule);
}

/* Home: the story is an article. The contents are Wikipedia's own "Contents" box above the first
   chapter; each chapter is a section whose photo is a thumb floated right, under the heading (it
   comes right after the heading in the markup). Thumb geometry as in academy.css. */
:root[data-skin="wiki"] .section--story .wrap { display: block; }
:root[data-skin="wiki"] .story__index {
  display: inline-block;
  min-width: 15rem;
  margin: 0.4rem 0 1.2rem;
  padding: 0.5rem 1.1rem 0.7rem;
  background: var(--wk-box);
  border: 1px solid var(--rule);
}
:root[data-skin="wiki"] .story__index-h {
  margin: 0 0 0.35rem;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  color: var(--ink);
}
:root[data-skin="wiki"] .story__toc { display: block; margin: 0; padding: 0; list-style: none; }
:root[data-skin="wiki"] .story__toc a { display: inline; padding: 0; font-size: inherit; color: var(--accent); }
:root[data-skin="wiki"] .story__toc a:hover { text-decoration: underline; }
:root[data-skin="wiki"] .story__toc-n,
:root[data-skin="wiki"] .story__toc a[aria-current] .story__toc-n { color: var(--ink); }
:root[data-skin="wiki"] .story__toc--more { margin: 0.35rem 0 0; padding: 0.35rem 0 0; border-top: 1px solid var(--rule); }
:root[data-skin="wiki"] .story__body { display: block; }
:root[data-skin="wiki"] .story__lede { margin: 0 0 1rem; max-inline-size: none; font: inherit; letter-spacing: 0; color: inherit; }
:root[data-skin="wiki"] .story__ch { display: flow-root; margin: 0 0 0.5rem; }
:root[data-skin="wiki"] .story__ch > p { max-inline-size: none; margin: 0 0 0.5em; }
:root[data-skin="wiki"] .story__ch > .story__fig {
  float: right;
  clear: right;
  width: 302px;
  margin: 0.3rem 0 0.8rem 1.4rem;
  padding: 3px;
  background: var(--wk-box);
  border: 1px solid var(--rule);
}
:root[data-skin="wiki"] .story__frame { border: 1px solid var(--rule); border-radius: 0; }
:root[data-skin="wiki"] .story__img { aspect-ratio: 4 / 3; object-fit: cover; }
:root[data-skin="wiki"] .story__fig figcaption {
  display: block;
  margin: 0;
  padding: 0.3rem 0.2rem 0.1rem;
  font-size: var(--t--2);
  line-height: 1.4;
}
:root[data-skin="wiki"] .story__credit { display: block; color: var(--wk-muted); }
@media (max-width: 639px) {
  :root[data-skin="wiki"] .story__index { display: block; }
  :root[data-skin="wiki"] .story__ch > .story__fig { float: none; width: auto; margin: 0.5rem 0 1rem; }
}

/* ---- 7. FOOTER ------------------------------------------------------------ */
:root[data-skin="wiki"] .site-footer { border-top: 1px solid var(--rule); }
:root[data-skin="wiki"] .site-footer__inner {
  max-width: 60rem;
  padding-inline: 1.25rem;
  color: var(--wk-muted);
}
:root[data-skin="wiki"] .site-footer button { color: var(--accent); }
:root[data-skin="wiki"] .site-footer button:hover { text-decoration: underline; }

/* The engineer-artist layer (story.css, onepager.css) is Artsy's: the encyclopedia keeps "MK" and
   shows only the spec line, as a caption. */
:root[data-skin="wiki"] .mark__korent,
:root[data-skin="wiki"] .hero__hand,
:root[data-skin="wiki"] .story__glyph,
:root[data-skin="wiki"] .story__note,
:root[data-skin="wiki"] .story__via,
:root[data-skin="wiki"] .story__body::before,
:root[data-skin="wiki"] .story__body::after { display: none; }
:root[data-skin="wiki"] .mark__mk { display: inline; font-size: 0; }
:root[data-skin="wiki"] .mark__mk::after { content: "MK"; font-size: 1.15rem; }
:root[data-skin="wiki"] .site-header__mark { border-bottom: 0; }
:root[data-skin="wiki"] .story__ch { display: flow-root; }
:root[data-skin="wiki"] .story__body { padding: 0; }
:root[data-skin="wiki"] .story__spec { margin: 0 0 0.2rem; font: 0.8rem/1.4 var(--wk-sans, inherit); letter-spacing: 0; color: var(--wk-muted); opacity: 1; }
/* The Contents box is the article's, at the top: never sticky here (story.css makes it sticky
   for Artsy's margin; in the encyclopedia it would ride over the chapters). */
:root[data-skin="wiki"] .story__index { position: static; max-block-size: none; overflow: visible; }
/* Artsy moves its handwritten mark to the right (onepager.css); the encyclopedia keeps MK on the left. */
:root[data-skin="wiki"] :is(.site-header__mark, .theme-trigger, .site-header .site-nav) { order: 0; }
@media (min-width: 1180px) {
  :root[data-skin="wiki"] .site-header .site-nav { justify-self: end; }
  :root[data-skin="wiki"] .site-header__mark { justify-self: auto; }
}

/* The travel map as a Wikipedia locator map: grey land, red dots, a thin frame. Not floated: a
   locator map needs the width. */
:root[data-skin="wiki"] .story__ch > .story__map { float: none; clear: both; width: auto; margin: 0.5rem 0 1rem; }
:root[data-skin="wiki"] .map__dots { stroke: color-mix(in oklab, var(--ink) 18%, transparent); }
:root[data-skin="wiki"] .map__dots--europe { stroke: color-mix(in oklab, var(--ink) 27%, transparent); }
:root[data-skin="wiki"] .map__dots--visited { stroke: color-mix(in oklab, var(--ink) 45%, transparent); }
:root[data-skin="wiki"] :is(.map__box, .map__lead) { stroke: #d33; }
:root[data-skin="wiki"] .map__frame { stroke: var(--rule); }
:root[data-skin="wiki"] .map__via { fill: #d33; stroke: var(--ground); r: 5px; }
:root[data-skin="wiki"] .map__inset .map__via { r: 4px; }
:root[data-skin="wiki"] .map__dot { display: none; }
:root[data-skin="wiki"] .map__label { font-family: var(--wk-sans, sans-serif); fill: var(--ink-strong); stroke: var(--ground); }
:root[data-skin="wiki"] .map__fig { font-family: var(--wk-sans, sans-serif); }
/* The robot pairs are more thumbs in the right column, under the chapter's lead photo. */
:root[data-skin="wiki"] .story__ch > .story__pair { float: right; clear: right; width: 302px; margin: 0 0 0.8rem 1.4rem; }
:root[data-skin="wiki"] .story__pair .story__fig { margin: 0 0 0.5rem; padding: 3px; background: var(--wk-box); border: 1px solid var(--rule); }
@media (max-width: 639px) {
  :root[data-skin="wiki"] .story__ch > .story__pair { float: none; width: auto; margin: 0.5rem 0 1rem; }
}

/* Projects (the foot of /free/): each project a short entry, its status in grey brackets, an
   anonymous name blacked out the way a released document is. */
:root[data-skin="wiki"] .sc-grid { display: block; margin: 0.6rem 0 0; padding: 0; list-style: none; }
:root[data-skin="wiki"] .sc { margin: 0 0 1.1rem; padding: 0; }
:root[data-skin="wiki"] .sc > * { margin: 0 0 0.2rem; }
:root[data-skin="wiki"] .sc__meta { font-size: 0.8rem; color: var(--wk-muted); }
:root[data-skin="wiki"] .sc__status::before { content: "["; }
:root[data-skin="wiki"] .sc__status::after { content: "]"; }
:root[data-skin="wiki"] .sc__stamp { font-style: italic; }
:root[data-skin="wiki"] .sc__t { font-size: 1rem; font-weight: bold; }
:root[data-skin="wiki"] .sc__aside { font-weight: normal; color: var(--wk-muted); }
:root[data-skin="wiki"] .sc__aside::before { content: "("; }
:root[data-skin="wiki"] .sc__aside::after { content: ")"; }
:root[data-skin="wiki"] .sc__redact { background: #000; color: #000; letter-spacing: -0.1em; }
:root[data-skin="wiki"] .sc__tags { font-size: 0.8rem; color: var(--wk-muted); }
:root[data-skin="wiki"] .sc__tags > span:not(:last-child)::after { content: " \00B7"; }
:root[data-skin="wiki"] .sc__btn { color: var(--accent); }
:root[data-skin="wiki"] .sc__btn + .sc__btn::before { content: "\00B7  "; display: inline-block; margin-inline-end: 0.3em; color: var(--wk-muted); }
@media (pointer: coarse) { :root[data-skin="wiki"] .sc__btn { display: inline-flex; align-items: center; min-height: 44px; } }
