/* policies.css — diff colouring + small typographic overrides on top
 * of Tailwind utilities. Loaded after tailwind.js so it wins specificity
 * on the prose-summary class.
 */

/* ── Diff blocks ─────────────────────────────────────────────────── */

pre.diff {
    font-family: ui-monospace, SFMono-Regular, "Menlo", "Consolas", monospace;
    font-size: 12px;
    line-height: 1.55;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 12px 14px;
    overflow-x: auto;
    margin: 0;
}

pre.diff span {
    display: block;
    white-space: pre;
    padding: 0 4px;
    border-left: 3px solid transparent;
}

pre.diff .diff-add     { background: #ecfdf5; border-left-color: #10b981; color: #065f46; }
pre.diff .diff-del     { background: #fef2f2; border-left-color: #ef4444; color: #7f1d1d; }
pre.diff .diff-hunk    { background: #f1f5f9; color: #475569; font-weight: 600; }
pre.diff .diff-meta    { color: #94a3b8; }
pre.diff .diff-context { color: #525258; }

/* ── Summary body (rendered markdown) ─────────────────────────────── */

.prose-summary h1,
.prose-summary h2,
.prose-summary h3,
.prose-summary h4 {
    font-family: "Oswald", system-ui, -apple-system, sans-serif;
    font-weight: 600;
    color: #0f0f12;
    margin-top: 1.6em;
    margin-bottom: 0.4em;
    line-height: 1.25;
}
.prose-summary h2 { font-size: 1.25rem; }
.prose-summary h3 { font-size: 1.10rem; }
.prose-summary h4 { font-size: 1.00rem; }
.prose-summary p  { margin: 0.5em 0 0.7em; line-height: 1.55; }
.prose-summary ul,
.prose-summary ol { padding-left: 1.5rem; margin: 0.4em 0 0.8em; }
.prose-summary li { margin: 0.15em 0; line-height: 1.5; }
.prose-summary a  { color: #c94907; text-decoration: underline; text-underline-offset: 2px; }
.prose-summary a:hover { color: #9a3a07; }
.prose-summary code {
    background: #f1f5f9;
    padding: 0 4px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* ── Expanders ────────────────────────────────────────────────────── */

.expander[aria-expanded="true"]::after { content: " ▾"; }
.expander[aria-expanded="false"]::after { content: " ▸"; }

/* Small viewports: tighten card padding */
@media (max-width: 480px) {
    .feed-entry { padding-top: 1rem; padding-bottom: 1rem; }
}
