/* Articles module: public list/read/author pages, author editor and admin review.
   Colours come from the shared tokens in style.css. Plain values only: no :has() or color-mix(),
   so older Android browsers on guests' phones still render it. */

/* ── Public pages ─────────────────────────────────────────────── */
.art-wrap { max-width: 1080px; margin: 0 auto; padding: 48px 24px 72px; }
.art-narrow { max-width: 760px; }
.art-h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 8px 0 14px; font-weight: 500; }
.art-h1 em { font-style: italic; color: #A8204F; }
.art-lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 62ch; margin: 0 0 20px; }
.art-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 8px; }
.art-cats .chip-btn, .art-pager .btn { text-decoration: none; }

.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; margin-top: 24px; }
.art-card { background: #fff; border: 1px solid var(--border, #E7E2DA); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.art-card-media { text-decoration: none; display: block; aspect-ratio: 16 / 9; background: #FDECF2; overflow: hidden; }
.art-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-card-ph { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 40px; color: #F2A9C1; }
.art-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.art-card-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #A8204F; }
.art-card-h { font-size: 21px; line-height: 1.2; margin: 0; font-weight: 500; }
.art-card-h a { color: var(--navy); text-decoration: none; }
.art-card-h a:hover { color: #A8204F; }
.art-card-sum { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.art-card-meta { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--muted); }
.art-card-meta a { color: inherit; font-weight: 600; }
.art-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }

.art-byline { display: flex; align-items: center; gap: 12px; margin: 22px 0 26px; text-decoration: none; color: inherit; }
.art-byline-meta { display: block; }
.art-avatar { width: 40px; height: 40px; border-radius: 50%; background: #FDECF2; color: #A8204F; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.art-avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.art-avatar-xl { width: 88px; height: 88px; font-size: 28px; }
.art-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; display: block; margin: 0 0 28px; }
.art-author-box { display: flex; gap: 16px; align-items: center; margin-top: 40px; padding: 20px; background: var(--cream2, #FBF6EE); border-radius: 14px; }
.art-profile { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }

/* Article body: used on the public page, the preview and the admin review. */
.art-prose { font-size: 17.5px; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.art-prose h2 { font-family: var(--serif, Georgia, serif); font-size: 28px; font-weight: 500; color: var(--navy); margin: 1.8em 0 .5em; line-height: 1.2; }
.art-prose h3 { font-family: var(--serif, Georgia, serif); font-size: 22px; font-weight: 500; color: var(--navy); margin: 1.5em 0 .4em; }
.art-prose h4 { font-size: 17.5px; margin: 1.4em 0 .3em; }
.art-prose p { margin: 0 0 1.1em; }
.art-prose ul, .art-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.art-prose li { margin-bottom: .35em; }
.art-prose a { color: #A8204F; text-decoration: underline; text-underline-offset: 2px; }
.art-prose blockquote { margin: 1.4em 0; padding: .2em 1.2em; border-left: 3px solid #E8336E; color: var(--muted); font-style: italic; }
.art-prose blockquote p { margin: .6em 0; }
.art-prose hr { border: 0; border-top: 1px solid var(--border, #E7E2DA); margin: 2em 0; }

/* ── Author editor and admin review ───────────────────────────── */
.art-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.art-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.art-body { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14.5px; line-height: 1.6; min-height: 380px; resize: vertical; }
.art-preview { min-height: 380px; padding: 18px 20px; border: 1px solid var(--border, #E7E2DA); border-radius: 10px; background: #fff; }
.art-toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.art-toolbar button { border: 1px solid var(--border, #E7E2DA); background: #fff; border-radius: 8px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; color: var(--navy); }
.art-toolbar button:hover { background: var(--cream2, #FBF6EE); }
.art-tabs { display: flex; gap: 6px; }
.art-cover-thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }
.art-readonly .art-cover { max-height: 300px; }
.art-radio { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin-bottom: 8px; cursor: pointer; }
.art-radio input { margin-top: 3px; }
.art-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.art-event { padding-left: 12px; border-left: 3px solid #E7E2DA; }
.art-event-changesrequested { border-left-color: #C28A12; }
.art-event-approved, .art-event-published { border-left-color: #2E8B57; }
.art-event-rejected { border-left-color: #B3261E; }
.art-comment { margin-top: 6px; padding: 8px 12px; background: var(--cream2, #FBF6EE); border-radius: 8px; font-size: 13.5px; white-space: pre-line; }

@media (max-width: 900px) {
  .art-edit { grid-template-columns: 1fr; }
  .art-two { grid-template-columns: 1fr; }
  .art-wrap { padding: 32px 16px 56px; }
}

/* Author photo: fills the circular avatar. */
.art-avatar { overflow: hidden; }
.art-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-avatar-xl { width: 120px; height: 120px; }
@media (max-width: 480px) { .art-avatar-xl { width: 88px; height: 88px; } }
