/*
 * "יש תקלה? יש תוכנה" (scripts/lib/tools-guide.mjs) on downloads.html and
 * downloads-121.html. The site's tokens only (css/home.css), light and dark.
 */
.tguide { padding: var(--section) 0 0; }

.tguide__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 16px;
}

.tguide__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
    scroll-margin-top: 110px;
}
:root[data-theme="dark"] .tguide__card { background: var(--surface); }

.tguide__problem {
    margin: 0;
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.35;
    text-wrap: balance;
}

.tguide__text {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.65;
    text-wrap: pretty;
}

.tguide__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

.tguide__dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--accent-fill);
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.tguide__dl + .tguide__dl {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--field-border);
}
.tguide__dl svg { width: 17px; height: 17px; flex-shrink: 0; }
.tguide__dl:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 3px; }
.tguide__dl:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
    .tguide__dl:hover { background: var(--accent-fill-hover); }
    .tguide__dl + .tguide__dl:hover { background: var(--accent-soft); }
}

.tguide__more {
    margin: 22px 0 0;
    color: var(--muted);
}
.tguide__more a { white-space: nowrap; color: var(--accent-text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 768px) {
    .tguide__card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .tguide__dl { transition: none; }
}

.tguide__nw { white-space: nowrap; }
