/* ============================================
   INSIGHTS ARTICLE STYLESHEET - UPDATED
   Article-specific components and layouts
   Requires: insights-global.css
   Updated: Includes Building Series components
   ============================================ */

/* ==================== INSIGHTS HEADER ==================== */
.insights-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.insights-header-content {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.insights-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.insights-nav {
    display: flex;
    gap: 2rem;
}

.insights-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.insights-nav a:hover {
    color: var(--coral-accent);
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    max-width: var(--max-width-content);
    margin: 2rem auto 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--coral-accent);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* ==================== THEME TOGGLE ==================== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-family: var(--font-base);
    font-size: 14px;
}

.theme-toggle:hover {
    transform: scale(1.06);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

html[data-theme="light"] .moon-icon,
html[data-theme="dark"] .sun-icon {
    display: none;
}

/* No breakpoint overrides; matches landing page behavior */

/* ==================== ARTICLE CONTAINER ==================== */
.article-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 2rem;
}

/* article-body is page-specific; do not define globally */

/* ==================== ARTICLE HERO ==================== */
.hero {
    position: relative;
    padding: 4rem 0;
    text-align: center;
}

/* split hero removed; use page-scoped styles when needed */

/* Hero with background image (standard articles) */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

/* Hero eyebrow (Building Series) */
.hero-eyebrow {
    font-family: var(--font-base);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 1rem 0 2rem 0;
    line-height: 1.4;
}

/* split hero subtitle removed */

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== MAIN CONTENT ==================== */
.main-content,
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ==================== CONTENT BLOCKS ==================== */
.content-block {
    margin: 3rem 0;
}

.content-block:first-child {
    margin-top: 0;
}

.content-block h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-block p strong {
    font-weight: 700;
    color: var(--text-primary);
}

.content-block p em {
    font-style: italic;
    color: var(--text-secondary);
}

/* ==================== ARTICLE SECTIONS ==================== */
.article-section {
    margin: 4rem 0;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.article-section h3 {
    margin-top: 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient headlines for articles */
h2, h3 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1, h2, h3,
.hero h1,
.article-section h3,
.content-block h2 {
    color: var(--text-primary);
    -webkit-text-fill-color: initial;
    background: none;
    font-family: 'Big Shoulders Display', var(--font-display), system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* pull-quote alias removed; keep .pullquote rules below */

/* accent and global media rules removed */

/* ==================== LISTS ==================== */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Custom styled lists (inline styles preserved) */
ul[style*="list-style: none"],
ul[style*="list-style:none"] {
    padding-left: 0;
    margin: 2rem 0;
}

/* ==================== BLOCKQUOTES / PULLQUOTES ==================== */
blockquote,
.pullquote {
    background: var(--bg-secondary);
    border-left: 4px solid var(--coral-accent);
    padding: 2rem 2.5rem;
    margin: 3rem 0;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-primary);
    border-radius: 0 12px 12px 0;
    line-height: 1.5;
    font-weight: 500;
}

/* ==================== PULLQUOTE SPECIFIC ==================== */
.pullquote {
    background: transparent;
    border-left: 4px solid var(--coral-accent);
    padding: 1.5rem 0 1.5rem 2rem;
    margin: 3rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ==================== SIGNATURE LINES ==================== */
.signature-lines {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 2px solid var(--coral-accent);
    border-bottom: 2px solid var(--coral-accent);
}

.signature-line {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 4px solid var(--coral-accent);
}

/* ==================== SUPPLEMENTAL GRAPHICS ==================== */
.supplemental-graphic {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 2rem auto;
    display: block;
}

/* ==================== CALL TO ACTION ==================== */
.cta-section {
    text-align: center;
    margin: 6rem 0;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-coral);
}

/* focus-visible outlines removed */

/* ==================== METRIC CARDS ==================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-coral);
    border-color: var(--coral-accent);
}

.metric-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--coral-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== CATEGORY CHIPS ==================== */
.category-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--coral-light);
    color: var(--coral-accent);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1rem 0;
}

/* ==================== ARTICLE FOOTER ==================== */
.article-footer {
    max-width: var(--max-width-content);
    margin: 4rem auto;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.back-to-insights {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.back-to-insights:hover {
    background: var(--coral-accent);
    color: white;
    border-color: var(--coral-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-coral);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    /* keep original breadcrumb padding */

    .insights-header {
        padding: 1rem;
    }

    .insights-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .insights-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .breadcrumb {
        padding: 0 1rem;
        flex-wrap: wrap;
    }

    .article-container {
        padding: 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

    /* split hero mobile removed */

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .content,
    .main-content {
        padding: 2rem 1rem;
    }

    .content-block h2 {
        font-size: 2rem;
        margin: 2rem 0 1rem 0;
    }

    .pullquote {
        font-size: 1.25rem;
        padding: 1rem 0 1rem 1.5rem;
    }

    .signature-lines {
        padding: 2rem 0;
        margin: 3rem 0;
    }

    .signature-line {
        font-size: 1.5rem;
    }

    .article-section {
        padding: 2rem;
        margin: 3rem 0;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .article-footer {
        margin: 3rem auto;
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .insights-logo {
        font-size: 1.25rem;
    }

    .insights-nav a {
        font-size: 0.875rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .content-block h2 {
        font-size: 1.75rem;
    }

    .signature-line {
        font-size: 1.25rem;
    }
}

/* Article subheadings: white text with readability aids */
.article-subheading,
.section-title,
.hero-subtitle {
    color: #FFFFFF;
    -webkit-text-fill-color: initial;
    background: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* ==================== TABLET SPACING FIX ==================== */
/* Prevent hero tile overlap with first heading by adding top margin
   to article content specifically on tablet widths. */
@media (min-width: 600px) and (max-width: 968px) {
    .article-content {
        margin-top: 3.5rem;
    }
}

/* ==================== EDITORIAL ILLUSTRATION SYSTEM ==================== */
/* Hero Illustration */
.hero-illustration {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

.hero-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* Decorative Break Illustrations */
.decorative-break {
    margin: 4rem auto;
    text-align: center;
    max-width: 600px;
}

.decorative-break img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
}

/* Dark Mode Illustration Styles */
[data-theme="dark"] .hero-illustration {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border-radius: 12px;
    transition: background 0.3s ease;
}

[data-theme="dark"] .decorative-break {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

[data-theme="dark"] .hero-illustration img,
[data-theme="dark"] .decorative-break img {
    opacity: 0.8;
    filter: brightness(0.95) contrast(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-illustration {
        padding: 0 1rem;
        margin: 2rem auto 0;
    }
    
    .decorative-break {
        margin: 3rem auto;
        max-width: 400px;
    }
}

/* reduced motion block removed */
/* Unified Insights nav - test implementation */
.lg-site-header {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.lg-site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.lg-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #121212;
}

.lg-logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lg-main-nav {
  display: inline-flex;
  align-items: center;
  gap: 32px;
}

.lg-nav-link {
  color: #121212;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  position: relative;
  transition: color 0.2s ease;
}

.lg-nav-link:hover {
  color: #FF3B30; /* coral */
}

.lg-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: #FF3B30; /* coral underline */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.lg-nav-link:hover::after,
.lg-nav-link.is-active::after {
  transform: scaleX(1);
}

.lg-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: opacity 0.2s ease;
}

.lg-nav-toggle:hover { opacity: 0.7; }
.lg-nav-toggle:active { opacity: 0.5; }

.lg-nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #121212;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.lg-nav-toggle-bar:nth-child(1) { top: 14px; }
.lg-nav-toggle-bar:nth-child(2) { top: 21px; }
.lg-nav-toggle-bar:nth-child(3) { top: 28px; }

.lg-site-header.is-open .lg-nav-toggle-bar:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}
.lg-site-header.is-open .lg-nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}
.lg-site-header.is-open .lg-nav-toggle-bar:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 768px) {
  .lg-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lg-main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 56px;
    bottom: 0;
    height: calc(100vh - 56px);
    padding: 60px 40px;
    background: #000000;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 32px;
    z-index: 200;
    overflow-y: auto;
  }

  .lg-site-header.is-open .lg-main-nav { display: flex; }

  .lg-nav-link {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-transform: none;
    line-height: 1.2;
  }

  .lg-nav-link::after { display: none; }
  .lg-nav-link:hover { color: #FF3B30; }

  .lg-site-header.is-open {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 210;
  }

  .lg-nav-backdrop {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    z-index: 190;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .lg-site-header.is-open .lg-nav-backdrop { display: block; opacity: 1; }

  .lg-nav-close {
    display: none;
    position: fixed;
    top: 64px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 210;
  }

  .lg-nav-close::before,
  .lg-nav-close::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 21px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: background-color 0.2s ease;
  }
  .lg-nav-close::before { transform: rotate(45deg); }
  .lg-nav-close::after { transform: rotate(-45deg); }

  .lg-nav-close:hover::before,
  .lg-nav-close:hover::after { background: #FF3B30; }
  .lg-nav-close:focus { outline: 2px solid #FF3B30; outline-offset: 4px; }

  .lg-site-header.is-open .lg-nav-close { display: inline-flex; }
}
/* Insights logo in unified nav */
.lg-logo-picture {
  display: inline-block;
  line-height: 0;
}

.lg-logo-img {
  width: 160px;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .lg-logo-img {
    width: 120px;
  }
}
/* Insights nav refinements - spacing, shadow, logo */
.article-header-section {
  padding-top: 80px;
}

.lg-logo-text {
  font-size: 17px;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.lg-site-header.is-scrolled {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--coral-accent);
    border-color: var(--coral-accent);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
}

html[data-theme="light"] .moon-icon,
html[data-theme="dark"] .sun-icon {
    display: none;
}
