/* IHCA Work With Us — scoped to .ihca-wwu so the theme is left alone */

.ihca-wwu {
	--ink: #16233a;
	--ink-soft: #4a5a72;
	--paper: #ffffff;
	--wash: #eef2f6;
	--line: #c9d3df;
	--blue: #2b579a;
	--blue-deep: #1c3d70;
	--blue-tint: #e3ebf6;
	--amber: #e7a33e;
	--amber-tint: #fcf1de;
	--err: #b42318;
	--err-tint: #fdecea;
	--ok: #1f7a4d;
	--radius: 6px;
	--font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	font-family: var(--font);
	font-size: 17px;
	line-height: 1.55;
	color: var(--ink);
	max-width: 960px;
	margin: 0 auto;
}
/* Beat block-theme "constrained" content widths so the page gets its full 960px. */
.ihca-wwu.ihca-wwu { max-width: 960px; width: 100%; margin-left: auto; margin-right: auto;
	padding: 0 20px 64px;
	box-sizing: border-box;
}
.ihca-wwu *, .ihca-wwu *::before, .ihca-wwu *::after { box-sizing: inherit; }
.ihca-wwu [hidden] { display: none !important; }
.ihca-wwu h1, .ihca-wwu h2, .ihca-wwu h3, .ihca-wwu h4 { font-family: var(--font); color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.ihca-wwu p { margin: 0 0 0.8em; }
.ihca-wwu a:not(.wwu-btn) { color: var(--blue); text-underline-offset: 2px; }
.ihca-wwu a:not(.wwu-btn):hover { color: var(--blue-deep); }
.ihca-wwu :focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ------------------------------------------------------------ hero */

.wwu-hero { padding: 56px 0 40px; max-width: 680px; }
.wwu-agency { font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.wwu-hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; line-height: 1.05; margin-bottom: 16px; }
.wwu-lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.wwu-facts { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 10px; }
.wwu-facts li { padding-left: 20px; position: relative; }
.wwu-facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* ------------------------------------------------------------ buttons */

/* Buttons use the theme's own button style (see Settings > Button CSS classes).
   Only layout is set here; colours, fonts, borders and radius come from the theme. */
.ihca-wwu .wwu-btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ihca-wwu a.wwu-btn, .ihca-wwu a.wwu-btn:hover { text-decoration: none; }
.ihca-wwu .wwu-btn:disabled { opacity: .6; cursor: wait; }
.ihca-wwu .wwu-link {
	background: none; border: 0; padding: 4px 0; margin: 0;
	font: 500 0.95rem var(--font); color: var(--blue);
	text-decoration: underline; text-underline-offset: 2px; cursor: pointer; box-shadow: none;
}
.ihca-wwu .wwu-link:hover { color: var(--blue-deep); background: none; }

/* ------------------------------------------------------------ how it works */

.wwu-how { padding: 32px 0 48px; border-top: 1px solid var(--line); }
.wwu-how h2, .wwu-packet-head h2, .wwu-hired h2, .wwu-contact h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 20px; }
.wwu-steps-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.wwu-steps-list li { counter-increment: step; position: relative; padding-top: 48px; }
.wwu-steps-list li::before {
	content: counter(step); position: absolute; top: 0; left: 0;
	width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center;
	font-weight: 800; color: var(--blue-deep); background: var(--blue-tint);
}
.wwu-steps-list li:not(:last-child)::after {
	content: ""; position: absolute; top: 18px; left: 44px; right: -16px; height: 2px; background: var(--line);
}
.wwu-steps-list h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.wwu-steps-list p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ------------------------------------------------------------ packet: tabs */

.wwu-packet { background: var(--wash); margin: 0 -20px; padding: 40px 20px 48px; border-radius: 12px; scroll-margin-top: 24px; }
.wwu-packet-head { max-width: 680px; margin-bottom: 20px; }
.wwu-packet-head h2 { margin-bottom: 8px; }
.wwu-packet-head p { color: var(--ink-soft); }
.wwu-restored { background: var(--amber-tint); border-left: 4px solid var(--amber); padding: 10px 14px; border-radius: 4px; color: var(--ink) !important; }

.wwu-tabs { scroll-margin-top: 16px; }
.wwu-tabs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.wwu-tabs li { flex: 1; min-width: 0; }
.ihca-wwu .wwu-tab {
	width: 100%; display: flex; align-items: center; gap: 10px;
	padding: 12px 14px; min-height: 52px;
	background: #dfe6ee; color: var(--ink-soft);
	border: 0; border-radius: 8px 8px 0 0;
	font: 700 0.95rem/1.2 var(--font); text-align: left; cursor: pointer; box-shadow: none;
}
.ihca-wwu .wwu-tab:disabled { cursor: not-allowed; opacity: .65; }
.ihca-wwu .wwu-tab:not(:disabled):hover { background: #d3dce7; color: var(--ink); }
.ihca-wwu .wwu-tab.is-current { background: var(--paper); color: var(--ink); box-shadow: inset 0 3px 0 var(--amber); }
.wwu-tab-n {
	flex: none; width: 26px; height: 26px; border-radius: 50%;
	display: grid; place-items: center; font-size: .85rem;
	background: var(--paper); color: var(--blue-deep); border: 2px solid currentColor;
}
.wwu-tab.is-current .wwu-tab-n { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.wwu-tab.is-done .wwu-tab-n { background: var(--ok); border-color: var(--ok); color: #fff; font-size: 0; }
.wwu-tab.is-done .wwu-tab-n::before { content: "✓"; font-size: .85rem; }
.wwu-tab-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------ packet: sheets */

.wwu-form { margin: 0; }
.wwu-panel { background: var(--paper); border-radius: 0 0 var(--radius) var(--radius); padding: 8px 0 0; }
.wwu-sheet {
	background: var(--paper); padding: 28px 32px 32px;
	border-top: 1px solid var(--line);
}
.wwu-panel > .wwu-sheet:first-child { border-top: 0; }
.wwu-sheet-title { font-size: 1.35rem; font-weight: 800; padding-bottom: 12px; margin-bottom: 20px !important; border-bottom: 3px double var(--ink); }
.wwu-group { padding: 8px 0 24px; }
.wwu-group + .wwu-group { border-top: 1px solid #e3e8ef; padding-top: 24px; }
.wwu-group h4, .wwu-sheet h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.wwu-mt { margin-top: 20px !important; }

.wwu-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 18px; margin-bottom: 16px; }
.wwu-f { grid-column: span 6; display: flex; flex-direction: column; min-width: 0; }
.wwu-f.wwu-narrow { grid-column: span 3; }
.wwu-f.wwu-span-2 { grid-column: span 6; }
.wwu-f.wwu-name { grid-column: span 5; }
.wwu-f.wwu-mi { grid-column: span 2; }
.wwu-f.wwu-span-full { grid-column: 1 / -1; }
.wwu-f label, .wwu-sig-label, .wwu-yn legend { font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
.wwu-opt { font-weight: 400; color: var(--ink-soft); }
.wwu-hint { font-size: .9rem; color: var(--ink-soft); margin: 6px 0 12px; }
.wwu-f .wwu-hint { margin-bottom: 0; }

.ihca-wwu input[type="text"], .ihca-wwu input[type="email"], .ihca-wwu input[type="tel"],
.ihca-wwu input[type="date"], .ihca-wwu select, .ihca-wwu textarea {
	width: 100%; max-width: none; margin: 0;
	font: 400 1rem/1.4 var(--font); color: var(--ink);
	background: var(--paper); border: 1.5px solid #9aa9bc; border-radius: var(--radius);
	padding: 11px 12px; min-height: 48px; box-shadow: none;
	-webkit-appearance: none; appearance: none;
}
.ihca-wwu select {
	background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
	background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px;
}
.ihca-wwu textarea { min-height: 96px; resize: vertical; }
.ihca-wwu input:focus, .ihca-wwu select:focus, .ihca-wwu textarea:focus { border-color: var(--blue); outline: 3px solid rgba(43, 87, 154, .25); outline-offset: 0; }
.ihca-wwu input::placeholder, .ihca-wwu textarea::placeholder { color: #8391a5; }

.wwu-readout { margin: 0; padding: 12px 0; color: var(--ink-soft); }

/* yes / no */
.wwu-yn { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.wwu-yn legend { padding: 0; float: left; width: 100%; }
.wwu-yn legend + * { clear: both; }
.wwu-yn-opts { display: flex; gap: 10px; clear: both; }
.wwu-yn-opts label {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 18px; min-height: 46px; min-width: 88px;
	border: 1.5px solid #9aa9bc; border-radius: var(--radius); cursor: pointer; font-weight: 500;
}
.wwu-yn-opts label:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.ihca-wwu input[type="radio"], .ihca-wwu input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex: none; }

.ihca-wwu .wwu-check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; cursor: pointer; font-weight: 500; flex-wrap: wrap; }
.wwu-check input { margin-top: 3px !important; }
.wwu-check .wwu-err { flex-basis: 100%; }
.wwu-check:has(input:disabled) { opacity: .5; cursor: not-allowed; }

/* repeaters */
.wwu-rows.is-muted { opacity: .45; pointer-events: none; }
.wwu-row { border-left: 3px solid var(--blue-tint); padding: 4px 0 4px 16px; margin-bottom: 18px; }
.wwu-row .wwu-grid { margin-bottom: 4px; }
.wwu-row-label { font-weight: 700; color: var(--blue-deep); margin-bottom: 8px !important; }

/* legal text */
.wwu-legal, .wwu-legal-list p { font-size: .95rem; background: var(--wash); padding: 14px 16px; border-radius: var(--radius); }
.wwu-legal-list { display: grid; gap: 6px; margin-bottom: 12px; }
.wwu-legal-list p { margin: 0; }
.wwu-disclosure p { max-width: 42em; }

/* ------------------------------------------------------------ signature pad */

.wwu-sig { margin: 20px 0 8px; max-width: 520px; }
.wwu-sig-label { display: block; }
.wwu-sig canvas {
	display: block; width: 100%; height: 150px;
	background:
		linear-gradient(var(--ink), var(--ink)) 20px calc(100% - 36px) / calc(100% - 40px) 1.5px no-repeat,
		#fbfcfe;
	border: 1.5px dashed #9aa9bc; border-radius: var(--radius);
	touch-action: none; cursor: crosshair;
}
.wwu-sig canvas:focus-visible { outline: 3px solid var(--amber); }
.wwu-sig.is-signed canvas { border-style: solid; border-color: var(--ok); }
.wwu-sig .wwu-sig-clear { margin-top: 4px; }
[data-ack-locked] .wwu-sig canvas { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------ handbook */

.wwu-hb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; border-bottom: 3px double var(--ink); margin-bottom: 12px; padding-bottom: 12px; }
.wwu-hb-head .wwu-sheet-title { border: 0; padding: 0; margin: 0 !important; }
.wwu-handbook {
	height: min(70vh, 640px); overflow-y: auto; overscroll-behavior: contain;
	border: 1.5px solid var(--line); border-radius: var(--radius);
	padding: 24px 28px; background: #fdfdfb;
	font-size: 1rem; line-height: 1.65;
}
.wwu-handbook .hb-toc { background: var(--wash); padding: 16px 20px; border-radius: var(--radius); margin-bottom: 28px; }
.wwu-handbook .hb-toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; font-size: .92rem; }
.wwu-handbook .hb-toc li { break-inside: avoid; margin-bottom: 2px; }
.wwu-handbook h3 { font-size: 1.15rem; font-weight: 800; margin: 32px 0 10px; display: flex; gap: 10px; align-items: baseline; scroll-margin-top: 8px; }
.wwu-handbook .hb-num { color: var(--blue); font-variant-numeric: tabular-nums; min-width: 1.6em; }
.wwu-handbook h4 { font-size: 1rem; margin: 16px 0 4px; }
.wwu-handbook ul { padding-left: 1.3em; margin: 0 0 1em; }
.wwu-handbook li p { margin: 0; }
.wwu-handbook .hb-contacts { border-collapse: collapse; width: 100%; font-size: .95rem; }
.wwu-handbook .hb-contacts th, .wwu-handbook .hb-contacts td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.wwu-handbook .hb-contacts th { width: 38%; }
.wwu-hb-end { text-align: center; color: var(--ink-soft); padding: 24px 0 4px; border-top: 1px solid var(--line); margin-top: 32px !important; }
.wwu-hb-progress { font-size: .9rem; color: var(--ink-soft); margin-top: 8px !important; }
.wwu-locked-note { background: var(--amber-tint); padding: 10px 14px; border-radius: var(--radius); font-weight: 700; }

/* ------------------------------------------------------------ review */

.wwu-rv { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; }
.wwu-rv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wwu-rv-head h4 { margin: 0 !important; }
.wwu-rv dl { margin: 0; }
.wwu-rv-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 6px 0; border-top: 1px solid #edf0f4; }
.wwu-rv-row dt { color: var(--ink-soft); font-size: .92rem; }
.wwu-rv-row dd { margin: 0; overflow-wrap: anywhere; }
.wwu-rv-sig { height: 56px; width: auto; }

/* ------------------------------------------------------------ nav, errors, done */

.wwu-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 32px 28px; background: var(--paper); border-radius: 0 0 var(--radius) var(--radius); border-top: 1px solid var(--line); }

.wwu-err { color: var(--err); font-weight: 700; font-size: .92rem; margin: 6px 0 0 !important; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err) !important; }
.wwu-yn.has-error .wwu-yn-opts label { border-color: var(--err); }
.wwu-sig.has-error canvas { border-color: var(--err); border-style: solid; }
.wwu-error { margin: 0; padding: 14px 32px; background: var(--err-tint); color: var(--err); font-weight: 700; }

.wwu-done { background: var(--paper); border-radius: var(--radius); padding: 36px 32px; border-top: 6px solid var(--ok); }
.wwu-done h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.wwu-done:focus { outline: none; }

.wwu-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ after hire + contact */

.wwu-hired { padding: 56px 0 24px; }
.wwu-hired-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.wwu-hired-cols p { max-width: 36em; }
.wwu-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wwu-docs a {
	display: block; padding: 14px 16px 14px 52px; position: relative;
	border: 1.5px solid var(--line); border-radius: var(--radius);
	text-decoration: none; color: var(--ink);
}
.wwu-docs a::before {
	content: ""; position: absolute; left: 16px; top: 16px; width: 22px; height: 28px;
	border: 2px solid var(--blue); border-radius: 2px 8px 2px 2px; background: var(--blue-tint);
}
.wwu-docs a:hover { border-color: var(--blue); color: var(--ink); }
.wwu-doc-t { display: block; font-weight: 700; }
.wwu-doc-m { display: block; font-size: .88rem; color: var(--ink-soft); }

.wwu-contact { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 32px; }
.wwu-contact h2 { font-size: 1.3rem; margin-bottom: 12px; }
.wwu-eeo { color: var(--ink-soft); font-size: .92rem; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 820px) {
	.wwu-steps-list { grid-template-columns: 1fr 1fr; }
	.wwu-steps-list li::after { display: none; }
	.wwu-hired-cols { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
	.ihca-wwu { font-size: 16px; padding: 0 16px 48px; }
	.wwu-hero { padding-top: 32px; }
	.wwu-steps-list { grid-template-columns: 1fr; gap: 16px; }
	.wwu-steps-list li { padding: 2px 0 0 52px; }
	.wwu-packet { margin: 0 -16px; padding: 28px 0 32px; border-radius: 0; }
	.wwu-packet-head { padding: 0 16px; }
	.wwu-tabs ol { gap: 2px; }
	.ihca-wwu .wwu-tab { justify-content: center; padding: 10px 4px; }
	.wwu-tab-t { display: none; }
	.wwu-tab.is-current .wwu-tab-t { display: inline; }
	.wwu-tab.is-current { flex-grow: 1; }
	.wwu-tabs li:has(.is-current) { flex: 3; }
	.wwu-sheet { padding: 22px 16px 24px; }
	.wwu-nav { padding: 16px; flex-wrap: wrap-reverse; }
	.wwu-nav .wwu-btn { flex: 1 1 auto; }
	.wwu-error { padding: 14px 16px; }
	.wwu-grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
	.wwu-f, .wwu-f.wwu-span-2 { grid-column: 1 / -1; }
	.wwu-f.wwu-narrow { grid-column: span 1; }
	.wwu-f.wwu-name { grid-column: 1 / -1; }
	.wwu-f.wwu-mi { grid-column: span 1; }
	.wwu-handbook { padding: 16px; height: 65vh; }
	.wwu-handbook .hb-toc ol { columns: 1; }
	.wwu-rv-row { grid-template-columns: 1fr; gap: 2px; }
	.wwu-done { padding: 28px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.ihca-wwu * { transition: none !important; scroll-behavior: auto !important; }
}
.wwu-handbook .hb-toc-extra { margin: 10px 0 0; font-size: .92rem; }

/* Plain text download link next to the handbook title */
.ihca-wwu a.wwu-dl { font-weight: 700; align-self: center; }
