@font-face {
  font-family: "FRXY-Thin";
  src: url("assets/fonts/fontthin.subset.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "FRXY-Title";
  src: url("assets/fonts/fonttitle02.subset.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-soft: #f6f3f1;
  --text: #202122;
  --muted: #54595d;
  --line: #c8ccd1;
  --line-soft: #eaecf0;
  --orange: #f48f3e;
  --orange-dark: #e67e22;
  --blue: #36c;
  --blue-dark: #2a4b8d;
  --green: #14866d;
  --purple: #6f42c1;
  --red: #b32424;
  --gold: #b8860b;
  --gray: #72777d;
  --shadow: 0 4px 15px rgba(0, 0, 0, .08);
  --shadow-strong: 0 10px 30px rgba(0, 0, 0, .14);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "FRXY-Thin", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, .brand-text, .brand-mark,
.section-kicker, .cal-title, .month-title, .modal-name,
.card-date, .card-birthday, .card-anni,
.hero-chip, .name-pill, .cal-name, .day-detail-head strong {
  font-family: "FRXY-Title", "FRXY-Thin", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  padding: .1em .35em;
  background: #eef1f5;
  border-radius: 4px;
  font-size: .9em;
  font-family: Consolas, monospace;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #36c, #7a4bd6);
  box-shadow: 0 3px 9px rgba(51, 102, 204, .3);
}
.brand-text { font-weight: 700; font-size: 16px; line-height: 1.2; }
.brand-text small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; margin-top: 2px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 14px;
}
.site-nav a:hover { background: #eef1f5; text-decoration: none; }
.site-nav a.active { color: var(--blue-dark); background: #e8f0ff; font-weight: 600; }

/* ---------- page ---------- */
.page { max-width: 1220px; margin: 0 auto; padding: 22px 24px 60px; }
.hero { margin-bottom: 26px; }
.hero-banner-link { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.hero-banner { display: block; width: 100%; height: auto; }
.hero-text { padding: 18px 4px 0; }
.hero-kicker, .section-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--orange-dark);
}
.hero h1 { margin: 5px 0 8px; font-size: clamp(25px, 4vw, 38px); line-height: 1.25; letter-spacing: -.02em; }
.hero h1 .amp { color: var(--orange); font-size: .7em; margin-left: 4px; }
.hero p { margin: 3px 0; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- old wiki birthday card ---------- */
.top-panels {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: stretch;
  margin: 20px 0 36px;
}
.home-birthday-card {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5em;
  background: var(--surface-soft);
  border: 5px solid var(--orange);
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  font-family: "FRXY-Thin", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.home-birthday-card .card-date { font-size: 1.2em; color: #2f3c4f; margin-bottom: .3em; }
.home-birthday-card .card-anni { font-size: 1.1em; color: var(--orange-dark); margin: .5em 0; }
.home-birthday-card .card-anni.is-today { font-size: 1.6em; color: #d35400; }
.home-birthday-card .card-birthday { font-size: 1.3em; color: #2f3c4f; margin: .5em 0; }
.home-birthday-card .card-birthday.is-today { font-size: 1.6em; font-weight: 700; color: #f67883; margin: .5em 0 0; }
.home-birthday-card strong { font-weight: 800; }
.home-birthday-card .card-foot { color: var(--gray); font-size: .8em; margin-top: .9em; }
.wiki-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
}
.note-title { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.wiki-note p { margin: 8px 0; color: var(--muted); font-size: 13.5px; }
.wiki-note code { font-size: .86em; }
.note-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stat-pill {
  padding: 5px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #f8f9fa;
  font-size: 12px;
  color: var(--muted);
}
.stat-pill b { color: var(--text); }

/* ---------- calendar section ---------- */
.calendar-section { margin-top: 34px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.section-head h2 { margin: 2px 0 4px; font-size: 25px; line-height: 1.2; }
.section-desc { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 700px; }
.calendar-controls { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.month-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.month-step {
  padding: 5px 8px;
  line-height: 1;
  font-size: 17px;
  border: 0;
  background: transparent;
}
.month-step:hover { background: #f1f3f5; }
.month-select {
  min-width: 88px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 7px 10px;
  min-width: 220px;
}
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51, 102, 204, .12); }
.search-box span { font-size: 13px; }
.search-box input { border: 0; outline: 0; background: transparent; width: 100%; font: inherit; font-size: 13.5px; color: var(--text); }
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 8px 13px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.btn:hover { background: #f1f3f5; border-color: #a2a9b1; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 16px; color: var(--muted); font-size: 12.5px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-ren { background: #3b82f6; }
.dot-yao { background: #16a34a; }
.dot-xian { background: #8b5cf6; }
.dot-gui { background: #dc2626; }
.dot-other { background: #9ca3af; }
.dot-solar { background: #3b82f6; }
.dot-lunar { background: #f59e0b; }
.dot-collab { background: #7c3aed; }
.legend-note { color: var(--gray); font-size: 11.5px; }
.fallback-mark { color: #b45309; font-weight: 800; letter-spacing: 1px; }
.search-summary { margin-left: auto; color: var(--blue-dark); font-weight: 600; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.calendar-grid.is-single {
  display: block;
  max-width: 820px;
  margin: 0 auto;
}
.calendar-grid.is-single .month-card { width: 100%; }
.calendar-grid.is-single .day-cell { min-height: 64px; }
.cal-month {
  max-width: 660px;
  margin: 0 auto;
  padding: 10px 14px 14px;
}
.cal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 2px 11px;
}
.cal-arrow {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 26px/1 sans-serif;
  cursor: pointer;
}
.cal-arrow:hover { background: #f1f3f5; color: var(--text); }
.cal-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text);
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 0 2px 6px;
}
.cal-weekdays span {
  text-align: center;
  color: var(--gray);
  font-size: 11px;
}
.cal-weekdays span:last-child { color: #9a5a17; }
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 66px;
  padding: 5px 2px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.cal-day:hover { background: #f6f8fa; }
.cal-day.is-blank { visibility: hidden; pointer-events: none; }
.cal-day.has-birthday { background: #fff8f0; border-color: #f8dfc7; font-weight: 700; }
.cal-day.is-today { background: #fff3bf; border-color: #e8b800; color: var(--orange-dark); }
.cal-day.is-selected {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 5px 14px rgba(244, 143, 62, .28);
}
.cal-day.is-selected:hover { background: var(--orange-dark); }
.cal-day-num { width: 100%; text-align: center; font-size: 14px; line-height: 1.05; }
.cal-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 100%;
  overflow: hidden;
}
.cal-name {
  display: inline-block;
  width: auto;
  max-width: 100%;
  padding: 0 1px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  font: inherit;
  font-size: 9.5px;
  line-height: 1.28;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.cal-name:hover { text-decoration: underline; }
.cal-name.is-solar { color: #2f5f9e; }
.cal-name.is-lunar { color: #9a5a17; }
.cal-name.is-fallback { color: #b45309; border-bottom: 1px dotted #f59e0b; }
.cal-name.is-collab { color: #6d28d9; font-weight: 700; }
.cal-day.is-selected .cal-name { color: #fff; border-bottom-color: rgba(255,255,255,.7); }
.calendar-day-detail {
  max-width: 660px;
  margin: 12px auto 0;
  padding: 11px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.day-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 14px;
}
.day-detail-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 20px/1 sans-serif;
  cursor: pointer;
  padding: 0 3px;
}
.day-detail-list { display: flex; flex-wrap: wrap; gap: 6px; }
.day-detail-list .hero-chip {
  width: auto;
  max-width: 100%;
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid transparent;
}
.month-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 7px rgba(0, 0, 0, .035);
  overflow: hidden;
}
.month-card.is-current { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(244, 143, 62, .18), var(--shadow); }
.month-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 13px 9px;
  background: #fbfcfd;
  border-bottom: 1px solid var(--line-soft);
}
.month-title { font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.month-title span { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 5px; }
.month-count { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.week-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 7px 8px 2px;
}
.week-row span { text-align: center; color: var(--gray); font-size: 10px; }
.week-row span:first-child, .week-row span:last-child { color: #b46a6a; }
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 3px 8px 10px;
  gap: 2px;
}
.day-cell {
  min-height: 48px;
  border-radius: 6px;
  padding: 3px 3px 4px;
  border: 1px solid transparent;
}
.day-cell.has-birthday { background: #fff8f0; border-color: #f8dfc7; }
.day-cell.is-today { background: #fff3bf; border-color: #e8b800; }
.day-cell.is-blank { background: transparent; }
.day-num { display: block; font-size: 10.5px; color: #8a8f98; line-height: 1.4; }
.day-cell.has-birthday .day-num { color: #9a5a17; font-weight: 700; }
.hero-chip {
  display: block;
  width: 100%;
  margin: 2px 0 0;
  padding: 1px 4px;
  border: 0;
  border-radius: 3px;
  font: inherit;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1f2937;
  background: #e8eef8;
}
.hero-chip:hover { filter: brightness(.95); text-decoration: underline; }
.hero-chip.is-solar { background: #e8eef8; }
.hero-chip.is-lunar { background: #fff7e6; color: #8a5a00; box-shadow: inset 0 -2px 0 #f59e0b; }
.hero-chip.is-fallback { background: #fff; color: #8a5a00; border: 1px dashed #f59e0b; }
.hero-chip.is-collab { box-shadow: inset 3px 0 0 #7c3aed; }
.hero-chip.is-collab.is-lunar { box-shadow: inset 3px 0 0 #7c3aed, inset 0 -2px 0 #f59e0b; }
.hero-chip.is-match { outline: 2px solid var(--blue); outline-offset: 1px; }
.month-card.filtered-empty { display: none; }
.empty-search {
  margin: 20px 0;
  padding: 30px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}

/* ---------- lists ---------- */
.list-section { margin-top: 38px; }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.list-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .03);
}
.list-card h3 { margin: 0 0 10px; font-size: 16px; }
.name-list { display: flex; flex-wrap: wrap; gap: 6px; }
.name-pill {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #f8f9fa;
  color: #374151;
  padding: 3px 9px;
  font-size: 12px;
  cursor: pointer;
}
.name-pill:hover { border-color: var(--orange); color: var(--orange-dark); }
.name-pill .bd { color: var(--muted); font-size: 10.5px; margin-left: 3px; }
.empty-note { color: var(--gray); font-size: 12.5px; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--gray);
  font-size: 11.5px;
}
.site-footer p { margin: 4px 0; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
  padding: 22px 24px;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  color: var(--gray);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.modal-close:hover { background: #f1f3f5; color: var(--text); }
.modal-kicker { color: var(--orange-dark); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.modal-name { margin: 2px 0 2px; font-size: 26px; }
.modal-sub { color: var(--muted); margin: 0 0 14px; font-size: 13px; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.meta-pill { padding: 4px 9px; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: 12px; }
.modal-section { margin-top: 12px; }
.modal-label { color: var(--gray); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.modal-text { font-size: 13.5px; color: #374151; white-space: pre-line; }

@media (max-width: 980px) {
  .top-panels { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .header-inner { padding: 9px 14px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .site-nav { width: 100%; overflow-x: auto; }
  .page { padding: 16px 14px 42px; }
  .hero-text { padding-top: 14px; }
  .calendar-grid { grid-template-columns: 1fr; }
  .two-lists { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
  .calendar-controls { width: 100%; }
  .search-box { flex: 1; min-width: 0; }
  .day-cell { min-height: 52px; }
  .hero-chip { font-size: 10px; }
  .search-summary { width: 100%; margin-left: 0; }
}

/* -------------------------------------------------------------------------
   仅日历使用非人学园界面配色；网站其余部分保持原配色
   ------------------------------------------------------------------------- */
.calendar-section .search-box {
  background: #ffffff;
  border-color: #b7dbea;
  box-shadow: none;
}
.calendar-section .search-box:focus-within {
  border-color: #6bc4e0;
  box-shadow: 0 0 0 3px rgba(64, 165, 205, .12);
}
.calendar-section .search-box input { color: #1d405b; }
.calendar-section .search-box input::placeholder { color: #8aa8ba; }
#todayJump {
  border: 1px solid #9de5d9;
  background: linear-gradient(180deg, #79d9cc, #43b8aa);
  color: #fff;
  font-weight: 700;
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 0 4px 13px rgba(67, 184, 170, .25);
}
#todayJump:hover { background: linear-gradient(180deg, #95e7dc, #50c8b9); border-color: #b7f3e9; }

.calendar-section .month-card {
  overflow: visible;
  background: #fff;
  border: 1px solid #b7d9e9;
  border-radius: 10px;
  box-shadow: 0 7px 22px rgba(49, 108, 140, .13);
}
.calendar-section .month-card.is-current {
  border-color: #9fd6e8;
  box-shadow: 0 0 0 2px rgba(159, 214, 232, .2), 0 8px 24px rgba(49, 108, 140, .15);
}
.calendar-section .cal-top {
  margin: -10px -14px 10px;
  padding: 10px 14px;
  background: #1b2a39;
  border-bottom: 1px solid #30485d;
  border-radius: 9px 9px 0 0;
}
.calendar-section .cal-title { color: #f2f9ff; }
.calendar-section .cal-arrow { color: #bcd6e7; }
.calendar-section .cal-arrow:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.calendar-section .cal-weekdays span { color: #68889b; }
.calendar-section .cal-weekdays span:last-child { color: #d84968; }
.calendar-section .cal-day {
  background: #fbfeff;
  border-color: #d5e8f2;
  color: #21465f;
  transition: transform .15s ease, box-shadow .15s ease;
}
.calendar-section .cal-day:hover { background: #eaf8ff; }
.calendar-section .cal-day.has-birthday { background: #e8f7fe; border-color: #9fd9ea; }
.calendar-section .cal-day.is-today { background: #fff5c9; border-color: #e4b93e; color: #795500; }
.calendar-section .cal-day.is-selected {
  z-index: 2;
  transform: scale(1.09);
  background: #e24f70;
  border-color: #e24f70;
  color: #fff;
  box-shadow: 0 8px 18px rgba(213, 55, 94, .24);
}
.calendar-section .cal-day.is-selected:hover { background: #d94364; }
.calendar-section .cal-name.is-solar { color: #2568ae; --cal-stroke: #14508c; }
.calendar-section .cal-name.is-lunar { color: #a24f00; --cal-stroke: #713700; }
.calendar-section .cal-name.is-fallback { color: #ad5300; --cal-stroke: #713700; border-bottom-color: #e6a12c; }
.calendar-section .cal-name.is-collab { color: #7435b7; --cal-stroke: #431a78; }
.calendar-section .cal-day.is-selected .cal-day-num {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}
.calendar-section .cal-day.is-selected .cal-name {
  border-bottom-color: rgba(255, 255, 255, .8);
  text-shadow:
    -1px -1px 0 #fff, 0 -1px 0 #fff, 1px -1px 0 #fff,
    -1px 0 0 #fff, 1px 0 0 #fff,
    -1px 1px 0 #fff, 0 1px 0 #fff, 1px 1px 0 #fff;
}
.calendar-section .calendar-day-detail {
  background: linear-gradient(160deg, #fff, #edf8ff);
  border: 1px solid #b7d9e9;
  box-shadow: 0 8px 22px rgba(49, 108, 140, .12);
}
.calendar-section .day-detail-head strong { color: #184363; }
.calendar-section .day-detail-close { color: #55798e; }
.calendar-section .day-detail-list .hero-chip { color: #1c405b; }

@media (max-width: 980px) {
  .top-panels { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .header-inner { padding: 9px 14px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .site-nav { width: 100%; overflow-x: auto; }
  .page { padding: 16px 14px 42px; }
  .hero-text { padding-top: 14px; }
  .calendar-grid { grid-template-columns: 1fr; }
  .two-lists { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
  .calendar-controls { width: 100%; }
  .search-box { flex: 1; min-width: 0; }
  .day-cell { min-height: 52px; }
  .hero-chip { font-size: 10px; }
  .search-summary { width: 100%; margin-left: 0; }
}

/* calendar exact palette: sharp corners, #1a222b title, #f5f5f5 empty, #d0e0ef birthday, #e04c6e selected */
.calendar-section .month-card,
.calendar-section .cal-top,
.calendar-section .cal-day,
.calendar-section .cal-arrow,
.calendar-section .search-box,
.calendar-section .calendar-day-detail,
.calendar-section .cal-name,
.calendar-section .day-detail-list .hero-chip {
  border-radius: 0;
}
.calendar-section .cal-top {
  background: #1a222b;
  border-bottom: 1px solid #35414c;
}
.calendar-section .cal-title { color: #f5f5f5; }
.calendar-section .cal-arrow { color: #d6e2ec; }
.calendar-section .cal-arrow:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.calendar-section .cal-day {
  background: #f5f5f5;
  border-color: #dce5ee;
  color: #21465f;
}
.calendar-section .cal-day.has-birthday {
  background: #d0e0ef;
  border-color: #b8d0e3;
}
.calendar-section .cal-day.is-today {
  background: #f5f5f5;
  border-color: #e04c6e;
  color: #9d3049;
}
.calendar-section .cal-day.has-birthday.is-today {
  background: #d0e0ef;
}
.calendar-section .cal-day.is-selected {
  background: #e04c6e;
  border-color: #e04c6e;
  color: #fff;
}
.calendar-section .cal-day.is-selected:hover { background: #c93e5c; }
.calendar-section .cal-day.is-selected .cal-name {
  border-bottom-color: rgba(255, 255, 255, .8);
}

.list-year {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 400;
  margin-left: 4px;
}
.list-note {
  margin: -3px 0 10px;
  color: var(--muted);
  font-size: 12px;
}
