.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.tool-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(22px, 3vw, 32px);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(26,52,126, .04);
}
.tool-category { margin: 38px 0 48px; }
.tool-category-heading { margin-bottom: 20px; }
.tool-category-heading h2 { font-size: clamp(1.65rem, 3vw, 2rem); }
.tool-category-heading p { margin: 8px 0 0; color: var(--muted); }
.tool-card h3 { margin: 10px 0 0; font:500 1.45rem/1.2 var(--font-heading); }
.tool-card-about { margin: 0 0 16px; }
.tool-card-about a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.tool-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.tool-card-actions .button { min-height: 48px; text-align: center; }
@media (max-width: 820px) {
    .tool-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .tool-card-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
    .tool-card-actions .button { width: 100%; }
}

/* The editorial discovery surface is scoped to the Toolkit home page. */
.toolkit-home { padding: 24px 0 56px; }
.toolkit-home [hidden] { display: none !important; }
.toolkit-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 550px; padding: clamp(28px, 5vw, 64px); border-radius: 28px; background: #1a347e; color: #fff; }
.toolkit-hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.toolkit-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 35, 85, .98) 0%, rgba(16, 35, 85, .93) 34%, rgba(16, 35, 85, .60) 61%, rgba(16, 35, 85, .08) 100%); }
.toolkit-hero-content { max-width: 650px; }
.toolkit-hero .eyebrow { color: #f2b84b; }
.toolkit-hero h1 { margin: 20px 0; font-size: clamp(2.3rem, 4.4vw, 3.8rem); line-height: 1.08; color: #fff; text-wrap: balance; }
.toolkit-hero h1 span { color: #f2b84b; }
.toolkit-hero-intro { max-width: 480px; font-size: 1.18rem; color: #fff; }
.toolkit-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 30px; }
.toolkit-hero-actions .button { border-color: #f2b84b; background: #f2b84b; color: #1a347e; }
.toolkit-hero-actions > a:not(.button) { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: #fff; font-weight: 700; text-underline-offset: 5px; }
.toolkit-hero a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.toolkit-path:focus-visible { outline: 3px solid #1a347e; outline-offset: 3px; }
.toolkit-saved-work { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 620px; margin-top: 30px; padding: 16px 20px; border: 1px solid rgba(255,255,255,.35); border-radius: 16px; background: rgba(16,35,85,.88); color: #fff; text-decoration: none; }
.toolkit-saved-work > span:first-child { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.toolkit-discovery { margin: 56px 0 36px; }
.toolkit-discovery-heading { margin-bottom: 24px; }
.toolkit-discovery-heading h2 { margin: 8px 0; font-size: clamp(1.85rem, 3vw, 2.6rem); }
.toolkit-paths { display: grid; grid-template-columns: 1.2fr .9fr .9fr 1fr; grid-auto-rows: minmax(210px, auto); gap: 16px; }
.toolkit-path { position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; min-width: 0; border-radius: 22px; padding: 24px; background: #1a347e; color: #fff; text-decoration: none; transition: box-shadow .18s ease; }
.toolkit-path img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.toolkit-path::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(0deg, rgba(16,35,85,.98), rgba(16,35,85,.90) 46%, rgba(16,35,85,.04)); }
.toolkit-path:hover, .toolkit-path[aria-current] { box-shadow: inset 0 0 0 3px #f2b84b; }
.toolkit-path:hover::after, .toolkit-path[aria-current]::after { box-shadow: inset 0 0 0 3px #f2b84b; }
.toolkit-path-content { display: grid; gap: 8px; }
.toolkit-path-count { width: max-content; padding: 4px 8px; border-radius: 999px; background: rgba(16,35,85,.96); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #f2b84b; }
.toolkit-path-title { font: 500 1.5rem/1.12 var(--font-heading); text-wrap: balance; }
.toolkit-path-detail { font-size: .94rem; line-height: 1.35; }
.toolkit-path--direction { grid-row: span 2; align-items: flex-end; background: linear-gradient(145deg, #3949ab, #1a347e); }
.toolkit-path--direction::before { content: ''; position: absolute; top: 36px; right: -58px; width: 220px; height: 220px; border: 1px solid rgba(242,184,75,.65); border-radius: 50%; box-shadow: 0 0 0 32px rgba(242,184,75,.08), 0 0 0 64px rgba(242,184,75,.05); background: radial-gradient(circle at 38% 35%, #f2b84b, #f2b84b 20%, transparent 21%); }
.toolkit-path--direction::after, .toolkit-path--income::after { display: none; }
.toolkit-path--direction .toolkit-path-title { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.toolkit-path--work { grid-column: span 2; }
.toolkit-path--work img { object-position: center 44%; }
.toolkit-path--income { background: #f2b84b; color: #1a347e; }
.toolkit-path--income .toolkit-path-count, .toolkit-path--direction .toolkit-path-count { padding: 4px 0; background: transparent; }
.toolkit-path--income .toolkit-path-count { color: #1a347e; }
.toolkit-path--income:hover, .toolkit-path--income[aria-current] { box-shadow: inset 0 0 0 3px #1a347e; }
.toolkit-paths--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.toolkit-paths--compact .toolkit-path--direction { grid-row: auto; }
.toolkit-paths--compact .toolkit-path--work { grid-column: auto; }
.toolkit-paths--compact .toolkit-path--direction .toolkit-path-title { font-size: 1.5rem; }
.toolkit-paths--compact .toolkit-path--direction::before { top: -60px; right: -100px; opacity: .4; }
.toolkit-catalog { margin: 36px 0; padding: clamp(20px, 3vw, 36px); border-radius: 24px; background: #e8eaf6; }
.toolkit-catalog-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.toolkit-catalog-heading h2 { margin: 6px 0; font-size: clamp(1.7rem, 3vw, 2.25rem); }
.toolkit-catalog-heading p { margin: 4px 0; }
.toolkit-catalog-heading > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
#tool-catalog-title:focus-visible { outline: 2px solid #3949ab; outline-offset: 5px; }
.toolkit-home--filtered .tool-category { margin: 24px 0 0; }
.toolkit-home--filtered .tool-category-heading { display: none; }
.toolkit-home--filtered .tool-grid { margin-bottom: 0; }
.toolkit-home--filtered .tool-card { display: grid; grid-template-columns: minmax(0, 1fr) 210px; column-gap: 28px; grid-column: 1 / -1; }
.toolkit-home--filtered .tool-card > p, .toolkit-home--filtered .tool-card > h3 { grid-column: 1; }
.toolkit-home--filtered .tool-card-about { margin-bottom: 0; }
.toolkit-home--filtered .tool-card-actions { grid-column: 2; grid-row: 1 / span 4; align-self: center; display: grid; margin-top: 0; }
.toolkit-home--filtered .tool-card > .eyebrow { margin: 0; }
.toolkit-home--filtered .tool-card > p:not(.eyebrow):not(.tool-card-about) { margin: 12px 0; }
.toolkit-account-note { max-width: 760px; margin: 32px auto 0; font-size: .94rem; }
.toolkit-home .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 901px) {
    .toolkit-hero { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(56px, 5vw, 72px); }
}
@media (max-width: 900px) {
    .toolkit-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .toolkit-path--direction { grid-row: auto; }
    .toolkit-path--work { grid-column: auto; }
    .toolkit-path--direction::before { top: -60px; right: -100px; opacity: .4; }
    .toolkit-path--direction .toolkit-path-title { font-size: 1.5rem; }
}
@media (max-width: 820px) { .toolkit-home--filtered .tool-card { display: flex; } .toolkit-home--filtered .tool-card-actions { display: flex; margin-top: 16px; } }
@media (max-width: 560px) {
    .toolkit-home { padding-top: 12px; }
    .toolkit-hero { min-height: 0; border-radius: 20px; padding: 28px 22px; }
    .toolkit-hero-photo { height: 230px; object-position: 68% center; }
    .toolkit-hero-content { padding-top: 160px; }
    .toolkit-hero::before { background: linear-gradient(180deg, rgba(26,52,126,.05), #1a347e 230px); }
    .toolkit-hero h1 { font-size: clamp(2.25rem, 8.7vw, 3rem); margin-top: 26px; }
    .toolkit-hero-intro { font-size: 1.05rem; }
    .toolkit-hero-actions { gap: 8px; margin-top: 24px; }
    .toolkit-saved-work { padding: 14px; font-size: .94rem; }
    .toolkit-discovery { margin-top: 36px; }
    .toolkit-paths { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(205px, auto); gap: 12px; }
    .toolkit-path { padding: 24px; }
    .toolkit-catalog { padding: 18px; }
    .toolkit-home .tool-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .toolkit-path { transition: none; } }
