/* Unshadow, wearing Black Rabbit's clothes.

   Same class names the tool already used - the only change in the PHP was
   dropping its old inline stylesheet and linking this instead. Square edges,
   hairline borders, light caught along the top of every panel: the wet black
   of the main site. */

:root {
  --bg:    #050506;
  --card:  #0c0c10;
  --fg:    #efece6;
  --muted: #8f8b84;
  --line:  rgba(239, 243, 249, .14);
  --wet:   rgba(214, 226, 240, .06);
  --warn:  #c9a227;
  --bad:   #c4452f;
  --good:  #6faf7a;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(196, 214, 236, .10) 0%, rgba(196, 214, 236, .03) 34%, rgba(5, 5, 6, 0) 62%),
    var(--bg);
  background-attachment: fixed;
}

main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.5rem clamp(20px, 4vw, 56px) 5rem; }

/* ------------------------------------------------------------- header -- */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .4rem 0 1.7rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.brand:hover { color: #fff; }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: cover;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------- type -- */

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: .4rem 0 1rem;
  background: linear-gradient(168deg, #ffffff 0%, #e6e9ee 34%, #9aa2ad 76%, #6d747e 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
h1 em {
  display: block;
  font-style: italic;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 2.2rem 0 .8rem;
  color: var(--fg);
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  h1 { color: var(--fg); background: none; }
}

/* -------------------------------------------------------------- cards -- */

.card {
  position: relative;
  background:
    linear-gradient(to bottom, var(--wet) 0%, rgba(5, 5, 6, 0) 46%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.5rem 1.6rem;
  margin: .9rem 0;
}

.card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: linear-gradient(to right,
              rgba(239, 243, 249, 0) 0%,
              rgba(239, 243, 249, .4) 20%,
              rgba(239, 243, 249, .1) 62%,
              rgba(239, 243, 249, 0) 100%);
}

.landing { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(500px, 1.3fr); gap: 4vw; align-items: start; }
.syms { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.6rem; }

@media (max-width: 900px) {
  .landing, .syms, .report-grid { grid-template-columns: 1fr; }
  header { flex-wrap: wrap; }
}

/* --------------------------------------------------------------- form -- */

label { display: block; font-size: 15px; margin: 1.1rem 0 .45rem; color: var(--muted); }

input[type=text], textarea {
  width: 100%;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .95rem 1rem;
  font-family: var(--sans);
  font-size: 16px;
}
input[type=text]::placeholder, textarea::placeholder { color: #5f5c57; }
input[type=text]:focus, textarea:focus { outline: none; border-color: rgba(239, 236, 230, .5); }
textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }

.sym {
  display: flex;
  gap: .9rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(239, 236, 230, .07);
  align-items: flex-start;
  cursor: pointer;
  font-size: 16.5px;
  line-height: 1.45;
}
.sym:first-of-type { border-top: 0; }

.sym input {
  appearance: none;
  -webkit-appearance: none;
  width: 26px; height: 26px;
  flex: 0 0 26px;
  margin: 2px 0 0;
  border-radius: 0;
  background: transparent;
  border: 1px solid rgba(239, 243, 249, .3);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.sym input:checked { background: var(--fg); border-color: var(--fg); }
.sym input:checked::after { content: "\2713"; color: var(--bg); font-size: 17px; font-weight: 700; line-height: 1; }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 1.7rem;
  border: 1px solid var(--fg);
  border-radius: 0;
  background-image: linear-gradient(to bottom, #ffffff 0%, #dcdfe4 100%);
  color: #08080a;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 26px rgba(0, 0, 0, .55);
  transition: background .25s, color .25s;
}
button:hover, .btn:hover { background-image: none; background: transparent; color: var(--fg); }

button.ghost, .btn.ghost {
  background: transparent;
  background-image: linear-gradient(to bottom, rgba(214, 226, 240, .09), rgba(214, 226, 240, 0));
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: none;
}
button.ghost:hover, .btn.ghost:hover { border-color: rgba(239, 236, 230, .5); }

.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }

/* ------------------------------------------------------------- states -- */

.warn  { color: var(--warn); }
.bad   { color: var(--bad); }
.good  { color: var(--good); }
.muted { color: var(--muted); }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.idcard { display: flex; gap: 1rem; align-items: center; }
.idcard img, .ph {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: #14141a;
  object-fit: cover;
  border: 1px solid var(--line);
}

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 0;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill.high { color: var(--bad);  border-color: rgba(196, 69, 47, .45); }
.pill.med  { color: var(--warn); border-color: rgba(201, 162, 39, .4); }
.pill.care { color: #8fb3c4; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: .6rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

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

#chatlog { max-height: 260px; overflow: auto; font-size: 15px; line-height: 1.55; }
#chatlog p { margin: .5rem 0; }
#chatlog .you { color: var(--muted); }

.chatbox { display: flex; gap: .5rem; margin-top: .8rem; }
.chatbox input { flex: 1; min-width: 0; }

/* ------------------------------------------------------------- footer -- */

footer {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }

/* the way back to the rest of the site */
.backhome {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 10px 16px;
  background-image: linear-gradient(to bottom, rgba(214, 226, 240, .09), rgba(214, 226, 240, 0));
}
.backhome:hover { color: var(--fg); border-color: rgba(239, 236, 230, .45); }
