/*
Theme Name: Extendable Child
Template: extendable
Version: 1.0
*/

/* 1. Global header wrapper. Also supports direct insertion at template level. */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .aruya-sticky-shell,
.wp-site-blocks > .aruya-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000; /* Below the WordPress admin bar (99999). */
  margin-block-start: 0;
  background-color: var(--aruya-paper);
  color: var(--aruya-blue);
}

/* WordPress's admin bar is fixed from 601px upward, and scrolls away below that. */
@media (min-width: 783px) {
  body.admin-bar .wp-site-blocks > header.wp-block-template-part,
  body.admin-bar .wp-site-blocks > .aruya-sticky-shell,
  body.admin-bar .wp-site-blocks > .aruya-sticky-header { top: 32px; }
}
@media (min-width: 601px) and (max-width: 782px) {
  body.admin-bar .wp-site-blocks > header.wp-block-template-part,
  body.admin-bar .wp-site-blocks > .aruya-sticky-shell,
  body.admin-bar .wp-site-blocks > .aruya-sticky-header { top: 46px; }
}

/* 2. Solid surface and one inner padding layer, using existing container tokens. */
.aruya-sticky-header {
  padding-block: .75rem;
  background-color: var(--aruya-paper);
  color: var(--aruya-blue);
  border-block-end: 1px solid var(--aruya-border);
}
.aruya-sticky-header .aruya-sticky-header-inner {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.aruya-sticky-header .aruya-sticky-brand {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .75rem;
  flex: 0 0 auto;
}
.aruya-sticky-header .aruya-sticky-brand > * { margin-block: 0; }
.aruya-sticky-header .aruya-sticky-logo { flex-shrink: 0; }
.aruya-sticky-header .aruya-sticky-logo img { display: block; max-width: 3rem; height: auto; }
.aruya-sticky-header .aruya-sticky-wordmark {
  font-family: var(--aruya-body-font);
  font-size: clamp(1.5rem, 1.25rem + .5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}
.aruya-sticky-header .aruya-sticky-wordmark a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.aruya-sticky-header .aruya-header-plus { color: var(--aruya-turquoise); }

/* 3. Native Navigation block. The actual CTA is a native Button block. */
.aruya-sticky-header .aruya-sticky-navigation {
  flex: 0 1 auto;
  min-width: 0;
  margin-block: 0;
  font-size: clamp(.9375rem, .85rem + .15vw, 1.125rem);
  line-height: 1.4;
  gap: 1.25rem;
  --wp--style--block-gap: 1.25rem;
}
.aruya-sticky-header .aruya-sticky-navigation .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.aruya-sticky-header .aruya-sticky-navigation .wp-block-navigation-item__content:hover {
  text-decoration: underline;
}
.aruya-sticky-header .aruya-sticky-actions { margin-block: 0; }
.aruya-sticky-header .aruya-sticky-contact .wp-block-button__link {
  padding: .75rem 1.25rem;
}
.aruya-sticky-header .wp-block-navigation__responsive-container-open,
.aruya-sticky-header .wp-block-navigation__responsive-container-close {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--aruya-blue);
}

/* 4. Collapse sooner than WordPress's default 600px to prevent crowded labels.
   Preserve .is-menu-open, native overlay positioning and WordPress focus trap. */
@media (max-width: 63.999rem) {
  .aruya-sticky-header .aruya-sticky-navigation
  .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .aruya-sticky-header .aruya-sticky-navigation
  .wp-block-navigation__responsive-container-open { display: flex; }
}
.aruya-sticky-header .aruya-sticky-navigation
.wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--aruya-paper);
  color: var(--aruya-blue);
}
.aruya-sticky-header .aruya-sticky-navigation
.is-menu-open .wp-block-navigation__responsive-container-content { gap: 1.5rem; }
.aruya-sticky-header .aruya-sticky-navigation
.is-menu-open .aruya-sticky-actions { max-width: 100%; }

/* 5. Leave room for sticky navigation when following section or focus links.
   These defaults cover the header at normal text sizes; if you later increase
   header height or add a second row, increase the value accordingly. */
:where(.wp-site-blocks, .aruya-site) [id] { scroll-margin-block-start: 7rem; }
@media (min-width: 783px) {
  body.admin-bar :where(.wp-site-blocks, .aruya-site) [id] {
    scroll-margin-block-start: calc(7rem + 32px);
  }
}
@media (min-width: 601px) and (max-width: 782px) {
  body.admin-bar :where(.wp-site-blocks, .aruya-site) [id] {
    scroll-margin-block-start: calc(7rem + 46px);
  }
}

/* Keep the template-part wrapper from occupying space in printed pages. */
@media print {
  .wp-site-blocks > header.wp-block-template-part,
  .wp-site-blocks > .aruya-sticky-shell,
  .wp-site-blocks > .aruya-sticky-header { display: none; }
}

/* ========================================================================== 
   ARUYA+ — LEFT / RIGHT FOOTER | WordPress + Extendable | 30 September 2026
   V2: native Columns in the JSON; CSS supplies the final responsive design.
   Load site-wide AFTER aruya-website-v2-commented.css.
   REPLACE all previous footer extra CSS; do not load both versions.
   Import aruya-footer-left-right-v2.json into the global Footer template part.
   Desktop: brand / values left; copyright / company / privacy right.
   Mobile: two groups stack and align to the start edge.
   Native editable blocks; no plugin, external font or JavaScript required.
   All brand colours come from your existing site-wide CSS variables.
   ========================================================================== */

/* 1. Full-width ivory surface; inner container supplies horizontal padding. */
.aruya-global-footer {
  padding-block: 2.375rem;
  background-color: var(--aruya-paper);
  color: var(--aruya-blue);
  border-block-start: 1px solid var(--aruya-sand);
}
.aruya-global-footer .aruya-footer-inner {
  margin-block: 0;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 2.125rem;
  text-align: start;
}
.aruya-global-footer :is(.aruya-footer-brand-block, .aruya-footer-legal-block) {
  min-width: 0;
  margin-block: 0;
}
.aruya-global-footer :is(.aruya-footer-brand-block, .aruya-footer-legal-block) > * {
  margin-block: 0;
}

/* 2. Left side — Aruya+ and brand values. */
.aruya-global-footer .aruya-footer-wordmark {
  color: var(--aruya-blue);
  font-family: var(--aruya-body-font);
  font-size: clamp(1.5rem, 1.6rem + .4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  direction: ltr;
  unicode-bidi: isolate;
}
.aruya-global-footer .aruya-footer-wordmark a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--aruya-blue);
  text-decoration: none;
}
.aruya-global-footer .aruya-footer-plus { color: var(--aruya-turquoise); }
.aruya-global-footer .aruya-footer-values {
  margin-block-start: .75rem;
  color: var(--aruya-brown);
  font-size: .8125rem;
  line-height: 1.8;
  letter-spacing: .025em;
  font-weight: 400;
  overflow-wrap: break-word;
}

/* 3. Right side — colours are explicit, including blue copyright text. */
.aruya-global-footer .aruya-footer-legal-block {
  text-align: end;
  padding-block-start: .5rem;
}
.aruya-global-footer .aruya-footer-copyright {
  color: var(--aruya-blue);
  font-size: .875rem;
  line-height: 1.6;
  font-weight: 500;
}
.aruya-global-footer .aruya-footer-company {
  margin-block: .5625rem .4375rem;
  color: var(--aruya-brown);
  font-size: .8125rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.aruya-global-footer .aruya-footer-privacy {
  color: var(--aruya-blue);
  font-size: .8125rem;
  line-height: 1.5;
  font-weight: 500;
}
.aruya-global-footer .aruya-footer-privacy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--aruya-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;