/* birdy3sm 公佈欄（2026-11-08）。樣子先乾淨就好，之後給月月換皮。
   狀態一律「符號＋文字」，不靠顏色（柏逸色盲）。 */
:root {
  --bg: #f6f1e7;
  --card: #fffdf8;
  --ink: #2b2420;
  --muted: #6f6359;
  --line: rgba(43, 36, 32, 0.14);
  --accent: #4a3728;
  --focus: #1f5fbf;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; }
header h1 { margin: 8px 0 2px; font-size: 26px; }
header p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.chip {
  font: inherit; font-size: 14px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 6px 12px; min-height: 36px;
}
.chip[aria-pressed="true"] { border-color: var(--ink); font-weight: 700; }
.chip[aria-pressed="true"]::before { content: "✓ "; }
select.chip { padding-right: 8px; width: auto; }

.post {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin: 0 0 12px; scroll-margin-top: 16px;
}
.post.hl { outline: 3px solid var(--ink); outline-offset: 2px; }
.post.pinned { border-width: 2px; border-color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.meta .kind { color: var(--ink); font-weight: 700; }
.tag { border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; font-weight: 700; color: var(--ink); }
.post h2 { font-size: 19px; margin: 6px 0 4px; line-height: 1.4; }
.body { overflow-wrap: anywhere; }
.body code { background: rgba(0, 0, 0, 0.06); padding: 0 4px; border-radius: 4px; }
.body .b3-q { display: inline-block; border-left: 3px solid var(--line); padding-left: 8px; color: var(--muted); }
.foot { margin-top: 8px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 12px; }
.section-title { font-size: 14px; color: var(--muted); margin: 18px 0 8px; font-weight: 700; }
.empty, .err { background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 24px 16px; text-align: center; color: var(--muted); }
.more { display: block; margin: 8px auto 0; }
footer { margin-top: 28px; font-size: 13px; color: var(--muted); text-align: center; }

/* ───── 後台 ───── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
input[type="text"], input[type="password"], textarea, select {
  width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { min-height: 160px; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 4px 0; min-height: 32px; }
.check input { width: 18px; height: 18px; }
.btn {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 10px; padding: 10px 16px; min-height: 44px;
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
}
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { padding: 4px 10px; min-height: 34px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.msg { margin-top: 10px; font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.count { font-size: 12px; color: var(--muted); text-align: right; }
.admin-item { border-top: 1px solid var(--line); padding: 12px 0; }
.admin-item:first-child { border-top: 0; }
.admin-item h3 { margin: 4px 0; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.preview { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; min-height: 40px; }
