.notes-count,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  font-size: var(--small);
  color: var(--muted);
}
.notes-count span,
.article-meta > * {
  background: var(--wash);
  color: var(--muted);
  padding: 6px 16px;
  border-radius: var(--radius-control);
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.note-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: var(--wash);
  color: var(--ink);
  border-radius: var(--radius-panel);
}
.note-card:hover {
  background: var(--wash-2);
  color: var(--ink);
}
.note-card p {
  color: var(--muted);
}
.note-card time {
  margin-top: auto;
  font-size: var(--small);
}
.article-shell {
  width: min(100%, 67.5rem);
  max-width: 100%;
  margin: 0 auto;
  padding: 48px 32px 96px;
}
.article-hero,
.article-body,
.article-toc,
.article-related {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.article-hero h1 {
  margin-top: 32px;
  text-wrap: balance;
}
.article-hero > p {
  margin-top: 24px;
  color: var(--muted);
}
.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: var(--small);
  color: var(--muted);
}
.article-toc {
  position: relative;
  z-index: 1;
  padding: 32px;
  margin-top: 48px;
  margin-bottom: 64px;
  background: var(--wash);
  color: var(--ink);
  border-radius: var(--radius-panel);
}
.article-toc h2,
.article-body h2,
.article-related h2 {
  font-size: var(--h2);
  font-weight: 500;
  line-height: 1.4;
}
.article-toc ol {
  padding-left: 24px;
  margin: 24px 0 0;
}
.article-toc li,
.article-body li {
  margin: 8px 0;
}
.toc-count {
  margin-top: 24px;
  font-size: var(--small);
  color: var(--muted);
}
.article-body section {
  margin-top: 64px;
  scroll-margin-top: 32px;
}
.article-body h2 {
  margin-top: 40px;
  margin-bottom: 24px;
}
.note-latest {
  box-shadow: inset 0 3px 0 var(--accent);
}
.page-hero .notes-count {
  justify-content: center;
}
.article-body li {
  line-height: 1.75;
}
.article-body h3 {
  margin: 32px 0 16px;
  font-size: var(--lead);
}
.article-body p {
  margin: 16px 0;
  font-weight: 400;
  line-height: 1.9;
}
.article-body ul,
.article-body ol {
  padding-left: 24px;
}
.article-callout {
  padding: 24px;
  margin-top: 24px;
  background: var(--wash);
  color: var(--ink);
  border-radius: var(--radius-card);
}
.article-cta {
  padding: 32px;
  margin-top: 64px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-panel);
}
.article-cta svg {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
}
.article-cta h2 {
  color: var(--paper);
}
.article-cta p {
  color: var(--paper);
}
.article-cta .btn {
  background: var(--paper);
  color: var(--ink);
  margin-top: 24px;
  text-decoration: none;
}
.article-cta .btn:hover {
  background: var(--mint);
  color: var(--ink);
}
.article-related {
  margin-top: 64px;
}
.recommend-float {
  position: fixed;
  z-index: 45;
  bottom: 24px;
  right: 24px;
  width: 272px;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}
.recommend-float > p {
  font-size: var(--small);
  color: var(--muted);
  padding-right: 32px;
}
.recommend-float > a {
  display: block;
  margin-top: 16px;
}
.recommend-float-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--wash-2);
  color: var(--ink);
  cursor: pointer;
}
.article-body a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 0 4px;
  background: var(--wash);
  color: var(--ink);
  border-radius: var(--radius-tag);
}
.article-body .reading-scroll {
  overflow-x: auto;
  margin: 28px 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}
.article-body table {
  width: 100%;
  margin: 28px 0 32px;
  border: 1px solid var(--line);
  border-collapse: collapse;
  background: var(--paper);
  color: var(--ink-2);
}
.article-body .reading-scroll table {
  width: max-content;
  min-width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
}
.article-body table th,
.article-body table td {
  min-width: 14rem;
  max-width: 22rem;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
  white-space: normal;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}
:lang(ja) .article-body table th,
:lang(ja) .article-body table td {
  max-width: 28rem;
}
.article-body table thead th {
  background: var(--wash);
  color: var(--ink);
  font-weight: 500;
}
.article-body table tbody tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 700px) {
  .notes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-shell {
    padding: 32px 24px 64px;
  }
  .article-toc,
  .article-cta {
    padding: 24px;
  }
  .recommend-float {
    right: 12px;
    bottom: 12px;
    width: 232px;
    padding: 16px;
  }
}
