.hdl-wijk-tab {
    --hdl-orange: #F46C0F;
    --hdl-green: #2E4E4B;
    --hdl-cream: #F4EDE2;
    --hdl-text: #26221f;
    --hdl-muted: #6a625b;
    --hdl-value: #4F5052;
    --hdl-line: rgba(46, 78, 75, 0.12);
    --hdl-radius: 10px;
    box-sizing: border-box;
    padding: 4px 0 8px;
    font-family: Jost, "Libre Franklin", Arial, sans-serif;
    color: var(--hdl-text);
    line-height: 1.45;
}
.hdl-wijk-tab *,
.hdl-wijk-tab *::before,
.hdl-wijk-tab *::after {
    box-sizing: border-box;
}
.hdl-wijk-tab__header {
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 0;
}
.hdl-wijk-tab__title {
    margin: 0;
    font-family: "Jost", Sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.25em;
    letter-spacing: 0.6px;
    color: #000000;
}
.hdl-wijk-tab__intro {
    margin-bottom: 28px;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.55;
    font-weight: 300;
    letter-spacing: 0.6px;
    color: #26221f;
    max-width: none;
    width: 100%;
}
.hdl-wijk-tab__intro p {
    margin: 0;
}

.hdl-wijk-tab__highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}
.hdl-wijk-tab__highlight {
    position: relative;
    padding: 22px 18px 20px;
    text-align: center;
    border: 1px solid var(--hdl-line);
    border-radius: var(--hdl-radius);
    background: #fff;
    box-shadow: 0 4px 18px rgba(38, 45, 43, 0.05);
    overflow: hidden;
}
.hdl-wijk-tab__highlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--hdl-green);
    opacity: 0.35;
}
.hdl-wijk-tab__highlight.is-accent {
    border-color: rgba(244, 108, 15, 0.28);
    background: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
}
.hdl-wijk-tab__highlight.is-accent::before {
    background: var(--hdl-orange);
    opacity: 1;
    height: 4px;
}
.hdl-wijk-tab__highlight-value {
    display: block;
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 600;
    line-height: 1.05;
    color: #000;
    margin-bottom: 6px;
}
.hdl-wijk-tab__highlight.is-accent .hdl-wijk-tab__highlight-value {
    color: var(--hdl-orange);
}
.hdl-wijk-tab__highlight-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hdl-muted);
}

.hdl-wijk-tab__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.hdl-wijk-tab__charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    grid-column: 1 / -1;
}

.hdl-wijk-tab__group {
    margin: 0;
    padding: 18px 20px 16px;
    border: 1px solid var(--hdl-line);
    border-radius: var(--hdl-radius);
    background: #fff;
}
.hdl-wijk-tab__group--span {
    grid-column: 1 / -1;
}
.hdl-wijk-tab__group-note {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 300;
    color: var(--hdl-muted);
}
.hdl-wijk-tab__rows--two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}
.hdl-wijk-tab__rows--two-col .hdl-wijk-tab__row:nth-last-child(-n+2) {
    border-bottom: 0;
}
.hdl-wijk-tab__group-title {
    margin: 0 0 12px;
    padding-bottom: 0;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.6px;
    text-transform: none;
    color: #000;
    border-bottom: 0;
}
.hdl-wijk-tab__rows {
    margin: 0;
    padding: 0;
}
.hdl-wijk-tab__row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 12px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--hdl-line);
    margin: 0;
}
.hdl-wijk-tab__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.hdl-wijk-tab__row-label {
    margin: 0;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.6px;
    color: #000;
}
.hdl-wijk-tab__row-value {
    margin: 0;
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: 0.6px;
    color: #4F5052;
    text-align: right;
}

.hdl-wijk-tab__bar-block {
    padding: 2px 0 0;
}
.hdl-wijk-tab__bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--hdl-value);
}
.hdl-wijk-tab__swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: 0;
}
.hdl-wijk-tab__swatch.is-koop,
.hdl-wijk-tab__bar-seg.is-koop {
    background: var(--hdl-orange);
}
.hdl-wijk-tab__swatch.is-huur,
.hdl-wijk-tab__bar-seg.is-huur {
    background: var(--hdl-green);
}
.hdl-wijk-tab__bar-stacked {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #eceae6;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}
.hdl-wijk-tab__bar-seg {
    display: block;
    height: 100%;
    min-width: 3px;
}

.hdl-wijk-tab__age-bars {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.hdl-wijk-tab__age-row {
    display: grid;
    grid-template-columns: 108px 1fr 42px;
    gap: 10px;
    align-items: center;
}
.hdl-wijk-tab__age-label {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    line-height: 1.25;
}
.hdl-wijk-tab__bar-track {
    height: 9px;
    border-radius: 999px;
    background: #eceae6;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.hdl-wijk-tab__bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--hdl-orange) 0%, #ff8a3d 100%);
    min-width: 3px;
}
.hdl-wijk-tab__age-pct {
    font-size: 13px;
    font-weight: 600;
    color: var(--hdl-value);
    text-align: right;
}

.hdl-wijk-tab__compare-wrap {
    overflow-x: auto;
    border: 1px solid var(--hdl-line);
    border-radius: var(--hdl-radius);
    background: #fff;
}
.hdl-wijk-tab__compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    table-layout: fixed;
}
.hdl-wijk-tab__compare th,
.hdl-wijk-tab__compare td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--hdl-line);
    text-align: left;
    font-weight: 400;
    color: var(--hdl-value);
    vertical-align: middle;
}
.hdl-wijk-tab__compare thead th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hdl-muted);
    background: var(--hdl-cream);
}
.hdl-wijk-tab__compare thead th:nth-child(2),
.hdl-wijk-tab__compare thead th:nth-child(3) {
    text-align: right;
    width: 28%;
}
.hdl-wijk-tab__compare tbody th {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    width: 44%;
}
.hdl-wijk-tab__compare td {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.hdl-wijk-tab__compare td:nth-child(2) {
    font-weight: 600;
    color: var(--hdl-orange);
    background: rgba(244, 108, 15, 0.04);
}
.hdl-wijk-tab__compare tbody tr:last-child th,
.hdl-wijk-tab__compare tbody tr:last-child td {
    border-bottom: 0;
}

.hdl-wijk-tab__source {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.55;
    font-weight: 300;
    color: var(--hdl-muted);
}
.hdl-wijk-tab__source a {
    color: var(--hdl-orange);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .hdl-wijk-tab__body,
    .hdl-wijk-tab__charts,
    .hdl-wijk-tab__rows--two-col {
        grid-template-columns: 1fr;
    }
    .hdl-wijk-tab__rows--two-col .hdl-wijk-tab__row:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--hdl-line);
    }
    .hdl-wijk-tab__rows--two-col .hdl-wijk-tab__row:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 640px) {
    .hdl-wijk-tab__highlights {
        grid-template-columns: 1fr;
    }
    .hdl-wijk-tab__row {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    .hdl-wijk-tab__row-value {
        text-align: left;
        padding-bottom: 2px;
    }
    .hdl-wijk-tab__age-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .hdl-wijk-tab__age-pct {
        text-align: left;
    }
    .hdl-wijk-tab__compare thead th:nth-child(2),
    .hdl-wijk-tab__compare thead th:nth-child(3),
    .hdl-wijk-tab__compare td {
        width: auto;
    }
}
