/* BCG-25: the Hagzi Price Index page (views/price-index/index.blade.php). Phone first. */
.hzix__cadence {
    margin: -6px 0 10px;
    color: #0f766e;
    font-size: .9rem;
    font-weight: 600;
}

.hzix__hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 960px;
    margin: 0 0 8px;
}

@media (min-width: 640px) {
    .hzix__hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hzix__card {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.hzix__name {
    margin: 0;
    color: #4b5563;
    font-size: .95rem;
    font-weight: 600;
}

.hzix__value {
    margin: 4px 0 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.hzix__period {
    margin: 2px 0 0;
    color: #6b7280;
    font-size: .85rem;
}

.hzix__change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 8px 0 0;
    font-size: .95rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #4b5563;
}

.hzix__change--year {
    display: block;
    margin-top: 2px;
    font-weight: 500;
}

.hzix__change--up {
    color: #15803d;
}

.hzix__change--down {
    color: #b91c1c;
}

/* Plain triangles (U+25B2 / U+25BC): no emoji presentation, no rotation, same in RTL. */
.hzix__arrow::before {
    display: inline-block;
    font-size: .7em;
}

.hzix__change--up .hzix__arrow::before {
    content: "\25B2";
}

.hzix__change--down .hzix__arrow::before {
    content: "\25BC";
}

.hzix__note {
    display: block;
    margin: 6px 0 0;
    color: #6b7280;
    font-size: .85rem;
}

.hzix__chart {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 12px;
    overflow: visible;
}

.hzix__base {
    stroke: #e5e7eb;
    stroke-width: 1;
}

.hzix__line {
    fill: none;
    stroke: #0f766e;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.hzix__dot {
    fill: #0f766e;
}

.hzix__axis {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    color: #6b7280;
    font-size: .75rem;
}

.hzix__cities {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 960px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .hzix__cities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.hzix__city {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.hzix__city-name {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
}

.hzix__city-name a {
    color: inherit;
    text-decoration: none;
}

.hzix__city-name a:hover {
    text-decoration: underline;
}

.hzix__city-figures {
    margin: 0;
}

.hzix__city-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    padding: 6px 0;
    border-top: 1px solid #f3f4f6;
}

.hzix__city-row dt {
    flex: 0 0 100%;
    color: #6b7280;
    font-size: .8rem;
}

.hzix__city-row dd {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin: 0;
}

.hzix__city-row .hzix__change {
    margin: 0;
    font-size: .85rem;
}

.hzix__city-row .hzix__note {
    margin: 0;
    font-size: .8rem;
}

.hzix__city-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hzix__city-link {
    display: inline-block;
    margin-top: 8px;
    color: #0f766e;
    font-size: .9rem;
}

.hzix__pages {
    margin-bottom: 12px;
}

.hzix__search-link {
    display: block;
    margin-top: 2px;
    color: #4b5563;
    font-size: .85rem;
}

.hzix__jordan-missing {
    max-width: 960px;
}

.hzix__method {
    margin-top: 20px;
}
