/* Lumio Equipo: plain, readable, phone first. */
:root {
  --bg: #f6f5f1;
  --card: #fff;
  --ink: #1c1c1c;
  --ink-2: #555;
  --ink-3: #767676;
  --line: #e4e2dc;
  --accent: #5e17eb;
  --accent-ink: #4a10bd;
  --accent-wash: #efe8fd;
  --bad: #b3261e;
  --bad-wash: #fdecea;
  --ok: #2b7a21;
  --ok-wash: #e9f6e7;
  --radius: 10px;
  --gutter: 16px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px / 1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

a {
  color: var(--accent-ink);
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

h2.small,
h3.small {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

code {
  font-size: 0.9em;
  background: #eeece6;
  padding: 1px 5px;
  border-radius: 4px;
  word-break: break-all;
}

/* Header */
.top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-in {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px var(--gutter) 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
}

.brand span,
.login h1 span {
  color: var(--accent);
  font-weight: 600;
}

.me {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  min-width: 0;
}

.me a {
  color: var(--ink-2);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me form {
  margin: 0;
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-3);
  cursor: pointer;
  text-decoration: underline;
}

.nav {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: none;
  padding: 8px 10px 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px var(--gutter) 64px;
}

body.full {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

body.full .top {
  position: static;
}

body.full main {
  max-width: none;
  width: 100%;
  padding: 0;
  flex: 1;
  min-height: 0;
}

/* Page head */
.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.crumbs {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.lead {
  margin: -6px 0 16px;
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: 0.875rem;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.card.narrow {
  max-width: 640px;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.facts .wide {
  grid-column: 1 / -1;
}

.label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.transcript {
  margin-top: 12px;
  font-size: 0.92rem;
  max-height: 70vh;
  overflow: auto;
}

details > summary {
  cursor: pointer;
  font-weight: 600;
}

.block {
  margin-top: 28px;
}

.count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-3);
  background: #ebe9e3;
  border-radius: 999px;
  padding: 0 8px;
}

/* Lists */
.rows,
.files,
.events,
.comments {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rows {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.rows > li + li {
  border-top: 1px solid var(--line);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
}

a.row:hover,
.row a.row-main:hover strong {
  background: #faf9f6;
}

.row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--ink-3);
  text-align: right;
  flex: none;
  max-width: 45%;
}

.empty {
  color: var(--ink-3);
  padding: 12px 16px;
}

.group {
  margin-bottom: 20px;
}

.next {
  color: var(--ink-2);
  font-size: 0.92rem;
}

.late {
  color: var(--bad);
  font-weight: 600;
}

.files li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.files .file-title {
  font-weight: 600;
}

.files .muted {
  font-size: 0.875rem;
  flex: 1 1 200px;
}

.events li {
  font-size: 0.9rem;
  padding: 4px 0;
  color: var(--ink-2);
}

/* Stage badges */
.stage {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: #ebe9e3;
  color: var(--ink-2);
  white-space: nowrap;
}

.stage-primera_llamada {
  background: #e6f0fb;
  color: #1d5aa6;
}

.stage-reunion {
  background: var(--accent-wash);
  color: var(--accent-ink);
}

.stage-fundadora {
  background: var(--ok-wash);
  color: var(--ok);
}

.stage-perdida {
  background: #f1f0ec;
  color: var(--ink-3);
  text-decoration: line-through;
}

/* Chips */
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter)) 16px;
  padding: 0 var(--gutter) 2px;
  scrollbar-width: none;
}

.chip {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9rem;
}

.chip b {
  font-weight: 600;
  color: var(--ink-3);
  margin-left: 2px;
}

.chip[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip[aria-current="true"] b {
  color: #ccc;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.tag {
  font-size: 0.8rem;
  color: var(--ink-2);
  background: #f1f0ec;
  border-radius: 6px;
  padding: 1px 6px;
  text-decoration: none;
}

/* Posts and comments */
.post .meta,
.comment .meta {
  font-size: 0.875rem;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.post .text {
  margin-bottom: 8px;
}

.author {
  font-weight: 600;
  color: var(--ink);
}

.author small {
  font-weight: 600;
  font-size: 0.7rem;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comments {
  margin-bottom: 12px;
}

.comment {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
}

.comment.by-agent {
  border-left: 3px solid var(--accent);
}

.comments .empty {
  padding: 4px 0;
}

/* Forms */
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}

label.check,
label.inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

input,
select,
textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfccc4;
  border-radius: 8px;
  padding: 9px 11px;
  width: 100%;
  min-width: 0;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: none;
}

input[type="file"] {
  padding: 7px;
  background: #faf9f6;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.actions.wrap {
  flex-wrap: wrap;
  margin: 4px 0 8px;
  gap: 8px;
}

.actions.spread {
  justify-content: space-between;
  flex-wrap: wrap;
}

.actions.spread select {
  width: auto;
  max-width: 220px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid #cfccc4;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-ink);
}

.btn.small {
  padding: 4px 10px;
  font-size: 0.85rem;
}

.alert {
  background: var(--bad-wash);
  color: var(--bad);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 12px;
}

.ok {
  background: var(--ok-wash);
  color: var(--ok);
  border-radius: 8px;
  padding: 10px 12px;
}

.search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

/* Login */
body.bare main {
  max-width: 420px;
  padding-top: 12vh;
}

.login h1 {
  font-size: 1.8rem;
}

.login .stack {
  margin-top: 20px;
}

/* Playbook */
.playbook {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* Board (Markdown from Lola) */
.prose {
  overflow-wrap: anywhere;
}

.prose h1 {
  font-size: 1.35rem;
  margin: 8px 0 12px;
}

.prose h2 {
  display: block;
  font-size: 1.1rem;
  margin: 22px 0 8px;
}

.prose h3 {
  font-size: 1rem;
  margin: 16px 0 6px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.prose blockquote {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--line);
  color: var(--ink-2);
}

@media (max-width: 600px) {
  .nav {
    flex-wrap: wrap;
    gap: 0 2px;
  }

  .nav a {
    padding: 6px 8px 8px;
  }

  h1 {
    font-size: 1.3rem;
  }

  .two,
  .facts {
    grid-template-columns: 1fr;
  }

  .row {
    flex-direction: column;
    gap: 6px;
  }

  .row-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    text-align: left;
    max-width: none;
  }

  .tags {
    justify-content: flex-start;
  }

  .card {
    padding: 14px;
  }
}
