.footnotes-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.footnotes-shell {
  width: min(100% - 36px, 1120px);
  margin: 0 auto;
}

.footnotes-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.footnotes-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footnotes-brand img:first-child {
  border-radius: 999px;
}

.footnotes-brand img:last-child {
  width: auto;
  height: 20px;
}

.footnotes-help-link,
.footnotes-breadcrumb a,
.footnote-article-end a,
.footnotes-footer a {
  color: var(--text);
  text-decoration-color: rgba(22, 27, 34, 0.28);
  text-underline-offset: 0.22em;
}

.footnotes-help-link {
  font-size: 0.88rem;
}

.footnotes-help-link:hover,
.footnotes-breadcrumb a:hover,
.footnote-article-end a:hover,
.footnotes-footer a:hover {
  text-decoration-color: currentColor;
}

.footnotes-index-hero {
  max-width: 760px;
  padding: clamp(68px, 11vw, 128px) 0 clamp(52px, 8vw, 92px);
}

.footnotes-kicker {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footnotes-index-hero h1,
.footnote-article-header h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(2.8rem, 8vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.footnotes-index-hero > p:last-child {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.footnotes-index {
  padding-bottom: clamp(78px, 12vw, 140px);
}

.footnotes-index-list {
  border-top: 1px solid var(--line-strong);
}

.footnotes-index-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: background-color 160ms ease, padding 160ms ease;
}

.footnotes-index-row:hover,
.footnotes-index-row:focus-visible {
  padding-right: 12px;
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.56);
  outline: none;
}

.footnotes-index-row time {
  padding-top: 5px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.footnotes-index-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.footnotes-index-title {
  font-size: clamp(1.24rem, 2.8vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.footnotes-index-description {
  max-width: 680px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.footnotes-index-arrow {
  font-size: 1.3rem;
  line-height: 1;
  transform: translateY(4px);
  transition: transform 160ms ease;
}

.footnotes-index-row:hover .footnotes-index-arrow,
.footnotes-index-row:focus-visible .footnotes-index-arrow {
  transform: translate(5px, 4px);
}

.footnotes-empty {
  display: grid;
  gap: 5px;
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.footnotes-empty p {
  margin: 0;
}

.footnotes-empty p:last-child {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footnotes-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footnote-article {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(58px, 9vw, 104px) 0 clamp(80px, 12vw, 144px);
}

.footnote-article-header {
  padding-bottom: clamp(46px, 7vw, 72px);
  border-bottom: 1px solid var(--line-strong);
}

.footnote-article-header h1 {
  font-size: clamp(2.5rem, 7vw, 5.8rem);
}

.footnote-deck {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.1rem, 2.1vw, 1.4rem);
  line-height: 1.55;
}

.footnote-meta {
  margin: 26px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.footnote-article-body {
  padding: clamp(44px, 7vw, 72px) 0;
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  line-height: 1.76;
}

.footnote-article-body > * {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.footnote-article-body p,
.footnote-article-body ul,
.footnote-article-body ol,
.footnote-article-body blockquote,
.footnote-article-body figure,
.footnote-article-body .footnote-resource-link,
.footnote-article-body .footnote-callout {
  margin-top: 0;
  margin-bottom: 28px;
}

.footnote-article-body h2 {
  margin-top: 64px;
  margin-bottom: 20px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.footnote-article-body h3 {
  margin-top: 44px;
  margin-bottom: 16px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
  font-weight: 500;
}

.footnote-article-body a {
  text-decoration-color: rgba(22, 27, 34, 0.34);
  text-underline-offset: 0.18em;
}

.footnote-article-body a:hover {
  text-decoration-color: currentColor;
}

.footnote-article-body li + li {
  margin-top: 9px;
}

.footnote-article-body blockquote {
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--accent);
  color: var(--text-soft);
  font-size: 1.16em;
}

.footnote-article-body blockquote p {
  margin: 0;
}

.footnote-article-body cite {
  display: block;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: normal;
}

.footnote-article-body figure {
  max-width: 860px;
}

.footnote-article-body figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.footnote-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #111;
}

.footnote-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footnote-video-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footnote-video-caption a {
  flex: 0 0 auto;
  color: var(--text);
}

.footnote-faq-list {
  border-top: 1px solid var(--line-strong);
}

.footnote-faq details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.footnote-faq summary {
  cursor: pointer;
  font-weight: 500;
  line-height: 1.45;
}

.footnote-faq details p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.95em;
}

.footnote-article-body figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.footnote-callout {
  padding: 24px 26px;
  border-left: 4px solid var(--text);
  background: var(--accent);
  color: var(--text);
}

.footnote-callout h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: 0;
}

.footnote-callout p {
  margin: 0;
}

.footnote-resource-link {
  display: grid;
  gap: 5px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  text-decoration: none;
}

.footnote-link-description {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 400;
}

.footnote-article-end {
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.footnotes-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 680px) {
  .footnotes-shell {
    width: min(100% - 28px, 1120px);
  }

  .footnotes-topbar {
    min-height: 72px;
  }

  .footnote-video-caption {
    display: grid;
    gap: 6px;
  }

  .footnote-faq details {
    padding: 16px 0;
  }

  .footnotes-brand img:last-child {
    height: 17px;
    max-width: 160px;
  }

  .footnotes-index-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 22px 0;
  }

  .footnotes-index-row time {
    grid-column: 1 / -1;
    padding: 0;
  }

  .footnotes-index-description {
    font-size: 0.9rem;
  }

  .footnote-article {
    padding-top: 50px;
  }

  .footnote-article-body {
    line-height: 1.68;
  }

  .footnote-callout {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footnotes-index-row,
  .footnotes-index-arrow {
    transition: none;
  }
}
