/* The patient banner (journey-shared.js `PatientBanner`): one component for EVERY page about ONE patient.
   Dr. Pat, 26 Oct 2026: the patient's name and ID must be much bigger — a small name is how the wrong patient gets treated.
   The name is the largest text on the page after the title; the ID (HN) is a second large badge; date of birth is shown
   because the clinic confirms identity by name, surname and date of birth. Sticky under the global bar so the patient stays
   in view while the page scrolls. Design tokens only; the colour is the page's department colour (--dept / --dept-deep). */
.ptb { position: sticky; top: 46px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px;
  margin: 0 0 18px; padding: 14px 24px 14px 26px; background: var(--white); color: var(--dept-deep);
  border: 1px solid color-mix(in srgb, var(--dept-deep) 18%, transparent); border-left: 12px solid var(--dept); border-radius: 10px;
  box-shadow: inset 0 -3px 0 var(--gold, #C5A044), 0 8px 20px -10px color-mix(in srgb, var(--dept-deep) 40%, transparent); }
html.touch .ptb { top: 58px; }
.ptb-id { display: flex; align-items: center; gap: 22px; flex: 1 1 auto; min-width: 0; }
/* the ID — a large badge of its own, so it is never read as part of the name */
.ptb-hn { display: flex; flex-direction: column; align-items: flex-start; flex: none; padding: 4px 18px 6px; line-height: 1.05;
  background: var(--dept-tint, rgba(0,0,0,.05)); border: 2px solid var(--dept); border-radius: 10px; }
.ptb-hn small { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dept); }
.ptb-hn b { font-size: clamp(26px, 2.4vw, 36px); font-weight: 700; letter-spacing: .02em; color: var(--dept-deep); white-space: nowrap; }
.ptb-who { min-width: 0; }
.ptb-name { font-size: clamp(30px, 3vw, 46px); font-weight: 700; line-height: 1.12; color: var(--dept-deep); overflow-wrap: anywhere; }
.ptb-name2 { margin-top: 2px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; color: var(--ink-body, #374151); overflow-wrap: anywhere; }
.ptb-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ptb-chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 16px; font-size: 21px; font-weight: 700; color: var(--dept-deep);
  background: var(--white); border: 1.5px solid color-mix(in srgb, var(--dept-deep) 30%, transparent); border-radius: 999px; white-space: nowrap; }
.ptb-chip small { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dept); }
.ptb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
/* a drug allergy is a warning, not a detail: its own full-width band in the ruby tint, inside the banner */
.ptb-allergy { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 19px; font-weight: 700;
  color: var(--ruby-deep, #A00040); background: var(--ruby-muted, #FCE4EE); border-left: 6px solid var(--ruby, #E0115F); border-radius: 6px; }
@media (max-width: 760px) {
  .ptb { position: static; padding: 12px 14px 12px 16px; border-left-width: 8px; }
  .ptb-id { flex-wrap: wrap; gap: 10px 16px; }
  .ptb-chip { font-size: 18px; padding: 4px 12px; }
}
@media print { .ptb { display: none !important; } }

/* The gold box of "Send FertiQoL" after a registration (journey/frontend/pages/register.html). The "FertiQoL due" notice that
   used these styles under the banner was removed (Dr. Pat, 13 Nov 2026). */
.qdue { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: -8px 0 18px; padding: 12px 18px;
  background: color-mix(in srgb, var(--gold, #C9A24B) 14%, var(--white, #fff)); border: 1px solid color-mix(in srgb, var(--gold, #C9A24B) 45%, transparent);
  border-left: 8px solid var(--gold, #C9A24B); border-radius: 10px; font-size: 15px; color: var(--ink, #000); }
.qdue-main { flex: 1 1 360px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qdue-main b { font-size: 16.5px; }
.qdue-act { display: flex; flex-wrap: wrap; gap: 8px; }
@media print { .qdue { display: none !important; } }

/* Direct entry: a creation form shown as the page itself (journey-shared.js AsPage / DIRECT) */
.page-form { margin-top: 16px; padding: 22px 26px; }
.page-form-h { font-size: 24px; font-weight: 800; margin: 0 0 16px; letter-spacing: .2px; }
/* inside a dialog the banner sits at the dialog's top edge (no sticky offset under the global bar) */
.modal .ptb { position: static; top: 0; margin: 0 0 14px; }
