/*
 * Hagzi "Tools & services" hub. Scoped to .hzt. Logical properties only, so
 * the Arabic page mirrors without an RTL override. Two columns on a phone,
 * three from 720px, four from 960px. The whole card is the link.
 */
.hzt .hzt__shell {
    max-inline-size: 1120px;
}

.hzt__crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-block-end: 12px;
    font-size: 0.9rem;
    color: #5b6475;
}

.hzt__crumbs a {
    color: var(--hagzi-primary, #0745D9);
    text-decoration: underline;
}

.hzt a:focus-visible,
.hzt input:focus-visible,
.hzt summary:focus-visible {
    outline: 3px solid var(--hagzi-focus, rgba(82, 50, 137, 0.28));
    outline-offset: 2px;
}

.hzt__title {
    margin-block-end: 4px;
}

.hzt__lead {
    margin: 0 0 12px;
    font-size: 1rem;
    line-height: 1.4;
    color: #3c414c;
}

.hzt__more {
    margin-block-end: 16px;
}

.hzt__more summary,
.hzt__faq-item summary {
    display: flex;
    align-items: center;
    min-block-size: 44px;
    cursor: pointer;
    font-weight: 700;
}

.hzt__more summary::-webkit-details-marker,
.hzt__faq-item summary::-webkit-details-marker {
    display: none;
}

.hzt__more summary::after,
.hzt__faq-item summary::after {
    content: "";
    margin-inline-start: auto;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg);
}

.hzt__more[open] summary::after,
.hzt__faq-item[open] summary::after {
    transform: rotate(-135deg);
}

.hzt__intro {
    margin: 0 0 8px;
    max-inline-size: 70ch;
    line-height: 1.6;
    color: #3c414c;
}

.hzt__bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-block: 8px 4px;
}

.hzt__find {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hzt__find-label {
    font-size: 0.85rem;
    font-weight: 700;
}

.hzt__find input {
    box-sizing: border-box;
    inline-size: 100%;
    min-block-size: 44px;
    padding-inline: 12px;
    border: 1px solid #e1e5ee;
    border-radius: 12px;
    font: inherit;
    background: #fff;
}

.hzt__chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-block-end: 4px;
}

.hzt__chip {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-block-size: 44px;
    padding-inline: 14px;
    border: 1px solid #e1e5ee;
    border-radius: 999px;
    background: #fff;
    color: #1c2430;
    text-decoration: none;
    white-space: nowrap;
}

.hzt__chip[aria-current="true"] {
    border-color: var(--hagzi-primary, #0745D9);
    background: var(--hagzi-primary, #0745D9);
    color: #fff;
}

.hzt__h2 {
    margin-block: 20px 8px;
    font-size: 1.05rem;
    font-weight: 700;
}

.hzt__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 720px) {
    .hzt__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .hzt__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.hzt__link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    box-sizing: border-box;
    block-size: 100%;
    min-block-size: 44px;
    padding: 12px;
    border: 1px solid #e1e5ee;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.hzt__link:hover {
    border-color: var(--hagzi-primary, #0745D9);
}

.hzt__icon {
    inline-size: 24px;
    block-size: 24px;
    flex: 0 0 auto;
    color: var(--hagzi-primary, #0745D9);
}

.hzt__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-inline-size: 0;
}

.hzt__name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
    color: #1c2430;
}

.hzt__desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #5b6475;
}

.hzt__faq {
    margin-block-start: 8px;
}

.hzt__q {
    margin: 0;
    font-size: 1rem;
}

.hzt__a {
    margin: 0 0 8px;
    max-inline-size: 70ch;
    line-height: 1.6;
}

.hzt__slot:empty {
    display: none;
}
