.an-story {
  --ink: #e9f1fb;
  --soft: #b7c8dd;
  --line: #30435e;
  --cyan: #76e4ee;
  max-width: 1000px;
  margin: 0 auto;
  padding: 52px 28px 72px;
  color: var(--ink);
  font:
    18px/1.75 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  overflow-wrap: anywhere;
}
.an-story * {
  box-sizing: border-box;
}
.an-story a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.an-story a:focus-visible,
.an-story summary:focus-visible,
.an-story [tabindex]:focus-visible {
  outline: 3px solid #ffe389;
  outline-offset: 5px;
}
.an-story h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  max-width: 950px;
  margin: 12px 0 24px;
  color: #f5f8ff;
}
.an-story h2 {
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 46px 0 18px;
  letter-spacing: -0.025em;
}
.an-story h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0 0 10px;
}
.an-story p,
.an-story ul,
.an-story ol {
  margin: 0 0 22px;
}
.an-story li {
  margin-bottom: 10px;
}
.an-kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--cyan);
}
.an-deck {
  font-size: 1.3rem;
  line-height: 1.55;
  color: #ccdaeb;
  max-width: 840px;
}
.an-byline {
  font-size: 0.82rem;
  color: var(--soft);
  line-height: 1.8;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.an-hook {
  font-size: 1.16rem;
  font-weight: 550;
}
.an-takeaways {
  border-left: 4px solid #76e4ee;
  background: #11253a;
  padding: 22px 26px;
  margin: 28px 0;
}
.an-takeaways h2 {
  font-size: 1rem;
  margin: 0 0 14px;
}
.an-takeaways ul {
  margin-bottom: 0;
  padding-left: 22px;
}
.an-story sup {
  white-space: nowrap;
  font-size: 0.7em;
}
.an-figure {
  margin: 36px 0;
}
.an-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0d1d30;
}
.an-figure figcaption {
  font-size: 0.84rem;
  line-height: 1.65;
  color: #c4d3e6;
  margin-top: 14px;
}
.an-figure figcaption span {
  display: block;
  color: var(--soft);
  font-size: 0.75rem;
  margin-top: 5px;
}
.an-evidence {
  font-size: 0.84rem;
  color: var(--soft);
  border-bottom: 1px solid var(--line);
  padding: 0 0 22px;
}
.an-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.an-cards section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #102035;
}
.an-cards p {
  font-size: 0.96rem;
  margin: 0;
}
.an-steps {
  padding-left: 26px;
}
.an-steps > li {
  padding: 10px 0 22px 10px;
}
.an-expected {
  padding: 14px 18px;
  background: #132b39;
  font-size: 0.95rem;
  border-left: 3px solid #85d5c4;
}
.an-table {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.an-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  line-height: 1.6;
  table-layout: fixed;
}
.an-table th,
.an-table td {
  padding: 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.an-table th {
  color: #e9f1fb;
  background: #11263c;
}
.an-table caption {
  text-align: left;
  padding: 18px;
  font-weight: 650;
  background: #15283e;
}
.an-code {
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #091624;
}
.an-code > p,
.an-code summary {
  padding: 16px 20px;
  margin: 0;
  color: #cbdcf0;
  font-size: 0.9rem;
  cursor: pointer;
}
.an-code pre {
  overflow: auto;
  white-space: pre;
  margin: 0;
  padding: 20px;
  font:
    14px/1.65 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  max-height: 560px;
  color: #dceafa;
}
.an-code code {
  font: inherit;
  background: none;
  padding: 0;
  color: inherit;
}
.an-method {
  border-top: 1px solid var(--line);
  margin-top: 44px;
}
.an-method p {
  font-size: 0.96rem;
  color: #c5d4e7;
}
.an-sources {
  font-size: 0.9rem;
  padding-left: 24px;
}
.an-sources span {
  display: block;
  font-size: 0.8rem;
  color: var(--soft);
}
.an-end {
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.an-links {
  padding-left: 22px;
}
@media (max-width: 600px) {
  .an-story {
    padding: 32px 20px 50px;
    font-size: 17px;
  }
  .an-story h1 {
    font-size: 2.18rem;
  }
  .an-deck {
    font-size: 1.15rem;
  }
  .an-takeaways {
    padding: 18px;
  }
  .an-story h2 {
    font-size: 1.45rem;
  }
  .an-cards {
    grid-template-columns: 1fr;
  }
  .an-table table {
    min-width: 570px;
  }
  .an-table th,
  .an-table td {
    padding: 12px;
  }
  .an-code pre {
    font-size: 13px;
  }
  .an-byline {
    font-size: 0.79rem;
  }
}

.an-breadcrumbs,
.an-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.an-breadcrumbs span[aria-current] {
  color: #b4c5da;
}
.an-categories {
  margin-top: 1rem;
}
.an-categories a {
  border: 1px solid #38506b;
  border-radius: 2rem;
  padding: 0.25rem 0.7rem;
}
.an-code pre:has(code.language-text) {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: none;
  font-size: 0.95em;
  line-height: 1.6;
}

/* Reader articles use a calm text measure, with wider explanatory artwork. */
.an-story > p,
.an-story > h2,
.an-story > ul,
.an-story > ol,
.an-story > aside,
.an-story > section:not(.an-takeaways),
.an-story > .an-code,
.an-story > .an-table {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.an-story header {
  max-width: 900px;
  margin: 0 auto;
}
.an-story h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}
.an-deck {
  font-size: 1.16rem;
  line-height: 1.55;
}
.an-byline {
  padding-bottom: 0;
  border: 0;
}
.an-story .an-citation {
  font-size: 0.83em;
  font-weight: 400;
  white-space: normal;
}
.an-excerpt {
  padding: 30px 34px;
  border-left: 4px solid #76e4ee;
  background: #f6f2e9;
  color: #13253b;
  margin-top: 28px;
  margin-bottom: 32px;
}
.an-story .an-excerpt-label {
  color: #3c536b;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.an-story .an-excerpt > p:not(.an-excerpt-label) {
  color: #13253b;
}
.an-excerpt > p:last-child {
  margin-bottom: 0;
}
.an-expected {
  padding: 0;
  background: none;
  border: 0;
  color: var(--soft);
}
.an-method {
  font-size: 0.87rem;
}
.an-sources {
  list-style: none;
  padding-left: 0;
  line-height: 1.5;
}
.an-sources span {
  font-size: 0.8rem;
}
@media (max-width: 600px) {
  .an-story {
    padding: 30px 20px 48px;
    font-size: 17px;
  }
  .an-excerpt {
    padding: 22px 20px;
  }
  .an-figure {
    margin: 28px 0;
  }
  .an-table {
    overflow: visible;
  }
  .an-table table,
  .an-table caption,
  .an-table tbody,
  .an-table tr,
  .an-table th,
  .an-table td {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .an-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .an-table td::before {
    content: attr(data-label);
    display: block;
    color: #b7c8dd;
    font-weight: 700;
    margin-bottom: 6px;
  }
  .an-table td:last-child {
    padding-bottom: 24px;
  }
}
