﻿.hp-page-shell,
.hp-article-shell {
  color: var(--theme-palette-color-3, #163126);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-wrap: pretty;
}

.hp-page-shell .alignwide,
.hp-article-shell .alignwide {
  width: min(100% - 2rem, var(--theme-container-width, 1180px));
}

.hp-page-shell .alignfull,
.hp-article-shell .alignfull {
  margin-top: 0;
  margin-bottom: 0;
}

.hp-page-shell .wp-block-heading,
.hp-article-shell .wp-block-heading {
  color: var(--theme-palette-color-3, #163126);
}

.hp-page-title {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.15rem, 4vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

.hp-page-hero {
  padding-top: clamp(3.25rem, 6vw, 5rem);
  padding-right: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: 2rem;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  background: radial-gradient(circle at top right, rgba(31, 122, 77, 0.1), transparent 32%), linear-gradient(180deg, rgba(247, 252, 248, 0.96) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.hp-page-shell .hp-section,
.hp-article-shell .hp-section {
  padding-right: clamp(1rem, 2vw, 1.5rem);
  padding-left: clamp(1rem, 2vw, 1.5rem);
}

.hp-page-hero-grid,
.hp-page-trust-grid,
.hp-feature-split,
.hp-review-summary-grid {
  gap: 1rem;
}

.hp-page-hero-card,
.hp-page-note,
.hp-tool-placeholder,
.hp-article-intro,
.hp-article-meta,
.hp-comparison-table {
  padding: 1.25rem 1.35rem;
  background: #ffffff;
  border: 1px solid rgba(202, 223, 209, 0.9);
  border-radius: 1.25rem;
  box-shadow: 0 10px 24px rgba(16, 50, 33, 0.08);
}

.hp-page-shell .hp-section-heading p,
.hp-article-shell .hp-section-heading p,
.hp-page-note p,
.hp-tool-placeholder p,
.hp-article-byline,
.hp-meta-value,
.hp-prose p,
.hp-prose li,
.hp-comparison-table td {
  color: var(--theme-palette-color-4, #547062);
}

.hp-article-content {
  width: min(100% - 2rem, 760px);
}

.hp-article-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin-top: 1.35rem;
  background: #f8fcf9;
}

.hp-meta-item {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.hp-meta-label {
  color: #24543d;
  font-weight: 700;
}

.hp-meta-label::after {
  content: ":";
}

.hp-article-intro {
  margin-top: 1rem;
  background: rgba(223, 244, 231, 0.48);
}

.hp-prose > * + * {
  margin-block-start: 1rem;
}

.hp-prose h2 {
  margin-top: 2rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.hp-tool-placeholder,
.hp-review-note,
.hp-legal-note {
  background: linear-gradient(135deg, rgba(234, 247, 238, 0.9) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.hp-tool-placeholder {
  border-style: dashed;
}

.hp-comparison-table {
  overflow: hidden;
}

.hp-comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.hp-comparison-table th,
.hp-comparison-table td {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(202, 223, 209, 0.9);
  text-align: left;
  vertical-align: top;
}

.hp-comparison-table th {
  color: var(--theme-palette-color-3, #163126);
  background: rgba(223, 244, 231, 0.55);
  font-weight: 700;
}

body.hp-foundation-shell-active .hero-section[data-type="type-1"],
body.hp-foundation-shell-active .entry-header {
  display: none;
}

body.hp-foundation-shell-active article,
body.hp-foundation-shell-active .entry-content {
  background: transparent;
}

@media (max-width: 781px) {
  .hp-page-shell .alignwide,
  .hp-article-shell .alignwide,
  .hp-article-content {
    width: min(100% - 1.5rem, var(--theme-container-width, 1180px));
  }

  .hp-page-shell .hp-section,
  .hp-article-shell .hp-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hp-article-meta {
    grid-template-columns: 1fr;
  }

  .hp-page-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* Shared generated-homepage concept alignment for all page shells */
.hp-page-shell,
.hp-article-shell {
  color: var(--hp-ink, #103f37);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hp-page-shell .alignwide,
.hp-article-shell .alignwide {
  width: min(100% - 2rem, var(--theme-container-width, 1180px));
}

.hp-page-title,
.hp-article-shell .hp-page-title,
.hp-article-shell h1,
.hp-page-shell h1,
.hp-page-shell h2,
.hp-article-shell h2 {
  color: var(--hp-ink, #103f37);
  font-family: "Lora", Georgia, serif;
  letter-spacing: 0;
}

.hp-page-title {
  max-width: 12ch;
  font-size: clamp(3rem, 5.4vw, 5rem);
  line-height: 0.98;
}

.hp-page-hero {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 5vw, 4.25rem);
  background:
    radial-gradient(circle at 85% 18%, rgba(246, 223, 148, 0.28), transparent 24rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(242, 250, 246, 0.88));
}

.hp-page-hero-grid {
  gap: clamp(1.6rem, 4vw, 3.5rem);
}

.hp-page-hero-card,
.hp-page-note,
.hp-tool-placeholder,
.hp-article-intro,
.hp-article-meta,
.hp-comparison-table {
  border: 1px solid var(--hp-line, #dce8e2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--hp-soft-shadow, 0 10px 24px rgba(16, 63, 55, 0.08));
}

.hp-page-hero-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 250, 246, 0.9));
}

.hp-page-shell .hp-section,
.hp-article-shell .hp-section {
  padding-top: clamp(4.25rem, 7vw, 6rem);
  padding-bottom: clamp(4.25rem, 7vw, 6rem);
}

.hp-page-shell .hp-section-heading {
  max-width: 740px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.hp-page-shell .hp-section-heading h2,
.hp-article-shell .hp-section-heading h2 {
  font-size: clamp(2.35rem, 4vw, 3.75rem);
  line-height: 1;
}

.hp-page-shell .hp-section-heading p,
.hp-article-shell .hp-section-heading p,
.hp-page-note p,
.hp-tool-placeholder p,
.hp-article-byline,
.hp-meta-value,
.hp-prose p,
.hp-prose li,
.hp-comparison-table td {
  color: var(--hp-muted, #5f746e);
}

.hp-tool-placeholder,
.hp-review-note,
.hp-legal-note {
  background: linear-gradient(135deg, rgba(232, 243, 237, 0.94), rgba(255, 255, 255, 0.95));
}

.hp-tool-placeholder {
  border-style: solid;
}

.hp-tool-placeholder::before {
  content: "Example result";
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(246, 223, 148, 0.48);
  color: var(--hp-green, #006b52);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hp-article-content {
  width: min(100% - 2rem, 820px);
}

.hp-prose > :where(p, ul, ol, blockquote) {
  font-size: 1.05rem;
  line-height: 1.78;
}

.hp-prose h2 {
  color: var(--hp-ink, #103f37);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.08;
}

@media (max-width: 781px) {
  .hp-page-shell .hp-section-heading {
    text-align: left;
  }

  .hp-page-title {
    max-width: 100%;
    font-size: clamp(2.45rem, 12vw, 3.55rem);
  }

  .hp-page-shell .hp-section,
  .hp-article-shell .hp-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}
