
.eh-roads {
    --ehr-border:#d9dde3;
    --ehr-soft:#f5f7f9;
    --ehr-text:#14181f;
    --ehr-muted:#667085;
    --ehr-good:#18794e;
    --ehr-warn:#9a6700;
    --ehr-bad:#b42318;
    width:100%;
    overflow:hidden;
    border:1px solid var(--ehr-border);
    border-radius:14px;
    background:#fff;
    color:var(--ehr-text);
    font-family:inherit;
    box-sizing:border-box;
}
.eh-roads * { box-sizing:border-box; }

.eh-roads-header {
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:flex-start;
    padding:22px 24px 18px;
}
.eh-roads-header h2 {
    margin:0;
    font-size:clamp(1.55rem,4vw,2.2rem);
    line-height:1.1;
}
.eh-roads-kicker {
    margin:0 0 6px;
    color:var(--ehr-muted);
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.12em;
}
.eh-roads-subtitle {
    margin:6px 0 0;
    color:var(--ehr-muted);
}
.eh-roads-badge {
    padding:5px 10px;
    border-radius:999px;
    background:var(--ehr-soft);
    color:var(--ehr-muted);
    font-size:.8rem;
    font-weight:800;
}

.eh-roads-section {
    border-top:1px solid var(--ehr-border);
}
.eh-section-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 24px;
    background:var(--ehr-soft);
    border-bottom:1px solid var(--ehr-border);
}
.eh-section-heading h3 {
    margin:0;
    font-size:1rem;
}
.eh-section-heading span {
    color:var(--ehr-muted);
    font-size:.76rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.eh-traffic-card {
    margin:16px 24px;
    padding:16px 18px;
    border:1px solid var(--ehr-border);
    border-left:5px solid #667085;
    border-radius:10px;
}
.eh-traffic-card.severity-warning { border-left-color:var(--ehr-warn); }
.eh-traffic-card.severity-major { border-left-color:var(--ehr-bad); }
.eh-traffic-card-top {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:15px;
}
.eh-traffic-card-top strong {
    font-size:1.05rem;
}
.eh-status-chip {
    flex:0 0 auto;
    padding:3px 8px;
    border-radius:999px;
    background:var(--ehr-soft);
    font-size:.72rem;
    font-weight:800;
}
.eh-traffic-meta {
    margin:5px 0 8px;
    color:var(--ehr-muted);
    font-size:.86rem;
}
.eh-traffic-copy > :first-child { margin-top:0; }
.eh-traffic-copy > :last-child { margin-bottom:6px; }
.eh-traffic-card small { color:var(--ehr-muted); }

.eh-closure-card {
    display:grid;
    grid-template-columns:74px 1fr;
    gap:16px;
    padding:16px 24px;
    border-bottom:1px solid var(--ehr-border);
}
.eh-road-badge {
    display:flex;
    align-items:center;
    justify-content:center;
    align-self:start;
    min-height:40px;
    padding:8px;
    border-radius:8px;
    background:#14181f;
    color:#fff;
    font-weight:900;
    letter-spacing:.03em;
}
.eh-closure-body {
    min-width:0;
}
.eh-closure-body > strong {
    display:block;
    margin-bottom:9px;
    line-height:1.4;
}
.eh-closure-field {
    display:grid;
    grid-template-columns:minmax(90px,140px) 1fr;
    gap:12px;
    margin-top:5px;
    font-size:.86rem;
}
.eh-closure-field span {
    color:var(--ehr-muted);
}
.eh-closure-field b {
    font-weight:600;
}

.eh-roads-clear {
    display:flex;
    flex-direction:column;
    gap:5px;
    padding:28px 24px;
    text-align:center;
}
.eh-roads-clear strong { color:var(--ehr-good); }
.eh-roads-clear span {
    color:var(--ehr-muted);
    font-size:.88rem;
}
.eh-official-link {
    padding:12px 24px 16px;
    text-align:right;
}
.eh-official-link a {
    font-weight:700;
    text-decoration:none;
}
.eh-roads-footer {
    display:flex;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    padding:11px 24px;
    border-top:1px solid var(--ehr-border);
    background:var(--ehr-soft);
    color:var(--ehr-muted);
    font-size:.76rem;
}
.eh-roads.is-refreshing { opacity:.7; }

@media (max-width:700px) {
    .eh-roads-header { padding:18px 16px 14px; }
    .eh-section-heading { padding:12px 16px; }
    .eh-traffic-card { margin:12px 16px; }
    .eh-closure-card {
        grid-template-columns:62px 1fr;
        gap:12px;
        padding:14px 16px;
    }
    .eh-closure-field {
        display:block;
        margin-top:7px;
    }
    .eh-closure-field span {
        display:block;
        margin-bottom:1px;
        font-size:.72rem;
        text-transform:uppercase;
        letter-spacing:.04em;
    }
    .eh-official-link { padding:12px 16px 16px; }
    .eh-roads-footer { padding:10px 16px; }
}
