/* Sitekit V2 — DGLB glue only. Everything else is Elementor settings. */

html, body { overflow-x: clip; }

/* The header sits OVER the hero (Figma: logo y44 on the photo). No `top`, so
   the admin bar still pushes it down when logged in. */
.elementor-location-header { position: absolute; left: 0; right: 0; z-index: 50; }

/* Last paragraph in a text-editor carries the theme's bottom margin. Both
   selectors: a text-editor only wraps in <p> when it has no other markup. */
.elementor-widget-text-editor p:last-child { margin-bottom: 0; margin-block-end: 0 !important; }
/* (!important: Paragraph Spacing writes `{{WRAPPER}} p` per element, so the
   LAST paragraph also gets it and every multi-paragraph block grows 21px.) */
.sk-copy a { color: inherit; }
.sk-copy a:hover { text-decoration: underline; }

/* Buttons are a fixed 191×40 in the comp; Elementor has no min-size control. */
.sk-btn .elementor-button { min-width: 191px; min-height: 40px;
  justify-content: center; align-items: center; border-radius: 0; }
.sk-btn .elementor-button-icon svg { width: 12px; }

/* Hero "What matters to you?" dropdown. */
.sk-dd { position: relative; }
.sk-dd-toggle { cursor: pointer; }
.sk-dd-caret { clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .2s ease; }
.sk-dd.is-open .sk-dd-caret { transform: rotate(180deg); }
.sk-dd-list { position: absolute !important; top: 100%; left: 0; right: 0; z-index: 30;
  display: none !important; }
.sk-dd.is-open .sk-dd-list { display: flex !important; }
.elementor-editor-active .sk-dd-list { position: relative !important; display: flex !important; }
.sk-dd-item { border-bottom: 1px solid #E3E3E3; transition: border-color .15s ease; }
.sk-dd-item:last-child { border-bottom: 0; }
.sk-dd-item:hover { border-bottom-color: rgba(255,182,18,.5); }
.sk-dd-item a { color: inherit; display: block; }

/* READ MORE (142×40) and the plain-text "Become a partner" link. */
.sk-btn.sk-btn--sm .elementor-button { min-width: 142px; }
/* Only the small button's long arrow is enlarged — on .sk-btn it also grew the
   homepage buttons' icon box to 16 and made them 44 tall. */
.sk-btn--sm .elementor-button-icon { font-size: 16px; }
.sk-textlink .elementor-button { padding: 0; min-height: 0; }
.sk-textlink .elementor-button-icon { font-size: 16px; }

/* Activities video thumb: the comp's 93px 75%-white disc behind the play icon. */
.sk-video .elementor-custom-embed-play { width: 93px; height: 93px; border-radius: 50%;
  background: rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center; }
.sk-video .elementor-custom-embed-play i { opacity: 1; text-shadow: none; margin-left: 6px; }
.sk-video .elementor-custom-embed-image-overlay { aspect-ratio: 650 / 394; }

/* Trip carousel: cards are a fixed 1045 with the next one peeking to the
   viewport edge. Elementor's offset is px-only, so drive its own variable with
   a % here; the carousel itself runs from the measure to the right viewport
   edge. */
.sk-trip-carousel { width: calc(100% + (100vw - 100%) / 2) !important; max-width: none !important; }
/* The nested carousel's variable is prefixed (--e-n-carousel-…); the bare
   --swiper-offset-size is the Loop Carousel's and changed nothing here. */
.sk-trip-carousel { --e-n-carousel-swiper-offset-size: calc(100% - 1045px) !important; }
@media (max-width: 1024px) {
  .sk-trip-carousel { --e-n-carousel-swiper-offset-size: 12% !important; }
}


/* Opportunities archive. County pills on each card (no Elementor control
   draws a pill per term). Post Info joins terms with ", " text nodes, hence
   font-size 0 on the list. */
/* Post Info separates terms with ", " text nodes; at font-size 0 each is still
   a (zero-width) flex item, so the column gap applies twice — 6px reads as 12,
   matching the 12px between the County and Type lists. */
.sk-pills .elementor-post-info__terms-list { font-size: 0; display: inline-flex !important; flex-wrap: wrap; gap: 8px 6px; }
.sk-pills .elementor-post-info__terms-list-item { display: inline-block !important; background: #64BF40; color: #fff;
  font: 700 10px/23px "Figtree", sans-serif; letter-spacing: .2px; text-transform: uppercase;
  padding: 0 12px; min-width: 69px; text-align: left; }
.sk-pills .elementor-icon-list-item { margin: 0; }
/* Type tiles act as a filter: when one is active the others step back. */
.sk-county-dd .sk-dd-item.is-active .elementor-heading-title { color: #2F7697; }
.sk-opp-results { transition: opacity .2s ease; }
.sk-opp-results.is-loading { opacity: .4; pointer-events: none; }
.sk-opp-results .elementor-pagination { margin-top: 65px; }
.sk-opp-results .elementor-pagination .page-numbers { margin: 0 4px; }

/* ── Interactive county map (home + Opportunities mega panel) ── */
.sk-map svg, .sk-map-svg { width: 100%; height: auto; display: block; overflow: visible; }
.sk-map--light { --sk-map-line: #32464F; --sk-map-label: #32464F; --sk-map-hl: #CBEFFF; --sk-map-hl-label: #32464F; }
.sk-map--dark  { --sk-map-line: #FFFFFF; --sk-map-label: #FFFFFF; --sk-map-hl: #49A8D4; --sk-map-hl-label: #FFFFFF; }
.sk-map-svg .sk-map-county path { fill: transparent; transition: fill .2s ease; }
.sk-map-svg .sk-map-county { cursor: pointer; outline: none; }
.sk-map-svg .sk-map-county.is-active path,
.sk-map-svg .sk-map-county:focus-visible path { fill: var(--sk-map-hl); }
.sk-map-svg .sk-map-lines { fill: var(--sk-map-line); pointer-events: none; }
.sk-map-svg .sk-map-label { font: 700 29px/1 "Yanone Kaffeesatz", sans-serif; fill: var(--sk-map-label);
  pointer-events: none; transition: fill .2s ease; }
.sk-map-svg .sk-map-label.is-active { fill: var(--sk-map-hl-label); }
.sk-map-panel { display: none !important; }
.sk-map-panel.is-active { display: flex !important; animation: skFade .25s ease; }
.elementor-editor-active .sk-map-panel { display: flex !important; border-top: 1px dashed rgba(255,255,255,.35); }
@keyframes skFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Hover polish (the comps show resting states only) ── */
.sk-tile, .sk-type-tile { transition: filter .25s ease, box-shadow .25s ease; }
.sk-type-tile.is-active { box-shadow: inset 0 0 0 2000px rgba(55,166,214,.8); filter: none; }
.sk-opps.has-type .sk-type-tile:not(.is-active) { opacity: 1; }
.e-loop-item .sk-opp-card, .sk-res-card, .sk-news-card { transition: transform .25s ease, box-shadow .25s ease; }
.sk-res-card:hover, .sk-news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(17,116,162,.16); }
.sk-res-card[data-kind="pdf"] .sk-res-icon img,
.sk-res-card[data-kind="guide"] .sk-res-icon img { filter: none; }
.elementor-location-footer .elementor-icon-list-item a:hover .elementor-icon-list-text { color: #FFB612 !important; }
.elementor-widget-image a img, .sk-logos img { transition: transform .25s ease; }
.sk-acc-head:hover .sk-acc-label .elementor-heading-title { color: #65A6C5; }
.sk-video .elementor-custom-embed-image-overlay:hover .elementor-custom-embed-play { transform: translate(-50%,-50%) scale(1.08); }
.sk-video .elementor-custom-embed-play { transition: transform .25s ease; }
.sk-crumbs a { color: inherit; text-decoration: none; }
.sk-crumbs a:hover { color: #FFB612; }

/* ── County pages: feature cards ── */
.sk-feature-body p:last-child { margin-bottom: 0; }
.sk-feature-body a { font-weight: 700; text-decoration: underline; color: #1174A2; }
.sk-feature--dark .sk-feature-body a { color: #FFFFFF; }
.sk-feature--light .sk-feature-body a { color: #1174A2; }
.sk-feature-body ul { padding-left: 24px; margin: 0 0 1em; }
.sk-feature-body a:hover { color: #D7009C; }
.sk-feature--dark .sk-feature-body a:hover { color: #FFB612; }

/* ── Careers: embed slot (visible until the job board's code is pasted in) ── */
.sk-embed-slot { border: 2px dashed #49A8D4; background: rgba(255,255,255,.6); padding: 48px 32px;
  text-align: center; font: 400 15px/1.5 "Wix Madefor Text", sans-serif; color: #2F7697; }
.sk-embed-slot strong { display: block; font: 800 22px/1.2 "Wix Madefor Text", sans-serif;
  text-transform: uppercase; margin-bottom: 8px; }

/* ── News ── */
/* ── Partners module: logo → popup (PARTNER_JS) ── */
.sk-partner { cursor: pointer; border-radius: 4px; outline-offset: 4px; }
.sk-partner img { transition: transform .25s ease, filter .25s ease; }
.sk-partner:hover img, .sk-partner:focus-visible img { transform: scale(1.06); }
.sk-partner:focus-visible { outline: 2px solid #1174A2; }
/* The popup content lives hidden in each cell; the editor shows it (dashed)
   so it can be edited in place. */
.sk-partner-pop { display: none !important; }
.elementor-editor-active .sk-partner-pop { display: flex !important; margin-top: 10px;
  padding: 10px; border: 1px dashed #49A8D4; font-size: 12px; }
.sk-pop-ov { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center;
  justify-content: center; padding: 20px; background: rgba(33,39,42,.72); }
.sk-pop-ov.is-open { display: flex; animation: sk-pop-in .2s ease; }
@keyframes sk-pop-in { from { opacity: 0; } to { opacity: 1; } }
.sk-pop { position: relative; width: 100%; max-width: 560px; max-height: 85vh; overflow: auto;
  background: #fff; border-top: 6px solid #FFB612; padding: 44px 40px 36px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.sk-pop .sk-partner-pop.is-shown { display: flex !important; }
.sk-pop-logo { display: block; width: auto !important; max-width: 220px; max-height: 96px;
  object-fit: contain; margin: 0 0 24px; }
.sk-pop-x { position: absolute; top: 8px; right: 12px; width: 40px; height: 40px; padding: 0;
  border: 0; background: none; color: #1174A2; font: 400 34px/1 sans-serif; cursor: pointer; }
/* Hello Elementor paints every button:hover/:focus #c36 — keep the × bare. */
.sk-pop .sk-pop-x:hover, .sk-pop .sk-pop-x:focus { background: none; color: #D7009C; }
html.sk-pop-lock { overflow: hidden; }
@media (max-width: 767px) { .sk-pop { padding: 40px 22px 26px; } }

/* ── Homepage / 404 map: the band's photo follows the hovered county (MAP_JS) ── */
.sk-map-band { isolation: isolate; }
.sk-map-bgfx { position: absolute; inset: 0; z-index: -1; background-size: cover;
  background-position: center; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.sk-map-bgfx.is-on { opacity: 1; }

/* County feature-card gallery arrows (added by GALLERY_JS). */
.sk-gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.85); color: #1174A2; font: 700 24px/32px sans-serif;
  transition: background .2s, color .2s; }
.sk-gal-arrow:hover, .sk-gal-arrow:focus-visible { background: #D7009C; color: #fff; }
.sk-gal-arrow--prev { left: 10px; } .sk-gal-arrow--next { right: 10px; }
.sk-gal-thumb img { cursor: pointer; transition: opacity .2s, outline-color .2s;
  outline: 3px solid transparent; outline-offset: -3px; }
.sk-gal-thumb img:hover { opacity: .85; }
.sk-gal-thumb img.is-active { outline-color: #FFB612; }
/* Section-level current item: the Mega Menu only marks an exact URL match, so
   a single opportunity, a county page or a type archive left OPPORTUNITIES
   white. Scoped to the horizontal (desktop) layout. */
body.single-opportunity #nav-opportunities,
body.tax-county #nav-opportunities,
body.tax-opportunity_type #nav-opportunities { --n-menu-title-color-normal: #FFB612; }
/* A LINKED image widget wraps the <img> in an inline-block <a>, so width:100%
   resolves against the shrink-wrapped link and a fixed-height cover photo
   comes out at its aspect width (309/330/346px in a 346px card). */
.sk-news-photo a { display: block; }
.sk-news-body img { max-width: 100%; height: auto; }
.sk-news-body h2, .sk-news-body h3 { font-family: "Wix Madefor Text", sans-serif; font-weight: 800;
  color: #1174A2; text-transform: uppercase; letter-spacing: -.5px;
  margin: 1.4em 0 .5em; line-height: 1.1; }
.sk-news-body p { margin: 0 0 1.1em; }

/* Find-it-quick tiles. */
.sk-tile { transition: filter .2s ease; }
.sk-tile:hover { filter: brightness(1.08); }

/* Contact form: the comp's 50px fields and 196px message box. */
.sk-form .elementor-field-textual:not(textarea) { height: 50px; min-height: 50px; }
.sk-form textarea.elementor-field-textual { height: 196px; }
/* Elementor floors an sm form button at 40px tall; the comp's is 36. */
.sk-form .elementor-form .elementor-button.elementor-size-sm { min-height: 36px; }

/* County accordion: plus/minus drawn here (3px #FF6F00 strokes, 23×23). */
.sk-acc-head { cursor: pointer; }
.sk-acc-icon { position: relative; }
.sk-acc-icon::before, .sk-acc-icon::after { content: ""; position: absolute;
  background: #FF6F00; transition: transform .2s ease; }
.sk-acc-icon::before { left: 0; right: 0; top: 10px; height: 3px; }
.sk-acc-icon::after { top: 0; bottom: 0; left: 10px; width: 3px; }
.sk-acc.is-open .sk-acc-icon::after { transform: scaleY(0); }
.sk-acc.is-open .sk-acc-label .elementor-heading-title { color: #65A6C5; }
.sk-acc-body { display: none !important; }
.sk-acc.is-open .sk-acc-body,
.elementor-editor-active .sk-acc-body { display: flex !important; }
.sk-acc-contact a { color: #1174A2; font-weight: 700; text-decoration: none; }
.sk-acc-contact a:hover, .sk-acc-contact a:focus-visible { color: #D7009C; text-decoration: underline; }

/* Mega menu: the dropdown panel spans the viewport like the comp. */
.sk-mm .e-n-menu-title { cursor: pointer; }

@media (max-width: 1024px) {
  .sk-acc { border-bottom: 1px solid rgba(51,51,51,.25); padding: 26px 0 22px; }
  .sk-acc-row:last-child .sk-acc:last-child { border-bottom: 0; }
}

/* With the mobile menu open the whole header turns into the dark panel. */
@media (max-width: 1024px) {
  .sk-header:has(.e-n-menu-toggle[aria-expanded="true"]) { background-color: #21272A; }
  /* …and runs at least to the bottom of the screen, as in the mobile comp. */
  /* Elementor's own `.elementor-widget-n-menu .e-n-menu[data-layout=dropdown]
     .e-n-menu-wrapper { background-color: transparent }` (4 classes) beat the
     old 2-class rule: the min-height applied, the colour didn't, and the page
     showed through below the last item. */
  .sk-mm.elementor-widget-n-menu .e-n-menu[data-layout="dropdown"] .e-n-menu-wrapper {
    min-height: calc(100vh - 80px); background-color: #21272A; }
  /* The expanded item turns blue (#49A8D4) in the comp. The widget's "active"
     colour means CURRENT PAGE, not "expanded", so key on the toggle's state. */
  /* Specificity has to beat Elementor's own dropdown rule (7 classes), hence
     the long selector. */
  .sk-mm .e-n-menu[data-layout="dropdown"] .e-n-menu-title:not(.e-current):has([aria-expanded="true"])
    .e-n-menu-title-container .e-n-menu-title-text { color: #49A8D4; }
}
