:root {
  --paper: #f7f4ee;
  --paper-2: #edeae0;
  --ivory: #f4efe6;
  --ivory-2: #ebe4d6;
  --ink: #1a1814;
  --ink-2: #3a352c;
  --oxblood: #3D2D79;
  --muted: #7a7670;
  --rule: #ccc7b8;
  --cobalt: #1e3a8a;
  --cobalt-light: #dbeafe;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--oxblood);
  color: var(--ivory);
}

a {
  color: var(--blue-300);
}
a.text-orange {
  color: var(--oxblood);
}

/* Mode switcher (prototype only) */
.mode-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--ivory);
  padding: 6px;
  border-radius: 999px;
  z-index: 1000;
  display: flex;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.mode-bar button {
  background: transparent;
  color: rgba(244, 239, 230, 0.6);
  border: 0;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}

.mode-bar button:hover {
  color: var(--ivory);
}

.mode-bar button.active {
  background: var(--ivory);
  color: var(--ink);
}

/* Navbar */
.main-nav {
  display: flex;
  align-items: center;
}
.main-nav .nav-link {
  color: var(--ivory);
  opacity: .7;
  margin-right: 35px;
  font-size: 13px;
  transition: .5s;
  position: relative;
}
.main-nav .mob {
  display: none;
}
.main-nav .nav-link:hover {
  opacity: 1;
  color: #fff;
  transition: .5s;
}
.main-nav .nav-link.active {
  font-weight: bold;
  opacity: 1;
  color: #fff;
}
.main-nav .nav-link.disabled{
  opacity: .4;
}
.main-nav .nav-label {
  display: none;
}
.main-nav .fa-lock {
  display: none;
}
.main-nav .fas {
  margin-right: 5px;
}
.main-nav .nav-link:has(.badge-count) {
  opacity: 1;
}
.messages-link {
  position: relative;
  font-size: 20px;
  color: #fff;
  margin-right: 40px;
}
.main-nav .badge-count, .messages-link .badge-count {
    position: absolute;
    top:-10px;
    margin-left: 2px;
    border-radius: 100%;
    background: var(--ivory);
    color: #fff;
    font-size: 12px;
    height: 18px;
    width: 18px;
    display: inline-grid;
    place-items: center;
}
.nav-truly {
  background: var(--ivory);
  border-bottom: 0.5px solid var(--rule);
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-truly .brand {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}

.nav-truly .brand em {
  font-style: italic;
  color: var(--oxblood);
}

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

.nav-actions a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.nav-actions a:hover {
  color: var(--oxblood);
}

.nav-actions a.primary {
  color: var(--ink);
  border-bottom: 0.5px solid var(--ink);
  padding-bottom: 2px;
}
.text-oxblood {
  color: var(--oxblood);
}
.inner-sidebar {
  min-width: 250px;
}
.inner-sidebar .nav-link {
  font-size: 13px;
  display: block;
  padding: 10px;
  margin-bottom: 1px;
  border-left: 2px solid transparent;
}
.inner-sidebar .nav-link:hover {
  background-color: var(--cream);
  border-left: 2px solid var(--gold);
}
.inner-sidebar .nav-link.active {
  background-color: var(--cream);
  border-left: 2px solid var(--oxblood);
}
/* Page container */
.page {
  max-width: 720px;
  min-width: 700px;
  margin: 0 auto;
  padding: 60px 32px 140px;
}
.page-wide {
  min-width: 68vw
}

.page-narrow {
  max-width: 520px;
}

/* Mode hidden */
.mode {
  display: none;
}

.mode.active {
  display: block;
}

/* Eyebrow + headings */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow:not(.no-line)::before {
  content: '';
  width: 24px;
  height: 0.5px;
  background: var(--oxblood);
}

h1.display {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}

h1.display em {
  font-style: italic;
  color: var(--oxblood);
  font-weight: 700;
}

.lede {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 36px;
  max-width: 460px;
}

/* Buttons */
.btn-truly {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--ivory);
  padding: 16px 32px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  transition: background .2s;
}

.btn-truly:hover {
  background: var(--oxblood);
  color: var(--ivory);
}

.btn-truly:not(.no-arrow)::after {
  content: '→';
  font-size: 16px;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 16px 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 0.5px;
}

.btn-ghost:hover {
  color: var(--oxblood);
}

/* Inputs */
.field {
  margin-bottom: 28px;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 0.5px solid var(--rule);
  padding: 8px 0;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--oxblood);
}

.field textarea {
  resize: none;
  min-height: 80px;
  line-height: 1.4;
}

.field .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
  font-family: var(--serif);
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Photo upload */
.photo-upload {
  width: 100%;
  aspect-ratio: 5/5;
  background: var(--ivory-2);
  border: 0.5px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  transition: border-color .2s;
}

.photo-upload:hover {
  border-color: var(--oxblood);
}

/* ===== Wizard ===== */
.wizard-progress {
  display: flex;
  /* gap: 6px; */
  margin-bottom: 40px;
}

.wizard-progress .step {
  flex: 1;
  height: 2px;
  background: var(--rule);
}

.wizard-progress .step.done {
  background: var(--oxblood);
}

.wizard-progress .step.current {
  background: var(--ink);
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.wizard-nav .skip {
  font-size: 20px;
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
}

.wizard-nav .skip:hover {
  color: var(--oxblood);
}
.program-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 0.5px solid var(--rule);
}
.program-tab {
  padding: 10px 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--muted);
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -0.5px;
  transition: color .15s, border-color .15s;
}
.program-tab:hover { color: var(--ink); }
.program-tab.active { color: var(--cobalt); border-bottom-color: var(--cobalt); }

.category-block { margin-bottom: 28px; }
.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
}
.category-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.category-count {
  font-size: 10px;
  background: var(--cobalt);
  color: #fff;
  border-radius: 99px;
  padding: 1px 7px;
  display: none;
}
.category-count.visible { display: inline-block; }
.category-chevron {
  margin-left: auto;
  font-size: 15px;
  color: var(--muted);
  transition: transform .2s;
}
.category-block.collapsed .category-chevron { transform: rotate(-90deg); }
.category-courses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: hidden;
  transition: max-height .25s ease;
}
.category-block.collapsed .category-courses { max-height: 0 !important; }

.course-chip {
  padding: 7px 16px;
  border: 0.5px solid var(--rule);
  font-size: 13px;
  font-family: var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 2px;
  transition: all .15s;
  background: transparent;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.course-chip:hover { border-color: var(--cobalt); color: var(--cobalt); }
.course-chip.selected { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }

.subject-summary {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--cobalt-light);
  border-left: 2px solid var(--cobalt);
  font-size: 13px;
  color: var(--ink-2);
  min-height: 44px;
}
.subject-summary .summary-empty { color: var(--muted); font-style: italic; font-family: var(--serif); }
.subject-summary .summary-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.subject-summary .summary-chip {
  font-size: 11px;
  background: var(--cobalt);
  color: #fff;
  padding: 3px 10px;
  border-radius: 2px;
}

/* ===== View Mode ===== */
.completeness {
  background: var(--ivory-2);
  border-left: 2px solid var(--oxblood);
  padding: 18px 24px;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.completeness .left {
  flex: 1;
}

.completeness .pct {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
}

.completeness .pct em {
  font-style: italic;
  color: var(--oxblood);
  font-weight: 700;
}

.completeness .msg {
  font-size: 13px;
  color: var(--muted);
}

.completeness button {
  background: var(--ink);
  color: var(--ivory);
  border: 0;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  white-space: nowrap;
}

.completeness button:hover {
  background: var(--oxblood);
}

.profile-photo {
  width: 100%;
  max-width: 320px;
  /* aspect-ratio: 4/5; */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 0.5px solid var(--rule);
  margin-bottom: 28px;
}

.profile-name {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 4px;
}

.profile-meta {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.profile-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 0.5px solid var(--rule);
  position: relative;
}

.profile-section:last-child {
  border-bottom: none;
}

.profile-section .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 12px;
  font-weight: 500;
}

.profile-section .body {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
}

.profile-section .body.muted {
  color: var(--muted);
  font-style: italic;
  font-size: 18px;
}
.profile-section .tags-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.profile-section .tags-display span {
  padding: 5px 14px;
  background: var(--cobalt-light);
  color: var(--cobalt);
  font-size: 13px;
  font-family: var(--sans);
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.edit-pencil {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0;
  transition: opacity .2s, color .2s;
}

.profile-section:hover .edit-pencil {
  opacity: 1;
}

.edit-pencil:hover {
  color: var(--oxblood);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ivory-2);
  border: 0.5px solid var(--rule);
  padding: 8px 16px;
  margin-bottom: 28px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 500;
}

.verified-badge::before {
  content: '✓';
  font-weight: 700;
}

/* ===== Edit Mode ===== */
.edit-section {
  margin-bottom: 60px;
  padding-bottom: 50px;
  border-bottom: 0.5px solid var(--rule);
}

.edit-section:last-child {
  border-bottom: none;
}

.edit-section-header {
  margin-bottom: 32px;
}

.edit-section-header h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 6px;
}

.edit-section-header h2 em {
  font-style: italic;
  color: var(--oxblood);
  font-weight: 700;
}

.edit-section-header .who {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.edit-section-header .who.public {
  color: var(--oxblood);
}

.edit-actions {
  position: sticky;
  bottom: 80px;
  background: var(--ivory);
  border-top: 0.5px solid var(--rule);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.edit-actions .saved {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
}

/* Mobile */
@media (max-width: 767px) {
  .page {
    min-width: auto;
  }
  .page-content:has(.inner-sidebar) {
  padding-top:15px;
  padding-inline:5px
  }
  .inner-sidebar {
    position: absolute;
    top:73px;
    width: 100%;
    margin-left: -5px;
    display: flex;
    justify-content: space-between;
    border-bottom:1px solid var(--blue-200);
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .inner-sidebar::-webkit-scrollbar {
    display: none;
  }
  .inner-sidebar .vibe-number {
    display: none;
  }
  .inner-sidebar .nav-link{
    width: 100%;
    text-align: center;
    border-width:0px !important;
    white-space: nowrap;
  }
  .inner-sidebar .nav-link:not(:last-child){
    border-right:1px solid var(--blue-200) !important;
  }
  .messages-link {
    color: var(--blue-700);
    margin-right: 25px;
  }
}
@media (max-width: 600px) {
  .nav-truly {
    padding: 18px 22px;
  }

  .page {
    padding: 40px 10px 160px;
  }

  h1.display {
    font-size: 34px;
  }

  .row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .completeness {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-photo {
    max-width: 100%;
  }

  .profile-name {
    font-size: 32px;
  }

  .field input, .field textarea, .field select {
    font-size: 19px;
  }

  .mode-bar button {
    padding: 8px 12px;
    font-size: 10px;
  }

  .edit-actions {
    bottom: 76px;
  }
  .wizard-nav .skip {
    font-size: 15px;
  }
}
