/* Internal pages, menu overlay, Insights and Contact.
   Same type system as the homepage (site.css): one big Mona headline per section, a big drop into quiet body
   copy 20% in, emphasis only where Steve's copy has it, and the right-hand side left empty.
   Steve's build note: Who We Help recognisable, How We Search procedural, The Club editorial, T&E substantive. */

/* ---------- Sections ---------- */
.sec{--cap:5.4cqw;--bs:1.74cqw;--lh:1.42;--gap:1;padding:7.5cqw 0 0}
.sec.hero{--cap:7.3cqw;padding-top:4.3cqw}
.sec.hero.long{--cap:5.6cqw}
.sec.close{--cap:7.3cqw;padding:10cqw 0 10cqw}
.sec.minor{--cap:4.2cqw}
main > .sec:last-child{padding-bottom:10cqw}
.sec > h1,.sec > h2,.sec > h3{max-width:80cqw;text-wrap:balance}
.sec > h1:first-child,.sec > h2:first-child,.sec > h3:first-child{margin-top:0}
.sec .copy{margin:calc(var(--cap)*0.55) 0 0 20cqw;width:60cqw}
.sec .copy p{white-space:normal}

/* A headline that continues the one above it (Steve's heading + sub-heading pairs) reads as one headline */
.sec > h3.is-style-continue{--sub:var(--cap);margin:0 0 0 6cqw}
/* Section statement at headline size (What We Recruit: area label + statement) */
.sec h3.is-style-section,.sec h2.is-style-section{--sub:var(--cap);font-size:calc(var(--cap)/0.729);line-height:calc(var(--cap)*1.08);margin:0 0 0 6cqw;max-width:80cqw;text-wrap:balance}

/* Small capital labels: section areas, proof-block titles, the T&E descriptor */
.is-style-label,p.is-style-kicker{font-family:'Nav';font-weight:500;text-transform:uppercase;letter-spacing:.14em;
  font-size:max(13px,1.2cqw);line-height:1.35;margin:0 0 1.1em}
.sec > .is-style-label{margin-left:6cqw;margin-bottom:max(14px,1.6cqw)}
.is-style-label span{display:inline}
.sec h1.is-style-label{margin-bottom:max(16px,2cqw)}

/* Role lists ("CTO · VP Engineering · …") */
.copy p.is-style-roles{font-family:'Nav';font-weight:500;text-transform:uppercase;letter-spacing:.06em;
  font-size:max(15px,1.45cqw);line-height:1.6;margin:max(22px,2.2cqw) 0}

/* Questions and answers, built into the page (not accordions) */
.qa{margin:0 0 max(34px,3.4cqw)}
.copy .is-style-question{--sub:2.5cqw;font-size:max(24px,calc(var(--sub)/0.729));line-height:1.06;margin:0 0 .55em;text-wrap:balance}
.copy .is-style-question span{display:inline}

/* Proof blocks: genuine searches, set as quiet text (no cards) */
.proof{margin:0 0 max(30px,3cqw)}
.proof h3.is-style-label{margin-bottom:.8em}

/* How We Search: the process line */
.sec h2.is-style-process{--cap:3.3cqw;font-size:calc(var(--cap)/0.729);line-height:calc(var(--cap)*1.3);margin:0 0 0 6cqw;max-width:88cqw}
.sec h2.is-style-process > span{display:inline}
.arr{display:inline-block;width:.78em;height:.6em;margin:0 .18em;color:transparent;overflow:hidden;vertical-align:.12em;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 18'%3E%3Cpath d='M0 9h24M16 1l8 8-8 8' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E") center/contain no-repeat}

/* Buttons: white for the main route, outlined for the second; more than one sit in a row */
.sec .wp-block-buttons{display:flex;flex-wrap:wrap;gap:max(14px,1.6cqw);margin-top:calc(var(--bs)*1.2)}
.sec .wp-block-button__link{width:auto;min-width:25cqw;margin-top:0}
.sec .is-style-outline .wp-block-button__link{background:transparent;color:#fff;box-shadow:inset 0 0 0 2px #fff}

/* ---------- Menu overlay (the burger) ---------- */
button.menu{appearance:none;background:none;border:0;padding:0;cursor:pointer;color:#fff}
.overlay{position:fixed;inset:0;z-index:20;background:#000;overflow:auto;display:none}
.overlay.open{display:block}
.overlay .page{min-height:100%}
.overlay-top{display:flex;justify-content:space-between;align-items:center;padding:2.1cqw 6cqw 0 5.9cqw}
.overlay-close{appearance:none;background:none;border:0;padding:0;cursor:pointer;color:#fff;width:2.2cqw;min-width:24px;aspect-ratio:1}
.overlay-close svg{display:block;width:100%;height:auto}
.overlay nav{display:block;margin:6cqw 0 0 20cqw}
.overlay nav a{display:block;font-family:'Head';font-weight:400;text-transform:uppercase;letter-spacing:-0.012em;color:#fff;text-decoration:none;
  font-size:calc(4.6cqw/0.729);line-height:1.04}
.overlay nav a:hover,.overlay nav a[aria-current]{opacity:.55}
.overlay-foot{margin:4cqw 0 4cqw 20cqw;font-family:var(--body);letter-spacing:var(--trk);font-size:max(16px,1.5cqw)}
.overlay-foot a{color:#fff}
html.menu-open{overflow:hidden}

/* ---------- Insights ---------- */
.posts{list-style:none;margin:0;padding:0}
.posts li{margin:0 0 max(34px,3.6cqw)}
.posts .date{font-family:'Nav';font-weight:500;text-transform:uppercase;letter-spacing:.14em;font-size:max(13px,1.15cqw);margin:0 0 .6em;color:#bbb}
.posts h2{font-family:'Head';font-weight:400;text-transform:uppercase;letter-spacing:-0.012em;margin:0;font-size:max(26px,calc(2.6cqw/0.729));line-height:1.06}
/* Steve, 26 Oct: headline clearly clickable (always underlined) and a "Read the article" link */
.posts h2 a{color:#fff;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.12em}
.posts h2 a:hover,.posts .read a:hover{opacity:.7}
.posts p.read{margin:1.1em 0 0}
.posts .read a{display:inline-flex;align-items:center;gap:.7em;color:#fff;text-decoration:none;font-family:'Nav';font-weight:500;
  text-transform:uppercase;letter-spacing:.14em;font-size:max(15px,1.25cqw);padding:6px 0;border-bottom:2px solid #fff}
.posts .read svg{width:1.5em;height:1em;flex:none}
.posts p{margin:.6em 0 0}
.sec.hero.article{--cap:5.2cqw}
.article-meta{margin:calc(var(--cap)*0.7) 0 0 20cqw;font-family:'Nav';font-weight:500;text-transform:uppercase;letter-spacing:.14em;font-size:max(13px,1.15cqw);color:#bbb}
.article .copy{font-family:var(--body);letter-spacing:var(--trk)}
.article .copy p,.article .copy li{font-size:max(17px,calc(var(--bs)*var(--k)));line-height:1.5}
.article .copy h2{font-family:'Head';font-weight:400;text-transform:uppercase;letter-spacing:-0.012em;margin:1.4em 0 .5em;font-size:max(26px,calc(2.6cqw/0.729));line-height:1.06}
.article .copy a{color:#fff}

/* ---------- Contact ---------- */
.routes{margin:0 0 max(22px,2.2cqw)}
.routes p{margin:0 0 .35em}
.route-link{font-family:'Head';font-weight:400;text-transform:none;letter-spacing:-0.005em;color:#fff;text-decoration:none;
  font-size:max(26px,calc(2.7cqw/0.729));line-height:1.15;border-bottom:2px solid #fff}
.route-link:hover{opacity:.7}
.route-link.is-pending{opacity:.4;border-bottom-style:dashed}
.route-note{font-family:'Nav';font-weight:500;text-transform:uppercase;letter-spacing:.14em;font-size:13px;color:#bbb;margin-left:.8em;white-space:nowrap}
.address{font-style:normal;font-family:'Head';font-weight:400;text-transform:uppercase;letter-spacing:-0.005em;color:#fff;
  font-size:max(26px,calc(2.7cqw/0.729));line-height:1.12;margin:0}

/* Links inside body text (e.g. "More questions? See our FAQs.", the FAQ page's list) */
.copy p a{color:#fff;text-decoration-thickness:1px;text-underline-offset:.18em}
.copy p a:hover{text-decoration-thickness:2px}
.copy p.is-style-more{margin-top:1.4em}

/* ---------- Plain text pages (Privacy, 404) ---------- */
.sec.plain .copy p,.sec.plain .copy li{white-space:normal;line-height:1.5}
.sec.plain .copy h2{font-family:'Head';font-weight:400;text-transform:uppercase;letter-spacing:-0.012em;font-size:max(24px,calc(2.3cqw/0.729));line-height:1.06;margin:1.6em 0 .5em}
.sec.plain .copy a{color:#fff}

/* ---------- Tablet ---------- */
@media (max-width:1024px){
  .sec .copy{width:66cqw}
  .overlay nav{margin-left:6cqw}
  .overlay-foot{margin-left:6cqw}
  .overlay-top{padding:2.1cqw 6cqw 0 5.9cqw}
  .overlay nav a{font-size:calc(7cqw/0.729)}
  .sec .wp-block-button__link{min-width:0}
}
/* ---------- Phone ---------- */
@media (max-width:700px){
  .sec{--cap:8.2cqw;--bs:16px;padding-top:56px}
  .sec.hero,.sec.close{--cap:9.6cqw}
  .sec.hero.long{--cap:7.6cqw}
  .sec.minor{--cap:7cqw}
  .sec.hero{padding-top:40px}
  .sec.close{padding:72px 0 80px}
  .sec > h1,.sec > h2,.sec > h3,.sec > .is-style-label,.sec h2.is-style-process,.sec h3.is-style-section,.sec h2.is-style-section,.sec > h3.is-style-continue{margin-left:20px;margin-right:20px;max-width:none}
  .sec .copy{margin-left:20px;margin-right:20px;width:auto}
  .sec h2.is-style-process{--cap:6.4cqw}
  .copy .is-style-question{font-size:24px}
  .overlay-top{padding:20px 20px 0}
  .overlay nav{margin:48px 20px 0}
  .overlay nav a{font-size:calc(8.6cqw/0.729)}
  .overlay-foot{margin:36px 20px}
  .sec.hero.article{--cap:8.2cqw}
  .article-meta{margin-left:20px}
}
