/* ============================================================
   ROADS PAGES - A2, M2, M20, M25, etc.
   Shared styles for road-specific tyre fitting pages
   ============================================================ */

/* ===== STAY SAFE FIRST - DARK BACKGROUND ===== */
.safe-section-dark {
    background: #1a1a2e;
    padding: 60px 0;
}

.safe-section-dark .section-title-wrapper .section-divider {
    background: #d8315b;
}

.safe-section-dark .section-title-wrapper .section-divider::before {
    background: #d8315b;
}

.safe-section-dark .section-title-wrapper .section-divider::after {
    background: #d8315b;
}

.safe-section-dark .section-title {
    color: #ffffff;
}

.safe-section-dark .section-subtitle {
    color: rgba(255,255,255,0.7);
}

.safe-steps-dark {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 30px 0 20px;
}

.safe-steps-dark li {
    background: rgba(255,255,255,0.06);
    padding: 20px 24px;
    border-radius: 8px;
    border-left: 4px solid #d8315b;
    color: #ffffff;
}

.safe-steps-dark li strong {
    display: block;
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.safe-steps-dark li span {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    line-height: 1.5;
}

.safe-note-dark {
    background: rgba(216, 49, 91, 0.15);
    padding: 18px 24px;
    border-radius: 8px;
    border: 1px solid rgba(216, 49, 91, 0.3);
    margin-top: 20px;
    color: rgba(255,255,255,0.85);
}

.safe-note-dark strong {
    color: #d8315b;
}

@media (max-width: 768px) {
    .safe-steps-dark { grid-template-columns: 1fr; }
}

/* ===== JUNCTIONS TABLE STYLE ===== */
.junctions-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 30px;
}

.junction-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
    font-size: 0.88rem;
}

.junction-item:hover {
    border-color: #d8315b;
    box-shadow: 0 2px 8px rgba(216, 49, 91, 0.1);
}

.junction-number {
    font-weight: 700;
    color: #1a1a1a;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    white-space: nowrap;
}

.junction-name {
    font-weight: 600;
    color: #1a1a1a;
}

.junction-name a {
    color: #d8315b;
    text-decoration: none;
    font-weight: 700;
}

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

.junction-name .no-link {
    color: #888;
    font-weight: 400;
}

@media (max-width: 600px) {
    .junctions-table {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .junction-item {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
}

@media (max-width: 400px) {
    .junctions-table {
        grid-template-columns: 1fr;
    }
}

/* ===== ROADS SECTION OVERRIDES ===== */
.roads-section .section-title {
    color: #1a1a1a;
}

.roads-section .section-divider {
    background: #d8315b;
}

.roads-section .section-divider::before,
.roads-section .section-divider::after {
    background: #d8315b;
}

/* ===== HAZARD RULE ===== */
.hazard-rule {
    height: 4px;
    background: #d8315b;
    opacity: 0.2;
}

/* Junction pills */
.junction-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.junction-pill--link {
    background: #f0f0f0;
    color: #1a1a1a;
}
.junction-pill--link:hover {
    background: #d8315b;
    color: #fff;
}
.junction-pill--link:hover .junction-pill__tag {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.junction-pill--active {
    background: #d8315b;
    color: #fff;
}
.junction-pill--inactive {
    background: #f8f9fa;
    color: #999;
    border: 1px solid #e5e5e5;
    cursor: default;
}
.junction-pill__tag {
    padding: 0 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}
.junction-pill--link .junction-pill__tag {
    background: #d8315b;
    color: #fff;
}
.junction-pill--active .junction-pill__tag {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.junction-pill--inactive .junction-pill__tag {
    background: #ccc;
    color: #fff;
}