/* ============================================
   INSIGHTS.CSS — page-specific styles
   Loaded after base + layout + components.
   ============================================ */

.page-hero {
    position: relative;
    padding: 200px 0 120px;
    background: linear-gradient(180deg, var(--black) 0%, #0A0A14 100%);
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 { font-family: var(--font-heading); font-size: 52px; font-weight: 300; line-height: 1.15; color: var(--white); margin-bottom: 20px; }

.page-hero h1 strong { font-weight: 700; color: var(--teal); }

.page-hero .subtitle { font-size: 18px; font-weight: 300; color: var(--off-white); opacity: 0.7; max-width: 560px; line-height: 1.7; }

.articles-section { background: linear-gradient(180deg, var(--black) 0%, #0A0A12 100%); }

.articles-section h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 64px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--card);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    border-bottom: 2px solid transparent;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-4px);
    border-bottom-color: var(--teal);
}

.article-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--dark);
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-thumb img { transform: scale(1.05); }

.article-thumb .article-category {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
}

.article-category.cfc-talks { background: var(--teal); color: var(--black); }

.article-category.thought-piece { background: rgba(255,255,255,0.1); color: var(--white); }

/* Brand-aligned utility classes — emitted by InsightCategory.color choices.
   Five tokens: teal, orchid, gold, blue, neutral. */
.article-category--teal { background: var(--teal); color: var(--black); }
.article-category--orchid { background: var(--orchid); color: var(--white); }
.article-category--gold { background: var(--gold); color: var(--black); }
.article-category--blue { background: var(--blue); color: var(--white); }
.article-category--neutral { background: rgba(255,255,255,0.1); color: var(--white); }

/* ============================================
   ARTICLE DETAIL PAGE (insight_article_page.html)
   ============================================ */

.article-hero {
    position: relative;
    min-height: 480px;
    padding: 200px 0 80px;
    background: var(--black);
    overflow: hidden;
}

.article-hero-image {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    z-index: 1;
}

.article-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,10,18,0.55) 0%, rgba(8,10,18,0.95) 100%);
    z-index: 2;
}

.article-hero-content {
    position: relative; z-index: 3;
    max-width: 880px;
}

.article-hero-content .article-category {
    position: static;
    display: inline-block;
    margin-bottom: 24px;
    padding: 4px 12px;
    font-size: 10px;
}

.article-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 32px;
}

.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.article-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.article-author-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author-name a {
    color: var(--off-white);
    text-decoration: none;
    border-bottom: 1px solid var(--teal);
    transition: color 0.3s;
}

.article-author-name a:hover { color: var(--teal); }

.article-body-section { background: var(--black); padding-top: 64px; padding-bottom: 96px; }

.article-reading-column {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-lead {
    font-family: var(--font-body);
    font-size: 21px;
    line-height: 1.65;
    color: var(--off-white);
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* WYSIWYG body — scope all child elements to the brand. Lina edits raw HTML
   via the WYSIWYG; these rules ensure colors/fonts stay in context. */
.article-rich-body { font-family: var(--font-body); color: var(--off-white); }

.article-rich-body > * { margin-bottom: 24px; }

.article-rich-body h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    margin-top: 48px;
    margin-bottom: 16px;
}

.article-rich-body h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
    margin-top: 36px;
    margin-bottom: 12px;
}

.article-rich-body p {
    font-size: 17px;
    line-height: 1.85;
    color: var(--off-white);
    opacity: 0.92;
}

.article-rich-body a {
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid rgba(25,164,166,0.45);
    transition: border-color 0.3s, color 0.3s;
}

.article-rich-body a:hover {
    color: var(--teal-light);
    border-bottom-color: var(--teal-light);
}

.article-rich-body strong { color: var(--white); font-weight: 600; }

.article-rich-body em { font-style: italic; }

.article-rich-body ul,
.article-rich-body ol {
    padding-left: 28px;
    line-height: 1.85;
}

.article-rich-body ul li,
.article-rich-body ol li {
    margin-bottom: 8px;
    font-size: 17px;
    color: var(--off-white);
    opacity: 0.92;
}

.article-rich-body ul li::marker { color: var(--teal); }
.article-rich-body ol li::marker { color: var(--teal); font-weight: 600; }

.article-rich-body blockquote {
    border-left: 3px solid var(--teal);
    padding: 8px 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--white);
    font-size: 19px;
    line-height: 1.7;
}

.article-rich-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 32px auto;
}

.article-rich-body iframe,
.article-rich-body .responsive-object {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    border: 0;
    margin: 32px 0;
}

.article-rich-body hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 48px 0;
}

.related-articles {
    background: linear-gradient(180deg, var(--black) 0%, #0A0A12 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.related-articles h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 48px;
    text-align: center;
}

@media (max-width: 768px) {
    .article-hero { padding: 140px 0 60px; min-height: 360px; }
    .article-rich-body p,
    .article-rich-body ul li,
    .article-rich-body ol li { font-size: 16px; }
    .article-lead { font-size: 18px; }
    .article-rich-body h2 { font-size: 24px; }
}

.article-body { padding: 24px; }

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.article-card:hover .article-body h3 { color: var(--teal); }

.article-body .excerpt {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-meta .date {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    /* Full --muted = ~7:1 on the dark card; opacity:0.6 dropped it to 3.4 (AA fail). */
    color: var(--muted);
}

.article-meta .read-more {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    /* Full --teal = 6.17:1; opacity:0.7 dropped it to 3.59 (AA fail). */
    color: var(--teal);
}

.mid-cta {
    background: linear-gradient(180deg, #0A0A12 0%, var(--black) 100%);
    text-align: center;
    padding: 100px 40px;
}

.mid-cta h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 16px;
}

.mid-cta p {
    font-size: 16px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--teal);
    padding: 18px 48px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--teal-light);
    box-shadow: 0 0 30px rgba(25, 164, 166, 0.3);
    transform: translateY(-2px);
}

.newsletter {
    background: linear-gradient(180deg, #0A0A12 0%, #0A0A14 50%, var(--black) 100%);
    text-align: center;
    padding: 140px 40px;
}

.newsletter h3 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 16px;
}

.newsletter p {
    font-size: 16px;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 40px;
}

.newsletter-form {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-right: none;
    color: var(--white);
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.2); }

.newsletter-form input:focus { border-color: var(--teal); }

.newsletter-form button {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--teal);
    color: var(--black);
    border: 1px solid var(--teal);
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover { background: var(--teal-light); }

.newsletter .rgpd {
    font-size: 10px;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .page-hero h1 { font-size: 34px; }
    .page-hero { padding: 160px 0 80px; }
    .articles-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { border-right: 1px solid rgba(255,255,255,0.15); }
}
