/* The public tenant pages. Reachable without signing in, so this stylesheet
   carries the whole look rather than leaning on the Workplace shell. */

.tenant-body {
  margin: 0;
  min-height: 100vh;
  background: #e8e9f0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #1e293b;
}

.tenant-frame {
  display: flex; flex-direction: column;
  min-height: calc(100vh - 78px);
  max-width: 1400px; margin: 0 auto; padding: 26px 28px 20px;
}
.tenant-main { flex: 1 1 auto; }

/* The v1 top bar, reproduced from the live portal: #18223e over a 3px #d4af37
   rule, full width, above the page rather than inside it. */
.tenant-topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 20px;
  background: #18223e; color: #fff; padding: 15px 28px;
  border-bottom: 3px solid #d4af37;
  box-shadow: 0 3px 16px rgba(10, 16, 34, .22);
}
.tenant-brand { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; }
.tenant-mark {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}
.tenant-mark img { width: 100%; height: 100%; object-fit: contain; }
.tenant-brand-text { display: flex; flex-direction: column; line-height: 1.04; min-width: 0; }
.tenant-brand-one { font-size: 17px; font-weight: 800; letter-spacing: .028em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.tenant-brand-two { font-size: 13px; font-weight: 700; color: #818cf8; margin-top: 2px; white-space: nowrap; }
.tenant-topbar-rule { width: 1px; height: 40px; background: rgba(255, 255, 255, .14); flex-shrink: 0; }
.tenant-topbar-gap { flex: 1; min-width: 8px; }
.tenant-topback {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px; padding: 11px 20px;
  font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.tenant-topback:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.tenant-topback-arrow { font-size: 17px; line-height: 1; }

/* ---- Page head ----------------------------------------------------------- */

.tenant-page-head { display: flex; align-items: center; gap: 16px; }
.tenant-page-title { font-size: 25px; font-weight: 800; color: #10182b; letter-spacing: -.02em; margin: 0; white-space: nowrap; }
.tenant-page-line { flex: 1; height: 1px; background: #d5d9e3; }
.tenant-page-lead { font-size: 13px; font-weight: 500; color: #64748b; margin: 6px 0 0; }

/* ---- Rail and listing ---------------------------------------------------- */

.tenant-columns { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 24px; margin-top: 20px; align-items: start; }
.tenant-rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.tenant-rail-card { background: #fff; border: 1px solid #dfe2ea; border-radius: 14px; padding: 14px; }
.tenant-rail-head { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #8a93a8; margin: 2px 4px 9px; }
.tenant-rail-lead { font-size: 11.5px; font-weight: 500; color: #7a879f; line-height: 1.55; margin: 0 4px 9px; }
.tenant-rail-item {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  border-radius: 9px; padding: 9px 10px; font-size: 12.5px; font-weight: 700; color: #475569;
}
.tenant-rail-item:hover { background: #f6f7fa; color: #475569; }
.tenant-rail-item.current, .tenant-rail-item:target { background: #f5f1ff; color: #6d28d9; }
.tenant-rail-dot { width: 6px; height: 6px; border-radius: 50%; background: #c3c9d6; }
.tenant-rail-item.current .tenant-rail-dot { background: #6d28d9; }
.tenant-rail-label { flex: 1; }
.tenant-rail-count { font-size: 10.5px; font-weight: 800; border-radius: 6px; padding: 1px 6px; background: #f1f2f7; color: #8a93a8; }
.tenant-rail-item.current .tenant-rail-count { background: #fff; color: #6d28d9; }
.tenant-rail-note {
  font-size: 11px; font-weight: 500; color: #a8adbd; line-height: 1.55;
  border-top: 1px solid #eceef4; margin: 8px 4px 0; padding: 10px 0 0;
}
.tenant-rail-card .field { margin-bottom: 9px; }
.button-block { display: block; width: 100%; }

.tenant-office { background: #10182b; border-radius: 14px; padding: 16px; }
.tenant-office-head { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #7c8bb5; margin: 0 0 10px; }
.tenant-office-phone { font-size: 15px; font-weight: 800; color: #fff; margin: 0; }
.tenant-office-mail { font-size: 11.5px; font-weight: 600; color: #8b96b5; margin: 3px 0 0; overflow-wrap: anywhere; }
.tenant-office-rule { display: block; height: 1px; background: #2b3550; margin: 12px 0; }
.tenant-office-hours { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 600; margin: 0; }
.tenant-office-hours span:first-child { color: #8b96b5; }
.tenant-office-hours span:last-child { color: #fff; white-space: nowrap; }
.tenant-office-hours + .tenant-office-hours { margin-top: 5px; }
.tenant-office-note { font-size: 11px; font-weight: 500; color: #7c8bb5; line-height: 1.55; margin: 10px 0 0; }

.tenant-search {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid #dfe2ea; border-radius: 12px; padding: 13px 16px;
}
.tenant-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: none;
  font-family: inherit; font-size: 13.5px; font-weight: 500; color: #1e293b;
}
.tenant-search input::placeholder { color: #a8adbd; }

.tenant-band { margin-top: 24px; scroll-margin-top: 96px; }
.tenant-band-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.tenant-band-marker { width: 4px; height: 13px; border-radius: 2px; background: #6d28d9; }
.tenant-band-label { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #6d28d9; margin: 0; }
.tenant-band-note { font-size: 11px; font-weight: 600; color: #a8adbd; }
.tenant-band-line { flex: 1; height: 1px; background: #dfe2ea; }
.tenant-nomatch { font-size: 12.5px; font-weight: 500; color: #7a879f; text-align: center; padding: 30px 0; }

/* ---- Status result ------------------------------------------------------- */

.tenant-narrow { max-width: 540px; margin: 0 auto; padding: 34px 0 24px; display: flex; flex-direction: column; gap: 14px; }
.tenant-narrow .tenant-panel-title { margin-bottom: 6px; }
.tenant-result-ref { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #8a93a8; margin: 0; }
.tenant-result-status { font-size: 20px; font-weight: 800; letter-spacing: -.015em; margin: 5px 0 0; color: #10182b; }
.tenant-result-status.tone-pending { color: #0e7490; }
.tenant-result-status.tone-new     { color: #6d28d9; }
.tenant-result-status.tone-review  { color: #b45309; }
.tenant-result-status.tone-refused { color: #dc2626; }
.tenant-result-status.tone-done    { color: #16a34a; }
.tenant-result-date { font-size: 12.5px; font-weight: 500; color: #64748b; margin: 4px 0 16px; }
.tenant-quiet-link { font-size: 12px; font-weight: 700; color: #6d28d9; }

.tenant-main { margin-top: 18px; }
.tenant-page-head + .tenant-page-lead { margin-bottom: 0; }
.tenant-main-narrow { max-width: 540px; margin-left: auto; margin-right: auto; }
.tenant-main > .tenant-panel { width: 100%; }

.tenant-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 16px; }

/* A card is a thing you press, so it sits above the page rather than in it: a
   raised edge, a lifted shadow, and a highlight frame while it is under the
   cursor. Nothing inside a card is ever underlined - the whole card is the link,
   and underlining every line of it reads as broken. */
.tenant-card, .tenant-card:link, .tenant-card:visited {
  display: flex; flex-direction: column; position: relative;
  background: #fff; border: 1px solid #d7dbe6; border-radius: 16px; padding: 19px 20px 20px;
  text-decoration: none;
  box-shadow: 0 1px 0 #fff inset, 0 1px 2px rgba(16, 24, 43, .06), 0 6px 14px -8px rgba(16, 24, 43, .22);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.tenant-card *, .tenant-card:hover * { text-decoration: none; }

.tenant-card:hover, .tenant-card:focus-visible {
  border-color: #c4b6f7;
  transform: translateY(-2px);
  box-shadow: 0 1px 0 #fff inset, 0 0 0 3px #ece5ff,
              0 2px 4px rgba(16, 24, 43, .07), 0 16px 26px -14px rgba(70, 40, 160, .35);
  outline: none;
}
.tenant-card:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(16, 24, 43, .12); }

.tenant-card-dept { font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #7c6bb5; }
.tenant-card-title { font-size: 15.5px; font-weight: 800; color: #10182b; margin-top: 7px; letter-spacing: -.01em; }
.tenant-card-body { font-size: 12.5px; font-weight: 500; color: #7a879f; line-height: 1.62; margin-top: 7px; }
.tenant-card-cta {
  align-self: flex-start; font-size: 12px; font-weight: 800; color: #6d28d9; margin-top: 16px;
  background: #f5f1ff; border: 1px solid #e2d9fb; border-radius: 9px; padding: 7px 13px;
}
.tenant-card:hover .tenant-card-cta { background: #6d28d9; border-color: #6d28d9; color: #fff; }

.tenant-panel { background: #fff; border: 1px solid #dfe2ea; border-radius: 16px; padding: 26px 28px 28px; }
.tenant-panel-centred { text-align: center; }
.tenant-panel-title { font-size: 19px; font-weight: 800; color: #10182b; letter-spacing: -0.015em; margin: 0 0 8px; }
.tenant-panel-lead { font-size: 13px; font-weight: 500; color: #64748b; line-height: 1.7; margin: 0 0 18px; }

.tenant-tick {
  display: block; width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 15px; background: #e7f8ee; border: 1px solid #bfe9cf; position: relative;
}
.tenant-tick::after {
  content: ''; position: absolute; left: 17px; top: 15px; width: 16px; height: 8px;
  border-left: 3px solid #16a34a; border-bottom: 3px solid #16a34a; transform: rotate(-45deg);
}

.tenant-reference { border: 1px solid #ddd6fb; background: #f3efff; border-radius: 12px; padding: 13px; margin-bottom: 16px; }
.tenant-reference-label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7c6bb5; }
.tenant-reference-value { display: block; font-size: 18px; font-weight: 800; color: #4c3f80; margin-top: 3px; }

.tenant-warn {
  display: flex; gap: 11px; text-align: left;
  background: #fef4e6; border: 1px solid #f3ddb8; border-radius: 12px; padding: 14px 15px;
  font-size: 12.5px; font-weight: 500; color: #8a5a1a; line-height: 1.65; margin-bottom: 16px;
}
.tenant-warn strong { color: #7c4a09; }
.tenant-warn-mark {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px; background: #b45309; color: #fff;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.tenant-warn-mark-large { width: 46px; height: 46px; flex: none; margin: 0 auto 14px; border-radius: 14px; font-size: 22px; }

.tenant-note { text-align: left; border-top: 1px solid #eceef4; padding-top: 14px; }
.tenant-note-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7a879f; }
.tenant-note p { font-size: 12.5px; font-weight: 500; color: #64748b; line-height: 1.7; margin: 5px 0 0; }

.tenant-stamp { text-align: left; border: 1px solid #dfe2ea; border-radius: 12px; padding: 13px 15px; margin: 0 0 14px;
  display: grid; grid-template-columns: 96px 1fr; gap: 5px 12px; }
.tenant-stamp dt { font-size: 11px; font-weight: 700; color: #7a879f; }
.tenant-stamp dd { font-size: 12px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }

.tenant-section {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6d28d9;
  margin: 26px 0 12px; padding-left: 11px; border-left: 4px solid #6d28d9;
}
.tenant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 20px; }
.tenant-field { margin: 0; display: flex; flex-direction: column; }
.tenant-field-wide { grid-column: 1 / -1; }
.field-quiet { background: #f4f5f9; color: #64748b; }

.tenant-choice { display: flex; gap: 8px; margin: 4px 0 8px; flex-wrap: wrap; }
.tenant-choice-stacked { flex-direction: column; }
.tenant-chip {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border: 1px solid #dfe2ea; border-radius: 999px; padding: 8px 15px; background: #fff;
  font-size: 12.5px; font-weight: 600;
}
.tenant-chip-block { border-radius: 12px; align-items: flex-start; padding: 13px 15px; line-height: 1.6; font-weight: 500; }
.tenant-chip input { margin: 2px 0 0; accent-color: #6d28d9; }

.tenant-notice { border: 1px solid #dfe2ea; background: #fafbfd; border-radius: 12px; padding: 15px 17px; }
.tenant-notice h3 { font-size: 12.5px; font-weight: 800; color: #10182b; margin: 0 0 6px; }
.tenant-notice h3 + p { margin-top: 0; }
.tenant-notice p, .tenant-notice li { font-size: 12px; font-weight: 500; color: #5b6678; line-height: 1.72; }
.tenant-notice ul { margin: 6px 0 10px; padding-left: 18px; }

.tenant-legal {
  display: flex; gap: 10px; border: 1px solid #dfe2ea; background: #fafbfd; border-radius: 12px;
  padding: 14px 16px; margin-top: 16px; font-size: 12px; font-weight: 500; color: #64748b; line-height: 1.65;
}

.tenant-problems {
  border: 1px solid #f6c9c9; background: #fdeeee; border-radius: 12px; padding: 13px 16px; margin-bottom: 18px;
  font-size: 12.5px; color: #b02020;
}
.tenant-problems ul { margin: 6px 0 0; padding-left: 18px; }
.tenant-problems li { font-weight: 500; line-height: 1.6; }

.tenant-foot {
  flex: 0 0 auto; margin-top: auto; text-align: center;
  font-size: 11.5px; font-weight: 500; color: #7a879f; line-height: 1.6;
  padding-top: 16px; border-top: 1px solid #d7dbe6;
}

@media (max-width: 640px) {
  .tenant-frame { padding: 14px 12px 16px; }
  .tenant-panel { padding: 20px 18px 22px; }
}

/* ---- Form controls -------------------------------------------------------- */

.tenant-frame .field-label {
  display: block;
  font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: #64748b; margin-bottom: 6px;
}
.tenant-frame .field-required { color: #dc2626; }

.tenant-frame .field {
  display: block; width: 100%; box-sizing: border-box;
  font-family: inherit; font-size: 13.5px; font-weight: 500; color: #1e293b;
  background: #fff; border: 1px solid #d7dbe6; border-radius: 10px; padding: 11px 13px;
  box-shadow: 0 1px 2px rgba(16, 24, 43, .04) inset;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.tenant-frame .field::placeholder { color: #a8adbd; font-weight: 500; }
.tenant-frame .field:hover { border-color: #c3c9d6; }
.tenant-frame .field:focus {
  outline: none; border-color: #a78bfa;
  box-shadow: 0 0 0 3px #ece5ff;
}
.tenant-frame textarea.field { resize: vertical; min-height: 78px; line-height: 1.6; }
.tenant-frame .field-quiet {
  background: #f4f5f9; border-style: dashed; color: #64748b; box-shadow: none;
  display: flex; align-items: center; min-height: 43px;
}

/* A hint belongs to its field: small, quiet, and never wider than the field. */
.tenant-frame .hint {
  display: block; font-size: 11px; font-weight: 500; color: #8a93a8;
  line-height: 1.5; margin-top: 6px;
}

/* ---- Layout -------------------------------------------------------------- */

.tenant-grid { align-items: start; }
.tenant-field { min-width: 0; }

/* The address, the declaration and the notices run the full width. */
.tenant-panel > .tenant-field,
.tenant-panel > .tenant-choice,
.tenant-panel > .tenant-notice,
.tenant-panel > .tenant-legal { grid-column: 1 / -1; }

.form-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid #eceef4;
}
.form-actions .hint { margin-top: 0; max-width: 420px; }

.tenant-frame .button-primary {
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  color: #fff; background: #6d28d9; border: 1px solid #6d28d9; border-radius: 11px;
  padding: 12px 24px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 14px -8px rgba(70, 40, 160, .55);
}
.tenant-frame .button-primary:hover { background: #5b21b6; border-color: #5b21b6; }
.tenant-frame .button-primary:active { transform: translateY(1px); }

@media (max-width: 900px) {
  .tenant-topbar { padding: 12px 16px; gap: 12px; }
  .tenant-topbar-rule { display: none; }
  .tenant-brand-one { font-size: 15px; }
  .tenant-brand-two { font-size: 12px; }
  .tenant-topback { padding: 9px 14px; font-size: 12.5px; border-radius: 11px; }

  .tenant-columns { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tenant-rail { position: static; }

  /* Categories first, as a scrolling chip row; the rest of the rail follows the
     cards, because a phone reads top to bottom. */
  .tenant-rail-card:first-child {
    order: -1; display: flex; gap: 7px; padding: 0; border: none; background: none;
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  }
  .tenant-rail-card:first-child .tenant-rail-head,
  .tenant-rail-card:first-child .tenant-rail-note,
  .tenant-rail-card:first-child .tenant-rail-dot { display: none; }
  .tenant-rail-card:first-child .tenant-rail-item {
    flex: 0 0 auto; background: #fff; border: 1px solid #dfe2ea; border-radius: 999px;
    padding: 8px 14px; font-size: 12px; white-space: nowrap;
  }
  .tenant-rail-card:first-child .tenant-rail-item.current { background: #f5f1ff; border-color: #e2d9fb; }
  .tenant-listing { order: 0; }
  .tenant-page-title { font-size: 21px; }
}

/* The rail's field and button sit in a narrow card, so they run a size down. */
.tenant-rail-card .field { font-size: 12.5px; padding: 10px 12px; }
.tenant-rail-card .button-primary { padding: 10px 14px; font-size: 12px; border-radius: 10px; }
