/* Scoped public styles for Custom Pages — STEP 7 */
.custom-page {
  --cp-ink: #14273d;
  --cp-muted: #5b6f86;
  --cp-navy: #0b1f3a;
  --cp-line: #e4eaf1;
  --cp-paper: #f7f8fa;
  --cp-gold: #d4af37;
  display: block;
  color: var(--cp-ink);
  background: var(--cp-paper);
}

.custom-page__hero {
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.92), rgba(11, 31, 58, 0.78)),
    url("/public/images/logo.png") center / cover no-repeat;
  background-color: var(--cp-navy);
  color: #fff;
  padding: clamp(48px, 10vw, 96px) 20px;
  text-align: center;
}

.custom-page__hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.custom-page__eyebrow {
  margin: 10px 0 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

.custom-page__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.custom-page__body {
  padding: clamp(28px, 5vw, 56px) 16px 72px;
}

.custom-page__content {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--cp-line);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 12px 30px rgba(11, 31, 58, 0.06);
  font-family: Poppins, system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--cp-ink);
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  max-width: min(860px, 100%);
}

.custom-page__content > *:first-child {
  margin-top: 0;
}

.custom-page__content > *:last-child {
  margin-bottom: 0;
}

.custom-page__content h1,
.custom-page__content h2,
.custom-page__content h3,
.custom-page__content h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--cp-navy);
  line-height: 1.3;
  margin: 1.4em 0 0.55em;
}

.custom-page__content h2 { font-size: 1.55rem; }
.custom-page__content h3 { font-size: 1.28rem; }
.custom-page__content h4 { font-size: 1.1rem; }

.custom-page__content p {
  margin: 0 0 1em;
}

.custom-page__content ul,
.custom-page__content ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.custom-page__content li {
  margin: 0.35em 0;
}

.custom-page__content a {
  color: #0a4f8a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.custom-page__content a:hover {
  color: var(--cp-navy);
}

.custom-page__content strong,
.custom-page__content b {
  font-weight: 650;
}

.custom-page__content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em 0;
  border-radius: 12px;
}

.custom-page__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95em;
  display: block;
  overflow-x: auto;
}

.custom-page__content th,
.custom-page__content td {
  border: 1px solid var(--cp-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.custom-page__content blockquote {
  margin: 1em 0;
  padding: 12px 16px;
  border-left: 4px solid var(--cp-gold);
  background: #fbf8ef;
  color: var(--cp-muted);
}

@media (max-width: 760px) {
  .custom-page__content {
    border-radius: 14px;
    padding: 20px 16px;
    font-size: 15.5px;
    line-height: 1.7;
  }

  .custom-page__hero {
    padding: 40px 16px;
  }
}
