/* Answer Hub, blog, search assistant and AI Content Center. Builds on app.css tokens. */
.kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.kicker a { color: inherit; text-decoration: none; } .kicker a:hover { color: var(--accent); text-decoration: underline; }
.h3 { font-size: 1.15rem; } .h4 { font-size: 1rem; margin-top: 1em; }
.lead { font-size: 1.1rem; }
.section-tight { padding: 20px 0; }
.section-gap { margin: 18px 0; }
.page-head { margin: 12px 0 20px; }
ul.chips, .link-list, .topic-grid, .pipeline, .calendar { list-style: none; padding: 0; margin: 0; }
ul.chips { margin-top: 10px; }
.chip[aria-current="page"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.link-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 0; }
.link-list.numbered { counter-reset: n; }
.link-list.numbered li { counter-increment: n; display: flex; gap: 10px; }
.link-list.numbered li::before { content: counter(n); font-weight: 800; color: var(--brand-deep); min-width: 1.2em; }
.empty-state { padding: 24px; margin: 8px 0 24px; }
.empty-state h2, .empty-state h3 { margin-top: 0; }
.field-error { color: var(--bad); font-size: .88rem; margin: 4px 0 0; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.stack-sm > * + * { margin-top: 8px; }

/* Hub hero + search */
.hub-hero { padding: 36px 0 28px; }
.hub-search { display: flex; gap: 8px; max-width: 680px; margin-top: 16px; flex-wrap: wrap; }
.hub-search input { flex: 1 1 260px; }
.hub-note { margin-top: 12px; }
.topic-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.topic-tile { justify-content: space-between; height: 100%; }
.topic-tile .count { font-weight: 400; }
.content-card h3 { font-size: 1.05rem; line-height: 1.3; }
.content-card h3 a { color: var(--ink); text-decoration: none; }
.content-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.content-card .card-date { margin: 0; }
.feature-post { margin-bottom: 18px; padding: 22px; border-left: 4px solid var(--brand); }
.feature-post h2 a { color: var(--ink); text-decoration: none; } .feature-post h2 a:hover { color: var(--accent); text-decoration: underline; }
.cta-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--bg-warm); }
.cta-card h2 { margin-bottom: 4px; } .cta-card p { margin: 0; }
.assist-cta { margin-top: 24px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.assist-cta p { margin: 0; }

/* Article */
.article-shell { padding-top: 12px; }
.article { min-width: 0; max-width: 760px; }
.article-head h1 { margin-bottom: 8px; }
.byline { margin-bottom: 18px; }
.answer-box p:last-child { margin-bottom: 0; }
.advice-note { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); border: 1px solid #f1d79a; color: #5c3c00; }
.toc { margin: 20px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.toc-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.prose { margin-top: 20px; }
.prose h2 { scroll-margin-top: 80px; }
.faq, .sources, .related, .dir-block { margin-top: 36px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0; margin-bottom: 8px; background: #fff; }
.faq-item summary { cursor: pointer; padding: 12px 14px; font-weight: 600; list-style-position: inside; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item p { padding: 12px 14px; margin: 0; }
.sources li { margin-bottom: 6px; word-break: break-word; }
.editorial-note { margin-top: 28px; padding: 14px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.editorial-note p:last-child { margin-bottom: 0; }
.article-aside { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 960px) { .article-aside { position: sticky; top: 84px; align-self: start; } }
.aside-card h2 { margin-bottom: 6px; }

/* Directory connection */
.dir-block { padding: 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-soft); }
.dir-form-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.dir-form-field { flex: 1 1 220px; }
.dir-form .btn-ghost { margin-top: 6px; padding-left: 0; }
.dir-listings { margin-top: 20px; }
.dir-listings h3 { margin-bottom: 4px; }
.near-form { margin-top: 10px; }
.dir-links { margin-top: 18px; }
.dir-links > a { font-weight: 600; }
.dir-block .sponsored-block { margin: 18px 0 0; }
.listing-card h3 { font-size: 1.02rem; }
.listing-card .badges { gap: 6px 10px; margin-top: 6px; }
.listing-card .logo { font-size: 1.2rem; }

/* Assistant */
.assistant-hero { padding: 32px 0 24px; }
.assistant-form { margin-top: 16px; }
.assistant-note { margin-top: 12px; }
.assistant-results { padding: 20px 0; }
.explain { font-size: 1.08rem; font-weight: 600; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid #c7d5ff; }
.interp { margin: 10px 0 6px; }
.interp .chip { cursor: default; }
.interp a.chip { cursor: pointer; }
.list-h { margin-top: 20px; }
.listing-stack > * + * { margin-top: 12px; }
.assistant-articles { margin-top: 28px; }

/* Admin */
.admin-wrap { padding-top: 16px; padding-bottom: 24px; }
.admin-main { min-width: 0; }
.admin-head h1 { font-size: 1.6rem; margin-bottom: 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 14px; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); font-weight: 700; }
.stats .l a { color: inherit; }
table.data.compact th, table.data.compact td { padding: 6px 8px; }
.card table.data { font-size: .88rem; }
.pipeline { display: flex; flex-wrap: wrap; gap: 6px; }
.pipe-step a { display: flex; flex-direction: column; align-items: center; min-width: 92px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--muted); background: #fff; }
.pipe-step.has a { color: var(--ink); border-color: var(--line-2); }
.pipe-step .n { font-size: 1.3rem; font-weight: 800; }
.pipe-step .l { font-size: .78rem; }
.calendar { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cal-day { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; background: #fff; min-height: 84px; }
.cal-day.has { border-color: var(--accent); background: var(--accent-soft); }
.cal-date { font-size: .85rem; margin-bottom: 4px; } .cal-date span { color: var(--muted); }
.cal-day ul { list-style: none; margin: 0; padding: 0; font-size: .82rem; }
.cal-day li { margin-bottom: 4px; }
.cal-day p { margin: 0; }
.bar-bad { background: var(--bad) !important; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.inline-form label:not(.sr-only) { margin: 0; }
.inline-form select, .inline-form input { width: auto; }
.w-num { width: 84px !important; } .w-num-lg { max-width: 160px; } .w-search { min-width: 220px; flex: 1 1 220px; }
.filters input, .filters select { width: auto; min-height: 36px; padding: 4px 8px; }
.actions-cell { white-space: nowrap; }
.actions-cell form { display: inline-block; margin: 0 4px 4px 0; }
.uq-form { display: flex; gap: 6px; flex-wrap: wrap; }
.uq-form input { flex: 1 1 260px; } .uq-form select { width: auto; }
.new-item { margin: 0 0 14px; } .new-item summary { cursor: pointer; } .new-item form { margin-top: 12px; }
.item-meta { margin-bottom: 8px; }
.editor-grid { display: grid; gap: 20px; }
@media (min-width: 1100px) { .editor-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.editor-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.editor-side .card { padding: 14px; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.5; }
.act-form { margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.act-form input, .act-form select { min-height: 36px; padding: 6px 8px; }
.act-form label { margin: 0; font-size: .85rem; }
.source-edit { list-style: none; padding: 0; margin: 0 0 12px; }
.source-edit li { padding: 8px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.source-edit .check { display: inline-flex; margin-right: 8px; font-size: .85rem; }
.issues { padding-left: 1.1em; color: var(--ink-2); }
.versions { padding-left: 1.1em; max-height: 420px; overflow: auto; }
.versions li { margin-bottom: 8px; }
.settings-form fieldset.card { margin-bottom: 16px; padding: 16px; }
.settings-form .check { margin-bottom: 8px; }
.label-like { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
.bars .bar { display: inline-block; height: 10px; background: var(--accent); border-radius: 4px; vertical-align: middle; margin-right: 6px; }
.badge.status-published { background: var(--ok-soft); color: var(--ok); border-color: #b5e0c4; }
.badge.status-scheduled, .badge.status-approved { background: var(--accent-soft); color: var(--accent); border-color: #c7d5ff; }
.badge.status-in_review { background: var(--warn-soft); color: var(--warn); border-color: #f1d79a; }
.badge.status-rejected { background: var(--bad-soft); color: var(--bad); border-color: #f5c2bd; }
