/* ==========================================================================
   forcostas.com
   Memorial: warm paper, deep navy, a touch of soft gold, Cormorant Garamond + Source Sans 3.
   The Other Side (.theme-private): near-black, amber, Oswald. Louder on purpose.
   ========================================================================== */

:root {
    --paper: #f7f3ec;
    --paper-2: #efe8dc;
    --surface: #fffdf9;
    --ink: #1f2532;
    --ink-soft: #464e5f;
    --muted: #7b8090;
    --line: #e2d9ca;
    --navy: #1f3557;
    --navy-deep: #14223b;
    --gold: #b38b4d;
    --gold-soft: #d9c39b;
    --on-dark: #f7f3ec;
    --danger: #a3312a;
    --success: #2f6b3a;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(31, 37, 50, 0.04), 0 8px 24px rgba(31, 37, 50, 0.07);
    --shadow-lg: 0 2px 6px rgba(20, 34, 59, 0.08), 0 24px 60px rgba(20, 34, 59, 0.18);
    --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --accent: var(--navy);
    --accent-contrast: #ffffff;
    --accent-soft: #e8ecf3;
    color-scheme: light;
}

.theme-private {
    --paper: #111216;
    --paper-2: #18191e;
    --surface: #1d1f25;
    --ink: #f1eee8;
    --ink-soft: #c9c5bd;
    --muted: #8f8b84;
    --line: #2e3038;
    --navy: #f2b134;
    --navy-deep: #0b0c0f;
    --gold: #f2b134;
    --gold-soft: #f2b134;
    --accent: #f2b134;
    --accent-contrast: #111216;
    --accent-soft: #2a2416;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    --display: "Oswald", "Arial Narrow", Impact, sans-serif;
    color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 0.3em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 1.6em 0 0.5em; }
h3 { font-size: 1.45rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }

.theme-private h1, .theme-private h2, .theme-private h3 { text-transform: uppercase; letter-spacing: 0.02em; font-weight: 600; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
code { font-size: 0.9em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 720px; }
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.6em; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.theme-private .brand { text-transform: uppercase; color: var(--accent); }

.nav { list-style: none; display: flex; align-items: center; gap: 4px 26px; margin: 0; padding: 0; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.button { color: var(--accent-contrast); }

.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 600; font-size: 0.92rem; color: var(--ink); cursor: pointer; }

@media (max-width: 760px) {
    .js .menu-toggle { display: block; }
    .js .menu:not(.open) > .nav { display: none; }
    .nav { flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
    .js .menu.open > .nav {
        position: absolute; left: -20px; right: -20px; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 16px;
    }
    .js .menu.open > .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .js .menu.open > .nav li:last-child a { border-bottom: 0; margin-top: 12px; text-align: center; }
}

.account-bar { background: var(--paper-2); font-size: 0.85rem; border-top: 1px solid var(--line); }
.account-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 6px; padding-bottom: 6px; color: var(--muted); }
.nav-small { gap: 4px 16px; flex-wrap: wrap; }
.nav-small a { font-size: 0.85rem; }

main { flex: 1; padding-top: 40px; padding-bottom: 72px; }
main.flush { padding-top: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 36px; padding-bottom: 36px; text-align: center; }
.footer-name { font-family: var(--display); font-size: 1.5rem; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer-links a { color: var(--muted); }

/* ---------- Buttons & forms ---------- */

.button, button.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--accent); color: var(--accent-contrast); border: 1px solid var(--accent);
    border-radius: 999px; padding: 12px 26px; font: inherit; font-weight: 600; font-size: 1rem;
    text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.button-small { padding: 7px 16px; font-size: 0.9rem; }
.button-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.button-light { background: var(--on-dark); border-color: var(--on-dark); color: var(--navy-deep); }
.button-secondary { background: transparent; color: var(--accent); }
.button-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.button-success { background: var(--success); border-color: var(--success); color: #fff; }
.button:disabled { opacity: 0.6; cursor: progress; transform: none; }
.link-button { background: none; border: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.inline-form { display: inline; }

form.stack { display: grid; gap: 22px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
legend { font-family: var(--display); font-size: 1.5rem; color: var(--ink); padding: 0; margin-bottom: 6px; }
.theme-private legend { text-transform: uppercase; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
input:not([type]), input[type=text], input[type=email], input[type=password], textarea, select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 220px; resize: vertical; line-height: 1.6; }
textarea.editor { min-height: 480px; font-family: ui-monospace, Consolas, monospace; font-size: 0.95rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.checkbox input { margin-top: 6px; accent-color: var(--accent); }
.field-error, .validation-summary-errors { color: var(--danger); font-size: 0.92rem; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.form-section + .form-section { border-top: 1px solid var(--line); padding-top: 26px; }

.notice { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 28px; }
.warning { background: #fbf1df; border-left: 3px solid #c27c0e; padding: 12px 16px; border-radius: var(--radius-sm); color: #5a3a06; }

/* Drop zone for photos (enhanced by upload.js; still a normal file input without JS) */
.dropzone {
    position: relative; display: grid; place-items: center; gap: 6px; text-align: center;
    border: 2px dashed var(--line); border-radius: var(--radius); padding: 34px 20px; background: var(--paper);
    color: var(--ink-soft); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone-title { font-family: var(--display); font-size: 1.4rem; color: var(--ink); }
.theme-private .dropzone-title { text-transform: uppercase; }
.dropzone-icon { width: 40px; height: 40px; color: var(--gold); }

.caption-list { display: grid; gap: 12px; margin-top: 14px; }
.caption-list:empty { display: none; }
.caption-row { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; }
.caption-row img, .caption-row video { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--line); }
.caption-row label { font-weight: 400; margin-bottom: 4px; overflow-wrap: anywhere; }

/* ---------- Home: hero ---------- */

.hero { padding: clamp(28px, 6vw, 80px) 0 clamp(28px, 5vw, 56px); }
.hero-inner { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.portrait-frame {
    position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
    background: radial-gradient(120% 90% at 30% 20%, #2c4672 0%, #1f3557 45%, #14223b 100%);
}
.portrait-frame::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(217, 195, 155, 0.55); border-radius: 14px; pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; color: #d9c39b; text-align: center; }
.portrait-monogram { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(6rem, 14vw, 9rem); line-height: 1; font-weight: 500; font-style: italic; }
.portrait-note { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }
.portrait-edit { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; white-space: nowrap; }
.hero-name { font-size: clamp(3rem, 8vw, 5.4rem); line-height: 1.02; margin: 0 0 0.25em; font-weight: 500; }
.hero-subtitle { font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.85rem); color: var(--ink-soft); margin: 0 0 1.3em; line-height: 1.35; }
.hero-rule { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 0 0 1.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 760px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .portrait-frame { width: 100%; max-width: 300px; margin: 0 auto; }
    .hero-rule { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
}

/* ---------- Prose (bio, awareness, editable pages) ---------- */

.prose { max-width: 700px; margin: 0 auto; color: var(--ink-soft); font-size: 1.1rem; }
.prose h2, .prose h3 { color: var(--ink); }
.prose h2 { padding-top: 0.4em; }
.prose strong { color: var(--ink); }
.prose li { margin-bottom: 6px; }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--gold); }
.prose blockquote {
    margin: 1.8em 0; padding: 0 0 0 26px; border-left: 2px solid var(--gold);
    font-family: var(--display); font-style: italic; font-size: 1.7rem; line-height: 1.35; color: var(--ink);
}
.prose blockquote p { margin: 0; }

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--ink-soft); }
.section-alt { background: var(--paper-2); }

/* ---------- Photo mosaic (home) ---------- */

.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 10px; }
.mosaic a { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--line); }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.mosaic a:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } }

/* ---------- Memory quote cards (home) ---------- */

.quote-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.quote-card {
    position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 48px 28px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.quote-card::before { content: "\201C"; position: absolute; top: 6px; left: 22px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 4.5rem; line-height: 1; color: var(--gold-soft); }
.quote-card blockquote { margin: 0 0 18px; font-family: var(--display); font-size: 1.32rem; line-height: 1.45; color: var(--ink); flex: 1; }
.quote-card footer { font-size: 0.92rem; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.quote-card footer strong { color: var(--ink-soft); font-weight: 600; }

/* ---------- Full-bleed bands ---------- */

.band-dark { background: #14223b; color: #f7f3ec; background-image: radial-gradient(80% 120% at 85% 0%, rgba(179, 139, 77, 0.2), transparent 60%); }
.band-dark h2 { color: #f7f3ec; margin-top: 0; }
.band-dark p { color: rgba(247, 243, 236, 0.82); }
.band-inner { text-align: center; max-width: 640px; margin: 0 auto; padding: clamp(56px, 9vw, 104px) 20px; }

.gentle-note { text-align: center; color: var(--muted); font-size: 0.95rem; max-width: 560px; margin: 0 auto; padding: 40px 20px 0; }
.gentle-note a { color: var(--muted); }

/* ---------- Stories & posts ---------- */

.page-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.page-head p { color: var(--ink-soft); font-size: 1.1rem; }

.masonry { columns: 2 380px; column-gap: 26px; }
.masonry > * { break-inside: avoid; margin-bottom: 26px; }

.post-list { display: grid; gap: 26px; max-width: 760px; margin: 0 auto; }
.card, .post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 32px); }
.post h2, .post h3 { margin: 0 0 8px; font-size: 1.7rem; }
.post-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.post-meta strong { color: var(--ink-soft); font-weight: 600; }
.post-body { color: var(--ink-soft); }
.post-body p:last-child { margin-bottom: 0; }
.post:target { outline: 2px solid var(--gold); outline-offset: 4px; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 18px; align-items: start; }
.media-grid.single { grid-template-columns: 1fr; }
.media-grid figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.media-grid a { display: block; }
.media-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity 0.2s ease; }
.media-grid.single img { aspect-ratio: auto; max-height: 560px; object-fit: contain; }
.media-grid a:hover img { opacity: 0.9; }
figcaption, .photo-caption { font-size: 0.86rem; color: var(--muted); padding: 7px 10px 9px; line-height: 1.4; }

.pager { display: flex; justify-content: space-between; align-items: center; max-width: 760px; margin: 36px auto 0; }
.empty-state { text-align: center; color: var(--muted); padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--radius); max-width: 560px; margin: 0 auto; }

/* ---------- Gallery ---------- */

.gallery { columns: 3 260px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; height: auto; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.02); }

/* PhotoSwipe caption */
.pswp__custom-caption { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: min(720px, calc(100% - 32px)); background: rgba(0, 0, 0, 0.6); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 0.95rem; text-align: center; }
.pswp__custom-caption:empty { display: none; }

/* ---------- The Other Side ---------- */

.private-hero { text-align: center; padding: clamp(32px, 7vw, 80px) 0 clamp(24px, 5vw, 48px); }
.private-hero h1 { font-size: clamp(3.2rem, 11vw, 7rem); line-height: 0.95; margin: 0 0 0.2em; color: var(--accent); }
.private-hero p { color: var(--ink-soft); font-size: 1.15rem; max-width: 520px; margin: 0 auto 1.4em; }
.private-badge { display: inline-block; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 4px 14px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.theme-private .media-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ---------- Moderation & admin ---------- */

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-soft); background: var(--surface); }
.tabs a.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.photo-tools { padding: 6px; text-align: center; font-size: 0.82rem; }
.private-info { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.caption-form { display: flex; gap: 6px; padding: 6px; }
.caption-form input { padding: 6px 8px; font-size: 0.85rem; }

table.data { width: 100%; border-collapse: collapse; background: var(--surface); }
table.data th, table.data td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.role-list { display: grid; gap: 4px; }
code.link { word-break: break-all; background: var(--accent-soft); padding: 10px; display: block; border-radius: var(--radius-sm); }
.portrait-admin { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.portrait-admin .portrait-frame { width: 120px; border-radius: 12px; box-shadow: var(--shadow); }
.portrait-admin .portrait-frame::after { inset: 6px; border-radius: 8px; }
.portrait-admin .portrait-monogram { font-size: 3rem; }
.portrait-admin form { display: grid; gap: 10px; }

/* ---------- Printable QR card ---------- */

.qr-card { background: #fff; color: #1f2532; max-width: 520px; margin: 0 auto; text-align: center; border: 1px solid var(--line); border-radius: 18px; padding: 44px 36px; box-shadow: var(--shadow); }
.qr-card h1 { font-size: 2.6rem; margin-bottom: 0.1em; color: #1f2532; }
.qr-card .qr { width: 260px; height: 260px; margin: 22px auto; }
.qr-card .qr svg { width: 100%; height: 100%; }
.qr-card .url { font-family: var(--display); font-size: 1.5rem; color: #1f3557; }
.print-actions { text-align: center; margin-top: 24px; }

@media print {
    .site-header, .site-footer, .print-actions, .notice { display: none !important; }
    body, main { background: #fff; padding: 0; }
    .qr-card { box-shadow: none; border: 1px solid #ccc; margin-top: 24px; }
}

@media (max-width: 600px) {
    body { font-size: 17px; }
    main { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Fewer than five photos: a simple even row instead of the feature mosaic. */
.mosaic.mosaic-simple { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-auto-rows: 240px; }
.mosaic.mosaic-simple a:first-child { grid-column: auto; grid-row: auto; }

/* Video */
.media-grid video, .gallery video { display: block; width: 100%; height: auto; max-height: 640px; background: #000; }
.media-grid figure.is-video { background: #000; }
.video-status { display: grid; gap: 4px; place-content: center; text-align: center; min-height: 140px; padding: 14px; background: var(--paper-2); color: var(--ink-soft); font-size: 0.88rem; }
.video-status.failed { background: #fbeceb; color: var(--danger); }
.upload-status { display: grid; gap: 8px; }
.upload-status:empty { display: none; }
.upload-row { display: grid; gap: 4px; font-size: 0.9rem; color: var(--ink-soft); }
.upload-row progress { width: 100%; height: 8px; accent-color: var(--accent); }
.upload-row.error { color: var(--danger); }
.edit-post { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.edit-post summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.edit-post form { margin-top: 12px; }
.edit-post textarea { min-height: 160px; }
