/*
 * Shared layout for NerdSip hub / pillar pages.
 *
 * This lived inline in every hub HTML file, which is how the English and German
 * hubs drifted apart. Lifted out verbatim from replace-social-media so the
 * generated Spanish and Portuguese hubs render identically, and so a change here
 * reaches every hub instead of one of them.
 *
 * Loaded by hub-engine/build.mjs. The hand-written hubs still carry their own
 * inline copy; migrating them is a separate, safe cleanup.
 */
:root { --bg-papyrus: #FAFAF7; --bg-white: #FFFFFF; --text-dark: #1E293B; --text-slate: #64748B; --border-color: #E2E8F0; --emerald-dark: #022C22; --emerald-accent: #10B981; --emerald-light: #D1FAE5; }
    body { background-color: var(--bg-papyrus) !important; color: var(--text-dark); }
    .pillar-page { padding-top: 0; }
    .pillar-hero { width: 100%; box-sizing: border-box; margin: 0 0 1.25rem; padding: 7rem max(1.5rem, calc((100vw - 1120px) / 2)) 4.5rem; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr); gap: 3rem; align-items: center; background: linear-gradient(180deg, var(--emerald-dark) 0%, #064E3B 100%); border-bottom-left-radius: 48px; border-bottom-right-radius: 48px; position: relative; overflow: hidden; }
    .pillar-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(16,185,129,0.24), transparent 38%); pointer-events: none; }
    .pillar-hero > * { position: relative; z-index: 1; }
    .pillar-kicker { display: inline-flex; color: var(--emerald-light); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; margin-bottom: 1rem; }
    .pillar-hero h1 { text-align: left; margin-bottom: 1rem; color: #fff; background: none; -webkit-text-fill-color: #fff; }
    .pillar-lede { font-size: 1.22rem; color: rgba(255,255,255,0.88); max-width: 650px; margin-bottom: 1.5rem; }
    .pillar-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }
    .secondary-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0.9rem 1.25rem; border: 1px solid rgba(16,185,129,0.28); border-radius: 0.75rem; color: #fff !important; text-decoration: none !important; font-weight: 800; }
    .hero-card { background: #fff; border: 1px solid rgba(255,255,255,0.22); border-radius: 1rem; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.28); min-width: 0; }
    .hero-card img { width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; display: block; margin: 0; border-radius: 0; }
    .hero-card-body { padding: 1.2rem; }
    .hero-card-body p { color: var(--text-slate); margin: 0; }
    .content { color: var(--text-dark); }
    .content h2, .content h3 { color: var(--text-dark) !important; }
    .content p, .content li { color: var(--text-slate); }
    .content strong { color: var(--text-dark); }
    .highlight-box, .resources-box, .references { background: var(--bg-white); border: 1px solid var(--border-color); border-left: 4px solid var(--emerald-accent); color: var(--text-dark) !important; box-shadow: 0 12px 32px rgba(15,23,42,0.05); }
    .highlight-box h2 { margin-top: 0; }
    .answer-grid, .cluster-grid, .steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; }
    .answer-card, .cluster-card, .step-card { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: 1rem; padding: 1.2rem; box-shadow: 0 10px 28px rgba(15,23,42,0.04); }
    .answer-card h3, .cluster-card h3, .step-card h3 { margin-top: 0; font-size: 1.05rem; }
    .answer-card p, .cluster-card p, .step-card p { color: var(--text-slate); font-size: 1rem; margin-bottom: 0; }
    .cluster-card { color: var(--text-dark) !important; text-decoration: none !important; transition: transform 0.2s ease, border-color 0.2s ease; }
    .cluster-card:hover { transform: translateY(-2px); border-color: rgba(16,185,129,0.45); }
    .nav-pill { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2rem 0 0; }
    .nav-pill a { color: var(--emerald-dark); background: #ECFDF5; border: 1px solid rgba(16,185,129,0.22); border-radius: 999px; padding: 0.5rem 0.85rem; text-decoration: none; font-weight: 800; font-size: 0.9rem; }
    .breadcrumbs { max-width: 1120px; margin: 0 auto 3rem; padding: 0 1.5rem; }
    .breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; font-size: 0.82rem; line-height: 1.4; color: var(--text-slate); }
    .breadcrumbs li { display: inline-flex; align-items: center; min-height: 1.25rem; }
    .breadcrumbs li + li::before { content: "\203A"; margin: 0 0.45rem; color: #CBD5E1; }
    .breadcrumbs a { color: var(--text-slate); text-decoration: none; }
    .breadcrumbs a:hover { color: var(--emerald-accent); }
    .breadcrumbs [aria-current="page"] { color: #059669; font-weight: 600; }
    .comparison-table { background: var(--bg-white); color: var(--text-dark); border-color: var(--border-color); }
    .comparison-table th { color: var(--emerald-dark); background: #ECFDF5; border-color: var(--border-color); }
    .comparison-table td { border-color: var(--border-color); color: var(--text-slate); }
    .comparison-table td:first-child { color: var(--text-dark); font-weight: 800; }
    .cta-section { background: var(--emerald-dark); }
    .content .cta-section h3 { color: #fff !important; }
    .content .cta-section p { color: rgba(255,255,255,0.86) !important; }
    .tiny-note { color: var(--text-slate); font-size: 0.95rem; }
    footer { background: var(--bg-papyrus); }
    @media (max-width: 900px) {
      .pillar-hero, .answer-grid, .cluster-grid, .steps-grid { grid-template-columns: 1fr; }
      .pillar-hero h1 { text-align: center; }
      .pillar-hero { padding: 6.5rem 1rem 3rem; border-bottom-left-radius: 32px; border-bottom-right-radius: 32px; }
      .pillar-kicker, .pillar-lede, .pillar-actions { justify-content: center; text-align: center; margin-left: auto; margin-right: auto; }
      .breadcrumbs { padding: 0 1rem; }
    }
