/**
 * DocuPOW — Shared "simple content page" styles (batch-2 Company + Resources
 * pages: partners, press, changelog, documentation, guides).
 *
 * ONE stylesheet, scoped under .page-simple (BEM), enqueued for all of those
 * templates. Global chrome/container/buttons/links/scroll-reveal come from
 * main.css. Provides the shared primitives these lightweight pages compose:
 * a centered hero, a card grid, an article/entry list (WP_Query loops), a
 * graceful empty state, and a CTA. NO page JS. Tokens only (zero new hexes).
 *
 * Contrast: eyebrow techblue (4.54:1 on white, AA); h1 + section h2 indigo;
 * card/entry titles ink; body var(--text-muted); techblue links on WHITE
 * surfaces (cards + the white canvas), with hover-underline. Card hover-lift
 * via `translate` (disabled under reduced motion).
 */

.page-simple {
  overflow-x: clip;
}

.page-simple__hero,
.page-simple__body,
.page-simple__cta {
  padding-block: var(--space-7);
}

@media (max-width: 767.98px) {
  .page-simple__hero,
  .page-simple__body,
  .page-simple__cta {
    padding-block: var(--space-6);
  }
}

/* ---- hero (centered) ---- */
.page-simple__hero-inner {
  max-width: 768px;
  margin-inline: auto;
  text-align: center;
}

.page-simple__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--techblue);
  margin-bottom: var(--space-3);
}

.page-simple__title {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: var(--space-3);
}

.page-simple__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---- body section (white); optional section heading ---- */
.page-simple__body {
  border-top: 1px solid var(--border);
}

.page-simple__body-head {
  max-width: 768px;
  margin-bottom: var(--space-5);
}

.page-simple__body-head h2,
.page-simple__section-title {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: var(--space-2);
}

.page-simple__body-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---- card grid (partner types, doc gateways) ---- */
.page-simple__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.page-simple__cards > * {
  min-width: 0;
}

@media (max-width: 767.98px) {
  .page-simple__cards {
    grid-template-columns: 1fr;
  }
}

.page-simple__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background-color: var(--gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition:
    translate .18s ease,
    border-color .18s ease;
}

.page-simple__card:hover {
  translate: 0 -6px;
  border-color: var(--techblue);
}

.page-simple__card-icon {
  display: block;
  color: var(--techblue);
}

.page-simple__card-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.page-simple__card-title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
}

/* Card title may wrap a permalink (Guides loop) — inherit ink, techblue on
   interaction as the second signal, matching the entry-title treatment. */
.page-simple__card-title a {
  color: inherit;
}

.page-simple__card-title a:hover,
.page-simple__card-title a:focus-visible {
  color: var(--techblue);
}

.page-simple__card-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Tertiary link inside a card / after content — techblue on the light surface. */
.page-simple__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: auto;
  padding-top: var(--space-1);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--techblue);
}

.page-simple__link:hover,
.page-simple__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-simple__link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---- entry list (WP_Query loops: news, changelog, guides) ---- */
.page-simple__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 820px;
}

.page-simple__entry {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: border-color .18s ease;
}

.page-simple__entry:hover {
  border-color: var(--techblue);
}

.page-simple__entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.page-simple__entry-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: 999px;
  background-color: var(--gray);
  border: 1px solid var(--border);
  color: var(--indigo);
}

.page-simple__entry-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.page-simple__entry-title a {
  color: inherit;
}

.page-simple__entry-title a:hover,
.page-simple__entry-title a:focus-visible {
  color: var(--techblue);
}

.page-simple__entry-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---- empty state (no posts yet) ---- */
.page-simple__empty {
  max-width: 640px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  text-align: center;
}

.page-simple__empty-msg {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---- why-strip (grounded differentiators, plain list) ---- */
.page-simple__why {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.page-simple__why-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink);
}

.page-simple__why-item svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--techblue);
}

/* ---- CTA (gray band, centered) ---- */
.page-simple__cta {
  background-color: var(--gray);
  border-top: 1px solid var(--border);
  text-align: center;
}

.page-simple__cta h2 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--indigo);
  max-width: 768px;
  margin-inline: auto;
  margin-bottom: var(--space-3);
}

.page-simple__cta-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

.page-simple__cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
}

@media (max-width: 639.98px) {
  .page-simple__cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---- contact/meta lines (press) ---- */
.page-simple__meta-lines {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.page-simple__meta-lines a {
  color: var(--techblue);
}

.page-simple__meta-lines a:hover,
.page-simple__meta-lines a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- mobile type scale ---- */
@media (max-width: 767.98px) {
  .page-simple__title {
    font-size: 40px;
  }

  .page-simple__body-head h2,
  .page-simple__section-title,
  .page-simple__cta h2 {
    font-size: 26px;
  }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .page-simple__card,
  .page-simple__card:hover {
    translate: none;
  }
}
