/* =========================================================
   Shared chrome for my-prescriptions.html, account-home.html,
   my-pharmacy.html. Namespaced as .detail-* so it never collides
   with .navbar/.nav-pill (legacy page) or .hero-*/.dashboard-*
   (index.html / member-home.html).
   ========================================================= */

.detail-navbar {
  display: flex;
  justify-content: center;
  padding: 24px 0;
  background: var(--scheme-offwhite);
}

.detail-pill-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #cfe4f7;
  border-radius: 30px;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.pill-blue-light {
  background: transparent;
  color: var(--scheme-brown);
  font-weight: 500;
}

.pill-blue-light:hover {
  background: rgba(141, 187, 229, 0.4);
}

.detail-wrap {
  max-width: 1000px;
  margin: 24px auto 60px;
  padding: 0 24px;
}

.detail-card {
  background: var(--scheme-offwhite);
  border: 2px solid var(--scheme-blue);
  border-radius: 24px;
  padding: 32px;
}

.detail-card.accent-pink {
  border-color: var(--scheme-pink);
}

.detail-card h1 {
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--scheme-brown);
  margin-bottom: 16px;
}

.detail-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--scheme-blue);
  border-radius: 8px;
  background: var(--text-box-color);
  color: var(--scheme-brown);
  font-family: inherit;
  font-size: 15px;
}

.accent-pink .detail-input {
  border-color: var(--scheme-pink);
}

.detail-row {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.detail-box {
  flex: 1 1 260px;
  border: 1px solid var(--scheme-blue);
  border-radius: 12px;
  padding: 20px;
  min-height: 200px;
}

.accent-pink .detail-box {
  border-color: var(--scheme-pink);
}

.detail-box dt {
  font-weight: bold;
  color: var(--scheme-brown);
  margin-top: 14px;
}

.detail-box dt:first-child {
  margin-top: 0;
}

.detail-box dd {
  color: var(--scheme-brown);
  min-height: 18px;
}

.detail-box ul {
  list-style: none;
}

.detail-box li {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--scheme-brown);
}

.detail-box li:hover {
  background: rgba(141, 187, 229, 0.25);
}

.detail-box li.selected {
  background: var(--scheme-blue);
  font-weight: bold;
}

.nearby-box {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.attr-circles {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.attr-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--scheme-pink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  color: var(--scheme-brown);
}

.attr-circle .score {
  font-weight: bold;
  font-size: 15px;
  margin-top: 4px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.status-msg {
  margin-top: 12px;
  font-weight: bold;
  color: var(--scheme-brown);
  min-height: 20px;
}

/* Account home specific */
.account-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.pref-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pref-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--scheme-brown);
}

.pref-checklist input {
  accent-color: var(--scheme-blue);
  width: 16px;
  height: 16px;
}

.account-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
