/* ==========================================================================
   Holiday 2027 — global editorial layer for index / listings / guide
   Loaded after style.css. Keeps existing JS hooks and calendar behaviour.
   ========================================================================== */

:root {
  --cuti: #0EA5E9;
  --cuti-soft: #E0F2FE;
  --cuti-ink: #0369A1;
}

/* --------------------------------------------------------------------------
   1. Homepage hero
   -------------------------------------------------------------------------- */
.page-header--2027 {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 520px;
  margin: 0 0 28px;
  padding: clamp(34px, 4.5vw, 58px) max(24px, calc((100vw - 1240px) / 2 + 24px));
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-color: #0B1220;
  background-image: url('/uploads/2023/03/indonesia-3465931_1920.jpg');
  background-position: center 45%;
  background-size: cover;
  background-attachment: fixed;
  box-shadow: none;
  color: #fff;
}

.page-header--2027::before,
.page-header--2027::after {
  display: none;
}

.page-header__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 10, 22, .96) 0%, rgba(5, 10, 22, .82) 40%, rgba(5, 10, 22, .38) 74%, rgba(5, 10, 22, .22) 100%),
    linear-gradient(180deg, rgba(5, 10, 22, .12) 0%, rgba(5, 10, 22, .66) 100%);
}

.page-header--2027 .page-header__text {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 720px;
}

.page-header--2027 .eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 11.5px;
  letter-spacing: .14em;
}

.page-header--2027 .eyebrow__ganzhi {
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .62);
}

.page-header__title {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.02;
  text-wrap: balance;
}

.page-header__sub {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, .62);
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: .015em;
  line-height: 1.4;
}

.page-header--2027 .lead {
  max-width: 58ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: 16.5px;
  line-height: 1.85;
  text-wrap: pretty;
}

.page-header--2027 .page-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.page-header--2027 .button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 38px;
  white-space: nowrap;
  transition:
    background-color 180ms cubic-bezier(.22, 1, .36, 1),
    border-color 180ms cubic-bezier(.22, 1, .36, 1),
    color 180ms cubic-bezier(.22, 1, .36, 1),
    transform 180ms cubic-bezier(.22, 1, .36, 1);
}

.page-header--2027 .button:hover {
  transform: translateY(-1px);
}

.button--light {
  border: 1px solid #fff;
  background: #fff;
  color: #0B1220;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.page-header--2027 .page-header__actions .button--light {
  color: #0B1220;
}

.page-header--2027 .page-header__actions .button--light:hover {
  color: #1D4ED8;
}

.button--light:hover {
  background: #EAF2FF;
  border-color: #EAF2FF;
  color: #1D4ED8;
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .88);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .14);
}

.page-header__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.page-header__quick a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.page-header__quick a:hover {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .12);
  text-decoration: none;
  transform: translateY(-1px);
}

.page-header__quick a span {
  color: #93C5FD;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.page-header__countdown {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .09);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.page-header__countdown .countdown__item {
  display: grid;
  gap: 8px;
}

.page-header__countdown .countdown__item-label {
  display: inline-flex;
  align-self: flex-start;
  justify-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, .14);
  color: #FBBF24;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
}

.page-header__countdown .countdown__item-text {
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.page-header__countdown .countdown__item-text b {
  color: #FBBF24;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.page-header__countdown .countdown__item-text a {
  color: #93C5FD;
}

.page-header__countdown .countdown__meta {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .5);
  font-size: 11.5px;
  line-height: 1.65;
}

.page-header__countdown .countdown__meta a {
  color: #93C5FD;
}

/* --------------------------------------------------------------------------
   2. Featured holidays
   -------------------------------------------------------------------------- */
.featured {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.featured__title {
  margin: 0;
  font-size: clamp(21px, 2.3vw, 27px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.featured__lead {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.featured__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.featured__grid > li {
  min-width: 0;
}

.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  min-height: 124px;
  padding: 12px 13px 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 4px 14px rgba(14, 16, 20, .035);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 180ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 180ms cubic-bezier(.22, 1, .36, 1),
    transform 180ms cubic-bezier(.22, 1, .36, 1);
}

.featured-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 10px 22px rgba(14, 16, 20, .075);
  text-decoration: none;
  transform: translateY(-2px);
}

.featured-card--cn {
  border-top: 3px solid var(--cn);
}

.featured-card--id {
  border-top: 3px solid var(--id);
}

.featured-card__index {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  opacity: .6;
}

.featured-card__cat {
  overflow: hidden;
  padding-right: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.featured-card--cn .featured-card__cat {
  color: var(--cn-ink);
}

.featured-card--id .featured-card__cat {
  color: var(--id-ink);
}

.featured-card__name {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.featured-card__date {
  align-self: flex-start;
  padding: 3px 7px;
  border-radius: 999px;
  background: #F4F6FA;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.featured-card--cn .featured-card__date {
  background: var(--cn-soft);
  color: var(--cn-ink);
}

.featured-card--id .featured-card__date {
  background: var(--id-soft);
  color: var(--id-ink);
}

.featured-card__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   3. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(14, 16, 20, .035);
}

.stat {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px 13px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--line-strong);
}

.stat--cn::before { background: var(--cn); }
.stat--id::before { background: var(--id); }
.stat--cuti::before { background: var(--cuti); }
.stat--both::before { background: var(--both); }

.stat__body {
  min-width: 0;
}

.stat__label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
}

.stat__value {
  margin-top: 3px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
  line-height: 1;
}

.stat__value small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.stat--cn .stat__value { color: var(--cn-ink); }
.stat--id .stat__value { color: var(--id-ink); }
.stat--cuti .stat__value { color: var(--cuti-ink); }

.stat--cuti .stat__icon { color: var(--cuti); }
.stat--both .stat__value { color: var(--both-ink); }

.stat__hint {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.stat__icon {
  flex: none;
  width: 28px;
  height: 28px;
  opacity: .12;
  transform: none;
}

.stat__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   4. Calendar board
   -------------------------------------------------------------------------- */
.board {
  margin-top: 0;
}

.board__toolbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 28px rgba(14, 16, 20, .06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 11.5px;
}

.legend li.is-off {
  opacity: .48;
}

.key--workday {
  border-style: dashed;
  border-color: var(--line-strong);
  background: #fff;
}

.key--cuti {
  border-color: var(--cuti);
  border-style: solid;
}

.chip--cuti {
  color: var(--cuti-ink);
  box-shadow: inset 0 0 0 1px var(--cuti);
}

.key--both {
  position: relative;
  border: 0;
  background: linear-gradient(90deg, var(--cn) 0 50%, var(--id) 50% 100%);
}

.key--both::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background: #fff;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  color: var(--ink-soft);
}

.control__label {
  color: var(--muted);
  font-size: 11px;
}

.control .select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}

.months {
  gap: 16px;
  margin-top: 16px;
}

.month {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(14, 16, 20, .035);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.month:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 32px rgba(14, 16, 20, .07);
}

.month__head {
  align-items: baseline;
}

.month__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.month__lunar {
  font-size: 11px;
  color: var(--muted);
}

.month__week {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.month__days {
  gap: 4px;
  margin-top: 4px;
}

.day {
  min-height: 44px;
  border-radius: 8px;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.day:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
}

.day__num {
  font-size: 14px;
  font-weight: 700;
}

.day__lunar {
  font-size: 9.5px;
}

.day--cn { background: #FFF1F2; }
.day--id { background: #EFF6FF; }
.day--cuti {
  background: var(--cuti-soft);
  border-color: var(--cuti);
  border-style: solid;
}
.day--both {
  position: relative;
  border-color: transparent;
  border-width: 2px;
  background:
    linear-gradient(#F5F3FF, #F5F3FF) padding-box,
    linear-gradient(90deg, var(--cn) 0 50%, var(--id) 50% 100%) border-box;
}

.day--both::after {
  content: "同";
  position: absolute;
  top: 2px;
  right: 3px;
  padding: 1px 2px;
  border: 1px solid var(--both);
  border-radius: 3px;
  background: #fff;
  color: var(--both-ink);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.day--workday {
  position: relative;
  outline: 1px dashed rgba(14, 16, 20, .38);
  outline-offset: -3px;
}

.day--workday::after {
  content: "班";
  position: absolute;
  top: 2px;
  right: 3px;
  padding: 1px 2px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.day--cn .day__num { color: var(--cn-ink); }
.day--id .day__num { color: var(--id-ink); }
.day--cuti .day__num { color: var(--cuti-ink); }
.day--both .day__num { color: var(--both-ink); }

.day--today {
  box-shadow: 0 0 0 2px var(--ink);
}

.day.is-selected {
  box-shadow: 0 0 0 2px var(--id);
}

.day-detail {
  margin: 14px 0 0;
  padding: 16px 18px;
  border: 1px solid #DBEAFE;
  border-radius: 14px;
  background: linear-gradient(135deg, #F4F8FF 0%, #fff 100%);
  box-shadow: 0 10px 26px rgba(37, 99, 235, .07);
}

.day-detail--empty {
  border-color: var(--line);
  background: #F8FAFC;
  color: var(--muted);
  font-size: 13px;
}

.day-detail__head {
  font-size: 18px;
  font-weight: 800;
}

.day-detail__field {
  font-size: 11.5px;
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   5. Guide / listing pages
   -------------------------------------------------------------------------- */
.guide-page {
  --guide-accent: var(--id);
  --guide-soft: #F4F8FF;
  --guide-border: #DBEAFE;
  --guide-glow: rgba(37, 99, 235, .22);
}

.guide-page--cn {
  --guide-accent: var(--cn);
  --guide-soft: #FFF6F7;
  --guide-border: #FECDD3;
  --guide-glow: rgba(225, 27, 44, .18);
}

.guide-page--id {
  --guide-accent: var(--id);
  --guide-soft: #F4F8FF;
  --guide-border: #DBEAFE;
  --guide-glow: rgba(37, 99, 235, .22);
}

.guide-page--tips {
  --guide-accent: #B45309;
  --guide-soft: #FFFBEB;
  --guide-border: #FDE68A;
  --guide-glow: rgba(180, 83, 9, .16);
}

.guide-page .page {
  max-width: 1180px;
  padding: clamp(16px, 2.4vw, 30px) clamp(18px, 3vw, 40px) 56px;
}

.guide-page .guide-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
  overflow: hidden;
  margin: 0 0 26px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--guide-border);
  border-radius: 24px;
  background:
    radial-gradient(80% 160% at 100% 0%, var(--guide-glow) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(135deg, var(--guide-soft) 0%, #fff 62%);
  box-shadow: 0 20px 50px rgba(14, 16, 20, .06);
}

.guide-hero__main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.guide-hero__aside {
  position: relative;
  z-index: 1;
  padding: 20px;
  border: 1px solid var(--guide-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 12px 30px rgba(14, 16, 20, .05);
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.guide-hero__big {
  display: block;
  color: var(--guide-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
  line-height: 1;
}

.guide-hero__aside strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.guide-hero__aside small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.guide-page .guide-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--guide-glow) 0%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}

.guide-page .guide-hero__eyebrow {
  margin: 0;
  color: var(--guide-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.guide-page .guide-hero h1 {
  max-width: 820px;
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.05;
  text-wrap: balance;
}

.guide-page .guide-hero__lead {
  max-width: 70ch;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.85;
  text-wrap: pretty;
}

.guide-page .guide-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.guide-page .guide-hero .button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 36px;
}

.guide-page .guide-section {
  margin-top: 28px;
}

.guide-page .guide-section__head {
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 14px;
}

.guide-page .guide-section__head h2 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -.03em;
}

.guide-page .guide-section__head p {
  color: var(--muted);
  font-size: 13px;
}

.guide-page .guide-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.guide-page .guide-fact {
  padding: 16px;
  border: 1px solid var(--guide-border);
  border-radius: 14px;
  background: var(--guide-soft);
}

.guide-page .guide-fact strong {
  display: block;
  margin-bottom: 6px;
  color: var(--guide-accent);
  font-size: 15px;
}

.guide-page .guide-fact span {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.guide-page .guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.guide-page .guide-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  padding: 17px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--guide-accent);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 8px 22px rgba(14, 16, 20, .035);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.guide-page .guide-card:hover {
  border-color: var(--guide-border);
  background: var(--guide-soft);
  box-shadow: 0 14px 30px rgba(14, 16, 20, .08);
  text-decoration: none;
  transform: translateY(-2px);
}

.guide-page .guide-card__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.guide-page .guide-card__date {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--guide-soft);
  color: var(--guide-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.guide-page .guide-card__meta {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.guide-page .guide-card__summary {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.guide-page--tips .guide-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(14, 16, 20, .035);
}

.guide-page--tips .guide-section h3 {
  margin: 20px 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--guide-accent);
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -.01em;
}

.guide-page--tips .holiday-plan {
  border-left: 3px solid #F59E0B;
}

.guide-page--tips .holiday-plan--best {
  border-color: #FCD34D;
  background: linear-gradient(135deg, #FFFBEB 0%, #fff 58%);
}

.guide-page--tips .holiday-plan__result {
  background: #FEF3C7;
}

.guide-page--tips .holiday-plan__result strong,
.guide-page--tips .holiday-plan__date {
  color: #B45309;
}

/* --------------------------------------------------------------------------
   6. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .page-header--2027 {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }

  .featured__grid {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 2px;
    padding-bottom: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .featured__grid > li {
    flex: 0 0 176px;
    scroll-snap-align: start;
  }

  .stat__hint {
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 820px) {
  .page-header--2027 {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 40px max(24px, calc((100vw - 1240px) / 2 + 24px)) 38px;
    background-attachment: scroll;
    background-position: center 40%;
  }

  .guide-page .guide-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-hero__aside {
    display: none;
  }

  .page-header__title {
    font-size: clamp(36px, 10vw, 52px);
  }

  .page-header__countdown {
    padding: 18px;
  }

  .guide-page .guide-facts,
  .guide-page .guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .board__toolbar {
    position: static;
  }

  .guide-page .page {
    padding: 14px 16px 42px;
  }
}

@media (max-width: 560px) {
  .page-header--2027 {
    padding: 34px 24px 32px;
    border-radius: 0;
  }

  .page-header__quick a {
    font-size: 11.5px;
  }

  .featured__grid > li {
    flex-basis: 176px;
  }

  .featured-card {
    min-height: 0;
    padding: 11px 12px 12px;
  }

  .featured-card__name {
    font-size: 17px;
  }

  .stat {
    padding: 10px 12px 11px;
  }

  .stat__value {
    font-size: 26px;
  }

  .stat__hint {
    -webkit-line-clamp: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-header--2027 .button,
  .page-header__quick a,
  .featured-card,
  .month,
  .day,
  .guide-page .guide-card {
    transition-duration: .01ms;
    transform: none;
  }
}
