/* Home value in a sentence (PV-013, js/homeval-ui.js). Steady mood: monochrome plus the one accent; nothing celebrates.
   Linked before pocket.css (a test keeps pocket.css last); it uses the Money · Ledger tokens. Classes are hv2-* and hv-*,
   so the old shared rv-* / rw-preset rules other tools use stay untouched.
   Design: docs/design/planning-v2/proto.html?screen=home */

.hv2 { display: flex; flex-direction: column; gap: 14px; container-type: inline-size; }
.hv2-h .pl-tool-title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.hv2-sub { margin: 4px 0 0; font: 400 13.5px var(--font-sans); color: var(--text-dim); }
.hv2-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.hv2-side { display: grid; gap: 14px; min-width: 0; }
.hv2-card { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-sm); min-width: 0; }
.hv2-k { margin: 0; font: 600 15px var(--font-sans); color: var(--text); }

/* the sentence: the value and the equity are answers in the accent; the home is picked, what is owed is dragged */
.hv-sent { margin: 0; font: 600 24px/1.35 var(--font-sans); letter-spacing: -.02em; color: var(--text); max-width: 36ch; text-wrap: pretty; }
.hv-sent .sp-ans { color: var(--accent); }
.hv-note { margin: 0; font: 400 13px/1.45 var(--font-sans); color: var(--text-dim); }
.hv-note[hidden], .hv-chart[hidden] { display: none; }
#hv-hint:empty { display: none; }
.hv2-main .sp-hint { margin: -6px 0 0; }

/* the chart: the value line over a soft area, starting near the lowest value */
.hv-chart { min-width: 0; }
.hv-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hv-grid { stroke: var(--border); stroke-width: 1; }
.hv-gl, .hv-xl { font: 500 11px var(--font-mono); fill: var(--text-dim); font-variant-numeric: tabular-nums; }
.hv-area { fill: var(--accent-dim); stroke: none; }
.hv-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hv-pin { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.hv-pin.is-last { fill: var(--accent); }
.hv-pl { font: 600 11.5px var(--font-mono); fill: var(--text); font-variant-numeric: tabular-nums; }

/* adding a value: a plain little form (it saves something), then the typed history */
.hv-form { display: grid; gap: 10px; }
.hv-field { display: grid; gap: 5px; font: 500 12.5px var(--font-sans); color: var(--text-mid); }
.hv-field input { min-height: 48px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-input); background: var(--surface-2); color: var(--text); font: 500 15px var(--font-sans); font-variant-numeric: tabular-nums; min-width: 0; width: 100%; box-sizing: border-box; }
.hv-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hv-actions { display: flex; align-items: center; gap: 12px; }
.hv2-btn { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent-fill); color: var(--on-accent); font: 600 14px var(--font-sans); cursor: pointer; }
.hv2-btn:hover { background: var(--accent-fill-hi); }
.hv-link { min-height: 48px; padding: 0 6px; border: 0; background: none; color: var(--accent); font: 600 13px var(--font-sans); cursor: pointer; border-radius: 8px; }
.hv-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hv-link[hidden] { display: none; }
.hv2-status { margin-top: -6px; font: 400 12.5px var(--font-sans); color: var(--text-dim); }
.hv2-status:empty { display: none; }
.hv-tbl-wrap { min-width: 0; overflow-x: auto; }
.hv-tbl-wrap:empty { display: none; }
.hv-tbl { width: 100%; border-collapse: collapse; font: 400 13px var(--font-sans); color: var(--text); }
.hv-tbl th { padding: 0 6px 6px 0; font: 600 11px var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); text-align: left; }
.hv-tbl td { padding: 0 6px 0 0; white-space: nowrap; vertical-align: middle; }
.hv-tbl tbody tr { border-top: 1px solid var(--border); }
.hv-tbl .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.hv-tbl .hv-date { font-family: var(--font-mono); color: var(--text-mid); }
.hv-tbl .hv-chg { color: var(--text-mid); }
.hv-btns { text-align: right; padding-right: 0; }
.hv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hv-nw { padding-top: 10px; border-top: 1px solid var(--border); }

@media (max-width: 1100px) { .hv2-grid { grid-template-columns: minmax(0, 1fr); } }
@container (max-width: 640px) {
  .hv2-card { padding: 18px 16px; }
  .hv-sent { font-size: 21px; }
  .hv-link { padding: 0 8px; }
  .hv-tbl td { padding: 2px 4px 2px 0; }
  .hv-tbl th:nth-child(3), .hv-tbl td:nth-child(3) { display: none; }   /* the change is in the chart; the row keeps date, value, edit, delete */
}
@media (max-width: 768px) { .hv2-h .pl-tool-title { font-size: 28px; } }
