/* This app's nav, rebuilt to match the member portal's own focused-exercise
   header exactly (member-login/content-config.js: .ws-nav / .ws-nav-inner /
   .ws-brand / .ws-focused-nav-context), not a lighter approximation of it:
   logo left, a divider, then a kicker + title, with the back-link row below
   that same context block. Class names are prefixed .ra- to keep this file
   independent, but the values are copied from the real .ws- rules. */

.ra-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy, #003366);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 51, 102, .14);
}

.ra-nav-inner {
  height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.ra-nav-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ra-nav-logo-link { display: flex; align-items: center; border-radius: 6px; }
.ra-nav-logo-link:hover { background: rgba(238, 163, 32, .18); }
.ra-nav-logo { height: 31px; width: auto; display: block; }

.ra-nav-context {
  min-width: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: start;
  padding: 4px 0 4px 22px;
  border-left: 1px solid rgba(255, 255, 255, .28);
}
.ra-nav-kicker { display: block; margin-bottom: 2px; color: var(--gold, #EEA320); font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 700; line-height: 1.2; }
.ra-nav-title { display: block; overflow: hidden; color: #fff; font: 700 22px/1.15 'Playfair Display', serif; text-overflow: ellipsis; white-space: nowrap; }
.ra-nav-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.ra-nav-links[hidden] { display: none; }
/* On the assessment page the back link belongs to the landing screen only. During the details, questions and result screens the header stays quiet. */
body[data-screen]:not([data-screen="t-landing"]) .ra-nav-links { display: none; }
.ra-nav-links a {
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.ra-nav-links a:hover { color: #fff; text-decoration: underline; }
.ra-nav-links .ra-nav-sep { color: rgba(255, 255, 255, .4); font-size: 11px; }

.ra-nav-right { display: flex; align-items: center; gap: 18px; justify-self: end; }

.ra-nav-secondary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ra-nav-secondary a {
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.ra-nav-secondary a:hover { color: #fff; text-decoration: underline; }
.ra-nav-secondary .ra-nav-sep { color: rgba(255, 255, 255, .4); }

.ra-nav-user { position: relative; display: flex; align-items: center; gap: 10px; }
.ra-nav-user[hidden] { display: none; }
.ra-nav-email {
  color: rgba(255, 255, 255, .8);
  font-family: 'Lato', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.ra-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: var(--gold, #EEA320);
  color: var(--navy, #003366);
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
}
.ra-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ra-profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 100;
  min-width: 220px;
  max-width: 260px;
  background: #fff;
  border: 1px solid var(--line, #ddd2c1);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 51, 102, .14);
  padding: 0;
  overflow: hidden;
}

.ra-profile-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--navy, #003366);
  color: #fff;
  padding: 14px 16px 13px;
  border-bottom: 3px solid var(--gold, #EEA320);
}
.ra-profile-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--gold, #EEA320);
  color: var(--navy, #003366);
  display: grid;
  place-items: center;
  overflow: hidden;
  font: 700 14px 'Lato', sans-serif;
  flex: 0 0 auto;
}
.ra-profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ra-profile-name { margin: 0; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.15; }
.ra-profile-role { margin: 4px 0 0; color: var(--gold, #EEA320); font: 700 9.5px 'Lato', sans-serif; letter-spacing: 0; }

.ra-profile-section {
  padding: 11px 16px 10px;
  border-bottom: 1px solid var(--line, #ddd2c1);
}
.ra-profile-section:last-child { border-bottom: 0; }
.ra-profile-section-label {
  display: block;
  margin: 0 0 7px;
  color: var(--gold, #EEA320);
  font: 700 9.5px 'Lato', sans-serif;
  letter-spacing: 0;
}

.ra-profile-menu a,
.ra-profile-menu button {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--navy, #003366);
  font-family: 'Lato', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.ra-profile-menu a:hover,
.ra-profile-menu button:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .ra-nav-inner { height: auto; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 0 10px; width: 100%; padding: 8px 12px 0; }
  .ra-nav-brand { grid-column: 1; grid-row: 1; height: 42px; }
  .ra-nav-logo { height: 26px; }
  .ra-nav-right { grid-column: 3; grid-row: 1; height: 42px; }
  .ra-nav-secondary { display: none; }
  .ra-nav-email { display: none; }
  .ra-nav-context { grid-column: 1 / -1; grid-row: 2; width: 100%; padding: 8px 2px 9px; border: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .ra-nav-title { font: 700 17px/1.15 'Playfair Display', serif; }
}
