/* site.css — chrome that only the static info site uses (section hub, contact cards,
   footer). Loaded AFTER css/olv.css, which stays a plain copy of
   ../../style-guide/olv.css. Patterns the apps also need belong in the style guide,
   not here. */

/* ------------------------------------------------------------- Section hub */

/* Whole-card link: one big tap target per section on the home page. */
.section-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
  color: var(--color-text);
}

a.section-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.section-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.section-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* A section that has no page yet — shown, but visibly not a link. */
.section-card.is-soon {
  opacity: 0.7;
}

.section-card.is-soon h3 {
  color: var(--color-muted);
}

/* --------------------------------------------------------- Anchor chip nav */

/* Jump links for a long single page. Always wraps — a sideways-scrolling row hides
   half the groups behind a scrollbar on a phone, which is exactly where the jump
   links matter most. The chips shrink instead so all six fit the narrow width. */
/* Deliberately NOT position:sticky. The bar is one row on a wide screen but wraps
   to three on a phone, and no CSS can feed that varying height into the anchor
   offset below — a fixed scroll-margin either hid the heading behind the bar or
   left a gap. Static bar, exact landing, and it frees a third of a phone screen. */
.chip-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-3) 0;
}

/* Sized as a touch target rather than as a text link — 44px is the smallest
   comfortable tap area on a phone, so the chip carries a min-height. */
.chip-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip-nav a:hover {
  border-color: var(--color-primary);
  text-decoration: none;
}

@media (max-width: 700px) {
  /* Keep the plain wrapping flex row here too: each chip stays as wide as its own
     label and every resulting row is centred on its own. Stretching them to a
     column grid made a lone chip span the whole screen. */
  .chip-nav {
    margin-bottom: var(--space-4);
    padding: var(--space-2) 0;
  }
}

/* -------------------------------------------------------------- People list */

.contact-group {
  margin-bottom: var(--space-6);
  /* Nothing overlaps the top of the page, so this is breathing room above the
     heading after a jump, not a clearance. */
  scroll-margin-top: var(--space-4);
}

.contact-group > h3 {
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-border);
  font-size: 1.2rem;
}

.contact-group > .group-note {
  margin: calc(-1 * var(--space-2)) 0 var(--space-4);
  color: var(--color-muted);
  font-size: 0.95rem;
}

.person-grid {
  display: grid;
  /* Wide enough that the longest e-mail address in the list still fits on one
     line — narrower columns break it mid-word, which reads badly. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 0 var(--space-6);
}

/* No card: ~50 boxed entries read as a wall. Entries are separated by a hairline
   and sit on the page background instead. The grid keeps the rules aligned across
   a row. */
.person {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

/* Place or parish the entry belongs to, above the name. */
.person .place {
  margin-bottom: var(--space-1);
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.person .name {
  font-weight: 700;
}

.person .role {
  margin-top: var(--space-1);
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* Which role(s) a voorganger takes on — the two rosters were merged into one. */
.person .role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.person .role-badges .badge {
  font-size: 0.72rem;
}

.person .contact-links {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-2);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Long e-mail addresses must not push the card wider than its column. break-word,
   not anywhere: only break the address when it genuinely does not fit. */
.person .contact-links a {
  overflow-wrap: break-word;
}

.private-contact {
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.private-contact .contact-links {
  margin: 0;
}

.private-contact .btn {
  min-height: 2.25rem;
  white-space: normal;
  text-align: center;
}

.person .none {
  margin-top: var(--space-1);
  color: var(--color-muted);
  font-size: 0.875rem;
  font-style: italic;
}

/* ------------------------------------------------------------------ Footer */

/* margin-top:auto pins it to the bottom of the .app-shell flex column. */
.site-footer {
  margin-top: auto;
  padding: var(--space-6) var(--space-4);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-3);
}

.site-footer-apps a {
  color: var(--color-muted);
}

.site-footer p {
  margin: 0;
}
