/* Holiday 新手村 — 對齊 SPA 新手村視覺語彙與內容寬 */
:root {
  --home-bg: #f3f6fb;
  --home-ink: #1e293b;
  --home-muted: #64748b;
  --home-line: #dce6f4;
  --home-surface: #ffffff;
  --home-accent: #2563eb;
  --home-accent-soft: #eef4ff;
  --home-radius: 14px;
  --home-shadow: 0 10px 28px rgba(15, 23, 42, .07);
  --home-shadow-hover: 0 14px 32px rgba(15, 23, 42, .11);
  --nav-h: 44px;
  /* 與 SPA s_index `.container.py-3 { max-width: 1140px }` + Bootstrap gutter 一致 */
  --hol-max: 1140px;
  --hol-gutter: 15px;
}

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

html { max-width: 100%; overflow-x: hidden; }
body.hol-body {
  background: var(--home-bg);
  color: var(--home-ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-top: var(--nav-h);
  padding-bottom: 64px;
  min-height: 100vh;
  word-break: break-word;
  margin: 0;
  /* 勿設 overflow-x:hidden，否則部分瀏覽器會讓 sticky 頂距異常變大 */
}

/*
 * 全站同一內容寬（Navbar／兩欄／Footer）。
 * 不用 Bootstrap/Tailwind 的 .container，避免日曆頁 Tailwind 把寬度改成 1024/1280。
 */
.hol-container,
.hol-wrap {
  width: 100%;
  max-width: var(--hol-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--hol-gutter);
  padding-right: var(--hol-gutter);
}

/* ---- Navbar ---- */
nav.hol-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--nav-h);
  background: #fff !important;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  padding: 0;
  display: flex;
  align-items: center;
}
.hol-navbar .hol-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.hol-navbar-brand {
  font-weight: 700;
  color: #333;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.hol-navbar-brand:hover { color: var(--home-accent); text-decoration: none; }
.hol-navbar-brand i { color: var(--home-accent); font-size: 1.15em; }
.hol-navbar-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hol-navbar-nav a {
  color: #495057;
  font-size: .9rem;
  padding: .35rem .65rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.hol-navbar-nav a:hover,
.hol-navbar-nav a.is-active {
  color: var(--home-accent);
  background: var(--home-accent-soft);
  text-decoration: none;
}
.hol-nav-right {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}
.hol-lang { position: relative; }
.hol-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--home-line);
  background: #f8fafc;
  color: var(--home-ink);
  border-radius: 8px;
  padding: .28rem .55rem;
  font-size: .8rem;
  cursor: pointer;
  line-height: 1.2;
}
.hol-lang-btn:hover { background: #eef4ff; }
.hol-lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  box-shadow: var(--home-shadow);
  overflow: hidden;
  z-index: 1100;
}
.hol-lang.is-open .hol-lang-menu { display: block; }
.hol-lang-menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem .85rem;
  color: #374151;
  text-decoration: none;
  font-size: .88rem;
}
.hol-lang-menu a:hover { background: #f3f6fb; }

.hol-bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1030;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
  padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
}
.hol-bottom-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hol-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  font-size: .68rem;
  color: #64748b;
  text-decoration: none;
  min-width: 3.2rem;
  padding: .2rem;
}
.hol-bottom-nav a i { font-size: 1.05rem; }
.hol-bottom-nav a.is-active,
.hol-bottom-nav a:hover { color: var(--home-accent); }

/* ---- 兩欄：總寬 = hol-wrap；比例對齊 SPA col-lg-8 / col-lg-4 ---- */
.hol-wrap {
  /* 與 navbar 留一點呼吸距（對齊 SPA container py-3 的感覺） */
  padding-top: 0.75rem;
  padding-bottom: 2rem;
}
.hol-layout {
  display: grid;
  /* 8/12 : 4/12，與 Bootstrap col-lg-8 / col-lg-4 相同 */
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  /* Bootstrap .row 欄間距視覺：約一欄 gutter */
  column-gap: 30px;
  row-gap: 1rem;
  align-items: start;
  width: 100%;
}
.hol-main { min-width: 0; width: 100%; }
/* sticky 吸頂時也保留與 navbar 相同的呼吸距 */
.hol-side {
  min-width: 0;
  width: 100%;
  position: sticky;
  top: calc(var(--nav-h) + 0.75rem);
  align-self: start;
  margin: 0;
  padding: 0;
}
.hol-side > .hol-card:first-child {
  margin-top: 0;
}

/*
 * 日曆頁主欄：不要再切左右兩欄（會與站台 sidebar 疊成三欄）。
 * 改為月曆全寬 → 假日說明／由來在下方，閱讀寬度才夠。
 */
.cal-stage {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}
.cal-stage-cal,
.cal-stage-info {
  min-width: 0;
  width: 100%;
}

/* 說明區：清單＋圖例可並排，但仍在主欄內 */
.cal-info-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
}
@media (min-width: 640px) {
  .cal-info-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(200px, 1fr);
    align-items: start;
  }
}

.hol-card {
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.hol-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--home-ink);
  margin: 0 0 .65rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.hol-card-title i { color: var(--home-accent); }
.hol-muted { color: var(--home-muted); font-size: .88rem; line-height: 1.65; }
.hol-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 .75rem;
  color: var(--home-ink);
}

.hol-side-nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .55rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}
.hol-side-nav a:hover {
  background: var(--home-accent-soft);
  border-color: #d5e4f8;
  text-decoration: none;
}
.hol-side-nav .ico {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf2f7;
  color: #475569;
  flex-shrink: 0;
}
.hol-side-nav b { display: block; font-size: .9rem; color: var(--home-ink); }
.hol-side-nav small { display: block; font-size: .72rem; color: var(--home-muted); }

.hol-footer {
  background: #fff;
  border-top: 1px solid var(--home-line);
  margin-top: 2rem;
  padding: 1.25rem 0 1.5rem;
}
.hol-footer .hol-container { text-align: center; }
.hol-footer-meta {
  color: var(--home-muted);
  font-size: .82rem;
  line-height: 1.7;
}
.hol-footer-meta a { color: var(--home-accent); text-decoration: none; }
.hol-footer-meta a:hover { text-decoration: underline; }

#website-counter {
  font-size: 12px !important;
  color: #6c757d !important;
  text-align: center;
  margin: 12px 0 0 !important;
  padding: 10px 4px 2px !important;
  border-top: 1px solid #e9ecef !important;
  line-height: 1.9;
}

@media (max-width: 991.98px) {
  .hol-layout { grid-template-columns: 1fr; column-gap: 0; }
  .hol-side { position: static; order: 2; }
  .hol-main { order: 1; }
  .hol-nav-desktop { display: none !important; }
  .hol-bottom-nav { display: block; }
}
@media (min-width: 992px) {
  body.hol-body { padding-bottom: 0; }
}
@media (max-width: 575.98px) {
  .hol-navbar-brand span.brand-text { font-size: .95rem; }
  .hol-wrap { padding-top: 0.5rem; }
}
