/* ============================================================
   Article styles: Understanding Your AI locked identity.
   Dark navy chrome (nav, title band, footer) + light reading well.
   Tokens, fonts, nav, footer, buttons, newsletter live in uya.css.
   Legacy hand-built articles keep their own per-page overrides.
   No gradients, no animated backgrounds, hairline borders.
   ============================================================ */
@import url('/assets/css/uya.css');

/* ---------- article title band (navy) ---------- */
.article-header {
    background: var(--navy);
    color: var(--cloud);
    padding: 3.6rem 2rem 3.2rem;
    border-bottom: 1px solid var(--line-dark);
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.3rem;
    flex-wrap: wrap;
}

.article-category {
    background: var(--gold);
    color: var(--navy);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article-date {
    color: var(--cloud-muted);
    font-size: 0.95rem;
}

.article-header h1 {
    font-size: clamp(2rem, 4.4vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.12;
}

.article-subtitle {
    font-size: 1.22rem;
    color: var(--cloud-muted);
    line-height: 1.55;
    max-width: 46em;
}

/* ---------- reading well (light) ---------- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--ink);
}

.article-content p { margin-bottom: 1.5rem; }

.article-content a {
    color: var(--cyan-text);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease;
}
.article-content a:hover { border-bottom-color: var(--cyan-text); }

.article-content strong { color: var(--navy); font-weight: 700; }

.article-content ul, .article-content ol { margin: 1.5rem 0; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.75rem; }

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin: 2rem 0 0.75rem;
}

.article-content blockquote {
    border-left: 3px solid var(--cyan);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: rgba(0, 180, 216, 0.06);
    border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
    font-style: italic;
    color: var(--ink);
}
.article-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: normal;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--cyan-text);
}

/* ---------- hero image / inline SVG diagrams ---------- */
.article-hero-image {
    margin: 0 0 2.5rem 0;
    border: 1px solid var(--line-light);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--card);
}
.article-hero-image img,
.article-hero-image svg {
    width: 100%;
    height: auto;
    display: block;
}
.article-hero-image svg { background: var(--card); }

/* ---------- callout boxes (flat tints, one rail) ---------- */
.highlight-box {
    background: rgba(0, 180, 216, 0.07);
    border-left: 3px solid var(--cyan);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
}
.highlight-box.key-finding {
    background: rgba(247, 183, 49, 0.1);
    border-left-color: var(--gold);
}
.highlight-box.important {
    background: rgba(255, 51, 102, 0.07);
    border-left-color: var(--pink);
}
.highlight-box h4 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--navy);
}
.highlight-box p { margin-bottom: 0.5rem; }
.highlight-box p:last-child { margin-bottom: 0; }
.highlight-box ul { margin: 0.75rem 0 0 0; }

/* ---------- stat cards ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    margin: 2.5rem 0;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--line-light);
    border-top: 3px solid var(--cyan);
    padding: 1.8rem 1.5rem;
    border-radius: var(--radius-card);
    text-align: center;
    transition: transform 0.15s ease;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card:nth-child(2) { border-top-color: var(--gold); }
.stat-card:nth-child(3) { border-top-color: var(--pink); }
.stat-card:nth-child(4) { border-top-color: var(--navy); }

.stat-card .number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cyan-text);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}
.stat-card:nth-child(2) .number { color: var(--gold-text); }
.stat-card:nth-child(3) .number { color: var(--pink-text); }
.stat-card:nth-child(4) .number { color: var(--navy); }

.stat-card .label { font-weight: 600; color: var(--navy); font-size: 1rem; }
.stat-card .description { font-size: 0.9rem; color: var(--ink-muted); margin-top: 0.5rem; }

/* ---------- CTA panel (navy) ---------- */
.cta-box {
    background: var(--navy);
    border: 1px solid var(--line-dark);
    color: var(--cloud);
    padding: 2.5rem 2.2rem;
    border-radius: var(--radius-card);
    margin: 3rem 0;
    text-align: center;
}
.cta-box h3 {
    color: #ffffff;
    margin: 0 0 0.75rem;
    font-size: 1.55rem;
    font-weight: 700;
}
.cta-box p {
    margin-bottom: 1.5rem;
    color: var(--cloud-muted);
    line-height: 1.6;
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

/* buttons inside articles (base .btn comes from uya.css) */
a.btn-primary { background: var(--cyan); color: var(--navy); border: 1px solid var(--cyan); }
a.btn-primary:hover { background: #33c5e2; transform: translateY(-1px); }
a.btn-secondary {
    display: inline-block;
    padding: 0.9rem 1.7rem;
    border-radius: var(--radius-btn);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    background: transparent;
    color: var(--cloud);
    border: 1px solid var(--line-dark);
    transition: border-color 0.15s ease, color 0.15s ease;
}
a.btn-secondary:hover { border-color: var(--cyan); color: #ffffff; }

/* ---------- collapsible sources ---------- */
.sources-wrapper { margin-top: 3rem; }

.sources-toggle {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--line-light);
    padding: 1.15rem 1.6rem;
    border-radius: var(--radius-card);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    transition: border-color 0.15s ease;
}
.sources-toggle:hover { border-color: var(--cyan); }
.sources-toggle .toggle-icon {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
    color: var(--cyan-text);
}
.sources-toggle.active { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.sources-toggle.active .toggle-icon { transform: rotate(180deg); }

.sources-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.sources-content.active { max-height: 8000px; }

.sources {
    background: var(--paper-2);
    padding: 2rem 2.2rem;
    border: 1px solid var(--line-light);
    border-top: none;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.sources h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem;
    color: var(--navy);
    font-weight: 700;
}
.sources h4:first-of-type { margin-top: 0; }
.sources ol { list-style: decimal; padding-left: 1.5rem; }
.sources li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line-light);
    font-size: 0.95rem;
    line-height: 1.6;
}
.sources li:last-child { border-bottom: none; }

/* ---------- author box ---------- */
.author-box {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.8rem 2rem;
    background: var(--card);
    border: 1px solid var(--line-light);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-card);
    margin-top: 3rem;
}
.author-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--gold);
    flex-shrink: 0;
    font-weight: 700;
}
.author-info h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}
.author-info p { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- back link + breadcrumbs ---------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyan-text);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: gap 0.15s ease;
}
.back-link:hover { gap: 0.75rem; }

.breadcrumbs { max-width: 800px; margin: 0 auto; padding: 1rem 2rem 0; font-size: 0.85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 0.35rem; color: var(--ink-muted); }
.breadcrumbs a { color: var(--cyan-text); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li[aria-current] { color: var(--ink-muted); max-width: 28ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- inline CTA ---------- */
.inline-cta {
    margin: 2.5rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--gold);
    background: rgba(247, 183, 49, 0.09);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    font-size: 1.05rem;
}
.inline-cta p { margin: 0; }
.inline-cta a { color: var(--cyan-text); font-weight: 700; }

/* ---------- related articles ---------- */
.related-articles { max-width: 800px; margin: 3rem auto 0; padding: 0 0 1rem; }
.related-articles h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.25rem;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.related-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-card);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.related-card:hover { transform: translateY(-2px); border-color: var(--cyan); }
.related-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.related-card-body { padding: 1rem; }
.related-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cyan-text);
}
.related-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-top: 0.4rem; line-height: 1.35; }

/* ---------- newsletter wrapper on article pages ---------- */
.newsletter-box { max-width: 800px; margin: 3rem auto; }

/* ---------- responsive ---------- */
@media (max-width: 768px) {
    .article-header { padding: 2.6rem 1.2rem 2.4rem; }
    .article-container { padding: 2.2rem 1.2rem 3rem; }
    .article-content { font-size: 1.05rem; }
    .article-content h2 { font-size: 1.5rem; }
    .article-content h3 { font-size: 1.25rem; }
    .author-box { flex-direction: column; text-align: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .breadcrumbs { padding: 0.75rem 1rem 0; }
    .breadcrumbs li[aria-current] { max-width: 18ch; }
}
