/*
 * 이달의 운(2026-11-24, /today/month · 그리는 곳 js/today-month.js). 오늘의 운과 따로 여는 콘텐츠 화면.
 * 값은 모두 기준표(umsh-tokens.css) 이름. 모양은 오늘의 운(today-renewal.css)과 같은 결: 그림 카드 → 글 묶음 → 유리 카드 구역.
 * 순서: 그림 카드 · 이달의 한 줄 → (잠김: 가입 / 광고 1편 카드) → 좋은 날 · 조심할 날(달력 · 고른 날 줄)
 *       → 일 · 돈 · 사람 · 연애(탭 하나) → 이달 만날 사람(위아래 두 줄) → 이달 눈에 띄는 흐름 → 이달의 행동 하나 → 이달의 색 · 숫자 셋 → 버튼.
 * 2026-11-24 사용자 "여백 없이 텍스트와 표가 너무 많아 · 선이 꼭 필요할까 · 최신 트렌디하게":
 *   구역 사이 40 · 제목→내용 16(.tm-content · .tm-sec), 카드 안 가는 선과 표 같은 두 칸은 빼고 한 카드에 한 가지 얘기.
 *   맨 아래 버튼과 바닥글 사이는 공용 빈칸(umsh-parts.css .umsh-biz, --umsh-biz-gap).
 * 2026-11-25 사용자 "그래": 이달의 흐름(상순 · 중순 · 하순 카드 셋) 뺌 — 세 칸 점수가 누구나 거의 같아 말할 게 없다.
 * 주황 테두리 · 윤곽 없음. 가장 뒤 바탕은 다른 회원 화면(my.css)과 같은 바탕 이름을 쓴다.
 */
.tm-page {
  margin: 0;
  background: var(--umsh-color-bg);
}

.tm {
  width: min(100%, var(--umsh-page-width));
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 0 var(--umsh-tab-space);
  background: var(--umsh-page-glow), var(--umsh-color-bg);
  color: var(--umsh-ink);
  font-family: var(--umsh-font-sans);
}

.tm *,
.tm *::before,
.tm *::after {
  box-sizing: border-box;
}

.tm [hidden] {
  display: none;
}

.tm-body {
  display: grid;
  gap: var(--umsh-space-section);
  padding: 0 var(--umsh-space-gutter);
}

/* 그림 카드(위에 글 없음) · 그 아래 이달의 한 줄 */
.tm-hero {
  display: grid;
  gap: var(--umsh-space-4);
  margin-top: var(--umsh-space-2);
}

.tm-pic {
  position: relative;
  aspect-ratio: var(--umsh-month-pic-ratio);
  overflow: hidden;
  border-radius: var(--umsh-radius-4xl);
  isolation: isolate;
}

.tm-pic img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--umsh-month-pic-focus);
}

.tm-pic::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--umsh-glass-edge);
  pointer-events: none;
}

.tm-head {
  display: grid;
  gap: var(--umsh-space-2);
  padding: 0 var(--umsh-space-1);
}

.tm-head small {
  color: var(--umsh-accent-text);
  font: var(--umsh-font-meta);
}

.tm-head h1 {
  margin: 0;
  color: var(--umsh-ink);
  font: var(--umsh-font-feature);
  letter-spacing: var(--umsh-tracking-tight);
  word-break: keep-all;
  text-wrap: balance;
}

.tm-head p {
  margin: 0;
  color: var(--umsh-ink-2);
  font: var(--umsh-font-body);
  word-break: keep-all;
  text-wrap: pretty;
}

/* 이달 평균 점수 한 줄(제목 아래 작은 알약 둘) */
.tm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--umsh-space-2);
  margin-top: var(--umsh-space-1);
}

/* ── 구역 리듬: 구역 사이 40, 제목(+작은 한 줄)→내용 16 ── */
.tm-content {
  display: grid;
  gap: var(--umsh-space-section);
  min-width: 0;
}

.tm-sec {
  display: grid;
  gap: var(--umsh-space-4);
  min-width: 0;
}

.tm-sec-head {
  display: grid;
  gap: var(--umsh-space-1);
}

.tm-title {
  margin: 0;
  color: var(--umsh-ink);
  font: var(--umsh-font-section);
  letter-spacing: var(--umsh-tracking-tight);
}

.tm-lead {
  margin: 0;
  color: var(--umsh-muted);
  font: var(--umsh-font-sub);
  word-break: keep-all;
}

.tm-card {
  padding: var(--umsh-space-5) var(--umsh-space-4);
  border-radius: var(--umsh-radius-3xl);
}

.tm-stack {
  display: grid;
  gap: var(--umsh-space-3);
}

.tm-note {
  margin: 0;
  color: var(--umsh-ink-2);
  font: var(--umsh-font-body);
}

/* 잠김 카드: 가입 · 광고 1편 · 사주 등록 · 다시 불러오기 */
.tm-gate {
  display: grid;
  justify-items: start;
  gap: var(--umsh-space-2);
}

.tm-gate h2 {
  margin: 0;
  color: var(--umsh-ink);
  font: var(--umsh-font-section);
  word-break: keep-all;
}

.tm-gate p {
  margin: 0;
  color: var(--umsh-ink-2);
  font: var(--umsh-font-body);
  word-break: keep-all;
}

.tm-gate .umsh-cta {
  margin-top: var(--umsh-space-2);
}

/* 열면 볼 수 있는 것(작은 목록) */
.tm-inside {
  display: flex;
  flex-wrap: wrap;
  gap: var(--umsh-space-2);
  margin: var(--umsh-space-1) 0 0;
  padding: 0;
  list-style: none;
}

.tm-inside li {
  padding: var(--umsh-space-1) var(--umsh-space-3);
  border-radius: var(--umsh-radius-full);
  background: var(--umsh-surface-2);
  color: var(--umsh-ink-2);
  font: var(--umsh-font-caption-strong);
}

/* ── 좋은 날 · 조심할 날: 달력 카드(일 ~ 토) ── */
.tm-cal-card {
  padding: var(--umsh-space-4) var(--umsh-space-3);
}

.tm-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--umsh-space-1);
  margin: 0;
}

.tm-cal-wd {
  padding-bottom: var(--umsh-space-1);
  color: var(--umsh-muted);
  font: var(--umsh-font-caption);
  text-align: center;
}

.tm-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--umsh-radius-full);
  color: var(--umsh-ink-2);
  font: var(--umsh-font-caption-strong);
  font-variant-numeric: tabular-nums;
}

.tm-day.is-past {
  color: var(--umsh-month-past-ink);
}

.tm-day.is-good {
  background: var(--umsh-month-good-bg);
  color: var(--umsh-promo-gold);
}

.tm-day.is-caution {
  background: var(--umsh-surface-3);
  color: var(--umsh-ink);
}

.tm-day.is-today {
  box-shadow: inset 0 0 0 var(--umsh-hairline) var(--umsh-line-2);
  color: var(--umsh-ink);
}

.tm-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--umsh-space-4);
  margin-top: var(--umsh-space-4);
  color: var(--umsh-muted);
  font: var(--umsh-font-caption);
}

.tm-legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--umsh-space-1);
}

.tm-legend i {
  width: var(--umsh-space-3);
  height: var(--umsh-space-3);
  border-radius: var(--umsh-radius-full);
  background: var(--umsh-surface-3);
}

.tm-legend i.is-good {
  background: var(--umsh-month-good-bg);
}

.tm-legend i.is-today {
  background: transparent;
  box-shadow: inset 0 0 0 var(--umsh-hairline) var(--umsh-line-2);
}

/* 고른 날: 이름표(좋은 날 · 조심할 날) 아래 줄마다 유리 카드 하나(왼쪽 날짜 칸 · 오른쪽 이유 한 줄 · 해 볼 것 한 줄) */
.tm-picks {
  display: grid;
  gap: var(--umsh-space-2);
}

.tm-pick-label {
  margin: var(--umsh-space-3) 0 0;
  color: var(--umsh-muted);
  font: var(--umsh-font-caption-strong);
}

.tm-pick-label:first-child {
  margin-top: var(--umsh-space-1);
}

.tm-pick-list {
  display: grid;
  gap: var(--umsh-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-pick {
  display: grid;
  grid-template-columns: var(--umsh-month-date-w) minmax(0, 1fr);
  align-items: center;
  gap: var(--umsh-space-3);
  padding: var(--umsh-space-3);
  border-radius: var(--umsh-radius-2xl);
}

.tm-date {
  display: grid;
  place-items: center;
  align-content: center;
  height: var(--umsh-month-date-w);
  border-radius: var(--umsh-radius-lg);
  background: var(--umsh-surface-3);
  color: var(--umsh-ink);
}

.tm-date b {
  font: var(--umsh-font-item);
  font-variant-numeric: tabular-nums;
}

.tm-date small {
  color: var(--umsh-muted);
  font: var(--umsh-font-caption);
}

.tm-pick.is-good .tm-date {
  background: var(--umsh-month-good-bg);
}

.tm-pick.is-good .tm-date b {
  color: var(--umsh-promo-gold);
}

.tm-pick-text strong {
  display: block;
  color: var(--umsh-ink);
  font: var(--umsh-font-item);
  word-break: keep-all;
}

.tm-pick-text p {
  margin: var(--umsh-space-1) 0 0;
  color: var(--umsh-ink-2);
  font: var(--umsh-font-sub);
  word-break: keep-all;
}

.tm-pick.is-past :is(strong, p) {
  color: var(--umsh-muted);
}

/* ── 일 · 돈 · 사람 · 연애: 칸 넷 대신 탭 하나(오늘의 운 분야 탭과 같은 결, 고른 칸은 공용 선택 면) ── */
.tm-areas {
  padding: var(--umsh-space-2) var(--umsh-space-2) var(--umsh-space-5);
  border-radius: var(--umsh-radius-3xl);
}

.tm-seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--umsh-space-1);
  padding: var(--umsh-space-1);
  border-radius: var(--umsh-radius-full);
  background: var(--umsh-surface-2);
}

.tm-seg-tab {
  min-height: var(--umsh-tap-min);
  border: 0;
  border-radius: var(--umsh-radius-full);
  background: transparent;
  color: var(--umsh-muted);
  font: var(--umsh-font-chip);
  cursor: pointer;
}

.tm-seg-tab[aria-selected="true"] {
  background: var(--umsh-chip-active-bg);
  color: var(--umsh-chip-active-text);
}

.tm-area-text {
  margin: var(--umsh-space-4) var(--umsh-space-3) 0;
  color: var(--umsh-ink);
  font: var(--umsh-font-body);
  word-break: keep-all;
  text-wrap: pretty;
}

/* ── 이달 만날 사람: 두 칸 대신 위아래 두 줄(오늘의 운 .tv2-person 과 같은 모양) ── */
.tm-people {
  display: grid;
  gap: var(--umsh-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--umsh-space-3);
  padding: var(--umsh-space-4);
  border-radius: var(--umsh-radius-2xl);
}

.tm-person-ico {
  display: grid;
  place-items: center;
  width: var(--umsh-tap-min);
  height: var(--umsh-tap-min);
  border-radius: var(--umsh-radius-full);
  background: var(--umsh-accent-a20);
  color: var(--umsh-accent-hi);
}

.tm-person.is-bad .tm-person-ico {
  background: var(--umsh-surface-3);
  color: var(--umsh-ink-2);
}

.tm-person-ico svg {
  width: var(--umsh-icon-sm);
  height: var(--umsh-icon-sm);
}

.tm-person small {
  display: block;
  color: var(--umsh-muted);
  font: var(--umsh-font-caption-strong);
}

.tm-person b {
  display: block;
  color: var(--umsh-ink);
  font: var(--umsh-font-item);
  word-break: keep-all;
}

.tm-person p {
  margin: var(--umsh-space-1) 0 0;
  color: var(--umsh-ink-2);
  font: var(--umsh-font-sub);
  word-break: keep-all;
}

/* 이달 눈에 띄는 흐름 */
.tm-flag {
  padding: var(--umsh-space-4);
  border-radius: var(--umsh-radius-2xl);
}

.tm-flag h3 {
  margin: 0;
  color: var(--umsh-ink);
  font: var(--umsh-font-item);
  word-break: keep-all;
}

.tm-flag p {
  margin: var(--umsh-space-1) 0 0;
  color: var(--umsh-ink-2);
  font: var(--umsh-font-sub);
  word-break: keep-all;
}

/* 이달의 행동 하나: 배너와 같은 짙은 바탕으로 한 번 더 눈에 띄게 */
.tm-action {
  background: var(--umsh-promo-month-bg);
  box-shadow: var(--umsh-glass-edge);
}

.tm-action small {
  color: var(--umsh-promo-gold);
  font: var(--umsh-font-caption-strong);
}

.tm-action h3 {
  margin: var(--umsh-space-1) 0 0;
  color: var(--umsh-ink);
  font: var(--umsh-font-card);
  word-break: keep-all;
  text-wrap: balance;
}

.tm-action p {
  margin: var(--umsh-space-2) 0 0;
  color: var(--umsh-ink-2);
  font: var(--umsh-font-sub);
  word-break: keep-all;
}

/* ── 이달의 색 · 숫자: 물들인 비단 한 폭(오늘의 색과 같은 결 · 기운 도장) → 색 이름(명조) · 한 줄 → 숫자 셋(엽전) ── */
.tm-color {
  overflow: hidden;
  border-radius: var(--umsh-radius-3xl);
}

.tm-silk {
  position: relative;
  height: var(--umsh-month-silk-h);
  background: var(--umsh-today-silk-sheen), var(--umsh-today-silk-weave), var(--umsh-today-silk-fold), var(--tm-swatch);
  box-shadow: var(--umsh-today-silk-ring);
}

/* 족자처럼 두른 안쪽 가는 테(흰 테 + 옅은 그늘 한 겹, 밝은 색 · 어두운 색 모두 보이게) */
.tm-silk::after {
  content: "";
  position: absolute;
  inset: var(--umsh-space-2);
  border-radius: var(--umsh-radius-lg);
  box-shadow: inset 0 0 0 var(--umsh-hairline) var(--umsh-today-silk-frame), 0 0 0 var(--umsh-hairline) var(--umsh-today-silk-frame-shade);
  pointer-events: none;
}

.tm-silk .umsh-seal {
  position: absolute;
  top: var(--umsh-today-seal-inset);
  right: var(--umsh-today-seal-inset);
}

.tm-color-body {
  display: grid;
  gap: var(--umsh-space-1);
  padding: var(--umsh-space-4) var(--umsh-space-4) 0;
}

.tm-color-name {
  color: var(--umsh-ink);
  font: var(--umsh-font-say);
  letter-spacing: var(--umsh-tracking-tight);
}

.tm-color-body p {
  margin: 0;
  color: var(--umsh-ink-2);
  font: var(--umsh-font-sub);
  word-break: keep-all;
}

.tm-nums {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--umsh-space-3);
  padding: var(--umsh-space-5) var(--umsh-space-4);
  color: var(--umsh-muted);
  font: var(--umsh-font-caption-strong);
}

.tm-num-row {
  display: flex;
  gap: var(--umsh-space-2);
}

.tm-nums b {
  display: grid;
  place-items: center;
  width: var(--umsh-month-num-size);
  height: var(--umsh-month-num-size);
  border-radius: var(--umsh-radius-full);
  background: var(--umsh-month-coin-bg);
  box-shadow: var(--umsh-month-coin-ring);
  color: var(--umsh-promo-gold);
  font: var(--umsh-font-item);
  font-variant-numeric: tabular-nums;
}

/* ── 맨 아래: 안내 한 줄 → 버튼 둘. 바닥글과의 사이는 공용 바닥글 빈칸(--umsh-biz-gap, 선 없음 · 모든 화면 같은 값) ── */
.tm-end {
  display: grid;
  gap: var(--umsh-space-4);
}

.tm-fine {
  margin: 0;
  color: var(--umsh-muted);
  font: var(--umsh-font-caption);
  word-break: keep-all;
}

.tm-actions {
  display: grid;
  gap: var(--umsh-space-3);
}

.tm a:focus-visible,
.tm button:focus-visible {
  outline: var(--umsh-focus-ring);
  outline-offset: var(--umsh-focus-offset);
}
