/* Shared by every article on gapnostic.com.
   Lifted out of the first one, because a fourth copy of the same 200 lines is
   three chances for the pages to drift apart. Article-specific pieces live in
   a small <style> block on the page that needs them. */
:root {
      --ink-blue: #243A73;
      --ink-navy: #101A2E;
      --blue-tint: #EEF2FC;
      --page: #F6F8FD;
      --card: #FFFFFF;
      --border: #E4E9F4;
      --text: #0E1729;
      --muted: #566178;
      --amber: #B45309;
      --radius: 16px;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      background: var(--page);
      color: var(--text);
      font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
      font-size: 17px;
      line-height: 1.65;
    }
    .wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }
    header { border-bottom: 1px solid var(--border); background: var(--card); }
    .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
    .brand { display: flex; align-items: center; gap: 10px; font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; font-weight: 700; font-size: 20px; color: var(--ink-navy); text-decoration: none; }
    .back { color: var(--ink-blue); text-decoration: none; font-weight: 600; font-size: 15px; }
    .back:hover { text-decoration: underline; }

    main { padding: 48px 0 64px; }
    h1 { font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--ink-navy); }
    h2 { font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 26px; letter-spacing: -0.01em; margin: 48px 0 14px; color: var(--ink-navy); }
    h3 { font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 19px; margin: 0 0 8px; color: var(--ink-navy); }
    p { margin: 0 0 16px; text-wrap: pretty; }
    h1, h2, h3 { text-wrap: balance; }
    ul, ol { margin: 0 0 16px; padding-left: 22px; }
    li { margin-bottom: 10px; }
    a { color: var(--ink-blue); }
    strong { font-weight: 600; }
    .lede { font-size: 20px; color: var(--muted); margin-bottom: 10px; }
    .updated { font-size: 14px; color: var(--muted); margin-bottom: 40px; }

    /* The three failure modes, numbered, because the order is the argument:
       they get harder to see and more dangerous as you go down. */
    .kind {
      background: var(--card);
      border: 1px solid var(--border);
      border-left: 4px solid var(--border);
      border-radius: var(--radius);
      padding: 20px 24px;
      margin: 0 0 16px;
    }
    .kind:last-of-type { border-left-color: var(--amber); }
    .kind-no {
      font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0 0 6px;
    }
    .kind:last-of-type .kind-no { color: var(--amber); }
    .kind p:last-child { margin-bottom: 0; }

    .step {
      display: flex;
      gap: 16px;
      align-items: flex-start;
      margin: 0 0 22px;
    }
    .step-no {
      flex: none;
      width: 30px; height: 30px;
      border-radius: 50%;
      background: var(--ink-blue);
      color: #fff;
      font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
      font-weight: 600;
      font-size: 15px;
      display: flex; align-items: center; justify-content: center;
      margin-top: 2px;
    }
    .step-body p:last-child { margin-bottom: 0; }

    .pull {
      font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
      font-size: 22px;
      line-height: 1.4;
      color: var(--ink-navy);
      border-left: 3px solid var(--ink-blue);
      padding: 4px 0 4px 20px;
      margin: 32px 0;
    }
    .card { background: var(--blue-tint); border: 1px solid #DCE4F7; border-radius: var(--radius); padding: 24px 26px; margin: 40px 0 0; }
    .card h3 { margin-top: 0; }
    .card p:last-child { margin-bottom: 0; }
    .btn {
      display: inline-block;
      background: var(--ink-blue);
      color: #fff;
      text-decoration: none;
      font-weight: 600;
      padding: 12px 22px;
      border-radius: 10px;
      margin-top: 6px;
    }
    .btn:hover { background: #1E337A; }

    footer { border-top: 1px solid var(--border); background: var(--card); padding: 26px 0; margin-top: 56px; }
    .footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; font-size: 14px; color: var(--muted); }
    footer a { color: var(--muted); }
    @media (max-width: 620px) {
      h1 { font-size: 30px; }
      h2 { font-size: 22px; }
      body { font-size: 16px; }
      .lede { font-size: 18px; }
      .pull { font-size: 19px; }
    }

/* Read next. Keeps somebody who finished one article inside the site, and
   gives the crawler a path between pages that does not run through the
   homepage. */
.next { margin: 52px 0 0; padding-top: 26px; border-top: 1px solid var(--border); }
.next-label {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
.next a { display: block; font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 18px; font-weight: 600; text-decoration: none; margin-bottom: 10px; }
.next a:hover { text-decoration: underline; }

/* The reading index. */
.entry { display: block; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; margin: 0 0 16px; text-decoration: none; }
.entry:hover { border-color: var(--ink-blue); }
.entry h2 { font-size: 21px; margin: 0 0 8px; }
.entry p { color: var(--muted); margin: 0; font-size: 16px; }
