:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: #322841;
  background: #f8f5fc;
  --ink: #322841;
  --plum: #452757;
  --muted: #61556b;
  --border: #e5dced;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #b74940; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1150px, calc(100% - 72px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner, .brand, .header-actions { display: flex; align-items: center; }
.header-inner { min-height: 70px; justify-content: space-between; gap: 12px; }
.brand { gap: 8px; color: var(--plum); font-size: 1.06rem; white-space: nowrap; }
.brand img { width: 37px; height: auto; }
.header-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; margin-top: 30px; min-height: 295px; display: grid; align-items: center; padding: 46px; color: #fff; background: #301b45; }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.hero h1 { max-width: 11ch; font-family: var(--serif); font-weight: 500; font-size: clamp(3.1rem, 7vw, 6.1rem); letter-spacing: -.065em; line-height: .98; text-wrap: balance; }
.hero p { margin-top: 18px; color: #f5e6fb; font-size: clamp(1rem, 2vw, 1.24rem); line-height: 1.45; }
.hero-art { position: absolute; z-index: 0; inset: 0; pointer-events: none; opacity: .95; background: radial-gradient(ellipse at 83% 70%, #ab5b69 0, #764060 23%, transparent 54%), radial-gradient(ellipse at 95% 18%, #64458a 0, transparent 55%); }
.hero-art::before { content: ''; position: absolute; width: clamp(190px, 31vw, 390px); aspect-ratio: 1; right: 7%; top: 7%; border-radius: 50%; background: radial-gradient(circle at 38% 23%, #ffdbab, #df8d77 44%, #ad5274 83%); box-shadow: 0 0 65px #ffc49440; opacity: .92; }
.hero-art::after { content: ''; position: absolute; width: clamp(230px, 40vw, 510px); height: 210%; right: 2%; top: 20%; border-radius: 50% 50% 0 0 / 33% 33% 0 0; border: 1px solid #f8dfc69c; transform: rotate(22deg); box-shadow: -29px 0 0 -1px #5d31568f, -30px 0 0 #f8dfc654, inset 28px 0 0 #63355b5e, inset 29px 0 0 #f8dfc642; }
.wall { padding-block: 33px 50px; }
.section-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.section-title h2, .card h2 { color: var(--plum); font-family: var(--serif); font-size: 1.9rem; font-weight: 500; letter-spacing: -.035em; }
.prayer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: 15px; }
.prayer-card, .card, .empty-state { border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.prayer-card { min-width: 0; padding: 21px; border-top: 3px solid #9569ad; box-shadow: 0 4px 15px #4324590a; }
.prayer-grid .prayer-card:nth-child(3n + 2) { border-top-color: #c67460; }
.prayer-grid .prayer-card:nth-child(3n + 3) { border-top-color: #68887f; }
.prayer-card h3 { margin-bottom: 8px; color: var(--plum); font-family: var(--serif); font-size: 1.43rem; font-weight: 500; line-height: 1.13; overflow-wrap: anywhere; }
.prayer-card p { color: var(--ink); line-height: 1.56; white-space: pre-wrap; overflow-wrap: anywhere; }
.prayer-card time { display: block; margin-top: 16px; color: var(--muted); font-size: .83rem; }
.empty-state { color: var(--muted); padding: 22px; line-height: 1.5; }
.admin-hero { min-height: 208px; padding-block: 32px; }
.admin-hero h1 { font-size: clamp(2.45rem, 5vw, 4.6rem); max-width: 15ch; }
.admin-hero .hero-art { opacity: .58; }
.management { display: grid; grid-template-columns: minmax(285px, .9fr) minmax(290px, 1.1fr); gap: 20px; align-items: start; padding-block: 24px 46px; }
.card { padding: 22px; }
.login-panel { width: min(470px, 100%); margin: 22px 0 42px; }
.form { display: grid; gap: 12px; margin-top: 15px; }
.form label { display: grid; gap: 5px; font-size: .91rem; font-weight: 680; }
.form input, .form textarea { width: 100%; min-width: 0; padding: 9px 11px; border-radius: 8px; border: 1px solid #c9bbd3; background: white; color: var(--ink); font-size: 1rem; font-weight: 500; }
.form textarea { resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 7px 12px; border-radius: 8px; font-size: .86rem; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2; }
.primary { color: #fff; border: 1px solid var(--plum); background: var(--plum); }
.primary:hover { background: #563366; }
.outline { color: var(--ink); border: 1px solid #d8cbe3; background: #fff; }
.outline:hover { background: #f4eef9; }
button:disabled { opacity: .55; cursor: wait; }
.badge { display: inline-block; margin-bottom: 9px; width: fit-content; padding: 3px 7px; border-radius: 5px; background: #fae5ce; color: #674410; font-size: .78rem; font-weight: 720; }
.badge.published { color: #305b48; background: #e1eee6; }
.review-list { display: grid; gap: 10px; }
.review-list .form-actions { margin-top: 14px; }
.notice { margin-top: 16px; border-radius: 8px; padding: 10px 13px; color: #503761; background: #eee5f5; line-height: 1.35; overflow-wrap: anywhere; }
.notice.problem, .error { color: #99372e; }
.hint { font-size: .86rem; color: var(--muted); line-height: 1.42; }
.error { font-size: .88rem; font-weight: 650; }
@media (max-width: 740px) {
  .shell { width: calc(100% - 32px); }
  .hero { margin-top: 18px; padding: 29px; min-height: 230px; }
  .hero-art { opacity: .7; }
  .hero-art::before { right: -28px; }
  .hero-art::after { right: -50px; }
  .management { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 415px) {
  .header-inner { min-height: 60px; }
  .brand { font-size: .9rem; }
  .brand img { width: 28px; }
  .header-actions { gap: 4px; }
  .header-actions .button { padding-inline: 6px; font-size: .78rem; }
  .hero { padding: 21px; }
  .hero p { max-width: 21ch; }
  .hero-art { opacity: .5; }
}

.prayer-public {
  background: radial-gradient(ellipse at 52% 38%, #fbf6ec 0, #f4ecdf 64%, #ede1cd 100%);
}
.prayer-public .site-header { background: #fffbf5; border-color: #e9ddca; }
.prayer-public .brand, .prayer-public .section-title h2 { color: #503b2c; }
.prayer-public .prayer-banner {
  min-height: 330px;
  padding-block: 39px;
  background-color: #38261d;
  background-image: linear-gradient(92deg, #21140fea 0, #2c1d15bb 39%, #2e1d141c 76%), url("/recursos-berea/prayer-banner.0beea24a8990.jpg");
  background-position: center, 56% 53%;
  background-size: cover;
}
.prayer-public .hero h1 { max-width: 14ch; font-size: clamp(2.75rem, 6.25vw, 5.6rem); }
.prayer-public .hero p { color: #fbead4; }
.banner-button { margin-top: 20px; min-height: 44px; padding-inline: 16px; color: #462b1d; background: #fff2d9; border: 1px solid #fff2d9; }
.banner-button:hover { background: #fff9ee; }
.banner-button:focus-visible { outline-color: #fff8ec; }
.prayer-grid:not(:empty) {
  --stone: url("/recursos-berea/limestone.4d897ae3f193.jpg");
  display: grid;
  gap: 6px;
  padding: 7px;
  align-items: stretch;
  background: #c1ab89;
  border: 1px solid #b19a78;
  border-radius: 10px;
  box-shadow: inset 0 3px 12px #50371e36, 0 10px 26px #62432010;
}
.prayer-brick {
  --stone-light: #fcebc25e;
  --stone-dark: #b58b4119;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: #3e2a1e;
  background-color: #e9cfa0;
  background-image: linear-gradient(152deg, var(--stone-light), var(--stone-dark)), var(--stone);
  background-size: auto, 250px 250px;
  background-position: center, left top;
  border: 1px solid #a88455;
  border-radius: 5px 7px 5px 6px;
  box-shadow: inset 2px 2px 4px #fff5d7ad, inset -2px -2px 4px #76523245, 0 2px 2px #472b2150;
}
.prayer-brick:nth-child(3n + 2) {
  --stone-light: #fff7da7a;
  --stone-dark: #ab6e3830;
  background-position: center, 70% 37%;
  border-radius: 8px 5px 5px 7px;
}
.prayer-brick:nth-child(3n) {
  --stone-light: #f9ddac8c;
  --stone-dark: #c2937159;
  background-position: center, 40% 70%;
}
.brick-flipper { --closed-height: 132px; perspective: 720px; }
.brick-faces { position: relative; min-height: var(--closed-height); transform-style: preserve-3d; transition: transform .44s cubic-bezier(.2,.66,.29,1); }
.is-flipped .brick-faces { transform: rotateY(180deg); }
.prayer-grid > .prayer-brick.is-flipped { grid-column: 1 / -1; scroll-margin-top: 16px; }
.brick-front, .brick-back {
  position: absolute;
  inset: 2px;
  border-radius: 4px;
  color: #3b281d;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 11px 12px 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.button.brick-front { border: 0; background: transparent; justify-content: flex-start; }
.brick-front:hover { background: #fff7e54d; }
.brick-title, .brick-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.brick-title { font: 700 clamp(.99rem, 2vw, 1.25rem)/1.13 var(--serif); }
.brick-summary { font-size: .81rem; line-height: 1.28; font-weight: 520; }
.brick-action { margin-top: auto; color: #6c4b32; font-size: .71rem; font-weight: 750; }
.brick-back { transform: rotateY(180deg); background: #fff5e2e8; overflow: hidden; }
.is-flipped .brick-front { bottom: auto; height: calc(var(--closed-height) - 4px); }
.is-flipped .brick-back {
  position: relative;
  inset: auto;
  min-height: var(--closed-height);
  padding: clamp(13px, 3vw, 24px);
  margin: 2px;
  gap: 10px;
  overflow: visible;
}
.brick-details { max-width: 76ch; font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.brick-details strong { display: block; margin-bottom: 5px; font-weight: 760; }
.brick-details p { white-space: pre-wrap; }
.brick-details time { display: block; margin-top: 7px; color: #694d34; font-size: .75rem; }
.button.brick-return { min-height: 25px; width: fit-content; padding: 3px 7px; border: 1px solid #c4a67f; background: #fff7e9; color: #493122; font-size: .75rem; }
.brick-response { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; padding: 5px 8px 8px; border-top: 1px solid #a787576b; }
.button.prayer-response { min-height: 35px; padding: 3px 7px; gap: 4px; border: 1px solid #b38f60; background: #fff7e7ce; color: #593821; font-size: .75rem; }
.button.prayer-response:hover { background: #fffaf0; }
.prayer-response[aria-pressed="true"] { background: #e5edd6; color: #344b29; border-color: #85936e; }
.prayer-response[aria-busy="true"] { cursor: wait; opacity: .7; }
.prayer-symbol { font-size: 1.04rem; }
.prayer-count { font-size: .73rem; font-weight: 650; color: #573f2c; }
.response-notice { position: fixed; z-index: 5; bottom: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); padding: 10px 14px; border-radius: 8px; background: #493327; color: #fff7eb; box-shadow: 0 4px 15px #39221654; font-size: .93rem; pointer-events: none; text-align: center; }
.prayer-card .review-summary { margin-bottom: 7px; color: var(--muted); }
.delete-link { color: #982d26; }
.delete-link:hover { background: #fff0ed; }
.danger { border: 1px solid #982d26; background: #982d26; color: #fff; }
.danger:hover { background: #792720; }
.delete-dialog, .request-dialog { width: min(460px, calc(100% - 28px)); max-height: calc(100dvh - 28px); color: var(--ink); border: 1px solid var(--border); border-radius: 15px; padding: 21px; box-shadow: 0 14px 54px #24142b66; }
.delete-dialog::backdrop, .request-dialog::backdrop { background: #22142975; }
.delete-dialog h2, .request-dialog h2 { font: 500 1.6rem/1.12 var(--serif); }
.delete-dialog p { margin: 12px 0 16px; line-height: 1.4; overflow-wrap: anywhere; }
.request-dialog .primary { color: #fff8eb; background: #684732; border-color: #684732; }
.request-dialog .primary:hover { background: #523625; }
@media (min-width: 1030px) {
  .prayer-grid { grid-template-columns: repeat(16, minmax(0, 1fr)); }
  .prayer-brick { grid-column: span 4; }
  .prayer-brick:nth-child(8n + 5) { grid-column: 2 / span 4; }
  .prayer-brick:nth-child(8n + 8) { grid-column: span 3; }
}
@media (min-width: 670px) and (max-width: 1029px) {
  .prayer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .prayer-brick { grid-column: span 4; }
  .prayer-brick:nth-child(6n + 4) { grid-column: 2 / span 4; }
  .prayer-brick:nth-child(6n + 6) { grid-column: span 3; }
}
@media (max-width: 669px) {
  .prayer-public .prayer-banner {
    min-height: 265px;
    background-image: linear-gradient(92deg, #21140fe8, #312016aa 70%, #2e1d1466), url("/recursos-berea/prayer-banner.0beea24a8990.jpg");
    background-position: center, 65% 52%;
  }
  .prayer-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .prayer-brick { grid-column: span 4; }
  .prayer-brick:nth-child(4n + 3) { grid-column: 2 / span 4; }
  .prayer-brick:nth-child(4n + 4) { grid-column: span 3; }
  .brick-front { padding-inline: 7px; }
  .brick-response { padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .brick-faces { transition: none; }
}
