/* ================================================
   TinyRipple - Article, Blog & Hub Styles
   Extends /css/style.css (loaded via BaseLayout)
   ================================================ */

/* ── Article Page Shell ──────────────────────── */
.article-page { padding-top: 68px; }

/* ── Breadcrumb ──────────────────────────────── */
.article-breadcrumb {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.article-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--grey);
}
.article-breadcrumb a { color: var(--teal-dark); transition: color .15s; }
.article-breadcrumb a:hover { color: var(--teal); text-decoration: underline; }

/* ── Article Header ──────────────────────────── */
.article-header {
  background: linear-gradient(160deg, var(--navy), #1a0840);
  padding: 64px 0 52px;
}
.article-header .label { color: var(--teal); margin-bottom: 12px; }
.article-header h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 760px;
}
.article-meta {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 20px;
}
.article-meta time { color: rgba(255,255,255,.45); }
.article-disclosure {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 14px;
  max-width: 640px;
  font-style: italic;
  line-height: 1.6;
}

/* ── Article Body Layout ─────────────────────── */
.article-body { padding: 64px 0 80px; background: var(--white); }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

/* ── Prose Content ───────────────────────────── */
.article-prose { min-width: 0; }

.article-prose h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--navy);
  margin: 48px 0 14px;
  line-height: 1.25;
}
.article-prose h1:first-child { margin-top: 0; }

.article-prose h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin: 44px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  line-height: 1.3;
}

.article-prose h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 28px 0 10px;
}

.article-prose p {
  font-size: 1rem;
  color: var(--dark-grey);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-prose ul,
.article-prose ol { margin: 0 0 18px 24px; }

.article-prose li {
  font-size: 1rem;
  color: var(--dark-grey);
  line-height: 1.75;
  margin-bottom: 6px;
}

.article-prose strong { color: var(--black); font-weight: 600; }
.article-prose em { font-style: italic; }

.article-prose a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-prose a:hover { color: var(--teal); }

.article-prose blockquote {
  border-left: 3px solid var(--teal);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--teal-xlight);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-prose blockquote p {
  color: var(--teal-dark);
  font-weight: 500;
  margin: 0;
  font-style: italic;
}

.article-prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── Comparison Tables ───────────────────────── */
.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: .88rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-prose thead th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.article-prose tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--dark-grey);
  vertical-align: top;
  line-height: 1.6;
}
.article-prose tbody tr:nth-child(odd) td { background: var(--off-white); }
.article-prose tbody tr:hover td { background: var(--teal-xlight); }

/* ── Sticky Sidebar ──────────────────────────── */
.article-sidebar { position: sticky; top: 88px; }

.article-cta-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.article-cta-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 16px;
}
.article-cta-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.article-cta-card p {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  line-height: 1.65;
  margin: 0;
}
.article-cta-features {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-cta-features li {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin: 0;
}

/* ── Bottom CTA ──────────────────────────────── */
.article-bottom-cta {
  background: linear-gradient(135deg, var(--teal-xlight), rgba(20,184,166,.03));
  border-top: 1px solid var(--teal-light);
  padding: 80px 24px;
  text-align: center;
}
.article-bottom-cta h2 { color: var(--navy); margin-bottom: 16px; }
.article-bottom-cta p {
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

/* ── Hub Pages (/compare, /blog) ─────────────── */
.hub-page { padding-top: 68px; }

.hub-header {
  background: linear-gradient(160deg, var(--navy), #1a0840);
  padding: 80px 0 64px;
}
.hub-header .label { margin-bottom: 12px; }
.hub-header h1 { color: var(--white); margin-bottom: 12px; }
.hub-header .section-sub {
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
  max-width: 560px;
}

.hub-grid-section { padding: 64px 0 96px; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.hub-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--teal-light);
}
.hub-card-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.hub-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.hub-card-desc {
  font-size: .88rem;
  color: var(--grey);
  margin-bottom: 16px;
  line-height: 1.65;
}
.hub-card-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--teal-dark);
}

/* ── Landing Pages (/for/*) ──────────────────── */
.landing-page { padding-top: 68px; }

.landing-hero {
  background: linear-gradient(160deg, var(--navy), #1a0840);
  padding: 96px 24px 80px;
  text-align: center;
}
.landing-hero .label { margin-bottom: 16px; }
.landing-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.landing-hero p {
  color: rgba(255,255,255,.65);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 36px;
}
.landing-hero .hero-ctas { justify-content: center; }

.landing-why {
  padding: var(--section-pad);
  background: var(--white);
}
.landing-features {
  padding: var(--section-pad);
  background: var(--off-white);
}
.landing-cta-section {
  background: var(--navy);
  padding: 80px 24px;
  text-align: center;
}
.landing-cta-section h2 { color: var(--white); margin-bottom: 16px; }
.landing-cta-section p { color: rgba(255,255,255,.65); max-width: 480px; margin: 0 auto 32px; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .article-header { padding: 48px 0 40px; }
  .article-body { padding: 40px 0 56px; }
  .article-bottom-cta { padding: 56px 24px; }
  .hub-grid { grid-template-columns: 1fr; }
  .landing-hero { padding: 72px 24px 60px; }
}
