* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px 16px;
    background: #2c5282;
    color: white;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

.timeline-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

.date-group {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 3rem;
    position: relative;
    margin-left: 0;
    overflow: visible;
}

.date-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    border-radius: 12px 12px 0 0;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-size: 2.25rem;
    font-weight: 600;
    color: #2d3748;
    backdrop-filter: blur(5px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-bottom: 1px solid #e8e8e8;
    border-top: none;
    border-left: none;
    border-right: none;
    display: flex;
    align-items: center;
}

.date-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 2px;
}

.date-link:hover {
    text-decoration: none;
    color: #4a5568;
    border-bottom: 2px solid #4a5568;
    padding-bottom: 0;
}

.date-link:hover .link-icon {
    opacity: 0.6;
}

.date-link:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

.date-link:active {
    color: #2c5282;
}

.link-icon {
    font-size: 0.8em;
    margin-left: 0.5em;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.feature-card {
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.2s ease;
    scroll-margin-top: 100px;
    /* content-visibility: auto; */
}

/* Styles for newly-available and widely-available cards */
.feature-card.newly-available {
    border-left: 5px solid #5c6bc0; /* Slightly thicker blue border */
    background-color: #ffffff;
}

.feature-card.widely-available {
    border-left: 5px solid #66bb6a; /* Slightly thicker green border */
    background-color: #ffffff;
}

/* Style for limited availability features - no colored stripe */
.feature-card.limited-availability {
    border-left: 5px solid #e2e8f0;
    background-color: #ffffff;
}
.feature-card.discouraged {
    padding-left: calc(1rem + 5px);
}

/* Style for future widely available features - ensure consistent border thickness */
.feature-card.widely-available.future {
    border-left: 5px solid #66bb6a; /* Match the thickness of other widely available features */
    background-color: #ffffff;
    opacity: 1;
}

/* Remove the "Widely Available" text */
.feature-card.widely-available::before {
    content: none;
}

/* Remove the "Widely Available (Future)" text */
.feature-card.widely-available.future::before {
    content: none;
}

/* Hide the availability info */
.availability-info {
    display: none;
}

/* Enhance hover effects for different card types */
.feature-card.newly-available:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(92, 107, 192, 0.2); /* Blue shadow */
    border-left-color: #3949ab; /* Darker blue */
}

.feature-card.widely-available:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(102, 187, 106, 0.2); /* Green shadow */
    border-left-color: #43a047; /* Darker green */
}

.feature-card.limited-availability:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(224, 224, 224, 0.3); /* Light gray shadow */
    border-left-color: #bdbdbd; /* Darker gray */
}

.feature-card:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card.expanded {
    background: #ffffff;
    border-top-color: #e2e8f0;
    border-right-color: #e2e8f0;
    border-bottom-color: #e2e8f0;
    /* Don't set the left border color to preserve the colored borders */
}

.feature-card-header {
    width: 100%;
}

.feature-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 2px;
    overflow: hidden;
}

.feature-top-row:hover {
    background: rgba(0, 0, 0, 0.02);
    box-shadow: 0 0 0 0.25rem rgba(0,0,0,0.02);
}

.feature-top-row:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

.feature-title-container {
    display: flex;
    align-items: center;
    flex: 1;
    min-height: 32px; /* Ensure consistent height */
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    word-break: break-word;
}

.feature-type {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.feature-type.newly-available {
    background: #ebf8ff;
    color: #2b6cb0;
}

.feature-type.widely-available {
    background: #f0fff4;
    color: #2f855a;
}

.browser-support {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.browser-tag {
    display: flex;
    align-items: center;
    background: #ffffff !important; /* Force white background in all contexts */
    border: 1px solid #edf2f7;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    height: 24px; /* Fixed height for consistency */
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.browser-tag:hover {
    border-color: #a0aec0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.browser-tag.active-filter {
    background-color: #ebf4ff !important;
    border-color: #4299e1;
    color: #2b6cb0;
    font-weight: 500;
}

.browser-logo {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
}
.feature-card.discouraged .browser-logo {
    filter: grayscale(100%);
}

.version-text {
    font-weight: 500;
    line-height: 1;
}

.expand-icon {
    font-size: 1.2rem;
    color: #718096;
    transition: transform 0.2s ease;
}

.expanded .expand-icon {
    transform: rotate(45deg);
}

.feature-details {
    padding: 1rem 0.5rem 0.5rem;
    border-top: 1px solid #edf2f7;
    margin-top: 0.5rem;
}

.feature-description {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 1rem;
}

/* Feature links container */
.feature-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Feature links styling */
.feature-links a {
    display: inline-block;
    font-size: 0.85rem;
    text-decoration: none;
    color: #4299e1;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

/* Permalink icon for feature header */
.feature-link-icon {
    font-size: 0.8em;
    margin-left: 0.5em;
    opacity: 0;
    transition: opacity 0.2s;
    text-decoration: none;
}

.feature-top-row:hover .feature-link-icon,
.feature-link-icon:focus {
    opacity: 0.6;
}

.feature-links a:hover {
    text-decoration: underline;
    color: #2b6cb0;
    background-color: transparent;
}

.feature-links a:focus {
    text-decoration: underline;
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

.feature-links a:active {
    color: #2c5282;
}

/* Loading indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
.error-message {
    padding: 2rem;
    margin: 2rem 0;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    color: #c53030;
    text-align: center;
}

.error-message button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.error-message button:hover {
    background: #2c5282;
}

/* NoScript message */
.noscript-message {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    text-align: center;
}

.noscript-message h2 {
    color: #c53030;
    margin-bottom: 1rem;
}

/* Virtual scrolling */
.virtual-items-container {
    width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
    .date-header {
        font-size: 1.75rem;
        padding: 1rem;
    }
    
    .feature-top-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .browser-support {
        margin-top: 0.5rem;
        margin-right: 0;
    }
    
    .expand-icon {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .date-header {
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .browser-tag {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .feature-card {
        border: 1px solid CanvasText;
    }
    
    .date-header {
        border-bottom: 1px solid CanvasText;
    }
    
    .feature-type {
        border: 1px solid CanvasText;
    }
    
    .browser-tag {
        border: 1px solid CanvasText;
    }
}

/* Focus visible polyfill */
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

.feature-date {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.chrome, .firefox, .safari, .edge { 
    /* Remove background and color styles to make plain chips */
    background: transparent; 
    color: inherit; 
}

.baseline-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
    display: inline-flex;
}

.feature-card.discouraged .baseline-icon {
    filter: grayscale(100%);
}

/* Remove old baseline tag styles */
.baseline-tag,
.baseline-limited,
.baseline-new,
.baseline-wide {
    display: none;
}

/* Browser Support Table Styles */
.browser-support-table-container {
    margin: 1rem 0;
    overflow-x: auto;
}

.browser-support-table {
    margin: 0 auto;
    width: 100%;
    max-width: 600px; /* Limit width on desktop */
    border-collapse: collapse;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: visible;
}

.browser-support-table thead {
    background-color: #f5f7fa;
}

.browser-support-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
}

/* Ensure proper column widths for the two-column layout */
.browser-support-table th:first-child {
    width: 60%;
}

.browser-support-table th:last-child {
    width: 40%;
}

.browser-support-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.browser-support-table tbody tr:last-child td {
    border-bottom: none;
}

.browser-support-table tbody tr:hover {
    background-color: #f9fafb;
}

.browser-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    background: transparent;
}

.browser-cell .browser-logo {
    width: 20px;
    height: 20px;
}

.date-cell {
    color: #718096;
}

/* Additional styling for HTML elements in feature descriptions */
.feature-description a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
    border-bottom: none;
    position: relative;
    transition: color 0.2s ease;
}

.feature-description a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    opacity: 0.4;
    transition: opacity 0.2s ease, height 0.2s ease;
}

.feature-description a:hover {
    color: #2b6cb0;
    background-color: transparent;
}

.feature-description a:hover::after {
    opacity: 0.8;
    height: 1px;
}

.feature-description a:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

.feature-description a:active {
    color: #2c5282;
}

.feature-description strong, 
.feature-description b {
    font-weight: 600;
    color: #2d3748;
}

.feature-description em, 
.feature-description i {
    font-style: italic;
}

.feature-description ul, 
.feature-description ol {
    margin: 0.75rem 0 0.75rem 1.5rem;
}

.feature-description li {
    margin-bottom: 0.25rem;
}

.feature-description p {
    margin-bottom: 0.75rem;
}

.feature-description p:last-child {
    margin-bottom: 0;
}

.feature-description blockquote {
    border-left: 4px solid #e2e8f0;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #4a5568;
    font-style: italic;
}

/* Add specific scroll margin for expanded cards */
.feature-card.expanded {
    scroll-margin-top: 120px; /* Even more space for expanded cards */
}

/* Styling for code elements in feature descriptions */
.feature-description code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    background-color: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 3px;
    padding: 0.2em 0.4em;
    color: #2d3748;
    white-space: nowrap;
}

/* Styling for pre blocks in feature descriptions */
.feature-description pre {
    background-color: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.feature-description pre code {
    background-color: transparent;
    border: none;
    padding: 0;
    white-space: pre;
    display: block;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Styling for availability info text */
.availability-info-text {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: #f8fafc;
    border-left: 3px solid #e2e8f0;
    border-radius: 0 4px 4px 0;
    font-weight: 500;
    line-height: 1.5;
}

.feature-card.newly-available .availability-info-text {
    border-left-color: #5c6bc0;
    background-color: rgba(92, 107, 192, 0.05);
}

.feature-card.widely-available .availability-info-text {
    border-left-color: #66bb6a;
    background-color: rgba(102, 187, 106, 0.05);
}

.feature-card.limited-availability .availability-info-text {
    border-left-color: #e0e0e0;
    background-color: rgba(224, 224, 224, 0.2);
}

.discouraged .availability-info-text a {
    color: inherit;
    text-decoration: underline;
}

/* Style for the widely available link in the newly available text */
.widely-available-link {
    color: #5c6bc0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px dotted #5c6bc0;
    padding-bottom: 1px;
}

.widely-available-link:hover {
    color: #3949ab;
    border-bottom: 1px solid #3949ab;
}

.widely-available-link:focus {
    outline: 2px solid #5c6bc0;
    outline-offset: 2px;
}

/* Add padding to the feature cards container */
.date-group > .feature-card:first-of-type {
    margin-top: 1.5rem;
}

.date-group > .feature-card {
    margin-left: 20px;
    margin-right: 20px;
}

.date-group > .feature-card:last-of-type {
    margin-bottom: 20px;
}

/* Scroll to current month FAB */
.scroll-to-current-month-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    min-width: 56px;
    height: 48px;
    border-radius: 24px;
    background-color: #5c6bc0;
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    opacity: 1;
    padding: 0 16px;
    gap: 8px;
    transform: translateY(0);
    pointer-events: auto;
    will-change: transform, opacity;
    visibility: visible; /* Ensure visibility is explicitly set */
}

.scroll-to-current-month-fab.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    visibility: hidden; /* Ensure the element can't be interacted with when hidden */
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.scroll-to-current-month-fab:hover {
    background-color: #3949ab;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-current-month-fab:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.scroll-to-current-month-fab .fab-icon {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-current-month-fab .fab-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* For smaller screens, make the FAB smaller and only show the icon */
@media (max-width: 768px) {
    .scroll-to-current-month-fab {
        width: 48px;
        height: 48px;
        min-width: unset;
        bottom: 16px;
        right: 16px;
        border-radius: 50%;
        padding: 0;
        aspect-ratio: 1 / 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .scroll-to-current-month-fab .fab-icon {
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        position: relative;
        top: -1px; /* Slight adjustment to visually center the emoji */
    }
    
    .scroll-to-current-month-fab .fab-text {
        display: none;
    }
}

/* Responsive styles for the table */
@media (max-width: 768px) {
    .browser-support-table {
        width: 100%;
        max-width: none; /* Allow full width on mobile */
        font-size: 0.9rem; /* Use the final font-size value */
    }
}

/* Download header and footer styles */
.download-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.download-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.download-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.download-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.download-footer p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.download-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.download-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3), 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Adjust timeline container margin for header */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 20px;
}

/* Mobile responsive styles for download sections */
@media (max-width: 768px) {
    .download-header h1 {
        font-size: 2rem;
    }
    
    .download-header p {
        font-size: 1rem;
    }
    
    .download-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .download-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .download-header h1 {
        font-size: 1.75rem;
    }
    
    .download-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Selection functionality styles */
.feature-card.selected {
    border: 2px solid #4299e1;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.2);
    position: relative;
}

.feature-card.selected::before {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #4299e1;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

.feature-card.selected:hover {
    border-color: #3182ce;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.3);
}

/* Add to calendar button styles */
.add-to-calendar-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.add-to-calendar-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.add-to-calendar-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(66, 153, 225, 0.3);
}

.add-to-calendar-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3), 0 2px 8px rgba(66, 153, 225, 0.3);
}

/* Mobile responsive styles for selection */
@media (max-width: 768px) {
    .feature-card.selected::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: -6px;
        right: -6px;
    }
    
    .add-to-calendar-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        margin-right: 0.5rem;
    }
    
    .feature-links {
        gap: 0.5rem;
    }
}

/* Selection count styling */
.selection-count {
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 500;
}

/* Keyboard shortcuts dialog */
.shortcuts-dialog {
    padding: 0;
    border: none;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    
    /* Center the dialog in the viewport */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.shortcuts-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
}

.dialog-content {
    padding: 24px;
}

.dialog-content h2 {
    margin-bottom: 16px;
    color: #2c5282;
    font-size: 1.5em;
}

.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.shortcuts-table tr {
    border-bottom: 1px solid #eee;
}

.shortcuts-table tr:last-child {
    border-bottom: none;
}

.shortcuts-table td {
    padding: 10px 0;
}

.shortcuts-table td:first-child {
    width: 80px;
    text-align: center;
}

.shortcuts-table kbd {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    display: inline-block;
    font-family: monospace;
    font-size: 0.9em;
    font-weight: bold;
    line-height: 1;
    padding: 4px 8px;
    white-space: nowrap;
}

.close-dialog-btn {
    display: block;
    margin: 0 auto;
    padding: 8px 16px;
    background-color: #2c5282;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}

.close-dialog-btn:hover {
    background-color: #1a365d;
}

.close-dialog-btn:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* Developer Signals/Upvotes Styling */
.developer-signal-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(247, 250, 252, 0.6);
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
}

.upvote-info {
    display: flex;
    align-items: center;
    margin-left: 8px;
    font-size: 0.8rem;
    height: auto;
    white-space: nowrap;
}

/* Styling for upvote when placed next to the title */
.title-upvote {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 8px;
    margin-right: 4px;
}

.upvote-count {
    display: flex;
    align-items: center;
    color: #718096;
    font-weight: normal;
    background-color: rgba(247, 250, 252, 0.5);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    line-height: 1;
    height: 20px;
}

.upvote-icon {
    margin-right: 3px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.upvote-count:hover {
    background-color: #f7fafc;
    color: #2d3748;
    text-decoration: none;
    border-color: #cbd5e0;
}

.upvote-count:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* Make room for the developer signals section */
.feature-card.newly-available .feature-content,
.feature-card.widely-available .feature-content,
.feature-card.limited-availability .feature-content {
    border-radius: 0;
}

/* Style adjustments for different card types */
.feature-card.widely-available .developer-signal-container {
    border-top-color: rgba(0, 128, 0, 0.1);
}

.feature-card.newly-available .developer-signal-container {
    border-top-color: rgba(0, 0, 255, 0.1);
}

.feature-card.limited-availability .developer-signal-container {
    border-top-color: rgba(255, 165, 0, 0.1);
}

/* Style for cards in expanded state */
.feature-card.expanded .developer-signal-container {
    border-top-width: 2px;
}

/* Interop Styles */
.interop-tag {
    display: flex;
    align-items: center;
    background: #ffffff !important; /* Force white background in all contexts */
    border: 1px solid #edf2f7;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    height: 24px; /* Fixed height for consistency */
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.interop-tag:hover {
    border-color: #a0aec0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.interop-tag.active-filter {
    background-color: #ebf4ff !important;
    border-color: #4299e1;
    color: #2b6cb0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .interop-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}
