/* Portal-specific extensions to the EVE Glyph canon */

/* Hero photograph on individual parish pages */
.hero-photo {
  margin: 0 0 2.2rem;
  padding: 0;
  max-height: 480px;
  overflow: hidden;
  position: relative;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,59,92,0) 55%, rgba(11,59,92,0.22) 100%);
  pointer-events: none;
}
.hero-photo img {
  width: 100%; height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.portal-body main { background: var(--white); padding: 2.5rem 0 4rem; }
.portal-header .site-title h1 { font-size: 1.85rem; }
.portal-hero { max-width: 780px; }
.portal-hero h1 { font-size: 2.7rem; margin-bottom: 0.6rem; }
.portal-hero .lead { font-size: 1.3rem; margin-bottom: 1.2rem; }

.parish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  max-width: 1100px;
  margin: 2.5rem auto 3rem;
}
.parish-card {
  display: flex;
  flex-direction: column;
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--stella-gold);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-left-color 0.15s;
}
.parish-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(11, 59, 92, 0.15);
  border-left-color: var(--marine);
  color: var(--ink);
}
.parish-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--marine-deep);
}
.parish-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.parish-card:hover .parish-card-photo img { transform: scale(1.03); }
.parish-card-crest-overlay {
  position: absolute;
  left: 0.9rem; bottom: 0.9rem;
  width: 46px; height: 46px;
  background: rgba(11, 59, 92, 0.92);
  padding: 5px;
  border: 1px solid rgba(212, 169, 74, 0.85);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.parish-card-crest-overlay img { width: 100%; height: 100%; display: block; }
.parish-card-body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
/* Featured card: Holy Trinity Lenexa — the Knights land here first */
.parish-card-featured {
  border-left-color: var(--marine);
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) 1fr;
  align-items: stretch;
}
.parish-card-featured .parish-card-photo {
  aspect-ratio: auto;
  height: 100%;
  min-height: 300px;
}
.parish-card-featured .parish-card-body { padding: 2rem 2rem 2rem; justify-content: center; }
.parish-card-featured h3 { font-size: 1.7rem; }
.parish-card-featured .parish-card-blurb { font-size: 1.05rem; }
@media (max-width: 720px) {
  .parish-card-featured { grid-template-columns: 1fr; }
  .parish-card-featured .parish-card-photo { min-height: 220px; }
}
.parish-card h3 {
  font-size: 1.35rem;
  color: var(--marine-deep);
  margin: 0 0 0.2rem;
}
.parish-card-city {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
  font-size: 1.02rem;
}
.parish-card-blurb {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 0.8rem;
  line-height: 1.55;
}
.parish-card-founded {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--marine);
  margin: auto 0 0;
  padding-top: 0.6rem;
  border-top: 1px dotted var(--rule);
}

.portal-section {
  max-width: 900px;
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--rule);
}
.portal-section h2 {
  font-size: 2rem;
  color: var(--marine-deep);
  margin-bottom: 0.4em;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 1.4rem;
}
.pillar {
  background: var(--parchment);
  border-left: 3px solid var(--stella-gold);
  padding: 1rem 1.2rem;
}
.pillar h4 {
  color: var(--marine);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  margin: 0 0 0.35em;
}
.pillar p { font-size: 0.94rem; margin: 0; color: var(--ink-soft); }

.kofc-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
}
.kofc-list li {
  padding: 0.8rem 0 0.9rem 1.2rem;
  border-top: 1px solid var(--rule);
  position: relative;
}
.kofc-list li:last-child { border-bottom: 1px solid var(--rule); }
.kofc-list li::before {
  content: "◆";
  color: var(--stella-gold);
  position: absolute;
  left: 0;
  top: 0.85rem;
  font-size: 0.85rem;
}
.kofc-list li strong { color: var(--marine-deep); }
.kofc-note {
  font-style: italic;
  color: var(--marine);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  margin-top: 0.8rem;
}

.doctrine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  margin-top: 1.4rem;
}
.doctrine-grid h4 {
  color: var(--marine-deep);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  margin: 0 0 0.35em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--rule);
}
.doctrine-grid p { color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 600px) {
  .portal-hero h1 { font-size: 2rem; }
  .portal-hero .lead { font-size: 1.1rem; }
  .portal-section h2 { font-size: 1.6rem; }
}

/* Caisse callout block on the KofC section */
.caisse-callout {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid #b08a3e;
  background: #fbf7ee;
  border-radius: 4px;
}
.caisse-callout h3 {
  margin-top: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: #4a3820;
}
.caisse-callout .caisse-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.caisse-callout .btn-primary {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: #4a3820;
  color: #fbf7ee;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
}
.caisse-callout .btn-primary:hover { background: #6a5230; }

/* Caisse hero — top-of-landing prominent block, above the parish grid */
.caisse-hero {
  margin: 2.5rem 0 3rem;
  padding: 2.25rem 2.25rem 2rem;
  background: linear-gradient(180deg, #fbf7ee 0%, #f5efe0 100%);
  border: 1px solid #d9c99d;
  border-left: 6px solid #b08a3e;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(74, 56, 32, 0.08);
}
.caisse-hero-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
  background: #4a3820;
  color: #fbf7ee;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}
.caisse-hero h2 {
  margin: 0 0 0.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #3a2a10;
  line-height: 1.15;
}
.caisse-hero-lead {
  font-size: 1.08rem;
  color: #3a2a10;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.caisse-hero-plain {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  padding: 1.1rem 1.4rem 1.1rem 1.4rem;
  margin: 1rem 0 1.25rem;
}
.caisse-hero-plain p:first-child {
  margin-top: 0;
  color: #4a3820;
}
.caisse-hero-plain ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}
.caisse-hero-plain li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
  color: #3a2a10;
}
.caisse-hero-plain li:last-child {
  margin-bottom: 0;
}
.caisse-hero-lineage {
  font-style: italic;
  color: #5a4630;
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid #b08a3e;
  background: rgba(255, 255, 255, 0.4);
}
.caisse-hero-lineage strong {
  font-style: normal;
  color: #3a2a10;
}
.caisse-hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.caisse-hero-cta .btn-primary {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  background: #4a3820;
  color: #fbf7ee;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.caisse-hero-cta .btn-primary:hover {
  background: #6a5230;
}
.caisse-hero-cta .btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  background: transparent;
  color: #4a3820;
  border: 1px solid #b08a3e;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.caisse-hero-cta .btn-secondary:hover {
  background: rgba(176, 138, 62, 0.1);
}

/* A region with a single parish should not stretch one card across the page */
.parish-grid:has(> .parish-card:only-child) {
  grid-template-columns: minmax(280px, 520px);
  justify-content: start;
}

.parish-grid-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: #3a2a10;
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.caisse-crossref {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5dcc2;
  font-size: 0.95rem;
  color: #5a4630;
  font-style: italic;
}
.caisse-crossref a { color: #4a3820; font-weight: 600; }

@media (max-width: 640px) {
  .caisse-hero { padding: 1.5rem 1.25rem; margin: 1.5rem 0 2rem; }
  .caisse-hero h2 { font-size: 1.55rem; }
  .caisse-hero-lead { font-size: 1rem; }
  .caisse-hero-plain { padding: 0.9rem 1rem; }
  .caisse-hero-cta { flex-direction: column; align-items: stretch; }
  .caisse-hero-cta .btn-primary,
  .caisse-hero-cta .btn-secondary { text-align: center; }
}

/* --------------------------------------------------------------------------
   v3 — regional grouping, photo-pending state, credits, rights footer, footnote
   -------------------------------------------------------------------------- */

.region-block { margin-top: 2.6rem; }
.region-block:first-of-type { margin-top: 1.4rem; }

.region-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #d9c99d;
}
.region-head h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: #0b3b5c;
  letter-spacing: 0.01em;
}
.region-head p {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.86rem;
  color: #6a6154;
}

/* Card state when no freely-licensed photograph of the church exists yet */
.parish-card-nophoto {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 1.4rem;
  text-align: center;
  background: linear-gradient(160deg, #12496c 0%, #0b3b5c 100%);
}
.parish-card-nophoto img {
  width: 56px;
  height: 56px;
  opacity: 0.95;
  position: static;
  transform: none;
}
.parish-card-nophoto span {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.74rem;
  line-height: 1.4;
  color: #e8ddc4;
  max-width: 22rem;
}
.parish-card:hover .parish-card-nophoto img { transform: none; }

/* Photograph attribution */
.photo-credit {
  margin-top: 1.1rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(216, 201, 157, 0.35);
}
.photo-credit p {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.72rem;
  line-height: 1.55;
  color: #9aa7b2;
}
.photo-credit a { color: #c9b98c; text-decoration: none; }
.photo-credit a:hover { text-decoration: underline; }

/* Mandatory rights footer — EVE Glyph Index L0 canon, Gate 2 */
.ark-footer {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(216, 201, 157, 0.35);
}
.ark-footer p {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.71rem;
  line-height: 1.6;
  color: #8f9aa5;
  max-width: 74ch;
}

/* The 1613 footnote at the very bottom — deliberately quiet */
.footnote-block { margin-top: 1rem; }
.footnote-rule {
  height: 1px;
  background: linear-gradient(90deg, #d9c99d 0%, rgba(217, 201, 157, 0) 70%);
  margin-bottom: 1.6rem;
}
.footnote-block h2 {
  font-size: 1.35rem;
  color: #5a5142;
  font-weight: 500;
}
.footnote-block p {
  font-size: 0.93rem;
  line-height: 1.66;
  color: #5f5749;
  max-width: 68ch;
}
.footnote-aside {
  font-style: italic;
  color: #8a8172;
  margin-top: -0.4rem;
}
.footnote-block strong { color: #4a4234; font-weight: 600; }
.footnote-more { margin-top: 1.3rem; }
.footnote-credit {
  margin-top: 1.8rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--stella-gold);
  background: #fbf6ea;
  max-width: 68ch;
}
.footnote-credit p { margin: 0; font-size: 0.92rem; color: #5a5142; }
.footnote-credit p + p { margin-top: 0.6rem; }
.footnote-credit a {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-weight: 600;
  color: #8a6416;
  text-decoration: none;
  border-bottom: 1px solid #ddc98f;
}
.footnote-credit a:hover { color: var(--ink); border-bottom-color: var(--stella-gold); }
.footnote-more a {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.88rem;
  color: #1a5578;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 85, 120, 0.35);
}
.footnote-more a:hover { border-bottom-color: #1a5578; }

/* Hero placeholder on a parish page with no licensed photograph */
.hero-photo-pending {
  background: linear-gradient(160deg, #12496c 0%, #0b3b5c 100%);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo-pending::after { display: none; }
.hero-photo-pending-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 2.6rem 1.5rem;
  text-align: center;
}
.hero-photo-pending-inner img { width: 74px; height: 74px; }
.hero-photo-pending-inner p {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.83rem;
  color: #e8ddc4;
  max-width: 34rem;
}

/* Schedule caveat where the published times could not be confirmed officially */
.schedule-note {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #6a6154;
  font-style: italic;
  margin-top: -0.4rem;
}

@media (max-width: 640px) {
  .region-head h2 { font-size: 1.3rem; }
  .hero-photo-pending { min-height: 190px; }
}

/* ---- Cover page — EgD-POS-001. Churches one side, children the other ---- */
.cover {
  background: linear-gradient(180deg, var(--marine-deep) 0%, var(--marine) 62%, var(--marine-light) 100%);
  color: #f3ede0;
  margin: -2.5rem 0 3.2rem;
  padding: 3.4rem 0 2.6rem;
  border-bottom: 3px solid var(--stella-gold);
}
.cover .container { max-width: 960px; }
.cover-head { max-width: 860px; }
.cover-kicker {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--stella-gold-light); margin: 0 0 0.7rem;
}
.cover-head h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.3rem); line-height: 1.08;
  color: #fffdf7; margin: 0 0 0.85rem;
}
.cover-lead {
  font-size: clamp(1.02rem, 2.1vw, 1.2rem); line-height: 1.6;
  color: #e6dcc6; margin: 0; max-width: 46rem;
}
.cover-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 2.4rem;
  align-items: stretch;
  margin-top: 2.9rem;
}
.cover-side {
  display: flex; flex-direction: column;
  background: rgba(255, 253, 247, 0.055);
  border: 1px solid rgba(216, 199, 160, 0.28);
  border-top: 3px solid var(--stella-gold);
  padding: 1.7rem 1.7rem 1.5rem;
}
.cover-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 600; color: var(--stella-gold-light); margin: 0 0 0.45rem;
}
.cover-side h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.15rem); line-height: 1.12;
  color: #fffdf7; margin: 0 0 0.55rem;
}
.cover-side-lead {
  font-size: 1.02rem; line-height: 1.58; color: #e6dcc6; margin: 0 0 1.15rem;
}
.cover-points { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.cover-points li {
  position: relative; padding-left: 1.15rem; margin-bottom: 0.8rem;
  font-size: 0.94rem; line-height: 1.58; color: #ddd3bd;
}
.cover-points li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; background: var(--stella-gold); border-radius: 50%;
}
.cover-cta {
  margin-top: auto; align-self: flex-start;
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  color: #08283f; background: var(--stella-gold-light);
  padding: 0.68rem 1.25rem; border: 1px solid var(--stella-gold-light);
  white-space: nowrap; text-align: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.cover-cta:hover, .cover-cta:focus {
  background: transparent; color: var(--stella-gold-light);
}
.cover-spine {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; width: 1px; background: rgba(216, 199, 160, 0.3);
}
.cover-spine span {
  font-size: 1.45rem; color: var(--stella-gold);
  background: #0e4468; padding: 0.75rem 0.1rem;
  line-height: 1;
}
.cover-foot {
  margin-top: 2.6rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(216, 199, 160, 0.28);
  max-width: 880px;
}
.cover-foot p {
  margin: 0 0 0.9rem; font-size: 0.97rem; line-height: 1.62; color: #d8cdb5;
  max-width: 52rem;
}
.cover-foot-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.9rem; margin: 0 !important;
}
.cover-foot-links a {
  color: var(--stella-gold-light); text-decoration: none;
  font-size: 0.9rem; font-weight: 600;
  border-bottom: 1px solid rgba(212, 169, 74, 0.45); padding-bottom: 1px;
}
.cover-foot-links a:hover, .cover-foot-links a:focus { border-bottom-color: var(--stella-gold-light); }

@media (max-width: 820px) {
  .cover { padding: 2.5rem 0 2rem; margin-bottom: 2.4rem; }
  .cover-split { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.1rem; }
  .cover-spine { width: auto; height: 1px; background: rgba(216, 199, 160, 0.3); }
  .cover-spine span { padding: 0 0.7rem; }
  .cover-cta { white-space: normal; }
}
