/* AI, Work and the Economy: the look of wilsoniumite.com (Twenty Twenty-Five, dark variation). */

@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: fallback;
  src: url("/fonts/nFnOHM81r4j6k0gjAW3mujVU2B2K_J709jy92k.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: fallback;
  src: url("/fonts/nFhOHM81r4j6k0gjAW3mujVU2B2G_Vx0vr352np3Q.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: fallback;
  src: url("/fonts/nwpBtKy2OAdR1K-IwhWudF-R9QMylBJAV3Bo8Ky461EI_io6npfB.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: fallback;
  src: url("/fonts/nwpBtKy2OAdR1K-IwhWudF-R9QMylBJAV3Bo8Kxm7FEI_io6npfB.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 800; font-display: fallback;
  src: url("/fonts/nwpBtKy2OAdR1K-IwhWudF-R9QMylBJAV3Bo8Kw47FEI_io6npfB.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: fallback;
  src: url("/fonts/nwpDtKy2OAdR1K-IwhWudF-R3woAa8opPOrG97lwqLlO9CsYm4fB3Ts.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  /* the blog's palette */
  --base: #242525;
  --surface: #2c2d2d;
  --surface-2: #353535;
  --text: #cbcbcb;
  --strong: #f0f0f0;
  --muted: #9b9b9b;
  --rule: rgba(255, 255, 255, 0.2);
  --rule-soft: rgba(255, 255, 255, 0.09);
  --accent: #d1d0ea;
  /* status */
  --on: #e8866e;
  --near: #d9b85c;
  --off: #8fae96;
  --none: #7d7d7d;
  /* charts: lavender, gold, blue, coral, green, violet */
  --c1: #d1d0ea;
  --c2: #d9b85c;
  --c3: #7fb0d8;
  --c4: #e8866e;
  --c5: #8fc79a;
  --c6: #b99ad8;
  --band-rec: rgba(255, 255, 255, 0.07);
  --band-on: rgba(232, 134, 110, 0.16);
  /* type, as the blog */
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-small: 0.875rem;
  --fs-medium: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.196), 1.125rem);
  --fs-large: clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.392), 1.375rem);
  --fs-xl: clamp(1.4rem, 1.4rem + ((1vw - 0.2rem) * 0.627), 1.8rem);
  --fs-xxl: clamp(2rem, 2rem + ((1vw - 0.2rem) * 0.941), 2.6rem);
  --pad: clamp(16px, 5vw, 50px);
  --content: 800px;
  --wide: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--base); color: var(--text);
  font-family: var(--sans); font-size: var(--fs-medium); line-height: 1.5; letter-spacing: -0.22px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: var(--surface-2); padding: 4px 8px; z-index: 10; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.1px; line-height: 1.125;
  color: var(--text); margin: 1.6em 0 0.5em; }
h1 { font-size: var(--fs-xxl); margin-top: 0.6em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-large); }
p, ul, ol, table, figure, blockquote { margin: 0 0 1.2rem; }
ul, ol { padding-left: 1.3em; }
li { margin: 0.25em 0; }
strong { font-weight: 600; color: var(--strong); }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9em; }
cite { font-style: italic; }

/* header and footer, as the blog */
.site-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px;
  padding: 22px var(--pad); max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto;
}
.brand { font-family: var(--serif); font-weight: 700; font-size: var(--fs-large); letter-spacing: 1.44px;
  text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; }
.site-header nav a.ext::after { content: " ↗"; font-size: 0.8em; color: var(--muted); }
.site-footer { max-width: var(--content); margin: 72px auto 0; padding: 24px var(--pad) 48px;
  border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--fs-small); }
.site-footer p { margin: 0; }

main.column { max-width: calc(var(--content) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
main.wide { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
main.wide > h1, main.wide > .lede, main.wide > section { max-width: var(--content); }

.lede { font-size: var(--fs-large); line-height: 1.45; color: var(--strong); font-weight: 400; }
.small, .source, .chart-note, .chart-key { font-size: var(--fs-small); color: var(--muted); }
.source { margin-top: 1.6rem; }
.crumbs { font-size: var(--fs-small); color: var(--muted); margin: 1.5rem 0 0; }
.crumbs a { color: var(--muted); }
section { scroll-margin-top: 16px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4rem 0; }

blockquote { border-left: 2px solid var(--text); margin-left: 0; padding: 0.2em 0 0.2em 30px;
  font-size: var(--fs-large); font-weight: 300; line-height: 1.5; }
blockquote p { margin: 0; }

.hero { padding: 1rem 0 0.5rem; }
.hero h1 { font-size: clamp(2.2rem, 2.2rem + ((1vw - 0.2rem) * 1.4), 3.2rem); max-width: 14em; }

/* rows, as the blog's post list */
.rows { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--rule); }
.rows li { margin: 0; border-bottom: 1px solid var(--rule); }
.rows a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0;
  text-decoration: none; }
.rows a:hover .name { text-decoration: underline; }
.rows .name { font-family: var(--serif); font-size: var(--fs-large); line-height: 1.2; }
.rows .right { display: flex; align-items: baseline; gap: 14px; flex-shrink: 0; font-size: var(--fs-small); }
.rows .value { font-variant-numeric: tabular-nums; color: var(--muted); }
.rows.latest .name { font-family: var(--sans); font-size: var(--fs-medium); }
h3.group { font-family: var(--sans); font-size: var(--fs-small); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin: 2rem 0 0.4rem; }

.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: var(--fs-small); }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--none); flex-shrink: 0; }
.status-on { color: var(--on); } .status-on .dot { background: var(--on); box-shadow: 0 0 0 3px rgba(232, 134, 110, 0.2); }
.status-near { color: var(--near); } .status-near .dot { background: var(--near); }
.status-off { color: var(--muted); } .status-off .dot { background: var(--off); }
.status-none { color: var(--none); } .status-none .dot { background: transparent; border: 1px solid var(--none); }
.status-line { margin: 0.2rem 0 1rem; }
.reading { font-size: var(--fs-large); color: var(--strong); }

/* key facts */
.facts { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.facts li { margin: 0; border-bottom: 1px solid var(--rule); }
.facts a { display: grid; grid-template-columns: 7.5rem 1fr; gap: 18px; align-items: baseline; padding: 14px 0;
  text-decoration: none; }
.facts .figure { font-family: var(--serif); font-size: var(--fs-xl); color: var(--strong); line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.facts a:hover .fact { text-decoration: underline; }
@media (max-width: 560px) { .facts a { grid-template-columns: 1fr; gap: 2px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 2.5rem; }
.card { display: block; background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 6px;
  padding: 16px 18px; text-decoration: none; }
.card:hover { border-color: var(--rule); background: var(--surface-2); }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.button { display: inline-block; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 16px;
  text-decoration: none; }
.button:hover { border-color: var(--text); }

.toc ol { columns: 2; column-gap: 32px; padding-left: 1.3em; font-size: var(--fs-small); }
@media (max-width: 560px) { .toc ol { columns: 1; } }

table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
table.data th, table.data td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--rule-soft); }
table.data thead th { font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--rule); vertical-align: bottom; }
table.data th[scope=row] { text-align: left; font-weight: 400; }
table.data td:last-child { text-align: left; }
@media (max-width: 560px) { table.data { font-size: 0.8rem; } table.data th, table.data td { padding: 6px 4px; } }

/* charts */
figure.chart { margin: 1.4rem 0 1.6rem; }
figure.chart figcaption { font-size: var(--fs-small); color: var(--text); margin-bottom: 6px; font-weight: 600; }
.plot { position: relative; width: 100%; min-height: 240px; }
.plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.plot .legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-small); color: var(--muted);
  margin: 0 0 6px; }
.plot .legend span { display: inline-flex; align-items: center; gap: 6px; }
.plot .legend i { display: inline-block; width: 14px; height: 2px; border-radius: 1px; }
.plot .tip { position: absolute; pointer-events: none; background: var(--surface-2); border: 1px solid var(--rule);
  border-radius: 4px; padding: 6px 9px; font-size: 0.8rem; line-height: 1.35; white-space: nowrap; z-index: 2;
  color: var(--strong); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); }
.plot .tip b { font-weight: 600; }
.plot .tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.chart-key { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: -0.8rem; }
.key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.key-rec { background: rgba(255, 255, 255, 0.16); }
.key-on { background: var(--on); height: 5px; margin-left: 8px; }

/* the latest news */
.run { margin-top: 2.2rem; }
.run-head { font-family: var(--sans); font-size: var(--fs-small); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.alert { padding: 4px 0 14px; border-bottom: 1px solid var(--rule-soft); }
.alert h3 { margin: 0.2rem 0 0.5rem; font-size: var(--fs-large); line-height: 1.25; }
.alert p { margin: 0 0 0.6rem; }
.alert .meta, .alert .links { font-size: var(--fs-small); color: var(--muted); }
.alert .links a { color: var(--muted); }
.digest-head { font-family: var(--sans); font-size: var(--fs-small); font-weight: 600; color: var(--muted);
  margin: 1.2rem 0 0.4rem; }
.digest { padding-left: 1.1em; font-size: var(--fs-small); }
.digest li { margin: 0.45em 0; }
.digest a { color: var(--muted); }
ul.week { list-style: none; padding: 0; }
ul.week li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft); }
ul.week .time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* the automation explorer (guide) */
.automation { background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 8px; padding: 16px 16px 8px;
  margin: 1.2rem 0 1.6rem; }
.automation .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 8px; }
.automation .year { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; }
.automation .year input { flex: 1; }
.automation .readout { font-size: var(--fs-small); color: var(--strong); min-height: 3em; }
.automation figure.chart { margin: 0.6rem 0 0.8rem; }

/* segmented controls */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 5px 13px; font-size: var(--fs-small); color: var(--text); border-left: 1px solid var(--rule); }
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--accent); color: #1c1c1c; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -3px; }
input[type=range] { accent-color: var(--accent); }

/* the model */
.sim { display: grid; grid-template-columns: minmax(250px, 320px) 1fr; gap: 28px; margin: 1.4rem 0 2rem; align-items: start; }
@media (max-width: 860px) { .sim { grid-template-columns: 1fr; } }
.sim .controls { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 14px; }
.mbar { display: none; }
@media (max-width: 860px) {
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; gap: 10px; align-items: center;
    justify-content: space-between; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface-2);
    border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--strong); }
  .mbar button { white-space: nowrap; color: var(--strong); background: transparent; border: 1px solid var(--rule);
    border-radius: 999px; padding: 4px 12px; font: inherit; cursor: pointer; }
  body.has-mbar .site-footer { padding-bottom: 80px; }
}
.sim fieldset { border: 0; margin: 0; padding: 0; }
.sim legend { font-weight: 600; color: var(--strong); font-size: var(--fs-small); margin-bottom: 6px; padding: 0; }
.sim .opts { display: flex; flex-direction: column; gap: 2px; }
.sim .opts label { display: flex; align-items: baseline; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: 4px;
  font-size: var(--fs-small); }
.sim .opts label:hover { background: var(--surface); }
.sim .opts input { accent-color: var(--accent); margin: 0; transform: translateY(1px); }
.sim .opts label:has(input:checked) { background: var(--surface-2); color: var(--strong); }
.sim .desc { font-size: 0.8rem; color: var(--muted); margin: 4px 8px 0; line-height: 1.4; }
@media (max-width: 860px) {
  .sim .controls { position: static; }
  .sim .opts { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .sim .opts label { border: 1px solid var(--rule); border-radius: 999px; padding: 3px 11px; }
  .sim .opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .sim .opts label:has(input:checked) { background: var(--accent); color: #1c1c1c; border-color: var(--accent); }
  .sim .opts label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
}
.sim .inline { flex-direction: row; flex-wrap: wrap; }
.verdict { background: var(--surface); border: 1px solid var(--rule-soft); border-left: 3px solid var(--muted);
  border-radius: 6px; padding: 14px 18px; margin-bottom: 14px; }
.verdict h2 { margin: 0 0 4px; font-size: var(--fs-xl); }
.verdict p { margin: 0.3rem 0; }
.verdict .nums { font-size: var(--fs-small); color: var(--text); }
.v-depression { border-left-color: var(--on); } .v-depression h2 { color: var(--on); }
.v-labour, .v-labour-held { border-left-color: var(--near); } .v-labour h2, .v-labour-held h2 { color: var(--near); }
.v-deep { border-left-color: var(--c6); }
.v-recession { border-left-color: var(--c3); }
.v-slowdown { border-left-color: var(--off); }
.strip { margin: 0 0 12px; }
.strip p { font-size: var(--fs-small); color: var(--muted); margin: 0 0 6px; }
.strip .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--rule); background: transparent; color: var(--text); border-radius: 6px; padding: 5px 9px;
  font: inherit; font-size: 0.8rem; cursor: pointer; text-align: left; line-height: 1.3; }
.chip b { display: block; font-weight: 600; color: var(--strong); }
.chip .vd { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.chip[aria-pressed=true] { background: var(--surface-2); border-color: var(--accent); }
.chip:hover { border-color: var(--text); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 1.2rem 0 0.2rem; align-items: center; }
.tabs .lab { font-size: var(--fs-small); color: var(--muted); margin-right: 4px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .grid3 { grid-template-columns: 1fr; } }
.grid3 .plot { min-height: 180px; }
.how ul { padding-left: 1.2em; }
.validation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 700px) { .validation { grid-template-columns: 1fr; } }
