/* =============================================
   AGE CALCULATOR — age.css
   Tool-specific styles only.
   Common styles are in tool.css
   ============================================= */

.age-calc { width: 100%; }

/* Form layout */
.age-form {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 0;
}

.age-field-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.age-field-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    min-width: 140px;
    text-align: right;
}

/* Date inputs row */
.age-date-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.age-select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--text);
    background: var(--white);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
.age-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,201,167,0.1); }
.age-select-day { width: 68px; }
.age-year-input {
    width: 88px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-mono);
    color: var(--text);
    background: var(--white);
    outline: none;
    text-align: center;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.age-year-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,201,167,0.1); }

/* Result box */
.age-result-box {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.age-result-header {
    background: #16a34a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 18px;
}

/* Summary cards */
.age-summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}
.age-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.age-card.highlight { border-color: var(--teal); background: #f0fdf9; }
.age-card-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.age-card-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--teal);
    font-family: var(--font-mono);
    line-height: 1;
}
.age-card-value span {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}
.age-card-sub {
    font-size: 13px;
    color: var(--text2);
    margin-top: 4px;
}

/* Breakdown */
.age-breakdown {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}
.age-breakdown:last-child { border-bottom: none; }
.age-breakdown-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}
.age-table { width: 100%; max-width: 360px; }
.age-table td:last-child {
    text-align: right;
    font-family: var(--font-mono);
    color: var(--navy);
}

/* YMD display */
.age-ymwd {
    font-size: 22px;
    font-weight: 500;
    color: var(--text2);
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.age-ymwd-val {
    font-size: 28px;
    font-weight: 700;
    color: var(--teal);
    font-family: var(--font-mono);
}

@media (max-width: 600px) {
    .age-field-label { min-width: 100px; text-align: left; }
    .age-summary-cards { grid-template-columns: 1fr; }
    .age-field-row { gap: 8px; }
}
