/* Eventnivo site-wide header and footer: skip link, announcement bar, wordmark, sticky mast, footer.
   Styles the markup printed by Eventnivo_Store\Header_Footer_Parts (map in includes/class-header-footer-parts.php).
   Ported from eventnivo-site/css/site.css (.skip, .announce, .wm, .ftr). The header row itself is menu.css.
   Loads after menu.css (priority 110), so a tie in specificity goes to this file. */

/* ---- skip link ----
   Ultimate Addons prints a.hfe-skip-link first in the body, with its own inline style (white, blue).
   Restyled to the design's .skip. The :root prefix outranks that inline style (0,3,0 against 0,2,0). */
:root .hfe-skip-link:focus{top:calc(8px + var(--eventnivo-hdr-top,0px));inset-inline-start:8px;padding:10px 16px;border-radius:var(--r-s);background:var(--ink);color:var(--paper);font:650 .95rem/1.3 var(--body);text-decoration:underline;outline:3px solid var(--brand-2);outline-offset:3px;z-index:1000}
/* The admin bar is 46px under 783px and still at the top of the page at load under 601px, where menu.css
   sets --eventnivo-hdr-top back to 0. The skip link sits below it. */
@media(max-width:782px){:root body.admin-bar .hfe-skip-link:focus{top:calc(8px + 46px)}}

/* ---- sticky mast ----
   The sticky rule lives in menu.css, with the `.ehf-header #masthead` selector that beats Ultimate Addons'
   `position:relative`. Only the print reset stays here. */
@media print{.ehf-header #masthead{position:static}}

/* Anchors and focused items must clear the sticky bar (72px) and, for editors, the admin bar.
   site.css holds 84px for visitors. :has() is skipped by browsers without it, which then keep 84px. */
html:has(body.admin-bar){scroll-padding-top:116px}
@media(max-width:782px){html:has(body.admin-bar){scroll-padding-top:130px}}
@media(max-width:600px){html:has(body.admin-bar){scroll-padding-top:84px}}

/* ---- Elementor wrappers ----
   The two templates are one container and one shortcode widget each. Elementor gives a container a
   10px padding and a 20px gap, and a widget a margin. Those are custom properties on .e-con, so a
   class of the same weight that loads later is enough. */
.eventnivo-hfe{--padding-top:0px;--padding-right:0px;--padding-bottom:0px;--padding-left:0px;--gap:0px;--row-gap:0px;--column-gap:0px}
.eventnivo-hfe .elementor-widget:not(:last-child){--kit-widget-spacing:0px}
.eventnivo-hfe .elementor-widget-container{margin:0;padding:0}

/* ---- announcement bar ---- */
.announce{background:var(--ink);color:var(--on-ink);font-size:.92rem;line-height:1.5;text-align:center;padding:9px var(--gut)}
/* Hover is pinned, so site.css's `a:hover{color:var(--ink)}` cannot turn the link ink on ink. */
.announce a,.announce a:hover{color:var(--announce-link);font-weight:650;text-decoration:underline}
/* Tap height of at least 24 px, and a hover that moves the underline away and thickens it. */
.announce a{display:inline-block;padding-block:3px;text-underline-offset:3px;text-decoration-thickness:1px}
@media(prefers-reduced-motion:no-preference){
  .announce a{transition:text-underline-offset .2s,text-decoration-thickness .2s}
  .announce a:hover{text-underline-offset:6px;text-decoration-thickness:2px}
}

/* ---- wordmark (design D6). Colours per background; sizes from the mockup. ---- */
/* Outlined SVG (assets/logos/wordmark-inline.svg), the brand logo at its own 318.8 x 64 ratio, so the box is 4.981em x 1em. */
.wm{display:inline-block;position:relative;width:4.981em;height:1em;font-size:2.1rem;line-height:1;color:var(--ink);white-space:nowrap}
.wm-svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;fill:currentColor}
.wm-x{fill:var(--brand)}
.wm-d{fill:var(--brand-2)}
.wm-dx{fill:var(--ink)}

/* ---- footer ---- */
.ftr{--padding-top:72px;--padding-right:0px;--padding-bottom:36px;--padding-left:0px;background:var(--ink);color:var(--muted-d);font-size:.95rem}
.ftr .wrap{width:100%}
.ftr .cols{display:grid;grid-template-columns:1.5fr 4fr;gap:36px}
/* One <nav> holds the four link columns, so assistive technology lists a single Footer landmark. */
.ftr .ftr-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:36px}
.ftr p{margin:0 0 1em}
.ftr .small{color:var(--muted-d)}

.ftr .logo{display:inline-flex;align-items:center;gap:10px;margin-bottom:14px;color:var(--paper);text-decoration:none}
.ftr .logo:hover{color:var(--paper)}
.ftr .logo-img{display:block;height:2.5rem;width:auto;max-width:100%}
.ftr .wm{color:var(--paper)}
.ftr .wm-x{fill:var(--brand-tint)}
.ftr .wm-dx{fill:var(--paper)}

/* The kit styles every h2 (size, colour, weight). This is more specific, so the heading keeps
   the footer look while staying a real h2 in the outline (A-09). */
.ftr .ftr-h{margin:0 0 14px;color:var(--paper);font:650 .95rem/1.2 var(--font-display);letter-spacing:0}
.ftr .ftr-list{margin:0;padding:0;list-style:none}
.ftr .ftr-list li{margin:0;padding:0}
.ftr .ftr-list a{display:block;padding:4px 0;color:var(--muted-d);text-decoration:none}
.ftr .ftr-list a:hover{color:var(--paper)}
.ftr .ftr-list a[aria-current=page]{color:var(--paper);text-decoration:underline}

.ftr .bot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;margin-top:48px;padding-top:24px;border-top:1px solid var(--line-d);font-size:.88rem}

/* The footer template is Elementor widgets. These keep the look the old shortcode markup had:
   the kit colours text editors and headings for light pages, and sizes images to the column. */
.ftr .elementor-widget-text-editor{color:inherit;font:inherit}
.ftr .elementor-widget-text-editor p{margin:0 0 1em}
.ftr .ftr-h .elementor-heading-title{margin:0;color:var(--paper);font:650 .95rem/1.2 var(--font-display);letter-spacing:0}
.ftr .ftr-logo{margin:0 0 14px;text-align:start}
.ftr .elementor-widget-text-editor .ftr-list a{text-decoration:none}
.ftr .ftr-logo a{display:inline-flex;align-items:center;min-height:44px}
.ftr .ftr-logo img{display:block;height:2.5rem;width:auto;max-width:100%}
.ftr .bot p{margin:0}

@media(max-width:900px){.ftr .cols{grid-template-columns:1fr}.ftr .ftr-nav{grid-template-columns:1fr 1fr}}
@media(max-width:359px){.ftr .ftr-nav{grid-template-columns:1fr}}
@media(max-width:520px){.ftr .ftr-nav{gap:28px 24px}}

/* Touch and small screens: 44px targets. Desktop keeps the approved 4px padding. */
@media(max-width:1020px),(pointer:coarse){
  .ftr .ftr-list a{padding:11px 0}
  .ftr .logo{min-height:44px}
}

@media(forced-colors:active){
  .ftr .bot{border-top-color:CanvasText}
  .wm-x{fill:currentColor}
  .wm-d{forced-color-adjust:none;fill:CanvasText}
  .wm-dx{forced-color-adjust:none;fill:Highlight}
}
@media print{
  .announce,.ftr,.hfe-skip-link{display:none!important}
}
