/* TEMPORARY Halloween costume. Only active when halloween.js adds the "hw"
   class to <html> (it switches off by itself after the end date in halloween.js).
   To remove for good: delete the two halloween lines in index.html and reports/index.html. */

.hw-only, .hw-only-inline { display: none; }
.hw .hw-only { display: block; }
.hw .hw-only-inline { display: inline; }
.hw .hw-hide { display: none; }

/* Recolor the whole site: forest green -> witch purple, terracotta -> pumpkin */
.hw {
  --forest: #3b1846;
  --green: #6d3587;
  --sage: #b48ec4;
  --sage-light: #f1e6f5;
  --cream: #fdf6ee;
  --terracotta: #e8741c;
  --clay: #b04e0c;
  --ink-soft: #57455e;
  --line: #eadcf0;
}
.hw .gs-header { border-bottom: 3px solid #e8741c; }
.hw .gs-footer { background: #2a0f2f; }
.hw .gs-footer .gs-tag { color: #ffc88a; }
.hw .gs-btn { background: #e8741c; border-color: #e8741c; color: #2a0f2f !important; }
.hw .gs-btn:hover { background: #f58a2a; border-color: #f58a2a; }
.hw .gs-band { background: linear-gradient(135deg, #3b1846, #2a0f2f); }
.hw .gs-band .gs-btn.light { background: #fff; border-color: #fff; color: #3b1846 !important; }
.hw .gs-band .gs-btn.outline-light { background: transparent; border-color: #fff; color: #fff !important; }

/* Night-sky hero with moon, bats and pumpkins */
.hw .gs-hero {
  position: relative; overflow: hidden; color: #f3e8f7;
  background: radial-gradient(circle at 82% 12%, #4a2160 0%, #2a0f2f 48%, #160719 100%);
  padding-bottom: 120px;
}
.hw .gs-hero > * { position: relative; z-index: 1; }
.hw .gs-hero h1 { color: #fff8ec; }
.hw .gs-hero .gs-lede { color: #e2cfec; }
.hw .gs-hero .gs-eyebrow { color: #f58a2a; }
.hw .gs-hero a:not(.gs-btn) { color: #ffc88a; }
.hw .gs-hero::before {
  content: ""; position: absolute; z-index: 0; top: 14px; left: 47%; width: 92px; height: 92px;
  background: url("data:image/svg+xml,%3Csvg data-w=%22120%22 data-h=%22120%22 viewBox=%220 0 120 120%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Ccircle cx=%2260%22 cy=%2260%22 r=%2256%22 fill=%22%23ffe3a3%22 opacity=%220.18%22/%3E %3Ccircle cx=%2260%22 cy=%2260%22 r=%2244%22 fill=%22%23fff1c9%22/%3E %3Ccircle cx=%2244%22 cy=%2248%22 r=%228%22 fill=%22%23f2d98f%22/%3E%3Ccircle cx=%2274%22 cy=%2270%22 r=%2211%22 fill=%22%23f2d98f%22/%3E %3Ccircle cx=%2270%22 cy=%2240%22 r=%224%22 fill=%22%23f2d98f%22/%3E%3Ccircle cx=%2246%22 cy=%2276%22 r=%225%22 fill=%22%23f2d98f%22/%3E%3C/svg%3E") no-repeat center / contain;
}
.hw .gs-hero::after {
  content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 96px;
  background:
    url("data:image/svg+xml,%3Csvg data-w=%22120%22 data-h=%22108%22 viewBox=%220 0 120 108%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cpath d=%22M58 22 Q56 8 66 4%22 stroke=%22%233f6b2a%22 stroke-data-w=%226%22 fill=%22none%22 stroke-linecap=%22round%22/%3E %3Cpath d=%22M64 16 Q78 6 88 14 Q76 18 64 16 Z%22 fill=%22%235c8a3a%22/%3E %3Cellipse cx=%2234%22 cy=%2260%22 rx=%2228%22 ry=%2238%22 fill=%22%23e8741c%22/%3E %3Cellipse cx=%2286%22 cy=%2260%22 rx=%2228%22 ry=%2238%22 fill=%22%23e8741c%22/%3E %3Cellipse cx=%2260%22 cy=%2260%22 rx=%2230%22 ry=%2242%22 fill=%22%23f58a2a%22/%3E %3Cpath d=%22M60 20 Q48 60 60 102 M60 20 Q72 60 60 102%22 stroke=%22%23d0601a%22 stroke-data-w=%222%22 fill=%22none%22/%3E %3Cpath d=%22M33 44 L41 34 L48 44 Z%22 fill=%22%232a0f2f%22/%3E%3Cpath d=%22M72 44 L79 34 L87 44 Z%22 fill=%22%232a0f2f%22/%3E%3Cpath d=%22M38 62 Q60 80 82 62 L76 66 L70 60 L64 67 L58 60 L52 67 L46 60 L42 66 Z%22 fill=%22%232a0f2f%22/%3E%3C/svg%3E") no-repeat 4% 100% / 92px auto,
    url("data:image/svg+xml,%3Csvg data-w=%22120%22 data-h=%22120%22 viewBox=%220 0 120 120%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cpath d=%22M40 88 L58 30 Q62 14 80 8 Q70 22 72 34 L82 88 Z%22 fill=%22%237a3f96%22/%3E %3Cellipse cx=%2260%22 cy=%2292%22 rx=%2254%22 ry=%2212%22 fill=%22%235e2d77%22/%3E %3Cpath d=%22M42 80 L80 80 L82 90 L40 90 Z%22 fill=%22%23f58a2a%22/%3E %3Crect x=%2255%22 y=%2278%22 data-w=%2212%22 data-h=%2214%22 rx=%222%22 fill=%22none%22 stroke=%22%23ffd36b%22 stroke-data-w=%223%22/%3E%3C/svg%3E") no-repeat 13% 92% / 70px auto,
    url("data:image/svg+xml,%3Csvg data-w=%22120%22 data-h=%22108%22 viewBox=%220 0 120 108%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cpath d=%22M58 22 Q56 8 66 4%22 stroke=%22%233f6b2a%22 stroke-data-w=%226%22 fill=%22none%22 stroke-linecap=%22round%22/%3E %3Cpath d=%22M64 16 Q78 6 88 14 Q76 18 64 16 Z%22 fill=%22%235c8a3a%22/%3E %3Cellipse cx=%2234%22 cy=%2260%22 rx=%2228%22 ry=%2238%22 fill=%22%23e8741c%22/%3E %3Cellipse cx=%2286%22 cy=%2260%22 rx=%2228%22 ry=%2238%22 fill=%22%23e8741c%22/%3E %3Cellipse cx=%2260%22 cy=%2260%22 rx=%2230%22 ry=%2242%22 fill=%22%23f58a2a%22/%3E %3Cpath d=%22M60 20 Q48 60 60 102 M60 20 Q72 60 60 102%22 stroke=%22%23d0601a%22 stroke-data-w=%222%22 fill=%22none%22/%3E %3Cpath d=%22M33 44 L41 34 L48 44 Z%22 fill=%22%232a0f2f%22/%3E%3Cpath d=%22M72 44 L79 34 L87 44 Z%22 fill=%22%232a0f2f%22/%3E%3Cpath d=%22M38 62 Q60 80 82 62 L76 66 L70 60 L64 67 L58 60 L52 67 L46 60 L42 66 Z%22 fill=%22%232a0f2f%22/%3E%3C/svg%3E") no-repeat 21% 100% / 62px auto,
    url("data:image/svg+xml,%3Csvg data-w=%22120%22 data-h=%22108%22 viewBox=%220 0 120 108%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cpath d=%22M58 22 Q56 8 66 4%22 stroke=%22%233f6b2a%22 stroke-data-w=%226%22 fill=%22none%22 stroke-linecap=%22round%22/%3E %3Cpath d=%22M64 16 Q78 6 88 14 Q76 18 64 16 Z%22 fill=%22%235c8a3a%22/%3E %3Cellipse cx=%2234%22 cy=%2260%22 rx=%2228%22 ry=%2238%22 fill=%22%23e8741c%22/%3E %3Cellipse cx=%2286%22 cy=%2260%22 rx=%2228%22 ry=%2238%22 fill=%22%23e8741c%22/%3E %3Cellipse cx=%2260%22 cy=%2260%22 rx=%2230%22 ry=%2242%22 fill=%22%23f58a2a%22/%3E %3Cpath d=%22M60 20 Q48 60 60 102 M60 20 Q72 60 60 102%22 stroke=%22%23d0601a%22 stroke-data-w=%222%22 fill=%22none%22/%3E %3Cpath d=%22M33 44 L41 34 L48 44 Z%22 fill=%22%232a0f2f%22/%3E%3Cpath d=%22M72 44 L79 34 L87 44 Z%22 fill=%22%232a0f2f%22/%3E%3Cpath d=%22M38 62 Q60 80 82 62 L76 66 L70 60 L64 67 L58 60 L52 67 L46 60 L42 66 Z%22 fill=%22%232a0f2f%22/%3E%3C/svg%3E") no-repeat 80% 100% / 70px auto,
    url("data:image/svg+xml,%3Csvg data-w=%22120%22 data-h=%22120%22 viewBox=%220 0 120 120%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cpath d=%22M40 88 L58 30 Q62 14 80 8 Q70 22 72 34 L82 88 Z%22 fill=%22%237a3f96%22/%3E %3Cellipse cx=%2260%22 cy=%2292%22 rx=%2254%22 ry=%2212%22 fill=%22%235e2d77%22/%3E %3Cpath d=%22M42 80 L80 80 L82 90 L40 90 Z%22 fill=%22%23f58a2a%22/%3E %3Crect x=%2255%22 y=%2278%22 data-w=%2212%22 data-h=%2214%22 rx=%222%22 fill=%22none%22 stroke=%22%23ffd36b%22 stroke-data-w=%223%22/%3E%3C/svg%3E") no-repeat 88% 94% / 58px auto,
    url("data:image/svg+xml,%3Csvg data-w=%22120%22 data-h=%22108%22 viewBox=%220 0 120 108%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cpath d=%22M58 22 Q56 8 66 4%22 stroke=%22%233f6b2a%22 stroke-data-w=%226%22 fill=%22none%22 stroke-linecap=%22round%22/%3E %3Cpath d=%22M64 16 Q78 6 88 14 Q76 18 64 16 Z%22 fill=%22%235c8a3a%22/%3E %3Cellipse cx=%2234%22 cy=%2260%22 rx=%2228%22 ry=%2238%22 fill=%22%23e8741c%22/%3E %3Cellipse cx=%2286%22 cy=%2260%22 rx=%2228%22 ry=%2238%22 fill=%22%23e8741c%22/%3E %3Cellipse cx=%2260%22 cy=%2260%22 rx=%2230%22 ry=%2242%22 fill=%22%23f58a2a%22/%3E %3Cpath d=%22M60 20 Q48 60 60 102 M60 20 Q72 60 60 102%22 stroke=%22%23d0601a%22 stroke-data-w=%222%22 fill=%22none%22/%3E %3Cpath d=%22M33 44 L41 34 L48 44 Z%22 fill=%22%232a0f2f%22/%3E%3Cpath d=%22M72 44 L79 34 L87 44 Z%22 fill=%22%232a0f2f%22/%3E%3Cpath d=%22M38 62 Q60 80 82 62 L76 66 L70 60 L64 67 L58 60 L52 67 L46 60 L42 66 Z%22 fill=%22%232a0f2f%22/%3E%3C/svg%3E") no-repeat 97% 100% / 100px auto,
    linear-gradient(#120516, #120516) no-repeat 0 100% / 100% 22px;
}
.hw .gs-hero .gs-wrap::before {
  content: ""; position: absolute; z-index: -1; top: -40px; left: 36%; width: 200px; height: 110px; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg data-w=%22120%22 data-h=%2260%22 viewBox=%220 0 120 60%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cpath fill=%22%23140618%22 d=%22M60 20 C56 12 52 12 50 18 C40 6 22 4 4 14 C14 18 18 26 16 34 C24 28 32 30 36 38 C40 32 46 32 50 38 C52 34 56 34 60 40 C64 34 68 34 70 38 C74 32 80 32 84 38 C88 30 96 28 104 34 C102 26 106 18 116 14 C98 4 80 6 70 18 C68 12 64 12 60 20 Z%22/%3E %3Cpath fill=%22%23140618%22 d=%22M54 16 L52 8 L57 14 Z M66 16 L68 8 L63 14 Z%22/%3E%3C/svg%3E") no-repeat 0 30% / 64px auto,
    url("data:image/svg+xml,%3Csvg data-w=%22120%22 data-h=%2260%22 viewBox=%220 0 120 60%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cpath fill=%22%23140618%22 d=%22M60 20 C56 12 52 12 50 18 C40 6 22 4 4 14 C14 18 18 26 16 34 C24 28 32 30 36 38 C40 32 46 32 50 38 C52 34 56 34 60 40 C64 34 68 34 70 38 C74 32 80 32 84 38 C88 30 96 28 104 34 C102 26 106 18 116 14 C98 4 80 6 70 18 C68 12 64 12 60 20 Z%22/%3E %3Cpath fill=%22%23140618%22 d=%22M54 16 L52 8 L57 14 Z M66 16 L68 8 L63 14 Z%22/%3E%3C/svg%3E") no-repeat 45% 0 / 40px auto,
    url("data:image/svg+xml,%3Csvg data-w=%22120%22 data-h=%2260%22 viewBox=%220 0 120 60%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cpath fill=%22%23140618%22 d=%22M60 20 C56 12 52 12 50 18 C40 6 22 4 4 14 C14 18 18 26 16 34 C24 28 32 30 36 38 C40 32 46 32 50 38 C52 34 56 34 60 40 C64 34 68 34 70 38 C74 32 80 32 84 38 C88 30 96 28 104 34 C102 26 106 18 116 14 C98 4 80 6 70 18 C68 12 64 12 60 20 Z%22/%3E %3Cpath fill=%22%23140618%22 d=%22M54 16 L52 8 L57 14 Z M66 16 L68 8 L63 14 Z%22/%3E%3C/svg%3E") no-repeat 100% 70% / 52px auto;
  opacity: .9;
}
.hw .gs-doors { background: rgba(255,255,255,.97); }

/* Halloween promo band for the free Spooky Science report */
.hw-promo {
  background: radial-gradient(circle at 15% 0%, #4a2160 0%, #2a0f2f 70%); color: #f3e8f7;
  border-radius: 18px; padding: 28px 30px; display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center;
  border: 2px solid #e8741c; position: relative; overflow: hidden;
}
.hw-promo::after {
  content: ""; position: absolute; right: -10px; top: 8px; width: 150px; height: 70px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg data-w=%22120%22 data-h=%2260%22 viewBox=%220 0 120 60%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cpath fill=%22%23f58a2a%22 d=%22M60 20 C56 12 52 12 50 18 C40 6 22 4 4 14 C14 18 18 26 16 34 C24 28 32 30 36 38 C40 32 46 32 50 38 C52 34 56 34 60 40 C64 34 68 34 70 38 C74 32 80 32 84 38 C88 30 96 28 104 34 C102 26 106 18 116 14 C98 4 80 6 70 18 C68 12 64 12 60 20 Z%22/%3E %3Cpath fill=%22%23f58a2a%22 d=%22M54 16 L52 8 L57 14 Z M66 16 L68 8 L63 14 Z%22/%3E%3C/svg%3E") no-repeat 0 0 / 60px auto, url("data:image/svg+xml,%3Csvg data-w=%22120%22 data-h=%2260%22 viewBox=%220 0 120 60%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cpath fill=%22%23f58a2a%22 d=%22M60 20 C56 12 52 12 50 18 C40 6 22 4 4 14 C14 18 18 26 16 34 C24 28 32 30 36 38 C40 32 46 32 50 38 C52 34 56 34 60 40 C64 34 68 34 70 38 C74 32 80 32 84 38 C88 30 96 28 104 34 C102 26 106 18 116 14 C98 4 80 6 70 18 C68 12 64 12 60 20 Z%22/%3E %3Cpath fill=%22%23f58a2a%22 d=%22M54 16 L52 8 L57 14 Z M66 16 L68 8 L63 14 Z%22/%3E%3C/svg%3E") no-repeat 100% 100% / 44px auto;
}
.hw-promo .hw-pump { flex: 0 0 auto; width: 84px; height: 76px; background: url("data:image/svg+xml,%3Csvg data-w=%22120%22 data-h=%22108%22 viewBox=%220 0 120 108%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cpath d=%22M58 22 Q56 8 66 4%22 stroke=%22%233f6b2a%22 stroke-data-w=%226%22 fill=%22none%22 stroke-linecap=%22round%22/%3E %3Cpath d=%22M64 16 Q78 6 88 14 Q76 18 64 16 Z%22 fill=%22%235c8a3a%22/%3E %3Cellipse cx=%2234%22 cy=%2260%22 rx=%2228%22 ry=%2238%22 fill=%22%23e8741c%22/%3E %3Cellipse cx=%2286%22 cy=%2260%22 rx=%2228%22 ry=%2238%22 fill=%22%23e8741c%22/%3E %3Cellipse cx=%2260%22 cy=%2260%22 rx=%2230%22 ry=%2242%22 fill=%22%23f58a2a%22/%3E %3Cpath d=%22M60 20 Q48 60 60 102 M60 20 Q72 60 60 102%22 stroke=%22%23d0601a%22 stroke-data-w=%222%22 fill=%22none%22/%3E %3Cpath d=%22M33 44 L41 34 L48 44 Z%22 fill=%22%232a0f2f%22/%3E%3Cpath d=%22M72 44 L79 34 L87 44 Z%22 fill=%22%232a0f2f%22/%3E%3Cpath d=%22M38 62 Q60 80 82 62 L76 66 L70 60 L64 67 L58 60 L52 67 L46 60 L42 66 Z%22 fill=%22%232a0f2f%22/%3E%3C/svg%3E") no-repeat center / contain; }
.hw-promo .hw-copy { flex: 1 1 320px; position: relative; z-index: 1; }
.hw-promo .hw-tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: #e8741c; color: #2a0f2f; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.gs-page .hw-promo h2 { color: #fff8ec; margin: 0 0 6px; }
.hw-promo p { margin: 0; color: #e2cfec; }
.hw-promo .gs-btn { position: relative; z-index: 1; }
.hw-promo-wrap { padding: 36px 0 8px; }

@media (max-width: 600px) {
  .hw .gs-hero { padding-bottom: 100px; }
  .hw .gs-hero::before { width: 64px; height: 64px; top: 10px; left: auto; right: 12px; }
  .hw .gs-hero::after { height: 76px; background-size: 70px auto, 0 0, 0 0, 0 0, 50px auto, 78px auto, 100% 18px;
    background-position: 3% 100%, 0 0, 0 0, 0 0, 74% 94%, 98% 100%, 0 100%; }
  .hw .gs-hero .gs-wrap::before { display: none; }
  .hw-promo { padding: 22px 20px; }
  .hw-promo .hw-pump { width: 60px; height: 54px; }
}
