@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Open+Sans:wght@400;600;700;800&display=swap');

/* Campus, day and time, with room for every selected option on tablets and phones. */
@media screen {
  .searchbox .filter-grid { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(0,1.2fr); gap: 12px; align-items: end; }
  .searchbox .filter-grid > .field { min-width: 0; grid-column: auto; }
  .searchbox .filter-grid input, .searchbox .filter-grid select { min-width: 0; }
  @media (min-width: 761px) and (max-width: 1100px) {
    .searchbox .filter-grid input, .searchbox .filter-grid select { font-size: 13px; padding-right: 8px; }
    .searchbox .filter-grid select { padding-left: 8px; }
    .searchbox .filter-grid label { font-size: 12px; }
  }
  @media (max-width: 760px) {
    .searchbox .filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .searchbox .filter-grid > .field:first-child { grid-column: 1/-1; }
  }
  @media (max-width: 480px) {
    .searchbox .filter-grid { grid-template-columns: minmax(0,1fr); }
    .searchbox .filter-grid > .field { grid-column: 1/-1; }
  }
}

/* Typography and layout only. All live directory, account and map behavior is retained. */
@media screen {
  :root { font-family: 'Lato', Arial, sans-serif; --radius: 2px; }
  h1, h2, h3, .intro-note strong, .stat strong {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 800; letter-spacing: -.04em; line-height: 1.13;
  }
  .eyebrow { font-weight: 700; letter-spacing: .18em; }
  .header-inner { padding-top: 25px; padding-bottom: 25px; }
  .brand-name { font-family: 'Open Sans', Arial, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; }
  .brand-name small { font-family: 'Lato', Arial, sans-serif; font-size: .6rem; letter-spacing: .18em; }
  .brand-logo { border-radius: 2px; }
  .nav a { font-size: .85rem; font-weight: 700; }
  .btn { border-radius: 2px; font-weight: 700; }
  input, select, textarea { border-radius: 2px; }

  .intro {
    padding: 54px 0 43px;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px; align-items: end;
  }
  .intro > div { min-width: 0; }
  .intro h1 { font-size: clamp(43px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -.045em; text-transform: uppercase; margin-bottom: 26px; }
  .intro > div > p:last-child { font-size: 17px; max-width: 620px; }
  .intro-note {
    display: block; width: 300px; max-width: 100%; border-left: 0;
    border-top: 4px solid var(--accent); padding: 20px 0 0; margin-bottom: 4px;
    justify-self: end;
  }
  .intro-note strong {
    font-size: 25px; line-height: 1.15; letter-spacing: -.035em;
    white-space: nowrap; margin-bottom: 14px;
  }
  .intro-note p { font-size: 14px; line-height: 1.65; }
  .searchbox { border: 0; border-radius: 0; padding: 29px 26px 20px; box-shadow: none; border-bottom: 1px solid var(--line); }
  .field label { font-size: .82rem; }
  .filter-footer { margin-top: 14px; }
  .group-map-panel { padding: 30px 26px 24px; border: 0; border-radius: 0; margin-top: 22px; }
  .map-heading { margin-bottom: 18px; }
  .map-heading h2 { font-size: 32px; }
  .map-heading .eyebrow { font-size: 11px; margin-bottom: 12px; }
  .groups-map { border-radius: 0; }
  .postcode-controls input { border-radius: 2px; }
  .map-help, .map-attribution, .map-status, .map-footer { font-size: 13px; }
  .results-head { padding: 34px 0 25px; }
  .results-head h2 { font-size: 30px; }
  .grid { gap: 22px; }
  .card { border: 0; border-top: 3px solid var(--teal); border-radius: 0; }
  .card-top { padding: 24px 24px 0; }
  .badge { border-radius: 0; }
  .card-body { padding-top: 21px; }
  .card h3 { font-size: 24px; line-height: 1.15; margin-bottom: 15px; }
  .card .description { display: block; -webkit-line-clamp: unset; overflow: visible; font-size: 14px; margin-bottom: 21px; }
  .card-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .card-footer button { display: flex; justify-content: space-between; align-items: center; width: 100%; }
  .leader-banner { background: var(--teal); border-radius: 0; padding: 42px 36px; margin-bottom: 48px; }
  .leader-banner h2 { font-size: 34px; text-transform: uppercase; line-height: 1.08; max-width: 720px; margin-bottom: 17px; }
  .leader-banner p { color: #fff; max-width: 570px; }
  .auth-wrap { border-radius: 2px; }
  .auth-aside h1 { text-transform: uppercase; line-height: 1.08; }
  .auth-main h2 { font-size: 32px; }
  .page-head h1 { text-transform: uppercase; }
  .panel, .stat { border-radius: 2px; }
  .footer-brand .brand-logo { border-radius: 2px; }

  @media (max-width: 1000px) {
    .intro { grid-template-columns: minmax(0, 1fr) 265px; gap: 26px; }
    .intro h1 { font-size: 47px; }
    .intro-note { width: 265px; }
    .intro-note strong { font-size: 23px; }
    .header-inner { gap: 22px; }
    .nav { gap: 17px; }
    .nav a { font-size: .8rem; }
    .brand-name { font-size: 1rem; }
  }
  @media (max-width: 900px) {
    .intro { grid-template-columns: minmax(0, 1fr); gap: 27px; }
    .intro h1 { font-size: clamp(42px, 7vw, 60px); }
    .intro-note { width: 100%; max-width: none; justify-self: stretch; }
    .intro-note p { max-width: 600px; }
    .intro-note strong { font-size: 25px; }
    .leader-banner h2 { font-size: 29px; }
  }
  @media (max-width: 680px) {
    .header-inner { padding: 20px; gap: 17px; }
    .brand-logo { border-radius: 2px; }
    .nav a { font-size: .85rem; }
    .intro { display: grid; padding: 33px 0 30px; }
    .intro h1 { max-width: none; font-size: clamp(34px, 8.7vw, 51px); line-height: 1.05; }
    .intro > div > p:last-child { font-size: 16px; }
    .intro-note { display: block; padding-top: 18px; }
    .intro-note strong { font-size: clamp(20px, 5.7vw, 25px); white-space: nowrap; }
    .intro-note p { font-size: 14px; }
    .searchbox { padding: 24px 18px 18px; }
    .field label { font-size: 13px; }
    .group-map-panel { padding: 26px 18px 22px; }
    .map-heading h2 { font-size: 29px; }
    .results-head { flex-wrap: wrap; padding: 30px 0 22px; gap: 9px; }
    .results-head h2 { font-size: 28px; }
    .card h3 { font-size: 26px; }
    .card-footer { flex-direction: row; align-items: center; }
    .card-footer button { width: auto; gap: 14px; }
    .leader-banner { padding: 32px 24px; gap: 24px; }
    .leader-banner h2 { font-size: 28px; }
    .leader-banner p { font-size: 15px; }
  }
}

/* Match the church site's uppercase navigation and spacious section hierarchy. */
@media screen {
  .header-inner { min-height: 110px; flex-wrap: wrap; }
  .nav { flex-wrap: wrap; margin-left: auto; gap: 26px; }
  .nav a, .tabs button {
    font-family: 'Lato', Arial, sans-serif;
    text-transform: uppercase; letter-spacing: .055em;
    font-size: 15px; font-weight: 400;
  }
  .nav a.active::after { bottom: -4px; height: 1px; }
  .btn:not(.small) { text-transform: uppercase; letter-spacing: .045em; font-size: 14px; }
  .nav .btn { font-weight: 700; }
  .intro { padding-top: 70px; padding-bottom: 56px; }
  .intro h1 { font-size: clamp(44px, 5.35vw, 76px); font-weight: 800; line-height: 1.02; }
  .intro .eyebrow { margin-bottom: 25px; }
  .intro-note strong { white-space: nowrap; }
  .searchbox { background: transparent; padding: 28px 0; }
  .group-map-panel { padding: 42px 0 32px; background: transparent; border-bottom: 1px solid var(--line); }
  .map-heading h2, .results-head h2 { text-transform: uppercase; font-size: 33px; line-height: 1.12; }
  .results-head { padding-top: 46px; padding-bottom: 28px; }
  .leader-banner { padding: 52px 40px; margin-top: 48px; }
  .leader-banner h2 { font-size: 38px; }
  .auth-aside { padding-top: 58px; padding-bottom: 58px; }
  .auth-main h2 { text-transform: uppercase; }
  @media (max-width: 1100px) {
    .nav { gap: 20px; }
    .nav a { font-size: 13px; }
  }
  @media (max-width: 900px) {
    .intro { padding-top: 48px; padding-bottom: 40px; }
    .intro h1 { font-size: clamp(44px, 8vw, 68px); }
    .nav { margin-left: 0; }
  }
  @media (max-width: 680px) {
    .header-inner { min-height: 0; }
    .nav { gap: 12px 16px; }
    .nav a, .nav .btn { font-size: 12px; letter-spacing: .035em; }
    .intro { padding-top: 38px; padding-bottom: 34px; }
    .intro h1 { font-size: clamp(34px, 9.3vw, 54px); }
    .intro-note strong { font-size: clamp(20px, 5.7vw, 25px); }
    .group-map-panel { padding-top: 32px; padding-bottom: 28px; }
    .map-heading h2, .results-head h2 { font-size: clamp(24px, 6.5vw, 30px); }
    .leader-banner { padding: 34px 24px; margin-top: 36px; }
    .leader-banner h2 { font-size: 29px; }
    .auth-aside { padding: 32px 24px; }
  }
}

.preview-notice{padding:10px 24px;text-align:center;background:#eef3f8;color:#35536a;font-size:.85rem;border-bottom:1px solid #dce5e9}
