/* =========================================================
   TDM Network Content Pages
   Used by /guides/ and article pages
   ========================================================= */

.content-page {
  background: #f7f9fc;
  color: #122033;
}

.content-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.content-hero {
  padding: 72px 0 38px;
  background:
    radial-gradient(circle at top left, rgba(39, 128, 227, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-bottom: 1px solid #e6edf5;
}

.content-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #2776d2;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #0f1f33;
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.35rem, 4vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.content-hero p {
  max-width: 740px;
  margin: 18px 0 0;
  color: #5c6b7d;
  font-size: 1.08rem;
  line-height: 1.7;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.content-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.94rem;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.content-btn:hover {
  transform: translateY(-1px);
}

.content-btn-primary {
  color: #ffffff;
  background: #1172d8;
  box-shadow: 0 12px 24px rgba(17, 114, 216, 0.22);
}

.content-btn-primary:hover {
  background: #0c63bf;
}

.content-btn-secondary {
  color: #122033;
  background: #ffffff;
  border: 1px solid #d9e3ef;
}

.content-btn-secondary:hover {
  border-color: #b7c7da;
  box-shadow: 0 10px 22px rgba(15, 31, 51, 0.08);
}

.content-main {
  padding: 42px 0 72px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 235px;
  padding: 24px;
  color: inherit;
  background: #ffffff;
  border: 1px solid #e2e9f2;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(15, 31, 51, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: #c7d7ea;
  box-shadow: 0 20px 44px rgba(15, 31, 51, 0.1);
}

.guide-card-kicker {
  margin-bottom: 12px;
  color: #2776d2;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-card h2 {
  margin: 0;
  color: #0f1f33;
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.35rem;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.guide-card p {
  margin: 12px 0 0;
  color: #637184;
  font-size: 0.96rem;
  line-height: 1.6;
}

.guide-card-link {
  margin-top: auto;
  padding-top: 18px;
  color: #1172d8;
  font-weight: 900;
  font-size: 0.92rem;
}

.content-section-title {
  margin: 0 0 18px;
  color: #0f1f33;
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.04em;
}

.content-section-copy {
  max-width: 760px;
  margin: -4px 0 26px;
  color: #637184;
  font-size: 1rem;
  line-height: 1.7;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  align-items: start;
}

.article-card {
  padding: 34px;
  background: #ffffff;
  border: 1px solid #e2e9f2;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(15, 31, 51, 0.06);
}

.article-card h2 {
  margin: 34px 0 12px;
  color: #0f1f33;
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.65rem;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.article-card h2:first-child {
  margin-top: 0;
}

.article-card p {
  margin: 0 0 16px;
  color: #354357;
  font-size: 1.02rem;
  line-height: 1.78;
}

.article-card ul,
.article-card ol {
  margin: 12px 0 22px;
  padding-left: 22px;
  color: #354357;
  line-height: 1.72;
}

.article-card li {
  margin-bottom: 8px;
}

.article-callout {
  margin: 28px 0;
  padding: 22px;
  background: #eef6ff;
  border: 1px solid #d8e9fb;
  border-radius: 18px;
}

.article-callout strong {
  display: block;
  margin-bottom: 6px;
  color: #0f1f33;
  font-size: 1.02rem;
}

.article-callout p {
  margin: 0;
  color: #405169;
}

.article-affiliate-disclosure {
  margin-top: 0;
  margin-bottom: 30px;
  background: #f8fbff;
  border-color: #dce9f8;
}

.article-affiliate-disclosure strong {
  color: #0f1f33;
}

.article-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.sidebar-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e2e9f2;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(15, 31, 51, 0.06);
}

.sidebar-card h2 {
  margin: 0 0 10px;
  color: #0f1f33;
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.sidebar-card p {
  margin: 0 0 14px;
  color: #637184;
  font-size: 0.94rem;
  line-height: 1.6;
}

.sidebar-link-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-link-list a {
  color: #1172d8;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.sidebar-link-list a:hover {
  text-decoration: underline;
}

.article-checklist {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.article-checklist li {
  position: relative;
  padding-left: 30px;
}

.article-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #ffffff;
  background: #1172d8;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.content-bottom-cta {
  margin-top: 34px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(17, 114, 216, 0.18), transparent 36%),
    linear-gradient(135deg, #0f1f33 0%, #152b46 100%);
  border-radius: 22px;
  color: #ffffff;
}

.content-bottom-cta h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.content-bottom-cta p {
  max-width: 670px;
  margin: 10px 0 20px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.content-bottom-cta .content-btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.content-bottom-cta .content-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 960px) {
  .guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .content-shell {
    width: min(100% - 28px, 1120px);
  }

  .content-hero {
    padding: 46px 0 28px;
  }

  .content-hero h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .content-hero p {
    font-size: 1rem;
  }

  .content-main {
    padding: 28px 0 54px;
  }

  .guides-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: auto;
    padding: 22px;
  }

  .article-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .article-card h2 {
    font-size: 1.42rem;
  }

  .content-actions {
    display: grid;
  }

  .content-btn {
    width: 100%;
  }

  .content-bottom-cta {
    padding: 24px 20px;
  }
}

.article-card a {
  color: #0f67c8;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-card a:hover {
  color: #084f9e;
  text-decoration-thickness: 2px;
}

.article-card a:focus-visible {
  outline: 2px solid rgba(17, 114, 216, 0.28);
  outline-offset: 3px;
  border-radius: 3px;
}

.content-bottom-cta .content-btn {
  text-decoration: none;
  font-weight: 800;
  box-shadow: none;
}

.content-bottom-cta .content-btn-primary {
  color: #ffffff;
  background: #1172d8;
}

.content-bottom-cta .content-btn-primary:hover {
  color: #ffffff;
  background: #0c63bf;
  text-decoration: none;
}

.content-bottom-cta .content-btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
}

.content-bottom-cta .content-btn-secondary:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.46);
  text-decoration: none;
}