:root {
  color-scheme: light;
  --paper: #faf9f5;
  --panel: #f2f2ea;
  --ink: #272820;
  --quiet: #606158;
  --accent: #9c3e24;
  --line: #dcdcd1;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); }
::selection { background: #f6d3b9; color: var(--ink); }
[hidden] { display: none !important; }
.community-page {
  color-scheme: light;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 40px 72px;
  color: var(--ink);
  font: 15px/1.6 var(--sans);
}

.community-page a { color: var(--accent); text-decoration: none; }
.community-page a:hover { color: #783018; text-decoration: underline; }
.community-page h1, .community-page h2, .community-page p { margin: 0; }
.community-page h1 { font: 400 clamp(36px, 4.5vw, 56px)/1.07 var(--serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.community-page h2 { font-size: 18px; font-weight: 500; line-height: 1.45; }
.community-page button, .community-page input, .community-page select, .community-page textarea { font: inherit; }
.community-page [hidden] { display: none !important; }

.c-header { display: flex; align-items: center; gap: 32px; min-height: 86px; border-bottom: 1px solid var(--line); }
.c-header .c-brand { color: var(--ink); font-size: 28px; font-weight: 670; letter-spacing: -1.5px; line-height: 1; text-decoration: none; }
.c-header .c-brand::before { content: ""; display: inline-block; width: .95em; height: .95em; margin-right: 6px; vertical-align: -.08em; background: url("/favicon.svg") center / contain no-repeat; }
.c-header nav { display: flex; gap: 22px; font-size: 14px; }
.c-header nav a { color: var(--quiet); }
.c-account { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.c-username { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--quiet); }
.c-account-error { color: #9a3028; max-width: 180px; }
.c-content { max-width: 736px; margin: 0 auto; }
.c-heading { margin: 56px 0 30px; }
.c-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.c-heading .c-entry-meta { margin-top: 12px; }
.c-heading > .c-membership { margin-top: 18px; }
.c-community-description { margin-top: 12px !important; color: var(--quiet); max-width: 620px; }
.c-muted, .c-total, .c-empty, .c-hint { color: var(--quiet); }
.c-muted, .c-total, .c-hint { font-size: 12px; }
.c-empty { padding: 24px 0; font-size: 14px; }
.c-empty .c-button { margin-top: 18px; }
.c-loading, .c-load-error { padding: 56px 0; color: var(--quiet); }
.c-error { color: #9a3028; font-size: 13px; margin-bottom: 16px !important; }

.community-page .c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.community-page .c-button:hover { background: var(--panel); border-color: #b3b3a6; box-shadow: none; text-decoration: none; }
.community-page .c-primary { background: var(--accent); border-color: var(--accent); color: #fffdf8; }
.community-page .c-primary:hover { background: #80331e; border-color: #80331e; }
.community-page .c-button[aria-pressed="true"] { color: var(--accent); border-color: #c98d74; background: #f7e6dc; }
.community-page .c-button:disabled { opacity: .45; cursor: wait; }
.community-page .c-text-button { background: none; border: 0; padding: 0; min-height: 30px; color: var(--quiet); font-size: inherit; box-shadow: none; }
.community-page .c-text-button:hover { color: var(--ink); text-decoration: underline; }
.community-page a:focus-visible, .community-page button:focus-visible, .community-page summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.c-community-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.c-community-row:last-child { border-bottom: 1px solid var(--line); }
.c-community-row h2 { margin-bottom: 5px; }
.c-community-row h2 a { color: var(--ink); }
.c-membership { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.c-community-row .c-membership { justify-content: flex-end; flex-shrink: 0; }
.c-inline-status { color: #9a3028; font-size: 12px; flex-basis: 100%; max-width: 300px; }
.c-inline-status:empty, .c-member-count:empty { display: none; }
.c-community-row .c-inline-status { text-align: right; }

.c-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: end; margin-bottom: 24px; }
.c-search .c-search-field { margin: 0; }
.c-search-field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.c-search > .c-button { height: 42px; }
.c-filters { grid-column: 1 / -1; color: var(--quiet); font-size: 12px; }
.c-filters summary { cursor: pointer; width: fit-content; }
.c-filter-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 0 4px; }
.c-filter-fields .c-field { margin: 0; min-width: 140px; }
.c-check { display: flex; align-items: center; gap: 7px; }
.c-check input { accent-color: var(--accent); width: 14px; height: 14px; }
.c-total:empty { display: none; }
.c-total { margin-bottom: 12px !important; }
.c-question-row { display: flex; align-items: center; gap: 24px; justify-content: space-between; padding: 22px 0; border-top: 1px solid var(--line); }
.c-question-row h2 { min-width: 0; flex: 1; font-size: 17px; }
.c-question-row > span { font-size: 12px; white-space: nowrap; }
.c-load-more { margin-top: 24px; text-align: center; }
.c-load-more .c-error { margin-top: 12px !important; }

.c-breadcrumb { display: inline-block; font-size: 12px; margin-bottom: 15px; }
.c-detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.c-vote-control { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.c-template { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 28px; }
.c-template summary { cursor: pointer; color: var(--quiet); }
.c-template[open] .c-output { margin-top: 18px; }
.c-output { white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.7 var(--sans); margin: 0; color: var(--ink); }
.c-section { margin-top: 34px; }
.c-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.c-section h2 { font-size: 19px; }
.c-entry-meta { color: var(--quiet); font-size: 11px; margin-bottom: 10px !important; }
.c-entry-meta strong { font-weight: 400; color: var(--ink); }
.c-result, .c-comment { border-bottom: 1px solid var(--line); padding: 22px 0; }
.c-source { display: inline-block; font-size: 12px; margin-top: 12px; }
.c-comment-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.c-comment-form { margin-top: 24px; }
.c-question-body { font-size: 15px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.c-answer { border-top: 1px solid var(--line); padding: 24px 0; }
.c-answer:first-of-type { margin-top: 18px; }
.c-answer h3 { margin: 0 0 14px; font-size: 17px; font-weight: 500; }
.c-answer .c-output { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 15px; }
.c-answer .c-detail-actions { margin-top: 14px; }
.c-accepted-text { color: #3c624d; }
.c-accepted-label { margin-bottom: 12px !important; font-size: 11px; }
.c-answer-compose { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 22px; }
.c-answer-compose > summary { color: var(--accent); cursor: pointer; font-size: 14px; }
.c-answer-form { margin-top: 24px; }
.c-small-link { font-size: 12px; }

.c-field { margin-bottom: 20px; }
.c-field label { display: block; font-size: 12px; color: var(--quiet); margin-bottom: 7px; }
.c-field input, .c-field select, .c-field textarea { display: block; width: 100%; min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--panel); font-size: 14px; line-height: 20px; box-shadow: none; }
.c-field textarea { resize: vertical; min-height: 90px; max-height: none; }
.c-field input::placeholder, .c-field textarea::placeholder { color: var(--quiet); }
.c-field input:focus, .c-field select:focus, .c-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; box-shadow: none; }
.c-field .c-hint { font-size: 11px; margin-top: 7px; }
.c-compose { max-width: 620px; }
.c-dialog { color-scheme: light; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); overflow: auto; }
.c-dialog::backdrop { background: #28271f77; }
.c-dialog h2 { font-size: 24px; margin-bottom: 24px; padding-right: 25px; }
.c-dialog > .c-muted { margin-bottom: 24px; }
.community-page .c-close { position: absolute; top: 12px; right: 13px; padding: 4px 9px; min-height: 0; border: 0; background: none; font-size: 25px; line-height: 1; color: var(--quiet); box-shadow: none; }
.c-auth-switch { margin-top: 20px !important; font-size: 12px; }

@media (max-width: 640px) {
  .community-page { padding: 0 20px 48px; }
  .c-header { gap: 20px; min-height: 74px; flex-wrap: wrap; padding: 20px 0; }
  .c-header .c-brand { font-size: 25px; }
  .c-header nav { order: 3; flex-basis: 100%; gap: 22px; }
  .c-account { margin-left: auto; }
  .c-username { max-width: 90px; }
  .c-heading { margin: 36px 0 24px; }
  .community-page h1 { font-size: 36px; }
  .c-heading-row { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
  .c-community-row { gap: 16px; }
  .c-community-row .c-member-count { display: none; }
  .c-question-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .c-question-row h2 { font-size: 16px; }
  .c-filter-fields { display: grid; grid-template-columns: 1fr 1fr; }
  .c-filter-fields .c-field { min-width: 0; }
  .c-field input, .c-field select, .c-field textarea { font-size: 16px; }
  .c-answer .c-output { padding: 16px; }
  .c-dialog { padding: 26px 22px; }
}
