/* 台灣未來消費行事曆・比稿頁（行事曆形式 × 圖片用法）
   ① 第一段「照抄」＝ ~/GitHub/future-consumer/public/style.css 原樣（token、頁首、頁籤、區塊大標、.calendar_row 列、.c-tag、墨黑收場），不改值。
   ② 第二段起是比稿新增：L1／L2／L3 形式、I0–I3 圖片用法、比稿工具列。新增部分只用 ① 已有的 token，不新增色票。
   ③ L2 七格週曆的日期塊照 threads-圖卡/模板/card-template.html 的 .day／.date／.it／.cat／.none 結構縮成網頁級距。 */

/* ======================================================================
   ① 照抄 future-consumer/public/style.css
   ====================================================================== */
[hidden] { display: none !important; }

:root {
  --ink: #16161a;
  --ink-soft: #3c3c44;
  --bg: #fff;
  --paper: #f7f7f5;
  --brand: #2540d8;
  --muted: #74747c;
  --line: #e4e4e8;
  --maxw: 1600px;
  --font-en: "Inter", "Noto Sans TC", sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans TC", ui-monospace, monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --sec-pad: clamp(72px, 9vw, 136px);
  --gutter: clamp(20px, 4vw, 48px);
  /* 比稿新增：只是把參考檔裡重複出現的數值命名，不是新色 */
  --brand-tint: rgba(37, 64, 216, .08);   /* 參考 .c-tag 底色 */
  --bar-h: 36px;                           /* 比稿工具列高度 */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans TC", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::selection { color: #fff; background: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.l-header_inner {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 20px);
  max-width: var(--maxw);
  padding: clamp(64px, 9vw, 128px) var(--gutter) 0;
  margin-inline: auto;
}
.l-header_title {
  margin: 0;
  font-size: clamp(34px, 7.2vw, 112px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
}
.l-header_sub {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--muted);
}
.l-header_sub::before { font-weight: 600; color: var(--brand); content: "+"; }
.l-header_sub::after { flex: 1; height: 1px; content: ""; background: var(--line); }

.l-main {
  max-width: var(--maxw);
  padding: 0 var(--gutter);
  margin-inline: auto;
}
.l-main > .l-note {
  max-width: 760px;
  margin: clamp(20px, 2.4vw, 28px) 0 clamp(32px, 4vw, 48px);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 2;
  color: var(--ink-soft);
}

.c-tabs_nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sec-pad);
}
.c-tabs_nav_btn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.c-tabs_nav_btn:hover { color: var(--brand); border-color: var(--brand); }
.c-tabs_nav_btn[aria-current="true"] { color: #fff; background: var(--brand); border-color: var(--brand); }

.l-section_title {
  margin: 0 0 8px;
  font-size: clamp(17px, 2.1vw, 22px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-soft);
}
.l-section_title::before {
  display: block;
  width: fit-content;
  padding-bottom: clamp(12px, 1.6vw, 20px);
  margin-bottom: clamp(18px, 2.4vw, 28px);
  font-family: var(--font-en);
  font-size: clamp(44px, 6.6vw, 104px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  /* 參考檔是每區寫死 content；比稿頁月份會換，改讀 data-en（同一個 ::before 樣式） */
  content: attr(data-en);
  content: attr(data-en) / "";
}

.calendar_caption {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--muted);
}
.calendar_caption::before { font-weight: 600; color: var(--brand); content: "+"; }
.calendar_caption::after { flex: 1; height: 1px; content: ""; background: var(--line); }

.calendar_row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(24px, 3vw, 34px) 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease;
}
.calendar_row:hover { background: #fafafa; }
.calendar_date {
  padding-top: 5px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .04em;
  word-break: keep-all;
}
.calendar_body { min-width: 0; }
.calendar_itemName {
  margin: 0;
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 800;
  line-height: 1.4;
  text-wrap: pretty;
  transition: transform .35s var(--ease-out);
}
.calendar_row:hover .calendar_itemName { transform: translateX(8px); }
.calendar_itemName a::after {
  display: inline-block;
  margin-left: .35em;
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--brand);
  content: "→";
}
.calendar_itemName a:hover { color: var(--brand); }
.calendar_itemSubTitle {
  margin: 8px 0 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: var(--muted);
}
.calendar_itemMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.c-tag {
  display: inline-block;
  padding: 3px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 999px;
}

.error-message {
  padding: 28px 4px;
  font-size: 15px;
  color: var(--muted);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

body::after {
  display: block;
  padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(24px, 3vw, 40px);
  overflow: hidden;
  font-family: var(--font-en);
  font-size: clamp(44px, 11vw, 200px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.03em;
  color: rgba(255, 255, 255, .1);
  white-space: nowrap;
  content: "FUTURE CONSUMER";
  content: "FUTURE CONSUMER" / "";
  background: var(--ink);
}

@media (max-width: 1024px) {
  .calendar_row { grid-template-columns: 3.25rem 1fr; padding: 20px 0; }
  .calendar_date { font-size: 14px; }
  .calendar_row:hover { background: none; }
  .calendar_row:hover .calendar_itemName { transform: none; }
  .c-tabs_nav_btn { padding: 6px 12px; font-size: 13px; }
}

/* ======================================================================
   比稿工具列（不屬於設計：中性灰、系統字、小字）
   ====================================================================== */
body { padding-top: var(--bar-h); }
html[data-public] body { padding-top: 0; }
.x-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  gap: 4px;
  align-items: center;
  height: var(--bar-h);
  padding: 0 12px;
  font: 12px/1 -apple-system, "Segoe UI", sans-serif;
  color: #555;
  background: #ededed;
  border-bottom: 1px solid #cfcfcf;
}
.x-bar_lbl { margin-right: 2px; }
.x-bar_sep { width: 1px; height: 16px; margin: 0 8px; background: #c4c4c4; }
.x-bar_btn {
  padding: 5px 8px;
  font: inherit;
  color: #444;
  cursor: pointer;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 2px;
}
.x-bar_btn[aria-pressed="true"] { color: #fff; background: #555; border-color: #555; }
@media (max-width: 900px) { .x-bar_name { display: none; } }

/* ======================================================================
   行事曆區塊（三種形式共用）
   ====================================================================== */
.cal { padding-bottom: var(--sec-pad); }
.cal_head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.cal_head .l-section_title { margin: 0; }
.cal_nav { display: flex; gap: 8px; }
[data-layout="L2"] .cal_nav { display: none; }
/* 月份切換：同分類頁籤的 hairline 按鈕 */
.cal_navBtn {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--ink-soft);
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.cal_navBtn:hover:not(:disabled) { color: var(--brand); border-color: var(--brand); }
.cal_navBtn:disabled { cursor: default; opacity: .4; }

/* ---------- L1 月曆格 ---------- */
.m1_grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-left: 1px solid var(--line);
}
.m1_dow {
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--muted);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.m1_day {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  min-height: 136px;
  padding: 10px 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.m1_day.is-out { background: var(--paper); }
.m1_head { display: flex; gap: 8px; align-items: center; }
.m1_num {
  padding: 0 6px;
  margin-left: -6px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  pointer-events: none;
  cursor: default;
  background: none;
  border: 0;
}
.m1_today {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--brand);
}
.m1_day.is-today .m1_num { margin-left: 0; color: #fff; background: var(--brand); }
.m1_day.is-past > * { opacity: .45; }
.m1_items { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.m1_pill {
  display: block;
  padding: 2px 9px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--brand);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--brand-tint);
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}
.m1_pill:hover { color: #fff; background: var(--brand); }
.m1_dots { display: none; }
.m1_thumbs { display: none; }
.m1_list { display: none; }

@media (max-width: 1024px) {
  .m1_dow { padding: 8px 0; text-align: center; letter-spacing: 0; }
  .m1_day { align-items: center; min-height: 54px; padding: 6px 2px; gap: 4px; }
  .m1_head { flex-direction: column; gap: 0; }
  .m1_today { display: none; }
  .m1_num { margin: 0; font-size: 14px; pointer-events: auto; cursor: pointer; }
  /* 數字按鈕撐滿整格：手機上點格子＝選這天 */
  .m1_num::after { position: absolute; inset: 0; content: ""; }
  .m1_items { display: none; }
  .m1_dots { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; max-width: 100%; }
  .m1_dots i { display: block; width: 6px; height: 6px; background: var(--brand); border-radius: 50%; }
  .m1_day.is-sel { background: var(--brand); }
  .m1_day.is-sel > * { opacity: 1; }
  .m1_day.is-sel .m1_num { color: #fff; background: none; }
  .m1_day.is-sel .m1_dots i { background: #fff; }
  .m1_day.is-today:not(.is-sel) .m1_num { color: var(--brand); background: none; box-shadow: inset 0 -2px 0 var(--brand); }
  .m1_list { display: block; margin-top: 32px; }
}

/* ---------- L2 七格週曆條（照 Threads 圖卡 .day 日期塊） ---------- */
.w2 .calendar_caption { margin-top: clamp(40px, 5vw, 64px); }
.w2 .calendar_caption:first-child { margin-top: 0; }
.w2_week {
  display: grid;
  grid-template-columns: 9.5rem repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 0 24px;
  border-top: 2px solid var(--ink);
}
.w2_week + .w2_week { margin-top: 8px; }
.w2_label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding-top: 8px;
}
.w2_range {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .04em;
}
.w2_label .is-pastTag { color: var(--muted); background: var(--paper); }
.w2_day {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 12px 12px;
  background: var(--paper);
}
.w2_day.is-empty { background: transparent; border: 1px solid var(--line); }
.w2_day.is-past > * { opacity: .5; }
.w2_date {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.w2_date span {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--brand);
}
.w2_date em { font-size: 13px; font-style: normal; font-weight: 500; color: var(--muted); }
.w2_day.is-today .w2_date span { padding: 0 6px; color: #fff; background: var(--brand); }
.w2_items { display: flex; flex-direction: column; gap: 10px; }
.w2_it {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  /* 圖卡用 keep-all＋手動 nb；網頁窄格寬度不固定，改一般中文斷行、英文詞不拆 */
  line-break: strict;
  overflow-wrap: break-word;
}
.w2_cat {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}
.w2_tx { flex: 1 1 0; min-width: 0; }
.w2_tx a:hover { color: var(--brand); }
.w2_run { display: none; }
.w2_none {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  word-break: keep-all;
}

@media (max-width: 900px) {
  .w2_week { grid-template-columns: 1fr; gap: 0; padding-top: 12px; }
  .w2_label { flex-direction: row; align-items: center; padding: 0 0 12px; }
  .w2_day {
    display: grid;
    grid-template-columns: 5.25rem 1fr;
    column-gap: 12px;
    padding: 12px;
    margin-top: 6px;
  }
  .w2_br { display: none; }
  .w2_date { display: block; padding: 0; margin: 0; white-space: nowrap; border: 0; }
  .w2_date em { margin-left: 6px; }
  /* 沒條目的天：連續的合併成一行「10/26–10/27　2 天　沒有可知的預定」 */
  .w2_day.is-empty { display: none; }
  .w2_run {
    display: grid;
    grid-template-columns: 5.25rem 1fr;
    column-gap: 12px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
  }
  .w2_run span { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
  .w2_run i { font-style: normal; }
  .w2_run.is-past { opacity: .6; }
}

/* ---------- L3 小月曆＋清單 ---------- */
.s3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}
@media (min-width: 1025px) {
  .s3 > .s3_list { grid-row: 1; grid-column: 1; }
  .s3 > .s3_mini { grid-row: 1; grid-column: 2; }
}
.s3_mini {
  position: sticky;
  top: calc(var(--bar-h) + 24px);
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.s3_grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.s3_dow {
  padding-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}
.s3_day {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 0;
}
.s3_day.is-past { opacity: .45; }
.s3_day.has { font-weight: 700; color: var(--ink); cursor: pointer; }
.s3_day.has::after { width: 5px; height: 5px; content: ""; background: var(--brand); border-radius: 50%; }
.s3_day.has:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.s3_day.is-today { box-shadow: inset 0 -2px 0 var(--brand); }
.s3_day.is-sel { color: #fff; background: var(--brand); opacity: 1; }
.s3_day.is-sel::after { background: #fff; }
.s3_legend {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}
.s3_list { border-top: 2px solid var(--ink); }
.s3_list .error-message { border-top: 0; }
/* 清單列左右各留 12px：選中時的果核藍左邊條才不會貼著日期 */
.s3_list .calendar_row { padding-inline: 12px; scroll-margin-top: calc(var(--bar-h) + 24px); }
.calendar_row.is-hit { background: var(--brand-tint); box-shadow: inset 3px 0 0 var(--brand); }

@media (max-width: 1024px) {
  .s3 { grid-template-columns: 1fr; gap: 32px; }
  .s3_mini { position: static; }
}

/* ======================================================================
   圖片用法
   ====================================================================== */

/* 縮圖（I2）與手機展開（I3）共用：方角、object-fit: cover。預設不顯示 */
.c-thumb { display: none; object-fit: cover; background: var(--paper); border-radius: 0; }

/* ---------- I1 頁首背景輪播 ---------- */
.l-header { position: relative; overflow: hidden; }
.l-header_media, .l-header_credit { display: none; }
[data-img="I1"] .l-header { color: #fff; background: var(--ink); }
[data-img="I1"] .l-header_inner { position: relative; z-index: 1; padding-bottom: clamp(88px, 9vw, 128px); }
[data-img="I1"] .l-header_sub { color: #fff; }
[data-img="I1"] .l-header_sub::before { color: #fff; }
[data-img="I1"] .l-header_sub::after { background: rgba(255, 255, 255, .32); }
[data-img="I1"] .l-header_media { position: absolute; inset: 0; display: block; }
.l-header_slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.l-header_slide.is-on { opacity: 1; }
/* 墨黑疊層：最淡處 .62 ⇒ 底下就算是純白像素，白字對比仍 ≥5:1（算法見回報） */
.l-header_media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(22, 22, 26, .62) 0%, rgba(22, 22, 26, .7) 55%, rgba(22, 22, 26, .9) 100%);
}
[data-img="I1"] .l-header_credit {
  position: absolute;
  bottom: clamp(18px, 2.4vw, 28px);
  left: max(var(--gutter), (100% - var(--maxw)) / 2 + var(--gutter));
  right: var(--gutter);
  z-index: 1;
  display: block;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-img="I1"] .l-header_credit a { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .l-header_slide { transition: none; }
}

/* ---------- I2 條目縮圖 ----------
   沒圖的條目：什麼都不放。縮圖一律排在條目「後面」（列的右端、日期塊的上方），
   沒圖的列文字直接延伸到右緣，左緣對齊不受影響。 */
[data-img="I2"] .c-thumb { display: block; }
/* L3 清單列＋L1 手機清單：縮圖在右欄 */
[data-img="I2"] .calendar_row.has-img { grid-template-columns: 4.5rem minmax(0, 1fr) clamp(120px, 12vw, 176px); }
[data-img="I2"] .calendar_row .c-thumb { width: 100%; aspect-ratio: 16 / 10; margin-top: 6px; }
/* L2 桌機：縮圖在日期塊內、該筆文字上方，滿格寬 */
[data-img="I2"] .w2_it.has-img { display: grid; grid-template-columns: auto minmax(0, 1fr); }
[data-img="I2"] .w2_it .c-thumb { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 4px; }
/* L1 桌機：格子太窄，縮圖排成一列小方塊放在格子最底（沒圖的日子這列不存在，上方標題不位移） */
[data-img="I2"] .m1_thumbs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.m1_thumbs .c-thumb { width: 30px; height: 30px; }

@media (max-width: 900px) {
  [data-img="I2"] .w2_it.has-img { display: grid; grid-template-columns: auto minmax(0, 1fr) 64px; }
  [data-img="I2"] .w2_it .c-thumb { grid-row: 1 / span 2; grid-column: 3; width: 64px; height: 64px; margin: 0; aspect-ratio: auto; }
}
@media (max-width: 1024px) {
  [data-img="I2"] .m1_thumbs { display: none; }
  [data-img="I2"] .calendar_row.has-img { grid-template-columns: 3.25rem minmax(0, 1fr) 72px; column-gap: 12px; }
  [data-img="I2"] .calendar_row .c-thumb { aspect-ratio: 1; }
}

/* ---------- I3 滑過（桌機）／點選（手機）才出現 ---------- */
/* 桌機：游標旁浮出圖卡 */
.c-peek {
  position: fixed;
  z-index: 90;
  width: 300px;
  pointer-events: none;
  background: var(--bg);
  border: 1px solid var(--ink);
}
.c-peek img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.c-peek_body { padding: 14px 16px 16px; }
.c-peek_title { margin: 8px 0 0; font-size: 15px; font-weight: 800; line-height: 1.5; }
.c-peek_sub { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.c-peek_src { margin: 10px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }

/* 手機：條目後的「+ 看圖」鈕，點了在條目內展開同一張卡 */
.c-peekBtn {
  display: none;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--brand);
  cursor: pointer;
  background: none;
  border: 1px solid var(--brand);
  border-radius: 3px;
}
.c-peekBtn[aria-expanded="true"] { color: #fff; background: var(--brand); }
.c-peekInline { margin-top: 12px; border: 1px solid var(--ink); }
.c-peekInline img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.c-peekInline .c-peek_body { padding: 12px 14px 14px; }
@media (max-width: 1024px), (hover: none) {
  [data-img="I3"] .c-peekBtn { display: inline-block; }
}

/* ---------- I4 滑過換背景（只用在 L3）----------
   .s3 用 clip-path 把 position: fixed 的背景層裁在這一段內（橫向延伸到滿版，同參考 .thisWeek 的 100vmax 手法）。
   深色狀態的文字色照參考 .thisWeek 藍段：白字、說明 .82、標籤白字配 16% 白底、hairline .26。
   墨黑遮罩 .78：保守算（假設圖底是純白像素），所有文字對比 ≥4.5:1，算式見回報。 */
[data-img="I4"] .s3 {
  position: relative;
  padding-block: clamp(32px, 4vw, 56px);
  clip-path: inset(0 -100vmax);
}
.s3_bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--ink);
  opacity: 0;
  transition: opacity .4s ease;
}
.s3_bg i {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity .4s ease;
}
.s3_bg i.is-on { opacity: 1; }
.s3_bg::after { position: absolute; inset: 0; content: ""; background: rgba(22, 22, 26, .78); }
.s3.is-dark .s3_bg { opacity: 1; }

[data-img="I4"] .s3 :is(.calendar_date, .calendar_itemName, .calendar_itemSubTitle, .calendar_itemMeta, .c-tag, .s3_day, .s3_dow, .s3_legend, .error-message) {
  transition: color .4s ease, background-color .4s ease, transform .35s var(--ease-out);
}
[data-img="I4"] .s3 :is(.s3_mini, .s3_list, .calendar_row) { transition: border-color .4s ease, background-color .25s ease, box-shadow .25s ease; }

/* 滑過／捲到的那一列：左側藍條（深色時改白條＋6% 白底），不只靠背景 */
[data-img="I4"] .calendar_row:hover { background: none; }
[data-img="I4"] .calendar_row.is-cur { box-shadow: inset 3px 0 0 var(--brand); }
.s3.is-dark .calendar_row.is-cur,
.s3.is-dark .calendar_row.is-hit { background: rgba(255, 255, 255, .06); box-shadow: inset 3px 0 0 #fff; }

.s3.is-dark { color: #fff; }
.s3.is-dark .s3_mini,
.s3.is-dark .s3_list { border-top-color: #fff; }
.s3.is-dark .calendar_row { border-bottom-color: rgba(255, 255, 255, .26); }
.s3.is-dark .calendar_itemName a::after { color: #fff; }
.s3.is-dark .calendar_itemName a:hover { color: #fff; }
.s3.is-dark .calendar_itemSubTitle,
.s3.is-dark .calendar_itemMeta,
.s3.is-dark .s3_legend,
.s3.is-dark .s3_dow,
.s3.is-dark .error-message { color: rgba(255, 255, 255, .82); }
.s3.is-dark .c-tag { color: #fff; background: rgba(255, 255, 255, .16); }
/* 小月曆：沒條目／已過的日子用 .7 白（.45 透明度在深底會掉到 4.5 以下） */
.s3.is-dark .s3_day { color: rgba(255, 255, 255, .7); }
.s3.is-dark .s3_day.is-past { opacity: 1; }
.s3.is-dark .s3_day.has { color: #fff; }
.s3.is-dark .s3_day.is-past.has { color: rgba(255, 255, 255, .7); }
.s3.is-dark .s3_day.has::after { background: #fff; }
.s3.is-dark .s3_day.has:hover { box-shadow: inset 0 0 0 1px #fff; }
.s3.is-dark .s3_day.is-today { box-shadow: inset 0 -2px 0 #fff; }
.s3.is-dark .s3_day.is-sel { color: #fff; background: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .s3_bg, .s3_bg i { transition: none; }
  [data-img="I4"] .s3 * { transition: none !important; }
}

/* ---------- 直接進入主題（10-21 Kidult：縮小產品名、說明改放到下面）----------
   頁首收成一行的小標，頁籤緊接、行事曆馬上出現；說明句移到清單後當收尾。 */
.l-header_inner {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: baseline;
  padding-top: clamp(20px, 2.4vw, 32px);
}
.l-header_title { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; letter-spacing: .01em; }
.l-header_sub { flex: 1; min-width: 12em; }
.c-tabs_nav { margin: clamp(16px, 2vw, 24px) 0 0; }
.l-section_title::before {
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-size: clamp(30px, 3.6vw, 52px);
}
.cal_head { margin-bottom: clamp(20px, 2.4vw, 32px); }
.l-main > .l-note {
  max-width: none;
  padding-top: clamp(20px, 2.4vw, 28px);
  margin: 0 0 var(--sec-pad);
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.cal { padding-bottom: clamp(40px, 5vw, 64px); }
/* I4 的背景段上緣只留少量呼吸，行事曆緊接月份標題 */
[data-img="I4"] .s3 { padding-top: clamp(8px, 1vw, 16px); }
.cal_head { margin-bottom: 0; }

/* ======================================================================
   L3＋I4 精緻化（10-21 Kidult 核可 L3＋I4 後）。只維護 L3，其他組合不保證。
   語言全部取自參考 style.css：月份分隔＝.calendar_wrapper 的墨黑 2px 起頭＋.calendar_month 月份大字；
   今天分隔線＝.calendar_caption 名欄改果核藍；按鈕＝分類頁籤的 hairline 方鈕。不新增色票。
   ====================================================================== */
:root { --stick-h: 0px; }

/* 1. 月份只留一個：區塊大標在 L3 只留給螢幕報讀器，月份顯示在小月曆標頭（跟著捲動切換） */
[data-layout="L3"] .cal_head {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[data-layout="L3"] .cal_nav { display: none; }

/* 2. 小月曆標頭：月份＋左右箭頭貼著小月曆 */
.s3_mini { padding-top: 0; }
.s3_head { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0 14px; }
.s3_month, .s3_wLabel { display: flex; gap: 10px; align-items: baseline; margin: 0; }
.s3_month b, .s3_wLabel b {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
}
.s3_month span, .s3_wLabel span, .s3_mYear {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--muted);
}
.s3_arrows { display: flex; gap: 6px; }
.s3_arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.s3_arrow:hover:not(:disabled) { color: var(--brand); border-color: var(--brand); }
.s3_arrow:disabled { cursor: default; opacity: .35; }
.s3_week { display: none; }

/* 3. 連續清單：每月一段，月份分隔照參考 .calendar_wrapper（墨黑 2px 起頭）＋.calendar_month 月份大字 */
.s3_list { border-top: 0; }
.s3_sec + .s3_sec { margin-top: clamp(40px, 5vw, 64px); }
.s3_mh {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0;
  padding: 14px 12px 6px;
  border-top: 2px solid var(--ink);
}
.s3_mh .calendar_month { padding: 0; font-size: clamp(28px, 3vw, 40px); }
.s3_list .calendar_row { scroll-margin-top: calc(var(--bar-h) + var(--stick-h) + 16px); }

/* 4. 今天分隔線：果核藍 hairline＋mono 小字（同 .calendar_caption 名欄的結構） */
.s3_today {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--brand);
}
.s3_today::after { flex: 1; height: 1px; content: ""; background: var(--brand); }
/* 已開賣：日期淡、標題降一階墨色（ink-soft 對白底 10:1），不用透明度 */
.calendar_row.is-past .calendar_itemName { color: var(--ink-soft); }
.calendar_row.is-past .s3_dnum { color: var(--muted); }

/* 5. 日期欄兩行：mono 日期數字＋週幾（已開賣多一行） */
.s3_list .calendar_date { display: flex; flex-direction: column; gap: 2px; padding-top: 0; }
.s3_dnum { font-family: var(--font-mono); font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.s3_ddow { font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--muted); }
.s3_sold { margin-top: 4px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }

/* 6. 滑過不位移：I4 已有左條＋背景，位移會讓整欄抖 */
[data-layout="L3"] .calendar_row:hover .calendar_itemName { transform: none; }
/* 選中／滑過一律只用左條，不鋪底色（muted 小字對任何淺底都會掉到 4.5 以下） */
[data-layout="L3"] .calendar_row.is-hit { background: none; box-shadow: inset 3px 0 0 var(--brand); }

/* I4 深色狀態：新元件跟著切淺色 */
.s3.is-dark .s3_month span, .s3.is-dark .s3_wLabel span, .s3.is-dark .s3_mYear,
.s3.is-dark .s3_ddow, .s3.is-dark .s3_sold { color: rgba(255, 255, 255, .82); }
.s3.is-dark .s3_mh { border-top-color: #fff; }
.s3.is-dark .s3_arrow { color: #fff; border-color: rgba(255, 255, 255, .26); }
.s3.is-dark .s3_arrow:hover:not(:disabled) { color: #fff; border-color: #fff; }
.s3.is-dark .s3_today { color: #fff; }
.s3.is-dark .s3_today::after { background: #fff; }
.s3.is-dark .calendar_row.is-past .calendar_itemName,
.s3.is-dark .calendar_row.is-past .s3_dnum { color: rgba(255, 255, 255, .82); }
/* 10. 深色背景上的鍵盤焦點框改白 */
.s3.is-dark :focus-visible { outline-color: #fff; }
[data-img="I4"] .s3 :is(.s3_ddow, .s3_sold, .s3_dnum, .s3_today, .s3_mh, .s3_arrow, .s3_month, .s3_wLabel) {
  transition: color .4s ease, border-color .4s ease;
}

/* 8／9. 手機：小月曆換成 sticky 週日期條（目前那週七天＋左右箭頭），觸控目標 ≥44px */
@media (max-width: 1024px) {
  .c-tabs_nav_btn { min-height: 44px; }
  .s3 { gap: 0; }
  .s3_cal { display: none; }
  .s3_week { display: block; }
  .s3_mini {
    position: sticky;
    top: var(--bar-h);
    z-index: 2;
    padding: 8px var(--gutter) 10px;
    margin: 0 calc(var(--gutter) * -1) 16px;
    background: var(--bg);
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }
  .s3.is-dark .s3_mini { background: var(--ink); border-bottom-color: rgba(255, 255, 255, .26); }
  .s3_wHead { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
  .s3_wLabel b { font-size: 22px; }
  .s3_wDays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: 6px; }
  .s3_wDay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 4px 0;
    font-family: var(--font-mono);
    color: var(--muted);
    background: none;
    border: 0;
  }
  .s3_wDay em { font-family: "Noto Sans TC", sans-serif; font-size: 11px; font-style: normal; line-height: 1.3; }
  .s3_wDay span { font-size: 15px; font-weight: 600; line-height: 1.4; }
  .s3_wDay i { width: 5px; height: 5px; border-radius: 50%; }
  .s3_wDay.has { color: var(--ink); cursor: pointer; }
  .s3_wDay.has i { background: var(--brand); }
  .s3_wDay.is-past { color: var(--muted); }
  .s3_wDay.is-today { box-shadow: inset 0 -2px 0 var(--brand); }
  .s3_wDay.is-sel { color: #fff; background: var(--brand); }
  .s3_wDay.is-sel i { background: #fff; }
  .s3.is-dark .s3_wDay { color: rgba(255, 255, 255, .7); }
  .s3.is-dark .s3_wDay.has { color: #fff; }
  .s3.is-dark .s3_wDay.has i { background: #fff; }
  .s3.is-dark .s3_wDay.is-today { box-shadow: inset 0 -2px 0 #fff; }
  .s3_mh { padding-inline: 12px; }
  .s3_dnum { font-size: 20px; }
}

/* ======================================================================
   r2（10-21 Kidult markoff 10 條，大桌機 1920 看）。只維護 L3＋I4。
   新增的元件全部照官網：.btn／.btn--on-dark／.cta-end__btn 與聯絡表單 modal
   抄自 ~/GitHub/coreplay-2027/src/sass/style.sass（.btn L692、.cta-end__btn L1297、.contact-modal L1329–1590）。
   深色模式用官網既有 token：底 --ink、字白／.82、強調 --brand-soft #7c8cff、線白 .18。
   ====================================================================== */
:root {
  --brand-core: #2540d8;   /* = --brand 亮色值；深色模式 --brand 換成 brand-soft 時，白底藍字仍要用這個 */
  --brand-soft: #7c8cff;   /* 官網 style.sass L17 */
  --night: #16161a;        /* = --ink 亮色值；深色模式 --ink 變白時，墨黑底仍要用這個 */
  --band-h: 0px;
}
.u-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- 2. 深色模式：整組 token 換值（元件照用同一批變數） ---- */
[data-theme="dark"] {
  --ink: #fff;
  --ink-soft: rgba(255, 255, 255, .82);
  --muted: rgba(255, 255, 255, .82);
  --bg: #16161a;
  --line: rgba(255, 255, 255, .18);
  --brand: var(--brand-soft);
  --brand-tint: rgba(124, 140, 255, .16);
  color-scheme: dark;
}
/* 深色模式下「藍底白字」改「brand-soft 底墨黑字」：白字在 #7c8cff 上只有 2.98:1 */
[data-theme="dark"] .c-tabs_nav_btn[aria-current="true"],
[data-theme="dark"] .s3_day.is-sel,
[data-theme="dark"] .s3_wDay.is-sel { color: var(--night); }
[data-theme="dark"] ::selection { color: var(--night); }
[data-theme="dark"] .s3_wDay.is-sel i { background: var(--night); }

/* ---- 1. 背景段：從頁頂到清單結束（表頭不自帶底色，跟著背景換圖） ---- */
.stage { position: relative; clip-path: inset(0); }
[data-img="I4"] .s3 { clip-path: none; }
.s3_bg { background: var(--night); }
.stage.is-dark .s3_bg { opacity: 1; }
.stage.is-dark { color: #fff; }
.stage.is-dark .l-header_sub { color: rgba(255, 255, 255, .82); }
.stage.is-dark .l-header_sub::before { color: #fff; }
.stage.is-dark .l-header_sub::after { background: rgba(255, 255, 255, .26); }
/* 頁籤深色版：白字、白 .26 外框，選中＝白底果核藍字 */
.stage.is-dark .c-tabs_nav_btn { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .26); }
.stage.is-dark .c-tabs_nav_btn:hover { color: #fff; border-color: #fff; }
.stage.is-dark .c-tabs_nav_btn[aria-current="true"] { color: var(--brand-core); background: #fff; border-color: #fff; }
.stage :is(.l-header_title, .l-header_sub, .c-tabs_nav_btn, .btn, .l-section_title) {
  transition: color .4s ease, background-color .4s ease, border-color .4s ease;
}

/* ---- 2. 表頭右側功能：官網 .btn（hairline 膠囊） ---- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: background .25s ease, color .25s ease, transform .25s var(--ease-out);
}
.btn:hover { color: var(--bg); background: var(--ink); }
.btn--on-dark, .stage.is-dark .btn { color: #fff; border-color: #fff; }
.btn--on-dark:hover, .stage.is-dark .btn:hover { color: var(--night); background: #fff; }
.l-header_tools { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.l-header_btn { padding: 8px 20px; }

/* ---- 7. 月份大標：照參考 .l-section_title::before 字級與 5px 藍底線，sticky 在背景段頂端 ---- */
[data-layout="L3"] .cal_head {
  position: sticky;
  top: var(--bar-h);
  z-index: 3;
  width: auto;
  height: auto;
  padding: 12px var(--gutter) 16px;
  margin: 0 calc(var(--gutter) * -1) clamp(16px, 2vw, 28px);
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--bg);
}
[data-layout="L3"] .cal_head .l-section_title::before {
  padding-bottom: clamp(12px, 1.6vw, 20px);
  margin-bottom: 0;
  font-size: clamp(44px, 6.6vw, 104px);
}
/* 換圖時大標帶不能透明（清單會從底下捲過去），改用「同一張圖＋同一層墨黑」的 fixed 背景，跟背景層對齊成一片 */
.stage.is-dark .cal_head,
.stage.is-dark .s3_mini.s3_mini {
  background-color: var(--night);
  background-image: linear-gradient(rgba(22, 22, 26, .78), rgba(22, 22, 26, .78)), var(--i4-img, none);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}
.stage.is-dark .l-section_title::before { color: #fff; }
.s3_mini { top: calc(var(--bar-h) + var(--band-h) + 24px); }
@media (min-width: 1025px) { .stage.is-dark .s3_mini.s3_mini { background: none; } }

/* ---- 3–6. 小月曆標頭只留箭頭；清單月份段只留墨黑 2px 分界線 ---- */
.s3_head { justify-content: flex-end; }
.s3_sec { border-top: 2px solid var(--ink); }
.s3.is-dark .s3_sec { border-top-color: #fff; }
.s3_sec:has(> .s3_today) { border-top: 0; }
/* ---- 8. 中線那一列同步標在小月曆上 ---- */
.s3_day.is-cur, .s3_wDay.is-cur { box-shadow: inset 0 0 0 2px var(--brand); }
.s3.is-dark .s3_day.is-cur, .s3.is-dark .s3_wDay.is-cur { box-shadow: inset 0 0 0 2px #fff; }
/* 小月曆已過的日子：改用顏色不用透明度（.45 透明度兩種模式都掉到 4.5 以下） */
.s3_day.is-past { opacity: 1; }
.s3_day.is-past.has { color: var(--muted); }

/* ---- 9／10. footer：說明句＋credit＋聯絡我們，巨型字標保留 ---- */
.l-footer { color: #fff; background: var(--night); }
[data-theme="dark"] .l-footer { border-top: 1px solid var(--line); }
.l-footer_inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 48px;
  align-items: end;
  max-width: var(--maxw);
  padding: clamp(56px, 8vw, 112px) var(--gutter) 0;
  margin-inline: auto;
}
.l-footer_note { grid-column: 1 / -1; max-width: 760px; margin: 0; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.9; color: rgba(255, 255, 255, .82); }
.l-footer_credit { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .82); }
.l-footer_credit a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.l-footer_credit a:hover { color: var(--brand-soft); }
.l-footer :focus-visible { outline-color: #fff; }
body::after { padding-top: clamp(32px, 4vw, 56px); background: var(--night); }

@media (max-width: 1024px) {
  [data-layout="L3"] .cal_head { padding-top: 8px; padding-bottom: 10px; margin-bottom: 0; }
  /* 390 寬放不下 104→44px 的 FEBRUARY 2027，下限改跟著寬度走 */
  [data-layout="L3"] .cal_head .l-section_title::before { padding-bottom: 8px; font-size: min(44px, 9vw); }
  .s3_mini { top: calc(var(--bar-h) + var(--band-h)); }
  .l-header_tools { width: 100%; margin-left: 0; }
  .l-header_btn { min-height: 44px; }
  .l-footer_inner { grid-template-columns: 1fr; align-items: start; }
  .l-footer_inner .btn { justify-self: start; min-height: 44px; }
}

/* ======================================================================
   聯絡表單 modal：照抄 coreplay-2027 style.sass L1297–1590（.cta-end__btn、.contact-modal、.contact-form、.contact-done）
   modal 自帶亮色 token：官網是「亮底表單跳出墨黑環境」，深色模式下也維持亮底。
   與官網的差異（為了兩種模式文字對比 ≥4.5）：副標與「選填」muted→ink-soft（官網 muted 在 paper 上 4.27）；
   錯誤訊息文字 #d64545→ink（官網紅在 paper 上 4.04），紅色只留在欄位外框。
   ====================================================================== */
.contact-modal {
  --ink: #16161a; --ink-soft: #3c3c44; --muted: #74747c; --line: #e4e4e8; --bg: #fff; --brand: #2540d8;
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 48px);
  color: var(--ink);
  visibility: hidden;
}
.contact-modal :focus-visible { outline-color: var(--brand); }
.contact-modal__backdrop { position: absolute; inset: 0; background: rgba(22, 22, 26, .55); opacity: 0; transition: opacity .4s ease; }
.contact-modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 44px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(22, 22, 26, .32);
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  cursor: pointer;
  background: none;
  border: none;
}
.contact-modal__close-box { position: relative; display: block; width: 20px; height: 20px; }
.contact-modal__close-box::before, .contact-modal__close-box::after {
  position: absolute; top: 50%; left: 0; width: 20px; height: 2px; content: ""; background: currentColor; border-radius: 2px;
}
.contact-modal__close-box::before { transform: rotate(45deg); }
.contact-modal__close-box::after { transform: rotate(-45deg); }
.contact-modal__close:hover { color: var(--brand); }
.contact-modal__head { margin-bottom: 24px; }
.contact-modal__kicker { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; color: var(--brand); }
.contact-modal__title { margin: 0 0 10px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; line-height: 1.25; letter-spacing: -.01em; }
.contact-modal__sub { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.contact-modal.is-open { visibility: visible; }
.contact-modal.is-open .contact-modal__backdrop { opacity: 1; }
.contact-modal.is-open .contact-modal__panel { opacity: 1; transform: none; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__field { display: flex; flex-direction: column; gap: 7px; }
.contact-form__label { display: flex; gap: 8px; align-items: baseline; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-soft); }
.contact-form__optional { font-family: var(--font-en); font-size: 11px; letter-spacing: .04em; color: var(--ink-soft); }
.contact-form__input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-en);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form__input::placeholder { color: var(--muted); }
.contact-form__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 64, 216, .14); }
.contact-form__input.is-invalid { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214, 69, 69, .12); }
.contact-form__textarea { min-height: 108px; line-height: 1.55; resize: vertical; }
.contact-form__foot { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.contact-form__submit { align-self: flex-start; }
.contact-form__status { min-height: 1.2em; margin: 0; font-size: 13.5px; line-height: 1.5; }
.contact-form__status.is-error { color: var(--ink); }
/* 送出鈕：官網 .btn ＋ .cta-end__btn 實心藍 */
.cta-end__btn { padding: 20px 44px; color: #fff; background: var(--brand); border-color: var(--brand); transition: transform .3s var(--ease-out), box-shadow .3s ease, background .3s ease; }
.cta-end__btn:hover { color: #fff; background: var(--brand); box-shadow: 0 18px 44px rgba(37, 64, 216, .45); transform: translateY(-4px); }
.cta-end__btn-main { display: block; font-size: 18px; font-weight: 800; }

.contact-modal .contact-done {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.contact-modal .contact-form, .contact-modal .contact-modal__head { transition: opacity .3s ease, transform .3s ease; }
.contact-modal.is-done .contact-form, .contact-modal.is-done .contact-modal__head { pointer-events: none; opacity: 0; transform: translateY(-8px); }
.contact-modal.is-done .contact-form { visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
.contact-modal.is-done .contact-done { pointer-events: auto; visibility: visible; opacity: 1; transform: translateY(0); transition: opacity .45s ease .18s, transform .45s ease .18s; }
.contact-done__check { width: 56px; height: 56px; }
.contact-done__check svg { display: block; width: 100%; height: 100%; }
.contact-done__circle { stroke: var(--brand); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; }
.contact-done__tick { stroke: var(--brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.contact-done__title { margin: 0; font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; color: #111; }
.contact-done__msg { max-width: 340px; margin: 0; font-size: 14.5px; line-height: 1.55; color: #555; }
.contact-modal.is-done .contact-done__circle { animation: doneCircle .5s ease .2s forwards; }
.contact-modal.is-done .contact-done__tick { animation: doneTick .35s ease .6s forwards; }
@keyframes doneCircle { to { stroke-dashoffset: 0; } }
@keyframes doneTick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .contact-modal__panel { transition: opacity .2s ease; }
  .contact-done__circle, .contact-done__tick { stroke-dashoffset: 0; animation: none; }
}

/* ======================================================================
   r3（10-21）：強化「果核概念」＋活動網址 CTA。全部照 ~/GitHub/coreplay-2027：
   .nav__logo（L360–384）、.cello（L746–790）、.menu 藍段（L1740）、.cta-end__h／__rally（L1253–1265）。
   ====================================================================== */
:root {
  --font-logo: "Google Sans Flex", "Inter", "Noto Sans TC", sans-serif;
  --accent-lime: #c5ff4a;
  --lavender: #ded5e8;
  --ink-line: #000;
}

/* ---- logo 組合：官網 .nav__logo（coreplay 用 Google Sans Flex ROND 100＋果核概念，30px：20px＝3:2） ---- */
.c-logo {
  --logo-color: var(--brand);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--logo-color);
  text-decoration: none;
}
.c-logo_word {
  font-family: var(--font-logo);
  font-size: 30px;
  font-variation-settings: "ROND" 100, "wdth" 100, "wght" 700;
  line-height: 1;
  white-space: nowrap;
}
.c-logo_zh { font-size: 20px; font-weight: 700; line-height: 1; white-space: nowrap; }
.c-logo_by { margin-right: 2px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
/* 表頭小版：同比例縮到 18：12 */
.c-logo--sm .c-logo_word { font-size: 18px; }
.c-logo--sm .c-logo_zh { font-size: 12px; }
.c-logo--sm { align-self: center; }
.stage.is-dark .c-logo { --logo-color: #fff; }
.stage.is-dark .c-logo_by { color: rgba(255, 255, 255, .82); }
/* footer 大版：同比例放大，白色 */
.c-logo--lg { --logo-color: #fff; gap: clamp(8px, 1vw, 14px); }
.c-logo--lg .c-logo_word { font-size: clamp(42px, 5.4vw, 78px); }
.c-logo--lg .c-logo_zh { font-size: clamp(28px, 3.6vw, 52px); }
.l-footer_credit { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.l-footer_by { font-size: 14px; color: rgba(255, 255, 255, .82); }
.l-footer_credit a.c-logo { text-decoration: none; }
.l-footer_credit a.c-logo:hover { color: #fff; opacity: .86; }

/* footer 巨型字標維持參考的 FUTURE CONSUMER（body::after，10-21 Kidult 定）；果核概念的比重由 footer logo 與表頭 by 果核概念承擔 */

/* ---- CTA：官網 .menu 藍段（--brand 滿版、白字）＋ .cta-end 標題級距 ----
   選藍段不選墨黑：footer 已是墨黑，墨黑 CTA 會跟 footer 黏成一塊；藍段同時是參考 THIS WEEK 段的顏色。
   深色模式仍用 --brand-core（brand-soft 底上的白字只有 2.98:1）。 */
.l-cta { color: #fff; background: var(--brand-core); }
.l-cta_inner { max-width: var(--maxw); padding: var(--sec-pad) var(--gutter); margin-inline: auto; }
.l-cta_h { margin: 0 0 20px; font-size: clamp(30px, 4.6vw, 60px); font-weight: 900; line-height: 1.3; letter-spacing: -.01em; }
.l-cta_rally { margin: 0 0 clamp(28px, 3.4vw, 44px); font-size: clamp(19px, 2.4vw, 28px); font-weight: 700; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.l-cta_form { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; }
.l-cta :focus-visible { outline-color: #fff; }
/* 網址欄：沿用聯絡表單 .contact-form__input，顏色鎖亮色（深色模式不跟著變） */
.l-cta_input.contact-form__input {
  flex: 1 1 320px;
  max-width: 560px;
  min-height: 56px;
  font-size: 16px;
  color: #16161a;
  background: #fff;
  border-color: #fff;
}
.l-cta_input.contact-form__input::placeholder { color: #74747c; }
.l-cta_input.contact-form__input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.l-cta_input.contact-form__input.is-invalid { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214, 69, 69, .35); }
.l-cta_status { flex: 0 0 100%; min-height: 1.5em; margin: 0; font-size: 14px; font-weight: 700; line-height: 1.5; color: #fff; }
.l-cta_status:empty { min-height: 0; }
.l-cta_done { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.l-cta_done svg { width: 56px; height: 56px; }
.l-cta_done circle { stroke: #fff; stroke-width: 3; }
.l-cta_done path { stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.l-cta_doneTitle { margin: 0; font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; }
.l-cta_doneUrl { flex: 0 0 100%; margin: 0; font-family: var(--font-mono); font-size: 13px; color: rgba(255, 255, 255, .82); overflow-wrap: anywhere; }

/* ---- 賽璐璐 CTA：官網 .cello 原樣（萊姆綠前景＋純黑 1.5px 框＋薰衣草位移陰影；整頁只此一顆） ---- */
.cello {
  position: relative;
  display: inline-flex;
  padding: 0;
  font: inherit;
  cursor: pointer;
  isolation: isolate;
  background: none;
  border: 0;
}
.cello__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-line);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: var(--accent-lime);
  border: 1.5px solid var(--ink-line);
  transition: transform .3s var(--ease-out);
}
.cello::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: var(--lavender);
  border: 1.5px solid var(--ink-line);
  transform: translate(8px, 8px);
  transition: transform .3s var(--ease-out);
}
.cello:hover .cello__label { transform: translate(-4px, -4px); }
.cello:hover::after { transform: translate(12px, 12px); }
.cello__arrow { font-size: 18px; line-height: 1; }
@media (prefers-reduced-motion: reduce) {
  .cello:hover .cello__label, .cello:hover::after { transform: none; }
}

@media (max-width: 1024px) {
  .l-cta_input.contact-form__input { flex-basis: 100%; max-width: none; }
  .c-logo--sm { margin-left: auto; }
}

/* ---- 換月橫向擦除（10-21 Kidult「月份的變換用刷的」）：藍塊左→右刷進、換字、再往右退開 ---- */
[data-layout="L3"] .cal_head .l-section_title { position: relative; width: fit-content; }
[data-layout="L3"] .cal_head .l-section_title::after {
  position: absolute;
  inset: 0 -8px 0 -8px;
  content: "";
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
[data-layout="L3"] .cal_head .l-section_title.is-wipe-in::after { transform: scaleX(1); transition: transform .24s cubic-bezier(.65, 0, .35, 1); }
[data-layout="L3"] .cal_head .l-section_title.is-wipe-out::after { transform: scaleX(0); transform-origin: right center; transition: transform .26s cubic-bezier(.65, 0, .35, 1); }
[data-layout="L3"] .cal_head .l-section_title.is-wipe-out:not(.x)::after { animation: wipeOut .26s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes wipeOut { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.stage.is-dark [data-layout="L3"] .cal_head .l-section_title::after,
.stage.is-dark .cal_head .l-section_title::after { background: #fff; }

/* ---------- 公開頁圖片出處（D-1021-1809-ask 選 A：只用品牌／官方圖並標出處） ----------
   I4：背景換圖時，右下角標這張圖的出處；只在背景亮起（.stage.is-dark）時出現。
   .stage 有 clip-path，position: fixed 的子元素會被裁在背景段內，捲出該段就不顯示 —— 這是要的。 */
[data-public][data-img="I4"] .stage.is-dark .l-header_credit {
  position: fixed;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: block;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .78);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  pointer-events: none;
}
/* I3 浮卡／條目內展開的圖，圖下一行標出處 */
.c-peek_imgCredit {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--c-muted, #6b6b73);
}

/* ======================================================================
   11-03 Kidult 選定（@design 規格 spec-1103-mobileB-images-cta.md）
   ① 手機 B 品牌感保留　② 條目附圖（圖片加強）　③ 頁尾 CTA A 空白的一列
   全部只對公開頁 html[data-public]；① 全包在 ≤1024px（11-03 平板併入手機單欄），桌機一條都不套。
   ====================================================================== */

/* ---------- ① 手機 B ---------- */
@media (max-width: 1024px) {
  /* 36px 縫：手機的 sticky 不再算比稿工具列（body padding-top 0 在上方 html[data-public] body 那行） */
  html[data-public] { --bar-h: 0px; --m-band: 56px; }

  /* 頁籤一排橫向滑動，右緣淡出提示還有 */
  html[data-public] .c-tabs_nav {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 0 var(--gutter) 2px;
    margin-inline: calc(var(--gutter) * -1);
    margin-top: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  html[data-public] .c-tabs_nav::-webkit-scrollbar { display: none; }
  html[data-public] .c-tabs_nav_btn { flex: none; white-space: nowrap; }

  /* 表頭兩行：標題＋logo／更新日＋聯絡我們 */
  html[data-public] .l-header_inner { gap: 6px 12px; align-items: center; padding-top: 18px; }
  html[data-public] .l-header_title { order: 1; }
  html[data-public] .c-logo--sm { order: 2; }
  html[data-public] .l-header_sub { order: 3; flex: 1 0 55%; min-width: 0; }
  html[data-public] .l-header_tools { order: 4; width: auto; margin-left: 0; }
  html[data-public] .l-header_btn { min-height: 40px; padding: 6px 18px; font-size: 13px; }

  /* sticky：月份列 56px（大字月份＋右側上下週箭頭）＋週日期條，合成一塊 */
  html[data-public][data-layout="L3"] .cal_head {
    top: 0;
    display: flex;
    align-items: center;
    height: var(--m-band);
    padding: 0 var(--gutter);
    margin-top: 12px;
    margin-bottom: 0;
  }
  html[data-public][data-layout="L3"] .cal_head .l-section_title { margin: 0; }
  html[data-public][data-layout="L3"] .cal_head .l-section_title::before { padding: 0; margin: 0; font-size: min(30px, 7.6vw); }
  html[data-public] .s3_mini.s3_mini { top: var(--m-band); z-index: 4; padding: 2px var(--gutter) 8px; margin-bottom: 0; }
  html[data-public] .s3_wHead {
    position: absolute;
    top: calc(var(--m-band) * -1);
    right: var(--gutter);
    gap: 6px;
    height: var(--m-band);
  }
  html[data-public] .s3_wLabel { display: none; }
  html[data-public] .s3_wHead .s3_arrow { width: 40px; height: 40px; }
  html[data-public] .s3_wDays { margin-top: 0; }
  html[data-public] .s3_wDay { min-height: 48px; }
  html[data-public][data-img="I4"] .s3 { padding-top: 0; }
  html[data-public] .s3_today { padding: 12px 0; }
  /* iOS Safari 不吃 background-attachment: fixed，sticky 帶改純墨黑 */
  html[data-public] .stage.is-dark .cal_head,
  html[data-public] .stage.is-dark .s3_mini.s3_mini { background: var(--night); }

  /* I4 背景的浮動出處：手機條目已有自己的「圖／品牌」，浮動標籤拿掉（Kidult 11-03） */
  html[data-public][data-img="I4"] .stage.is-dark .l-header_credit { display: none; }

  /* 日期欄 52 → 40px、列左右內距拿掉：標題寬 258 → 298px；目前那列改日期變色 */
  html[data-public] .s3_list .calendar_row {
    grid-template-columns: 2.5rem 1fr;
    column-gap: 12px;
    padding: 20px 0;
    scroll-margin-top: calc(var(--m-band) + var(--stick-h) + 12px);
  }
  html[data-public][data-img="I4"] .calendar_row.is-cur,
  html[data-public] .s3.is-dark .calendar_row.is-cur { background: none; box-shadow: none; }
  html[data-public] .s3.is-dark .calendar_row.is-cur .s3_dnum { color: var(--brand-soft); }
  html[data-public] .s3_dnum { font-family: var(--font-en); font-size: 24px; font-weight: 800; line-height: 1.1; }
  html[data-public] .calendar_row:not(:has(.s3_ddow)) .s3_dnum { font-size: 15px; line-height: 1.6; }
  html[data-public] .calendar_row:not(:has(.s3_ddow)) .calendar_date::after {
    font-family: var(--font-mono); font-size: 11px; color: var(--muted); content: "未定";
  }
  html[data-public] .stage.is-dark .calendar_row:not(:has(.s3_ddow)) .calendar_date::after { color: rgba(255, 255, 255, .7); }
  html[data-public] .s3_ddow { font-size: 11px; }
  html[data-public] .calendar_itemName { font-size: 18px; line-height: 1.45; }
  html[data-public] .calendar_itemSubTitle { margin-top: 6px; font-size: 14.5px; line-height: 1.75; }
  /* tag＋主辦一行，文章出處獨立一行 mono 小字、上方 hairline */
  html[data-public] .calendar_itemMeta { gap: 6px 10px; margin-top: 10px; font-size: 12.5px; }
  html[data-public] .calendar_itemMeta > span:last-child {
    flex-basis: 100%;
    padding-top: 8px;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .04em;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
}

/* ---------- ② 條目附圖：有 image（license: official）的列常駐一張圖，出處 figcaption 跟著圖 ---------- */
.calendar_fig { display: none; }
html[data-public][data-img="I4"] .calendar_fig { display: block; margin: 0; }
.calendar_fig a { display: block; }
.calendar_fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night); }
.calendar_fig figcaption {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--muted);
  text-align: right;
}
.stage.is-dark .calendar_fig figcaption,
.s3.is-dark .calendar_fig figcaption { color: rgba(255, 255, 255, .7); }
.calendar_row.is-past .calendar_fig img { opacity: .6; }
@media (min-width: 1025px) {
  .calendar_row.has-fig .calendar_body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(144px, 13vw, 192px);
    column-gap: 28px;
    align-items: start;
  }
  .calendar_row.has-fig .calendar_body > :not(.calendar_fig) { grid-column: 1; }
  .calendar_row.has-fig .calendar_fig { grid-row: 1 / span 3; grid-column: 2; margin-top: 4px; }
  .calendar_fig img { aspect-ratio: 16 / 10; }
}
@media (max-width: 1024px) {
  html[data-public][data-img="I4"] .calendar_fig { margin-top: 12px; }
}

/* ---------- ③ 頁尾 CTA A：空白的一列（CTA 長成行事曆的下一列） ---------- */
.l-cta--row { background: var(--night); border-top: 2px solid #fff; }
.l-cta--row .l-cta_h { font-size: clamp(34px, 5.4vw, 88px); line-height: 1.15; }
.l-cta--row .l-cta_rally { margin-bottom: clamp(32px, 4vw, 56px); }
.l-cta--row .l-cta_row {
  display: grid;
  grid-template-columns: clamp(64px, 7vw, 120px) 1fr;
  column-gap: clamp(16px, 2.4vw, 40px);
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 32px);
  background: rgba(124, 140, 255, .08);
  border: 1.5px dashed rgba(255, 255, 255, .5);
}
.l-cta--row .l-cta_date { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); }
.l-cta--row .l-cta_dnum { font-size: clamp(40px, 4.4vw, 64px); font-weight: 600; line-height: 1; color: var(--brand-soft); }
.l-cta--row .l-cta_dow { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: rgba(255, 255, 255, .82); }
.l-cta--row .l-cta_body { min-width: 0; }
.l-cta--row .l-cta_form { gap: 16px 24px; }
/* 網址欄＝這一列的標題：沒有框，只有底線，字級跟活動名同級 */
.l-cta--row .l-cta_input.contact-form__input {
  flex: 1 1 360px;
  max-width: none;
  min-height: 64px;
  padding: 8px 0;
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 800;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, .5);
  border-radius: 0;
}
.l-cta--row .l-cta_input.contact-form__input::placeholder { font-weight: 700; color: rgba(255, 255, 255, .5); }
.l-cta--row .l-cta_input.contact-form__input:focus { border-bottom-color: var(--accent-lime); box-shadow: none; }
.l-cta--row .l-cta_meta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 20px 0 0; font-size: 13px; color: rgba(255, 255, 255, .82); }
.l-cta--row .l-cta_metaLabel { margin-right: 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }
.l-cta--row .l-cta_done:not([hidden]) ~ .l-cta_meta--form { display: none; }
.l-cta--row .l-cta_done { display: block; }
.l-cta--row .l-cta_done[hidden] { display: none; }
.l-cta--row .l-cta_doneTitle { font-size: clamp(19px, 2.2vw, 28px); font-weight: 800; }
.l-cta--row .l-cta_doneUrl { margin-top: 6px; word-break: break-all; }
@media (max-width: 1024px) {
  .l-cta--row .l-cta_row { grid-template-columns: 1fr; row-gap: 16px; }
  .l-cta--row .l-cta_date { flex-direction: row; gap: 10px; align-items: baseline; }
  .l-cta--row .l-cta_btn, .l-cta--row .l-cta_btn .cello__label { width: 100%; }
}

@media (max-width: 1024px) {
  html[data-public] .s3_wHead .s3_arrow,
  html[data-public] .l-header_btn { position: relative; }
  html[data-public] .s3_wHead .s3_arrow::after { content: ""; position: absolute; inset: -3px; }
  html[data-public] .l-header_btn::after { content: ""; position: absolute; inset: -5px -1.5px; border-radius: 999px; }
}

/* ---------- Markoff 1103 意見：條目圖放大、出處壓圖右下；選中列左內距加寬（Kidult 11-03） ---------- */
.calendar_fig { position: relative; }
.calendar_fig figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 3px 8px;
  color: #fff;
  background: rgba(22, 22, 26, .72);
  pointer-events: none;
}
.stage.is-dark .calendar_fig figcaption,
.s3.is-dark .calendar_fig figcaption { color: #fff; }
@media (min-width: 1025px) {
  .s3_list .calendar_row { padding-inline: 24px; }
  .calendar_row.has-fig .calendar_body { grid-template-columns: minmax(0, 1fr) clamp(220px, 20vw, 320px); column-gap: 32px; }
}

/* ---------- Markoff 1103 意見（手機）：有圖的條目「圖→標題→文」，圖吃滿整列寬（含日期欄）；月份大標放大到箭頭旁放得下的最大 ---------- */
@media (max-width: 1024px) {
  html[data-public] .s3_list .calendar_row.has-fig { row-gap: 0; }
  html[data-public] .calendar_row.has-fig .calendar_body { display: contents; }
  html[data-public] .calendar_row.has-fig .calendar_body > * { grid-column: 2; }
  html[data-public] .calendar_row.has-fig .calendar_date { grid-row: 2; }
  html[data-public][data-img="I4"] .calendar_row.has-fig .calendar_fig { grid-row: 1; grid-column: 1 / -1; margin: 0 0 16px; }
}

/* ---------- Markoff 1103 意見（手機）：月份大標獨佔一列吃滿寬（最長的 SEPTEMBER 2026 剛好塞滿），上下週箭頭移到週日期條兩側 ---------- */
@media (max-width: 1024px) {
  html[data-public][data-layout="L3"] .cal_head { container-type: inline-size; }
  html[data-public][data-layout="L3"] .cal_head .l-section_title::before { font-size: calc(100cqi / 9.2); line-height: 1; white-space: nowrap; }
  html[data-public] .s3_week { position: relative; }
  html[data-public] .s3_wHead {
    top: 0;
    right: 0;
    left: 0;
    justify-content: space-between;
    height: 48px;
    pointer-events: none;
  }
  html[data-public] .s3_wHead .s3_arrow { width: 36px; pointer-events: auto; }
  html[data-public] .s3_wDays { padding-inline: 40px; }
}

/* ---------- 平板（清單欄 < 760px）：右欄放圖會把標題擠成一字一行，改跟手機一樣「圖在上吃滿列寬 → 標題 → 文」（Kidult 11-03「平板版面不行」） ---------- */
@media (min-width: 1025px) {
  .s3_list { container-type: inline-size; }
}
@container (max-width: 760px) {
  .calendar_row.has-fig .calendar_body { display: contents; }
  .calendar_row.has-fig .calendar_body > :not(.calendar_fig) { grid-column: 2; }
  .calendar_row.has-fig .calendar_date { grid-row: 2; }
  html[data-public][data-img="I4"] .calendar_row.has-fig .calendar_fig { grid-row: 1; grid-column: 1 / -1; margin: 0 0 18px; }
  .calendar_row.has-fig .calendar_fig img { aspect-ratio: 16 / 9; }
}

/* ---------- 桌機／平板：月份大標帶貼頂（Kidult 11-03「header 加高貼頂」）
   36px 縫是比稿工具列的 --bar-h，公開站沒有工具列（手機在 ① 已歸零，這裡補到所有寬度）；
   帶子往上加高 36px 補滿，大字留在原本離頂 48px 的位置 ---------- */
html[data-public] { --bar-h: 0px; }
@media (min-width: 1025px) {
  html[data-public][data-layout="L3"] .cal_head { padding-top: 48px; }
}

/* 平板併入手機單欄（Kidult 11-03「平板改成手機單欄」）：月份大字隨寬放大，月份帶高度跟著長，不再固定 56px */
@media (max-width: 1024px) {
  html[data-public] { --m-band: max(56px, calc((100vw - 2 * var(--gutter)) / 9.2 + 16px)); }
}

/* 表頭在平板也固定兩行（11-03 preview 1024 寬：更新日擠上第一行，聯絡我們落單成第三行）：更新日寬度設成整行減掉按鈕位，擠不上第一行，跟聯絡我們一起換到第二行 */
@media (max-width: 1024px) {
  html[data-public] .l-header_sub { flex: 1 0 calc(100% - 140px); }
}
