/* Shared editorial layout for internal pages; page-specific styles follow this file. */
body {
  --interior-gutter: clamp(1.25rem, 4vw, 4rem);
}

body .container {
  width: min(1280px, calc(100% - var(--interior-gutter) * 2));
}

main > section {
  padding-block: clamp(3.25rem, 6vw, 6rem);
}

main > section[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

body:not(.page-article) .page-hero {
  padding-block: clamp(3rem, 6vw, 6rem);
}

body:not(.page-article) .page-hero h1 {
  max-width: 25ch;
  font-size: clamp(2.15rem, 4.5vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.page-hero p {
  max-width: 68ch;
}

.page-hero > .container > p:not(.kicker) {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.8;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-split > div > p:not(.kicker) {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.hero-split figure {
  margin: 0;
  min-width: 0;
}

.hero-split img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.hero-split figcaption {
  padding-top: 0.85rem;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.page-actions,
.page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 1.75rem;
}

.page-links {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.page-links a {
  padding-block: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text);
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-brand);
  text-underline-offset: 0.4rem;
}

.section-head {
  max-width: 52rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head h2,
.contact-wrap > div > h2 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.editorial-grid {
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

.editorial-grid > .card,
.editorial-panel {
  padding: 1.75rem 0 0;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  height: auto;
}

.editorial-grid > .card > h2,
.editorial-grid > .card > h3,
.editorial-panel > h2 {
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.editorial-grid .card > p:last-child {
  margin-bottom: 0;
}

.editorial-grid li,
.editorial-panel li {
  margin-bottom: 0.5rem;
}

.editorial-grid li::marker,
.editorial-panel li::marker {
  color: var(--color-brand);
}

.feature-band {
  background: radial-gradient(ellipse at 100% 0%, rgba(57, 214, 200, 0.12), transparent 70%), #101719;
  border-block: 1px solid rgba(57, 214, 200, 0.16);
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.number-steps {
  gap: 0;
  margin: 0;
}

.number-steps li {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  padding: 1.25rem 0;
  gap: 1rem;
}

.number-steps li:first-child {
  border-top: 1px solid var(--color-border);
}

.number-steps li::before {
  content: counter(flow, decimal-leading-zero);
  background: transparent;
  color: var(--color-brand);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 0;
}

.cta-panel {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 0;
  background: #e0e9e4;
  box-shadow: none;
}

.cta-panel h2 {
  color: #102824;
  font-size: clamp(1.65rem, 2.7vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.cta-panel p {
  color: #264841;
}

.cta-panel .btn-primary {
  background: #102824;
  color: #fff;
  box-shadow: none;
}

.cta-panel .btn-secondary {
  background: transparent;
  color: #102824;
  border-color: #547169;
}

.cta-panel .btn:hover,
.cta-panel .btn:focus-visible {
  background: #245148;
  color: #fff;
}

.cta-panel :focus-visible {
  outline-color: #102824;
}

.contact-wrap {
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 0;
}

.contact-wrap > div > p {
  color: var(--color-muted);
}

.contact-form {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: #161d20;
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-size: 1rem;
}

.faq-item {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
}

.faq-item summary {
  padding: 1.35rem 0.25rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-item summary::marker {
  color: var(--color-brand);
}

.faq-item p {
  max-width: 76ch;
  color: var(--color-muted);
  padding: 0 0.25rem 1.25rem;
  margin: 0;
}

body.page-article .page-hero {
  border-bottom: 1px solid var(--color-border);
}

body.page-article .page-hero h1 {
  max-width: 30ch;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -0.035em;
  margin-block: 1rem 1.5rem;
}

body.page-article .article-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.page-article .article-cover {
  max-width: 1120px;
  margin: 0 auto clamp(2rem, 4vw, 4rem);
}

body.page-article .article-content h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

body:is(.page-privacy-policy, .page-cookie-policy) main .container {
  width: min(58rem, calc(100% - var(--interior-gutter) * 2));
}

body:is(.page-privacy-policy, .page-cookie-policy) main .grid {
  gap: 0;
}

body:is(.page-privacy-policy, .page-cookie-policy) .card {
  height: auto;
  padding: 1.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:is(.page-privacy-policy, .page-cookie-policy) .card h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

@media (max-width: 980px) {
  .hero-split,
  .method-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-split figure {
    max-width: 46rem;
  }
}

@media (max-width: 760px) {
  .page-actions > .btn {
    width: 100%;
  }

  .page-links {
    gap: 0.4rem 1.4rem;
  }

  .page-links a {
    padding-block: 0.65rem;
  }

  .editorial-grid > .card,
  .editorial-panel {
    padding-top: 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
  }
}
