/* ============================================================================
   Tools index (Pages/Resources/Tools/Index.cshtml). Ported from "Tools.dc.html".
   Hero backdrop is "Hero Backdrop" with pattern "Grid + circles", tone Light, no bottom glow.
   Shared pieces (.hero, .subnav, .section, .btn, ...) live in site.css. Razor only, no JS.
   ============================================================================ */

.tools-hero { padding: 80px 32px 68px; }
.tools-hero .hero__lead { max-width: 720px; margin-top: 26px; }
.tools-hero .hero__title { font-size: 62px; line-height: 1.04; }

/* ---- Tool cards ---- */
.tools-grid { padding: 88px 32px 40px; }
.tools-grid__inner {
    max-width: var(--container-narrow);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.tool-card {
    display: block;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: #fff;
    padding: 34px 32px 30px;
    box-shadow: 0 18px 40px rgba(24, 34, 51, .07);
    color: var(--ink);
    transition: border-color .15s;
}
.tool-card:hover { color: var(--ink); }
.tool-card--blue:hover { border-color: rgba(39, 165, 221, .42); }
.tool-card--green:hover { border-color: rgba(112, 190, 68, .42); }
.tool-card--gold:hover { border-color: rgba(250, 175, 66, .5); }
.tool-card .icon-well { width: 48px; height: 48px; border-radius: 13px; font-size: 20px; }
.tool-card--green .icon-well { background: rgba(112, 190, 68, .12); color: #4e8f2f; --duo-secondary: var(--green); --duo-opacity: .4; }
.tool-card--gold .icon-well { background: rgba(250, 175, 66, .14); color: #a06a12; --duo-secondary: var(--gold); --duo-opacity: .45; }
.tool-card__title { margin-top: 20px; font-size: 24px; line-height: 1.22; font-weight: 700; color: var(--ink); }
.tool-card__body { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.tool-card__more {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--cta);
}
.tool-card__more .icon { height: 11px; width: auto; }

/* ---- Purple call-out: the panel itself (.tools-cta__panel and children) is shared with the Toolkit page and lives in site.css. ---- */
.tools-cta { padding: 40px 32px 104px; }
.tools-cta__panel { max-width: var(--container-narrow); margin: 0 auto; }
.tools-cta .btn-row { justify-content: flex-start; }
.tools-cta .btn--lg { padding: 14px 24px; font-size: 15px; }

/* ---- Responsive ---- */
@media (max-width: 959px) {
    .tools-hero { padding: 64px 24px 56px; }
    .tools-hero .hero__title { font-size: 44px; }
    .tools-grid { padding: 56px 24px 24px; }
    .tools-grid__inner { grid-template-columns: 1fr; }
    .tools-cta { padding: 24px 24px 72px; }
}
@media (max-width: 559px) {
    .tools-hero { padding: 48px 20px 40px; }
    .tools-hero .hero__title { font-size: 34px; }
    .tools-grid { padding: 40px 20px 16px; }
    .tool-card { padding: 26px 22px 24px; }
    .tools-cta { padding: 16px 20px 56px; }
    .tools-cta .btn-row { width: 100%; }
}
