/* 生活剛好：迷你訂閱表單（2026-08-19 使用者指示：所有「免費訂閱」按鈕改成「輸入 Email＋訂閱」，比照主站）
   用法：<form class="nl-mini" data-life-subscribe>…<input type=email>…<button>訂閱</button><p class="form-note"></p></form>
   需搭配 /life/subscribe.js。變數 --ink／--coral／--coral-dark／--fs-xs 來自 life.css 或 issue.css。 */
.nl-mini { position: relative; display: flex; gap: 6px; align-items: stretch; margin: 0; }
.nl-mini input[type="email"] { width: clamp(120px, 22vw, 210px); min-height: 42px; padding: 0 14px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; font: inherit; font-size: var(--fs-xs); font-weight: 600; outline: 0; }
.nl-mini input[type="email"]::placeholder { color: #8a8194; font-weight: 600; }
.nl-mini input[type="email"]:focus { border-color: var(--coral-dark); box-shadow: 0 0 0 3px rgba(240, 144, 122, .28); }
.nl-mini button { min-height: 42px; padding: 0 18px; color: #fff; background: var(--coral); border: 0; border-radius: 999px; font: inherit; font-size: var(--fs-xs); font-weight: 800; white-space: nowrap; cursor: pointer; transition: background .2s, transform .2s; }
.nl-mini button:hover { background: var(--coral-dark); transform: translateY(-2px); }
.nl-mini button:disabled { opacity: .6; cursor: default; transform: none; }
.nl-mini .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-mini .form-note { position: absolute; top: 100%; right: 0; margin: 4px 0 0; padding: 0; min-height: 0; color: var(--ink-soft); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.nl-mini .form-note:empty { display: none; }
.nl-mini .form-note.success { color: #317149; }
.nl-mini .form-note.error { color: #a34131; }
/* 大尺寸（專題頁底部 CTA） */
.nl-mini--lg input[type="email"] { width: clamp(180px, 30vw, 300px); min-height: 50px; font-size: var(--fs-base); }
.nl-mini--lg button { min-height: 50px; padding: 0 22px; font-size: var(--fs-base); }
@media (max-width: 760px) {
  .nl-mini--lg { flex-direction: column; width: 100%; }
  .nl-mini--lg input[type="email"], .nl-mini--lg button { width: 100%; }
  .nl-mini--lg .form-note { position: static; white-space: normal; }
}
