/* Chromium Memory Post Styles */
/* Matches the PPOST editorial theme with brand red accent */

.container {
    max-width: 680px;
    margin: 4rem auto;
    padding: 0 20px;
}

header {
    margin-bottom: 4rem;
}

h1 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.meta {
    color: #718096;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eaeaea;
}

.content-section {
    margin-bottom: 3.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.35rem;
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 1.5rem;
}

ul {
    margin: 1rem 0 1.5rem 1.5rem;
    padding: 0;
}

li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 0.5rem;
}

code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
    color: var(--primary-color);
}

em {
    font-style: italic;
    color: #4a5568;
}

/* Architecture Diagram */
.architecture-diagram {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.diagram-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.process-box {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
}

.process-box:hover {
    transform: translateY(-2px);
}

.process-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.process-desc {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    opacity: 0.8;
}

.browser-process {
    background: var(--primary-color);
    color: #ffffff;
    grid-column: 1 / -1;
}

.gpu-process {
    background: #333333;
    color: #ffffff;
    grid-column: 1 / -1;
}

.renderer-process {
    background: #4a5568;
    color: #ffffff;
}

.utility-process {
    background: #718096;
    color: #ffffff;
    grid-column: 1 / -1;
}

.diagram-caption {
    font-size: 0.9rem !important;
    color: #64748b !important;
    text-align: center;
    margin-bottom: 0 !important;
    font-style: italic;
}

/* Research Question Box */
.research-question {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(217, 4, 41, 0.03), rgba(217, 4, 41, 0.08));
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
}

.research-question p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0;
    font-style: italic;
    line-height: 1.6;
}

/* Callout Box */
.callout-box {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.callout-box p {
    margin-bottom: 0;
    font-size: 1.05rem;
    color: #991b1b;
}

/* Workload Table */
.workload-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.workload-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.workload-table thead tr {
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
}

.workload-table th {
    font-family: 'Inter', sans-serif;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: #334155;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.workload-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #333;
    line-height: 1.5;
}

.workload-table tbody tr:hover {
    background: #f8fafc;
}

/* Conclusion */
.conclusion {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid var(--primary-color);
}

.conclusion h2 {
    margin-top: 0;
    color: var(--text-color);
}

/* References */
.ref-box {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
}

.ref-box h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a0aec0;
    margin-bottom: 1rem;
}

.ref-box p {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

/* Links — brand red to match other posts */
a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(217, 4, 41, 0.3);
    transition: text-decoration-color 0.2s ease;
}

a:hover {
    text-decoration-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

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

    .browser-process,
    .gpu-process,
    .utility-process {
        grid-column: 1;
    }

    .architecture-diagram {
        padding: 1rem;
    }

    .research-question {
        padding: 1.5rem;
    }
}
