/* Base typography and layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #333;
    background: #fafafa;
}

header {
    background: linear-gradient(120deg, #004e8a, #007fa8);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

header h1 {
    font-size: 2.6em;
    margin: 0 0 0.5em 0;
    font-weight: 700;
}

header .tagline {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

section h2 {
    color: #004e8a;
    font-size: 2em;
    margin-top: 0;
}

section h3 {
    color: #007fa8;
    margin-top: 40px;
    font-size: 1.4em;
}

section p {
    margin: 0 0 1em 0;
    font-size: 1em;
    line-height: 1.7;
}

ul {
    padding-left: 1.2em;
}

ul li {
    margin-bottom: 0.6em;
}

img.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 6px;
}

.caption {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    margin-top: -10px;
    margin-bottom: 20px;
    font-style: italic;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95em;
}

.result-table th,
.result-table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.result-table th {
    background: #004e8a;
    color: #fff;
    text-align: left;
    font-weight: 600;
}

.result-table td {
    background: #fff;
}

.result-table tbody tr:nth-child(even) td {
    background: #f5f7fa;
}

video {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 20px auto;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

pre {
    background: #f1f3f5;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
}

footer {
    background: #f0f2f4;
    color: #555;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 600px) {
    header {
        padding: 60px 15px;
    }
    header h1 {
        font-size: 2em;
    }
    header .tagline {
        font-size: 1em;
    }
    section {
        padding: 40px 15px;
    }
    section h2 {
        font-size: 1.6em;
    }
}