/* ============================================================
   Entrusted POC Directory — mobile-first PWA styles
   Brand palette matches the Service Roadmap PDF (orange + near-white).
   ============================================================ */

:root {
  color-scheme: light;

  /* Brand */
  --brand-primary:        #ea6b1a;
  --brand-primary-dark:   #c75813;
  --brand-primary-light:  #fef1e8;
  --bg:                   #fafaf8;
  --surface:              #ffffff;
  --border:               #e8e6e0;
  --text:                 #2a2a2a;
  --text-dim:             #6b6b6b;
  --text-muted:           #a0a0a0;
  --ok:                   #2d7a3e;
  --ok-bg:                #e8f4ea;
  --warn:                 #c75813;
  --warn-bg:              #fef1e8;
  --err:                  #b42318;
  --err-bg:               #fef2f2;

  /* Effects */
  --elevation-1: 0 1px 3px rgba(0,0,0,0.06);
  --elevation-2: 0 4px 12px rgba(0,0,0,0.08);
  --elevation-3: 0 8px 24px rgba(0,0,0,0.10);
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Sizing */
  --tap-min: 44px;
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* iOS safe-area insets */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--brand-primary-dark); }

/* Focus visibility */
:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Layout helpers ---------------------------------------- */
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 32px;
}
.page--wide { max-width: 900px; }

.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 24px; }

/* ---- Flash messages ---------------------------------------- */
.flash-zone { margin: 12px 0; }
.flash {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: 1px solid transparent;
  margin-bottom: 8px;
}
.flash--error { background: var(--err-bg); color: var(--err); border-color: #fecaca; }
.flash--info  { background: var(--brand-primary-light); color: var(--warn); border-color: #fde4cf; }
.flash--ok    { background: var(--ok-bg); color: var(--ok); border-color: #c3e3c9; }

/* ---- Auth pages -------------------------------------------- */
.auth-wrap {
  min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 16px 48px;
}
.auth-header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo {
  width: 180px;
  max-width: 60vw;
  margin: 0 auto 16px;
}
.auth-welcome {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.auth-tagline {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-style: italic;
  font-family: var(--font-serif);
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--elevation-1);
}
.card h2 {
  font-size: 1.1rem;
  margin: 0 0 14px;
  font-weight: 600;
}

/* ---- Form controls ----------------------------------------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.input {
  width: 100%;
  min-height: var(--tap-min);
  padding: 12px 14px;
  font-size: 18px; /* 18px prevents iOS zoom on focus */
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 120ms, box-shadow 120ms;
  -webkit-appearance: none;
}
.input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-light);
}
.input--code {
  text-align: center;
  letter-spacing: 0.6em;
  font-feature-settings: "tnum";
  font-size: 26px;
  font-weight: 600;
  padding-left: 14px;
  padding-right: 0; /* letter-spacing pushes last digit right; compensate */
}
.helper {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 8px 0 0;
}
.small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap-min);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background 120ms, border-color 120ms, transform 80ms;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--primary {
  background: var(--brand-primary);
  color: #fff;
}
.btn--primary:hover:not(:disabled),
.btn--primary:focus-visible { background: var(--brand-primary-dark); }

.btn--outline {
  background: transparent;
  color: var(--brand-primary-dark);
  border-color: var(--brand-primary);
}
.btn--outline:hover:not(:disabled),
.btn--outline:focus-visible { background: var(--brand-primary-light); }

.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}
.btn--full { width: 100%; }

.btn-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .btn-row--pair { grid-template-columns: 1fr 1fr; }
}

.link-btn {
  background: none;
  border: none;
  color: var(--brand-primary-dark);
  text-decoration: underline;
  padding: 8px 4px;
  min-height: var(--tap-min);
  font-weight: 500;
}
.link-btn:disabled { color: var(--text-muted); cursor: not-allowed; }

/* ---- Job view: header band --------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
}
.app-header__logo { height: 22px; width: auto; }
.app-header__greeting {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
}
.icon-btn {
  background: none;
  border: none;
  padding: 8px;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover,
.icon-btn:focus-visible { background: var(--bg); color: var(--text); }

/* Settings menu popover */
.menu {
  position: relative;
}
.menu__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--elevation-2);
  min-width: 160px;
  padding: 6px;
  display: none;
  z-index: 20;
}
.menu[data-open="true"] .menu__dropdown { display: block; }
.menu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
}
.menu__item:hover,
.menu__item:focus-visible { background: var(--bg); }

/* ---- Hero -------------------------------------------------- */
.hero {
  padding: 20px 0 12px;
  text-align: center;
}
.hero__motto {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-dim);
  font-size: 1rem;
  margin: 0 0 12px;
  line-height: 1.45;
}
.hero__jobline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.hero__jobline strong { color: var(--text); font-weight: 600; }

/* ---- Phase tracker (horizontal stepper) -------------------- */
.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 16px 0 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  box-shadow: var(--elevation-1);
  position: relative;
}
.phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  text-align: center;
  min-width: 0;
}
.phase__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: background 150ms, border-color 150ms, color 150ms;
  flex-shrink: 0;
}
.phase__icon svg { width: 24px; height: 24px; }
.phase__label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.phase--current .phase__icon {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.phase--current .phase__label { color: var(--text); }

.phase--enabled .phase__icon {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.phase--complete .phase__icon {
  background: var(--ok-bg);
  border-color: var(--ok);
  color: var(--ok);
}

.phase--disabled .phase__icon {
  opacity: 0.45;
}
.phase--disabled .phase__label {
  text-decoration: line-through;
  opacity: 0.55;
}

/* Completed checkmark badge overlay */
.phase__check {
  position: absolute;
  margin-left: 24px;
  margin-top: -8px;
  width: 18px;
  height: 18px;
  background: var(--ok);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}
.phase__check svg { width: 10px; height: 10px; }

/* ---- Current POC card -------------------------------------- */
.poc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--elevation-2);
  position: relative;
  overflow: hidden;
}
.poc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand-primary);
}
.poc-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  background: var(--brand-primary-light);
  border: 3px solid var(--surface);
  box-shadow: var(--elevation-2);
  display: block;
}
.poc-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--brand-primary);
  font-weight: 600;
}
.poc-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}
.poc-role {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
  font-weight: 600;
}
.poc-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 20px;
  padding: 10px 12px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.poc-tagline::before { content: "\201C"; }
.poc-tagline::after  { content: "\201D"; }
.poc-assigned {
  display: block;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---- Updates feed ------------------------------------------ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 28px 4px 12px;
}
.section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.update {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--elevation-1);
}
.update + .update { margin-top: 12px; }
.update__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.update__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-primary-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-weight: 600;
  font-family: var(--font-serif);
}
.update__meta { flex: 1; min-width: 0; }
.update__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  display: block;
  line-height: 1.2;
}
.update__role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.update__time {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.update__body {
  font-size: 0.95rem;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  line-height: 1.5;
}
.update__body a { color: var(--brand-primary-dark); word-break: break-all; }

.update__photos {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.update__photo {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  cursor: pointer;
  scroll-snap-align: start;
}

.load-more-wrap { text-align: center; margin-top: 16px; }
.empty-state {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---- Roster (collapsible) ---------------------------------- */
details.roster {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--elevation-1);
}
details.roster > summary {
  list-style: none;
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--tap-min);
}
details.roster > summary::-webkit-details-marker { display: none; }
details.roster > summary::after {
  content: "▾";
  color: var(--text-muted);
  transition: transform 150ms;
}
details.roster[open] > summary::after { transform: rotate(180deg); }

.roster__list {
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.roster__item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.roster__photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-primary-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-weight: 600;
  font-family: var(--font-serif);
}
.roster__body { flex: 1; min-width: 0; }
.roster__name {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
}
.roster__role {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}
.roster__dates {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---- Footer ------------------------------------------------ */
.app-footer {
  margin-top: 36px;
  padding: 20px 12px 8px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
.app-footer a { color: var(--text-dim); text-decoration: none; }
.app-footer a:hover { color: var(--brand-primary-dark); text-decoration: underline; }

/* ---- Install prompt banner --------------------------------- */
.install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--elevation-3);
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
  animation: slide-up 220ms ease-out;
}
.install-banner[data-visible="true"] { display: flex; }
.install-banner__body {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
}
.install-banner__body strong { color: var(--brand-primary-dark); }
.install-banner__actions { display: flex; gap: 6px; }

@keyframes slide-up {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ---- Error pages ------------------------------------------- */
.error-wrap {
  min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.error-wrap h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 12px 0 8px;
  color: var(--brand-primary-dark);
}
.error-wrap p { color: var(--text-dim); max-width: 32em; }

/* ---- Utility ----------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---- Tablet and up ----------------------------------------- */
@media (min-width: 640px) {
  .page { padding: 0 24px 48px; }
  .phase__icon { width: 48px; height: 48px; }
  .phase__icon svg { width: 28px; height: 28px; }
  .phase__label { font-size: 0.78rem; }
  .poc-photo { width: 140px; height: 140px; }
}

@media (min-width: 1024px) {
  .poc-card { padding: 32px 28px; }
}

/* ============================================================
   Chip (status badge on hero)
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  margin-top: 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  min-height: 32px;
  transition: background 120ms, border-color 120ms;
}
.chip--warn {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: #fde4cf;
}
.chip--warn:hover { background: #fde4cf; }
.chip--ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: #c3e3c9;
}
.chip--ok:hover { background: #d6ecd9; }

/* ============================================================
   Service Roadmap page
   ============================================================ */
.roadmap-hero {
  padding: 28px 8px 16px;
  text-align: center;
  border-bottom: 4px solid var(--brand-primary);
  margin-bottom: 28px;
  position: relative;
}
.roadmap-title {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 800;
  color: #3a3a3a;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.roadmap-motto {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.45;
}

/* --- Phase cards ------------------------------------------------ */
.roadmap-phases {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 12px;
}
.phase-card {
  background: var(--surface);
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--elevation-1);
  scroll-margin-top: 80px;
}
/* First phase (Assessment) has a charcoal border in the PDF */
.phase-card:first-child {
  border-color: #3a3a3a;
}
.phase-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.phase-card__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phase-card__icon svg { width: 100%; height: 100%; }
.phase-card__titles { flex: 1; }
.phase-card__label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #3a3a3a;
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1.2;
}

.phase-card__role-box {
  background: #f1efe9;
  border: 1.5px dashed #bdb9ad;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}
.phase-card__role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}
.phase-card__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.phase-card__services-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.phase-card__services-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}
.phase-card__services-list li + li { margin-top: 6px; }

/* The POC Directory is a mobile-first PWA. On desktop we center the
   mobile layout rather than trying to reflow it horizontally — that
   caused POC blocks to overlap phase content at wider viewports. */
@media (min-width: 640px) {
  .rm-page {
    max-width: 560px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* --- Divider ---------------------------------------------------- */
.roadmap-divider {
  border: none;
  border-top: 2px solid var(--brand-primary);
  margin: 36px 0 24px;
  opacity: 0.6;
}

/* --- FAQs ------------------------------------------------------- */
.roadmap-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #3a3a3a;
  text-align: center;
  margin: 0 0 24px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--elevation-1);
}
.faq__summary {
  list-style: none;
  cursor: pointer;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: var(--tap-min);
  -webkit-tap-highlight-color: transparent;
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  background: var(--surface);
}
.faq__question {
  flex: 1;
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 0.95rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  align-self: center;
}
.faq__chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  align-self: center;
  transition: transform 200ms;
}
.faq[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer {
  padding: 0 16px 16px 60px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}
.faq__answer p { margin: 0; }

/* --- Acknowledgment card ---------------------------------------- */
.roadmap-ack {
  margin: 24px 0;
}
.ack-card {
  background: var(--surface);
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--elevation-2);
}
.ack-card--hidden { display: none; }
.ack-card--done {
  border-color: var(--ok);
  background: var(--ok-bg);
  text-align: center;
  margin-bottom: 16px;
}
.ack-card__icon {
  display: flex;
  justify-content: center;
  color: var(--ok);
  margin-bottom: 8px;
}
.ack-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0 0 14px;
}
.ack-card__title--primary {
  color: var(--brand-primary);
  text-align: center;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
}
.ack-card--done .ack-card__title {
  color: var(--ok);
  letter-spacing: 0.04em;
  font-size: 1.3rem;
  font-family: var(--font-serif);
  text-align: center;
}
.ack-card__body {
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.55;
}
.ack-card__body--large {
  font-size: 1.05rem;
  text-align: center;
  padding: 12px 0;
}

.ack-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color 120ms, background 120ms;
  min-height: var(--tap-min);
}
.ack-checkbox:hover { border-color: var(--brand-primary); }
.ack-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--brand-primary);
  margin: 0;
}
.ack-checkbox span {
  font-weight: 500;
  line-height: 1.4;
  padding-top: 2px;
}
.ack-submit { margin-top: 4px; }

/* Sticky bottom CTA on mobile when form visible */
.ack-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: none;
}

/* --- Disclaimer ------------------------------------------------- */
.roadmap-disclaimer {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 24px 0 8px;
  text-align: center;
}

/* --- Print -------------------------------------------------------- */
@media print {
  body { background: #fff; }
  .app-header,
  .install-banner,
  .ack-sticky-cta,
  .app-footer,
  .menu { display: none !important; }
  .faq { break-inside: avoid; box-shadow: none; }
  .faq__chevron { display: none; }
  .faq[open] .faq__answer,
  .faq .faq__answer { display: block !important; padding-left: 60px; }
  .faq:not([open]) .faq__answer { display: block; }
  details.faq[open] > summary,
  details.faq > summary { pointer-events: none; }
  /* Force all FAQs to show expanded */
  details.faq { display: block; }
  .phase-card { break-inside: avoid; box-shadow: none; }
  .ack-card--form { break-inside: avoid; }
}



/* =====================================================================
   V1 Service Roadmap — job_view.html
   Goal: page feels like the printed Service Roadmap PDF, brought alive
   for this job. All rules here are scoped under .rm-page so they never
   collide with the /roadmap FAQ page.
   ===================================================================== */

/* Page-level reset */
.rm-page {
  background: #ffffff;
  min-height: 100vh;
  padding: 0 0 80px;
  max-width: 720px;
  margin: 0 auto;
  color: #2a2a2a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header band — orange strip matching the PDF */
.rm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #ea6b1a;
  max-width: 720px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 10;
}
.rm-header__logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1); /* white on orange */
}
.rm-header__link {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.rm-header__link:hover { text-decoration: underline; }

/* Hero — tight under the orange header */
.rm-hero {
  text-align: center;
  padding: 16px 24px 12px;
}
.rm-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: #2a2a2a;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}
.rm-motto {
  color: #6b6b6b;
  font-size: 0.9rem;
  font-style: italic;
  max-width: 420px;
  margin: 0 auto 10px;
  line-height: 1.45;
}
.rm-jobline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
  color: #6b6b6b;
  padding-top: 8px;
  border-top: 1px solid #eee;
  max-width: 360px;
  margin: 0 auto;
}
.rm-jobline strong { color: #2a2a2a; font-weight: 600; }
.rm-jobline__addr { font-size: 0.82rem; }

/* ===== Phase cards ===== */

.rm-page .phase-card {
  background: #ffffff;
  border: 1.5px solid #e8e6e0;
  border-radius: 10px;
  margin: 16px 20px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rm-page .phase-card--current {
  border-color: #ea6b1a;
  border-width: 2px;
  box-shadow: 0 2px 12px rgba(234, 107, 26, 0.1);
}
.rm-page .phase-card--complete {
  background: #fafaf8;
  border-color: #d4d2cc;
}
.rm-page .phase-card--upcoming {
  background: #fbfbf9;
  border-color: #e8e6e0;
  opacity: 0.82;
}

.rm-page .phase-card__body {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  gap: 10px 14px;
  padding: 18px 18px 16px;
  align-items: start;
}
.rm-page .phase-card__icon {
  grid-row: 1;
  grid-column: 1;
  width: 44px;
  height: 44px;
  color: #8b8b8b;
  padding-top: 2px;
}
/* Compact body for past / upcoming phases — no services, no tagline */
.rm-page .phase-card--complete .phase-card__body,
.rm-page .phase-card--upcoming .phase-card__body {
  grid-template-rows: auto;
  padding: 14px 18px;
  gap: 8px 14px;
}
.rm-page .phase-card--complete .phase-card__content,
.rm-page .phase-card--upcoming .phase-card__content {
  display: none;
}
.rm-page .phase-card--current .phase-card__icon { color: #ea6b1a; }
.rm-page .phase-card__icon svg { width: 100%; height: 100%; }

.rm-page .phase-card__meta {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rm-page .phase-card__phase-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #9a9a9a;
}
.rm-page .phase-card--current .phase-card__phase-label { color: #ea6b1a; }
.rm-page .phase-card__role {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2a2a2a;
  line-height: 1.2;
  margin-top: 2px;
}
.rm-page .phase-card__badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #fef1e8;
  color: #c75813;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.rm-page .phase-card__badge--done {
  background: #eef2eb;
  color: #5a7a4a;
}

.rm-page .phase-card__content {
  grid-row: 2;
  grid-column: 1 / span 2;   /* full-width under the meta row — no dead column */
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rm-page .phase-card__tagline-wrap {
  padding-left: 2px;
}
.rm-page .phase-card__tagline {
  font-style: italic;
  color: #6b6b6b;
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 14px 16px;
  border: 1.5px dashed #d4d2cc;   /* speech-bubble vibe from PDF */
  border-radius: 12px;
  margin: 0;
  background: #fafaf8;
}
.rm-page .phase-card--current .phase-card__tagline {
  border-color: #f3c8a8;
  background: #fef8f2;
  color: #4a3a2a;
}
.rm-page .phase-card__services-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #ea6b1a;
  margin-bottom: 8px;
}
.rm-page .phase-card--complete .phase-card__services-title,
.rm-page .phase-card--upcoming .phase-card__services-title {
  color: #9a9a9a;
}
.rm-page .phase-card__services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rm-page .phase-card__services-list li {
  position: relative;
  padding: 4px 0 4px 20px;
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.5;
}
.rm-page .phase-card__services-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ea6b1a;
}
.rm-page .phase-card--complete .phase-card__services-list li::before,
.rm-page .phase-card--upcoming .phase-card__services-list li::before {
  background: #b5b3ac;
}

/* Contracting group (MIT + PreCon + Construction) — mimics the PDF's orange box */
.rm-page .phase-group {
  margin: 8px 20px 24px;
  border: 2px solid #ea6b1a;
  border-radius: 14px;
  padding: 8px;
  background: #fffcf9;
}
.rm-page .phase-group .phase-card {
  margin: 8px 0;
  border-radius: 8px;
}
.rm-page .phase-group .phase-card + .phase-card {
  border-top: 1px solid #eee;
}
@media (min-width: 640px) {
  .rm-page .phase-group { padding: 12px; }
}

/* ===== POC block — inside the current phase card ===== */

.rm-page .poc-block {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: #fef8f2;
  border-top: 1.5px dashed #f3c8a8;
}
.rm-page .phase-card--current .poc-block {
  background: #fff5ea;
}
.rm-page .poc-block__photo {
  grid-row: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.rm-page .poc-block__photo--placeholder {
  background: #ea6b1a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
}
.rm-page .poc-block__photo--small {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  box-shadow: none;
  border-color: #ddd;
}
.rm-page .poc-block__id {
  grid-column: 2;
  min-width: 0;
}
.rm-page .poc-block__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #c75813;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.rm-page .poc-block__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2a2a2a;
  line-height: 1.2;
}
.rm-page .poc-block__name--small {
  font-size: 0.95rem;
}
.rm-page .poc-block__since {
  font-size: 0.78rem;
  color: #8b8b8b;
  margin-top: 2px;
}

.rm-page .poc-block__actions {
  grid-column: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.rm-page .poc-block__actions .btn {
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: transform 0.08s ease-in, background 0.15s;
}
.rm-page .poc-block__actions .btn--primary {
  background: #ea6b1a;
  color: white;
  border: none;
}
.rm-page .poc-block__actions .btn--primary:hover { background: #d45f13; }
.rm-page .poc-block__actions .btn--primary:active { transform: scale(0.98); }
.rm-page .poc-block__actions .btn--outline {
  background: transparent;
  color: #ea6b1a;
  border: 1.5px solid #ea6b1a;
}
.rm-page .poc-block__actions .btn--outline:hover {
  background: #ea6b1a;
  color: white;
}

/* Compact POC block for completed phases */
.rm-page .poc-block--compact {
  background: #f5f3ee;
  padding: 12px 22px;
  border-top: 1px solid #e8e6e0;
}

/* Pending POC block for upcoming phases */
.rm-page .poc-block--pending {
  background: transparent;
  padding: 10px 22px 18px;
  border-top: 1px dashed #d4d2cc;
}
.rm-page .poc-block--pending .poc-block__label {
  color: #9a9a9a;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.2px;
  font-weight: 400;
  font-size: 0.82rem;
}

/* ===== Footer ===== */

.rm-footer {
  margin-top: 40px;
  padding: 28px 24px 20px;
  text-align: center;
  color: #8b8b8b;
  font-size: 0.85rem;
  border-top: 1px solid #eee;
}
.rm-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ea6b1a;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border: 1.5px solid #ea6b1a;
  border-radius: 8px;
  margin-bottom: 14px;
  transition: background 0.15s;
}
.rm-footer__link:hover {
  background: #fef1e8;
}
.rm-footer__help { margin-top: 10px; font-size: 0.85rem; }
.rm-footer__help a { color: #ea6b1a; font-weight: 600; }
.rm-footer__site {
  margin-top: 18px;
  font-size: 0.75rem;
  color: #a0a0a0;
  letter-spacing: 0.5px;
}

/* ===== Responsive (tablet+) ===== */

@media (min-width: 640px) {
  .rm-page .phase-card__body {
    grid-template-columns: 80px 1fr 1.3fr;
    grid-template-rows: auto;
    gap: 16px 24px;
  }
  .rm-page .phase-card__icon {
    grid-row: 1;
  }
  .rm-page .phase-card__meta { grid-row: 1; grid-column: 2; }
  .rm-page .phase-card__content {
    grid-row: 1;
    grid-column: 3;
    margin-top: 0;
  }
  .rm-page .phase-card__badge { margin-top: 10px; }
  .rm-page .poc-block {
    grid-template-columns: 72px 1fr auto;
  }
  .rm-page .poc-block__actions {
    grid-column: 3;
    grid-template-columns: auto auto;
    margin-top: 0;
  }
  .rm-title { font-size: 2.4rem; }
}

/* ===== Print-friendly ===== */

@media print {
  .rm-header, .rm-footer { display: none; }
  .rm-page { max-width: none; }
  .phase-card { break-inside: avoid; box-shadow: none !important; }
  .phase-group { break-inside: avoid; }
}

/* ===== Compact row for COMPLETED phases ===== */
.rm-page .phase-row {
  display: grid;
  grid-template-columns: 32px 1fr auto 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 6px 20px;
  background: #f7f6f2;
  border: 1px solid #e8e6e0;
  border-radius: 8px;
  color: #6b6b6b;
  font-size: 0.88rem;
}
.rm-page .phase-group .phase-row {
  margin: 4px 0;
  background: #faf8f4;
}
.rm-page .phase-row__icon {
  width: 28px; height: 28px;
  color: #a0a0a0;
  display: inline-flex;
  align-items: center;
}
.rm-page .phase-row__icon svg { width: 100%; height: 100%; }
.rm-page .phase-row__label {
  font-weight: 700;
  color: #2a2a2a;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1.2px;
  margin-right: 4px;
}
.rm-page .phase-row__role {
  color: #8b8b8b;
  font-size: 0.8rem;
}
.rm-page .phase-row__poc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rm-page .phase-row__avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.rm-page .phase-row__avatar--placeholder {
  background: #c75813;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 0.7rem;
}
.rm-page .phase-row__poc-name {
  font-size: 0.82rem;
  color: #4a4a4a;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.rm-page .phase-row__check {
  color: #5a8f4f;
  display: inline-flex;
  align-items: center;
}

/* On very narrow screens, let the poc name wrap nicely */
@media (max-width: 420px) {
  .rm-page .phase-row { grid-template-columns: 28px 1fr 16px; }
  .rm-page .phase-row__poc { display: none; }
  .rm-page .phase-row__role { display: none; }
}

/* =====================================================================
   V1 phase-card extensions:
   - <details>/<summary> for completed phases (clickable to expand)
   - Dimmed upcoming phase styling
   - Pending POC line (full-width, not cramped column)
   ===================================================================== */

/* ─── Completed phase as <details> ─── */
.rm-page details.phase-card {
  padding: 0;
}
.rm-page details.phase-card > .phase-card__summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 32px 1fr auto 18px 14px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f7f6f2;
  border-radius: 8px;
  color: #6b6b6b;
  font-size: 0.88rem;
  transition: background 0.15s;
}
.rm-page details.phase-card > .phase-card__summary::-webkit-details-marker { display: none; }
.rm-page details.phase-card > .phase-card__summary::marker { content: ''; }
.rm-page details.phase-card > .phase-card__summary:hover { background: #f0eee8; }
.rm-page details.phase-card[open] > .phase-card__summary {
  background: #fffcf9;
  border-radius: 8px 8px 0 0;
  border-bottom: 1.5px solid #eae3d5;
}
.rm-page details.phase-card[open] .phase-row__chevron svg { transform: rotate(180deg); }
.rm-page .phase-row__chevron {
  color: #a0a0a0;
  transition: transform 0.15s;
  display: inline-flex;
  align-items: center;
}
.rm-page .phase-row__chevron svg { transition: transform 0.2s; }

.rm-page .phase-card__expanded {
  padding: 4px 0 0;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
}
.rm-page details.phase-card--complete .phase-card__body {
  padding: 18px 18px 10px;
}

/* When a completed <details> is open, restore full layout inside */
.rm-page details.phase-card[open] {
  background: #ffffff;
  border-color: #d4d2cc;
}
.rm-page details.phase-card[open] .phase-card__content {
  display: flex !important;  /* override the "hide content" rule for collapsed state */
}

/* ─── Upcoming phase — dim but show everything ─── */
.rm-page .phase-card--upcoming {
  background: #fbfbf9;
  border-color: #e8e6e0;
  color: #8b8b8b;
}
.rm-page .phase-card--upcoming .phase-card__body {
  grid-template-rows: auto auto;    /* restore full rows — override the compact override */
  padding: 18px 18px 16px;
}
.rm-page .phase-card--upcoming .phase-card__content {
  display: flex !important;          /* show services + tagline for upcoming */
}
.rm-page .phase-card--upcoming .phase-card__phase-label { color: #a0a0a0; }
.rm-page .phase-card--upcoming .phase-card__role { color: #6b6b6b; opacity: 0.85; }
.rm-page .phase-card--upcoming .phase-card__tagline {
  color: #8b8b8b;
  background: #f5f3ee;
  border-color: #e0ddd5;
}
.rm-page .phase-card--upcoming .phase-card__services-title { color: #9a9a9a; }
.rm-page .phase-card--upcoming .phase-card__services-list li { color: #7a7a7a; }
.rm-page .phase-card--upcoming .phase-card__services-list li::before { background: #b5b3ac; }
.rm-page .phase-card--upcoming .phase-card__badge--upcoming {
  background: #eee9df;
  color: #8b7a5a;
}

/* ─── Pending POC line (upcoming, no cramped column) ─── */
.rm-page .poc-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: #f5f3ee;
  border-top: 1px dashed #d4d2cc;
  color: #8b8b8b;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}
.rm-page .poc-pending svg {
  flex-shrink: 0;
  color: #b5b3ac;
}


/* ─── Save to contacts link (vCard download) ─── */
.rm-page .poc-block__save {
  grid-column: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #8b5b2a;
  text-decoration: none;
  border-radius: 6px;
  background: transparent;
  transition: background 0.15s;
}
.rm-page .poc-block__save:hover {
  background: rgba(234, 107, 26, 0.08);
  text-decoration: underline;
}
.rm-page .poc-block__save svg { flex-shrink: 0; }

/* Make the hero + jobline tighter on the FAQ page (no phase cards) */
.rm-page.roadmap .rm-hero { padding-bottom: 12px; }

/* Save-to-Home-Screen CTA in the main job footer */
.rm-page .rm-footer__install {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  margin-bottom: 14px;
  background: #fff;
  color: #ea6b1a;
  border: 1.5px dashed #ea6b1a;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-style 0.15s;
  font-family: inherit;
}
.rm-page .rm-footer__install:hover {
  background: #fef1e8;
  border-style: solid;
}
.rm-page .rm-footer__install svg { flex-shrink: 0; }

/* =====================================================================
   Desktop enhancements (>=900px)
   All rules below are additive — mobile styles above are untouched.
   ===================================================================== */

/* --- Header: address surfaces inline (hidden on mobile) -------------- */
.rm-header__addr { display: none; }
.rm-header__signout {
  margin: 0;
  display: inline-flex;
}
.rm-header__signout .rm-header__link {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

@media (min-width: 900px) {
  /* Global body surface on desktop */
  body {
    background: #f3f0ea;
  }

  /* --- Job view page shell -------------------------------------- */
  .rm-page {
    max-width: 880px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
    margin: 24px auto 48px;
    border-radius: 14px;
    overflow: hidden;
    padding-bottom: 64px;
  }

  /* Header: logo | address | sign out */
  .rm-header {
    max-width: none;
    padding: 16px 32px;
    gap: 24px;
    border-radius: 14px 14px 0 0;
    position: relative;   /* override sticky — full page scrolls at desktop */
  }
  .rm-header__logo { height: 30px; }
  .rm-header__addr {
    display: inline-block;
    flex: 1;
    color: rgba(255,255,255,0.95);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-align: left;
    padding-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rm-header__link {
    font-size: 0.88rem;
  }

  /* Hero gets room to breathe; hide duplicate jobline on desktop */
  .rm-hero {
    padding: 36px 40px 20px;
  }
  .rm-title { font-size: 2.6rem; letter-spacing: -0.8px; }
  .rm-motto { font-size: 1rem; max-width: 520px; margin-bottom: 0; }
  .rm-jobline { display: none; }

  /* --- Phase cards: airier -------------------------------------- */
  .rm-page .phase-card {
    margin: 20px 40px;
    border-radius: 14px;
    border-width: 1.5px;
  }

  /* Rebalance columns: quote moves under the title on the left,
     services span the full height on the right. */
  .rm-page .phase-card__body {
    grid-template-columns: 72px minmax(220px, 300px) 1fr;
    grid-template-rows: auto auto;
    padding: 26px 32px 24px;
    gap: 14px 32px;
    align-items: start;
  }
  .rm-page .phase-card__icon { grid-column: 1; grid-row: 1; align-self: start; }
  .rm-page .phase-card__meta {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  /* Flatten .phase-card__content into the parent grid so we can place
     the tagline and services in distinct cells. Applies to any phase
     that shows this content (current + upcoming). The !important beats
     the upcoming override earlier in the file. */
  .rm-page .phase-card--current .phase-card__content,
  .rm-page .phase-card--upcoming .phase-card__content {
    display: contents !important;
  }
  .rm-page .phase-card--current .phase-card__tagline-wrap,
  .rm-page .phase-card--upcoming .phase-card__tagline-wrap {
    grid-column: 2;
    grid-row: 2;
    margin-top: 4px;
  }
  .rm-page .phase-card--current .phase-card__services,
  .rm-page .phase-card--upcoming .phase-card__services {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: start;
    /* Offset by the height of the small phase-label above the role
       (~0.75rem + line-height + flex gap) so SERVICES PROVIDED starts
       on the same horizontal line as the role title. */
    padding-top: 1.4rem;
  }

  /* Completed phases are one-row summaries — keep them compact. */
  .rm-page .phase-card--complete .phase-card__body {
    padding: 18px 32px;
    grid-template-rows: auto;
  }
  /* Upcoming gets the two-row desktop layout too, with gentler padding. */
  .rm-page .phase-card--upcoming .phase-card__body {
    padding: 22px 32px 20px;
  }

  .rm-page .phase-card__role { font-size: 1.55rem; }
  .rm-page .phase-card__phase-label { font-size: 0.75rem; }
  .rm-page .phase-card__tagline { font-size: 1rem; line-height: 1.55; }
  .rm-page .phase-card__services-title { font-size: 0.78rem; }
  .rm-page .phase-card__services-list li { font-size: 0.96rem; }

  /* Current phase: subtle warm tint so it reads as "you are here" */
  .rm-page .phase-card--current {
    background: linear-gradient(180deg, #fff8f1 0%, #ffffff 60%);
    box-shadow: 0 2px 20px rgba(234, 107, 26, 0.14);
  }

  /* Status badge gets a bit more presence */
  .rm-page .phase-card__badge {
    font-size: 0.72rem;
    padding: 5px 12px;
    letter-spacing: 0.8px;
  }

  /* Completed phase summary row — slightly taller/airier */
  .rm-page details.phase-card > .phase-card__summary {
    padding: 14px 24px;
    font-size: 0.92rem;
  }

  /* Phase group (orange box) — balance with new page width */
  .rm-page .phase-group {
    margin: 20px 40px;
    padding: 18px;
  }
  .rm-page .phase-group .phase-card {
    margin: 10px 0;
  }

  /* POC block — wider + more breathing room */
  .rm-page .poc-block {
    padding: 20px 28px 22px;
    gap: 18px 22px;
  }
  .rm-page .poc-block__name { font-size: 1.25rem; }

  /* Footer */
  .rm-footer {
    padding: 32px 40px 24px;
  }
}

/* --- Login / verify: Option A (centered card on brand gradient) ----- */
@media (min-width: 900px) {
  .auth-wrap.page {
    max-width: none;
    min-height: 100vh;
    padding: 56px 20px;
    background:
      radial-gradient(ellipse 1200px 600px at 50% -10%, #fde4cf 0%, rgba(253,228,207,0) 70%),
      linear-gradient(180deg, #fef7f0 0%, #fafaf8 60%);
  }

  .auth-wrap.page > .auth-header,
  .auth-wrap.page > .flash-zone,
  .auth-wrap.page > .card,
  .auth-wrap.page > form {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .auth-header { margin-bottom: 32px; }
  .auth-logo { width: 220px; max-width: 220px; margin-bottom: 20px; }
  .auth-welcome { font-size: 1.9rem; line-height: 1.2; }
  .auth-tagline { font-size: 1.05rem; }

  .auth-wrap .card {
    padding: 36px 36px 32px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.08);
    border-radius: var(--radius-lg);
    border-color: transparent;
  }
  .auth-wrap .card h2 {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }
}

/* --- People with access (owner-only section on job view) ----------- */
.rm-people {
  margin: 24px 20px 8px;
  padding: 18px 18px 16px;
  background: #faf8f4;
  border: 1px solid #e8e6e0;
  border-radius: 10px;
}
.rm-people__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.rm-people__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #6b6b6b;
  margin: 0;
}
.rm-people__invite {
  padding: 8px 14px;
  min-height: 36px;
  font-size: 0.85rem;
}
.rm-people__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rm-people__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #e8e6e0;
}
.rm-people__item:first-child { border-top: 0; }
.rm-people__name {
  font-weight: 600;
  color: #2a2a2a;
  font-size: 0.95rem;
}
.rm-people__phone {
  color: #8b8b8b;
  font-size: 0.82rem;
  margin-top: 2px;
}
.rm-people__remove {
  color: #b42318;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 6px 4px;
  min-height: auto;
  text-decoration: underline;
}
.rm-people__remove:hover { color: #8b1914; }
.rm-people__empty {
  color: #8b8b8b;
  font-size: 0.88rem;
  font-style: italic;
  margin: 4px 0 0;
}

@media (min-width: 900px) {
  .rm-people { margin: 28px 40px 12px; padding: 22px 24px 20px; }
  .rm-people__title { font-size: 0.82rem; }
}

/* --- Medium tablets: halfway between mobile + desktop (768-899px) --- */
@media (min-width: 768px) and (max-width: 899px) {
  .rm-page { max-width: 760px; }
  .rm-title { font-size: 2.1rem; }
  .auth-wrap.page {
    background: linear-gradient(180deg, #fef7f0 0%, #fafaf8 100%);
    min-height: 100vh;
  }
  .auth-wrap .card {
    box-shadow: var(--elevation-2);
  }
}
