/* Hugo equivalents of Nova Breadcrumb, Table, Separator and Card. */
.inner {
  --background: var(--color-paper);
  --foreground: var(--color-ink);
  --primary: var(--color-accent);
  --muted-foreground: var(--color-muted);
  --secondary: var(--color-paper-2);
  --border: var(--color-rule);
  --ring: var(--color-focus);
  --radius: .625rem;
}
.article-shell.wrap, .article-shell.has-article-sharing { width: min(var(--wrap), calc(100% - 64px)); max-width: var(--wrap); padding-bottom: 64px; }
.inner .breadcrumb { padding-top: 24px; gap: 8px; font: 400 .875rem/1.5 var(--font-display); color: var(--muted-foreground); }
.inner .breadcrumb > :last-child { white-space: normal; }
.article-shell .article-heading { display: block; padding: 32px 0; }
.article-shell .article-title-block h1 { max-width: none; margin: 0; font: 600 clamp(2rem, 3.5vw, 3rem)/1.12 var(--font-display); letter-spacing: -.035em; overflow-wrap: normal; text-wrap: balance; }
.article-shell .eyebrow { font: 600 .75rem/1.5 var(--font-display); letter-spacing: .08em; margin: 0 0 12px; }
.article-shell .article-excerpt { max-width: 88ch; margin: 20px 0 0; font: 400 1.125rem/1.6 var(--font-display); color: var(--muted-foreground); }
.article-shell .article-record { max-width: none; border: 0; padding: 0; margin-top: 24px; font-family: var(--font-display); }
.article-shell .article-record dl { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.article-shell .article-record dl div { display: flex; gap: 8px; padding: 0; border: 0; font-size: .875rem; }
.article-shell .article-record dt { text-transform: none; letter-spacing: normal; color: var(--muted-foreground); }
.article-shell .article-record dd { text-align: left; }
.article-shell .article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; justify-content: stretch; }
.article-shell .article-layout-no-rail { grid-template-columns: minmax(0, 1fr); }
.article-shell .article-main { min-width: 0; }
.article-shell .reading-rail { position: sticky; top: 88px; display: block; max-height: calc(100dvh - 104px); overflow-y: auto; padding: 16px 0 0; border-top: 1px solid var(--border); font: 400 .875rem/1.5 var(--font-display); }
.article-toc p { margin: 0 0 12px; font: 600 .875rem/1.5 var(--font-display); letter-spacing: normal; text-transform: none; }
.article-toc ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.article-toc a { display: block; padding: 8px 12px; border-left: 2px solid var(--border); color: var(--muted-foreground); text-decoration: none; white-space: normal; }
.article-toc a:hover, .article-toc a:focus-visible { color: var(--foreground); border-color: var(--primary); background: var(--secondary); }
.article-shell .article-sharing-rail { position: static; margin-top: 24px; }
.article-shell .article-sharing-rail .share-box { border-top: 1px solid var(--border); }
.article-shell .article-body { max-width: none; font: 400 1rem/1.65 var(--font-display); }
.article-shell .article-body :where(p, ul, ol) { max-width: 88ch; margin-block: 0 16px; }
.article-shell .article-body li + li { margin-top: 8px; }
.article-shell .article-body > :first-child { font-size: inherit; line-height: inherit; }
.article-shell :is(.article-body h2, .article-method h2, .article-related h2, .article-sources h2, .article-faq h2, .site-comments h2) { margin: 32px 0 16px; font: 600 1.5rem/1.3 var(--font-display); letter-spacing: -.02em; }
.article-shell .article-body h3 { margin: 24px 0 12px; font: 600 1.125rem/1.4 var(--font-display); }
.article-shell .article-body figure, .article-shell .article-hero { margin: 0 0 24px; }
.article-shell .article-body figure img { max-height: 480px; }
.article-shell .article-body figcaption { font: 400 .75rem/1.5 var(--font-display); color: var(--muted-foreground); }
.article-shell .article-body table { display: table; width: 100%; table-layout: fixed; margin: 24px 0; overflow: visible; border-collapse: collapse; font: 400 .875rem/1.5 var(--font-display); }
.article-shell .article-body :where(th, td) { min-width: 0; width: auto; padding: 12px; border: 1px solid var(--border); overflow-wrap: anywhere; vertical-align: top; }
.article-shell .article-body th { background: var(--secondary); font-weight: 600; }
.article-shell .article-body tbody tr:nth-child(even) { background: var(--secondary); }
.article-shell .table-scroll { overflow: visible; }
.article-shell .article-body blockquote { margin: 24px 0; padding: 8px 0 8px 24px; font-size: 1rem; }
.article-shell .article-faq { margin-top: 32px; }
.article-shell .article-faq details { padding-block: 16px; }
.article-shell .article-faq details p { font: inherit; margin: 12px 0 0; }
.article-shell .article-method { margin-top: 32px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--secondary); font: 400 .875rem/1.6 var(--font-display); }
.article-shell .article-method h2 { margin-top: 0; }
.article-shell .article-method > p { margin-bottom: 16px; }
.article-shell .method-meta { margin-top: 16px; padding-top: 16px; font-size: .75rem; letter-spacing: normal; text-transform: none; }
.article-shell .article-related, .article-shell .article-sources { margin-top: 32px; }
.article-shell .article-related h2, .article-shell .article-sources h2 { margin-top: 24px; }
.article-shell .article-related ul, .article-shell .article-sources ol { max-width: none; }
.article-shell .article-next-step { border-radius: var(--radius); padding: 24px; }
.site-comments { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border); min-width: 0; }
.site-comments h2 { margin-top: 0; }
.site-comments-note { max-width: 88ch; font-size: .875rem; line-height: 1.6; color: var(--muted-foreground); margin-bottom: 24px; }
.site-comments-note a { text-decoration: underline; }
.site-comments .ecoku-comments { color-scheme: light; --ecoku-accent: var(--primary); --ecoku-theme: var(--background); --ecoku-entry: var(--secondary); --ecoku-primary: var(--foreground); --ecoku-content: var(--foreground); --ecoku-secondary: var(--muted-foreground); --ecoku-border: var(--border); --ecoku-border-soft: var(--border); --ecoku-radius: var(--radius); --ecoku-font-size: 16px; overflow-wrap: anywhere; }
.site-comments [hidden] { display: none !important; }
@media (max-width: 1023px) {
  .article-shell .article-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .article-shell .article-layout-no-rail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .article-shell.wrap, .article-shell.has-article-sharing { width: calc(100% - 32px); padding-bottom: 40px; }
  .article-shell .article-heading { padding-block: 24px; }
  .article-shell .article-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .article-shell .reading-rail { position: static; max-height: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  .article-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  .article-toc a { padding: 8px; font-size: .8125rem; }
  .article-shell .article-sharing-rail { margin-top: 16px; }
  .article-shell .article-sharing-rail .share-box { padding-block: 12px; }
  .article-shell .article-sharing-rail .preferred-source-actions { margin-bottom: 0; }
  .article-shell .article-excerpt { font-size: 1rem; }
  .article-shell .article-body :where(th, td) { padding: 8px; font-size: .8125rem; }
  .article-shell .article-method { padding: 16px; }
  .site-comments { margin-top: 40px; }
}
@media (max-width: 639px) { .article-toc ol { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) {
  .article-shell .article-body table[data-stacked] { display: block; border: 0; }
  .article-shell .article-body table[data-stacked] thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .article-shell .article-body table[data-stacked] tbody { display: grid; gap: 16px; }
  .article-shell .article-body table[data-stacked] tr { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--background); }
  .article-shell .article-body table[data-stacked] :where(td, th) { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; border: 0; padding: 12px; font-size: .875rem; overflow-wrap: break-word; }
  .article-shell .article-body table[data-stacked] :where(td, th) + :where(td, th) { border-top: 1px solid var(--border); }
  .article-shell .article-body table[data-stacked] :where(td, th)::before { content: attr(data-label); color: var(--muted-foreground); font-weight: 600; }
}

@media (min-width: 640px) { .article-shell .article-body td[data-numeric] { text-align: right; } }
