/**
 * TVK Common Page widget — legal-style content layout.
 */

.tvk-common-page {
  --tvk-cp-ink: #0a0a0a;
  --tvk-cp-bg: #faf8f3;
  --tvk-cp-bg-warm: #f2ede3;
  --tvk-cp-surface: #ffffff;
  --tvk-cp-text: #1a1a1a;
  --tvk-cp-text-soft: #4a4a4a;
  --tvk-cp-text-mute: #7a7a7a;
  --tvk-cp-line: #e5e0d5;
  --tvk-cp-hot: #e63e11;
  --tvk-cp-hot-deep: #b82d08;
  --tvk-cp-gold: #c9a227;
  --tvk-cp-r-md: 12px;
  --tvk-cp-r-xl: 28px;
  --tvk-cp-r-full: 999px;
}

.tvk-common-page .wrap-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.tvk-common-page h1,
.tvk-common-page h2,
.tvk-common-page h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--tvk-cp-ink);
}

.tvk-common-page h1 {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 800;
}

.tvk-common-page h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}

.tvk-common-page h3 {
  font-size: 18px;
  margin: 28px 0 12px;
}

.tvk-common-page h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--tvk-cp-hot);
  font-weight: 400;
}

.tvk-common-page .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tvk-cp-hot);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tvk-common-page .eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--tvk-cp-hot);
}

.tvk-common-page .page-head {
  padding: 80px 0 48px;
  position: relative;
  overflow: hidden;
}

.tvk-common-page .page-head::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230, 62, 17, 0.06) 0%, transparent 60%);
  border-radius: 50%;
}

.tvk-common-page .page-head .eyebrow {
  margin-bottom: 20px;
  position: relative;
}

.tvk-common-page .page-head h1 {
  max-width: 800px;
  margin-bottom: 24px;
  position: relative;
}

.tvk-common-page .last-updated {
  font-size: 14px;
  color: var(--tvk-cp-text-mute);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--tvk-cp-surface);
  border: 1px solid var(--tvk-cp-line);
  border-radius: var(--tvk-cp-r-full);
  position: relative;
}

.tvk-common-page .content {
  padding: 40px 0 100px;
}

.tvk-common-page .content p {
  font-size: 16px;
  color: var(--tvk-cp-text-soft);
  line-height: 1.75;
  margin-bottom: 18px;
}

.tvk-common-page .content p strong {
  color: var(--tvk-cp-ink);
  font-weight: 600;
}

.tvk-common-page .content ul,
.tvk-common-page .content ol {
  margin: 18px 0 24px 28px;
  font-size: 16px;
  color: var(--tvk-cp-text-soft);
}

.tvk-common-page .content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.tvk-common-page .content li strong {
  color: var(--tvk-cp-ink);
  font-weight: 600;
}

.tvk-common-page .content a {
  color: var(--tvk-cp-hot);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.tvk-common-page .content a:hover {
  color: var(--tvk-cp-hot-deep);
}

.tvk-common-page .toc {
  background: var(--tvk-cp-surface);
  border: 1px solid var(--tvk-cp-line);
  border-radius: var(--tvk-cp-r-xl);
  padding: 28px 32px;
  margin-bottom: 48px;
}

.tvk-common-page .toc h3 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tvk-cp-text-mute);
  font-weight: 700;
  margin: 0 0 16px;
}

.tvk-common-page .toc ol {
  margin: 0;
  padding-left: 24px;
  font-size: 14px;
}

.tvk-common-page .toc ol li {
  margin-bottom: 8px;
}

.tvk-common-page .toc a {
  color: var(--tvk-cp-text-soft);
  text-decoration: none;
  border: none;
}

.tvk-common-page .toc a:hover {
  color: var(--tvk-cp-hot);
}

.tvk-common-page .callout {
  background: var(--tvk-cp-bg-warm);
  border-left: 3px solid var(--tvk-cp-hot);
  border-radius: var(--tvk-cp-r-md);
  padding: 20px 24px;
  margin: 28px 0;
}

.tvk-common-page .callout p {
  margin-bottom: 0;
  font-size: 15px;
}

.tvk-common-page .callout strong {
  color: var(--tvk-cp-ink);
}

.tvk-common-page .contact-box {
  background: var(--tvk-cp-ink);
  color: white;
  border-radius: var(--tvk-cp-r-xl);
  padding: 36px 40px;
  margin: 48px 0 0;
}

.tvk-common-page .contact-box h3 {
  color: white;
  margin-top: 0;
  font-size: 22px;
  margin-bottom: 16px;
}

.tvk-common-page .contact-box p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
  font-size: 14.5px;
}

.tvk-common-page .contact-box strong {
  color: white;
}

.tvk-common-page .contact-box a {
  color: var(--tvk-cp-gold);
}

@media (max-width: 640px) {
  .tvk-common-page .wrap-narrow {
    padding: 0 20px;
  }

  .tvk-common-page .page-head {
    padding: 56px 0 32px;
  }

  .tvk-common-page .content {
    padding: 32px 0 64px;
  }

  .tvk-common-page .contact-box {
    padding: 28px;
  }
}
