/*
Theme Name: The Analytical Investor
Theme URI: https://analytical-investor.blog/
Author: Timothy Bareire Aine
Description: A light reading theme for a year-long investing course: a 48-week course line, calm long-form articles, and series wayfinding. Low data: one self-hosted font, no images.
Version: 1.5.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: analytical-investor
Tags: blog, one-column, custom-menu, accessibility-ready
*/

/* The Analytical Investor: Cloud Edge prototype */

@font-face {
  font-family: "Commissioner";
  src: url("assets/fonts/commissioner-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f9fb;   /* Cool mist: white with the glare taken off. */
  --cloud: #eef1f5;
  --rule: #e3e8ee;
  --rule-2: #cfd6de;
  --ink: #1d2731;
  --ink-2: #55616c;
  --ink-3: #646f7a;

  /* Series: line (the chart edge), tint (fields), text (labels on white). */
  --ssf-line: #45b88f; --ssf-tint: #ddf5ec; --ssf-text: #17785a;
  --desk-line:  #e07595; --desk-tint:  #fbe3ea; --desk-text:  #b23a5e;
  --ql-line:  #8b7be0; --ql-tint:  #ece8fc; --ql-text:  #5b49c2;
  --es-line:  #e89b52; --es-tint:  #fcebdb; --es-text:  #a8571a;
  --spectrum: var(--ssf-line), var(--desk-line), var(--ql-line), var(--es-line), var(--ssf-line);

  --sans: "Commissioner", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 40rem;
  --wide: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Values that change with the light. */
  --es-chip: #96490f;   /* Essay label on its own tint (pressed filter chip). */
  --area: .8;           /* Course line: tint fill under the edge. */
  --bloom: .45;         /* Course line: blurred glow along the edge. */
  --img: none;          /* Filter on raster figures. */
  --fan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 64' preserveAspectRatio='none'%3E%3Cpath d='M0 56 L400 0 L400 64 L0 64 Z' fill='%23eef1f5'/%3E%3Cpath d='M0 56 L400 10 L400 64 Z' fill='%23ece8fc' fill-opacity='.75'/%3E%3Cpath d='M0 56 L400 24 L400 64 Z' fill='%23fbe3ea' fill-opacity='.8'/%3E%3Cpath d='M0 56 L400 38 L400 64 Z' fill='%23ddf5ec'/%3E%3Cpath d='M0 56 L400 46' stroke='%2355616c' stroke-width='1' vector-effect='non-scaling-stroke' fill='none'/%3E%3C/svg%3E"); /* Limitations fan, drawn in the tints. */
  color-scheme: light;
}

/*
 * Night reading: the cloud edge at dusk. The paper is the light theme's own ink
 * (#1d2731), softer than black, soft off-white ink, and the series hues lifted toward
 * the brief's original pastel fringe so the course line glows. Text tones all
 * clear 4.5:1 on paper, cloud and their own tint. Applied when the device asks
 * for dark and the reader hasn't chosen light, or when the reader chooses dark.
 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d2731; --cloud: #253140; --rule: #34414f; --rule-2: #45525f;
    --ink: #e8ecf0; --ink-2: #b3bdc7; --ink-3: #9ea9b4;
    --ssf-line: #5cc9a0; --ssf-tint: #1f3a37; --ssf-text: #7fdcb8;
    --desk-line: #ec86a5; --desk-tint: #3c2a37; --desk-text: #f7a7c0;
    --ql-line: #9d8ff0; --ql-tint: #2e2d4c; --ql-text: #bfb5ff;
    --es-line: #f0a764; --es-tint: #3b3029; --es-text: #f5be8b;
    --es-chip: #f5be8b; --area: .42; --bloom: .7; --img: brightness(.86) contrast(1.06);
    --fan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 64' preserveAspectRatio='none'%3E%3Cpath d='M0 56 L400 0 L400 64 L0 64 Z' fill='%23253140'/%3E%3Cpath d='M0 56 L400 10 L400 64 Z' fill='%232e2d4c' fill-opacity='.75'/%3E%3Cpath d='M0 56 L400 24 L400 64 Z' fill='%233c2a37' fill-opacity='.8'/%3E%3Cpath d='M0 56 L400 38 L400 64 Z' fill='%231f3a37'/%3E%3Cpath d='M0 56 L400 46' stroke='%23b3bdc7' stroke-width='1' vector-effect='non-scaling-stroke' fill='none'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1d2731; --cloud: #253140; --rule: #34414f; --rule-2: #45525f;
  --ink: #e8ecf0; --ink-2: #b3bdc7; --ink-3: #9ea9b4;
  --ssf-line: #5cc9a0; --ssf-tint: #1f3a37; --ssf-text: #7fdcb8;
  --desk-line: #ec86a5; --desk-tint: #3c2a37; --desk-text: #f7a7c0;
  --ql-line: #9d8ff0; --ql-tint: #2e2d4c; --ql-text: #bfb5ff;
  --es-line: #f0a764; --es-tint: #3b3029; --es-text: #f5be8b;
  --es-chip: #f5be8b; --area: .42; --bloom: .7; --img: brightness(.86) contrast(1.06);
    --fan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 64' preserveAspectRatio='none'%3E%3Cpath d='M0 56 L400 0 L400 64 L0 64 Z' fill='%23253140'/%3E%3Cpath d='M0 56 L400 10 L400 64 Z' fill='%232e2d4c' fill-opacity='.75'/%3E%3Cpath d='M0 56 L400 24 L400 64 Z' fill='%233c2a37' fill-opacity='.8'/%3E%3Cpath d='M0 56 L400 38 L400 64 Z' fill='%231f3a37'/%3E%3Cpath d='M0 56 L400 46' stroke='%23b3bdc7' stroke-width='1' vector-effect='non-scaling-stroke' fill='none'/%3E%3C/svg%3E");
  color-scheme: dark;
}

.s-ssf { --line: var(--ssf-line); --tint: var(--ssf-tint); --text: var(--ssf-text); }
.s-desk  { --line: var(--desk-line);  --tint: var(--desk-tint);  --text: var(--desk-text); }
.s-ql  { --line: var(--ql-line);  --tint: var(--ql-tint);  --text: var(--ql-text); }
.s-es  { --line: var(--es-line);  --tint: var(--es-tint);  --text: var(--es-text); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--ql-line);
}
::selection { background: var(--ql-tint); color: var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--rule-2); transition: text-decoration-color .2s, color .2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ql-line); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
time, .meta, .row-d, .row-m, .row-wk, .mb-n, .ml-wk, figcaption, .sl-n { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: var(--paper); padding: .5rem .75rem; z-index: 10; }
.skip:focus { top: 1rem; }
html { scrollbar-color: var(--rule-2) transparent; scrollbar-width: thin; }

img { filter: var(--img); }

/* ---------------------------------------------------------------- masthead */
.masthead {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 1.25rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.wordmark {
  font-size: 1.1875rem; font-weight: 340; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
}
.wordmark span { font-weight: 240; color: var(--ink-2); }
.wordmark svg { width: 1.6em; height: 1.6em; margin-right: .5rem; vertical-align: -.42em; }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-size: .9375rem; }
.site-nav a { text-decoration: none; color: var(--ink-2); padding-block: .25rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current] { box-shadow: inset 0 -1px 0 var(--ink); }
.theme-toggle {
  font: inherit; color: var(--ink-2); background: none; border: 0; padding: .25rem 0; cursor: pointer;
  border-left: 1px solid var(--rule-2); padding-left: clamp(1rem, 3vw, 2rem); margin-left: calc(clamp(1rem, 3vw, 2rem) * -.5);
}
.theme-toggle:hover { color: var(--ink); }

/* ---------------------------------------------------------------- course line */
.course-line {
  position: relative;
  margin: 0;
  height: var(--h);
  border-top: 1px solid var(--rule);
  overflow-x: clip;
}
.course-line svg { display: block; width: 100%; height: 100%; overflow: visible; }
.course-line .area { opacity: var(--area); }
.course-line .base { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.course-line .mtick { stroke: var(--rule-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.course-line .edge, .course-line .bloom, .course-line .planned { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.course-line .edge { stroke-width: 2; vector-effect: non-scaling-stroke; }
.course-line .bloom { stroke-width: 7; opacity: var(--bloom); }
.course-line .planned { stroke: var(--rule-2); stroke-width: 1.25; stroke-dasharray: 1 5; vector-effect: non-scaling-stroke; }

.now, .last-read {
  position: absolute; width: 1.125rem; height: 1.125rem; margin: -.5625rem 0 0 -.5625rem;
  border-radius: 50%; pointer-events: none;
}
.now {
  background: conic-gradient(from var(--a, 0deg), var(--spectrum));
  -webkit-mask: radial-gradient(circle, transparent 0 3px, #000 3.5px 5px, transparent 5.5px 6px, #000 6.5px);
          mask: radial-gradient(circle, transparent 0 3px, #000 3.5px 5px, transparent 5.5px 6px, #000 6.5px);
  animation: hue 9s linear infinite;
}
.now::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--ink);
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes hue { to { --a: 360deg; } }
.last-read { border: 1.5px solid var(--ink-2); background: var(--paper); width: .625rem; height: .625rem; margin: -.3125rem 0 0 -.3125rem; }

.cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(48, 1fr); }
.col { position: relative; display: block; outline-offset: -2px; }
.col::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: var(--line); opacity: 0; transition: opacity .2s;
}
.col:hover::before, .col:focus-visible::before { opacity: .6; }
.tip {
  position: absolute; z-index: 5; bottom: calc(100% + .5rem); left: 50%;
  translate: -50% 4px;
  width: max-content; max-width: 17rem;
  padding: .5rem .75rem .55rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: 3px;
  font-size: .8125rem; line-height: 1.35; text-wrap: balance;
  opacity: 0; pointer-events: none; transition: opacity .18s, translate .3s var(--ease);
}
.tip-meta { display: block; color: var(--text); font-size: .75rem; margin-bottom: .15rem; }
.tip-meta + .tip-meta, .tip > .tip-meta:last-child:not(:first-child) { color: var(--ink-2); margin: .2rem 0 0; }
.col:nth-child(-n+6) .tip { left: 0; translate: 0 4px; }
.col:nth-last-child(-n+6) .tip { left: auto; right: 0; translate: 0 4px; }
.col:hover .tip, .col:focus-visible .tip { opacity: 1; translate: -50% 0; }
.col:nth-child(-n+6):hover .tip, .col:nth-child(-n+6):focus-visible .tip,
.col:nth-last-child(-n+6):hover .tip, .col:nth-last-child(-n+6):focus-visible .tip { translate: 0 0; }

.course-line figcaption {
  position: absolute; top: 100%; left: 0; right: 0;
  max-width: var(--wide); margin: 0 auto; padding: .6rem var(--gutter) 0;
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .8125rem; color: var(--ink-2);
}
.course-line figcaption b { font-weight: 500; color: var(--ink); }
.course-line figcaption .cap-r { color: var(--ink-3); }
.course-line figcaption.compact { font-size: .75rem; }

/* The one authored moment: the year draws itself in, week by week. */
@media (prefers-reduced-motion: no-preference) {
  .js .draws .reveal { animation: wipe 1.6s var(--ease) both .15s; }
  .js .draws .planned { animation: fadein .8s var(--ease) both 1.1s; }
  .js .draws .now { animation: hue 9s linear infinite, pop .6s var(--ease) both .75s; }
}
@media (prefers-reduced-motion: reduce) { .now { animation: none; } }
@keyframes wipe { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% 0 -20% 0); } }
@keyframes fadein { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; scale: .4; } }

/* ---------------------------------------------------------------- shared bits */
.series { color: var(--text); font-weight: 500; }
.t-ssf { --text: var(--ssf-text); } .t-desk { --text: var(--desk-text); } .t-ql { --text: var(--ql-text); } .t-es { --text: var(--es-text); }
.meta { display: flex; flex-wrap: wrap; gap: .25rem 0; font-size: .875rem; color: var(--ink-2); }
.meta > :not(:last-child)::after { content: "·"; margin: 0 .5rem; color: var(--ink-3); font-weight: 400; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--ink); padding-bottom: .65rem; }
.sec-head h2 { font-size: 1.0625rem; font-weight: 500; }
.sec-head a { font-size: .875rem; color: var(--ink-2); }
.standfirst { font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); font-weight: 350; }

/* ---------------------------------------------------------------- home */
.home-main, .course-body { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.lead {
  display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2rem clamp(2rem, 6vw, 6rem);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem);
}
.lead h1 {
  font-size: clamp(2.25rem, 1.1rem + 4.2vw, 4.25rem);
  font-weight: 260; line-height: 1.04; letter-spacing: -.028em;
  max-width: 15ch;
}
.lead h1 a { text-decoration: none; }
.lead h1 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.lead .meta { margin-top: 1.5rem; }
.lead .standfirst { margin-top: 1.75rem; max-width: 36rem; }
.more {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem;
  font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: .15rem;
}
.more svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; transition: translate .35s var(--ease); }
.more:hover svg { translate: 3px 0; }

.month { align-self: start; padding-top: .5rem; }
.month h2 { font-size: .875rem; font-weight: 500; color: var(--ink-2); padding-bottom: .65rem; border-bottom: 1px solid var(--rule); }
.month-list { list-style: none; margin: 0; padding: 0; }
.month-list li { position: relative; padding: .9rem 0 .95rem 1rem; border-bottom: 1px solid var(--rule); display: grid; gap: .25rem; }
.month-list li::before { content: ""; position: absolute; left: 0; top: 1.4rem; width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.month-list .is-planned::before { background: none; box-shadow: inset 0 0 0 1px var(--ink-3); }
.month-list .is-here::before { background: var(--ink); box-shadow: 0 0 0 3px var(--tint); }
.month-list a, .ml-t { font-size: .9375rem; line-height: 1.35; text-decoration: none; }
.month-list a:hover { text-decoration: underline; }
.is-planned .ml-t { color: var(--ink-2); }
.is-here .ml-t { font-weight: 500; }
.ml-s { font-size: .75rem; color: var(--ink-2); }

.earlier, .series-sec { padding-bottom: clamp(4rem, 8vw, 6rem); }
.month-block { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 2rem; border-bottom: 1px solid var(--rule); padding: 1.25rem 0 .5rem; }
.mb-h { font-size: .875rem; font-weight: 500; color: var(--ink-2); display: flex; align-items: baseline; gap: .75rem; }
.mb-n { font-size: 2.25rem; font-weight: 220; line-height: 1; color: var(--ink); letter-spacing: -.02em; }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 10.5rem 4.5rem 3.5rem; gap: 1rem; align-items: baseline;
  padding: .7rem 0; border-top: 1px solid var(--rule);
  font-size: .9375rem;
  transition: background-color .25s;
}
.row:first-child { border-top: 0; }
.row-wk { position: relative; font-size: .75rem; color: var(--ink-2); padding-left: .85rem; }
.row-wk::before { content: ""; position: absolute; left: 0; top: .42em; width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.row.is-planned .row-wk::before { background: none; box-shadow: inset 0 0 0 1px var(--ink-3); }
.row-t a { text-decoration: none; }
.row-t a::after { content: ""; position: absolute; inset: 0; }
.row { position: relative; }
.row:has(a):hover { background: linear-gradient(90deg, var(--tint), transparent 70%); }
.row:has(a):hover .row-t a { text-decoration: underline; }
.row.is-planned .row-t { color: var(--ink-2); }
.row-s, .row-d, .row-m { font-size: .8125rem; color: var(--ink-2); }
.row-m { text-align: right; }

.series-sec .sec-head { margin-bottom: 0; }
.series-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2rem; }
.series-list li { position: relative; padding: 1.75rem 0 0; }
.series-list li::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--line); }
.series-list h3 { font-size: 1.375rem; font-weight: 300; letter-spacing: -.01em; }
.series-list h3 a { text-decoration: none; }
.series-list h3 a:hover { color: var(--text); }
.series-list p { margin-top: .6rem; font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }
.series-list .sl-n { font-size: .8125rem; color: var(--text); margin-top: 1rem; }

/* ---------------------------------------------------------------- subscribe */
.subscribe { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.sub-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: .75rem 3rem; align-items: baseline;
  padding: 1.5rem 0 2.25rem; border-top: 1px solid var(--rule);
}
.sub-inner::before { content: ""; position: absolute; top: -1px; left: 0; width: 8rem; height: 1px; background: linear-gradient(90deg, var(--spectrum)); }
.subscribe h2 { font-size: 1rem; font-weight: 400; color: var(--ink-2); line-height: 1.5; }
.sub-offer { margin-top: .4rem; font-size: .875rem; color: var(--ink-2); line-height: 1.5; }
.sub-offer a { text-decoration-color: var(--ql-line); }
.sub-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; position: relative; }
.sub-form input {
  font: inherit; font-size: 1rem; color: var(--ink); min-width: 0;
  padding: .35rem 0; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; background: transparent;
}
.sub-form input::placeholder { color: var(--ink-3); }
.sub-form input:focus { outline: none; border-bottom-color: var(--ql-line); }
.sub-form input[aria-invalid="true"] { border-bottom-color: var(--desk-text); }
.sub-form button {
  font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer; color: var(--ink);
  margin-left: 1.25rem; padding: .35rem 0; border: 0; border-bottom: 1px solid var(--ink); background: none;
}
.sub-form button:hover { color: var(--ql-text); border-bottom-color: var(--ql-line); }
.sub-form button:disabled { opacity: .6; cursor: progress; }
.sub-msg { grid-column: 1 / -1; min-height: 1.4em; margin-top: .4rem; font-size: .8125rem; color: var(--ink-2); }
.sub-msg.err { color: var(--desk-text); }
.sub-msg.ok { color: var(--ssf-text); }
.sub-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sub-levels { grid-column: 1 / -1; min-width: 0; margin: 0 0 1rem; padding: 0; border: 0; }
.sub-levels legend { padding: 0; margin-bottom: .35rem; font-size: .8125rem; color: var(--ink-2); }
.sub-level { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 .6rem; align-items: baseline; padding: .45rem 0; border-top: 1px solid var(--rule); cursor: pointer; font-size: .9375rem; }
.sub-level:last-child { border-bottom: 1px solid var(--rule); }
.sub-form .sub-level input { width: auto; padding: 0; margin: 0; border: 0; accent-color: var(--ink); }
.sub-level small { grid-column: 2; font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sub-level:has(input:checked) span { font-weight: 500; }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--rule); }
.foot-inner { max-width: var(--wide); margin: 0 auto; padding: 2rem var(--gutter) 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: baseline; font-size: .875rem; color: var(--ink-2); }
.foot-by { flex: 1 1 18rem; }
.foot-by a { margin-left: .35rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.foot-note { flex-basis: 100%; max-width: 46rem; font-size: .8125rem; line-height: 1.55; color: var(--ink-2); }
.foot-note a { white-space: nowrap; }
.foot-c { flex-basis: 100%; color: var(--ink-3); font-size: .8125rem; }

/* ---------------------------------------------------------------- article */
.article-page {
  max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 4rem);
}
.article-page > * { grid-column: 2; }
.art-head h1 { font-size: clamp(2.125rem, 1.2rem + 3.4vw, 3.5rem); font-weight: 270; line-height: 1.06; letter-spacing: -.026em; }
.art-head .meta { margin-top: 1.25rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.art-head .by { color: var(--ink); }

.toc { grid-column: 1; grid-row: 2 / span 2; align-self: start; position: sticky; top: 1.5rem; padding-top: 2.4rem; font-size: .8125rem; }
.toc summary { list-style: none; color: var(--ink-2); font-weight: 500; margin-bottom: .75rem; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc li a { display: block; padding: .35rem 0 .35rem .9rem; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--ink-2); line-height: 1.35; }
.toc li a:hover { color: var(--ink); }
.toc li a.on { color: var(--ink); border-left-color: var(--line); }

.prose { padding-top: 2.25rem; font-size: 1.125rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: clamp(1.4375rem, 1.2rem + .8vw, 1.75rem); font-weight: 360; letter-spacing: -.014em; line-height: 1.2; margin-top: 2.6em; }
.prose h2 + * { margin-top: .85em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1875rem; font-weight: 500; margin-top: 2em; }
.prose strong { font-weight: 600; }
.prose a { text-decoration-color: var(--line); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--text); }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; box-shadow: inset 1px 0 0 var(--line); color: var(--ink-2); font-size: 1.25rem; font-weight: 340; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--cloud); padding: .1em .3em; border-radius: 3px; }
.prose hr { border: 0; height: 1px; background: var(--rule); margin-block: 2.5em; }

.code { margin-top: 1.75em; margin-inline: calc(var(--gutter) * -1); background: var(--cloud); border-top: 1.5px solid var(--ql-line); }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: .5rem var(--gutter) 0; font-size: .75rem; color: var(--ink-2); }
.copy { font: inherit; color: var(--ql-text); background: none; border: 0; padding: .25rem 0; cursor: pointer; }
.copy:hover { text-decoration: underline; text-underline-offset: .2em; }
.code pre { margin: 0; padding: .75rem var(--gutter) 1.25rem; overflow-x: auto; font: .84rem/1.6 var(--mono); color: var(--ink); tab-size: 4; }
.code code { font: inherit; background: none; padding: 0; border-radius: 0; }
.code .c { color: var(--ink-2); font-style: italic; }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: .55rem .75rem .55rem 0; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 500; border-bottom-color: var(--ink); }

/* Limitations: a forecast fan. The band widens from a point, like the
   uncertainty around a central projection. */
.fan {
  position: relative; margin-top: 3rem !important;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4.75rem var(--gutter) 2.25rem;
  background:
    var(--fan) top left / 100% 3.5rem no-repeat,
    linear-gradient(var(--cloud), var(--cloud)) 0 3.5rem / 100% calc(100% - 3.5rem) no-repeat;
}
.fan h2 { margin-top: 0 !important; }
.fan > * + * { margin-top: 1.1em; }

.course-nav { margin-top: 4rem; border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-top: 1.25rem; }
.cn-l { font-size: .8125rem; color: var(--ink-2); margin-top: .45rem; }
.cn-next a, .cn-prev a, .cn-t { font-size: 1.1875rem; font-weight: 340; line-height: 1.3; text-decoration: none; letter-spacing: -.005em; }
.cn-next a:hover, .cn-prev a:hover { text-decoration: underline; }
.cn-t { color: var(--ink-2); }
.cn-prev { text-align: right; }
.same { margin: 4rem 0 5rem; }
.same h2 { font-size: .875rem; font-weight: 500; color: var(--ink-2); padding-bottom: .5rem; border-bottom: 1px solid var(--rule); }
.same .row { grid-template-columns: 2.25rem minmax(0, 1fr) 4.5rem; }
.same .row-s, .same .row-m { display: none; }

/* ---------------------------------------------------------------- course page */
.course { max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(2rem, 4vw, 3rem); }
.course-head h1 { font-size: clamp(2.5rem, 1.4rem + 4vw, 4.25rem); font-weight: 250; letter-spacing: -.03em; line-height: 1; }
.course-head .standfirst { margin-top: 1.25rem; max-width: 34rem; }
.course-body { padding-top: 3.5rem; padding-bottom: 5rem; }
.line-note { font-size: .8125rem; color: var(--ink-2); max-width: 36rem; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.25rem 0 1rem; }
.filter button {
  font: inherit; font-size: .875rem; cursor: pointer; color: var(--ink-2);
  padding: .45rem .8rem; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 3px;
  transition: border-color .2s, color .2s, background-color .2s;
}
.filter button:hover { color: var(--ink); border-color: var(--ink-3); }
.filter button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.filter .f-ssf[aria-pressed="true"] { background: var(--ssf-tint); border-color: var(--ssf-text); color: var(--ssf-text); }
.filter .f-desk[aria-pressed="true"]  { background: var(--desk-tint);  border-color: var(--desk-text);  color: var(--desk-text); }
.filter .f-ql[aria-pressed="true"]  { background: var(--ql-tint);  border-color: var(--ql-text);  color: var(--ql-text); }
.filter .f-es[aria-pressed="true"]  { background: var(--es-tint);  border-color: var(--es-text);  color: var(--es-chip); }
.course-body .month-block.is-planned .mb-n { color: var(--ink-3); }
.course-body .row[hidden], .course-body .month-block[hidden] { display: none; }
.empty-note { padding: 2rem 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- about */
.about { max-width: var(--wide); margin: 0 auto; padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.about-head { max-width: 46rem; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.about-head h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.75rem); font-weight: 260; line-height: 1.06; letter-spacing: -.027em; }
.about-head .standfirst { margin-top: 1.75rem; max-width: 38rem; }

.about-sec { display: grid; grid-template-columns: 11rem minmax(0, var(--measure)); gap: 1rem 2rem; padding: 1.5rem 0 3.25rem; border-top: 1px solid var(--rule); }
.about-sec > h2 { font-size: .875rem; font-weight: 500; color: var(--ink-2); padding-top: .2rem; }
.about-body > * + * { margin-top: 1.1rem; }
.about-body p { font-size: 1.0625rem; line-height: 1.7; }
.about-body .about-lede { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem); font-weight: 300; line-height: 1.4; letter-spacing: -.01em; }
.about-note { color: var(--ink-2); }
.about-note a, .author-text a { text-decoration-color: var(--rule-2); }

.about-series { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }
.about-series li { position: relative; padding-top: 1rem; }
.about-series li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.about-series h3 { font-size: 1.25rem; font-weight: 300; letter-spacing: -.01em; margin-top: .15rem; }
.about-series h3 a { text-decoration: none; }
.about-series h3 a:hover { color: var(--text); }
.about-series p { font-size: .9375rem; color: var(--ink-2); line-height: 1.55; margin-top: .4rem; }
.as-wk { display: block; font-size: .8125rem; color: var(--text); margin-top: .2rem; font-variant-numeric: tabular-nums; }

.principles { list-style: none; margin: 0; padding: 0; }
.principles li { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 240; letter-spacing: -.025em; line-height: 1.25; }
.principles li + li { margin-top: .1em; }

.author-text > * + * { margin-top: 1rem; }
.author-name { font-size: 1.5rem !important; font-weight: 320; letter-spacing: -.015em; line-height: 1.2 !important; }
.author-role { margin-top: .3rem !important; font-size: .9375rem !important; color: var(--ink-2); }
.author-role + p { margin-top: 1.4rem; }
.focus-h { font-weight: 500; font-size: .9375rem !important; margin-top: 1.6rem !important; }
.focus { list-style: none; margin: .6rem 0 0; padding: 0; }
.focus li { position: relative; padding: .6rem 0 .6rem 1rem; border-top: 1px solid var(--rule); font-size: 1rem; }
.focus li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 5px; height: 5px; border-radius: 50%; background: var(--ql-line); }
.focus li:nth-child(1)::before { background: var(--ssf-line); }
.focus li:nth-child(2)::before { background: var(--desk-line); }

.disclaimer p { font-size: .9375rem; color: var(--ink-2); }
.contact { list-style: none; margin: 0; padding: 0; }
.contact li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: .65rem 0; border-top: 1px solid var(--rule); }
.contact li:first-child { border-top: 0; padding-top: 0; }
.contact a { font-weight: 500; text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.contact span { font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .about-sec { grid-template-columns: 1fr; gap: 1rem; padding-bottom: 2.75rem; }
}
@media (max-width: 640px) {
  .about { padding-top: 6.25rem; }
  .about-series { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact li { grid-template-columns: 6.5rem minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .article-page { grid-template-columns: minmax(0, var(--measure)); justify-content: center; }
  .article-page > * { grid-column: 1; }
  .toc { grid-column: 1; grid-row: auto; position: static; padding-top: 1.5rem; }
  .toc details { border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
  .toc summary { cursor: pointer; display: flex; justify-content: space-between; margin: 0; }
  .toc summary::after {
    content: ""; width: .5rem; height: .5rem; margin: .3rem .2rem 0 0;
    border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
    rotate: 45deg; transition: rotate .3s var(--ease);
  }
  .toc details[open] summary::after { rotate: 225deg; margin-top: .55rem; }
  .toc details[open] summary { margin-bottom: .75rem; }
  .toc ol { border-left: 0; }
  .toc li a { padding-left: 0; border: 0; }
  .prose { padding-top: 2rem; }
  .toc { padding-top: 1rem; }
}
@media (max-width: 900px) {
  .lead { grid-template-columns: 1fr; }
  .series-list { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .row { grid-template-columns: 2.25rem minmax(0, 1fr) 4.5rem; }
  .row-s, .row-m { display: none; }
  .month-block { grid-template-columns: 1fr; gap: .75rem; }
  .sub-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .masthead { padding-top: 1.1rem; padding-bottom: 1rem; }
  .masthead { flex-wrap: wrap; row-gap: .35rem; }
  .wordmark { font-size: 1rem; }
  .site-nav { gap: .9rem; font-size: .875rem; }
  .cols { pointer-events: none; }
  .course-line { height: calc(var(--h) * .72); }
  .course-line figcaption { flex-direction: column; gap: .1rem; }
  .lead { padding-top: 6.25rem; }
  .article-page { padding-top: 6.5rem; }
  .course .course-head + * { margin-top: 0; }
  /* The caption wraps on phones; the note below already explains the line's height. */
  .course .course-line figcaption .cap-r { display: none; }
  .course-body { padding-top: 4.75rem; }
  .prose { font-size: 1.0625rem; line-height: 1.7; }
  .series-list { grid-template-columns: 1fr; }
  .course-nav { grid-template-columns: 1fr; gap: 1.5rem; }
  .cn-prev { text-align: left; }
  .row-d { font-size: .75rem; }
}

/* ================================================================ WordPress content */

/* Old-theme colour classes in existing posts: neutralised so posts read in this design. */
.prose [class*="has-theme-palette"], .prose .has-background, .prose .has-text-color {
  background: none !important; color: inherit !important;
}
.prose .has-text-align-right, .prose .has-text-align-center { text-align: inherit; }
.prose .has-medium-font-size { font-size: inherit; }

.prose pre.wp-block-code, .prose .cm-editor {
  position: relative; margin-top: 1.75em; margin-inline: calc(var(--gutter) * -1);
  padding: 2.25rem var(--gutter) 1.25rem; overflow-x: auto;
  background: var(--cloud); border-top: 1.5px solid var(--ql-line);
  font: .84rem/1.6 var(--mono); color: var(--ink); tab-size: 4; white-space: pre;
}
.prose pre.wp-block-code code { font: inherit; background: none; padding: 0; border-radius: 0; }
.prose .cm-editor { white-space: normal; }
.prose .cm-editor pre { margin: 0; padding: 0; background: none; font: inherit; }
.prose .cm-editor .cm-line { display: block; white-space: pre; min-height: 1.6em; }
.prose .cm-editor * { font: inherit !important; background: none !important; }
.code-copy {
  position: absolute; top: .5rem; right: var(--gutter);
  font: .75rem var(--sans); color: var(--ql-text); background: none; border: 0; padding: .25rem 0; cursor: pointer;
}
.code-copy:hover { text-decoration: underline; text-underline-offset: .2em; }

.prose .wp-block-table { margin-inline: 0; overflow-x: auto; }
.prose .wp-block-table table { border-collapse: collapse; width: 100%; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.prose .wp-block-table td, .prose .wp-block-table th { border: 0; border-bottom: 1px solid var(--rule); padding: .55rem .75rem .55rem 0; text-align: left; vertical-align: top; }
.prose .wp-block-table tr:first-child td { border-bottom-color: var(--ink); }
.prose .wp-block-table figcaption { font-size: .8125rem; color: var(--ink-2); margin-top: .5rem; }

.prose .wp-block-quote { margin-inline: 0; padding-left: 1.25rem; box-shadow: inset 1px 0 0 var(--line, var(--ql-line)); border: 0; }
.prose .wp-block-quote p { color: var(--ink-2); font-size: 1.1875rem; font-weight: 340; }
.prose .wp-block-quote cite { display: block; margin-top: .5rem; font-size: .8125rem; font-style: normal; color: var(--ink-2); }
.prose .wp-block-pullquote { margin-inline: 0; padding: 1.25rem 0; border: 0; border-block: 1px solid var(--rule); text-align: left; }
.prose .wp-block-pullquote blockquote { margin: 0; }
.prose .wp-block-pullquote p { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 280; line-height: 1.3; letter-spacing: -.015em; }
.prose .wp-block-separator { border: 0; height: 1px; background: var(--rule); margin-block: 2.5em; opacity: 1; }
.prose .wp-block-image { margin-inline: 0; }
.prose .wp-block-image img { max-width: 100%; height: auto; display: block; }
.prose .wp-block-image figcaption, .prose figcaption { font-size: .8125rem; color: var(--ink-2); margin-top: .5rem; text-align: left; }
.prose .wp-block-math, .prose math { font-size: 1.1em; overflow-x: auto; max-width: 100%; }
.prose .wp-block-math { display: block; padding: .5rem 0; }
.prose .wp-block-details { border-block: 1px solid var(--rule); padding: .75rem 0; }
.prose .wp-block-details summary { cursor: pointer; font-weight: 500; }
.prose .wp-block-details[open] summary { margin-bottom: .75rem; }
.prose img { max-width: 100%; height: auto; }
.prose .fan .wp-block-code { margin-inline: 0; }

/* ================================================================ pages */

.page-plain, .listing { max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.page-plain { display: grid; grid-template-columns: minmax(0, var(--measure)); justify-content: start; }
.page-plain .art-head .meta, .page-plain .art-head { border: 0; padding-bottom: 0; }
.listing .rows { margin-top: 2rem; border-top: 1px solid var(--ink); }
.pager { display: flex; justify-content: space-between; margin-top: 2rem; font-size: .9375rem; }
.course-intro { margin-top: 1rem; max-width: 36rem; color: var(--ink-2); }
.about-head h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.75rem); }
.about-body > .about-series { margin-top: 1.75rem; }
.contact li a { font-weight: 500; text-decoration: none; }
.contact li { color: var(--ink-2); font-size: .875rem; }
.contact li a { color: var(--ink); font-size: 1rem; }

/* Forms inside content (Jetpack contact form and others). */
.prose input[type="text"], .prose input[type="email"], .prose input[type="url"], .prose input[type="tel"], .prose textarea, .prose select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .5rem 0; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; background: transparent;
}
.prose textarea { min-height: 9rem; resize: vertical; }
.prose input:focus, .prose textarea:focus, .prose select:focus { outline: none; border-bottom-color: var(--ql-line); }
.prose label, .prose .grunion-field-label { display: block; font-size: .875rem; font-weight: 500; color: var(--ink-2); margin-top: 1.25rem; }
.prose .wp-block-jetpack-contact-form { gap: 0; }
.prose button[type="submit"], .prose .wp-block-button__link, .prose .contact-submit button {
  font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer; color: var(--ink) !important;
  margin-top: 1.5rem; padding: .35rem 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: none !important;
}
.prose button[type="submit"]:hover, .prose .wp-block-button__link:hover { color: var(--ql-text) !important; border-bottom-color: var(--ql-line); }

/* Jetpack subscribe block inside the quiet subscribe line. */
.sub-form.is-jetpack { display: block; }
.sub-form.is-jetpack form, .sub-form.is-jetpack .wp-block-jetpack-subscriptions__form-elements, .sub-form.is-jetpack #subscribe-blog { display: flex !important; align-items: baseline; gap: 0 1.25rem; margin: 0; padding: 0; flex-wrap: nowrap; }
.sub-form.is-jetpack p { margin: 0 !important; }
.sub-form.is-jetpack p:has(input[type="email"]), .sub-form.is-jetpack .wp-block-jetpack-subscriptions__form-elements > p:first-child { flex: 1 1 auto; }
.sub-form.is-jetpack input[type="email"] {
  width: 100% !important; font: inherit !important; font-size: 1rem !important; color: var(--ink) !important;
  padding: .35rem 0 !important; border: 0 !important; border-bottom: 1px solid var(--rule-2) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; margin: 0 !important;
}
.sub-form.is-jetpack input[type="email"]:focus { outline: none; border-bottom-color: var(--ql-line) !important; }
.sub-form.is-jetpack button, .sub-form.is-jetpack input[type="submit"] {
  font: inherit !important; font-size: .9375rem !important; font-weight: 500 !important; cursor: pointer; color: var(--ink) !important;
  padding: .35rem 0 !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--ink) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; width: auto !important; white-space: nowrap;
}
.sub-form.is-jetpack button:hover { color: var(--ql-text) !important; border-bottom-color: var(--ql-line) !important; }
.sub-form.is-jetpack .wp-block-jetpack-subscriptions__subscount, .sub-form.is-jetpack .jetpack-subscribe-reader-count { display: none; }
.sub-fallback { font-size: .9375rem; color: var(--ink-2); }

/* Block-layout gaps from core don't apply inside the About grid. */
.about-sec > *, .about-head > *, .about-body > :first-child { margin-block-start: 0; }
.about-head > .standfirst { margin-top: 1.75rem; }

/* WordPress core helpers */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; } .alignright { float: right; margin: 0 0 1rem 1.5rem; } .aligncenter { margin-inline: auto; }
@media (max-width: 640px) {
  .page-plain, .listing { padding-top: 6.25rem; }
  .prose pre.wp-block-code, .prose .cm-editor { font-size: .8rem; }
}

/* ---------------------------------------------------------------- playground
   Experiments outside the course. No series colour (it isn't a series): status
   is drawn the way the course draws planned vs published, dotted to solid. */
.pg-head .standfirst { margin-top: 1.25rem; max-width: 36rem; }
.pg-follow { margin-top: 1rem; font-size: .875rem; color: var(--ink-2); }
.pg-rows { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--ink); }
.pg-row {
  position: relative; display: grid; grid-template-columns: 9rem minmax(0, 1fr) 12rem 6rem; gap: .25rem 1.5rem; align-items: baseline;
  padding: 1rem 0; border-top: 1px solid var(--rule);
}
.pg-row:first-child { border-top: 0; }
.pg-row:hover { background: linear-gradient(90deg, var(--cloud), transparent 70%); }
.pg-t a { font-size: 1.1875rem; font-weight: 340; letter-spacing: -.005em; text-decoration: none; }
.pg-t a::after { content: ""; position: absolute; inset: 0; }
.pg-row:hover .pg-t a { text-decoration: underline; }
.pg-x { display: block; margin-top: .3rem; font-size: .9375rem; color: var(--ink-2); line-height: 1.5; }
.pg-tp, .pg-d { font-size: .8125rem; color: var(--ink-2); }
.pg-d { text-align: right; font-variant-numeric: tabular-nums lining-nums; }

/* Status: hollow dot = sketch, solid = working, solid with a halo = became an article. */
.pg-st, .pg-status { position: relative; padding-left: .95rem; font-size: .8125rem; color: var(--ink-2); }
.pg-st::before, .pg-status::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 6px; height: 6px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ink-3);
}
.is-working > .pg-st::before, .pg-status.is-working::before { background: var(--ink); box-shadow: none; }
.is-article > .pg-st::before, .pg-status.is-article::before { background: var(--ink); box-shadow: 0 0 0 3px var(--rule-2); }
.is-working > .pg-st, .is-article > .pg-st, .pg-status.is-working, .pg-status.is-article { color: var(--ink); }

/* The entry's data and disclaimer notes: hairline-ruled, labelled, quiet. */
.pg-notes { margin: 0 0 2.5rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: .875rem; color: var(--ink-2); line-height: 1.55; }
.pg-notes p { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; margin: 0 !important; }
.pg-notes p + p { border-top: 1px solid var(--rule); }
.pg-notes span { font-weight: 500; color: var(--ink); }

/* Downloads (workbooks, notebooks): name, type and size, and an underlined text button. */
.prose .wp-block-file {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; margin-top: 1.75em;
  padding: 1rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.prose .wp-block-file > a:first-child { font-weight: 500; text-decoration: none; }
.prose .wp-block-file > a:first-child:hover { text-decoration: underline; }
.prose .wp-block-file .file-note { font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.prose .wp-block-file .wp-block-file__button {
  margin-left: auto; padding: .2rem 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: none; color: var(--ink); font: 500 .9375rem var(--sans); text-decoration: none;
}
.prose .wp-block-file .wp-block-file__button:hover { color: var(--ql-text); border-bottom-color: var(--ql-line); }

@media (max-width: 760px) {
  .pg-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pg-st { grid-column: 1; grid-row: 1; }
  .pg-d { grid-column: 2; grid-row: 1; }
  .pg-t { grid-column: 1 / -1; }
  .pg-tp { grid-column: 1 / -1; }
  .pg-notes p { grid-template-columns: 1fr; gap: .15rem; }
  .prose .wp-block-file .wp-block-file__button { margin-left: 0; }
}

/* Playground models: controls over a live readout and chart. Neutral ink; violet
   only as the interaction accent (the selected point on the chart), per the Signal-Only Rule. */
.pg-model { margin-top: 2em; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.pgm-controls { display: grid; gap: .35rem; }
.pgm-row { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) 4.5rem; gap: 1rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--rule); }
.pgm-row label { display: grid; line-height: 1.3; }
.pgm-l { font-size: .9375rem; }
.pgm-u { font-size: .75rem; color: var(--ink-2); }
.pgm-row input[type="range"] { width: 100%; accent-color: var(--ink); margin: 0; }
.pgm-v { font-variant-numeric: tabular-nums lining-nums; text-align: right; font-weight: 500; }
.pgm-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1.5rem; margin: 1.5rem 0 0; }
.pgm-o-be { grid-column: span 2; }
.pgm-out dt { font-size: .8125rem; color: var(--ink-2); }
.pgm-out dd { margin: .2rem 0 0; font-size: 1.5rem; font-weight: 300; letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; }
.pgm-o-be dd { font-size: 1rem; font-weight: 400; letter-spacing: 0; padding-top: .35rem; }
.pgm-out dd[data-state="yes"] { color: var(--ssf-text); }
.pgm-out dd[data-state="no"] { color: var(--desk-text); }
.pgm-chart { margin: 1.5rem 0 0; }
.pgm-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.pgm-grid line { stroke: var(--rule); stroke-width: 1; }
.pgm-grid text, .pgm-refs text { fill: var(--ink-3); font-size: 11px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.pgm-refs line { stroke: var(--rule-2); stroke-dasharray: 2 4; }
.pgm-hurdle { stroke: var(--ink-2); stroke-dasharray: 1 4; stroke-linecap: round; }
.pgm-now, .pgm-28 { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: round; }
.pgm-now { stroke: var(--ink-2); stroke-dasharray: 5 4; stroke-width: 1.25; }
.pgm-marker { stroke: var(--ql-line); stroke-width: 1; }
.pgm-dot { fill: var(--paper); stroke: var(--ql-line); stroke-width: 2; }
.pgm-chart figcaption { margin-top: .5rem; font-size: .8125rem; color: var(--ink-2); }
.pgm-note { margin-top: 1rem !important; font-size: .8125rem; color: var(--ink-2); }
.pgm-static { margin-top: 1.75rem; }
.pgm-static caption { caption-side: top; text-align: left; font-size: .8125rem; color: var(--ink-2); padding-bottom: .5rem; }
.pgm-static td, .pgm-static th { font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 760px) {
  .pgm-row { grid-template-columns: minmax(0, 1fr) 4rem; }
  .pgm-row input[type="range"] { grid-column: 1 / -1; grid-row: 2; }
  .pgm-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgm-o-be { grid-column: 1 / -1; }
}
