/*
 * Partner window additions (Prep P14-PARTNERS, 2026-09-28): the conditions re-accept banner
 * (js/partner-terms.js, .ptb-*) and the guide's briefs, recap forms and calendar link
 * (js/partner-guide-trips.js, .ptg-*). Loaded after tb-baekja.css on partner-portal.html.
 * No gold here: the page's one gold stays the message "보내기" button. Korean wraps between
 * words (keep-all); every serif stack carries Pretendard (Newsreader is latin-only).
 */

/* ── Conditions banner ─────────────────────────────────────────────── */
.ptb-banner {
  background: var(--color-celadon-soft, #DCE4DB);
  border: 1px solid var(--color-line, rgba(28, 27, 24, 0.08));
  border-radius: var(--radius-md, 12px);
  padding: 14px 18px;
  margin: 0 0 18px;
  word-break: keep-all;
}
.ptb-banner[hidden] { display: none; }
.ptb-text {
  margin: 0 0 10px;
  font-family: 'Newsreader', 'Pretendard', serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-ink, #1C1B18);
}
.ptb-banner.ko .ptb-text { font-family: 'Pretendard', 'Newsreader', serif; }
.ptb-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ptb-link { font-size: 13.5px; font-weight: 650; color: var(--color-celadon-deep, #44604F); text-decoration: underline; text-underline-offset: 3px; }
.ptb-accept {
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 13.5px; font-weight: 650;
  border-radius: 8px; padding: 8px 16px; cursor: pointer;
  border: 1px solid var(--color-celadon-deep, #44604F);
  background: var(--color-celadon-deep, #44604F); color: #fff;
}
.ptb-accept:disabled { opacity: 0.5; cursor: default; }
.ptb-note { margin: 10px 0 0; font-size: 13px; color: var(--color-ink-muted, #5A5E55); }
.ptb-note[hidden] { display: none; }
.ptb-done { font-size: 13.5px; color: var(--color-celadon-deep, #44604F); font-weight: 600; margin: 0 0 18px; }

/* ── Guide days ────────────────────────────────────────────────────── */
.ptg-wrap { margin: 0 0 8px; word-break: keep-all; }
.ptg-wrap[hidden] { display: none; }
.ptg-eyebrow { font-size: 12.5px; font-weight: 700; color: var(--color-ink-faint, #9AA09A); letter-spacing: 0.05em; margin: 0 0 10px; }
.ptg-card {
  background: #fff;
  border: 1px solid var(--color-line, rgba(28, 27, 24, 0.08));
  border-radius: var(--radius-md, 12px);
  padding: 18px 20px;
  margin: 0 0 12px;
}
.ptg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 0 0 10px; }
.ptg-date { font-family: 'Newsreader', 'Pretendard', serif; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.ptg-chip { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; background: var(--color-celadon-soft, #DCE4DB); color: var(--color-celadon-deep, #44604F); }
.ptg-chip.warn { background: var(--color-gold-soft, #F3EAD2); color: #7A5E1F; }
.ptg-rows { border-top: 2px solid var(--color-celadon-soft, #DCE4DB); }
.ptg-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--color-base-sunk, #EEF2F4); font-size: 14px; line-height: 1.6; }
.ptg-row:last-child { border-bottom: 0; }
.ptg-k { color: var(--color-ink-muted, #5A5E55); font-weight: 600; font-size: 13px; }
.ptg-v { color: var(--color-ink, #1C1B18); min-width: 0; overflow-wrap: anywhere; }
.ptg-stops { list-style: none; margin: 0; padding: 0; }
.ptg-stops li { padding: 3px 0; }
.ptg-time { font-variant-numeric: tabular-nums; font-weight: 650; margin-right: 8px; }
.ptg-sub { color: var(--color-ink-muted, #5A5E55); font-size: 12.5px; }
.ptg-photo { display: block; width: 100%; max-width: 360px; border-radius: 10px; margin-top: 8px; }
.ptg-strong { font-weight: 700; }
.ptg-empty { font-size: 14px; color: var(--color-ink-muted, #5A5E55); padding: 6px 0; }
.ptg-cal { display: inline-block; margin: 2px 0 14px; font-size: 13.5px; font-weight: 650; color: var(--color-celadon-deep, #44604F); }

.ptg-recap textarea {
  width: 100%; box-sizing: border-box; min-height: 130px; resize: vertical;
  font-family: 'Pretendard', -apple-system, sans-serif; font-size: 14.5px; line-height: 1.65;
  border: 1px solid var(--color-line, rgba(28, 27, 24, 0.08)); border-radius: 10px; padding: 12px 14px;
  background: var(--color-base, #F9FBFD); color: var(--color-ink, #1C1B18);
}
.ptg-recap-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.ptg-count { font-size: 12px; color: var(--color-ink-faint, #9AA09A); font-variant-numeric: tabular-nums; }
.ptg-count.over { color: #7A5E1F; font-weight: 700; }
.ptg-send {
  font-family: 'Pretendard', -apple-system, sans-serif; font-size: 13.5px; font-weight: 650;
  border-radius: 8px; padding: 8px 16px; cursor: pointer;
  border: 1px solid var(--color-celadon-deep, #44604F); background: var(--color-celadon-deep, #44604F); color: #fff;
}
.ptg-send:disabled { opacity: 0.5; cursor: default; }
.ptg-msg { font-size: 13px; color: var(--color-ink-muted, #5A5E55); margin: 8px 0 0; }

@media (max-width: 520px) {
  .ptg-row { grid-template-columns: 1fr; gap: 2px; }
  .ptg-card { padding: 16px; }
  .ptb-banner { padding: 12px 14px; }
}
