/* Unified Guide Mobile Tour Container */
.guide-nav-profile,
#nav > .nav-eyebrow:has(+ .guide-nav-profile) {
  display: none !important;
}

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

.guide-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  margin-bottom: 18px;
  padding: 30px 32px 0;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #0b438e 0%, #176fd0 58%, #22a0dd 100%);
  box-shadow: 0 18px 42px rgba(14, 75, 151, .2);
}

.guide-hero::before,
.guide-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
}

.guide-hero::before { width: 290px; height: 290px; right: -90px; top: -155px; }
.guide-hero::after { width: 180px; height: 180px; left: 45%; bottom: -145px; }
.guide-hero-copy, .guide-hero-profile, .guide-hero-stats { position: relative; z-index: 1; }
.guide-hero-copy > span { display: block; margin-bottom: 9px; color: #bdddff; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.guide-hero-copy h1 { max-width: 650px; margin: 0; color: #fff; font-size: clamp(22px, 2.2vw, 31px); line-height: 1.18; letter-spacing: -.8px; }
.guide-hero-copy p { max-width: 620px; margin: 11px 0 0; color: rgba(255, 255, 255, .76); font-size: 11.5px; line-height: 1.6; }
.guide-hero-copy .role { min-width: 230px; margin-top: 14px; border-color: rgba(255, 255, 255, .28); color: #fff; background: rgba(255, 255, 255, .12); }

.guide-hero-profile {
  align-self: start;
  min-width: 250px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  background: rgba(255, 255, 255, .11);
  backdrop-filter: blur(8px);
}

.guide-hero-profile > span { width: 46px; height: 46px; grid-row: 1 / 3; display: grid; place-items: center; border-radius: 13px; color: #145db7; background: #fff; font-size: 12px; font-weight: 800; }
.guide-hero-profile b, .guide-hero-profile small { display: block; }
.guide-hero-profile b { color: #fff; font-size: 11.5px; }
.guide-hero-profile small { margin-top: 3px; color: rgba(255, 255, 255, .65); font-size: 9.5px; }
.guide-hero-profile em { grid-column: 2; width: fit-content; padding: 3px 7px; border-radius: 99px; font-size: 8.5px; font-style: normal; font-weight: 750; }
.guide-hero-profile em.is-ready { color: #d1fae5; background: rgba(16, 185, 129, .2); }
.guide-hero-profile em.is-warning { color: #fff1c2; background: rgba(245, 158, 11, .22); }

.guide-hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 25px -32px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: rgba(5, 42, 93, .18);
}

.guide-hero-stats > div { min-width: 0; padding: 15px 32px 17px; border-right: 1px solid rgba(255, 255, 255, .13); }
.guide-hero-stats > div:last-child { border-right: 0; }
.guide-hero-stats small, .guide-hero-stats b, .guide-hero-stats span { display: block; }
.guide-hero-stats small { color: #bdddff; font-size: 8px; font-weight: 800; letter-spacing: .7px; }
.guide-hero-stats b { margin-top: 5px; color: #fff; font-size: 19px; }
.guide-hero-stats span { overflow: hidden; margin-top: 2px; color: rgba(255, 255, 255, .65); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.guide-role-nav .navgroup-title { cursor: default; }

.guide-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  padding: 7px;
  border-color: #d7e2ef;
  border-radius: 14px;
  background: #eaf1f8;
}

.guide-page--role > .guide-tabs { display: none; }

.guide-tabs .btn {
  min-width: 0;
  min-height: 48px;
  justify-content: center;
  gap: 7px;
  padding: 7px 9px;
  white-space: normal;
  line-height: 1.25;
}

.guide-tabs .btn i { flex: 0 0 auto; font-size: 13px; }
.guide-tabs .btn.danger:not(.selected) { color: #c2413b; }

.guide-page .guide-portal { width: 100%; max-width: none; margin: 0; }

.guide-emergency-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: stretch;
}

.guide-emergency-grid > .card { min-height: 210px; margin: 0; padding: 20px; }

.guide-emergency-call {
  min-height: 210px;
  padding: 24px;
  border: 1px solid #f2c9c4;
  border-radius: 16px;
  color: #7f1d1d;
  background: linear-gradient(145deg, #fff8f7, #fff0ee);
  box-shadow: 0 8px 24px rgba(153, 27, 27, .06);
}

.guide-emergency-call > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; color: #fff; background: #dc3c35; font-size: 16px; }
.guide-emergency-call small { display: block; color: #c2413b; font-size: 8px; font-weight: 800; letter-spacing: .9px; }
.guide-emergency-call h2 { margin: 7px 0 6px; color: #991b1b; font-size: 24px; letter-spacing: .3px; }
.guide-emergency-call p { max-width: 420px; margin: 0; color: #9b5c58; font-size: 10.5px; line-height: 1.55; }
.guide-emergency-call a { width: fit-content; display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 9px 13px; border-radius: 9px; color: #fff; background: #c9342e; font-size: 10px; font-weight: 750; text-decoration: none; }

.guide-emergency-empty { min-height: 130px; display: grid; place-items: center; align-content: center; gap: 5px; color: #728197; text-align: center; }
.guide-emergency-empty > span { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 11px; color: #4777bc; background: #eef4fc; }
.guide-emergency-empty b { color: #41516a; font-size: 11px; }
.guide-emergency-empty small { font-size: 9.5px; }

.guide-empty-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid #d6e2f0;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #f5f9ff);
  box-shadow: 0 8px 24px rgba(23, 46, 77, .055);
}

.guide-empty-hero > span {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #185dc5, #3284ee);
  font-size: 18px;
}

.guide-empty-hero div > small { display: block; margin-bottom: 5px; color: #3473cf; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.guide-empty-hero h2 { margin: 0; color: #18243a; font-size: 15px; }
.guide-empty-hero p { margin: 6px 0 0; color: #6f7f95; font-size: 10.5px; line-height: 1.55; }

.guide-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 22px 2px 13px; }
.guide-section-heading span { color: #2b70d4; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.guide-section-heading h2 { margin: 4px 0 0; color: #17243a; font-size: 16px; }
.guide-section-heading p { margin: 0; color: #8491a4; font-size: 10px; }

.guide-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-feature-grid button {
  position: relative;
  min-width: 0;
  min-height: 118px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 4px 11px;
  padding: 14px;
  border: 1px solid #dce5ef;
  border-radius: 13px;
  color: #263750;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.guide-feature-grid button:hover { border-color: #9fbeef; transform: translateY(-1px); box-shadow: 0 7px 18px rgba(37, 99, 235, .09); }
.guide-feature-grid button > span { grid-row: 1 / 4; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #2563eb; background: #edf4ff; }
.guide-feature-grid button small { color: #8b98aa; font-size: 9px; font-weight: 800; letter-spacing: .8px; }
.guide-feature-grid button b { align-self: start; font-size: 11px; }
.guide-feature-grid button em { color: #8592a5; font-size: 9px; font-style: normal; }
.guide-feature-grid button > i { grid-column: 3; grid-row: 1 / 4; color: #9aa8ba; font-size: 10px; }

.guide-assignment-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
  padding: 15px 17px;
  border: 1px solid #cfe0fb;
  border-radius: 14px;
  color: #204477;
  background: #f1f7ff;
}

.guide-assignment-summary > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #2563eb;
}

.guide-assignment-summary b,
.guide-assignment-summary small { display: block; }
.guide-assignment-summary b { font-size: 12px; }
.guide-assignment-summary small { margin-top: 3px; color: #6480a7; font-size: 10px; }

.guide-assignment-card {
  margin-bottom: 12px;
  padding: 17px;
  border: 1px solid #dce5ef;
  border-left: 4px solid #f0a12c;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(23, 46, 77, .055);
}

.guide-assignment-card.is-confirmed { border-left-color: #20a36a; }
.guide-assignment-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.guide-assignment-card header span { color: #718096; font-size: 9px; font-weight: 800; letter-spacing: .6px; }
.guide-assignment-card h3 { margin: 4px 0 0; color: #18243a; font-size: 14px; }
.guide-assignment-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 13px; color: #607087; font-size: 10.5px; }
.guide-assignment-meta i { margin-right: 4px; color: #3977da; }
.guide-assignment-actions { display: flex; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #e9eef5; }
.guide-assignment-actions .btn { min-height: 40px; }
.guide-assignment-done { margin: 13px 0 0; padding-top: 12px; border-top: 1px solid #e9eef5; color: #20805a; font-size: 10.5px; }

.guideapp-container {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.mobiletour {
  max-width: 400px;
  margin: 0;
  border: 7px solid #142a22;
  border-radius: 28px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(18, 43, 35, 0.12);
}

.mobiletour h2 {
  font-size: 20px;
  margin: 4px 0 2px;
}

.mobiletour .hero {
  padding: 14px 16px;
  margin: 12px 0;
}

.mobiletour .hero h3 {
  font-size: 14.5px;
}

@media (max-width: 900px) {
  .guide-hero { grid-template-columns: 1fr; padding: 24px 24px 0; }
  .guide-hero-profile { min-width: 0; }
  .guide-hero-stats { margin-inline: -24px; }
  .guide-hero-stats > div { padding-inline: 24px; }
  .guide-page--role > .guide-tabs { display: grid; }
  .guide-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-emergency-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .guide-page { margin: -4px; }
  .guide-hero { gap: 18px; margin: -4px -4px 14px; padding: 22px 18px 0; border-radius: 0 0 20px 20px; }
  .guide-hero-copy h1 { font-size: 23px; }
  .guide-hero-profile { padding: 11px; }
  .guide-hero-stats { grid-template-columns: 1fr 1fr; margin: 20px -18px 0; }
  .guide-hero-stats > div { padding: 13px 18px; }
  .guide-hero-stats > div:last-child { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .13); }
  .guide-tabs {
    position: sticky;
    top: var(--header-h);
    z-index: 10;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 12px;
    padding: 6px;
    border-radius: 12px;
  }
  .guide-tabs .btn { min-height: 44px; padding: 6px; font-size: 9.5px; }
  .guide-tabs .btn i { display: none; }
  .guide-portal { width: 100%; }
  .guide-feature-grid { grid-template-columns: 1fr; }
  .guide-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; padding-inline: 4px; }
  .guide-assignment-card { padding: 14px; }
  .guide-assignment-actions { align-items: stretch; flex-direction: column; }
  .guide-assignment-actions .btn { width: 100%; }
}
