/* ================================================
   PERSONA PAGE v2 — Health Quality Alberta
   Multi-audio, patient experience bars, full profile
   ================================================ */

/* --- BRAND TOKENS --- */
:root {
  --hqa-dark-blue: #004775;
  --hqa-teal: #007196;
  --hqa-lime: #91D500;
  --hqa-neutral-1: #DEDBD2;
  --hqa-neutral-2: #C7C3B8;
  --hqa-neutral-3: #9A9385;
  --hqa-neutral-4: #786E62;
  --hqa-white: #ffffff;
  --hqa-black: #1a1a1a;
  --hqa-bg-warm: #F8F6F2;
  --hqa-bg-blue: #EFF5F8;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Karla', sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--hqa-dark-blue);
  background: var(--hqa-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
blockquote { border: none; }

/* --- TOP BAR --- */
.p-topbar {
  background: var(--hqa-dark-blue); padding: 10px 0;
}
.p-topbar-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s;
}
.p-topbar-link:hover { color: var(--hqa-lime); }
.p-topbar-link svg { stroke: currentColor; flex-shrink: 0; }
.p-topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.p-topbar-menu-list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.p-topbar-menu-list a {
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s;
}
.p-topbar-menu-list a:hover { color: var(--hqa-lime); }
@media (max-width: 640px) { .p-topbar-menu { display: none; } }

/* --- LAYOUT --- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 48px); }
.wrap.narrow { max-width: 820px; }
.wrap.wide { max-width: 1280px; }

/* --- SECTION LABELS --- */
.s-label { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hqa-neutral-3); margin-bottom: 12px; }
.s-label.light { color: rgba(255,255,255,0.5); }
.s-label-line { width: 32px; height: 1px; background: currentColor; }

/* --- NAV (hidden — using WordPress nav) --- */
.nav { display: none !important; }

/* --- HERO --- */
.p-hero { background: var(--hqa-bg-warm); padding: 48px 0 72px; color: var(--hqa-dark-blue); }
.p-hero-inner { display: flex; gap: 56px; align-items: flex-start; }
.p-hero-photo-wrap { flex-shrink: 0; width: 280px; }
.p-hero-photo { width: 280px; height: 340px; object-fit: cover; object-position: center center; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.p-hero-content { flex: 1; min-width: 0; }
.p-hero-badge { display: inline-block; font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--hqa-teal); border: 1px solid var(--hqa-neutral-2); padding: 4px 14px; border-radius: 20px; margin-bottom: 12px; }
.p-hero-tagline { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--hqa-teal); margin-bottom: 8px; }
.p-hero-name { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.p-hero-quote { font-family: var(--font-serif); font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-style: italic; color: var(--hqa-neutral-4); line-height: 1.5; margin-bottom: 28px; padding: 0; max-width: 540px; border: none !important; }
.p-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.p-profile-item { display: flex; flex-direction: column; gap: 2px; }
.p-profile-label { font-family: var(--font-heading); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hqa-neutral-3); }
.p-profile-val { font-size: 0.9rem; color: var(--hqa-dark-blue); line-height: 1.4; }

/* --- STORY TAB PROFILE GRID --- */
.p-story-profile-grid {
  display: table; border-collapse: separate; border-spacing: 0 14px; width: 100%;
}
.p-story-profile-row { display: table-row; }
.p-story-profile-label {
  display: table-cell; vertical-align: top;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  color: var(--hqa-black); white-space: nowrap; padding-right: 32px;
}
.p-story-profile-label::after { content: ':'; }
.p-story-profile-val {
  display: table-cell; vertical-align: top;
  font-family: var(--font-body); font-size: 1rem; font-weight: 400;
  color: var(--hqa-black); line-height: 1.5;
}
@media (max-width: 600px) {
  .p-story-profile-grid { display: flex; flex-direction: column; gap: 16px; }
  .p-story-profile-row { display: flex; flex-direction: column; gap: 2px; }
  .p-story-profile-label { display: block; white-space: normal; padding-right: 0; }
  .p-story-profile-val { display: block; }
}

/* --- TOOLTIPS --- */
.p-tooltip-trigger { position: relative; border-bottom: 1px dotted var(--hqa-neutral-3); cursor: help; }
.p-tooltip {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--hqa-dark-blue); color: #fff; font-size: 0.8rem; font-style: normal; font-weight: 400;
  line-height: 1.5; padding: 10px 14px; border-radius: 8px; width: 280px; z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2); pointer-events: none;
}
.p-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--hqa-dark-blue);
}
.p-tooltip-trigger:hover .p-tooltip { display: block; }

/* --- HERO EXPERIENCE BUTTON & PANEL --- */
.p-hero-exp-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--hqa-teal); color: #fff;
  border: none; padding: 10px 28px; border-radius: 6px; cursor: pointer;
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.03em; transition: background 0.2s;
}
.p-hero-exp-btn:hover { background: var(--hqa-dark-blue); }
.p-hero-exp-chevron { transition: transform 0.3s; }
.p-hero-exp-btn[aria-expanded="true"] .p-hero-exp-chevron { transform: rotate(180deg); }
.p-hero-exp-panel {
  display: none; background: var(--hqa-dark-blue); color: #fff;
  padding: 48px clamp(24px, 5vw, 48px); margin-top: 24px; border-radius: 12px;
}
.p-hero-exp-panel.open { display: block; }
.exp-rating { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.6); min-width: 72px; text-align: left; }
.exp-learn-more { margin-top: 24px; font-size: 0.85rem; }
.exp-learn-more a { color: var(--hqa-lime); text-decoration: underline; }
.exp-learn-more a:hover, .exp-learn-more a:focus { color: #fff; text-decoration-color: var(--hqa-lime); }

/* --- ACCORDION SYSTEM --- */
.p-story-accordions { background: var(--hqa-bg-warm); padding: 48px 0; }
.p-accordion { border-bottom: 1px solid var(--hqa-neutral-1); }
.p-accordion:first-child { border-top: 1px solid var(--hqa-neutral-1); }
.p-accordion-trigger {
  display: flex; align-items: center; width: 100%; background: none; border: none;
  padding: 20px 12px; margin: 0 -12px; border-radius: 8px;
  cursor: pointer; gap: 12px; text-align: left;
}
.p-accordion-trigger:hover { background: var(--hqa-dark-blue); }
.p-accordion-trigger:hover .p-accordion-title,
.p-accordion-trigger:hover .p-accordion-sub,
.p-accordion-trigger:hover .p-accordion-icon,
.p-accordion-trigger:hover .p-accordion-audio-icon { color: #fff; }
.p-accordion-trigger[aria-expanded="true"] { background: var(--hqa-dark-blue); border-radius: 8px; padding: 20px 16px; }
.p-accordion-trigger[aria-expanded="true"] .p-accordion-title { color: #fff; }
.p-accordion-trigger[aria-expanded="true"] .p-accordion-sub { color: rgba(255,255,255,0.6); }
.p-accordion-trigger[aria-expanded="true"] .p-accordion-icon { color: var(--hqa-lime); }
.p-accordion-text { flex: 1; min-width: 0; }
.p-accordion-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--hqa-dark-blue); }
.p-accordion-sub { font-family: var(--font-serif); font-size: 0.9rem; font-style: italic; color: var(--hqa-neutral-3); margin-top: 4px; }
.p-accordion-icon {
  font-size: 1.4rem; font-weight: 300; color: var(--hqa-teal); flex-shrink: 0;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s;
}
.p-accordion-audio-icon { font-size: 0.9rem; flex-shrink: 0; color: var(--hqa-teal); }
.p-accordion-panel {
  max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease);
}
.p-accordion-panel > div { padding-bottom: 24px; }

/* --- INLINE ACCORDION AUDIO --- */
.p-accordion-audio {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
  background: var(--hqa-dark-blue); border-radius: 8px; padding: 10px 16px;
}
.p-accordion-audio .audio-play {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3);
  background: none; color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.p-accordion-audio .audio-progress { flex: 1; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; cursor: pointer; position: relative; }
.p-accordion-audio .audio-bar { height: 100%; background: var(--hqa-lime); border-radius: 2px; width: 0%; }
.p-accordion-audio .audio-time { font-family: var(--font-heading); font-size: 0.75rem; color: rgba(255,255,255,0.5); min-width: 36px; text-align: right; }
.p-accordion-audio--placeholder {
  opacity: 0.5; gap: 8px; color: rgba(255,255,255,0.4); font-size: 0.82rem; font-style: italic;
}

/* --- PERSONA SHEET --- */
.p-persona-sheet { background: var(--hqa-white); padding: 64px 0; text-align: center; }
.p-persona-sheet h2 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.p-sheet-desc { font-size: 0.9rem; color: var(--hqa-neutral-4); margin-bottom: 24px; }
.p-sheet-link { display: inline-block; transition: transform 0.3s; }
.p-sheet-link:hover { transform: translateY(-4px); }
.p-sheet-img { max-width: 100%; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.p-sheet-download { display: block; margin-top: 12px; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--hqa-teal); }

/* --- FOR PATIENTS --- */
.p-for-patients { background: var(--hqa-bg-warm); padding: 64px 0; }
.p-for-patients h2 { font-family: var(--font-heading); font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; margin-bottom: 12px; }
.p-patients-intro { font-size: 0.95rem; color: var(--hqa-neutral-4); line-height: 1.6; margin-bottom: 32px; }
.p-patients-card { background: #fff; border-radius: 12px; padding: 28px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.p-patients-card h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--hqa-dark-blue); }
.p-patients-card p, .p-patients-card div { font-size: 0.9rem; color: var(--hqa-neutral-4); line-height: 1.6; }
.p-patients-link { display: inline-block; margin-top: 8px; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--hqa-teal); }

/* --- TABS --- */
.p-tabs-wrap { background: var(--hqa-white); border-bottom: 1px solid var(--hqa-neutral-1); position: sticky; top: 0; z-index: 90; }
.p-tabs { display: flex; justify-content: center; gap: 6px; padding: 12px 0; }
.p-tab { font-family: var(--font-heading); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--hqa-neutral-4); background: none; border: 1px solid transparent; border-radius: 24px; padding: 10px 24px; cursor: pointer; transition: all 0.25s; white-space: nowrap; }
.p-tab:hover { color: var(--hqa-dark-blue); background: var(--hqa-bg-warm); }
.p-tab.active { color: var(--hqa-white); background: var(--hqa-dark-blue); border-color: var(--hqa-dark-blue); }
.p-panel { display: none; }
.p-panel.active { display: block; }

/* --- PAUSE / BOUNDARY (original inline — kept for reference) --- */
.p-pause { background: #FBF5EC; border-top: 3px solid #D4A857; padding: 56px 0; }
.p-pause-icon { color: #D4A857; margin-bottom: 16px; }
.p-pause-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: #6B4F1D; margin-bottom: 16px; }
.p-pause .p-pause-body { color: #5C4A2A; font-size: 0.95rem; line-height: 1.7; }
.p-pause .p-pause-body p { margin-bottom: 14px; }

/* --- PAUSE INVITE CARD --- */
.p-pause-invite { background: var(--hqa-bg-warm); padding: 48px 0; }
.p-pause-invite-card {
  background: #FBF5EC; border: 2px solid #D4A857; border-radius: 16px;
  padding: 48px; text-align: center; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.p-pause-invite-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(212,168,87,0.15);
  border-color: #C49A3C;
}
.p-pause-invite-icon { color: #D4A857; margin-bottom: 20px; }
.p-pause-invite-title {
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700;
  color: #6B4F1D; margin-bottom: 12px;
}
.p-pause-invite-desc {
  font-size: 0.95rem; color: #5C4A2A; line-height: 1.6; max-width: 500px;
  margin: 0 auto 20px;
}
.p-pause-invite-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600;
  color: #D4A857; letter-spacing: 0.05em;
}
.p-pause-invite-card:hover .p-pause-invite-btn { color: #C49A3C; }

/* --- PAUSE MODAL --- */
.p-pause-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.p-pause-modal.open { opacity: 1; visibility: visible; }
.p-pause-modal-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.p-pause-modal-content {
  position: relative; z-index: 1; background: #FBF5EC;
  border-radius: 20px; max-width: 720px; width: 90%; max-height: 85vh;
  overflow-y: auto; padding: 48px; border-top: 4px solid #D4A857;
  transform: translateY(20px); transition: transform 0.3s var(--ease);
}
.p-pause-modal.open .p-pause-modal-content { transform: translateY(0); }
.p-pause-modal-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  font-size: 28px; color: #6B4F1D; cursor: pointer; padding: 4px 8px;
  line-height: 1; transition: color 0.2s;
}
.p-pause-modal-close:hover { color: #D4A857; }
.p-pause-modal-icon { color: #D4A857; margin-bottom: 16px; }
.p-pause-modal-content h2 {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
  color: #6B4F1D; margin-bottom: 20px;
}
.p-pause-modal-body { color: #5C4A2A; font-size: 0.95rem; line-height: 1.7; }
.p-pause-modal-body p { margin-bottom: 14px; }
.p-pause-modal-body ul { margin: 14px 0; padding-left: 20px; }
.p-pause-modal-body li { margin-bottom: 10px; }

/* --- COLLAPSIBLE --- */
.p-collapsible { max-height: 200px; overflow: hidden; position: relative; transition: max-height 0.5s var(--ease); }
.p-collapsible::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(transparent, var(--hqa-bg-warm)); pointer-events: none; transition: opacity 0.3s; }
.p-collapsible.expanded { max-height: 3000px; }
.p-collapsible.expanded::after { opacity: 0; }
.p-pause .p-collapsible::after { background: linear-gradient(transparent, #FBF5EC); }
.p-collapse-btn { display: block; margin: 16px auto 0; background: none; border: 1px solid var(--hqa-neutral-2); padding: 8px 24px; border-radius: 20px; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; color: var(--hqa-neutral-4); cursor: pointer; transition: all 0.2s; }
.p-collapse-btn:hover { border-color: var(--hqa-teal); color: var(--hqa-teal); }

/* --- UNDERSTANDING --- */
.p-understanding { background: var(--hqa-bg-warm); padding: 64px 0; }
.p-understanding h2 { font-family: var(--font-heading); font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 700; margin-bottom: 8px; }
.p-understanding-subtitle { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--hqa-neutral-3); margin-bottom: 24px; }
.p-understanding-body { font-size: 0.95rem; line-height: 1.75; color: var(--hqa-neutral-4); }
.p-understanding-body p { margin-bottom: 16px; }
.p-understanding-body strong { color: var(--hqa-dark-blue); }
.p-understanding-body h3 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--hqa-dark-blue); margin: 32px 0 12px; }
.p-understanding-body ul { list-style: none; padding: 0; margin: 0 0 24px; }
.p-understanding-body ul li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.p-understanding-body ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--hqa-teal); border-radius: 50%; }

/* --- AUDIO SECTION --- */
.p-audio { background: var(--hqa-dark-blue); padding: 72px 0; color: #fff; }
.p-audio h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 36px; color: #fff; }
h2.light { color: #fff; }
.p-audio h2, .p-audio h3, .p-audio p, .p-audio span, .p-audio div { color: inherit; }
.p-experience h2, .p-experience h3, .p-experience p, .p-experience span { color: inherit; }
.p-audio-sub { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 32px; }
.audio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.audio-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 28px 24px; transition: background 0.3s, border-color 0.3s; }
.audio-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.audio-card.playing { border-color: var(--hqa-lime); background: rgba(145,213,0,0.08); }
.audio-card-num { font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; color: var(--hqa-lime); margin-bottom: 10px; }
.audio-card-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 20px; line-height: 1.3; min-height: 2.6em; }
.audio-controls { display: flex; align-items: center; gap: 12px; }
.audio-play { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); background: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all 0.2s; }
.audio-play:hover { border-color: var(--hqa-lime); color: var(--hqa-lime); }
button.audio-play svg.icon-play,
button.audio-play svg.icon-pause { width: 20px !important; height: 20px !important; fill: #fff !important; pointer-events: none; overflow: visible !important; visibility: visible !important; opacity: 1 !important; }
button.audio-play svg.icon-play { display: block !important; }
button.audio-play svg.icon-pause { display: none !important; }
.audio-card.playing button.audio-play svg.icon-play { display: none !important; }
.audio-card.playing button.audio-play svg.icon-pause { display: block !important; }
button.audio-play svg polygon,
button.audio-play svg rect { fill: #fff !important; }
.audio-progress { flex: 1; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; cursor: pointer; position: relative; }
.audio-bar { height: 100%; background: var(--hqa-lime); border-radius: 2px; width: 0%; transition: width 0.1s linear; }
.audio-time { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.5); min-width: 36px; text-align: right; }

/* Placeholder (no audio yet) */
.audio-card--placeholder { opacity: 0.5; }
.audio-coming-soon { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.4); font-size: 0.85rem; font-style: italic; margin-top: 8px; }

/* --- HEALTH & RELATIONSHIP --- */
.p-health { background: var(--hqa-white); padding: 72px 0; }
.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 24px; }
.health-col h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; color: var(--hqa-teal); }
.health-col ul { list-style: none; }
.health-col li { position: relative; padding-left: 20px; margin-bottom: 12px; font-size: 0.95rem; line-height: 1.5; color: var(--hqa-neutral-4); }
.health-col li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--hqa-teal); }

/* --- PATIENT EXPERIENCE --- */
.p-experience { background: var(--hqa-dark-blue); padding: 72px 0; color: #fff; }
.p-experience h2 { font-family: var(--font-heading); font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; margin-bottom: 8px; color: #fff; }
.exp-scale {
  display: flex; justify-content: space-between;
  font-family: var(--font-heading); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 28px; margin-left: 216px;
}
.exp-scale span {
  white-space: nowrap; text-align: center;
}
.exp-bars { display: flex; flex-direction: column; gap: 18px; }
.exp-row { display: flex; align-items: center; gap: 16px; }
.exp-label { font-family: var(--font-heading); font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.7); width: 200px; flex-shrink: 0; text-align: right; }
.exp-track { flex: 1; height: 10px; background: rgba(255,255,255,0.1); border-radius: 5px; position: relative; }
.exp-fill { height: 100%; border-radius: 5px; width: 0%; transition: width 1.2s var(--ease); }
.exp-fill.animated { width: var(--w); }
.exp-marker { position: absolute; top: -6px; transform: translateX(-50%); color: var(--hqa-lime); transition: left 1.2s var(--ease); }

/* Color coding for bars */
.exp-row:nth-child(odd) .exp-fill { background: var(--hqa-teal); }
.exp-row:nth-child(even) .exp-fill { background: var(--hqa-lime); }

/* --- WHAT THEY NEED --- */
.p-needs { background: var(--hqa-bg-warm); padding: 72px 0; }
.p-needs h2 { font-family: var(--font-heading); font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; margin-bottom: 32px; }
.needs-list { list-style: none; counter-reset: needs; }
.needs-list li { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.needs-num { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--hqa-teal); flex-shrink: 0; width: 36px; line-height: 1.2; }
.needs-list p { font-size: 0.95rem; line-height: 1.6; color: var(--hqa-neutral-4); }

/* --- RESOURCES --- */
.p-resources { background: var(--hqa-white); padding: 64px 0; }
.resources-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.dyk-card, .res-card { border-radius: 12px; padding: 32px; }
.dyk-card { background: var(--hqa-bg-blue); border-left: 4px solid var(--hqa-teal); }
.res-card { background: var(--hqa-bg-warm); border-left: 4px solid var(--hqa-lime); }
.dyk-card h3, .res-card h3 { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.dyk-card h3 { color: var(--hqa-teal); }
.res-card h3 { color: #5A7A00; }
.dyk-card p, .res-card p, .res-card div { font-size: 0.9rem; line-height: 1.6; color: var(--hqa-neutral-4); }
.res-card a { color: var(--hqa-teal); text-decoration: underline; }

/* --- NEXT PERSONA --- */
a.p-next, a.p-next:visited, a.p-next:link { display: flex; background: var(--hqa-teal); color: #fff !important; text-decoration: none; transition: background 0.3s; }
body a.p-next:hover, body a.p-next:active, body a.p-next:focus { background: var(--hqa-dark-blue); color: #fff !important; }
body a.p-next:hover .p-next-label, body a.p-next:hover .p-next-name, body a.p-next:hover .p-next-meta, body a.p-next:hover .p-next-arrow { color: #fff !important; opacity: 1 !important; }
.p-next .wrap { display: flex; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 20px; width: 100%; }
.p-next-label { font-family: var(--font-heading); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.p-next-name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; }
.p-next-meta { font-size: 0.85rem; opacity: 0.7; }
.p-next-arrow { margin-left: auto; font-size: 2rem; line-height: 1; }

/* --- FOOTER --- */
.footer { background: var(--hqa-dark-blue); color: rgba(255,255,255,0.7); padding: 56px 0 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo-img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; max-width: 380px; }
.footer h4 { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 10px; margin-top: 20px; }
.footer h4:first-child { margin-top: 0; }
.footer-col p { font-size: 0.85rem; line-height: 1.7; }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding: 20px 0; }
.footer-bottom p { font-size: 0.75rem; line-height: 1.5; opacity: 0.5; }
.fb-sep { margin: 0 6px; }

/* --- ANIMATIONS --- */
.anim-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.anim-up.visible { opacity: 1; transform: none; }
.anim-bar .exp-fill { width: 0%; }

/* --- KADENCE OVERRIDES --- */
#masthead, #mobile-header, .site-header, .site-header-wrap,
.site-footer-wrap, .site-bottom-footer-wrap, .site-footer,
.site-above-footer-wrap { display: none !important; }
.content-area { margin: 0 !important; padding: 0 !important; }
.entry-content-wrap { padding: 0 !important; max-width: 100% !important; }
.entry.single-entry { box-shadow: none !important; border: none !important; margin: 0 !important; }
.site-container, .content-container { max-width: 100% !important; padding: 0 !important; }
#wrapper, .site, .wp-site-blocks, #inner-wrap { max-width: 100% !important; }
.entry-content { max-width: 100% !important; }
body { background: var(--hqa-white) !important; }
body.page .content-area { max-width: 100% !important; }
.wp-block-post-content { max-width: 100% !important; padding: 0 !important; }
.entry-hero-container-inner, .entry-header, .page-header,
h1.entry-title, .kadence-breadcrumbs,
.entry-hero-layout-standard { display: none !important; }
body, body.page, body.page-template-default,
#wrapper, .site, .wp-site-blocks,
#inner-wrap, .site-container,
.content-container, .site-container .site-inner-wrap,
.content-area, .content-area .site-main,
.entry-content-wrap, .entry-content,
.entry.single-entry, .entry.type-page,
.wp-block-post-content, .site-inner-wrap,
.content-container-wrap {
  max-width: 100% !important; width: 100% !important;
  padding-left: 0 !important; padding-right: 0 !important;
  margin-left: 0 !important; margin-right: 0 !important;
  box-sizing: border-box !important;
}
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .p-hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 32px; }
  .p-hero-photo-wrap { width: 220px; }
  .p-hero-photo { width: 220px; height: 270px; }
  .p-hero-quote { margin-left: auto; margin-right: auto; }
  .p-profile-grid { justify-items: center; }
  .audio-grid { grid-template-columns: 1fr; }
  .health-grid { grid-template-columns: 1fr; gap: 32px; }
  .resources-grid { grid-template-columns: 1fr; }
  .exp-scale { margin-left: 0; }
  .exp-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .exp-label { width: auto; text-align: left; font-size: 0.75rem; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: rgba(0,47,77,0.98); backdrop-filter: blur(12px); flex-direction: column; padding: 24px; gap: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 600px) {
  .p-tabs { gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; padding: 10px 0; }
  .p-tab { padding: 8px 16px; font-size: 0.72rem; }
  .p-hero { padding: 32px 0 48px; }
  .p-hero-photo-wrap { width: 180px; }
  .p-hero-photo { width: 180px; height: 220px; }
  .p-hero-name { font-size: 1.8rem; }
  .p-profile-grid { grid-template-columns: 1fr; }
  .needs-list li { flex-direction: column; gap: 8px; }
  .p-next .wrap { flex-wrap: wrap; }
}

/* Scroll-to-top button */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--hqa-dark-blue); color: #fff; border: none;
  font-size: 20px; cursor: pointer;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--hqa-teal); }

/* Audio listen prompt */
.p-audio-listen-prompt { font-size: 0.9rem; color: var(--hqa-teal); margin: 12px 0 4px; }


  
  
}


/* ── Audio Card (prominent waveform player) ── */
.p-audio-card {
  background: #fff; border: 1px solid var(--hqa-neutral-1); border-radius: 16px;
  padding: 24px 28px; margin-top: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.p-audio-card--placeholder { opacity: 0.85; }
.p-audio-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.p-audio-card-header-left { display: flex; align-items: center; gap: 10px; }
.p-audio-card-icon { flex-shrink: 0; }
.p-audio-card-title {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
  color: var(--hqa-dark-blue);
}
.p-audio-card-subtitle {
  font-family: var(--font-serif); font-style: italic; font-size: 0.9rem;
  color: var(--hqa-teal); opacity: 0.8;
}
.p-audio-card-player {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.p-audio-card-play {
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: var(--hqa-dark-blue); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s, transform 0.15s;
}
.p-audio-card-play:hover { background: var(--hqa-teal); transform: scale(1.05); }
.p-audio-card-wave {
  flex: 1; display: flex; align-items: center; gap: 2px;
  height: 48px; overflow: hidden; cursor: pointer; min-width: 0;
}
.p-audio-card-bar {
  display: inline-block; flex: 1; min-width: 2px; max-width: 5px; border-radius: 2px;
  background: var(--hqa-neutral-2); transition: background 0.2s;
}
.p-audio-card.playing .p-audio-card-bar.played { background: var(--hqa-teal); }
.p-audio-card-times {
  width: 100%; display: flex; justify-content: space-between;
  padding-left: 68px; margin-top: 4px;
  font-size: 0.78rem; color: var(--hqa-neutral-3); font-family: var(--font-body);
}
.p-audio-card-desc {
  font-size: 0.85rem; color: var(--hqa-neutral-3); font-style: italic;
  margin-top: 12px; line-height: 1.5;
}
.p-accordion-audio { display: none !important; }

@media (max-width: 600px) {
  .p-audio-card { padding: 16px 18px; }
  .p-audio-card-play { width: 44px; height: 44px; }
  .p-audio-card-title { font-size: 0.95rem; }
  .p-audio-card-times { padding-left: 60px; }
}


/* ============================================================
   Care Teams / Patients accordion content (Jesse+)  — v6.5
   ============================================================ */
.p-understanding-body h4 { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--hqa-dark-blue); margin: 22px 0 10px; }
.p-understanding-body a { color: var(--hqa-teal); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.p-understanding-body a:hover { color: var(--hqa-dark-blue); }
.p-understanding-body ol { padding-left: 20px; margin: 0 0 24px; }
.p-understanding-body ol li { margin-bottom: 10px; }
.p-understanding-body .p-italic { font-style: italic; color: var(--hqa-neutral-4); }

/* Reflection-question lists — compact white cards on the warm background */
.p-understanding-body ul.p-reflect-list { margin: 0 0 8px; }
.p-understanding-body ul.p-reflect-list li { background: #fff; border: 1px solid var(--hqa-neutral-1); border-radius: 8px; padding: 10px 14px 10px 32px; margin-bottom: 6px; color: var(--hqa-dark-blue); font-weight: 500; line-height: 1.5; }
.p-understanding-body ul.p-reflect-list li::before { left: 14px; top: 18px; }

/* Arrow-bullet section labels (Wingdings arrow in the source doc) */
.p-understanding-body .p-arrow-head { position: relative; padding-left: 26px; color: var(--hqa-neutral-4); font-weight: 400; margin: 18px 0 8px; line-height: 1.55; }
.p-understanding-body .p-arrow-head::before { content: '\25B8'; position: absolute; left: 2px; top: -2px; color: var(--hqa-teal); font-size: 1.25rem; line-height: 1.4; }
.p-understanding-body .p-arrow-head strong { color: var(--hqa-dark-blue); }

/* Resource link lists — indented under the arrow-head above; smaller bullets */
.p-understanding-body ul.p-reslist { margin: 0 0 12px 26px; }
.p-understanding-body ul.p-reslist li { padding-left: 18px; margin-bottom: 9px; color: var(--hqa-neutral-4); line-height: 1.55; }
.p-understanding-body ul.p-reslist li::before { width: 5px; height: 5px; top: 11px; }
.p-understanding-body ul.p-reslist li strong { color: var(--hqa-dark-blue); }
.p-understanding-body ul.p-reslist ul { margin: 8px 0 4px; }
.p-understanding-body ul.p-reslist ul li { margin-bottom: 6px; }
.p-understanding-body ul.p-reslist ul li::before { background: var(--hqa-neutral-2); }

/* Alberta Quality Dimension cards — white with per-dimension accent (HQA framework colors) */
.p-dimension { background: #fff; border: 1px solid var(--hqa-neutral-1); border-left: 4px solid var(--hqa-teal); border-radius: 10px; padding: 16px 20px; margin: 0 0 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.p-dim-name { position: relative; padding-left: 24px; margin: 0 0 4px; font-size: 1.05rem; color: var(--hqa-dark-blue); }
.p-dim-name::before { content: '\25B8'; position: absolute; left: 2px; top: 0; }
.p-dimension.p-dim-people    { border-left-color: #007196; }
.p-dimension.p-dim-people .p-dim-name, .p-dimension.p-dim-people .p-dim-name::before   { color: #007196; }
.p-dimension.p-dim-access    { border-left-color: #E07B23; }
.p-dimension.p-dim-access .p-dim-name, .p-dimension.p-dim-access .p-dim-name::before   { color: #B85F0E; }
.p-dimension.p-dim-effective { border-left-color: #D81E75; }
.p-dimension.p-dim-effective .p-dim-name, .p-dimension.p-dim-effective .p-dim-name::before { color: #C0155F; }
.p-dim-def { font-family: var(--font-serif); font-style: italic; color: var(--hqa-neutral-4); margin-bottom: 12px; font-size: 0.92rem; }
.p-understanding-body .p-dim-q { color: var(--hqa-dark-blue); font-weight: 600; border-left: 3px solid var(--hqa-lime); padding-left: 12px; margin: 12px 0 0; }
.p-dimension .p-dim-q { margin-bottom: 0; }

/* "Looking for a broader perspective?" — boxed callout */
.p-broader-box { border: 1px solid var(--hqa-neutral-2); border-radius: 10px; padding: 18px 22px; margin: 22px 0 0; background: #fff; }
.p-broader-box h4 { margin: 0 0 10px; }
.p-broader-box p { margin-bottom: 12px; }
.p-broader-box p:last-child { margin-bottom: 0; }


/* === Audio card synced captions === */
.p-audio-card-caption {
  display: none;
  margin-top: 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--hqa-teal);
  background: rgba(0, 0, 0, 0.04);
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  line-height: 1.5;
  min-height: 44px;
  box-sizing: border-box;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}
.p-audio-card.show-captions .p-audio-card-caption { display: block; }
.p-audio-card-caption.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .p-audio-card-caption { transition: none; } }

/* ── Additional Quality Dimension colours (added for Kai/Morgan/Pat/Robin/Terry) ── */
.p-dimension.p-dim-safe        { border-left-color: #2E9E5B; }
.p-dimension.p-dim-safe .p-dim-name, .p-dimension.p-dim-safe .p-dim-name::before        { color: #1F7D45; }
.p-dimension.p-dim-integrated  { border-left-color: #7B52A0; }
.p-dimension.p-dim-integrated .p-dim-name, .p-dimension.p-dim-integrated .p-dim-name::before { color: #634084; }
.p-dimension.p-dim-equitable   { border-left-color: #C79A1E; }
.p-dimension.p-dim-equitable .p-dim-name, .p-dimension.p-dim-equitable .p-dim-name::before   { color: #8A6D10; }
.p-dimension.p-dim-efficient   { border-left-color: #4B67B0; }
.p-dimension.p-dim-efficient .p-dim-name, .p-dimension.p-dim-efficient .p-dim-name::before   { color: #3A5192; }

/* ── Collapsible Quality Dimension cards ── */
.p-dim-name { cursor: pointer; user-select: none; }
.p-dim-name::before { transition: transform .2s ease; transform-origin: 45% 55%; }
.p-dimension.p-dim-open > .p-dim-name::before { transform: rotate(90deg); }
.p-dimension.p-dim-collapsed > .p-dim-name { margin-bottom: 0; }
.p-dim-panel { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.p-dimension.p-dim-open > .p-dim-panel { max-height: none; }

/* Collapsed dimension card: vertically centre the heading in the box */
.p-dimension.p-dim-collapsed { display: flex; flex-direction: column; justify-content: center; }
.p-dimension.p-dim-collapsed > .p-dim-name { margin: 0; line-height: 1.3; }

/* Collapsed dimension card: slightly less height */
.p-dimension.p-dim-collapsed { padding-top: 10px; padding-bottom: 10px; }

/* --- FLOATING PERSONA CHIP (keeps the person present while deep in the page) --- */
.p-float-chip {
  position: fixed; bottom: 28px; left: 28px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: var(--hqa-white, #fff); border-radius: 999px;
  padding: 6px 18px 6px 6px;
  box-shadow: 0 6px 24px rgba(0,46,77,0.18);
  border: 1px solid rgba(0,113,150,0.12);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}
.p-float-chip.visible { opacity: 1; transform: none; pointer-events: auto; }
.p-float-chip:hover { box-shadow: 0 8px 28px rgba(0,46,77,0.26); }
.p-float-chip img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block;
}
.p-float-chip span {
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  color: var(--hqa-dark-blue, #003a5d); letter-spacing: 0.02em;
}
@media (max-width: 767px) { .p-float-chip { display: none; } }
/* --- PERSONA IDENTITY IN STICKY TAB BAR (visible once the hero portrait scrolls away) --- */
.p-tabs-wrap .wrap { position: relative; }
.p-tabbar-persona {
  position: absolute; left: clamp(24px, 5vw, 48px); top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
.p-tabbar-persona.visible { opacity: 1; }
.p-tabbar-persona img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid var(--hqa-lime, #A3C23B);
  box-shadow: 0 2px 8px rgba(0,46,77,0.15);
}
.p-tabbar-persona span {
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700;
  color: var(--hqa-dark-blue, #003a5d); letter-spacing: 0.02em;
}
@media (max-width: 1120px) { .p-tabbar-persona span { display: none; } }
@media (max-width: 820px)  { .p-tabbar-persona { display: none; } }
/* corner chip retired in favour of the tab-bar identity */
.p-float-chip { display: none !important; }