/* In-hand salary calculator (Chief of Design, 2026-11-20): the form in three numbered steps, a live preview on each
   collapsed box, and the stacked bar of the SAMPLE picture. Theme tokens only, so light mode works. */

/* Steps: a numbered label over each group of fields. */
.t-group { display: grid; gap: 14px; align-content: start; min-width: 0; }
.t-step { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 1rem/1.25 "Sora", sans-serif; color: var(--text); }
.t-step span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 .78rem/1 "JetBrains Mono", monospace; background: var(--gold-text); color: var(--navy, #0A1026); }
.t-opt > .t-step span { background: transparent; color: var(--gold-text); box-shadow: inset 0 0 0 1.5px var(--gold-text); }
.t-opt > .t-hint { margin: -6px 0 0; }
.t-group + .t-group, .t-group + .t-mini, .t-mini + .t-group { margin-top: 6px; }

/* Collapsed boxes: the title, then what is in the box right now, with the arrow in its own column. */
.t-more > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding-block: 4px; }
.t-more > summary::after { content: "▾"; grid-column: 2; grid-row: 1 / span 2; color: var(--gold-text); }
.t-more[open] > summary::after { content: "▴"; }
.t-more > summary .t-sum { grid-column: 1; font-size: .9rem; font-weight: 700; color: var(--gold-text); }
.t-more > summary .t-prev { grid-column: 1; font-size: .76rem; font-weight: 500; line-height: 1.45; color: var(--text-mid); }
.t-more:not([open]) > summary .t-prev:empty { display: none; }
.t-more > summary:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 6px; }
.t-more > .t-form { margin-top: 14px; }

/* The SAMPLE picture: where the month goes, as one bar and its legend. */
.ih-stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--border-hi); }
.ih-stack i { display: block; height: 100%; min-width: 2px; background: var(--c); }
.ih-legs { display: grid; gap: 6px; }
.ih-leg { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--text-mid); }
.ih-leg span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ih-leg i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); flex: none; }
.ih-leg b { font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.ih-card { display: grid; gap: 6px; }
.ih-card .t-s-big { font-size: 1.3rem; }
.ih-card .t-s-big small { margin-top: 2px; }
