/* =========================================================
   ToolZen Hub
   Date Difference Calculator

   Only what the shared tool styles do not already provide: the
   two date fields side by side, the result note and the trust note.
   Buttons, focus, fields and headings come from the shared layer.
   Loaded after calculator-responsive.css.
========================================================= */

.date-core {

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

}

.date-input {

    min-height: 48px;

    font-size: 16px;

}

/* three results in a row: the total is the largest */

#date-results .calculator-results__grid {

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

}

#date-results .calculator-results__item--primary {

    grid-column: auto;

}

#date-results .calculator-results__summary p {

    margin: 0;

}

.date-note {

    margin: 0 0 14px;
    padding: 10px 14px;

    border: 1px solid var(--color-slate-200);
    border-radius: 10px;

    background: #f9fafb;

    color: var(--color-ink);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;

}

.date-trust {

    margin: 14px 0 0;
    padding: 12px 14px;

    border: 1px solid var(--color-slate-200);
    border-radius: 10px;

    background: #f9fafb;

    color: #344054;

    font-size: 13px;
    line-height: 1.6;

}

.date-trust strong {

    color: var(--color-ink);

}

@media (max-width: 820px) {

    .date-core,
    #date-results .calculator-results__grid {

        grid-template-columns:
            minmax(0, 1fr);

    }

}

.date-sr-only {

    position: absolute;

    width: 1px;
    height: 1px;

    margin: -1px;
    padding: 0;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;

}
