/* Grace Church Intranet — additions on top of the Production Hub's styles.css */

/* Contact addresses */
.addr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.addr .time p { margin: 6px 0 0; color: var(--muted); }
.timelist a { text-decoration: underline; text-underline-offset: 3px; }

/* Dropdown: mark the Departments link while on a department page */
.nav__links a.is-section { text-decoration: underline; text-underline-offset: 6px; }

/* Departments menu sits near the right edge, so open it right-aligned */
@media (min-width: 821px) { .nav__item .nav__menu { left: auto; right: -16px; } }

/* Department page: jump links */
.onpage { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 24px; }
.onpage a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.onpage a:hover { border-color: var(--ink); }
.section--tight + .section--tight { border-top: 0; }
.section[id] { scroll-margin-top: 72px; }

/* Link tiles with a description */
.tiles .tile h3 { margin: 0; line-height: 1.3; }
.tiles--notes { grid-template-columns: repeat(2, 1fr); }
.tiles--notes > :last-child:nth-child(3n + 1) { grid-column: auto; }

/* People */
.people-list strong { display: block; font-weight: 600; color: var(--ink); }
.people-list small { display: block; color: var(--muted); font-size: 14px; }
.people-list b { font-family: var(--font-body); font-weight: 500; font-size: 16px; }

/* Media timeline */
.timeline td:last-child { white-space: nowrap; }

/* Embedded stats */
.embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.embed iframe { display: block; width: 1px; min-width: 100%; height: 1600px; border: 0; }

@media (max-width: 820px) {
  .addr { grid-template-columns: 1fr; }
  .hero--plain h1 { font-size: clamp(34px, 10vw, 48px); overflow-wrap: break-word; }
  /* No phone tab bar on this site, so keep the Menu button */
  .nav__toggle { display: block !important; }
  .nav__links { top: 56px; max-height: calc(100vh - 56px); overflow-y: auto; }
  .tiles, .tiles--notes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tiles--notes { grid-template-columns: 1fr; }
  .tiles > :last-child:nth-child(3n + 1) { grid-column: auto; }
  .tile { min-height: 0; padding: 18px 16px; }
  .tile h3 { font-size: 16px; }
  .tile .arrow-link { font-size: 13px; }
  .people-list li { flex-direction: column; gap: 4px; }
  .timelist li { flex-wrap: wrap; gap: 4px 16px; }
  .timelist b { font-size: 17px; overflow-wrap: anywhere; }
  .timeline thead { display: none; }
  .timeline tr { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
  .timeline td { display: block; border: 0; padding: 2px 0; white-space: normal !important; }
  .timeline td:last-child { color: var(--muted); }
  .embed iframe { height: 2200px; }
}
