.article-main {
  padding-block: 32px 100px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.breadcrumb .icon {
  width: 14px;
  height: 14px;
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 780px);
  align-items: start;
  gap: clamp(40px, 5vw, 80px);
}

.article-nav {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 144px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 12px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.6;
}

.article-nav .back-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.article-nav > .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.article-nav nav a {
  display: block;
  padding-block: 8px;
  text-decoration: none;
}

.article-nav a:hover,
.article-nav a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.aside-help {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.aside-help > .icon {
  width: 28px;
  height: 28px;
  color: var(--ink);
}

.aside-help strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.aside-help p {
  margin: 0;
}

.aside-help a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-body {
  min-width: 0;
  max-width: 780px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.article-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 18px;
}

.article-eyebrow > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.article-eyebrow .icon {
  width: 15px;
  height: 15px;
}

.article-body > h1 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 48px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.13;
  text-wrap: balance;
}

.article-lead {
  margin: 0;
  color: var(--body);
  font-size: 20px;
  line-height: 1.65;
  text-wrap: pretty;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-block: 22px 24px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.article-meta .status-dot {
  width: 6px;
  height: 6px;
  margin-right: 3px;
  flex-shrink: 0;
  background: var(--ink);
}

.mobile-toc {
  display: none;
}

.article-section {
  margin-top: 52px;
  scroll-margin-top: 112px;
}

.article-section h2,
.article-sources h2,
.related h2,
.hub-links h2,
.support-template h2,
.site-directory > h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  text-wrap: balance;
}

.article-section p {
  margin: 0 0 20px;
}

.article-section > ul,
.article-section > ol {
  padding-left: 24px;
  margin: 24px 0;
}

.article-section > ul li {
  padding-left: 5px;
  margin-block: 10px;
}

.article-section > ul li::marker {
  color: var(--ink);
  font-size: 0.8em;
}

.article-section > .article-steps {
  padding: 0;
  list-style: none;
  counter-reset: article-step;
}

.article-steps li {
  position: relative;
  padding: 18px 0 18px 46px;
  border-top: 1px solid var(--line);
  counter-increment: article-step;
}

.article-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.article-steps li::before {
  position: absolute;
  top: 22px;
  left: 0;
  color: var(--ink);
  content: counter(article-step, decimal-leading-zero);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
}

.article-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  margin-block: 28px;
  background: var(--pale);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.7;
}

.article-note > .icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  padding: 8px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 8px;
}

.article-note p {
  margin: 2px 0 0;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 28px;
  border-block: 1px solid var(--line);
  scrollbar-width: thin;
}

.table-scroll table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}

.table-scroll th,
.table-scroll td {
  padding: 16px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table-scroll th {
  color: var(--ink);
  background: var(--pale);
  font-weight: 600;
}

.table-scroll td:first-child {
  color: var(--ink);
  font-weight: 500;
}

.table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.process-figure {
  padding-block: 26px 24px;
  margin: 32px 0;
  border-block: 1px solid var(--line);
}

.figure-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.figure-label .icon {
  width: 16px;
  height: 16px;
}

.process-figure ol {
  display: flex;
  gap: 34px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.process-figure li {
  position: relative;
  min-width: 0;
  flex: 1;
}

.process-figure li:not(:last-child)::after {
  position: absolute;
  top: 1px;
  right: -26px;
  color: var(--muted);
  content: "→";
  font-size: 20px;
  line-height: 32px;
}

.process-figure li > span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 14px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.process-figure strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.process-figure figcaption {
  max-width: 64ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.article-download {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding-block: 24px;
  margin-block: 28px 36px;
  border-block: 1px solid var(--line);
}

.article-download > .icon {
  width: 36px;
  height: 36px;
  color: var(--ink);
}

.article-download strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.article-download p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.article-body > .device-chooser,
.article-body > .diagnostic {
  margin-block: 28px 44px;
}

.status-notice {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  margin-block: 28px;
  background: var(--pale);
  border-radius: var(--radius);
}

.status-notice > .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--ink);
}

.status-notice strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.status-notice p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

.support-template {
  margin-block: 44px;
}

.support-template pre {
  padding: 24px;
  margin: 24px 0 20px;
  overflow-x: auto;
  color: var(--ink);
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.support-template > p {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
}

.support-template [data-copy-result]:empty {
  display: none;
}

.support-template [data-copy-result] {
  color: var(--ink);
  font-weight: 500;
}

.hub-links,
.related,
.article-sources {
  margin-top: 56px;
}

.hub-links > div,
.related > div {
  border-top: 1px solid var(--line);
}

.hub-links a,
.related a {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  text-decoration: none;
}

.hub-links a span {
  flex: 1;
}

.hub-links a > .icon,
.related a > .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hub-links a > .icon:first-child {
  color: var(--muted);
}

.hub-links a > .icon:last-child,
.related a > .icon {
  margin-left: auto;
}

.hub-links a:hover,
.related a:hover {
  background: var(--pale);
}

.related > .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.article-sources {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.article-sources h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.article-sources p {
  margin: 0 0 16px;
}

.article-sources ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.article-sources a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

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

.site-directory {
  margin-block: 40px 56px;
  scroll-margin-top: 112px;
}

.site-directory .directory-search {
  width: 100%;
  margin-top: 24px;
}

.site-directory #directory-count {
  margin: 12px 0 32px;
  color: var(--muted);
  font-size: 13px;
}

.directory-group {
  margin-top: 36px;
}

.directory-group h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.directory-group ul {
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.directory-group a {
  display: block;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
}

.directory-group a:hover {
  color: var(--ink);
  background: var(--pale);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.error-page {
  padding-block: 120px 160px;
}

.error-page > .eyebrow {
  display: block;
  margin-bottom: 24px;
}

.error-page h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.error-page p {
  max-width: 480px;
  margin: 28px 0 32px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.7;
}

.error-page > .text-link {
  display: inline-flex;
  margin: 20px 0 0 24px;
}

@media (max-width: 999px) {
  .article-layout {
    display: block;
  }

  .article-nav {
    display: none;
  }

  .article-body {
    margin-inline: auto;
  }

  .breadcrumb {
    max-width: 780px;
    margin-inline: auto;
    margin-bottom: 36px;
  }

  .mobile-toc {
    display: block;
    padding-block: 17px;
    margin-top: 28px;
    border-block: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
  }

  .mobile-toc summary {
    cursor: pointer;
    font-weight: 500;
  }

  .mobile-toc summary::marker {
    font-size: 0.8em;
  }

  .mobile-toc nav {
    display: grid;
    gap: 2px;
    padding-top: 14px;
  }

  .mobile-toc nav a {
    padding-block: 8px;
    color: var(--body);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 4px;
  }

  .mobile-toc nav a:hover {
    color: var(--ink);
    text-decoration-color: currentColor;
  }

  .article-meta {
    border-bottom: 0;
    margin-bottom: 12px;
  }
}

@media (max-width: 640px) {
  .article-main {
    padding-block: 24px 64px;
  }

  .breadcrumb {
    gap: 8px;
    margin-bottom: 30px;
    font-size: 12px;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.8;
  }

  .article-eyebrow {
    gap: 10px 18px;
    margin-bottom: 16px;
  }

  .article-body > h1 {
    margin-bottom: 20px;
    font-size: 34px;
    letter-spacing: -0.04em;
    line-height: 1.16;
    text-wrap: pretty;
  }

  .article-lead {
    font-size: 18px;
    line-height: 1.65;
  }

  .article-meta {
    padding-block: 18px 12px;
    font-size: 11px;
  }

  .article-section {
    margin-top: 40px;
    scroll-margin-top: 96px;
  }

  .article-section h2,
  .related h2,
  .hub-links h2,
  .support-template h2,
  .site-directory > h2 {
    margin-bottom: 18px;
    font-size: 25px;
    line-height: 1.3;
  }

  .article-steps li {
    padding-left: 38px;
  }

  .article-note {
    gap: 12px;
    padding: 18px 16px;
    margin-block: 24px;
    font-size: 14px;
  }

  .article-note > .icon {
    width: 30px;
    height: 30px;
    padding: 6px;
  }

  .table-scroll th,
  .table-scroll td {
    padding: 14px 16px;
  }

  .process-figure {
    margin-block: 28px;
    padding-block: 22px;
  }

  .process-figure ol {
    flex-direction: column;
    gap: 28px;
    margin-block: 22px;
  }

  .process-figure li {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .process-figure li > span {
    flex-shrink: 0;
    margin: 0;
  }

  .process-figure li:not(:last-child)::after {
    top: auto;
    bottom: -26px;
    left: 10px;
    right: auto;
    content: "↓";
    font-size: 16px;
    line-height: 24px;
  }

  .process-figure strong {
    font-size: 15px;
  }

  .article-download {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 16px;
    padding-block: 22px;
  }

  .article-download > .icon {
    width: 30px;
    height: 30px;
  }

  .article-download > .button {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 100%;
  }

  .status-notice {
    gap: 14px;
    padding: 20px 16px;
  }

  .status-notice strong {
    font-size: 16px;
  }

  .status-notice p {
    font-size: 14px;
  }

  .support-template pre {
    padding: 18px 16px;
    font-size: 12px;
  }

  .hub-links,
  .related,
  .article-sources {
    margin-top: 44px;
  }

  .hub-links a,
  .related a {
    gap: 12px;
    padding-block: 18px;
    font-size: 15px;
  }

  .article-sources h2 {
    font-size: 21px;
  }

  .site-directory {
    scroll-margin-top: 96px;
  }

  .error-page {
    padding-block: 80px 100px;
  }

  .error-page p {
    font-size: 16px;
  }

  .error-page > .text-link {
    display: flex;
    width: fit-content;
    margin-left: 0;
  }
}
