/* ============================================================================
   Default ministry backgrounds (/js/minart.js): a gradient in the colours of
   the ministry's kind of work, its drawing large and faint as a watermark, and
   the same drawing small on a pane of glass. Same family as the game cards.
   ============================================================================ */
.min-art{position:absolute;inset:0;overflow:hidden;isolation:isolate;display:block;
  background:radial-gradient(120% 90% at 0% 0%,rgba(255,255,255,.22),transparent 55%),linear-gradient(140deg,var(--a),var(--b))}
/* the watermark: big, faint, tilted, off the corner */
.min-art-wm{position:absolute;right:-8%;bottom:-26%;width:62%;height:auto;aspect-ratio:1;fill:none;stroke:#ffffff;stroke-linecap:round;stroke-linejoin:round;
  opacity:.2;rotate:-12deg;transition:rotate .9s var(--ease,cubic-bezier(.16,1,.3,1)),scale .9s var(--ease,cubic-bezier(.16,1,.3,1)),opacity .5s,translate .9s var(--ease,cubic-bezier(.16,1,.3,1))}
/* the same drawing, small, on glass */
.min-art-ic{position:absolute;left:14px;top:14px;display:grid;place-items:center;width:46px;height:46px;border-radius:15px 15px 15px 5px;overflow:hidden;color:#ffffff;
  border:1px solid rgba(255,255,255,.5);background:linear-gradient(150deg,rgba(255,255,255,.36),rgba(255,255,255,.08));
  backdrop-filter:blur(8px) saturate(1.5);-webkit-backdrop-filter:blur(8px) saturate(1.5);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 12px 20px -12px rgba(0,0,0,.45);transition:rotate .6s var(--ease,cubic-bezier(.16,1,.3,1)),scale .6s var(--ease,cubic-bezier(.16,1,.3,1))}
.min-art-ic::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(158deg,rgba(255,255,255,.5),transparent 46%)}
.min-art-ic svg{position:relative;z-index:1;width:28px;height:28px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
/* a light that drifts across the picture */
.min-art::after{content:"";position:absolute;inset:-40%;z-index:-1;pointer-events:none;
  background:radial-gradient(40% 40% at 50% 50%,rgba(255,255,255,.18),transparent 70%);animation:min-art-light 14s ease-in-out infinite alternate}
@keyframes min-art-light{from{translate:-18% -10%}to{translate:18% 12%}}
@media (hover:hover){
  .min-card:hover .min-art-wm{rotate:-3deg;scale:1.12;opacity:.3;translate:-6% -6%}
  .min-card:hover .min-art-ic{rotate:-8deg;scale:1.08}
}
/* the bigger slots: a ministry's own page and its edit window */
.min-hero .min-art-ic{width:60px;height:60px;border-radius:19px 19px 19px 6px;left:20px;top:20px}
.min-hero .min-art-ic svg{width:34px;height:34px}
.min-edit-img .min-art-ic{width:34px;height:34px;left:10px;top:10px;border-radius:11px 11px 11px 4px}
.min-edit-img .min-art-ic svg{width:20px;height:20px}
/* dark mode: the same colours, a touch deeper */
:root[data-theme="dark"] .min-art{filter:brightness(.86) saturate(.95)}
@media (prefers-reduced-motion:reduce){.min-art::after{animation:none}}

/* ---------- reading plans: the same family ---------- */
.rp-cover{isolation:isolate;background:radial-gradient(120% 90% at 0% 0%,rgba(255,255,255,.24),transparent 55%),linear-gradient(145deg,color-mix(in srgb,var(--tint) 92%,#ffffff),color-mix(in srgb,var(--tint) 58%,#1b1f3a));text-shadow:0 1px 3px rgba(0,0,0,.3)}
.rp-cover>*:not(.rp-wm){position:relative;z-index:1}
.rp-wm{position:absolute;right:-10%;bottom:-22%;width:62%;height:auto;aspect-ratio:1;z-index:0;fill:none;stroke:#ffffff;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;
  opacity:.2;rotate:-12deg;pointer-events:none;transition:rotate .9s var(--ease,cubic-bezier(.16,1,.3,1)),scale .9s var(--ease,cubic-bezier(.16,1,.3,1)),opacity .5s,translate .9s var(--ease,cubic-bezier(.16,1,.3,1))}
.rp-glass{position:absolute !important;left:12px;top:12px;display:grid;place-items:center;width:40px;height:40px;border-radius:13px 13px 13px 5px;overflow:hidden;color:#ffffff;
  border:1px solid rgba(255,255,255,.5);background:linear-gradient(150deg,rgba(255,255,255,.36),rgba(255,255,255,.08));
  backdrop-filter:blur(8px) saturate(1.5);-webkit-backdrop-filter:blur(8px) saturate(1.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 10px 18px -12px rgba(0,0,0,.45);
  transition:rotate .6s var(--ease,cubic-bezier(.16,1,.3,1)),scale .6s var(--ease,cubic-bezier(.16,1,.3,1))}
.rp-glass::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(158deg,rgba(255,255,255,.5),transparent 46%)}
.rp-glass svg{position:relative;z-index:1;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.rp-cover.big .rp-glass{width:58px;height:58px;left:18px;top:18px;border-radius:18px 18px 18px 6px} .rp-cover.big .rp-glass svg{width:34px;height:34px}
.rp-mycard .rp-glass,.rp-church-plan .rp-glass{width:30px;height:30px;left:8px;top:8px;border-radius:10px 10px 10px 4px} .rp-mycard .rp-glass svg,.rp-church-plan .rp-glass svg{width:18px;height:18px}
@media (hover:hover){
  .rp-tile:hover .rp-wm,.rp-mycard:hover .rp-wm{rotate:-3deg;scale:1.12;opacity:.3;translate:-6% -6%}
  .rp-tile:hover .rp-glass,.rp-mycard:hover .rp-glass{rotate:-8deg;scale:1.08}
}
:root[data-theme="dark"] .rp-cover{filter:brightness(.88) saturate(.95)}
/* the title never runs into the icon: room above it for the glass */
.rp-cover{padding-top:62px} .rp-cover.big{padding-top:92px} .rp-mycard .rp-cover,.rp-church-plan .rp-cover{padding-top:44px}
