/* /how-it-works (src/atlas/seo/pages/how_we_match.py). The owner-approved mock (final/r4-how-we-match/v5)
   on the site's tokens: sections alternate white and --band-violet-bg, figures are --band-violet-surface plates,
   Iris is --accent / --btn-accent, Mint (--ok) only on "You can work here" / "Shown" chips. Text is --ink or
   --ink-heading, never grey. The type scale is the site's: --fs-h1 title, --fs-h2 section label, the lede, body
   (--fs-lead) and --fs-md for labels. Motion is off without the .mo class (set by the page's module unless the
   visitor prefers reduced motion), so the finished state is what a crawler, a no-script visitor and a
   reduced-motion visitor all see. Dark follows the mock's deep Iris, as variables on .hwm only. */
.hwm {
  --t-title: var(--fs-h1); --t-head: var(--fs-h2); --t-body: var(--fs-lead); --t-label: var(--fs-md);
  --t-lead: clamp(18px, 1.5vw, 21px); --t-p: 18px; --t-sub: 18px;
  --chip: var(--band-violet-chip); --chip-ink: var(--band-violet-chip-ink);
  --sec-a: var(--surface); --sec-b: var(--band-violet-bg);
  --plate: var(--band-violet-surface); --plate-line: var(--band-violet-line);
  --btn: var(--btn-accent); --btn-ink: var(--btn-accent-ink); --btn-hover: var(--btn-accent-hover);
  font-size: var(--t-body); font-weight: 500; line-height: 1.55; color: var(--ink); overflow-x: clip;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hwm {
    --accent: #B297FC; --accent-deep: #D2C2FD; --accent-soft: #3F2D70; --accent-ring: #423173;
    --line-strong: #4A3A80; --line-control: #6A5AA8; --surface: #251946;
    --sec-a: color-mix(in srgb, #251946 55%, #0B1220);
  }
}
:root[data-theme="dark"] .hwm {
  --accent: #B297FC; --accent-deep: #D2C2FD; --accent-soft: #3F2D70; --accent-ring: #423173;
  --line-strong: #4A3A80; --line-control: #6A5AA8; --surface: #251946;
  --sec-a: color-mix(in srgb, #251946 55%, #0B1220);
}
:where(.hwm) a { color: var(--accent-deep); }
:where(.hwm) :is(p, h1, h2, h3, ul, ol, figure) { margin: 0; }
.hwm a:focus-visible, .hwm button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.hwm .cta a:focus-visible { outline-color: #FFFFFF; }
:where(.hwm) :is(ul, ol) { padding: 0; list-style: none; }
.in { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.caps { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.open { padding: 40px 0 36px; text-align: left; background: var(--sec-b); }
:where(.hwm) h1 { font-size: var(--t-title); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; color: var(--ink-heading); }
.stand { max-width: 65ch; margin: 14px 0 0; font-family: inherit; font-size: var(--t-p); font-weight: 500; line-height: 1.55; color: var(--ink); }
.sec { padding: 36px 0; }
.sec:nth-of-type(even) { background: var(--sec-a); }
.sec:nth-of-type(odd) { background: var(--sec-b); }
.sec .in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.sec .copy { padding-top: 12px; }
:where(.hwm) h2 { font-size: var(--t-head); line-height: 1.25; letter-spacing: -.022em; font-weight: 800; color: var(--ink-heading); margin-bottom: 12px; text-wrap: balance; }
.copy p { max-width: 34rem; }
.fig { position: relative; background: var(--plate); border: 1px solid var(--plate-line); border-radius: var(--r-lg); padding: 16px 18px; font-size: var(--t-label); line-height: 1.45; box-shadow: 0 1px 0 var(--plate-line), 0 12px 32px -20px color-mix(in srgb, var(--accent) 45%, transparent); }
.fig__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.fig__h { font-weight: 800; color: var(--ink-heading); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--pill); font-weight: 700; background: var(--chip); color: var(--chip-ink); white-space: nowrap; }
.chip--ok { background: var(--ok); color: var(--ok-ink); }
.chip--line { background: transparent; color: var(--ink); border: 1px solid var(--accent-ring); }
.chip--dash { background: transparent; color: var(--ink); border: 1px dashed var(--accent); }
.chip--solid { background: var(--btn); color: var(--btn-ink); }
.when { font-weight: 700; color: var(--accent-deep); }
.dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.also { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--plate-line); }
.fit { display: grid; gap: 8px; }
.fc { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); background: var(--sec-b); }
.ring { width: 52px; height: 52px; }
.ring circle { fill: none; stroke-width: 5; }
.ring .bg { stroke: var(--accent-ring); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { fill: var(--ink); font-size: var(--t-label); font-weight: 800; font-family: inherit; }
.fc__h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pol { margin-top: 12px; display: grid; gap: 6px; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--plate-line); }
.pol s { text-decoration-color: var(--accent); }
:where(.hwm) mark { background: var(--chip); color: var(--chip-ink); border-radius: 4px; padding: 0 3px; font-weight: 700; }
.ba__tog { display: none; gap: 6px; margin-bottom: 10px; }
.ba__tog button { font: inherit; font-size: var(--t-label); font-weight: 700; min-height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--accent-ring); background: transparent; color: var(--ink); cursor: pointer; }
.ba__tog button[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.ba__grid { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.ba__arr { width: 24px; height: 16px; align-self: center; color: var(--accent); }
.ba__p { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: var(--r-md); }
.ba__p--before { border: 1px dashed var(--accent-ring); }
.ba__p--after { background: var(--sec-b); }
.ba__p--after > div { display: grid; gap: 8px; align-content: start; }
.ba__lab { font-weight: 800; color: var(--ink); }
.ba__lab--after { color: var(--accent-deep); }
.ba .also { margin-top: 10px; padding-top: 10px; }
.pj { padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--plate-line); min-height: 72px; }
.pj b { display: block; }
.ba .fc { background: var(--plate); min-height: 72px; }
@media (max-width: 760px) {
  .ba__tog { display: flex; }
  .ba__grid { grid-template-columns: minmax(0, 1fr); }
  .ba__arr { display: none; }
  .ba[data-show="before"] .ba__p--after, .ba[data-show="after"] .ba__p--before { display: none; }
}
.svgwrap { --mono-0-bg: var(--chip); --mono-1-bg: var(--chip); --mono-2-bg: var(--chip); --mono-4-bg: var(--chip); --mono-0-ink: var(--chip-ink); --mono-1-ink: var(--chip-ink); --mono-2-ink: var(--chip-ink); --mono-4-ink: var(--chip-ink); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.svgwrap svg { display: block; margin: 0 auto; max-width: none; height: auto; }
.svgwrap text { font-family: inherit; font-size: var(--t-label); font-weight: 500; }
.svgwrap .fw7 { font-weight: 700; }
.svgwrap .fw8 { font-weight: 800; }
.svgwrap .caps { letter-spacing: .06em; text-transform: uppercase; }
.t { fill: var(--ink); }
.ta { fill: var(--accent-deep); }
.tok { fill: var(--ok-ink); }
.twarn { fill: var(--warn-ink); }
.b { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.bs { fill: var(--accent-soft); stroke: var(--accent-ring); }
.bok { fill: var(--ok); }
.bwarn { fill: var(--warn); }
.bhl { fill: var(--hl); }
.bacc { fill: var(--accent); }
.bv { fill: var(--band-violet-bg); stroke: var(--accent-ring); }
.bdash { fill: none; stroke: var(--line-control); stroke-dasharray: 4 4; }
.w1 { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.w3 { fill: none; stroke: var(--line-control); stroke-width: 1.4; stroke-dasharray: 3 4; }
.wok { fill: none; stroke: var(--ok-ink); stroke-width: 1.6; }
.rule { stroke: var(--line-strong); stroke-width: 1; }
.fa { fill: var(--accent); }
.mo .rv .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease .25s; }
.mo .rv.is-in .draw { stroke-dashoffset: 0; }
.mo .rv .late { opacity: 0; transition: opacity .5s ease 1.1s; }
.mo .rv.is-in .late { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .mo .rv .draw { stroke-dashoffset: 0; transition: none; }
  .mo .rv .late { opacity: 1; transition: none; }
}
.sh { margin-bottom: 6px; }
.sub { font-size: var(--t-sub); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); margin: 0 0 12px; text-wrap: balance; }
.svgwrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.is-scroll .fig__top::after { content: "Scroll sideways →" / ""; font-size: var(--t-label); font-weight: 700; color: var(--accent-deep); white-space: nowrap; }
.jl { display: grid; grid-template-columns: minmax(0, .8fr) 40px minmax(0, 1.2fr); gap: 14px; align-items: center; }
.jl__all { display: grid; gap: 6px; justify-items: start; padding: 18px; border-radius: var(--r-md); background: var(--sec-b); }
.jl__stack { position: relative; width: 120px; height: 84px; margin-bottom: 6px; }
.jl__stack i { position: absolute; width: 96px; height: 60px; border-radius: 10px; background: var(--plate); border: 2px solid var(--accent-ring); }
.jl__stack i:nth-child(1) { left: 0; top: 24px; }
.jl__stack i:nth-child(2) { left: 12px; top: 12px; }
.jl__stack i:nth-child(3) { left: 24px; top: 0; border-color: var(--accent); }
.jl__big { font-size: var(--t-head); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--ink-heading); }
.jl__all span:last-child { font-size: var(--t-body); }
.jl__arr { width: 40px; height: 24px; color: var(--accent); }
.jl__list { display: grid; gap: 8px; }
.jl__h { font-size: var(--t-body); font-weight: 800; color: var(--ink-heading); }
.chip--out { background: transparent; color: var(--ink); border: 1px dashed var(--accent); }
@media (max-width: 760px) {
  .jl { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .jl__all { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 12px 14px; }
  .jl__stack { grid-row: span 2; width: 72px; height: 52px; margin: 0; }
  .jl__stack i { width: 56px; height: 36px; }
  .jl__stack i:nth-child(1) { top: 16px; }
  .jl__stack i:nth-child(2) { left: 8px; top: 8px; }
  .jl__stack i:nth-child(3) { left: 16px; }
  .jl__arr { transform: rotate(90deg); justify-self: center; height: 20px; }
}
.cta { padding: 44px 0; text-align: center; background: var(--btn); }
.cta h2 { margin-bottom: 20px; color: var(--btn-ink); }
.mo .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.mo .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mo .rv { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 960px) {
  .sec .copy { padding-top: 0; }
  .sec .in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
  .hwm { --t-sub: 17px; --t-p: 17px; }
  .hwm .in { padding-left: 16px; padding-right: 16px; }
  .fit { gap: 6px; }
  .open { padding: 28px 0 28px; }
  .sec, .cta { padding: 24px 0; }
  .sec .in { gap: 14px !important; }
  .fig { padding: 12px 10px !important; }
  .sub { margin-bottom: 8px; }
  .fig__h { font-size: var(--t-label); }
  .sec .in { gap: 18px; }
  .fig { padding: 14px; }
  .fig__top { margin-bottom: 10px; }
  .fc { padding: 8px 10px; gap: 10px; }
  .pol { margin-top: 8px; padding: 10px; }
}
/* Buttons (the site's .xbtn, sized for this page) and the closing band's white one */
:where(.hwm) .xbtn { color: var(--btn-ink); text-decoration: none; }
.open .xbtn { margin-top: 22px; font-size: var(--t-body); min-height: 52px; padding: 0 28px; }
.cta .xbtn { font-size: var(--t-body); min-height: 52px; padding: 0 28px; background: #FFFFFF; color: #3D21B3; }
.cta .xbtn:hover { background: #EFEBFF; }
@media (max-width: 760px) { .hwm .xbtn { padding: 0 14px; } }
/* Figure 02's job cards */
.jc2 { display: grid; gap: 2px; justify-items: start; padding: 10px 14px; border-radius: var(--r-md); background: var(--plate); border: 1px solid var(--plate-line); font-size: var(--t-body); }
.jc2 b { font-size: var(--t-body); }
.jc2 .chip { margin-top: 4px; font-size: var(--t-label); }
.jc2--out { background: transparent; border: 1px dashed var(--accent-ring); }
.jc2--out b, .jc2--out > span:not(.chip) { text-decoration: line-through; text-decoration-color: var(--accent); }

/* FAQ */
.hwmfaq__list { display: grid; gap: 12px; }
.hwmfaq__q { background: var(--plate); border: 1px solid var(--plate-line); border-radius: var(--r-md); padding: 14px 18px; }
.hwmfaq__q h3 { font-size: var(--t-body); font-weight: 800; line-height: 1.35; color: var(--ink-heading); margin: 0 0 4px; }
.hwmfaq__q p { max-width: none; }
/* The breadcrumb strip sits on the same violet as the opening band */
.hwm-body .sx-crumbs { max-width: none; padding: 0 max(24px, calc((100% - 1132px) / 2)) 0; background: var(--band-violet-bg); }
@media (max-width: 760px) { .hwm-body .sx-crumbs { padding: 0 16px 0; } }
/* Visa sponsorship (owner, 2026-11-12): what a posting says, the tag, whether the filter shows it. */
.vs { display: grid; gap: 10px; }
.vs__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 14px; align-items: center; padding: 10px 14px; border-radius: var(--r-md); background: var(--sec-b); font-size: var(--t-body); }
.vs__say { color: var(--ink); }
.vs__out { font-weight: 800; color: var(--ink-heading); min-width: 4.5em; text-align: right; }
@media (max-width: 760px) { .vs__row { grid-template-columns: minmax(0, 1fr) auto; } .vs__say { grid-column: 1 / -1; } }

/* FAQ answers fold (owner, 2026-11-12): native <details>, all closed; the answers stay in the HTML. */
.hwmfaq__q summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; border-radius: var(--r-xs); }
.hwmfaq__q summary::-webkit-details-marker { display: none; }
.hwmfaq__q summary h3 { margin: 0; }
.hwmfaq__q summary::after { content: ""; flex-shrink: 0; width: 9px; height: 9px; border-right: 2px solid var(--ink-heading); border-bottom: 2px solid var(--ink-heading); transform: rotate(45deg); transition: transform .2s ease; }
.hwmfaq__q[open] summary::after { transform: rotate(-135deg); }
.hwmfaq__q summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hwmfaq__q[open] summary { margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .hwmfaq__q summary::after { transition: none; } }

/* ---- R4.1 (owner, 2026-11-14): "How it works", two tabs. The tab row is hidden until how-we-match.js turns the
   two panels into tabs; without it both panels show, one after the other. "Job matching" opens with a four-step
   strip and a Sample match card; "Resume tailoring" with a plain comparison against a general chatbot. ---------- */
.pane[hidden], .tabs[hidden] { display: none; }
.smp__ring { --ring: 52px; --pct: 86; }
.chip--miss { background: transparent; color: var(--ink); border: 1px dashed var(--accent); }   /* a skill the resume lacks; not the sponsor chip */
.bars .w78 { width: 78%; } .bars .w61 { width: 61%; } .bars .w49 { width: 49%; } .bars .w37 { width: 37%; }
.tabs { display: flex; gap: 4px; margin-top: 26px; box-shadow: inset 0 -1px 0 var(--plate-line); }
.tabs button { appearance: none; border: 0; background: transparent; font: inherit; font-size: var(--fs-lead); font-weight: 700; color: var(--ink); padding: 12px 18px; min-height: 48px; cursor: pointer; border-bottom: 3px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--accent-deep); border-bottom-color: var(--btn-accent); }
.glance { padding: 40px 0 44px; background: var(--sec-a); }
.glance h2 { font-size: var(--t-head); }
.glance__lede { max-width: 62ch; margin: -2px 0 22px !important; font-size: var(--t-p); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0 28px !important; }
.steps li { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px 18px 20px; border-radius: var(--r-lg); background: var(--plate); border: 1px solid var(--plate-line); font-size: var(--t-label); }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 22px; font-weight: 800; color: var(--accent-deep); }
.steps b { font-size: var(--fs-lead); color: var(--ink-heading); }
.steps__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-weight: 800; }
.glance__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.glance__copy h3 { font-size: var(--fs-section, 20px); font-weight: 800; color: var(--ink-heading); margin-bottom: 12px; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-deep); font-weight: 800; }
.glance__more { margin-top: 16px !important; font-weight: 600; }
.smp { background: var(--sec-b); border-radius: var(--r-lg); padding: 16px; border: 1px solid var(--plate-line); }
.smp__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: var(--fs-md); font-weight: 600; }
.smp__lab { padding: 2px 10px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent-ink); font-size: var(--fs-sm); font-weight: 800; }
.smp__card { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: var(--fs-md); }
.smp__head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.smp__logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; }
.smp__main { display: grid; gap: 1px; }
.smp__main b { font-size: var(--fs-lead); color: var(--ink-heading); }
.smp__why { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 600; }
.smp__asks, .smp__tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.smp__k { font-weight: 700; margin-right: 4px; }
.smp__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.smp__btn { padding: 8px 14px; border-radius: var(--r-xs); background: var(--btn); color: var(--btn-ink); font-weight: 700; }
.smp__btn--q { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.cmp { display: grid; border: 1px solid var(--plate-line); border-radius: var(--r-lg); overflow: hidden; background: var(--plate); }
.cmp__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.4fr); gap: 0; border-top: 1px solid var(--plate-line); }
.cmp__row > * { padding: 14px 18px; }
.cmp__row > :last-child { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); font-weight: 600; }
.cmp__row--h { border-top: 0; font-weight: 800; color: var(--ink-heading); }
.cmp__row--h > :last-child { color: var(--accent-deep); }
.cmp b { color: var(--ink-heading); }
.bf { display: block; padding: 12px 14px; border-radius: var(--r-md); background: var(--sec-b); margin-top: 8px !important; }
.bf__k { display: block; margin-bottom: 4px; font-weight: 800; color: var(--accent-deep); }
.bf mark { background: var(--ok); color: var(--ok-ink); padding: 0 3px; border-radius: 4px; }
.prof { display: grid; gap: 12px; }
.prof > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.prof b { flex-basis: 100%; color: var(--ink-heading); }
.bars { display: grid; gap: 10px; margin-top: 6px !important; }
.bars li { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: center; font-weight: 700; }
.bars i { display: block; height: 12px; border-radius: 6px; background: var(--btn); }
.ctry { display: flex; flex-wrap: wrap; gap: 8px; }
.sc { display: flex; align-items: center; gap: 22px; padding: 8px 4px; }
.sc span { display: grid; }
.sc b { font-size: var(--fs-h2); color: var(--ink-heading); }
.sc .sc__arrow { font-size: 28px; font-weight: 800; color: var(--accent-deep); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .glance__row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .cmp__row { grid-template-columns: 1fr 1fr; }
  .cmp__row > :first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .cmp__row--h > :first-child { display: none; }
}
@media (max-width: 600px) {
  .steps { gap: 8px; }
  .steps li { grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 14px; }
  .steps__n { grid-row: span 2; }
}
@media (max-width: 480px) {
  .tabs { gap: 0; }
  .tabs button { flex: 1 1 0; padding: 12px 8px; font-size: var(--fs-md); }   /* two tabs fit 320 px */
}
