/* T. Component polish (design partner 00:38Z; polish/patch.md items 0-8a, S3, S4, S6). Loaded last on every page.
   Item 8b's button markup is covered by n.js (each row is a keyboard button with aria-expanded). */
:root {
  --dur-fast:150ms; --dur-base:200ms; --dur-slow:400ms;
  --ease-out:cubic-bezier(.4,1,.6,1); --ease-in-out:cubic-bezier(.4,0,.2,1);
  --ring-on-dark:var(--b200); --ring-on-light:var(--b600);
}

/* 1. Buttons: one hover per kind, press .97, one focus ring. */
.btn, .nav .links .cta {
  transition:background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color:transparent;
}
.btn-primary { box-shadow:inset 0 1px 0 rgb(255 255 255 / .28); }
.btn:active, .nav .links .cta:active { scale:.97; }
:is(.r11, html) :is(.btn, .nav .links .cta):focus-visible { outline:2px solid var(--ring-on-dark); outline-offset:2px; border-radius:8px; }
:is(.r11, html) .pal-light .section .btn:not(.btn-primary[data-email]):focus-visible { outline-color:var(--ring-on-light); }
@media (hover:hover) and (pointer:fine){
  .btn-primary:hover { background:var(--b100); }
  .btn-secondary:hover { background:color-mix(in srgb, var(--n0) 8%, color-mix(in srgb, var(--n950) 60%, transparent)); border-color:color-mix(in srgb, var(--n300) 75%, transparent); }
  .nav .links .cta:hover { background:color-mix(in srgb, var(--n0) 10%, transparent); border-color:var(--n0); }
  .pal-light .section .btn-primary:hover { background:var(--n800); }
  .p-two .section .btn-secondary:hover { background:var(--n25); border-color:var(--n500); }
}

/* 2a. Pop-up enter: backdrop fade plus sheet rise, on the first open only (t.js marks it), never on each step. */
@media (prefers-reduced-motion:no-preference){
  .pcm.first .pcm-stage { animation:pcm-fade var(--dur-base) var(--ease-out) backwards; }
  .pcm.first .sheet { animation:pcm-rise var(--dur-base) var(--ease-out) backwards; transform-origin:50% 40%; }
  .pcm .bar i { transition:background-color var(--dur-slow) var(--ease-in-out); }
}
@keyframes pcm-fade { from { opacity:0; } }
@keyframes pcm-rise { from { opacity:0; translate:0 12px; scale:.98; } }
.pcm .hd { padding-bottom:4px; }
.pcm .hd h2 { letter-spacing:-.01em; }
.pcm .x { transition:background-color var(--dur-fast) var(--ease-out); }
.pcm .x:active, .pcm .backlink:active { scale:.97; }
.pcm .bar i { height:4px; border-radius:4px; }
.pcm .act .btn { box-shadow:inset 0 1px 0 rgb(255 255 255 / .28); transition:background-color var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.pcm .act .btn:active { scale:.98; }

/* 3. Form fields (S3, S4): dark native controls, a ring hugging the field, hover border, autofill on the dark surface. */
.formcard, .pcm { color-scheme:dark; }
.pf-ctl, .pcm :is(input:not([type=radio]):not([type=checkbox]), select, textarea) {
  transition:border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
html .pf-ctl:focus-visible, html .pcm :is(input, select, textarea):focus-visible { outline:none; border-color:var(--b200); box-shadow:0 0 0 3px rgb(173 201 230 / .28); }
.pf-ctl:-webkit-autofill, .pcm input:-webkit-autofill { -webkit-text-fill-color:var(--n25); box-shadow:inset 0 0 0 100px var(--b950); caret-color:var(--n25); }
.pf-sfx span { color:var(--n400); letter-spacing:0; }
@media (hover:hover) and (pointer:fine){
  .pf-ctl:hover:not(:focus), .pcm :is(input, select, textarea):hover:not(:focus) { border-color:var(--n400); }
}

/* 4. Careers role rows. */
.pg-careers .rlist { overflow:hidden; }
.pg-careers .rlist a { transition:background-color var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); -webkit-tap-highlight-color:transparent; }
.pg-careers .rlist .t { transition:color var(--dur-fast) var(--ease-out); }
.pg-careers .rlist .go { display:inline-flex; align-items:center; gap:4px; transition:translate var(--dur-fast) var(--ease-out); }
.pg-careers .rlist a:focus-visible { outline:2px solid var(--ring-on-light); outline-offset:-2px; border-radius:10px; }
.pg-careers .rlist a:active { background:var(--n50); }
.pg-careers .rgroup-head .kicker { font-weight:400; color:var(--n600); }
@media (hover:hover) and (pointer:fine){
  .pg-careers .rlist a:hover { background:var(--n25); box-shadow:inset 3px 0 0 var(--b600); translate:none; }
  .pg-careers .rlist a:hover .go { translate:3px 0; }
}

/* 5. Header nav links: an underline that grows on hover and marks the current page. */
.nav .links a:not(.cta) { position:relative; transition:color var(--dur-fast) var(--ease-out); }
.nav .links a:not(.cta)::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; border-radius:2px; background:currentColor; scale:0 1; transform-origin:left; transition:scale var(--dur-fast) var(--ease-out); }
.nav .links a[aria-current]::after, .nav .links a.on::after { scale:1 1; }
.nav .links a:not(.cta):focus-visible { outline:2px solid var(--ring-on-dark); outline-offset:4px; border-radius:4px; }
@media (hover:hover) and (pointer:fine){
  .nav .links a:not(.cta):not([aria-current]):hover { color:var(--n0); }
  .nav .links a:not(.cta):hover::after { scale:1 1; }
}

/* 6. Chips that act vs tags that only label. */
.pg-careers .perk-pills li { min-height:36px; border-color:transparent; background:var(--n50); color:var(--n800); font-weight:400; font-size:.875rem; padding:0 14px; }
.pg-careers .pill { border-color:transparent; background:var(--n50); color:var(--n700); font:400 .75rem/1 var(--mono); letter-spacing:.16em; text-transform:uppercase; height:26px; padding:0 10px; border-radius:6px; }
.pg-careers .team-chips a { transition:border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); -webkit-tap-highlight-color:transparent; }
.pg-careers .team-chips a:active { scale:.97; }
.pg-careers .team-chips a:focus-visible { outline:2px solid var(--ring-on-light); outline-offset:2px; }
@media (hover:hover) and (pointer:fine){
  .pg-careers .team-chips a:not([aria-current]):hover { border-color:var(--n900); background:var(--n25); }
}

/* 7. Cards: advisor names in the display face; news cards' border and arrow on hover. */
.adv b { font-family:var(--display); letter-spacing:-.01em; }
.adv img { border-radius:10px; }
.adv { align-items:center; }
.news3 .nc .go { display:inline-flex; gap:4px; }
.news3 .nc:focus-visible { outline:2px solid var(--ring-on-light); outline-offset:3px; }
.news3 .nc .src { color:var(--n600); }
@media (hover:hover) and (pointer:fine){
  .news3 .nc:not(.nc-ann):hover { border-color:var(--n400); }
  .news3 .nc:hover .go { translate:3px 0; }
}

/* 8a. "What we cover" rows: a ringed +, hover in brand blue, a focus ring. */
.r5.acc-d .pts2 li { -webkit-tap-highlight-color:transparent; }
.r5.acc-d .pts2 li b::after { display:grid; place-items:center; flex:none; width:32px; height:32px; margin-block:-4px; border-radius:50%; border:1px solid var(--n200); font-size:1.25rem; transition:transform var(--dur-base) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.r5.acc-d .pts2 li.open b::after { background:var(--n25); border-color:var(--n300); }
.r5.acc-d .pts2 li:focus-visible { outline:2px solid var(--ring-on-light); outline-offset:4px; border-radius:6px; }
.r5.acc-d .pts2 li.open span { color:var(--n600); line-height:1.6; }
@media (hover:hover) and (pointer:fine){
  .r5.acc-d .pts2 li:hover b { color:var(--b600); }
  .r5.acc-d .pts2 li:hover b::after { border-color:var(--b600); }
}

/* S6. The in-page estimate form's corners match the pop-up. */
.r8.df .gest .formcard { border-radius:16px; }

/* S5. The announcement banner on the navy surface on every page (the existing rb-mid variant), so no light strip
   touches the dark header. Jacob's switch word to go back: "white banner". */
html.rb-mid:not(#_) .topline { background:var(--b950) !important; border-bottom-color:rgb(209 217 217 / .14) !important; color:var(--n100) !important; }
html.rb-mid:not(#_) .topline a { color:var(--b200) !important; }

/* W11: over a photo (Home stops, Owners hero), the eyebrow and the No CapEx row read at 14 px or more, white near 88%. */
@layer r11 {
@media (min-width:761px){
  html:not(#_):not(#__) :is(.stop .copy, section.plate:first-of-type :is(.first-copy, .copy)) :is(.kicker, .label, .eyebrow) { font-size:14px !important; color:rgba(255,255,255,.88) !important; }
  html:not(#_):not(#__) :is(.stop .copy, section.plate:first-of-type :is(.first-copy, .copy)) :is(.ticks, .ticks li) { font-size:14px !important; color:rgba(255,255,255,.88) !important; }
}
}

/* W12: on a phone the Owners hero headline sets like the Home building stop's (same spacing and measure), so the two
   break on the same words. */
@layer r11 {
@media (max-width:760px){
  html:not(#_):not(#__) section.plate:first-of-type :is(.first-copy, .copy) h1 { letter-spacing:-.02em !important; max-width:425px; }
}
}

/* W12: on a phone this headline breaks the same on Home and Owners, with power and space kept on one line. */
@media (max-width:760px){ .nw-ph { white-space:nowrap; } }

/* W13: on a phone the team chips are one row that scrolls sideways, running to the screen edges, never a lone chip on a second line. */
@media (max-width:760px){
  html .pg-careers .team-chips { flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; margin-inline:-20px; padding-inline:20px; scroll-padding-inline:20px; }
  html .pg-careers .team-chips::-webkit-scrollbar { display:none; }
  html .pg-careers .team-chips li { flex:0 0 auto; }
}
@media (min-width:761px){
  html .gest > img.bg { left:-22%; width:122%; max-width:none; object-position:50% 50%; }
}
@media (min-width:761px){
  html:not(#_):not(#__) .wrap > :is(.head, .pts2, .why-grid, .cul-top, .treat-grid, .rgroups) { max-width:none; }
  html:not(#_):not(#__) :is(.wrap > .head, .r5.acc-d .pts2, .pg-careers .why-grid) { grid-template-columns:minmax(0,5fr) minmax(0,6fr); column-gap:48px; }
}
@media (min-width:2561px){
  html .gest > img.bg { left:-13.28%; width:113.28%; }
}
/* C2-R. Company careers card: the corridor-v3 picture's fire-extinguisher cabinet sits at 91.6-97.0% of the 16:9
   file, so the old 6% zoom from the left cut it at the right edge. With no zoom it sits whole wherever the picture
   is cropped only top and bottom. Between 1101 and 1279 px the 720 px tall card crops the picture's sides, and at
   the 40% position the cabinet lands on the edge; anchored right it sits 39 px or more inside. Below 1101 it falls
   fully outside the card. Measured over 290 viewports by wip/cab-probe.mjs. */
@media (min-width:761px){
  html:not(#_):not(#__) #careers.plate.gcar img.bg { transform:none; }
}
@media (min-width:1101px) and (max-width:1279px){
  html:not(#_):not(#__) #careers.plate.gcar img.bg { object-position:100% 50%; }
}
/* Reduced motion: the hover arrows stay put (the colour and shadow changes still show the hover). */
@media (prefers-reduced-motion:reduce){
  html .pg-careers .rlist a:hover .go, html .news3 .nc:hover .go { translate:none; }
}
