/* 07-mobile-header.css — Mobile header, menu and spacing.
   Split out of style.css 2026-11-18. Source order is preserved and the files are
   enqueued in filename order, so the cascade is identical to the single file. */


/* ===========================================================================
   Mobile header, menu and spacing.
   =========================================================================== */
@media (max-width: 640px) {

  /* Avada sizes the logo from the attachment, so the 72px-tall desktop file
     produced a 112px header bar on a 412px screen. Scale it in CSS rather than
     shipping a second file — the separate mobile logo had been flattened onto
     white (alpha=False) and read as a white box on the dark header. */
  .fusion-header .fusion-logo img,
  .fusion-header img.fusion-standard-logo {
    /* Avada writes style="max-height:72px" inline on the <img>, so a plain
       stylesheet rule never wins here. */
    max-height: 62px !important;
    width: auto !important;
    height: auto !important;
  }

  .fusion-header {
    /* Avada's own header padding (20px) wins without this. */
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  /* Centre the bars icon against the logo. Avada floats it inside a zero-height
     .fusion-mobile-menu-icons, so it sat 9px above centre. That container holds
     ONLY the icon — the dropdown (.fusion-mobile-nav-holder) is a sibling
     inside .fusion-row — so taking it out of flow does not move the menu.
     An earlier attempt made .fusion-row itself a flex container, which DID
     reparent the dropdown beside the icon; do not do that. */
  .fusion-header .fusion-mobile-menu-icons {
    position: absolute;
    top: 0;
    right: 0;
    /* Fixed to the logo's height, NOT 100%. .fusion-row also contains the
       mobile nav holder, so when the menu opens the row grows from 62px to
       ~273px; at height:100% this box grew with it and flex-centring pushed
       the bars icon down into the middle of the open menu, where it read as
       having disappeared and left no way to close the menu. */
    height: 62px;
    margin-top: 0;
    /* Avada's own .fusion-mobile-menu-icons{display:block} loads after this
       file and won that cascade on the first attempt. */
    display: flex !important;
    align-items: center;
  }
  .fusion-header .fusion-mobile-menu-icons > a { float: none; }

  /* Episode rows run edge to edge on a phone: cancel the 30px page gutter on
     the list only, so the row highlight spans the full width. The filters above
     keep the gutter. */
  .ppe-list {
    margin-left: -30px;
    margin-right: -30px;
  }
  .ppe-list .ppe-row { padding-left: 18px; padding-right: 18px; }
  /* .ppe-filters is a CHILD of .ppe-list, so the negative margin above pulled
     the title, chips and controls flush to the edge too. Give that block its
     gutter back; only the rows run edge to edge. */
  .ppe-list > .ppe-filters {
    padding-left: 30px;
    padding-right: 30px;
  }

  /* The current item was white on rgb(199,125,255) — 2.71:1, unreadable.
     The palette's own accent gives white text 7.8:1 and matches the active
     chip style used on the episodes page. */
  .fusion-mobile-nav-item.fusion-mobile-current-nav-item > a,
  .fusion-mobile-nav-item.current-menu-item > a,
  .fusion-mobile-nav-item.current_page_item > a {
    background-color: var(--awb-color4) !important;
    color: var(--awb-color1) !important;
  }

  /* Page furniture was 60px top and bottom plus a 54px gap under the hero —
     over a third of a phone screen before any content. */
  .fusion-body main,
  .fusion-body .post-content {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
  }
  .fb-hero { margin-bottom: 30px; }
}

/* Footer social row: 11 icons at 16px with 10px side margins need 396px, and
   the wrapper is 372px on a phone — so exactly one (X) wrapped to a line of
   its own. Tighten the gutters so the set holds one line. */
@media (max-width: 640px) {
  .fusion-social-networks .fusion-social-network-icon {
    margin-left: 6px !important;
    margin-right: 6px !important;
    margin-bottom: 6px !important;
  }
}
