/* ===== Round 11 (Dec 2): one type scale, one footer, one banner, one menu on every page; Careers restyled.
   Linked LAST. The scale and the footer sizing sit in a cascade layer with !important: a layered
   !important beats every unlayered !important in the older sheets (r5-r8), whatever their specificity,
   so no selector here has to out-count `.r6.card-up.o-mosaic .plate h1`. ===== */

/* ---------- 1. The one type scale (laptop / phone px) ----------
   page headline 48 / 36 · section headline 40 / 28 · card title 20 / 17
   small caps label 13 · intro paragraph 20 / 17 · body 17 / 16
   Controls (menu links, buttons, chips, banner) stay at 15, the size every button already uses. */
@layer r11 {
  .r11 body { font-size:17px !important; line-height:1.55 !important; }

  .r11 h1 { font-size:48px !important; line-height:1.06 !important; letter-spacing:-.015em !important; }

  .r11 h2 { font-size:40px !important; line-height:1.12 !important; }

  .r11 h3,
  .r11 .aud h2,
  .r11 .news3 .nc b,
  .r11 .adv b,
  .r11 .pts2 li b,
  .r11 .mails .t,
  .r11 .roles .t,
  .r11 .person h3 { font-size:20px !important; line-height:1.3 !important; }

  .r11 .kicker,
  .r11 .news3 .nc .src,
  .r11 .fz .mono,
  .r11 .fz .legal,
  .r11 .dir .fl,
  .r11 .roles .m,
  .r11 .plate .ticks li,
  .r11 figcaption,
  .r11 .f label,
  .r11 .m-flip .team .person .back .hint { font-size:13px !important; }

  .r11 .lead,
  .r11 .head p { font-size:20px !important; line-height:1.5 !important; }

  .r11 .person .bio,
  .r11 .person .role,
  .r11 .adv span,
  .r11 .pts2 li span,
  .r11 .checks li,
  .r11 .formcard .hint,
  .r11 .news3 .nc .go,
  .r11 .fz,
  .r11 .dir .who,
  .r11 .dir .co .who,
  .r11 .dir .what,
  .r11 .fz10 .side .line10,
  .r11 .aud p,
  .r11 .mails .d,
  .r11 .mails .addr,
  .r11 .m-flip .team .person .back p { font-size:17px !important; line-height:1.55 !important; }
  @media (min-width:761px){ .r11 .dir .go, .r11 .dir .mail { font-size:17px !important; } }

  .r11 .topline { font-size:15px !important; }

  @media (max-width:760px){
    .r11 h1 { font-size:36px !important; line-height:1.08 !important; }
    .r11 h2 { font-size:28px !important; line-height:1.18 !important; }
    .r11 h3,
    .r11 .aud h2,
    .r11 .news3 .nc b,
    .r11 .adv b,
    .r11 .pts2 li b,
    .r11 .mails .t,
    .r11 .roles .t,
    .r11 .person h3,
    .r11 .m-flip .team .person .back b { font-size:17px !important; }
    .r11 .lead,
    .r11 .head p { font-size:17px !important; }
    .r11 body,
    .r11 .person .bio,
    .r11 .person .role,
    .r11 .adv span,
    .r11 .pts2 li span,
    .r11 .checks li,
    .r11 .formcard .hint,
    .r11 .news3 .nc .go,
    .r11 .fz,
    .r11 .dir .who,
    .r11 .dir .co .who,
    .r11 .fz10 .side .line10,
    .r11 .aud p,
    .r11 .mails .d,
    .r11 .mails .addr,
    .r11 .m-flip .team .person .back p { font-size:16px !important; }
    .r11 .topline { font-size:13px !important; white-space:normal !important; }
  }

  /* ---------- 2. Footer: logo about twice the size, socials instead of addresses ---------- */
  .r11 .fz .lg img { height:44px !important; width:auto !important; }
  .r11 .fz10 .side .line10 { margin-top:20px !important; font-weight:500 !important; max-width:22rem !important; }
}

/* ---------- No sideways scroll at any width ----------
   Every row below is built to fit 390 px; `clip` is the backstop and, unlike `hidden`, makes no scroll container. */
.r11 body { overflow-x:clip; }

/* ---------- 3. Banner: white, owners ask, wraps on a phone instead of running off the edge ---------- */
.r11 .topline { padding:10px 16px; line-height:1.4; }
.r11 .topline a { margin-left:8px; white-space:nowrap; }

/* ---------- 4. Menu: the burger is a real button with a dropdown panel on a phone ---------- */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.r11 button.burger { appearance:none; -webkit-appearance:none; background:transparent; padding:0; font:inherit; color:inherit; cursor:pointer; }
.r11 .nav-panel { display:none; }
@media (max-width:760px){
  .r11 .nav-panel:not([hidden]) { display:block; position:absolute; left:0; right:0; top:100%; background:var(--n0); border-bottom:1px solid var(--n200); padding:4px 0 20px; }
  .r11 .nav-panel a:not(.btn) { display:flex; align-items:center; min-height:48px; border-top:1px solid var(--n200); color:var(--n900); text-decoration:none; font:600 1rem/1.3 var(--sans); }
  .r11 .nav-panel a:first-child { border-top:0; }
  .r11 .nav-panel a[aria-current] { color:var(--b600); }
  .r11 .nav-panel .btn { display:flex; justify-content:center; margin-top:12px; background:var(--b600); color:var(--n0); }
}
.r11 :is(a,button):focus-visible { outline:2px solid var(--b500); outline-offset:3px; border-radius:4px; }

/* ---------- Footer: social icon links (44 px targets), legal row ---------- */
.r11 .fz .social { list-style:none; margin:24px 0 0; padding:0; display:flex; gap:10px; }
.r11 .fz .social a { display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--n200); border-radius:10px; color:var(--n900); background:var(--n0); transition:border-color var(--pc-duration-fast, 150ms) var(--pc-ease-out, cubic-bezier(0.4, 1, 0.6, 1)), color var(--pc-duration-fast, 150ms) var(--pc-ease-out, cubic-bezier(0.4, 1, 0.6, 1)); }
@media (hover:hover) and (pointer:fine){ .r11 .fz .social a:hover { border-color:var(--b600); color:var(--b600); } }
.r11 .fz.pb { border-top:1px solid var(--n200); }

/* ---------- 6. Owners: "Talk to an engineer" is a button that opens a pop-up ---------- */
.r11 .btn[data-modal] { cursor:pointer; font:600 .9375rem/1 var(--sans); }
.r11 .btn[data-modal] svg { flex:0 0 auto; }

/* ---------- 5. Company: two news cards fill the row; Apply rows ---------- */
.pg-company .news3 { grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); }
/* Titles stay within two lines at every width: the announcement takes the whole row, the two stories share the next. */
@media (min-width:761px){
  .pg-company .news3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pg-company .news3 .nc-ann { grid-column:1 / -1; }
}
.pg-company .news3 .nc b { text-wrap:balance; }
/* Phone: the cards run edge to edge as one stack, so each title keeps the page's text width (measured: 2 lines at
   360, 390 and 430; boxed cards wrapped the announcement to 3). */
@media (max-width:760px){
  .pg-company .news3 { margin-inline:-20px; gap:0; }
  .pg-company .news3 .nc { border-radius:0; border-inline:0; padding:20px; }
  .pg-company .news3 .nc + .nc { border-top:0; }
}
@media (max-width:380px){ .pg-company .news3 .nc { padding-inline:16px; } }
@media (hover:hover) and (pointer:fine){ .r11 .gpanel .roles a:hover .t { color:var(--b200); } }

/* ===================== 7. Careers ===================== */

/* Hero: text straight on the corridor, a left shade carries contrast, a short fade into white */
.pg-careers .hero { min-height:720px; display:flex; align-items:center; }
.pg-careers .hero > :is(img, picture > img).bg { object-position:40% 50%; }
.pg-careers .hero::after { background:
  linear-gradient(0deg, var(--n0) 0%, rgba(255,255,255,.85) 4%, rgba(255,255,255,0) 14%),
  linear-gradient(180deg, rgba(9,15,21,.6) 0, rgba(9,15,21,0) 140px),
  linear-gradient(90deg, rgba(9,15,21,.9) 0%, rgba(9,15,21,.74) 36%, rgba(9,15,21,.22) 62%, rgba(9,15,21,0) 80%); }
.pg-careers .hero .copy { max-width:34rem; padding:136px 0 128px; }
.pg-careers .hero h1 { margin-top:14px; }
.pg-careers .hero .lead { margin-top:20px; }
.pg-careers .hero .btn { margin-top:32px; }

/* Why join: one picture beside three short points */
.pg-careers .why-grid { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); grid-template-areas:"pic head" "pic list"; grid-template-rows:auto 1fr; gap:0 72px; align-items:start; }
.pg-careers .why-head { grid-area:head; }
.pg-careers .why-head h2 { margin-top:12px; max-width:16em; }
.pg-careers .why-pic { grid-area:pic; margin:0; border-radius:14px; overflow:hidden; aspect-ratio:1/1; background:var(--n800); }
.pg-careers .why-pic img { width:100%; height:100%; object-fit:cover; }
.pg-careers .why-list { grid-area:list; list-style:none; margin:40px 0 0; padding:0; }
.pg-careers .why-list li { padding:24px 0; border-top:1px solid var(--n200); }
.pg-careers .why-list li:last-child { border-bottom:1px solid var(--n200); }
.pg-careers .why-list p { margin-top:8px; color:var(--n600); max-width:36rem; }

/* Open roles: team chips, then one group per team */
.pg-careers .roles-head h2 { margin-top:12px; }
.pg-careers .team-chips { list-style:none; margin:28px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.pg-careers .team-chips a { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 16px; border:1px solid var(--n300); border-radius:999px; background:var(--n0); color:var(--n900); text-decoration:none; font:500 .9375rem/1 var(--sans); transition:border-color .15s, background-color .15s; }
.pg-careers .team-chips a span { color:var(--n600); font-variant-numeric:tabular-nums; }
.pg-careers .team-chips a[aria-current] { background:var(--n900); border-color:var(--n900); color:var(--n0); }
.pg-careers .team-chips a[aria-current] span { color:var(--n300); }
@media (hover:hover) and (pointer:fine){ .pg-careers .team-chips a:not([aria-current]):hover { border-color:var(--n900); } }

.pg-careers .rgroups { margin-top:56px; display:grid; gap:48px; }
.pg-careers .rgroup { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,9fr); gap:48px; align-items:start; scroll-margin-top:24px; }
.pg-careers .rgroup-head { position:sticky; top:24px; padding-top:20px; }
.pg-careers .rgroup-head .kicker { margin-top:6px; }
.pg-careers .rlist { list-style:none; margin:0; padding:0; background:var(--n0); border:1px solid var(--n200); border-radius:12px; overflow:hidden; }
.pg-careers .rlist li + li { border-top:1px solid var(--n200); }
.pg-careers .rlist a { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,11rem) auto; gap:4px 24px; align-items:center; min-height:72px; padding:16px 24px; color:var(--n900); text-decoration:none; transition:background-color .15s; }
.pg-careers .rlist .t { font:600 20px/1.3 var(--sans); }
.pg-careers .rlist .m { color:var(--n600); }
.pg-careers .rlist .go { font-weight:600; color:var(--b600); white-space:nowrap; }
.pg-careers .rlist a:focus-visible { outline-offset:-3px; }
@media (hover:hover) and (pointer:fine){
  .pg-careers .rlist a:hover { background:var(--n25); }
  .pg-careers .rlist a:hover .t { color:var(--b600); }
}

/* Closing band */
.pg-careers .close-grid { display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:24px 64px; align-items:center; }
.pg-careers .close-grid .lead { margin-top:12px; color:var(--n600); }
.pg-careers .close-grid .btn { justify-self:end; }

@media (max-width:760px){
  .pg-careers .hero { min-height:560px; align-items:flex-start; }
  .pg-careers .hero::after { background:
    linear-gradient(0deg, var(--n0) 0%, rgba(255,255,255,.85) 4%, rgba(255,255,255,0) 12%),
    linear-gradient(180deg, rgba(9,15,21,.55) 0%, rgba(9,15,21,.86) 24%, rgba(9,15,21,.86) 72%, rgba(9,15,21,.35) 88%); }
  .pg-careers .hero .copy { padding:104px 0 80px; }
  .pg-careers .hero .btn { width:100%; justify-content:center; }

  .pg-careers .why-grid { grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "pic" "list"; gap:0; }
  .pg-careers .why-pic { aspect-ratio:16/10; margin-top:28px; }
  .pg-careers .why-list { margin-top:16px; }
  .pg-careers .why-list li { padding:20px 0; }

  .pg-careers .rgroups { margin-top:40px; gap:36px; }
  .pg-careers .rgroup { grid-template-columns:minmax(0,1fr); gap:12px; }
  .pg-careers .rgroup-head { position:static; padding-top:0; display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
  .pg-careers .rgroup-head .kicker { margin-top:0; }
  .pg-careers .rlist a { grid-template-columns:minmax(0,1fr) auto; min-height:64px; padding:14px 16px; gap:2px 12px; }
  .pg-careers .rlist .t { font-size:17px; grid-column:1; grid-row:1; }
  .pg-careers .rlist .m { grid-column:1; grid-row:2; }
  .pg-careers .rlist .go { grid-column:2; grid-row:1 / span 2; }

  .pg-careers .close-grid { grid-template-columns:minmax(0,1fr); }
  .pg-careers .close-grid .btn { justify-self:stretch; justify-content:center; }
}
