/* library.css — the static, zero-JS cheat sheet library (/cheat-sheets/).
 *
 * Hand-maintained. Mirrors the app's design system (src/styles/base.css,
 * src/components/site.css, src/landing/landing.css): copy paper + graph paper,
 * Archivo (with its width axis) for condensed headings, Kalam for red-pen
 * notes, ballpoint blue for actions, highlighter for selection. Pages are
 * generated by scripts/generate_seo_pages.py, which links this file with a
 * ?v=<content hash> so edits bust caches.
 */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(./archivo-latin-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./kalam-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f1f3ef;
  --paper-2: #e7eae4;
  --card: #ffffff;
  --ink: #151b2b;
  --ink-2: #454d63;
  --ink-3: #5c6478;
  --rule: #d2d7dd;
  --rule-2: #b9c0ca;
  --pen: #2346d8;
  --pen-deep: #1a33a3;
  --pen-wash: #e8edff;
  --red: #bf2c21;
  --red-wash: #fdecea;
  --hi: #ffe94a;
  --grid: rgba(35, 70, 216, 0.075);
  --grid-major: rgba(35, 70, 216, 0.12);
  --f-sans: 'Archivo Variable', 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Kalam', 'Comic Neue', cursive;
  --f-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --shadow-paper: 0 1px 1px rgba(21, 27, 43, 0.06), 0 2px 4px rgba(21, 27, 43, 0.05), 0 12px 28px -8px rgba(21, 27, 43, 0.18);
  --shadow-lift: 0 1px 1px rgba(21, 27, 43, 0.06), 0 6px 10px rgba(21, 27, 43, 0.06), 0 24px 40px -12px rgba(21, 27, 43, 0.28);
  --r-ctl: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1320px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--pen);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--pen-deep);
}
::selection {
  background: var(--hi);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--pen);
  outline-offset: 2px;
  border-radius: 3px;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 780;
  font-stretch: 80%;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-ctl);
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}
.hand {
  font-family: var(--f-hand);
  color: var(--red);
  font-weight: 400;
  line-height: 1.15;
}
.graph {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px), linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* ── Buttons (same as the app) ───────────────────────────────────────── */
.btn {
  --btn-bg: var(--card);
  --btn-fg: var(--ink);
  --btn-edge: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--btn-edge);
  border-radius: var(--r-ctl);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-stretch: 92%;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 0 var(--btn-edge);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease;
}
.btn:hover {
  color: var(--btn-fg);
  background: var(--btn-bg-hover, #f6f7fa);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--btn-edge);
}
.btn--primary {
  --btn-bg: var(--pen);
  --btn-bg-hover: #2c50e6;
  --btn-fg: #fff;
  --btn-edge: #14268a;
}
.btn--big {
  min-height: 54px;
  padding: 0 24px;
  font-size: 18px;
  border-radius: 10px;
}
.btn--sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 14.5px;
  box-shadow: 0 1.5px 0 var(--btn-edge);
}
.btn svg {
  flex: none;
}
.btn__meta {
  font-weight: 500;
  font-size: 14px;
  opacity: 0.8;
}

/* ── Site chrome ─────────────────────────────────────────────────────── */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-stretch: 78%;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark:hover {
  color: var(--ink);
}
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(241, 243, 239, 0.9);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.site-nav__links a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 560;
  font-stretch: 92%;
  font-size: 16px;
}
.site-nav__links a:hover,
.site-nav__links a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.site-foot__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 48px;
}
.site-foot__brand p {
  margin-top: 16px;
  max-width: 36ch;
  color: var(--ink-2);
  font-size: 15px;
}
.site-foot__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.site-foot__cols h2 {
  font-size: 15px;
  font-weight: 700;
  font-stretch: 90%;
  color: var(--ink-3);
  margin-bottom: 12px;
  letter-spacing: 0;
}
.site-foot__cols a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 15.5px;
  padding: 4px 0;
}
.site-foot__cols a:hover {
  color: var(--pen);
  text-decoration: underline;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────── */
.crumbs {
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 14.5px;
  color: var(--ink-3);
}
.crumbs li + li::before {
  content: '/';
  padding: 0 10px;
  color: var(--rule-2);
}
.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--pen);
  text-decoration: underline;
}

/* ── Subject hero ────────────────────────────────────────────────────── */
.s-hero {
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.s-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: 64px;
  align-items: start;
  padding-bottom: 72px;
}
.s-hero__copy {
  padding-top: 48px;
}
.kicker {
  font-size: 15px;
  font-weight: 650;
  font-stretch: 90%;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.s-hero h1 {
  margin-top: 14px;
  font-size: clamp(44px, 5.4vw, 76px);
  font-stretch: 70%;
  font-weight: 820;
  line-height: 0.95;
  letter-spacing: -0.018em;
  max-width: 13ch;
}
.s-hero h1 .h1-tag {
  display: block;
  margin-top: 14px;
  font-family: var(--f-hand);
  font-weight: 400;
  font-stretch: 100%;
  font-size: 0.4em;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--red);
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.s-hero__lede {
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}
.s-hero__ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.s-hero__own {
  margin-top: 22px;
  font-size: 16.5px;
  font-weight: 600;
}
.s-hero__own a {
  text-decoration: none;
}
.s-hero__own a:hover {
  text-decoration: underline;
}
.facts {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  font-size: 15px;
  color: var(--ink-3);
}
.facts li {
  padding: 0 18px;
  border-left: 1.5px solid var(--rule-2);
}
.facts li:first-child {
  padding-left: 0;
  border-left: 0;
}
.facts strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.preview {
  position: relative;
  margin: 40px 0 0;
}
.preview__paper {
  display: block;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(21, 27, 43, 0.07), 0 3px 6px rgba(21, 27, 43, 0.06),
    0 34px 60px -24px rgba(21, 27, 43, 0.38);
  transform: rotate(0.6deg);
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.preview__paper:hover {
  transform: rotate(0deg) translateY(-4px);
}
.preview__paper img {
  width: 100%;
  height: auto;
}
.preview__note {
  position: absolute;
  right: -8px;
  bottom: -46px;
  font-size: 20px;
  transform: rotate(-2deg);
}
.preview__note::before {
  content: '';
  display: inline-block;
  width: 46px;
  height: 12px;
  margin-right: 8px;
  vertical-align: middle;
  background: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 12'%3E%3Cpath d='M1 6c8-3 16 3 25 0s17-4 25 0' fill='none' stroke='%23bf2c21' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ── Generic page sections ───────────────────────────────────────────── */
.band {
  padding: 88px 0;
  border-bottom: 1px solid var(--rule);
}
.band--recessed {
  background: var(--paper-2);
}
.section-head {
  max-width: 780px;
}
.section-head h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  font-stretch: 72%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.section-head p {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 18px;
  color: var(--ink-2);
}

/* What's on it + how it was made */
.overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.topics {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  columns: 2;
  column-gap: 40px;
}
.topics li {
  position: relative;
  padding: 7px 0 7px 30px;
  break-inside: avoid;
  border-bottom: 1px solid var(--rule);
  font-size: 16.5px;
}
.topics li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 13px;
  width: 15px;
  height: 9px;
  border-left: 2.4px solid var(--red);
  border-bottom: 2.4px solid var(--red);
  transform: rotate(-48deg);
  border-radius: 1px;
}
.toc {
  margin-top: 36px;
}
.toc h3 {
  font-size: 15px;
  font-weight: 700;
  font-stretch: 90%;
  color: var(--ink-3);
  letter-spacing: 0;
}
.toc ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 12px 4px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 560;
  font-stretch: 92%;
}
.toc a::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--c, var(--pen));
}
.toc a:hover {
  border-color: var(--ink);
}

/* Index card with ruled lines, like the landing page's closing card */
.card-note {
  position: relative;
  padding: 77px 30px 31px;
  background-color: #fff;
  background-image: linear-gradient(
      to bottom,
      transparent 46px,
      rgba(207, 51, 39, 0.6) 46px,
      rgba(207, 51, 39, 0.6) 48px,
      transparent 48px
    ),
    repeating-linear-gradient(to bottom, transparent 0 29px, rgba(35, 70, 216, 0.16) 29px 30px);
  background-position: 0 0, 0 48px;
  box-shadow: var(--shadow-lift);
  transform: rotate(-0.6deg);
  line-height: 30px;
}
.card-note h2 {
  position: absolute;
  top: 12px;
  left: 30px;
  right: 30px;
  font-size: 23px;
  font-stretch: 78%;
  line-height: 1.2;
}
.card-note p {
  font-size: 16px;
  color: var(--ink-2);
}
.card-note p + p {
  margin-top: 0;
}
.card-note ol {
  margin: 0;
  padding-left: 22px;
  font-size: 16px;
  color: var(--ink-2);
}
.card-note .hand {
  font-size: 19px;
  line-height: 30px;
}

/* ── The sheet, as HTML ──────────────────────────────────────────────── */
.sheet-body {
  margin-top: 48px;
  columns: 2 460px;
  column-gap: 28px;
}
.sec {
  break-inside: auto;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  margin: 0 0 28px;
  background: #fff;
  box-shadow: var(--shadow-paper);
  border-top: 5px solid var(--c, var(--pen));
  padding: 22px 26px 24px;
}
.sec > h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 28px;
  font-stretch: 76%;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
}
.sec > h2 .sec__n {
  font-size: 16px;
  font-weight: 800;
  font-stretch: 70%;
  color: var(--c, var(--pen));
  font-variant-numeric: tabular-nums;
}
.sec > * + * {
  margin-top: 14px;
}
.sec > *,
.defs > div {
  break-inside: avoid;
}
.sec > h2 {
  break-after: avoid;
}
/* A long unbreakable expression (e.g. a \ce{} chain) scrolls inside its own
   line instead of widening the page. */
.sec p,
.sec li,
.defs > div,
.tbl__cap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  /* room for KaTeX's tall fractions / limits so nothing gets clipped */
  padding-top: 4px;
  padding-bottom: 6px;
}
.sec p,
.sec li,
.sec dd {
  font-size: 16px;
  line-height: 1.55;
}
.sec b,
.sec strong {
  font-weight: 700;
}
.sec code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  padding: 0.08em 0.32em;
  border-radius: 4px;
  background: #f1f2f6;
  overflow-wrap: anywhere;
}
.defs {
  margin: 14px 0 0;
}
.defs > div + div {
  margin-top: 2px;
}
.defs dt {
  display: inline;
  font-weight: 700;
  color: var(--c, var(--ink));
}
.defs dt::after {
  content: '\00a0\2014\00a0';
  font-weight: 400;
  color: var(--ink-3);
}
.defs dd {
  display: inline;
  margin: 0;
  color: var(--ink);
}
.formula {
  padding: 12px 14px;
  border-left: 3px solid var(--c, var(--pen));
  background: #f7f8fb;
  border-radius: 0 6px 6px 0;
}
.formula__label {
  font-size: 14px;
  font-weight: 700;
  font-stretch: 88%;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.formula__math {
  scrollbar-width: thin;
  margin-top: 0;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 0 8px;
  -webkit-overflow-scrolling: touch;
}
.formula__prose {
  font-size: 16.5px !important;
  color: var(--ink);
}
.formula__note {
  margin-top: 0;
  font-size: 15px !important;
  color: var(--ink-2);
}
/* Markers are drawn inside the <li> box: list items scroll horizontally when
   they hold a very long expression, which would clip outside markers. */
.sec ul,
.sec ol {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: li;
}
.sec li {
  position: relative;
  padding-left: 20px;
}
.sec ul > li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: calc(4px + 0.62em);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, var(--ink-3));
}
.sec ol > li {
  counter-increment: li;
  padding-left: 26px;
}
.sec ol > li::before {
  content: counter(li) '.';
  position: absolute;
  left: 0;
  top: 4px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--c, var(--ink-3));
}
.tbl {
  margin-top: 14px;
}
.tbl__cap {
  font-size: 14px;
  font-weight: 700;
  font-stretch: 88%;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.tbl__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: 6px;
  /* scroll shadows: an edge shadow shows while more of the table is hidden that way */
  background:
    linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left / 28px 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(21, 27, 43, 0.22), transparent) left / 10px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(21, 27, 43, 0.22), transparent) right / 10px 100% no-repeat scroll,
    #fff;
}
.tbl__scroll:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.tbl table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}
.tbl th,
.tbl td {
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.tbl th {
  background: #f4f5f8;
  font-weight: 700;
  font-stretch: 90%;
  white-space: nowrap;
}
.tbl code {
  white-space: nowrap;
  overflow-wrap: normal;
}
.tbl tr:last-child td {
  border-bottom: 0;
}
.tbl td + td,
.tbl th + th {
  border-left: 1px solid var(--rule);
}
.ex {
  padding: 12px 14px;
  background: #fffbe0;
  border-radius: 6px;
}
.ex__q {
  font-size: 16px;
}
.ex__l {
  display: inline-block;
  margin-right: 8px;
  font-weight: 800;
  font-stretch: 80%;
  color: var(--ink);
}
.ex__a {
  margin-top: 2px;
  padding-left: 14px;
  border-left: 2px solid rgba(21, 27, 43, 0.2);
  color: var(--ink-2);
}
.warn {
  padding: 10px 14px;
  background: var(--red-wash);
  border-radius: 6px;
}
.warn__l {
  font-family: var(--f-hand);
  color: var(--red);
  font-size: 18px;
  margin-right: 6px;
}
.code {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #151b2b;
  color: #eef1f8;
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}
/* A code block's <code> must not pick up the inline-code chip (light background on dark). */
.sec .code code {
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}
.code__label {
  font-size: 14px;
  font-weight: 700;
  font-stretch: 88%;
  color: var(--ink-2);
}
.code__label + .code {
  margin-top: 6px;
}
/* The engine's graceful fallback for an expression KaTeX can't typeset. */
/* math + trailing punctuation: no break before the "." but the math itself
   may still wrap between its terms */
.nobr {
  white-space: nowrap;
}
.nobr .katex-html {
  white-space: normal;
}
.cs-mfb {
  font-family: var(--f-mono);
  font-size: 0.9em;
}
.katex {
  font-size: 1.08em;
}
.sheet-foot {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
/* Premade sheets are half free: badge on the blurred preview, and the locked
   half of the text as section names and terms only (generate_seo_pages.py). */
.preview__paper--locked {
  position: relative;
}
.preview__lock {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(21, 27, 43, 0.5);
}
.locked {
  margin-top: 22px;
  padding: 22px;
  border: 1.5px dashed var(--rule-2);
  border-radius: 12px;
  background: var(--card);
}
.locked__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 14px;
}
.locked__title {
  margin: 6px 0 6px;
  font-size: 22px;
}
.locked__head p:last-child {
  margin: 0;
  color: var(--ink-2);
  max-width: 62ch;
}
.locked__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px 22px;
}
.locked__sec h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.locked__sec ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 15px;
}
.locked__cta {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.locked__cta > a:last-child {
  color: var(--ink-2);
  font-weight: 600;
}
.sheet-foot__edit {
  flex-basis: 100%;
  color: var(--ink-2);
  font-weight: 600;
}
.make-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--make-bar-h);
  padding: 10px var(--gutter);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(241, 243, 239, 0.97);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 24px rgba(21, 27, 43, 0.08);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
/* With script: stay out of the way until the header's own button has scrolled off. */
.make-bar.is-auto:not(.is-on) {
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.2s ease-in, visibility 0s 0.2s;
}
.make-bar p {
  margin: 0;
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.4;
}
.make-bar .btn {
  flex: none;
  min-height: 44px;
  touch-action: manipulation;
}
:root {
  --make-bar-h: 66px;
}
body:has(.make-bar) {
  padding-bottom: calc(var(--make-bar-h) + env(safe-area-inset-bottom, 0px));
}
/* Keyboard focus and in-page jumps must not land underneath the bar. */
html:has(.make-bar) {
  scroll-padding-bottom: calc(var(--make-bar-h) + 24px);
}
@media (prefers-reduced-motion: reduce) {
  .make-bar,
  .make-bar.is-auto:not(.is-on) {
    transition: none;
  }
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
}
.faq dl {
  margin: 0;
}
.faq dt {
  font-size: 21px;
  font-weight: 760;
  font-stretch: 82%;
  line-height: 1.2;
}
.faq dd {
  margin: 8px 0 0;
  color: var(--ink-2);
  max-width: 64ch;
}
.faq dd + dt {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}

/* ── Sheet cards (related + hub) ─────────────────────────────────────── */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 44px 32px;
}
.card {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.card:hover {
  color: var(--ink);
}
.card__paper {
  display: block;
  aspect-ratio: 480 / 621;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-paper);
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.2, 1), box-shadow 0.25s ease;
}
.card__paper img {
  width: 100%;
  height: auto;
}
.card:hover .card__paper {
  transform: translateY(-5px) rotate(-0.6deg);
  box-shadow: var(--shadow-lift);
}
.card:focus-visible {
  outline-offset: 8px;
}
.card__meta {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.card__meta strong {
  font-size: 19px;
  font-weight: 780;
  font-stretch: 80%;
  color: var(--ink);
  line-height: 1.15;
}
.card:hover .card__meta strong {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}
.related-group h3 {
  font-size: 22px;
  font-stretch: 80%;
  margin: 40px 0 24px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}
.related-group .cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

/* ── Hub ─────────────────────────────────────────────────────────────── */
.h-hero {
  border-bottom: 1px solid var(--rule);
}
.h-hero__inner {
  padding-top: 56px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 56px;
  align-items: end;
}
.h-hero h1 {
  font-size: clamp(46px, 6vw, 88px);
  font-stretch: 68%;
  font-weight: 830;
  line-height: 0.92;
  letter-spacing: -0.02em;
  max-width: 11ch;
}
.h-hero__lede {
  margin-top: 24px;
  font-size: 19px;
  color: var(--ink-2);
  max-width: 50ch;
}
.h-hero__ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.h-hero__stack {
  position: relative;
  height: 300px;
}
.h-hero__stack img {
  position: absolute;
  width: 210px;
  height: auto;
  background: #fff;
  box-shadow: var(--shadow-paper);
}
.h-hero__stack img:nth-child(1) {
  left: 0;
  top: 40px;
  transform: rotate(-5deg);
}
.h-hero__stack img:nth-child(2) {
  left: 105px;
  top: 10px;
  transform: rotate(1.5deg);
  z-index: 1;
}
.h-hero__stack img:nth-child(3) {
  left: 210px;
  top: 48px;
  transform: rotate(5deg);
}
.h-hero__stack .hand {
  position: absolute;
  right: 0;
  bottom: -32px;
  font-size: 20px;
  z-index: 2;
  transform: rotate(-2deg);
}
.fields-nav {
  position: sticky;
  top: 69px;
  z-index: 20;
  background: rgba(241, 243, 239, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.fields-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 10px var(--gutter);
  max-width: var(--maxw);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fields-nav ul::-webkit-scrollbar {
  display: none;
}
.fields-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-stretch: 90%;
  font-size: 15px;
  white-space: nowrap;
}
.fields-nav a span {
  color: var(--ink-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.fields-nav a:hover {
  background: rgba(21, 27, 43, 0.06);
  color: var(--ink);
}
.field {
  padding: 72px 0 8px;
}
.field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--ink);
}
.field__head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-stretch: 72%;
  font-weight: 800;
}
.field__head p {
  color: var(--ink-3);
  font-size: 15px;
  white-space: nowrap;
}
.hub-note {
  margin-top: 72px;
  padding-bottom: 8px;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 70ch;
}

/* ── Closing card (as on the landing page) ───────────────────────────── */
.closing {
  padding: 104px 0 112px;
}
.closing__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  max-width: 1080px;
  margin: 0 auto;
  padding: 92px 56px 52px;
  background-color: #fff;
  background-image: linear-gradient(
      to bottom,
      transparent 58px,
      rgba(207, 51, 39, 0.6) 58px,
      rgba(207, 51, 39, 0.6) 60px,
      transparent 60px
    ),
    repeating-linear-gradient(to bottom, transparent 0 35px, rgba(35, 70, 216, 0.16) 35px 36px);
  background-position: 0 0, 0 60px;
  box-shadow: var(--shadow-lift);
  transform: rotate(-0.5deg);
}
.closing h2 {
  font-size: clamp(42px, 5.8vw, 84px);
  font-stretch: 66%;
  font-weight: 830;
  line-height: 0.92;
  letter-spacing: -0.02em;
  max-width: 11ch;
}
.closing__side p {
  margin-top: 18px;
  color: var(--ink-2);
  max-width: 38ch;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .s-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 44px;
  }
  .overview,
  .faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .card-note {
    max-width: 620px;
  }
  .h-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .h-hero__stack {
    display: none;
  }
}
@media (max-width: 860px) {
  /* Small screens: title, download, then the sheet itself; details after. */
  .s-hero__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 56px;
  }
  .s-hero__copy {
    display: contents;
  }
  .s-hero .kicker {
    order: 1;
    margin-top: 24px;
  }
  .s-hero h1 {
    order: 2;
  }
  .s-hero__ctas {
    order: 3;
  }
  .s-hero__own {
    order: 4;
  }
  .preview {
    order: 5;
    max-width: 520px;
    margin-top: 32px;
  }
  .s-hero__lede {
    order: 6;
    margin-top: 72px;
  }
  .facts {
    order: 7;
  }
  .crumbs li[aria-current] {
    display: none;
  }
  .related {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-foot__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .closing__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 84px 24px 32px;
  }
}
@media (max-width: 720px) {
  .site-nav__inner {
    gap: 12px;
  }
  .site-nav__links {
    gap: 16px;
  }
  .site-nav__links .hide-sm {
    display: none;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16.5px;
  }
  .s-hero h1 {
    font-size: clamp(38px, 10.6vw, 52px);
  }
  .s-hero h1 .h1-tag {
    margin-top: 10px;
  }
  .s-hero__lede {
    margin-top: 64px;
    font-size: 17px;
  }
  .s-hero__ctas {
    margin-top: 24px;
    gap: 12px;
  }
  .s-hero__own {
    margin-top: 16px;
  }
  .s-hero__ctas .btn {
    flex: 1 1 100%;
  }
  .facts {
    margin-top: 28px;
  }
  .facts li {
    padding: 0 12px;
  }
  .facts strong {
    font-size: 20px;
  }
  .preview__note {
    right: 0;
    font-size: 18px;
  }
  .band {
    padding: 64px 0;
  }
  .section-head p {
    font-size: 17px;
  }
  .topics {
    columns: 1;
  }
  .sheet-body {
    margin-top: 32px;
  }
  .sec {
    padding: 18px 16px 20px;
    margin-bottom: 20px;
  }
  .sec > h2 {
    font-size: 25px;
  }
  .formula {
    padding: 10px 12px;
  }
  .formula__math {
    font-size: 17px;
  }
  .card-note {
    padding: 77px 20px 31px;
  }
  .card-note h2 {
    left: 20px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }
  .related-group .cards {
    gap: 24px 12px;
  }
  .related-group .card__meta > span {
    display: none;
  }
  .related-group .card__meta strong {
    font-size: 15px;
  }
  .related-group h3 {
    margin-top: 32px;
  }
  .card__meta strong {
    font-size: 17px;
  }
  .card__meta {
    font-size: 13.5px;
  }
  .h-hero__inner {
    padding-top: 36px;
    padding-bottom: 48px;
  }
  .h-hero__lede {
    font-size: 17px;
  }
  .h-hero__ctas .btn {
    flex: 1 1 100%;
  }
  .fields-nav {
    top: 65px;
  }
  .field {
    padding-top: 56px;
  }
  .field__head {
    margin-bottom: 28px;
  }
  .closing {
    padding: 72px 0 88px;
  }
  .site-foot__cols {
    grid-template-columns: 1fr 1fr;
  }
  .site-foot__cols > div:last-child {
    grid-column: 1 / -1;
  }
}
.cta-short {
  display: none;
}
/* Phone menu (no JS): hidden until the inline links are. */
.site-nav__menu {
  display: none;
  position: static;
}
.site-nav__menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}
.site-nav__menu summary::-webkit-details-marker {
  display: none;
}
.site-nav__menu summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.site-nav__menu[open] summary {
  background: var(--paper-2, rgba(0, 0, 0, 0.05));
}
.site-nav__menu:not([open]) .site-nav__panel {
  display: none;
}
.site-nav__panel {
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  padding: 6px var(--gutter) 14px;
  background: var(--paper, #f1f3ef);
  border-bottom: 1px solid var(--rule, #d8dcd4);
  box-shadow: 0 12px 24px rgba(20, 24, 28, 0.08);
  z-index: 20;
}
.site-nav__panel a {
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  border-bottom: 1px dashed var(--rule, #d8dcd4);
}
.site-nav__panel a:last-child {
  border-bottom: 0;
}
/* Phones: the links row folds into the menu, but Pricing stays one tap away in the bar. */
.site-nav__pricing {
  display: none;
  font-weight: 600;
  font-size: 15px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 2px;
}
.site-nav__pricing:hover {
  text-decoration: underline;
}
@media (max-width: 460px) {
  .site-nav__links {
    display: none;
  }
  .site-nav__pricing {
    display: inline-block;
    margin-left: auto;
  }
  .site-nav__cta {
    margin-left: 0 !important;
  }
  .site-nav__menu {
    display: block;
  }
  .site-nav__inner {
    gap: 8px;
  }
  .wordmark {
    white-space: nowrap;
    font-size: 18px;
    gap: 7px;
    flex: none;
  }
  .wordmark svg {
    flex: none;
  }
  .site-nav__cta .btn {
    padding-left: 12px;
    padding-right: 12px;
  }
  .cta-long {
    display: none;
  }
  .cta-short {
    display: inline;
  }
  .site-nav__cta {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 720px) {
  /* On a phone the bar is the button alone: one thumb-height row, not a paragraph. */
  .make-bar p {
    display: none;
  }
  .make-bar .btn {
    flex: 1;
    justify-content: center;
  }
}
@media print {
  .site-nav,
  .fields-nav,
  .closing,
  .site-foot,
  .s-hero__ctas,
  .preview,
  .make-bar {
    display: none !important;
  }
  body:has(.make-bar) {
    padding-bottom: 0;
  }
  body {
    background: #fff;
  }
  .sec {
    box-shadow: none;
  }
}
@media (max-width: 360px) {
  .wordmark {
    font-size: 16px;
  }
  .site-nav__menu summary {
    width: 40px;
  }
  .site-nav__inner {
    gap: 6px;
  }
}
/* Long one-word subject names ("Thermodynamics") mustn't push a card past a 320px screen. */
.cards strong,
.cards h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}
.cards > li {
  min-width: 0;
}
@media (max-width: 440px) {
  /* Room for Pricing: the mark alone (it still links home, with its label). */
  .site-nav .wordmark span {
    display: none;
  }
}

/* ── Flyer layer (2026-10 library overhaul): same voice as the landing page ──
   Caps display titles, blue/red tags, eyebrows, card grids that use the full width. */
.s-hero h1,
.h-hero h1 {
  font-weight: 900;
  font-stretch: 78%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
}
.s-hero h1 {
  font-size: clamp(40px, 4.6vw, 68px);
  max-width: 14ch;
}
.s-hero h1 .h1-tag {
  text-transform: none;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.s-hero .tags {
  margin-top: 44px;
}
.s-hero .tags + h1 {
  margin-top: 18px;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 11px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}
.tag--pen {
  background: var(--pen);
  border-color: var(--pen);
  color: #fff;
}
.tag--red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--red);
}
.section-head .eyebrow {
  margin: 0 0 14px;
  max-width: none;
  font-size: 13px;
  color: var(--red);
}
.band-head {
  max-width: 820px;
  margin-bottom: 40px;
}
.band-head h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  font-stretch: 72%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.band-head > p:not(.eyebrow) {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 18px;
  color: var(--ink-2);
}

/* Questions as cards: two columns that fill the container. */
.faq-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px;
}
.faq-card {
  padding: 24px 26px 26px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  border-radius: 4px;
  box-shadow: var(--shadow-paper);
}
.faq-card dt {
  font-size: 20px;
  font-weight: 780;
  font-stretch: 82%;
  line-height: 1.2;
}
.faq-card dd {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}

/* Hub: field filter chips (links without script, aria-pressed toggles with it). */
.fields-nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}
.fields-nav .chips {
  list-style: none;
  margin: 0;
  padding: 2px 2px 4px;
  max-width: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 860px) {
  /* Phones and tablets: one swipeable row instead of a tall wrapped block. */
  .fields-nav .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
}
.fields-nav .chips::-webkit-scrollbar {
  display: none;
}
.fields-nav .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 7px 0 12px;
  border: 1.5px solid var(--rule-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.fields-nav .chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.fields-nav .chip__n {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 12px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.fields-nav .chip[aria-pressed='true'] {
  background: var(--pen);
  border-color: var(--pen-deep);
  color: #fff;
  box-shadow: 0 2px 0 var(--pen-deep);
}
.fields-nav .chip[aria-pressed='true'] .chip__n {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.fields-nav__count {
  flex: none;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fields-nav:not(.is-filter) .fields-nav__count {
  display: none;
}
.field[hidden] {
  display: none;
}
.field__head h2 {
  text-transform: uppercase;
  font-weight: 900;
  font-stretch: 78%;
}
.field__head p {
  font-weight: 650;
}

/* Hub: exams directory (text only, so it follows the picture cards). */
.exam-dir {
  margin-top: 44px;
  columns: 3 300px;
  column-gap: 24px;
}
.exam-dir__group {
  break-inside: avoid;
  margin: 0 0 24px;
  padding: 18px 20px 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--pen);
  border-radius: 4px;
  box-shadow: var(--shadow-paper);
}
.exam-dir__group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.exam-dir__n {
  color: var(--ink-3);
  font-weight: 650;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.exam-dir ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.exam-dir li {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink-3);
}
.exam-dir li a {
  display: block;
  font-size: 16px;
  font-weight: 650;
  font-stretch: 92%;
  text-decoration: none;
}
.exam-dir li a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}
.exam-dir li span {
  display: block;
  margin-top: 2px;
}

/* Exam text cards (exam pages' "Other exams"). */
.exam-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.exam-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  box-shadow: var(--shadow-paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.exam-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.exam-card strong {
  font-size: 20px;
  font-weight: 780;
  font-stretch: 82%;
  line-height: 1.15;
}
.exam-card:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.exam-card__blurb {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}
.more {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 0 56px;
}
.more .related-group h3 {
  margin-top: 0;
}
.cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}
@media (max-width: 860px) {
  .s-hero .tags {
    order: 1;
    margin-top: 24px;
  }
  .more {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}
@media (max-width: 600px) {
  .s-hero h1 {
    font-size: clamp(34px, 9.6vw, 46px);
  }
  .band-head {
    margin-bottom: 28px;
  }
  .band-head > p:not(.eyebrow) {
    font-size: 17px;
  }
  .faq-card {
    padding: 20px 18px 22px;
  }
  .faq-card dt {
    font-size: 18px;
  }
  /* No room for the count on a phone row, but keep it for screen readers (aria-live). */
  .fields-nav__count {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  /* The three facts stay on one row instead of wrapping the last under the first. */
  .facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-size: 13.5px;
    line-height: 1.3;
  }
  .facts li {
    padding: 0 10px;
  }
  .facts strong {
    font-size: 18px;
  }
  .cards--3 {
    gap: 24px 12px;
  }
  .cards--3 .card__meta > span {
    display: none;
  }
  .cards--3 .card__meta strong {
    font-size: 15px;
  }
}
