/* Park & Co Lawyers — Settlement Cost Navigator Unified Editorial Styles (2026.11) */
:root {
  --pk-bg: #FBF9F5;
  --pk-surface: #FFFFFF;
  --pk-surface-2: #F4EFE6;
  --pk-ink: #14282A;
  --pk-ink-2: #3A4D4F;
  --pk-muted: #667678;
  --pk-brand: #0E3A3E;
  --pk-brand-2: #1F5A5E;
  --pk-accent: #B68B40;
  --pk-danger: #9E2A2B;
  --pk-danger-bg: #FDF2F2;
  --pk-warn: #946200;
  --pk-warn-bg: #FFF9EB;
  --pk-ok: #1D6B47;
  --pk-ok-bg: #EEF8F2;
  --pk-line: #E5DFD3;
  --pk-radius: 12px;
  --pk-radius-sm: 8px;
  --pk-shadow: 0 4px 18px rgba(20, 40, 42, 0.05);
  --pk-font: 'Pretendard', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

[id] {
  scroll-margin-top: 76px;
}

body {
  margin: 0;
  background: var(--pk-bg);
  color: var(--pk-ink);
  font-family: var(--pk-font);
  font-size: 15.5px;
  line-height: 1.68;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--pk-brand); }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--pk-surface);
  padding: 8px 12px;
  z-index: 1000;
  border-radius: 6px;
}
.skip:focus { top: 8px; }

.sc-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Unified 1-Row Sticky Header */
.pk-unified-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(251, 249, 245, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pk-line);
}

.pk-unified-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pk-unified-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pk-ink);
  font-weight: 800;
  font-size: 14.5px;
}

.pk-unified-brand img { height: 28px; width: auto; }

.pk-unified-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pk-unified-nav a {
  color: var(--pk-ink-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}
.pk-unified-nav a:hover { color: var(--pk-brand); text-decoration: underline; }

.pk-unified-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pk-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--pk-brand);
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--pk-brand);
}
.pk-btn-cta:hover { background: var(--pk-brand-2); }

.sc-lang-switch {
  display: inline-flex;
  border: 1px solid var(--pk-line);
  border-radius: 8px;
  background: var(--pk-surface);
  overflow: hidden;
}
.sc-lang-btn {
  border: 0;
  background: transparent;
  color: var(--pk-ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
}
.sc-lang-btn.active { background: var(--pk-brand); color: #FFFFFF; }

/* Compact Editorial Hero */
.sc-hero {
  padding: 26px 0 16px;
}
.sc-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pk-brand);
  margin: 0 0 6px;
}
.sc-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.sc-lead {
  margin: 0;
  max-width: 820px;
  color: var(--pk-ink-2);
  font-size: 15px;
}

/* Top Interactive Condition Bar & Family Calculator */
.sc-cond-bar {
  background: var(--pk-surface);
  border: 1px solid var(--pk-line);
  border-top: 4px solid var(--pk-brand);
  border-radius: var(--pk-radius);
  box-shadow: var(--pk-shadow);
  padding: 18px 20px;
  margin: 14px 0 18px;
}

.sc-cond-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.sc-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pk-ink-2);
  margin-bottom: 5px;
}

.sc-select, .sc-num-input {
  width: 100%;
  border: 1px solid #D5CEC0;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pk-ink);
  background: #FCFBF8;
}

.sc-kids-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--pk-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sc-kids-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sc-kid-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pk-surface-2);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.sc-kid-stepper input {
  width: 48px;
  padding: 4px 6px;
  text-align: center;
  border: 1px solid #D5CEC0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  background: #FFFFFF;
}

.sc-calc-result {
  background: #F4F8F8;
  border: 1px solid #C6D9DA;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--pk-ink);
  flex: 1;
  min-width: 260px;
}

/* 1-Line Personalised Summary Banner */
.sc-summary-banner {
  background: var(--pk-surface);
  border: 1.5px solid var(--pk-brand);
  border-radius: var(--pk-radius);
  padding: 14px 18px;
  margin: 0 0 26px;
}

.sc-summary-banner__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--pk-brand);
  margin: 0 0 10px;
}

.sc-summary-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.sc-sum-item {
  background: #FCFBF8;
  border: 1px solid var(--pk-line);
  border-radius: 8px;
  padding: 9px 12px;
}

.sc-sum-item span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pk-muted);
}

.sc-sum-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pk-ink);
  margin-top: 2px;
}

/* Status Conclusion Badges */
.sc-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-right: 6px;
}
.sc-pill--ok { background: var(--pk-ok-bg); color: var(--pk-ok); }
.sc-pill--fee { background: var(--pk-warn-bg); color: var(--pk-warn); }
.sc-pill--danger { background: var(--pk-danger-bg); color: var(--pk-danger); }
.sc-pill--muted { background: var(--pk-surface-2); color: var(--pk-ink-2); }

/* Sections & Cards */
.sc-section {
  padding: 28px 0;
  border-top: 1px solid var(--pk-line);
}

.sc-section h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.sc-intro {
  margin: 0 0 16px;
  color: var(--pk-ink-2);
  max-width: 840px;
  font-size: 14.5px;
}

.sc-card {
  background: var(--pk-surface);
  border: 1px solid var(--pk-line);
  border-radius: var(--pk-radius);
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(20, 40, 42, 0.03);
}

/* Comparison Rows */
.cmp-head, .crow {
  display: grid;
  grid-template-columns: 7rem 1fr 1fr;
  gap: 10px 16px;
  align-items: start;
}

.cmp-head {
  padding: 10px 12px;
  background: var(--pk-surface-2);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pk-ink);
}

.crow {
  padding: 12px 12px;
  border-bottom: 1px solid var(--pk-line);
  border-radius: 6px;
}

.crow.is-highlighted {
  background: #F1F7F7;
  border: 1.5px solid var(--pk-brand);
}

.crow .st { margin: 0; font-weight: 800; font-size: 14px; }
.crow .st a { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--pk-brand); }
.crow .amt { margin: 0; font-size: 14px; line-height: 1.5; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { background: var(--pk-surface-2); color: var(--pk-ink); font-weight: 800; padding: 10px 12px; text-align: left; }
td { padding: 10px 12px; border-bottom: 1px solid var(--pk-line); vertical-align: top; }
tr.is-highlighted td { background: #F1F7F7; }

.sc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sc-grid-4, .buy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.buy-grid article {
  padding: 14px 16px;
  border: 1px solid var(--pk-line);
  border-radius: var(--pk-radius);
  background: var(--pk-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.buy-grid article.is-highlighted {
  border: 2px solid var(--pk-brand);
  background: #F1F7F7;
  box-shadow: var(--pk-shadow);
}

.buy-grid .st { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--pk-muted); }
.buy-grid b { display: block; margin: 6px 0; font-size: 26px; font-weight: 800; color: var(--pk-brand); }
.buy-grid b.word { font-size: 18px; color: var(--pk-ok); }
.buy-grid p:last-child { margin: 0; font-size: 13.5px; color: var(--pk-ink-2); line-height: 1.5; }

details.pk-disclosure {
  background: var(--pk-surface);
  border: 1px solid var(--pk-line);
  border-radius: var(--pk-radius);
  margin: 14px 0;
  overflow: hidden;
}
details.pk-disclosure > summary {
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.pk-disclosure > summary::-webkit-details-marker { display: none; }
details.pk-disclosure > summary::after { content: "+"; font-size: 18px; color: var(--pk-muted); }
details.pk-disclosure[open] > summary { background: var(--pk-surface-2); border-bottom: 1px solid var(--pk-line); }
details.pk-disclosure[open] > summary::after { content: "−"; }
.pk-disclosure__body { padding: 14px 16px; font-size: 13.8px; color: var(--pk-ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 10px 0; }
.chips li { list-style: none; padding: 4px 10px; border-radius: 999px; background: var(--pk-surface-2); font-size: 13px; font-weight: 700; }

/* Footer + Preserved Visit Counter v2.1 */
footer.sc-footer {
  background: var(--pk-brand);
  color: #E6ECEC;
  padding: 28px 0 32px;
  font-size: 13px;
  border-top: 3px solid var(--pk-accent);
  margin-top: 28px;
}
footer.sc-footer a { color: #F6DFA4; font-weight: 700; text-decoration: none; }
footer.sc-footer a:hover { text-decoration: underline; }

.visit-counter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; align-items: center; }
.visit-counter[hidden] { display: none !important; }
.visit-counter:not([hidden]) { cursor: pointer; }
.visit-counter > span em { font-style: normal; }
.visit-counter > span { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; color: #F1F5F5; display: inline-flex; align-items: center; }
.visit-counter:not([hidden]):hover > span { border-color: #F6DFA4; background: rgba(255, 255, 255, 0.14); }
.visit-counter b { color: #F6DFA4; font-weight: 800; margin-left: 6px; font-variant-numeric: tabular-nums; }
#vc-modal { display: none; position: fixed; inset: 0; z-index: 3200; background: rgba(20, 40, 42, 0.58); align-items: center; justify-content: center; padding: 16px; }
#vc-modal.open { display: flex; }
#vc-modal .vc-dialog { background: #FFFFFF; color: #14282A; text-align: left; border-radius: 14px; box-shadow: 0 20px 48px rgba(20, 40, 42, 0.28); width: min(700px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 20px 16px; font-family: var(--pk-font); }
#vc-modal h3 { margin: 0 0 10px; font-size: 1.04rem; font-weight: 800; padding-right: 32px; color: #14282A; }
#vc-modal h3 small { font-weight: 500; color: #667678; font-size: 0.78rem; }
#vc-modal .vc-close { float: right; border: 0; background: none; font-size: 1.45rem; line-height: 1; cursor: pointer; color: #667678; min-width: 34px; min-height: 34px; padding: 0; }
.vc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 8px; flex-wrap: wrap; }
.vc-range-tabs { display: inline-flex; gap: 4px; background: var(--pk-surface-2); padding: 3px; border-radius: 999px; }
.vc-range-btn { border: 0; background: transparent; color: #3A4D4F; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.vc-range-btn.active { background: var(--pk-brand); color: #FFFFFF; }
.vc-svg { width: 100%; height: auto; display: block; }
.vc-grid { stroke: #E5DFD3; stroke-width: 1; }
.vc-ylab { font-size: 11px; fill: #667678; text-anchor: end; }
.vc-xlab { font-size: 11px; fill: #667678; text-anchor: middle; }
.vc-bar { fill: #DCEBEB; stroke: #8FB6B8; }
.vc-line { fill: none; stroke: #0E3A3E; stroke-width: 2; }
.vc-dot { fill: #0E3A3E; }
.vc-legend { display: flex; gap: 16px; font-size: 0.8rem; color: #3A4D4F; margin-top: 6px; }
.vc-legend i { display: inline-block; width: 14px; height: 10px; margin-right: 6px; vertical-align: middle; }
.vc-k-bar { background: #DCEBEB; border: 1px solid #8FB6B8; }
.vc-k-line { height: 2px !important; background: #0E3A3E; }
.vc-sum { font-size: 0.8rem; color: #3A4D4F; margin: 8px 0 0; line-height: 1.5; }
.vc-ref-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid #E5DFD3; }
.vc-ref-title { font-size: 0.86rem; font-weight: 800; color: #14282A; margin: 0 0 6px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.vc-ref-title small { font-weight: 500; font-size: 0.75rem; color: #667678; }
.vc-ref-list { display: grid; gap: 5px; margin: 6px 0 0; }
.vc-ref-row { display: grid; grid-template-columns: minmax(135px, 1.35fr) minmax(80px, 2fr) auto; align-items: center; gap: 8px; font-size: 0.79rem; }
.vc-ref-name { font-weight: 600; color: #14282A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-ref-track { height: 8px; background: var(--pk-surface-2); border-radius: 999px; overflow: hidden; }
.vc-ref-fill { height: 100%; background: var(--pk-brand); border-radius: 999px; }
.vc-ref-val { font-variant-numeric: tabular-nums; font-weight: 700; color: #3A4D4F; text-align: right; min-width: 74px; }
.vc-ref-note { font-size: 0.74rem; color: #667678; margin: 6px 0 0; line-height: 1.45; }
.vc-share-box { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #E5DFD3; }
.vc-share-lbl { font-size: 0.76rem; font-weight: 700; color: #3A4D4F; margin: 0 0 6px; }
.vc-share-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-share-chip { border: 1px solid #D8D1C3; background: #FBF9F5; color: #14282A; border-radius: 999px; padding: 4px 10px; font-size: 0.74rem; font-weight: 600; cursor: pointer; }
.vc-share-chip:hover { border-color: var(--pk-brand); background: #EDF4F4; color: var(--pk-brand); }

@media (max-width: 900px) {
  .sc-grid-2 { grid-template-columns: 1fr; }
  .sc-grid-4, .buy-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .sc-wrap { padding: 0 14px; }
  .sc-grid-4, .buy-grid { grid-template-columns: 1fr; }
  .cmp-head, .crow { grid-template-columns: 1fr; }
}
