:root {
    --dst-primary: hsl(340, 71%, 54%); /* vibrant pink matching brand standard */
    --dst-primary-hover: hsl(340, 71%, 44%);
    --dst-primary-light: hsl(340, 71%, 97%);
    
    --dst-spring: hsl(150, 70%, 40%);
    --dst-spring-light: hsl(150, 70%, 95%);
    --dst-fall: hsl(25, 95%, 45%);
    --dst-fall-light: hsl(25, 95%, 96%);
    
    --dst-bg: hsl(210, 40%, 98%);
    --dst-card-bg: #ffffff;
    --dst-border: hsl(214, 32%, 91%);
    
    --dst-text-main: hsl(215, 25%, 20%);
    --dst-text-muted: hsl(217, 10%, 50%);
    
    --dst-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --dst-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --dst-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Inconsolata', monospace;
}

/* Page base overrides */
.dst-year-page {
    font-family: var(--font-sans);
    background-color: var(--dst-bg);
    color: var(--dst-text-main);
    line-height: 1.5;
}

/* Hero Section styling */
.dst-year-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    padding: 4.5em 0 4em 0;
    text-align: center;
    border-bottom: 1px solid var(--dst-border);
    position: relative;
    overflow: hidden;
}

.dst-year-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(0,0,0,0.02) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.8;
    pointer-events: none;
}

.dst-hero-title {
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 0.3em;
    letter-spacing: -0.03em;
    color: #0f172a;
    background: linear-gradient(to right, #0f172a 40%, var(--dst-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dst-hero-subtitle {
    font-size: 1.25em;
    color: var(--dst-text-muted);
    max-width: 600px;
    margin: 0 auto 2em auto;
}

/* Year Selector Tabs */
.dst-year-selector-tabs {
    display: inline-flex;
    background: #e2e8f0;
    padding: 5px;
    border-radius: 30px;
    margin-bottom: 2.5em;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.dst-year-tab {
    display: inline-block;
    padding: 0.6em 1.8em;
    font-size: 0.95em;
    font-weight: 600;
    color: #475569 !important;
    border-radius: 25px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dst-year-tab:hover {
    color: #0f172a !important;
}

.dst-year-tab.active {
    background: #ffffff;
    color: var(--dst-primary) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Hero Stats cards */
.dst-year-stats {
    display: flex;
    justify-content: center;
    gap: 2em;
    margin-top: 1em;
    flex-wrap: wrap;
}

.dst-year-stat-card {
    background: var(--dst-card-bg);
    border: 1px solid var(--dst-border);
    padding: 1.5em 2em;
    border-radius: 16px;
    box-shadow: var(--dst-shadow-sm);
    min-width: 220px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dst-year-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dst-shadow-md);
}

.dst-year-stat-value {
    font-size: 2.5em;
    font-weight: 800;
    color: #0f172a;
    display: block;
    font-family: var(--font-mono);
    line-height: 1.2;
    margin-bottom: 4px;
}

.dst-year-stat-label {
    color: var(--dst-text-muted);
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Sections Base */
.dst-section-wrapper {
    padding: 4.5em 0;
    border-bottom: 1px solid var(--dst-border);
}

.dst-section__header {
    margin-bottom: 2.5em;
}

.dst-section__header h2 {
    font-size: 2.25em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.3em;
    color: #0f172a;
}

.dst-section__header p {
    color: var(--dst-text-muted);
    font-size: 1.1em;
    margin: 0;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5em;
}

/* Timeline Roadmap styling */
.dst-timeline-roadmap-scroll {
    overflow-x: auto;
    padding: 1em 0.5em 2em 0.5em;
    margin: 0 -0.5em;
    scroll-behavior: smooth;
}

/* Custom scrollbar styling */
.dst-timeline-roadmap-scroll::-webkit-scrollbar {
    height: 8px;
}
.dst-timeline-roadmap-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.dst-timeline-roadmap-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.dst-timeline-roadmap-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dst-timeline-roadmap {
    display: flex;
    gap: 2em;
    min-width: max-content;
    position: relative;
    padding-bottom: 10px;
}

.dst-timeline-roadmap::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #cbd5e1;
    z-index: 1;
}

.dst-roadmap-node {
    width: 280px;
    background: var(--dst-card-bg);
    border: 1px solid var(--dst-border);
    border-radius: 16px;
    padding: 1.25em;
    box-shadow: var(--dst-shadow-sm);
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dst-roadmap-node:hover {
    transform: translateY(-4px);
    border-color: var(--dst-primary);
    box-shadow: var(--dst-shadow-md);
}

.dst-roadmap-node.active-filter {
    border-color: var(--dst-primary);
    background: var(--dst-primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dst-roadmap-dot {
    width: 16px;
    height: 16px;
    border-radius: 50px;
    background: #cbd5e1;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.dst-roadmap-node:hover .dst-roadmap-dot {
    transform: translate(-50%, -50%) scale(1.2);
}

.dst-roadmap-node.spring .dst-roadmap-dot {
    background: var(--dst-spring);
}

.dst-roadmap-node.fall .dst-roadmap-dot {
    background: var(--dst-fall);
}

.dst-roadmap-header {
    margin-top: 40px; /* Offset below the dot line */
    text-align: center;
}

.dst-roadmap-date {
    display: block;
    font-size: 1.15em;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.dst-roadmap-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.dst-roadmap-node.spring .dst-roadmap-badge {
    background-color: var(--dst-spring-light);
    color: var(--dst-spring);
}

.dst-roadmap-node.fall .dst-roadmap-badge {
    background-color: var(--dst-fall-light);
    color: var(--dst-fall);
}

.dst-roadmap-countries {
    font-size: 0.85em;
    color: var(--dst-text-muted);
    text-align: center;
    border-top: 1px solid var(--dst-border);
    padding-top: 10px;
    margin-top: 10px;
    height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dst-loading {
    padding: 3em;
    text-align: center;
    color: var(--dst-text-muted);
    font-weight: 600;
    width: 100%;
}

/* Controls section styling */
.dst-controls-section {
    padding: 2.5em 0;
    background: #f8fafc;
}

.dst-controls-card {
    background: var(--dst-card-bg);
    border: 1px solid var(--dst-border);
    border-radius: 16px;
    padding: 1.5em;
    box-shadow: var(--dst-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.25em;
}

.dst-search-box {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 14px;
    background: #f8fafc;
    transition: all 0.2s ease;
    width: 100%;
}

.dst-search-box:focus-within {
    border-color: var(--dst-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dst-search-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

.dst-search-input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 1em;
    color: var(--dst-text-main);
}

.dst-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    align-items: center;
}

.dst-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dst-filter-label {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dst-text-muted);
    letter-spacing: 0.5px;
}

.dst-filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.dst-chip {
    border: 1px solid var(--dst-border);
    background: var(--dst-card-bg);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.85em;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.dst-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.dst-chip.active {
    background: var(--dst-primary);
    border-color: var(--dst-primary);
    color: #ffffff;
}

/* Calendar Table styling */
.dst-calendar-table-wrapper {
    background: var(--dst-card-bg);
    border: 1px solid var(--dst-border);
    border-radius: 16px;
    box-shadow: var(--dst-shadow-sm);
    overflow: hidden;
    margin-top: 1.5em;
}

.dst-calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.dst-calendar-table th,
.dst-calendar-table td {
    padding: 1.1em 1.25em;
    text-align: left;
}

.dst-calendar-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #334155;
    border-bottom: 1px solid var(--dst-border);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dst-calendar-table td {
    border-bottom: 1px solid var(--dst-border);
}

.dst-calendar-table tbody tr {
    transition: background-color 0.15s ease;
}

.dst-calendar-table tbody tr:hover {
    background-color: #f8fafc;
}

.dst-calendar-table tr:last-child td {
    border-bottom: none;
}

/* Badges for start/end offsets */
.dst-offset-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85em;
}

.dst-offset-badge.spring-shift {
    background-color: var(--dst-spring-light);
    color: var(--dst-spring);
}

.dst-offset-badge.fall-shift {
    background-color: var(--dst-fall-light);
    color: var(--dst-fall);
}

.dst-link {
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.dst-link:hover {
    color: var(--dst-primary);
    text-decoration: underline;
}

.text-muted-tz {
    display: inline-block;
    font-size: 0.85em;
    color: var(--dst-text-muted);
    margin-top: 2px;
}

.dst-results-badge {
    background: #cbd5e1;
    color: #475569;
    font-size: 0.8em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

/* SEO content section */
.dst-seo-section {
    background-color: #ffffff;
    padding: 5em 0;
}

.dst-seo-card {
    max-width: 1000px;
    margin: 0 auto;
}

.dst-seo-title {
    font-size: 2.25em;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
    padding-bottom: 15px;
}

.dst-seo-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--dst-primary);
    border-radius: 2px;
}

.dst-seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5em;
    margin-top: 1em;
}

.dst-seo-col p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1.5em;
}

.dst-seo-col p:last-child {
    margin-bottom: 0;
}

/* Responsive fixes */
@media (max-width: 991px) {
    .dst-seo-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    .dst-hero-title {
        font-size: 2.75em;
    }
}

@media (max-width: 768px) {
    .dst-year-hero {
        padding: 3.5em 0;
    }
    .dst-hero-title {
        font-size: 2.25em;
    }
    .dst-year-stats {
        flex-direction: column;
        align-items: center;
        gap: 1em;
    }
    .dst-year-stat-card {
        width: 100%;
        max-width: 320px;
    }
    .dst-filters-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .dst-filter-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .flex-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    .dst-results-badge {
        align-self: flex-start;
    }
}

/* Quick Links section redesign */
.dst-quick-links {
    display: flex;
    justify-content: center;
    gap: 1.25em;
    margin-top: 2.5em;
    flex-wrap: wrap;
}

.dst-quick-link-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85em 1.75em;
    background: var(--dst-card-bg);
    border: 1px solid var(--dst-border);
    border-radius: 14px;
    color: #1e293b !important;
    text-decoration: none !important;
    font-weight: 600;
    box-shadow: var(--dst-shadow-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dst-quick-link-btn:hover {
    color: var(--dst-primary) !important;
    border-color: var(--dst-primary);
    transform: translateY(-2px);
    box-shadow: var(--dst-shadow-md);
}
