/* =========================================================
   DokPro.ee — Addons layer
   Non-destructive additions on top of styles.css:
   - Sticky floating CTA (always visible)
   - GDPR cookie banner + preferences modal
   - PWA install prompt (banner + iOS hint)
   - Global toast
   - Account + email templates scoped styles
   ========================================================= */

/* ---------- Shared tokens (fallbacks so addons work even if loaded first) ---------- */
:root {
  --dp-radius-lg: var(--radius-lg, 16px);
  --dp-radius-md: var(--radius-md, 12px);
  --dp-shadow-xl: var(--shadow-xl, 0 30px 60px -20px rgba(15,23,42,.25));
  --dp-shadow-md: var(--shadow-md, 0 10px 30px -10px rgba(15,23,42,.18));
  --dp-ink: var(--color-ink, #0F172A);
  --dp-ink-muted: var(--color-ink-muted, #475569);
  --dp-bg: var(--color-bg, #FFFFFF);
  --dp-bg-soft: var(--color-bg-soft, #F8FAFC);
  --dp-border: var(--color-border, #E2E8F0);
  --dp-accent: var(--color-accent, #B08A3E);
  --dp-accent-ink: var(--color-accent-ink, #0F172A);
  --dp-primary: var(--color-primary, #0F172A);
  --dp-space: 16px;
}

/* =========================================================
   1. Sticky floating CTA (always visible — desktop + mobile)
      Acts as a permanent "Toeta DokProd" affordance.
   ========================================================= */
.dp-sticky-cta {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 16px;
  background: var(--dp-ink);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 14px 34px -10px rgba(15, 23, 42, .45),
    0 2px 6px rgba(15, 23, 42, .18),
    inset 0 0 0 1px rgba(233, 200, 124, .08);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  will-change: transform;
  margin-bottom: env(safe-area-inset-bottom, 0);
  margin-right: env(safe-area-inset-right, 0);
}
/* Gold accent heart icon */
.dp-sticky-cta::before {
  content: "";
  width: 22px; height: 22px;
  flex: none;
  background:
    radial-gradient(circle at 30% 30%, #F2D58C 0%, #D4A84A 55%, #8F6B28 100%);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M12 21s-7-4.35-9.5-9A5.5 5.5 0 0 1 12 6a5.5 5.5 0 0 1 9.5 6C19 16.65 12 21 12 21z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M12 21s-7-4.35-9.5-9A5.5 5.5 0 0 1 12 6a5.5 5.5 0 0 1 9.5 6C19 16.65 12 21 12 21z'/></svg>") center/contain no-repeat;
}
.dp-sticky-cta:hover {
  transform: translateY(-2px);
  background: #1E293B;
  box-shadow:
    0 20px 42px -12px rgba(15, 23, 42, .5),
    0 2px 6px rgba(15, 23, 42, .22);
}
.dp-sticky-cta:active { transform: translateY(0); }
.dp-sticky-cta:focus-visible {
  outline: 3px solid #E9C87C;
  outline-offset: 3px;
}
.dp-sticky-cta__label { white-space: nowrap; }

@media (max-width: 520px) {
  .dp-sticky-cta { padding: 11px 16px 11px 13px; font-size: 13.5px; }
  .dp-sticky-cta::before { width: 18px; height: 18px; }
}

/* Shift up when cookie banner is visible */
body.dp-cookie-open .dp-sticky-cta { transform: translateY(-96px); }
body.dp-install-open .dp-sticky-cta { transform: translateY(-96px); }

/* =========================================================
   2. Cookie consent banner + preferences modal
   ========================================================= */
.dp-cookie {
  position: fixed;
  left: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 90;
  max-width: 880px;
  margin-inline: auto;
  background: #fff;
  color: var(--dp-ink);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-lg);
  box-shadow: var(--dp-shadow-xl);
  padding: 20px 22px;
  display: none;
  margin-bottom: env(safe-area-inset-bottom, 0);
}
.dp-cookie[data-open="true"] { display: block; animation: dpSlideUp .25s ease; }
@keyframes dpSlideUp {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.dp-cookie__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.dp-cookie__text h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.dp-cookie__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dp-ink-muted);
}
.dp-cookie__text a { color: inherit; text-decoration: underline; }
.dp-cookie__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dp-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  font-family: inherit;
}
.dp-btn--primary { background: var(--dp-ink); color: #fff; }
.dp-btn--primary:hover { background: #1E293B; }
.dp-btn--ghost { background: transparent; color: var(--dp-ink); border-color: var(--dp-border); }
.dp-btn--ghost:hover { background: var(--dp-bg-soft); }
.dp-btn--text { background: transparent; color: var(--dp-ink-muted); padding: 10px 8px; }
.dp-btn--text:hover { color: var(--dp-ink); }

@media (max-width: 640px) {
  .dp-cookie__inner { grid-template-columns: 1fr; }
  .dp-cookie__actions { justify-content: stretch; }
  .dp-cookie__actions .dp-btn { flex: 1; min-width: 0; }
}

/* Modal (shared for preferences + install hint) */
.dp-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dp-modal[data-open="true"] { display: flex; animation: dpFade .2s ease; }
@keyframes dpFade { from { opacity: 0 } to { opacity: 1 } }
.dp-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
}
.dp-modal__card {
  position: relative;
  background: #fff;
  color: var(--dp-ink);
  border-radius: var(--dp-radius-lg);
  box-shadow: var(--dp-shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 26px 26px 22px;
}
.dp-modal__card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}
.dp-modal__card p.dp-muted {
  color: var(--dp-ink-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.dp-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--dp-ink-muted);
}
.dp-modal__close:hover { background: var(--dp-bg-soft); color: var(--dp-ink); }

.dp-pref-list { display: grid; gap: 10px; margin: 0 0 20px; }
.dp-pref {
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  background: #fff;
}
.dp-pref h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.dp-pref p  { margin: 0; font-size: 13.5px; color: var(--dp-ink-muted); line-height: 1.5; }

/* Toggle switch */
.dp-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.dp-switch input { opacity: 0; width: 0; height: 0; }
.dp-switch__slider {
  position: absolute; inset: 0;
  background: #CBD5E1;
  border-radius: 999px;
  transition: background .15s ease;
  cursor: pointer;
}
.dp-switch__slider::before {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.dp-switch input:checked + .dp-switch__slider { background: #16A34A; }
.dp-switch input:checked + .dp-switch__slider::before { transform: translateX(18px); }
.dp-switch input:disabled + .dp-switch__slider { opacity: .5; cursor: not-allowed; background: #94A3B8; }

/* =========================================================
   3. PWA install prompt
   ========================================================= */
.dp-install {
  position: fixed;
  left: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 85;
  max-width: 520px;
  margin-inline: auto;
  background: var(--dp-ink);
  color: #fff;
  border-radius: var(--dp-radius-lg);
  box-shadow: var(--dp-shadow-xl);
  padding: 16px 18px;
  display: none;
  gap: 14px;
  align-items: center;
  margin-bottom: env(safe-area-inset-bottom, 0);
}
.dp-install[data-open="true"] { display: flex; animation: dpSlideUp .25s ease; }
.dp-install__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background:
    linear-gradient(135deg, #E9C87C, var(--dp-accent));
  flex: none;
  display: grid; place-items: center;
  color: var(--dp-ink);
  font-weight: 700;
  font-family: Georgia, serif;
}
.dp-install__body { flex: 1; min-width: 0; }
.dp-install__body strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.dp-install__body p { margin: 0; font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.45; }
.dp-install__actions { display: flex; gap: 6px; flex: none; }
.dp-install .dp-btn--primary { background: var(--dp-accent); color: var(--dp-ink); }
.dp-install .dp-btn--primary:hover { background: #E9C87C; }
.dp-install .dp-btn--ghost { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.2); }
.dp-install .dp-btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

/* iOS share-hint illustration inside modal */
.dp-ios-hint {
  display: grid; gap: 10px;
  background: var(--dp-bg-soft);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--dp-ink-muted);
}
.dp-ios-hint ol { margin: 0; padding-left: 18px; }
.dp-ios-hint li { margin-bottom: 4px; }
.dp-ios-hint svg { vertical-align: -3px; }

/* =========================================================
   4. Toast
   ========================================================= */
.dp-toast {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 4vw, 36px);
  transform: translateX(-50%) translateY(20px);
  background: var(--dp-ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--dp-shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 120;
}
.dp-toast[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   5. Account pages (signup / delete)
   ========================================================= */
.dp-auth {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--dp-shadow-md);
}
.dp-auth h2 { margin: 0 0 6px; font-size: 24px; font-weight: 600; }
.dp-auth p.dp-auth__sub { margin: 0 0 22px; color: var(--dp-ink-muted); font-size: 15px; }
.dp-auth .field-group + .field-group { margin-top: 14px; }
.dp-auth .dp-auth__actions { margin-top: 18px; display: grid; gap: 10px; }
.dp-auth__foot {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--dp-ink-muted);
}
.dp-auth__foot a { color: var(--dp-ink); text-decoration: underline; }

.dp-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--dp-bg-soft);
  border: 1px solid var(--dp-border);
  border-radius: 999px;
  margin-bottom: 22px;
}
.dp-auth__tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--dp-ink-muted);
  font-family: inherit;
}
.dp-auth__tab[aria-selected="true"] {
  background: #fff;
  color: var(--dp-ink);
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
}

.dp-danger {
  border: 1px solid #FCA5A5;
  background: #FEF2F2;
  color: #7F1D1D;
  border-radius: var(--dp-radius-md);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
}
.dp-danger strong { color: #991B1B; }

.dp-btn-danger {
  background: #DC2626;
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.dp-btn-danger:hover { background: #B91C1C; }
.dp-btn-danger:disabled { opacity: .6; cursor: not-allowed; }

/* =========================================================
   6. Stripe buy-button spacing in pricing
   ========================================================= */
.dp-stripe-slot {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.dp-stripe-slot stripe-buy-button { width: 100%; }

/* =========================================================
   7. Adaptive button contrast (dark surface overrides)
   Ghost / link buttons on dark CTA bands or hero-inverse areas
   must render with light text. Bright surfaces keep dark text.
   ========================================================= */
.cta-band .btn-ghost,
.hero--invert .btn-ghost,
[data-surface="dark"] .btn-ghost {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}
/* !important needed because some buttons carry inline style="color:#fff"
   for the default state — without it, hover would stay white on white. */
.cta-band .btn-ghost:hover,
.cta-band .btn-ghost:focus,
.hero--invert .btn-ghost:hover,
.hero--invert .btn-ghost:focus,
[data-surface="dark"] .btn-ghost:hover,
[data-surface="dark"] .btn-ghost:focus {
  color: #0F172A !important;
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
}
.cta-band .btn-ghost:focus-visible,
.hero--invert .btn-ghost:focus-visible,
[data-surface="dark"] .btn-ghost:focus-visible {
  outline: 2px solid #F2D58C;
  outline-offset: 3px;
}

/* Dark-surface accent buttons: keep gold but ensure depth */
.cta-band .btn-accent,
[data-surface="dark"] .btn-accent {
  color: #0F172A;
  box-shadow: 0 8px 22px -8px rgba(212, 168, 74, 0.55);
}
.cta-band .btn-accent:hover,
[data-surface="dark"] .btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(212, 168, 74, 0.7);
}

/* Universal hover polish for all primary buttons — respects motion */
.btn {
  transition:
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Light-surface ghost hover — keep readable, never invisible */
.btn-ghost:not(.cta-band *):not([data-surface="dark"] *):hover {
  color: #0F172A;
  background: #F1F5F9;
  border-color: #0F172A;
}

/* Utility: inverse surface helper */
.is-dark-surface { color: #FFFFFF; }
.is-dark-surface .btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,.35); }
.is-dark-surface .btn-ghost:hover { background: #FFFFFF; color: #0F172A; border-color: #FFFFFF; }

/* =========================================================
   8. Brand — blue + gold DokPro logo with hover animation
   ========================================================= */
.brand {
  position: relative;
  isolation: isolate;
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background:
    radial-gradient(120% 120% at 20% 15%, #1E3A8A 0%, #0F2146 55%, #060D25 100%);
  color: #F2D58C;
  box-shadow:
    0 0 0 1px rgba(212, 168, 74, 0.45) inset,
    0 6px 18px -6px rgba(15, 33, 70, 0.55);
  font-family: var(--font-serif, "Fraunces", Georgia, serif);
  font-weight: 700;
  font-size: 17px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand__mark::after {
  /* gold gleam sweep */
  content: "";
  position: absolute;
  inset: -60% -60%;
  background: linear-gradient(115deg,
    transparent 38%,
    rgba(242, 213, 140, 0.35) 50%,
    transparent 62%);
  transform: translateX(-110%);
  transition: transform .65s ease;
  pointer-events: none;
}
.brand:hover .brand__mark {
  transform: rotate(-3deg) scale(1.05);
  box-shadow:
    0 0 0 1px rgba(212, 168, 74, 0.8) inset,
    0 12px 26px -8px rgba(15, 33, 70, 0.7);
}
.brand:hover .brand__mark::after {
  transform: translateX(110%);
}
.brand:focus-visible {
  outline: none;
}
.brand:focus-visible .brand__mark {
  box-shadow:
    0 0 0 2px #F2D58C inset,
    0 0 0 4px rgba(242, 213, 140, 0.25);
}

/* Wordmark "DokPro" gains a gold underline sweep on hover */
.brand > span:not(.brand__mark) {
  position: relative;
  background-image: linear-gradient(90deg, #D4A84A, #F2D58C);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size .35s ease;
}
.brand:hover > span:not(.brand__mark) {
  background-size: 100% 2px;
}

/* Footer variant keeps the same logo system but over dark */
.footer-brand .brand__mark {
  background:
    radial-gradient(120% 120% at 20% 15%, #2453C6 0%, #0F2146 55%, #030718 100%);
  box-shadow:
    0 0 0 1px rgba(242, 213, 140, 0.5) inset,
    0 10px 26px -10px rgba(0, 0, 0, 0.55);
}

/* =========================================================
   9. Donation fund / charity tracker widget
   Usage: <div data-dp-fund></div>
   ========================================================= */
.dp-fund {
  position: relative;
  padding: 28px;
  border-radius: var(--dp-radius-lg);
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(242,213,140,0.14) 0%, rgba(15,33,70,0) 55%),
    linear-gradient(180deg, #0B1733 0%, #0F2146 100%);
  color: #F8FAFC;
  overflow: hidden;
  isolation: isolate;
}
.dp-fund::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0%, transparent 60%, rgba(212,168,74,0.08) 100%);
  pointer-events: none;
}
.dp-fund__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.dp-fund__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F2D58C;
  margin: 0;
}
.dp-fund__title {
  font-family: var(--font-serif, "Fraunces", Georgia, serif);
  font-size: 24px;
  line-height: 1.2;
  margin: 4px 0 0 0;
  color: #FFFFFF;
  font-weight: 500;
}
.dp-fund__lede {
  margin: 8px 0 18px 0;
  color: #CBD5E1;
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 56ch;
}
.dp-fund__amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-serif, "Fraunces", Georgia, serif);
}
.dp-fund__amount-value {
  font-size: 34px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}
.dp-fund__amount-goal {
  font-size: 16px;
  color: #94A3B8;
  font-family: inherit;
  font-weight: 400;
}
.dp-fund__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin: 14px 0 14px 0;
  position: relative;
}
.dp-fund__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #D4A84A 0%, #F2D58C 100%);
  border-radius: inherit;
  width: 0%;
  transition: width 1.2s cubic-bezier(.2,.65,.25,1);
  box-shadow: 0 0 18px rgba(242,213,140,0.4);
}
.dp-fund__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.dp-fund__split-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.dp-fund__split-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F2D58C;
  font-weight: 600;
}
.dp-fund__split-value {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  color: #E2E8F0;
}
.dp-fund__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.dp-fund__note {
  font-size: 12.5px;
  color: #94A3B8;
  margin: 0;
  line-height: 1.5;
}
.dp-fund__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #E1B85B 0%, #C9912F 100%);
  color: #0F172A;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px -8px rgba(201, 145, 47, 0.55);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dp-fund__cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(201,145,47,0.75); color: #0F172A; }
.dp-fund__cta:focus-visible { outline: 2px solid #F2D58C; outline-offset: 3px; }

@media (max-width: 640px) {
  .dp-fund { padding: 22px; }
  .dp-fund__amount-value { font-size: 28px; }
  .dp-fund__split { grid-template-columns: 1fr; }
}

/* =========================================================
   10. Event / gallery
   ========================================================= */
.dp-events {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.dp-event {
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.dp-event:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(15,23,42,.25); }
.dp-event__media {
  aspect-ratio: 16/10;
  background:
    linear-gradient(135deg, #0F2146 0%, #1E3A8A 100%);
  position: relative;
  display: grid;
  place-items: center;
  color: #F2D58C;
  font-family: var(--font-serif, "Fraunces", Georgia, serif);
  font-size: 24px;
}
.dp-event__body { padding: 18px; }
.dp-event__date {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dp-ink-muted);
  font-weight: 600;
}
.dp-event__title {
  font-family: var(--font-serif, "Fraunces", Georgia, serif);
  font-size: 20px;
  line-height: 1.25;
  margin: 6px 0 8px 0;
  color: var(--dp-ink);
  font-weight: 500;
}
.dp-event__desc { font-size: 14px; color: var(--dp-ink-muted); line-height: 1.55; margin: 0; }
.dp-event__tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(212,168,74,0.12);
  color: #8F6B28;
  font-weight: 700;
  margin-top: 12px;
}

.dp-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-top: 16px;
}
.dp-gallery__item {
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #0F2146;
  display: grid;
  place-items: center;
  color: rgba(242,213,140,0.35);
  font-family: var(--font-serif, serif);
  font-size: 22px;
}

/* =========================================================
   10b. Steps list (numbered stepper)
   Clean aligned numbered block for "How it works" style content.
   ========================================================= */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  counter-reset: dp-steps;
}
.steps-list > li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.steps-list > li:hover {
  border-color: #CBD5E1;
  box-shadow: 0 12px 26px -18px rgba(15, 33, 70, 0.25);
  transform: translateY(-1px);
}
.steps-list__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F2146 0%, #1E3A8A 100%);
  color: #F2D58C;
  font-family: 'Fraunces', 'Inter', serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -6px rgba(15, 33, 70, 0.45);
}
.steps-list__body h3 {
  margin: 4px 0 6px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
  color: #0F2146;
  letter-spacing: -0.01em;
}
.steps-list__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #475569;
}
.steps-list__body p a {
  color: #0F2146;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(15, 33, 70, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s ease;
}
.steps-list__body p a:hover { text-decoration-color: #0F2146; }
@media (max-width: 640px) {
  .steps-list > li { padding: 14px 16px; gap: 12px; grid-template-columns: 36px 1fr; }
  .steps-list__num { width: 36px; height: 36px; font-size: 15px; }
  .steps-list__body h3 { font-size: 16px; }
  .steps-list__body p { font-size: 14px; }
}

/* =========================================================
   11. Print & reduced-motion + high contrast
   ========================================================= */
@media print {
  .dp-sticky-cta, .dp-cookie, .dp-install, .dp-modal, .dp-toast { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .dp-cookie[data-open="true"],
  .dp-install[data-open="true"],
  .dp-modal[data-open="true"] { animation: none; }
  .dp-sticky-cta { transition: none; }
}
