.article {
    padding-top: var(--sg-space);
}

.article__header {
    max-width: 820px;
}

.article__title {
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
}

.article__summary {
    margin: 0 0 8px;
    color: var(--sg-color-muted);
    font-size: 1.15rem;
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
    color: var(--sg-color-muted);
    font-size: 0.9rem;
}

.article__hero {
    margin: var(--sg-space) 0;
}

.article__hero img {
    width: 100%;
    border-radius: var(--sg-radius);
}

.article__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--sg-space) * 2);
}

.article__main {
    min-width: 0;
    max-width: 820px;
}

.table-of-contents {
    margin-bottom: var(--sg-space);
    padding: 12px var(--sg-space);
    border: 1px solid var(--sg-color-border);
    border-radius: var(--sg-radius);
    background: var(--sg-color-surface);
}

.table-of-contents summary {
    font-weight: var(--sg-weight-semibold);
    cursor: pointer;
}

.table-of-contents ol {
    margin: 8px 0 0;
    padding-left: 20px;
}

.table-of-contents__item--level-3 {
    margin-left: var(--sg-space);
    font-size: 0.95rem;
}

.article__tags {
    margin-top: var(--sg-space);
}

.chip--tag {
    color: var(--sg-color-primary);
}

.author-box {
    display: flex;
    gap: var(--sg-space);
    align-items: flex-start;
    padding: var(--sg-space);
    border: 1px solid var(--sg-color-border);
    border-radius: var(--sg-radius);
    background: var(--sg-color-surface);
}

.author-box__photo {
    border-radius: 50%;
    object-fit: cover;
}

.author-box__name {
    margin: 0;
    font-weight: var(--sg-weight-semibold);
}

.author-box__bio {
    margin: 4px 0 0;
    color: var(--sg-color-muted);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 var(--sg-space);
    padding: 0;
    list-style: none;
}

.comment {
    padding: 12px var(--sg-space);
    border: 1px solid var(--sg-color-border);
    border-radius: var(--sg-radius);
    background: var(--sg-color-surface);
}

.comment__author {
    margin: 0;
    font-weight: var(--sg-weight-semibold);
}

.comment__date {
    margin-left: 8px;
    color: var(--sg-color-muted);
    font-size: 0.85rem;
    font-weight: var(--sg-weight-regular);
}

.comment__body {
    margin: 4px 0 0;
    white-space: pre-line;
}

.comment-form {
    margin-top: calc(var(--sg-space) * 1.5);
    max-width: 820px;
}

@media (min-width: 1024px) {
    .article__layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}
