/* Site header: the "Who We Help" menu as three titled panels: "By growth motion" (3 links),
   "By role" (7) and "By stage" (3). Two columns each on desktop, read across the rows; one column
   on phones. Loaded by src/partials/header.html, so it applies on every page with the shared header.
   The menu items stay plain <li> links in one list; the grid places them. Each panel's white card
   is its title item (li.nav-panel-title, role="presentation"), stretched behind the panel, so the
   menu script and screen readers see one list.
   Items: 1 title, 2-4 growth motions; 5 title, 6-12 roles; 13 title, 14-16 stages. */
header.fl-builder-content-28 ul.nav-panels > li.nav-panel-title {
  z-index: 0;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(30, 31, 47, .04);
  padding: 12px 12px 0;
}
header.fl-builder-content-28 ul.nav-panels > li.nav-panel-title > span {
  display: block;
  padding: 10px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  color: var(--gripped-ink);
}

/* Desktop: dropdown under "Who We Help" */
@media (min-width: 1026px) {
  /* !important: the menu's own hover rule sets display:block. While closed the menu stays
     hidden by its visibility:hidden and opacity:0. */
  header.fl-builder-content-28 .pp-advanced-menu ul.sub-menu.nav-panels {
    display: grid !important;
    grid-template-columns: 12px max-content 24px max-content 12px;
    grid-template-rows: 12px 42px auto auto 12px 8px 12px 42px auto auto auto auto 12px 8px 12px 42px auto auto 12px;
    width: max-content;
    min-width: 0;
    padding: 4px;
    background: #f9f9f9;
    border-color: #f9f9f9;
  }
  header.fl-builder-content-28 ul.nav-panels > li { z-index: 1; min-width: 200px; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(1) { grid-area: 1 / 1 / 6 / 6; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(2) { grid-area: 3 / 2; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(3) { grid-area: 3 / 4; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(4) { grid-area: 4 / 2; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(5) { grid-area: 7 / 1 / 14 / 6; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(6) { grid-area: 9 / 2; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(7) { grid-area: 9 / 4; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(8) { grid-area: 10 / 2; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(9) { grid-area: 10 / 4; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(10) { grid-area: 11 / 2; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(11) { grid-area: 11 / 4; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(12) { grid-area: 12 / 2; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(13) { grid-area: 15 / 1 / 20 / 6; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(14) { grid-area: 17 / 2; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(15) { grid-area: 17 / 4; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(16) { grid-area: 18 / 2; }
}

/* Phones and tablets: the menu opens in the page; one column, same three panels.
   The menu script opens it with an inline display:block, hence the attribute selector. */
@media (max-width: 1025px) {
  header.fl-builder-content-28 .pp-advanced-menu ul.sub-menu.nav-panels[style*="block"] {
    display: grid !important;
  }
  header.fl-builder-content-28 .pp-advanced-menu ul.sub-menu.nav-panels {
    grid-template-columns: 12px 1fr 12px;
    grid-template-rows: 12px 42px repeat(3, auto) 12px 8px 12px 42px repeat(7, auto) 12px 8px 12px 42px repeat(3, auto) 12px;
    padding: 4px;
    background: #f9f9f9;
    border-radius: 16px;
  }
  header.fl-builder-content-28 ul.nav-panels > li { z-index: 1; grid-column: 2; }
  header.fl-builder-content-28 ul.nav-panels > li.nav-panel-title { box-shadow: none; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(1) { grid-area: 1 / 1 / 7 / 4; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(2) { grid-row: 3; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(3) { grid-row: 4; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(4) { grid-row: 5; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(5) { grid-area: 8 / 1 / 18 / 4; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(6) { grid-row: 10; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(7) { grid-row: 11; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(8) { grid-row: 12; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(9) { grid-row: 13; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(10) { grid-row: 14; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(11) { grid-row: 15; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(12) { grid-row: 16; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(13) { grid-area: 19 / 1 / 25 / 4; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(14) { grid-row: 21; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(15) { grid-row: 22; }
  header.fl-builder-content-28 ul.nav-panels > li:nth-child(16) { grid-row: 23; }
}

/* Site header: the "Services" menu as four titled panels: "Programmes" and "Content & Creative" (what we
   run and make: websites, landing pages, ad creative, content and copy; 16 Nov 2026) in the first row,
   "Search" and "Social" (the channels) in the second. Child pages sit indented under their channel:
   Google Ads, Bing Ads and ChatGPT Ads under Paid Search, LinkedIn Ads and Reddit Ads under Paid Social.
   One list, as the menu script expects; each panel's white card is its title item stretched behind it.
   Items: 1 Programmes title, 2-5; 6 Content & Creative title, 7-10; 11 Search title, 12-17;
   18 Social title, 19-22 (Earned Social last).
   The child items are styled by id, because a page's header settings replace its own item's class list. */
header.fl-builder-content-28 ul.nav-panels-services > li.nav-panel-title {
  z-index: 0;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(30, 31, 47, .04);
  padding: 12px 12px 0;
}
header.fl-builder-content-28 ul.nav-panels-services > li.nav-panel-title > span {
  display: block;
  padding: 10px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  color: var(--gripped-ink);
}
header.fl-builder-content-28 ul.nav-panels-services > :is(#menu-item-ch-google-ads, #menu-item-ch-bing-ads, #menu-item-ch-chatgpt-ads, #menu-item-217287, #menu-item-ch-reddit-ads) {
  margin-left: 20px;
  border-left: 1px solid #e4e3e8;
}
header.fl-builder-content-28 ul.nav-panels-services > :is(#menu-item-ch-google-ads, #menu-item-ch-bing-ads, #menu-item-ch-chatgpt-ads, #menu-item-217287, #menu-item-ch-reddit-ads) .menu-item-text {
  font-size: 15px;
}
@media (min-width: 1026px) {
  header.fl-builder-content-28 .pp-advanced-menu ul.sub-menu.nav-panels-services {
    display: grid !important; /* see the note on .nav-panels above */
    grid-template-columns: 12px max-content 12px 8px 12px max-content 12px;
    grid-template-rows: 12px 42px repeat(4, auto) 12px 8px 12px 42px repeat(6, auto) 12px;
    width: max-content;
    min-width: 0;
    padding: 4px;
    background: #f9f9f9;
    border-color: #f9f9f9;
  }
  header.fl-builder-content-28 ul.nav-panels-services > li { z-index: 1; min-width: 240px; }
  /* the four cards (col1: Programmes, Search; col2: Content & Creative, Social) */
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(1) { grid-area: 1 / 1 / 8 / 4; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(6) { grid-area: 1 / 5 / 8 / 8; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(11) { grid-area: 9 / 1 / 18 / 4; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(18) { grid-area: 9 / 5 / 18 / 8; }
  /* Programmes */
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(2) { grid-area: 3 / 2; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(3) { grid-area: 4 / 2; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(4) { grid-area: 5 / 2; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(5) { grid-area: 6 / 2; }
  /* Content & Creative */
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(7) { grid-area: 3 / 6; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(8) { grid-area: 4 / 6; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(9) { grid-area: 5 / 6; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(10) { grid-area: 6 / 6; }
  /* Search */
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(12) { grid-area: 11 / 2; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(13) { grid-area: 12 / 2; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(14) { grid-area: 13 / 2; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(15) { grid-area: 14 / 2; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(16) { grid-area: 15 / 2; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(17) { grid-area: 16 / 2; }
  /* Social */
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(19) { grid-area: 11 / 6; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(20) { grid-area: 12 / 6; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(21) { grid-area: 13 / 6; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(22) { grid-area: 14 / 6; }
}
@media (max-width: 1025px) {
  header.fl-builder-content-28 .pp-advanced-menu ul.sub-menu.nav-panels-services[style*="block"] {
    display: grid !important;
  }
  header.fl-builder-content-28 .pp-advanced-menu ul.sub-menu.nav-panels-services {
    grid-template-columns: 12px 1fr 12px;
    grid-template-rows:
      12px 42px repeat(4, auto) 12px 8px
      12px 42px repeat(4, auto) 12px 8px
      12px 42px repeat(6, auto) 12px 8px
      12px 42px repeat(4, auto) 12px;
    padding: 4px;
    background: #f9f9f9;
    border-radius: 16px;
  }
  header.fl-builder-content-28 ul.nav-panels-services > li { z-index: 1; grid-column: 2; }
  header.fl-builder-content-28 ul.nav-panels-services > li.nav-panel-title { box-shadow: none; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(1) { grid-area: 1 / 1 / 8 / 4; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(2) { grid-row: 3; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(3) { grid-row: 4; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(4) { grid-row: 5; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(5) { grid-row: 6; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(6) { grid-area: 9 / 1 / 16 / 4; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(7) { grid-row: 11; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(8) { grid-row: 12; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(9) { grid-row: 13; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(10) { grid-row: 14; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(11) { grid-area: 17 / 1 / 26 / 4; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(12) { grid-row: 19; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(13) { grid-row: 20; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(14) { grid-row: 21; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(15) { grid-row: 22; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(16) { grid-row: 23; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(17) { grid-row: 24; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(18) { grid-area: 27 / 1 / 34 / 4; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(19) { grid-row: 29; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(20) { grid-row: 30; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(21) { grid-row: 31; }
  header.fl-builder-content-28 ul.nav-panels-services > li:nth-child(22) { grid-row: 32; }
}

/* Breadcrumb under the header on core pages (trails in src/data/breadcrumbs.json, drawn by src/lib/chrome.ts).
   Matches the channel pages' own breadcrumb. */
.site-crumbs { max-width: 1100px; margin: 0 auto; padding: 24px 20px 12px; box-sizing: content-box; font-family: var(--font-body, Inter, sans-serif); font-size: 14px; line-height: 20px; color: #6b6b6b; }
.site-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-crumbs li { margin: 0; padding: 0; }
.site-crumbs li + li::before { content: "\203A"; margin-right: 6px; color: #858585; }
.site-crumbs a, .site-crumbs a:visited { color: #6b6b6b; text-decoration: none; font-size: inherit; }
.site-crumbs a:hover { color: var(--gripped-orange, #fb3f00); text-decoration: none; }
.site-crumbs [aria-current] { color: var(--gripped-ink, #1e1f2f); }

/* The header and its dropdowns sit above page content that has its own stacking order, such as the
   blog's sticky filter bar (z-index 30). Before the page scrolls the header isn't fixed yet, so it
   needs its own stacking context here; once fixed, Beaver Builder's z-index 100 applies. (13 Nov 2026) */
header.fl-builder-content-28:not(.fl-theme-builder-header-sticky) { position: relative; z-index: 100; }
