/* ═══════════════════════════════════════════════════════
   CSS_CALENDAR.CSS — Shared Calendar Components
   Dùng cho: /nam-YYYY/thang-M/ · /nam-YYYY/ · trang lịch
   ═══════════════════════════════════════════════════════ */

/* ── NAV TEMPORAL (prev / today / next month) ── */
.nav-temporal {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 8px 12px; box-shadow: var(--sh-sm);
}
.nt-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
  background: var(--c-primary-lt); color: var(--c-primary-dk);
  text-decoration: none; transition: all .15s;
}
.nt-btn:hover { background: var(--c-primary); color: #fff; }
.nt-btn.today { background: var(--c-gold-lt, #fff8ec); color: var(--c-gold, #e09c1a); }
.nt-btn.today:hover { background: var(--c-gold, #e09c1a); color: #fff; }

/* ── MONTH HERO ── */
.cal-month-hero {
  background: linear-gradient(135deg, var(--c-primary-dk) 0%, var(--c-primary) 100%);
  color: #fff; border-radius: var(--r-lg); padding: 24px 26px;
}
.cmh-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cmh-h1 { font-size: clamp(19px, 3vw, 26px); font-weight: 900; margin: 0 0 5px; line-height: 1.3; }
.cmh-lunar { font-size: 13.5px; opacity: .9; margin-bottom: 10px; }
.cmh-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.cmh-badge {
  padding: 4px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 700;
}
.cmh-badge-white { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); color: #fff; }
.cmh-badge-gold  { background: rgba(224,156,26,.32); border: 1px solid rgba(224,156,26,.48); color: #ffe8a0; }
.cmh-stats { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.cmh-stat {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-md); padding: 10px 16px; text-align: center; min-width: 72px;
}
.cmh-stat .val { font-size: 22px; font-weight: 900; line-height: 1; }
.cmh-stat .lbl { font-size: 11px; opacity: .8; margin-top: 2px; }

/* ── CALENDAR WRAPPER (chứa printSelectedMonth) ── */
.cal-wrap {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm);
}

/* Hide legacy header (old prev/next nav + select dropdowns) */
.cal-wrap .head-div { display: none !important; }

/* Day-of-week header row — core renders T2,T3,T4,T5,T6,T7,CN */
.cal-wrap .div-row.div-day-of-week {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr);
  background: var(--c-primary-dk);
  gap: 0;
}
.cal-wrap .div-col.day-of-week {
  padding: 10px 4px; text-align: center;
  color: #fff; font-size: 12px; font-weight: 700;
}
/* T7 = col 6 (second-to-last) → xanh */
.cal-wrap .div-col.day-of-week:nth-child(6) { color: #aaccff; }
/* CN = col 7 (last) → đỏ */
.cal-wrap .div-col.day-of-week:last-child { color: #ffaaaa; }

/* Data rows */
.cal-wrap .list-cell-date {
  border-top: 1px solid var(--c-border);
}
.cal-wrap .div-row.clearfix {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--c-border);
}
/* Bootstrap clearfix ::before/::after trở thành grid item → ẩn đi */
.cal-wrap .div-row.clearfix::before,
.cal-wrap .div-row.clearfix::after {
  display: none !important;
}

/* Each day cell — flex column để dùng order reordering */
.cal-wrap .div-col.div-date {
  background: var(--c-surface);
  padding: 8px 7px; min-height: 72px;
  cursor: pointer; transition: background .15s;
  position: relative;
  display: flex !important; flex-direction: column;
  text-decoration: none; color: var(--c-text);
  border-top: none; border-bottom: none;
  border-left: none; border-right: 1px solid var(--c-border);
}
.cal-wrap .div-col.div-date:hover { background: #f0fdf7; }

/* Today */
.cal-wrap .div-col.div-date.current-date {
  background: var(--c-primary-lt) !important;
  outline: 2px solid var(--c-primary);
  outline-offset: -2px;
}

/* Empty cells (padding prev/next month) */
.cal-wrap .div-col:not(.div-date):not(.day-of-week) {
  background: var(--c-surface); opacity: .38; min-height: 72px; display: block;
  border-right: 1px solid var(--c-border);
}

/* Solar date — order 1 */
.cal-wrap .t2t6, .cal-wrap .cn, .cal-wrap .t7 {
  font-size: 16px; font-weight: 700; line-height: 1;
  order: 1;
}
.cal-wrap .cn { color: #c0392b; }
.cal-wrap .t7 { color: #2980b9; }

/* Lunar date — order 2 */
.cal-wrap .div-lunar-date {
  font-size: 10px; color: var(--c-muted); margin-top: 2px; display: block;
  order: 2;
}
.cal-wrap .div-lunar-date.red { color: var(--c-gold, #e09c1a); font-weight: 700; }

/* Can Chi — order 3 */
.cal-wrap .div-can-chi {
  font-size: 10px; color: var(--c-text2); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  order: 3;
}

/* Holidays / events từ core (âm lịch) — order 4 */
.cal-wrap .event-holiday {
  font-size: 9px; color: #c0392b; font-weight: 600;
  line-height: 1.2; margin-top: 1px; display: block;
  order: 4;
}

/* Toggle button ngày lễ */
.cal-toggle-evt {
  margin-left: auto; padding: 4px 10px;
  border: 1px solid var(--c-border); border-radius: var(--r-full, 9999px);
  background: var(--c-surface); color: var(--c-text2);
  font-size: 11px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: all .15s;
}
.cal-toggle-evt:hover { background: var(--c-primary-lt); color: var(--c-primary-dk); border-color: var(--c-primary); }
.cal-toggle-evt.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* Sự kiện/lễ inject từ API — order 5 */
.cal-wrap .cal-events {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 2px; order: 5;
}
.cal-wrap .cal-evt {
  font-size: 9px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 1px 3px; border-radius: 2px;
  background: var(--c-primary-lt); color: var(--c-primary-dk);
}
/* Ngày nghỉ lễ → đỏ nổi bật hơn */
.cal-wrap .cal-evt.cal-evt-off {
  background: #fff0ea; color: var(--c-red, #e05c2c);
}

/* Status badge — absolute, không tham gia flex order */
.cal-wrap .div-d-status {
  position: absolute; bottom: 4px; right: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0; line-height: 1;
}
/* Hoàng Đạo → ⭐ vàng (ẩn text ✓, hiện icon qua ::before) */
.cal-wrap .div-d-status.good {
  background: var(--c-gold-lt, #fff8ec);
}
.cal-wrap .div-d-status.good::before {
  content: '⭐'; font-size: 10px;
}
/* Ngày xấu → ✗ đỏ */
.cal-wrap .div-d-status.bad {
  background: #fff0f0; color: #c0392b; font-size: 9px;
}

/* ── CALENDAR LEGEND ── */
.cal-legend {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 12px 16px; background: var(--c-bg);
  border-top: 1px solid var(--c-border);
}
.cal-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--c-text2); }
.cal-legend-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── NGÀY TỐT LIST (ntl) ── */
.ntl { list-style: none; padding: 0; margin: 0; }
.ntl-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--c-border);
}
.ntl-item:last-child { border-bottom: none; padding-bottom: 0; }
.ntl-num {
  min-width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; flex-shrink: 0;
  background: var(--c-primary-lt); color: var(--c-primary-dk);
}
.ntl-num.best { background: var(--c-gold-lt, #fff8ec); color: var(--c-gold, #e09c1a); }
.ntl-num.bad  { background: #fff0f0; color: #c0392b; }
.ntl-info .day-name  { font-weight: 700; font-size: 14px; line-height: 1.4; }
.ntl-info .day-lunar { font-size: 12px; color: var(--c-muted); }
.ntl-info .day-act   { font-size: 12px; color: var(--c-text2); margin-top: 2px; }
.ntl-badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--r-full);
  font-size: 10px; font-weight: 700; margin-left: 6px;
}
.ntl-badge.hd  { background: #e6f9f0; color: var(--c-primary-dk); }
.ntl-badge.dep { background: var(--c-primary-lt); color: var(--c-primary); }
.ntl-badge.xau { background: #fff0f0; color: #c0392b; }

/* ── LINK NAV MONTH (temporal nav card) ── */
.lnm-wrap {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  background: var(--c-primary-lt); border-radius: var(--r-md); padding: 14px;
}
.lnm-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
  background: var(--c-surface); color: var(--c-text);
  border: 1px solid var(--c-border); text-decoration: none;
  transition: all .15s;
}
.lnm-btn:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.lnm-btn.hier  { background: var(--c-gold-lt, #fff8ec); color: var(--c-gold, #e09c1a); border-color: var(--c-gold, #e09c1a); }
.lnm-btn.hier:hover { background: var(--c-gold, #e09c1a); color: #fff; }

/* ── MONTHS GRID ── */
.month-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.m-link {
  display: block; padding: 7px; text-align: center;
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  font-size: 12px; color: var(--c-text2); text-decoration: none;
  transition: all .15s;
}
.m-link:hover, .m-link.cur {
  background: var(--c-primary); color: #fff; border-color: var(--c-primary);
}

/* ── RELATED LINKS LIST (rel-list) ── */
.rel-list { list-style: none; padding: 0; margin: 0; }
.rel-list li { border-bottom: 1px solid var(--c-border); }
.rel-list li:last-child { border-bottom: none; }
.rel-list a {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; font-size: 13.5px; color: var(--c-text);
  text-decoration: none; transition: color .15s;
}
.rel-list a:hover { color: var(--c-primary); }
.rel-arrow { color: var(--c-primary); flex-shrink: 0; margin-top: 1px; }
.rel-meta  { font-size: 11px; color: var(--c-muted); display: block; margin-top: 2px; }

/* ── SIDEBAR DAY PILL (best days widget) ── */
.cal-day-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--r-sm);
  text-decoration: none; font-size: 12.5px; transition: opacity .15s;
  background: var(--c-primary-lt); color: var(--c-primary-dk);
}
.cal-day-pill:hover { opacity: .82; }
.cal-day-pill.gold { background: var(--c-gold-lt, #fff8ec); color: var(--c-gold, #e09c1a); }
.cal-day-pill-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.cal-day-pill.gold .cal-day-pill-num { background: var(--c-gold, #e09c1a); }

/* ── CARD SECTION HEADER ── */
.cal-sec-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.cal-sec-ico {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--c-primary-lt); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.cal-sec-head h2, .cal-sec-head h3 { font-size: 16px; font-weight: 700; margin: 0; }

/* ── CARD ── */
.cal-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-sm);
}

/* ── FAQ ── */
.cal-faq { border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); }
.cal-faq details { border-bottom: 1px solid var(--c-border); }
.cal-faq details:last-child { border-bottom: none; }
.cal-faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 13px 16px; cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 600; color: var(--c-text);
  transition: background .12s; user-select: none;
}
.cal-faq summary::-webkit-details-marker { display: none; }
.cal-faq summary::after { content: '▾'; color: var(--c-primary); font-size: 13px; margin-top: 2px; flex-shrink: 0; transition: transform .2s; }
.cal-faq details[open] summary { background: var(--c-primary-lt); color: var(--c-primary-dk); }
.cal-faq details[open] summary::after { transform: rotate(180deg); }
.cal-faq summary:hover { background: var(--c-bg); }
.cal-faq .faq-body { padding: 0 16px 13px; font-size: 13px; color: var(--c-text2); line-height: 1.8; border-top: 1px solid var(--c-border); }
.cal-faq .faq-body p { margin: 8px 0 0; }

/* ── TAG LIST (mục đích) ── */
.cal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-tag {
  display: inline-block; padding: 5px 12px;
  background: var(--c-primary-lt); color: var(--c-primary-dk);
  border-radius: var(--r-full); font-size: 12px; font-weight: 600;
  text-decoration: none; border: 1px solid rgba(7,102,68,.18);
  transition: background .15s, color .15s;
}
.cal-tag:hover { background: var(--c-primary); color: #fff; }

/* ══════════════════════════════════════════
   YEAR PAGE — /nam-YYYY/
   ══════════════════════════════════════════ */

/* ── YEAR HERO ── */
.year-hero {
  background: linear-gradient(135deg, var(--c-primary-dk) 0%, #0a9e68 50%, var(--c-gold) 100%);
  color: #fff; border-radius: var(--r-xl); padding: 32px;
  position: relative; overflow: hidden;
}
.year-hero::before {
  content: attr(data-year); position: absolute; right: -20px; top: -20px;
  font-size: 160px; font-weight: 900; opacity: .06; line-height: 1; pointer-events: none;
}
.yh-inner { position: relative; }
.yh-tag { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; opacity: .75; margin-bottom: 8px; }
.yh-year { font-size: 52px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.yh-name { font-size: 20px; font-weight: 700; opacity: .95; margin: 0 0 8px; line-height: 1.3; }
.yh-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.badge { padding: 4px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; }
.b-w { background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.25); }
.b-g { background: rgba(224,156,26,.35); border: 1px solid rgba(224,156,26,.5); color: #ffe8a0; }
.yh-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.yh-stat { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-md); padding: 10px 18px; text-align: center; }
.yh-stat .val { font-size: 22px; font-weight: 900; }
.yh-stat .lbl { font-size: 11px; opacity: .8; }

/* ── YEAR INFO GRID ── */
.year-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.yic { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 16px; box-shadow: var(--sh-sm); }
.yic-icon { width: 36px; height: 36px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 8px; }
.yic-icon.g  { background: var(--c-primary-lt); }
.yic-icon.go { background: var(--c-gold-lt); }
.yic-icon.b  { background: #e8f4fd; }
.yic-icon.p  { background: #f3e8fd; }
.yic-label { font-size: 11px; color: var(--c-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.yic-val { font-size: 16px; font-weight: 700; }
.yic-val.g  { color: var(--c-primary-dk); }
.yic-val.go { color: var(--c-gold); }
.yic-sub { font-size: 12px; color: var(--c-text2); margin-top: 2px; }

/* ── CARD BASE (shared) ── */
.card { background: var(--c-surface); border-radius: var(--r-lg); border: 1px solid var(--c-border); padding: 20px; box-shadow: var(--sh-sm); }
.sec-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sec-title h2, .sec-title h3 { font-size: 16px; font-weight: 700; margin: 0; }
.ti { width: 32px; height: 32px; background: var(--c-primary-lt); color: var(--c-primary); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.see-all { margin-left: auto; font-size: 12px; color: var(--c-primary); font-weight: 600; text-decoration: none; }
.see-all:hover { color: var(--c-primary-dk); }

/* ── MONTH CARDS ── */
.month-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mc {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: 14px; box-shadow: var(--sh-sm);
  transition: box-shadow .2s, transform .2s;
  display: block; color: var(--c-text); text-decoration: none;
}
.mc:hover { box-shadow: var(--sh-md); transform: translateY(-2px); color: var(--c-primary); }
.mc.current { border-color: var(--c-primary); border-width: 2px; background: var(--c-primary-lt); }
.mc-num  { font-size: 11px; color: var(--c-muted); font-weight: 600; margin-bottom: 4px; }
.mc-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.mc-lunar { font-size: 11px; color: var(--c-text2); }
.mc-badges { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.mc-badge { padding: 2px 7px; border-radius: var(--r-full); font-size: 10px; font-weight: 600; }
.mc-badge.hd  { background: #e6f9f0; color: var(--c-primary-dk); }
.mc-badge.le  { background: var(--c-red-lt); color: var(--c-red); }
.mc-badge.tk  { background: var(--c-gold-lt); color: var(--c-gold); }
.mc-badge.cur { background: var(--c-primary); color: #fff; }

/* ── TIET KHI GRID ── */
.tk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tk-item {
  background: var(--c-primary-lt); border-radius: var(--r-md);
  padding: 10px; text-align: center;
  display: block; color: var(--c-primary-dk); text-decoration: none;
  transition: background .15s;
}
.tk-item:hover { background: var(--c-primary); color: #fff; }
.tk-name { font-size: 12px; font-weight: 700; }
.tk-date { font-size: 11px; opacity: .8; margin-top: 2px; }

/* ── LE TET LIST ── */
.le-list { list-style: none; margin: 0; padding: 0; }
.le-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.le-item:last-child { border-bottom: none; }
.le-date { min-width: 52px; padding: 8px 6px; background: var(--c-primary-lt); border-radius: var(--r-md); text-align: center; flex-shrink: 0; }
.le-date .d { font-size: 18px; font-weight: 800; color: var(--c-primary-dk); line-height: 1; }
.le-date .m { font-size: 11px; color: var(--c-muted); }
.le-info .name { font-weight: 700; font-size: 14px; }
.le-info .lunar { font-size: 12px; color: var(--c-muted); }
.le-info .desc  { font-size: 12px; color: var(--c-text2); margin-top: 2px; }
.le-badge { display: inline-block; padding: 2px 8px; border-radius: var(--r-full); font-size: 10px; font-weight: 700; margin-left: 6px; }
.le-badge.nghl      { background: #e8f4fd; color: #2980b9; }
.le-badge.tradthuong{ background: var(--c-primary-lt); color: var(--c-primary-dk); }

/* ── INTERNAL LINKS / YEARS NAV ── */
.link-nav-year { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; background: var(--c-primary-lt); border-radius: var(--r-md); padding: 14px; }
.lny-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border); transition: all .15s; text-decoration: none; }
.lny-btn:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.lny-btn.gold { background: var(--c-gold-lt); color: var(--c-gold); border-color: var(--c-gold); }
.lny-btn.gold:hover { background: var(--c-gold); color: #fff; }

/* ── RELATED LINKS ── */
.rel-list { list-style: none; margin: 0; padding: 0; }
.rel-list li { border-bottom: 1px solid var(--c-border); }
.rel-list li:last-child { border-bottom: none; }
.rel-list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 14px; color: var(--c-text); text-decoration: none; transition: color .15s; }
.rel-list a:hover { color: var(--c-primary); }
.rel-arrow { color: var(--c-primary); flex-shrink: 0; }
.rel-meta { font-size: 11px; color: var(--c-muted); display: block; }

/* ── YEARS GRID ── */
.years-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.y-link { display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px; border: 1px solid var(--c-border); border-radius: var(--r-full); font-size: 13px; font-weight: 600; color: var(--c-text2); transition: all .15s; text-decoration: none; }
.y-link:hover, .y-link.cur { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ── SIDEBAR WIDGET (year page) ── */
.sw { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.wt { background: var(--c-primary); color: #fff; padding: 10px 16px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.wb { padding: 16px; }
.ux-tag { display: inline-block; padding: 4px 10px; background: var(--c-primary-lt); color: var(--c-primary-dk); border-radius: var(--r-full); font-size: 12px; font-weight: 500; transition: background .15s; text-decoration: none; }
.ux-tag:hover { background: var(--c-primary); color: #fff; }
.form-input { width: 100%; padding: 8px 12px; border: 1px solid var(--c-border); border-radius: var(--r-sm); font-size: 13px; background: var(--c-bg); box-sizing: border-box; margin-bottom: 6px; }
.btn-pri { background: var(--c-primary); color: #fff; border: none; padding: 10px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; cursor: pointer; width: 100%; }
.btn-pri:hover { background: var(--c-primary-dk); }

/* ── YEAR PAGE BODY LAYOUT ── */
.year-body { padding: 24px 0 48px; }
.year-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.year-main { display: flex; flex-direction: column; gap: 16px; }
.year-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }

/* ── RESPONSIVE YEAR PAGE ── */
@media (max-width: 1024px) {
  .year-layout { grid-template-columns: 1fr; }
  .year-sidebar { position: static; }
  .year-info-grid { grid-template-columns: repeat(2, 1fr); }
  .month-cards { grid-template-columns: repeat(2, 1fr); }
  .tk-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .year-info-grid { grid-template-columns: 1fr; }
  .month-cards { grid-template-columns: repeat(2, 1fr); }
  .tk-grid { grid-template-columns: repeat(2, 1fr); }
  .yh-year { font-size: 42px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .cal-wrap .div-col.div-date { min-height: 56px; padding: 5px 4px; }
  .cmh-stats { gap: 8px; }
  .cmh-stat  { padding: 8px 12px; }
  .month-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .cal-wrap .t2t6, .cal-wrap .cn, .cal-wrap .t7 { font-size: 13px; }
  .cal-wrap .div-col.div-date { min-height: 46px; padding: 4px 3px; }
  .nav-temporal { flex-direction: column; gap: 6px; align-items: stretch; }
  .nt-btn { justify-content: center; }
}
