/* Document articles use native blocks and attachments for editing in WordPress. */
.nexus-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.nexus-editorial-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #faf8f1;
    border: 1px solid var(--nexus-line);
    overflow: hidden;
}
.nexus-editorial-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.65;
    overflow: hidden;
    text-decoration: none;
    background: #e8ecd9;
}
.nexus-editorial-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.nexus-editorial-cover:hover img { transform: scale(1.03); }
.nexus-editorial-cover-type {
    background: #e8ecd9 url("images/tea-branch.svg") right -12px center / 140px no-repeat;
    color: var(--nexus-ink-deep);
    text-align: center;
    padding: 24px;
}
.nexus-editorial-card:nth-child(3n) .nexus-editorial-cover-type { background-color: #eee3ce; }
.nexus-editorial-cover-type > span { font: 27px var(--nexus-serif); letter-spacing: .04em; }
.nexus-editorial-cover-type .nexus-card-logo { display: block; width: 220px; max-width: 100%; height: auto; object-fit: contain; margin-inline: auto; }
.nexus-editorial-cover-type small { display: block; font: 10px/1.6 sans-serif; letter-spacing: .08em; margin-top: 15px; }
.nexus-editorial-body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.nexus-editorial-body .nexus-editorial-label { color: #526c32; font-size: 10px; letter-spacing: .12em; margin: 0 0 15px; }
.nexus-designed-page .nexus-editorial-body h2,
.nexus-designed-page .nexus-editorial-body h3 { font-size: 26px; line-height: 1.4; margin: 0 0 16px; }
.nexus-editorial-body h2 a,
.nexus-editorial-body h3 a { color: var(--nexus-ink-deep); text-decoration: none; }
.nexus-editorial-body h2 a:hover,
.nexus-editorial-body h3 a:hover { text-decoration: underline; }
.nexus-editorial-excerpt { font-size: 14px; color: #53634d; line-height: 1.8; margin: 0 0 24px; }
.nexus-editorial-read { display: flex; justify-content: space-between; margin-top: auto; font-size: 13px; color: var(--nexus-ink); text-decoration: none; border-top: 1px solid var(--nexus-line); padding-top: 18px; }
.nexus-editorial-read:hover { color: #526c32; text-decoration: underline; }
.nexus-material-post .entry-content { max-width: 860px; margin-inline: auto; }
.nexus-material-post .entry-content > p { line-height: 1.95; color: #3e5145; }
.nexus-material-post .entry-content > h2 {
    font-family: var(--nexus-serif);
    font-weight: 500;
    color: var(--nexus-ink-deep);
    font-size: 30px;
    margin: 2.3em 0 .8em;
    scroll-margin-top: 32px;
}
.nexus-material-post .entry-content > .wp-block-image { margin: 34px auto; text-align: center; }
.nexus-material-post .entry-content > .wp-block-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 850px;
    object-fit: contain;
    background: #eeeee6;
}
.nexus-material-post .wp-block-image a { cursor: zoom-in; display: inline-block; max-width: 100%; }
.nexus-material-post .wp-block-image figcaption { color: #61715b; font-size: 13px; line-height: 1.7; margin: 12px 0 0; }
.nexus-article-toc { background: #f1f3e8; border-left: 3px solid var(--nexus-gold); padding: 25px 30px; margin: 32px 0; }
.nexus-article-toc p { font-size: 12px; letter-spacing: .08em; color: var(--nexus-leaf); margin: 0 0 15px; }
.nexus-article-toc ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.nexus-article-toc a { color: var(--nexus-ink); text-underline-offset: 4px; font-size: 15px; }
.nexus-material-post .entry-content .nexus-source-note { border-top: 1px solid var(--nexus-line); margin-top: 45px; padding-top: 20px; color: #61715b; font-size: 13px; }
.nexus-news-pagination ul { display: flex; gap: 14px; list-style: none; padding: 0; margin: 40px 0 0; flex-wrap: wrap; }
.nexus-news-pagination a, .nexus-news-pagination .current { padding: 9px 15px; border: 1px solid var(--nexus-line); display: inline-block; }
.nexus-news-pagination .current { color: #fff; background: var(--nexus-ink); }
@media (max-width: 1024px) {
    .nexus-editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 600px) {
    .nexus-editorial-grid { grid-template-columns: 1fr; }
    .nexus-editorial-body { padding: 24px; }
    .nexus-material-post .entry-content > h2 { font-size: 26px; }
    .nexus-article-toc { padding: 22px; }
    .nexus-material-post .entry-content > .wp-block-image { margin-block: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .nexus-editorial-cover img { transition: none; }
}
