/* GIVE UP Members — same look as bestof.giveup.bike: black / yellow / hot pink, Poppins */

:root {
    --black: #000;
    --white: #fff;
    --yellow: #F9E826;
    --pink: #ED1E79;
    --green: #3ddc84;
    --muted: rgba(255, 255, 255, 0.65);
    --faint: rgba(255, 255, 255, 0.4);
    --line: rgba(255, 255, 255, 0.2);
    --field: rgba(255, 255, 255, 0.06);
    --radius: 6.4px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: var(--white);
    background: var(--black);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--black) url('bg/crabs.jpg') center / cover;
}
.bg-people::before { background-image: url('bg/people.jpg'); }
.bg-group::before  { background-image: url('bg/group.jpg'); }
.bg-plain::before  { background-image: none; }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.3; color: var(--yellow); }
h1 { font-size: 1.9rem; margin-bottom: 16px; }
h2 { font-size: 1.35rem; margin: 28px 0 12px; }
h2:first-child, h1 + h2 { margin-top: 0; }
h3 { font-size: 1.05rem; margin: 20px 0 8px; }
strong, b { font-weight: 500; }
p { margin-bottom: 12px; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: var(--pink); }
code { font-size: 0.9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* Nav */
.nav { background: var(--black); border-bottom: 3px solid var(--pink); padding: 14px 0; }
.nav-inner {
    max-width: 1080px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.nav-brand { text-decoration: none; color: var(--yellow); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.nav-brand span { color: var(--white); font-weight: 300; margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 400; flex-wrap: wrap; }
.nav-links a, .linklike { color: var(--white); text-decoration: none; }
.nav-links a:hover, .linklike:hover { color: var(--yellow); }
.nav-email { color: var(--faint); font-size: 13px; }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }

.container { max-width: 1080px; margin: 0 auto; padding: 32px 20px; flex: 1; width: 100%; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.panel {
    background: rgba(0, 0, 0, 0.93);
    border-radius: 14px;
    padding: 36px;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
@media (max-width: 600px) { .panel { padding: 22px 18px; } h1 { font-size: 1.5rem; } }

.footer { background: var(--pink); color: var(--white); padding: 22px 20px; text-align: center; font-size: 13px; font-weight: 400; }
.footer a { color: var(--white); }
.footer img { width: 34px; filter: brightness(0) invert(1); display: block; margin: 0 auto 4px; }

/* Flash */
.flash {
    background: var(--yellow); color: var(--black); border-radius: var(--radius);
    padding: 12px 16px; margin-bottom: 16px; font-size: 14px; font-weight: 400;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
.flash-error { background: var(--pink); color: var(--white); }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; font-size: 14px; }
.notice-pink { border-left-color: var(--pink); }
.dev-banner { background: var(--pink); color: var(--white); text-align: center; font-size: 12px; padding: 4px; font-weight: 500; }

/* Buttons */
.btn {
    display: inline-block; background: var(--yellow); color: var(--black);
    border: 2px solid var(--yellow); border-radius: var(--radius);
    padding: 11px 28px; font: 500 15px/1.2 'Poppins', sans-serif; letter-spacing: 0.02em;
    cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--pink); border-color: var(--pink); color: var(--white); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.btn-outline { background: transparent; color: var(--yellow); }
.btn-outline:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.btn-danger { background: transparent; border-color: var(--pink); color: var(--pink); }
.btn-danger:hover { background: var(--pink); color: var(--white); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
form.inline { display: inline; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.full { grid-column: 1 / -1; }
label, .label { font-size: 13px; font-weight: 500; color: var(--muted); }
.req::after { content: " *"; color: var(--pink); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number],
select, textarea {
    width: 100%; background: var(--field); color: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 10px 12px; font: 400 15px 'Poppins', sans-serif;
}
select option { background: #111; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 120px; line-height: 1.5; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; min-height: 420px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--white); font-weight: 300; }
.check input { margin-top: 5px; accent-color: var(--yellow); width: 18px; height: 18px; flex: none; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 20px 0; }
legend { padding: 0 8px; color: var(--yellow); font-weight: 500; }
.help { font-size: 12.5px; color: var(--faint); }

/* Tier choice cards */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.choice { position: relative; display: block; border: 2px solid var(--line); border-radius: 10px; padding: 18px; cursor: pointer; color: var(--white); font-weight: 300; }
.choice:has(input:checked) { border-color: var(--yellow); background: rgba(249, 232, 38, 0.06); }
.choice input { position: absolute; top: 18px; right: 18px; accent-color: var(--yellow); width: 18px; height: 18px; }
.choice-name { font-weight: 500; font-size: 17px; color: var(--yellow); padding-right: 28px; }
.choice-price { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.choice .md { font-size: 14px; }

/* Markdown content */
.md h1, .md h2, .md h3 { color: var(--white); }
.md h1 { font-size: 1.4rem; } .md h2 { font-size: 1.2rem; margin-top: 20px; } .md h3 { font-size: 1.05rem; }
.md ul, .md ol { margin: 0 0 12px 1.4em; }
.md li { margin-bottom: 4px; }
.md blockquote { border-left: 3px solid var(--pink); padding-left: 12px; color: var(--muted); margin-bottom: 12px; }
.md table { border-collapse: collapse; margin-bottom: 12px; }
.md th, .md td { border: 1px solid var(--line); padding: 4px 10px; }

/* Agreement reader */
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; list-style: none; }
.steps li { font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; color: var(--muted); }
.steps li.done { border-color: var(--green); color: var(--green); }
.steps li.now { border-color: var(--yellow); color: var(--black); background: var(--yellow); font-weight: 500; }
.doc {
    background: #fbfbf7; color: #111; border-radius: 10px; padding: 28px 32px;
    max-height: 60vh; overflow-y: auto; line-height: 1.65; font-size: 15px;
}
.doc h1, .doc h2, .doc h3, .doc a { color: #111; }
.doc-end { text-align: center; color: #888; font-size: 12px; padding-top: 16px; border-top: 1px dashed #ccc; margin-top: 16px; }
.progress { height: 6px; background: var(--line); border-radius: 3px; margin: 10px 0 18px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--yellow); transition: width .1s; }
.sign-box { margin-top: 18px; transition: opacity .2s; }
.sign-box.locked { opacity: 0.45; }
.signature-input { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 22px !important; }

/* Tables & admin */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--muted); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
table.data tr:hover td { background: rgba(255, 255, 255, 0.03); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; font-size: 14px; }
dl.kv dt { color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 500; border-radius: 999px; padding: 1px 10px; border: 1px solid currentColor; white-space: nowrap; }
.b-active { color: var(--green); } .b-warn { color: var(--yellow); } .b-bad { color: var(--pink); } .b-muted { color: var(--faint); }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-nav a { font-size: 14px; text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--white); background: rgba(0,0,0,.85); }
.admin-nav a.on, .admin-nav a:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--white); display: block; }
.stat b { display: block; font-size: 28px; color: var(--yellow); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
a.stat:hover { border-color: var(--yellow); color: var(--white); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { width: auto; flex: 1 1 160px; padding: 7px 10px; font-size: 14px; }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .editor { grid-template-columns: 1fr; } }
.preview { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-height: 420px; max-height: 70vh; overflow-y: auto; background: #fbfbf7; color: #111; }
.preview h1, .preview h2, .preview h3, .preview a { color: #111; }
.diff { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: #0b0b0b; border-radius: var(--radius); padding: 10px; overflow-x: auto; white-space: pre-wrap; }
.diff .add { color: var(--green); background: rgba(61, 220, 132, .08); }
.diff .del { color: #ff6b9f; background: rgba(237, 30, 121, .1); }
.diff .hunk { color: var(--faint); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
pre.email { white-space: pre-wrap; font-size: 14px; background: #0b0b0b; padding: 16px; border-radius: var(--radius); }
.w-sm { max-width: 420px; }

/* FAQ */
.faq-index { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 24px; }
.faq-index ul { list-style: none; display: grid; gap: 4px; }
.faq-index a { text-decoration: none; }
.faq-index a:hover { text-decoration: underline; }
.md.faq h2 { color: var(--yellow); font-size: 1.15rem; margin-top: 28px; scroll-margin-top: 16px; }
.md.faq h2:first-child { margin-top: 0; }

/* Honeypot field: off-screen for people, still present for form-filling bots */
.hp { display: none !important; }

/* Events */
.ev-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.ev-day { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 28px 0 10px; }
.ev-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.ev-cancelled { opacity: .6; }
.ev-cancelled .ev-title a { text-decoration: line-through; }
.ev-title { font-size: 17px; font-weight: 500; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ev-title a { color: var(--white); text-decoration: none; }
.ev-title a:hover { color: var(--yellow); }
.ev-meta { font-size: 14px; margin: 4px 0; }
.ev-ride { color: var(--yellow); } .ev-run { color: #7fd1ff; } .ev-off_bike { color: #d7a6ff; }
.rsvp { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.rsvp-on { background: var(--yellow); color: var(--black); }
.ev-route { margin-top: 10px; }
.ev-route summary { cursor: pointer; font-size: 14px; color: var(--yellow); }
/* Strava's embed is designed for a 554px box that it then resizes vertically via postMessage */
.strava-frame { display: block; width: 554px; min-width: 250px; max-width: 100%; height: 650px; border: 0;
                border-radius: 8px; margin: 10px 0 4px; background: #111; }
.series-picks { margin: 6px 0 0 28px; display: grid; gap: 4px; }
.upnext li { margin-bottom: 6px; }

.pre-line { white-space: pre-line; }

/* Announcements */
.announcement { border-left: 3px solid var(--line); padding: 2px 0 2px 14px; margin-bottom: 18px; }
.announcement.pinned { border-left-color: var(--yellow); }
.announcement h3 { margin: 0; color: var(--white); }
.announcement .faint { margin-bottom: 6px; }

/* ===== App layout (signed-in members and admin) ===================================== */
:root { --surface: #121212; --surface-2: #1a1a1a; --tabbar-h: 64px; }
body.app { background: #0a0a0a; }
body.app::before { display: none; }              /* photo backgrounds only on public pages */
body.app .panel { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
body.app .container { max-width: 960px; padding-top: 24px; }

.nav { position: sticky; top: 0; z-index: 20; }
.nav-tabs { display: flex; gap: 4px; margin-right: auto; margin-left: 24px; }
.nav-tabs a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.nav-tabs a:hover { color: var(--white); }
.nav-tabs a.on { color: var(--black); background: var(--yellow); }
.nav-admin { display: inline-flex; align-items: center; gap: 6px; }
.nav-admin.on { color: var(--yellow) !important; }
.nav-join { padding: 5px 14px; }
.icon { width: 20px; height: 20px; flex: none; vertical-align: -4px; }

/* Phone tab bar */
.tabbar { display: none; }
@media (max-width: 720px) {
    .nav-tabs { display: none; }
    body.has-tabbar .container { padding-bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }
    body.has-tabbar .footer { padding-bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); }
    .tabbar {
        display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
        height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: rgba(10, 10, 10, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
    }
    .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
                color: var(--faint); text-decoration: none; font-size: 11px; font-weight: 500; }
    .tabbar a .icon { width: 24px; height: 24px; }
    .tabbar a.on { color: var(--yellow); }
}

/* Page structure */
.page-head { margin-bottom: 18px; }
.page-head h1 { margin-bottom: 4px; }
.status-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; margin: 0; }
.status-line .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(61, 220, 132, .2); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 10px; }
.section-head h2 { margin: 0; font-size: 1.15rem; }
.section-head a { font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.section-head .icon { width: 16px; height: 16px; }
.card { background: var(--surface); border: 1px solid #242424; border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.card h2 { font-size: 1.1rem; margin: 0 0 12px; }
.card .data td, .card .data th { padding-left: 0; }
.subtabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 18px; padding-bottom: 2px; scrollbar-width: none; }
.subtabs a { flex: none; font-size: 14px; text-decoration: none; color: var(--muted); padding: 6px 14px;
             border-radius: 999px; border: 1px solid #2a2a2a; }
.subtabs a.on { color: var(--black); background: var(--white); border-color: var(--white); }
.row-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
            padding: 10px 0; border-bottom: 1px solid #242424; }
.row-item:last-child { border-bottom: 0; }

/* To-do card */
.todo { border-color: rgba(249, 232, 38, .45); background: linear-gradient(180deg, rgba(249, 232, 38, .07), var(--surface) 60%); }
.todo-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid #2a2a2a; }
.todo h2 + .todo-item, .todo > .todo-item:first-child { border-top: 0; padding-top: 0; }
.todo-item p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.todo-item .btn { flex: none; }

/* Compact event cards (home) */
.ev-mini { display: flex; gap: 14px; }
.ev-mini-date { flex: none; width: 54px; text-align: center; border-radius: 10px; background: #1f1f1f; padding: 6px 0;
                display: flex; flex-direction: column; line-height: 1.15; font-size: 11px; text-transform: uppercase; color: var(--muted); }
.ev-mini-date strong { font-size: 22px; color: var(--white); font-weight: 600; }
.ev-mini-body { flex: 1; min-width: 0; }
.ev-mini .rsvp { margin-top: 8px; }

/* Announcements as cards; long ones are trimmed on the home page */
.card.announcement { border-left: 3px solid #2a2a2a; padding-left: 16px; }
.card.announcement.pinned { border-left-color: var(--yellow); }
.card.announcement h3 { margin: 0; color: var(--white); font-size: 1rem; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.welcome { margin-top: 28px; }
body.app .ev-card { background: var(--surface); border-color: #242424; }
body.app .nav-inner { max-width: 960px; }
.ev-mini-date { align-self: flex-start; }
/* RSVP as one segmented control */
.rsvp { display: inline-flex; gap: 0; border: 1px solid #3a3a3a; border-radius: 999px; overflow: hidden; flex-wrap: nowrap; }
.rsvp .btn { border: 0; border-radius: 0; padding: 6px 14px; background: transparent; color: var(--muted); font-size: 13px; }
.rsvp .btn + .btn { border-left: 1px solid #3a3a3a; }
.rsvp .btn:hover { background: #222; color: var(--white); }
.rsvp .btn.rsvp-on { background: var(--yellow); color: var(--black); }
.h2 { font-size: 1.35rem; }
body.app .narrow { max-width: none; }

/* ===== Admin layout ===================================================================== */
body.app .admin-shell ~ * { }
.admin-shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
body.app:has(.admin-shell) .container, body.app:has(.admin-shell) .nav-inner { max-width: 1200px; }
.admin-side { position: sticky; top: 84px; }
.admin-side summary { display: none; }
.admin-group { margin-bottom: 18px; }
.admin-group-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 0 6px 10px; }
.admin-side nav a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14.5px; }
.admin-side nav a:hover { background: #1a1a1a; color: var(--white); }
.admin-side nav a.on { background: #1f1f1f; color: var(--yellow); font-weight: 500; }
.admin-main { min-width: 0; }
.admin-main > h1:first-child, .admin-main > .ev-head:first-child h1 { margin-top: 0; }
@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; gap: 14px; }
    .admin-side { position: static; border: 1px solid #2a2a2a; border-radius: 10px; background: var(--surface); }
    .admin-side summary { display: block; cursor: pointer; padding: 10px 14px; font-weight: 500; list-style: none; }
    .admin-side summary::after { content: "▾"; float: right; color: var(--faint); }
    .admin-side nav { padding: 4px 8px 8px; }
}
.card .count { display: inline-block; min-width: 22px; padding: 0 7px; margin-left: 6px; border-radius: 999px; background: #262626;
               color: var(--muted); font-size: 12px; text-align: center; vertical-align: 2px; }
.card.alert { border-color: rgba(237, 30, 121, .6); background: linear-gradient(180deg, rgba(237, 30, 121, .1), var(--surface) 70%); }
.card.alert p { margin: 4px 0; font-size: 14px; }
body.app .cols { gap: 12px; }
body.app .cols > .card { margin-bottom: 0; }
body.app .cols { margin-bottom: 12px; }
.card > p:last-child, .card > :last-child { margin-bottom: 0; }
.subtabs { flex-wrap: wrap; overflow: visible; }
.card fieldset { border: 0; padding: 0; margin: 18px 0; }
.card fieldset legend { padding: 0; margin-bottom: 8px; font-size: 1rem; }

.footer-links { margin-top: 6px; font-size: 12.5px; }
.md.legal h2 { font-size: 1.2rem; margin-top: 28px; scroll-margin-top: 80px; }
.md.legal p, .md.legal li { line-height: 1.65; }

/* Text messages */
.sms-terms { border: 1px solid #2a2a2a; border-radius: 8px; padding: 10px 14px; margin: 14px 0 4px; color: var(--muted); }
.sms-terms p { margin: 4px 0; }
.code-input { font-size: 24px !important; letter-spacing: .3em; text-align: center; max-width: 220px; }

/* One-time prompt dialog (e.g. text alerts): same surface as cards */
dialog.prompt { width: calc(100% - 32px); max-width: 420px; padding: 26px 24px 18px; border: 1px solid #2a2a2a;
                border-radius: 16px; background: var(--surface); color: var(--white); text-align: center;
                box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
dialog.prompt:modal { margin: auto; }             /* the global reset removes the margin that centres modals */
dialog.prompt:not([open]) { display: none; }
dialog.prompt[open]:not(:modal) { position: relative; margin: 0 0 16px; width: auto; max-width: none; }  /* no-JS: inline card */
dialog.prompt::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(2px); }
.prompt-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--faint);
                font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.prompt-close:hover { color: var(--white); background: #222; }
.prompt-icon { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
               background: rgba(249, 232, 38, .12); color: var(--yellow); }
.prompt-icon .icon { width: 26px; height: 26px; }
.prompt-kicker { margin: 0 0 4px; }
dialog.prompt h2 { margin: 0 0 6px; font-size: 1.35rem; }
dialog.prompt > form > p.muted { font-size: 14px; margin-bottom: 14px; }
.prompt-list { list-style: none; text-align: left; margin: 0 auto 18px; padding: 12px 14px; display: grid; gap: 8px;
               background: #0e0e0e; border: 1px solid #242424; border-radius: 10px; font-size: 14px; }
.prompt-list li { display: flex; gap: 10px; align-items: center; }
.prompt-list .icon { width: 18px; height: 18px; color: var(--green); }
.prompt-primary { display: block; width: 100%; text-align: center; }
.prompt-secondary { display: flex; justify-content: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--faint); }
.prompt-secondary .linklike { color: var(--muted); }
.prompt-secondary .linklike:hover { color: var(--white); }
.actions.tight { margin: 0; }

.announcement h3 a { color: inherit; text-decoration: none; }
.announcement h3 a:hover { color: var(--yellow); text-decoration: underline; }
.clamp.expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.read-more { color: var(--yellow); font-size: 14px; font-weight: 500; margin-top: 6px; }
.read-more:hover { text-decoration: underline; }
