/* 멤버십 페이지 전용 스타일 (색 값은 style.css의 공통 변수를 사용) */
/* tabs */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tab {
  appearance: none;
  font: inherit;
  text-align: left;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tab:hover { border-color: var(--accent); }
.tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tab .name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.tab .sub { font-size: 12px; opacity: 0.8; line-height: 1.3; }
.dots { display: flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0.45; }
.dots i.on { background: currentColor; opacity: 1; }

/* panel */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px; display: flex; flex-direction: column; gap: 22px; }
.panel-head { display: flex; flex-direction: column; gap: 4px; }
.panel-head h2 { margin: 0; font-size: 20px; line-height: 1.35; text-wrap: balance; }
.count { margin: 0; color: var(--muted); }
.count strong { color: var(--ok); font-weight: 700; font-variant-numeric: tabular-nums; }
.meter { display: flex; gap: 2px; margin-top: 8px; }
.meter i { flex: 1; height: 6px; border-radius: 3px; background: var(--lock-soft); }
.meter i.on { background: var(--ok); }
.notice { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--sample-bg); color: var(--sample-fg); font-size: 14px; }

.group { display: flex; flex-direction: column; gap: 8px; }
.group h3 { margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.group h3 .n { font-variant-numeric: tabular-nums; opacity: 0.7; }
.boards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.board { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); }
.board .title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.board .hash { font-family: var(--font-mono); color: var(--muted); }
.board .ico { width: 1.4em; text-align: center; flex: none; }
.board .bname { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.chip { font-size: 12px; font-weight: 600; padding: 2px 9px; border: 1px solid transparent; border-radius: 999px; white-space: nowrap; min-width: 8em; text-align: center; }
.board.open { background: var(--surface); }
.board.open .chip { background: var(--ok-soft); color: var(--ok); }
.board.locked, .board.pending { background: var(--lock-soft); border-style: dashed; }
.board.locked .bname, .board.locked .hash, .board.pending .bname, .board.pending .hash { color: var(--muted); }
.board.locked .chip, .board.pending .chip { background: transparent; color: var(--muted); border-color: var(--line); }

/* matrix */
.matrix-wrap h2 { margin: 0 0 10px; font-size: 18px; }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 14px; }
th, td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--line); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
thead th { font-weight: 600; background: var(--lock-soft); font-size: 13px; }
tbody th { text-align: left; font-weight: 500; overflow-wrap: anywhere; }
tbody th .hash { font-family: var(--font-mono); color: var(--muted); margin-right: 4px; }
tbody th.grp { background: var(--lock-soft); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; }
th.cur, td.cur { background: var(--accent-soft); }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); opacity: 0.55; }

.note { margin: 0; font-size: 13px; color: var(--muted); }

@media (max-width: 560px) {
  h1 { font-size: 24px; }
  .tab { padding: 10px 9px; }
  .panel { padding: 18px 14px; }
  .board { padding: 9px 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tab { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
}

.wrap-m { display: flex; flex-direction: column; gap: 28px; padding: 20px 0 8px; }
.wrap-m .scroll table { min-width: 480px; }
th.cur, td.cur { background: var(--accent-soft); }
tbody th.grp { background: var(--lock-soft); }

.board .title { align-items: flex-start; }
.board .btxt { display: flex; flex-direction: column; min-width: 0; }
.board .bdesc { font-size: 13px; color: var(--muted); font-weight: 400; line-height: 1.5; }
.board .chip { align-self: center; }

.callout { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); font-size: 14px; word-break: keep-all; }
.callout a { font-weight: 600; }
.callout + .callout { margin-top: 8px; }
