/* Parish palette on top of Bootstrap 5.3. Kept small on purpose: colours, header, footer, a few details. */
:root {
  --pp-navy: #14325A;
  --pp-blue: #1D5FA8;
  --pp-blue-dark: #174A85;
  --pp-sky: #EAF2FB;
  --pp-line: #C9DBEF;

  --bs-body-color: #1E2A3A;
  --bs-body-font-size: 1.0625rem;
  --bs-heading-color: var(--pp-navy);
  --bs-link-color: var(--pp-blue);
  --bs-link-color-rgb: 29, 95, 168;
  --bs-link-hover-color: var(--pp-navy);
  --bs-link-hover-color-rgb: 20, 50, 90;
  --bs-border-color: var(--pp-line);
  --bs-primary: var(--pp-blue);
  --bs-primary-rgb: 29, 95, 168;
}

.btn-primary {
  --bs-btn-bg: var(--pp-blue);
  --bs-btn-border-color: var(--pp-blue);
  --bs-btn-hover-bg: var(--pp-blue-dark);
  --bs-btn-hover-border-color: var(--pp-blue-dark);
  --bs-btn-active-bg: var(--pp-blue-dark);
  --bs-btn-active-border-color: var(--pp-blue-dark);
  --bs-btn-focus-shadow-rgb: 29, 95, 168;
}

/* Keep the footer at the bottom of the window on short pages */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; width: 100%; }

/* Header: blue band on top, thin light-blue rule below */
.site-header { border-top: 4px solid var(--pp-blue); border-bottom: 1px solid var(--pp-line); background: #fff; }
.navbar-brand { color: var(--pp-navy); font-weight: 700; }
.navbar-brand:hover, .navbar-brand:focus { color: var(--pp-blue); }
.site-nav { margin-left: auto; }
.site-nav .nav-link {
  color: var(--pp-navy);
  padding: .5rem .6rem;
  border-bottom: 2px solid transparent;
}
.site-nav .nav-link:hover, .site-nav .nav-link:focus, .site-nav .nav-link.active {
  color: var(--pp-blue);
  border-bottom-color: var(--pp-blue);
}
/* The menu never collapses (no JavaScript): on narrow screens it drops below the name and wraps */
@media (max-width: 767.98px) {
  .site-nav { width: 100%; justify-content: center; margin-left: 0; }
  .site-nav .nav-link { padding: .4rem .5rem; }
}

/* Page title with a short blue accent line */
.page-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: .6rem;
  background: var(--pp-blue);
  border-radius: 2px;
}
main h2 { font-size: 1.5rem; margin-top: 1.75rem; }
main h3 { font-size: 1.2rem; margin-top: 1.4rem; color: var(--pp-navy); }

/* Call-out box (for example "not run by the parish") */
.parish-note { background: var(--pp-sky); border: 1px solid var(--pp-line); }
.parish-note p:last-child { margin-bottom: 0; }

/* Schedule tables (Missas, other parishes): navy header row, soft stripes, easy to scan */
.schedule-table { --bs-table-striped-bg: var(--pp-sky); border-color: var(--pp-line); }
.schedule-table thead th { background: var(--pp-navy); color: #fff; border-color: var(--pp-navy); }
.schedule-table tbody th { color: var(--pp-navy); white-space: nowrap; }
@media (max-width: 575.98px) { .schedule-table tbody th { white-space: normal; } }

main ul li::marker { color: var(--pp-blue); }
.figure-caption { color: #4a5a6e; }

/* Downloads */
.doc-row { background: #fff; }
.doc-name { font-weight: 600; color: var(--pp-navy); }

/* Photo first on phones (the column has order-first order-md-last); keep the small photo at a sharp size, centred */
@media (max-width: 767.98px) {
  .image-first-mobile .figure { display: block; text-align: center; }
  .image-first-mobile .figure-img { max-width: 220px; }
}

/* Festas entries: a rule between entries, none after the last one */
.festa-entry { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--pp-line); }
.festa-entry:last-of-type { border-bottom: 0; }
.festa-entry h2 { margin-top: 0; }
.festa-entry h2 a { text-decoration: none; }

/* Footer: pale-blue band */
.site-footer { background: var(--pp-sky); border-top: 1px solid var(--pp-line); color: var(--pp-navy); }
.site-footer .site-name { color: var(--pp-navy); font-weight: 700; }
