:root {
    /* Colors - NepalStatus Brand */
    --navy: #0f172a;
    --slate: #1e293b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    
    /* Semantic Status Colors */
    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-text: #065f46;
    
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --warning-text: #92400e;
    
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --danger-text: #991b1b;
    
    --unknown: #64748b;
    --unknown-bg: #f8fafc;
    --unknown-text: #334155;

    /* Base Palette */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --bg-color: var(--gray-50);
    --text-color: var(--gray-800);
    --muted-text: var(--gray-500);
    --card-bg: #ffffff;
    --border: var(--gray-200);
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;
    --focus-ring: 0 0 0 4px rgba(37, 99, 235, 0.15);
    
    /* Font Weights */
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 850;
}

/* Reset & Accessibility */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul, figure {
    margin: 0;
    padding: 0;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
}

@media (min-width: 992px) {
    .layout-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.logo svg {
    flex-shrink: 0;
}

.site-header nav {
    display: none;
}

@media (min-width: 768px) {
    .site-header nav {
        display: flex;
        gap: 1.5rem;
    }
    .site-header nav a {
        font-weight: 500;
        color: var(--gray-600);
    }
    .site-header nav a:hover {
        color: var(--gray-900);
    }
}

/* Hero Search */
.hero-search {
    background-color: var(--card-bg);
    padding: 5rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.hero-container {
    max-width: 800px;
}

.hero-search h1 {
    font-size: 2.5rem;
    font-weight: 850;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-search h1 {
        font-size: 3.5rem;
    }
}

.hero-search p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
}

.search-form {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    background: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 120;
    max-height: 48vh;
    overflow: auto;
}

.search-suggestions .suggestion-item { padding: 0.75rem 1rem; display:flex; align-items:center; justify-content:space-between; gap:0.5rem; cursor:pointer; }
.search-suggestions .suggestion-item.active { background: var(--gray-100); }
.search-suggestions .suggestion-item.no-result { cursor: default; }

.search-context {
    margin-top: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #dbe4ff;
    text-align: left;
}

.search-context-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.search-context-detail {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #dbe4ff;
}

/* Modal for report form */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    z-index: 220;
}
.modal.open { display: flex; }
.modal .modal-panel {
    background: white;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 720px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}
.modal .modal-close { position: absolute; right: 1rem; top: 1rem; background: transparent; border: none; font-size: 1.25rem; cursor: pointer; }

.search-input {
    width: 100%;
    padding: 1.25rem 4rem 1.25rem 1.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 9999px;
    font-size: 1.125rem;
    box-shadow: 0 4px 20px -2px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 8px 30px -4px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.search-btn {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    bottom: 0.75rem;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    width: 3.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--primary-hover);
}

/* Chips */
.popular-services {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.chip {
    background-color: var(--card-bg);
    border: 1px solid var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s;
    min-height: 44px; /* Touch target */
    display: inline-flex;
    align-items: center;
}

.chip:hover {
    border-color: var(--gray-400);
    background-color: var(--gray-50);
}

.chip-group.small .chip {
    min-height: auto;
    padding: 0.25rem 0.75rem;
}

/* Cards & Sections */
section {
    margin-bottom: 2.5rem;
}

section h2, section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.issue-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    transition: box-shadow 0.2s;
}

.issue-card:hover {
    box-shadow: var(--shadow-md);
}

.issue-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 0.4rem;
    flex-shrink: 0;
}

.issue-details h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.issue-details p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Category Grid */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.category-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.category-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.category-card p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Lists */
.report-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.report-list li:last-child {
    border-bottom: none;
}

.service-name {
    font-weight: 600;
}

.report-type {
    color: var(--gray-600);
}

/* Utilities */
.bg-white { background-color: #ffffff; }
.bg-red { background-color: var(--red); }
.bg-amber { background-color: var(--amber); }
.bg-green { background-color: var(--green); }

.text-red { color: var(--red); }
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }
.text-white { color: #ffffff; }
.text-muted { color: var(--gray-500); }

.mt-4 { margin-top: 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    min-height: 44px; /* Touch target */
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--gray-100);
    color: var(--gray-800);
    border-color: var(--gray-200);
}

.btn-secondary:hover {
    background-color: var(--gray-200);
}

.btn-large {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Forms */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.status-badge .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

.status-success { background-color: var(--success-bg); color: var(--success-text); }
.status-warning { background-color: var(--warning-bg); color: var(--warning-text); }
.status-danger { background-color: var(--danger-bg); color: var(--danger-text); }
.status-unknown { background-color: var(--unknown-bg); color: var(--unknown-text); }

/* Downdetector-style Status Colors */
.status-badge.is-checking {
    background-color: rgba(100, 116, 139, 0.15);
    color: #475569;
}

.status-badge.is-ok {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.status-badge.is-reports {
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

.status-badge.is-possible {
    background-color: #fff7ed;
    color: #92400e;
}

.status-badge.is-disruption {
    background-color: var(--danger-bg);
    color: var(--danger-text);
}

.status-badge.is-maintenance {
    background-color: #f5f3ff;
    color: #6b21a8;
}

/* Alerts */
.alert {
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid transparent;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border-color: #a7f3d0;
}

.alert-warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    border-color: #fde68a;
}

/* Issue Buttons */
.issue-btn {
    display: block;
    cursor: pointer;
}

.issue-btn input:checked + .btn {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Service Page */
.service-header-wrapper {
    border-bottom: 1px solid var(--gray-200);
}

.service-hero {
    padding: 3rem 0;
}

.service-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.service-title h1 {
    font-size: 2rem;
    margin: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-warning {
    background-color: var(--amber-bg);
    color: var(--amber-text);
}

.status-badge .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

.last-checked {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.report-cta-box {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
}

.report-cta-box p {
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Chart Placeholder */
.chart-container {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-top: 1.5rem;
    position: relative;
    padding-bottom: 1px; /* for baseline */
}

.chart-container .bar {
    flex: 1;
    background-color: var(--primary);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: height 0.3s;
}

.chart-baseline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--gray-300);
}

/* Progress Bars */
.progress-list li {
    margin-bottom: 1rem;
}

.progress-list li:last-child {
    margin-bottom: 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.progress-bar {
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--gray-200);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: -1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
}

.timeline-content h4 {
    margin-bottom: 0.25rem;
}

.timeline-content .time {
    display: block;
    margin-bottom: 0.5rem;
}

/* Status List */
.status-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background-color: var(--green-bg); color: var(--green-text); }
.badge-warning { background-color: var(--amber-bg); color: var(--amber-text); }
.badge-light { background-color: rgba(255,255,255,0.2); color: white; }

/* Service Grid (Category Page) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
}

.service-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--gray-300);
}

.service-info h3 {
    margin-bottom: 0.25rem;
}

.status-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Incident Page */
.incident-header {
    padding: 3rem 0;
}

.incident-header h1 {
    margin: 1rem 0 0.5rem;
    font-size: 2rem;
}

.incident-meta {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.update-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    border-left: 2px solid var(--gray-200);
}

.update-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-300);
}

.update-time {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.update-item h3 {
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border);
    padding: 5rem 0 3rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2.5fr repeat(4, 1fr);
    }
}

.footer-brand .logo {
    margin-bottom: 1.25rem;
}

.footer-brand p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-disclaimer {
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    color: var(--gray-600);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.footer-disclaimer a {
    color: var(--primary);
    font-weight: 600;
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    color: var(--gray-500);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(2px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-mobile-links {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 1.15rem;
    margin-bottom: 1rem;
}

.footer-mobile-links a {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 600;
}

.footer-mobile-links a:hover {
    color: var(--primary);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.footer-legal a:hover {
    color: var(--gray-600);
}

@media (max-width: 767px) {
    .site-footer {
        padding: 3rem 0 2rem;
        margin-top: 3rem;
    }

    .footer-grid {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-column {
        display: none;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-disclaimer {
        padding: 0.7rem 0.85rem;
        font-size: 0.75rem;
    }

    .footer-bottom {
        padding-top: 1.25rem;
    }

    .footer-mobile-links {
        display: flex;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Page Content (About/Privacy/etc) */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.25rem;
}

.page-content h1 {
    font-size: 2.5rem;
    font-weight: 850;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
}

.page-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--gray-700);
}

.page-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

.page-content li {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    color: var(--gray-700);
}

.page-content code {
    background: var(--gray-100);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.page-content .form-group {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0;
}

.page-content label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
}

.page-content .form-control {
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.65rem;
    background: #ffffff;
    color: var(--gray-800);
    font-size: 1rem;
    padding: 0.65rem 0.8rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-content textarea.form-control {
    min-height: 8.25rem;
    resize: vertical;
}

.page-content .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

/* Service Content Styling */
.service-content-section {
    margin-top: 3.5rem;
}

.service-content-section h2 {
    font-size: 1.5rem;
    font-weight: 750;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.content-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.issue-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0;
}

.issue-list li {
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9375rem;
    color: var(--gray-700);
    margin-bottom: 0; /* Override potential global li margin */
}

.issue-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.tip-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.methodology-note {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.7;
    text-align: center;
}

/* Search Enhancements */
.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-suggestions {
    text-align: left;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.clear-btn {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.clear-btn:hover {
    color: var(--gray-600);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius);
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.suggestion-item {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--gray-100);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item.active, .suggestion-item:hover {
    background: var(--gray-50);
}

.suggestion-info {
    display: flex;
    flex-direction: column;
}

.suggestion-name {
    font-weight: 600;
    color: var(--navy);
}

.suggestion-category {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.suggestion-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.suggestion-item.no-result {
    line-height: 1.5;
    color: var(--gray-600);
}

/* Check result page */
.check-result-card {
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-md);
}

.check-result-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.check-result-title-wrap {
    min-width: 0;
}

.check-result-eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    color: var(--gray-500);
}

.check-result-domain {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin: 0;
    overflow-wrap: anywhere;
}

.check-result-badge {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.check-result-summary {
    padding: 1.25rem;
    border-radius: 1rem;
    background: var(--gray-50);
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}

.check-result-summary-text {
    font-size: 1.125rem;
    color: var(--gray-800);
    line-height: 1.6;
    margin: 0;
}

.check-result-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.check-metric-card {
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    background: #fff;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.check-metric-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: var(--gray-200);
}

.check-metric-card.is-success {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.95), #fff 48%);
    border-color: rgba(16, 185, 129, 0.22);
}

.check-metric-card.is-success::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.check-metric-card.is-warning {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.95), #fff 48%);
    border-color: rgba(245, 158, 11, 0.22);
}

.check-metric-card.is-warning::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.check-metric-card.is-danger {
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.95), #fff 48%);
    border-color: rgba(239, 68, 68, 0.22);
}

.check-metric-card.is-danger::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.check-metric-card.is-success .check-metric-label,
.check-metric-card.is-success .check-metric-value {
    color: #065f46;
}

.check-metric-card.is-warning .check-metric-label,
.check-metric-card.is-warning .check-metric-value {
    color: #92400e;
}

.check-metric-card.is-danger .check-metric-label,
.check-metric-card.is-danger .check-metric-value {
    color: #991b1b;
}

.check-metric-label {
    color: var(--gray-500);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.check-metric-value {
    font-weight: var(--font-bold);
    color: var(--navy);
    font-size: 1.1rem;
    overflow-wrap: anywhere;
}

.check-metric-url {
    font-size: 1rem;
}

.check-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.check-result-note-wrap {
    margin: 0.4rem 0 0.95rem;
    display: grid;
    gap: 0.45rem;
    max-width: 780px;
}

.check-result-note-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}

.check-result-note-input {
    width: 100%;
    min-height: 3rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.65rem;
    background: #ffffff;
    color: var(--gray-800);
    font-size: 1rem;
    font-family: inherit;
    padding: 0.7rem 0.85rem;
    resize: vertical;
    line-height: 1.45;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.check-result-note-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.check-admin-flow-card {
    padding: 1.25rem;
    border-radius: 1rem;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--primary);
    margin-bottom: 1.75rem;
}

.check-result-footnote {
    margin-top: 0;
    text-align: left;
    background: var(--gray-50);
}

@media (min-width: 768px) {
    .check-result-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .check-result-card {
        padding: 1.35rem;
    }

    .check-result-metrics {
        grid-template-columns: 1fr;
    }

    .check-result-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.trust-line {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-top: 1rem;
    font-style: italic;
}

/* Empty State Styling */
.empty-state-card {
    background: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: var(--radius);
    border: 2px dashed var(--gray-200);
}

.empty-icon {
    margin-bottom: 1.5rem;
}

.empty-state-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.empty-state-card p {
    color: var(--gray-500);
    max-width: 450px;
    margin: 0 auto 2rem;
    font-size: 0.9375rem;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Service Page Dashboard Styling */
.service-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
}

/* Issue Selection Cards */
.issue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.issue-card-label {
    cursor: pointer;
}

.issue-card-label input {
    display: none;
}

.issue-card-ui {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: all 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.issue-card-label input:checked + .issue-card-ui {
    border-color: var(--primary);
    background: var(--gray-50);
    color: var(--primary);
}

.privacy-note {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 1.5rem;
    display: block;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .service-summary-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .empty-actions {
        flex-direction: column;
    }
    
    .empty-actions .btn {
        width: 100%;
    }

    .search-suggestions {
        max-height: 60vh;
        overflow-y: auto;
    }

    .incident-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Footer Disclaimer */
.footer-disclaimer {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.6;
    text-align: center;
    border: 1px solid var(--gray-100);
}

/* Fix Utility Color Classes */
.bg-red { background-color: var(--danger); }
.bg-amber { background-color: var(--warning); }
.bg-green { background-color: var(--success); }
.text-white { color: #ffffff; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.breadcrumb-sep {
    color: var(--gray-300);
}

.breadcrumb a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.faq-section h2 {
    margin-bottom: 1rem;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 0.7rem 0.9rem;
}

.faq-item summary {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    float: right;
    color: var(--gray-500);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    margin: 0.6rem 0 0.2rem;
    font-size: 0.95rem;
    color: var(--gray-600);
}

/* Page Header backgrounds */
.page-header.bg-red {
    background-color: var(--danger) !important;
}

.page-header.bg-amber {
    background-color: var(--warning) !important;
}

/* RESPONSIVE SERVICE CARD GRID */

/* Default grid: 1 column on mobile (360px) */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

/* Tablet & above: 2 columns */
@media (min-width: 640px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Desktop: 3-4 columns */
@media (min-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* SERVICE CARD COMPONENT */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Card Header with Logo */
.service-card-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.service-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card Title & Info */
.service-card-title-group {
    flex: 1;
}

.service-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.service-card-category {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Card Status */
.service-card-status {
    padding: 1rem 1.5rem;
    flex-grow: 1;
}

.service-card-status .status-badge {
    display: inline-flex;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}

.service-status-detail {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.service-status-detail strong {
    color: var(--gray-900);
    font-weight: 600;
}

/* Card Footer/Action */
.service-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    min-height: 44px; /* Touch target */
}

.service-card-link:hover {
    color: var(--primary-hover);
    gap: 0.75rem;
}

/* Status Badge Variants for Cards */
.status-badge.badge-neutral {
    background: var(--unknown-bg);
    color: var(--unknown-text);
}

.status-badge.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-badge.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status-badge.badge-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

/* Service List View (alternative to grid) */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-list-item {
    background: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.2s;
}

.service-list-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.service-list-item-logo {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
    flex-shrink: 0;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-list-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-list-item-content {
    flex: 1;
}

.service-list-item-title {
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.service-list-item-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.service-list-item-meta span {
    color: var(--gray-600);
}

.service-list-item-meta strong {
    color: var(--gray-900);
}

.service-list-item-action {
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .service-list-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service-list-item-action {
        width: 100%;
        justify-content: center;
    }
    
    .service-list-item-action .btn {
        flex: 1;
        min-height: 44px;
    }
}

/* Phase 10A Components */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.score-card,
.evidence-card,
.timeline-card,
.status-card {
    animation: fadeInUp 0.45s ease both;
}

.status-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
}

/* Status Card States */
.status-card.is-checking {
    border-color: rgba(100, 116, 139, 0.35);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.status-card.is-ok {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
}

.status-card.is-reports {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
}

.status-card.is-possible {
    border-color: rgba(249, 115, 22, 0.35);
    background: linear-gradient(180deg, #fff7ed 0%, #fed7aa 100%);
}

.status-card.is-disruption {
    border-color: rgba(239, 68, 68, 0.35);
    background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
}

.status-card.is-maintenance {
    border-color: rgba(147, 51, 234, 0.35);
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
}

.status-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-title {
    font-size: 0.875rem;
    font-weight: var(--font-semibold);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-value {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--font-bold);
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.status-message {
    margin-top: 0.45rem;
    font-size: 0.875rem;
    font-weight: var(--font-medium);
    color: var(--gray-700);
    line-height: 1.5;
}

.status-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.8rem;
    color: var(--gray-500);
}

.score-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
}

.score-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.score-value {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: var(--font-bold);
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--navy);
}

.score-status-copy {
    margin-top: 0.45rem;
    font-size: 0.875rem;
    font-weight: var(--font-semibold);
    color: var(--gray-700);
}

.score-helper {
    margin: 0.85rem 0 0;
    font-size: 0.875rem;
    color: var(--muted-text);
    line-height: 1.5;
}

.score-progress {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: var(--gray-200);
    margin-top: 1rem;
}

.score-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary) 0%, #34d399 100%);
    transition: width 900ms cubic-bezier(.2,.8,.2,1);
}

.score-progress.is-loading {
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.9) 0%, rgba(241, 245, 249, 1) 50%, rgba(226, 232, 240, 0.9) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
}

.score-progress.is-loading .score-progress-fill {
    width: 38%;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0.55) 50%, rgba(37, 99, 235, 0.25) 100%);
}

.confidence-badge,
.badge.confidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: var(--font-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.confidence-badge.high {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.confidence-badge.medium {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.confidence-badge.low {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.evidence-window {
    margin: -0.25rem 0 1rem;
    font-size: 0.8rem;
    color: var(--muted-text);
}

.evidence-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-sm);
}

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

.evidence-card .stat-value {
    font-size: 1.65rem;
}

.evidence-card .stat-helper {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--muted-text);
}

.evidence-card.is-stable {
    border-color: rgba(34, 197, 94, 0.35);
}

.evidence-card.is-warning {
    border-color: rgba(245, 158, 11, 0.35);
}

.evidence-card.is-danger {
    border-color: rgba(239, 68, 68, 0.35);
}

.evidence-card.is-empty {
    border-style: dashed;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.evidence-card.is-stable .stat-value,
.evidence-card.is-stable .stat-label {
    color: #166534;
}

.evidence-card.is-warning .stat-value,
.evidence-card.is-warning .stat-label {
    color: #92400e;
}

.evidence-card.is-danger .stat-value,
.evidence-card.is-danger .stat-label {
    color: #991b1b;
}

.evidence-card.is-empty .stat-value,
.evidence-card.is-empty .stat-label {
    color: var(--gray-500);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--navy);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: var(--font-semibold);
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Problem Pills */
.problem-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.pill {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: var(--font-medium);
    color: var(--gray-700);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pill.active {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

/* Troubleshooting Cards */
.troubleshooting-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .troubleshooting-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.step-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    color: var(--primary);
}

.step-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--navy);
}

.step-content p {
    font-size: 0.875rem;
    color: var(--muted-text);
    line-height: 1.4;
}

/* Modern Timeline */
.timeline-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-event {
    position: relative;
}

.timeline-event::after {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    border: 2px solid white;
    z-index: 1;
}

.timeline-event.active::after {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-status {
    font-size: 0.75rem;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--gray-100);
    color: var(--gray-600);
}

.event-status.investigating { background: #fee2e2; color: #991b1b; }
.event-status.identified { background: #ffedd5; color: #9a3412; }
.event-status.monitoring { background: #dcfce7; color: #166534; }
.event-status.resolved { background: #f1f5f9; color: #475569; }

.event-time {
    font-size: 0.75rem;
    color: var(--muted-text);
}

.event-body {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.timeline-summary {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.25rem;
    display: grid;
    gap: 0.35rem;
}

.timeline-summary strong {
    color: var(--navy);
}

.timeline-summary p,
.timeline-summary small {
    margin: 0;
    color: var(--muted-text);
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.timeline-icon.success {
    background: #dcfce7;
    color: #166534;
}

.timeline-icon.neutral {
    background: #e2e8f0;
    color: #475569;
}

.report-banner {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1rem 1.15rem;
    display: grid;
    gap: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.report-banner.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.report-banner.warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.report-banner p {
    margin: 0;
    font-size: 0.92rem;
}

.report-privacy-note {
    border-radius: var(--radius);
    background: #f8fafc;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.issue-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.issue-chip {
    appearance: none;
    border: 1px solid var(--gray-200);
    background: white;
    color: var(--gray-700);
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    font-size: 0.875rem;
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.issue-chip:hover,
.issue-chip.active {
    transform: translateY(-1px);
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.province-selector {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.85rem;
    margin: 0;
}

.province-selector legend {
    font-size: 0.85rem;
    font-weight: var(--font-semibold);
    color: var(--gray-700);
    padding: 0 0.35rem;
}

.province-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.province-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.55rem;
    padding: 0.55rem 0.65rem;
    background: #fff;
    cursor: pointer;
    font-size: 0.86rem;
    color: var(--gray-700);
}

.province-option:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.province-option input[type="radio"] {
    accent-color: var(--primary);
}

.trust-list {
    margin: 0.9rem 0 0;
    padding-left: 1.1rem;
    color: var(--gray-600);
    font-size: 0.88rem;
    display: grid;
    gap: 0.35rem;
}

.empty-state-note {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: linear-gradient(180deg, rgba(248, 250, 252, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.empty-state-note h3 {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    color: var(--navy);
}

.empty-state-note p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--gray-600);
}

.pulse-icon {
    position: relative;
}

.pulse-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 1px solid rgba(37, 99, 235, 0.1);
    animation: pulseGlow 2.2s ease-out infinite;
    pointer-events: none;
}

.fade-in-up {
    animation: fadeInUp 0.45s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes pulseGlow {
    0% { opacity: 0.45; transform: scale(1); }
    70% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.08); }
}

@media (max-width: 767px) {
    .score-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .issue-chip-group {
        gap: 0.5rem;
    }

    .issue-chip {
        width: 100%;
        justify-content: center;
    }

    .province-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Detail Layout Adjustments */
.service-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    padding: 3rem 0;
}

@media (min-width: 992px) {
    .service-hero-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: var(--font-extrabold);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-status-desc {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-aside {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.confidence-score {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.score-value {
    font-size: 3rem;
    font-weight: var(--font-extrabold);
    color: var(--primary);
    line-height: 1;
}

.score-label {
    display: block;
    font-size: 0.875rem;
    font-weight: var(--font-semibold);
    color: var(--muted-text);
    margin-top: 0.5rem;
}

.score-meter {
    height: 6px;
    background: var(--gray-100);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.5s ease-out;
}

/* Phase 10B-1: Homepage Modernization */

.hero-modern {
    background: var(--navy);
    padding: 5rem 1.25rem 4rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-800);
}

.hero-modern h1 {
    font-size: 2.5rem;
    font-weight: var(--font-extrabold);
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-modern h1 { font-size: 3.5rem; }
}

.hero-modern p {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-modern .search-form {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.hero-modern .search-input {
    border: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.recent-searches {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.recent-searches::before {
    content: 'Recent: ';
    width: 100%;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.recent-search-chip {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    padding: 0.625rem 1rem;
    border-radius: 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.recent-search-chip:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.incident-banner {
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .incident-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.banner-calm {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.banner-calm .banner-icon { color: #16a34a; }
.banner-calm .banner-title { color: #166534; font-weight: var(--font-bold); }
.banner-calm .banner-desc { color: #15803d; font-size: 0.875rem; }

.banner-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.banner-alert .banner-icon { color: #dc2626; }
.banner-alert .banner-title { color: #991b1b; font-weight: var(--font-bold); }
.banner-alert .banner-desc { color: #b91c1c; font-size: 0.875rem; }

.affected-service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
}

.affected-service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.home-category-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s;
}

.home-category-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.home-category-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    color: var(--navy);
}

.cat-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--muted-text);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.cat-problem {
    color: var(--warning-text);
    font-weight: var(--font-semibold);
}

.trust-section-modern {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 4.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-intro {
    max-width: 760px;
    margin: 0 auto 1.5rem;
}

.section-intro-center {
    text-align: center;
}

.section-eyebrow {
    margin: 0 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

.section-intro h2 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    letter-spacing: -0.02em;
}

.section-intro p {
    color: var(--gray-600);
    line-height: 1.7;
}

.story-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 82%);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.story-strip::-webkit-scrollbar {
    height: 8px;
}

.story-strip::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 9999px;
}

.story-card {
    scroll-snap-align: start;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1.15rem;
    padding: 1.35rem;
    box-shadow: 0 14px 36px -24px rgba(15, 23, 42, 0.25);
}

.story-card h3 {
    margin: 0.5rem 0 0.5rem;
    font-size: 1.1rem;
    color: var(--navy);
}

.story-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.65;
    font-size: 0.95rem;
}

.story-number {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.story-card-lite {
    min-height: 100%;
}

@media (min-width: 768px) {
    .story-strip {
        grid-auto-flow: unset;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .story-strip-about {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .story-strip-about {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.trust-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .trust-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trust-feature {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-feature h4 {
    font-size: 1.125rem;
    color: var(--navy);
}

.trust-feature p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* System Check Card Styles */
.system-check-card {
    position: relative;
    overflow: hidden;
}

.system-check-card::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    top: 1.25rem;
    right: 1.25rem;
}

/* System check status indicators with animation */
.system-check-card.is-success::before {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
    animation: pulseOnline 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.system-check-card.is-online::before {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
    animation: pulseOnline 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.system-check-card.is-slow::before {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
    animation: pulseSlow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.system-check-card.is-failed::before {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    animation: pulseFailed 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.system-check-card.is-empty::before,
.system-check-card.is-not_configured::before {
    background: #9ca3af;
    animation: shimmerDot 1.5s infinite;
}

.system-check-card.is-inconclusive::before {
    background: #9ca3af;
    box-shadow: 0 0 0 4px rgba(156, 163, 175, 0.12);
    animation: shimmerDot 1.5s infinite;
}

/* Pulse animations for status indicators */
@keyframes pulseOnline {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.05);
    }
}

@keyframes pulseSlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.05);
    }
}

@keyframes pulseFailed {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.05);
    }
}

@keyframes shimmerDot {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

/* Open Search Context (No Box) */
.search-context {
    margin-top: 1.5rem;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.search-context-title {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    display: block;
}

.search-context-detail {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: block;
}

/* Open Search Context (No Box) */
.search-context {
    margin-top: 0.875rem;
    margin-bottom: 0;
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.5;
    text-align: center;
    font-weight: 400;
    letter-spacing: -0.3px;
}
