/* Editorial feed and reading surfaces share the site's cards and action controls. */
.article-page-heading { margin-bottom: 24px; }
.article-page-heading h1 { font-size: 28px; }
.article-layout { grid-template-columns: minmax(0, 1fr) 292px; gap: 28px; align-items: start; }
.article-feed-panel { padding: 8px 28px 20px; }
.article-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 12px 16px; border-bottom: 1px solid var(--border); }
.article-category-tabs { display: flex; flex: 1; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: thin; min-width: 0; }
.article-category-tabs a { position: relative; flex-shrink: 0; padding-block: 14px; font-size: 15px; font-weight: 500; color: var(--muted-foreground); white-space: nowrap; }
.article-category-tabs a:hover { color: var(--foreground); }
.article-category-tabs a[aria-current] { color: var(--primary); font-weight: 600; }
.article-category-tabs a[aria-current]::after { content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 22px; height: 3px; border-radius: 2px; background: currentColor; }
.article-search { width: 196px; flex-shrink: 0; min-height: 38px; padding: 3px 4px 3px 14px; }
.article-search input { font-size: 12px; }
.article-search .button { width: 30px; height: 30px; min-height: 30px; }
.article-feed { display: grid; }
.article-feed-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 25px; border-bottom: 1px solid var(--border); }
.article-feed-item:last-child { border-bottom: 0; }
.article-feed .article-feed-title { margin: 0; font-size: 20px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
.article-feed-title a:hover { color: var(--primary); }
.article-feed-media { display: grid; grid-template-columns: repeat(var(--article-image-count), minmax(0, 1fr)); gap: 10px; min-width: 0; }
.article-feed-media>span { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 7px; background: var(--secondary); }
.article-feed-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-normal); }
.article-feed-media:hover img { transform: scale(1.025); }
.article-feed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--muted-foreground); font-size: 12px; line-height: 1.6; }
.article-feed-meta>span { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-feed-meta a:hover { color: var(--primary); }
.article-feed-item[data-layout="single"] { grid-template-columns: minmax(0, 1fr) 176px; grid-template-rows: 1fr auto; column-gap: 24px; min-height: 167px; }
.article-feed-item[data-layout="single"] .article-feed-title { grid-column: 1; grid-row: 1; }
.article-feed-item[data-layout="single"] .article-feed-media { grid-column: 2; grid-row: 1 / 3; align-self: start; }
.article-feed-item[data-layout="single"] .article-feed-meta { grid-column: 1; grid-row: 2; }
.article-sidebar { position: sticky; top: 88px; }
/* One reading card; the body has no extra inner border or card background. */
.article-reading-layout { display: grid; grid-template-columns: 58px minmax(0, 1fr) 274px; align-items: start; gap: 24px; }
.article-reading-main { min-width: 0; display: grid; gap: 24px; }
.article-detail.content-panel { padding: 36px 40px; }
.article-detail-header { margin-bottom: 30px; }
.article-detail-header h1 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.45; letter-spacing: -.025em; overflow-wrap: anywhere; }
.article-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 24px; font-size: 12px; color: var(--muted-foreground); }
.article-byline strong { font-size: 14px; font-weight: 500; color: var(--foreground); overflow-wrap: anywhere; }
.article-byline .ziti-avatar { flex-shrink: 0; }
.article-body { font-size: 18px; line-height: 1.95; color: var(--foreground); overflow-wrap: anywhere; }
.article-body.prose p { font-size: inherit; line-height: inherit; color: inherit; margin: 0 0 1.35em; }
.article-body h2, .article-body h3, .article-body h4 { margin-block: 1.7em .8em; line-height: 1.5; font-weight: 650; }
.article-body h2 { font-size: 24px; }
.article-body h3 { font-size: 21px; }
.article-body h4 { font-size: 19px; }
.article-body>:first-child { margin-top: 0; }
.article-body>:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol { padding-left: 1.5em; margin: 1em 0 1.4em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li+li { margin-top: .4em; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body img, .article-body video { max-width: 100%; height: auto; }
.article-body figure, .article-body .wp-block-image { margin: 1.5em 0; }
.article-body figure img { display: block; margin-inline: auto; }
.article-body figcaption, .article-body .wp-caption-text { font-size: 12px; color: var(--muted-foreground); text-align: center; line-height: 1.8; margin-top: 10px; }
.article-body .wp-caption { max-width: 100%; }
.article-body .alignwide, .article-body .alignfull { width: auto; max-width: 100%; margin-inline: 0; }
.article-body blockquote { margin: 1.5em 0; padding: 16px 22px; background: var(--secondary); border-left: 3px solid var(--neutral-300); color: var(--neutral-700); }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body pre { max-width: 100%; overflow-x: auto; padding: 18px; background: var(--secondary); border-radius: var(--radius); font-size: 14px; }
.article-body table { width: 100%; font-size: 14px; border-collapse: collapse; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--secondary); }
.article-body .wp-block-table { overflow-x: auto; }
.article-body iframe { max-width: 100%; }
.article-body .post-password-form label { display: block; font-size: 14px; }
.article-detail-footer { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-attribution { color: var(--muted-foreground); font-size: 12px; line-height: 1.9; margin: 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.article-tags a { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--secondary); font-size: 12px; color: var(--muted-foreground); }
.article-reactions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.article-reactions .button { font-size: 13px; }
.article-tools { position: sticky; top: 112px; display: grid; gap: 18px; margin-top: 24px; }
.article-tools .button { flex-direction: column; width: 58px; min-height: 66px; height: auto; padding: 12px 2px; gap: 8px; border: 0; border-radius: 12px; background: var(--card); color: var(--muted-foreground); font-size: 10px; font-weight: 400; }
.article-tools .button>svg { width: 21px; height: 21px; }
.article-tools .button>i, .article-reactions .button>i { font-size: 20px; line-height: 1; }
.article-tools .button:hover { background: var(--brand-50); color: var(--primary); }
.article-writer-heading { display: flex; align-items: center; gap: 12px; }
.article-writer-heading>div { min-width: 0; }
.article-writer-heading h2 { font-size: 16px; overflow-wrap: anywhere; line-height: 1.6; margin: 0; }
.article-writer-heading span:not(.ziti-avatar) { font-size: 12px; color: var(--muted-foreground); }
.article-writer-card>p { margin-top: 18px; font-size: 13px; line-height: 1.9; color: var(--muted-foreground); }
.article-writer-card>[data-slot="badge"] { margin-top: 18px; }
.related-articles { margin: 0; }
.related-articles .section-heading { margin-bottom: 0; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.related-articles .article-feed .article-feed-title { font-size: 18px; }
.article-content-pages { margin-block: 28px 0; }
@media (max-width: 1190px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 258px; gap: 24px; }
  .article-category-tabs { flex-basis: 100%; }
  .article-search { width: 100%; }
  .article-reading-layout { grid-template-columns: minmax(0, 1fr) 258px; }
  .article-tools { display: none; }
  .article-detail.content-panel { padding: 30px; }
  .article-detail-header h1 { font-size: 30px; }
}
@media (max-width: 900px) {
  .article-layout, .article-reading-layout { grid-template-columns: minmax(0, 1fr); }
  .article-sidebar { display: none; }
  .article-controls { flex-wrap: nowrap; }
  .article-category-tabs { flex-basis: auto; }
  .article-search { width: 196px; }
}
@media (max-width: 640px) {
  .article-page .breadcrumbs { margin-bottom: 20px; }
  .article-page-heading h1 { font-size: 24px; }
  .article-feed-panel { padding: 4px 18px 16px; }
  .article-controls { flex-wrap: wrap; gap: 12px; }
  .article-category-tabs { flex-basis: 100%; gap: 22px; }
  .article-category-tabs a { font-size: 14px; }
  .article-search { width: 100%; }
  .article-feed-item { gap: 12px; padding-block: 20px; }
  .article-feed .article-feed-title, .related-articles .article-feed .article-feed-title { font-size: 17px; line-height: 1.55; }
  .article-feed-item[data-layout="single"] { grid-template-columns: minmax(0, 1fr) 112px; min-height: 125px; gap: 10px 14px; }
  .article-feed-item[data-layout="single"] .article-feed-media { align-self: center; }
  .article-feed-media { gap: 6px; }
  .article-feed-meta { gap: 4px 12px; font-size: 11px; }
  .article-feed-item[data-layout="single"] .article-feed-meta { grid-column: 1 / -1; }
  .article-feed-item[data-layout="single"] .article-feed-media { grid-row: 1; }
  .article-detail.content-panel { padding: 24px 20px; }
  .article-detail-header { margin-bottom: 24px; }
  .article-detail-header h1 { font-size: 26px; line-height: 1.45; }
  .article-byline { gap: 7px 10px; margin-top: 20px; }
  .article-byline time { font-size: 11px; }
  .article-body { font-size: 17px; line-height: 1.9; }
  .article-body h2 { font-size: 21px; }
  .article-body h3 { font-size: 19px; }
  .article-reactions { gap: 8px; }
  .article-reactions .button { font-size: 12px; padding-inline: 11px; }
  .article-reading-main { gap: 18px; }
}
@media (max-width: 380px) {
  .article-feed-item[data-layout="single"] { grid-template-columns: minmax(0, 1fr) 94px; gap: 10px; }
  .article-feed-meta { gap: 4px 9px; }
  .article-feed-panel, .article-detail.content-panel { padding-inline: 16px; }
}
