/* The candidate's page: Remix Partners brand, light only. Plain, square and quiet.
   Tokens are copied by value from the Remix design system. No licensed font ships
   here: text is the brand's approved Arial alternate, mono is Roboto Mono or the
   system monospace. Everything stays in this file (the CSP allows no inline style). */

:root {
  color-scheme: light;
  --rp-ink: #1d1d1c;
  --rp-paper: #ffffff;
  --rp-paper-2: #f5f5f2;
  --rp-lime: #e0f61e;
  --rp-lime-hover: color-mix(in oklab, #e0f61e 88%, #1d1d1c);
  --rp-blush: #f2e8ed;
  --rp-grey-700: #4a4a47;
  --rp-grey-500: #8a8a85;
  --rp-grey-150: #dcdcd8;
  --rp-hairline: rgba(29, 29, 28, 0.15);
  --rp-lavender-soft: #dee1eb;
  --rp-tan-soft: #c1b59c;
  --rp-rose-soft: #cebab3;
  /* Status colors are not brand colors; tuned to sit with the palette, AA on their tint. */
  --rp-warn: #6b4600;
  --rp-warn-soft: #f6efdc;
  --rp-warn-line: #c8a45a;
  --rp-error: #8f1d1d;
  --rp-error-soft: #f8e9e8;
  --rp-error-line: #c98a88;
  --rp-gutter: 16px;
  --rp-measure: 62ch;
  --rp-ease: cubic-bezier(0.2, 0, 0.2, 1);
  --rp-font-sans: Arial, Helvetica, sans-serif;
  --rp-font-mono: "Roboto Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--rp-paper);
  color: var(--rp-ink);
  font: 16px/1.4 var(--rp-font-sans);
  overflow-wrap: break-word;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 0.5em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; margin-top: 1.4em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 0.9em; }
p, li { line-height: 1.5; }
.card p, .card li, .markdown p, .markdown li { max-width: var(--rp-measure); }
a { color: var(--rp-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Focus is never removed. Boxes get a lime ring beside an ink edge; text gets an ink ring. */
a:focus-visible, summary:focus-visible { outline: 2px solid var(--rp-ink); outline-offset: 3px; }
button:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--rp-lime); outline-offset: 0; border-color: var(--rp-ink);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--rp-gutter); top: 8px; background: var(--rp-paper); border: 2px solid var(--rp-ink); padding: 6px 10px; z-index: 10; }

/* Mono eyebrow: uppercase, +10% tracking. The lime dot is added only where it is the one accent. */
.day, .eyebrow {
  font-family: var(--rp-font-mono); font-weight: 500; font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--rp-ink);
}

/* --- top bar ------------------------------------------------------------------- */

.top { background: var(--rp-paper); border-bottom: 2px solid var(--rp-ink); }
.top-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px var(--rp-gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
}
.brand { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.wordmark { display: block; width: 191px; height: 22px; flex: none; }
.brand #company {
  font-family: var(--rp-font-mono); font-size: 0.8125rem; font-weight: 500; color: var(--rp-grey-700);
  letter-spacing: 0.02em; overflow-wrap: anywhere;
}
@media (min-width: 600px) {
  .brand #company { padding-left: 14px; border-left: 1px solid var(--rp-hairline); }
}
.top-links { display: flex; flex-wrap: wrap; gap: 8px; }
.top-button {
  font-family: var(--rp-font-mono); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.02em;
  color: var(--rp-ink); background: var(--rp-paper);
  border: 1px solid var(--rp-ink); border-radius: 999px; padding: 6px 14px; min-height: 36px; cursor: pointer;
  transition: background-color 120ms var(--rp-ease), color 120ms var(--rp-ease);
}
.top-button:hover { background: var(--rp-ink); color: var(--rp-paper); }
.hub-tab[aria-current="page"] { background: var(--rp-ink); color: var(--rp-paper); }
a.hub-link { text-decoration: none; display: inline-flex; align-items: center; }
.hub-link.is-soon { color: var(--rp-grey-500); border-color: var(--rp-grey-150); cursor: default; display: inline-flex; align-items: center; }
.hub-link.is-soon:hover { background: var(--rp-paper); color: var(--rp-grey-500); }

.notice {
  max-width: 1120px; margin: 12px auto 0; padding: 10px 14px;
  background: var(--rp-warn-soft); color: var(--rp-warn); border: 1px solid var(--rp-warn-line);
  white-space: pre-wrap;
}
@media (max-width: 1151px) { .notice { margin-left: var(--rp-gutter); margin-right: var(--rp-gutter); } }

/* --- layout -------------------------------------------------------------------- */

.layout {
  max-width: 1120px; margin: 0 auto; padding: 16px var(--rp-gutter) 48px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
}
@media (min-width: 900px) {
  .layout { grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding-top: 32px; }
  .layout:has(> .steps[hidden]) { grid-template-columns: minmax(0, 1fr); }
  .steps { position: sticky; top: 20px; align-self: start; }
}
.screen { min-width: 0; outline: none; }

/* Depth is a 2px ink keyline, never a shadow. */
.card {
  background: var(--rp-paper); border: 2px solid var(--rp-ink);
  padding: 22px 20px; max-width: 760px;
}
@media (min-width: 600px) { .card { padding: 32px 34px; } }

.lede { font-size: 1.125rem; }
.fine { color: var(--rp-grey-700); font-size: 0.9375rem; }
.day { margin-bottom: 0.7em; }
.card .day::before, .card .eyebrow::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 999px;
  background: var(--rp-lime); margin-right: 0.7em; vertical-align: 0.05em;
}
.step-head { margin-bottom: 1.2em; }
.step-head .meta { color: var(--rp-grey-700); margin: 0; }

/* --- steps list ---------------------------------------------------------------- */

.steps-details {
  background: var(--rp-paper); border: 1px solid var(--rp-hairline);
  padding: 10px 14px;
}
.steps-details > summary { cursor: pointer; font-weight: 700; color: var(--rp-ink); font-size: 0.95rem; }
.steps-details[open] > summary { margin-bottom: 8px; }
.summary-due { display: block; font-weight: 400; font-size: 0.85rem; color: var(--rp-grey-700); margin-left: 1.1em; }
.steps ol { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; color: var(--rp-grey-700); }
.steps li + li { border-top: 1px solid var(--rp-hairline); }
.steps .marker {
  flex: none; width: 24px; height: 24px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--rp-font-mono); font-size: 0.75rem; font-weight: 500;
  border: 1px solid var(--rp-grey-500); background: var(--rp-paper); color: var(--rp-grey-700);
}
.steps .label { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.steps .label .day { font-size: 0.6875rem; margin: 0 0 2px; color: var(--rp-grey-700); }
.steps .label .title { font-size: 0.92rem; }
.steps li.now { color: var(--rp-ink); }
.steps li.now .label .title { font-weight: 700; }
.steps li.now .marker { background: var(--rp-ink); border-color: var(--rp-ink); color: var(--rp-paper); }
.steps li.now .label .day { color: var(--rp-ink); }
.steps li.done .marker { background: var(--rp-paper-2); border-color: var(--rp-ink); color: var(--rp-ink); }

/* --- buttons and status -------------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 1.2em 0 0.6em; }

button, .button {
  font-family: var(--rp-font-mono); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.02em;
  border-radius: 999px; padding: 10px 20px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; color: var(--rp-ink);
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  transition: background-color 120ms var(--rp-ease), color 120ms var(--rp-ease), transform 120ms var(--rp-ease);
}
button:active, .button:active { transform: scale(0.98); }
button.primary, .button.primary { background: var(--rp-lime); color: var(--rp-ink); }
button.primary:hover, .button.primary:hover { background: var(--rp-lime-hover); }
button.secondary, .button.secondary { background: var(--rp-blush); color: var(--rp-ink); }
button.secondary:hover, .button.secondary:hover { background: var(--rp-ink); color: var(--rp-paper); }
button:disabled { opacity: 0.4; cursor: default; }
button:disabled:active { transform: none; }
.link-button {
  background: none; border: none; color: var(--rp-ink); padding: 4px 2px; min-height: 0;
  font-family: var(--rp-font-sans); font-size: 1rem; font-weight: 700; letter-spacing: 0;
  text-decoration: underline; text-underline-offset: 3px;
  text-align: left; justify-content: flex-start; border-radius: 0;
}
.link-button:hover { background: none; text-decoration-thickness: 2px; }
.back { margin-bottom: 12px; }

.save-status { margin: 0.6em 0 0; font-size: 0.95rem; color: var(--rp-grey-700); }
.save-status:empty { display: none; }
.save-status.warn { color: var(--rp-warn); background: var(--rp-warn-soft); border: 1px solid var(--rp-warn-line); padding: 8px 12px; }
.save-status.error { color: var(--rp-error); background: var(--rp-error-soft); border: 1px solid var(--rp-error-line); padding: 8px 12px; }

.confirm { background: var(--rp-paper-2); border: 1px solid var(--rp-hairline); padding: 12px 14px; }
.confirm .actions { margin: 0.4em 0 0; }
.after-call { margin-top: 1.6em; padding-top: 1.2em; border-top: 1px solid var(--rp-hairline); }

/* --- welcome and materials ----------------------------------------------------- */

.rules { padding-left: 1.2em; margin: 0 0 1em; }
.rules li { margin-bottom: 0.45em; }
.rules-box { border: 1px solid var(--rp-hairline); padding: 10px 14px; margin-bottom: 1.2em; }
.rules-box > summary { cursor: pointer; font-weight: 700; }
.rules-box[open] > summary { margin-bottom: 10px; }

/* Acme's handoff and pack are content, not Remix documents: they only share the page chrome. */
.doc { margin-top: 1.6em; }
.doc video { width: 100%; max-height: 70vh; background: var(--rp-ink); display: block; }
.handoff { background: var(--rp-paper-2); padding: 4px 18px 8px; }
.pack { border: 1px solid var(--rp-hairline); }
.pack-item + .pack-item { border-top: 1px solid var(--rp-hairline); }
.pack-item > summary { cursor: pointer; padding: 11px 14px; font-weight: 700; }
.pack-item[open] > summary { border-bottom: 1px solid var(--rp-hairline); background: var(--rp-paper-2); }
.pack-item .markdown { padding: 6px 16px 10px; }

.markdown h1 { font-size: 1.4rem; margin-top: 0.9em; }
.markdown h2 { font-size: 1.15rem; }
.markdown h3 { font-size: 1rem; }
.markdown ul, .markdown ol { padding-left: 1.3em; }
.markdown blockquote { margin: 0 0 1em; padding: 0 0 0 14px; border-left: 2px solid var(--rp-grey-500); color: var(--rp-grey-700); }
.markdown code { font-family: var(--rp-font-mono); font-size: 0.9em; background: var(--rp-paper-2); padding: 1px 4px; }
.markdown pre { overflow-x: auto; background: var(--rp-paper-2); padding: 10px; }
.markdown hr { border: none; border-top: 1px solid var(--rp-hairline); margin: 1.4em 0; }
.table-scroll { overflow-x: auto; margin: 0 0 1em; -webkit-overflow-scrolling: touch; }
.markdown table { border-collapse: collapse; font-size: 0.92rem; min-width: 100%; }
.markdown th, .markdown td { border: 1px solid var(--rp-hairline); padding: 6px 9px; text-align: left; vertical-align: top; }
.markdown th { background: var(--rp-paper-2); font-weight: 700; }
@media (max-width: 599px) {
  .markdown th, .markdown td { min-width: 8em; }
  .handoff { padding: 2px 12px 6px; }
  .pack-item .markdown { padding: 4px 10px 8px; }
  .card { padding: 20px 16px; }
}

/* --- waiting ------------------------------------------------------------------- */

.pulse { display: flex; gap: 8px; margin: 6px 0 18px; }
.pulse span { width: 9px; height: 9px; border-radius: 999px; background: var(--rp-ink); opacity: 0.2; animation: pulse 1.8s infinite var(--rp-ease); }
.pulse span:nth-child(2) { animation-delay: 0.3s; }
.pulse span:nth-child(3) { animation-delay: 0.6s; }
@keyframes pulse { 50% { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) { .pulse span { animation: none; opacity: 0.5; } }
.help { background: var(--rp-warn-soft); color: var(--rp-warn); border: 1px solid var(--rp-warn-line); padding: 10px 14px; }

/* --- inbox and hand-in --------------------------------------------------------- */

.email { border: 1px solid var(--rp-hairline); overflow: hidden; }
.email-head { background: var(--rp-paper-2); padding: 14px 16px; border-bottom: 1px solid var(--rp-hairline); }
.email-subject { margin: 0 0 6px; font-size: 1.1rem; }
.email-head dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin: 0; font-size: 0.92rem; }
.email-head dt { color: var(--rp-grey-700); }
.email-head dd { margin: 0; }
.email-body { padding: 16px; white-space: pre-wrap; }
.reply { margin-top: 1.6em; }

.field { margin-top: 1.2em; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field .hint { color: var(--rp-grey-700); font-size: 0.92rem; margin-bottom: 8px; }
textarea {
  width: 100%; font: inherit; color: inherit; background: var(--rp-paper);
  border: 1px solid var(--rp-ink); border-radius: 0; padding: 10px 12px; resize: vertical;
}
textarea:disabled { background: var(--rp-paper-2); border-color: var(--rp-grey-500); }

/* --- closed: text that was not handed in -------------------------------------- */

.unsent { margin-top: 1.6em; padding-top: 1.2em; border-top: 1px solid var(--rp-hairline); }
.unsent h2 { margin-top: 0; font-size: 1.1rem; }
.unsent h3 { margin-top: 1.2em; }
.unsent-label { font-weight: 700; margin: 0.8em 0 0.3em; }
.unsent-text {
  white-space: pre-wrap; overflow-wrap: anywhere; background: var(--rp-paper-2); border: 1px solid var(--rp-hairline);
  padding: 12px 14px; user-select: text; -webkit-user-select: text;
}

/* --- transcripts --------------------------------------------------------------- */

.transcript-list { list-style: none; padding: 0; margin: 0 0 1em; }
.transcript-list li { padding: 4px 0; }
.transcript {
  white-space: pre-wrap; font-family: var(--rp-font-mono); font-size: 0.86rem; line-height: 1.55;
  background: var(--rp-paper-2); padding: 14px; margin: 0;
}

/* --- team chat ----------------------------------------------------------------- */

.card.chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chat-head {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--rp-hairline); background: var(--rp-paper-2);
}
.chat-title { display: flex; flex-direction: column; min-width: 0; }
.chat-channel { font-weight: 700; font-size: 1.05rem; }
.chat-members { color: var(--rp-grey-700); font-size: 0.86rem; }
.chat-status { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; }
.chat-conn { color: var(--rp-grey-700); }
.chat-conn.on { color: var(--rp-ink); }
.chat-conn.on::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--rp-ink); margin-right: 6px; }
.chat-clock { font-family: var(--rp-font-mono); font-variant-numeric: tabular-nums; font-weight: 500; background: var(--rp-paper); border: 1px solid var(--rp-hairline); padding: 2px 10px; border-radius: 999px; }
.chat-clock.low { color: var(--rp-warn); background: var(--rp-warn-soft); border-color: var(--rp-warn-line); }

.chat-thread {
  list-style: none; margin: 0; padding: 12px 16px; min-height: 280px; max-height: 60vh; overflow-y: auto;
}
@media (max-width: 599px) { .chat-thread { max-height: 55vh; } }
.chat-msg { display: flex; gap: 10px; padding: 7px 0; }
.chat-body { min-width: 0; }
.chat-name { font-weight: 700; font-size: 0.92rem; }
.chat-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.you .chat-name { color: var(--rp-grey-700); }
.chat-system { text-align: center; color: var(--rp-grey-700); font-size: 0.85rem; padding: 8px 0; }
.chat-system span { background: var(--rp-paper-2); padding: 2px 10px; border-radius: 999px; }
/* Persona initials sit on the brand's soft tints with ink text, so every tone passes AA. */
.avatar {
  flex: none; width: 34px; height: 34px; border-radius: 0; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; color: var(--rp-ink); background: var(--rp-grey-150);
}
.avatar.tone-0 { background: var(--rp-lavender-soft); }
.avatar.tone-1 { background: var(--rp-tan-soft); }
.avatar.tone-2 { background: var(--rp-rose-soft); }
.avatar.tone-3 { background: var(--rp-blush); }
.chat-msg.you .avatar { background: var(--rp-ink); color: var(--rp-paper); }
.chat-msg.cont { padding-top: 0; }
.chat-msg.cont .avatar { visibility: hidden; height: 0; }
.chat-msg.cont .chat-name { display: none; }

.chat-msg.pending { opacity: 0.55; }
.chat-pending { display: block; color: var(--rp-grey-700); font-size: 0.8rem; font-style: italic; }
.chat-typing { margin: 0; padding: 0 16px; min-height: 1.4em; color: var(--rp-grey-700); font-size: 0.85rem; font-style: italic; }
.chat-rejoin { margin: 8px 16px; padding: 10px 12px; background: var(--rp-warn-soft); border: 1px solid var(--rp-warn-line); color: var(--rp-warn); }
.chat-rejoin p { margin: 0 0 8px; }
.chat-composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 16px; border-top: 1px solid var(--rp-hairline); }
.chat-composer textarea { flex: 1; min-width: 0; resize: none; }
.chat-leave { padding: 0 16px 6px; text-align: right; font-size: 0.9rem; }
.chat-leave .confirm { text-align: left; }
.chat-closing { padding: 12px 16px; border-top: 1px solid var(--rp-hairline); }
.card.chat > .save-status { margin: 0 16px 12px; }

[hidden] { display: none !important; }
