/* 오늘자 — 화면 스타일
   차례: 값 · 바탕 · 틀 · 머리와 메뉴 · 제호 · 구역 · 카드와 목록 · 행사 소식(배너, 행사 달력의 띠 그림) · 상세 · 이동 안내 · 버튼과 입력 · 안내 글 · 꼬리
   원칙: 색은 잉크와 파랑 하나. 파랑은 누르는 곳과 '가격이 내려갔다'는 표시에만 쓴다.
         모서리는 4·8·12 세 단계. 그림자는 떠 있는 것(안내 창, 알림)에만.
         어두운 화면(2026-11-21)은 dark.css 가 아래 값만 바꿔 끼운다 — 색은 여기서도 값(var)으로만 쓰고, 글자색을 #fff 로 박지 않는다(--on-color). */

@font-face { font-family: "Oneulja Num"; font-weight: 500; font-display: swap; src: url(../fonts/num/oneulja-num-500.woff2) format("woff2"); unicode-range: U+0030-0039, U+002C, U+002E, U+0025; }
@font-face { font-family: "Oneulja Num"; font-weight: 600; font-display: swap; src: url(../fonts/num/oneulja-num-600.woff2) format("woff2"); unicode-range: U+0030-0039, U+002C, U+002E, U+0025; }
@font-face { font-family: "Oneulja Num"; font-weight: 700; font-display: swap; src: url(../fonts/num/oneulja-num-700.woff2) format("woff2"); unicode-range: U+0030-0039, U+002C, U+002E, U+0025; }

:root {
  --ink: #15171c;
  --ink-2: #33373e;
  --mute: #596069;
  --faint: #6f7680;
  --ghost: #a6acb5;
  --line: #e5e7eb;
  --line-2: #eff0f3;
  --fill: #f4f5f7;
  --fill-2: #ebedf0;
  --paper: #fff;
  --blue: #1b5ff0;
  --blue-press: #164fd0;
  --blue-soft: #edf2fe;
  --red: #e2353c;
  --today: #c9341a;          /* 주홍: '오늘'에만 — 로고 옆 날짜 도장, 띠 그림의 오늘 선, 오늘 판의 도장 (흰 바탕 5.3) */
  --today-soft: #fdece7;
  --on-color: #fff;          /* 색 면(잉크·파랑·분야 색·주홍) 위의 글자. 어두운 화면에서는 면이 밝아지고 글자가 어두워진다 */
  --paper-2: #fff;           /* 떠 있는 면(안내 창) */
  --photo: #fff;             /* 상품 사진의 바탕. 판매처 사진이 흰 바탕이라 어두운 화면에서도 희게 둔다 */
  --card-note: rgba(255, 255, 255, .75);      /* 색 카드 안에서 펼친 ⓘ의 면 */
  --toast-bg: rgba(21, 23, 28, .94);
  --toast-fg: #fff;
  /* 분야의 색(아래 .sec-*). 분야를 적지 않은 것은 잉크로 그린다 */
  --sc: var(--ink);
  --sc-soft: var(--fill);
  --sc-mid: var(--ghost);

  --r-1: 4px;
  --r-img: 6px;
  --r-2: 8px;
  --r-3: 12px;

  --gut: 16px;
  --max: 1200px;
  --bar-h: 52px;
  --gnb-h: 44px;
  --tab-h: 54px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --font-num: "Oneulja Num", var(--font);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ───────── 바탕 ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--gnb-h) + 16px); }
body {
  margin: 0;
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--font);
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 700; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--r-1); }
[hidden] { display: none !important; }

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--on-color); border-radius: var(--r-2); text-decoration: none; font-size: 14px; }
.skip:focus { top: 8px; }

/* ───────── 틀 ───────── */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: calc(720px + var(--gut) * 2); }
.wrap--prose { max-width: calc(680px + var(--gut) * 2); }
main { display: block; min-height: 60vh; padding-bottom: 56px; }
.only-wide { display: none !important; }

/* ───────── 머리와 메뉴 ───────── */
.site-header { background: var(--paper); }
.site-header__bar { display: flex; align-items: center; gap: 12px; height: var(--bar-h); }
.brand { display: inline-flex; align-items: flex-end; gap: 6px; padding: 12px 0 11px; margin: -12px 0 -11px; color: var(--ink); text-decoration: none; }
.brand__mark { width: auto; height: 21px; fill: var(--ink); }
.brand__word { font-size: 22px; line-height: 1; font-weight: 800; letter-spacing: -.05em; }
.brand__date { font-size: 13px; line-height: 1; font-weight: 700; color: var(--today); padding-bottom: 1px; }
.icon-btn.site-header__back { display: none; margin-left: -12px; margin-right: -8px; }
.is-detail .icon-btn.site-header__back, .is-plain .icon-btn.site-header__back { display: inline-grid; }
.site-header__actions { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: -10px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: var(--r-2); color: var(--ink); text-decoration: none; }
.action { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: var(--r-2); font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.action .i { width: 20px; height: 20px; }
.action__n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--on-color); font-size: 12px; line-height: 18px; text-align: center; font-weight: 600; }
/* 어두운 화면 단추(2026-11-21). 스크립트가 있을 때만 보인다(app.js 의 initTheme). 달은 밝은 화면에서, 해는 어두운 화면에서(dark.css) */
.theme-btn { margin-left: auto; margin-right: -10px; }
.site-header__actions ~ .theme-btn { margin-left: 0; }
.site-header__bar:has(.theme-btn:not([hidden])) .site-header__actions { margin-right: 0; }
.theme-btn .i { width: 22px; height: 22px; }
.theme-btn .i-sun { display: none; }

.searchbox { display: none; align-items: center; gap: 8px; height: 42px; padding: 0 14px; background: var(--fill); border: 1px solid transparent; border-radius: var(--r-2); color: var(--faint); transition: background .15s, border-color .15s; }
.searchbox:focus-within { background: var(--paper); border-color: var(--ink); }
.searchbox .i { width: 20px; height: 20px; }
.searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: 0; font-size: 15px; color: var(--ink); }
.searchbox input::placeholder { color: var(--faint); }
.searchbox input::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbox--page { display: flex; height: 48px; margin: 12px 0 4px; }
.searchbox--page input { font-size: 16px; }

.gnb { position: sticky; top: 0; z-index: 30; background: var(--paper); box-shadow: inset 0 -1px 0 var(--line); }
.gnb__in { display: flex; gap: 22px; height: var(--gnb-h); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.gnb__in::-webkit-scrollbar { display: none; }
.gnb a { position: relative; flex: none; display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; color: var(--faint); text-decoration: none; white-space: nowrap; }
.gnb a[aria-current] { color: var(--ink); font-weight: 700; }
.gnb a[aria-current]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--ink); }
.gnb__in::after { content: ""; flex: none; width: 1px; }

.tabbar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--paper); box-shadow: inset 0 1px 0 var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ghost); text-decoration: none; font-size: 10.5px; font-weight: 600; letter-spacing: -.02em; }
.tabbar a span { color: var(--faint); }
.tabbar a[aria-current] { color: var(--ink); }
.tabbar a[aria-current] span { color: var(--ink); }

/* ───────── 제호: 그날 판의 이름 ───────── */
.masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 12px; padding: 22px 0 14px; }
.masthead__kicker { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--faint); }
.masthead__date { grid-column: 1; font-size: 30px; line-height: 1.12; font-weight: 800; letter-spacing: -.04em; }
.masthead__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 13px; line-height: 20px; color: var(--mute); }
.masthead__meta span + span::before { content: "·"; margin-right: 8px; color: var(--ghost); }
.masthead__meta b { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.masthead__prev { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: 1px; padding: 6px 0; font-size: 13px; font-weight: 500; color: var(--mute); text-decoration: none; }
.masthead__prev .i, .masthead__pager .i { width: 14px; height: 14px; }
.masthead__pager { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 8px; }
.masthead__pager a { display: inline-flex; align-items: center; gap: 1px; padding: 6px 0; font-size: 13px; font-weight: 500; color: var(--mute); text-decoration: none; }
.masthead__pager a:only-child:last-child { margin-left: auto; }

.notice { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; background: var(--fill); border-radius: var(--r-2); font-size: 12.5px; line-height: 18px; color: var(--mute); }
.notice .i { width: 16px; height: 16px; margin-top: 1px; color: var(--faint); }
.notice a { text-decoration: underline; text-underline-offset: 2px; }
.notice--plain { margin-bottom: 16px; }
.notice--after { margin-top: 10px; }

/* 제휴·수수료 고지. 본문보다 작거나 옅게 쓰지 않는다 — 꾸밈이 아니라 표시 의무다(docs/POLICY.md 2장).
   글자는 본문 크기(15px)와 본문 색, 바탕으로 본문과 구분한다. 상품 카드가 나오는 화면의 맨 위에 둔다. */
.disclose { margin-bottom: 16px; padding: 12px 14px; border-radius: var(--r-2); background: var(--fill); font-size: 15px; line-height: 22px; color: var(--ink); }
.disclose p { text-wrap: pretty; }      /* 마지막 줄에 낱말 하나만 남지 않게(지원하지 않는 브라우저에서는 보통 줄바꿈) */
.disclose p + p { margin-top: 4px; }
.disclose a { text-decoration: underline; text-underline-offset: 2px; }
.disclose--rail { margin: -2px 0 14px; }
.disclose--detail { margin-bottom: 16px; }
.masthead + .disclose { margin-bottom: 0; }
.searchbox--page + .disclose { margin-top: 14px; }
.legend { margin: 10px 0 0; font-size: 12.5px; line-height: 19px; color: var(--mute); }
.legend a { text-decoration: underline; text-underline-offset: 2px; }
.legend .down { margin-right: 1px; }
.listbar + .legend, .count + .legend { margin: -6px 0 14px; }

.pagehead { padding: 22px 0 16px; }
.pagehead__title { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.035em; }
.pagehead__sub { max-width: 640px; margin-top: 8px; font-size: 13.5px; line-height: 21px; color: var(--mute); }
.pagehead__sub a { text-decoration: underline; text-underline-offset: 2px; }
.pagehead--tabs { padding-bottom: 8px; }
/* 머리의 그림(2026-11-21 오너 "행사달력, 알아둘것, 이런것도 다 생일페이지만들었던 테마처럼"): 제목 옆의 작은 그림.
   생일에 주는 것(birthday-art) · 행사 달력(events-art) · 알아둘 날(dates-art)과 그 지난 기록. 분야를 고른 달력과 행사별 기록 화면은 그 분야의 그림(sectors.svg).
   첫 화면의 제호 옆에는 그날 날짜를 적은 달력 한 장(_macros.html 의 today_art). 모두 꾸밈이라 낭독기에서 감춘다. */
.pagehead--art { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding-bottom: 8px; }
.pagehead--art > .pnote { grid-column: 1 / -1; }
.pagehead__art { width: 136px; height: auto; margin: -2px -4px -4px 0; }
.pagehead__sym { width: 64px; height: 64px; margin-right: 4px; }
.masthead--art .masthead__meta { grid-column: 1; }
.mast__art { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 88px; height: auto; margin: -8px -4px -8px 0; overflow: visible; }
.mast__page { fill: var(--paper-2); stroke: var(--line); stroke-width: 1.5; }
.mast__band { fill: var(--today); }
.mast__ring { fill: var(--ink-2); }
.mast__month { font: 700 13px var(--font); letter-spacing: -.02em; fill: var(--on-color); }
.mast__day { font: 700 40px var(--font-num); fill: var(--ink); }
.mast__wd { font: 600 12px var(--font); fill: var(--mute); }
.mast__shade { fill: #7c838c; opacity: .2; }
.count { margin: 4px 0 14px; font-size: 13px; color: var(--mute); }
.count b { color: var(--ink); font-weight: 600; }
.count b.num { font-size: 14px; }

/* ───────── 구역 ───────── */
.section { margin-top: 36px; }
.section--after { margin-top: 48px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__title { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.03em; }
.section__sub { margin-top: 3px; font-size: 12.5px; line-height: 18px; color: var(--faint); }
.section__more { flex: none; display: inline-flex; align-items: center; gap: 1px; margin: -6px 0; padding: 6px 0 6px 8px; font-size: 13px; font-weight: 500; color: var(--mute); text-decoration: none; }
.section__more .i { width: 14px; height: 14px; align-self: center; }

/* ───────── 카드와 목록 ───────── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 8px; }
.card { position: relative; min-width: 0; }
.card__link { display: block; text-decoration: none; }
.card__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-img); background: var(--photo); }
.card__img::after { content: ""; position: absolute; inset: 0; background: rgba(20, 26, 40, .04); transition: background .15s; pointer-events: none; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
/* 판매처의 사진을 불러오지 못했을 때(app.js 가 옅은 그림 기호로 바꿔 끼운다). 기호는 제 크기로 가운데에 둔다. */
img.is-broken { object-fit: none !important; }
.card__src { display: block; margin-top: 10px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--faint); }
.card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 3px; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -.02em; }
.card__sub { display: block; margin-top: 2px; overflow: hidden; font-size: 12px; line-height: 17px; color: var(--faint); white-space: nowrap; text-overflow: ellipsis; }
.card__price { display: flex; align-items: baseline; gap: 5px; margin-top: 6px; line-height: 24px; }
.card__price > b { font-size: 18px; font-weight: 700; }
.won { margin-left: -4px; font-size: 13px; font-weight: 600; }
.down { display: inline-flex; align-items: baseline; gap: 2px; color: var(--blue); }
.down b { font-size: 16px; font-weight: 700; }
.down__tri { width: 8px; height: 6.4px; align-self: center; }
.down--inline { vertical-align: baseline; }
.down--inline b { font-size: 1.08em; }
.card__meta, .card__rate, .card__gone { display: block; margin-top: 2px; font-size: 12px; line-height: 17px; color: var(--faint); }
.card__rate { display: flex; align-items: center; gap: 3px; }
.card__rate .i { width: 12px; height: 12px; color: var(--ghost); }
.card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-1); background: var(--fill); color: var(--mute); font-size: 11px; font-weight: 600; white-space: nowrap; }
.tag--low { background: var(--blue-soft); color: var(--blue); }
/* 행사가 끝나는 날. 테두리만 두른다 — 재촉하는 색을 쓰지 않는다. */
.tag--until { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
/* 찜 단추는 사진의 오른쪽 아래. 사진이 정사각형이라 폭에 대한 비율로 위치를 잡는다. */
.card__save { position: absolute; top: 0; right: 2px; display: grid; place-items: center; width: 40px; height: 40px; margin-top: calc(100% - 42px); border: 0; background: none; color: #fff; }
.card__save .i { width: 22px; height: 22px; stroke: rgba(20, 26, 40, .55); stroke-width: 1.5; fill: rgba(255, 255, 255, .92); }
[data-save][aria-pressed="true"] .i { fill: var(--red); stroke: var(--red); }
[data-save].is-pop .i { animation: pop .28s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25); } }
.card.is-ended .card__img { opacity: .45; }
.card.is-ended .card__title { color: var(--faint); }
.card--skeleton .card__img { background: var(--fill); }
.card--skeleton .card__img::after { content: none; }
.sk { display: block; height: 12px; margin-top: 8px; border-radius: var(--r-1); background: var(--fill); }
.sk--s { width: 38%; margin-top: 12px; }
.sk--m { width: 56%; }

.rail { position: relative; margin-inline: calc(var(--gut) * -1); container-type: inline-size; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 8px; padding-inline: var(--gut); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > .card { scroll-snap-align: start; }
.rail__nav { display: none; }

.more { display: flex; justify-content: center; margin-top: 32px; }
.listbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.listbar .count { margin: 0; }
.sorts { display: flex; gap: 14px; margin: -8px 0; overflow-x: auto; scrollbar-width: none; }
.sorts a { flex: none; padding: 8px 0; font-size: 13px; color: var(--faint); text-decoration: none; white-space: nowrap; }
.sorts a[aria-current] { color: var(--ink); font-weight: 700; }

.chips, .catnav { display: flex; gap: 6px; margin: 0 calc(var(--gut) * -1) 16px; padding-inline: var(--gut); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar, .catnav::-webkit-scrollbar, .sorts::-webkit-scrollbar { display: none; }
.chip, .catnav a { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--paper); font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.chip .num { font-size: 13px; color: var(--faint); }
.chip[aria-current], .catnav a[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--on-color); font-weight: 600; }
.chip[aria-current] .num { color: inherit; opacity: .72; }
.chip[class*="sec-"][aria-current] { border-color: var(--sc); background: var(--sc); }
.chip[aria-current] .secdot { background: currentColor; }

.catgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.catgrid a { display: flex; align-items: center; height: 48px; padding: 0 14px; border-radius: var(--r-2); background: var(--fill); font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; }

.segs { display: flex; gap: 20px; box-shadow: inset 0 -1px 0 var(--line); }
.segs a { position: relative; padding: 10px 4px 12px; margin: 0 -4px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; color: var(--faint); text-decoration: none; }
.segs a[aria-current] { color: var(--ink); }
.segs a[aria-current]::after { content: ""; position: absolute; inset: auto 4px 0; height: 2px; background: var(--ink); }
.shelf-note { margin-top: 40px; font-size: 12.5px; line-height: 19px; color: var(--faint); }
.linklike { padding: 8px 0; margin: -8px 0; border: 0; background: none; color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }

.menu { margin-top: 28px; }
.menu:first-of-type { margin-top: 4px; }
.menu__title { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--faint); }
.menu__list a { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 8px 0; box-shadow: inset 0 -1px 0 var(--line-2); text-decoration: none; }
.menu__name { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.menu__desc { flex: 1; min-width: 0; overflow: hidden; font-size: 13px; color: var(--faint); white-space: nowrap; text-overflow: ellipsis; }
.menu__n { margin-left: auto; font-size: 15px; font-weight: 500; color: var(--mute); }
.menu__list .i { width: 16px; height: 16px; color: var(--ghost); }

.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 44px 0 12px; font-size: 14px; line-height: 22px; color: var(--mute); }
.empty--top { padding-top: 64px; }
.empty__title { font-size: 19px; line-height: 1.35; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.empty .btn { margin-top: 14px; }

/* ───────── 행사 소식 ─────────
   판매처의 로고·색·배너 그림을 쓰지 않는다. 이름과 기간을 글자로 적고, 달력 한 장처럼 날짜를 크게 둔다.
   진행 중인 것은 날짜 칸이 잉크, 아직 시작하지 않은 것은 옅은 칸. 재촉하는 색(빨강)·움직임·남은 시간 세기는 없다. */
.section--events { margin-top: 28px; }
/* 행사판 첫 화면 아래의 길: 브랜드 공식몰 세일, 알아둘 날 */
/* 행사판 첫 화면 아래의 길: 브랜드 공식몰 세일, 알아둘 날, 생일에 주는 것. 그 갈래의 옅은 면에 그림을 단 카드(2026-11-21) */
.hlinks { display: grid; gap: 8px; }
.hlinks > li { border-radius: var(--r-3); background: var(--sc-soft); }
.hlinks > li.k-cake { background: var(--kc-soft); }
.hlinks a { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 14px 12px 12px; color: var(--ink); text-decoration: none; }
.hlinks__art { flex: none; width: 48px; height: 48px; }
.hlinks__text { display: grid; flex: 1; min-width: 0; gap: 2px; }
.hlinks__text b { font-size: 16px; line-height: 22px; font-weight: 800; letter-spacing: -.03em; }
.hlinks__text b .num { margin-left: 2px; font-size: 15px; font-weight: 600; color: var(--mute); }
.hlinks__text span { font-size: 13px; line-height: 19px; color: var(--mute); }
.hlinks a > .i { width: 18px; height: 18px; color: var(--mute); }
.evs { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 320px); gap: 8px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
.evs::-webkit-scrollbar { display: none; }
.evs--one { grid-auto-columns: 100%; }
.evs--inline { margin-bottom: 16px; }      /* 목록 위에 끼워 넣을 때(판매처 코너) */
.ev { min-width: 0; scroll-snap-align: start; }
.ev__link { display: grid; grid-template-columns: 82px minmax(0, 1fr); height: 100%; min-height: 98px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--paper); text-decoration: none; }
.ev__date { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 12px 8px 12px 14px; background: var(--sc-soft); color: var(--sc); }      /* 시작 전: 분야의 옅은 면 */
.ev__date b { font-size: 23px; line-height: 1; font-weight: 700; }
.ev__date span { font-size: 11.5px; line-height: 14px; font-weight: 600; color: var(--sc); white-space: nowrap; }
.ev--ongoing .ev__date { background: var(--sc); color: var(--on-color); }      /* 진행 중: 분야의 색 */
.ev--ongoing .ev__date span { color: var(--on-color); }      /* 옅게 하면 가장 옅은 분야 색에서 4.5에 못 미친다 */
.ev__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 12px 14px; }
.ev__kicker { display: flex; align-items: center; min-width: 0; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--mute); }
.ev__kicker b { min-width: 0; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ev__state { flex: none; font-weight: 500; color: var(--faint); }
.ev__state::before { content: "·"; margin: 0 6px; color: var(--ghost); }
.is-last .ev__state { font-weight: 700; color: var(--ink); }
.ev__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 3px; font-size: 17px; line-height: 23px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.ev__span { margin-top: 4px; overflow: hidden; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12.5px; line-height: 17px; color: var(--mute); white-space: nowrap; text-overflow: ellipsis; }

/* 행사 소식 화면: 한 건씩 근거와 함께 */
.evlist { margin-top: 36px; }
.pagehead + .evlist { margin-top: 4px; }
.pagehead ~ .notice + .evlist, .pagehead ~ .disclose + .evlist { margin-top: 24px; }
.evlist__title { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.03em; }
.evlist__title .num { font-size: 15px; font-weight: 500; color: var(--faint); }
.evrows { display: grid; gap: 10px; }
/* 행사 한 건은 그 분야의 옅은 면을 깐 카드다(생일에 주는 것의 카드와 같은 결, 2026-11-21 오너 "생일페이지만들었던 테마처럼").
   왼쪽 위에 분야의 그림(sectors.svg), 그 옆에 날짜를 크게 — 진행 중이면 끝나는 날, 시작 전이면 시작하는 날.
   진행 중은 면을 채우고 시작 전은 테두리만 두른다(띠 그림의 채움·테두리와 같은 뜻). 근거·지난 회차는 오른쪽 위 ⓘ에. */
.evrow { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-content: start; column-gap: 12px; min-width: 0; padding: 14px 16px 16px; border-radius: var(--r-3); background: var(--sc-soft); scroll-margin-top: calc(var(--gnb-h) + 16px); }
.evrow--soon { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--sc-mid); }
.evrow:target { box-shadow: inset 0 0 0 2px var(--sc); }      /* 오늘 판·배너를 눌러 온 항목 */
.evrow > * { grid-column: 1 / -1; min-width: 0; }
.evrow > .evrow__art { grid-column: 1; width: 48px; height: 48px; }
.evrow > .evrow__when { grid-column: 2; align-self: center; display: flex; flex-direction: column; gap: 4px; padding-right: 28px; color: var(--sc); }
.evrow__when b { font-size: 25px; line-height: 1; font-weight: 700; }
.evrow__when span { font-size: 12.5px; line-height: 15px; font-weight: 600; }
.evrow > .ev__kicker { margin-top: 12px; }
.evrow .ev__state { color: var(--mute); }      /* 색 면 위에서는 faint 가 모자란다 */
.evrow.is-last .ev__state { font-weight: 700; color: var(--ink); }
.evrow__name { margin-top: 3px; font-size: 20px; line-height: 27px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.evrow__span { margin-top: 6px; font-size: 14px; line-height: 21px; color: var(--ink-2); }
.evrow__span span { white-space: nowrap; }      /* 날짜 한가운데에서 줄이 바뀌지 않게 */
.evrow__sum { margin-top: 2px; font-size: 14px; line-height: 21px; color: var(--mute); }
.evrow__go { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 14px; }
.evrow__go .btn { max-width: 100%; height: auto; min-height: 40px; padding: 9px 14px; font-size: 14px; line-height: 20px; text-align: left; white-space: normal; }      /* 긴 이름·좁은 칸에서는 두 줄로(잘리지 않게) */
.evrow__go .btn--text { justify-content: flex-start; padding: 0; }
.evrow__go .btn .i { width: 16px; height: 16px; }
.evrow__ad { margin-top: 12px; font-size: 14px; line-height: 21px; color: var(--ink); }      /* 제휴 링크라는 말: 그 링크 바로 위에 */
.evrow__ad + .evrow__go { margin-top: 10px; }
.evpast li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--line-2); font-size: 14px; line-height: 20px; scroll-margin-top: calc(var(--gnb-h) + 16px); }
.evpast li:first-child { box-shadow: inset 0 1px 0 var(--line-2), inset 0 -1px 0 var(--line-2); }
.evpast__name { min-width: 0; color: var(--ink-2); }
.evpast__name b { margin-right: 2px; font-weight: 600; color: var(--mute); }      /* 판매처와 이름 사이에는 빈칸 글자도 있다(복사·검색·낭독) */
.evpast__name > .secdot { margin-right: 7px; vertical-align: 1px; }      /* 분야의 작은 네모(오늘 판의 항목과 같은 꼴) */
.evpast__span { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--mute); white-space: nowrap; }
.evpast__gap { grid-column: 1 / -1; font-size: 12.5px; line-height: 18px; color: var(--mute); }      /* 행사별 기록: 앞 회차에서 ○개월 */

/* 행사 달력의 띠 그림: 한 줄에 행사 하나. 띠의 자리는 서버가 계산해 SVG 속성으로 준다(줄에 박은 꾸밈을 쓰지 않는다).
   진행 중은 잉크로 채우고, 시작 전은 테두리만, 끝난 것은 옅게. 세로선 하나가 오늘이다. 여기서도 색·움직임·남은 날 세기는 없다.
   좁은 화면: 이름 줄 아래에 띠. 넓은 화면: 왼쪽에 이름, 오른쪽에 띠(선이 줄을 따라 이어진다). */
.tl__head { display: flex; }
.tl__head .tl__lab { display: none; }
.tl__lane { position: relative; display: block; flex: 1; min-width: 0; height: 16px; background: linear-gradient(var(--fill), var(--fill)) center / 100% 10px no-repeat; }
.tl__head .tl__lane { height: 22px; background: none; }
.tl__lane svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: hidden; }
.tl__tick { font: 500 11.5px var(--font-num); font-variant-numeric: tabular-nums; fill: var(--faint); }
.tl__tick--today { font: 700 11.5px var(--font); fill: var(--today); }
.tl--months .tl__tick:nth-of-type(even) { display: none; }      /* 좁은 화면에서는 달 이름을 하나 걸러 적는다 */
.tl__grid { stroke: var(--paper); stroke-width: 2; shape-rendering: crispEdges; }      /* 띠 자리를 한 주씩 끊는 틈 */
.tl__now { stroke: var(--today); stroke-width: 1.5; }
.tl__bar--ongoing { fill: var(--sc); }      /* 띠의 색은 분야, 모양은 상태: 채움 · 테두리 · 옅음 */
.tl__bar--soon { fill: var(--sc-soft); stroke: var(--sc); stroke-width: 1.2; }
.tl__bar--past { fill: var(--sc-mid); }
.tl__rows { box-shadow: inset 0 1px 0 var(--line); }
.tl__row { position: relative; z-index: 0; padding-bottom: 12px; box-shadow: inset 0 -1px 0 var(--line-2); }      /* z-index: 아래의 덮개가 이 줄 안에서만 위로 오게 */
.tl__lab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding: 10px 0 6px; color: var(--ink); text-decoration: none; }
.tl__lab .tag { padding: 0; background: none; color: var(--faint); font-weight: 500; }      /* '5개월 만'은 띠 옆의 작은 글자로만(알약을 쓰지 않는다) */
a.tl__lab::after { content: ""; position: absolute; inset: 0; z-index: 1; }      /* 줄 어디를 눌러도 그 행사로 간다(띠 위도: 띠보다 위에 덮는다) */
.tl__who { font-size: 12.5px; line-height: 20px; font-weight: 600; color: var(--mute); }
.tl__what { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; min-width: 0; }
.tl__name { font-size: 14.5px; line-height: 20px; font-weight: 700; letter-spacing: -.03em; }
.tl__when { margin-left: auto; padding-left: 8px; font-size: 12.5px; line-height: 20px; color: var(--mute); white-space: nowrap; }
.is-strong .tl__when { font-weight: 700; color: var(--ink); }
.tl__row--past .tl__name { font-weight: 500; color: var(--ink-2); }
.tl--plain .tl__name { font-weight: 600; color: var(--ink); }      /* 지난 기록의 해 이름: 끝난 해도 같은 굵기로 */
.tl__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; line-height: 16px; color: var(--faint); }
.tl__legend span { display: inline-flex; align-items: center; gap: 5px; }
.tl__legend--sec { gap: 4px 12px; }
.secdot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--sc); }
.calendar__foot { display: grid; gap: 8px; margin-top: 12px; }
.calendar__note { max-width: 640px; font-size: 12.5px; line-height: 19px; color: var(--faint); }
.evlist .calendar__note { margin-top: 14px; }
.pagehead__up { margin: -6px 0 4px; font-size: 13px; }
.pagehead__up a { display: inline-flex; align-items: center; gap: 1px; padding: 6px 0; font-weight: 500; color: var(--mute); text-decoration: none; }
.pagehead__up .i { width: 14px; height: 14px; }
.pagehead__sub b { font-weight: 600; color: var(--ink-2); }
.evnow { width: fit-content; max-width: 100%; margin-bottom: 20px; padding: 12px 14px; border-radius: var(--r-2); background: var(--fill); font-size: 15px; line-height: 22px; color: var(--ink); text-wrap: pretty; }
.evnow a { margin-left: 4px; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.evnow.evnow--go { margin-bottom: 12px; }      /* 밑에 판매처로 가는 버튼이 딸린다 */
.evnow--go + .evrow__ad { margin-top: 0; }
.evgo { margin: 0 0 20px; }
.evrow__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.evpast__name a { text-decoration: underline; text-underline-offset: 2px; }
.evpast__name .tag { margin-left: 4px; vertical-align: 1px; }
.evpast--log .evpast__name { font-weight: 600; color: var(--ink); }
.evpast--log .evpast__name b { font-weight: 600; }
/* 행사별 기록: 회차를 적어 온 행사를 분야별로 한 줄씩. 표의 줄처럼 옅은 선만 둔다 */
.evwatch__sub { max-width: 640px; margin: -4px 0 12px; font-size: 13px; line-height: 20px; color: var(--faint); }
/* 브랜드 공식몰의 세일: 상자 없이 한 줄. 좁은 화면은 이름 / 기간 + 가는 링크 / 근거, 넓은 화면은 이름 | 기간 | 가는 링크. */
.evshop__group + .evshop__group { margin-top: 20px; }
.evshop__kind { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--sc); }
.evshop__art { flex: none; width: 32px; height: 32px; }      /* 분야의 그림(sectors.svg) */
.evshop li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--line-2); font-size: 14px; line-height: 20px; scroll-margin-top: calc(var(--gnb-h) + 16px); }
.evshop li:first-child { box-shadow: inset 0 1px 0 var(--line-2), inset 0 -1px 0 var(--line-2); }
.evshop__name { grid-column: 1 / -1; min-width: 0; font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.evshop__name b { margin-right: 2px; font-weight: 700; color: var(--sc); }      /* 브랜드 이름은 그 분야의 색 */      /* 브랜드와 이름 사이에는 빈칸 글자도 있다 */
.evshop__name a { text-decoration: underline; text-underline-offset: 2px; }
.evshop__name .tag { margin-left: 4px; vertical-align: 1px; }
.evshop__when { min-width: 0; font-size: 13px; color: var(--mute); }
.evshop__when .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.evshop__state { margin-left: 4px; white-space: nowrap; }
.is-last .evshop__state { font-weight: 700; color: var(--ink); }
.evshop__go { display: inline-flex; align-items: center; gap: 6px; justify-self: end; font-size: 13px; white-space: nowrap; }
.evshop__go a { display: inline-flex; align-items: center; gap: 3px; min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--r-2); font-weight: 600; color: var(--ink); text-decoration: none; }
.evshop__go a:active { background: var(--fill); }
.evshop__go .i { width: 14px; height: 14px; }
.evshop__ad { font-size: 12px; color: var(--mute); }
.evwatch { box-shadow: inset 0 1px 0 var(--line-2); scroll-margin-top: calc(var(--gnb-h) + 16px); }
.evwatch__group { display: grid; gap: 2px; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--line-2); }
.evwatch dt { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 20px; font-weight: 700; color: var(--sc); }
.evwatch__art { flex: none; width: 24px; height: 24px; }
.evwatch dd { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0; font-size: 14px; line-height: 20px; }
.evwatch a { min-width: 0; padding: 5px 0; color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }      /* 긴 이름은 그 안에서 줄을 바꾼다 */
.evwatch a span { margin-right: 1px; font-size: 12.5px; color: var(--mute); white-space: nowrap; }
.evwatch a b { font-weight: 500; }
.evwatch a.is-on b { font-weight: 700; color: var(--ink); }      /* 지금 열리고 있거나 예고된 행사 */
#h-watch { scroll-margin-top: calc(var(--gnb-h) + 16px); }
.evyears { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-top: 28px; font-size: 13.5px; line-height: 20px; color: var(--mute); }
.evyears a { padding: 6px 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* ───────── 상세 ───────── */
.is-detail { padding-bottom: calc(72px + var(--safe-b)); }
.is-detail .gnb { display: none; }
.detail { padding-inline: 0; }
.detail__info, .detail__body { padding-inline: var(--gut); }
.gallery { position: relative; background: var(--photo); }
.gallery::after { content: ""; position: absolute; inset: 0; background: rgba(20, 26, 40, .04); pointer-events: none; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: -2px; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track > li { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: center; }
.gallery__track img { width: 100%; height: 100%; object-fit: contain; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 3px 9px; border-radius: 11px; background: rgba(20, 26, 40, .72); color: #fff; font-size: 12.5px; line-height: 16px; font-weight: 500; }
.gallery__count b { font-weight: 600; }

.detail__info { padding-top: 18px; }
.detail__src { font-size: 13px; font-weight: 600; color: var(--mute); }
.detail__src a { display: inline-block; padding: 6px 0; margin: -6px 0; text-decoration: none; }
.detail__src span { color: var(--blue); }
.detail__lead { margin-top: 6px; font-size: 21px; line-height: 29px; font-weight: 700; letter-spacing: -.035em; }
.detail__title { margin-top: 6px; font-size: 14px; line-height: 21px; font-weight: 400; color: var(--mute); }
.detail__title--lead { font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.detail__rate { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 10px; font-size: 13px; line-height: 18px; color: var(--mute); }
.detail__rate .i { width: 14px; height: 14px; margin-right: -5px; color: var(--ink); }
.detail__rate b { font-weight: 600; color: var(--ink); }
.detail__by { color: var(--faint); }
.detail__by::before { content: "·"; margin-right: 8px; color: var(--ghost); }
@media (max-width: 767px) {
  /* 좁은 화면에서는 출처 표시가 다음 줄로 넘어간다. 줄 머리에 가운뎃점이 홀로 남지 않게 제 줄을 준다. */
  .detail__by { flex-basis: 100%; margin-top: 2px; }
  .detail__by::before { content: none; }
}

.pricebox { margin-top: 18px; padding-top: 18px; box-shadow: inset 0 1px 0 var(--line); }
.pricebox__price { display: flex; align-items: baseline; gap: 8px; line-height: 36px; }
.pricebox__price > b { font-size: 34px; font-weight: 700; }
.pricebox__price .won { margin-left: -6px; font-size: 18px; font-weight: 600; }
.pricebox__price .down b { font-size: 24px; }
.pricebox__price .down__tri { width: 11px; height: 8.8px; }
.pricebox__claim { margin-top: 6px; font-size: 13.5px; line-height: 20px; color: var(--mute); }
.pricebox__claim.is-good { color: var(--blue); font-weight: 500; }
.pricebox__off { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.facts { display: grid; gap: 7px; margin-top: 16px; font-size: 14px; line-height: 20px; }
.facts > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); }
.facts dt { color: var(--faint); }
.buy__note { margin-top: 14px; font-size: 12px; line-height: 18px; color: var(--faint); }

.detail__body { margin-top: 28px; }
.block { padding: 24px 0; box-shadow: inset 0 1px 0 var(--line); }
.block__title { margin-bottom: 12px; font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.block__text { font-size: 15px; line-height: 25px; color: var(--ink-2); }
.block__foot { margin-top: 12px; font-size: 12px; line-height: 18px; color: var(--faint); }
.specs { font-size: 14px; line-height: 20px; }
.specs > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); padding: 9px 0; box-shadow: inset 0 -1px 0 var(--line-2); }
.specs > div:first-child { box-shadow: inset 0 1px 0 var(--line-2), inset 0 -1px 0 var(--line-2); }
.specs dt { color: var(--faint); }
.knows { display: grid; gap: 8px; font-size: 14px; line-height: 21px; color: var(--ink-2); }
.knows li { position: relative; padding-left: 12px; }
.knows li::before { content: ""; position: absolute; left: 0; top: 9px; width: 3px; height: 3px; border-radius: 50%; background: var(--ghost); }

.chart { max-width: 560px; }
.chart__range { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-bottom: 10px; font-size: 13px; color: var(--mute); }
.chart__range b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.chart__svg { width: 100%; height: auto; overflow: visible; }
.chart__area { fill: var(--blue-soft); }
.chart__line { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart__now { fill: var(--blue); stroke: var(--paper); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart__axis { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 6px; box-shadow: inset 0 1px 0 var(--line); font-size: 12px; color: var(--faint); }
.chart figcaption { margin-top: 10px; font-size: 12.5px; line-height: 19px; color: var(--faint); }
.chart figcaption b { font-weight: 600; font-size: 13.5px; color: var(--mute); }

.buybar { position: fixed; inset: auto 0 0; z-index: 40; display: flex; gap: 8px; padding: 10px var(--gut) calc(10px + var(--safe-b)); background: var(--paper); box-shadow: inset 0 1px 0 var(--line); }
.buybar .btn--primary { flex: 1; min-width: 0; }

/* ───────── 이동 안내 ───────── */
.sheet { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 16px 16px 0 0; background: var(--paper-2); color: var(--ink); box-shadow: 0 -8px 40px rgba(20, 26, 40, .16); overflow: auto; }
.sheet::backdrop { background: rgba(15, 18, 26, .48); }
.sheet[open] { animation: sheet-up .26s var(--ease); }
.sheet[open]::backdrop { animation: fade .2s linear; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet__in { position: relative; padding: 26px 20px calc(16px + var(--safe-b)); }
.sheet__close { position: absolute; top: 10px; right: 8px; color: var(--mute); }
.sheet__title { padding-right: 36px; font-size: 20px; line-height: 1.35; font-weight: 700; letter-spacing: -.035em; }
.sheet__item { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px; border-radius: var(--r-2); background: var(--fill); }
.sheet__item img { flex: none; width: 56px; height: 56px; border-radius: var(--r-1); background: var(--photo); object-fit: contain; }
.sheet__item-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; font-size: 13.5px; line-height: 19px; color: var(--ink-2); }
.sheet__item-price { margin-top: 3px; font-size: 12.5px; color: var(--mute); }
.sheet__item-price b { margin-right: 4px; font-size: 17px; font-weight: 700; color: var(--ink); }
.sheet__notes { display: grid; gap: 7px; margin-top: 16px; font-size: 13.5px; line-height: 20px; color: var(--ink-2); }
.sheet__notes li { position: relative; padding-left: 12px; }
.sheet__notes li::before { content: ""; position: absolute; left: 0; top: 8.5px; width: 3px; height: 3px; border-radius: 50%; background: var(--ghost); }
.sheet__extra { margin-top: 10px; font-size: 13.5px; line-height: 20px; color: var(--ink-2); }
.sheet .btn--primary, .gopage .btn--primary { margin-top: 20px; }
.gopage { padding: 40px 0 24px; }
.gopage .btn--text { margin-top: 4px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); z-index: 60; max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: var(--r-2); background: var(--toast-bg); color: var(--toast-fg); font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translate(-50%, 8px); transition: opacity .18s, transform .18s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.is-detail .toast { bottom: calc(84px + var(--safe-b)); }

/* ───────── 버튼 ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-2); font-size: 15px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn .i { width: 18px; height: 18px; }
.btn--primary { background: var(--blue); color: var(--on-color); }
.btn--primary:active { background: var(--blue-press); }
.btn--line { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn--line:active { background: var(--fill); }
.btn--text { color: var(--mute); font-weight: 500; }
.btn--xl { height: 52px; font-size: 16px; }
.btn--wide { width: 100%; }
.btn--square { flex: none; width: 52px; padding: 0; }
.btn--square .i { width: 24px; height: 24px; }
.more .btn { max-width: 360px; }

/* ───────── 안내 글 ───────── */
.prose { padding: 28px 0 24px; font-size: 15.5px; line-height: 27px; color: var(--ink-2); }
.prose h1 { margin-bottom: 14px; font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.prose h2 { margin: 36px 0 10px; font-size: 18px; line-height: 1.4; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.prose p + p, .prose ul + p, .prose p + ul, .prose table + p { margin-top: 12px; }
.prose ul { display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 14px; }
.prose li::before { content: ""; position: absolute; left: 1px; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--ghost); }
.prose a { color: var(--blue); text-underline-offset: 2px; }
.prose b { font-weight: 600; color: var(--ink); }
.prose code { padding: 1px 5px; border-radius: var(--r-1); background: var(--fill); font: 500 .9em ui-monospace, "SF Mono", Menlo, monospace; }
.prose__lead { font-size: 17px; line-height: 29px; color: var(--ink); }
.optout { margin: 12px 0; padding: 14px 16px; border-radius: var(--r-2); background: var(--fill); }
.optout p + p { margin-top: 10px; }
.optout[data-off] [data-optout-state] { font-weight: 600; color: var(--ink); }
.prose__note { margin-top: 20px !important; padding: 12px 14px; border-radius: var(--r-2); background: var(--fill); font-size: 13px; line-height: 20px; color: var(--mute); }
.prose table { display: block; width: 100%; margin-top: 12px; border-collapse: collapse; overflow-x: auto; font-size: 13.5px; line-height: 20px; }
.prose th, .prose td { min-width: 96px; padding: 10px 12px 10px 0; text-align: left; vertical-align: top; box-shadow: inset 0 -1px 0 var(--line); }
.prose th { font-weight: 600; color: var(--faint); white-space: nowrap; }
.prose td:nth-child(2) { min-width: 220px; }
.prose td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ───────── 꼬리 ───────── */
.site-footer { padding: 28px 0 32px; background: var(--fill); font-size: 12px; line-height: 19px; color: var(--mute); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 16px; margin: -7px 0 7px; font-size: 13px; }
.site-footer__links a { display: inline-block; padding: 7px 0; color: var(--ink-2); text-decoration: none; }
.site-footer__links b { font-weight: 700; color: var(--ink); }
.site-footer__legal { max-width: 760px; }
.site-footer__legal + .site-footer__legal { margin-top: 6px; }
.site-footer__biz { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 14px; }
.site-footer__copy { margin-top: 14px; }
.is-detail .site-footer { padding-bottom: 32px; }

/* ───────── 넓은 화면 ───────── */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 12px; }
  .rail__track { grid-auto-columns: 156px; gap: 12px; }
  .catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (hover: hover) {
  .card__link:hover .card__img::after { background: rgba(20, 26, 40, .075); }
  .card__link:hover .card__title { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
  .ev__link:hover { border-color: var(--ghost); }
  .ev__link:hover .ev__name { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
  a.tl__lab:hover .tl__name { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
  .evwatch a:hover b { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
  .gnb a:hover, .section__more:hover, .sorts a:hover, .masthead__prev:hover, .masthead__pager a:hover, .site-footer__links a:hover { color: var(--ink); }
  .btn--primary:hover { background: var(--blue-press); }
  .btn--line:hover { border-color: var(--ghost); }
  .evshop__go a:hover { border-color: var(--ghost); }
  .chip:hover, .catnav a:hover { border-color: var(--ghost); }
  .chip[aria-current]:hover, .catnav a[aria-current]:hover { border-color: var(--ink); }
  .icon-btn:hover, .action:hover, .catgrid a:hover { background: var(--fill); }
  .catgrid a:hover { background: var(--fill-2); }
  .menu__list a:hover .menu__name { text-decoration: underline; text-underline-offset: 2px; }
}

@media (min-width: 768px) {
  :root { --gut: 24px; --bar-h: 68px; --gnb-h: 48px; }
  body { padding-bottom: 0; }
  .only-wide { display: revert !important; }
  .only-narrow { display: none !important; }
  .tabbar { display: none; }
  .is-detail .icon-btn.site-header__back, .is-plain .icon-btn.site-header__back { display: none; }
  main { padding-bottom: 88px; }

  .brand__mark { height: 25px; }
  .brand__word { font-size: 26px; }
  .brand__date { font-size: 15px; }
  .searchbox { display: flex; flex: 0 1 400px; margin-left: 28px; }
  .searchbox--page { flex: none; max-width: 520px; margin-left: 0; margin-top: 28px; }
  .site-header__actions { margin-right: -10px; gap: 4px; }
  .action.only-wide { display: inline-flex !important; }
  .gnb__in { gap: 28px; }
  .gnb__all.only-wide { display: inline-flex !important; margin-left: auto; }

  .masthead { padding: 36px 0 18px; }
  .masthead__date { font-size: 42px; }
  .masthead__meta { font-size: 14px; }
  .masthead__meta b { font-size: 15px; }
  .masthead__prev, .masthead__pager a { font-size: 14px; }
  .notice { display: inline-flex; font-size: 13px; }
  .disclose { width: fit-content; max-width: 100%; }
  .legend { font-size: 13px; }
  .pagehead { padding: 36px 0 20px; }
  .pagehead__title { font-size: 30px; }
  .pagehead__sub { font-size: 14.5px; line-height: 23px; }
  .pagehead__art { width: 216px; margin: -12px 0 -16px; }
  .pagehead__sym { width: 88px; height: 88px; }
  .mast__art { width: 116px; margin: -12px -4px -12px 0; }
  .hlinks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

  .section { margin-top: 52px; }
  .section--after { margin-top: 72px; }
  .section__head { margin-bottom: 18px; }
  .section__title { font-size: 23px; }
  .section__sub { font-size: 13.5px; }
  .section__more { font-size: 14px; }

  .card__src { margin-top: 12px; }
  .card__price > b { font-size: 19px; }

  .section--events { margin-top: 40px; }
  .evs { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .ev__link { grid-template-columns: 92px minmax(0, 1fr); min-height: 108px; }
  .ev__date { padding-left: 16px; }
  .ev__date b { font-size: 26px; }
  .ev__name { font-size: 18px; line-height: 24px; }
  .ev__body { padding: 14px 16px; }
  .evs--few .ev__link { grid-template-columns: 112px minmax(0, 1fr); min-height: 128px; }
  .evs--few .ev__date { padding-left: 20px; }
  .evs--few .ev__date b { font-size: 30px; }
  .evs--few .ev__date span { font-size: 12.5px; }
  .evs--few .ev__body { padding: 16px 22px; }
  .evs--few .ev__kicker { font-size: 13px; }
  .evs--few .ev__name { margin-top: 4px; font-size: 23px; line-height: 30px; }
  .evs--few .ev__span { margin-top: 6px; font-size: 13.5px; }
  .evlist { margin-top: 52px; }
  .pagehead ~ .notice + .evlist, .pagehead ~ .disclose + .evlist { margin-top: 32px; }
  .evlist__title { margin-bottom: 16px; font-size: 23px; }
  .evrow { grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; padding: 18px 20px 20px; }
  .evrow.has-info { padding-right: 20px; }
  .evrow > .evrow__art { width: 56px; height: 56px; }
  .evrow__when b { font-size: 28px; }
  .evrow__name { font-size: 22px; line-height: 30px; }
  .evpast { max-width: 760px; }
  .evshop { max-width: 760px; }
  .evshop li { grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 20px; }
  .evshop__name { grid-column: auto; }
  .evwatch { max-width: 960px; }
  .evwatch__group { grid-template-columns: 112px minmax(0, 1fr); gap: 0 12px; padding: 9px 0; }
  .evwatch dt { padding: 5px 0; font-size: 13px; }
  .evwatch dd { gap: 0 20px; font-size: 14.5px; }
  .evwatch a span { font-size: 13px; }
  .tl { --tl-lab: min(44%, 460px); }
  .tl__head .tl__lab { display: block; flex: none; width: var(--tl-lab); margin: 0; }
  .tl__head .tl__lane { height: 26px; }
  .tl__row { display: grid; grid-template-columns: var(--tl-lab) minmax(0, 1fr); padding: 0; }
  .tl__lab { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 0 12px; min-height: 46px; padding: 7px 18px 7px 0; }
  .tl--plain .tl__lab { grid-template-columns: minmax(0, 1fr) auto; }
  .tl__who { font-size: 13px; }
  .tl__name { font-size: 15px; }
  .tl__when { padding-left: 0; font-size: 13px; }
  .tl__lane { height: auto; background: none; }
  .tl__grid { stroke: var(--line); stroke-width: 1; }
  .tl--months .tl__tick:nth-of-type(even) { display: inline; }
  .calendar__foot { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px 28px; margin-top: 14px; }
  .calendar__note { font-size: 13px; }
  .evnow { margin-bottom: 28px; }
  .evgo { margin-bottom: 28px; }

  .rail { margin-inline: 0; }
  .rail__track { padding-inline: 0; scroll-padding-inline: 0; scroll-snap-type: x mandatory; }
  .rail__nav { position: absolute; top: 70px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 2px 10px rgba(20, 26, 40, .1); }
  .rail__nav .i { width: 18px; height: 18px; }
  .rail__nav--prev { left: -14px; }
  .rail__nav--next { right: -14px; }
  .rail__nav:hover { border-color: var(--ghost); }

  .chips, .catnav { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 720px; }
  .menu__list--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .segs a { font-size: 24px; }

  /* 상세: 왼쪽에 사진과 설명, 오른쪽에 가격과 단추(따라 내려온다) */
  .is-detail { padding-bottom: 0; }
  .is-detail .gnb { display: block; }
  .detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); grid-template-areas: "crumbs crumbs" "media info" "body info"; column-gap: 48px; padding-inline: var(--gut); padding-top: 4px; }
  .crumbs { grid-area: crumbs; display: flex !important; align-items: center; gap: 4px; padding: 18px 0 16px; font-size: 13px; color: var(--faint); }
  .crumbs a { display: inline-block; padding: 4px 0; text-decoration: none; }
  .crumbs a:hover { color: var(--ink); }
  .crumbs .i { width: 12px; height: 12px; color: var(--ghost); }
  .detail__media { grid-area: media; min-width: 0; }
  .detail__info { grid-area: info; position: sticky; top: calc(var(--gnb-h) + 24px); align-self: start; padding: 0; }
  .detail__body { grid-area: body; min-width: 0; margin-top: 40px; padding: 0; }
  .gallery { border-radius: var(--r-3); overflow: hidden; }
  .gallery__thumbs { display: flex !important; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .gallery__thumbs button { position: relative; width: 68px; height: 68px; padding: 0; border: 0; border-radius: var(--r-img); background: var(--photo); overflow: hidden; }
  .gallery__thumbs button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(20, 26, 40, .04); box-shadow: inset 0 0 0 1px transparent; }
  .gallery__thumbs button[aria-current]::after { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
  .detail__lead { font-size: 24px; line-height: 33px; }
  .detail__title--lead { font-size: 20px; line-height: 29px; }
  .pricebox__price > b { font-size: 38px; }
  .buy { display: block !important; margin-top: 22px; }
  .buy__row { display: flex; gap: 8px; }
  .buy__row .btn--primary { flex: 1; min-width: 0; }
  .buy__row .btn--xl { height: 56px; }
  .buy__row .btn--square { width: 56px; }
  .block { padding: 32px 0; }
  .block__title { font-size: 19px; }

  .sheet { width: 420px; margin: auto; border-radius: 14px; box-shadow: 0 24px 64px rgba(20, 26, 40, .24); }
  .sheet__in { padding: 28px 24px 24px; }
  .toast { bottom: 32px; }
  .is-detail .toast { bottom: 32px; }

  .prose { padding-top: 48px; font-size: 16px; line-height: 28px; }
  .prose h1 { font-size: 32px; }
  .prose h2 { font-size: 20px; margin-top: 44px; }
  .site-footer { padding: 36px 0 44px; }
}

@media (min-width: 860px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 16px; }
  .evs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .evs--few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evrows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rail__track { grid-auto-columns: calc((100cqw - 16px * 3) / 4); gap: 16px; }
  .rail__nav { top: calc((100cqw - 16px * 3) / 8 - 20px); }
}

@media (min-width: 1100px) {
  :root { --gut: 32px; }
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px 16px; }
  .rail__track { grid-auto-columns: calc((100cqw - 16px * 4) / 5); gap: 16px; }
  .rail__nav { top: calc((100cqw - 16px * 4) / 10 - 20px); }
  .detail { grid-template-columns: minmax(0, 580px) minmax(0, 520px); column-gap: 60px; justify-content: space-between; }
  .section--after .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ── 분야의 색 ──
   띠 그림의 띠, 상자의 날짜 칸, 오늘 판의 항목, 분야 고르기의 점, 브랜드 공식몰 세일과 색인의 머리말에 같은 색을 쓴다.
   판매처의 상표색이 아니다(판매처마다 색을 주지 않는다). sc: 흰 글자를 올려도, 옅은 면(soft) 위의 글자로도 4.5 이상. mid: 끝난 띠 */
.sec-mall    { --sc: #6741d9; --sc-soft: #f1edff; --sc-mid: #b5a0f5; }
.sec-mart    { --sc: #237a36; --sc-soft: #e8f6eb; --sc-mid: #8fcf9d; }
.sec-fashion { --sc: #c2255c; --sc-soft: #fdebf2; --sc-mid: #ec9ab8; }
.sec-sports  { --sc: #0b7a5f; --sc-soft: #e3f6f0; --sc-mid: #82cbb5; }
.sec-beauty  { --sc: #9c36b5; --sc-soft: #f7ecfa; --sc-mid: #d29ae0; }
.sec-digital { --sc: #0b6f86; --sc-soft: #e2f4f8; --sc-mid: #80c4d4; }
.sec-living  { --sc: #a85400; --sc-soft: #fbf0e3; --sc-mid: #e2ad6f; }
.sec-travel  { --sc: #1864ab; --sc-soft: #e6f1fb; --sc-mid: #90bbe8; }
.sec-game    { --sc: #4f7a0e; --sc-soft: #eef6e1; --sc-mid: #a8cc74; }
.sec-life    { --sc: #806200; --sc-soft: #fbf4dc; --sc-mid: #dcc169; }
.sec-joint   { --sc: #495057; --sc-soft: #eef0f2; --sc-mid: #b3b9c0; }
/* 알아둘 날의 색 묶음(oneulja/dates.py GROUPS). 같은 기준(흰 바탕·옅은 면 4.5 이상). 쇼핑 행사와 섞이는 오늘 판에서는 표시의 꼴(동그라미)로 가른다 */
.sec-money    { --sc: #17773f; --sc-soft: #e6f5ec; --sc-mid: #8fcfa6; }
.sec-booking  { --sc: #1c5fae; --sc-soft: #e7f0fb; --sc-mid: #93b9e6; }
.sec-culture  { --sc: #b02a66; --sc-soft: #fcebf2; --sc-mid: #e79bbd; }
.sec-calendar { --sc: #9a4f00; --sc-soft: #fbefe1; --sc-mid: #e0b07a; }
.sec-rules    { --sc: #4a5868; --sc-soft: #edf0f3; --sc-mid: #aeb8c3; }
.sec-market   { --sc: #5c6a00; --sc-soft: #f1f5dc; --sc-mid: #b9c46c; }
.sec-exam     { --sc: #0a6f80; --sc-soft: #e1f3f6; --sc-mid: #86c6d1; }
.sec-pop      { --sc: #7d36b0; --sc-soft: #f4ebfa; --sc-mid: #c9a2e3; }

/* ── 오늘 ── 들어오자마자 '오늘 뭐 하지'. 주홍 도장은 '오늘'에만, 항목의 색은 분야.
   항목은 신문 목차처럼 한 줄씩: 색은 판매처 이름과 작은 네모에만 쓰고 바탕을 칠하지 않는다
   (2026-11-17 오너가 비슷한 서비스를 '클로드 디자인'이라 했다 — 옅은 색 바탕의 알약을 쓰지 않는다. docs/DESIGN.md) */
.today { margin-top: 16px; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--paper); }
.masthead + .today { margin-top: 4px; }
.pagehead + .today, .chips + .today { margin-top: 0; margin-bottom: 20px; }
.today__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 17px; line-height: 24px; font-weight: 800; letter-spacing: -.03em; }
.today__stamp { display: inline-flex; align-items: center; height: 24px; padding: 0 7px; border: 1.5px solid var(--today); border-radius: var(--r-1); font-size: 13px; font-weight: 800; letter-spacing: 0; color: var(--today); }
.today__at { font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.today__note { margin-top: 6px; font-size: 13px; color: var(--mute); }
.today__list { display: grid; gap: 10px; margin-top: 12px; }
.today__group { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: start; gap: 8px; }
.today__group dt { padding-top: 4px; font-size: 13px; line-height: 20px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.today__group dt .num { margin-left: 1px; font-size: 13px; font-weight: 500; color: var(--faint); }
.today__group dd { margin: 0; min-width: 0; }
.today__group ul { display: grid; }
.today__item { min-width: 0; }
.today__item a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 4px 0; color: var(--ink); font-size: 14px; line-height: 20px; text-decoration: none; overflow-wrap: anywhere; }
.today__item a:hover b { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.today__item span { flex: none; position: relative; padding-left: 13px; font-size: 13px; font-weight: 700; color: var(--sc); }
.today__item span::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 1px; background: var(--sc); }
.today__item b { font-weight: 700; letter-spacing: -.02em; }
.today__item.is-brand b { font-weight: 500; }      /* 브랜드 공식몰의 세일은 큰 행사보다 한 단 가볍게 */
.today__item i { font-style: normal; font-size: 12px; color: var(--mute); }
.today__none { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.today__count { margin-top: 12px; padding-top: 10px; box-shadow: inset 0 1px 0 var(--line-2); font-size: 13px; line-height: 20px; color: var(--mute); }
.today__count a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.today__count b { font-weight: 700; color: var(--ink); }
.today__item.is-info span::before { border-radius: 50%; }      /* 알아둘 날: 동그라미(쇼핑 행사는 네모) */
.today__more { margin-top: 6px; font-size: 13px; line-height: 20px; }
.today__more a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.today__more b { font-weight: 700; color: var(--ink); }
@media (min-width: 768px) {
  .today { padding: 16px 18px 14px; }
  .today__group { grid-template-columns: 84px minmax(0, 1fr); }
}

/* ── 알아둘 날 ── 상자 없이 줄로 적는다(신문의 일정란처럼). 색은 갈래 이름과 작은 동그라미에만 쓰고 바탕을 칠하지 않는다. */
.chips--info .secdot { border-radius: 50%; }
.drows { display: grid; }
/* 지금 진행 중인 한 건: 왼쪽에 묶음의 그림(sectors.svg, 생일에 주는 것의 줄과 같은 꼴 — 2026-11-21) */
.drow { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: start; column-gap: 12px; min-width: 0; padding: 14px 0; box-shadow: inset 0 -1px 0 var(--line-2); scroll-margin-top: calc(var(--gnb-h) + 16px); }
.drow__art { grid-row: 1 / span 3; width: 44px; height: 44px; margin-top: 1px; }
.drow > :not(.drow__art) { grid-column: 2; min-width: 0; }
.drows > .drow:first-child { box-shadow: inset 0 1px 0 var(--line-2), inset 0 -1px 0 var(--line-2); }
.drow:target { box-shadow: inset 3px 0 0 var(--sc), inset 0 -1px 0 var(--line-2); padding-left: 12px; }
.drow__top { font-size: 12.5px; line-height: 18px; color: var(--mute); overflow-wrap: anywhere; }
.drow__kind { font-weight: 700; color: var(--sc); }
.drow__org::before { content: "·"; margin: 0 5px 0 1px; color: var(--ghost); }
.drow__name { margin-top: 1px; font-size: 16px; line-height: 23px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); overflow-wrap: anywhere; }
.drow__name .tag { vertical-align: 2px; }
.drow__when { margin-top: 3px; font-size: 13.5px; line-height: 20px; color: var(--ink-2); }
.drow__when .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.drow__state { margin-left: 4px; color: var(--faint); }
.is-last .drow__state { font-weight: 700; color: var(--ink); }
.drow__sum { margin-top: 2px; font-size: 13.5px; line-height: 20px; color: var(--mute); overflow-wrap: anywhere; }
.drow__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-top: 6px; font-size: 12px; line-height: 18px; color: var(--faint); }
.drow__go { display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; }
.drow__go:hover { text-decoration: underline; text-underline-offset: 2px; }
.drow__go .i { width: 14px; height: 14px; }
.dline__more a { text-decoration: underline; text-underline-offset: 2px; }
.agenda { display: grid; }
.agenda__day { min-width: 0; padding-top: 14px; }
.agenda__day:first-child { padding-top: 0; }
.agenda__date { display: flex; align-items: baseline; gap: 6px; padding-bottom: 6px; font-size: 15px; line-height: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.agenda__md { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 17px; }
.agenda__wd { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.agenda__date em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--mute); }
/* 먼 달은 접어 둔다(한 달에 수십 줄이라 펼쳐 두면 화면이 끝없이 길어진다). 달 이름 줄 전체가 누르는 곳이다 */
.dmonths { box-shadow: inset 0 1px 0 var(--line); }
.dmonth { box-shadow: inset 0 -1px 0 var(--line); }
.dmonth__title { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 12px 0; font-size: 15px; line-height: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); list-style: none; cursor: pointer; }
.dmonth__title::-webkit-details-marker { display: none; }
.dmonth__title .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--mute); }
.dmonth__title::after { content: ""; width: 7px; height: 7px; margin: 0 4px 0 auto; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: translateY(-2px) rotate(45deg); }
.dmonth[open] > .dmonth__title::after { transform: translateY(2px) rotate(-135deg); }
.dmonth__title:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dmonth > .dlines { padding-bottom: 14px; }
.dlines { display: grid; }
.dline { display: grid; gap: 2px 12px; padding: 11px 0; box-shadow: inset 0 -1px 0 var(--line-2); font-size: 14px; line-height: 20px; scroll-margin-top: calc(var(--gnb-h) + 16px); }
.dlines > .dline:first-child { box-shadow: inset 0 1px 0 var(--line-2), inset 0 -1px 0 var(--line-2); }
.dline:target { box-shadow: inset 3px 0 0 var(--sc), inset 0 -1px 0 var(--line-2); padding-left: 10px; }
.dline__name { min-width: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.dline__org { margin-right: 2px; color: var(--mute); }
.dline__name b { font-weight: 700; color: var(--ink); }
.dline__kind { position: relative; margin-right: 2px; padding-left: 12px; font-size: 12.5px; font-weight: 700; color: var(--sc); white-space: nowrap; }
.dline__kind::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--sc); }
.dline__span { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--mute); }
.dline__more { min-width: 0; font-size: 12px; line-height: 18px; color: var(--faint); overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .dline { grid-template-columns: minmax(0, 1fr) auto; }
  .dline__span { white-space: nowrap; text-align: right; }
  .dline__more { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .agenda__day { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 16px; padding-top: 0; box-shadow: inset 0 1px 0 var(--line); }
  .agenda__day:last-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
  .agenda__date { flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 0; }
  .agenda__md { font-size: 20px; line-height: 26px; }
  .dlines--day > .dline:first-child { box-shadow: inset 0 -1px 0 var(--line-2); }
  .dlines--day > .dline:last-child { box-shadow: none; }
}

/* ── ⓘ 접어 둔 근거 ── 줄의 오른쪽 위에 작은 표시가 있고, 누르면 그 줄 아래에 펼친다(_macros.html 의 info·note).
   2026-11-20 오너: "상세한걸 우리가 다 고지해서 보여줄필요는 없을거같고 인포마크같은걸로" · "그 외 모든 페이지의 근거나 이런것도".
   줄에는 .has-info — 표시가 앉을 자리(relative)와 오른쪽 여백. 누르는 곳은 40px, 보이는 표시는 18px. */
.has-info { position: relative; padding-right: 32px; }
.info__mark { position: absolute; top: 2px; right: -10px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--faint); list-style: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
.info__mark::-webkit-details-marker { display: none; }
.info__mark::marker { content: ""; }
.info__mark .i { width: 18px; height: 18px; }
.info__mark:focus-visible { outline-offset: -7px; border-radius: 50%; }
.info[open] > .info__mark { color: var(--ink); }
.info__body { margin-top: 8px; padding: 9px 12px 10px; border-radius: var(--r-2); background: var(--fill); font-size: 12.5px; line-height: 19px; color: var(--mute); overflow-wrap: anywhere; }
.info__body > * + * { margin-top: 3px; }
.info__body a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.info__lead { font-weight: 700; color: var(--ink-2); }
.has-info > .info > .info__body, .gift > .info > .info__body { margin-right: -32px; }      /* 펼친 것은 표시 자리(오른쪽 여백)까지 넓게 */
.evrow.has-info { padding-right: 16px; }
.evrow.has-info > .info > .info__mark { top: 6px; right: 4px; color: var(--mute); }
.evrow.has-info > .info > .info__body { margin: 12px 0 0; background: var(--card-note); color: var(--ink-2); }
.evrow.has-info > .info[open] > .info__mark { color: var(--ink); }
.evpast .has-info, .evshop .has-info { padding-right: 32px; }      /* '.evpast li { padding: 12px 0 }'이 .has-info 보다 세다 */
.evpast .info, .evshop .info, .dline .info { grid-column: 1 / -1; }
.evpast .info__body, .evshop .info__body, .dline .info__body { margin-top: 6px; }
.dline .info__mark { top: 1px; }
/* 화면 머리의 접어 둔 안내("ⓘ 싣는 기준"). 머리말은 한 문장만 남기고 나머지는 여기에 둔다 */
.pnote { margin-top: 4px; }
.pnote__mark { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; font-size: 13px; font-weight: 600; color: var(--mute); list-style: none; cursor: pointer; }
.pnote__mark::-webkit-details-marker { display: none; }
.pnote__mark::marker { content: ""; }
.pnote__mark .i { width: 16px; height: 16px; }
.pnote[open] > .pnote__mark { color: var(--ink); }
.pnote > .info__body { max-width: 640px; margin-top: 0; font-size: 13px; line-height: 20px; }
@media (hover: hover) {
  .info__mark:hover, .pnote__mark:hover { color: var(--ink); }
  .gift__go a:hover { text-decoration: underline; text-underline-offset: 2px; }
}

/* ── 생일에 주는 것 ── 2026-11-20 저녁에 다시 그렸다. 오너: "디자인 훨씬 예쁘게… 너무 사무적이고 글이 너무 많고… 알록달록하거나 깔끔한 이미지도".
   머리의 그림(img/birthday-art.svg), 갈래의 색 점이 있는 칩, 갈래 그림(img/gifts.svg)을 단 줄. 가게·브랜드에서 그냥 주는 것은 이 화면의 첫 볼거리라
   그 갈래의 옅은 면을 깐 카드로 크게. 줄에는 주는 곳·주는 것·받으려면만 두고 나머지는 ⓘ에 접는다.
   갈래의 색은 행사 분야의 색 값을 다시 쓴다(대비를 잰 값이다. 행사와 한 화면에 섞이지 않는다). */
.k-drink   { --kc: #a85400; --kc-soft: #fbf0e3; }
.k-cake    { --kc: #c2255c; --kc-soft: #fdebf2; }
.k-food    { --kc: #9c36b5; --kc-soft: #f7ecfa; }
.k-meal    { --kc: #237a36; --kc-soft: #e8f6eb; }
.k-entry   { --kc: #1864ab; --kc-soft: #e6f1fb; }
.k-service { --kc: #0b7a5f; --kc-soft: #e3f6f0; }
.k-gift    { --kc: #6741d9; --kc-soft: #f1edff; }
.k-upgrade { --kc: #0b6f86; --kc-soft: #e2f4f8; }
.k-points  { --kc: #806200; --kc-soft: #fbf4dc; }
.k-plus    { --kc: #4f7a0e; --kc-soft: #eef6e1; }
.k-other   { --kc: #495057; --kc-soft: #eef0f2; }
/* 머리 옆의 그림은 이제 생일·행사 달력·알아둘 날과 그 지난 기록에 있다(.pagehead--art, 아래 '머리의 그림') */
.searchbox--gifts { margin: 4px 0 12px; }
.bchips { display: grid; gap: 8px; margin-bottom: 14px; }
.bchips .chips { margin-bottom: 0; }
.chips--ways nav { flex: none; display: flex; gap: 6px; }
.chips--ways nav + nav { margin-left: 4px; padding-left: 10px; box-shadow: inset 1px 0 0 var(--line); }
.kdot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--kc); }
.chip[class*="k-"][aria-current] { border-color: var(--kc); background: var(--kc); }
.chip[aria-current] .kdot { background: currentColor; }
.bstatus { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 13px; line-height: 20px; color: var(--mute); }
.bstatus b { font-weight: 700; color: var(--ink); }
.bstatus__all { font-weight: 600; color: var(--blue); text-decoration: none; }
.bsector { margin-top: 26px; }
.bsector__title { margin-bottom: 14px; font-size: 19px; line-height: 1.3; font-weight: 800; letter-spacing: -.03em; }
.bgroup:not([hidden]) ~ .bgroup { margin-top: 30px; }      /* 보이는 묶음 사이에만 띄운다(찾는 말로 앞 묶음이 숨으면 제목 바로 아래에 붙는다) */
.bgroup__title { display: flex; align-items: baseline; gap: 6px; font-size: 16px; line-height: 23px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.bgroup__title .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; color: var(--faint); }
.bgroup__about { margin: 1px 0 10px; font-size: 12.5px; line-height: 19px; color: var(--faint); }
.gifts { display: grid; }
.gifts:not(.gifts--cards) { box-shadow: inset 0 1px 0 var(--line-2); }
.gift { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: start; column-gap: 12px; min-width: 0; padding: 14px 32px 14px 0; box-shadow: inset 0 -1px 0 var(--line-2); scroll-margin-top: calc(var(--gnb-h) + 16px); }
.gift__art { grid-row: 1 / span 3; width: 44px; height: 44px; margin-top: 1px; }
.gift > :not(.gift__art) { grid-column: 2; min-width: 0; }
.gift__where { font-size: 12.5px; line-height: 18px; color: var(--faint); overflow-wrap: anywhere; }
.gift__where b { font-weight: 700; color: var(--ink-2); }
.gift__region::before { content: "·"; margin: 0 5px 0 1px; color: var(--ghost); }
.gift__what { margin-top: 1px; font-size: 16px; line-height: 23px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); overflow-wrap: anywhere; }
.gift__need { margin-top: 2px; font-size: 13px; line-height: 19px; color: var(--mute); overflow-wrap: anywhere; }
.gift:target { padding-left: 12px; box-shadow: inset 3px 0 0 var(--kc), inset 0 -1px 0 var(--line-2); }
.gift .info__mark { top: 3px; }
.gift__go { margin-top: 3px; font-size: 13px; line-height: 19px; }      /* 근거의 주소로 바로 가는 링크(2026-11-21) */
.gift__go a { display: inline-flex; align-items: center; gap: 2px; padding: 3px 0; font-weight: 600; color: var(--blue); text-decoration: none; }
.gift__go .i { flex: none; width: 15px; height: 15px; }
.gifts--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gifts--cards > .gift { display: block; padding: 14px 14px 15px; border-radius: var(--r-3); background: var(--kc-soft); box-shadow: none; }
.gifts--cards > .gift:target { padding-left: 14px; box-shadow: inset 0 0 0 2px var(--kc); }
.gifts--cards .gift__art { width: 48px; height: 48px; margin: -2px 0 8px -3px; }
.gifts--cards .gift__where { color: var(--mute); }      /* 옅은 면 위에서는 faint 가 모자란다(대비 4.2) */
.gifts--cards .gift__region { display: block; }      /* 좁은 카드에서 '곳 · 지역'이 지역 한가운데에서 갈리지 않게 지역은 따로 한 줄 */
.gifts--cards .gift__region::before { content: none; }
.gifts--cards .gift__what { font-size: 15px; line-height: 21px; }
.gifts--cards .gift__need { margin-top: 4px; color: var(--ink-2); }
.gifts--cards .gift__go { margin-top: 5px; }
.gifts--cards .info__mark { top: 4px; right: 2px; color: var(--mute); }
.gifts--cards .gift > .info > .info__body { margin-right: 0; background: var(--card-note); color: var(--ink-2); }
.bempty__art { width: 56px; height: 56px; margin-bottom: 4px; }
.bnote { margin-top: 36px; font-size: 12.5px; line-height: 19px; color: var(--faint); }
.bnote a { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 560px) {
  .gifts--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .searchbox--gifts { margin-top: 0; }
}
@media (min-width: 1024px) {
  .gifts--cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .gifts:not(.gifts--cards) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; box-shadow: none; }
  .gifts:not(.gifts--cards) > .gift { box-shadow: inset 0 1px 0 var(--line-2); }
  .gifts:not(.gifts--cards) > .gift:target { box-shadow: inset 3px 0 0 var(--kc), inset 0 1px 0 var(--line-2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ───────── 첫 화면 (행사판, 2026-11-26) ─────────
   오너: "훨씬 더 가독성 좋고 이미지 많게 해서 확 보이게". 큰 카드 · 갈래별 오늘 판 · 분야 타일 · 생일 카드 · 알아둘 날 카드.
   카드는 그 분야(갈래)의 옅은 면에 오늘자가 그린 그림을 단다(.evrow 와 같은 결). 테두리·그림자·그라데이션은 없다. */
.hm-sec { margin-top: 40px; }
.hm-sec--first { margin-top: 18px; }
.hm-title { font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -.035em; }
.hm-sec .section__head { align-items: end; }

/* 큰 카드: 좁은 화면에서는 옆으로 넘기고, 넓은 화면에서는 세 칸 */
.hm-hero { display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.hm-hero::-webkit-scrollbar { display: none; }
.hm-card { scroll-snap-align: start; min-width: 0; }
.hm-card a { display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 0; padding: 12px 14px 14px; border-radius: var(--r-3); background: var(--sc-soft); color: var(--ink); text-decoration: none; }
.hm-card--soon a { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--sc-mid); }
.hm-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.hm-card__state { font-size: 16px; line-height: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--sc); }
.hm-card__state.is-today { color: var(--today); }
.hm-card__art { flex: none; width: 44px; height: 44px; }
.hm-card__merchant { font-size: 12.5px; line-height: 17px; font-weight: 600; color: var(--mute); }
.hm-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 17px; line-height: 23px; font-weight: 800; letter-spacing: -.035em; word-break: keep-all; }
.hm-card__when { display: flex; align-items: baseline; gap: 5px; margin-top: auto; padding-top: 6px; color: var(--sc); }
.hm-card__when .num { font-size: 22px; line-height: 1; font-weight: 700; letter-spacing: -.01em; }
.hm-card__when span { font-size: 13px; font-weight: 700; }
.hm-card__name .ko, .hm-row__name .ko { font-size: .82em; font-weight: 600; color: var(--mute); }

/* 오늘 판: 갈래마다 카드 한 장 */
.hm-today__head { margin-bottom: 12px; }
.hm-today { display: grid; gap: 10px; }
.hm-col { padding: 12px 14px 6px; border-radius: var(--r-3); background: var(--fill); }
.hm-col__head { font-size: 16px; line-height: 22px; font-weight: 800; letter-spacing: -.03em; }
.hm-col__head .num { margin-left: 3px; font-size: 15px; font-weight: 600; color: var(--mute); }
.hm-col ul { margin-top: 4px; }
.hm-row + .hm-row { border-top: 1px solid var(--line); }
.hm-row a { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 0; color: var(--ink); text-decoration: none; }
.hm-row__art { width: 28px; height: 28px; }
.hm-row__text { display: grid; min-width: 0; }
.hm-row__who { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--sc); }
.hm-row__name { font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: -.02em; word-break: keep-all; }
.hm-row__sum { font-size: 12.5px; line-height: 18px; color: var(--mute); }
.hm-col__more { display: inline-flex; align-items: center; gap: 1px; padding: 8px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--mute); text-decoration: none; }
.hm-col__more .i { width: 14px; height: 14px; }
.hm-sec .today__count { margin-top: 12px; }

/* 분야 타일 */
.hm-sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hm-sectors li { border-radius: var(--r-3); background: var(--sc-soft); }
.hm-sectors a { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 10px; min-height: 72px; padding: 12px; color: var(--ink); text-decoration: none; }
.hm-sectors__art { grid-row: 1 / 3; width: 48px; height: 48px; }
.hm-sectors b { align-self: end; font-size: 15px; line-height: 20px; font-weight: 800; letter-spacing: -.03em; word-break: keep-all; }
.hm-sectors a > span { align-self: start; font-size: 13px; line-height: 18px; color: var(--mute); }
.hm-sectors a > span .num { font-size: 14px; font-weight: 700; color: var(--sc); }

/* 생일 카드 */
.hm-gifts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hm-gifts li { border-radius: var(--r-3); background: var(--kc-soft); }
.hm-gifts a { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 14px; color: var(--ink); text-decoration: none; }
.hm-gifts__art { width: 52px; height: 52px; margin-bottom: 6px; }
.hm-gifts__place { font-size: 12.5px; line-height: 17px; font-weight: 700; color: var(--kc); }
.hm-gifts__gift { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15.5px; line-height: 22px; font-weight: 800; letter-spacing: -.03em; word-break: keep-all; }
.hm-gifts__need { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: auto; padding-top: 4px; font-size: 12.5px; line-height: 18px; color: var(--mute); word-break: keep-all; }

/* 다가오는 알아둘 날 */
.hm-dates { display: grid; gap: 8px; }
.hm-dates li { border-radius: var(--r-3); background: var(--sc-soft); }
.hm-dates a { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.hm-dates__art { width: 48px; height: 48px; }
.hm-dates__text { display: grid; min-width: 0; }
.hm-dates__who { font-size: 12.5px; line-height: 17px; font-weight: 700; color: var(--sc); }
.hm-dates__name { font-size: 15.5px; line-height: 22px; font-weight: 800; letter-spacing: -.03em; word-break: keep-all; }
.hm-dates__when { font-size: 13px; line-height: 19px; color: var(--mute); }

@media (min-width: 560px) {
  .hm-sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-gifts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .hm-sec { margin-top: 52px; }
  .hm-sec--first { margin-top: 24px; }
  .hm-title { font-size: 25px; }
  .hm-hero { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; gap: 12px; margin: 0; padding: 0; overflow: visible; }
  .hm-card a { padding: 14px 16px 16px; }
  .hm-card__art { width: 52px; height: 52px; }
  .hm-card__name { font-size: 18px; line-height: 25px; }
  .hm-card__when .num { font-size: 24px; }
  .hm-today { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
  .hm-sectors { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .hm-gifts { gap: 10px; }
}
@media (min-width: 1100px) {
  .hm-sectors { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hm-sectors a { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 4px; justify-items: start; min-height: 0; padding: 16px; }
  .hm-sectors__art { grid-row: auto; width: 56px; height: 56px; margin-bottom: 6px; }
  .hm-gifts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hm-dates { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-dates a { grid-template-columns: 1fr; align-items: start; gap: 8px; padding: 16px; }
}
@media (hover: hover) {
  .hm-card a:hover .hm-card__name, .hm-row a:hover .hm-row__name, .hm-sectors a:hover b, .hm-gifts a:hover .hm-gifts__gift, .hm-dates a:hover .hm-dates__name { text-decoration: underline; text-underline-offset: 3px; }
}

/* ── 행사별 기록의 회차 표 (2026-11-28: 목록을 실제 표로. 해마다 견주어 보는 사람과 표를 읽는 AI 모두에게) ── */
.evnow__basis { margin: -4px 0 18px; font-size: 13px; line-height: 19px; color: var(--mute); }
.evnow__basis a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rounds { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.rounds th { padding: 8px 10px 8px 0; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--mute); box-shadow: inset 0 -1px 0 var(--line-2); white-space: nowrap; }
.rounds td { padding: 12px 10px 12px 0; vertical-align: top; box-shadow: inset 0 -1px 0 var(--line-2); scroll-margin-top: calc(var(--gnb-h) + 16px); }
.rounds__span { font-weight: 600; color: var(--ink); white-space: nowrap; }
.rounds__state { margin-left: 4px; font-size: 12.5px; font-weight: 600; color: var(--blue); }
.rounds__len, .rounds__gap { color: var(--mute); white-space: nowrap; }
.rounds__basis { font-size: 12.5px; line-height: 18px; color: var(--mute); }
.rounds__basis a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 599px) {
  .rounds thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rounds, .rounds tbody { display: block; }
  .rounds tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--line-2); }
  .rounds td { display: block; padding: 0; box-shadow: none; }
  .rounds__name { flex-basis: 100%; font-weight: 600; color: var(--ink-2); }
  .rounds__basis { flex-basis: 100%; }
}
