/* Zineddine Benidir — page layouts (Phase 3). Works on top of the Brand System plugin (zb-brand-system).
   Elementor widgets and containers carry these classes in Advanced → CSS Classes.
   Colours always come from the --zb-* theme roles, so every rule works in the Night and Bone themes. */

/* ---------- Night scope: always the dark theme inside (hero over a photograph; later the footer) ---------- */
/* Elementor's themed globals are resolved on <body>, so they are pointed again here. */
.zb-scope-night {
  --zb-surface: var(--zb-night);
  --zb-surface-raised: var(--zb-night-800);
  --zb-hover-raised: var(--zb-night-700);
  --zb-text: var(--zb-bone);
  --zb-text-muted: var(--zb-dune-300);
  --zb-accent-text: var(--zb-light-ochre);
  --zb-action: var(--zb-light-ochre);
  --zb-on-action: var(--zb-night);
  --zb-action-hover: var(--zb-sand);
  --zb-border: var(--zb-night-600);
  --zb-border-strong: var(--zb-dune-400);
  --zb-focus-ring: var(--zb-light-ochre);
  --e-global-color-zbsurface: var(--zb-night);
  --e-global-color-zbraised: var(--zb-night-800);
  --e-global-color-zbhoverraised: var(--zb-night-700);
  --e-global-color-zbtext: var(--zb-bone);
  --e-global-color-zbmuted: var(--zb-dune-300);
  --e-global-color-zbaccent: var(--zb-light-ochre);
  --e-global-color-zbaction: var(--zb-light-ochre);
  --e-global-color-zbonaction: var(--zb-night);
  --e-global-color-zbactionhover: var(--zb-sand);
  --e-global-color-zbborder: var(--zb-night-600);
  --e-global-color-zbborderstrong: var(--zb-dune-400);
  --e-global-color-zbfocus: var(--zb-light-ochre);
  color-scheme: dark;
}

/* ---------- Text blocks ---------- */
.zb-text p:last-child, .zb-text dl:last-child { margin-bottom: 0; }
.zb-text p { margin-top: 0; }

/* ---------- Buttons ---------- */
/* ":root body" outranks Elementor's site-wide button style (.elementor-kit-N .elementor-button). */
:root body .zb-btn-primary .elementor-button,
:root body .zb-btn-secondary .elementor-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px; border-radius: 2px; border: 1px solid; text-decoration: none;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
:root body .zb-btn-primary .elementor-button { background: var(--zb-action); border-color: var(--zb-action); color: var(--zb-on-action); }
:root body .zb-btn-primary .elementor-button:hover,
:root body .zb-btn-primary .elementor-button:focus-visible { background: var(--zb-action-hover); border-color: var(--zb-action-hover); color: var(--zb-on-action); }
:root body .zb-btn-secondary .elementor-button { background: transparent; border-color: var(--zb-border-strong); color: var(--zb-text); }
:root body .zb-btn-secondary .elementor-button:hover,
:root body .zb-btn-secondary .elementor-button:focus-visible { background: transparent; border-color: var(--zb-text); color: var(--zb-text); }

/* Text link with an arrow (About me →). Underlined, so it never relies on colour alone. */
:root body .zb-btn-link .elementor-button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0;
  background: transparent; border: 0; border-radius: 0; color: var(--zb-accent-text);
}
:root body .zb-btn-link .elementor-button-text { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
:root body .zb-btn-link .elementor-button:hover { background: transparent; color: var(--zb-text); }
:root body .zb-btn-link .elementor-button:hover .elementor-button-text { text-decoration-thickness: 2px; }
.zb-btn-link .elementor-button::after,
.zb-ico-wa .elementor-button::before,
.zb-ico-mail .elementor-button::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--zb-ico) center / contain no-repeat; mask: var(--zb-ico) center / contain no-repeat;
}
.zb-btn-link .elementor-button::after { --zb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); transition: transform .25s ease; }
.zb-btn-link .elementor-button:hover::after { transform: translateX(4px); }
.zb-ico-wa .elementor-button::before { --zb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19l1.2-3.6A8 8 0 1 1 8.4 18.8z'/%3E%3Cpath d='M9 9.5c.4 2.2 2.3 4.1 4.6 4.6l1.2-1.3-1.9-1-.9.6c-.8-.4-1.5-1.1-1.9-1.9l.6-.9-1-1.9z'/%3E%3C/svg%3E"); }
.zb-ico-mail .elementor-button::before { --zb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6'/%3E%3C/svg%3E"); }

/* ---------- Photographs: never rounded, never stretched ---------- */
.zb-ph img { display: block; width: 100%; height: auto; border-radius: 0; }

/* Mosaic: each photograph keeps its own shape (landscape 3:2, portrait 2:3), and a row shares one height. */
:root body .zb-mosaic > .zb-r-land { flex: 1.5 1 0; min-width: 0; width: auto; }
:root body .zb-mosaic > .zb-r-port { flex: 0.667 1 0; min-width: 0; width: auto; }
/* Files are rarely exactly 3:2 or 2:3; trim the few pixels of difference so the row edges line up. */
@media (min-width: 768px) {
  :root body .zb-mosaic > .zb-r-land img { aspect-ratio: 3 / 2; object-fit: cover; }
  :root body .zb-mosaic > .zb-r-port img { aspect-ratio: 2 / 3; object-fit: cover; }
}
/* v2.0.1: other shapes keep their exact proportions (each photograph carries its own ratio class). */
:root body .zb-mosaic > .zb-ar { flex: var(--zb-ar) 1 0; min-width: 0; width: auto; }
@media (min-width: 768px) {
  :root body .zb-mosaic > .zb-ar img { aspect-ratio: var(--zb-ar); object-fit: cover; }
}
.zb-ar-0639 { --zb-ar: 0.6388; }
.zb-ar-0656 { --zb-ar: 0.6563; }
.zb-ar-0679 { --zb-ar: 0.6794; }
.zb-ar-1400 { --zb-ar: 1.3998; }
.zb-ar-1457 { --zb-ar: 1.4572; }
.zb-ar-1515 { --zb-ar: 1.5152; }
@media (max-width: 767px) {
  :root body .zb-mosaic { flex-direction: column; }
  :root body .zb-mosaic > .zb-r-land,
  :root body .zb-mosaic > .zb-r-port,
  :root body .zb-mosaic > .zb-ar { flex: none; width: 100%; }
}

/* ---------- Columns (tour cards, articles) ---------- */
:root body .zb-cols > .e-con { flex: 1 1 0; min-width: 0; width: auto; }
@media (max-width: 1024px) {
  :root body .zb-cols-tours { flex-direction: column; }
  :root body .zb-cols-tours > .e-con { flex: none; width: 100%; }
  :root body .zb-cols-posts { flex-wrap: wrap; row-gap: 48px; }
  :root body .zb-cols-posts > .e-con { flex: 0 0 calc(50% - 16px); }
}
@media (max-width: 767px) {
  :root body .zb-cols-posts { flex-direction: column; }
  :root body .zb-cols-posts > .e-con { flex: none; width: 100%; }
}

/* Tour card: raised surface, 3:2 photograph on top, link at the bottom. */
.zb-card { height: auto; }
.zb-card > .zb-card-body { flex-grow: 1; }
.zb-card-body > .zb-btn-link { margin-top: auto; }
.zb-meta dl { display: grid; margin: 8px 0 12px; border-top: 1px solid var(--zb-border); }
.zb-meta dl > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--zb-border); }
.zb-meta dt { color: var(--zb-text-muted); font-weight: 400; }
.zb-meta dd { margin: 0; }

/* Article card: the title turns warm on hover. */
.zb-post .elementor-heading-title a { color: inherit; text-decoration: none; }
.zb-post .elementor-heading-title a:hover { color: var(--zb-accent-text); text-decoration: underline; text-underline-offset: 4px; }
/* v2.0.1: phones and tablets: the photograph sits on top in a fixed 3:2 frame and the text always starts below it.
   Block flow (not flex) avoids Safari's flex sizing of images; the frame is set before the image loads.
   Only cards that hold a photograph change: text-only cards (Tours steps, the Contact form card) keep their
   flex column and its gap. The :has() rules stay separate, so a browser without :has() still applies the first ones. */
@media (max-width: 1024px) {
  :root body .zb-cols-tours > .zb-card.e-con, :root body .zb-cols-posts > .zb-post.e-con { display: block; height: auto; min-height: 0; }
  :root body .zb-card.e-con:has(> .zb-ph), :root body .zb-post.e-con:has(> .zb-ph) { display: block; height: auto; min-height: 0; }
  :root body .zb-cols-tours > .zb-card > .elementor-element, :root body .zb-cols-posts > .zb-post > .elementor-element { width: 100%; max-width: 100%; }
  :root body .zb-card:has(> .zb-ph) > .elementor-element, :root body .zb-post:has(> .zb-ph) > .elementor-element { width: 100%; max-width: 100%; }
  :root body .zb-card .zb-ph, :root body .zb-post .zb-ph { display: block; position: relative; width: 100%; height: auto; overflow: hidden; }
  :root body .zb-card .zb-ph img, :root body .zb-post .zb-ph img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; position: static; transform: none; }
  :root body .zb-card > .zb-card-body, :root body .zb-post > .e-con { position: relative; z-index: 1; }
}

/* ---------- Contour lines: beside the text, never under it, never over a photograph ---------- */
.zb-contour-art {
  opacity: .5; background-color: var(--zb-accent-text);
  -webkit-mask: url("../graphics/contour-lines.svg") right bottom / cover no-repeat;
  mask: url("../graphics/contour-lines.svg") right bottom / cover no-repeat;
}
@media (max-width: 1024px) {
  .zb-contour-art { -webkit-mask-position: right center; mask-position: right center; }
}

/* ---------- Headings stay balanced ---------- */
.zb-section-head .elementor-heading-title,
.zb-hero .elementor-heading-title,
.zb-intro .elementor-heading-title { text-wrap: balance; }

/* ---------- About me ---------- */
.zb-about-portrait img { width: 100%; height: auto; display: block; }
.zb-about-hero .elementor-heading-title { text-wrap: balance; }
:root body .zb-facts > .zb-fact { border-top: 1px solid var(--zb-border); padding-top: 28px; }
@media (max-width: 767px) {
  :root body .zb-facts { flex-direction: column; row-gap: 32px; }
  :root body .zb-facts > .zb-fact { flex: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .zb-btn-link .elementor-button::after { transition: none; }
}
/* =====================================================================
 * v2.0.0: header, menu, footer, form, buttons on narrow screens
 * ================================================================== */

.zb-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header stays at the top while scrolling. */
.elementor-location-header { position: sticky; top: 0; z-index: 100; }
.admin-bar .elementor-location-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .elementor-location-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .elementor-location-header { top: 0; } }
.zb-header { position: relative; }

/* Menu */
.zb-nav__toggle { display: none; }
.zb-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.zb-nav__link {
  display: inline-block; padding: 10px 0; color: var(--zb-text); text-decoration: none;
  font-family: var(--zb-font-display, inherit); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.zb-nav__link:hover { color: var(--zb-accent-text); }
.zb-nav__link[aria-current="page"] { color: var(--zb-accent-text); text-decoration: underline; }
.zb-nav__link:focus-visible, .zb-nav__toggle:focus-visible { outline: 2px solid var(--zb-focus-ring, var(--zb-accent-text)); outline-offset: 3px; border-radius: 2px; }

.zb-nav--footer .zb-nav__list { flex-direction: column; align-items: flex-start; gap: 4px; }
.zb-nav--footer .zb-nav__link { color: var(--zb-text-muted); padding: 6px 0; }
.zb-nav--footer .zb-nav__link:hover { color: var(--zb-accent-text); }

@media (max-width: 1024px) {
  .zb-nav--header.is-ready .zb-nav__toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
    background: transparent; border: 1px solid var(--zb-border); border-radius: 50%; color: var(--zb-text); cursor: pointer;
  }
  .zb-nav__bars, .zb-nav__bars::before, .zb-nav__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s ease, background-color .2s ease; }
  .zb-nav__bars { position: relative; }
  .zb-nav__bars::before, .zb-nav__bars::after { content: ""; position: absolute; left: 0; }
  .zb-nav__bars::before { top: -6px; }
  .zb-nav__bars::after { top: 6px; }
  .zb-nav--header.is-open .zb-nav__bars { background: transparent; }
  .zb-nav--header.is-open .zb-nav__bars::before { transform: translateY(6px) rotate(45deg); }
  .zb-nav--header.is-open .zb-nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

  /* v2.0.1: the open menu spans the full screen width, just below the header bar (zb-nav.js sets --zb-nav-top). */
  .zb-nav--header.is-ready .zb-nav__list {
    display: none; position: fixed; top: var(--zb-nav-top, 64px); left: var(--zb-nav-left, 0px); right: var(--zb-nav-right, 0px); width: auto; z-index: 101;
    max-height: calc(100vh - var(--zb-nav-top, 64px)); max-height: calc(100dvh - var(--zb-nav-top, 64px));
    overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px;
    background: var(--zb-surface); border-top: 1px solid var(--zb-border); border-bottom: 1px solid var(--zb-border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .25);
  }
  .zb-nav--header.is-open .zb-nav__list { display: flex; }
  .zb-nav--header.is-ready .zb-nav__link { display: block; padding: 14px 0; border-bottom: 1px solid var(--zb-border); }
  .zb-nav--header.is-ready .zb-nav__item:last-child .zb-nav__link { border-bottom: 0; }
}

/* Small phones: the WhatsApp button in the header keeps only its icon. */
@media (max-width: 600px) {
  .zb-header__actions .zb-ico-wa .elementor-button { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .zb-header__actions .zb-ico-wa .elementor-button-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* The e-mail address never pushes the page sideways. */
.zb-ico-mail .elementor-button, .zb-ico-mail .elementor-button-text { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.zb-ico-mail .elementor-button-content-wrapper { flex-wrap: wrap; justify-content: center; }
.zb-contact-details .elementor-heading-title { overflow-wrap: anywhere; }

/* Footer contact links */
.zb-footer__link a { color: inherit; text-decoration: none; }
.zb-footer__link a:hover { color: var(--zb-accent-text); text-decoration: underline; text-underline-offset: 4px; }

/* Contact form */
.zb-form .elementor-field-textual, .zb-form select, .zb-form textarea {
  background: var(--zb-surface-raised, var(--zb-surface)); color: var(--zb-text);
  border: 1px solid var(--zb-border-strong, var(--zb-border)); border-radius: 4px; min-height: 48px;
}
.zb-form .elementor-field-textual:focus, .zb-form textarea:focus { outline: 2px solid var(--zb-focus-ring, var(--zb-accent-text)); outline-offset: 1px; }
.zb-form .elementor-field-label { color: var(--zb-text); }

/* Article list on Blogs */
.zb-posts .elementor-post__title a { color: var(--zb-text); }
.zb-posts .elementor-post__title a:hover { color: var(--zb-accent-text); }
.zb-posts .elementor-post__excerpt p { color: var(--zb-text-muted); }
.zb-posts .elementor-post__read-more { color: var(--zb-accent-text); }
/* v2.0.1: Blogs: each article photograph sits in a fixed 3:2 frame (the shape of the photographs), always above its text. */
.zb-posts .elementor-posts-container .elementor-post__thumbnail__link { display: block; position: relative; }
:root body .zb-posts .elementor-posts-container .elementor-post__thumbnail { position: relative; overflow: hidden; padding-bottom: 0 !important; aspect-ratio: 3 / 2; height: auto; }
:root body .zb-posts .elementor-posts-container .elementor-post .elementor-post__thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: none; }
.zb-posts .elementor-post__text { position: relative; z-index: 1; }

/* Questions and steps */
.zb-faq .elementor-tab-title, .zb-faq summary { color: var(--zb-text); }
.zb-faq .elementor-tab-content, .zb-faq .e-n-accordion-item-content { color: var(--zb-text-muted); }
.zb-step { border-top: 1px solid var(--zb-border); padding-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  .zb-nav__bars, .zb-nav__bars::before, .zb-nav__bars::after { transition: none; }
}

/* Header layout: logo · menu (takes the free space) · theme toggle + WhatsApp. */
.zb-header, .zb-header > .e-con-inner { flex-wrap: nowrap; }
.zb-header__logo { flex: 0 0 auto; }
.zb-header__nav { flex: 1 1 auto; min-width: 0; }
.zb-header__nav .zb-nav--header .zb-nav__list { justify-content: center; flex-wrap: nowrap; white-space: nowrap; }
.zb-header__actions { --width: auto; width: auto; flex: 0 0 auto; }
@media (max-width: 1200px) and (min-width: 1025px) {
  .zb-header__nav .zb-nav--header .zb-nav__list { gap: 8px 18px; }
}
@media (max-width: 1024px) {
  .zb-header__nav { order: 3; flex: 0 0 auto; }
  .zb-header__actions { margin-left: auto; }
  .zb-header__nav .zb-nav--header.is-ready .zb-nav__list { justify-content: flex-start; white-space: normal; }
}
@media (max-width: 420px) {
  /* Narrow phones: WhatsApp stays in the page and footer; the header keeps logo, theme switch and menu. */
  .zb-header__actions .zb-ico-wa { display: none; }
}

/* v2.0.1: photographs open in one slideshow; gentle zoom on hover; fade-up on scroll (zb-photos.js). */
:root body .zb-ph a { display: block; overflow: hidden; }
.zb-ph a:focus-visible { outline: 2px solid var(--zb-focus-ring, var(--zb-accent-text)); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .zb-ph a[data-elementor-lightbox-slideshow] { cursor: zoom-in; }
  .zb-ph a img { transition: transform .6s ease; }
  .zb-ph a:hover img, .zb-ph a:focus-visible img { transform: scale(1.03); }
}
.zb-motion .zb-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--zb-reveal-delay, 0ms); }
.zb-motion .zb-reveal.is-in { opacity: 1; transform: none; }
@media print {
  .zb-motion .zb-reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .zb-motion .zb-reveal { opacity: 1; transform: none; transition: none; }
  .zb-ph a img { transition: none; }
  .zb-ph a:hover img, .zb-ph a:focus-visible img { transform: none; }
}

/* v2.3.0: Photo tours opens a short list in the header (approved preview v3, 2026-11-30). */
.zb-nav__item--sub { position: relative; }
.zb-nav__row { display: flex; align-items: center; gap: 2px; }
.zb-nav .zb-nav__chev, .zb-nav .zb-nav__chev:hover, .zb-nav .zb-nav__chev:focus {
  border: 0; background: transparent; color: var(--zb-text); width: 26px; height: 30px; min-height: 0; padding: 0; margin: 0;
  display: inline-grid; place-items: center; cursor: pointer; border-radius: 4px; box-shadow: none;
}
.zb-nav .zb-nav__chev:hover { color: var(--zb-accent-text); }
.zb-nav__chev svg { width: 12px; height: 12px; transition: transform .25s ease; }
.zb-nav__item--sub.is-open .zb-nav__chev svg { transform: rotate(180deg); }
.zb-nav__item--sub.is-open > .zb-nav__row > .zb-nav__link, .zb-nav__item--sub.is-current-parent > .zb-nav__row > .zb-nav__link { color: var(--zb-accent-text); }
.zb-nav__chev:focus-visible, .zb-nav__sublink:focus-visible { outline: 2px solid var(--zb-focus-ring, var(--zb-accent-text)); outline-offset: 2px; }
.zb-nav__sub {
  list-style: none; margin: 0; padding: 10px; position: absolute; left: 50%; top: calc(100% + 14px); z-index: 102;
  transform: translate(-50%, 6px); min-width: 330px; white-space: normal; text-align: left;
  background: var(--zb-surface-raised, var(--zb-surface)); border: 1px solid var(--zb-border); border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.zb-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.zb-nav__item--sub.is-open > .zb-nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .22s ease, transform .22s ease; }
.zb-nav__sub li { margin: 0; padding: 0; }
.zb-nav a.zb-nav__sublink { display: block; text-decoration: none; padding: 12px 14px; border-radius: 7px; color: var(--zb-text); }
.zb-nav a.zb-nav__sublink:hover, .zb-nav a.zb-nav__sublink:focus-visible { background: var(--zb-hover-raised, var(--zb-border)); }
.zb-nav__t { display: block; font: 400 14px/1.3 var(--zb-font-display, inherit); letter-spacing: .02em; color: var(--zb-text); }
.zb-nav__sublink[aria-current="page"] .zb-nav__t { color: var(--zb-accent-text); }
.zb-nav__k { display: block; margin-top: 5px; font: 400 11px/1.3 var(--zb-font-mono, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--zb-text-muted); }
.zb-nav__sep { height: 0; border-top: 1px solid var(--zb-border); margin: 6px 8px !important; }
/* Without the menu script, the list still opens on hover and keyboard focus. */
@media (hover: hover) and (min-width: 1025px) {
  .zb-nav:not(.is-ready) .zb-nav__item--sub:hover > .zb-nav__sub, .zb-nav__item--sub:focus-within > .zb-nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
@media (max-width: 1024px) {
  .zb-nav--header.is-ready .zb-nav__row { justify-content: space-between; border-bottom: 1px solid var(--zb-border); }
  .zb-nav--header.is-ready .zb-nav__row .zb-nav__link { flex: 1 1 auto; border-bottom: 0; }
  .zb-nav--header.is-ready .zb-nav__chev, .zb-nav--header.is-ready .zb-nav__chev:hover, .zb-nav--header.is-ready .zb-nav__chev:focus { width: 48px; height: 48px; }
  .zb-nav--header.is-ready .zb-nav__chev svg { width: 16px; height: 16px; }
  .zb-nav--header.is-ready .zb-nav__sub {
    position: static; transform: none; min-width: 0; box-shadow: none; border: 0; border-left: 2px solid var(--zb-accent-text); border-radius: 0;
    background: transparent; margin: 10px 0 14px 2px; padding: 0 0 0 14px; display: none; opacity: 1; visibility: visible; transition: none;
  }
  .zb-nav--header.is-ready .zb-nav__item--sub.is-open > .zb-nav__sub { display: block; transform: none; }
  .zb-nav--header.is-ready .zb-nav__sub::before { display: none; }
  .zb-nav--header.is-ready a.zb-nav__sublink { padding: 12px 4px; border-bottom: 0; }
  .zb-nav--header.is-ready .zb-nav__t { font-size: 16px; }
  .zb-nav--header.is-ready .zb-nav__item--sub .zb-nav__sep { margin: 4px 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .zb-nav__sub, .zb-nav__chev svg { transition: none !important; }
}
