/*
 * RealRoads Shortcodes
 * Visual vocabulary: interstate green, asphalt charcoal, lane-stripe yellow,
 * warm white, clean sign-like typography, and restrained road-sign geometry.
 */

:root {
    --rrsc-green: #24543c;
    --rrsc-green-dark: #183b2b;
    --rrsc-green-light: #eaf1ed;
    --rrsc-asphalt: #252a2c;
    --rrsc-asphalt-soft: #eef0ef;
    --rrsc-yellow: #d8ad35;
    --rrsc-cream: #fbfaf6;
    --rrsc-border: rgba(28, 46, 38, 0.18);
    --rrsc-text: #222826;
    --rrsc-muted: #5d6863;
}

.rrsc-box {
    position: relative;
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 0;
    margin: 1.75rem 0;
    overflow: hidden;
    border: 1px solid var(--rrsc-border);
    border-radius: 8px;
    background: var(--rrsc-cream);
    color: var(--rrsc-text);
    box-shadow: 0 8px 22px rgba(18, 30, 24, 0.08);
}

.rrsc-box::after {
    content: "";
    position: absolute;
    left: 3.4rem;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--rrsc-yellow);
}

.rrsc-box__marker {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.15rem .45rem;
    background: var(--rrsc-green);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.rrsc-box__body {
    min-width: 0;
    padding: 1.05rem 1.25rem 1.15rem;
}

.rrsc-box__title {
    margin: 0 0 .45rem;
    color: var(--rrsc-green-dark);
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.rrsc-box__content {
    color: var(--rrsc-text);
    font-size: .98rem;
    line-height: 1.65;
}

.rrsc-box__content > :first-child { margin-top: 0; }
.rrsc-box__content > :last-child { margin-bottom: 0; }
.rrsc-box__content a {
    color: var(--rrsc-green-dark);
    font-weight: 700;
    text-decoration-thickness: .08em;
    text-underline-offset: .13em;
}
.rrsc-box__content a:hover,
.rrsc-box__content a:focus { color: var(--rrsc-green); }

/* Variants */
.rrsc-box--tip .rrsc-box__marker {
    background: var(--rrsc-asphalt);
    color: var(--rrsc-yellow);
}
.rrsc-box--tip::after { background: var(--rrsc-yellow); }

.rrsc-box--addenda {
    background: #f3f5f4;
    border-style: dashed;
}
.rrsc-box--addenda .rrsc-box__marker { background: #66716c; }
.rrsc-box--addenda::after { background: #aeb6b2; }

.rrsc-box--podcast {
    grid-template-columns: 4.1rem minmax(0, 1fr);
    background: linear-gradient(135deg, #173b2a 0%, #24543c 100%);
    border-color: #173b2a;
    color: #fff;
    box-shadow: 0 10px 28px rgba(18, 47, 33, 0.18);
}
.rrsc-box--podcast::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 28px,
        rgba(255,255,255,.025) 29px,
        rgba(255,255,255,.025) 30px
    );
}
.rrsc-box--podcast::after {
    left: 4.1rem;
    height: 4px;
    background: var(--rrsc-yellow);
}
.rrsc-box--podcast .rrsc-box__marker {
    position: relative;
    z-index: 1;
    align-items: center;
    background: var(--rrsc-yellow);
    color: #173b2a;
    font-size: 1.45rem;
}
.rrsc-box--podcast .rrsc-box__body {
    position: relative;
    z-index: 1;
    padding: 1.15rem 1.35rem 1.3rem;
}
.rrsc-box--podcast .rrsc-box__title {
    display: inline-block;
    margin: 0 0 .9rem;
    padding: 0 0 .45rem;
    border-bottom: 3px solid var(--rrsc-yellow);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: .065em;
}
.rrsc-box--podcast .rrsc-box__content { color: rgba(255,255,255,.92); }
.rrsc-box--podcast .rrsc-box__content a {
    display: inline-block;
    margin-top: .15rem;
    padding: .55rem .85rem;
    border: 2px solid var(--rrsc-yellow);
    border-radius: 4px;
    background: var(--rrsc-yellow);
    color: #173b2a;
    font-weight: 900;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: 0 2px 0 rgba(0,0,0,.18);
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.rrsc-box--podcast .rrsc-box__content a:hover,
.rrsc-box--podcast .rrsc-box__content a:focus {
    background: #fff4c9;
    color: #173b2a;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .rrsc-box,
    .rrsc-box--podcast {
        grid-template-columns: 2.9rem minmax(0, 1fr);
        border-radius: 6px;
    }

    .rrsc-box::after,
    .rrsc-box--podcast::after { left: 2.9rem; }

    .rrsc-box__marker { padding-inline: .25rem; }
    .rrsc-box__body,
    .rrsc-box--podcast .rrsc-box__body { padding: .95rem 1rem 1.05rem; }
}
