/* Adult child rent calculator (/tools/adult-child-rent-calculator): styles not covered by site.css. */

/* Segmented controls that may wrap on narrow screens (goals, pay period). */
.acr-seg-wrap { flex-wrap: wrap; border-radius: 22px; align-self: flex-start; }
.acr-seg-wrap span { padding: 0 14px; }
.acr-seg-sm span { min-height: 32px; padding: 0 12px; font-size: 13px; }

/* Two-column grid of cost fields; one column on small phones. */
.acr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
@media (max-width: 400px) { .acr-grid { grid-template-columns: minmax(0, 1fr); } }
.acr-grid .nk-calc-label { min-height: 2.6em; display: flex; align-items: flex-end; line-height: 1.3; }
@media (max-width: 400px) { .acr-grid .nk-calc-label { min-height: 0; } }

/* Checkbox row: "Put part of it aside and give it back later". */
.acr-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.5; color: #7a6a5c; }
.acr-check strong { color: #2e2018; font-weight: 600; }
.acr-check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: #8b5e3c; cursor: pointer; }
.acr-check input:focus-visible { outline: 2px solid #8b5e3c; outline-offset: 2px; }
.acr-pct { display: flex; align-items: center; gap: 12px; padding-left: 34px; }
.acr-pct .nk-input { width: 96px; }
.acr-pct label { margin: 0; }

/* Share-of-pay bar: 0–40% scale, the 10–30% guidance band shaded, the suggested range and a marker. */
.acr-bar { position: relative; height: 18px; border-radius: 999px; background: #ede5d8; }
.acr-bar-band { position: absolute; top: 0; bottom: 0; left: 25%; width: 50%; background: #d6ddc8; }
.acr-bar-range { position: absolute; top: 4px; bottom: 4px; border-radius: 999px; background: #deae96; transition: left .35s ease, width .35s ease; }
.acr-bar-marker { position: absolute; top: -5px; width: 4px; height: 28px; margin-left: -2px; border-radius: 2px; background: #2e2018; transition: left .35s ease; }
.acr-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: #9a8570; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .acr-bar-range, .acr-bar-marker { transition: none; } }

/* Result tiles: their real costs / a room nearby. */
.acr-tile { background: #f7f1e8; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acr-tile p { margin: 0; }
.acr-tile-label { font-size: 14px; color: #7a6a5c; }
.acr-tile-num { font-weight: 800; letter-spacing: -0.03em; color: #2e2018; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.acr-tile-note { font-size: 13px; color: #7a6a5c; }

/* Explanation: short reasoning lines. */
.acr-summary { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.acr-summary li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.55; color: #3b302b; text-wrap: pretty; }
.acr-summary li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: #ffb900; }

/* Breakdown table: the cost total row in bold. */
.nk-table tr[data-strong] td { font-weight: 700; color: #2e2018; }
