:root {
  --csrpm-bg: #140f0d;
  --csrpm-bg-2: #211713;
  --csrpm-paper: #fffaf1;
  --csrpm-paper-2: #f7efe1;
  --csrpm-ink: #211a16;
  --csrpm-muted: #6f6259;
  --csrpm-gold: #d7b45d;
  --csrpm-gold-2: #b9903b;
  --csrpm-burgundy: #651f27;
  --csrpm-burgundy-2: #8b2d38;
  --csrpm-line: rgba(84, 54, 35, 0.22);
  --csrpm-shadow: 0 24px 70px rgba(0,0,0,.26);
  --csrpm-radius: 18px;
}

.csrpm-btn,
button.csrpm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.csrpm-btn:hover { transform: translateY(-1px); }
.csrpm-btn-dark { background: var(--csrpm-burgundy); color: #fff8ec; box-shadow: 0 14px 34px rgba(101,31,39,.26); }
.csrpm-btn-outline { background: transparent; color: var(--csrpm-burgundy); border-color: rgba(101,31,39,.33); }

.csrpm-eyebrow { color: var(--csrpm-gold); text-transform: uppercase; letter-spacing: .17em; font-weight: 800; font-size: 12px; margin: 0 0 16px; }
.csrpm-form-shell { display: grid; grid-template-columns: .92fr 1.08fr; gap: 24px; align-items: start; }
.csrpm-info-panel { background: #261814; color: #fff8ec; border-radius: 26px; padding: 30px; box-shadow: var(--csrpm-shadow); border: 1px solid rgba(215,180,93,.19); }
.csrpm-info-panel h3 { font-family: Georgia, "Times New Roman", serif; font-size: 34px; line-height: 1.08; margin: 0 0 16px; color: #fff8ec; }
.csrpm-info-panel p { color: rgba(255,248,236,.75); }
.csrpm-info-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.csrpm-info-list li { padding-left: 30px; position: relative; color: rgba(255,248,236,.84); }
.csrpm-info-list li:before { content: "✦"; position: absolute; left: 0; color: var(--csrpm-gold); }
.csrpm-form-card { background: #fff; border: 1px solid var(--csrpm-line); border-radius: 26px; padding: 28px; box-shadow: 0 18px 60px rgba(76,45,28,.12); }
.csrpm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.csrpm-field { display: grid; gap: 8px; margin-bottom: 18px; }
.csrpm-field.csrpm-full { grid-column: 1 / -1; }
.csrpm-field label { font-weight: 800; color: #35231b; }
.csrpm-field label span, .csrpm-help { color: var(--csrpm-muted); font-size: 13px; font-weight: 500; }
.csrpm-field input[type="text"],
.csrpm-field input[type="email"],
.csrpm-field select,
.csrpm-field textarea,
.csrpm-finder-tools input[type="text"] {
  width: 100%;
  border: 1px solid rgba(84,54,35,.22);
  background: #fffaf6;
  border-radius: 14px;
  padding: 14px 14px;
  font: inherit;
  color: var(--csrpm-ink);
  outline: none;
}
.csrpm-field textarea { min-height: 170px; resize: vertical; }
.csrpm-field input:focus,
.csrpm-field select:focus,
.csrpm-field textarea:focus,
.csrpm-finder-tools input:focus { border-color: var(--csrpm-gold-2); box-shadow: 0 0 0 4px rgba(215,180,93,.14); }
.csrpm-checkbox { display: flex; gap: 10px; align-items: flex-start; color: var(--csrpm-muted); font-size: 14px; font-weight: 500 !important; }
.csrpm-checkbox input { margin-top: 5px; }
.csrpm-honeypot { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.csrpm-selected-saint { display: none; margin: -6px 0 14px; padding: 12px 14px; border-radius: 14px; background: #fff4d8; color: #4a3214; border: 1px solid rgba(215,180,93,.38); }
.csrpm-selected-saint.is-visible { display: block; }
.csrpm-success, .csrpm-error { border-radius: 18px; padding: 16px 18px; margin: 0 0 18px; }
.csrpm-success { background: #e7f7e8; border: 1px solid #b9e3be; color: #1b5e24; }
.csrpm-error { background: #fff0f0; border: 1px solid #efb5b5; color: #8a1c1c; }

.csrpm-finder-tools { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 18px; }
.csrpm-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 26px; }
.csrpm-chip { border: 1px solid rgba(101,31,39,.23); background: #fff; color: var(--csrpm-burgundy); border-radius: 999px; padding: 8px 12px; cursor: pointer; font-weight: 800; font-size: 13px; }
.csrpm-chip.active, .csrpm-chip:hover { background: var(--csrpm-burgundy); color: #fff8ec; }
.csrpm-saint-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.csrpm-saint-card { background: #fff; border: 1px solid var(--csrpm-line); border-radius: 20px; padding: 22px; box-shadow: 0 12px 38px rgba(74,48,31,.07); display: flex; flex-direction: column; gap: 12px; }
.csrpm-saint-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 35%, #f8e2a0, #d7b45d 60%, #8a6320); color: #261814; font-family: Georgia, serif; font-size: 34px; align-self: center; box-shadow: 0 10px 30px rgba(84,54,35,.18); }
.csrpm-saint-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 24px; text-align: center; color: var(--csrpm-ink); }
.csrpm-saint-meta { color: var(--csrpm-muted); font-size: 14px; text-align: center; }
.csrpm-tag-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.csrpm-tag { font-size: 12px; background: #f1e5d2; border: 1px solid rgba(84,54,35,.1); border-radius: 999px; padding: 4px 8px; color: #5c3c24; }
.csrpm-saint-card p { color: var(--csrpm-muted); margin: 0; }
.csrpm-card-link { margin-top: auto; border: 0; background: transparent; color: var(--csrpm-burgundy); font-weight: 900; cursor: pointer; padding: 8px 0; text-align: left; }
.csrpm-no-results { grid-column: 1 / -1; text-align: center; padding: 34px; background: #fff; border-radius: 18px; color: var(--csrpm-muted); }

.csrpm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: csrpm-steps; }
.csrpm-step { background: rgba(255,250,241,.08); border: 1px solid rgba(215,180,93,.2); border-radius: 20px; padding: 22px; position: relative; }
.csrpm-step:before { counter-increment: csrpm-steps; content: counter(csrpm-steps); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--csrpm-gold); color: #261814; font-weight: 900; margin-bottom: 18px; }
.csrpm-step h3 { color: var(--csrpm-gold); margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; }
.csrpm-step p { color: rgba(255,248,236,.75); margin: 0; }

@media (max-width: 980px) {
  .csrpm-form-shell, .csrpm-saint-grid, .csrpm-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .csrpm-form-shell, .csrpm-form-grid, .csrpm-saint-grid, .csrpm-steps, .csrpm-finder-tools { grid-template-columns: 1fr; }
}

/* Version 1.4 saint profile pages, favors received, and streamlined local saint art */
.csrpm-template-wrap,
.csrpm-saints-archive,
.csrpm-favors-archive { background: var(--csrpm-paper); color: var(--csrpm-ink); }
.csrpm-archive-hero {
  background: radial-gradient(circle at 20% 0%, rgba(215,180,93,.22), transparent 30%), linear-gradient(135deg, #140f0d, #261814);
  color: #fff8ec;
  padding: clamp(54px, 7vw, 90px) max(24px, calc((100vw - 1180px)/2));
  border-bottom: 4px solid rgba(215,180,93,.4);
}
.csrpm-archive-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 6vw, 72px); line-height: 1.02; margin: 0 0 18px; color: #fff8ec; letter-spacing: -.03em; }
.csrpm-archive-hero p { max-width: 860px; color: rgba(255,248,236,.78); font-size: 18px; }
.csrpm-saints-archive > .csrpm-finder-tools,
.csrpm-saints-archive > .csrpm-profile-grid,
.csrpm-favors-archive > .csrpm-favor-grid { width: min(1180px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.csrpm-saints-archive > .csrpm-finder-tools { margin-top: 34px; }
.csrpm-profile-grid { padding: 16px 0 72px; }
.csrpm-profile-card h3 a { text-decoration: none; color: inherit; }
.csrpm-card-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; align-items: center; margin-top: auto; }
.csrpm-favor-count { font-size: 12px; color: var(--csrpm-muted); font-weight: 800; }
.csrpm-btn-primary { background: linear-gradient(135deg, var(--csrpm-gold), #f0d782); color: #22140b; box-shadow: 0 14px 30px rgba(215,180,93,.25); }
.csrpm-btn-ghost { background: rgba(255,255,255,.08); color: #fff8ec; border-color: rgba(255,255,255,.18); }

.csrpm-single-saint { background: var(--csrpm-paper); color: var(--csrpm-ink); }
.csrpm-saint-hero {
  background: radial-gradient(circle at 15% -10%, rgba(215,180,93,.22), transparent 36%), radial-gradient(circle at 90% 10%, rgba(101,31,39,.28), transparent 28%), linear-gradient(135deg, #140f0d 0%, #261814 100%);
  color: #fff8ec;
  padding: clamp(46px, 6vw, 88px) 0;
  border-bottom: 1px solid rgba(215,180,93,.3);
}
.csrpm-saint-hero-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: .42fr .58fr; gap: 42px; align-items: center; }
.csrpm-saint-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 78px); line-height: 1; margin: 0 0 16px; color: #fff8ec; letter-spacing: -.035em; }
.csrpm-lead { color: rgba(255,248,236,.78); font-size: 20px; margin: 0 0 16px; }
.csrpm-saint-hero-summary { max-width: 760px; margin: 0 0 18px; color: rgba(255,248,236,.82); font-size: 18px; }
.csrpm-hero-tags { justify-content: flex-start; }
.csrpm-saint-portrait-wrap { display: flex; justify-content: center; }
.csrpm-saint-portrait { width: min(360px, 100%); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 30px; border: 1px solid rgba(215,180,93,.42); box-shadow: 0 28px 80px rgba(0,0,0,.38); background: #211713; }
.csrpm-saint-card .csrpm-saint-portrait { width: 104px; height: 104px; aspect-ratio: 1 / 1; border-radius: 50%; align-self: center; box-shadow: 0 10px 30px rgba(84,54,35,.18); }
.csrpm-saint-placeholder {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 35% 23%, rgba(255,248,236,.34), transparent 24%),
    radial-gradient(circle at 60% 70%, rgba(215,180,93,.25), transparent 32%),
    linear-gradient(150deg, #251713, #651f27 56%, #d7b45d 150%);
  color: #fff8ec;
}
.csrpm-saint-placeholder:before { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(215,180,93,.35); border-radius: inherit; z-index: -1; }
.csrpm-saint-placeholder:after { content: ""; position: absolute; width: 72%; aspect-ratio: 1 / 1; border-radius: 50%; border: 1px solid rgba(215,180,93,.18); top: 12%; left: 14%; z-index: -1; }
.csrpm-placeholder-halo { position: absolute; width: 34%; aspect-ratio: 1 / 1; border-radius: 50%; border: 2px solid rgba(215,180,93,.52); top: 16%; left: 50%; transform: translateX(-50%); }
.csrpm-placeholder-symbol { font-size: clamp(52px, 7vw, 82px); line-height: 1; color: rgba(215,180,93,.78); transform: translateY(-8px); text-shadow: 0 0 30px rgba(215,180,93,.18); }
.csrpm-saint-placeholder strong { position: absolute; bottom: 48px; right: 28px; font-family: Georgia, serif; font-size: clamp(48px, 8vw, 82px); opacity: .26; letter-spacing: -.08em; }
.csrpm-saint-placeholder em { position: absolute; left: 24px; bottom: 22px; font-style: normal; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 900; color: rgba(255,248,236,.75); }
.csrpm-saint-card .csrpm-placeholder-halo { width: 34px; top: 14px; }
.csrpm-saint-card .csrpm-placeholder-symbol { font-size: 30px; transform: translateY(0); }
.csrpm-saint-card .csrpm-saint-placeholder strong { font-size: 28px; bottom: 10px; right: 11px; }
.csrpm-saint-card .csrpm-saint-placeholder em { display: none; }
.csrpm-related-card .csrpm-placeholder-halo { display: none; }
.csrpm-related-card .csrpm-placeholder-symbol { font-size: 24px; }
.csrpm-related-card .csrpm-saint-placeholder strong { font-size: 18px; bottom: 6px; right: 8px; }
.csrpm-related-card .csrpm-saint-placeholder em { display: none; }
.csrpm-placeholder-martyr { background: radial-gradient(circle at 35% 23%, rgba(255,248,236,.26), transparent 24%), linear-gradient(145deg, #261410, #7a1b1f 58%, #d7b45d 145%); }
.csrpm-placeholder-doctor { background: radial-gradient(circle at 35% 23%, rgba(255,248,236,.28), transparent 24%), linear-gradient(145deg, #1b1714, #543b1f 58%, #d7b45d 145%); }
.csrpm-placeholder-mystic { background: radial-gradient(circle at 40% 18%, rgba(255,248,236,.32), transparent 25%), linear-gradient(145deg, #17152b, #4c244a 58%, #d7b45d 145%); }
.csrpm-placeholder-bishop, .csrpm-placeholder-pope { background: radial-gradient(circle at 35% 23%, rgba(255,248,236,.28), transparent 24%), linear-gradient(145deg, #141b24, #2c4554 58%, #d7b45d 145%); }
.csrpm-placeholder-priest { background: radial-gradient(circle at 35% 23%, rgba(255,248,236,.24), transparent 24%), linear-gradient(145deg, #161412, #3d2b20 58%, #d7b45d 145%); }
.csrpm-placeholder-virgin { background: radial-gradient(circle at 35% 23%, rgba(255,248,236,.3), transparent 24%), linear-gradient(145deg, #1c1d27, #364268 58%, #d7b45d 145%); }
.csrpm-placeholder-royal { background: radial-gradient(circle at 35% 23%, rgba(255,248,236,.28), transparent 24%), linear-gradient(145deg, #1d1710, #5a3b16 58%, #d7b45d 145%); }
.csrpm-placeholder-healing { background: radial-gradient(circle at 35% 23%, rgba(255,248,236,.3), transparent 24%), linear-gradient(145deg, #151f1a, #2d6544 58%, #d7b45d 145%); }
.csrpm-placeholder-protection { background: radial-gradient(circle at 35% 23%, rgba(255,248,236,.26), transparent 24%), linear-gradient(145deg, #141414, #402020 58%, #d7b45d 145%); }
.csrpm-saint-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }

.csrpm-saint-glance { background: #fffaf1; border-bottom: 1px solid rgba(84,54,35,.12); }
.csrpm-saint-glance-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.csrpm-glance-item { padding: 18px 22px; border-left: 1px solid rgba(84,54,35,.12); }
.csrpm-glance-item:last-child { border-right: 1px solid rgba(84,54,35,.12); }
.csrpm-glance-item span { display: block; color: var(--csrpm-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; margin-bottom: 5px; }
.csrpm-glance-item strong { display: block; color: var(--csrpm-ink); font-size: 14px; }

.csrpm-saint-body { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; padding: 54px 0 86px; align-items: start; }
.csrpm-saint-content { display: grid; gap: 24px; }
.csrpm-saint-prose-card,
.csrpm-saint-favors-panel,
.csrpm-related-section,
.csrpm-sidebar-card,
.csrpm-favor-card,
.csrpm-related-card { background: #fff; border: 1px solid var(--csrpm-line); border-radius: 24px; box-shadow: 0 18px 56px rgba(74,48,31,.08); }
.csrpm-saint-prose-card { padding: clamp(28px, 5vw, 52px); }
.csrpm-section-kicker { margin: 0 0 14px; color: var(--csrpm-gold-2); text-transform: uppercase; letter-spacing: .16em; font-size: 12px !important; font-weight: 900; }
.csrpm-saint-section { padding: 26px 0; border-top: 1px solid rgba(84,54,35,.13); background: transparent; box-shadow: none; border-radius: 0; }
.csrpm-saint-section:first-of-type { border-top: 0; padding-top: 0; }
.csrpm-saint-section:last-child { padding-bottom: 0; }
.csrpm-saint-section h2, .csrpm-sidebar-card h3, .csrpm-favor-card h3, .csrpm-saint-favors-panel h2 { font-family: Georgia, "Times New Roman", serif; color: var(--csrpm-ink); margin-top: 0; }
.csrpm-saint-section h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.02; margin-bottom: 14px; }
.csrpm-saint-section p { color: var(--csrpm-muted); font-size: 18px; line-height: 1.72; max-width: 76ch; }
.csrpm-life-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.csrpm-life-grid .csrpm-fact { background: #fffaf6; border: 1px solid rgba(84,54,35,.12); border-radius: 16px; padding: 16px; }
.csrpm-relic-note { background: linear-gradient(135deg, rgba(255,244,216,.72), rgba(255,250,241,.4)); margin-top: 8px; padding: 24px !important; border: 1px solid rgba(215,180,93,.26); border-radius: 18px; }
.csrpm-saint-sidebar { position: sticky; top: 98px; display: grid; gap: 18px; }
.csrpm-sidebar-card { padding: 24px; display: grid; gap: 14px; }
.csrpm-sidebar-note p { color: var(--csrpm-muted); margin: 0; font-size: 14px; }
.csrpm-fact { border-bottom: 1px solid rgba(84,54,35,.12); padding-bottom: 12px; }
.csrpm-fact span { display: block; color: var(--csrpm-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.csrpm-fact strong { display: block; color: var(--csrpm-ink); margin-top: 4px; }
.csrpm-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.csrpm-saint-favors-panel { padding: clamp(24px, 4vw, 36px); }
.csrpm-saint-favors-panel h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 0; }
.csrpm-favor-callout { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: #fff4d8; border: 1px solid rgba(215,180,93,.38); border-radius: 18px; padding: 16px; }
.csrpm-favor-callout strong { color: var(--csrpm-burgundy); font-size: 34px; font-family: Georgia, serif; }
.csrpm-favor-callout span { flex: 1; color: #4a3214; }
.csrpm-favor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.csrpm-favor-card { padding: 22px; }
.csrpm-favor-card h3 { font-size: 24px; margin-bottom: 8px; }
.csrpm-favor-card h3 a { color: inherit; text-decoration: none; }
.csrpm-favor-card p { color: var(--csrpm-muted); }
.csrpm-related-section { padding: clamp(24px, 4vw, 34px); }
.csrpm-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.csrpm-related-card { padding: 16px; text-decoration: none; display: flex; gap: 12px; align-items: center; color: var(--csrpm-ink); font-weight: 900; }
.csrpm-related-card .csrpm-saint-portrait { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px; }
.csrpm-single-favor { background: var(--csrpm-paper); min-height: 70vh; }
.csrpm-favors-archive .csrpm-archive-hero .csrpm-btn { margin-top: 14px; }

@media (max-width: 980px) {
  .csrpm-saint-hero-inner, .csrpm-saint-body { grid-template-columns: 1fr; }
  .csrpm-saint-sidebar { position: static; }
  .csrpm-favor-grid, .csrpm-related-grid { grid-template-columns: 1fr 1fr; }
  .csrpm-saint-glance-inner { grid-template-columns: 1fr 1fr; }
  .csrpm-life-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .csrpm-favor-grid, .csrpm-related-grid, .csrpm-saint-glance-inner { grid-template-columns: 1fr; }
  .csrpm-saint-prose-card, .csrpm-saint-favors-panel { padding: 22px; }
  .csrpm-saint-section h2 { font-size: 30px; }
  .csrpm-saint-section p { font-size: 16px; }
  .csrpm-saint-portrait { max-width: 280px; }
  .csrpm-panel-heading { display: block; }
  .csrpm-panel-heading .csrpm-btn { margin-top: 14px; }
}

/* Version 1.4 streamlined saint profile layout */
.csrpm-single-saint-v14 .csrpm-saint-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(215,180,93,.18), transparent 28%),
    radial-gradient(circle at 14% 0%, rgba(122,27,31,.28), transparent 34%),
    linear-gradient(135deg, #130d0b 0%, #261814 100%);
  padding: clamp(42px, 5.4vw, 78px) 0 clamp(66px, 7vw, 104px);
}
.csrpm-single-saint-v14 .csrpm-saint-hero-inner {
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
}
.csrpm-single-saint-v14 .csrpm-saint-hero h1 {
  max-width: 760px;
}
.csrpm-tag-row-left { justify-content: flex-start; }
.csrpm-hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  max-width: 880px;
}
.csrpm-hero-facts div {
  border-top: 1px solid rgba(215,180,93,.26);
  padding-top: 10px;
}
.csrpm-hero-facts span {
  display: block;
  color: rgba(255,248,236,.58);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 900;
  margin-bottom: 4px;
}
.csrpm-hero-facts strong {
  color: #fff8ec;
  font-size: 14px;
  line-height: 1.35;
}
.csrpm-saint-body-v14 {
  margin-top: -40px;
  grid-template-columns: minmax(0, 820px) 310px;
  gap: 28px;
  align-items: start;
}
.csrpm-single-saint-v14 .csrpm-saint-article {
  display: block;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(84,54,35,.16);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(74,48,31,.11);
  padding: clamp(26px, 4vw, 46px);
}
.csrpm-editor-note {
  background: #fff4d8;
  border-left: 4px solid var(--csrpm-gold);
  color: #4a3214;
  padding: 14px 16px;
  margin-bottom: 26px;
  border-radius: 0 14px 14px 0;
}
.csrpm-profile-intro {
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(84,54,35,.15);
  margin-bottom: 4px;
}
.csrpm-profile-intro h2,
.csrpm-profile-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--csrpm-ink);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.csrpm-profile-intro h2 {
  font-size: clamp(34px, 4.4vw, 54px);
  margin: 0 0 16px;
}
.csrpm-profile-section {
  padding: 30px 0;
  border-bottom: 1px solid rgba(84,54,35,.15);
}
.csrpm-profile-section:last-child { border-bottom: 0; }
.csrpm-profile-section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 14px;
}
.csrpm-profile-copy p,
.csrpm-profile-section p {
  color: #5f5146;
  font-size: 18px;
  line-height: 1.75;
  margin-top: 0;
}
.csrpm-overview-list {
  margin: 4px 0 0;
  padding: 0;
  border-top: 1px solid rgba(84,54,35,.14);
}
.csrpm-overview-list div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(84,54,35,.14);
}
.csrpm-overview-list dt {
  color: var(--csrpm-burgundy);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}
.csrpm-overview-list dd {
  margin: 0;
  color: var(--csrpm-ink);
  font-weight: 700;
}
.csrpm-prayer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #fff4d8, #fffaf1);
  border: 1px solid rgba(215,180,93,.36);
  border-radius: 20px;
  padding: 24px;
  margin: 30px 0 0;
}
.csrpm-prayer-panel h2 { margin-bottom: 8px; }
.csrpm-prayer-panel p { margin-bottom: 0; }
.csrpm-section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.csrpm-section-heading-row p { margin-bottom: 0; }
.csrpm-favor-count-line {
  margin: 18px 0 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(84,54,35,.12);
  border-bottom: 1px solid rgba(84,54,35,.12);
  color: #5f5146;
}
.csrpm-favor-count-line strong {
  color: var(--csrpm-burgundy);
  font-family: Georgia, serif;
  font-size: 30px;
  margin-right: 8px;
}
.csrpm-sidebar-card-v14 {
  border-radius: 22px;
  box-shadow: 0 14px 48px rgba(74,48,31,.11);
}
.csrpm-sidebar-card-v14 .csrpm-btn { width: 100%; }
.csrpm-related-section { padding-bottom: 0; }

/* Version 1.4 smart local devotional image placeholders */
.csrpm-single-saint-v14 .csrpm-saint-portrait,
.csrpm-saints-archive .csrpm-saint-portrait {
  background: #211713;
}
.csrpm-saint-placeholder {
  isolation: isolate;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: #fff8ec;
  background:
    radial-gradient(circle at 50% 22%, rgba(255,248,236,.34), transparent 19%),
    radial-gradient(circle at 50% 28%, rgba(215,180,93,.22), transparent 32%),
    linear-gradient(145deg, #2b1b15 0%, #651f27 58%, #b9903b 140%);
}
.csrpm-saint-placeholder:before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(215,180,93,.36);
  border-radius: inherit;
  z-index: 1;
}
.csrpm-saint-placeholder:after {
  content: "";
  position: absolute;
  width: 55%;
  height: 46%;
  left: 22.5%;
  bottom: 19%;
  border-radius: 50% 50% 18% 18%;
  background: linear-gradient(180deg, rgba(255,248,236,.13), rgba(20,15,13,.34));
  box-shadow: inset 0 1px 0 rgba(255,248,236,.16);
  z-index: 0;
}
.csrpm-placeholder-halo {
  position: absolute;
  top: 13%;
  left: 50%;
  width: 46%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(245,217,135,.62);
  box-shadow: 0 0 40px rgba(215,180,93,.24), inset 0 0 22px rgba(215,180,93,.12);
  z-index: 0;
}
.csrpm-placeholder-symbol {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(245,217,135,.86);
  font-size: clamp(46px, 7vw, 74px);
  line-height: 1;
  z-index: 2;
  text-shadow: 0 10px 28px rgba(0,0,0,.32);
}
.csrpm-saint-placeholder strong {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: clamp(54px, 8vw, 86px);
  line-height: 1;
  color: rgba(255,248,236,.88);
  opacity: 1;
  z-index: 2;
  letter-spacing: -.06em;
}
.csrpm-saint-placeholder em {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  color: rgba(255,248,236,.68);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-style: normal;
  font-weight: 900;
  z-index: 2;
}
.csrpm-placeholder-martyr { background: radial-gradient(circle at 50% 24%, rgba(245,217,135,.28), transparent 28%), linear-gradient(145deg, #211713 0%, #7a1b1f 58%, #d7b45d 142%); }
.csrpm-placeholder-doctor { background: radial-gradient(circle at 50% 24%, rgba(245,217,135,.24), transparent 28%), linear-gradient(145deg, #1e1610 0%, #48331f 58%, #d7b45d 150%); }
.csrpm-placeholder-mystic { background: radial-gradient(circle at 50% 24%, rgba(245,217,135,.26), transparent 28%), linear-gradient(145deg, #17110f 0%, #36214a 56%, #d7b45d 146%); }
.csrpm-placeholder-healing { background: radial-gradient(circle at 50% 24%, rgba(245,217,135,.25), transparent 28%), linear-gradient(145deg, #191611 0%, #285042 58%, #d7b45d 146%); }
.csrpm-placeholder-protection { background: radial-gradient(circle at 50% 24%, rgba(245,217,135,.25), transparent 28%), linear-gradient(145deg, #17110f 0%, #21344f 58%, #d7b45d 146%); }
.csrpm-saint-card .csrpm-saint-placeholder {
  width: 104px;
  height: 104px;
  aspect-ratio: 1 / 1;
}
.csrpm-saint-card .csrpm-placeholder-halo { width: 54%; top: 12%; }
.csrpm-saint-card .csrpm-placeholder-symbol { font-size: 27px; top: 34%; }
.csrpm-saint-card .csrpm-saint-placeholder strong { font-size: 28px; bottom: 19%; }
.csrpm-saint-card .csrpm-saint-placeholder em { display: none; }
.csrpm-related-card .csrpm-saint-placeholder { width: 56px; height: 56px; }
.csrpm-related-card .csrpm-placeholder-symbol { font-size: 17px; top: 34%; }
.csrpm-related-card .csrpm-saint-placeholder strong { font-size: 16px; bottom: 18%; }
.csrpm-related-card .csrpm-saint-placeholder em { display: none; }

@media (max-width: 980px) {
  .csrpm-single-saint-v14 .csrpm-saint-hero-inner,
  .csrpm-saint-body-v14 { grid-template-columns: 1fr; }
  .csrpm-saint-body-v14 { margin-top: -34px; }
  .csrpm-hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .csrpm-saint-sidebar { position: static; }
}
@media (max-width: 680px) {
  .csrpm-single-saint-v14 .csrpm-saint-article { padding: 24px; border-radius: 22px; }
  .csrpm-overview-list div { grid-template-columns: 1fr; gap: 4px; }
  .csrpm-prayer-panel { display: grid; }
  .csrpm-hero-facts { grid-template-columns: 1fr; }
  .csrpm-saint-placeholder em { font-size: 11px; }
}

/* Version 1.5 fixed saint portrait sizing and cleaner saint pages */
.csrpm-single-saint-v14 .csrpm-saint-hero-inner {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}
.csrpm-single-saint-v14 .csrpm-saint-portrait-wrap {
  justify-content: center;
  align-items: center;
}
.csrpm-single-saint-v14 .csrpm-saint-portrait {
  width: min(300px, 100%);
  height: 375px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 26px;
}
.csrpm-single-saint-v14 .csrpm-saint-placeholder {
  width: min(300px, 100%);
  height: 375px;
}
.csrpm-saint-card .csrpm-saint-portrait,
.csrpm-saint-card .csrpm-saint-placeholder {
  width: 104px;
  height: 104px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
}
.csrpm-related-card .csrpm-saint-portrait,
.csrpm-related-card .csrpm-saint-placeholder {
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
}
.csrpm-single-saint-v14 .csrpm-sidebar-note {
  display: none !important;
}
.csrpm-profile-copy p {
  color: #4f433b;
}
@media (max-width: 980px) {
  .csrpm-single-saint-v14 .csrpm-saint-hero-inner {
    grid-template-columns: 1fr;
  }
  .csrpm-single-saint-v14 .csrpm-saint-portrait,
  .csrpm-single-saint-v14 .csrpm-saint-placeholder {
    width: min(260px, 100%);
    height: 325px;
  }
}
@media (max-width: 680px) {
  .csrpm-single-saint-v14 .csrpm-saint-portrait,
  .csrpm-single-saint-v14 .csrpm-saint-placeholder {
    width: min(230px, 100%);
    height: 288px;
    border-radius: 22px;
  }
}

/* Version 1.6 language switcher, public prayer-table cleanup, and archive hero fixes */
.csrpm-language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 50;
}
.csrpm-language-toggle {
  appearance: none;
  border: 1px solid rgba(215,180,93,.32);
  background: rgba(255,250,241,.08);
  color: #fff8ec;
  border-radius: 999px;
  min-height: 36px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.csrpm-language-toggle:hover,
.csrpm-language-toggle[aria-expanded="true"] {
  border-color: rgba(215,180,93,.58);
  color: var(--csrpm-gold);
}
.csrpm-language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  max-height: min(460px, 70vh);
  overflow: auto;
  background: #fffaf1;
  color: var(--csrpm-ink);
  border: 1px solid rgba(215,180,93,.38);
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
  padding: 8px;
}
.csrpm-language-menu[hidden] { display: none; }
.csrpm-language-menu button {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--csrpm-ink);
  padding: 9px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.csrpm-language-menu button:hover,
.csrpm-language-menu button:focus {
  background: #f1e5d2;
  outline: none;
}
.csrpm-google-translate-holder {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
body > .skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}
html.translated-ltr body,
html.translated-rtl body,
body.translated-ltr,
body.translated-rtl {
  top: 0 !important;
}
.csrpm-archive-hero {
  padding-left: 24px;
  padding-right: 24px;
}
.csrpm-archive-hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.csrpm-public-prayer-table-steps .csrpm-step p {
  color: rgba(255,248,236,.78);
}
.entry-content.csr-plugin-page-full {
  width: 100%;
  max-width: none;
  margin: 0;
}
.entry-content.csr-plugin-page-full .csrpm-saints-archive,
.entry-content.csr-plugin-page-full .csrpm-favors-archive,
.entry-content.csr-plugin-page-full .csrpm-template-wrap {
  width: 100%;
}
@media (max-width: 1080px) {
  .csrpm-language-toggle span { display: none; }
  .csrpm-language-toggle { padding-inline: 10px; }
}
@media (max-width: 680px) {
  .csrpm-language-switcher { order: 8; }
  .csrpm-language-menu { right: auto; left: 50%; transform: translateX(-50%); }
}
