/* ────────────────────────────────────────────────────────────────
   Interview Prep Pack — prep.noahlot.com

   Wearing the NLGS / Patent Progeny scheme: white ground, black
   type, one grey metal blue for every job an accent has to do, IBM
   Plex superfamily, hairline rules instead of shadows. The alert
   red is reserved for a deadline that is genuinely short or past,
   and for failed requests. A healthy page never shows it.
   ──────────────────────────────────────────────────────────────── */

:root {
  --paper: #FFFFFF;
  --card: #FFFFFF;

  --ink: #000000;
  --ink-soft: #2E353C;
  --muted: #464E57;

  --steel: #46586B;
  --steel-deep: #354454;
  --steel-05: rgba(70, 88, 107, .045);
  --steel-12: rgba(70, 88, 107, .17);
  --steel-30: rgba(70, 88, 107, .42);

  --rule: rgba(70, 88, 107, .17);

  --alert: #8A2B2B;
  --alert-deep: #6B2020;
  --alert-wash: #FBF3F3;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: clip;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

main.wrap { padding-bottom: 90px; }

/* ------------------------------------------------------------ masthead */

.masthead { padding: 22px 0 0; }

.rule-double { border-top: 1px solid var(--steel-30); height: 0; }

.masthead h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(29px, 3.7vw, 43px);
  letter-spacing: -0.016em;
  line-height: 1.17;
  margin: 30px 0 18px;
  text-align: center;
  text-wrap: balance;
}

.beta {
  font-family: var(--mono);
  font-size: .3em;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
  vertical-align: .95em;
  margin-left: .18em;
}

.standfirst {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 auto 22px;
  text-align: center;
  text-wrap: balance;
}

.notice {
  font-family: var(--mono);
  font-size: .76rem;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--steel-05);
  border-left: 2px solid var(--steel);
  padding: 13px 16px;
  max-width: 70ch;
  margin: 0 auto 30px;
}

/* ------------------------------------------------------------ search */

.search-block { padding: 48px 0 8px; }

.field {
  display: flex;
  border: 1px solid var(--steel-30);
  background: var(--card);
  transition: border-color .25s ease;
}

.field:focus-within { border-color: var(--steel); }

.field-second { margin-top: 12px; }
.field-second input { font-size: .92rem; padding: 13px 22px; }
.field-second button { background: transparent; color: var(--steel); border-left: 1px solid var(--steel-30); }
.field-second button:hover { background: var(--steel-05); }

.field input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 19px 22px;
  font-family: var(--mono);
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  min-width: 0;
}

.field input:focus { outline: none; }
.field input::placeholder { color: var(--muted); opacity: .62; }

.field button {
  border: 0;
  border-left: 1px solid var(--steel);
  background: var(--steel);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 0 30px;
  cursor: pointer;
  transition: background .25s ease;
}

.field button:hover { background: var(--steel-deep); }
.field-second button:hover { background: var(--steel-05); }
.field button:disabled { background: var(--muted); cursor: default; }
.field-second button:disabled { background: transparent; color: var(--muted); }

.hint {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
  margin: 14px 2px 0;
  min-height: 1.3em;
}

.hint.error { color: var(--alert); }

/* ------------------------------------------------------------ shared */

.section-label {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--steel-30);
}

.alert {
  background: var(--alert-wash);
  border-top: 1px solid var(--alert);
  border-bottom: 1px solid var(--alert);
  color: var(--alert-deep);
  padding: 13px clamp(20px, 5vw, 56px);
  font-size: .92rem;
}

.candidates { padding-top: 46px; }
.candidate-list { display: grid; gap: 12px; }

.candidate {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  text-align: left;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--steel-12);
  border-left: 3px solid var(--steel-30);
  padding: 17px 20px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-left-color .16s ease, background-color .16s ease, transform .16s ease;
}

.candidate:hover { border-left-color: var(--steel); background: var(--steel-05); transform: translateX(3px); }
.candidate .num { font-family: var(--mono); font-size: 1.02rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.candidate .why { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.candidate .ttl { flex-basis: 100%; font-family: var(--serif); color: var(--ink-soft); }

.progress {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 44px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid var(--steel-12);
  border-top-color: var(--steel);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ app view */

.app-view { padding-top: 46px; animation: rise .5s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}

.family-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  border-bottom: 1px solid var(--steel-30);
  padding-bottom: 18px;
  margin-bottom: 30px;
}

.family-head h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 1.95rem);
  letter-spacing: -.012em;
  line-height: 1.18;
  margin: 0 0 7px;
  text-wrap: balance;
}

.family-meta {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.ghost {
  flex: none;
  background: transparent;
  border: 1px solid var(--steel-30);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 9px 15px;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}

.ghost:hover { border-color: var(--steel); color: var(--steel); }
.ghost:disabled { color: var(--muted); border-color: var(--steel-12); cursor: default; }

.block { margin: 0 0 40px; }

.block-note {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--muted);
  margin: 12px 0 0;
}

/* ------------------------------------------------------------ deadline */

.deadline-lede { font-size: 1.02rem; color: var(--ink); margin: 0 0 14px; }
.deadline-lede strong { font-family: var(--sans); font-weight: 600; }

.deadline-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.deadline-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--steel-30);
  padding: 0 14px 8px 0;
}

.deadline-table td {
  font-family: var(--mono);
  font-size: .9rem;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--steel-12);
}

.deadline-table td.d-label { font-family: var(--serif); font-size: .96rem; }
.deadline-table tr.d-statutory td { font-weight: 600; }
.deadline-table tr.d-past td { color: var(--muted); text-decoration: line-through; }

.days-left {
  display: inline-block;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  border: 1px solid var(--steel-30);
  color: var(--steel);
  padding: 3px 8px;
  margin-left: 10px;
  vertical-align: 2px;
}

.days-left.short { border-color: var(--alert); color: var(--alert); }

.deadline-caveat {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.deadline-quiet { font-size: 1rem; color: var(--ink-soft); margin: 0; }

.overdue {
  border: 1px solid var(--alert);
  background: var(--alert-wash);
  color: var(--alert-deep);
  font-family: var(--serif);
  padding: 13px 16px;
  margin: 0 0 14px;
}

/* ------------------------------------------------------------ examiner */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--steel-12);
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--steel-12);
}

.stat-k { font-family: var(--serif); font-size: .95rem; color: var(--ink-soft); }
.stat-v { font-family: var(--mono); font-size: 1rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-v.accent { color: var(--steel); }

.examiner-name {
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.examiner-sub {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  margin: 0 0 16px;
}

.examiner-note {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.examiner-start { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.action {
  background: var(--card);
  border: 1px solid var(--steel-30);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.action:hover { background: var(--steel); border-color: var(--steel); color: var(--paper); }
.action:disabled { border-color: var(--steel-12); color: var(--muted); background: transparent; cursor: default; }

.job-note {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--steel-30);
}

.timeline li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 5px 0 5px 16px;
}

.tl-date { font-family: var(--mono); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-label { font-family: var(--serif); font-size: .95rem; }
.tl-CTNF .tl-label, .tl-CTFR .tl-label { font-weight: 600; }
.tl-NOA .tl-label, .tl-ISSUE\.NTF .tl-label { font-weight: 600; color: var(--steel); }

.citation-list { list-style: none; margin: 0; padding: 0; }
.citation-list li {
  font-family: var(--mono);
  font-size: .88rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--steel-12);
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.citation-date { color: var(--muted); font-size: .8rem; }

/* ------------------------------------------------------------ docket */

.recent { padding-top: 62px; }

.recent-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--steel-30);
  margin-bottom: 16px;
}

.recent-head .section-label { border-bottom: 0; margin: 0; padding-bottom: 9px; }
.recent-head .ghost { margin-bottom: 6px; padding: 6px 12px; }

.recent-list { list-style: none; margin: 0; padding: 0; }

.docket-row {
  border-bottom: 1px solid var(--steel-12);
  padding: 15px 4px;
  display: grid;
  grid-template-columns: 128px 1fr auto auto;
  gap: 20px;
  align-items: baseline;
}

.docket-open {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
  text-align: left;
  display: contents;
}

.docket-num { font-family: var(--mono); font-size: .94rem; font-variant-numeric: tabular-nums; }
.docket-title { font-family: var(--serif); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docket-due { font-family: var(--mono); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.docket-due.short { color: var(--alert); }

.docket-x {
  background: none; border: 1px solid var(--steel-12);
  color: var(--muted); width: 26px; height: 26px;
  font-size: .95rem; line-height: 1; cursor: pointer;
}
.docket-x:hover { border-color: var(--alert); color: var(--alert); }

/* ------------------------------------------------------------ colophon */

.colophon { padding: 0 0 64px; }
.rule-thin { border-top: 1px solid var(--steel-12); margin-bottom: 18px; }

.colophon p {
  font-family: var(--mono);
  font-size: .76rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 78ch;
  margin: 0;
}

.pp-priv { margin-top: 10px; }
.pp-priv a { color: #46586B; text-underline-offset: 3px; }

/* ------------------------------------------------------------ prep sheet */

/* Off-screen on screen; the only thing on paper. Built fresh at print time
   from whatever is loaded, so it never drifts from the page. */
.prep-sheet { display: none; }

@media print {
  body > *:not(.prep-sheet) { display: none !important; }
  .prep-sheet { display: block; font-size: 11pt; }
  .prep-sheet h1 { font-family: var(--sans); font-size: 16pt; margin: 0 0 2pt; }
  .prep-sheet .prep-meta { font-family: var(--mono); font-size: 8.5pt; color: #333; margin: 0 0 12pt; }
  .prep-sheet h2 {
    font-family: var(--mono); font-size: 8.5pt; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    border-bottom: 1px solid #999; padding-bottom: 3pt; margin: 14pt 0 6pt;
  }
  .prep-sheet table { width: 100%; border-collapse: collapse; }
  .prep-sheet td, .prep-sheet th {
    text-align: left; font-size: 9.5pt; padding: 3pt 8pt 3pt 0;
    border-bottom: 1px solid #DDD; vertical-align: baseline;
  }
  .prep-sheet .prep-foot { font-family: var(--mono); font-size: 7.5pt; color: #555; margin-top: 14pt; }
}

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

@media (max-width: 720px) {
  .family-head { flex-direction: column; align-items: stretch; }
  .head-actions { justify-content: flex-start; }
  .field { flex-direction: column; }
  .field button { border-left: 0; border-top: 1px solid var(--steel); padding: 15px; }
  .field-second button { border-top: 1px solid var(--steel-30); }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .docket-row { grid-template-columns: 1fr auto; }
  .docket-title { grid-column: 1 / -1; white-space: normal; }
  .deadline-table th:nth-child(3), .deadline-table td:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .app-view { opacity: 1; transform: none; }
}
