/* Dill community. Builds on /playbook/styles.css (Pixel's brand kit v1 fonts + colours). Local fonts only. */
[hidden] { display: none !important; }
.c-main { padding-top: 28px; padding-bottom: 56px; min-height: 70vh; }
.c-nav { gap: 20px; }
.c-user { color: var(--muted); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.c-user [data-me] { color: #fff; font-weight: 700; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--orange); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
.badge { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: 11px; font-weight: 800; text-align: center; line-height: 18px; }
.c-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.c-h2 { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.c-sub { color: var(--muted); margin: 0; }
.c-fine { display: block; color: #8a8fb0; font-size: 12.5px; font-weight: 400; margin-top: 4px; }
.c-err { color: #ff8b8b; font-size: 14px; margin: 8px 0 0; min-height: 1em; }
.c-err:empty { display: none; }
.c-flash { background: #3a1420; color: #ffd0d0; padding: 12px 16px; border-radius: 10px; }
/* feed: the dominant element. ~75% of the width on desktop, full width on mobile */
.c-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr); gap: 28px; align-items: start; }
.c-feed { display: grid; gap: 16px; }
.c-feed-head h1 { font-family: "Kanit", sans-serif; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 6vw, 64px); line-height: .95; margin: 0 0 8px; color: #fff; }
.c-side { display: grid; gap: 16px; position: sticky; top: 92px; }
.c-list { margin: 0 0 10px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.c-list li { margin-bottom: 6px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
input:not([type=checkbox]), select, textarea { width: 100%; background: var(--bg-alt); color: #fff; border: 1px solid rgba(185,163,255,.3); border-radius: 10px; padding: 12px 14px; font: 15px/1.5 "Inter", system-ui, sans-serif; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
textarea { resize: vertical; }
.c-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 14px; }
.c-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--muted); }
.c-check input { margin-top: 4px; accent-color: var(--orange); width: 18px; height: 18px; }
.c-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.c-count { color: #8a8fb0; font-size: 12px; }
/* the response-time notice (hours come from config.js) */
.c-notice { display: flex; gap: 8px; align-items: center; background: rgba(255,154,75,.12); border: 1px solid rgba(255,154,75,.55); color: #ffd9b8; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 15px; }
.c-notice::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--orange); background: linear-gradient(var(--orange), var(--orange)) 7px 3px / 2px 6px no-repeat, linear-gradient(var(--orange), var(--orange)) 7px 7px / 5px 2px no-repeat; }
.c-notice strong { color: var(--orange); }
.c-confirm { border-color: rgba(47,208,122,.6); background: rgba(47,208,122,.08); margin-bottom: 16px; }
.c-confirm .c-h2 { color: #2fd07a; }
.c-confirm .c-notice { margin: 0; }
.c-cta p { margin: 0; }
.c-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: 600 13px "Inter", sans-serif; cursor: pointer; }
.chip.is-on, .chip:hover { color: var(--navy); background: var(--lilac); border-color: var(--lilac); }
.chip--sm { padding: 2px 10px; font-size: 12px; cursor: default; color: var(--lilac); }
.c-posts, .c-replies, .c-convos, .c-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.c-post { transition: border-color .15s; }
.c-post:hover { border-color: rgba(255,154,75,.5); }
.c-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.c-meta--foot { margin-top: 10px; justify-content: space-between; }
.c-post-title { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 20px; margin: 10px 0 6px; }
.c-post-title a { color: #fff; text-decoration: none; }
.c-post-title a:hover { color: var(--orange); }
.c-excerpt, .c-body { color: #d9dcef; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-pending { color: #ffd9b8; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 6px; padding: 2px 7px; }
.tag--staff { background: var(--orange); color: var(--navy); }
.tag--demo { background: var(--yellow); color: #111; }
.c-back { margin: 0 0 12px; }
.c-thread-title { font-family: "Kanit", sans-serif; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 4vw, 44px); line-height: 1; margin: 12px 0; }
.c-replies-h { margin: 26px 0 12px; }
.c-reply.is-staff { border-color: rgba(255,154,75,.6); }
#reply-form, .c-replies + .c-cta { margin-top: 14px; }
.c-auth { max-width: 460px; margin: 20px auto; }
.c-auth h1 { font-family: "Kanit", sans-serif; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 40px; margin: 0 0 12px; }
.c-auth .pill { width: 100%; margin: 6px 0 4px; }
.c-auth .c-sub { margin-top: 12px; }
.c-prose { max-width: 760px; }
.c-prose h1 { font-family: "Kanit", sans-serif; font-style: italic; font-weight: 900; text-transform: uppercase; margin: 0; }
.c-prose li { margin-bottom: 8px; color: #d9dcef; }
/* messages */
.c-dm { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; min-height: 560px; }
.c-newdm { display: flex; gap: 8px; margin-bottom: 14px; }
.c-newdm input { padding: 8px 12px; }
.c-convos { gap: 6px; }
.c-convo { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: #fff; border: 1px solid transparent; }
.c-convo:hover, .c-convo.is-on { background: var(--bg-alt); border-color: var(--line); }
.c-convo-top { display: flex; gap: 6px; align-items: center; }
.c-convo-last { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-chat { display: flex; flex-direction: column; }
#chat-body:not([hidden]) { display: flex; flex-direction: column; flex: 1; }
.c-chat-head > span:last-child { white-space: nowrap; }
.c-chat-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px; }
.c-chat-head .c-h2 { margin: 0; display: flex; gap: 8px; align-items: center; text-transform: none; letter-spacing: .02em; font-size: 18px; }
.c-msgs { flex: 1; max-height: 460px; overflow-y: auto; align-content: start; gap: 8px; padding-right: 4px; }
.c-msg { max-width: 78%; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; justify-self: start; }
.c-msg.is-me { justify-self: end; background: rgba(139,92,246,.25); border-color: rgba(139,92,246,.5); border-radius: 14px 14px 4px 14px; }
.c-dm-form { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
/* home page teaser (root site) is styled in /styles.css */
@media (max-width: 860px) {
  .c-grid { grid-template-columns: minmax(0, 1fr); }
  .c-side { position: static; }
  .c-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .c-dm { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .c-nav a:not(.pill) { display: inline; }
  .c-nav a.c-hide-m { display: none; }
  .c-nav { gap: 12px; }
  .c-nav a:not(.pill) { font-size: 14px; }
  .c-user { font-size: 13px; }
  .c-user [data-me] { display: none; }
  .wrap { padding: 0 16px; }
}

/* ---------- phase 2: header bell, account, notifications, mod, legal ---------- */
.c-bell { display: inline-flex; align-items: center; position: relative; color: var(--muted); }
.c-bell:hover { color: #fff; }
.c-bell .badge { position: absolute; top: -8px; right: -12px; margin: 0; }
.c-me { color: #fff !important; font-weight: 700; text-decoration: none; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.c-me:hover { color: var(--orange) !important; }
.c-modlink { color: var(--orange) !important; font-weight: 800 !important; }
.c-ok { color: #7ee2a8; font-size: 14px; margin: 8px 0 0; }
.c-opt { color: #8a8fb0; font-weight: 400; }
.c-page-h { font-family: "Kanit", sans-serif; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 5vw, 52px); line-height: 1; margin: 0 0 18px; }
.c-settings, .c-mod { display: grid; gap: 16px; }
.c-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0 0 16px; }
.c-dl dt { color: var(--muted); font-size: 14px; }
.c-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.c-inline-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.c-inline-form label { margin: 0; }
.c-inline-form .c-err, .c-inline-form .c-ok { grid-column: 1 / -1; }
.c-danger { border-color: rgba(255,107,107,.45); }
.pill--danger { background: #ff6b6b; color: #1a0606; box-shadow: none; }
.pill--ghost { background: transparent; color: var(--lilac); border: 1px solid var(--line); box-shadow: none; }
.c-draft { background: rgba(255,210,63,.12); border: 1px solid rgba(255,210,63,.6); color: #ffe7a0; border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; }
.c-draft strong { color: var(--yellow); }
.c-prose h2 { font-family: "Montserrat", sans-serif; font-size: 18px; font-weight: 800; margin: 26px 0 8px; }
.c-prose p, .c-prose ul li { color: #d9dcef; }
.c-prose code { background: var(--bg-alt); padding: 1px 5px; border-radius: 5px; }
/* notifications */
.c-notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.c-notif { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--muted); border: 1px solid transparent; }
.c-notif:hover { background: var(--bg-alt); border-color: var(--line); }
.c-notif-dot { width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.c-notif.is-unread { color: #fff; background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.4); }
.c-notif.is-unread .c-notif-dot { background: var(--orange); }
.c-notif strong { color: #fff; }
.c-notif em { font-style: normal; color: var(--lilac); }
/* moderation */
.c-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.c-tabs .badge { margin-left: 4px; }
.c-modlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.c-moditem { background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.c-moditem.is-overdue { border-color: rgba(255,107,107,.55); border-left-color: #ff6b6b; background: rgba(255,107,107,.09); }
.c-moditem.is-overdue .c-wait-time { color: #ff9b9b; font-weight: 800; }
.c-modtitle { font-size: 17px; margin: 0; color: #fff; text-decoration: none; }
.c-modtitle:hover { color: var(--orange); }
.c-wait { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.c-wait .pill { margin-left: auto; }
.c-wait-time { font-weight: 700; }
.tag--overdue { background: #ff6b6b; color: #1a0606; }
.tag--hidden { background: #3b3f5c; color: #d9dcef; }
.tag--open { background: var(--orange); color: var(--navy); }
.tag--resolved { background: #2fd07a; color: #04210f; }
.tag--dismissed { background: #3b3f5c; color: #d9dcef; }
.c-report-item.is-open { border-left-color: var(--orange); }
.c-reason { margin: 0; color: #ffd9b8; }
.c-quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--lilac); background: rgba(185,163,255,.07); border-radius: 0 10px 10px 0; display: grid; gap: 4px; }
.c-modactions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.c-modbtns { font-size: 13px; }
.c-del { color: #ff8b8b; }
.c-check--inline { margin: 0; font-size: 13px; }
.is-hidden { opacity: .6; border-style: dashed; }
.c-logitem { font-size: 14px; color: #d9dcef; padding: 6px 0; border-bottom: 1px solid var(--line); }
.c-logitem code { color: var(--orange); }
.c-mail { display: grid; gap: 8px; }
.c-pre { font: 13px/1.5 ui-monospace, Menlo, monospace; background: var(--bg-alt); padding: 12px; border-radius: 10px; white-space: pre-wrap; }
@media (max-width: 860px) {
  .c-inline-form { grid-template-columns: minmax(0, 1fr); }
  .c-me { max-width: 92px; font-size: 13px; }
  .c-nav { gap: 10px; }
  .c-wait .pill { margin-left: 0; }
}
