/* The main menu's drop-downs (partials/site_nav.html). Loaded by base.html and by the CQC page, so it doesn't rely on
   either page's own stylesheet. */
.site-nav .nav-list > li { position: relative; }
.site-nav .nav-menu details { position: relative; }
.site-nav .nav-menu summary {
  list-style: none; cursor: pointer; display: inline-block; padding: 12px 0; color: #fff; font-weight: 700;
  font-size: 16px; line-height: 24px; border-bottom: 4px solid transparent; white-space: nowrap; text-decoration: none;
}
.site-nav .nav-menu summary::-webkit-details-marker { display: none; }
.site-nav .nav-menu summary::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; vertical-align: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.site-nav .nav-menu details[open] > summary::after { transform: rotate(-135deg); vertical-align: 0; }
.site-nav .nav-menu summary:hover { text-decoration: underline; }
.site-nav .nav-menu summary.current { border-bottom-color: #fff; }
.site-nav .nav-menu summary:focus-visible { outline: none; background: #FFB81C; color: #212B32; border-bottom-color: #212B32; }
.site-nav .nav-menu details > ul {
  position: absolute; top: 100%; left: -12px; z-index: 50; min-width: 230px; margin: 0; padding: 6px 0;
  list-style: none; display: block; background: #fff; border: 1px solid #768692; border-top: 4px solid #003087;
  border-radius: 0 0 6px 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.site-nav .nav-menu details > ul li { display: block; }
.site-nav .nav-menu details > ul a, .site-nav .nav-menu details > ul a:visited {
  display: block; padding: 10px 16px; color: #005EB8; font-weight: 700; font-size: 16px; line-height: 22px;
  text-decoration: none; border-bottom: 0; white-space: nowrap;
}
.site-nav .nav-menu details > ul a:hover { background: #E8EDEE; text-decoration: underline; }
.site-nav .nav-menu details > ul a[aria-current="page"] { border-left: 4px solid #005EB8; padding-left: 12px; background: #F0F4F5; }
.site-nav .nav-menu details > ul a:focus-visible { outline: none; background: #FFB81C; color: #212B32; }

/* Phones: the menu wraps onto two lines instead of scrolling sideways, so the drop-downs aren't cut off. */
@media (max-width: 640px) {
  .site-nav ul.nav-list { flex-wrap: wrap; overflow: visible; gap: 2px 16px; }
  .site-nav .nav-menu summary { padding: 8px 0; font-size: 15px; }
  .site-nav .nav-menu details > ul { left: 0; min-width: 200px; }
  .site-nav .nav-menu details > ul a { font-size: 15px; }
}
@media print { .site-nav { display: none; } }

/* "Return to the meeting" band, on every other page while a partners' meeting is being recorded (4 Dec 2026) */
.live-band { background: #D5281B; color: #FFFFFF; border-bottom: 4px solid #8A1538; font-family: Arial, sans-serif; }
.live-band[hidden] { display: none; }
.live-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; }
.live-band-text { margin: 0; font-size: 16px; line-height: 24px; }
.live-band-meta { margin-left: 8px; font-size: 14px; }
.live-band-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #FFFFFF; margin-right: 8px; vertical-align: -1px;
  animation: live-band-pulse 1.4s ease-in-out infinite; }
@keyframes live-band-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-band-dot { animation: none; } }
.live-band-btn { font: inherit; font-size: 15px; font-weight: 700; padding: 6px 14px; border: 2px solid #FFFFFF; border-radius: 0; background: #FFFFFF; color: #8A1538; cursor: pointer; }
.live-band-btn:hover { background: #FFEB3B; color: #212B32; border-color: #FFEB3B; }
.live-band-btn:focus-visible { outline: 3px solid #FFEB3B; outline-offset: 2px; }

/* ---------- Account menu, top right (5 Dec 2026) ----------
   Here (not in site.css) because every page loads nav.css, including the CQC and Partners' meetings pages.
   The access badge sits to the left of the name, white on dark blue; the name opens a menu with the job roles,
   Change password and Sign out (on hover, keyboard focus, or a tap). */
.site-header .site-user { display: flex; align-items: center; gap: 10px; text-align: left; margin-left: auto; font-size: 14px; line-height: 20px; }
.site-header .site-user .role-tag { display: inline-block; background: #003087; color: #fff; border: 0; font-size: 12px; line-height: 16px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.user-menu { position: relative; }
.user-menu-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #fff; cursor: pointer;
  font-family: Arial, sans-serif; font-size: 16px; line-height: 22px; font-weight: 700; padding: 6px 4px; border-radius: 6px; }
.user-menu-btn:hover, .user-menu.open .user-menu-btn, .user-menu:focus-within .user-menu-btn { text-decoration: underline; text-underline-offset: 3px; }
.user-menu-btn:focus-visible { outline: 3px solid #FFEB3B; outline-offset: 2px; }
.user-menu-caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; margin-top: 2px; }
.user-menu-list { display: none; position: absolute; right: 0; top: 100%; z-index: 200; min-width: 220px; padding: 6px 0; text-align: left;
  background: #fff; color: #212b32; border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); font-family: Arial, sans-serif; }
.user-menu:hover .user-menu-list, .user-menu:focus-within .user-menu-list, .user-menu.open .user-menu-list { display: block; }
.user-menu-list::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }   /* keeps hover across the gap */
.user-menu-list a, .user-menu-list button { display: block; width: 100%; box-sizing: border-box; text-align: left; padding: 9px 16px; background: none; border: 0;
  font: inherit; font-size: 15px; line-height: 20px; color: #003087; text-decoration: none; cursor: pointer; font-weight: 400; }
.user-menu-list a:hover, .user-menu-list button:hover, .user-menu-list a:focus-visible, .user-menu-list button:focus-visible { background: #E8EDEE; outline: none; }
.user-menu-list form { display: block; margin: 0; border-top: 1px solid #E8EDEE; }
.user-menu-roles { margin: 0 0 4px; padding: 6px 16px 10px; font-size: 13px; line-height: 18px; color: #4c6272; border-bottom: 1px solid #E8EDEE; }
.user-menu-roles span { display: block; font-weight: 700; color: #212b32; }
.site-header { position: relative; z-index: 60; }   /* the menu opens over the page below, sticky bars included */
@media (max-width: 640px) {
  .user-menu-btn { font-size: 14px; }
  .site-header .site-user .role-tag { padding: 4px 9px; font-size: 11px; }
}
