/* Deshratna v65 · 15 November 2026 — the 3D design (cards and realistic 3D icons). Everything here applies only while <html> carries the
   class "d3", which design3d-v65.js sets from the Super Admin's switch (Appearance). Switched off: none of these rules apply and the
   earlier design shows exactly as before. Colours come from each page's own variables, so the light and dark themes both work. */

/* ---------------------------------------------------------------- shared: the 3D pictures */
html.d3 .d3-ic, html.d3 .d3-hi, html.d3 .d3-fi, html.d3 .d3-ph, html.d3 .d3-badge img {
  display: block; object-fit: contain; flex: none; pointer-events: none; -webkit-user-drag: none; user-select: none;
  filter: drop-shadow(0 4px 5px rgba(15, 23, 42, .22)) drop-shadow(0 1px 1px rgba(15, 23, 42, .18));
  transition: transform .25s cubic-bezier(.2, .8, .2, 1.2);
}
html:not(.d3) .d3-ic, html:not(.d3) .d3-hi, html:not(.d3) .d3-fi, html:not(.d3) .d3-ph, html:not(.d3) .d3-badge { display: none !important; }
html.d3 .d3-has > svg { display: none !important; }
html.d3 .d3-ic { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- number cards (website panels, quiz, field app) */
html.d3 .kpi.d3-card {
  --d3tone: #2F5DA8;
  position: relative; overflow: hidden; isolation: isolate;
  padding-right: 74px;
  border-radius: 18px;
  background: var(--paper, var(--card, #fff));
  background: linear-gradient(155deg, color-mix(in srgb, var(--d3tone) 9%, var(--paper, var(--card, #fff))) 0%, var(--paper, var(--card, #fff)) 58%);
  border: 1px solid color-mix(in srgb, var(--d3tone) 18%, var(--line, #E2E8F0));
  box-shadow: 0 1px 1px rgba(15, 23, 42, .04), 0 6px 14px -6px rgba(15, 23, 42, .14), 0 18px 34px -20px color-mix(in srgb, var(--d3tone) 45%, transparent);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
html.d3 .kpi.d3-card::after {   /* soft light from the top-left corner */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .55), transparent 55%);
}
html.d3 .kpi.d3-card > .d3-badge {
  position: absolute; top: 12px; right: 12px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px;
  background: radial-gradient(circle at 30% 22%, #fff 0%, color-mix(in srgb, var(--d3tone) 16%, #fff) 58%, color-mix(in srgb, var(--d3tone) 30%, #fff) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -2px 6px color-mix(in srgb, var(--d3tone) 18%, transparent), 0 10px 18px -10px color-mix(in srgb, var(--d3tone) 70%, transparent);
}
html.d3 .kpi.d3-card > .d3-badge img { width: 38px; height: 38px; }
html.d3 .kpi.d3-card .value, html.d3 .kpi.d3-card .kpi-v { letter-spacing: -.02em; }
html.d3 .kpi.d3-card.gold, html.d3 .kpi.d3-card.teal, html.d3 .kpi.d3-card.navy, html.d3 .kpi.d3-card.red { border-top-width: 3px; }
@media (hover: hover) {
  html.d3 .kpi.d3-card:hover { transform: translateY(-3px); box-shadow: 0 2px 2px rgba(15, 23, 42, .05), 0 14px 26px -10px rgba(15, 23, 42, .22), 0 26px 44px -22px color-mix(in srgb, var(--d3tone) 55%, transparent); }
  html.d3 .kpi.d3-card:hover > .d3-badge img { transform: translateY(-2px) scale(1.08) rotate(-4deg); }
}
html.d3 .kpi.d3-card:active { transform: scale(.985); }
@media (max-width: 520px) {
  html.d3 .kpi.d3-card { padding-right: 58px; border-radius: 16px; }
  html.d3 .kpi.d3-card > .d3-badge { top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 13px; }
  html.d3 .kpi.d3-card > .d3-badge img { width: 30px; height: 30px; }
}
html.d3[data-theme="dark"] .kpi.d3-card::after, html.d3 [data-theme="dark"] .kpi.d3-card::after { background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .06), transparent 55%); }
html.d3[data-theme="dark"] .kpi.d3-card > .d3-badge, html.d3 [data-theme="dark"] .kpi.d3-card > .d3-badge {
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .22), color-mix(in srgb, var(--d3tone) 26%, transparent) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 18px -10px rgba(0, 0, 0, .6);
}

/* ---------------------------------------------------------------- website panels: menu, page title, panels */
html.d3 .rail a.d3-has { gap: 11px; border-radius: 10px; }
html.d3 .rail a.d3-has .d3-ic { width: 24px; height: 24px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
@media (hover: hover) { html.d3 .rail a.d3-has:hover .d3-ic { transform: scale(1.12) rotate(-5deg); } }
html.d3 .rail a.d3-has.on { box-shadow: inset 3px 0 0 var(--gold, #C9A227), 0 8px 18px -10px rgba(0, 0, 0, .55); }
html.d3 .rail a.d3-has.on .d3-ic { transform: scale(1.08); }
html.d3 #main .page-head > .d3-ph-box { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
html.d3 #main .page-head > .d3-ph-box > .d3-ph { grid-row: 1 / span 3; width: 52px; height: 52px; padding: 6px; border-radius: 16px; box-sizing: content-box;
  background: radial-gradient(circle at 30% 22%, #fff, color-mix(in srgb, var(--gold, #C9A227) 16%, #fff) 70%);
  box-shadow: inset 0 1px 0 #fff, 0 12px 22px -14px rgba(15, 23, 42, .5); filter: none; }
html.d3 #main .page-head > .d3-ph-box > :not(.d3-ph) { grid-column: 2; min-width: 0; }
@media (max-width: 520px) { html.d3 #main .page-head > .d3-ph-box > .d3-ph { width: 38px; height: 38px; padding: 5px; border-radius: 12px; } }
html.d3[data-theme="dark"] #main .page-head > .d3-ph-box > .d3-ph { background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05) 70%); }
html.d3 #main .panel {
  border-radius: 18px; border-color: color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: 0 1px 1px rgba(15, 23, 42, .04), 0 10px 26px -16px rgba(15, 23, 42, .2);
}
html.d3 #main .panel > .panel-head {
  position: relative; padding-left: 26px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--wash, #F4F7FB) 75%, var(--paper, #fff)) 0%, var(--paper, #fff) 100%);
}
html.d3 #main .panel > .panel-head::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 4px; height: 20px; margin-top: -10px; border-radius: 4px;
  background: linear-gradient(180deg, var(--gold, #C9A227), var(--teal, #13837B));
}
#d3Card .d3-note { margin: 0 0 12px; color: var(--slate, #475569); max-width: 70ch; }
#d3Card .d3-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; vertical-align: middle; margin-right: 10px; }
#d3Card .d3-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#d3Card .d3-switch span { width: 48px; height: 28px; border-radius: 999px; background: #CBD5E1; position: relative; transition: background .2s; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2); }
#d3Card .d3-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); transition: transform .2s; }
#d3Card .d3-switch input:checked + span { background: var(--teal, #13837B); }
#d3Card .d3-switch input:checked + span::after { transform: translateX(20px); }
#d3Card .d3-switch input:focus-visible + span { outline: 3px solid var(--gold, #C9A227); outline-offset: 2px; }
#d3Card .d3-switch input:disabled + span { opacity: .55; }

html.d3 .tabbar .d3-has .d3-ic { width: 26px; height: 26px; margin: 0 auto; }
html.d3 .tabbar .d3-has.on .d3-ic { transform: translateY(-1px) scale(1.12); }

/* ---------------------------------------------------------------- quiz and field app: menu, cards, tiles */
html.d3 .nav a.d3-has .d3-ic { width: 26px; height: 26px; }
html.d3 .nav a.d3-has[aria-current="page"] .d3-ic, html.d3 .nav a.d3-has.on .d3-ic { transform: translateY(-1px) scale(1.12); }
html.d3 #main .card {
  border-radius: 18px; border-color: color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: 0 1px 1px rgba(15, 23, 42, .04), 0 10px 26px -16px rgba(15, 23, 42, .22);
}
html.d3 #main .card > h2.d3-h { display: flex; align-items: center; gap: 10px; }
html.d3 #main .card > h2.d3-h .d3-hi { width: 30px; height: 30px; }
html.d3 .facts > .d3-fact { position: relative; }
html.d3 .facts > .d3-fact .d3-fi { width: 34px; height: 34px; margin: 0 auto 4px; }
html.d3 a.tile.d3-has {
  position: relative; overflow: hidden; border-radius: 18px; min-height: 118px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--teal, #0C7C74) 7%, var(--card, #fff)) 0%, var(--card, #fff) 60%);
  box-shadow: 0 1px 1px rgba(15, 23, 42, .04), 0 8px 18px -10px rgba(15, 23, 42, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}
html.d3 a.tile.d3-has .d3-ic { width: 48px; height: 48px; margin-bottom: 2px; }
@media (hover: hover) { html.d3 a.tile.d3-has:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -12px rgba(15, 23, 42, .3); } html.d3 a.tile.d3-has:hover .d3-ic { transform: scale(1.08) rotate(-4deg); } }
html.d3 a.tile.d3-has:active { transform: scale(.985); }

@media (prefers-reduced-motion: reduce) {
  html.d3 .kpi.d3-card, html.d3 a.tile.d3-has, html.d3 .d3-ic, html.d3 .d3-badge img { transition: none !important; }
  html.d3 .kpi.d3-card:hover, html.d3 a.tile.d3-has:hover { transform: none; }
}
@media print { html.d3 .d3-badge, html.d3 .d3-ic, html.d3 .d3-ph, html.d3 .d3-hi, html.d3 .d3-fi { display: none !important; } html.d3 .d3-has > svg { display: inline-block !important; } }

/* ---------------------------------------------------------------- v66 · the public website (home page and its sections), her "Yes" 15 Nov */
html.d3 .d3-hic { flex: none; filter: drop-shadow(0 4px 5px rgba(15, 23, 42, .25)) drop-shadow(0 1px 1px rgba(15, 23, 42, .18)); }
html.d3 .d3-pc { border-radius: 18px; box-shadow: 0 1px 1px rgba(15, 23, 42, .04), 0 10px 24px -14px rgba(15, 23, 42, .30); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
html.d3 .explore-card.d3-pc, html.d3 .gi-card.d3-pc, html.d3 .rc-card.d3-pc, html.d3 .teaser-card.d3-pc {
  background: linear-gradient(155deg, color-mix(in srgb, var(--teal, #13837B) 7%, var(--paper, #fff)) 0%, var(--paper, #fff) 60%);
}
@media (hover: hover) {
  html.d3 a.d3-pc:hover, html.d3 a.d3-pc:focus-visible { transform: translateY(-3px); box-shadow: 0 2px 2px rgba(15, 23, 42, .05), 0 16px 30px -14px rgba(15, 23, 42, .38); }
  html.d3 a.d3-pc:hover .d3-hic { transform: scale(1.08) rotate(-4deg); }
}
html.d3 a.d3-pc:active { transform: scale(.985); }
html.d3 .rc-ic.d3-has, html.d3 #pledgeDay .pd-ic.d3-has, html.d3 .mp-medal.d3-has {
  background: radial-gradient(circle at 30% 22%, #fff 0%, color-mix(in srgb, var(--gold, #C9A227) 16%, #fff) 62%, color-mix(in srgb, var(--gold, #C9A227) 30%, #fff) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 10px 18px -10px rgba(15, 23, 42, .45);
  display: inline-grid; place-items: center;
}
html.d3 #pledgeDay .pd-pledge .pd-ic.d3-has { background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .30), rgba(201, 164, 92, .25) 70%); }
html.d3[data-theme="dark"] .d3-pc, html.d3 [data-theme="dark"] .d3-pc { box-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 12px 26px -14px rgba(0, 0, 0, .7); }
html.d3[data-theme="dark"] .rc-ic.d3-has, html.d3[data-theme="dark"] #pledgeDay .pd-ic.d3-has, html.d3[data-theme="dark"] .mp-medal.d3-has {
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 10px 18px -10px rgba(0, 0, 0, .7);
}
@media (prefers-reduced-motion: reduce) { html.d3 .d3-pc, html.d3 .d3-hic { transition: none !important; } html.d3 a.d3-pc:hover { transform: none; } }
@media print { html.d3 .d3-hic { display: none !important; } }

/* ===== v69 · 23 November 2026 — no glass effect anywhere (her instruction: "Do not use glass effects").
   The see-through, blurred parts of the base design become solid in their own colours. The dimmed screen behind an
   open dialog stays (it is not glass), only without the blur. Nothing else changes. */
*, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.masthead { background-color: #0E2145; }
html.ae-scrolled .masthead { background-color: #0B1A38; }
[data-theme="dark"] .masthead { background-color: #070F20; }
.hero-figure figcaption, .hp-slide figcaption { background: #091428; }
.tally { background: #152C55; border-color: rgba(255, 255, 255, .17); }
.tallyband .tally { background: none; }
.patron-card { background: #1C3766; border-color: rgba(255, 255, 255, .28); }
