:root {
  --navy: #1a2b49;
  --navy-2: #24365a;
  --accent: #c9a24b;
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #e6e8ec;
  --text: #1f2430;
  --muted: #6b7280;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;   /* guard against sideways scroll from shifted cards */
}
a { color: var(--navy); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--navy); color: #fff;
}
.topbar a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 18px; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
/* Faded vertical divider between nav tabs (skips buttons like Sign up). */
.topbar nav a { position: relative; }
.topbar nav a + a:not(.btn)::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  height: 15px;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}
.who { color: #cdd4e0; font-size: 13px; }
.inline { display: inline; margin: 0; }
.link-btn { background: none; border: none; color: #fff; cursor: pointer; font-size: 14px; padding: 0; text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }

.btn {
  display: inline-block; background: var(--navy); color: #fff; border: none;
  padding: 11px 20px; border-radius: 8px; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--navy-2); }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn.small { padding: 7px 14px; font-size: 14px; }

/* Two-column landing: hero on the left, NEW-feature card on the right. */
.hero-wrap {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.hero { flex: 1 1 420px; max-width: 720px; }
.hero h1 { font-size: 38px; line-height: 1.15; margin: 10px 0 12px; color: var(--navy); }
.lede { font-size: 18px; color: #374151; }

/* Brand wordmark: cursive "Vespa's" first, then the starred brand line,
   all on one line (wraps on narrow screens). */
.wordmark {
  margin-bottom: 22px;
  margin-left: -26px;   /* nudge the title a touch left of the body text */
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.wordmark .vespas {
  font-family: 'Dancing Script', 'Brush Script MT', cursive;
  font-weight: 700;
  font-size: 96px;
  line-height: 1;
  color: var(--accent);
  transform: rotate(-4deg);
  transform-origin: left bottom;
}
.wordmark .brandline {
  font-size: 66px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  color: var(--navy);
}
.chi-star {
  color: #d21f3c;              /* Chicago-flag red */
  font-size: 42px;
  vertical-align: 20px;
  margin: 0;                   /* hug "Chi" */
}
.chi-star.last { margin-right: 22px; }  /* a little space before "BigLaw" */

/* Right-hand column holding the NEW-feature cards, stacked. */
.feature-col {
  flex: 0 0 360px;           /* fixed width, stays pinned top-right */
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(220px);  /* push cards further right, hero unmoved */
}

/* NEW-feature callout card. */
.feature-card {
  background: #fffdf7;
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 6px 20px rgba(26, 43, 73, 0.08);
}
.feature-badge {
  display: inline-block;
  background: var(--accent);
  color: #3a2c05;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.feature-card h2 { margin: 0 0 10px; font-size: 22px; color: var(--navy); }
.feature-card p { margin: 8px 0; color: #374151; font-size: 15px; }
.feature-card ul { margin: 8px 0; padding-left: 18px; color: #374151; font-size: 15px; }
.feature-card li { margin: 4px 0; }
.feature-kicker { font-weight: 700; color: var(--navy); }
.cta-row { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.features { color: var(--muted); padding-left: 18px; }
.features li { margin: 6px 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.card.narrow { max-width: 420px; margin: 20px auto; }
.card.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.stack input {
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px;
}
.muted { color: var(--muted); font-size: 14px; }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.flash.success { background: #e7f6ec; color: #1a7f43; }
.flash.error { background: #fdecec; color: #b42318; }
.flash.warn { background: #fff6e5; color: #92600a; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.flash.warn .link-btn { color: #92600a; }

.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.dash-head h1 { margin: 0 0 4px; color: var(--navy); }
.filter { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; min-width: 220px; }

/* Category filter chips (color-coordinated with the box shading). */
.filter-by { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.filter-by-label { font-weight: 700; color: var(--navy); font-size: 14px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid; font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; }
.fchip input { margin: 0; accent-color: currentColor; }
.fchip .fcount { font-size: 12px; background: rgba(255,255,255,0.65); padding: 1px 8px; border-radius: 999px; }
.fchip.patent { background: #e4f3e8; border-color: #7cc79a; color: #157347; }
.fchip.vault  { background: #fbe9d6; border-color: #e2ab6b; color: #9a5b12; }
.fchip.ian    { background: #ece3f7; border-color: #b298e0; color: #5e37a6; }
.fchip.ip     { background: #e3eefb; border-color: #7fb0e6; color: #185fa5; }
.fchip.nonip  { background: #eef0f3; border-color: #b6bcc6; color: #4a4f57; }

/* Labeled, color-coded filter categories (Loyola page). */
.filters { display: flex; flex-direction: column; margin: 6px 0 22px; }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.fg-label { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; min-width: 92px; }
.filter-group.ip .fg-label { color: #185fa5; }
.filter-group.practice .fg-label { color: #0f6e56; }
.filter-group.role .fg-label { color: #4a3d7a; }
.filter-group.vault .fg-label { color: #9a5b12; }
.filter-group.byfirm .fg-label { color: var(--navy); }
.filter-group.ip .fchip { background: #e3eefb; border-color: #7fb0e6; color: #185fa5; }
.filter-group.practice .fchip { background: #e1f5ee; border-color: #6fc6a6; color: #0f6e56; }
.filter-group.role .fchip { background: #f1eef8; border-color: #a99ad0; color: #4a3d7a; }
.filter-group.vault .fchip { background: #fbe9d6; border-color: #e2ab6b; color: #9a5b12; }
.filter-group.byfirm .firm-select { border-color: var(--navy); color: var(--navy); }

/* Loyola directory bits */
.firm-select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #fff; }
table.loyola { width: 100%; border-collapse: collapse; }
table.loyola th, table.loyola td { padding: 12px 20px; border-bottom: 1px solid var(--line); }
table.loyola td { vertical-align: middle; }
table.loyola td:first-child, table.loyola th:first-child { padding-left: 8px; }
/* center the "Which?" column (6th) so the -- placeholder is centered */
table.loyola th:nth-child(6), table.loyola td.which { text-align: center; }
table.loyola .which { color: var(--muted); }
.prac-pill { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.prac-pill.ip    { background: #e3eefb; color: #185fa5; }
.prac-pill.nonip { background: #eef0f3; color: #4a4f57; }
.alum[hidden] { display: none; }
.unverified { font-size: 11px; color: #b48a1a; margin-left: 6px; white-space: nowrap; }

.save-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; justify-content: flex-end;
  background: var(--bg); padding: 12px 0; border-bottom: 1px solid var(--line); }
.save-bar.bottom { position: static; border: none; justify-content: flex-start; margin-top: 20px; }
.count { color: var(--muted); font-size: 14px; margin-right: auto; }

.group { margin: 26px 0; }
.group-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--navy); padding-bottom: 6px; margin-bottom: 14px; }
.group-head h2 { font-size: 18px; margin: 0; color: var(--navy); }
.pill { background: var(--navy); color: #fff; font-size: 12px; border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: middle; }
.selectall { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }

.firm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.firm { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.firm[hidden] { display: none; }   /* needed so filtering actually hides boxes */
.firm:hover { border-color: var(--navy); }
.firm input { margin-top: 3px; }
.firm-body { display: flex; flex-direction: column; }
.firm-name { font-weight: 600; font-size: 15px; }
.firm-meta { font-size: 12px; color: var(--muted); }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }

/* Application Questions (personal answer bank) */
.aq-add { display: flex; gap: 10px; margin: 10px 0 26px; flex-wrap: wrap; }
.aq-add input {
  flex: 1 1 auto; min-width: 260px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 15px;
}
.aq-suggest { margin: -10px 0 26px; }
.aq-suggest-label { font-size: 13px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.aq-suggest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aq-suggest-chips form { margin: 0; }
.suggest-chip {
  background: #f1f4f9; border: 1px solid var(--line); color: var(--navy);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; cursor: pointer;
  text-align: left; max-width: 100%; line-height: 1.3;
}
.suggest-chip:hover { background: #e3eefb; border-color: #7fb0e6; }

.aq-list { display: flex; flex-direction: column; gap: 18px; }
.aq-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.aq-card .q-input {
  width: 100%; border: none; border-bottom: 1px solid transparent;
  font-size: 16px; font-weight: 600; color: var(--navy);
  padding: 4px 0; background: transparent;
}
.aq-card .q-input:hover { border-bottom-color: var(--line); }
.aq-card .q-input:focus { border-bottom-color: var(--navy); outline: none; }
.aq-card textarea {
  width: 100%; margin-top: 12px; min-height: 120px; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 15px;
  font-family: inherit; line-height: 1.55; resize: vertical; color: var(--text);
}
.aq-card textarea:focus { outline: none; border-color: var(--navy); }
.aq-meta { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.aq-count { font-size: 13px; color: var(--muted); }
.aq-edited { font-size: 13px; color: var(--muted); margin-right: auto; }
.aq-actions { display: flex; gap: 10px; align-items: center; }
.copy-btn, .doc-copy {
  background: transparent; border: 1px solid var(--navy); color: var(--navy);
  border-radius: 8px; padding: 7px 15px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.copy-btn:hover, .doc-copy:hover { background: #eef2f8; }
.copy-btn.copied, .doc-copy.copied { background: #e7f6ec; border-color: #1a7f43; color: #1a7f43; }
.aq-delete { margin-top: 10px; }
.aq-delete-btn {
  background: none; border: none; color: #b42318; cursor: pointer;
  font-size: 13px; text-decoration: underline; padding: 0;
}
.aq-empty {
  color: var(--muted); background: var(--card); border: 1px dashed var(--line);
  border-radius: 12px; padding: 30px; text-align: center;
}

/* Documents (file locker) — shown under the Application Questions page */
.aq-docs { margin-top: 42px; border-top: 1px solid var(--line); padding-top: 6px; }
.aq-subhead { font-size: 20px; color: var(--navy); margin: 14px 0 4px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.doc-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.doc-head h3 { margin: 0; font-size: 17px; color: var(--navy); }
.doc-status { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.doc-status.has { background: #e7f6ec; color: #1a7f43; }
.doc-status.none { background: #eef0f3; color: #6b7280; }
.doc-file { margin: 14px 0 10px; display: flex; flex-direction: column; gap: 3px; }
.doc-name { font-weight: 600; font-size: 15px; word-break: break-word; }
.doc-meta { font-size: 13px; color: var(--muted); }
.doc-empty { margin: 14px 0 12px; }
.doc-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.doc-actions form { margin: 0; }
.doc-upload {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.doc-upload input[type="file"] { font-size: 13px; max-width: 100%; }
