:root {
  /* PHC brand tokens: home and every public subpage read these values. */
  --phc-bg: #f6f3ed;
  --phc-paper: #fbfaf6;
  --phc-ink: #20221d;
  --phc-muted: #64675f;
  --phc-line: #d9d4ca;
  --phc-sage: #71806d;
  --phc-forest: #28372d;
  --phc-warm: #e8dfd0;
  --phc-sage-soft: color-mix(in srgb, var(--phc-sage) 52%, var(--phc-paper));
  --phc-sage-tint: color-mix(in srgb, var(--phc-sage) 12%, var(--phc-paper));
  --phc-ok: #5c8a4a;
  --phc-bad: #c25c47;
  --phc-sans: "SUIT Variable", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --phc-serif: "Cormorant Garamond", Georgia, serif;

  /* Short aliases retained for the existing page styles. */
  --ink: var(--phc-ink);
  --sub: var(--phc-muted);
  --line: var(--phc-line);
  --bg: var(--phc-bg);
  --paper: var(--phc-bg);
  --cream: var(--phc-paper);
  --warm: var(--phc-warm);
  --sage: var(--phc-sage);
  --sage-soft: var(--phc-sage-soft);
  --sage-tint: var(--phc-sage-tint);
  --forest: var(--phc-forest);
  --ok: var(--phc-ok);
  --bad: var(--phc-bad);
  --font-sans: var(--phc-sans);
  --font-serif: var(--phc-serif);
  --serif: var(--phc-serif);
}

body.phc-subpage {
  margin: 0;
  color: var(--phc-ink);
  background: var(--phc-bg);
  font-family: var(--phc-sans);
  letter-spacing: -.015em;
}

.phc-subpage h1,
.phc-subpage h2,
.phc-subpage h3,
.phc-subpage h4,
.phc-subpage button,
.phc-subpage input,
.phc-subpage select,
.phc-subpage textarea {
  font-family: var(--phc-sans) !important;
}

.phc-subpage :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--phc-sage) 42%, transparent);
  outline-offset: 3px;
}

.phc-subpage :where(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--phc-sage);
}

.phc-shell {
  position: relative;
  z-index: 1000;
  background: rgba(246, 243, 237, .96);
  border-bottom: 1px solid var(--phc-line);
}

.phc-funding {
  min-height: 38px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: var(--phc-forest);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.phc-funding span {
  padding: 2px 8px;
  color: var(--phc-forest);
  background: #e7dfca;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .02em;
}

.phc-funding i { font-style: normal; opacity: .78; }

.phc-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 28px;
}

.phc-brand { display: inline-flex; align-items: center; width: 188px; }
.phc-brand img { display: block; width: 100%; height: auto; }

.phc-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
}

.phc-nav a {
  color: var(--phc-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.phc-nav a:hover,
.phc-nav a[aria-current="page"] { color: var(--phc-ink); }

.phc-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--phc-ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.phc-menu {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--phc-line);
  border-radius: 50%;
  color: var(--phc-ink);
  background: transparent;
  font-size: 19px;
  cursor: pointer;
}

/* 각 페이지에 남아 있던 예전 컬러 로고 머리글은 새 공통 머리글로 교체합니다. */
.phc-subpage > .ghead { display: none !important; }
.phc-subpage > .nav,
.phc-subpage > .topbar { display: none !important; }

.phc-subpage .cta {
  min-height: auto !important;
  padding-top: clamp(64px, 8vw, 96px);
  background: var(--phc-bg);
}

.phc-subpage .cta__inner { width: min(760px, calc(100% - 32px)); }
.phc-subpage .cta__title {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--phc-ink);
  font-weight: 800 !important;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.22;
  letter-spacing: -.045em;
  word-break: keep-all;
  text-wrap: balance;
}

.phc-subpage .cta__sub {
  max-width: 660px;
  color: var(--phc-muted);
  line-height: 1.8;
  word-break: keep-all;
}

.phc-subpage .section__eyebrow,
.phc-subpage .products__cat,
.phc-subpage .pform__sub { color: var(--phc-sage); }

.phc-subpage .pform,
.phc-subpage .product,
.phc-subpage .review,
.phc-subpage .qna__form,
.phc-subpage .guide__card,
.phc-subpage .survive__card {
  background: var(--phc-paper);
  border-color: var(--phc-line);
  box-shadow: 0 24px 60px -48px rgba(32, 34, 29, .35);
}

.phc-subpage .pform__tabs {
  width: min(520px, 100%);
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--phc-line);
  border-radius: 18px;
  background: rgba(255,255,255,.45);
}

.phc-subpage .pform__tab {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  font-size: 15px;
}

.phc-subpage .pform__tab.is-active {
  color: #fff;
  background: var(--phc-forest);
}

.phc-subpage .pform__grid { align-items: stretch; }
.phc-subpage .pform__grid > .pf {
  display: flex !important;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  align-content: initial;
  justify-content: flex-start;
  gap: 8px;
}

.phc-subpage .pform__grid > .pf > .pf__label {
  min-height: 44px;
  display: block;
  line-height: 1.5;
}

.phc-subpage .pform__grid > .pf > input,
.phc-subpage .pform__grid > .pf > select,
.phc-subpage .pform__grid > .pf > textarea {
  margin-top: auto !important;
  grid-row: auto !important;
}

.phc-subpage .pform input,
.phc-subpage .pform select,
.phc-subpage .pform textarea {
  border-color: var(--phc-line);
  background: #f8f6f0;
}

.phc-subpage .btn--primary { background: var(--phc-forest); }
.phc-subpage.sage-ui .btn--primary { background: var(--phc-sage); }
.phc-subpage .btn--ghost { border-color: var(--phc-line); }

.personal-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.business-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.personal-paths a {
  display: flex;
  min-height: 92px;
  padding: 16px;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--phc-line);
  border-radius: 14px;
  color: var(--phc-ink);
  background: #f8f6f0;
  font-size: 14px;
  font-weight: 700;
}

.personal-paths a span {
  color: var(--phc-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.phc-subpage .footer { border-top-color: var(--phc-line); background: #ebe5da; }

@media (max-width: 880px) {
  .phc-header {
    width: min(100% - 32px, 1180px);
    min-height: 72px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .phc-brand { width: 158px; }
  .phc-menu { display: inline-grid; place-items: center; }
  .phc-header-cta { display: none; }
  .phc-nav {
    display: none;
    grid-column: 1 / -1;
    padding: 4px 0 20px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }
  .phc-nav.is-open { display: flex; }
  .phc-nav a {
    padding: 13px 2px;
    border-top: 1px solid var(--phc-line);
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .phc-funding { padding: 8px 12px; gap: 6px; font-size: 11px; }
  .phc-funding i { display: none; }
  .phc-brand { width: 145px; }
  .phc-subpage .cta { padding-top: 48px; }
  .phc-subpage .cta__title { font-size: clamp(29px, 9.5vw, 40px); }
  .phc-subpage .pform__grid { grid-template-columns: 1fr; }
  .phc-subpage .pform__grid > .pf > .pf__label { min-height: 0; }
  .personal-paths,
  .business-paths { grid-template-columns: 1fr; }
  .personal-paths a { min-height: 74px; }
}

/* Keep the shared consultation widget aligned with the PHC sage UI. */
html body .pcb-btn,
html body .pcb-head,
html body .pcb-send,
html body .pcb-m.me {
  background: var(--phc-sage) !important;
}

html body .pcb-m a { color: var(--phc-sage) !important; }
html body .pcb-in:focus { border-color: var(--phc-sage) !important; }
