/* فهرس الأدوات — طبقة خفيفة لا تعتمد على CSS الأدوات التفاعلية القديمة */
.tools-index-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .8fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    margin-block: 2rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #eef8fb, #ffffff);
}
.tools-index-hero h1 { margin-block: 0 .75rem; color: #103f52; }
.tools-index-hero p { max-width: 44rem; margin: 0; color: #425b64; line-height: 1.9; }
.tools-index-hero__icon { display: grid; place-items: center; min-height: 12rem; border-radius: 1rem; background: #146c94; color: #fff; font-size: 5rem; }
.tools-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-block: 1.5rem 3rem; }
.tool-index-card { display: flex; flex-direction: column; gap: .85rem; min-height: 15rem; padding: 1.25rem; border: 1px solid rgba(20,108,148,.14); border-radius: 1rem; background: #fff; box-shadow: 0 10px 30px rgba(15,76,92,.07); transition: transform .2s ease, box-shadow .2s ease; }
.tool-index-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,76,92,.13); }
.tool-index-card__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .75rem; background: #e7f5f8; color: #146c94; font-size: 1.35rem; }
.tool-index-card h2 { margin: 0; font-size: 1.25rem; color: #103f52; }
.tool-index-card p { flex: 1; margin: 0; line-height: 1.75; color: #53676e; }
.tool-index-card a { align-self: start; }
.tools-index-note { margin-block: 2rem; padding: 1rem 1.25rem; border-inline-start: .35rem solid #e0a11a; border-radius: .5rem; background: #fff8e7; color: #513b06; line-height: 1.8; }
@media (max-width: 900px) { .tools-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .tools-index-hero { grid-template-columns: 1fr; } .tools-index-hero__icon { min-height: 8rem; font-size: 3.5rem; } .tools-index-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tool-index-card { transition: none; } .tool-index-card:hover { transform: none; } }

.tool-chooser { margin-block: 24px; padding: clamp(18px, 3vw, 28px); border: 1px solid #d7e5e6; background: #fff; border-radius: 18px; }
.tool-chooser[hidden], .tool-index-card[hidden], #tool-no-match[hidden] { display: none; }
.tool-chooser h2 { font-size: 1.3rem; margin-bottom: 10px; }
.tool-chooser-fields { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-block: 20px; }
.tool-chooser-fields > div { min-width: 0; }
.tool-chooser label { display: block; margin-bottom: 6px; }
.tool-chooser :is(input, select) { width: 100%; min-height: 44px; padding: 10px; color: #173b49; background: #f7faf9; border: 1px solid #b7cfd0; border-radius: 10px; }
.tool-chooser [aria-invalid="true"] { border-color: #9d3434; }
.tool-chooser .btn { padding: 10px 18px; }
#tool-match-count { margin-top: 14px; font-size: .9rem; color: #526970; }
.tool-capability { color: #126b70; font-size: .85rem; }
@media (max-width: 680px) { .tool-chooser-fields { grid-template-columns: minmax(0, 1fr); } }
