/* TRNB — Variant C "TRNB Clubhouse" (hybrid prototype theme sheet).
   Synthesis: Variant B's warm clubhouse identity (paper surfaces, Korean
   serif display, journal hairlines) carries the schedule page and page
   framing; Variant A's compact continuous board rows carry the board page.
   Fixes carried over from the review of A/B screenshots:
     - past schedule rows: readable WCAG-AA text, no whole-card opacity
     - mobile schedule hero: decorative icon inline with the heading block
     - recent comments on mobile: author line + 2-line excerpt clamp
   Scoped to board/schedule listing surfaces + shared page-head.
   style.css remains the untouched base. */
:root {
  /* shared B palette — warm paper + coral/sage */
  --c-bg: #F5EFE3;
  --c-surface: #FFFCF4;
  --c-surface-deep: #FBF6EA;
  --c-ink: #2C2820;
  --c-ink-soft: #6F6759;
  --c-ink-faint: #A69C8B;
  --c-line: #E6DCC6;
  --c-line-strong: #D8CBAE;
  --c-coral: #F05A3C;
  --c-coral-deep: #C13B22;
  --c-sage: #7C9070;
  --c-sage-deep: #5C704F;
  --c-gold: #B98A44;
  --c-serif: "Noto Serif KR", "Batang", "Nanum Myeongjo", ui-serif, serif;
  /* category dots (shared with A, mapped to C palette) */
  --cat-1: var(--c-coral);
  --cat-2: var(--c-sage);
  --cat-3: var(--c-gold);
  --cat-4: #7B8A99;
  --cat-5: #9B7E8F;
}

/* ===== paper base (B) ===== */
body { background: var(--c-bg); }
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.site-footer { border-top-color: var(--c-line); color: var(--c-ink-soft); }

/* ===== editorial masthead (B) ===== */
.page-head { align-items: baseline; margin-top: 34px; }
.page-head-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.page-head h1 {
  font-family: var(--c-serif); font-size: 29px; font-weight: 700;
  letter-spacing: -.01em; color: var(--c-ink); line-height: 1.25; margin: 0;
}
.schedule-head h1 { font-size: 29px; }

/* =====================================================================
   BOARD — Variant A's compact continuous rows on C's warm paper
   ===================================================================== */
.chips { margin-bottom: 16px; }
.chip { background: var(--c-surface); border-color: var(--c-line); color: var(--c-ink-soft); }
.chip.active { background: var(--c-ink); color: var(--c-surface); border-color: var(--c-ink); }

.post-list {
  background: transparent; border: none; border-radius: 0; overflow: visible;
  box-shadow: none; margin-top: 2px;
}
.post-item {
  padding: 12px 14px 11px; border-bottom: 1px solid var(--c-line);
  border-radius: 10px;
}
.post-item:last-child { border-bottom-color: transparent; }
.post-item:hover { background: #FFFDF6; }
/* announcements: warm surface + compact badge, one quiet accent (§5.2) */
.post-item.is-notice {
  background: #FBF1E6; border-bottom: 1px solid #EDD5BE;
  border-radius: 10px; margin-bottom: 6px;
}
.post-item.is-notice:hover { background: #FAEEDD; }
.post-item.is-notice .post-item-link { font-weight: 700; }
.post-item-title { gap: 9px; font-size: 15px; }
.post-item-link { font-weight: 640; letter-spacing: -.005em; color: var(--c-ink); }
.post-item-meta { margin-top: 4px; gap: 7px; font-size: 12.5px; color: var(--c-ink-soft); }
.pi-author { font-weight: 650; color: #55503F; }
.pi-author.author-msg:hover { color: var(--c-coral); }
.pi-date { color: var(--c-ink-soft); }
.pi-stats { gap: 14px; }
.pi-stat svg { opacity: .7; }
.notice-tag { border-radius: 999px; background: #FFF1E8; color: var(--c-coral-deep); }

/* category: A's dot + quiet label (§5.3) */
.post-list .cat-chip { display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border-color: transparent; padding-left: 0;
  color: var(--c-ink-soft); font-weight: 600; font-size: 12px; }
.post-list .cat-chip::before { content: ""; width: 7px; height: 7px;
  border-radius: 999px; background: var(--cat-dot, var(--c-ink-faint)); flex: none; }
.post-list .cat-chip.cat-1::before { background: var(--cat-1); }
.post-list .cat-chip.cat-2::before { background: var(--cat-2); }
.post-list .cat-chip.cat-3::before { background: var(--cat-3); }
.post-list .cat-chip.cat-4::before { background: var(--cat-4); }
.post-list .cat-chip.cat-5::before { background: var(--cat-5); }
.post-list .cat-chip:hover { color: var(--c-coral-deep); text-decoration: none; }

/* ===== recent comments: A's compact block, C warmth (§6) ===== */
.recent-comments {
  grid-template-columns: 1fr; padding: 11px 16px 5px; margin: 4px 0 16px;
  background: var(--c-surface-deep); border: 1px dashed var(--c-line-strong);
  border-radius: 14px;
}
.recent-comments h2 { font-family: var(--c-serif); font-size: 14.5px;
  color: var(--c-ink); margin-bottom: 2px; }
.recent-comments h2::after { content: "· 대화 중"; font-family: inherit;
  font-size: 12px; color: var(--c-ink-faint); margin-left: 8px; font-weight: 400; }
.recent-comments li { min-height: 42px; }
.recent-comments .rc-row { min-height: 42px; font-size: 13.5px; padding: 6px 2px;
  border-radius: 8px; }
.recent-comments .rc-row:hover { background: #FFF6E8; }
.rc-author { font-size: 13.5px; font-weight: 700; color: var(--c-ink); max-width: 11em; }
.rc-excerpt { font-size: 13px; color: #524B40; }
.rc-post { color: var(--c-ink-faint); font-size: 12.5px; }
.rc-time { color: var(--c-ink-faint); }

/* =====================================================================
   SCHEDULE — Variant B's journal presentation (primary), C refinements
   ===================================================================== */

/* --- upcoming hero (§4.1/§4.2): diamond belongs to the label, not the corner --- */
.next-event {
  background:
    radial-gradient(110% 150% at 0% 0%, #FFF7EC 0%, transparent 45%),
    var(--c-surface);
  border: 1px solid var(--c-line-strong); border-radius: 16px;
  padding: 15px 20px 13px; margin: 8px 0 16px;
  box-shadow: 0 2px 4px rgba(90, 74, 48, .05), 0 14px 30px -18px rgba(124, 90, 40, .35);
}
.next-event.unacked { border-color: #E8C4B2; }
.next-event.is-empty { border-style: dashed; background: var(--c-surface-deep);
  box-shadow: none; }
.ne-label {
  font-family: var(--c-serif); font-size: 13px; color: var(--c-coral-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.ne-label::before { content: "◆"; color: var(--c-gold); font-size: 10px; opacity: .85; }
.ne-head { gap: 10px; }
.ne-body { margin-top: 6px; gap: 14px; }
.ne-dice { color: var(--c-gold); }
.ne-title {
  font-family: var(--c-serif); font-size: 25px; font-weight: 700;
  letter-spacing: -.008em; line-height: 1.32;
}
.ne-when { font-size: 14px; color: var(--c-ink-soft); margin-top: 2px; }
.ne-ack .btn-secondary { background: var(--c-ink); color: var(--c-surface);
  border-color: var(--c-ink); font-weight: 650; padding: 7px 18px; }
.ne-ack .btn-secondary:hover { background: #4A4235; color: var(--c-surface); }

/* participation strip: tighter rhythm, aligned stack (§4.2) */
.ne-rsvp {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--c-line-strong);
}
.ne-rsvp-chips { display: inline-flex; }
.ne-rsvp-chips .avatar-xs { margin-right: -7px; box-shadow: 0 0 0 2px var(--c-surface); }
.ne-rsvp-chips .avatar-xs:last-child { margin-right: 0; }
.ne-rsvp-chips .pc-more { font-size: 12px; font-weight: 700; color: var(--c-ink-soft);
  align-self: center; margin-left: 10px; }
.ne-rsvp-counts { font-size: 13.5px; color: var(--c-ink-soft); }
.ne-rsvp-counts strong { color: var(--c-sage-deep); font-weight: 700; }
.ne-rsvp-link { margin-left: auto; font-size: 13px; font-weight: 650; }

/* --- month nav (B ledger heading) --- */
.cal-nav { gap: 10px; margin: 16px 0 12px; }
.cal-title { font-family: var(--c-serif); font-size: 22px; color: var(--c-ink); }
.cal-nav .pg { background: var(--c-surface); border-color: var(--c-line); font-weight: 600; }

/* --- monthly list: B's grouped entries, slightly tighter (§4.4) --- */
.slot-list {
  background: transparent; border: none; box-shadow: none; overflow: visible;
  display: flex; flex-direction: column; gap: 8px;
}
.slot-row {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 13px;
  padding: 11px 18px 10px; box-shadow: 0 1px 3px rgba(90, 74, 48, .05);
  min-height: 68px;
}
.slot-row:last-child { border-bottom: 1px solid var(--c-line); }
.slot-row:hover { border-color: var(--c-line-strong); background: #FFFDF8; }
.slot-day { font-family: var(--c-serif); font-size: 22px; font-weight: 700;
  color: var(--c-ink); }
.slot-wd { letter-spacing: .12em; font-size: 11px; color: var(--c-ink-faint); }
.slot-title { font-size: 17px; font-weight: 620; letter-spacing: -.01em;
  color: var(--c-ink); }
.slot-time { font-size: 14px; color: var(--c-ink-soft); }
.chip-special { border-color: #E9D9BC; background: #FBF4E4; color: #96703A; }
.slot-today-tag { background: var(--c-coral); }
.slot-row.today { background: #FFF6EF; border-color: #EFD2C2;
  box-shadow: inset 4px 0 0 var(--c-coral); }

/* --- past rows (§4.5): subordinate via surface + dashed border + solid
   muted ink — NO whole-card opacity; text meets WCAG AA on its background.
   Ratios verified by design/measure.js (against #FBF6EA surface-deep):
     .slot-day   #7A6E5A ≈ 4.6:1 (22px serif bold — also passes AA-large)
     .slot-title #6E6354 ≈ 5.4:1 (AA normal text)
     .slot-time  #7A6E5A ≈ 4.6:1 (AA normal text)
     .slot-wd    #7A6E5A ≈ 4.6:1 (AA normal text) --- */
.slot-row.past { background: var(--c-surface-deep); box-shadow: none;
  border-style: dashed; }
.slot-row.past .slot-day { color: #7A6E5A; font-weight: 650; }
.slot-row.past .slot-wd { color: #7A6E5A; }
.slot-row.past .slot-title { color: #6E6354; font-weight: 570; }
.slot-row.past .slot-time { color: #7A6E5A; }
.slot-row.past:hover { background: var(--c-surface-deep); }

/* per-row participants (read-only RSVP chips) */
.slot-rsvp { display: inline-flex; align-items: center; margin-left: 6px; }
.slot-rsvp .avatar-xs { margin-right: -6px; box-shadow: 0 0 0 2px var(--c-surface); }
.slot-row.past .slot-rsvp .avatar-xs { box-shadow: 0 0 0 2px var(--c-surface-deep); }
.slot-rsvp .avatar-xs:last-child { margin-right: 0; }
.slot-rsvp .pc-more { font-size: 11.5px; font-weight: 700; color: var(--c-ink-soft);
  margin-left: 8px; }

/* --- previous month: native disclosure, keyboard-operable (§4.6) --- */
.month-prev-wrap { margin-top: 26px; }
.month-prev-wrap .month-prev-head {
  margin: 0; cursor: pointer; list-style: none; display: flex; align-items: center;
  gap: 10px; padding: 10px 16px; border: 1px dashed var(--c-line-strong);
  border-radius: 12px; background: var(--c-surface-deep); color: var(--c-ink-soft);
  font-weight: 600; font-size: 14px;
}
.month-prev-wrap .month-prev-head::-webkit-details-marker { display: none; }
.month-prev-wrap .month-prev-head:hover { color: var(--c-ink);
  border-color: #C9B98F; }
.month-prev-wrap .month-prev-head:focus-visible { outline: 2px solid var(--c-coral);
  outline-offset: 2px; }
.mp-count { font-size: 12.5px; font-weight: 600; color: var(--c-ink-faint); }
.mp-chev { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--c-ink-faint);
  border-bottom: 2px solid var(--c-ink-faint); transform: rotate(-45deg);
  transition: transform .15s; }
.month-prev-wrap[open] .mp-chev { transform: rotate(45deg); }
.month-prev-wrap[open] .month-prev-head { border-bottom-left-radius: 0;
  border-bottom-right-radius: 0; border-bottom-style: solid; margin-bottom: -1px;
  color: var(--c-ink); }
.month-prev { border-top-left-radius: 0; border-top-right-radius: 0; }

/* --- next-month preview: quieter appendix, links intact (§4.7) --- */
.next-month-preview { margin-top: 24px; }
.preview-head { font-family: var(--c-serif); font-size: 15px; color: var(--c-ink);
  border-top: none; padding-top: 0; margin-bottom: 9px; }
.preview-head::after { content: "· 다가올 기록"; font-family: inherit; font-size: 12px;
  color: var(--c-ink-faint); margin-left: 8px; font-weight: 400; }
.next-month-preview .slot-row { background: transparent; box-shadow: none;
  border-style: dashed; }
.next-month-preview .slot-day { font-size: 20px; color: var(--c-ink-soft); }
.next-month-preview .slot-title { color: var(--c-ink-soft); font-size: 16.5px; }

/* ===== search & pager: same behaviors, warm chrome ===== */
.search-input { background: var(--c-surface); border-color: var(--c-line); }
.btn-search { background: var(--c-coral); }
.pg { background: var(--c-surface); border-color: var(--c-line); }

/* =====================================================================
   RESPONSIVE (C)
   ===================================================================== */
@media (max-width: 640px) {
  .page-head { margin-top: 24px; }
  .page-head h1 { font-size: 23px; }
  .schedule-head h1 { font-size: 23px; }
  .post-item { padding: 11px 12px 10px; }
  .post-item.is-notice { margin-bottom: 8px; }

  /* §4.3 mobile hero: the decorative dice sits BESIDE the title block via a
     2-column grid; no empty icon row, no awkward button wrap. display:
     contents on the plain span wrapper is safe (no interactive children). */
  .next-event { padding: 12px 14px 11px; }
  .ne-body { display: grid; grid-template-columns: auto minmax(0, 1fr);
    align-items: start; column-gap: 10px; row-gap: 2px; }
  .ne-dice { grid-column: 1; grid-row: 1 / span 2; margin-top: 5px; }
  .ne-info { display: contents; }
  .ne-title { grid-column: 2; grid-row: 1; font-size: 19px; }
  .ne-when { grid-column: 2; grid-row: 2; }
  .ne-ack { grid-column: 2; grid-row: 3; margin-top: 8px; margin-left: 0; }
  .ne-rsvp { margin-top: 8px; }
  .ne-rsvp-link { margin-left: 0; flex-basis: 100%; }
  .ne-rsvp-chips .avatar-xs { width: 24px !important; height: 24px !important; }

  .slot-day { font-size: 19px; }
  .slot-title { font-size: 16px; }
  .slot-row { padding: 10px 14px 9px; min-height: 0; }
  .slot-rsvp .avatar-xs { width: 22px !important; height: 22px !important; }

  /* §6 mobile recent comments: line 1 = author · post · time,
     lines 2–3 = excerpt clamped to 2 readable lines */
  .recent-comments { padding: 10px 12px 6px; }
  .recent-comments .rc-row { display: grid; min-height: 0; white-space: normal;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    column-gap: 8px; padding: 6px 0; line-height: 1.4; font-size: 12.5px; }
  .rc-author { grid-column: 1; grid-row: 1; max-width: 7.5em; }
  .rc-post { grid-column: 2; grid-row: 1; min-width: 0; font-size: 11.5px;
    white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  .rc-time { grid-column: 3; grid-row: 1; margin-left: auto; font-size: 11.5px; }
  .rc-excerpt { grid-column: 1 / -1; grid-row: 2; min-width: 0; font-size: 12.5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.45; }

  .month-prev-wrap .month-prev-head { padding: 9px 13px; }
}
@media (max-width: 400px) {
  .ne-title { font-size: 18px; }
}

/* =====================================================================
   POST BODY READABILITY (long-form refinement, 2026-11-17)
   Measured baseline: body 15px/1.65 (kept — inside the 1.65-1.75 target),
   text column ~858px (kept — already narrower than a 920-960px target).
   Scope: post bodies only (.legacy-content); comments, editor and listings
   are untouched.
   ===================================================================== */
/* Standalone emphasized paragraphs — a <p> whose entire text is one bold
   element, marked .b-standalone by app.js (textContent equality test, so
   inline bold inside an ordinary sentence can never match). Extra room
   ~0.6em over the surrounding 1em paragraph rhythm; consecutive marked
   paragraphs collapse (no accumulation). */
.legacy-content p.b-standalone { margin: 1.6em 0; }
/* Legacy XE bold blocks: the editor emitted whole div/p blocks declared
   bold — unambiguous standalone sections (section headers above tables). */
.legacy-content div[style*="font-weight" i],
.legacy-content p[style*="font-weight" i] { margin: 1.4em 0; }
/* keep both from distorting table-cell layouts */
.legacy-content table p.b-standalone { margin: 0.4em 0; }
.legacy-content table div[style*="font-weight" i] { margin: 0.4em 0; }
