/* October 20: complete styles for ordinary inquiry, hiring and utility pages.
   This replaces the historical page/unit stacks; shared chrome is rework.css. */
.rw-utility { --utility-ink:#0b2b40; --utility-blue:#1a56db; --utility-muted:#526675; --utility-line:#d4dfe6; --utility-pale:#f2f7fb; }
.rw-utility [hidden] { display:none !important; }
.rw-utility main { overflow-wrap:break-word; }
.rw-utility main :is(h1,h2,h3,h4,p) { margin-top:0; }
.rw-utility main h1 { font-size:clamp(2.2rem,4.4vw,3.7rem); line-height:1.1; letter-spacing:-.045em; font-weight:600; color:var(--utility-ink); }
.rw-utility main h2 { font-size:clamp(1.6rem,2.6vw,2.4rem); line-height:1.2; letter-spacing:-.03em; font-weight:600; }
.rw-utility main h3 { font-size:1.15rem; line-height:1.35; letter-spacing:-.015em; }
.rw-utility main p { line-height:1.65; }
.rw-utility main :is(input,select,textarea,button) { font-family:inherit; }
.rw-utility main :is(input,select,textarea) { font-size:1rem; color:var(--utility-ink); }
.rw-utility main :is(input,select,textarea):focus-visible { outline:3px solid #1a56db66; outline-offset:3px; border-color:var(--utility-blue); }
.rw-utility .zh-kicker,.rw-utility .form-kicker { color:var(--utility-blue); font-size:.75rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.rw-utility .zh-btn-ghost { display:inline-flex; justify-content:center; align-items:center; min-height:46px; padding:.7rem 1rem; border:1px solid var(--utility-line); border-radius:5px; background:white; color:var(--utility-ink); font-size:.9rem; font-weight:600; cursor:pointer; }
.rw-utility .zh-btn-ghost:hover { border-color:var(--utility-blue); color:var(--utility-blue); }
.rw-utility .rw-preview-notice,.rw-utility .prototype-notice { display:block; max-width:69ch; margin:1rem 0 0; padding:.65rem .9rem; border-left:2px solid #96afbf; background:var(--utility-pale); color:var(--utility-muted); font-size:.81rem; line-height:1.6; }
.rw-utility .inquiry-actions { display:flex; flex-wrap:wrap; gap:.8rem 1.4rem; align-items:center; }
.rw-utility .inquiry-actions > * { max-width:100%; }
.rw-utility .preview-tools,.rw-utility .preview-scenario { padding:1rem 0; border-top:1px solid var(--utility-line); color:var(--utility-muted); font-size:.85rem; }
.rw-utility :is(.preview-tools,.preview-scenario) summary { cursor:pointer; font-weight:600; color:var(--utility-muted); }
.rw-utility :is(.preview-tools,.preview-scenario) > label { display:block; margin:1rem 0 .4rem; font-weight:600; }
.rw-utility :is(.preview-tools,.preview-scenario) > p { max-width:68ch; margin:.6rem 0 0; }
.rw-utility :is(.preview-tools,.preview-scenario) select { width:100%; max-width:32rem; min-height:48px; padding:.7rem; border:1px solid #8da4b4; border-radius:4px; background:white; }

/* Fit check: the introduction hands directly into the first choice. */
.rw-inquiry-intro { padding:clamp(2rem,4vw,3.3rem) 0 1.6rem; }
.rw-inquiry-heading h1 { margin-bottom:.8rem; }
.rw-inquiry-heading .rw-lead { max-width:65ch; font-size:1.05rem; margin-bottom:0; }
.rw-fit-section { padding:1rem 0 5rem; scroll-margin-top:6rem; }
.rw-fit-page .application-shell { display:grid; grid-template-columns:minmax(170px,.36fr) minmax(0,1fr); gap:clamp(2rem,5vw,4.5rem); align-items:start; }
.rw-fit-page .progress-wrap { position:sticky; top:7rem; padding-top:.1rem; }
.rw-fit-page .progress-count { font-size:.78rem; font-weight:600; color:var(--utility-blue); margin-bottom:.8rem; }
.rw-fit-page .progress-title { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.rw-fit-page .progress-track { height:3px; background:var(--utility-line); margin:1.2rem 0; }
.rw-fit-page .progress-bar { width:25%; height:100%; background:var(--utility-blue); transition:width .2s; }
.rw-fit-page .progress-help { font-size:.8rem; color:var(--utility-muted); max-width:25ch; }
.rw-fit-page .fit-step-nav { display:grid; gap:.25rem; }
.rw-fit-page .fit-step-nav button { min-height:43px; padding:.65rem .75rem; text-align:left; font-size:.85rem; border:0; border-left:2px solid transparent; border-radius:0; background:transparent; color:var(--utility-muted); cursor:pointer; }
.rw-fit-page .fit-step-nav button[aria-current="step"] { background:var(--utility-pale); border-left-color:var(--utility-blue); color:var(--utility-ink); font-weight:600; }
.rw-fit-page .fit-step-nav button:disabled { cursor:default; color:#687a87; }
.rw-fit-page .fit-step-nav button:not(:disabled):hover { color:var(--utility-blue); }
.rw-fit-page .application-form,.rw-fit-page .fit-fields { min-width:0; margin:0; padding:0; border:0; }
.rw-fit-page .form-step > header { margin-bottom:1.5rem; }
.rw-fit-page .form-step h2 { font-size:1.5rem; margin-bottom:.55rem; }
.rw-fit-page .form-step > header p { font-size:.93rem; color:var(--utility-muted); max-width:61ch; margin-bottom:0; }
.rw-fit-page .form-step .form-kicker { display:none; }
.rw-fit-page .field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.4rem; }
.rw-fit-page .field,.rw-fit-page .field-full { min-width:0; }
.rw-fit-page .field-full { grid-column:1/-1; }
.rw-fit-page :is(.field,.field-full) > label,.rw-fit-page .fieldset-label { display:block; margin:0 0 .55rem; font-size:.88rem; font-weight:600; }
.rw-fit-page .optional { color:var(--utility-muted); font-size:.76rem; font-weight:400; }
.rw-fit-page :is(.field,.field-full) :is(input:not([type="radio"]):not([type="checkbox"]),select,textarea) { display:block; width:100%; min-height:49px; padding:.75rem .85rem; border:1px solid #8da4b4; border-radius:4px; background:white; }
.rw-fit-page :is(.field,.field-full) textarea { min-height:120px; resize:vertical; }
.rw-fit-page .field-help { color:var(--utility-muted); font-size:.8rem; line-height:1.55; margin:.5rem 0 0; }
.rw-fit-page .choice-set { margin:0; padding:0; border:0; min-width:0; }
.rw-fit-page .choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.rw-fit-page .choice-grid.single { grid-template-columns:1fr; }
.rw-fit-page .choice { display:flex; align-items:center; gap:.75rem; min-height:51px; padding:.85rem; border:1px solid #acbdc9; border-radius:4px; background:white; line-height:1.45; cursor:pointer; font-size:.9rem; }
.rw-fit-page .choice:hover { border-color:var(--utility-blue); }
.rw-fit-page .choice:has(input:checked) { border-color:var(--utility-blue); background:#f5f8ff; box-shadow:inset 3px 0 0 var(--utility-blue); }
.rw-fit-page .choice input { width:18px; height:18px; margin:0; flex:0 0 auto; accent-color:var(--utility-blue); }
.rw-fit-page .rw-engagement-choice .choice { align-items:flex-start; padding:.85rem 1rem; }
.rw-fit-page .rw-engagement-choice input { margin-top:.2rem; }
.rw-fit-page .rw-engagement-choice strong { display:block; font-size:.95rem; font-weight:600; }
.rw-fit-page .rw-engagement-choice small { display:block; color:var(--utility-muted); font-size:.82rem; margin-top:.2rem; line-height:1.5; }
.rw-fit-page .fit-commitment-note { margin:.85rem 0 .1rem; max-width:67ch; color:var(--utility-muted); font-size:.8rem; }
.rw-fit-page .checkbox-choice { align-items:flex-start; }
.rw-fit-page .checkbox-choice input { margin-top:.18rem; }
.rw-fit-page .form-actions { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-top:2rem; }
.rw-fit-page .fit-extra { padding-top:.7rem; border-top:1px solid var(--utility-line); }
.rw-fit-page .fit-extra summary { padding:.4rem 0; cursor:pointer; font-size:.85rem; font-weight:600; color:var(--utility-muted); }
.rw-fit-page .fit-extra .field-grid { margin-top:1rem; }
.rw-fit-page .fit-field-error,.rw-fit-page .form-error { color:#a12525; font-size:.85rem; margin:.5rem 0 0; }
.rw-fit-page .form-error { border-left:3px solid #a12525; background:#fff4f4; padding:.8rem 1rem; margin-top:1.3rem; }
.rw-utility [aria-invalid="true"] { border-color:#a12525 !important; }
.rw-fit-page .fit-fields:disabled { opacity:.65; }
.rw-fit-page .fit-fields:disabled button { cursor:wait; }
.rw-fit-page .fit-answer-review { padding-top:1.5rem; margin-top:2rem; border-top:1px solid var(--utility-line); }
.rw-fit-page .fit-answer-review h3 { margin:0; }
.rw-fit-page .fit-answer-review > p { color:var(--utility-muted); font-size:.86rem; }
.rw-fit-page .fit-review-group { padding:.4rem 0 1rem; margin:1rem 0; border-bottom:1px solid var(--utility-line); }
.rw-fit-page .fit-review-group > div:first-child { display:flex; gap:1rem; align-items:center; justify-content:space-between; }
.rw-fit-page .fit-review-group h4 { margin:0; font-size:.95rem; }
.rw-fit-page .fit-review-group button { min-height:40px; padding:.4rem; background:none; border:0; color:var(--utility-blue); text-decoration:underline; font-size:.85rem; cursor:pointer; }
.rw-fit-page .fit-review-group dl { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:.55rem 1.5rem; margin:.6rem 0 0; font-size:.85rem; }
.rw-fit-page .fit-review-group dt { color:var(--utility-muted); }
.rw-fit-page .fit-review-group dd { margin:0; overflow-wrap:anywhere; }
.rw-fit-page .fit-feedback,.rw-fit-page .booking-handoff { padding:1.25rem; border-left:3px solid var(--utility-blue); background:var(--utility-pale); margin:1.5rem 0; }
.rw-fit-page .fit-feedback h3,.rw-fit-page .booking-handoff h3 { margin:0 0 .6rem; }
.rw-fit-page .fit-feedback p { overflow-wrap:anywhere; }
.rw-fit-page .fit-pending { margin-top:1.5rem; padding:1rem; background:var(--utility-pale); }
.rw-fit-page .form-result { grid-column:1/-1; width:100%; max-width:850px; margin:auto; min-width:0; border-top:1px solid var(--utility-line); padding:2rem 0; }
.rw-fit-page .form-result h2 { max-width:24ch; }
.rw-fit-page .form-result > p { max-width:65ch; color:var(--utility-muted); }
.rw-fit-page .form-result .button { white-space:normal; text-align:center; }
.rw-fit-page .inquiry-next { padding-top:1.3rem; border-top:1px solid var(--utility-line); margin:1.5rem 0; }
.rw-fit-page .inquiry-next span { font-size:.83rem; }
.rw-fit-page .example-reference { font-size:.82rem; font-weight:600; }
.rw-fit-page .preview-tools { grid-column:1/-1; margin-top:1.5rem; }

/* Collaborator interest: a form with supporting context, no vacancy claims. */
.rw-hiring-intro { padding-top:clamp(2.5rem,5vw,4.5rem); padding-bottom:2.2rem; }
.rw-hiring-intro h1 { margin-bottom:1rem; }
.rw-hiring-intro .rw-lead { max-width:58ch; }
.rw-hiring-page .hiring-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:clamp(2.5rem,7vw,7rem); padding-top:2.2rem; padding-bottom:5rem; border-top:1px solid var(--utility-line); align-items:start; }
.rw-hiring-page .hiring-panel { min-width:0; padding:clamp(1.3rem,4vw,2.4rem); border:1px solid var(--utility-line); border-radius:8px; }
.rw-hiring-page .hiring-panel h2 { margin:0 0 .6rem; }
.rw-hiring-page .hiring-panel p { color:var(--utility-muted); max-width:44ch; }
.rw-hiring-page .hiring-panel .rw-button { margin-top:.9rem; overflow-wrap:anywhere; }
.rw-hiring-page .hiring-explanation h2 { max-width:17ch; font-size:1.8rem; }
.rw-hiring-page .hiring-explanation > p { color:var(--utility-muted); font-size:.92rem; }
.rw-hiring-page .work-functions { list-style:none; padding:0; margin:1.5rem 0; }
.rw-hiring-page .work-functions li { padding:1.1rem 0; border-top:1px solid var(--utility-line); }
.rw-hiring-page .work-functions strong { display:block; margin-bottom:.35rem; font-size:1rem; font-weight:600; }
.rw-hiring-page .work-functions span { color:var(--utility-muted); font-size:.88rem; line-height:1.6; }

/* Preparation: written checklist first, optional native video afterward. */
.rw-preparation-page .prep-intro { padding:clamp(2.5rem,5vw,4rem) 0 3rem; }
.rw-preparation-page .prep-intro-grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,.85fr); gap:clamp(2rem,6vw,5.5rem); align-items:start; }
.rw-preparation-page h1 { max-width:17ch; margin:.7rem 0 1.1rem; }
.rw-preparation-page .prep-lead { max-width:49ch; color:var(--utility-muted); font-size:1.08rem; }
.rw-preparation-page .inquiry-actions { margin-top:1.5rem; }
.rw-preparation-page .appointment-card { border-left:2px solid #9fb7c7; padding:.3rem 0 .3rem 1.5rem; margin-top:.5rem; }
.rw-preparation-page .appointment-card h2 { font-size:1.4rem; margin-bottom:.8rem; }
.rw-preparation-page .appointment-card p { color:var(--utility-muted); font-size:.88rem; }
.rw-preparation-page .appointment-card p:last-child { margin-bottom:0; }
.rw-preparation-page .appointment-card dl { font-size:.85rem; }
.rw-preparation-page .appointment-card dt { color:var(--utility-muted); margin-top:.7rem; }
.rw-preparation-page .appointment-card dd { margin:0; font-weight:600; }
.rw-preparation-page .prep-section { padding:clamp(2.5rem,5vw,4.5rem) 0; scroll-margin-top:6rem; }
.rw-preparation-page #prepare { padding-top:1.5rem; }
.rw-preparation-page .prep-reading-grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(2rem,6vw,5.5rem); }
.rw-preparation-page .prep-reading-grid h2 { max-width:20ch; }
.rw-preparation-page .prep-reading-grid > div > p:not(.zh-kicker) { max-width:46ch; font-size:.95rem; color:var(--utility-muted); }
.rw-preparation-page .prep-checklist { list-style:none; counter-reset:prepare; padding:0; margin:0; }
.rw-preparation-page .prep-checklist li { counter-increment:prepare; position:relative; padding:0 0 1.2rem 2.7rem; margin-bottom:1.2rem; border-bottom:1px solid var(--utility-line); }
.rw-preparation-page .prep-checklist li:last-child { margin-bottom:0; }
.rw-preparation-page .prep-checklist li::before { content:counter(prepare,decimal-leading-zero); position:absolute; top:.1rem; left:0; color:var(--utility-blue); font-size:.8rem; font-weight:600; }
.rw-preparation-page .prep-checklist h3 { margin:0 0 .45rem; font-size:1.06rem; }
.rw-preparation-page .prep-checklist p { color:var(--utility-muted); font-size:.92rem; margin:0; }
.rw-preparation-page .prep-video-section { padding:clamp(2.5rem,5vw,4rem) 0; background:var(--utility-pale); scroll-margin-top:6rem; }
.rw-preparation-page .prep-video-shell { max-width:1100px; }
.rw-preparation-page .prep-section-heading { display:flex; flex-wrap:wrap; gap:1rem 2rem; align-items:end; justify-content:space-between; margin-bottom:1.5rem; }
.rw-preparation-page .prep-section-heading h2 { margin-bottom:0; }
.rw-preparation-page .prep-section-heading > p { color:var(--utility-muted); font-size:.8rem; margin-bottom:.2rem; }
.rw-preparation-page .prep-player { background:var(--utility-ink); aspect-ratio:16/9; overflow:hidden; border-radius:6px; }
.rw-preparation-page .prep-player video { display:block; width:100%; height:100%; object-fit:contain; }
.rw-preparation-page .prep-video-help { color:var(--utility-muted); font-size:.82rem; margin:.85rem 0 1rem; }
.rw-preparation-page .prep-video-error { padding:1rem; margin-top:1rem; background:white; border-left:3px solid var(--utility-blue); }
.rw-preparation-page .prep-chapters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.3rem 1.25rem; }
.rw-preparation-page .prep-chapters a { display:flex; gap:.6rem; align-items:baseline; padding:.75rem 0; border-bottom:1px solid var(--utility-line); text-decoration:none; font-size:.84rem; }
.rw-preparation-page .prep-chapters a:hover span { text-decoration:underline; }
.rw-preparation-page .prep-chapters time { font-variant-numeric:tabular-nums; font-size:.77rem; color:var(--utility-muted); }
.rw-preparation-page .prep-transcript { margin-top:1.5rem; padding:1.1rem 1.25rem; border:1px solid var(--utility-line); border-radius:4px; background:white; }
.rw-preparation-page .prep-transcript summary { cursor:pointer; font-weight:600; font-size:.92rem; }
.rw-preparation-page .prep-transcript h3 { margin:1.5rem 0 .5rem; scroll-margin-top:7rem; }
.rw-preparation-page .prep-transcript p { max-width:78ch; font-size:.94rem; color:var(--utility-muted); }
.rw-preparation-page .prep-outcome-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2.5rem; margin-top:2rem; }
.rw-preparation-page .prep-outcome-grid article { padding-top:1.2rem; border-top:1px solid var(--utility-line); }
.rw-preparation-page .prep-outcome-grid p { color:var(--utility-muted); font-size:.92rem; }
.rw-preparation-page .prep-reference { padding-top:1rem; }
.rw-preparation-page .prep-reference-links > a { display:flex; flex-direction:column; gap:.35rem; padding:1rem 0; border-bottom:1px solid var(--utility-line); text-decoration:none; }
.rw-preparation-page .prep-reference-links > a span { color:var(--utility-muted); font-size:.88rem; }
.rw-preparation-page .prep-reference-links > a:hover strong { text-decoration:underline; }
.rw-preparation-page .prep-reference-links > p { font-size:.85rem; color:var(--utility-muted); margin-top:1.4rem; }
.rw-preparation-page .prep-preview-tools { margin-bottom:3rem; }

/* Legal reading is a simple column, with no sales presentation around it. */
.rw-legal-width { max-width:820px; }
.rw-legal-intro { padding:clamp(2.5rem,5vw,4.5rem) 0 2rem; }
.rw-legal-intro h1 { max-width:20ch; margin-bottom:1rem; }
.rw-legal-intro .rw-lead { font-size:1.08rem; }
.rw-legal-section { padding:1.7rem 0; }
.rw-legal-section .rw-wrap { border-top:1px solid var(--utility-line); padding-top:1.7rem; }
.rw-legal-section h2 { font-size:1.4rem !important; margin-bottom:1rem; }
.rw-legal-section .zh-prose p { font-size:1rem; color:var(--utility-muted); line-height:1.8; }
.rw-legal-section .zh-prose p:last-child { margin-bottom:0; }
.rw-legal-close { display:flex; flex-wrap:wrap; gap:1.5rem; padding-top:1.3rem; padding-bottom:4rem; }
.rw-missing { padding-top:clamp(4rem,10vw,8rem); padding-bottom:clamp(4rem,10vw,8rem); }
.rw-missing h1 { margin-bottom:1.2rem; }
.rw-missing .rw-lead { max-width:48ch; }
.rw-missing .rw-actions { margin-top:1.7rem; }
.rw-missing-contact { font-size:.88rem; color:var(--utility-muted); margin-top:2.5rem !important; }

@media(max-width:900px) {
  .rw-fit-page .application-shell { grid-template-columns:1fr; gap:1.4rem; }
  .rw-fit-page .progress-wrap { position:static; }
  .rw-fit-page .progress-count { margin-bottom:.4rem; }
  .rw-fit-page .fit-step-nav { display:flex; gap:.25rem; }
  .rw-fit-page .fit-step-nav button { flex:1; padding:.45rem .4rem; font-size:.74rem; min-height:45px; border-left:0; border-bottom:2px solid transparent; }
  .rw-fit-page .fit-step-nav button[aria-current="step"] { border-bottom-color:var(--utility-blue); }
  .rw-fit-page .progress-track { margin:.65rem 0; }
  .rw-fit-page .progress-help { max-width:none; font-size:.76rem; margin:0; }
  .rw-hiring-page .hiring-layout { grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:2rem; }
  .rw-preparation-page .prep-intro-grid { gap:2rem; }
}
@media(max-width:700px) {
  .rw-utility main h1 { font-size:clamp(2rem,7.7vw,2.8rem); }
  .rw-inquiry-intro { padding:1.7rem 0 1rem; }
  .rw-inquiry-heading .rw-lead { font-size:.97rem; line-height:1.6; }
  .rw-fit-section { padding-top:.6rem; }
  .rw-fit-page .field-grid,.rw-fit-page .choice-grid { grid-template-columns:1fr; }
  .rw-fit-page .field-grid { gap:1.2rem; }
  .rw-fit-page .form-step h2 { font-size:1.35rem; }
  .rw-fit-page .form-step > header { margin-bottom:1rem; }
  .rw-fit-page .rw-engagement-choice .choice { padding:.8rem; }
  .rw-fit-page .form-result { padding-top:1.4rem; }
  .rw-hiring-page .hiring-layout { grid-template-columns:1fr; gap:3rem; }
  .rw-hiring-page .hiring-explanation h2 { max-width:none; }
  .rw-hiring-intro { padding-top:2rem; }
  .rw-preparation-page .prep-intro-grid,.rw-preparation-page .prep-reading-grid,.rw-preparation-page .prep-outcome-grid { grid-template-columns:1fr; gap:1.7rem; }
  .rw-preparation-page h1 { max-width:18ch; }
  .rw-preparation-page .prep-intro { padding-top:2rem; padding-bottom:1.5rem; }
  .rw-preparation-page .appointment-card { margin-top:0; padding-left:1rem; }
  .rw-preparation-page .prep-reading-grid h2 { max-width:none; }
  .rw-preparation-page .prep-outcome-grid { margin-top:1.5rem; gap:1rem; }
  .rw-preparation-page .prep-chapters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rw-legal-section { padding:.8rem 0; }
  .rw-legal-section .zh-prose p { font-size:.96rem; }
}
@media(max-width:420px) {
  .rw-fit-page .fit-review-group dl { grid-template-columns:1fr; gap:.15rem; }
  .rw-fit-page .fit-review-group dd { margin-bottom:.65rem; }
  .rw-fit-page .fit-step-nav button { font-size:.75rem; }
  .rw-preparation-page .prep-chapters { grid-template-columns:1fr; }
  .rw-preparation-page .prep-checklist li { padding-left:2.2rem; }
}
@media(prefers-reduced-motion:reduce) {
  .rw-fit-page .progress-bar { transition:none; }
}
