/* executivesearchfirms.org: the programme pieces (footer, legal pages, About, scam page, vision section, About menu,
   cookie banner colours) in the site's own design. Uses the variables from /esf/site.css. Built by
   site-updates/executivesearchfirms.org/2026-11-programme/build.sh. */

/* Header: the About drop-down, styled like the "Executive roles" toggle */
.tp-about { position: relative; }
.tp-about-toggle { font: 500 .98rem var(--sans); color: var(--text); text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.tp-about-toggle:hover { color: var(--brass-deep); }
.tp-about-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); margin-left: 9px; }
.tp-about-toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(225deg); }
.tp-about .tp-menu { position: absolute; top: calc(100% + 18px); left: -20px; min-width: 230px; list-style: none; margin: 0; padding: 12px 20px; background: var(--white); border: 1px solid var(--boardline); box-shadow: 0 18px 30px rgba(10, 43, 38, .12); z-index: 30; }
.tp-about .tp-menu[hidden] { display: none; }
.tp-about .tp-menu a { display: block; padding: 6px 0; text-decoration: none; color: var(--text); font-size: .97rem; }
.tp-about .tp-menu a:hover, .tp-about .tp-menu a[aria-current] { color: var(--brass-deep); text-decoration: underline; }
.tp-about-toggle { white-space: nowrap; }
/* With About added the header needs about 1,150 px. Below that the site's own small-screen menu (site.css, 920 px and less)
   is used from 1,160 px down, so the menu items never wrap onto two lines. Same rules as site.css. */
@media (max-width: 1160px) and (min-width: 921px) {
  .menu-toggle { display: inline-block; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--boardline); flex-direction: column; align-items: stretch; padding: 8px var(--edge) 20px; gap: 12px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .primary-nav.is-open { display: flex; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--boardline); }
  .primary-nav > ul > li > a, .roles-toggle { display: block; width: 100%; text-align: left; padding: 14px 0; }
  .roles-drawer { position: static; box-shadow: none; border: 0; padding: 0 0 14px; }
  .roles-drawer .frame { padding: 0; }
  .roles-drawer__cols { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .primary-nav .btn { text-align: center; }
}
@media (max-width: 1160px) {
  .tp-about-toggle { display: block; width: 100%; text-align: left; padding: 14px 0; }
  .tp-about .tp-menu { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 14px 16px; }
}

/* Footer: the standard four columns (brand, Company, Get in touch, Legal) inside the site's own footer */
.site-foot__fns { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; padding-bottom: 26px; margin-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.site-foot__fns .site-foot__head { margin: 0; }
.site-foot__fns ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.hr-footer .ft-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.hr-footer .ft-col { min-width: 0; }
.hr-footer .ft-col.brand p { margin-top: 16px; max-width: 34ch; }
.hr-footer h2 { font: 700 1rem/1.4 var(--sans); color: var(--white); letter-spacing: 0; margin: 0 0 10px; }
.hr-footer .ft-copy { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; }
.hr-footer .ft-copy p { margin: 0; }
@media (max-width: 1080px) { .hr-footer .ft-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hr-footer .ft-in { grid-template-columns: 1fr; } .site-foot__fns { margin-bottom: 32px; } }

/* Legal pages (.pp) */
.pp .dates { color: var(--on-pine); font-size: .95rem; margin: 0; }
.pp .callout { background: var(--pine-soft); border-left: 4px solid var(--brass); padding: 16px 20px; margin: 0 0 28px; font-size: 1.05rem; }
.pp .prose > .callout:first-child { font-size: 1.05rem; }
.pp .table { overflow-x: auto; margin: 8px 0 18px; }
.pp table { min-width: 520px; }
.pp th { background: var(--stone); }
.pp code { font-size: .92em; background: var(--stone); padding: 1px 5px; border-radius: 3px; }
.pp .never { border: 2px solid #b42318; border-radius: 4px; padding: 18px 22px; background: #fff6f5; margin: 0 0 8px; }
.pp .never h2 { margin-top: 0; color: #8a1c12; }
.tp-kicker { display: block; font: 700 .8rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }

/* Homepage vision section */
.tp-home-vision { background: var(--stone); padding: clamp(44px, 6vw, 80px) 0; border-bottom: 1px solid var(--boardline); }
.tp-home-vision__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 5vw, 72px); }
.tp-home-vision .tp-kicker { color: var(--brass-deep); }
.tp-home-vision h2 { margin: 0; }
.tp-home-vision p:last-child { margin-bottom: 0; }
.tp-home-vision__more a { font-weight: 600; }

/* About page */
.tp-about-page blockquote { margin: 0; padding: 26px 30px; background: var(--white); border-left: 4px solid var(--brass); font: 500 1.35rem/1.45 var(--serif); color: var(--pine); }
.tp-about-page blockquote footer { font: 400 .9rem/1.4 var(--sans); color: var(--lichen); margin-top: 10px; }
.tp-quote { padding: clamp(36px, 5vw, 56px) 0 0; }
.tp-vision { background: var(--pine); color: var(--white); padding: clamp(44px, 6vw, 80px) 0; }
.tp-vision__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 5vw, 72px); }
.tp-vision h2 { color: var(--white); margin: 0; }
.tp-vision p { color: var(--on-pine); }
.tp-vision p:last-child { margin-bottom: 0; }
.tp-vision strong { color: var(--white); }
.tp-tales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.tp-tale { background: var(--white); border-top: 3px solid var(--brass); padding: 24px 24px 22px; }
.tp-tale h3 { font-size: 1.2rem; line-height: 1.3; margin: 8px 0 12px; }
.tp-tale p { color: var(--lichen); font-size: .98rem; margin: 0 0 10px; }
.tp-tale p:last-child { margin: 0; }
.tp-tale p strong { color: var(--text); }
.tp-tale__tag { display: inline-block; font: 700 .76rem/1.4 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--lichen); }
.tp-intro { color: var(--lichen); max-width: 60ch; }
.tp-talk { background: var(--pine); color: var(--white); padding: clamp(44px, 6vw, 80px) 0; }
.tp-talk p { color: var(--on-pine); max-width: 60ch; }
.tp-talk a:not(.btn) { color: var(--white); }
@media (max-width: 920px) { .tp-home-vision__grid, .tp-vision__grid, .tp-tales { grid-template-columns: 1fr; } }

/* Cookie banner (assets/js/consent.js) in the site's colours and fonts */
body .cc-banner { background: var(--pine-deep); font-family: var(--sans); }
body .cc-banner .cc-text h2 { font: 600 1.15rem/1.3 var(--serif); }
body .cc-banner .cc-text p, body .cc-banner .cc-row span.cc-desc, body .cc-banner .cc-always { color: var(--on-pine); }
body .cc-banner .cc-btn { border-radius: 3px; font-family: var(--sans); }
body .cc-banner .cc-primary, body .cc-banner .cc-primary:focus { background: var(--brass); color: var(--pine-deep); border-color: var(--brass); }
body .cc-banner .cc-primary:hover { background: #D8AC55; color: var(--pine-deep); border-color: #D8AC55; }
body .cc-banner .cc-btn:focus-visible, body .cc-banner .cc-switch input:focus-visible + span { outline-color: var(--brass); }
body .cc-banner .cc-switch input:checked + span { background: var(--brass); }
