:root {
  color-scheme: light;
  --bg: #f7f0e3;
  --bg-soft: #fffaf0;
  --panel: #fffdf7;
  --ink: #1e2633;
  --muted: #6a6258;
  --line: #e1d3bd;
  --navy: #172943;
  --navy-soft: #243e63;
  --gold: #b88a32;
  --gold-soft: #f3e5bd;
  --green: #356854;
  --rose: #8f4b3f;
  --shadow: 0 18px 44px rgba(43, 35, 23, 0.1);
  --soft-shadow: 0 10px 26px rgba(43, 35, 23, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(184, 138, 50, 0.1) 0 1px, transparent 1px 120px),
    linear-gradient(45deg, rgba(23, 41, 67, 0.05) 0 1px, transparent 1px 96px),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.58;
}

.page-shell {
  width: min(1080px, calc(100% - 34px));
  margin: 0 auto;
  padding: 48px 0 68px;
}

.page-header {
  max-width: 860px;
  margin-bottom: 28px;
  padding: 18px 0 10px;
}

.page-header::before {
  content: "";
  display: block;
  width: 68px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), rgba(184, 138, 50, 0.15));
}

.parish-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}

.parish-brand img {
  width: clamp(132px, 22vw, 190px);
  height: auto;
}

.parish-logo-link {
  display: inline-flex;
  border-radius: 6px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
.month-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.7rem, 9vw, 5.8rem);
  line-height: 0.96;
}

.lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 2.4vw, 1.22rem);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.guide-link,
button,
.resource-card a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(184, 138, 50, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8e8, #f7ebca);
  color: #6e5016;
  box-shadow: var(--soft-shadow);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
}

button {
  cursor: pointer;
}

button.secondary,
.parish-link {
  background: rgba(255, 253, 247, 0.74);
  color: var(--navy);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ministry-overview,
.next-session,
.tool-panel,
.resource-card {
  border: 1px solid rgba(184, 138, 50, 0.35);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow);
}

.ministry-overview {
  max-width: 860px;
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 32px);
}

.ministry-overview h2,
.next-session h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.1;
}

.ministry-overview p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.next-session {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: clamp(22px, 4vw, 34px);
}

.meta-line {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.status-pill,
.type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(23, 41, 67, 0.13);
  border-radius: 999px;
  background: #f8efdb;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.content-section {
  margin-top: 34px;
}

.month-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
}

.month-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 138, 50, 0.5), transparent);
}

.cards {
  display: grid;
  gap: 14px;
}

.schedule-card {
  display: grid;
  grid-template-columns: minmax(124px, 160px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: clamp(18px, 3vw, 24px);
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(225, 211, 189, 0.9);
  border-left: 6px solid var(--gold);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.date-block {
  min-height: 84px;
  padding: 13px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--navy), var(--navy-soft));
  color: rgba(255, 253, 247, 0.78);
  font-size: 0.88rem;
  font-weight: 750;
}

.date-block span {
  display: block;
}

.date-block strong {
  display: block;
  color: var(--bg-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.card-title {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.17rem, 2.6vw, 1.45rem);
  font-weight: 600;
  line-height: 1.2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-description {
  margin: 12px 0 0;
  color: var(--muted);
}

.lesson-materials,
.material-group {
  margin-top: 15px;
}

.lesson-materials {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.lesson-materials summary {
  width: fit-content;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(184, 138, 50, 0.5);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8e8, #f7ebca);
  color: #6e5016;
  cursor: pointer;
  font-weight: 850;
}

.material-group h4 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.material-group ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 20px;
}

.material-group a {
  color: var(--navy-soft);
  font-weight: 700;
  text-decoration-color: rgba(184, 138, 50, 0.7);
  text-underline-offset: 3px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.resource-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.resource-card h3,
.resource-card p {
  margin: 0;
}

.resource-card h3 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.resource-card p {
  color: var(--muted);
}

.empty-state,
.error-state {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf0;
  color: var(--ink);
  font: inherit;
}

select,
input {
  min-height: 44px;
  padding: 9px 11px;
}

textarea {
  padding: 11px;
  resize: vertical;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1080px);
    padding-top: 26px;
  }

  .next-session,
  .schedule-card {
    grid-template-columns: 1fr;
  }

  .status-pill {
    width: fit-content;
  }

  .date-block {
    min-height: auto;
  }
}
