:root {
  color-scheme: light;
  --color-primary: #da020e;
  --color-secondary: #344454;
  --color-accent: #0056b3;
  --color-success: #237346;
  --color-success-surface: #17643d;
  --color-error: #9b111a;
  --color-error-border: #bd2630;
  --brand: var(--color-primary);
  --ink: var(--color-secondary);
  --accent: var(--color-accent);
  --page: #f5f7fa;
  --surface: #fff;
  --text: #333;
  --muted: #6b7280;
  --line: #e5e7eb;
  --focus: color-mix(in srgb, var(--accent) 18%, transparent);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16.5px;
  color: var(--text);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 30px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  font-size: 21px;
  font-weight: 800;
}

.brand strong, .brand small, .profile-copy strong, .profile-copy small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.profile-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.profile-copy {
  min-width: 105px;
}

.profile-copy strong {
  max-width: 200px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
}

.application {
  display: grid;
  min-height: calc(100vh - 76px);
  grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  min-height: calc(100vh - 76px);
  padding: 24px 14px;
  border-right: 1px solid var(--line);
  background: var(--ink);
}

.nav-label {
  padding: 0 12px 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-item {
  display: grid;
  width: 100%;
  min-height: 50px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-item > i {
  width: 22px;
  font-size: 17px;
  text-align: center;
}

.nav-item-label {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.nav-item:hover, .nav-item.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.nav-item.is-active {
  box-shadow: inset 3px 0 0 var(--brand);
}

.content-area {
  min-width: 0;
  padding: 32px clamp(18px, 3vw, 42px) 48px;
}

.page {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
}

.page-heading, .form-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-heading h1, .form-heading h1 {
  margin: 4px 0 7px;
  color: var(--ink);
  font-size: clamp(24px, 2.3vw, 31px);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.page-heading p, .form-heading p {
  margin: 0;
  font-size: 14px;
}

.eyebrow {
  color: var(--brand);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.login-wrap {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
  overflow: hidden;
  padding: clamp(40px, 8vh, 82px) 20px 54px;
  background: radial-gradient(ellipse at 12% 18%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 36%), radial-gradient(ellipse at 88% 84%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 36%), var(--page);
}

.login-wrap::before, .login-wrap::after {
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  border: 1px solid color-mix(in srgb, var(--brand) 12%, transparent);
  border-radius: 50%;
  content: "";
}

.login-wrap::before {
  top: -130px;
  right: 13%;
}

.login-wrap::after {
  bottom: -160px;
  left: 8%;
  width: 320px;
  height: 320px;
}

.login-panel {
  width: min(100%, 450px);
  padding: 40px;
  border-top: 4px solid var(--brand);
  box-shadow: 0 20px 55px rgba(30, 45, 60, 0.12);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.login-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 6px 15px color-mix(in srgb, var(--brand) 24%, transparent);
}

.login-brand .eyebrow {
  letter-spacing: 0.11em;
}

.login-panel h1 {
  margin: 9px 0 8px;
  color: var(--ink);
  font-size: 32px;
  letter-spacing: -0.03em;
}

.login-panel > p {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.55;
}

.panel, .table-card {
  border: 1px solid rgba(52, 68, 84, 0.08);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 5px 20px rgba(25, 39, 52, 0.055);
}

.table-card {
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
}

.table-toolbar h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}

.table-caption {
  min-height: 16px;
  margin: 5px 0 0;
  font-size: 14px;
}

.table-scroll {
  width: 100%;
  overflow: auto;
  border-top: 1px solid var(--line);
  scrollbar-color: #b7c0ca #f5f7fa;
}

table {
  width: 100%;
  min-width: 1140px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}

thead {
  position: sticky;
  z-index: 1;
  top: 0;
  color: #fff;
  background: var(--ink);
}

th {
  padding: 13px 15px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.025em;
  text-align: left;
  white-space: nowrap;
}

td {
  max-width: 260px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  color: #3f4b57;
  vertical-align: middle;
}

tbody tr {
  background: #fff;
  transition: background 0.12s ease;
}

tbody tr:hover {
  background: #f8fbff;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td a {
  color: var(--accent);
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}

.cell-clip {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-cell {
  padding: 38px 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.row-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.button:focus-visible, .nav-item:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.button-primary {
  color: #fff;
  background: var(--brand);
}

.button-primary:hover {
  background: color-mix(in srgb, var(--brand) 82%, black);
  box-shadow: 0 3px 9px color-mix(in srgb, var(--brand) 20%, transparent);
}

.button-outline {
  border-color: #d6dce2;
  color: var(--ink);
  background: #fff;
}

.button-outline:hover {
  border-color: var(--ink);
  background: #f8fafc;
}

.button-quiet {
  border-color: transparent;
  color: var(--ink);
  background: transparent;
}

.button-quiet:hover {
  background: #f1f4f7;
}

.button-small {
  min-height: 34px;
  padding: 7px 12px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.button-small:hover {
  background: rgba(255, 255, 255, 0.13);
}

.button-wide {
  width: 100%;
  min-height: 46px;
  margin-top: 5px;
}

.button-row {
  min-height: 31px;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 11px;
}

.button-danger {
  border-color: #f1c9cc;
  color: #a4121b;
  background: #fff8f8;
}

.button-danger:hover {
  border-color: #d88f94;
  background: #fff0f1;
}

.form-panel {
  padding: clamp(20px, 3vw, 34px);
}

.form-heading {
  align-items: flex-start;
  margin-bottom: 25px;
}

.form-heading .button {
  flex: 0 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 22px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.field label span {
  color: var(--brand);
}

.field input, .field select, .field textarea, .search-field input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d5dbe1;
  border-radius: 7px;
  outline: none;
  color: var(--text);
  background: #fff;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus, .field select:focus, .field textarea:focus, .search-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
}

.field input[aria-invalid=true], .field select[aria-invalid=true], .field textarea[aria-invalid=true] {
  border-color: var(--color-error-border);
}

.field input[aria-invalid=true]:focus, .field select[aria-invalid=true]:focus, .field textarea[aria-invalid=true]:focus {
  box-shadow: 0 0 0 3px rgba(189, 38, 48, 0.12);
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.field-message {
  color: var(--color-error);
  font-size: 13px;
  line-height: 1.45;
}

.field-span {
  grid-column: 1/-1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.search-field {
  display: block;
  width: min(100%, 270px);
}

.search-field input {
  min-height: 38px;
  padding-left: 13px;
  background: #fafbfc;
}

.app-toast {
  position: fixed;
  z-index: 1200;
  top: 90px;
  left: 50%;
  display: flex;
  width: max-content;
  max-width: min(620px, 100vw - 32px);
  align-items: flex-start;
  gap: 10px;
  padding: 15px 19px;
  transform: translate(-50%, -12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
  font-size: 15px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast i {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 16px;
}

.app-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.app-toast.is-success {
  background: var(--color-success-surface);
}

.app-toast.is-error {
  background: var(--color-error);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background: #edf1f5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill.status-active, .status-pill.status-success {
  border-color: #c9e8d5;
  color: var(--color-success);
  background: #eaf6ef;
}

.status-pill.status-warning {
  border-color: #f0dda4;
  color: #805800;
  background: #fff7df;
}

.status-pill.status-disabled, .status-pill.status-inactive, .status-pill.status-danger {
  border-color: #f0c9cc;
  color: var(--color-error);
  background: #fff0f0;
}

.status-pill.status-neutral {
  border-color: #d9e0e7;
  color: #536171;
  background: #f2f5f8;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}

.icon-button:hover {
  border-color: #c5cdd5;
  background: #f4f6f8;
}

.icon-label {
  gap: 7px;
}

.modal-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 20px;
  background: rgba(20, 30, 40, 0.5);
  backdrop-filter: blur(2px);
}

.modal-card {
  width: min(100%, 660px);
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: 23px;
  border: 1px solid rgba(52, 68, 84, 0.13);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(16, 27, 39, 0.25);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 21px;
}

.modal-description {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.modal-body {
  padding-top: 17px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin: 0;
}

.detail-item {
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f3;
}

.detail-item dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.detail-item dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.detail-item dd a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.detail-item dd .status-pill {
  font-size: 13px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.modal-confirm .modal-card {
  width: min(100%, 460px);
}

.modal-confirm .modal-body {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.button-icon i, .icon-label i, .button-row i {
  font-size: 12px;
}

.app-toast {
  top: 76px;
  width: calc(100vw - 24px);
  max-width: 560px;
  padding: 13px 15px;
  font-size: 15px;
}

.password-management-form > p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
}

.password-management-form .form-actions {
  margin-top: 18px;
  padding-top: 15px;
}

@media (max-width: 1050px) {
  .application {
    grid-template-columns: 245px minmax(0, 1fr);
  }
  .content-area {
    padding: 26px 22px 38px;
  }
  table {
    min-width: 1050px;
  }
}
@media (max-width: 760px) {
  .app-header {
    min-height: 66px;
    padding: 10px 15px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand small {
    font-size: 11px;
  }
  .profile-box {
    gap: 7px;
  }
  .profile-copy {
    display: none;
  }
  .profile-avatar {
    width: 34px;
    height: 34px;
  }
  .button-small {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 11px;
  }
  .application {
    display: block;
    min-height: calc(100vh - 66px);
  }
  .sidebar {
    position: sticky;
    z-index: 10;
    top: 66px;
    display: flex;
    min-height: auto;
    gap: 4px;
    overflow-x: auto;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }
  .nav-label {
    display: none;
  }
  .nav-item {
    display: grid;
    width: 176px;
    min-width: 176px;
    min-height: 52px;
    grid-template-columns: 20px minmax(0, 1fr);
    justify-content: start;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
  }
  .nav-item-label {
    font-size: 13px;
    line-height: 1.25;
  }
  .nav-item.is-active {
    box-shadow: inset 0 -3px 0 var(--brand);
  }
  .content-area {
    padding: 22px 14px 34px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 17px;
  }
  .page-heading h1, .form-heading h1 {
    font-size: 24px;
  }
  .page-heading p, .form-heading p {
    max-width: 500px;
    font-size: 13px;
  }
  .toolbar-actions {
    flex: 0 0 auto;
  }
  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }
  .search-field {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .field-span {
    grid-column: auto;
  }
  .form-panel {
    padding: 20px 16px;
  }
  .login-wrap {
    min-height: calc(100vh - 66px);
    padding-top: 44px;
  }
  .login-panel {
    padding: 27px 22px;
  }
  .modal-backdrop {
    align-items: end;
    padding: 10px;
  }
  .modal-card {
    max-height: 88vh;
    padding: 19px 16px;
    border-radius: 14px 14px 10px 10px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .modal-actions .button {
    flex: 1;
  }
}
@media (max-width: 460px) {
  .app-header {
    gap: 8px;
  }
  .brand {
    gap: 8px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
  }
  .brand small {
    display: none;
  }
  .page-heading {
    flex-direction: column;
  }
  .toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .toolbar-actions .button {
    width: 100%;
  }
  .form-heading {
    gap: 10px;
  }
  .form-heading > .button {
    min-height: 35px;
    padding: 6px 9px;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions .button {
    width: 100%;
  }
}
/* Workbook-section navigation, repeaters, and the full project detail view. */
.section-tabs {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -2px 20px;
  padding: 8px 2px 12px;
  background: #fff;
  scrollbar-width: thin;
}

.section-tab {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.section-tab:hover, .section-tab.is-active {
  border-color: var(--brand);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 5%, white);
}

.form-section {
  scroll-margin-top: 100px;
  padding: 4px 0 12px;
}

.form-section > h2, .detail-section > h2 {
  margin: 3px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 22px;
}

.repeater-block {
  margin-top: 28px;
}

.repeater-heading, .repeater-row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.repeater-heading {
  margin-bottom: 12px;
}

.repeater-heading > div > p {
  margin: 5px 0 0;
  font-size: 14px;
}

.licence-repeater-block .repeater-heading {
  align-items: center;
}

.repeater-heading h3, .detail-repeater h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.repeater-list {
  display: grid;
  gap: 12px;
}

.repeater-row, .detail-subcard {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
}

.repeater-row-heading {
  margin-bottom: 14px;
  color: var(--ink);
}

.repeater-row .form-grid {
  gap: 14px 18px;
}

.add-repeater {
  margin-top: 12px;
}

.detail-page-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 28px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px clamp(16px, 3vw, 38px) 60px;
  align-items: start;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(25, 39, 52, 0.055);
}

.detail-sidebar .eyebrow {
  padding: 0 10px 10px;
}

.detail-sidebar nav {
  display: grid;
  gap: 5px;
}

.detail-nav-link {
  padding: 11px 10px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.detail-nav-link:hover, .detail-nav-link.is-active {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 7%, white);
}

.detail-page-content {
  min-width: 0;
}

.detail-page-content .page-heading {
  margin-bottom: 22px;
}

.detail-page-content .page-heading h1 {
  overflow-wrap: anywhere;
}

.detail-section {
  scroll-margin-top: 100px;
  margin-bottom: 22px;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(52, 68, 84, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(25, 39, 52, 0.055);
}

.detail-subcard {
  margin: 14px 0;
}

.detail-subcard h3, .detail-subcard h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 17px;
}

.detail-repeater {
  margin-top: 23px;
}

.detail-repeater > h3 {
  margin-bottom: 10px;
}

.project-detail-page .app-header {
  position: sticky;
  z-index: 5;
  top: 0;
}

.project-detail-page .detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-tabs {
  position: static;
}

.detail-scroll {
  max-height: 58vh;
  overflow: auto;
  padding-right: 3px;
}

.detail-empty {
  margin: 0;
  font-size: 15px;
}

.detail-repeater > h3 {
  font-size: 19px;
}

.detail-page-content .page-heading p {
  font-size: 16px;
}

@media (max-width: 900px) {
  .detail-page-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: sticky;
    top: 76px;
    z-index: 4;
    padding: 9px;
  }
  .detail-sidebar .eyebrow {
    display: none;
  }
  .detail-sidebar nav {
    display: flex;
    overflow-x: auto;
  }
  .detail-nav-link {
    flex: 0 0 auto;
  }
}
@media (max-width: 760px) {
  .detail-sidebar {
    top: 66px;
  }
}
@media (max-width: 600px) {
  .detail-page-layout {
    padding: 18px 12px 40px;
  }
  .project-detail-page .profile-copy {
    display: none;
  }
  .project-detail-page .detail-grid {
    grid-template-columns: 1fr;
  }
  .section-tabs {
    margin-right: -14px;
  }
  .repeater-row, .detail-subcard {
    padding: 12px;
  }
}
