/* Day counter — additions on top of the shared base.
   (Header comment said "GST calculator": this file was copied from GSTCalc and
   the label was never changed, which is how the 20px radius below survived the
   AAA+++ token pass — it looked like someone else's file.)

   AAA+++ §3.2: the day counter is the ONE floating object on the page. Its
   radius now comes from --radius-lg (14px), not a local 20px pill, and its
   shadow is the single shared --shadow. Nothing else on the page floats. */

.calc-card {
  max-width: 620px; margin: 26px auto 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.calc-top { padding: 24px 24px 20px; }
.mode-row { display: flex; justify-content: center; margin-bottom: 20px; }
.amount-field { position: relative; }
.amount-field .cur {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 700; color: var(--muted); pointer-events: none;
}
.amount-input {
  width: 100%; border: 1px solid var(--line); background: var(--surface-2);
  border-radius: 14px; padding: 16px 18px 16px 52px;
  font: inherit; font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 800;
  letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.amount-input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.rate-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: .88rem; color: var(--muted); }
.rate-row .seg button { font-size: .8rem; padding: 6px 11px; }
.rate-custom { width: 74px; text-align: center; padding: 7px 8px !important; font-size: .88rem !important; }

.out {
  background: var(--surface-sunken); border-top: 1px solid var(--line);
  padding: 22px 24px 24px;
}
/* The result unit reads in the mono spec voice (.result-u), the figure in
   tabular lining numerals (.result-v) so it stops jiggling as you type. */
.out-main { text-align: center; margin-bottom: 16px; }
.out-main .k { font-family: var(--mono); font-size: .74rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.out-main .v {
  font-size: clamp(2.3rem, 8vw, 3.2rem); font-weight: 650; letter-spacing: -.03em;
  color: var(--ink-num); font-variant-numeric: tabular-nums lining-nums; line-height: 1.04; margin-top: 4px;
}
.out-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 460px) { .out-grid { grid-template-columns: 1fr; } }
.out-cell {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.out-cell .k { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.out-cell .v { font-size: 1.06rem; font-weight: 650; font-variant-numeric: tabular-nums lining-nums; }
.out-cell button {
  border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 6px; line-height: 0;
}
.out-cell button:hover { color: var(--accent); }
.out-cell svg { width: 15px; height: 15px; }

.handoff { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* The answer block is NOT the floating object — flat, hairline, keel above the
   heading (§3.2/§3.3). Only .calc-card gets --shadow. */
.quick-answer {
  max-width: 620px; margin: 22px auto 0; padding: 18px 20px; text-align: left;
  border-radius: var(--radius); background: var(--accent-soft);
  border: 1px solid var(--accent-line); box-shadow: none;
}
.quick-answer h2 { font-size: 1rem; font-weight: 650; margin-bottom: 10px; letter-spacing: -.01em; }
.quick-answer .srcline { margin-top: 14px; }
.quick-answer ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: .93rem; }
.quick-answer li { margin-bottom: 5px; }
.quick-answer b { color: var(--ink); font-variant-numeric: tabular-nums; }

.shortcut {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 18px;
}
.shortcut div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.shortcut .eq { font-size: 1.12rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.shortcut p { font-size: .87rem; color: var(--muted); margin-top: 6px; }
