/* ============================================================
   STATE PAGE - Specific Styles
   Reusable for all 50 state pages
   ============================================================ */

/* ============================================================
   BREADCRUMB
   ============================================================ */
.sp-breadcrumb {
    background: var(--forest-authority);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 0;
}

/* ============================================================
   SHARED BUTTON STYLES
   ============================================================ */
.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    padding: 11px 22px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
    white-space: nowrap;
}

.sp-btn i {
    font-size: 17px;
}

.sp-btn-primary {
    background: var(--insight-highlight);
    color: var(--forest-authority);
    border-color: var(--insight-highlight);
}

.sp-btn-primary:hover {
    background: #c49a30;
    color: var(--forest-authority);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 168, 67, 0.35);
}

.sp-btn-outline-light {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
}

.sp-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.sp-btn-text-light {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border-color: transparent;
}

.sp-btn-text-light:hover {
    color: var(--insight-highlight);
}

.sp-btn-lg {
    font-size: 15px;
    padding: 13px 26px;
}

/* ============================================================
   HERO
   ============================================================ */
.sp-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

/* Background image */
.sp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sp-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark overlay */
.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(11, 59, 47, 0.92) 0%,
            rgba(11, 59, 47, 0.78) 50%,
            rgba(11, 59, 47, 0.65) 100%);
}

/* Inner layout */
.sp-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    padding: 72px 0 80px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Hero eyebrow */
.sp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid rgba(212, 168, 67, 0.25);
    border-radius: 100px;
    padding: 5px 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--insight-highlight);
    margin-bottom: 20px;
}

/* H1 */
.sp-hero-h1 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(26px, 3.5vw, 46px);
    line-height: 1.15;
    color: #fff;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
}

.sp-hero-intro {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 28px;
    max-width: 560px;
}

/* Quick stats row */
.sp-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-hero-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-hero-stat i {
    font-size: 22px;
    color: var(--insight-highlight);
    flex-shrink: 0;
}

.sp-stat-label {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.sp-stat-value {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

/* ── Status Card ── */
.sp-hero-card-wrap {
    position: sticky;
    top: calc(var(--nav-height) + 16px);
}

.sp-status-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.sp-status-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-status-card-header i {
    font-size: 26px;
    color: var(--insight-highlight);
    flex-shrink: 0;
}

.sp-status-card-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.sp-status-card-sub {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* Status pill */
.sp-status-pill {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sp-status-legal {
    background: rgba(26, 115, 64, 0.25);
    color: #4ADE80;
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.sp-status-medical {
    background: rgba(107, 142, 123, 0.25);
    color: var(--botanical-calm);
    border: 1px solid rgba(107, 142, 123, 0.3);
}

.sp-status-cbd {
    background: rgba(212, 168, 67, 0.15);
    color: var(--insight-highlight);
    border: 1px solid rgba(212, 168, 67, 0.25);
}

.sp-status-illegal {
    background: rgba(192, 86, 17, 0.2);
    color: #F87171;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

/* Status rows */
.sp-status-rows {
    padding: 8px 0;
}

.sp-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 12px;
}

.sp-status-row:last-child {
    border-bottom: none;
}

.sp-status-row-label {
    font-family: 'Manrope', sans-serif;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.sp-status-row-val {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
}

.sp-val-green {
    color: #4ADE80;
}

.sp-val-red {
    color: #F87171;
}

.sp-val-gold {
    color: var(--insight-highlight);
}

/* Status card footer */
.sp-status-update {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
}

.sp-status-update i {
    font-size: 12px;
    color: var(--botanical-calm);
}

/* ============================================================
   TABLE OF CONTENTS BAR
   ============================================================ */
.sp-toc-bar {
    background: var(--neutral-card);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 2px 12px rgba(11, 59, 47, 0.06);
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
}

.sp-toc-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sp-toc-inner::-webkit-scrollbar {
    display: none;
}

.sp-toc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--subtle-ui);
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 14px;
    border-right: 1px solid var(--card-border);
}

.sp-toc-label i {
    font-size: 14px;
    color: var(--botanical-calm);
}

.sp-toc-links {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.sp-toc-links a {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--subtle-ui);
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
    flex-shrink: 0;
}

.sp-toc-links a:hover,
.sp-toc-links a.active {
    color: var(--forest-authority);
    background: rgba(11, 59, 47, 0.06);
}

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.sp-article {
    background: var(--neutral-card);
}

.sp-article-inner {
    padding: 64px 24px;
}

/* ============================================================
   TIMELINE SECTION
   ============================================================ */
.sp-timeline-section {
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--card-border);
}

.sp-timeline-section:last-of-type {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: none;
}

/* Section label row */
.sp-section-label {
    margin-bottom: 36px;
}

.sp-section-label h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(20px, 2.8vw, 30px);
    color: var(--forest-authority);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 14px 0 10px;
}

.sp-section-label p {
    font-size: 14px;
    color: var(--subtle-ui);
    line-height: 1.7;
    max-width: 640px;
    margin: 0;
}

/* Era badge */
.sp-section-era {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 100px;
}

.sp-era-modern {
    background: rgba(212, 168, 67, 0.12);
    color: #926A14;
    border: 1px solid rgba(212, 168, 67, 0.25);
}

.sp-era-legal {
    background: rgba(11, 59, 47, 0.08);
    color: var(--forest-authority);
    border: 1px solid rgba(11, 59, 47, 0.15);
}

.sp-era-reform {
    background: rgba(107, 142, 123, 0.12);
    color: var(--botanical-calm);
    border: 1px solid rgba(107, 142, 123, 0.22);
}

.sp-era-prohibition {
    background: rgba(192, 86, 17, 0.08);
    color: #C05611;
    border: 1px solid rgba(192, 86, 17, 0.18);
}

/* ── Timeline ── */
.sp-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* Vertical connector line */
.sp-timeline::before {
    content: '';
    position: absolute;
    left: 46px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg,
            var(--insight-highlight) 0%,
            var(--botanical-calm) 50%,
            var(--card-border) 100%);
    z-index: 0;
}

/* Timeline item */
.sp-timeline-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 20px 0;
    position: relative;
}

/* Year marker bubble */
.sp-tl-marker {
    width: 92px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.sp-tl-marker span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-card);
    border: 2px solid var(--card-border);
    border-radius: 100px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: var(--subtle-ui);
    padding: 4px 10px;
    white-space: nowrap;
    transition: all 0.3s;
}

.sp-tl-marker-active span {
    background: var(--insight-highlight);
    border-color: var(--insight-highlight);
    color: var(--forest-authority);
    box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.18);
}

.sp-tl-marker-landmark span {
    background: var(--forest-authority);
    border-color: var(--forest-authority);
    color: var(--insight-highlight);
    box-shadow: 0 0 0 4px rgba(11, 59, 47, 0.12);
}

/* Timeline content */
.sp-tl-content {
    flex: 1;
    background: var(--data-clarity);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 18px 20px;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.sp-tl-content:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(11, 59, 47, 0.08);
}

/* Landmark highlight */
.sp-tl-landmark .sp-tl-content {
    background: var(--neutral-card);
    border-color: var(--forest-authority);
    border-left: 4px solid var(--forest-authority);
}

/* Active/2026 highlight */
.sp-tl-highlight .sp-tl-content {
    background: rgba(212, 168, 67, 0.04);
    border-color: rgba(212, 168, 67, 0.3);
    border-left: 4px solid var(--insight-highlight);
}

/* Arrow pointer from content to timeline */
.sp-tl-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 14px;
    height: 14px;
    background: var(--data-clarity);
    border-left: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    transform: rotate(45deg);
}

.sp-tl-landmark .sp-tl-content::before {
    background: var(--neutral-card);
    border-left-color: var(--forest-authority);
    border-bottom-color: var(--forest-authority);
}

.sp-tl-highlight .sp-tl-content::before {
    background: rgba(212, 168, 67, 0.04);
    border-left-color: rgba(212, 168, 67, 0.3);
    border-bottom-color: rgba(212, 168, 67, 0.3);
}

/* Tag badge */
.sp-tl-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 9px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.sp-tag-federal {
    background: rgba(212, 168, 67, 0.12);
    color: #926A14;
    border: 1px solid rgba(212, 168, 67, 0.25);
}

.sp-tag-milestone {
    background: var(--forest-authority);
    color: var(--insight-highlight);
}

.sp-tag-legislative {
    background: rgba(11, 59, 47, 0.08);
    color: var(--forest-authority);
    border: 1px solid rgba(11, 59, 47, 0.15);
}

.sp-tag-policy {
    background: rgba(107, 142, 123, 0.1);
    color: var(--botanical-calm);
    border: 1px solid rgba(107, 142, 123, 0.2);
}

.sp-tag-restricted {
    background: rgba(192, 86, 17, 0.08);
    color: #C05611;
    border: 1px solid rgba(192, 86, 17, 0.18);
}

/* Content typography */
.sp-tl-content h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--readable-ink);
    line-height: 1.35;
    margin-bottom: 8px;
}

.sp-tl-landmark .sp-tl-content h3 {
    font-size: 16px;
    color: var(--forest-authority);
}

.sp-tl-content p {
    font-size: 13.5px;
    color: var(--subtle-ui);
    line-height: 1.7;
    margin: 0;
}

.sp-tl-date {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    color: var(--botanical-calm);
    margin-top: 10px;
    font-weight: 500;
}

/* ============================================================
   QUICK FACTS PANEL
   ============================================================ */
.sp-facts-section {
    margin-top: 48px;
    background: var(--forest-authority);
    border-radius: var(--card-radius);
    padding: 32px;
    overflow: hidden;
}

.sp-facts-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.sp-facts-header i {
    font-size: 22px;
    color: var(--insight-highlight);
}

.sp-facts-header h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.sp-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sp-fact-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--card-radius);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background var(--transition);
}

.sp-fact-card:hover {
    background: rgba(255, 255, 255, 0.09);
}

.sp-fact-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.sp-fact-icon-green {
    color: #4ADE80;
}

.sp-fact-icon-red {
    color: #F87171;
}

.sp-fact-icon-gold {
    color: var(--insight-highlight);
}

.sp-fact-label {
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sp-fact-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.sp-fact-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

/* ============================================================
   FINAL CTA (inherits global .final-cta from style.css)
   State-specific inner layout
   ============================================================ */
.sp-cta-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.sp-cta-copy h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 3vw, 36px);
    color: #fff;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    line-height: 1.2;
}

.sp-cta-copy p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    margin: 0;
}

.sp-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

/* ============================================================
   RESPONSIVE — State Page
   ============================================================ */
@media (max-width: 960px) {
    .sp-hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 56px 0 64px;
    }

    .sp-hero-card-wrap {
        position: static;
        max-width: 480px;
    }

    .sp-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-cta-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sp-cta-actions {
        width: 100%;
        align-items: stretch;
    }

    .sp-cta-actions .sp-btn {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .sp-hero {
        min-height: auto;
    }

    .sp-hero-h1 {
        font-size: 26px;
    }

    .sp-hero-intro {
        font-size: 14px;
    }

    .sp-hero-stats {
        gap: 14px;
    }

    .sp-toc-bar {
        top: var(--nav-height-mobile);
    }

    .sp-article-inner {
        padding: 40px 20px;
    }

    .sp-timeline-section {
        margin-bottom: 48px;
        padding-bottom: 48px;
    }

    .sp-timeline::before {
        left: 38px;
    }

    .sp-tl-marker {
        width: 76px;
    }

    .sp-tl-marker span {
        font-size: 10px;
        padding: 3px 8px;
    }

    .sp-tl-content {
        padding: 14px 16px;
    }

    .sp-tl-content h3 {
        font-size: 14px;
    }

    .sp-tl-content p {
        font-size: 13px;
    }

    .sp-facts-section {
        padding: 24px 20px;
    }

    .sp-facts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .sp-fact-value {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .sp-hero-inner {
        padding: 40px 0 52px;
    }

    .sp-hero-h1 {
        font-size: 22px;
    }

    .sp-hero-stats {
        flex-direction: column;
        gap: 10px;
    }

    .sp-timeline::before {
        left: 30px;
    }

    .sp-tl-marker {
        width: 60px;
    }

    .sp-tl-marker span {
        font-size: 9px;
        padding: 2px 6px;
    }

    .sp-tl-content {
        padding: 12px 14px;
    }

    .sp-facts-grid {
        grid-template-columns: 1fr;
    }

    .sp-status-card-header {
        flex-wrap: wrap;
    }

    .sp-status-pill {
        margin-left: 0;
        margin-top: 6px;
    }
}

@media (max-width: 360px) {
    .sp-hero-eyebrow {
        font-size: 9px;
        padding: 4px 10px;
    }

    .sp-hero-h1 {
        font-size: 20px;
    }

    .sp-tl-marker {
        width: 48px;
    }

    .sp-tl-marker span {
        font-size: 8px;
        padding: 2px 5px;
    }

    .sp-tl-content::before {
        display: none;
    }
}