﻿.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);
  }
}
