.detail-page .detail-container {
  width: min(1120px, calc(100% - 64px));
  margin: auto;
}
.detail-page .crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 24px;
  align-items: center;
}
.detail-page .crumbs a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.detail-page .article-heading {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}
.detail-page .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--deep);
  margin: 0 0 14px;
}
.detail-page .article-heading h1 {
  font-size: clamp(34px, 3.8vw, 50px);
  line-height: 1.14;
  letter-spacing: -1.6px;
  max-width: 900px;
  margin: 0 0 20px;
}
.detail-page .description {
  max-width: 800px;
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 22px;
}
.detail-page .article-info {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.detail-page .reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(0, 240px);
  column-gap: 80px;
  align-items: start;
  padding-top: 36px;
}
.detail-page .reading-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.detail-page .contents {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 108px;
  font-size: 13px;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
}
.detail-page .contents details {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.detail-page .contents summary {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 700;
  min-height: 40px;
  cursor: pointer;
}
.detail-page .contents nav {
  display: grid;
  gap: 4px;
}
.detail-page .contents a {
  color: var(--muted);
  display: block;
  padding: 9px 0;
  line-height: 1.5;
}
.detail-page .contents a[aria-current] {
  color: var(--deep);
  font-weight: 700;
}
.detail-page .contents a:hover {
  color: var(--ink);
}
.detail-page .prose {
  font-size: 18px;
  line-height: 1.8;
  color: #223d36;
  overflow-wrap: anywhere;
}
.detail-page .prose p {
  line-height: 1.8;
  margin: 0 0 24px;
}
.detail-page .prose h2 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin: 44px 0 20px;
}
.detail-page .prose h3 {
  font-size: 23px;
  line-height: 1.3;
  margin: 30px 0 16px;
}
.detail-page .prose h2,
.detail-page .prose h3 {
  scroll-margin-top: 20px;
}
.detail-page .prose a {
  color: var(--deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.detail-page .prose a:hover {
  color: var(--ink);
}
.detail-page .prose li {
  margin-bottom: 10px;
}
.detail-page .prose ul,
.detail-page .prose ol {
  padding-left: 26px;
  margin-bottom: 24px;
}
.detail-page .prose img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  box-sizing: border-box;
  background: #fafcfb;
  margin: 28px 0;
}
.detail-page .prose :not(pre) > code {
  background: #eef3ef;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #194c3e;
}
.detail-page .code-block {
  border: 1px solid #d2ded6;
  border-radius: 10px;
  margin: 26px 0;
  overflow: hidden;
  background: #f7f9f7;
}
.detail-page .code-bar {
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #edf3ee;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.detail-page .code-bar button {
  font: inherit;
  cursor: pointer;
  background: white;
  color: var(--deep);
  border: 1px solid #b8cbbf;
  border-radius: 5px;
  min-height: 36px;
  padding: 4px 12px;
}
.detail-page .prose pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  line-height: 1.65;
  font-size: 13px;
  white-space: pre;
  overflow-wrap: normal;
}
.detail-page .prose pre code {
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.detail-page .table-scroll {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.detail-page .prose table {
  border-collapse: collapse;
  width: 100%;

  font-size: 14px;
  line-height: 1.6;
}
.detail-page .prose th,
.detail-page .prose td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.detail-page .prose th {
  background: #edf3ee;
  color: var(--ink);
  font-weight: 700;
}
.detail-page .prose tr:last-child td {
  border-bottom: 0;
}
.detail-page .prose blockquote {
  border-left: 3px solid var(--green);
  padding: 16px 24px;
  background: #f3f7f4;
  margin: 24px 0;
}
.detail-page .prose iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  margin: 24px 0;
}

.detail-page .related {
  margin: 0 0 64px;
}
.detail-page .related-article {
  display: block;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}
.detail-page .related-article span {
  font-size: 12px;
  color: var(--muted);
}
.detail-page .related-article h3 {
  font-size: 23px;
  line-height: 1.3;
  margin: 12px 0;
}
.detail-page .related-article p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

@media (max-width: 1000px) {
  .detail-page .reading-layout {
    column-gap: 32px;
    grid-template-columns: minmax(0, 1fr) 210px;
  }
}
@media (max-width: 820px) {
  .detail-page .detail-container {
    width: calc(100% - 40px);
  }
  .detail-page .article-heading {
    padding: 22px 0 24px;
  }
  .detail-page .description {
    font-size: 17px;
  }
  .detail-page .reading-layout {
    display: flex;
    flex-direction: column;
    padding-top: 24px;
  }
  .detail-page .contents {
    position: static;
    width: 100%;
    max-height: none;
    margin-bottom: 28px;
  }
  .detail-page .contents details {
    border: 1px solid var(--line);
    background: #f6f9f6;
    border-radius: 8px;
    padding: 12px 16px;
  }
  .detail-page .contents summary {
    min-height: 24px;
  }
  .detail-page .contents nav {
    margin-top: 12px;
  }
  .detail-page .reading-main {
    width: 100%;
  }
  .detail-page .prose {
    font-size: 17px;
  }
  .detail-page .prose h2 {
    font-size: 26px;
  }
}
.detail-page .prose pre code.hljs {
  padding: 0;
  background: transparent;
}

.detail-page .contents[hidden] {
  display: none;
}
.detail-page .related {
  margin-top: 48px;
}
.detail-page .article-comments {
  margin: 48px 0;
}
.detail-page .prose {
  margin-bottom: 48px;
}
.detail-page .kicker {
  text-transform: uppercase;
}
.detail-page .prose [tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.detail-page .prose td[align="center"],
.detail-page .prose th[align="center"] {
  text-align: center;
}
.detail-page .prose td[align="right"],
.detail-page .prose th[align="right"] {
  text-align: right;
}

/* Tables can scroll even when JavaScript is unavailable. */
.detail-page .prose > table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
.detail-page .table-scroll table {
  min-width: 520px;
}

.detail-page .related h2 {
  font-size: 26px;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
