  :root{
    --ink:#172033;
    --ink-soft:#4a5570;
    --yellow:#FFE29A;
    --orange:#FFC3A0;
    --pink:#FFB3C8;
    --blue:#A9DDF7;
    --green:#AEE8C6;
    --bg:#fffdf8;
    --card-bg:#ffffff;
    --border:var(--ink);
    --radius:16px;
    --max:1180px;
  }
  *{box-sizing:border-box;margin:0;padding:0;}
  /* Forces native form controls (date/time pickers, their calendar/clock
     icons, checkboxes, scrollbars) to always render in light mode, even
     when the visitor's phone is set to dark mode. Without this, iOS Safari
     in particular can render a <input type="date"> or type="time"> picker's
     icon and text in near-invisible dark-on-dark colors against our light
     page background, which is why the Date field on the event form could
     look completely blank. */
  html{color-scheme:light;}
  body{
    font-family:'Segoe UI',system-ui,-apple-system,Helvetica,Arial,sans-serif;
    color:var(--ink);
    background:var(--bg);
    line-height:1.5;
  }
  a{color:inherit;text-decoration:none;}
  img{max-width:100%;display:block;}
  .wrap{max-width:var(--max);margin:0 auto;padding:0 24px;}

  /* Header */
  header{
    background:#fff;
    border-bottom:2px solid var(--ink);
    position:sticky;top:0;z-index:100;
  }
  .header-inner{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 24px;max-width:var(--max);margin:0 auto;
    flex-wrap:wrap;gap:12px;
  }
  .logo{
    font-size:22px;font-weight:800;color:var(--ink);
    letter-spacing:-0.02em;
  }
  .logo span{
    background:var(--yellow);padding:0 6px;border:2px solid var(--ink);border-radius:6px;
  }
  nav.primary-nav{display:flex;gap:22px;flex-wrap:wrap;}
  nav.primary-nav a{
    font-size:14.5px;font-weight:600;color:var(--ink-soft);
    padding:6px 2px;border-bottom:2px solid transparent;
    transition:.15s;
  }
  nav.primary-nav a:hover{color:var(--ink);border-bottom-color:var(--ink);}
  .header-actions{display:flex;gap:10px;align-items:center;}

  /* Hamburger toggle + dropdown — hidden on desktop, switched on for
     mobile down in the media query below. */
  .nav-toggle{
    display:none;width:38px;height:38px;border:2px solid var(--ink);border-radius:10px;
    background:#fff;cursor:pointer;flex:none;
    flex-direction:column;align-items:center;justify-content:center;gap:5px;
    box-shadow:3px 3px 0 var(--ink);
  }
  .nav-toggle span{width:18px;height:2px;background:var(--ink);border-radius:1px;}
  .mobile-nav{
    display:none;flex-direction:column;
    position:absolute;top:calc(100% + 10px);right:16px;left:auto;
    width:210px;
    background:#fff;border:2px solid var(--ink);border-radius:16px;
    box-shadow:6px 6px 0 var(--ink);
    overflow:hidden;z-index:200;
  }
  .mobile-nav.open{display:flex;}
  .mobile-nav a{
    padding:13px 18px;font-weight:600;font-size:14.5px;color:var(--ink);
    border-top:1px solid #eee;text-align:right;
  }
  .mobile-nav a:first-child{border-top:none;}
  .mobile-nav a.btn{
    margin:14px 14px 14px;text-align:center;
    border-top:2px solid var(--ink);
  }
  .btn{
    display:inline-block;padding:10px 18px;border-radius:14px;
    font-weight:700;font-size:14px;cursor:pointer;border:2px solid var(--ink);
    box-shadow:4px 4px 0 var(--ink);transition:.12s;
  }
  .btn:hover{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--ink);}
  .btn-primary{background:var(--yellow);color:var(--ink);}
  .btn-primary:hover{background:var(--orange);}
  .btn-ghost{background:transparent;color:var(--ink);border:2px solid var(--ink);}
  .btn-ghost:hover{background:var(--bg);}

  /* Carousel — sits directly under the sticky header, so it must ignore
     the generic <section> padding below (which would otherwise leave a
     cream-colored gap above/below it and let the neighboring slides peek
     in from the sides through the left/right padding). */
  .carousel{
    position:relative;overflow:hidden;border-bottom:2px solid var(--ink);
    padding:0;margin:0;
  }
  .carousel-track{display:flex;transition:transform .5s ease;}
  .slide{
    min-width:100%;display:flex;align-items:center;justify-content:center;
    padding:72px 24px;text-align:center;
  }
  .slide .slide-inner{max-width:640px;margin:0 auto;}
  .slide-1{background:var(--yellow);}
  .slide-2{background:var(--blue);}
  .slide-3{background:var(--pink);}
  .slide-4{background:var(--green);}
  .eyebrow{
    display:inline-block;background:#fff;color:var(--ink);font-size:12.5px;
    font-weight:700;letter-spacing:.06em;text-transform:uppercase;
    padding:6px 14px;border-radius:12px;margin-bottom:20px;border:2px solid var(--ink);
    box-shadow:4px 4px 0 var(--ink);
  }
  .slide h1{
    font-size:42px;font-weight:800;letter-spacing:-0.02em;
    margin:0 0 14px;color:var(--ink);
  }
  .slide p.sub{
    font-size:17px;color:var(--ink);opacity:.8;max-width:520px;margin:0 auto 26px;
  }
  .hero-form{
    display:flex;gap:10px;justify-content:center;flex-wrap:wrap;max-width:440px;margin:0 auto;
  }
  .hero-form input{
    flex:1;min-width:220px;padding:13px 18px;border-radius:12px;
    border:2px solid var(--ink);font-size:15px;background:#fff;
    box-shadow:4px 4px 0 var(--ink);
  }
  .hero-note{font-size:13px;color:var(--ink);opacity:.7;margin-top:14px;}

  .carousel-arrow{
    position:absolute;top:50%;transform:translateY(-50%);
    width:42px;height:42px;border-radius:50%;background:#fff;border:2px solid var(--ink);
    display:flex;align-items:center;justify-content:center;cursor:pointer;font-weight:800;font-size:18px;
    z-index:5;box-shadow:3px 3px 0 var(--ink);
  }
  .carousel-arrow.prev{left:20px;}
  .carousel-arrow.next{right:20px;}
  .carousel-dots{
    position:absolute;bottom:18px;left:50%;transform:translateX(-50%);
    display:flex;gap:8px;z-index:5;
  }
  .carousel-dots button{
    width:9px;height:9px;border-radius:50%;border:2px solid var(--ink);background:transparent;padding:0;cursor:pointer;
  }
  .carousel-dots button.active{background:var(--ink);}

  /* Section shell */
  section{padding:64px 24px;}
  .section-head{
    display:flex;justify-content:space-between;align-items:flex-end;
    margin-bottom:32px;flex-wrap:wrap;gap:10px;
  }
  .section-head h2{font-size:28px;font-weight:800;letter-spacing:-0.01em;}
  .section-head p{color:var(--ink-soft);font-size:15px;margin-top:4px;}
  .see-all{font-weight:700;color:var(--ink);font-size:14.5px;white-space:nowrap;border-bottom:2px solid var(--ink);}
  .see-all:hover{opacity:.7;}

  /* Cards grid generic */
  .grid{display:grid;gap:22px;}
  .grid-3{grid-template-columns:repeat(3,1fr);}
  .grid-2{grid-template-columns:repeat(2,1fr);}
  @media(max-width:900px){.grid-3,.grid-2{grid-template-columns:1fr;}}

  .card{
    background:var(--card-bg);border:2px solid var(--ink);border-radius:var(--radius);
    overflow:hidden;transition:.15s;display:flex;flex-direction:column;
    box-shadow:6px 6px 0 var(--ink);
  }
  .card:hover{transform:translate(-3px,-3px);box-shadow:9px 9px 0 var(--ink);}
  .card[data-href]{cursor:pointer;}
  .guide-cta{margin-top:auto;align-self:flex-start;}
  .card-media{
    height:150px;display:flex;align-items:center;justify-content:center;
    color:var(--ink);font-weight:800;font-size:13px;letter-spacing:.04em;text-transform:uppercase;
    border-bottom:2px solid var(--ink);
  }
  .card-body{padding:20px;flex:1;display:flex;flex-direction:column;gap:8px;}
  .tag{
    font-size:11.5px;font-weight:700;color:var(--ink);text-transform:uppercase;
    letter-spacing:.05em;opacity:.65;
  }
  .card-body h3{font-size:17px;font-weight:700;line-height:1.3;}
  .card-body p{font-size:14px;color:var(--ink-soft);}
  .meta{font-size:13px;color:var(--ink-soft);margin-top:auto;padding-top:8px;}

  /* Guides "card deck" — mobile only, switched on by app.js (adds
     .card-deck to #guides-list below a width threshold). Cards stack and
     fan out like a hand of cards; tapping the top one sends it to the
     back to reveal the next, and the "Read guide" link inside still opens
     the guide normally. */
  #guides-list.card-deck{
    position:relative;display:block;
    height:400px;padding-top:6px;
  }
  #guides-list.card-deck .card{
    position:absolute;top:0;left:50%;
    width:88%;max-width:340px;height:370px;
    margin:0;transform-origin:bottom center;
    transition:transform .25s ease, box-shadow .25s ease;
    cursor:pointer;
  }
  #guides-list.card-deck .card .card-body{overflow:hidden;}
  #guides-list.card-deck .card:nth-child(1){z-index:9;transform:translateX(-50%) rotate(0deg) translateY(0);}
  #guides-list.card-deck .card:nth-child(2){z-index:8;transform:translateX(-50%) rotate(-4deg) translateY(14px);}
  #guides-list.card-deck .card:nth-child(3){z-index:7;transform:translateX(-50%) rotate(4deg) translateY(26px);}
  #guides-list.card-deck .card:nth-child(4){z-index:6;transform:translateX(-50%) rotate(-7deg) translateY(36px);}
  #guides-list.card-deck .card:nth-child(n+5){z-index:1;opacity:0;pointer-events:none;transform:translateX(-50%) translateY(40px);}
  .card-deck-hint{
    display:none;text-align:center;font-size:12.5px;color:var(--ink-soft);
    font-weight:700;margin-top:14px;
  }
  #guides-list.card-deck ~ .card-deck-hint{display:block;}

  /* card media color rotation */
  .media-yellow{background:var(--yellow);}
  .media-orange{background:var(--orange);}
  .media-pink{background:var(--pink);}
  .media-blue{background:var(--blue);}
  .media-green{background:var(--green);}

  /* Events section variant */
  .events{background:var(--ink);color:#fff;}
  .events .section-head h2, .events .section-head p{color:#fff;}
  .events .section-head p{color:rgba(255,255,255,.75);}
  .events .see-all{color:#fff;border-bottom-color:#fff;}
  .event-row{
    display:flex;gap:18px;align-items:center;background:rgba(255,255,255,.06);
    border:2px solid rgba(255,255,255,.35);border-radius:12px;padding:16px 18px;margin-bottom:14px;
    box-shadow:5px 5px 0 rgba(255,255,255,.2);
  }
  .event-date{
    background:var(--yellow);color:var(--ink);border-radius:10px;padding:8px 12px;text-align:center;
    min-width:58px;font-weight:800;font-size:13px;line-height:1.2;border:2px solid var(--ink);
    box-shadow:3px 3px 0 var(--ink);
  }
  .event-date small{display:block;font-weight:600;font-size:10.5px;text-transform:uppercase;}
  .event-info h4{font-size:16px;font-weight:700;}
  .event-info span{font-size:13.5px;color:rgba(255,255,255,.75);}
  .event-info a.ev-link{display:inline-block;margin-top:2px;font-size:12.5px;font-weight:700;text-decoration:underline;color:var(--yellow);}

  /* "See the full calendar" button — mobile-only, shown under a
     trimmed-down event list. Desktop keeps just the header link. */
  .events-see-all-mobile{display:none;}


  /* Simple page hero (non-carousel, for interior pages) */
  .page-hero{
    background:var(--yellow);border-bottom:2px solid var(--ink);
    padding:56px 24px;text-align:center;
  }
  .page-hero h1{
    font-size:38px;font-weight:800;letter-spacing:-0.02em;margin:0 0 10px;
  }
  .page-hero p{font-size:16px;color:var(--ink);opacity:.8;max-width:560px;margin:0 auto;}

  /* Filter bar (jobs / guides / blog) */
  .filter-bar{
    display:flex;flex-direction:column;gap:12px;margin-bottom:28px;
  }
  .filter-group{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
  .filter-group-label{font-size:12.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-soft);min-width:70px;}
  .filter-chip{
    padding:8px 16px;border:2px solid var(--ink);border-radius:999px;
    background:#fff;font-size:13.5px;font-weight:700;cursor:pointer;
    box-shadow:3px 3px 0 var(--ink);transition:.12s;
    /* These are real <button> elements. Without turning off the native
       button chrome, iOS Safari can render the label in the system accent
       color (blue) even though the CSS color below computes to black. */
    color:var(--ink);font-family:inherit;-webkit-appearance:none;appearance:none;
  }
  .filter-chip:hover{transform:translate(1px,1px);box-shadow:2px 2px 0 var(--ink);}
  .filter-chip.active{background:var(--yellow);}

  /* Events date-range filter (/events page). Lives inside the dark
     .events section, so its labels/inputs get light-on-dark overrides
     to match, the same way .events .see-all does above. */
  .events-date-filter{margin-bottom:24px;}
  .events-date-filter input[type="date"]{
    padding:8px 12px;border-radius:10px;border:2px solid var(--ink);
    font-size:13.5px;font-family:inherit;background:#fff;color:var(--ink);
  }
  .events .filter-group-label{color:rgba(255,255,255,.75);}
  .events .filter-chip{
    background:rgba(255,255,255,.06);color:#fff;border-color:rgba(255,255,255,.35);
    box-shadow:3px 3px 0 rgba(255,255,255,.2);
  }
  .events .filter-chip:hover{background:rgba(255,255,255,.12);}

  /* Events map (desktop only) — sits beside the event list inside the dark
     .events section. A light card with the site's border/shadow language
     (rather than dark map tiles) so it reads as "one of our cards", not a
     generic embedded widget. */
  .events-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;align-items:start;}
  .events-list-col{min-width:0;}
  .map-card{
    background:#fff;border:2px solid var(--ink);border-radius:var(--radius);
    box-shadow:8px 8px 0 var(--ink);overflow:hidden;
    position:sticky;top:96px;
  }
  .map-toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:12px;border-bottom:2px solid var(--ink);}
  .map-toolbar .btn{padding:8px 14px;font-size:13px;box-shadow:3px 3px 0 var(--ink);}
  #events-map{height:440px;width:100%;background:var(--bg);}
  .map-status{
    font-size:12.5px;font-weight:700;color:var(--ink-soft);padding:10px 14px 0;min-height:14px;
  }
  .map-legend{display:flex;flex-wrap:wrap;gap:8px 16px;padding:12px 14px;border-top:2px solid #eee;margin-top:8px;}
  .map-legend-item{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:var(--ink);}
  .map-legend-dot{
    width:13px;height:13px;border-radius:50%;border:2px solid var(--ink);display:inline-block;flex:none;
  }

  /* Custom Leaflet pins — a plain colored teardrop with the site's ink
     border + drop-shadow look, instead of Leaflet's default blue marker. */
  .map-pin{
    display:block;filter:drop-shadow(2px 2px 0 var(--ink));
    transition:transform .15s ease;
  }
  .map-pin.pin-highlight{transform:scale(1.3);}
  .map-pin-search{
    width:18px;height:18px;border-radius:50%;background:#fff;border:3px solid var(--ink);
    box-shadow:0 0 0 5px rgba(23,32,51,.18);
  }
  .leaflet-popup-content-wrapper{
    border:2px solid var(--ink) !important;border-radius:12px !important;
    box-shadow:4px 4px 0 var(--ink) !important;
  }
  .leaflet-popup-tip{border:2px solid var(--ink) !important;}
  .map-popup h4{font-size:14px;font-weight:800;margin-bottom:4px;color:var(--ink);}
  .map-popup p{font-size:12.5px;color:var(--ink-soft);margin-bottom:6px;}
  .map-popup a{font-size:12.5px;font-weight:700;text-decoration:underline;color:var(--ink);}

  /* Category color dot shown on each event row, tying it back to its pin's
     color on the map. */
  .event-cat-dot{
    width:10px;height:10px;border-radius:50%;border:2px solid rgba(255,255,255,.6);
    display:inline-block;margin-right:6px;vertical-align:middle;flex:none;
  }
  .event-row.row-highlight{border-color:var(--yellow);box-shadow:5px 5px 0 var(--yellow);}
  .event-distance{display:block;margin-top:2px;font-size:12px;color:var(--yellow);font-weight:700;}

  @media(max-width:900px){
    .events-layout{grid-template-columns:1fr;}
    .events-map-col{display:none;} /* map stays desktop-only, matching how mobile has been kept simple elsewhere on this site */
  }

  /* Newsletter signup band */
  .signup-band{
    background:var(--green);border:2px solid var(--ink);border-radius:24px;margin:0 24px;
    padding:56px 32px;text-align:center;box-shadow:8px 8px 0 var(--ink);
  }
  .signup-band h2{font-size:30px;font-weight:800;margin-bottom:10px;}
  .signup-band p{color:var(--ink);opacity:.8;max-width:480px;margin:0 auto 24px;font-size:16px;}
  .signup-band .hero-form input{background:#fff;}
  .stat-row{display:flex;justify-content:center;gap:36px;margin-top:28px;flex-wrap:wrap;}
  .stat{text-align:center;}
  .stat b{display:block;font-size:24px;color:var(--ink);}
  .stat span{font-size:13px;color:var(--ink-soft);}

  /* Footer */
  footer{background:var(--ink);color:#dbe1ee;padding:56px 24px 28px;margin-top:20px;}
  .footer-grid{
    display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:32px;max-width:var(--max);margin:0 auto;
  }
  @media(max-width:800px){.footer-grid{grid-template-columns:1fr 1fr;}}
  .footer-grid h4{color:#fff;font-size:14px;margin-bottom:14px;letter-spacing:.03em;text-transform:uppercase;}
  .footer-grid a{display:block;font-size:14px;color:#aeb7cf;margin-bottom:10px;}
  .footer-grid a:hover{color:#fff;}
  .footer-brand .logo{color:#fff;margin-bottom:10px;}
  .footer-brand .logo span{color:var(--ink);}
  .footer-brand p{font-size:13.5px;color:#aeb7cf;max-width:280px;margin-bottom:16px;}
  .social-row{display:flex;gap:12px;}
  .social-row a{
    width:34px;height:34px;border-radius:10px;border:2px solid #48507a;
    display:flex;align-items:center;justify-content:center;font-size:13px;margin:0;
  }
  .footer-bottom{
    max-width:var(--max);margin:40px auto 0;padding-top:20px;border-top:2px solid #333d5e;
    display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:12.5px;color:#9aa3c2;
  }
  .empty-note{color:var(--ink-soft);font-size:14px;}

  /* Article page (guides / blog detail) */
  .article-hero{padding:48px 24px 0;}
  .article-hero .tag{opacity:1;color:var(--ink-soft);}
  .article-hero h1{font-size:34px;font-weight:800;letter-spacing:-0.02em;margin:10px 0;}
  .article-hero .meta{font-size:14px;}
  .article-cover{
    height:200px;border:2px solid var(--ink);border-radius:var(--radius);
    margin:24px 0 8px;box-shadow:6px 6px 0 var(--ink);
  }
  .article-body{
    max-width:760px;margin:32px auto 0;font-size:16.5px;line-height:1.8;color:var(--ink);
  }
  .article-body h2{font-size:22px;font-weight:800;margin:32px 0 12px;}
  .article-body h3{font-size:18px;font-weight:800;margin:24px 0 10px;}
  .article-body p{margin-bottom:16px;}
  .article-body ul, .article-body ol{margin:0 0 16px 22px;}
  .article-body li{margin-bottom:6px;}
  .article-body a{text-decoration:underline;}
  .back-link{display:inline-block;margin-bottom:16px;font-weight:700;font-size:14px;}

  /* Blog list (wide rows, not cards) */
  .blog-row{
    display:block;background:#fff;border:2px solid var(--ink);border-radius:var(--radius);
    padding:22px 24px;margin-bottom:16px;box-shadow:5px 5px 0 var(--ink);transition:.12s;
  }
  .blog-row:hover{transform:translate(-2px,-2px);box-shadow:7px 7px 0 var(--ink);}
  .blog-row .meta-row{display:flex;gap:10px;align-items:center;margin-bottom:8px;flex-wrap:wrap;}
  .blog-row .tag{
    background:var(--blue);border:2px solid var(--ink);border-radius:6px;padding:2px 8px;opacity:1;
  }
  .blog-row h3{font-size:19px;font-weight:800;margin-bottom:6px;}
  .blog-row p{font-size:14.5px;color:var(--ink-soft);margin-bottom:6px;}
  .blog-row .read-more{font-weight:700;font-size:13.5px;text-decoration:underline;}

  /* ---------- Mobile ---------- */
  @media(max-width:640px){
    .wrap{padding:0 16px;}

    /* Header: swap the full nav + subscribe button for a hamburger that
       opens a vertical dropdown, so the sticky header stays one thin row. */
    .header-inner{padding:12px 16px;gap:8px;}
    .logo{font-size:18px;}
    nav.primary-nav{display:none;}
    .header-actions{display:none;}
    .nav-toggle{display:flex;}

    /* Hero carousel — thinner: less top/bottom padding, smaller type,
       so it reads as a slim banner instead of a full screen on mobile. */
    .slide{padding:22px 16px 28px;}
    .slide .slide-inner{max-width:100%;}
    .slide h1{font-size:20px;margin:0 0 6px;}
    .slide p.sub{font-size:13px;margin:0 auto 14px;line-height:1.4;}
    .eyebrow{font-size:10px;padding:4px 10px;margin-bottom:8px;}
    .slide .btn{padding:8px 16px;font-size:13px;}
    .hero-form{max-width:100%;}
    .hero-form input{min-width:0;width:100%;}
    .hero-note{font-size:11px;margin-top:8px;}
    .carousel-arrow{width:28px;height:28px;font-size:13px;}
    .carousel-arrow.prev{left:6px;}
    .carousel-arrow.next{right:6px;}
    .carousel-dots{bottom:8px;}

    /* Events — trim to 4 on mobile, with a bottom button to the full
       calendar instead of relying only on the small header link. */
    #events-list .event-row:nth-child(n+5){display:none;}
    .events-see-all-mobile{
      display:block;width:100%;text-align:center;
      margin-top:16px;padding:10px;font-size:13.5px;
    }

    /* Section rhythm */
    section{padding:40px 16px;}
    .section-head h2{font-size:22px;}

    .page-hero{padding:36px 16px;}
    .page-hero h1{font-size:28px;}

    .signup-band{margin:0;padding:36px 20px;border-radius:18px;}
    .signup-band h2{font-size:24px;}
    .stat-row{gap:20px;}

    .article-hero h1{font-size:26px;}
    .article-cover{height:140px;}
    .article-body{font-size:15.5px;}

    footer{padding:40px 16px 20px;}
    .footer-grid{grid-template-columns:1fr;gap:28px;}
  }
