/* Response Hub shares the KRCS prequalification palette and visual language.
   Assets are bundled locally so the portal does not depend on another app. */

:root {
	--red: #e21f30;          /* KRCS red, darkened for AA white-text contrast */
	--red-ink: #c81e2c;      /* red for text and hovers on white (AA contrast) */
	--red-tint: #fef2f3;
	--navy: #011e41;         /* headers, headings */
	--navy-2: #0b2d57;
	--ink: #1f2a37;
	--slate: #5b6878;
	--line: #dde2e8;
	--mist: #f5f6f7;
	--white: #fff;
	--green: #1f7a4d;
	--green-tint: #e8f4ee;
	--amber: #9a5408;
	--amber-tint: #fdf3e6;

	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;

	--r-sm: 8px;
	--r: 10px;
	--r-lg: 16px;
	--shadow: 0 1px 2px rgb(1 30 65 / 6%), 0 8px 24px rgb(1 30 65 / 8%);
	--shadow-lg: 0 24px 60px rgb(1 30 65 / 28%);
	--focus: 0 0 0 3px var(--white), 0 0 0 5px var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font: 400 15px/1.55 var(--sans);
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--red-ink); }
a:hover { color: var(--navy); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--slate); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: var(--white); padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); }

/* ------------------------------------------------------------ buttons and fields */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 2.75rem; padding: 0 1.15rem; border-radius: var(--r-sm);
	font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
	border: 1.5px solid transparent; background: var(--red); color: var(--white);
	transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--red-ink); color: var(--white); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--navy { background: var(--navy); }
.btn--navy:hover { background: var(--navy-2); }
.btn--line { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--line:hover { background: var(--mist); color: var(--navy); border-color: #c5cdd6; }
.btn--ghost { background: transparent; color: var(--red-ink); padding: 0 .5rem; }
.btn--ghost:hover { background: var(--red-tint); color: var(--red-ink); }
.btn--on-dark { background: transparent; color: var(--white); border-color: rgb(255 255 255 / 40%); }
.btn--on-dark:hover { background: rgb(255 255 255 / 10%); color: var(--white); }
.btn--sm { min-height: 2.1rem; padding: 0 .8rem; font-size: .85rem; }
.btn--block { width: 100%; }

.field { display: grid; gap: .35rem; }
.field > span, .label { font-size: .82rem; font-weight: 600; color: var(--navy); }
.field small { color: var(--slate); font-size: .78rem; }
input, select, textarea {
	font: inherit; color: var(--ink); width: 100%;
	min-height: 2.75rem; padding: .55rem .75rem;
	border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white);
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(1 30 65 / 12%); }
input[type="checkbox"] { width: 1.1rem; min-height: 1.1rem; accent-color: var(--red); }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.25rem; }
.check { display: flex; gap: .6rem; align-items: center; font-size: .9rem; }

/* ------------------------------------------------------------ wordmark */

.wordmark { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; font-weight: 750; letter-spacing: -.01em; }
.wordmark__mark { width: 1.9rem; height: 1.9rem; border-radius: 6px; background: var(--red); display: grid; place-items: center; }
.wordmark__mark::before { content: ""; width: .95rem; height: .95rem; border: 3px solid var(--white); border-radius: 3px; }
.wordmark__logo { width: 2rem; height: 2rem; object-fit: contain; background: var(--white); border-radius: 6px; padding: 2px; }
.wordmark small { display: block; font-size: .72rem; font-weight: 500; opacity: .75; letter-spacing: 0; }

/* ------------------------------------------------------------ household card (signature) */

.hh-card {
	position: relative; width: min(100%, 24rem); background: var(--white);
	border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); color: var(--ink);
}
.hh-card__band {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	background: var(--red); color: var(--white); padding: .7rem 1.1rem;
	font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.hh-card__body { padding: 1.1rem 1.25rem 1.25rem; }
.hh-card__label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.hh-card__number { font: 700 clamp(1.9rem, 5vw, 2.5rem)/1.1 var(--mono); color: var(--navy); letter-spacing: .02em; margin: .2rem 0 .9rem; }
.hh-card__barcode { position: relative; height: 3.25rem; overflow: hidden; }
.hh-card__barcode svg { display: block; width: 100%; height: 100%; }
.hh-card__barcode--static {
	background: repeating-linear-gradient(90deg,
		var(--navy) 0 2px, transparent 2px 4px, var(--navy) 4px 5px, transparent 5px 8px,
		var(--navy) 8px 11px, transparent 11px 12px, var(--navy) 12px 13px, transparent 13px 17px);
}
.hh-card__scan {
	position: absolute; inset: -10% auto -10% 0; width: 3px; background: var(--red);
	box-shadow: 0 0 12px 2px rgb(245 51 63 / 70%); animation: scan 2.4s ease-in-out .6s 2 both;
}
@keyframes scan { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(23rem); opacity: 0; } }
.hh-card__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.hh-card__meta dt { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.hh-card__meta dd { margin: .15rem 0 0; font-weight: 600; color: var(--navy); font-size: .92rem; overflow-wrap: anywhere; }
.hh-card--removed .hh-card__band { background: var(--slate); }

/* ------------------------------------------------------------ public pages */

.top-rule { height: 4px; background: var(--red); }
.site-header { background: var(--navy); color: var(--white); }
.site-header__inner { max-width: 76rem; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header nav { display: flex; align-items: center; gap: 1.25rem; }
.site-header nav a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 600; font-size: .92rem; opacity: .85; }
.site-header nav a:not(.btn):hover { opacity: 1; }

.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero__inner { max-width: 76rem; margin: 0 auto; padding: 4.5rem 1.5rem 5.5rem; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero .eyebrow { color: #ff8a92; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; margin: 1rem 0 1.25rem; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__lede { font-size: 1.1rem; color: rgb(255 255 255 / 80%); max-width: 46ch; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

.section { max-width: 76rem; margin: 0 auto; padding: 4.5rem 1.5rem; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.25rem; flex-wrap: wrap; }
.section__head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.025em; margin-top: .5rem; max-width: 24ch; }
.section__head p { color: var(--slate); max-width: 42ch; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: flow; border-top: 2px solid var(--navy); }
.flow li { padding: 1.5rem 1.75rem 0 0; counter-increment: flow; position: relative; }
.flow li + li { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.flow li::before { content: "Step " counter(flow); display: block; font: 700 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red-ink); margin-bottom: .9rem; }
.flow h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.flow p { color: var(--slate); font-size: .95rem; }
.flow .who { display: inline-block; margin-top: 1rem; font-size: .78rem; font-weight: 600; color: var(--navy); background: var(--mist); padding: .3rem .6rem; border-radius: 99px; }

.band { background: var(--mist); }
.visibility { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.visibility article { background: var(--white); border-radius: var(--r); padding: 1.5rem; border: 1px solid var(--line); }
.visibility h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.visibility h3::before { content: ""; width: .6rem; height: .6rem; border-radius: 2px; background: var(--red); }
.visibility ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; font-size: .92rem; }
.visibility li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .4rem; }
.visibility li::before { content: "✓"; color: var(--green); font-weight: 700; }
.visibility li.no::before { content: "–"; color: var(--slate); }
.visibility li.no { color: var(--slate); }

.access { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; border: 1px solid var(--line); padding: 1.75rem 2rem; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); }
.access h2 { font-size: 1.3rem; }
.access p { color: var(--slate); margin-top: .4rem; max-width: 60ch; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { max-width: 76rem; margin: 0 auto; padding: 1.75rem 1.5rem; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; font-size: .85rem; color: var(--slate); }

/* ------------------------------------------------------------ sign in */

.signin { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.signin__side { background: var(--navy); color: var(--white); padding: 2rem 3rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.signin__side .wordmark { color: var(--white); }
.signin__side .hh-card { margin: 2rem 0; transform: rotate(-2deg); }
.signin__side a { color: var(--white); }
.signin__side > p { color: rgb(255 255 255 / 70%); font-size: .9rem; max-width: 36ch; }
.signin__main { display: grid; place-items: center; padding: 2rem 1.5rem; }
.signin__form { width: min(100%, 24rem); display: grid; gap: 1.1rem; }
.signin__form h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.025em; }
.signin__form > p { color: var(--slate); }
.alert { padding: .75rem 1rem; border-radius: var(--r-sm); font-size: .9rem; }
.alert--error { background: var(--red-tint); color: var(--red-ink); border: 1px solid #f8c4c9; }
.alert--info { background: var(--mist); color: var(--navy); border: 1px solid var(--line); }
.alert--ok { background: var(--green-tint); color: var(--green); border: 1px solid #b9dcc8; }
.alert--warn { background: var(--amber-tint); color: var(--amber); border: 1px solid #f1d2a8; }

/* ------------------------------------------------------------ portal shell */

.app {
	min-height: 100vh; display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); grid-template-rows: auto 1fr;
	/* Paint the sidebar column so it runs the full height of long pages. */
	background: linear-gradient(90deg, var(--white) 15.5rem, var(--line) 15.5rem, var(--line) calc(15.5rem + 1px), var(--mist) calc(15.5rem + 1px));
}
.topbar { grid-column: 1 / -1; position: sticky; top: 0; z-index: 30; background: var(--navy); color: var(--white); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; padding: .55rem 1.25rem; min-height: 3.6rem; }
.topbar .wordmark { color: var(--white); }
.topbar__menu { display: none; background: none; border: 0; color: var(--white); width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); cursor: pointer; font-size: 1.3rem; }
.topbar__project { margin-left: 1.5rem; display: flex; align-items: center; gap: .5rem; }
.topbar__project label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.topbar__project select { min-height: 2.25rem; padding: .25rem 2rem .25rem .65rem; background-color: var(--navy-2); color: var(--white); border-color: rgb(255 255 255 / 20%); font-weight: 600; max-width: 22rem; }
.topbar__spacer { flex: 1; }
.topbar__user { display: flex; align-items: center; gap: .75rem; text-align: right; }
.topbar__user strong { display: block; font-size: .88rem; }
.topbar__user small { display: block; font-size: .74rem; opacity: .72; }
.avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: 0 0 auto; }

.sidenav { background: var(--white); padding: 1.25rem .75rem; position: sticky; top: 3.6rem; height: calc(100vh - 3.6rem); overflow-y: auto; }
.sidenav h2 { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 1.25rem .75rem .5rem; }
.sidenav h2:first-child { margin-top: 0; }
.sidenav a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .75rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 550; font-size: .93rem; }
.sidenav a:hover { background: var(--mist); color: var(--navy); }
.sidenav a[aria-current="page"] { background: var(--red-tint); color: var(--red-ink); font-weight: 700; box-shadow: none; }
.sidenav .count { background: var(--red); color: var(--white); font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 99px; }
.sidenav__foot { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.main { padding: 1.75rem 2rem 4rem; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.025em; }
.page-head p { color: var(--slate); margin-top: .3rem; }
.page-head__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.4rem; }
.panel + .panel, .grid + .panel, .panel + .grid { margin-top: 1.25rem; }
.grid > .panel { margin-top: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.panel__head h2 { font-size: 1.05rem; }
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--side { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.25rem; }
.stat b { display: block; font: 750 2rem/1.1 var(--mono); color: var(--navy); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: .35rem; font-size: .84rem; color: var(--slate); }
.stat--accent { background: var(--mist); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); background: var(--mist); padding: .7rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.is-void td { color: var(--slate); text-decoration: line-through; text-decoration-color: rgb(91 104 120 / 50%); }

.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 99px; background: var(--mist); color: var(--navy); white-space: nowrap; }
.badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; opacity: .8; }
.badge--ok { background: var(--green-tint); color: var(--green); }
.badge--warn { background: var(--amber-tint); color: var(--amber); }
.badge--bad { background: var(--red-tint); color: var(--red-ink); }
.badge--muted { background: var(--mist); color: var(--slate); }

.filters { display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; margin-bottom: 1rem; }
.filters .field { min-width: 10rem; }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--slate); }
.empty strong { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: .35rem; }
.loading { padding: 2rem; text-align: center; color: var(--slate); }

.bar { height: .55rem; background: var(--mist); border-radius: 99px; overflow: hidden; min-width: 6rem; }
.bar > i { display: block; height: 100%; background: var(--red); border-radius: 99px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .meta { font-size: .8rem; color: var(--slate); }

/* Lookup */
.lookup { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; }
.lookup input { font: 700 1.25rem var(--mono); letter-spacing: .04em; text-transform: uppercase; min-height: 3.25rem; }
.lookup .btn { min-height: 3.25rem; }
.scanner { margin-top: 1rem; border-radius: var(--r); overflow: hidden; background: #000; position: relative; }
.scanner video { display: block; width: 100%; max-height: 22rem; object-fit: cover; }
.scanner::after { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: var(--red); box-shadow: 0 0 10px var(--red); }

.history { list-style: none; margin: 0; padding: 0; position: relative; }
.history::before { content: ""; position: absolute; left: .45rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.history li { position: relative; padding: 0 0 1.1rem 1.75rem; }
.history li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--white); border: 3px solid var(--slate); }
.history li.own::before { border-color: var(--red); }
.history .when { font: 600 .78rem var(--mono); color: var(--slate); }
.history .what { font-weight: 650; color: var(--navy); }
.history .items { font-size: .85rem; color: var(--slate); }

/* Dialog and toast */
dialog { border: 0; border-radius: var(--r-lg); padding: 0; width: min(36rem, calc(100vw - 2rem)); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog::backdrop { background: rgb(1 30 65 / 55%); }
.dialog__head { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dialog__head h2 { font-size: 1.1rem; }
.dialog__body { padding: 1.25rem 1.4rem; max-height: 70vh; overflow-y: auto; }
.dialog__foot { padding: 1rem 1.4rem; border-top: 1px solid var(--line); display: flex; gap: .6rem; justify-content: flex-end; }
.close { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--slate); width: 2.25rem; height: 2.25rem; border-radius: var(--r-sm); }
.close:hover { background: var(--mist); color: var(--navy); }

.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: grid; gap: .5rem; width: min(24rem, calc(100vw - 2.5rem)); }
.toast { background: var(--navy); color: var(--white); padding: .85rem 1rem; border-radius: var(--r); box-shadow: var(--shadow-lg); font-size: .9rem; border-left: 4px solid var(--green); animation: rise .2s ease-out; }
.toast--error { border-left: 0; background: var(--red-ink); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

.no-access { min-height: 100vh; display: grid; place-items: center; background: var(--mist); padding: 1.5rem; }
.no-access .panel { max-width: 30rem; text-align: center; display: grid; gap: 1rem; }

/* ------------------------------------------------------------ responsive and motion */

@media (max-width: 960px) {
	.hero__inner { grid-template-columns: 1fr; padding: 3rem 1.25rem 4rem; gap: 2.5rem; }
	.flow, .visibility { grid-template-columns: 1fr; }
	.flow li, .flow li + li { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
	.signin { grid-template-columns: 1fr; }
	.signin__side { padding: 1.5rem; }
	.signin__side .hh-card, .signin__side > p { display: none; }

	.app { grid-template-columns: 1fr; background: var(--mist); }
	.sidenav { border-right: 1px solid var(--line); }
	.topbar__menu { display: grid; place-items: center; }
	.topbar__project { margin-left: auto; }
	.topbar__project label, .topbar__user > div, .topbar .wordmark span:last-child { display: none; }
	.topbar__project select { max-width: 11rem; }
	.topbar__spacer { display: none; }
	.sidenav { position: fixed; top: 3.6rem; left: 0; bottom: 0; height: auto; width: 17rem; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
	.sidenav.is-open { transform: none; }
	.main { padding: 1.25rem 1rem 4rem; }
	.grid--2, .grid--3, .grid--side, .form-grid { grid-template-columns: 1fr; }
	.lookup { grid-template-columns: 1fr 1fr; }
	.lookup input, .lookup .btn:only-of-type { grid-column: 1 / -1; }
	.form-actions .btn, .page-head__actions .btn { flex: 1 1 auto; }
}
@media (max-width: 640px) {
	.site-header nav a:not(.btn) { display: none; }
	.hh-card__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.hh-card__scan { display: none; }
}

/* Reference: onerc_prequalification landing page. */
.landing { --landing-muted: #c7d9ed; }
.landing .site-header { position: absolute; inset: 0 0 auto; z-index: 10; background: transparent; }
.landing .site-header__inner { max-width: 80rem; min-height: 5rem; padding: 1rem 1.5rem; }
.landing .wordmark { color: var(--white); font-size: .95rem; }
.landing .wordmark small { color: var(--landing-muted); }
.wordmark__logo { width: auto; max-width: 5rem; height: 2.25rem; object-fit: contain; background: transparent; border-radius: 0; padding: 0; }
.landing .site-header nav { gap: 1.75rem; }
.landing .site-header nav a:not(.btn) { color: var(--landing-muted); font-size: .875rem; }
.landing .site-header nav a:hover { color: var(--white); }
.landing .site-header .btn { min-height: 2.6rem; padding: 0 1.25rem; }
.landing .hero { min-height: 100svh; position: relative; display: grid; align-items: center; background: var(--navy); }
.landing .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(1 30 65 / 78%), rgb(1 30 65 / 78%)), url('/assets/onerc_response_hub/images/krcs-response-distribution.jpg') center / cover; }
.landing .hero__inner { position: relative; width: 100%; max-width: 80rem; grid-template-columns: 1fr; padding: 10rem 1.5rem 8rem; gap: 0; }
.landing .hero .eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem; border: 1px solid rgb(238 36 53 / 45%); border-radius: 2rem; background: rgb(238 36 53 / 16%); color: #ffb8be; font-size: .8rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
.landing .hero .eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); flex: none; }
.landing .hero h1 { max-width: 21ch; font-size: clamp(2.25rem, 4.2vw, 3.75rem); line-height: 1.12; font-weight: 800; letter-spacing: -.035em; margin: 1.5rem 0; }
.landing .hero__lede { max-width: 60ch; color: #dbeafe; font-size: 1.15rem; line-height: 1.75; }
.landing .hero__actions { margin-top: 2rem; gap: 1rem; }
.landing .hero__actions .btn { min-height: 3.25rem; padding: 0 2rem; font-weight: 700; }
.landing .btn--on-dark { border: 2px solid var(--white); }
.landing .btn--on-dark:hover { background: var(--white); color: var(--navy); }
.hero__scroll { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: .25rem; color: var(--landing-muted); font-size: .75rem; text-decoration: none; }
.hero__scroll span { font-size: 1.25rem; }
.hero__scroll:hover { color: var(--white); }
.landing section[id] { scroll-margin-top: 1rem; }
.landing .section { max-width: 80rem; padding: 5rem 1.5rem; }
.landing .section__head { align-items: center; }
.landing .section__head h2 { max-width: 28ch; font-size: clamp(1.75rem, 3vw, 2.5rem); margin-top: .75rem; }
.landing .section__head .eyebrow { color: var(--red-ink); }
.landing .section--steps .section__head { text-align: center; display: grid; justify-items: center; gap: 1rem; margin-bottom: 3rem; }
.landing .section--steps .section__head p { max-width: 60ch; }
.landing .section--steps .section__head .eyebrow { color: var(--red-ink); }
.landing .flow { border: 0; gap: 1.5rem; }
.landing .flow li, .landing .flow li + li { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.landing .flow li::before { content: "0" counter(flow); width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: var(--r); background: var(--red-tint); color: var(--red-ink); margin-bottom: 1.25rem; font: 800 .9rem var(--sans); }
.landing .flow h3 { line-height: 1.4; }
.landing .flow .who { background: transparent; padding: 0; color: var(--red-ink); }
.landing .visibility { gap: 1.5rem; }
.landing .visibility article { border-radius: var(--r-lg); padding: 1.75rem; }
.landing .access { box-shadow: none; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2.5rem; }
.landing .access h2 { font-size: 1.6rem; }
.landing .access .btn { background: var(--red); }
.landing .access .btn:hover { background: var(--red-ink); }
.landing .site-footer { background: var(--navy); border: 0; }
.landing .site-footer__inner { max-width: 80rem; padding: 3rem 1.5rem; color: var(--landing-muted); align-items: center; }
.landing .site-footer a { color: var(--landing-muted); overflow-wrap: anywhere; }
.footer-brand strong { color: var(--white); font-size: 1.15rem; }
.footer-brand p { margin-top: .4rem; }
.signin__side { background: linear-gradient(rgb(1 30 65 / 87%), rgb(1 30 65 / 87%)), url('/assets/onerc_response_hub/images/krcs-response-distribution.jpg') center / cover; }
@media (max-width: 767px) {
 .landing .site-header__inner { padding: 1rem; }
 .landing .site-header nav a:not(.btn) { display: none; }
 .landing .wordmark small { display: none; }
 .landing .hero__inner { padding: 9rem 1.25rem 6rem; }
 .landing .hero .eyebrow { font-size: .7rem; }
 .landing .hero__lede { font-size: 1rem; }
 .landing .section { padding: 3.5rem 1.25rem; }
 .landing .section__head { display: grid; gap: 1.25rem; }
 .landing .flow, .landing .visibility { grid-template-columns: 1fr; }
 .landing .access { padding: 1.5rem; }
}
@media (max-width: 360px) {
 .landing .wordmark { font-size: .8rem; gap: .5rem; }
 .landing .wordmark__logo { max-width: 4rem; }
 .landing .site-header .btn { padding: 0 .75rem; }
}

.mobile-nav { display: none; }
@media (max-width: 767px) {
 .landing .site-header__inner { gap: .65rem; }
 .landing .site-header__inner > nav { margin-left: auto; }
 .mobile-nav { display: block; }
 .mobile-nav summary { color: var(--white); cursor: pointer; padding: .65rem .35rem; font-size: .8rem; list-style: none; }
 .mobile-nav summary::-webkit-details-marker { display: none; }
 .mobile-nav nav { position: absolute; top: 100%; right: 1rem; left: 1rem; background: var(--navy); border: 1px solid rgb(255 255 255 / 20%); padding: .5rem; border-radius: var(--r); box-shadow: var(--shadow-lg); display: grid; gap: 0; }
 .landing .mobile-nav nav a:not(.btn) { display: block; padding: .75rem; color: var(--white); }
 .landing .hero h1 { font-size: clamp(2rem, 6vw, 3rem); max-width: none; }
 .landing .wordmark__logo { max-width: 3.5rem; }
}
@media (max-width: 360px) {
 .landing .site-header__inner { gap: .35rem; padding: .75rem; }
 .landing .wordmark { font-size: .75rem; }
 .mobile-nav summary { font-size: .75rem; }
}
