@charset "utf-8";
/* ==========================================================================
   HP4U Events
   hp4u-events_v2.css — Visual refinements (add-on)
   Loads AFTER hp4u-events.css
   ========================================================================== */

/* --------------------------------------
   Config
   -------------------------------------- */
.hp4u-events-list{

  --hp4u-evt-leftw: var(--hp4u-allcardsleft-column-width);



  --hp4u-evt-left-bg: #ffffff;

  --hp4u-evt-border: #ffffff;
	--hp4u-evt-border-2:var(--hp4u-ink-dark);

  --hp4u-evt-ink: var(--hp4u-ink-dark, #2f373f);
  --hp4u-evt-ink-muted: var(--hp4u-ink-secondary, #465059);



  --hp4u-evt-focus-ring: 0 0 0 3px rgba(233, 79, 28, .28);


  --hp4u-evt-logos-h: 90px;
	
}
@supports (color-mix(in oklab, #000 0%, #fff 0%)){
  .hp4u-events-list{
    --hp4u-evt-focus-ring: 0 0 0 2px #fff, 
      0 0 0 4px color-mix(in oklab, #5ecb00 46%, transparent);
  }
}

/* --------------------------------------
   Event-type left-column tints
   -------------------------------------- */

.hp4u-card.eventtype-default{ --hp4u-evt-left-bg: #FFFFFF; }

.hp4u-card.eventtype-4{ --hp4u-evt-left-bg: transparent; }

.hp4u-card.eventtype-2{ --hp4u-evt-left-bg: transparent; }

.hp4u-card.eventtype-3{ --hp4u-evt-left-bg: transparent; }

.hp4u-card.eventtype-1{ --hp4u-evt-left-bg: transparent; }




.hp4u-card { color: var(--hp4u-evt-ink); background-color:var( --hp4u-surface-1);}
.overview .hp4u-card.eventtype-1{background-color:var(--hp4u-surface-sonderformat-1);}
.overview .hp4u-card.eventtype-2{background-color:var(--hp4u-surface-sonderformat-2);}
.overview .hp4u-card.eventtype-3{background-color:var(--hp4u-surface-sonderformat-3);}
.overview .hp4u-card.eventtype-4{background-color:var(--hp4u-surface-sonderformat-4);}

/* --------------------------------------
   Card shell & inner padding
   -------------------------------------- */
.hp4u-card .hp4u-card__inner{
  position: relative;
  padding: var(--hp4u-evt-pad);
}

.hp4u-card .hp4u-card__linkarea{
  display: grid;
  grid-template-columns: var(--hp4u-evt-leftw) 1fr;
  gap: var(--hp4u-evt-gap);
  position: relative;
  z-index: 1;

}

/* ---------------------------------------------------
   Left column: Variant A — full-bleed tonal panel (desktop)
   --------------------------------------------------- */
.hp4u-card .hp4u-card__inner::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;

  /*width: calc(var(--hp4u-evt-pad) + var(--hp4u-evt-leftw));*/
	width: var(--hp4u-evt-leftw);
  background: var(--hp4u-evt-left-bg);
  border-right: 0 solid var(--hp4u-evt-border);
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
  z-index: 0;
}

.hp4u-card .hp4u-col--left{
  position: relative;
  padding: var(--hp4u-card-left-colum-pad);
  font-variant-numeric: tabular-nums lining-nums;
  background: transparent;


}

.hp4u-card .hp4u-col--left .hp4u-day{
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .045em;
  font-weight: var(--hp4u-evt-badge-day-weight,500);
  color: var(--hp4u-evt-ink-muted);
  margin: 0 0 4px 0;
}
.hp4u-card .hp4u-col--left .hp4u-timeblk--main .hp4u-time{
  color: var(--hp4u-evt-ink);
}

.hp4u-card .hp4u-col--left .hp4u-timeblk--main + .hp4u-slots{
  position: relative; margin-top:12px;
}
.hp4u-card .hp4u-col--left .hp4u-timeblk--main + .hp4u-slots::before{
  content: ""; display:block; height:1px;
  background: var(--hp4u-evt-border);
  margin: 12px 0;
}
.hp4u-card .hp4u-col--left .hp4u-slots{
  display: grid; gap:6px;
}
.hp4u-card .hp4u-col--left .hp4u-slots .hp4u-timeblk{display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:baseline;}
.hp4u-card .hp4u-col--left .hp4u-slots .hp4u-time{ font-weight:600; color:var(--hp4u-evt-ink); }
.hp4u-card .hp4u-col--left .hp4u-slot-label, 
.hp4u-card .hp4u-col--left .hp4u-slot-note{ color:var(--hp4u-evt-ink-muted); font-size:.92rem; }

.hp4u-card .hp4u-col--left .hp4u-logos{ margin-top:12px; }
.hp4u-card .hp4u-col--left .hp4u-logos__img{ max-width:140px; height:auto; border-radius:var(--hp4u-radius-sm); display:block; }

/* ---------------------------------------------------
   Badge: visually above the title, sharing Day’s lane & style
   --------------------------------------------------- */
.hp4u-card .hp4u-card__meta{
  position: absolute;
  top: calc(var(--hp4u-evt-pad) + var(--hp4u-evt-left-pad-top) + var(--hp4u-evt-badge-baseline-tweak));
  left: calc(var(--hp4u-evt-pad) + var(--hp4u-evt-leftw) + var(--hp4u-evt-gap));
  z-index: 3;
  pointer-events: auto;
}
.hp4u-card .hp4u-badge{
  display: inline-block;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .045em;
  font-weight: var(--hp4u-evt-badge-day-weight,500);
  padding: .2rem 0;
  border: var(--hp4u-border-w) solid var(--hp4u-evt-border);
  border-radius: var(--hp4u-radius-sm);
  color: var(--hp4u-accent);
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
}

.hp4u-card .hp4u-col--right{ padding-top: calc(var(--hp4u-evt-badge-space) + 6px); }

.hp4u-card .hp4u-title{ margin:0 0 8px; }

/* ---------------------------------------------------
   Focus / hover
   
.hp4u-card:focus-within{     box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06), 0 12px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    border-color: 
 color-mix(in oklab, var(--hp4u-color-border) 70%, var(--hp4u-color-text) 30%);
    background: 
 color-mix(in oklab, var(--hp4u-color-surface) 94%, #fff 6%); }
.hp4u-card .hp4u-badge:focus, 
.hp4u-card a:focus, 
.hp4u-card button:focus, 
.hp4u-card summary:focus{ outline:none; box-shadow: none; }

.hp4u-card.is-linked .hp4u-card__linkarea{ text-decoration:none; color:inherit; }
.hp4u-card.is-linked .hp4u-card__linkarea:hover{ filter:saturate(1.02); }
--------------------------------------------------- */
.hp4u-card .details-cta{ color: var(--hp4u-evt-ink-muted); font-size:var(--hp4u-font-size-cta); }

/* ────────────────────────────────────────────────────────────────────────────
   HP4U — Arrow-before-label utility for summaries & the inline "Details" CTA
   - Uses mask-image so the arrow inherits currentColor.
   - Fallback: a simple "›" chevron if mask-image isn't supported.
   - Works for both Event and Referent summaries because both use .hp4u-panel__summary
   -------------------------------------------------------------------------- */

.hp4u-panel__summary{
  display: inline-flex;          
  align-items: center;
  gap: var(--hp4u-icon-arrow-gap);
}

.hp4u-panel__summary::before{
  content: "";
  flex: 0 0 auto;
  inline-size: var(--hp4u-icon-arrow-size);
  block-size: var(--hp4u-icon-arrow-size);
  margin-inline-end: calc(var(--hp4u-icon-arrow-gap) - 0.25em);
  transform-origin: 50% 50%;
  /*transition: transform var(--hp4u-icon-anim-dur) var(--hp4u-icon-anim-ease);*/
  pointer-events: none;
  background-color: var(--hp4u-accent);
  -webkit-mask-image: var(--hp4u-icon-arrow-svg);
          mask-image: var(--hp4u-icon-arrow-svg);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}


details.hp4u-panel[open] > .hp4u-panel__summary::before{
  transform: rotate(var(--hp4u-icon-rotate-open));
}


@supports not ((mask-image: var(--hp4u-icon-arrow-svg)) or (-webkit-mask-image: var(--hp4u-icon-arrow-svg))){
  .hp4u-panel__summary::before{
    content: "›";
    inline-size: auto;
    block-size: auto;
    background: none;
    transform: none;
  }
}

.hp4u-ref-summary::after{
  content: none !important;
}

.hp4u-card .details-cta{
  display: inline-flex;
  align-items: center;
  gap: var(--hp4u-icon-arrow-gap);
}

.hp4u-card .details-cta::before{
  content: "";
  flex: 0 0 auto;
  inline-size: calc(var(--hp4u-icon-arrow-size) * 0.9);
  block-size:  calc(var(--hp4u-icon-arrow-size) * 0.9);
  margin-inline-end: calc(var(--hp4u-icon-arrow-gap) - 0.25em);
  pointer-events: none;

  background-color: var( --hp4u-accent);
  -webkit-mask-image: var(--hp4u-icon-arrow-svg);
          mask-image: var(--hp4u-icon-arrow-svg);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

@supports not ((mask-image: var(--hp4u-icon-arrow-svg)) or (-webkit-mask-image: var(--hp4u-icon-arrow-svg))){
  .hp4u-card .details-cta::before{
    content: "›";
    inline-size: auto;
    block-size: auto;
    background: none;
  }
}

/* Flip horizontally instead of rotating down/up */
.hp4u-panel__summary::before{
  transform: scaleX(1);

}
details.hp4u-panel[open] > .hp4u-panel__summary::before{
  transform: scaleX(-1);
}


.hp4u-card .details-cta::before{
  transform: scaleX(1);

}
.hp4u-card details[open] .details-cta::before{
  transform: scaleX(-1);
}

/* ──────────────────────────────────────────────────────────
   Event panel galleries (ACF main content)
   • 1-up on mobile, 2-up ≥640px
   • Cropped previews via aspect-ratio (4:5)
   • No floats/inline widths from WP legacy gallery CSS
   ────────────────────────────────────────────────────────── */
.hp4u-panel-content .gallery,
.hp4u-panel-content .wp-block-gallery {
  --hp4u-gallery-gap: 3px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hp4u-gallery-gap);
  margin: 1rem 0;
}

@media (min-width: 640px) {
  .hp4u-panel-content .gallery,
  .hp4u-panel-content .wp-block-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Reset legacy gallery furniture */
.hp4u-panel-content .gallery .gallery-item,
.hp4u-panel-content .gallery dl,
.hp4u-panel-content .gallery dt,
.hp4u-panel-content .gallery dd {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}
.hp4u-panel-content .gallery .gallery-item,
.hp4u-panel-content .wp-block-gallery .wp-block-image {
  display: block;
}

/* Crop box */
.hp4u-panel-content .gallery .gallery-icon,
.hp4u-panel-content .gallery .gallery-icon > a,
.hp4u-panel-content .wp-block-gallery .wp-block-image,
.hp4u-panel-content .wp-block-gallery .wp-block-image > a {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0;
  background: var(--hp4u-surface-1-light, #e5e3e1);
}

/* Image fills the crop */
.hp4u-panel-content .gallery .gallery-icon img,
.hp4u-panel-content .wp-block-gallery .wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Captions */
.hp4u-panel-content .gallery .gallery-caption,
.hp4u-panel-content .wp-block-gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--hp4u-ink-secondary, #465059);
  text-align: left;
}

/* 
.hp4u-panel-content .gallery .gallery-icon > a:focus-visible,
.hp4u-panel-content .wp-block-gallery .wp-block-image > a:focus-visible {
  outline: var(--hp4u-focus-ring-w, 2px) solid currentColor;
  outline-offset: 0;
  border-radius: 0;
}*/

.hp4u-panel-content .wp-block-image:not(.is-style-rounded):not(.alignfull) img {
  height: auto;
  object-fit: initial;
}


/* ================================================
   DGPARO — Event card: vertical divider (desktop)
   Drawn from the card shell so it can run deeper
   without being limited by the left column height.
   ------------------------------------------------
   ================================================ */

.hp4u-card .hp4u-card__inner { position: relative; }
.hp4u-card .hp4u-card__linkarea { position: relative; z-index: 1; } 

@media (min-width: 800.99px){
  .hp4u-card .hp4u-col--left{ border-right: 0; }

  .hp4u-card .hp4u-card__inner::after{
    content: "";
    position: absolute;
    left: calc(var(--hp4u-evt-leftw, 18rem)
      + (var(--hp4u-evt-gap, 2rem) / 2)
    );
    top:  calc(var(--hp4u-evt-pad, 2rem) + var(--hp4u-evt-line-top, 0px));
    bottom: var(--hp4u-evt-pad, 2rem);

    width: 1px;
    background: var(--hp4u-ui-hairline, rgba(0,0,0,.25)); 
    z-index: 0;                
    pointer-events: none;       
    transform: translateX(-.5px);
  }
}

/* Mobile: single column — no divider */
@media (max-width: 799.98px){
  .hp4u-card .hp4u-card__inner::after{ content: none; }
}
