/* Raise, childcare, hourly-to-salary and compound interest calculators
   (more-calcs.js), with the Finances calculators' look (budget.css) */
.mc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mc-pair .field { min-width: 0; }
/* Month boxes fill their half, so "October 2025" shows in full on phones */
.mc-pair input[type="month"] { width: 100%; letter-spacing: 0; text-align: left; }
@media (max-width: 420px) { .mc-pair input[type="month"] { font-size: 13px; } }
.calc-big-value.neg, .calc-facts dd.neg { color: var(--down); }
.mc-box { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.mc-box:empty { display: none; }
.mc-box b { color: var(--ink); }
.mc-box a { color: var(--ink); text-underline-offset: 3px; }
.mc-table-wrap { margin-top: 18px; overflow-x: auto; }
.mc-table th:not(:first-child) { text-align: right; }
.mc-sub { margin: 24px 0 10px; font-size: 16px; color: var(--ink); }
.mc-jobs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.mc-jobs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mc-jobs a { color: var(--ink); text-underline-offset: 3px; }
.mc-jobs span { font-family: var(--mono); color: var(--ink-2); white-space: nowrap; }

/* Childcare: a row per child */
.cc2-kids { display: flex; flex-direction: column; gap: 8px; }
.cc2-kid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.cc2-kid select { min-width: 0; }
.cc2-remove { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; font-size: 18px; color: var(--muted); cursor: pointer; }
.cc2-remove:hover { color: var(--down); }
.cc2-add { align-self: flex-start; margin-top: 4px; }
.mc-table tr.cc2-on td { background: var(--color-2-tint); }

/* Compound interest chart */
.ci-figure { margin: 20px 0 0; }
.ci-figure svg { display: block; width: 100%; height: auto; }
.ci-grid { stroke: var(--line); stroke-width: 1; }
.ci-tick { font: 500 11px var(--mono); fill: var(--muted); }
.ci-put { fill: #CFCFC6; }
.ci-growth { fill: rgba(250, 54, 0, 0.22); }
.ci-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.ci-real { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 5 5; }
.ci-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.ci-key span { display: inline-block; width: 14px; height: 10px; margin-right: -8px; border-radius: 2px; }
.ci-key .k-put { background: #CFCFC6; }
.ci-key .k-growth { background: rgba(250, 54, 0, 0.22); }
.ci-key .k-real { height: 0; border-top: 2px dashed var(--ink-2); border-radius: 0; }
@media (max-width: 560px) {
  .cc2-kid { grid-template-columns: minmax(0, 1fr) auto; }
  .cc2-kid select:nth-child(2) { grid-column: 1; }
}

/* Hourly to Salary: the 3D stopwatch in the heading (js/stopwatch.js), to
   the right of the words in the heading's band (behind the end of them,
   smaller and fainter, on narrower screens) */
.head-watch {
  position: absolute; left: calc(min(100vw, 824px) + 30px); bottom: 10px; width: 240px; height: 300px;
  perspective: 900px; pointer-events: none; transform: scale(0.74); transform-origin: 50% 100%;
}
@media (max-width: 1100px) { .head-watch { left: auto; right: -10px; transform: scale(0.62); opacity: 0.6; } }
@media (max-width: 640px) { .head-watch { transform: scale(0.5); bottom: 6px; right: -30px; opacity: 0.85; } }
.hw-obj { position: absolute; left: 20px; top: 60px; width: 200px; height: 200px; transform-style: preserve-3d; }
.hw-obj > * { position: absolute; backface-visibility: visible; }
.hw-disc { left: 0; top: 0; width: 200px; height: 200px; border-radius: 50%; }
.hw-back { background: #C6C5BE !important; box-shadow: inset 0 0 0 8px #BAB9B2; }
.hw-face { left: 0; top: 0; width: 200px; height: 200px; overflow: visible; }
.hw-crown { left: 89px; top: 89px; width: 22px; height: 22px; border-radius: 50%; }
.hw-bow { left: 84px; top: 84px; width: 32px; height: 32px; border-radius: 50%; border: 5px solid #B4B3AC; box-sizing: border-box; }
.hw-button { left: 93px; top: 93px; width: 14px; height: 14px; border-radius: 50%; background: #BDBCB5; }
.hw-nums text { font: 500 13px var(--mono); fill: #282828; fill-opacity: 0.5; text-anchor: middle; }
.hw-dollar { font: 600 9px var(--mono); fill: #282828; fill-opacity: 0.4; text-anchor: middle; letter-spacing: 0.1em; }
.hw-shadow {
  position: absolute; left: 30px; right: 30px; bottom: 0; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 40, 30, 0.16), transparent);
}
