/* Diih-Jcop — clone Jusbrasil (mobile) — página isca
   paleta real jusbrasil.com.br (recon 2026):
   verde primário #007a5f · link azul #0474e2 · navy #2b3950
   corpo slate #455468 · títulos #0f172a · bordas #b3c0d0/#e3e9f0
   flat, leve, sem sombras pesadas, sem emoji */
:root {
  --ink: #0f172a;
  --txt: #455468;
  --muted: #5c6f8a;
  --navy: #2b3950;
  --line: #e3e9f0;
  --line-2: #eef2f7;
  --line-strong: #b3c0d0;
  --bg: #ffffff;
  --green: #007a5f;
  --green-d: #00654e;
  --green-bg: #e8f5f0;
  --blue: #0474e2;
  --blue-bg: #eef5fd;
  --red: #e30613;
  --amber-bg: #fffaf0;
  --amber-line: #f3e2c3;
  --amber-ink: #8a5a12;
  --amber-accent: #e8a13c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--txt);
  font-size: 14.5px;
  line-height: 1.5;
  width: 100%;
  max-width: 100vw;
  /* clip impede rolagem lateral SEM virar container de scroll (vertical funciona) */
  overflow-x: clip;
}
button { font-family: inherit; }
a { color: var(--blue); text-decoration: none; }
img, svg, pre, code, video, iframe { max-width: 100%; }

/* ── topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1080px; margin: 0 auto;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-symbol { width: 28px; height: 25px; display: block; }
.wordmark { font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: var(--ink); }
.wordmark .tld { color: var(--line-strong); font-weight: 700; font-size: 14px; margin-left: 1px; }
.topbar-icons { display: flex; gap: 4px; }
.ic-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 0; background: transparent; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.ic-btn:active { background: var(--line-2); }

/* ── search ── */
.searchwrap { max-width: 1080px; margin: 0 auto; padding: 14px 16px 4px; }
.search-pill {
  display: flex; align-items: center; gap: 10px;
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
}

/* ── main ── */
.main { max-width: 680px; margin: 0 auto; padding: 12px 16px 40px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }
.crumbs .sep { margin: 0 6px; color: var(--line-strong); }

.proc-title {
  font-size: 20px; font-weight: 600; letter-spacing: -.2px;
  color: var(--ink); margin-bottom: 10px;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  font-size: 12px; font-weight: 600;
  border-radius: 500px;
  background: #f1f4f8; color: var(--navy);
  border: 1px solid #dbe3ec;
  padding: 4px 12px;
}
.chip-alert { background: var(--amber-bg); color: var(--amber-ink); border-color: var(--amber-line); }
.chip-ok { background: var(--green-bg); color: var(--green); border-color: #c9e8dc; }

/* ── cards ── */
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg);
}
.card-h {
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}

.partes { display: grid; grid-template-columns: 1fr; gap: 12px; }
.parte { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: baseline; }
@media (max-width: 480px) { .parte { grid-template-columns: 1fr; gap: 2px; } }
.parte-l { font-size: 12px; font-weight: 600; color: var(--muted); }
.parte-n { font-size: 15px; font-weight: 700; color: var(--ink); }
.parte-a { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ── aviso de urgência ── */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-left: 3px solid var(--amber-accent);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 12px;
}
.notice-ic { font-size: 18px; line-height: 1.3; color: var(--amber-accent); display: flex; }
.notice-ic svg { width: 18px; height: 18px; }
.notice-t { font-size: 14.5px; font-weight: 700; color: var(--amber-ink); }
.notice-s { font-size: 13px; color: #7c6a3f; margin-top: 2px; line-height: 1.45; }
.notice-s b { color: var(--amber-ink); font-weight: 700; }

.court { font-size: 15px; font-weight: 600; color: var(--ink); }
.court-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.kv {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
}
.kv:last-child { border-bottom: 0; padding-bottom: 0; }
.kv:first-of-type { padding-top: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; color: var(--navy); text-align: right; }

/* ── CTA (botão primário do site real: verde #007a5f) ── */
.cta {
  display: block; width: 100%;
  border: 0; border-radius: 10px;
  background: var(--green);
  color: #fff;
  padding: 13px 16px;
  margin: 6px 0 10px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(25, 52, 102, .10);
  text-align: left;
  transition: background .15s ease, transform .06s ease;
}
.cta:active { transform: scale(.995); background: var(--green-d); }
.cta.done { background: var(--green-d); cursor: default; }
.cta-t { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.cta-t svg { width: 17px; height: 17px; flex: 0 0 auto; }
.cta-s { display: block; font-size: 12.5px; opacity: .92; margin-top: 2px; font-weight: 500; }
.trust {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11.5px; color: var(--muted);
  margin: 0 0 14px; letter-spacing: .2px;
}
.trust svg { width: 12px; height: 12px; flex: 0 0 auto; }

/* ── andamentos ── */
.andamentos { list-style: none; }
.andamentos li {
  position: relative;
  padding: 0 0 16px 24px;
}
.andamentos li::before {
  content: "";
  position: absolute; left: 5px; top: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-strong);
}
.andamentos li:first-child::before {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, .12);
}
.andamentos li::after {
  content: "";
  position: absolute; left: 8.5px; top: 17px; bottom: -2px;
  width: 1px; background: var(--line);
}
.andamentos li:last-child { padding-bottom: 2px; }
.andamentos li:last-child::after { display: none; }
.and-d { font-size: 12px; color: var(--muted); font-weight: 600; }
.and-n { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-top: 1px; }

/* ── documentos ── */
.docs { display: grid; grid-template-columns: 1fr; gap: 8px; }
.doc-item {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  color: inherit;
}
.doc-item:active { background: var(--line-2); }
.doc-hl { border-color: var(--amber-line); background: var(--amber-bg); }
.doc-ic { color: var(--muted); display: flex; }
.doc-ic svg { width: 18px; height: 18px; }
.doc-t { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--navy); display: flex; flex-direction: column; }
.doc-t small { font-size: 12px; color: var(--muted); font-weight: 500; }
.doc-dl {
  font-size: 12.5px; font-weight: 600; color: var(--blue);
  background: var(--blue-bg);
  border-radius: 8px;
  padding: 6px 12px;
}

/* ── footer ── */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 24px; padding-top: 16px;
  font-size: 12px; color: var(--muted); text-align: center;
}

/* ── loader ── */
.loader {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(255, 255, 255, .97);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.loader-box { text-align: center; max-width: 320px; }
.spinner {
  width: 28px; height: 28px; margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-t { font-size: 15px; font-weight: 600; color: var(--ink); }
.loader-s { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
