/* --- Global Styles & Variables --- */
:root {
    --primary-blue: #005dff;
    --dark-text: #1a1a1a;
    --light-text: #555;
    --secondary-text: #64748b;
    --background-color: #ffffff;
    --white-color: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.06);
    --rule-color: #d4d4d4;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--dark-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.main-container {
    flex-grow: 1;
}

a {
    text-decoration: none;
    color: var(--dark-text);
    border-bottom: 1px dashed var(--dark-text);
}

/* --- Header --- */
.logo-link {
    text-decoration: none;
    border-bottom: none !important;
    color: inherit;
    display: flex;
    align-items: center;
}

.main-header {
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-square {
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
    margin-right: 12px;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.01em;
}

.logo-text p {
    display: none;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-switcher {
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.lang-switcher .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.navigation nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--light-text);
    border-bottom: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--dark-text);
}

.nav-link.active {
    font-weight: 600;
    color: var(--dark-text);
}

/* --- Main Content --- */
.main-content {
    display: block;
    gap: 2.5rem;
    align-items: flex-start;
    padding-top: 2rem;
}

.intro-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem;
}

/* Profile Card (Left) */
.profile-card {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    text-align: center;
    width: 300px;
    flex-shrink: 0;
    position: relative;
    top: -40px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--white-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.divider {
    width: 30px;
    height: 3px;
    background-color: var(--primary-blue);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.specialties {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--dark-text);
    font-size: 1.2rem;
    transition: color 0.3s ease;
    border-bottom: none;
}

.social-links a:hover {
    color: var(--primary-blue);
}

/* Content Area (Right) */
.content-area {
    padding-top: 1rem;
    flex-grow: 1;
}

.toggle-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white-color);
    border: 1px solid var(--primary-blue);
}

.btn.btn-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white-color);
    opacity: 0.8;
    border-color: var(--primary-blue);
}

.btn.btn-secondary {
    background-color: var(--white-color);
    color: var(--dark-text);
}

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

.content-panel {
    display: none;
}

.content-panel.active {
    display: block;
}

.content-area p {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.content-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* --- Stances List --- */
.stances-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .stances-list {
        grid-template-columns: 1fr;
    }
}

.stances-list p {
    background: #fdfdfd;
    border-left: 3px solid var(--primary-blue);
    padding: 1.5rem;
    font-size: 0.95rem;
    color: var(--light-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0 4px 4px 0;
}

.stances-list p strong {
    color: var(--dark-text);
    display: inline;
}

.stances-list p:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-color);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--white-color);
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--light-text);
    font-size: 0.8rem;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.footer-social a {
    color: var(--light-text);
    font-size: 1rem;
    transition: color 0.2s ease;
    border-bottom: none;
}

.footer-social a:hover {
    color: var(--dark-text);
}

/* --- Book Archive --- */
.book-archive {
    max-width: 740px;
}

.book-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.book-thumb {
    width: 90px;
    height: auto;
    flex-shrink: 0;
    object-fit: unset;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.article-thumb {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.book-date {
    font-size: 0.72rem;
    color: var(--light-text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    display: block;
}

.book-info {
    flex: 1;
}

.book-title-clean {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}
.book-title-clean a {
    color: inherit;
    text-decoration: none;
}
.book-title-clean a:hover {
    color: var(--primary-blue);
}

.book-desc {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.book-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-text);
    border-bottom: 1px solid var(--dark-text);
    transition: color 0.2s, border-color 0.2s;
}

.book-link:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.book-rule {
    border: none;
    border-top: 1px solid var(--rule-color);
    margin: 2rem 0;
}

@media (max-width: 560px) {
    .book-row {
        flex-direction: column;
        gap: 1rem;
    }
    .book-thumb {
        width: 70px;
        height: auto;
    }
    .article-thumb {
        width: 70px;
        height: 70px;
    }
}

/* --- Legacy book card (kept for safety) --- */
.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-cover {
    max-width: 180px;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.book-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.book-description {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    flex-grow: 1;
    text-align: left;
}

/* --- Writing list (insights page) --- */
.writing-list {
    display: flex;
    flex-direction: column;
}

.writing-row {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--rule-color);
    text-decoration: none;
    border-left: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.writing-row script {
    display: none;
}

.writing-row:first-child {
    border-top: 1px solid var(--rule-color);
}

.writing-row:hover {
    opacity: 0.65;
}

.writing-date {
    font-size: 0.75rem;
    color: var(--light-text);
    letter-spacing: 0.04em;
    flex-shrink: 0;
    width: 64px;
    padding-top: 0.2rem;
    display: block;
}

.writing-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.writing-title {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.4;
    display: block;
}

.writing-summary {
    font-size: 0.875rem;
    color: var(--light-text);
    line-height: 1.7;
    display: block;
}

@media (max-width: 560px) {
    .writing-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    .writing-date {
        width: auto;
    }
}

/* --- Secondary page headers (Writing, Books) --- */
.insights-page-header,
.books-page-header {
    max-width: 740px;
    padding-top: 3rem;
    margin-bottom: 0;
}

.insights-page-header .lede-name,
.books-page-header .lede-name {
    margin-bottom: 0.75rem;
}

.insight-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.insight-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-bottom: none;
}

.insight-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
    text-align: left;
}

.insight-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    cursor: pointer;
}

.insight-card-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
}

.insight-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.insight-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.insight-date {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.insight-summary {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style-type: none;
    padding-left: 0;
}

.skill-category li {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.skill-category li::before {
    content: '25A0';
    color: var(--primary-blue);
    font-size: 0.7rem;
    margin-right: 0.75rem;
    display: inline-block;
}

.skills-quadrant {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.quadrant {
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.quadrant h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quadrant ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    margin-bottom: -0.5rem;
}

.quadrant li {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.quadrant li::before {
    content: '■';
    color: var(--primary-blue);
    font-size: 0.5rem;
    margin-right: 0.75rem;
    display: inline-block;
    line-height: 1.5;
}

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

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--white-color);
}

table thead {
    background-color: var(--primary-blue);
    color: var(--white-color);
}

table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

table tbody tr:nth-child(even) {
    background-color: var(--background-color);
}

.table tbody tr:hover {
    background-color: #eef;
}

/* List Item Styling for content-area */
.content-area ul,
.content-area ol {
    margin-bottom: 1.5rem;
}

.content-area ul {
    list-style: none;
    padding-left: 0;
}

.content-area ol {
    padding-left: 1.5rem;
}

.content-area ul li,
.content-area ol li {
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.content-area ul li {
    position: relative;
    padding-left: 1.5rem;
}

.content-area ol li {
    padding-left: 0.5rem;
}

.content-area ul li::before {
    content: '•';
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.insight-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    max-width: 80%;
    height: auto;
}

.social-share-buttons a {
    border-bottom: none;
}

/* Scrollable table wrappers — constrains wide tables on all screen sizes */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
    display: block;
    margin: 20px 0;
}

.verdict-table th, 
.verdict-table td {
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .insight-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .insight-card-image-landscape,
    .insight-card-image-square {
        width: 100%;
        height: 200px;
        /* Adjust height for better aspect ratio on mobile */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .main-header .container,
    .navigation,
    .main-footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo {
        flex-direction: column;
    }

    .main-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .intro-section {
        flex-direction: column;
        align-items: center;
    }

    .profile-card {
        width: 100%;
        max-width: 350px;
        top: 0;
    }

    .toggle-buttons {
        justify-content: center;
    }

    .content-title {
        font-size: 1.5rem;
    }

    .book-list {
        grid-template-columns: 1fr;
    }

    .skills-quadrant {
        grid-template-columns: 1fr;
    }

    /* Article content: images scale to container */
    .insight-image {
        max-width: 100%;
    }

    /* Tighten table cell padding on narrow screens */
    .content-area th,
    .content-area td,
    .verdict-table th,
    .verdict-table td {
        padding: 0.5rem 0.7rem;
        font-size: 0.88em;
    }

    /* Prevent horizontal page scroll caused by any overflowing element */
    html {
        overflow-x: hidden;
    }

    /* Fix flex-item min-width: auto expanding beyond viewport on mobile.
       Without this, a wide table forces .main-container to 600-700px,
       making the entire page layout wider than the viewport. */
    .main-container,
    .content-area {
        min-width: 0;
    }

    /* Article callout boxes: reduce horizontal padding */
    .technical-callout,
    .test-card,
    .insight-box {
        padding: 15px;
    }

    /* Ensure content-title renders as block so border spans full width */
    .content-title {
        display: block;
    }

    /* Prevent pre blocks from forcing the page wider than the viewport */
    .content-area pre {
        max-width: 100%;
        white-space: pre-wrap;
        overflow-wrap: break-word;
        word-break: break-all;
        box-sizing: border-box;
    }
}
/* --- Landing Page --- */
.page-wrapper {
    max-width: 740px;
    margin: 0 auto;
    padding: 5rem 2rem 6rem;
}

.lede {
    margin-bottom: 3rem;
}

.lede-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.lede-statement {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--dark-text);
    margin-bottom: 1.25rem;
}

.lede-sub {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.75;
}

.lede-sub a {
    color: var(--dark-text);
    border-bottom: 1px solid var(--dark-text);
    font-weight: 500;
}

.lede-sub a:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.section-rule {
    border: none;
    border-top: 1px solid var(--rule-color);
    margin: 3rem 0;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--light-text);
    margin-bottom: 1.75rem;
}

/* Legacy stances-list rules removed to allow new grid layout */

@media (max-width: 768px) {
    .page-wrapper {
        padding: 3rem 1.25rem 4rem;
    }

    .lede-name {
        font-size: 1.6rem;
    }

    .lede-statement {
        font-size: 1.15rem;
    }
}

/* --- Article Navigation Enhancements --- */

/* Table of Contents */
.toc-container {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-blue);
}

.toc-container h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.toc-container ul {
    list-style: none !important; /* Override content-area ul default */
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.toc-container li {
    margin-bottom: 0.5rem;
    padding-left: 0 !important; /* Override content-area li default */
}

.toc-container li::before {
    content: none !important; /* Remove the custom bullet points from general style */
}

.toc-container a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    border-bottom: none;
    transition: opacity 0.2s;
}

.toc-container a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ── Insight article components ── */
.technical-callout {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    padding: 20px;
    margin: 25px 0;
    border-radius: 6px;
}

.technical-callout h4 {
    margin-top: 0;
    color: #1565c0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.verdict-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.92em;
}

.verdict-table th,
.verdict-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.verdict-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.verdict-table tr:hover {
    background-color: #fafafa;
}

.test-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.test-card h4 {
    margin-top: 0;
    color: #333;
}

.pass-fail {
    font-weight: 600;
    font-size: 0.85em;
}

.pass {
    color: #2e7d32;
}

.fail {
    color: #c62828;
}

.warn {
    color: #e65100;
}

.insight-box {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 18px 20px;
    margin: 25px 0;
    border-radius: 0 6px 6px 0;
}

.insight-box strong {
    color: #e65100;
}

/* --- Insight Briefing --- */
.insight-briefing {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
}

.insight-briefing strong {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--dark-text);
}

.insight-briefing ul {
    margin: 0;
    padding-left: 0;
    list-style-type: none;
}

.insight-briefing ul li {
    margin-bottom: 10px;
}

.insight-briefing ul li a {
    border-bottom: 1px dashed #666;
    color: #444;
    transition: all 0.2s ease;
}

.insight-briefing ul li a:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* --- Technical Content Patterns --- */
.test-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 25px;
    background-color: var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.test-card h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--dark-text);
}

.audit-check {
    color: #1565c0;
    margin-right: 8px;
}

.table-scroll {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
}

.verdict-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.verdict-table th, .verdict-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.verdict-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* --- Prototype Patterns (from LangExtract) --- */
.prototype-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 35px;
    background-color: var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.prototype-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.prototype-header h3 {
    margin: 0;
}

.burden-solution {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .burden-solution {
        flex-direction: row;
        gap: 30px;
    }
    .burden-solution > div {
        flex: 1;
    }
}

.burden-box {
    background-color: #fff8e1;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.solution-box {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #4CAF50;
}

.extraction-payload {
    background-color: #1a1b26;
    color: #a9b1d6;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 20px;
}

.extraction-payload code {
    font-family: 'Courier New', Courier, monospace;
}

/* Inline code within article body — distinct chip, no effect on dark payload blocks */
.content-area p code,
.content-area li code,
.content-area td code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875em;
    background-color: #eef1f6;
    color: var(--primary-blue);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    word-break: break-word;
}

/* --- Callout Variants --- */
.variant-privacy { background-color: #fff1f2 !important; border-color: #fecdd3 !important; }
.variant-privacy h4 { color: #e11d48 !important; }

.variant-github { background-color: #f5f3ff !important; border-color: #ddd6fe !important; }
.variant-github h4 { color: #7c3aed !important; }
.variant-github a { color: #7c3aed !important; border-bottom-color: #7c3aed !important; font-weight: 600; }

.variant-warning { background-color: #fffaf2 !important; border-color: #fee4cc !important; }
.variant-warning h4 { color: #e65100 !important; }

/* --- Technical Example Block --- */
.technical-example {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.technical-example h4 {
    margin-top: 0 !important;
    color: #1F4E79 !important;
}

.technical-example p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .technical-example {
        padding: 15px;
    }
}

/* --- Article pages --- */
.article-wrapper {
    padding-top: 3.5rem;
}

.article-wrapper .content-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.article-wrapper .insight-date {
    font-size: 0.78rem;
    color: var(--light-text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.article-wrapper p {
    font-size: 0.97rem;
    line-height: 1.85;
    color: var(--body-text, #3a3a3a);
    margin-bottom: 1.2rem;
}

.article-wrapper h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.article-wrapper h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

/* --- Article demo components --- */
@keyframes ho-nudge-a {
    0%   { transform: translateX(0); }
    8%   { transform: translateX(-12px); }
    18%  { transform: translateX(-5px); }
    26%  { transform: translateX(0); }
    100% { transform: translateX(0); }
}

@keyframes ho-nudge-b {
    0%   { transform: translateX(0); }
    8%   { transform: translateX(-12px); }
    18%  { transform: translateX(-5px); }
    26%  { transform: translateX(0); }
    100% { transform: translateX(0); }
}

.mechanism-summary {
    margin: 1.5rem 0 2rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.7;
}

.demo-block {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.82rem;
}

.demo-label {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--secondary-text);
}

.demo-note {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.78rem;
    color: var(--secondary-text);
}

.cta-diagnostic {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    background: #f0f7ff;
    border: 1px solid #bcd4ea;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.mechanism-summary table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 0.82rem;
}

.mechanism-summary table th {
    text-align: left;
    padding: 0.35rem 0.5rem;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    background: none;
}

.mechanism-summary table th:first-child,
.mechanism-summary table td:first-child { padding-left: 0; }

.mechanism-summary table th:last-child,
.mechanism-summary table td:last-child  { padding-right: 0; }

.mechanism-summary table td {
    padding: 0.35rem 0.5rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    background: none;
}

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

.related-reading {
    margin-top: 4rem;
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.related-reading h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--dark-text);
    font-size: 1.3rem;
}

.related-reading ul {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.related-reading ul a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

/* --- Forms --- */
.inquiry-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark-text);
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 93, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.form-result.success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-result.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --- Decision Grid / Conflict Box --- */
.decision-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    background-color: var(--white-color);
    margin: 2rem 0;
    box-shadow: 0 4px 12px var(--shadow-color);
}
.decision-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.decision-badge {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary-text);
}
.decision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.decision-card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.25rem;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.decision-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}
.card-icon {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}
.decision-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--dark-text);
}
.path-description {
    font-size: 0.85rem !important;
    color: var(--light-text);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    flex-grow: 1;
}
.outcome-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.outcome-negative {
    background-color: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}
.outcome-warning {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}
@media (max-width: 600px) {
    .decision-grid {
        grid-template-columns: 1fr;
    }
}

