/* B2 共用視覺：單一淺色頁尾、墨色文字與白底墨框選中態。 */
h1, .page-header h1, .page-header__title, .product-head__title { font-size: 32px; }
.btn--primary, .btn--primary:hover, .btn--primary:active { color: var(--color-ink); }
.btn--outline, .btn--ghost,
.btn--outline:hover, .btn--ghost:hover,
.btn--outline:active, .btn--ghost:active {
  color: var(--color-ink); background: var(--color-paper); border-color: var(--color-ink);
}
.site-header__link[aria-current], .product-info__breadcrumb [aria-current],
.fup-benefit, .price-table__hot { color: var(--color-ink); }
.site-header__link[aria-current="page"], .site-header__link[aria-current="page"]:hover {
  color: var(--color-ink); background: var(--color-paper); border: 1.5px solid var(--color-ink);
}
.dest-card .dest-card__price strong,
.speed-tier-card__pricing strong, .plan-summary__price, .buy-bar__price {
  color: var(--color-ink); font-size: 20px; font-weight: 700;
}
.speed-tier-card__badge { background: var(--color-cream-deep); color: var(--color-ink); }
.dest-card__media--soon img { filter: grayscale(1); opacity: .75; }
.dest-card__soon { color: var(--color-ink-soft); background: #F5F1E8; }
.chip.is-active, .day-quick__chip.is-active,
.tabs button.is-active, .speed-tier-card.is-active {
  background: var(--color-paper); border-color: var(--color-ink); color: var(--color-ink);
}
.site-footer { padding: 32px 0 24px; background: var(--color-cream); }
.site-footer__desc {
  max-width: none; color: var(--color-ink); font-size: 22px;
  font-weight: 700; line-height: 1.5; text-wrap: balance; word-break: keep-all;
}
/* 頁腳路線兩欄（由上而下）：build 輸出單層 <a> 清單（check.js 檢查 17 ③ 依此計數與驗在售優先），分欄只用 CSS。 */
.site-footer__routes { display: block; columns: 2; column-gap: 16px; }
.site-footer__routes > a { break-inside: avoid; min-width: 0; overflow-wrap: anywhere; }
.site-footer__group > summary::after {
  display: flex; align-items: center; justify-content: center; flex: 0 0 28px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--color-cream-deep);
  color: var(--color-ink); font-size: 20px; font-weight: 400; line-height: 1;
}
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1.15fr 1.8fr .85fr 1fr; gap: 28px; }
  .site-footer__group[open] > summary::after { display: none; }
}
@media (forced-colors: active) {
  .chip.is-active, .day-quick__chip.is-active,
  .tabs button.is-active, .speed-tier-card.is-active {
    background: Highlight; border-color: Highlight; color: HighlightText; forced-color-adjust: none;
  }
}
@media (min-width: 768px) { .site-footer__routes > a { padding-block: 4px; } }

/* ===== 10-19 收尾 c1 購物車與結帳（全站共用的三條） ===== */
/* toast：原本 left:50% 只剩半個視口可用，長句被壓成窄條；改為內容寬，最多到兩側各留 16px。
   10-19 c3-0：各行長度拉平（balance）；中文詞不從中間斷（keep-all），Chrome 斷點落在逗號、句號；超長字串仍由 overflow-wrap 兜住。
   keep-all 只給非 WebKit：WebKit（iPhone 上所有瀏覽器）加了 keep-all 只在空格換行，「最多 10｜種方案」被拆開、320 寬「訂｜單。」，
   同 10-19 hotfix 結帳付款行的原因；只有 WebKit 支援 hanging-punctuation，用它認出 WebKit，WebKit 照一般斷行 */
.npn-toast { width: max-content; max-width: calc(100vw - 32px); border-radius: 16px; text-align: center; line-height: 1.5; text-wrap: balance; overflow-wrap: anywhere; }
@supports not (hanging-punctuation: first) { .npn-toast { word-break: keep-all; } }
/* 欄位錯誤：js/utils.js 以 inline style 寫 13px，低於 14px 下限；先用 !important 拉回 14px。等黃區把 inline style 收進 .form-error（REFACTOR_BACKLOG Y3）後刪掉 !important */
.form-error { font-size: var(--fs-4) !important; line-height: 1.5; }
/* 暫停銷售時，頁首提示列「付款後自動發卡・免註冊・全方案吃到飽」與暫停公告條矛盾，只留暫停條 */
.site-pause + .site-notice { display: none; }

/* ===== 10-19 折疊內文左右留白（負責人：手機版展開的框，右邊空隙不能比左邊明顯大） =====
   WebKit（iPhone 上所有瀏覽器都是）的 text-wrap: pretty 會整段重排、把每一行都收短，右邊空出一截（首頁步驟 1 在 390 寬左 20、右 86.8）；
   Chrome 的 pretty 只微調最後幾行，照舊保留。只有 WebKit 支援 hanging-punctuation，用它認出 WebKit：
   ① 折疊內文換行改回一般（含日後新加的 pretty）；取卡頁整頁（c2 在 b2-pages.css 給 .b2-order .success-page 加的 pretty，WebKit 下 320–414 寬 eSIM 卡右邊比左邊多 12～53px、離開提示最多多 86px）也一起改回一般。
      !important 白名單：要壓過各元件自己寫的 pretty，:where 不加權重；
   ② 沒有巢狀折疊的折疊內文，行尾放不下的「，。、」懸在右內距裡，不再把前一個字一起帶到下一行（巢狀折疊的問題列不受影響）。 */
@supports (hanging-punctuation: first) {
  :where(details > :not(summary), details > :not(summary) *, .b2-order .success-page) { text-wrap-style: auto !important; }
  :where(details:not(:has(details)) > :not(summary)) { hanging-punctuation: allow-end; }
}
