/* site-common.css — ALEX AUTOMATION Global Shared Styles — V4.1 Article Components + CTA Button Fix v3 */
/*
==== FONT NOTICE ====
Place these 4 font woff2 files inside /fonts/ folder:
PlusJakartaSans-Regular.woff2
PlusJakartaSans-Medium.woff2
PlusJakartaSans-SemiBold.woff2
PlusJakartaSans-ExtraBold.woff2
*/
:root {
    --bg-color: #0B0F19;
    --accent-gold: #F3C653;
    --accent-gold-light: #ffe082;
    --accent-blue: #3B82F6;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --card-bg: #111827;
    --card-border: rgba(255, 255, 255, 0.03);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}
/* ========== Global Header Navigation (All Pages) ========== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding:1.5rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo {
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing:1px;
    flex-shrink:0;
    line-height:1.2;
}
.logo span { color: var(--accent-gold); display:block; }
.logo a { color:#fff; text-decoration:none; }
nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.8rem;
    flex-shrink:0;
}
nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size:1rem;
    transition: 0.3s;
    white-space: nowrap;
}
nav a:hover { color: var(--accent-gold); }
/* ========== Article Detail Page Components ========== */
.article-container { max-width: 820px; margin: 0 auto; padding: 5rem 5% 8rem; }
.meta-tag { color: var(--accent-blue); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 1rem; display: block; }
.article-container h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.2; color: #fff; margin-bottom: 2rem; letter-spacing: -0.5px; }
.subtitle { font-size: 1.15rem; color: var(--text-muted); margin: 0.5rem 0 1rem; line-height: 1.6; }
.meta-bar { font-size: 0.85rem; color: var(--text-muted); margin: 0.75rem 0 1.5rem; }
.content h2 { font-size: 1.5rem; color: #fff; margin: 3.5rem 0 1.2rem; font-weight: 800; border-left: 4px solid var(--accent-gold); padding-left: 1rem; }
.content p { color: var(--text-main); font-size: 1.05rem; margin-bottom: 1.8rem; opacity: 0.95; text-align: justify; }
.content ul, .content ol { margin-bottom: 1.8rem; padding-left: 1.5rem; color: var(--text-main); }
.content li { margin-bottom: 0.6rem; font-size: 1.05rem; }
.content strong { color: var(--accent-gold); font-weight: 600; }
/* V4.1: All article body text links are gold */
.article-container .content a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.article-container .content a:hover {
    color: var(--accent-gold-light);
}
/* V4.1: TL;DR Box */
.tldr-box {
    background: rgba(243, 198, 83, 0.06);
    border: 1px solid rgba(243, 198, 83, 0.25);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.65;
}
.tldr-box strong { color: var(--accent-gold); }
/* V4.1: Verdict Section */
.verdict-section {
    background: linear-gradient(135deg, rgba(243,198,83,0.06) 0%, rgba(243,198,83,0.02) 100%);
    border: 1px solid rgba(243, 198, 83, 0.2);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0 2rem;
}
.verdict-label {
    font-size: 0.7rem;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}
.verdict-text {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}
.highlight-quote {
    background: rgba(243, 198, 83, 0.02);
    border-left: 3px dashed var(--accent-gold);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}
.highlight-quote p { font-style: italic; color: #fff; margin-bottom: 0; font-size: 1rem; }
.highlight-quote.blue {
    background: rgba(59, 130, 246, 0.05);
    border-left-color: var(--accent-blue);
}
/* V4.1: Failure Mode Cards */
.failure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.failure-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 3px solid #EF4444;
}
.failure-card h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.failure-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.failure-card .fix {
    color: #10B981;
    font-size: 0.85rem;
    font-weight: 600;
}
/* V4.1: Code Block */
.code-block {
    background-color: #0d1117;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.88rem;
    color: #e6edf3;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.45;
}
.code-block .keyword { color: #ff7b72; }
.code-block .string { color: #a5d6ff; }
.code-block .comment { color: #8b949e; }
/* V4.1: Data Hook Link (small gold, single line) */
.data-hook-link {
    color: var(--accent-gold);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.data-hook-link:hover {
    color: var(--accent-gold-light);
}
/* V4.1: Benchmark & Cost Tables (gold header) */
.benchmark-table, .cost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.benchmark-table th, .cost-table th {
    background-color: rgba(243, 198, 83, 0.1);
    color: var(--accent-gold);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-gold);
}
.benchmark-table td, .cost-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-main);
}
.benchmark-table .highlight {
    color: var(--accent-gold);
    font-weight: 700;
}
.cost-table .savings {
    color: #10B981;
    font-weight: 700;
}
/* V4.1: Cluster / Related Articles List */
.cluster-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.cluster-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--card-border);
}
.cluster-list li:last-child {
    border-bottom: none;
}
.cluster-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.cluster-list a:hover {
    color: var(--accent-gold);
}
/* V4.1: Engineering Transparency (links gold) */
.engineering-transparency {
    margin: 3rem 0 1rem;
    padding: 1.25rem 1.5rem;
    background-color: rgba(17, 24, 39, 0.03);
    border-left: 4px solid var(--accent-gold);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #6B7280;
    line-height: 1.6;
}
.engineering-transparency strong {
    color: #374151;
}
.engineering-transparency a {
    color: var(--accent-gold);
    text-decoration: underline;
    transition: color 0.2s;
}
.engineering-transparency a:hover {
    color: var(--accent-gold-light);
}
/* V4.1: Inline Subscribe CTA */
.subscribe-cta-inline {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: rgba(243, 198, 83, 0.04);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.lead-magnet-box {
    background: linear-gradient(145deg, #111827, #1e293b);
    border: 1px solid rgba(243, 198, 83, 0.2);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    margin: 4.5rem 0;
    text-align: center;
}
.lead-magnet-box h3 { color: #fff; font-size: 1.4rem; margin-bottom: 1rem; font-weight: 800; }
.lead-magnet-box p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
/* V4.1 CTA FIX v3: !important beats .article-container .content a (0,2,1). Gold button, black text, guaranteed. */
.lead-magnet-box .magnet-cta-link {
    all: unset;
    display: inline-block !important;
    background-color: var(--accent-gold) !important;
    color: #000 !important;
    padding: 0.7rem 1.8rem !important;
    border-radius: 6px !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: 0.3s;
    white-space: normal;
}
.lead-magnet-box .magnet-cta-link:hover {
    background-color: var(--accent-gold-light) !important;
    color: #000 !important;
    transform: translateY(-1px);
}
/* Shared breathing float keyframe */
@keyframes breatheFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}
/* Legacy class for backward-compatibility with old pages */
a.cta-float-btn {
    all: unset;
    display: inline-block;
    white-space: nowrap;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 12px;
    text-decoration-color: rgba(243, 198, 83, 0.35);
    cursor: pointer;
    animation: breatheFloat 2.8s ease-in-out infinite;
    transition: all 0.4s ease;
}
a.cta-float-btn:hover {
    transform: translateY(-8px) scale(1.05);
    text-decoration-color: var(--accent-gold);
    filter: brightness(1.25);
}
/* Global magnet-cta-link: large underline link style (for standalone use outside lead-magnet-box) */
.magnet-cta-link {
    all: unset;
    display: inline-block;
    white-space: nowrap;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 12px;
    text-decoration-color: rgba(243, 198, 83, 0.35);
    cursor: pointer;
    animation: breatheFloat 2.8s ease-in-out infinite;
    transition: all 0.4s ease;
}
.magnet-cta-link:hover {
    transform: translateY(-8px) scale(1.05);
    text-decoration-color: var(--accent-gold);
    filter: brightness(1.25);
}
/* Table scroll wrapper */
.table-scroll-wrap {
    width: 100%;
    margin: 2.5rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
}
.table-scroll-wrap table {
    min-width: 640px;
    width: auto !important;
}
.roi-table-container {
    margin: 2.5rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
}
.roi-table-container table {
    min-width: 640px;
    width: auto !important;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--card-border);
}
th, td {
    padding: 1rem 1.2rem;
    text-align: left;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
th {
    background: rgba(59, 130, 246, 0.05);
    color: #fff;
    font-weight: 800;
}
td strong { color: #fff; }
/* ========== Index Home Page ========== */
.hero {
    padding: 6rem 5% 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.tagline {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: #fff;
}
.hero h1 span {
    background: linear-gradient(to right, var(--accent-gold), #FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sub-text { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.cta-btn {
    display: inline-block;
    background-color: var(--accent-gold);
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(243, 198, 83, 0.2);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(243, 198, 83, 0.4); }
.matrix-section { padding: 5rem 5%; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 1.8rem; margin-bottom: 1rem; color: #fff; }
.section-subtitle { text-align: center; font-size: 1rem; color: var(--text-muted); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
    background-color: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(243, 198, 83, 0.2); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: #fff; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.stack-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
    text-decoration: none;
}
.stack-card:hover { transform: translateY(-4px); border-color: rgba(59, 130, 246, 0.3); }
.stack-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.stack-logo { font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.stack-badge { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 99px; background: rgba(243, 198, 83, 0.1); color: var(--accent-gold); font-weight: 600; }
.stack-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; flex-grow: 1; }
.stack-link { font-size: 0.9rem; color: var(--accent-blue); font-weight: 600; display: flex; align-items: center; gap: 0.25rem; }
.trends-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.trend-card {
    background-color: #0e1422;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    text-decoration: none;
}
.trend-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.1); }
.trend-content { padding: 2rem; display: flex; flex-direction: column; height: 100%; }
.trend-meta { font-size: 0.8rem; color: var(--accent-blue); font-weight: 600; text-transform: uppercase; margin-bottom: 0.75rem; letter-spacing: 0.5px; }
.trend-card h3 { font-size: 1.25rem; color: #fff; margin-bottom: 1rem; line-height: 1.4; }
.trend-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; flex-grow: 1; }
.trend-footer { font-size: 0.9rem; color: #fff; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
/* ========== blueprints.html ========== */
.hero-section {
    padding: 5rem 5% 3rem;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}
.hero-section h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.5px; margin-bottom: 1rem; color: #fff; }
.hero-section h1 span { color: var(--accent-gold); }
.blueprint-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
}
.blueprint-card:hover { transform: translateY(-4px); border-color: rgba(243, 198, 83, 0.2); }
.bp-meta { font-size: 0.75rem; color: var(--accent-blue); font-weight: 600; text-transform: uppercase; margin-bottom: 0.75rem; letter-spacing: 0.5px; }
.blueprint-card h2 { font-size: 1.35rem; color: #fff; margin-bottom: 1rem; line-height: 1.4; }
.blueprint-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
.bp-btn {
    display: block;
    text-align: center;
    background-color: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}
.blueprint-card:hover .bp-btn {
    background-color: var(--accent-gold);
    color: #000;
    box-shadow: 0 4px 15px rgba(243, 198, 83, 0.2);
}
/* ========== tools.html ========== */
.tools-hero {
    padding: 5rem 5% 3rem;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}
.tools-hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.5px; margin-bottom: 1rem; color: #fff; }
.tools-hero h1 span { color: var(--accent-gold); }
.stack-list { display: flex; flex-direction: column; gap: 2.5rem; }
.tool-review-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}
.tool-header-grid { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.tool-title { font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.tool-badge { font-size: 0.8rem; padding: 0.3rem 0.8rem; border-radius: 99px; background: rgba(243, 198, 83, 0.1); color: var(--accent-gold); font-weight: 600; }
.tool-review-card p { color: var(--text-main); font-size: 1.05rem; margin-bottom: 2rem; opacity: 0.95; }
.deploy-btn {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--accent-gold);
    color: #000;
    padding: 0.9rem 2.2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(243, 198, 83, 0.2);
}
.deploy-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(243, 198, 83, 0.45); background-color: #ffe082; }
/* ========== trends.html ========== */
.archive-hero {
    padding: 5rem 5% 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.archive-hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.5px; margin-bottom: 1rem; color: #fff; }
.archive-hero h1 span { color: var(--accent-gold); }
.trends-list { display: flex; flex-direction: column; gap: 2rem; }
.trend-feed-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    text-decoration: none;
}
.trend-feed-card:hover { transform: translateY(-3px); border-color: rgba(243, 198, 83, 0.2); background: rgba(255,255,255,0.01); }
.trend-feed-card h2 { font-size: 1.5rem; color: #fff; margin-bottom: 1rem; line-height: 1.4; transition: 0.3s; }
.trend-feed-card:hover h2 { color: var(--accent-gold); }
.trend-feed-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.trend-meta { font-size: 0.8rem; color: var(--accent-blue); font-weight: 600; text-transform: uppercase; margin-bottom: 0.75rem; letter-spacing: 0.5px; }
.trend-footer { font-size: 0.95rem; color: var(--accent-blue); font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
/* ========== Unified Footer ========== */
footer {
    background-color: #080B13;
    text-align: center;
    padding: 4rem 5% 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap:0.8rem;
    margin-top: 4rem;
}
.footer-links-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.75rem;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom:0;
}
.footer-links-wrap > a.footer-link-item {
    all: unset;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor:pointer;
    transition: 0.3s;
    white-space: nowrap;
}
.footer-links-wrap > a.footer-link-item:hover {
    color: var(--accent-gold);
}
.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding-top: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}
/* ========== Mobile Breakpoint 768px ========== */
@media (max-width: 768px) {
    .hero h1, .hero-section h1, .tools-hero h1, .archive-hero h1 {
        font-size: 2.2rem;
    }
    .article-container h1 { font-size: 2.2rem; }
    .content p { text-align: left; }
    header {
        justify-content: space-between;
    }
    nav {
        width: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }
    a.cta-float-btn,
    .magnet-cta-link {
        font-size: 1.3rem;
        white-space: normal;
        text-align: center;
    }
    .footer-links-wrap { gap:1.2rem 1.8rem; }
}

/* === Community Insights & Pitfall Cards === */
.community-insights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}
.pitfall-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.25rem;
    border-left: 3px solid #EAB308;
}
.pitfall-card h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.pitfall-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.pitfall-fix {
    color: #10B981 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
}

/* === MCP Threat Calculator Widget === */
.mcp-calculator-widget {
    background-color: #0d1117;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.calc-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.calc-input-group label {
    display: block;
    font-size: 0.8rem;
    color: #8b949e;
    margin-bottom: 0.4rem;
}
.calc-input-group input {
    width: 100%;
    background: #161b22;
    border: 1px solid #30363d;
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.calc-results {
    background: #161b22;
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid var(--accent-gold);
}
.calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.calc-result-row:last-child {
    margin-bottom: 0;
}
.calc-result-label {
    font-size: 0.85rem;
    color: #8b949e;
}
.calc-exposure-critical {
    font-weight: 700;
    color: #EF4444;
}
.calc-exposure-moderate {
    font-weight: 700;
    color: #F97316;
}
.calc-exposure-low {
    font-weight: 700;
    color: #EAB308;
}
.calc-savings {
    font-weight: 700;
    color: #10B981;
}

/* === Generic Fix Class (shared by attack-card and failure-card) === */
.fix {
    color: #10B981;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* === Article 02: REST API to MCP Server === */
.mcp-arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.mcp-arch-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 3px solid var(--accent-gold);
}
.mcp-arch-card h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.mcp-arch-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.mcp-arch-card .arch-metric {
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
}
.step-timeline {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}
.step-timeline li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2.5rem;
    border-bottom: 1px solid var(--card-border);
}
.step-timeline li:last-child {
    border-bottom: none;
}
.step-timeline .step-num {
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--accent-gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}
.step-timeline .step-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.step-timeline .step-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}
.schema-mapping-box {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}
.schema-mapping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.schema-mapping-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
}
.schema-mapping-tag {
    font-size: 0.75rem;
    color: #8b949e;
}
.schema-mapping-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.schema-input, .schema-output {
    background: #0d1117;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}
.schema-output {
    border-color: rgba(16, 185, 129, 0.3);
}
.schema-direction-label {
    color: #ff7b72;
    margin-bottom: 0.4rem;
    font-family: monospace;
    font-size: 0.8rem;
}
.schema-direction-label.output {
    color: #7ee787;
}
.schema-input pre, .schema-output pre {
    margin: 0;
    color: #e6edf3;
    font-family: monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}
.faq-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
}
.faq-question {
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
}
.faq-answer {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}
@media (max-width: 600px) {
    .schema-mapping-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Article 03: Make.com Overage Pricing ===== */
.pricing-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.pricing-tier-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}
.pricing-tier-card.featured {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(243, 198, 83, 0.1);
}
.pricing-tier-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.pricing-tier-ops {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}
.pricing-tier-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}
.pricing-tier-overage {
    font-size: 0.8rem;
    color: #EF4444;
    font-weight: 600;
}
.pricing-tier-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
.overage-formula-box {
    background-color: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
}
.overage-formula-box strong {
    color: #EF4444;
}
.topology-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
.topology-col {
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid;
}
.topology-bad {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
}
.topology-good {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}
.topology-label {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.topology-bad .topology-label { color: #f87171; }
.topology-good .topology-label { color: #34d399; }
.topology-tree {
    font-family: monospace;
    font-size: 0.78rem;
    color: #8b949e;
    line-height: 1.8;
}
.topology-node { color: #e6edf3; }
.topology-branch { padding-left: 1rem; }
.topology-branch-depth { padding-left: 2.5rem; }
.op-count { color: #6b7280; font-size: 0.75rem; }
.decision-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.decision-card {
    background: #161b22;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    border-left: 3px solid;
}
.decision-keep { border-left-color: #10B981; }
.decision-migrate { border-left-color: var(--accent-gold); }
.decision-card-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.decision-keep .decision-card-title { color: #10B981; }
.decision-migrate .decision-card-title { color: var(--accent-gold); }
.decision-list {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-left: 1.2rem;
    margin: 0;
    line-height: 1.6;
}
.cluster-mesh-box {
    background: #161b22;
    border-left: 3px solid var(--accent-gold);
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}
.cluster-mesh-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 1px;
    font-weight: 700;
}
.cluster-mesh-box h4 {
    color: #fff;
    margin: 0.4rem 0 0.6rem;
    font-size: 1rem;
}
.cluster-mesh-box p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}
.cluster-mesh-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cluster-mesh-links a {
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}
.calc-optimization-hint {
    background: rgba(239, 68, 68, 0.1);
    border: 1px dashed #EF4444;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.8rem;
    color: #f87171;
    margin-top: 0.75rem;
}
.calc-optimization-hint strong {
    color: #10B981;
}
@media (max-width: 600px) {
    .topology-compare {
        grid-template-columns: 1fr;
    }
}

/* Table of Contents */
.toc-box {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.toc-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 1.5rem;
}
.toc-list li {
    padding: 0.3rem 0;
    break-inside: avoid;
}
.toc-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.toc-list a:hover {
    color: var(--accent-gold);
}
@media (max-width: 600px) {
    .toc-list {
        columns: 1;
    }
}

/* Calculator Share Button */
.calc-share-row {
    margin-top: 1.25rem;
    text-align: right;
}
.calc-share-btn {
    background: var(--accent-gold);
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.88rem;
    transition: background-color 0.2s;
}
.calc-share-btn:hover {
    background-color: #ffe082;
}
.calc-copy-feedback {
    display: none;
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-left: 0.5rem;
}
.topology-full-width {
    grid-column: 1 / -1;
}

/* Calculator Visual Breakdown Bar */
.calc-bar-container {
    margin-top: 1.25rem;
}
.calc-bar-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.calc-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
}
.calc-bar-agentic {
    background: var(--accent-gold);
    height: 100%;
    transition: width 0.3s ease;
}
.calc-bar-savings {
    background: rgba(74, 222, 128, 0.4);
    height: 100%;
    transition: width 0.3s ease;
}
