/* data.dfa.plus - the look of faultanticipation.com (Power Solutions): IBM Plex Sans, mahogany and maroon type,
   pale-blue bands, a maroon band with white cards. Chart inks keep the deck's meaning: blue held, maroon lost. */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url(fonts/ibm-plex-sans-latin.woff2) format('woff2');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --mahogany: #3C0001;       /* H1, buttons, nav */
  --maroon: #7E1F24;         /* H2, accents, the band */
  --band: #F0F6FC;           /* pale band */
  --text: #30363D;           /* body */
  --text-2: #424242;         /* secondary body */
  --muted: #5F6873;          /* captions (the reference's #8B949E fails contrast on white) */
  --rule: #D7DBE0;
  --white: #FFFFFF;
  /* chart inks */
  --held: #46589B;           /* reclosed and held, nothing lost */
  --back: #9AA6D0;           /* load back within minutes */
  --lost: #7E1F24;           /* load lost, shown in the recording */
  --unsure: #C9A2A5;         /* load missing, loss not confirmed */
  --rest: #C5CBD3;           /* no resolvable outcome */
  --lateral: #C9A2A5;
  --feeder: #7E1F24;
  --fuse: #9C6B1F;           /* the deck's fuse ink: a lateral its fuse took out */
  --wrap: 1160px;
  --prose: 720px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 17px/1.6 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--mahogany); text-underline-offset: 3px; }
a:hover { color: var(--maroon); }
.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--prose); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--white); padding: 8px; z-index: 10; }

/* ---- header */
.top { border-bottom: 1px solid var(--rule); background: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--mahogany); }
.brand img { height: 22px; width: auto; display: block; }
.brand span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border-left: 1px solid var(--rule); padding-left: 14px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--mahogany); text-decoration: none; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; font-weight: 300; }
.nav a[aria-current="page"], .nav a:hover { text-decoration: underline; }

/* ---- type */
h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { color: var(--mahogany); font-size: clamp(38px, 6vw, 68px); text-transform: uppercase; letter-spacing: -.005em; }
h2 { color: var(--maroon); font-size: clamp(28px, 3.6vw, 44px); }
h3 { color: var(--maroon); font-size: 22px; }
p { margin: 0 0 1em; }
.lede { color: var(--maroon); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; }
.eyebrow { display: block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--mahogany); margin-bottom: 18px; }
.eyebrow::before { content: ''; display: block; width: 60px; height: 1px; background: var(--mahogany); margin-bottom: 26px; }
.center .eyebrow::before { margin-left: auto; margin-right: auto; }
.note { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---- bands */
.band { padding: 88px 0; }
.band.pale { background: var(--band); }
.band.maroon { background: var(--maroon); color: var(--white); }
.band.maroon h2, .band.maroon .eyebrow, .band.maroon a { color: var(--white); }
.band.maroon .eyebrow::before { background: var(--white); }
.hero { padding: 96px 0 80px; }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 640px; }

/* ---- buttons */
.btns { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-block; background: var(--mahogany); color: var(--white); text-decoration: none; padding: 12px 20px; border-radius: 4px; font-size: 15px; }
.btn:hover { background: var(--maroon); color: var(--white); }
.btn.ghost { background: transparent; color: var(--mahogany); border: 1px solid var(--mahogany); }
.btn.ghost:hover { background: var(--mahogany); color: var(--white); }
.band.maroon .btn { background: var(--white); color: var(--mahogany); }
.band.maroon .btn.ghost { background: transparent; color: var(--white); border-color: var(--white); }

/* ---- stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 48px; }
.stat { background: var(--white); border-top: 3px solid var(--maroon); padding: 18px 20px 20px; }
.band.pale .stat { box-shadow: 0 1px 0 var(--rule); }
.stat .v { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; color: var(--mahogany); line-height: 1.1; }
.stat .l { display: block; font-size: 15px; color: var(--text-2); margin-top: 6px; line-height: 1.4; }

/* ---- panels */
.panel { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.panel.flip { grid-template-columns: 7fr 5fr; }
.panel.flip > .copy { order: 2; }
.panel .num { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--mahogany); display: block; margin-bottom: 14px; }
.figure { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 28px; }
.band.pale .figure { border-color: transparent; box-shadow: 0 1px 2px rgba(48, 54, 61, .08); }
.fig-head { font-size: 15px; font-weight: 600; color: var(--text); margin: 0 0 14px; }
.fig-foot { font-size: 13px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.kicker { font-size: 20px; color: var(--maroon); line-height: 1.45; margin-top: 18px; }
.kicker strong { color: var(--mahogany); }

/* ---- 100% bars */
.bar { display: flex; height: 44px; border-radius: 3px; overflow: hidden; margin: 6px 0 10px; }
.bar > span { display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; white-space: nowrap; }
.bar > span.dark { color: var(--text); }
.legend { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 6px; font-size: 15px; }
.legend li { display: grid; grid-template-columns: 14px auto 1fr; gap: 10px; align-items: baseline; }
.legend i { width: 14px; height: 14px; border-radius: 2px; display: inline-block; transform: translateY(2px); }
.legend b { font-weight: 600; color: var(--mahogany); min-width: 3.2em; }
.vs { display: grid; gap: 30px; }
.vs .who { font-size: 15px; color: var(--text-2); margin: 0; }
.vs .big { font-size: 40px; font-weight: 600; line-height: 1; color: var(--mahogany); }

/* ---- range band */
.range { position: relative; padding: 52px 0 76px; }
.range .bar { height: 40px; margin: 0; }
.tick { position: absolute; top: 18px; bottom: 30px; width: 2px; background: var(--text); }
.tick b { position: absolute; white-space: nowrap; font-size: 15px; color: var(--mahogany); }
.tick.lo b { top: -6px; right: 8px; }
.tick.hi { top: 40px; bottom: 6px; }
.tick.hi b { bottom: -4px; left: 8px; }
.range-cap, .wave .zoom { display: none; }

/* ---- column bars */
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; align-items: end; height: 230px; border-bottom: 1px solid var(--rule); }
.cols .c { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.cols .c i { display: block; width: 100%; max-width: 76px; background: var(--held); border-radius: 3px 3px 0 0; }
.cols .c b { font-size: 18px; font-weight: 600; color: var(--mahogany); margin-bottom: 6px; }
.cols-x { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; text-align: center; font-size: 14px; color: var(--text-2); margin-top: 8px; line-height: 1.35; }

/* ---- horizontal bars */
.hbars { display: grid; gap: 14px; }
.hb { display: grid; grid-template-columns: 12.5em 1fr; gap: 12px; align-items: center; font-size: 15px; }
.hb .t { display: flex; align-items: center; gap: 10px; }
.hb .t i { height: 26px; background: var(--maroon); border-radius: 0 3px 3px 0; display: block; }
.hb .t b { color: var(--mahogany); font-weight: 600; white-space: nowrap; }
.hb small { display: block; color: var(--muted); font-size: 13px; }

/* ---- waveforms */
.waves { display: grid; gap: 40px; margin-top: 44px; }
.wave { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 22px 22px 18px; }
.wave h3 { font-size: 19px; margin-bottom: 4px; }
.wave .meta { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.wave .outcome { display: inline-block; font-size: 13px; padding: 2px 9px; border-radius: 3px; color: var(--white); margin-bottom: 10px; }
.wave a.img { display: block; }
.wave img { width: 100%; display: block; }
.wave p { font-size: 15px; margin: 12px 0 0; color: var(--text-2); }
.wave details summary { font-size: 14px; }

/* ---- cards (maroon band) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.card { background: var(--white); color: var(--text); border-radius: 6px; padding: 30px 28px; text-decoration: none; display: block; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 16px; margin: 0; }
.card .go { display: inline-block; margin-top: 16px; color: var(--mahogany); font-weight: 600; font-size: 15px; }
a.card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.card.soon { opacity: .9; }
.card .tag { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); margin-bottom: 10px; }

/* ---- table */
.tn { width: 100%; border-collapse: collapse; font-size: 15px; }
.tn th, .tn td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.tn thead th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mahogany); font-weight: 600; }
.tn tbody th { font-weight: 600; color: var(--maroon); width: 22%; }
.tn td.then { color: var(--text-2); width: 32%; }
.tn em { font-style: normal; font-weight: 600; color: var(--mahogany); }

/* ---- methods */
.defs dt { font-weight: 600; color: var(--maroon); margin-top: 18px; }
.defs dt:first-child { margin-top: 6px; }
.defs dd { margin: 4px 0 0; }
.refs li { margin: 8px 0; font-size: 15px; }

/* ---- history timeline (the deck's slide 5) */
.tl { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.tl::before { content: ''; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--rule); }
.tl li { position: relative; background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--maroon); border-radius: 4px; padding: 14px 16px 16px; margin-top: 34px; }
.tl li::before { content: ''; position: absolute; top: -26px; left: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--maroon); box-shadow: 0 0 0 4px var(--white); }
.tl-year { display: block; font-size: 24px; font-weight: 600; color: var(--mahogany); line-height: 1.1; }
.tl-who { display: block; font-size: 13px; letter-spacing: .04em; color: var(--maroon); margin: 4px 0 10px; }
.tl blockquote { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.tl-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
a.cite { font-size: .68em; vertical-align: super; line-height: 0; margin-left: 2px; text-decoration: none; color: var(--maroon); }
a.cite + a.cite::before { content: ','; margin-right: 1px; }
.more { font-size: 15px; margin-top: 8px; }

/* ---- thought experiment (the deck's slide) */
.te-step { margin-top: 48px; }
.te-step h3 { font-size: 24px; margin-bottom: 18px; }
.te-step .step { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mahogany); font-weight: 400; margin-bottom: 6px; }
.te-setup { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: stretch; }
.te-diagram { display: flex; align-items: center; }
.te-diagram svg { width: 100%; }
.sv { font-size: 15px; fill: var(--text); font-family: inherit; }
.sv.b { font-weight: 600; fill: #D02127; }
.te-tiles { display: grid; gap: 12px; }
.tile { background: var(--white); border-top: 3px solid var(--maroon); border-radius: 4px; padding: 14px 18px; box-shadow: 0 1px 2px rgba(48, 54, 61, .08); }
.tile b { display: block; font-size: 22px; font-weight: 600; color: var(--mahogany); line-height: 1.2; }
.tile > span { font-size: 15px; color: var(--text-2); }
.tree { display: grid; grid-template-columns: 96px 1fr; gap: 0 34px; align-items: center; }
.t-root { background: var(--mahogany); color: var(--white); border-radius: 6px; text-align: center; padding: 16px 8px; position: relative; }
.t-root b { display: block; font-size: 30px; line-height: 1; }
.t-root > span { font-size: 14px; color: var(--rule); }
.t-root::after { content: ''; position: absolute; right: -34px; top: 50%; width: 34px; border-top: 2px solid #8A9099; }
.t-groups { display: grid; gap: 22px; }
.t-group { display: grid; grid-template-columns: 140px 1fr; gap: 0 30px; align-items: center; position: relative; padding-left: 22px; }
.t-group::before { content: ''; position: absolute; left: 0; top: 50%; width: 22px; border-top: 2px solid #8A9099; }
.t-group::after { content: ''; position: absolute; left: 0; top: -11px; bottom: -11px; border-left: 2px solid #8A9099; }
.t-group:first-child::after { top: 50%; }
.t-group:last-child::after { bottom: 50%; }
.t-node { background: var(--band); border: 1px solid #8A9099; border-radius: 6px; padding: 12px; text-align: center; position: relative; }
.t-node b { display: block; font-size: 17px; color: var(--mahogany); }
.t-node > span { font-size: 14px; color: var(--text-2); }
.t-node::after { content: ''; position: absolute; right: -30px; top: 50%; width: 30px; border-top: 2px solid #8A9099; }
.t-leaves { display: grid; gap: 10px; padding-left: 18px; }
.t-leaf { position: relative; }
.t-leaf::before { content: ''; position: absolute; left: -18px; top: 50%; width: 18px; border-top: 2px solid #8A9099; }
.t-leaf::after { content: ''; position: absolute; left: -18px; top: -5px; bottom: -5px; border-left: 2px solid #8A9099; }
.t-leaf:first-child::after { top: 50%; }
.t-leaf:last-child::after { bottom: 50%; }
.t-leaf { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; background: var(--band); border-left: 5px solid var(--held); border-radius: 4px; padding: 10px 14px; }
.t-leaf.fail { border-left-color: var(--lost); }
.t-leaf.gap { outline: 3px solid var(--fuse); outline-offset: 2px; }
.t-leaf p { margin: 0; }
.t-head { font-weight: 600; color: var(--text); font-size: 15px; }
.t-does { font-size: 14px; color: var(--text-2); }
.badge { width: 28px; height: 28px; border-radius: 50%; background: var(--maroon); color: var(--white); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.t-chips { display: grid; gap: 5px; justify-items: end; }
.chip { font-size: 12px; font-weight: 600; color: var(--white); border-radius: 10px; padding: 2px 10px; white-space: nowrap; }
.chip.ok, .chip.out-nobody { background: var(--held); }
.chip.fail, .chip.out-feeder { background: var(--lost); }
.chip.out-lateral { background: var(--fuse); }
.te-gap { border-left: 4px solid var(--fuse); padding: 4px 0 4px 16px; margin-top: 20px; max-width: var(--prose); }
.te-count { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: stretch; }
.bar-x { display: flex; font-size: 13px; color: var(--text-2); }
.bar-x span { white-space: nowrap; overflow: visible; }
.bar-x span:last-child { text-align: right; }
.te-card { background: var(--white); border-top: 3px solid var(--maroon); border-radius: 4px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(48, 54, 61, .08); font-size: 17px; }
.te-card strong { color: var(--mahogany); }
.te-close { font-weight: 600; font-size: 22px; margin-top: 28px; }

/* ---- library */
[hidden] { display: none !important; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 16px 18px; background: var(--band); border-radius: 6px; position: sticky; top: 0; z-index: 2; margin-bottom: 28px; }
.filters input[type=search] { flex: 1 1 260px; font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid #B8BEC6; border-radius: 4px; }
.filters select { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid #B8BEC6; border-radius: 4px; background: var(--white); }
.filters .chk { font-size: 15px; display: flex; gap: 6px; align-items: center; }
.filters .count { margin-left: auto; font-size: 14px; color: var(--muted); }
.libsec { margin-bottom: 56px; }
.dec h3 { font-size: 18px; color: var(--mahogany); margin: 28px 0 8px; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.lib { list-style: none; padding: 0; margin: 0; }
.lib li { font-size: 15px; line-height: 1.5; padding: 7px 0; border-bottom: 1px solid #EEF1F4; }
.lib .meta { font-size: 12px; color: var(--muted); letter-spacing: .03em; margin-left: 4px; }
.lib a { font-size: 13px; font-weight: 600; margin-left: 6px; }

/* ---- coming soon */
.card { position: relative; }
.card.soon { background: #F4EEEE; }
.card.soon h3, .card.soon p { color: var(--muted); }
.soon-badge { position: absolute; top: 18px; right: 18px; background: var(--mahogany); color: var(--white); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 14px; }

/* ---- methods */
.toc { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 15px; }
.toc a { color: var(--mahogany); }
.funnel { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: center; margin: 32px 0; }
.funnel .arrow { font-size: 28px; color: var(--maroon); }
.steps { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: center; background: var(--band); border-left: 4px solid var(--maroon); border-radius: 4px; padding: 12px 16px; font-size: 16px; color: var(--text); }
.band.pale .steps li { background: var(--white); }
.defs.checks dd { color: var(--text-2); }

/* ---- footer */
.foot { padding: 0 0 40px; margin-top: 56px; }
.legend.flow { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 20px; }
.legend.flow li { display: flex; gap: 8px; align-items: center; }
.legend.flow i { transform: none; }
.foot .wrap { border-top: 1px solid var(--maroon); padding-top: 30px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--maroon); }
.foot img { height: 14px; width: auto; display: block; }
.foot a { color: var(--maroon); }

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .band { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .panel, .panel.flip { grid-template-columns: 1fr; gap: 28px; }
  .panel.flip > .copy { order: 0; }
  .figure { padding: 18px; }
  .top .wrap { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 14px; padding-bottom: 12px; }
  .brand span { display: none; }
  .nav { gap: 16px; justify-content: flex-start; }
  .hb { grid-template-columns: 1fr; gap: 4px; }
  .tn, .tn tbody, .tn tr, .tn th, .tn td { display: block; width: auto !important; }
  .tn thead { display: none; }
  .tn tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .tn th, .tn td { border: 0; padding: 4px 0; }
  .tn td.then::before { content: 'EL-3085, 1983: '; font-weight: 600; }
  .tn td.now::before { content: 'Today: '; font-weight: 600; }
  .vs .big { font-size: 32px; }
  .tl { grid-template-columns: 1fr; gap: 0; }
  .tl::before { left: 5px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tl li { margin: 0 0 14px 26px; }
  .tl li::before { top: 18px; left: -27px; }
  .te-setup, .te-count { grid-template-columns: 1fr; }
  .tree, .t-group { grid-template-columns: 1fr; gap: 10px; }
  .t-groups { border-left: 0; gap: 26px; }
  .t-group { padding-left: 0; }
  .t-root::after, .t-node::after, .t-group::before, .t-group::after, .t-leaf::before, .t-leaf::after { display: none; }
  .t-leaves { padding-left: 0; }
  .t-root { justify-self: start; padding: 10px 18px; }
  .t-node { justify-self: start; text-align: left; }
  .t-leaf { grid-template-columns: 28px 1fr; }
  .t-chips { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; }
  .filters { position: static; }
  .soon-badge { position: static; display: block; width: max-content; margin-bottom: 12px; }
  .te-diagram { overflow-x: auto; }
  .te-diagram svg { min-width: 540px; }
  .range { padding: 14px 0 18px; }
  .tick { top: 6px; bottom: 6px; }
  .tick.hi { top: 6px; bottom: 6px; }
  .tick b { display: none; }
  .range-cap { display: block; font-size: 15px; font-weight: 600; color: var(--mahogany); margin: 0 0 14px; }
  .wave .zoom { display: block; margin: 8px 0 0; }
  .funnel { grid-template-columns: 1fr; gap: 8px; }
  .funnel .arrow { display: none; }
}
