/* Ancient Languages — Etymology.
   Page-specific rules extracted from /proofs/ancient-languages-etymology.html.
   Shared rules (nav, footer, breadcrumb, .section-eyebrow, .section-heading)
   live in nav.css / utilities.css.
   NOTE: per the brief's enqueue, this file loads on single etymology posts
   (is_singular('etymology')). */

/* WORD HERO */
.word-hero { padding: 5rem 0 4rem; text-align: center; border-bottom: 1px solid var(--border); }
.word-hero-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.word-hero-eyebrow::before, .word-hero-eyebrow::after { content: ''; flex: 1; max-width: 60px; height: 1px; background: var(--border); }
.word-display { font-family: 'Cormorant Garamond', serif; font-size: 96px; font-weight: 600; font-style: italic; color: var(--text); line-height: 1; margin-bottom: 1rem; letter-spacing: -0.02em; }
.word-pronunciation { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-style: italic; color: var(--text-muted); margin-bottom: 1.5rem; }
.language-badge { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; background: var(--blue); color: var(--white); padding: 5px 14px; border-radius: 3px; }
.word-tagline { font-size: 18px; color: var(--text-mid); margin-top: 1.5rem; font-family: 'Cormorant Garamond', serif; font-style: italic; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* ETYMOLOGY */
.etymology-section { padding: 4rem 0; }
.etymology-block { border-left: 3px solid var(--gold); padding-left: 2rem; margin-bottom: 3rem; }
.etymology-block h2 { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 500; color: var(--text); margin-bottom: 1.25rem; line-height: 1.2; }
.etymology-block p { font-size: 16px; color: var(--text-mid); line-height: 1.85; margin-bottom: 1.25rem; }
.etymology-block p:last-child { margin-bottom: 0; }
.root-chain { display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin: 2rem 0; }
.root-item { text-align: center; padding: 1rem 1.5rem; background: var(--surface); border: 1px solid var(--border); flex: 1; min-width: 120px; }
.root-item:first-child { border-radius: 4px 0 0 4px; }
.root-item:last-child { border-radius: 0 4px 4px 0; }
.root-arrow { font-size: 18px; color: var(--text-muted); padding: 0 4px; display: flex; align-items: center; }
.root-lang { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.root-word { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-style: italic; color: var(--blue); font-weight: 500; line-height: 1.2; margin-bottom: 4px; }
.root-meaning { font-size: 12px; color: var(--text-muted); }

/* RELATED LANGUAGES */
.related-languages { padding: 4rem 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-intro { font-size: 15px; color: var(--text-muted); margin-bottom: 2rem; max-width: 580px; line-height: 1.7; }
.lang-table { width: 100%; border-collapse: collapse; }
.lang-table th { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); padding: 10px 16px; border-bottom: 2px solid var(--border); text-align: left; background: var(--white); }
.lang-table td { font-size: 15px; color: var(--text-mid); padding: 14px 16px; border-bottom: 1px solid var(--border); }
.lang-table td:first-child { font-weight: 500; color: var(--text); width: 160px; }
.lang-table td em { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--blue); font-style: italic; }
.lang-table tr:last-child td { border-bottom: none; }
.lang-table tr:hover td { background: var(--white); }

/* SHARE */
.share-section { padding: 3.5rem 0; text-align: center; border-bottom: 1px solid var(--border); }
.share-heading { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 500; color: var(--text); margin-bottom: 0.75rem; }
.share-subtext { font-size: 14px; color: var(--text-muted); margin-bottom: 1.75rem; }
.share-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid var(--border); border-radius: 3px; font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; cursor: pointer; background: var(--white); transition: all 0.2s; font-family: 'Inter', sans-serif; }
.share-btn:hover { background: var(--surface); border-color: var(--blue); color: var(--blue); }
.share-btn svg { width: 16px; height: 16px; }

/* COURSE CTA */
.course-cta-section { padding: 3.5rem 0; }
.course-cta { background: var(--blue-light); border: 1px solid #B8D4F0; border-radius: 4px; padding: 2rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.course-cta-content h4 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--blue); margin-bottom: 0.4rem; }
.course-cta-content p { font-size: 14px; color: var(--text-mid); line-height: 1.6; margin: 0; }
.course-cta-btn { background: var(--blue); color: var(--white); border: none; padding: 12px 24px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; flex-shrink: 0; transition: background 0.2s; }
.course-cta-btn:hover { background: var(--blue-dark); }

/* MORE POSTS */
.more-section { padding: 4rem 0; background: var(--surface); border-top: 1px solid var(--border); }
.more-heading { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 500; color: var(--text); margin-bottom: 2rem; }
.words-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.word-card { background: var(--white); border: 1px solid var(--border); padding: 1.5rem; border-radius: 4px; display: flex; flex-direction: column; transition: border-color 0.2s; cursor: pointer; text-decoration: none; }
.word-card:hover { border-color: var(--blue); }
.word-card-lang { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.word-card-word { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-style: italic; font-weight: 600; color: var(--blue); line-height: 1; margin-bottom: 0.5rem; }
.word-card-teaser { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.word-card-link { font-family: 'Cormorant Garamond', serif; font-size: 14px; color: var(--blue); font-weight: 500; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .word-display { font-size: 72px; }
  .words-grid { grid-template-columns: 1fr 1fr; }
  .root-chain { flex-direction: column; align-items: stretch; }
  .root-item { border-radius: 0; border-bottom: none; }
  .root-item:first-child { border-radius: 4px 4px 0 0; }
  .root-item:last-child { border-radius: 0 0 4px 4px; border-bottom: 1px solid var(--border); }
  .root-arrow { display: none; }
  .course-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .word-display { font-size: 56px; }
  .words-grid { grid-template-columns: 1fr; }
  .word-hero { padding: 3.5rem 0 3rem; }
}
