/* ============================================================
   OurSaintFrancis.org — Public Theme
   Franciscan aesthetic: warm earth, clean, reverent, welcoming
   ============================================================ */

:root {
  --brown:      #6b4226;
  --brown-dark: #4a2c16;
  --brown-lt:   #c49a6c;
  --cream:      #fdf6ec;
  --sand:       #e8d9c4;
  --sand-dk:    #cdb99a;
  --slate:      #4a4a4a;
  --slate-lt:   #767676;
  --white:      #ffffff;
  --max-w:      860px;
  --radius:     6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--slate);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--brown); }
a:hover { color: var(--brown-dark); }

/* ---- Top banner ---- */
.site-topbar {
  background: var(--brown-dark);
  color: #d4bfa3;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  text-align: center;
  padding: 6px 20px;
  letter-spacing: .03em;
}

/* ---- Header / Masthead ---- */
.site-header {
  background: var(--cream);
  position: relative;
}

.site-header-link {
  display: block;
  line-height: 0;
}

.site-header-banner {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Navigation ---- */
.site-nav {
  background: var(--brown);
  position: relative;
  z-index: 200;
}

.site-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* Plain nav links */
.site-nav > .site-nav-inner > a {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  color: #e8d5bb;
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .02em;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.site-nav > .site-nav-inner > a:hover,
.site-nav > .site-nav-inner > a.current {
  background: var(--brown-dark);
  color: var(--white);
}

/* Dropdown parent item */
.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-item.current > .nav-parent-link,
.nav-item.current > .nav-dropdown-btn {
  background: var(--brown-dark);
  color: var(--white);
}

.nav-parent-link {
  display: flex;
  align-items: center;
  padding: 12px 6px 12px 18px;
  color: #e8d5bb;
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .02em;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.nav-parent-link:hover {
  background: var(--brown-dark);
  color: var(--white);
}

/* The ▾ toggle button */
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  padding: 12px 12px 12px 4px;
  background: none;
  border: none;
  color: #e8d5bb;
  font-size: 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1;
}

.nav-dropdown-btn:hover {
  background: var(--brown-dark);
  color: var(--white);
}

/* Dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--brown-dark);
  border-top: 2px solid var(--brown-lt);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  z-index: 300;
}

.nav-dropdown a {
  display: block;
  padding: 11px 20px;
  color: #d4bfa3;
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .01em;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .12s, color .12s;
  white-space: nowrap;
}

.nav-dropdown a:last-child { border-bottom: none; }

.nav-dropdown a:hover,
.nav-dropdown a.current {
  background: var(--brown);
  color: var(--white);
}

/* Show dropdown on hover (desktop) */
@media (min-width: 769px) {
  .nav-item:hover .nav-dropdown { display: block; }
  .nav-dropdown-btn             { display: none; }
  .nav-parent-link              { padding-right: 14px; }
  .nav-parent-link::after {
    content: ' ▾';
    font-size: 9px;
    opacity: .75;
    margin-left: 4px;
  }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(74, 44, 22, 0.75);
  border: none;
  color: #e8d5bb;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius);
  z-index: 10;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 60%, var(--brown-lt) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '✠';
  position: absolute;
  font-size: 320px;
  top: -60px; right: -40px;
  opacity: .04;
  color: var(--white);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: normal;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  opacity: .9;
  max-width: 600px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: inline-block;
  background: var(--brown-lt);
  color: var(--brown-dark);
  padding: 13px 34px;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: filter .15s;
}

.hero-cta:hover { filter: brightness(.92); color: var(--brown-dark); }

/* ---- Mass times banner ---- */
.mass-times-bar {
  background: var(--brown-lt);
  color: var(--brown-dark);
  text-align: center;
  padding: 14px 24px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
}

/* ---- Page layout ---- */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ---- Card grid (home) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.site-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.site-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.site-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.site-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.site-card-title {
  font-size: 18px;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.site-card-text {
  font-size: 15px;
  color: var(--slate-lt);
  flex: 1;
}

.site-card-link {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
}

/* ---- Blog listing ---- */
.blog-grid {
  display: grid;
  gap: 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  display: grid;
  grid-template-columns: 220px 1fr;
}

.post-card img {
  width: 220px;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 20px 24px;
}

.post-meta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  color: var(--slate-lt);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.post-title {
  font-size: 22px;
  color: var(--brown-dark);
  margin-bottom: 10px;
  text-decoration: none;
  display: block;
}

.post-title:hover { color: var(--brown); }

.post-excerpt {
  font-size: 15px;
  color: var(--slate-lt);
  margin-bottom: 14px;
}

/* ---- Single post / page content ---- */
.entry-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sand);
}

.entry-title {
  font-size: clamp(24px, 4vw, 38px);
  color: var(--brown-dark);
  font-weight: normal;
  margin-bottom: 10px;
  line-height: 1.25;
}

.entry-meta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  color: var(--slate-lt);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--brown-dark);
  margin: 1.5em 0 .5em;
  font-weight: normal;
  line-height: 1.3;
}

.entry-content h1 { font-size: 2em; }
.entry-content h2 { font-size: 1.6em; }
.entry-content h3 { font-size: 1.3em; }

.entry-content p   { margin-bottom: 1.2em; }
.entry-content ul,
.entry-content ol  { margin: 0 0 1.2em 1.6em; }
.entry-content li  { margin-bottom: .4em; }

.entry-content blockquote {
  border-left: 4px solid var(--brown-lt);
  margin: 1.5em 0;
  padding: 14px 20px;
  background: #fdf0e0;
  font-style: italic;
  color: var(--brown);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.entry-content .pull-quote {
  font-size: 1.3em;
  text-align: center;
  border: none;
  background: transparent;
}

.entry-content figure {
  margin: 1.5em 0;
}

.entry-content figcaption {
  font-size: 13px;
  color: var(--slate-lt);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 15px;
}

.entry-content th {
  background: var(--sand);
  padding: 8px 12px;
  text-align: left;
  color: var(--brown-dark);
}

.entry-content td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--sand);
}

/* ---- Featured image ---- */
.featured-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 28px;
}

/* ---- Sidebar layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  max-width: 1060px;
  margin: 0 auto;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.widget-title {
  font-size: 16px;
  color: var(--brown-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sand);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--brown-dark);
  color: #c9ad94;
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h3 {
  font-size: 15px;
  color: var(--cream);
  margin-bottom: 14px;
  font-weight: normal;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-col p,
.footer-col address {
  font-size: 14px;
  line-height: 1.8;
  font-style: normal;
}

.footer-col a {
  color: #c9ad94;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  color: #c4a88c;
}

.footer-bottom a { color: #c9ad94; }

/* ---- Newsletter subscribe widget ---- */
.subscribe-section {
  background: var(--brown);
  color: var(--cream);
  text-align: center;
  padding: 48px 24px;
}

.subscribe-section h2 {
  font-size: 26px;
  font-weight: normal;
  margin-bottom: 10px;
}

.subscribe-section p {
  font-size: 16px;
  opacity: .85;
  margin-bottom: 24px;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 11px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  min-width: 220px;
  font-family: 'Georgia', serif;
}

.subscribe-form button {
  padding: 11px 24px;
  background: var(--brown-lt);
  border: none;
  border-radius: var(--radius);
  color: var(--brown-dark);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.subscribe-form button:hover { filter: brightness(.92); }

/* ---- Utility ---- */
.text-center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.section-title {
  font-size: 28px;
  color: var(--brown-dark);
  font-weight: normal;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--slate);
  font-size: 16px;
  margin-bottom: 32px;
}

.btn-outline {
  display: inline-block;
  padding: 9px 22px;
  border: 2px solid var(--brown);
  color: var(--brown);
  border-radius: var(--radius);
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, color .15s;
}

.btn-outline:hover {
  background: var(--brown);
  color: var(--white);
}

/* ---- Public forms (contact, registration) ---- */
.pub-form-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.pub-form-header {
  margin-bottom: 32px;
}

.pub-form-intro {
  font-size: 16px;
  color: var(--slate-lt);
  margin-top: 8px;
}

.pub-form-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 28px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.pub-section-title {
  font-size: 18px;
  color: var(--brown-dark);
  font-weight: normal;
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sand);
  margin-bottom: 18px;
}

.pub-section-note {
  font-size: 13px;
  color: var(--slate-lt);
  margin-top: -10px;
  margin-bottom: 16px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.pub-form {
  display: block;
}

.pub-form-group {
  margin-bottom: 16px;
}

.pub-form-group label {
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 5px;
}

.pub-input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--sand-dk);
  border-radius: var(--radius);
  font-family: 'Georgia', serif;
  font-size: 15px;
  color: var(--slate);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}

.pub-input:focus {
  outline: none;
  border-color: var(--brown-lt);
  box-shadow: 0 0 0 3px rgba(196,154,108,.2);
}

textarea.pub-input {
  resize: vertical;
  line-height: 1.65;
}

.pub-form-row {
  display: grid;
  gap: 16px;
}

.pub-form-row.two-up   { grid-template-columns: 1fr 1fr; }
.pub-form-row.three-up { grid-template-columns: 2fr 1fr 1fr; }

.pub-form-actions {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--sand);
}

.pub-btn-primary {
  display: inline-block;
  background: var(--brown);
  color: var(--white);
  padding: 13px 36px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.pub-btn-primary:hover { background: var(--brown-dark); }

.pub-btn-add {
  background: none;
  border: 2px solid var(--brown-lt);
  color: var(--brown);
  padding: 7px 18px;
  border-radius: var(--radius);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.pub-btn-add:hover { background: var(--brown-lt); color: var(--white); }

.req { color: #c0392b; }
.pub-optional { font-weight: normal; color: var(--slate-lt); }

.pub-form-errors {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #721c24;
  line-height: 1.8;
}

.pub-form-success {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: 48px 36px;
  text-align: center;
}

.pub-form-success-icon {
  font-size: 52px;
  color: var(--brown-lt);
  margin-bottom: 16px;
}

.pub-form-success h2 {
  font-size: 26px;
  color: var(--brown-dark);
  font-weight: normal;
  margin-bottom: 12px;
}

.pub-form-success p {
  font-size: 16px;
  color: var(--slate-lt);
  margin-bottom: 8px;
}

/* Sacrament checkboxes */
.sacrament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.sacrament-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--slate);
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: var(--cream);
  transition: border-color .15s, background .15s;
}

.sacrament-check:hover { border-color: var(--brown-lt); background: #fdf3e5; }

.sacrament-check input[type="checkbox"] {
  accent-color: var(--brown);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Family member cards */
.member-card {
  background: #fdf6ec;
  border: 1px solid var(--sand-dk);
  border-radius: var(--radius);
  padding: 20px 20px 12px;
  margin-bottom: 16px;
}

.member-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sand);
}

.member-remove {
  background: none;
  border: 1px solid #ccc;
  color: #888;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.member-remove:hover { border-color: #dc3545; color: #dc3545; }

/* Contact info row below form */
.pub-form-contact-info {
  margin-top: 32px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.pub-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate);
}

.pub-contact-icon {
  color: var(--brown-lt);
  font-size: 16px;
  margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .pub-form-row.two-up,
  .pub-form-row.three-up { grid-template-columns: 1fr; }
  .pub-form-section       { padding: 20px 16px; }
  .pub-form-contact-info  { flex-direction: column; }
  .sacrament-grid         { grid-template-columns: 1fr 1fr; }
}

/* ---- 404 ---- */
.error-page {
  text-align: center;
  padding: 80px 24px;
}

.error-page h1 {
  font-size: 80px;
  color: var(--sand-dk);
  font-weight: normal;
}

.error-page h2 { color: var(--brown-dark); margin-bottom: 16px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-toggle               { display: block; }
  .site-nav-inner           { flex-direction: column; display: none; }
  .site-nav-inner.open      { display: flex; }

  /* Plain nav links fill full width */
  .site-nav > .site-nav-inner > a { padding: 12px 20px; }

  /* Parent item: row with link + toggle button */
  .nav-item                 { flex-direction: row; flex-wrap: wrap; }
  .nav-parent-link          { flex: 1; padding: 12px 8px 12px 20px; }
  .nav-dropdown-btn         { padding: 12px 20px 12px 8px; font-size: 12px; }

  /* Dropdown expands inline below the parent row */
  .nav-dropdown {
    position: static;
    display: none;
    width: 100%;
    border-top: none;
    box-shadow: none;
    background: rgba(0,0,0,.18);
  }
  .nav-dropdown a           { padding: 10px 20px 10px 36px; font-size: 13px; }
  .nav-item.open .nav-dropdown { display: block; }

  .post-card                { grid-template-columns: 1fr; }
  .post-card img            { width: 100%; height: 200px; }
  .two-col                  { grid-template-columns: 1fr; }
  .hero                     { padding: 50px 16px; }
}

/* ---- Newsletter archive ---- */
.nl-archive-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.nl-archive-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}

.nl-archive-item:hover {
  border-color: var(--brown-lt);
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
  color: inherit;
}

.nl-archive-meta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  color: var(--slate-lt);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nl-archive-subject {
  font-size: 18px;
  color: var(--brown-dark);
  font-weight: normal;
}

.nl-archive-preheader {
  font-size: 14px;
  color: var(--slate-lt);
}

.nl-archive-read {
  margin-top: 4px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
}

/* ---- Forms landing page ---- */
.forms-listing {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.forms-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--sand);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}

.forms-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  border-color: var(--brown-lt);
  transform: translateY(-2px);
  color: inherit;
}

.forms-card-icon {
  font-size: 36px;
  line-height: 1;
  color: var(--brown-lt);
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  margin-top: 4px;
}

.forms-card-body {
  flex: 1;
}

.forms-card-title {
  font-size: 20px;
  color: var(--brown-dark);
  font-weight: normal;
  margin-bottom: 6px;
}

.forms-card-desc {
  font-size: 15px;
  color: var(--slate-lt);
  line-height: 1.65;
  margin-bottom: 10px;
}

.forms-card-link {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
}

@media (max-width: 560px) {
  .forms-card       { flex-direction: column; gap: 14px; padding: 20px; }
  .forms-card-icon  { width: auto; }
}

/* ---- Saint Francis page components ---- */

/* Shared button styling */
.sf-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.sf-button {
  display: inline-block;
  padding: 12px 20px;
  background-color: #7c5c1a;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.sf-button:hover {
  background-color: #8f6d28;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Page section spacing */
.sf-page section {
  margin-bottom: 28px;
}

.sf-page section:last-child {
  margin-bottom: 0;
}

/* Image helper */
.sf-page img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Clergy page */
.sf-clergy-section {
  margin-top: 10px;
}

.sf-clergy-intro {
  margin-bottom: 28px;
}

.sf-clergy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.sf-clergy-card {
  background: linear-gradient(180deg, #fffdf8 0%, #fbf6ee 100%);
  border: 1px solid #d8c7af;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 10px 28px rgba(96, 58, 23, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sf-clergy-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(197,139,53,0.14) 0%, rgba(197,139,53,0) 70%);
  pointer-events: none;
}

.sf-clergy-photo-wrap {
  margin-bottom: 18px;
}

.sf-clergy-photo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #f4ead8;
  box-shadow: 0 8px 22px rgba(51, 69, 31, 0.14);
  display: inline-block;
  background: #f5efe6;
}

.sf-clergy-name {
  margin: 0 0 6px;
  color: #33451f;
  font-size: 1.5rem;
  line-height: 1.2;
}

.sf-clergy-role {
  margin: 0 0 16px;
  color: #7f1d1d;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.sf-clergy-card p:last-child {
  margin-bottom: 0;
}

.sf-clergy-contact {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid #d8c7af;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 8px 22px rgba(96, 58, 23, 0.06);
}

@media (max-width: 900px) {
  .sf-clergy-grid {
    grid-template-columns: 1fr;
  }

  .sf-clergy-card {
    padding: 24px 20px;
  }

  .sf-clergy-photo {
    width: 150px;
    height: 150px;
  }

  .sf-button-row {
    gap: 10px;
  }

  .sf-button {
    width: 100%;
    text-align: center;
  }
}

/* ── Podcast player ── */
.podcast-player {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: #2d1a0e; color: #fdf6ec;
  display: none; align-items: center; gap: 12px;
  padding: 10px 20px; box-shadow: 0 -2px 12px rgba(0,0,0,.4);
}
.podcast-player.active { display: flex; }
.podcast-player-art { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.podcast-player-info { flex: 1; min-width: 0; }
.podcast-player-title { font-size: 13px; font-weight: 600; font-family: Georgia, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podcast-player-show  { font-size: 11px; color: #c49a6c; font-family: sans-serif; }
.podcast-player-btn   { background: none; border: none; color: #fdf6ec; font-size: 24px; cursor: pointer; padding: 4px 8px; flex-shrink: 0; }
.podcast-player-btn:hover { color: #c49a6c; }
.podcast-player-seek  { flex: 2; min-width: 80px; accent-color: #c49a6c; }
.podcast-player-time  { font-size: 11px; font-family: monospace; white-space: nowrap; color: #c49a6c; flex-shrink: 0; }
.podcast-player-speed { background: #4a2c16; border: none; color: #fdf6ec; font-size: 11px; border-radius: 3px; padding: 3px 6px; cursor: pointer; flex-shrink: 0; }
.podcast-player-vol   { width: 70px; accent-color: #c49a6c; flex-shrink: 0; }

/* ── Podcast episode cards ── */
.episode-grid { display: flex; flex-direction: column; gap: 16px; }
.episode-card {
  display: grid; grid-template-columns: 100px 1fr auto;
  gap: 16px; align-items: start;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.08); padding: 16px;
}
.episode-art { width: 100px; height: 100px; object-fit: cover; border-radius: 6px; }
.episode-meta { font-size: 12px; font-family: sans-serif; color: var(--slate-lt); margin-bottom: 4px; }
.episode-title { font-size: 17px; font-family: Georgia, serif; color: var(--brown); margin: 0 0 6px; font-weight: 600; }
.episode-excerpt { font-size: 14px; color: var(--slate); line-height: 1.6; }
.episode-play { background: var(--brown); color: #fff; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 18px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; align-self: center; }
.episode-play:hover { background: var(--brown-lt); }
@media (max-width: 600px) {
  .episode-card { grid-template-columns: 64px 1fr; }
  .episode-card .episode-play { grid-column: 2; justify-self: start; margin-top: 8px; }
  .episode-art { width: 64px; height: 64px; }
}

/* ── Podcast search results (admin) ── */
.podcast-search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.podcast-result-card { border: 2px solid transparent; border-radius: 8px; padding: 10px; cursor: pointer; text-align: center; background: #fdf6ec; transition: border-color .15s; }
.podcast-result-card:hover, .podcast-result-card.selected { border-color: var(--brown); }
.podcast-result-card img { width: 80px; height: 80px; border-radius: 6px; object-fit: cover; margin-bottom: 6px; }
.podcast-result-card-name { font-size: 12px; font-weight: 600; color: var(--brown); line-height: 1.3; }
.podcast-result-card-author { font-size: 11px; color: var(--slate-lt); margin-top: 2px; }
