/* --- Language Build Master CSS Blueprint --- */
:root {
    --ink-primary: #0a2540;
    --blue-accent: #0066cc;
    --gold-spark: #ffbc00;
    --canvas: #ffffff;
    --panel-bg: #f8fafc;
    --border-line: #e2e8f0;
    --text-main: #334155;
    --text-muted: #64748b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--canvas);
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

/* --- Shared Navigation Header Component --- */
.site-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-line);
}

@media (min-width: 768px) {
    .site-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 3rem 2rem 2rem 2rem;
    }
}

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

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    width: 100%;
}

@media (min-width: 768px) {
    .nav-menu {
        width: auto;
    }
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--blue-accent);
}

.nav-link.active {
    font-weight: 600;
}

.nav-sep {
    color: var(--border-line);
    font-size: 0.8rem;
    user-select: none;
}

/* ==========================================================================
   HOMEPAGE ONLY SPECIFIC LAYOUT SETUPS (Asymmetric Split)
   ========================================================================== */

.editorial-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 6rem 1rem;
    display: grid;
    grid-template-columns: 100%;
    gap: 3rem;
    align-items: start;
    overflow: hidden;
}

@media (min-width: 900px) {
    .editorial-grid {
        grid-template-columns: 1fr 1.2fr;
        padding: 4rem 2rem 6rem 2rem;
    }
}

.critique-column {
    padding-right: 0;
}

@media (min-width: 900px) {
    .critique-column {
        padding-right: 2rem;
        position: sticky;
        top: 4rem;
    }
}

.editorial-lead {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.essay-p {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.essay-p strong {
    color: var(--ink-primary);
    font-weight: 600;
}

.matrix-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.matrix-card {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-line);
    border-radius: 12px;
    padding: 2rem;
}

.matrix-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 0.5rem;
}

.matrix-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.blueprint-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-line);
    border-radius: 8px;
    background: var(--canvas);
}

.blueprint-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    table-layout: auto;
}

.blueprint-table th {
    background-color: var(--ink-primary);
    color: var(--canvas);
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blueprint-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-line);
    color: var(--text-main);
}

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

.blueprint-table tbody tr:nth-child(even) {
    background-color: rgba(248, 250, 252, 0.6);
}


/* ==========================================================================
   SUB-PAGE DATA BLUEPRINT ONLY LAYOUT SETUPS (Massive Grid Modules)
   ========================================================================== */

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1rem 6rem 1rem;
}

@media (min-width: 768px) {
    .grid-container {
        padding: 4rem 2rem 6rem 2rem;
    }
}

.page-intro {
    max-width: 750px;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.page-desc {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.scaffold-list {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 0;
}

.scaffold-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.scaffold-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--blue-accent);
    font-weight: 700;
}

.matrix-block {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-line);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .matrix-block {
        padding: 2rem;
    }
}

.matrix-block h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 0.5rem;
}

.matrix-block p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.scroll-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-line);
    border-radius: 8px;
    background: var(--canvas);
}

.master-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    table-layout: auto;
}

.master-table th {
    background-color: var(--ink-primary);
    color: var(--canvas);
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.master-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-line);
    white-space: nowrap;
}

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

.master-table tbody tr:nth-child(even) {
    background-color: rgba(248, 250, 252, 0.6);
}


/* ==========================================================================
   SHARED TYPOGRAPHIC AND BRAND DECORATOR HOOKS
   ========================================================================== */

.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--blue-accent);
    margin-bottom: 1.25rem;
    display: block;
}

.lang-label {
    font-weight: 600;
    color: var(--ink-primary);
}

.stem {
    color: var(--ink-primary);
    font-weight: 700;
    background-color: #f1f5f9;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
}

.suffix {
    color: var(--blue-accent);
    font-weight: 700;
}

.syntax-highlight {
    color: #b45309;
    font-weight: 600;
}

.future-marker {
    color: #b45309;
    font-weight: 600;
}

/* --- Shared Industrial Minimalist Footer --- */
.site-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    border-top: 1px solid var(--border-line);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (min-width: 600px) {
    .site-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 2.5rem 2rem;
    }
}
