/* ═══════════════════════════════════════════════════════════
   SEO PAGES — Compatibilite, Transits, Blog
   Mapped to Framer "Message AI" text styles & spacing
   ═══════════════════════════════════════════════════════════ */

/* ═══ CORE LAYOUT ═══ */

/* Standard content wrap — 720px optimal reading width */
.wrap{
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Wider wrap for hero sections */
.wrap-wide{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Narrow wrap for dense content */
.wrap-narrow{
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

/* ═══ ARTICLE HERO ═══ */
.article-hero{
  padding: 120px 0 0;
  text-align: center;
}

.article-hero .wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Back link */
.article-back{
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s var(--ease);
}

.article-back:hover{ color: var(--heading); }

/* Tags row */
.article-tags{
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.article-tag{
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
}

/* Article title — Framer Heading 1: 56px, lh 1em, ls -0.03em */
.article-hero h1,
.article-hero .section-title{
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--heading);
  max-width: 680px;
  margin: 0 auto 24px;
}

.article-hero h1 em{ font-style: italic; }

/* Article meta — Framer BodySmall: 14px, lh 1.3 */
.article-meta{
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 0 0 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Hero image */
.article-hero-img{
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: block;
  border: 1px solid var(--border);
}

/* ═══ ARTICLE CONTENT ═══ */
.article-content{
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.01em;
}

/* Framer Heading 2: 36px, lh 1.1, ls -0.03em */
.article-content h2{
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 400;
  color: var(--heading);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 64px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-content h2:first-child{
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Framer BodyLarge equivalent for h3: 20px, lh 1.2, ls -0.02em */
.article-content h3{
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 40px 0 12px;
}

.article-content h4{
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--heading);
  margin: 32px 0 8px;
}

/* Framer Body: 16px, lh 1.2 — extended to 1.75 for long-form reading */
.article-content p{
  margin-bottom: 24px;
  color: var(--text);
}

.article-content p:last-child{ margin-bottom: 0; }

/* Lists */
.article-content ol,
.article-content ul{
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-content li{
  margin-bottom: 10px;
  line-height: 1.65;
}

/* Bold + italic */
.article-content strong{
  font-weight: 500;
  color: var(--heading);
}

.article-content em{
  font-style: italic;
}

/* Links in content */
.article-content a{
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(223,122,254,0.3);
  transition: text-decoration-color 0.2s;
}

.article-content a:hover{
  text-decoration-color: var(--accent-light);
}

/* Tables */
.article-content table{
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
  line-height: 1.5;
}

.article-content th{
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-hover);
}

.article-content td{
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* ═══ HIGHLIGHT BOX ═══ */
.highlight-box{
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin: 32px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.highlight-box h4{
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--heading);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.highlight-box ol,
.highlight-box ul{
  padding-left: 20px;
  margin: 8px 0 0;
}

.highlight-box li{
  margin-bottom: 6px;
}

/* ═══ SCIENCE BOX ═══ */
.sciencebox{
  background: var(--bg-card);
  border-left: 2px solid var(--accent);
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.sciencebox p{ margin: 0; }
.sciencebox strong{ color: var(--text); }

/* ═══ ARTICLE CTA ═══ */
.article-cta{
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin: 64px 0 32px;
}

.article-cta h3{
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.article-cta p{
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══ HERO COMPACT (blog index, SEO pages) ═══ */
.hero-compact{
  padding: 140px 0 40px;
  text-align: center;
}

.hero-compact .wrap{
  max-width: var(--container);
}

.hero-compact h1{
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--heading);
  max-width: 800px;
  margin: 0 auto 16px;
}

.hero-compact .hero-sub{
  font-size: 17px;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ═══ TAGS ═══ */
.score-badge{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.score-badge-number{
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent-light);
}

.score-badge-label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══ SIGN CARDS ═══ */
.sign-cards-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 48px;
}

.sign-card-mini{
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  transition: border-color var(--duration) var(--ease);
}

.sign-card-mini:hover{ border-color: var(--border-hover); }
.sign-card-mini .sign-glyph{ font-size: 36px; margin-bottom: 8px; }
.sign-card-mini h3{ font-family: var(--font-heading); font-size: 20px; font-weight: 400; color: var(--heading); margin: 0 0 4px; }
.sign-card-mini .sign-dates{ font-size: 14px; color: var(--muted); margin: 0; }
.sign-card-mini .sign-meta{ font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin: 8px 0 0; letter-spacing: 0.5px; }

/* ═══ SCORES ═══ */
.scores-section{
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  margin: 24px 0;
}

.score-row{ display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.score-row:last-of-type{ margin-bottom: 0; }
.score-label{ font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.5px; color: var(--muted); width: 100px; flex-shrink: 0; }
.score-track{ flex: 1; height: 4px; background: rgba(255,255,255,0.06); overflow: hidden; }
.score-fill{ height: 100%; background: var(--accent); transition: width 0.8s var(--ease); }
.score-value{ font-family: var(--font-mono); font-size: 13px; color: var(--text); width: 36px; text-align: right; }
.score-summary{ text-align: center; padding-top: 24px; border-top: 1px solid var(--border); margin-top: 24px; }
.score-summary-number{ font-family: var(--font-heading); font-size: 48px; font-weight: 400; color: var(--accent-light); }
.score-summary-label{ font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }

/* ═══ RELATED LINKS ═══ */
.related-links{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.related-pill{ padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border); font-size: 14px; color: var(--muted); text-decoration: none; transition: all var(--duration) var(--ease); }
.related-pill:hover{ border-color: var(--border-hover); color: var(--heading); }

/* ═══ TRANSIT INFO ═══ */
.aspect-info-bar{ display: inline-flex; align-items: center; gap: 16px; padding: 12px 24px; background: var(--bg-card); border: 1px solid var(--border); flex-wrap: wrap; justify-content: center; }
.aspect-info-bar span{ font-size: 14px; color: var(--muted); }
.sign-card-label{ font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.sign-card-title{ font-family: var(--font-heading); font-size: 20px; font-weight: 400; color: var(--heading); margin-bottom: 4px; }
.sign-card-sub{ font-size: 14px; color: var(--muted); }
.sign-card-detail{ font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ═══ SCROLL PROGRESS BAR ═══ */
#prog{
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ═══ BLOG HERO ═══ */
.blog-hero{
  padding-top: 140px;
  padding-bottom: 0;
}

/* ═══ BLOG GRID CARDS (Framer FeatureCard pattern: visual + text below) ═══ */
.blog-grid-cards{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.blog-card-v2{
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color var(--duration) var(--ease);
}

.blog-card-v2:hover{
  border-color: var(--border-hover);
  color: inherit;
}

.blog-card-v2-visual{
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.blog-card-v2-visual img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.blog-card-v2:hover .blog-card-v2-visual img{
  transform: scale(1.03);
}

.blog-card-v2-body{
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-card-v2-tags{
  display: flex;
  gap: 8px;
}

.blog-card-v2-title{
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.blog-card-v2-excerpt{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
}

.blog-card-v2-meta{
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ═══ BLOG NEWSLETTER (Framer FinalCta pattern) ═══ */
.blog-newsletter{
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.blog-newsletter-inner{
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-newsletter-text{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.blog-newsletter-text p{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.blog-newsletter-form{
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

.blog-newsletter-form input[type="email"]{
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--heading);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 0 16px;
  height: 36px;
  border-radius: 48px;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

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

.blog-newsletter-form input::placeholder{
  color: var(--muted);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px){
  .article-hero{ padding: 100px 0 0; }
  .article-hero h1,
  .article-hero .section-title{ font-size: clamp(26px, 6vw, 36px); }
  .hero-compact{ padding: 120px 0 32px; }
  .hero-compact h1{ font-size: clamp(26px, 6vw, 36px); }
  .sign-cards-grid{ grid-template-columns: 1fr; }
  .score-row{ flex-wrap: wrap; }
  .score-label{ width: 100%; margin-bottom: 4px; }
  .article-tags{ flex-wrap: wrap; }
  .article-meta{ flex-wrap: wrap; gap: 12px; }
  .article-content h2{ margin-top: 48px; padding-top: 24px; }
  .blog-grid-cards{ grid-template-columns: 1fr; }
  .blog-newsletter-form{ flex-direction: column; }
}

/* tablet: already 2 cols by default */

@media (max-width: 480px){
  .wrap{ padding: 0 16px; }
  .wrap-narrow{ padding: 0 16px 80px; }
  .scores-section{ padding: 20px; }
  .article-cta{ padding: 32px 20px; }
  .highlight-box{ padding: 20px; }
  .sciencebox{ padding: 16px 20px; }
}
