/* Screen styles. All colours, fonts and button shapes come from /brand/tokens.css. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 var(--body-size)/var(--body-line) var(--font-body); }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Top strip and header, as on the site */
.top-strip { border-bottom: 1px solid #eee; font-size: 14px; display: none; }
.top-strip .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.top-strip .tag, .top-strip .mail { color: var(--navy); text-decoration: none; }
.top-strip .mail { font-weight: 600; white-space: nowrap; }
header.main { background: var(--white); box-shadow: var(--header-shadow); position: sticky; top: 0; z-index: 10; }
header.main .wrap { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 48px; width: auto; display: block; }
nav.menu { display: none; gap: 28px; }
nav.menu a { color: var(--navy); font-weight: var(--menu-weight); text-decoration: none; }
.btn.header-btn { display: none; }
.burger { width: 40px; height: 40px; border: 0; background: transparent; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; }
.burger span { display: block; height: 2px; background: var(--navy); }

/* Buttons, with the site's sheen */
.btn { position: relative; overflow: hidden; display: inline-block; border: 0; cursor: pointer; border-radius: var(--btn-radius);
       padding: var(--btn-padding); font: var(--btn-weight) 16px/var(--btn-line) var(--font-body); color: var(--white);
       background: var(--blue); text-align: center; text-decoration: none; }
.btn::before { content: ""; position: absolute; top: -50%; left: -50%; height: 100%; width: 200%;
               background-color: var(--btn-sheen); transform: rotate(var(--btn-sheen-angle)); transition: 300ms; }
.btn:hover::before { top: 150%; }
.btn.navy { background: var(--navy); }
.btn.accent { background: var(--accent-gradient); }
.btn.accent::before { display: none; }
.btn.ghost { background: var(--white); color: var(--navy); border: 1px solid var(--navy); }
.btn.ghost::before { display: none; }

/* Title band: the homepage banner recipe */
.band { position: relative; overflow: hidden; background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), var(--white);
        color: var(--white); padding: 40px 0 44px; }
.band::before { content: ""; position: absolute; left: -100%; bottom: 5%; height: 100%; width: 200%;
                background-color: var(--hero-tint); transform: rotate(var(--hero-tint-angle)); }
.band .wrap { position: relative; }
.band h1 { font: var(--h1-weight) 32px/1.2 var(--font-heading); margin: 0 0 8px; }
.band p { margin: 0; max-width: 640px; color: rgba(255,255,255,.9); }

main { padding: 32px 0 56px; background: var(--surface-light); min-height: 50vh; }
.card { background: var(--white); max-width: 760px; margin: 0 auto; padding: 24px 20px; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.card + .card { margin-top: 20px; }
h2 { font: var(--h2-weight) 24px/1.3 var(--font-heading); color: var(--navy); margin: 0 0 6px; }
h3 { font: var(--h2-weight) 19px/1.3 var(--font-heading); color: var(--navy); margin: 22px 0 8px; }
.hint { color: var(--text-muted); margin: 0 0 18px; }

/* Step form */
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps span { flex: 1; height: 4px; background: #dfe3ea; }
.steps span.on { background: var(--blue); }
.step-label { font-size: 14px; color: var(--text-muted); margin: 0 0 4px; }
.step[hidden] { display: none; }
.options { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #dfe3ea; padding: 12px 14px; cursor: pointer; background: var(--white); }
.opt input { margin-top: 7px; accent-color: var(--blue); }
.opt b { color: var(--navy); font-weight: 600; display: block; }
.opt small { color: var(--text-muted); font-size: 14px; line-height: 20px; display: block; }
.opt:has(input:checked) { border-color: var(--blue); background: var(--surface-blue); }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font: var(--h2-weight) 20px/1.3 var(--font-heading); color: var(--navy); margin-bottom: 10px; padding: 0; }
.round { display: grid; grid-template-columns: 1fr; gap: 10px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.field small { display: block; color: var(--text-muted); font-size: 14px; line-height: 20px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=date], select, textarea {
  width: 100%; font: 400 16px/24px var(--font-body); color: var(--text); padding: 10px 12px; border: 1px solid #cfd5df; border-radius: 0; background: var(--white); }
input[type=file] { font: 400 15px var(--font-body); width: 100%; }
textarea { min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.tip { border-left: 4px solid var(--blue); background: var(--surface-blue); padding: 12px 14px; margin: 0 0 20px; font-size: 15px; line-height: 24px; }
.tip.warn { border-left-color: var(--danger); background: #fff4f4; }
.errors { border-left: 4px solid var(--danger); background: #fff4f4; padding: 12px 14px 12px 32px; margin: 0 0 20px; }
.actions { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.actions .btn { flex: 1 1 auto; }
.hidden { display: none; }

/* Progress list */
ul.progress { list-style: none; padding: 0; margin: 16px 0; }
ul.progress li { padding: 10px 0 10px 34px; border-bottom: 1px solid #eef0f4; position: relative; }
ul.progress li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cfd5df; }
ul.progress li.done::before { background: var(--success); border-color: var(--success); }
ul.progress li.now::before { border-color: var(--blue); border-top-color: transparent; animation: spin 1s linear infinite; }
ul.progress li.later { color: var(--text-muted); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Staff pages */
.staff main .card { max-width: 1100px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e6e9ef; vertical-align: top; }
th { color: var(--navy); background: var(--surface-light); }
.badge { display: inline-block; padding: 0 8px; font-size: 13px; background: var(--surface-blue); color: var(--navy); }
.badge.flag { background: #fff0f0; color: var(--danger); font-weight: 600; }
pre.output { white-space: pre-wrap; word-break: break-word; background: #0f1530; color: #e8ecf8; padding: 14px; font-size: 13px; line-height: 20px; max-height: 560px; overflow: auto; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
dl.facts dt { font-weight: 600; color: var(--navy); }
dl.facts dd { margin: 0; }

footer { background: var(--navy); color: var(--gold); text-align: center; font-weight: 600; font-size: 15px; padding: 14px 16px; }

@media (min-width: 768px) {
  .top-strip { display: block; }
  .options { grid-template-columns: 1fr 1fr; }
  .round { grid-template-columns: repeat(3, 1fr); }
  .band h1 { font-size: 40px; }
  .card { padding: 36px 40px; }
  .actions .btn { flex: 0 0 auto; }
}
@media (min-width: 1100px) {
  nav.menu { display: flex; }
  .btn.header-btn { display: inline-block; }
  .burger { display: none; }
  .logo img { height: 64px; }
  .band h1 { font-size: var(--h1-size); line-height: var(--h1-line); }
}

/* Start page: opening, proof points, two-column layout with side panel */
.band .eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin: 0 0 10px; }
.band .proof { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: rgba(255,255,255,.8); }
.band .proof b { color: var(--white); }
.layout { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
.layout > .card { margin: 0; max-width: none; }
.side { display: none; }
.time-note { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; }
.summary dl { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0; font-size: 14px; line-height: 20px; }
.summary dt { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-top: 10px; }
.summary dd { margin: 0; color: var(--navy); font-weight: 600; word-break: break-word; }
.sample .sample-tag { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin: 0 0 4px; font-weight: 600; }
.sample h3 { margin-top: 0; }
.jrow { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #eef0f4; font-size: 14px; line-height: 20px; }
.jrow .score { flex: 0 0 52px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center;
               background: var(--surface-blue); color: var(--blue); font-weight: 700; font-size: 18px; }
.jrow .score small { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.jrow small { color: var(--text-muted); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.badges span { font-size: 11px; padding: 1px 7px; background: #eef1f7; color: var(--navy); }
.sample-note { font-size: 13px; line-height: 19px; color: var(--text-muted); margin: 8px 0 0; }
@media (min-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; max-width: 1140px; align-items: start; }
  .side { display: grid; gap: 20px; position: sticky; top: 96px; }
  .side .card { padding: 22px 24px; }
}
