/* Login and sign-up, the Contact/FAQ/About pages and the moderators' Support tab (as in Simul).
   Uses Bulma's theme variables where it can, so it follows dark mode. */
:root { --app-primary: #D45F7C; }

/* Login and sign-up */
.auth-page { display: flex; justify-content: center; padding: 2.5rem 1rem 3rem; }
.auth-card { width: 100%; max-width: 420px; padding: 2rem 2rem 1.5rem; }
.auth-logo { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 auto 0.75rem; }
.auth-wordmark { display: block; text-align: center; font-size: 2.6rem; line-height: 1.1; margin-bottom: 0.5rem; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.9rem; }
.auth-perks { list-style: none; margin: 0; padding: 0; }
.auth-perks li { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0; }
.auth-perks .material-symbols-outlined { color: var(--app-primary); }
.auth-note { margin-top: 0.75rem; text-align: center; font-size: 0.8rem; opacity: 0.65; }
.auth-card hr { margin: 1.5rem 0 1rem; }

/* FAQ, About, Contact */
.info-page { max-width: 820px; margin: 0 auto; padding: 2rem 1rem 8rem; } /* clear of the footer */
.faq { padding: 0; margin-bottom: 0.75rem !important; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: 'expand_more'; font-family: 'Material Symbols Outlined'; font-size: 1.4rem; transition: transform 0.15s; }
.faq[open] summary::after { transform: rotate(180deg); }
.faq > p, .faq > div { padding: 0 1.25rem 1.1rem; }
.about-hero { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.about-hero img { width: 88px; height: 88px; object-fit: contain; flex: none; }
.about-text { font-size: 1.05rem; }
.about-app { height: 100%; }
.about-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--app-primary); color: #fff; margin-bottom: 0.75rem; }

/* Moderation: support cases */
.support-case-row.is-current { outline: 2px solid var(--app-primary); }
.support-msg { padding: 0.6rem 0.8rem; border-radius: 10px; margin-bottom: 0.5rem; background: var(--bulma-background); }
.support-msg.is-staff { border-left: 3px solid var(--app-primary); }
.support-body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* The control panels (MCP and ACP, js/mod.js) */
.cp-page { max-width: 1100px; margin: 0 auto; padding-bottom: 4rem; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cp-head .title .material-symbols-outlined { vertical-align: -4px; }
.cp-tabs a .material-symbols-outlined { font-size: 1.15rem; }
.cp-card { margin-bottom: 1rem !important; }
.cp-avatar { width: 100%; height: 100%; object-fit: cover; }
.cp-avatar-sm { width: 40px; height: 40px; flex: none; }
.cp-quote { white-space: pre-wrap; overflow-wrap: anywhere; padding: 0.6rem 0.9rem; border-left: 3px solid var(--app-primary); background: var(--bulma-background); border-radius: 6px; }
.cp-subhead { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.65; margin-bottom: 0.35rem; }
.cp-reports { list-style: none; margin: 0; padding: 0; }
.cp-reports li { padding: 0.15rem 0; overflow-wrap: anywhere; }
.cp-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; margin-bottom: 0.5rem !important; }
.cp-row-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cp-stats { height: 100%; }
.cp-stat { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px solid var(--bulma-border-weak); }
.cp-stat:last-child { border-bottom: none; }
.cp-stat strong { font-variant-numeric: tabular-nums; }
.cp-when { white-space: nowrap; font-size: 0.85rem; }

/* --- Site messages (ACP) and the Changelogs page --- */
.site-compose .textarea { margin: 0.4rem 0 0.6rem; }
.site-compose-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.site-compose-foot .checkbox { flex: 1 1 260px; }
.site-compose-foot .help { margin: 0; }
.site-msg-card { padding: 0.9rem 1rem; }
.site-msg-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; opacity: 0.85; margin-bottom: 0.4rem; }
.site-msg-body, .changelog-body { white-space: pre-line; overflow-wrap: anywhere; }

/* The Changelogs page: a timeline */
.changelogs-head { margin-bottom: 1.5rem; }
.changelogs-head .title { display: flex; align-items: center; gap: 0.5rem; }
.changelogs-head .material-symbols-outlined { color: #D45F7C; font-size: 32px; }
.changelog-list { position: relative; padding-left: 1.6rem; }
.changelog-list::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: rgba(212, 95, 124, 0.3); }
.changelog-entry { position: relative; margin-bottom: 1rem; }
.changelog-dot { position: absolute; left: calc(-1.6rem + 1px); top: 1.1rem; width: 12px; height: 12px; border-radius: 50%; background: #D45F7C; box-shadow: 0 0 0 4px rgba(212, 95, 124, 0.2); }
.changelog-card { margin-bottom: 0 !important; }
.changelog-meta { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.5rem; }
.changelog-meta time { font-weight: 700; color: #D45F7C; }
.changelog-delete { margin-left: auto; border: 0; background: transparent; color: inherit; opacity: 0.5; cursor: pointer; border-radius: 999px; padding: 2px 4px; }
.changelog-delete:hover { opacity: 1; color: #f14668; background: rgba(241, 70, 104, 0.12); }
.changelog-delete .material-symbols-outlined { font-size: 19px; }
.site-compose-foot .button { margin-left: auto; }
