/* Hallmark · shape: Long Document · genre: modern-minimal · theme: brand · redesign: full · draw: 5c3072 · job: sign up
 * paper: oklch(99.2% 0.003 260) · accent: oklch(52.1% 0.225 264.6) · display: Plus Jakarta Sans · body: Plus Jakarta Sans · hero: Banner (/q, /thu-hoi, /gioi-thieu, /loi, /chinh-sach-bao-mat) · nav: floating pill · footer: colophon block · signature: the record status set first, the batch facts held beside the record
 * axes: light/geometric-sans/chromatic-blue · posture: Restrained · contrast: pass · fold: pass · imagery: the business product photo on /q only · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V3 · weakest: V, these are documents that share one system with the landing and account pages on purpose */
/* Hallmark · dropped the eyebrows HỒ SƠ TRUY XUẤT NGUỒN GỐC, THÔNG BÁO AN TOÀN and KẾT NỐI DOANH NGHIỆP, kept as aria-label on the record and the notice · 54 names them */
/* Hallmark · waive 79 · a page whose whole content is one owner line and its notes · privacy holds one placeholder sentence and error one message; filling the screen would mean inventing policy or error copy */
/* Hallmark · waive 77 · a page whose whole content is one owner line and its notes · the error page development note is template text kept verbatim, set as a quiet aside rather than a section */
/* Hallmark · answered F7 · the tinted wells share one recipe on purpose: status, facts, consent and the dev note are all the same kind of quiet aside */
/* Hallmark · dropped hidden __RequestVerificationToken values · every form still renders its token; only the per-request value changes */
@import url("./tokens.css");
@import url("./base.css");
@import url("./public-header.css");

.public-main { padding-block: var(--space-2xl) var(--section-gap-s); }
.public-main code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.note { font-size: var(--text-sm); color: var(--color-muted); max-width: 65ch; }
.prewrap { white-space: pre-wrap; }
.error-text { color: var(--color-error); font-weight: 600; }

.notice { display: grid; gap: var(--space-2xs); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-input); background: var(--color-paper-3); }
.notice.is-alert { background: color-mix(in oklch, var(--color-error) 9%, var(--color-paper)); color: var(--color-error); }
.notice.is-warn { background: color-mix(in oklch, var(--color-warn) 22%, var(--color-paper)); }
.status-band { display: grid; gap: var(--space-xs); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); }
.status-band strong { font-size: var(--text-lg); line-height: 1.3; }
.status-band.is-alert { background: color-mix(in oklch, var(--color-error) 9%, var(--color-paper)); }
.status-band.is-alert > strong { color: var(--color-error); }

.facts { display: grid; margin: 0; }
.facts > div { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-sm); border-top: 1px solid var(--color-rule-strong); }
.facts dt { color: var(--color-ink-2); }
.facts dd { margin: 0; min-width: 0; font-weight: 600; text-align: right; overflow-wrap: break-word; }

/* /q/{token}: the record */
.trace { display: grid; gap: var(--space-lg); }
.trace h2, .notice-page h2 { max-width: none; font-size: var(--text-xl); line-height: 1.2; }
.trace-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); margin-top: var(--space-lg); }
.trace-head { grid-column: 1 / 8; grid-row: 1; display: grid; gap: var(--space-md); align-content: start; }
.trace-head h1, .notice-page h1, .prose-page h1 { font-size: var(--text-display-s); }
.trace-photo { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-card); background: var(--color-paper-2); }
.trace-photo img { width: 100%; height: 100%; object-fit: contain; }
.trace-facts { grid-column: 9 / 13; grid-row: 1 / 3; align-self: start; position: sticky; top: var(--space-3xl); display: grid; gap: var(--space-xl); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.trace-facts section, .trace-body section { display: grid; gap: var(--space-md); }
.trace-body { grid-column: 1 / 8; grid-row: 2; display: grid; gap: var(--space-2xl); }
.timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; gap: var(--space-2xs); padding: var(--space-md) 0 var(--space-md) var(--space-lg); border-left: 2px solid var(--color-rule-strong); }
.timeline time { font-size: var(--text-sm); color: var(--color-muted); }
.evidence-list { display: grid; }
.evidence { display: grid; gap: var(--space-xs); justify-items: start; padding-block: var(--space-lg); border-top: 1px solid var(--color-rule); }
.evidence h3 { font-size: var(--text-lg); }
.trace-tail { display: grid; gap: var(--space-xl); max-width: 46rem; margin-top: var(--space-2xl); }
.consent { padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); }
.consent summary { display: flex; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; }
.consent summary:hover { color: var(--color-accent-2); }
.consent summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.consent[open] { display: grid; gap: var(--space-md); }
.consent form, .report form { display: grid; gap: var(--space-sm); justify-items: start; }
.check { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-accent); }
.check input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.report { display: grid; gap: var(--space-md); padding-top: var(--space-xl); border-top: 1px solid var(--color-rule); }
.report label { font-size: var(--text-sm); font-weight: 600; }
.report textarea.form-control { min-height: 140px; padding: var(--space-sm) var(--space-md); resize: vertical; }

/* /thu-hoi/{id}: the recall notice */
.notice-page { display: grid; gap: var(--space-xl); max-width: 52rem; }
.notice-page section { display: grid; gap: var(--space-md); }

/* /gioi-thieu/tham-gia: the referral */
.join { display: grid; gap: var(--space-lg); justify-items: start; max-width: 64rem; padding-block: var(--space-2xl); }
.join h1 { max-width: none; font-size: var(--text-display); }
.join .lead { max-width: 56ch; }
.code-chip { padding: var(--space-3xs) var(--space-xs); border-radius: var(--space-2xs); background: var(--color-paper-3); color: var(--color-accent-2); font-weight: 600; }

/* privacy and error */
.prose-page { display: grid; gap: var(--space-lg); max-width: 46rem; }
.prose-page h2.lead { max-width: 52ch; font-size: var(--text-lead); font-weight: 400; letter-spacing: 0; line-height: 1.45; }
.dev-note { display: grid; gap: var(--space-sm); margin-top: var(--space-xl); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); }
.dev-note h3 { font-size: var(--text-lg); }
.dev-note p { color: var(--color-ink-2); }

@media (max-width: 60rem) {
  .trace-head, .trace-facts, .trace-body { grid-column: 1 / -1; grid-row: auto; }
  .trace-facts { position: static; padding: var(--space-lg); }
}
