/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

:root {
    --primary-color: #8b1a1a;
    --secondary-color: #5a0f0f;
    --accent-color: #d4c4b8;
    --text-color: #2c2c2c;
    --secondary-text: #5a5a5a;
    --tertiary-text: #4a4a4a;
    --light-bg: #f5f0eb;
    --light-bg-gradient: linear-gradient(to bottom, #f5f0eb, #e8dfd6);
    --white: #ffffff;
    --border-color: #e0e0e0;
    --court-finding-bg: #d4edda;
    --court-finding-text: #155724;
    --official-record-bg: #d1ecf1;
    --official-record-text: #0c5460;
    --contested-bg: #fff3cd;
    --contested-text: #856404;
    --ongoing-bg: #f8d7da;
    --ongoing-text: #721c24;
    --commentary-bg: #f0f0f0;
    --commentary-text: #2c2c2c;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-bg-gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
header {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    overflow: hidden;
}

.header-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.85) 0%, rgba(90, 15, 15, 0.85) 100%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo {
    max-width: 120px;
    height: auto;
    display: block;
}

.header-text {
    text-align: center;
    max-width: 100%;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    word-wrap: break-word;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    word-wrap: break-word;
}

/* Navigation */
nav {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    position: relative;
}

.nav-toggle {
    display: none;
    background: var(--primary-color);
    border: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
    padding: 1rem;
    z-index: 1000;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.2s, opacity 0.3s;
    opacity: 1;
}

.nav-toggle.hidden {
    opacity: 0;
    pointer-events: none;
}

.nav-toggle:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.nav-toggle:active {
    transform: scale(0.95);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

nav li {
    margin: 0;
    flex: 0 0 auto;
}

nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
}

nav a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Main Content */
main {
    padding: 3rem 20px;
    min-height: calc(100vh - 400px);
}

h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Intro Section */
.intro {
    margin-bottom: 3rem;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.video-container {
    margin: 2rem 0;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--light-bg), #e8eef3);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
}

.cta h2 {
    margin-bottom: 1rem;
}

/* Buttons */
.button, .button-small {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 1rem;
}

.button:hover, .button-small:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.button-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.badge.court-finding {
    background-color: var(--court-finding-bg);
    color: var(--court-finding-text);
}

.badge.official-record {
    background-color: var(--official-record-bg);
    color: var(--official-record-text);
}

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

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

/* Standards Page */
.standard-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.standard-section:last-child {
    border-bottom: none;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.category-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.category-card h4 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Cases Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.case-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary-color);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.case-card h4 {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.case-card p {
    color: #555;
    margin-bottom: 1rem;
}

.coming-soon {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-bg);
    color: #666;
    border-radius: 4px;
    font-style: italic;
    font-size: 0.9rem;
}

/* Cases List - Summary Cards */
.cases-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.case-summary-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 6px solid var(--primary-color);
    transition: box-shadow 0.3s;
}

.case-summary-card:hover {
    box-shadow: var(--shadow-hover);
}

.case-header-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.case-header-summary h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.case-summary {
    color: #555;
    line-height: 1.7;
    margin: 1rem 0 1.5rem 0;
}

/* Case Detail Page */
.case-detail-full {
    max-width: 1000px;
    margin: 0 auto;
}

.case-info-section {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

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

.info-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
    font-size: 1rem;
}

.info-item p {
    margin: 0;
    color: #444;
}

.overview-section {
    margin-bottom: 3rem;
}

.overview-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.overview-section p {
    line-height: 1.8;
    color: #444;
}

.points-section {
    margin-bottom: 3rem;
}

.points-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-intro {
    color: #666;
    margin-bottom: 2rem;
}

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

.point-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.point-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.point-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.point-card h4 {
    color: var(--secondary-color);
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.point-card p {
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Case Detail Pages */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.case-detail {
    max-width: 900px;
    margin: 0 auto;
}

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

.case-detail h2 {
    margin: 0;
}

.case-detail h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.subtitle {
    color: #666;
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

.summary-section, .evidence-section, .source-section, .statement-section, .commentary-section, .analysis-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.summary-section h4, .evidence-section h4, .source-section h4, .statement-section h4, .commentary-section h4, .analysis-section h4 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Blockquotes */
blockquote {
    background: var(--white);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-radius: 4px;
}

blockquote p {
    margin: 0;
    color: var(--secondary-text);
    line-height: 1.7;
}

/* Quotes Section */
.quotes-section {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.quotes-section h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Timeline Items */
.timeline-item {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.timeline-item h5 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* Transcript */
.transcript {
    background: #fafafa;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.transcript p {
    margin: 0.5rem 0;
    color: #333;
}

/* Source Cards */
.source-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.source-card p {
    margin-bottom: 0.75rem;
}

.external-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border-radius: 4px;
    transition: background-color 0.3s;
}

.external-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Warning Box */
.warning-box {
    background: #fff3cd;
    border-left: 4px solid var(--commentary);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.warning-box h5 {
    color: var(--commentary);
    margin-bottom: 0.75rem;
}

.warning-box ul {
    margin-left: 1.5rem;
}

.warning-box li {
    margin-bottom: 0.5rem;
}

/* Cost Comparison */
.cost-comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cost-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 200px;
}

.cost-box.highlight {
    border: 3px solid var(--contested);
}

.cost-box h5 {
    margin: 0 0 1rem 0;
    color: var(--secondary-color);
}

.cost-figure {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.cost-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.cost-arrow {
    font-size: 2rem;
    color: var(--secondary-color);
}

/* Evidence List */
.evidence-list {
    list-style: none;
    padding-left: 0;
}

.evidence-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.evidence-list li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

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

/* Corrections Page */
.process-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--secondary-color);
}

.process-box h4 {
    margin-top: 0;
    color: var(--secondary-color);
}

.process-box ul {
    margin-left: 1.5rem;
    margin-bottom: 0;
}

.process-box li {
    margin-bottom: 0.5rem;
}

.timeline-process {
    margin-top: 2rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

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

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.step-content p {
    margin: 0;
    color: #555;
}

.correction-list {
    margin-left: 1.5rem;
}

.correction-list li {
    margin-bottom: 0.75rem;
}

/* Contact Page */
.contact-section {
    margin: 3rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.contact-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.email-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.email-link:hover {
    text-decoration: underline;
}

.entity-info {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.entity-info p {
    margin-bottom: 0.5rem;
}

.disclaimer-section {
    margin-top: 3rem;
}

.disclaimer-box {
    background: #e3f2fd;
    border-left: 4px solid var(--official-record);
    padding: 1.5rem;
    border-radius: 6px;
}

.disclaimer-box p {
    margin-bottom: 0.75rem;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

footer .disclaimer {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0.5rem auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .points-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .features, .cases-grid, .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .points-grid {
        grid-template-columns: 1fr;
    }
    
    /* Process steps on tablets */
    .process-step {
        flex-direction: row;
        gap: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Header adjustments */
    header {
        padding: 1.5rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        max-width: 80px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Navigation */
    nav .container {
        padding: 0;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 100px;
        right: 20px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        padding: 0;
        width: 100%;
    }
    
    nav ul.nav-open {
        max-height: 500px;
        transition: max-height 0.5s ease-in;
    }
    
    nav li {
        width: 100%;
    }

    nav a {
        padding: 0.75rem 1rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        white-space: normal;
        width: 100%;
        font-size: 0.95rem;
    }
    
    nav li:last-child a {
        border-bottom: none;
    }

    /* Main content */
    main {
        padding: 2rem 15px;
    }

    /* Typography */
    h2 {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

    h3 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
    }
    
    h4 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
    }

    /* Grid layouts */
    .features, .cases-grid, .category-grid, .contact-grid, .points-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Case cards */
    .case-card, .case-summary-card {
        padding: 1.5rem;
    }
    
    .case-header, .case-header-summary {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Case detail */
    .case-detail h3 {
        font-size: 1.5rem;
    }
    
    .case-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .badge {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    /* Video container */
    .video-container video {
        max-width: 100%;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Cost comparison */
    .cost-comparison {
        flex-direction: column;
        gap: 1rem;
    }

    .cost-arrow {
        transform: rotate(90deg);
    }
    
    .cost-box {
        min-width: 100%;
    }

    /* CTA sections */
    .cta {
        padding: 2rem 1.5rem;
    }
    
    /* Buttons */
    .button, .button-small {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        box-sizing: border-box;
    }
    
    /* Cards and sections */
    .feature-card, .contact-card, .point-card {
        padding: 1.5rem;
    }
    
    .summary-section, .evidence-section, .source-section, 
    .quotes-section, .statement-section, .commentary-section, .analysis-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Tables */
    table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    th, td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    /* Process steps */
    .process-step {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    main {
        padding: 1.5rem 10px;
    }
    
    /* Header */
    .logo {
        max-width: 70px;
    }
    
    header h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .tagline {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 5px;
    }

    /* Typography */
    h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.2rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    h4 {
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    p, li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Cards */
    .feature-card, .contact-card, .case-card, .point-card, .case-summary-card {
        padding: 1.25rem;
    }
    
    .category-card {
        padding: 1.25rem;
    }

    .summary-section, .evidence-section, .source-section, 
    .quotes-section, .statement-section, .commentary-section, .analysis-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .case-info-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    /* Blockquotes */
    blockquote {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin: 0.75rem 0;
    }

    /* Cost display */
    .cost-figure {
        font-size: 2rem;
    }
    
    .cost-label {
        font-size: 0.85rem;
    }
    
    .cost-box {
        padding: 1.5rem;
    }
    
    /* Badges */
    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        display: inline-block;
        margin-top: 0.5rem;
    }
    
    /* Buttons */
    .button {
        font-size: 0.95rem;
        padding: 0.7rem 1rem;
    }
    
    .button-small {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    /* Navigation */
    nav a {
        font-size: 0.95rem;
        padding: 0.65rem 1rem;
    }
    
    /* Footer */
    footer {
        font-size: 0.9rem;
        padding: 1.5rem 0;
        margin-top: 3rem;
    }
    
    footer .disclaimer {
        font-size: 0.85rem;
    }
    
    /* Tables */
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 0.4rem 0.3rem;
        font-size: 0.85rem;
    }
    
    /* Timeline items */
    .timeline-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .timeline-item h5 {
        font-size: 1rem;
    }
    
    /* Process boxes */
    .process-box {
        padding: 1.25rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Source cards */
    .source-card {
        padding: 1.25rem;
    }
    
    .external-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.85rem;
        display: block;
        text-align: center;
    }
    
    /* Intro text */
    .intro-text {
        font-size: 1rem;
    }
    
    /* Point cards specific */
    .point-number {
        font-size: 1.3rem;
    }
    
    .point-card h4 {
        font-size: 1rem;
    }
    
    /* Case titles */
    .case-header h3, .case-header-summary h3 {
        font-size: 1.2rem;
    }
    
    /* Video container */
    .video-container {
        margin: 1.5rem 0;
    }
    
    /* Warning box */
    .warning-box {
        padding: 1.25rem;
        margin-top: 0.75rem;
    }
    
    .warning-box ul {
        margin-left: 1.25rem;
    }
    
    /* Entity info */
    .entity-info {
        padding: 1.5rem;
    }
    
    /* Disclaimer box */
    .disclaimer-box {
        padding: 1.25rem;
    }
    
    /* CTA */
    .cta {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .cta h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 360px) {
    /* Extra small screens */
    .container {
        padding: 0 10px;
    }
    
    main {
        padding: 1.25rem 8px;
    }
    
    header h1 {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    .logo {
        max-width: 60px;
    }
    
    .tagline {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    h4 {
        font-size: 0.95rem;
    }
    
    .feature-card, .contact-card, .case-card, .point-card, .case-summary-card {
        padding: 1rem;
    }
    
    .summary-section, .evidence-section, .source-section, 
    .quotes-section, .statement-section, .commentary-section, .analysis-section {
        padding: 1rem;
    }
    
    .button {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }
    
    nav a {
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
    }
    
    .cost-figure {
        font-size: 1.6rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Landscape orientation adjustments for phones */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding: 1rem 0;
    }
    
    .logo {
        max-width: 60px;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    main {
        padding: 1.5rem 15px;
    }
    
    footer {
        margin-top: 2rem;
        padding: 1.25rem 0;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    nav a {
        padding: 0.85rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .button, .button-small {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .external-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent text selection issues on tap */
    .case-card, .point-card, .feature-card {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
}

/* Print styles */
@media print {
    header, nav, footer, .button, .button-small {
        display: none;
    }
    
    main {
        padding: 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .case-card, .point-card, .feature-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
