/* Age calculator - two date inputs, then exact age + next birthday + totals.
   Reuses base .field; colors come from theme tokens only. */

.age-intro { color: var(--muted); max-width: 60ch; margin: 8px 0 24px; }

.age-form { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.age-field { display: flex; flex-direction: column; gap: 6px; }
.age-field-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.age-field .field { font-variant-numeric: tabular-nums; }

.age-error {
    margin: 0 0 20px; padding: 10px 14px; border-radius: 10px;
    color: var(--bad); background: var(--surface); border: 1px solid var(--bad); font-size: 14px;
}

.age-result {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 20px; margin-bottom: 8px;
}
.age-exact { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.age-exact-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.age-exact-value { font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--accent-strong); }

.age-next { color: var(--text); margin-bottom: 16px; }
.age-next strong { color: var(--text); }

.age-totals {
    list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    padding-top: 16px; border-top: 1px solid var(--border);
}
@media (max-width: 460px) { .age-totals { grid-template-columns: 1fr; } }
.age-totals li {
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 12px; font-size: 14px; color: var(--muted); text-align: center;
}
.age-total-num { display: block; font-size: 22px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

.age-copy {
    margin-top: 16px; font: inherit; font-size: 13px; padding: 4px 12px; cursor: pointer;
    border: 1px solid var(--border-strong); border-radius: 8px;
    background: var(--surface); color: var(--text);
    transition: border-color .15s, color .15s;
}
.age-copy:hover { border-color: var(--accent); color: var(--accent-strong); }
