/* home-meetups.js: "Saturday AI Workshops" above the business wall. The cards and the Science fiction / Kids designs
 * are the BizDev meetups planner's Public view (Any.Company.BizDev/public/meetups/meetups.css, .pub), scoped to .hm. */
.hm {
  --t-bg: #0b1226; --t-card: #fff; --t-ink: #14203d; --t-muted: #5b6785; --t-accent: #2f6fed; --t-accent-ink: #fff;
  --t-border: #d5deee; --t-side: linear-gradient(180deg, #dce8fb, #eef3fb); --t-pale: .5; --t-radius: 16px;
  --t-font: inherit; --t-title-font: inherit; --t-title-case: none; --t-title-spacing: 0; --t-hero-ink: #fff; --t-glow: none;
  --t-date-bg: #fff; --t-date-ink: #2f6fed; --t-date-radius: 12px; --t-date-rot: 0deg; --t-date-border: 0;
  --t-art: linear-gradient(transparent, transparent); /* the gutter's pattern, per theme and voice (no icons: they read as paragraph markers) */
  box-sizing: border-box; width: 100%; max-height: 600px; overflow-y: auto; overscroll-behavior: contain;
  margin: 0 0 24px; border-radius: 18px; background: var(--t-bg); color: var(--t-ink); font-family: var(--t-font);
  text-align: left; scroll-padding-top: 70px;
}
.hm[hidden] { display: none; }
/* workshop/: the section is the page, so the page scrolls instead of a 600px box */
.hm.hm-page { max-height: none; overflow: visible; margin: 0; border-radius: 0; min-height: 100vh; }
.hm.hm-page .hm-fade { display: none; }
/* the cards are long, so places + "Join this" lead the card instead of closing it (home + workshop/) */
.hm .pc-foot.pc-foot { order: -1; margin: 0 0 4px; padding: 0 0 10px; border-top: 0; border-bottom: 1px solid var(--t-border); }
.hm .pc-reg.pc-reg, .hm .pc-reg.pc-reg:visited, .hm .pc-reg.pc-reg:hover { color: #000; box-shadow: none; text-shadow: none; }
/* the promo "Free" inside "Join this": a bright pill that pulses, with a light sweep across it */
.hm .pc-reg .pc-free { position: relative; overflow: hidden; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #ffe45c; color: #b3003c;
  font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; border: 1px solid #fff; animation: pc-free-pulse 1.6s ease-in-out infinite; }
.hm .pc-reg .pc-free::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); animation: pc-free-shine 2.4s ease-in-out infinite; }
@keyframes pc-free-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12) rotate(-3deg); } }
@keyframes pc-free-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .hm .pc-reg .pc-free, .hm .pc-reg .pc-free::after { animation: none; } }
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }

/* header stays on top while the whole section scrolls */
.hm-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  padding: 12px 16px; background: var(--t-head, rgba(5, 11, 24, .92)); backdrop-filter: blur(6px); color: var(--t-hero-ink); }
.hm-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 260px; }
.hm-title-icon { font-size: 30px; line-height: 1; }
.hm-title h2 { margin: 0; font-size: 1.45rem; line-height: 1.15; font-family: var(--t-title-font); text-transform: var(--t-title-case); letter-spacing: var(--t-title-spacing); }
.hm-title small { display: block; font-size: .8rem; font-weight: 500; opacity: .8; margin-top: 2px; }
.hm-pickers { display: flex; gap: 10px; align-items: center; }
.hm-pick { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }
.hm-pick button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; font-size: 20px; line-height: 1; cursor: pointer;
  filter: grayscale(.85); opacity: .6; transition: transform .15s, opacity .15s, filter .15s, background .15s; }
.hm-pick button:hover { opacity: 1; filter: none; transform: scale(1.08); }
.hm-pick button[aria-pressed="true"] { opacity: 1; filter: none; background: var(--t-accent); box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.hm-pick button:focus-visible { outline: 3px solid #ffe45c; outline-offset: 1px; }

.hm-plan, .hm-plan:visited { display: inline-flex; max-width: 600px; box-sizing: border-box; margin-inline: auto; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; font-weight: 800; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, #ffe45c, #ffc93c); color: #14203d; border: 1px solid #f0b400; box-shadow: 0 4px 14px rgba(255, 190, 40, .3); }
.hm-plan:hover { background: linear-gradient(135deg, #fff07a, #ffd45a); color: #14203d; }
.hm-plan:focus-visible { outline: 3px solid #2f6fed; outline-offset: 2px; }
/* the header one takes a full row of its own, under the title and the pickers */
.hm-head .hm-plan { flex: 1 0 100%; justify-content: center; min-height: 44px; font-size: 1.05rem; }
/* "Plan your visit" + "For your business" (services/?service=workshops) share that row, side by side */
.hm-actions { flex: 1 0 100%; display: flex; gap: 10px; max-width: 760px; margin-inline: auto; }
.hm-head .hm-actions .hm-plan { flex: 1 1 0; min-width: 0; max-width: none; margin: 0; }
.hm-services, .hm-services:visited { background: #fff; border-color: #fff; color: #14203d; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.hm-services:hover { background: #eef2ff; color: #14203d; }
/* round "?" after "For your business": opens workshop/ */
.hm-help, .hm-help:visited { flex: 0 0 auto; align-self: center; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #14203d; border: 2px solid #c9d2e6; font-weight: 900; font-size: 1.3rem; line-height: 1; text-decoration: none; }
.hm-help:hover { background: #eef2ff; color: #14203d; }
.hm-help:focus-visible { outline: 3px solid #2f6fed; outline-offset: 2px; }
/* the copies under "Meet People in Business" (index.html) are the mobile ones */
.hm-plan-mobile, .hm-plan-row { display: none; }

.hm-intro { padding: 4px 18px 0; color: var(--t-hero-ink); }
.hm-tag { margin: 6px 0 2px; font-size: 1rem; }
.hm-meta { margin: 0; opacity: .75; font-size: .9rem; }

.hm-board { display: flex; gap: 16px; overflow-x: auto; padding: 12px 16px 18px; scroll-snap-type: x proximity; align-items: flex-start; }
.hm-empty { padding: 30px 18px; color: var(--t-hero-ink); opacity: .8; }

.hm .pcard { flex: 0 0 380px; scroll-snap-align: start; position: relative; display: flex; align-items: stretch; overflow: hidden;
  background: var(--t-card); color: var(--t-ink); border: 1px solid var(--t-border); border-radius: var(--t-radius); box-shadow: 0 4px 16px rgba(0, 0, 0, .18), var(--t-glow); }
/* the gutter under the date: the theme's pattern; the rest of the card: a faint wash of the same colours, no pattern */
.hm .pcard::before { content: ''; position: absolute; inset: 0; background: var(--t-side); opacity: calc(var(--t-pale) * .12); pointer-events: none; }
.hm .pc-side { position: relative; flex: 0 0 76px; background: var(--t-art), var(--t-side); padding: 14px 10px; }
.hm .pc-date { width: 56px; text-align: center; background: var(--t-date-bg); color: var(--t-date-ink); border-radius: var(--t-date-radius); border: var(--t-date-border);
  padding: 6px 0; display: flex; flex-direction: column; transform: rotate(var(--t-date-rot)); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.hm .pc-day { font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.hm .pc-num { font-size: 24px; font-weight: 800; line-height: 1.1; }
.hm .pc-mon { font-size: 12px; font-weight: 600; }
.hm .pc-body { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; font-size: 14px; line-height: 1.45; }
.hm .pc-kicker { font-size: 12px; color: var(--t-muted); text-transform: uppercase; letter-spacing: .05em; }
.hm .pc-title { font-size: 19px; line-height: 1.25; margin: 0; font-family: var(--t-title-font); text-transform: var(--t-title-case); letter-spacing: var(--t-title-spacing); color: var(--t-ink); }
.hm .pc-when { margin: 0; color: var(--t-muted); font-size: 13px; }
.hm .pc-short { font-weight: 600; margin: 0; }
.hm .pc-short p, .hm .pc-intro p { margin: 4px 0; }
.hm .pc-h { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--t-accent); margin: 8px 0 2px; }
.hm .pc-body h4 { font-size: 13px; margin: 6px 0 2px; }
.hm .pc-body ul { margin: 4px 0; padding-left: 18px; }
.hm .pc-agenda { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hm .pc-agenda li { display: flex; gap: 8px; font-size: 13px; }
.hm .pc-ic { width: 20px; flex: none; text-align: center; }
.hm .pc-ic:empty { display: none; }
.hm .pc-time { font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--t-accent); width: 40px; flex: none; padding-top: 1px; }
.hm .pc-detail { display: block; color: var(--t-muted); font-size: 12px; }
.hm .pc-detail p { margin: 0; }
.hm .pc-sec { border-top: 1px solid var(--t-border); padding: 6px 0 0; font-size: 13px; }
.hm .pc-sec summary { cursor: pointer; font-weight: 600; }
.hm .pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--t-border); }
.hm .pc-foot .muted { color: var(--t-muted); font-size: 12px; }
.hm .pc-reg, .hm .pc-reg:visited { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 10px; font: 800 13px/1.2 inherit; font-family: var(--t-font); text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, #ffa53a, #ff7a00); color: #fff; border: 1px solid #e86a00; box-shadow: 0 4px 12px rgba(255, 122, 0, .35); text-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.hm .pc-reg:hover { background: linear-gradient(135deg, #ffb75c, #ff8a1a); }
.hm .pc-reg:focus-visible { outline: 3px solid #ffe45c; outline-offset: 2px; }
.hm .md a { color: var(--t-accent); }
.hm code { font-size: .92em; }

/* fades that lure people into scrolling (home-meetups.js toggles .more-down / .more-right / .more-left) */
.hm-fade { position: sticky; bottom: 0; z-index: 1; height: 110px; margin-top: -110px; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px;
  background: linear-gradient(180deg, transparent, var(--t-fade, #050b18) 85%); opacity: 0; transition: opacity .3s; }
.hm.more-down .hm-fade { opacity: 1; }
.hm-more { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  font: 700 13px/1.2 inherit; font-family: var(--t-font); color: var(--t-accent-ink); background: var(--t-accent); border: 0; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.hm:not(.more-down) .hm-more { pointer-events: none; }
.hm-more:focus-visible { outline: 3px solid #ffe45c; outline-offset: 2px; }
.hm-chev { display: inline-block; font-size: 18px; line-height: 10px; animation: hm-bounce 1.4s ease-in-out infinite; }
@keyframes hm-bounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.hm.more-right .hm-board { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); }
.hm.more-left .hm-board { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.hm.more-left.more-right .hm-board { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 70px), transparent); }
@media (prefers-reduced-motion: reduce) { .hm-chev { animation: none; } .hm-fade { transition: none; } }

/* Kids: bright, bubbly, playful */
.hm.th-kids { --t-bg: radial-gradient(circle, #ffe08a 2px, transparent 2.5px) 0 0 / 22px 22px, #fff7d6; --t-card: #ffffff; --t-ink: #2d2a6e; --t-muted: #6a68a8;
  --t-accent: #ff4f8b; --t-border: #ffd166; --t-side: linear-gradient(180deg, #ffd166, #ff8fab 50%, #7bdff2); --t-radius: 28px;
  --t-font: "Comic Sans MS", "Comic Neue", "Chalkboard SE", "Baloo 2", Nunito, Quicksand, "Varela Round", ui-rounded, "Arial Rounded MT Bold", "DejaVu Sans", sans-serif;
  --t-hero-ink: #ff4f8b; --t-date-ink: #ff4f8b; --t-date-radius: 18px; --t-date-rot: -5deg; --t-pale: .6; --t-head: rgba(255, 247, 214, .94); --t-fade: #fff7d6; }
.hm.th-kids .hm-pick { background: rgba(255, 79, 139, .08); border-color: #ffd166; }
.hm.th-kids .hm-pick button[aria-pressed="true"] { box-shadow: 0 0 0 2px #ffd166; }
.hm.th-kids .hm-meta, .hm.th-kids .hm-tag { color: #2d2a6e; }
.hm.th-kids .pcard { border-width: 3px; }
.hm.th-kids .pcard:nth-child(3n+2) { border-color: #7bdff2; }
.hm.th-kids .pcard:nth-child(3n) { border-color: #ff8fab; }

/* Science fiction: dark navy, cyan grid, angular, uppercase */
.hm.th-scifi { --t-bg: linear-gradient(rgba(0, 229, 255, .07) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(0, 229, 255, .07) 1px, transparent 1px) 0 0 / 28px 28px, #050b18;
  --t-card: #0a1730; --t-ink: #dff6ff; --t-muted: #7fb2c9; --t-accent: #00e5ff; --t-accent-ink: #041022; --t-border: #12406a;
  --t-side: linear-gradient(180deg, #0f4c8a, #050b18); --t-radius: 2px; --t-font: "Segoe UI", Roboto, sans-serif; --t-title-case: uppercase; --t-title-spacing: .04em;
  --t-hero-ink: #00e5ff; --t-glow: 0 0 20px rgba(0, 229, 255, .16); --t-date-bg: #041022; --t-date-ink: #00e5ff; --t-date-radius: 0; --t-date-border: 1px solid #00e5ff; --t-pale: .4;
  --t-head: rgba(5, 11, 24, .92); --t-fade: #050b18; }
.hm.th-scifi .pcard { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.hm.th-scifi .hm-title h2 { text-shadow: 0 0 14px rgba(0, 229, 255, .5); }
.hm.th-scifi .pc-date { clip-path: polygon(0 0, 100% 0, 100% 80%, 80% 100%, 0 100%); }

/* gutter patterns: abstract, no icons. Business voice: calm lines; Funny voice: playful shapes */
.hm.th-scifi.voice-business { --t-art: linear-gradient(90deg, transparent 37px, rgba(0, 229, 255, .55) 37px 39px, transparent 39px),
  repeating-linear-gradient(0deg, rgba(0, 229, 255, .16) 0 1px, transparent 1px 14px); }
.hm.th-scifi.voice-funny { --t-art: radial-gradient(circle at 78% 94%, #ff7ad9 0 16px, rgba(255, 122, 217, .25) 17px 21px, transparent 22px),
  radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent) 0 0 / 76px 110px, radial-gradient(1px 1px at 70% 55%, #9ff, transparent) 0 0 / 76px 110px,
  radial-gradient(2px 2px at 40% 85%, #fff, transparent) 0 0 / 76px 110px, radial-gradient(1px 1px at 85% 12%, #ffe45c, transparent) 0 0 / 76px 70px; }
.hm.th-kids.voice-business { --t-art: repeating-linear-gradient(135deg, rgba(255, 255, 255, .32) 0 10px, transparent 10px 22px); }
.hm.th-kids.voice-funny { --t-art: radial-gradient(circle, rgba(255, 255, 255, .75) 0 5px, transparent 6px) 0 0 / 26px 26px,
  radial-gradient(circle, rgba(255, 255, 255, .45) 0 3px, transparent 4px) 13px 13px / 26px 26px; }

@media (max-width: 700px) {
  .hm { border-radius: 14px; }
  .hm .pcard { flex-basis: 86vw; }
  .hm-head .hm-plan, .hm:not(.hm-page) .hm-head .hm-actions { display: none; }
  .hm-plan-mobile:not([hidden]) { display: flex; }
  .hm-plan-row { display: flex; gap: 10px; width: min(600px, calc(100vw - 32px)); margin: 0 auto 20px; }
  .hm-plan-row .home-back-to-map { flex: 1 1 0; width: auto; min-width: 0; margin: 0; padding: 10px 10px; gap: 8px; font-size: .98rem; text-align: center; }
  .hm-plan-row .hm-services-mobile { background: #fff; border-color: #c9d2e6; box-shadow: 0 6px 18px rgba(20, 32, 61, .12); }
  .hm-head .hm-actions .hm-plan { font-size: .95rem; padding: 9px 10px; white-space: normal; }
  .hm-pickers { width: 100%; justify-content: space-between; }
}

/* phones (same 480px cut-off as the home avatars row): no Voice / Theme pickers */
@media (max-width: 480px) {
  .hm-pickers { display: none; }
}
