/* ============================================================================
   careers.css: everything on the careers pages that is not in shared.css.
   ----------------------------------------------------------------------------
   Holds, in order: the conversion archetype override (per shared.css, it lives
   in the page layer, not in the design system file); .wrap; the site header,
   footer, skip link, focus and button rules, copied verbatim from the
   partnership page (d88ecd6) per design system D-30; the careers components;
   responsive rules; the partnership page's 1023px header block, verbatim; and
   reduced motion.
   shared.css (issued 2026-11-04) lacks --color-on-brand-muted and
   --color-border-on-brand, so this file uses the literals rgba(255,255,255,.82)
   and rgba(255,255,255,.14) for them, as the partnership page does. Swap them
   for the tokens when shared.css is reissued, in both repos together.
   ========================================================================== */

/* ==== CONVERSION ARCHETYPE OVERRIDE =================================== */
:root { --space-xs:8px; --space-sm:16px; --space-md:24px; --space-lg:48px; --space-xl:80px; --radius-md:16px; }
h1 { font-size:var(--text-3xl); }

.wrap { max-width:var(--max-width); margin-inline:auto; padding-inline:var(--gutter); }

/* ==== SITE CHROME, verbatim from the partnership page (d88ecd6) ========= */
.skip-link {
  position:absolute; left:var(--space-sm); top:-60px; z-index:60;
  background:var(--color-action); color:var(--color-on-action);
  padding:var(--space-xs) var(--space-sm); border-radius:var(--radius-sm);
  text-decoration:none; transition:top var(--transition-base);
}
.skip-link:focus { top:var(--space-sm); color:var(--color-on-action); }
:focus-visible { outline:3px solid var(--color-link); outline-offset:3px; border-radius:2px; }
.on-brand :focus-visible { outline-color:var(--color-brand-accent); }

/* --- Buttons --- */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:48px; padding:0 var(--space-md);
  border:2px solid transparent; border-radius:var(--radius-pill);
  font-family:var(--font-body); font-size:var(--text-base);
  font-weight:var(--weight-semibold); text-decoration:none; cursor:pointer;
  transition:background var(--transition-base), color var(--transition-base);
}
.btn--primary { background:var(--color-action); color:var(--color-on-action); }
.btn--primary:hover { background:var(--color-action-hover); color:var(--color-on-action); }
.btn--secondary { background:transparent; color:var(--color-link); border-color:currentColor; }
.btn--secondary:hover { background:var(--color-link); color:var(--color-on-action); border-color:var(--color-link); }
.on-brand .btn--primary { background:var(--color-on-brand); color:var(--color-brand-primary); }
.on-brand .btn--primary:hover { background:var(--color-brand-accent); color:var(--color-brand-primary); }
.btn-row { display:flex; flex-wrap:wrap; gap:var(--space-sm); }

/* --- Site header (Pass 42, D-30): mimics tapnetwork.ca, built from tokens. Sticky; slides away on scroll down,
   returns on scroll up (script at the end of <body>). Menus open on click, as on the live site. --- */
.site-head { position:sticky; top:0; z-index:50; transition:transform var(--transition-base); }
.site-head.is-hidden { transform:translateY(-100%); }
.site-head__inner { display:flex; align-items:center; justify-content:space-between; gap:var(--space-md); padding-block:var(--space-sm); position:relative; }
.site-head__logo { flex:none; display:block; }
/* tap-logo-dark.png carries 270px of empty space each side of its 600px height (design system, Logos): the offset puts the
   visible mark on the column edge. That space is not clear space against an element; the gutter is not an element. */
.site-head__logo img, .site-foot__logo img { display:block; height:var(--space-xl); width:auto; margin-left:calc(var(--space-xl) * -.45); }
.site-head__toggle { display:none; }
.site-head__menu { display:flex; flex-direction:column; align-items:flex-end; gap:var(--space-xs); }
.site-util { list-style:none; margin:0; padding:0; display:flex; align-items:center; gap:var(--space-md); }
.site-util a { font-size:var(--text-sm); text-decoration:none; }
.site-util__link { color:var(--color-brand-accent); font-weight:var(--weight-regular); }
.site-util__link:hover { text-decoration:underline; }
.site-util__join { display:inline-flex; align-items:center; min-height:40px; padding:0 var(--space-sm); border-radius:var(--radius-pill); background:var(--color-brand-purple); font-weight:var(--weight-bold); transition:background var(--transition-base); }
.on-brand .site-util__join { color:var(--color-brand-primary); }
.on-brand .site-util__join:hover { background:var(--color-brand-accent); color:var(--color-brand-primary); }
.site-nav__list { list-style:none; margin:0; padding:0; display:flex; align-items:center; }
.site-nav__item { position:relative; }
.site-nav__top { display:inline-flex; align-items:center; gap:var(--space-xs); padding:var(--space-xs); background:none; border:0; border-radius:var(--radius-sm); font-family:var(--font-body); font-size:var(--text-sm); font-weight:var(--weight-bold); line-height:var(--leading-snug); text-decoration:none; cursor:pointer; white-space:nowrap; }
.on-brand .site-nav__top { color:var(--color-on-brand); }
a.site-nav__top:hover, .site-nav__top[aria-expanded="true"] { text-decoration:underline; text-underline-offset:4px; }
.site-nav__top[aria-expanded]::after { content:""; width:6px; height:6px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:translateY(-2px) rotate(45deg); transition:transform var(--transition-fast); }
.site-nav__top[aria-expanded="true"]::after { transform:translateY(2px) rotate(-135deg); }
.site-nav__panel { display:none; position:absolute; top:100%; left:0; z-index:5; list-style:none; margin:var(--space-xs) 0 0; padding:var(--space-xs) 0; width:max-content; max-width:22rem; background:var(--color-surface); border-radius:var(--radius-md); box-shadow:var(--shadow-raised); }
.site-nav__item:nth-last-child(-n+2) .site-nav__panel { left:auto; right:0; }
.site-nav__top[aria-expanded="true"] + .site-nav__panel { display:block; }
.site-nav__panel ul { list-style:none; margin:0; padding:0; }
.site-nav__panel a { display:block; padding:var(--space-xs) var(--space-sm); font-size:var(--text-sm); font-weight:var(--weight-bold); text-decoration:none; }
.on-brand .site-nav__panel a { color:var(--color-brand-primary); }
.site-nav__panel a:hover { background:var(--color-surface-alt); text-decoration:underline; }
.site-nav__panel a[aria-current] { text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; }
.site-nav__subhead { display:block; padding:var(--space-sm) var(--space-sm) var(--space-xs); font-size:var(--text-xs); font-weight:var(--weight-bold); letter-spacing:.08em; text-transform:uppercase; color:var(--color-brand-primary); }
.site-nav__group ul a { padding-left:var(--space-lg); }
/* Focus inside the white panel: the on-navy cyan ring would be 1.76:1 on white, so the panel uses the light-surface ring. */
.on-brand .site-nav__panel :focus-visible { outline-color:var(--color-link); outline-offset:-3px; }

/* --- Site footer (Pass 42, D-30) --- */
.site-foot__main { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:var(--space-lg); padding-block:var(--space-xl); border-top:1px solid rgba(255,255,255,.14); }
.site-foot h2 { font-size:var(--text-xl); }
.site-foot__logo { display:inline-block; }
/* Clear space of half the circle (40px at an 80px logo) below the footer logo: the nearest token above it is 48px. */
.site-foot__copy { margin-top:var(--space-lg); font-size:var(--text-xs); color:rgba(255,255,255,.82); }
.site-foot__contact p { margin-top:var(--space-sm); font-size:var(--text-sm); color:rgba(255,255,255,.82); }
.site-foot__main a:not(.btn) { color:var(--color-on-brand); text-decoration:none; }
.site-foot__main a:not(.btn):hover { color:var(--color-brand-accent); text-decoration:underline; }
.site-foot__contact p a { text-decoration:underline; }
.site-foot__social { list-style:none; margin:var(--space-md) 0 0; padding:0; display:flex; gap:var(--space-xs); }
.site-foot__social a { display:inline-flex; align-items:center; justify-content:center; width:var(--space-lg); height:var(--space-lg); }
.site-foot__social svg { width:var(--space-md); height:var(--space-md); fill:currentColor; }
.site-foot__nav ul { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr; gap:var(--space-xs) var(--space-lg); }
.site-foot__nav a { font-size:var(--text-base); }

/* ==== CAREERS COMPONENTS ================================================= */

/* Label: design system label style. Navy on white, bright cyan on navy. */
.label { font-size:var(--text-xs); font-weight:var(--weight-bold); letter-spacing:.08em; text-transform:uppercase; line-height:var(--leading-snug); color:var(--color-brand-primary); }
.on-brand .label { color:var(--color-brand-accent); }

/* --- Hero on navy, with discs bleeding off the edge (design system Motif: circles and dots) --- */
.c-hero { position:relative; overflow:hidden; }
.c-disc { position:absolute; border-radius:50%; pointer-events:none; }
/* Discs bleed off the right edge only: the header and footer are navy too, so a disc cut at a top or bottom edge would show a flat line. */
.c-disc--cyan { width:520px; height:520px; right:-260px; top:var(--space-lg); background:var(--color-brand-accent); }
.c-disc--peach { width:150px; height:150px; right:200px; top:440px; background:var(--color-brand-peach); }
.c-hero__inner { position:relative; padding-block:var(--space-xl); }
.c-hero__words { max-width:760px; }
.c-back { display:inline-block; margin-bottom:var(--space-md); font-size:var(--text-sm); font-weight:var(--weight-bold); }
.c-hero h1 { margin-top:var(--space-sm); font-size:clamp(2.25rem, 5.4vw - .5rem, var(--text-3xl)); max-width:18ch; text-wrap:balance; }
.c-hero__lead { margin-top:var(--space-md); font-size:var(--text-md); color:rgba(255,255,255,.82); max-width:58ch; }
.c-pills { list-style:none; margin:var(--space-md) 0 0; padding:0; display:flex; flex-wrap:wrap; gap:var(--space-xs); }
.c-pills li { display:inline-flex; align-items:center; min-height:36px; padding:0 var(--space-sm); border:1px solid rgba(255,255,255,.14); border-radius:var(--radius-pill); font-size:var(--text-sm); font-weight:var(--weight-bold); }
.c-hero .btn-row { margin-top:var(--space-lg); align-items:center; gap:var(--space-sm) var(--space-md); }
.c-note { font-size:var(--text-sm); color:rgba(255,255,255,.82); }
/* StatBlock: up to three public figures from Canon, bright cyan on navy. */
.c-stats { list-style:none; margin:var(--space-lg) 0 0; padding:var(--space-md) 0 0; border-top:1px solid rgba(255,255,255,.14); display:flex; flex-wrap:wrap; gap:var(--space-md) 56px; }
.c-stats__fig { display:block; font-family:var(--font-display); font-weight:var(--weight-display); font-size:clamp(2.5rem, 6vw, 3.25rem); line-height:1; color:var(--color-brand-accent); }
.c-stats__cap { display:block; margin-top:6px; font-size:var(--text-sm); color:rgba(255,255,255,.82); max-width:22ch; }

/* --- Sections --- */
.section { padding-block:var(--space-xl); }
.section--alt { background:var(--color-surface-alt); }
.section--alt a:not(.btn) { color:var(--color-link-on-tint); }
.c-grid { display:grid; grid-template-columns:minmax(0,4fr) minmax(0,8fr); gap:var(--space-md) var(--space-xl); }
.c-grid > h2 { max-width:16ch; }
.prose p { max-width:66ch; }
.prose > * + * { margin-top:18px; }
.prose > .c-panel, .prose > .c-facts { margin-top:var(--space-md); }
.prose .lead { font-size:var(--text-md); color:var(--color-brand-primary); }
.prose strong { color:var(--color-brand-primary); }

/* Numbered circles (design system Motif). Six items, so this is the motif, not the FindingsList component (five at most). */
.c-owns { list-style:none; margin:var(--space-xs) 0 0; padding:0; counter-reset:item; display:grid; gap:28px; }
.c-owns li { counter-increment:item; display:grid; grid-template-columns:44px minmax(0,1fr); gap:var(--space-sm); align-items:start; }
.c-owns li::before { content:counter(item); display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:var(--color-brand-primary); color:var(--color-on-brand); font-family:var(--font-display); font-size:var(--text-lg); line-height:1; }
.c-owns h3 { font-family:var(--font-display); font-weight:var(--weight-display); font-size:var(--text-lg); padding-top:4px; }
.c-owns p { margin-top:4px; max-width:62ch; }

/* Plain list with navy dots (Section, tap-list) */
.c-list { list-style:none; margin:0; padding:0; }
.c-list li { position:relative; padding-left:var(--space-md); max-width:64ch; }
.c-list li + li { margin-top:10px; }
.c-list li::before { content:""; position:absolute; left:4px; top:.62em; width:8px; height:8px; border-radius:50%; background:var(--color-brand-primary); }

/* Tint panel: navy, text or muted text only. Links use --color-link-on-tint. */
.c-panel { background:var(--color-brand-tint); border-radius:var(--radius-md); padding:var(--space-md) 28px; }
.c-panel .label { margin-bottom:12px; }
.c-panel a { color:var(--color-link-on-tint); }

/* Role facts */
.c-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 32px; margin:0; background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-md); padding:var(--space-xs) 28px; }
.c-fact { padding-block:18px; border-bottom:1px solid var(--color-border); }
.c-fact:nth-last-child(-n+2) { border-bottom:0; }
.c-fact dt { font-size:var(--text-xs); font-weight:var(--weight-bold); letter-spacing:.08em; text-transform:uppercase; color:var(--color-text-muted); }
.c-fact dd { margin:4px 0 0; font-family:var(--font-display); font-size:var(--text-lg); line-height:var(--leading-snug); color:var(--color-brand-primary); }
.c-fact dd small { display:block; margin-top:2px; font-family:var(--font-body); font-size:var(--text-sm); color:var(--color-text-muted); }

/* --- Open positions (careers index) --- */
.c-count { margin-top:var(--space-sm); color:var(--color-text-muted); }
.c-roles { list-style:none; margin:var(--space-lg) 0 0; padding:0; display:grid; gap:var(--space-md); }
.c-role { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:var(--space-sm) var(--space-lg); align-items:center; background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-md); padding:var(--space-md) 28px; transition:border-color var(--transition-base); }
.c-role:hover { border-color:var(--color-brand-primary); }
.c-role h3 { font-family:var(--font-display); font-weight:var(--weight-display); font-size:var(--text-lg); }
.c-role h3 a { color:var(--color-brand-primary); text-decoration:none; }
/* The title link covers the card, so the whole card is one target with one accessible name. */
.c-role h3 a::after { content:""; position:absolute; inset:0; border-radius:var(--radius-md); }
.c-role h3 a:focus-visible { outline:none; }
.c-role h3 a:focus-visible::after { outline:3px solid var(--color-link); outline-offset:3px; }
.c-role__meta { list-style:none; margin:var(--space-xs) 0 0; padding:0; display:flex; flex-wrap:wrap; gap:var(--space-xs); }
.c-role__meta li { border:1px solid var(--color-border); border-radius:var(--radius-pill); padding:4px 12px; font-size:var(--text-sm); font-weight:var(--weight-bold); color:var(--color-brand-primary); }
.c-role__close { margin-top:var(--space-xs); font-size:var(--text-sm); color:var(--color-text-muted); }
.c-role__go { font-size:var(--text-sm); font-weight:var(--weight-bold); color:var(--color-link); white-space:nowrap; }
.c-role:hover .c-role__go { text-decoration:underline; }
.c-ask { margin-top:var(--space-lg); color:var(--color-text-muted); }

/* --- Close on navy, with the CEO's note --- */
.c-close { position:relative; overflow:hidden; padding-block:var(--space-xl); }
.c-close .c-disc--cyan { width:380px; height:380px; right:-190px; top:auto; bottom:var(--space-lg); }
.c-close__inner { position:relative; }
.c-close h2 { margin-top:12px; }
.c-close p { margin-top:20px; max-width:60ch; color:rgba(255,255,255,.82); }
.c-close .btn-row { margin-top:32px; }
.c-close .c-sig { margin-top:40px; display:grid; gap:2px; }
.c-sig strong { color:var(--color-on-brand); }
.c-sig span { color:rgba(255,255,255,.82); }
.c-close .c-deadline { margin-top:28px; color:var(--color-brand-accent); font-weight:var(--weight-bold); }

/* ==== RESPONSIVE ========================================================= */
/* Between 860 and 1100 the hero copy runs wider than the space left of the discs: smaller cyan disc, no peach. */
@media (max-width:1100px) {
  .c-disc--cyan { width:400px; height:400px; right:-280px; }
  .c-disc--peach { display:none; }
}
@media (max-width:860px) {
  :root { --text-xl:1.875rem; --space-xl:56px; }
  .c-grid { grid-template-columns:1fr; gap:20px; }
  .c-disc--cyan { width:240px; height:240px; right:-195px; top:var(--space-md); }
  .c-close .c-disc--cyan { width:240px; height:240px; right:-150px; }
  .c-disc--peach { display:none; }
  .c-role { grid-template-columns:1fr; }
  .site-foot__main { grid-template-columns:1fr; gap:var(--space-lg); padding-block:var(--space-lg); }
  .site-foot__nav { order:-2; }
  .site-foot__contact { order:-1; }
  .site-foot__nav ul { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
  .c-facts { grid-template-columns:1fr; }
  .c-fact:nth-last-child(2) { border-bottom:1px solid var(--color-border); }
  .c-stats { gap:var(--space-md) 32px; }
  /* On phones the close runs full width, so its disc would sit under the deadline line. */
  .c-close .c-disc--cyan { display:none; }
}

/* ==== SITE HEADER BELOW 1024, verbatim from the partnership page (d88ecd6) */
@media (max-width:1023px) {
  .site-head__toggle { display:inline-flex; align-items:center; min-height:40px; padding:0 var(--space-sm); background:none; border:2px solid currentColor; border-radius:var(--radius-pill); color:var(--color-on-brand); font-family:var(--font-body); font-size:var(--text-sm); font-weight:var(--weight-bold); cursor:pointer; }
  .site-head__menu { display:none; position:absolute; top:100%; left:0; right:0; max-height:80vh; overflow-y:auto; padding:var(--space-sm) var(--gutter) var(--space-md); background:var(--color-surface-brand); border-top:1px solid rgba(255,255,255,.14); align-items:stretch; }
  .site-head__toggle[aria-expanded="true"] + .site-head__menu { display:flex; }
  .site-util { order:2; flex-wrap:wrap; margin-top:var(--space-sm); }
  .site-nav__list { flex-direction:column; align-items:stretch; }
  .site-nav__top { width:100%; justify-content:space-between; padding-block:var(--space-sm); }
  .site-nav__panel { position:static; width:auto; max-width:none; margin:0 0 var(--space-xs); padding:0 0 var(--space-xs) var(--space-sm); background:none; border-radius:0; box-shadow:none; }
  .on-brand .site-nav__panel a { color:var(--color-on-brand); font-weight:var(--weight-regular); }
  .site-nav__panel a:hover { background:none; }
  .site-nav__subhead { color:rgba(255,255,255,.82); }
  .on-brand .site-nav__panel :focus-visible { outline-color:var(--color-brand-accent); outline-offset:3px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { transition-duration:.01ms !important; animation-duration:.01ms !important; }
}
