/* =============================================
   Shelf Company Switzerland — Design System
   Gate 4 / Shared Stylesheet
   Source: DESIGN.md (Gate 2.5)
============================================= */

:root {
  --color-accent:        #B91C1C;
  --color-accent-hover:  #991B1B;
  --color-accent-light:  #FEF2F2;
  --color-accent-mid:    #FCA5A5;
  --color-surface-dark:  #111827;
  --color-surface-mid:   #1F2937;
  --color-bg-white:      #FFFFFF;
  --color-bg-subtle:     #F9FAFB;
  --color-bg-muted:      #F3F4F6;
  --color-text-primary:  #111827;
  --color-text-body:     #374151;
  --color-text-muted:    #6B7280;
  --color-text-light:    #9CA3AF;
  --color-text-inverse:  #FFFFFF;
  --color-text-accent:   #B91C1C;
  --color-border:        #E5E7EB;
  --color-border-strong: #D1D5DB;
  --color-border-accent: #B91C1C;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem;  --space-6: 1.5rem;   --space-8: 2rem;    --space-10: 2.5rem;
  --space-12: 3rem;    --space-16: 4rem;    --space-20: 5rem;   --space-24: 6rem;
  --container-max: 1200px;
  --container-px: 1.5rem;
  --radius-sm: 2px;  --radius-md: 4px;  --radius-lg: 6px;  --radius-xl: 8px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-size: 1rem; line-height: 1.65; color: var(--color-text-body); background: var(--color-bg-white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
em { font-style: italic; }
strong { font-weight: 600; color: var(--color-text-primary); }

/* ---- LAYOUT ---- */
.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-px); }
@media (min-width: 1024px) { :root { --container-px: 2rem; } }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 { font-family: var(--font-sans); color: var(--color-text-primary); font-weight: 700; line-height: 1.2; }
h2 { font-size: 2rem; margin-bottom: var(--space-6); }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: var(--space-4); }
h4 { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--space-2); }
p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }
a { color: var(--color-text-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-3); display: block; }
.content-lead { font-size: 1.125rem; color: var(--color-text-body); line-height: 1.65; max-width: 680px; margin-bottom: var(--space-8); }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: 12px 28px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.9375rem; font-family: var(--font-sans); cursor: pointer; transition: background 200ms, color 200ms, transform 100ms; text-decoration: none; white-space: nowrap; border: 2px solid transparent; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-secondary:hover { background: var(--color-accent); color: white; }
.btn-ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-white { background: white; color: var(--color-accent); border-color: white; font-weight: 700; }
.btn-white:hover { background: rgba(255,255,255,0.9); }
.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* ---- NAVIGATION ---- */
.nav-topbar { background: var(--color-surface-dark); padding: 8px 0; }
.nav-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.topbar-text { font-size: 13px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: var(--space-4); }
.topbar-text a { color: rgba(255,255,255,0.7); text-decoration: none; }
.topbar-text a:hover { color: white; }
.topbar-sep { color: rgba(255,255,255,0.3); }
.nav-main { background: #fff; border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.nav-main .container { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: var(--space-8); }
.nav-logo { font-size: 1.0625rem; font-weight: 800; color: var(--color-text-primary); text-decoration: none; flex-shrink: 0; letter-spacing: -0.02em; }
.nav-logo:hover { color: var(--color-text-primary); text-decoration: none; }
.nav-logo span { color: var(--color-accent); }
.nav-links { display: flex; align-items: center; gap: var(--space-8); list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--color-text-body); text-decoration: none; }
.nav-links a:hover { color: var(--color-accent); }
.nav-links .current a { color: var(--color-accent); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: var(--space-2); background: none; border: none; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--color-text-primary); border-radius: 1px; }
@media (max-width: 767px) { .nav-links, .nav-cta { display: none; } .nav-hamburger { display: flex; } }
.nav-overlay { display: none; position: fixed; inset: 0; background: var(--color-surface-dark); z-index: 200; flex-direction: column; padding: var(--space-8); }
.nav-overlay.open { display: flex; }
.nav-overlay-close { align-self: flex-end; font-size: 2rem; color: white; cursor: pointer; background: none; border: none; line-height: 1; margin-bottom: var(--space-8); }
.nav-overlay ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-6); }
.nav-overlay ul a { font-size: 1.25rem; font-weight: 600; color: white; text-decoration: none; }

/* ---- PAGE HERO (mini, 400px) ---- */
.page-hero { position: relative; min-height: 400px; display: flex; align-items: flex-end; background: var(--color-surface-dark); overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(20%) brightness(0.45); }
.page-hero-content { position: relative; z-index: 2; padding: var(--space-16) 0 var(--space-12); }
.breadcrumb { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: var(--space-4); flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; color: white; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: var(--space-4); max-width: 680px; }
.page-hero-lede { font-size: 1.0625rem; color: rgba(255,255,255,0.8); line-height: 1.65; max-width: 560px; }

/* ---- MAIN CONTENT GRID (8/4 sidebar) ---- */
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-10); align-items: start; }
@media (max-width: 1023px) { .content-grid { grid-template-columns: 1fr; } }
.content-main { min-width: 0; }
.content-sidebar { display: flex; flex-direction: column; gap: var(--space-6); }
@media (max-width: 1023px) { .content-sidebar { order: -1; } }

/* ---- SIDEBAR WIDGETS ---- */
.sidebar-cta { background: var(--color-accent); color: white; padding: var(--space-8); border-radius: var(--radius-xl); }
.sidebar-cta h3 { color: white; font-size: 1.125rem; margin-bottom: var(--space-3); }
.sidebar-cta p { color: rgba(255,255,255,0.85); font-size: 0.9375rem; margin-bottom: var(--space-6); }
.sidebar-cta .btn-white { width: 100%; justify-content: center; display: flex; }
.sidebar-related { background: var(--color-bg-subtle); border: 1px solid var(--color-border); padding: var(--space-6); border-radius: var(--radius-xl); }
.sidebar-related h4 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); margin-bottom: var(--space-4); }
.sidebar-related ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.sidebar-related ul li a { font-size: 0.9375rem; color: var(--color-text-body); text-decoration: none; display: flex; align-items: center; gap: var(--space-2); }
.sidebar-related ul li a:hover { color: var(--color-accent); }
.sidebar-related ul li a::before { content: '›'; color: var(--color-accent); font-weight: 700; }
.sidebar-toc { background: #fff; border: 1px solid var(--color-border); padding: var(--space-6); border-radius: var(--radius-xl); }
.sidebar-toc h4 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); margin-bottom: var(--space-4); }
.sidebar-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: var(--space-2); }
.sidebar-toc ol li { counter-increment: toc; display: flex; gap: var(--space-2); font-size: 0.875rem; }
.sidebar-toc ol li::before { content: counter(toc) "."; color: var(--color-accent); font-weight: 600; min-width: 16px; }
.sidebar-toc ol li a { color: var(--color-text-body); text-decoration: none; }
.sidebar-toc ol li a:hover { color: var(--color-accent); }

/* ---- SECTIONS ---- */
.section { padding: var(--space-20) 0; }
.section-alt { background: var(--color-bg-subtle); }
.section-dark { background: var(--color-surface-dark); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: white; }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-dark .section-label { color: var(--color-accent-mid); }
@media (max-width: 767px) { .section { padding: var(--space-12) 0; } }

/* ---- DEFINITION BOX ---- */
.definition-box { border-left: 4px solid var(--color-border-accent); background: var(--color-accent-light); padding: var(--space-6) var(--space-8); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; font-size: 1rem; line-height: 1.7; color: var(--color-text-body); margin-bottom: var(--space-8); }

/* ---- HERO SECTION (homepage) ---- */
.hero { position: relative; min-height: 80vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--color-surface-dark); }
.hero-bg { position: absolute; inset: 0; background-image: url('/assets/images/hero-zurich.jpg'); background-size: cover; background-position: center; filter: grayscale(20%) brightness(0.45); }
.hero-content { position: relative; z-index: 2; padding: var(--space-20) 0; max-width: 680px; }
.hero-overline { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-mid); margin-bottom: var(--space-4); display: block; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: white; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: var(--space-6); }
.hero-lede { font-size: 1.125rem; color: rgba(255,255,255,0.85); line-height: 1.65; margin-bottom: var(--space-8); max-width: 560px; }
.hero-ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-8); }
.hero-trust { font-size: 13px; color: rgba(255,255,255,0.6); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.hero-trust-sep { color: rgba(255,255,255,0.3); }
@media (max-width: 767px) { .hero { min-height: 70vh; } .hero-ctas { flex-direction: column; } }

/* ---- STATS STRIP ---- */
.stats-strip { background: var(--color-surface-mid); padding: var(--space-12) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: var(--space-6) var(--space-8); text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2.25rem; font-weight: 800; color: var(--color-accent); line-height: 1; margin-bottom: var(--space-2); }
.stat-label { font-size: 0.8125rem; font-weight: 500; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 767px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); } }

/* ---- CARDS ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 1023px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .card-grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--color-border); border-top: 3px solid var(--color-accent); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-sm); transition: box-shadow 200ms, transform 200ms; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon { width: 40px; height: 40px; color: var(--color-accent); margin-bottom: var(--space-4); flex-shrink: 0; }
.card h3 { font-size: 1.125rem; margin-bottom: var(--space-2); }
.card p { font-size: 0.9375rem; flex-grow: 1; margin-bottom: var(--space-4); }
.card-link { color: var(--color-accent); font-weight: 500; font-size: 14px; text-decoration: none; margin-top: auto; }
.card-link:hover { text-decoration: underline; }

/* ---- TABLES ---- */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: var(--space-8); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
thead th { background: var(--color-surface-mid); color: white; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 12px 16px; text-align: left; }
tbody tr:nth-child(odd) td { background: white; }
tbody tr:nth-child(even) td { background: var(--color-bg-subtle); }
td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); color: var(--color-text-body); vertical-align: top; }
td:first-child { font-weight: 500; color: var(--color-text-primary); }

/* ---- PROCESS STEPS ---- */
.process-steps { display: flex; flex-direction: column; gap: var(--space-6); margin-bottom: var(--space-8); }
.step { display: flex; gap: var(--space-6); align-items: flex-start; }
.step-num { width: 40px; height: 40px; min-width: 40px; border-radius: 50%; background: var(--color-accent); color: white; font-size: 0.875rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h4 { margin-bottom: var(--space-1); }
.step p { font-size: 0.9375rem; margin-bottom: 0; }

/* ---- CHECKLIST ---- */
.checklist { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); }
.checklist li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: 0.9375rem; color: var(--color-text-body); }
.check-icon { width: 20px; height: 20px; min-width: 20px; color: var(--color-accent); margin-top: 2px; }

/* ---- DARK COLUMNS ---- */
.dark-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1023px) { .dark-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .dark-cols { grid-template-columns: 1fr; } }
.dark-col { padding: var(--space-8); }
.dark-col-icon { width: 40px; height: 40px; color: var(--color-accent-mid); margin-bottom: var(--space-4); }
.dark-col h3 { font-size: 1.125rem; color: white; margin-bottom: var(--space-2); }
.dark-col p { font-size: 0.9375rem; color: rgba(255,255,255,0.7); margin-bottom: 0; }
.accent-rule { width: 48px; height: 2px; background: var(--color-accent); margin-bottom: var(--space-5); }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; }
details { border-bottom: 1px solid var(--color-border); }
details:first-child { border-top: 1px solid var(--color-border); }
summary { font-size: 1rem; font-weight: 600; color: var(--color-text-primary); padding: var(--space-5) 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; user-select: none; }
summary::-webkit-details-marker { display: none; }
.faq-chevron { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; transition: transform 200ms; }
details[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { font-size: 0.9375rem; color: var(--color-text-body); line-height: 1.65; padding-bottom: var(--space-5); max-width: 680px; }

/* ---- CTA BANNER ---- */
.cta-section { background: var(--color-accent); padding: var(--space-20) 0; text-align: center; }
.cta-section h2 { color: white; font-size: 2rem; margin-bottom: var(--space-4); }
.cta-section p { color: rgba(255,255,255,0.88); font-size: 1.125rem; margin-bottom: var(--space-8); max-width: 560px; margin-inline: auto; }
.cta-btns { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.footer { background: var(--color-surface-dark); padding: var(--space-20) 0 var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); margin-bottom: var(--space-12); }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { font-size: 1.0625rem; font-weight: 800; color: white; text-decoration: none; letter-spacing: -0.02em; display: block; margin-bottom: var(--space-4); }
.footer-logo span { color: var(--color-accent); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.65; margin-bottom: var(--space-5); }
.footer-email { font-size: 14px; color: rgba(255,255,255,0.5); }
.footer-email a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-email a:hover { color: white; }
.footer-col-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: white; margin-bottom: var(--space-4); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin-bottom: var(--space-6); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ---- BLOG GRID ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 1023px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 200ms, transform 200ms; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-body { padding: var(--space-6); }
.blog-card-tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-accent); margin-bottom: var(--space-3); display: block; }
.blog-card h3 { font-size: 1.0625rem; margin-bottom: var(--space-2); }
.blog-card h3 a { color: var(--color-text-primary); text-decoration: none; }
.blog-card h3 a:hover { color: var(--color-accent); }
.blog-card p { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 0; }

/* ---- ARTICLE STYLES ---- */
.article-body h2 { margin-top: var(--space-12); margin-bottom: var(--space-4); font-size: 1.625rem; }
.article-body h3 { margin-top: var(--space-8); margin-bottom: var(--space-3); font-size: 1.25rem; }
.article-body h4 { margin-top: var(--space-6); }
.article-body p { line-height: 1.75; margin-bottom: var(--space-5); }
.article-body ul, .article-body ol { margin-bottom: var(--space-5); padding-left: var(--space-6); }
.article-body li { margin-bottom: var(--space-2); font-size: 0.9375rem; line-height: 1.65; }
.article-body .definition-box { margin: var(--space-8) 0; }
.article-body .table-wrapper { margin: var(--space-8) 0; }

/* ---- AUTHOR BYLINE ---- */
.article-meta { padding: var(--space-6) 0 0; }
.article-author { display: inline-flex; align-items: center; gap: var(--space-4); text-decoration: none; padding: var(--space-3) 0; }
.article-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--color-border); }
.article-author-text { display: flex; flex-direction: column; line-height: 1.35; }
.article-author-name { font-size: 0.9375rem; font-weight: 600; color: var(--color-text-primary); }
.article-author-role { font-size: 0.8125rem; color: var(--color-text-muted); }
.article-author:hover .article-author-name { color: var(--color-accent); }
.reviewed-by { margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--color-border); display: flex; gap: var(--space-5); align-items: flex-start; }
.reviewed-by img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--color-border); }
.reviewed-by-body { flex: 1; }
.reviewed-by-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-1); }
.reviewed-by-name { font-size: 1.0625rem; font-weight: 600; color: var(--color-text-primary); margin-bottom: var(--space-2); }
.reviewed-by-name a { color: var(--color-text-primary); text-decoration: none; }
.reviewed-by-name a:hover { color: var(--color-accent); }
.reviewed-by-bio { font-size: 0.9375rem; line-height: 1.65; color: var(--color-text-body); margin: 0; }
@media (max-width: 639px) { .reviewed-by { flex-direction: column; } }

/* ---- TEAM GRID (/about/experts/) ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
@media (max-width: 1023px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .team-grid { grid-template-columns: 1fr; } }
.team-card { display: flex; flex-direction: column; background: var(--color-bg-white); border: 1px solid var(--color-border); border-top: 3px solid var(--color-accent); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 200ms, box-shadow 200ms; }
.team-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.team-card-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.team-card-body { padding: var(--space-6); }
.team-card h3 { font-size: 1.125rem; margin: 0 0 var(--space-2); color: var(--color-text-primary); }
.team-card h3 a { color: inherit; text-decoration: none; }
.team-card h3 a:hover { color: var(--color-accent); }
.team-card-role { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: var(--space-3); }
.team-card-link { font-size: 0.875rem; font-weight: 500; color: var(--color-accent); text-decoration: none; }
.team-card-link:hover { text-decoration: underline; }

/* ---- EXPERT PROFILE PAGE ---- */
.expert-profile { display: grid; grid-template-columns: 320px 1fr; gap: var(--space-12); align-items: start; }
@media (max-width: 1023px) { .expert-profile { grid-template-columns: 1fr; } }
.expert-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.expert-meta { font-size: 0.9375rem; color: var(--color-text-muted); margin: var(--space-2) 0 var(--space-6); }
.expert-meta strong { color: var(--color-text-primary); font-weight: 600; }
.expert-topics { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.expert-topics h2 { font-size: 1.125rem; margin-bottom: var(--space-3); }
.expert-topics ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.expert-topics li a { display: inline-block; padding: 6px 12px; background: var(--color-bg-subtle); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 0.8125rem; color: var(--color-text-body); text-decoration: none; }
.expert-topics li a:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---- UTILITIES ---- */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: 0.9375rem; }
.text-xs { font-size: 0.875rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
@media (max-width: 639px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- SHARED NAV JS ---- */
/* (nav script is inline per page) */
