/* ==========================================================================
   AUM THEME
   Component and layout rules. Loads after _tokens.css.

   RULE: no raw colour or size literals in this file. Reference --aum-*
   tokens only. If a value has no token, add the token first.
   ========================================================================== */

/* --- Base ---------------------------------------------------------------- */

body {
  font-family: var(--aum-font);
  font-size: var(--aum-fs-body);
  line-height: var(--aum-lh-base);
  color: var(--aum-text);
  background: var(--aum-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--aum-heading-font);
  line-height: var(--aum-lh-heading);
  font-weight: var(--aum-fw-medium);
  letter-spacing: var(--aum-tracking);
}

/* Bootstrap's compiled heading sizes are intentionally replaced here. This
   keeps semantic HTML, Bootstrap utility headings, core Heading blocks and
   the editor on the same responsive scale. */
h1, .h1 { font-size: var(--aum-fs-h1); }
h2, .h2 { font-size: var(--aum-fs-h2); }
h3, .h3 { font-size: var(--aum-fs-h3); }
h4, .h4 { font-size: var(--aum-fs-h4); }
h5, .h5 { font-size: var(--aum-fs-h5); }
h6, .h6 { font-size: var(--aum-fs-h6); }

.display-1,
.aum-display {
  font-size: var(--aum-fs-display);
  line-height: var(--aum-lh-tight);
}

.display-2 { font-size: var(--aum-fs-h1); }
.display-3 { font-size: var(--aum-fs-h2); }
.display-4 { font-size: var(--aum-fs-h3); }
.display-5 { font-size: var(--aum-fs-h4); }
.display-6 { font-size: var(--aum-fs-h5); }

.aum-display {
  font-weight: var(--aum-fw-normal);
}

.lead {
  font-size: var(--aum-fs-large);
  font-weight: var(--aum-fw-normal);
}

small, .small {
  font-size: var(--aum-fs-small);
}

.text-muted-aum {
  color: var(--aum-text-muted);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  padding: 0.5rem 1rem;
  background: var(--aum-surface);
  border: 1px solid var(--aum-line);
}

/* --- Layout -------------------------------------------------------------- */

.aum-main {
  flex: 1 0 auto;
}

.aum-blank .aum-main,
.aum-blank {
  padding-top: 0;
}

.container {
  max-width: var(--aum-container);
  padding-inline: var(--aum-container-padding);
}

.aum-section {
  padding-block: var(--aum-section-pad-y);
  padding-inline: var(--aum-section-pad-x);
}

.aum-section-soft {
  background: var(--aum-bg-alt);
}

.aum-section-warm {
  background: var(--aum-bg-warm);
}

.aum-section-dark {
  background: var(--aum-black);
  color: var(--aum-text-invert);
}

.aum-narrow {
  max-width: var(--aum-pattern-narrow);
  margin-inline: auto;
}

.aum-wide {
  max-width: var(--aum-pattern-max);
  margin-inline: auto;
}

/* --- Masthead ------------------------------------------------------------
   Row 1: three-column grid. The wordmark sits in the centre cell so it stays
   optically centred in the viewport no matter how wide the action buttons
   grow. Row 2: centred inline navigation.
   ------------------------------------------------------------------------ */

.aum-masthead {
  background: var(--aum-header-bg);
  font-family: var(--aum-font);
}

/* The sticky nav row carries the bottom rule. When no menu is assigned there
   is no sentinel, so the masthead carries it instead. */
.aum-masthead:not(:has(+ .aum-navrow-sentinel)) {
  border-bottom: 1px solid var(--aum-header-border);
}

.aum-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: var(--aum-header-pad-y) var(--aum-header-pad-x) 0;
}

.aum-wordmark {
  grid-column: 2;
  justify-self: center;
  font-family: var(--aum-wordmark-font);
  font-size: var(--aum-wordmark-size);
  font-weight: var(--aum-wordmark-weight);
  letter-spacing: var(--aum-wordmark-tracking);
  text-transform: uppercase;
  color: var(--aum-wordmark-color);
  text-decoration: none;
  line-height: 1.05;
  white-space: nowrap;
  transition: color var(--aum-transition);
}

.aum-wordmark:hover,
.aum-wordmark:focus {
  color: var(--aum-black);
}

.aum-wordmark-has-logo {
  letter-spacing: normal;
  line-height: 0;
}

/* Sized by width, not height.
   The AUM mark is about 7.3:1. Constraining by height would leave it barely
   legible long before the height limit mattered, so width drives it and
   height follows the aspect ratio. */
.aum-wordmark-img {
  display: block;
  width: 450px;
  max-width: 100%;
  height: auto;
  transition: opacity var(--aum-transition);
}

.aum-wordmark-has-logo:hover .aum-wordmark-img,
.aum-wordmark-has-logo:focus .aum-wordmark-img {
  opacity: var(--aum-logo-hover-opacity);
}

.aum-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* BOOK */
.aum-btn-book {
  font-family: var(--aum-font);
  font-size: var(--aum-btn-size);
  letter-spacing: var(--aum-btn-tracking);
  text-transform: uppercase;
  background: var(--aum-header-button-bg);
  color: var(--aum-header-button-text);
  border: 1px solid var(--aum-header-button-bg);
  border-radius: 0;
  padding: var(--aum-btn-pad-y) var(--aum-btn-pad-x);
  text-decoration: none;
  line-height: 1;
  display: inline-block;
  transition: background var(--aum-transition), border-color var(--aum-transition);
}

.aum-btn-book:hover,
.aum-btn-book:focus {
  background: var(--aum-accent-deep);
  border-color: var(--aum-accent-deep);
  color: var(--aum-header-button-text);
}

/* --- Masthead mail icon (Reserve Session as icon) --------------------------
   Selected in Appearance > Customize > Header > "Masthead book button style".
   A solid filled circle whose colour cycles slowly through three tones,
   with the envelope glyph in a fixed solid colour on top. No shadows,
   blurs or transforms. Hover snaps the circle to the ink colour.
   Colour motion stops for prefers-reduced-motion.
   ------------------------------------------------------------------------ */
.aum-btn-book--icon {
  display: inline-grid;
  place-items: center;
  width: var(--aum-mail-size);
  height: var(--aum-mail-size);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  background-color: var(--aum-mail-bg-1);
  color: var(--aum-mail-color);
  line-height: 0;
  overflow: hidden;
  animation: aum-mail-cycle var(--aum-mail-cycle) ease-in-out infinite;
  transition: background-color var(--aum-transition);
}

.aum-btn-book--icon .aum-mail {
  display: block;
  width: var(--aum-mail-icon);
  height: var(--aum-mail-icon);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--aum-mail-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aum-btn-book--icon:hover,
.aum-btn-book--icon:focus-visible {
  animation: none;
  background-color: var(--aum-mail-hover-bg);
  color: var(--aum-mail-color);
  border: 0;
  outline: none;
}

@keyframes aum-mail-cycle {
  0%, 100% { background-color: var(--aum-mail-bg-1); }
  50%      { background-color: var(--aum-mail-bg-2); }
}

@media (prefers-reduced-motion: reduce) {
  .aum-btn-book--icon { animation: none; }
}

@media (max-width: 767.98px) {
  .aum-btn-book--icon {
    width: var(--aum-mail-size-mobile);
    height: var(--aum-mail-size-mobile);
    padding: 0;
  }
  .aum-btn-book--icon .aum-mail {
    width: var(--aum-mail-icon-mobile);
    height: var(--aum-mail-icon-mobile);
  }
}

/* MENU */
.aum-btn-menu {
  font-family: var(--aum-font);
  font-size: var(--aum-btn-size);
  letter-spacing: var(--aum-btn-tracking);
  text-transform: uppercase;
  background: var(--aum-header-bg);
  color: var(--aum-header-text);
  border: 1px solid var(--aum-header-border);
  border-radius: 0;
  padding: var(--aum-btn-pad-y) var(--aum-btn-pad-x);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--aum-transition), border-color var(--aum-transition);
}

.aum-btn-menu:hover,
.aum-btn-menu:focus {
  color: var(--aum-black);
  border-color: var(--aum-gray);
  box-shadow: none;
  outline: none;
}

.aum-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}

.aum-burger span {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
}

/* Inline nav row -- sticky
   Lives OUTSIDE .aum-masthead in the DOM. A sticky element is confined to its
   parent's box, so nesting it inside the masthead would unstick it the moment
   the masthead scrolled past. As a sibling its containing block is the body,
   so it pins for the whole page. */
.aum-navrow {
  position: sticky;
  top: 0;
  z-index: var(--aum-navrow-z);
  background: var(--aum-header-bg);
  border-bottom: 1px solid var(--aum-header-border);
  padding: var(--aum-nav-row-pad-top) var(--aum-header-pad-x) var(--aum-header-pad-y);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--aum-nav-gap);
  transition: padding var(--aum-transition), box-shadow var(--aum-transition);
}

/* Zero-height marker the observer watches. */
.aum-navrow-sentinel {
  height: 1px;
  margin-bottom: -1px;
}

/* Stuck state: tighten up and lift off the content. */
.aum-navrow.is-stuck {
  padding-block: var(--aum-navrow-stuck-pad-y);
  box-shadow: var(--aum-navrow-stuck-shadow);
}

/* Clear the WordPress admin bar when logged in. */
.admin-bar .aum-navrow { top: 32px; }

@media screen and (max-width: 782px) {
  .admin-bar .aum-navrow { top: 46px; }
}

.aum-navrow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--aum-nav-gap);
}

.aum-navrow-list a {
  font-family: var(--aum-nav-family, var(--aum-font));
  font-size: var(--aum-nav-size);
  font-weight: var(--aum-nav-weight, 400);
  letter-spacing: var(--aum-nav-tracking);
  line-height: var(--aum-nav-leading, 1.2);
  text-transform: var(--aum-nav-transform, uppercase);
  color: var(--aum-nav-color, var(--aum-header-text));
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--aum-transition);
}

.aum-navrow-list a:hover,
.aum-navrow-list a:focus,
.aum-navrow-list .current-menu-item > a,
.aum-navrow-list .current_page_item > a,
.aum-navrow-list .current-menu-ancestor > a {
  color: var(--aum-nav-hover, var(--aum-black));
}

.aum-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--aum-nav-size);
  letter-spacing: var(--aum-nav-tracking);
  text-transform: uppercase;
  color: var(--aum-header-text);
}

.aum-lang a { color: inherit; text-decoration: none; }
.aum-lang a:hover { color: var(--aum-black); }
.aum-lang img { width: 20px; height: 14px; object-fit: cover; }

/* Mobile masthead -----------------------------------------------------------
   One row: logo left, mail icon + bare hamburger right. The logo is width-
   driven and capped so all three always fit on a single line.

   The masthead itself becomes the sticky element here, because .aum-navrow is
   hidden at this width and nothing else would pin. It is already a direct
   child of body, so it has the containing block it needs.
   --------------------------------------------------------------------------- */
@media (max-width: 767.98px) {

  .aum-masthead {
    position: sticky;
    top: 0;
    z-index: var(--aum-navrow-z);
    border-bottom: 1px solid var(--aum-header-border);
    transition: box-shadow var(--aum-transition);
  }

  .aum-masthead.is-stuck {
    box-shadow: var(--aum-navrow-stuck-shadow);
  }

  .aum-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--aum-header-mobile-gap);
    padding: var(--aum-header-mobile-pad-y) var(--aum-header-mobile-pad-x);
  }

  .aum-wordmark {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
    font-size: clamp(var(--aum-wordmark-mobile-min), 5.2vw, var(--aum-wordmark-mobile-size));
    letter-spacing: var(--aum-wordmark-mobile-tracking);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .aum-wordmark-img {
    width: min(var(--aum-logo-w-mobile), 100%);
  }

  .aum-actions {
    grid-column: 2;
    justify-self: end;
    gap: var(--aum-header-mobile-gap);
  }

  /* Text-style book button (if the icon style is off) shrinks to fit. */
  .aum-btn-book:not(.aum-btn-book--icon) {
    font-size: var(--aum-btn-mobile-size);
    padding: var(--aum-btn-mobile-pad-y) var(--aum-btn-mobile-pad-x);
  }

  /* MENU becomes a bare hamburger: no label, no box. */
  .aum-btn-menu {
    padding: 0;
    width: var(--aum-burger-mobile-hit);
    height: var(--aum-burger-mobile-hit);
    justify-content: center;
    gap: 0;
    background: transparent;
    border: 0;
  }

  .aum-btn-menu .aum-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .aum-burger {
    width: var(--aum-burger-mobile-w);
    gap: var(--aum-burger-mobile-gap);
  }

  .aum-burger span {
    height: var(--aum-burger-mobile-line);
  }

  /* Only the nav row is hidden. The sentinel MUST keep a box -- an
     IntersectionObserver never fires on display:none, so hiding it here
     would silently kill the stuck shadow on mobile. */
  .aum-navrow {
    display: none;
  }
}

/* --- Offcanvas drawer ---------------------------------------------------
   Opened by MENU at every breakpoint. Parents use Bootstrap COLLAPSE rather
   than dropdown: a dropdown is an absolutely positioned popover and fights
   the drawer, especially on touch. Same caret, same rotation, but the
   submenu pushes open in normal flow.
   ------------------------------------------------------------------------ */

.aum-offcanvas {
  /* Column layout so the footer band can sit outside the scrolling body. */
  display: flex;
  flex-direction: column;
  width: min(var(--aum-offcanvas-width), 100vw);
  background: var(--aum-offcanvas-bg, var(--aum-header-bg));
  border-left: 1px solid var(--aum-offcanvas-border, var(--aum-border));
  font-family: var(--aum-font);
}

.aum-offcanvas .offcanvas-header {
  flex: 0 0 auto;
  padding: 24px var(--aum-offcanvas-pad);
}

/* Logo. Appearance > Customize > Site Identity > Logo. Falls back to the
   site title when none is set. */
.aum-offcanvas-logo {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  max-width: calc(100% - 44px);
}

.aum-offcanvas-logo img {
  display: block;
  width: var(--aum-offcanvas-logo-w, 240px);
  max-width: 100%;
  max-height: var(--aum-offcanvas-logo-max-h, 40px);
  object-fit: contain;
  object-position: left center;
  height: auto;
}

.aum-offcanvas-logo-text {
  font-size: var(--aum-offcanvas-title-font-size);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--aum-fw-medium);
  color: var(--aum-gray);
  line-height: 1.2;
}

/* Scrolls when the list outgrows the viewport. "safe" keeps the first items
   reachable instead of clipping them above the scroll area. */
.aum-offcanvas .offcanvas-body {
  padding: 16px var(--aum-offcanvas-pad) 40px;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

/* ---------------------------------------------------------------------------
   LARGE CENTRED LOGO

   The header becomes a column so the logo can centre on the drawer. The close
   button is taken out of flow: left in the row it would push the logo off
   centre by its own width, which reads as a mistake once the logo is large.
   --------------------------------------------------------------------------- */

.aum-offcanvas.has-big-logo .offcanvas-header {
  flex-direction: column;
  justify-content: center;
  padding: 46px var(--aum-offcanvas-pad) 34px;
  position: relative;
  border-bottom: 1px solid var(--aum-offcanvas-border, var(--aum-border));
}

.aum-offcanvas.has-big-logo .aum-offcanvas-logo {
  max-width: 100%;
  width: 100%;
  text-align: var(--aum-offcanvas-logo-align, center);
}

.aum-offcanvas.has-big-logo .aum-offcanvas-logo img {
  width: var(--aum-offcanvas-logo-w, 300px);
  max-width: 100%;
  max-height: var(--aum-offcanvas-logo-h, 110px);
  object-fit: contain;
  object-position: var(--aum-offcanvas-logo-align, center);
  margin-inline: auto;
}

.aum-offcanvas.has-big-logo .aum-offcanvas-logo-text {
  display: block;
  text-align: var(--aum-offcanvas-logo-align, center);
}

.aum-offcanvas.has-big-logo .btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

/* Top aligned, not centred: with the menu vertically centred the gap under
   the logo changed every time a page was added to the menu. */
.aum-offcanvas.has-big-logo .offcanvas-body {
  justify-content: flex-start;
  padding-top: 28px;
}

/* ---------------------------------------------------------------------------
   DRAWER FOOTER

   Social links and contact details sit outside the scroll area so they remain
   reachable even when the navigation list is long.
   --------------------------------------------------------------------------- */

.aum-offcanvas__foot {
  flex: 0 0 auto;
  padding: 22px var(--aum-offcanvas-pad) 26px;
  border-top: 1px solid var(--aum-offcanvas-border, var(--aum-border));
}

.aum-offcanvas__social {
  list-style: none;
  margin: var(--aum-offcanvas-social-top, 22px) 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--aum-offcanvas-social-gap, 14px);
}

.aum-offcanvas__social a {
  width: var(--aum-offcanvas-social-size, 40px);
  height: var(--aum-offcanvas-social-size, 40px);
  display: grid;
  place-items: center;
  border: 1px solid var(--aum-offcanvas-border, var(--aum-border));
  border-radius: 50%;
  color: var(--aum-offcanvas-social-color, var(--aum-gray));
  transition: background var(--aum-transition),
              border-color var(--aum-transition),
              color var(--aum-transition);
}

.aum-offcanvas__social a:hover,
.aum-offcanvas__social a:focus-visible {
  background: var(--aum-offcanvas-social-hover-bg, var(--aum-black));
  border-color: var(--aum-offcanvas-social-hover-bg, var(--aum-black));
  color: var(--aum-white, #fff);
}

.aum-offcanvas__social svg {
  width: var(--aum-offcanvas-social-icon, 16px);
  height: var(--aum-offcanvas-social-icon, 16px);
  fill: currentColor;
}

/* No circles. Reads lighter, and saves the height of the button box. */
.aum-offcanvas__social.is-bare { gap: calc(var(--aum-offcanvas-social-gap, 14px) + 10px); }
.aum-offcanvas__social.is-bare a { width: auto; height: auto; border: 0; }

.aum-offcanvas__social.is-bare a:hover,
.aum-offcanvas__social.is-bare a:focus-visible {
  background: none;
  color: var(--aum-offcanvas-social-hover-bg, var(--aum-black));
}

.aum-offcanvas__meta {
  margin: 18px 0 0;
  text-align: center;
  font-size: var(--aum-fs-2xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--aum-gray);
}

.aum-offcanvas__meta a { color: inherit; text-decoration: none; }
.aum-offcanvas__meta a:hover { color: var(--aum-black); }

/* Top level: bordered rows */
.aum-offcanvas-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--aum-offcanvas-item-gap);
}

.aum-offcanvas-list > li > a {
  font-family: var(--aum-offcanvas-family, var(--aum-font));
  font-size: clamp(var(--aum-offcanvas-nav-font-min), 4.4vw, var(--aum-offcanvas-nav-font-size));
  font-weight: var(--aum-offcanvas-weight, 400);
  line-height: var(--aum-offcanvas-leading, 1.25);
  letter-spacing: var(--aum-offcanvas-tracking, -0.01em);
  text-transform: var(--aum-offcanvas-transform, none);
  color: var(--aum-offcanvas-color, var(--aum-black));
  text-decoration: none;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--aum-offcanvas-caret-gap);
  border: var(--aum-offcanvas-item-border-w) solid var(--aum-offcanvas-item-border);
  border-radius: 0;
  padding: var(--aum-offcanvas-item-pad-y) var(--aum-offcanvas-item-pad-x);

  transition: color var(--aum-transition),
              border-color var(--aum-transition),
              background var(--aum-transition);
}

.aum-offcanvas-list > li > a:hover,
.aum-offcanvas-list > li > a:focus,
.aum-offcanvas-list > .current-menu-item > a {
  color: var(--aum-offcanvas-hover, var(--aum-accent-deep));
  border-color: var(--aum-accent-deep);
}

/* Caret */
.aum-offcanvas-list .aum-caret {
  width: var(--aum-offcanvas-caret-size, 13px);
  height: var(--aum-offcanvas-caret-size, 13px);
  color: var(--aum-caret-color);
  flex: 0 0 auto;
  transition: transform var(--aum-transition);
}

.aum-offcanvas-list > li > a[aria-expanded="true"] .aum-caret {
  transform: rotate(180deg);
}

/* Sub level */
.aum-offcanvas-sub {
  list-style: none;
  margin: var(--aum-offcanvas-item-gap) 0 12px 0;
  padding: 0 0 0 calc(var(--aum-offcanvas-item-pad-x) + 4px);
  border-left: 1px solid var(--aum-offcanvas-border, var(--aum-border));
}

.aum-offcanvas-sub a {
  font-family: var(--aum-offcanvas-sub-family, var(--aum-font));
  font-size: var(--aum-offcanvas-sub-font-size);
  font-weight: var(--aum-offcanvas-sub-weight, 400);
  line-height: var(--aum-offcanvas-sub-leading, 1.6);
  letter-spacing: var(--aum-offcanvas-sub-tracking, 0em);
  text-transform: var(--aum-offcanvas-sub-transform, none);
  color: var(--aum-offcanvas-sub-color, var(--aum-header-text));
  text-decoration: none;
  display: block;
  padding-block: 3px;
  transition: color var(--aum-transition);
}

.aum-offcanvas-sub a:hover,
.aum-offcanvas-sub a:focus,
.aum-offcanvas-sub .current-menu-item > a {
  color: var(--aum-black);
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  --bs-btn-padding-x: 2rem;
  --bs-btn-padding-y: 0.85rem;
  --bs-btn-font-size: var(--aum-fs-small);
  --bs-btn-font-weight: var(--aum-fw-medium);
  --bs-btn-border-radius: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-primary {
  --bs-btn-bg: var(--aum-black);
  --bs-btn-border-color: var(--aum-black);
  --bs-btn-color: var(--aum-white);
  --bs-btn-hover-bg: var(--aum-accent-deep);
  --bs-btn-hover-border-color: var(--aum-accent-deep);
  --bs-btn-hover-color: var(--aum-white);
  --bs-btn-active-bg: var(--aum-accent-deep);
  --bs-btn-active-border-color: var(--aum-accent-deep);
}

.btn-outline-dark {
  --bs-btn-color: var(--aum-text);
  --bs-btn-border-color: var(--aum-text);
  --bs-btn-hover-bg: var(--aum-black);
  --bs-btn-hover-color: var(--aum-white);
}

.btn-accent {
  --bs-btn-bg: var(--aum-accent);
  --bs-btn-border-color: var(--aum-accent);
  --bs-btn-color: var(--aum-black);
  --bs-btn-hover-bg: var(--aum-accent-deep);
  --bs-btn-hover-border-color: var(--aum-accent-deep);
  --bs-btn-hover-color: var(--aum-white);
}

/* --- Panels -------------------------------------------------------------- */

.aum-panel {
  background: var(--aum-panel-bg);
  color: var(--aum-panel-text);
  border: 1px solid var(--aum-panel-border);
  padding: var(--aum-panel-padding);
}

.aum-panel-lift {
  box-shadow: var(--aum-shadow-lift);
}


/* --- Editor content ------------------------------------------------------ */

.entry-content > * + * {
  margin-top: 1.5rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.entry-content a:not(.aum-buttons-link) {
  color: var(--aum-text);
  text-underline-offset: 0.2em;
}

.entry-content a:not(.aum-buttons-link):hover {
  color: var(--aum-accent-deep);
}

.entry-content blockquote {
  border-left: 2px solid var(--aum-accent);
  padding-left: 1.5rem;
  margin-left: 0;
  font-size: var(--aum-fs-large);
}

/* Alignment is handled globally below, not scoped to .entry-content. */

/* --- Motion preference --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Nav row dropdowns --------------------------------------------------
   Bootstrap handles the open/close JS. The .dropdown-toggle class is
   deliberately NOT used, so Bootstrap's default CSS caret is suppressed and
   the inline Bootstrap Icons caret-down-fill SVG is the only indicator.
   ------------------------------------------------------------------------ */

.aum-navrow-list .dropdown {
  position: relative;
}

.aum-navrow-list a {
  display: inline-flex;
  align-items: center;
  gap: var(--aum-caret-gap);
}

.aum-caret {
  /* Fallbacks matter here: an unsized SVG renders at 300x150. */
  width: var(--aum-caret-size, 9px);
  height: var(--aum-caret-size, 9px);
  color: var(--aum-caret-color, #000);
  flex: 0 0 auto;
  transition: transform var(--aum-transition);
}

.aum-navrow-list .dropdown a[aria-expanded="true"] .aum-caret {
  transform: rotate(180deg);
}

.aum-dropdown {
  --bs-dropdown-bg: var(--aum-dropdown-bg);
  --bs-dropdown-border-color: var(--aum-dropdown-border);
  --bs-dropdown-border-radius: 0;
  --bs-dropdown-min-width: var(--aum-dropdown-min-w);
  --bs-dropdown-padding-y: 8px;
  --bs-dropdown-link-color: var(--aum-header-text);
  --bs-dropdown-link-hover-color: var(--aum-black);
  --bs-dropdown-link-hover-bg: transparent;
  --bs-dropdown-link-active-color: var(--aum-black);
  --bs-dropdown-link-active-bg: transparent;
  --bs-dropdown-item-padding-y: var(--aum-dropdown-pad-y);
  --bs-dropdown-item-padding-x: var(--aum-dropdown-pad-x);
  font-family: var(--aum-font);
  box-shadow: none;
  margin-top: 10px;
}

.aum-dropdown .dropdown-item {
  font-family: var(--aum-dropdown-family, var(--aum-font));
  font-size: var(--aum-dropdown-size);
  font-weight: var(--aum-dropdown-weight, 400);
  letter-spacing: var(--aum-dropdown-tracking, var(--aum-nav-tracking));
  line-height: var(--aum-dropdown-leading, 1.4);
  text-transform: var(--aum-dropdown-transform, uppercase);
  color: var(--aum-dropdown-color, var(--aum-header-text));
  white-space: nowrap;
  transition: color var(--aum-transition);
}

.aum-dropdown .dropdown-item:hover,
.aum-dropdown .dropdown-item:focus,
.aum-dropdown .current-menu-item > .dropdown-item {
  background: transparent;
  color: var(--aum-dropdown-hover, var(--aum-black));
}

/* --- WordPress admin bar -------------------------------------------------
   Hidden below 782px. The bar eats 46px of a phone viewport, covers the
   sticky nav, and makes mobile preview unrepresentative.

   WordPress injects `html { margin-top: 46px !important }` inline, so the
   reset needs !important to win. The sticky nav offset has to be zeroed in
   the same breakpoint or a 46px gap is left behind.

   Affects logged-in users only. Visitors never see the bar.
   ------------------------------------------------------------------------ */

@media screen and (max-width: 782px) {

  html {
    margin-top: 0 !important;
  }

  #wpadminbar {
    display: none;
  }

  .admin-bar .aum-navrow {
    top: 0;
  }
}


/* --- Block alignment ------------------------------------------------------
   Deliberately NOT scoped to .entry-content. full-canvas.php and
   front-page.php output the_content() bare, so a scoped rule silently does
   nothing on the twelve service pages and the home page.

   The escape technique needs a horizontal overflow guard. It must be
   `overflow-x: clip`, NOT `hidden` -- hidden turns the element into a scroll
   container and silently breaks every position:sticky descendant, which
   would kill the sticky nav row and the mobile masthead.
   --------------------------------------------------------------------------- */

html {
  overflow-x: clip;
}

.alignfull {
  width: auto;
  max-width: none;
  margin-inline: calc(50% - 50vw);
}

.alignwide {
  width: auto;
  max-width: none;
  margin-inline: calc(50% - 45vw);
}

/* Nested alignfull inside an already-full parent must not escape twice. */
.alignfull .alignfull,
.alignfull .alignwide {
  margin-inline: 0;
  width: 100%;
}

.aligncenter {
  margin-inline: auto;
}

/* Bootstrap container block rules live in the block's own style.css, so the
   width authority sits in one place. Nothing here should set a width on
   .aum-container-block or its inner element. */

/* --- Full canvas template -------------------------------------------------
   No width constraint. Blocks decide their own width, which is the whole
   point of the template.
   --------------------------------------------------------------------------- */

.aum-canvas {
  width: 100%;
  max-width: none;
}

.aum-canvas > *:first-child {
  margin-top: 0;
}


/* --- Entry content width --------------------------------------------------
   ADDITIVE, not subtractive.

   This used to clamp every child with `.entry-content > *` and then except a
   list of structural selectors. That list had to be extended for every new
   block, and anything missed silently rendered at prose width -- which is
   what made container blocks feel unpredictable.

   Now only text-level blocks are clamped, named explicitly. Structural blocks
   are never touched, so they are full width by default and their own
   containerType is the only thing deciding their width.
   --------------------------------------------------------------------------- */

.entry-content > :is(
  p,
  h1, h2, h3, h4, h5, h6,
  ul, ol, dl,
  blockquote,
  pre,
  table,
  figure,
  hr,
  .wp-block-image,
  .wp-block-quote,
  .wp-block-list,
  .wp-block-embed,
  .wp-block-table,
  .wp-block-heading,
  .wp-block-paragraph,
  .wp-block-separator,
  .wp-block-buttons
) {
  max-width: var(--aum-prose);
  margin-inline: auto;
  padding-inline: var(--aum-container-padding);
}

/* Explicit alignment always wins over the prose clamp. */
.entry-content > .alignfull,
.entry-content > .alignwide,
.entry-content > .alignfull.wp-block-image,
.entry-content > .alignwide.wp-block-image {
  max-width: none;
  padding-inline: 0;
}

.aum-page-header {
  max-width: var(--aum-prose);
  margin-inline: auto;
  padding: var(--aum-section-pad-y) var(--aum-container-padding) 0;
}

/* Full canvas and front page: nothing is clamped. Blocks decide entirely.
   :not() keeps this rule away from container blocks, which set their own
   width -- otherwise the two rules tie on specificity and the winner depends
   on stylesheet load order. */
.aum-canvas > .entry-content > *:not(.aum-container-block),
.aum-front-page > .entry-content > *:not(.aum-container-block) {
  max-width: none;
  padding-inline: 0;
}

/* --- Footer ---------------------------------------------------------------
   Centred logo, link columns from menus, social row, legal row.

   Layout is the Bootstrap grid; everything visual reads a --aum-footer-*
   custom property so the Customizer can drive it without touching selectors.
   --------------------------------------------------------------------------- */

/*
 * NO CUSTOM PROPERTIES ARE DECLARED ON .aum-footer.
 *
 * A property declared on the element itself always beats one inherited from
 * :root, so re-stating the defaults here would override whatever the
 * Customizer writes -- the setting would move in the preview and do nothing
 * on the site.
 *
 * Defaults live in the var() fallbacks at each point of use instead, which
 * keeps one source of truth per value and leaves the cascade alone. The
 * Customizer's :root block simply fills them in when a value is set.
 */
.aum-footer {
  background: var(--aum-footer-bg, #000000);
  color: var(--aum-footer-text, rgba(255, 255, 255, .68));
  font-family: var(--aum-font);
  padding-block: var(--aum-footer-pad-y, 96px);
}

/* --- Logo ----------------------------------------------------------------- */

.aum-footer__brand {
  text-align: center;
  margin-bottom: var(--aum-footer-logo-gap, 64px);
}

.aum-footer__logo {
  display: inline-block;
  width: 100%;
  max-width: var(--aum-footer-logo-w, 280px);
  height: auto;
  opacity: .92;
  transition: opacity var(--aum-transition);
}

/* Dark artwork turned white for the dark ground, so one logo file serves
   both the header and the footer. Optional, since a logo that is already
   light would be destroyed by it. */
.aum-footer__logo.is-inverted {
  filter: brightness(0) invert(1);
}

.aum-footer__logo:hover { opacity: 1; }

.aum-footer__wordmark {
  display: inline-block;
  font-size: var(--aum-fs-h4);
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aum-footer-heading, rgba(255, 255, 255, .92));
  text-decoration: none;
  transition: opacity var(--aum-transition);
}

.aum-footer__wordmark:hover { opacity: .8; }

/* --- Link columns --------------------------------------------------------- */

.aum-footer__col-title {
  font-size: var(--aum-footer-col-title, 12px);
  letter-spacing: var(--aum-footer-col-tracking, 0.22em);
  text-transform: uppercase;
  color: var(--aum-footer-heading, rgba(255, 255, 255, .92));
  margin: 0 0 22px;
  font-weight: 400;
}

.aum-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--aum-footer-link-gap, 14px);
}

.aum-footer__menu a {
  font-size: var(--aum-footer-link-size, 14px);
  letter-spacing: .04em;
  color: var(--aum-footer-link, rgba(255, 255, 255, .68));
  text-decoration: none;
  transition: color var(--aum-transition);
  display: inline-block;
}

.aum-footer__menu a:hover,
.aum-footer__menu a:focus,
.aum-footer__menu .current-menu-item > a {
  color: var(--aum-footer-link-hover, #ffffff);
}

.aum-footer--align-center .aum-footer__col { text-align: center; }

/* --- Social --------------------------------------------------------------- */

.aum-footer__social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aum-footer__social a {
  width: var(--aum-footer-social-size, 42px);
  height: var(--aum-footer-social-size, 42px);
  display: grid;
  place-items: center;
  border: 1px solid var(--aum-footer-rule, rgba(255, 255, 255, .14));
  border-radius: 50%;
  color: var(--aum-footer-link, rgba(255, 255, 255, .68));
  transition: background var(--aum-transition),
              color var(--aum-transition),
              border-color var(--aum-transition);
}

.aum-footer__social a:hover,
.aum-footer__social a:focus-visible {
  background: var(--aum-white);
  border-color: var(--aum-white);
  color: var(--aum-black);
}

.aum-footer__social svg {
  width: var(--aum-footer-social-icon, 16px);
  height: var(--aum-footer-social-icon, 16px);
  fill: currentColor;
}

/* --- Rules and legal row -------------------------------------------------- */

.aum-footer__rule {
  border: 0;
  border-top: 1px solid var(--aum-footer-rule, rgba(255, 255, 255, .14));
  margin: 56px 0;
  opacity: 1;
}

.aum-footer__legal {
  font-size: var(--aum-footer-legal-size, 11px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}

.aum-footer__legal a {
  color: inherit;
  text-decoration: none;
  transition: color var(--aum-transition);
}

.aum-footer__legal a:hover,
.aum-footer__legal a:focus { color: var(--aum-footer-link-hover, #ffffff); }

.aum-footer__legal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

/* --- Mobile ---------------------------------------------------------------
   Columns stack, so everything centres regardless of the alignment setting.
   A stacked left-aligned list reads as ragged rather than considered.
   --------------------------------------------------------------------------- */

@media (max-width: 767.98px) {

  .aum-footer { padding-block: var(--aum-footer-pad-y-mobile, 64px); }

  .aum-footer__logo { max-width: var(--aum-footer-logo-w-mobile, 200px); }

  .aum-footer__brand { margin-bottom: 44px; }

  .aum-footer__col {
    text-align: center;
    margin-bottom: 38px;
  }

  .aum-footer__col:last-child { margin-bottom: 0; }

  .aum-footer__rule { margin: 40px 0; }

  .aum-footer__legal-menu { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .aum-footer__logo,
  .aum-footer__social a,
  .aum-footer__menu a { transition: none; }
}


.aum-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aum-footer__contact li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: var(--aum-footer-link-size, 14px);
  line-height: 1.55;
  color: var(--aum-footer-text, rgba(255, 255, 255, .68));
}

.aum-footer__contact svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 3px;
  fill: currentColor;
  color: var(--aum-accent, #d7c6b2);
}

.aum-footer__contact a {
  color: var(--aum-footer-link, rgba(255, 255, 255, .68));
  text-decoration: none;
  transition: color var(--aum-transition);
}

.aum-footer__contact a:hover { color: var(--aum-footer-link-hover, #fff); }

@media (max-width: 575.98px) {
  .aum-footer__contact li { justify-content: center; }
}

/* --- Footer, simplified ----------------------------------------------------
   Black band. Three cells: logo | contact | newsletter. Rule, legal line.
   Reads the same --aum-footer-* variables the Customizer writes, so colour
   and size controls still work. Defaults live in var() fallbacks.
   --------------------------------------------------------------------------- */
.aum-footer--simple {
  background: var(--aum-footer-bg, #000000);
  color: var(--aum-footer-text, rgba(255, 255, 255, .68));
  padding-block: var(--aum-footer-pad-y, 72px) var(--aum-footer-pad-b, 40px);
}

.aum-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--aum-footer-gap, 48px);
  align-items: start;
}

.aum-footer__cell--brand { text-align: left; }
.aum-footer__cell--contact { text-align: center; }
.aum-footer__cell--news { text-align: left; justify-self: end; width: 100%; max-width: var(--aum-footer-news-w, 360px); }

.aum-footer--simple .aum-footer__logo {
  display: block;
  width: 100%;
  max-width: var(--aum-footer-logo-w, 240px);
  height: auto;
  opacity: 1;
}

.aum-footer--simple .aum-footer__col-title {
  font-size: var(--aum-footer-col-title, 12px);
  letter-spacing: var(--aum-footer-col-tracking, 0.22em);
  text-transform: uppercase;
  color: var(--aum-footer-heading, rgba(255, 255, 255, .92));
  margin: 0 0 18px;
  font-weight: 400;
}

.aum-footer--simple .aum-footer__contact {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--aum-footer-link-gap, 10px);
  font-size: var(--aum-footer-link-size, 14px);
  letter-spacing: .04em;
  line-height: 1.6;
}

.aum-footer--simple .aum-footer__contact a {
  color: var(--aum-footer-link, rgba(255, 255, 255, .68));
  text-decoration: none;
  transition: color var(--aum-transition);
}

.aum-footer--simple .aum-footer__contact a:hover,
.aum-footer--simple .aum-footer__contact a:focus { color: var(--aum-footer-link-hover, #ffffff); }

.aum-footer--simple .aum-footer__social { justify-content: center; margin-top: 4px; }

/* Newsletter */
.aum-news__text {
  margin: 0 0 18px;
  font-size: var(--aum-footer-link-size, 14px);
  line-height: 1.6;
  color: var(--aum-footer-text, rgba(255, 255, 255, .68));
}

.aum-news__row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--aum-footer-news-line, rgba(255, 255, 255, .35));
  transition: border-color var(--aum-transition);
}

.aum-news__row:focus-within { border-color: var(--aum-footer-link-hover, #ffffff); }

.aum-news__row input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 12px 0;
  font-family: var(--aum-font);
  font-size: 15px;
  color: var(--aum-footer-heading, rgba(255, 255, 255, .92));
  outline: none;
  box-shadow: none;
}

.aum-news__row input::placeholder { color: var(--aum-footer-link, rgba(255, 255, 255, .5)); opacity: 1; }

.aum-news__btn {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 12px 0 12px 16px;
  font-family: var(--aum-font);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--aum-footer-heading, rgba(255, 255, 255, .92));
  cursor: pointer;
  transition: color var(--aum-transition), opacity var(--aum-transition);
}

.aum-news__btn:hover,
.aum-news__btn:focus-visible { color: var(--aum-footer-news-accent, #edcf98); outline: none; }

.aum-news__msg { margin: 0; font-size: 14px; line-height: 1.6; }
.aum-news__msg--ok { color: var(--aum-footer-news-accent, #edcf98); }
.aum-news__msg--err { color: #e6a1a1; margin-bottom: 10px; }
.aum-news__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.aum-footer--simple .aum-footer__rule { margin: 44px 0 22px; }

.aum-footer__legal--simple {
  margin: 0;
  text-align: center;
  font-size: var(--aum-footer-legal-size, 11px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}

@media (max-width: 991.98px) {
  .aum-footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .aum-footer__cell--brand,
  .aum-footer__cell--contact,
  .aum-footer__cell--news { text-align: center; justify-self: center; }
  .aum-footer--simple .aum-footer__logo { margin-inline: auto; max-width: var(--aum-footer-logo-w-mobile, 200px); }
  .aum-footer--simple .aum-footer__contact { margin-bottom: 18px; }
  .aum-footer--simple { padding-block: var(--aum-footer-pad-y-mobile, 56px) 32px; }
  .aum-footer--simple .aum-footer__rule { margin: 36px 0 18px; }
}

/* Privacy policy link after copyright */
.aum-footer__legal-sep{margin:0 .5em;opacity:.6;}
.aum-footer__legal-link{color:inherit;text-decoration:underline;text-underline-offset:3px;}
.aum-footer__legal-link:hover{opacity:.75;}
