
/* pillar.css — extras for the four foundation pillars */

/* a11y: visually-hidden skip-link, becomes visible on focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  width: auto;
  height: auto;
  text-decoration: none;
  font-weight: 600;
}

.placeholder {
  display: inline;
  background: #fff5cc;
  border: 1px dashed #b8860b;
  color: #6b4d00;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: 'Source Sans 3', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.92em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.footer-placeholder-note {
  background: #fff5cc;
  border: 1px solid #e2c87a;
  border-radius: 6px;
  padding: var(--space-4);
  margin-top: var(--space-6);
  color: #6b4d00;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.cta-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  margin-left: var(--space-3);
  display: inline-block;
  font-weight: 600;
}
.cta-secondary:hover { background: var(--color-primary); color: white; }

.footer-network-eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.footer-network {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}
.footer-network li { font-size: var(--text-sm); }
.footer-network a { color: var(--color-text); font-weight: 600; }

@media (max-width: 720px) {
  .cta-secondary { display: block; margin-left: 0; margin-top: 12px; text-align: center; }
}

/* Hero with no preview pane: let the left column take full width on desktop. */
.hero-v2 .wrap > .hero-left:only-child {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.hero-v2 .wrap {
  display: block;
}
.hero-v2 .hero-left {
  max-width: 820px;
}

/* ============================================================

/* ============================================================
   PATCH 2026-05-20: topic-list desktop layout fix
   Pillar HTML uses plain <li>body</li> (no .topic-label / .topic-body
   span wrappers). The shared style.css declares
     .topic-list li { display: grid; grid-template-columns: 160px 1fr }
   which dumps the body text into the narrow 160px label column and
   leaves the right column empty. Result: on PC the body text wraps
   into a 150px ribbon with a wide blank strip beside it.

   This patch:
   - For <li> without a .topic-label child, collapse to single column
     so the body uses the full row width.
   - Keep the two-column layout for <li> that DO have label + body.
   ============================================================ */
@media (min-width: 540px) {
  .topic-list li:not(:has(> .topic-label)) {
    display: block;
    grid-template-columns: none;
  }
}
@media (min-width: 1080px) {
  .topic-list li:not(:has(> .topic-label)) {
    display: block;
    grid-template-columns: none;
  }
}
/* Safety net for browsers that do not yet support :has(). */
@supports not (selector(:has(*))) {
  @media (min-width: 540px) {
    .topic-list li {
      display: block;
    }
    .topic-list li:has(.topic-label) {
      display: grid;
      grid-template-columns: 160px 1fr;
      gap: var(--space-5);
      align-items: baseline;
    }
  }
}
