/* Salary / severance calculators. Palette follows the site (#12343F, #005F61, #179999). */
.pc {
  --pc-ink: #12343f;
  --pc-teal: #005f61;
  --pc-accent: #179999;
  --pc-muted: #52525b;
  --pc-line: #e4e4e7;
  --pc-soft: #f4f8f8;
  color: var(--pc-ink);
}

.pc-head { margin-bottom: 24px; }
.pc-lead { color: var(--pc-muted); font-size: 16px; line-height: 24px; max-width: 760px; margin-top: 12px; }

.pc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.pc-tabs a {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--pc-line);
  background: #fff; font-size: 14px; font-weight: 500; color: var(--pc-ink);
}
.pc-tabs a.is-active { background: var(--pc-ink); border-color: var(--pc-ink); color: #fff; }

.pc-card { background: #fff; border-radius: 24px; padding: 24px; margin-bottom: 24px; }

.pc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pc-field { display: flex; flex-direction: column; gap: 6px; }
.pc-field[hidden] { display: none; }
.pc-field--wide { grid-column: 1 / -1; }
.pc-label { font-size: 13px; font-weight: 500; color: var(--pc-muted); }
.pc-hint { font-size: 12px; color: #71717a; }

.pc-input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--pc-line); border-radius: 12px;
  background: #fff; font-size: 16px; color: var(--pc-ink); outline: none;
}
.pc-input:focus { border-color: var(--pc-accent); box-shadow: 0 0 0 3px #17999926; }
.pc-num { text-align: right; font-variant-numeric: tabular-nums; }
select.pc-input { appearance: auto; }

.pc-check { flex-direction: row; align-items: center; gap: 10px; font-size: 14px; align-self: end; min-height: 48px; }
.pc-check input { width: 20px; height: 20px; accent-color: var(--pc-teal); flex-shrink: 0; }

.pc-segment { display: inline-flex; background: var(--pc-soft); border-radius: 14px; padding: 4px; width: fit-content; max-width: 100%; }
.pc-segment input { position: absolute; opacity: 0; pointer-events: none; }
.pc-segment span { display: block; padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pc-segment input:checked + span { background: var(--pc-ink); color: #fff; }
.pc-segment input:focus-visible + span { outline: 2px solid var(--pc-accent); }

.pc-agi { border: 1px dashed var(--pc-line); border-radius: 16px; padding: 16px; margin-top: 16px; }
.pc-agi[hidden] { display: none; }
.pc-agi legend { padding: 0 6px; }

.pc-fill { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 20px; }
.pc-fill .pc-field { flex: 1 1 220px; }

.pc-btn {
  height: 48px; padding: 0 24px; border-radius: 14px; border: 1px solid var(--pc-ink);
  background: var(--pc-ink); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.pc-btn:hover { background: var(--pc-teal); border-color: var(--pc-teal); }
.pc-btn--ghost { background: #fff; color: var(--pc-ink); }
.pc-btn--ghost:hover { background: var(--pc-soft); color: var(--pc-ink); border-color: var(--pc-ink); }

.pc-months { margin-top: 20px; }
.pc-months summary, .pc-params summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--pc-teal); }
.pc-months-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 14px; }
.pc-month { display: grid; grid-template-columns: 72px 1fr 64px; gap: 8px; align-items: center; font-size: 14px; }
.pc-month .pc-input { height: 42px; }
.pc-days { text-align: center; padding: 0 6px; }

.pc-error { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 14px; }
.pc-error[hidden] { display: none; }
.pc-warn { padding: 10px 12px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 14px; margin-bottom: 12px; }

.pc-result[hidden] { display: none; }
.pc-summary { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 24px; }
.pc-stat { background: #fff; border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.pc-stat span { font-size: 13px; color: var(--pc-muted); }
.pc-stat strong { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pc-stat--accent { background: var(--pc-ink); }
.pc-stat--accent span { color: #ffffffb3; }
.pc-stat--accent strong { color: #fff; }

.pc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pc-actions { display: flex; gap: 8px; }
.pc-h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.pc-toolbar .pc-h2 { margin: 0; }

.pc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border-radius: 20px; margin-bottom: 24px; }
.pc-table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.pc-table th, .pc-table td { padding: 10px 12px; border-bottom: 1px solid var(--pc-line); white-space: nowrap; text-align: right; }
.pc-table thead th { background: var(--pc-ink); color: #fff; font-weight: 500; font-size: 12px; position: sticky; top: 0; }
.pc-table th:first-child { position: sticky; left: 0; text-align: left; background: #fff; z-index: 1; font-weight: 600; }
.pc-table thead th:first-child { background: var(--pc-ink); z-index: 2; }
.pc-table tbody tr:nth-child(even) td, .pc-table tbody tr:nth-child(even) th { background: #fafafa; }
.pc-table tr.is-empty td { color: #a1a1aa; }
.pc-table td.is-strong { font-weight: 700; }
.pc-table tfoot th, .pc-table tfoot td { background: var(--pc-soft); font-weight: 600; }

.pc-cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pc-detail { margin-bottom: 0; }
.pc-dl { display: grid; grid-template-columns: 1fr auto; gap: 0; font-size: 14px; }
.pc-dl dt, .pc-dl dd { padding: 10px 0; border-bottom: 1px solid var(--pc-line); }
.pc-dl dt { color: var(--pc-muted); padding-right: 12px; }
.pc-dl dd { text-align: right; font-variant-numeric: tabular-nums; }
.pc-dl dd.is-strong { font-weight: 700; font-size: 16px; }

.pc-params { margin-top: 24px; }
.pc-param-block { margin-top: 16px; }
.pc-param-block h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.pc-mini { width: 100%; max-width: 420px; margin-top: 12px; font-size: 14px; border-collapse: collapse; }
.pc-mini th, .pc-mini td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--pc-line); }
.pc-mini th { color: var(--pc-muted); font-weight: 500; }
.pc-list { margin-top: 12px; padding-left: 20px; list-style: disc; display: grid; gap: 8px; font-size: 14px; line-height: 22px; color: var(--pc-muted); }

.pc-note { font-size: 13px; color: #71717a; margin-top: 8px; }

@media (max-width: 767px) {
  .pc-card { padding: 18px; border-radius: 20px; }
  .pc-segment { display: flex; width: 100%; }
  .pc-segment label { flex: 1; }
  .pc-segment span { text-align: center; padding: 10px 8px; }
  .pc-fill .pc-btn { flex: 1 1 100%; }
  .pc-stat strong { font-size: 20px; }
  .pc-summary { grid-template-columns: 1fr 1fr; }
  .pc-summary .pc-stat--accent { grid-column: 1 / -1; }
  .pc-month { grid-template-columns: 64px 1fr 56px; }
  .pc-dl { font-size: 13px; }
}

@media print {
  #header-menu, .top-header, footer, .fixed, .pc-tabs, form, .pc-actions, .pc-params, .slider-pagination { display: none !important; }
  body { padding: 0 !important; background: #fff !important; }
  .mt-\[124px\] { margin-top: 0 !important; }
  .pc-table-wrap { overflow: visible; }
  .pc-table { font-size: 9px; }
  .pc-table th, .pc-table td { padding: 4px; }
}
