/* Public calculators (/tools, 2026-11-24): the public pages' dark card design. */
.pt-wrap { max-width: 860px; }
.pt-crumb { font-size: 12.5px; color: var(--muted); margin: 4px 0 6px; }
.pt-crumb a { color: var(--accent2); text-decoration: none; }
.pt-h1 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; }
.pt-lead { color: #cbd5e1; font-size: 15px; line-height: 1.6; margin: 0 0 18px; max-width: 70ch; }
.pt-card { display: block; background: var(--pp-surface, rgba(255,255,255,.04)); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
.pt-h2 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.pt-form { display: grid; gap: 12px; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.pt-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; border: 0; padding: 0; margin: 0; }
.pt-lab { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pt-input { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(15,23,42,.85); color: var(--text); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; }
.pt-affix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: rgba(15,23,42,.85); padding: 0 10px; }
.pt-affix .pt-input { border: 0; background: transparent; padding: 8px 4px; }
.pt-affix span { color: var(--muted); font-weight: 600; }
.pt-input:focus-visible, .pt-btn:focus-visible, .pt-x:focus-visible, .pt-chip:focus-within, .pt-tile:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.pt-hint, .pt-small { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.pt-legs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pt-leg { display: flex; align-items: flex-end; gap: 6px; }
.pt-leg .pt-field { flex: 1; }
.pt-x { flex: none; width: 38px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.pt-x[disabled] { opacity: .35; cursor: not-allowed; }
.pt-row { display: flex; gap: 8px; }
.pt-btn { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(96,165,250,.35); background: rgba(59,130,246,.1); color: var(--accent2); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.pt-btn[disabled] { opacity: .45; cursor: not-allowed; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; cursor: pointer; }
.pt-chip.is-on { border-color: rgba(96,165,250,.6); background: rgba(59,130,246,.16); }
.pt-out { margin-top: 16px; }
.pt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pt-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(96,165,250,.25); background: rgba(59,130,246,.07); }
.pt-stat-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pt-stat-v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-stat-s { font-size: 12px; color: var(--muted); }
.pt-err { color: #fca5a5; font-size: 13.5px; margin: 0; }
.is-up { color: #4ade80; } .is-down { color: #fca5a5; }
.pt-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pt-table caption { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.pt-table th, .pt-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: right; }
.pt-table th:first-child, .pt-table thead th:first-child { text-align: left; }
.pt-table thead th { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.pt-how p, .pt-how li { color: #cbd5e1; font-size: 14px; line-height: 1.65; margin: 0 0 10px; }
.pt-how a, .pt-note a { color: var(--accent2); }
.pt-formula { padding-left: 18px; }
.pt-ex { padding: 10px 12px; border-radius: 10px; background: rgba(148,163,184,.08); }
.pt-faq details { border-top: 1px solid var(--border); padding: 10px 0; }
.pt-faq details:first-of-type { border-top: 0; padding-top: 0; }
.pt-faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.pt-faq p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 6px 0 0; }
.pt-others ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 14px; }
.pt-others a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; }
.pt-others a:hover { border-color: rgba(96,165,250,.5); }
.pt-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.pt-index { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 0; margin: 0 0 16px; }
.pt-tile { text-decoration: none; color: var(--text); height: 100%; margin: 0; }
.pt-tile:hover { border-color: rgba(96,165,250,.5); }
.pt-tile-name { display: block; font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.pt-tile-copy { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 640px) {
  .pt-h1 { font-size: 22px; }
  .pt-card { padding: 14px; }
  .pt-table { font-size: 12.5px; }
  .pt-stat-v { font-size: 19px; }
}
