/* What a PTSD rating looks like, 2026-11-17. C3 subpage palette (common.css). */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --highlight: #c5a84e; --surface: #131a0e; --surface-2: #18210f; --red: #e35d5d; }

body { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: var(--accent); }
a:hover { color: var(--highlight); }
.container { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }

header { text-align: center; margin-bottom: 1.75rem; }
.page-label { font-size: 0.78rem; letter-spacing: 0.25em; color: var(--accent-dim); text-transform: uppercase; margin-bottom: 0.5rem; }
h1 { font-size: 2rem; font-weight: 300; line-height: 1.2; }
h1 strong { font-weight: 700; color: var(--highlight); }
.subtitle { color: var(--text-dim); margin-top: 0.6rem; font-size: 1.05rem; }
h2 { font-size: 1.2rem; color: var(--highlight); margin-bottom: 0.6rem; }
.hint { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1rem; }
.dim { color: var(--text-dim); font-size: 0.92rem; }
.small { font-size: 0.82rem; }
section { margin-bottom: 2.25rem; }

/* ── meter ── */
.meter { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem 1.3rem 1.1rem; position: sticky; top: 0; z-index: 5; }
.readout { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.readout-rating { font-size: 3.2rem; font-weight: 700; color: var(--highlight); line-height: 1; font-variant-numeric: tabular-nums; }
.pct { font-size: 1.6rem; margin-left: 0.1rem; }
.readout-pay { text-align: right; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.per { display: block; font-size: 0.78rem; font-weight: 400; color: var(--text-dim); }
.readout-plain { color: var(--text); margin: 0.6rem 0 0.9rem; min-height: 2.6em; }

input[type=range] { width: 100%; accent-color: var(--highlight); height: 2rem; cursor: pointer; }
.ticks { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-dim); padding: 0 0.2rem; }

.deps { margin-top: 0.9rem; font-size: 0.92rem; }
.deps summary { cursor: pointer; color: var(--accent); }
.deps-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: 0.8rem; align-items: end; margin-top: 0.7rem; }
@media (max-width: 560px) { .deps-grid { grid-template-columns: 1fr 1fr; } .deps-grid .check { grid-column: 1 / -1; } }
.deps .hint { margin: 0.5rem 0 0; }
.field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--text-dim); }
.check { display: flex; gap: 0.5rem; align-items: center; color: var(--text); }
input[type=number], input[type=text], select { font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 0.45rem 0.6rem; width: 100%; min-width: 0; }
input[type=checkbox] { accent-color: var(--highlight); width: 1.05rem; height: 1.05rem; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ── CFR quote ── */
.cfr-label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.cfr blockquote { border-left: 3px solid var(--highlight); padding: 0.4rem 0 0.4rem 1rem; margin: 0.5rem 0; font-family: Georgia, serif; font-size: 1.05rem; color: var(--text); }
.cfr-source { font-size: 0.78rem; color: var(--text-dim); }

/* ── levels ── */
.level { border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1.1rem; margin-bottom: 0.8rem; opacity: 0.38; transition: opacity 0.25s, border-color 0.25s; }
.level.on { opacity: 1; }
.level.current { border-color: var(--highlight); background: var(--surface); }
.level h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.5rem; }
.lv-num { display: inline-block; min-width: 3.2rem; color: var(--highlight); font-weight: 700; }
.level ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.level li { padding-left: 1.1rem; position: relative; }
.level li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--border); }
.level.on li::before { background: var(--highlight); }
.level li strong { display: block; font-weight: 600; color: var(--text); font-size: 0.95rem; }
.level li small { display: block; color: var(--text-dim); font-size: 0.78rem; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .level { transition: none; } }
.crisis-note { border: 1px solid var(--red); border-radius: 8px; padding: 0.8rem 1rem; }
.crisis-note a { color: var(--text); font-weight: 700; }

/* ── how ── */
.how ol { margin-left: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 0.9rem; color: var(--text-dim); }
.how strong { color: var(--text); }

/* ── calculator ── */
.calc-row { display: grid; grid-template-columns: 1fr 6.5rem auto; gap: 0.6rem; align-items: center; margin-bottom: 0.55rem; }
.linklike { font: inherit; font-size: 0.85rem; background: none; border: none; color: var(--text-dim); text-decoration: underline; cursor: pointer; }
.btn { font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; border-radius: 6px; padding: 0.5rem 1rem; }
.btn.ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn.ghost:hover { color: var(--text); border-color: var(--text-dim); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 1.1rem 0 0.8rem; }
.calc-out > div { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem; }
.calc-label { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.calc-out span:not(.calc-label) { font-size: 1.8rem; font-weight: 700; color: var(--highlight); font-variant-numeric: tabular-nums; }
.calc-out small { display: block; font-size: 0.78rem; color: var(--text-dim); }

/* phones: keep the sticky meter clear of the fixed menu button */
@media (max-width: 720px) {
    .meter { top: 3.3rem; padding: 1rem 1rem 0.8rem; }
    .readout-rating { font-size: 2.6rem; }
    .readout-pay { font-size: 1.35rem; }
    .readout-plain { font-size: 0.92rem; min-height: 0; margin: 0.4rem 0 0.6rem; }
}

.keep-mount { margin-top: 1rem; }
