/*
 * Hagzi guide and legal-information pages. Logical properties only, so the
 * Arabic page mirrors without an RTL override. Figures sit in <bdi>.
 */
.hzg__shell {
    max-inline-size: 860px;
}

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

.hzg__crumbs a,
.hzg__sources a,
.hzg__related a,
.hzg__card-title a,
.hzg__table a {
    color: var(--hagzi-primary, #0745D9);
    text-decoration: underline;
}

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

.hzg__answer {
    margin-block: 16px 24px;
    padding: 14px 16px;
    border-inline-start: 4px solid var(--hagzi-primary, #0745D9);
    border-radius: 10px;
    background: #f3f6fd;
    line-height: 1.7;
}

.hzg__answer p {
    margin: 0;
}

.hzg__answer-label {
    margin-block-end: 4px !important;
    font-weight: 700;
}

.hzg__disclaimer {
    margin-block: 12px;
    padding: 12px 14px;
    border: 1px solid #f0c36d;
    border-radius: 10px;
    background: #fff8e6;
    color: #5c4300;
    line-height: 1.6;
}

.hzg__disclaimer p {
    margin: 0;
}

.hzg__article-end .hzg__disclaimer,
.hzg__disclaimer--end {
    margin-block-start: 28px;
}

ol.hzg__list {
    list-style: decimal;
}

.hzg__h2 {
    margin-block: 28px 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.hzg__section p,
.hzg__faq p,
.hzg__list li,
.hzg__myths dd {
    margin-block: 6px;
    line-height: 1.75;
}

.hzg__ref a {
    padding-inline: 1px;
    color: var(--hagzi-primary, #0745D9);
    font-size: 0.75em;
    text-decoration: none;
}

.hzg__sources ol {
    padding-inline-start: 22px;
    list-style: decimal;
}

.hzg__sources li {
    margin-block: 6px;
    line-height: 1.6;
}

.hzg__list,
.hzg__related ul {
    padding-inline-start: 20px;
    list-style: disc;
}

.hzg__myths dt {
    margin-block-start: 12px;
    font-weight: 700;
}

.hzg__myths dd {
    margin-inline-start: 0;
}

.hzg__table-wrap {
    overflow-x: auto;
}

.hzg__table {
    inline-size: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.hzg__table caption {
    margin-block-end: 8px;
    text-align: start;
    color: #5b6475;
}

.hzg__table th,
.hzg__table td {
    padding: 10px 8px;
    border-block-end: 1px solid #e3e7ef;
    text-align: start;
    vertical-align: top;
}

.hzg__table thead th {
    background: #f7f9fc;
    font-weight: 700;
}

.hzg__table-city th,
.hzg__table-city td {
    background: #f3f6fd;
    font-weight: 600;
}

.hzg__sub {
    display: block;
    color: #5b6475;
    font-size: 0.85rem;
    font-weight: 400;
}

.hzg__sources .hzg__sub {
    display: inline;
}

.hzg__note,
.hzg__empty {
    color: #5b6475;
    font-size: 0.9rem;
    line-height: 1.6;
}

.hzg__stat {
    font-size: 1.1rem;
    font-weight: 600;
}

.hzg__cta {
    display: inline-block;
    min-block-size: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--hagzi-primary, #0745D9);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.hzg__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.hzg__card {
    padding: 14px 16px;
    border: 1px solid #e3e7ef;
    border-radius: 12px;
    background: #fff;
}

.hzg__card p {
    margin: 6px 0 0;
    color: #3d4454;
    font-size: 0.92rem;
    line-height: 1.6;
}

.hzg__card-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
}

.hzg__faq-item {
    border-block-end: 1px solid #e3e7ef;
    padding-block: 10px;
}

.hzg__faq-item summary {
    cursor: pointer;
    list-style-position: outside;
}

.hzg__faq-q {
    display: inline;
    font-size: 1rem;
    font-weight: 600;
}
