/* ============================================================
   Proctor House Academy — app.css
   Design tokens taken directly from the approved prototype so the
   WordPress build is visually identical, not a re-interpretation.
   ============================================================ */

:root {
	--ph-blue: #0070B0;
	--ph-blue-dark: #005D93;
	--ph-blue-darker: #004A77;
	--ph-blue-tint: #E9F4FA;
	--ph-blue-tint-2: #CFE6F3;
	--ph-navy: #0F2B3D;
	--ph-navy-2: #1E4A63;
	--ph-ink: #17222B;
	--ph-muted: #5C6B77;
	--ph-faint: #8A98A4;
	--ph-border: #E3E9ED;
	--ph-border-2: #EFF3F5;
	--ph-bg: #F5F7F9;
	--ph-white: #fff;
	--ph-green: #1E8E5A;
	--ph-green-tint: #E5F4EC;
	--ph-amber: #C77E1F;
	--ph-amber-tint: #FBF3E6;
	--ph-red: #C0392B;
	--ph-red-tint: #F8ECEA;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 8px 24px -14px rgba(11, 42, 60, .18);
	--font: 'Century Gothic', 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
body.ph-app, body { margin: 0; background: var(--ph-bg); color: var(--ph-ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 8px; font-weight: 700; }
.ph-muted { color: var(--ph-faint); font-size: 13px; }
.ph-center { text-align: center; }
.ph-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.ph-container--narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: var(--radius-sm); padding: 12px 20px; font: 600 14px var(--font); cursor: pointer; }
.ph-btn--primary { background: var(--ph-blue); color: #fff; }
.ph-btn--primary:hover { background: var(--ph-blue-dark); }
.ph-btn--outline { background: #fff; color: var(--ph-blue); border: 1.5px solid var(--ph-blue-tint-2); }
.ph-btn--outline:hover { background: var(--ph-blue-tint); }
.ph-btn--ghost { background: none; color: var(--ph-muted); border: 1.5px solid var(--ph-border); }
.ph-btn--ghost:hover { border-color: var(--ph-blue); color: var(--ph-blue); }
.ph-btn--light { background: #fff; color: var(--ph-blue); }
.ph-btn--full { width: 100%; }
.ph-btn--small { padding: 8px 14px; font-size: 12.5px; }

/* ---------- Cards / pills / stats ---------- */
.ph-card { background: #fff; border: 1px solid var(--ph-border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.ph-card--accent { border-left: 4px solid var(--ph-amber); }
.ph-card--dark { background: var(--ph-navy); color: #fff; border: none; }
.ph-card__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.ph-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ph-faint); margin-bottom: 12px; }
.ph-eyebrow--warn { color: var(--ph-amber); }
.ph-pill { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ph-blue-tint); color: var(--ph-blue); }
.ph-pill--pass { background: var(--ph-green-tint); color: var(--ph-green); }
.ph-pill--fail { background: var(--ph-red-tint); color: var(--ph-red); }
.ph-pill--warn { background: var(--ph-amber-tint); color: var(--ph-amber); }
.ph-pill--draft { background: #F0F3F5; color: var(--ph-faint); }
.ph-pill--type { background: #EFE9F6; color: #7A5EA8; }
.ph-pill-badge { font-size: 13px; color: var(--ph-muted); background: #fff; border: 1px solid var(--ph-border); border-radius: var(--radius-sm); padding: 9px 14px; }
.ph-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.ph-stat-card__label { font-size: 12.5px; color: var(--ph-faint); font-weight: 600; margin-bottom: 8px; }
.ph-stat-card__row { display: flex; align-items: baseline; gap: 10px; }
.ph-stat-card__value { font-size: 26px; font-weight: 700; }
.ph-stat-card__delta.is-positive { color: var(--ph-green); font-size: 12.5px; font-weight: 700; }
.ph-stat-card__delta.is-warning { color: var(--ph-amber); font-size: 12.5px; font-weight: 700; }
.ph-big-stat { font-size: 32px; font-weight: 700; margin: 8px 0; }

/* ---------- Progress ---------- */
.ph-progress { display: flex; align-items: center; gap: 10px; }
.ph-progress__track { flex: 1; height: 7px; background: var(--ph-border-2); border-radius: 999px; overflow: hidden; }
.ph-progress__fill { height: 100%; background: var(--ph-blue); border-radius: 999px; }
.ph-progress__label { font-size: 12px; color: var(--ph-muted); width: 32px; }
.ph-inline-progress { font-weight: 700; color: var(--ph-blue); }
.ph-bar-row { margin-bottom: 14px; }
.ph-bar-row__label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }

/* ---------- Layout: app shell ---------- */
.ph-app-shell { display: flex; min-height: 100vh; }
.ph-sidebar { width: 248px; flex: none; background: #fff; border-right: 1px solid var(--ph-border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.ph-sidebar__brand { padding: 20px 20px 16px; border-bottom: 1px solid var(--ph-border-2); }
.ph-sidebar__brand-text { font-weight: 700; letter-spacing: .02em; }
.ph-sidebar__brand-text span { font-weight: 400; }
.ph-sidebar__workspace-badge { margin-top: 10px; display: inline-flex; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ph-blue); background: var(--ph-blue-tint); border-radius: 6px; padding: 4px 9px; }
.ph-sidebar__nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; }
.ph-sidebar__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ph-muted); }
.ph-sidebar__link:hover { background: #F0F5F8; }
.ph-sidebar__link.is-active { background: var(--ph-blue-tint); color: var(--ph-blue); font-weight: 700; }
.ph-sidebar__user { padding: 14px 16px; border-top: 1px solid var(--ph-border-2); display: flex; align-items: center; gap: 11px; }
.ph-sidebar__user-name { font-size: 13.5px; font-weight: 700; }
.ph-sidebar__user-title { font-size: 12px; color: var(--ph-faint); }
.ph-sidebar__signout { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--ph-faint); padding: 6px; border-radius: 6px; display: flex; }
.ph-sidebar__signout:hover { color: var(--ph-red); background: var(--ph-red-tint); }

.ph-app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ph-topbar { background: #fff; border-bottom: 1px solid var(--ph-border); padding: 0 28px; height: 64px; display: flex; align-items: center; gap: 20px; position: sticky; top: 0; z-index: 40; }
.ph-topbar__search { position: relative; flex: 1; max-width: 440px; display: flex; align-items: center; }
.ph-topbar__search svg { position: absolute; left: 13px; }
.ph-topbar__search input { width: 100%; background: var(--ph-bg); border: 1.5px solid transparent; border-radius: 9px; padding: 10px 14px 10px 38px; font: 400 13.5px var(--font); }
.ph-topbar__spacer { flex: 1; }
.ph-topbar__bell { background: none; border: none; cursor: pointer; color: var(--ph-muted); padding: 8px; border-radius: 8px; }
.ph-main { padding: 32px; }

.ph-avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; background: var(--ph-blue); }
.ph-avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.ph-avatar--lg { width: 64px; height: 64px; font-size: 22px; }

/* ---------- Page shell ---------- */
.ph-page { width: 100%; }
.ph-page--wide { max-width: 1160px; margin: 0 auto; }
.ph-page--narrow { max-width: 820px; margin: 0 auto; }
.ph-page__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ph-page__subhead { font-size: 14px; color: var(--ph-faint); }
.ph-page__actions { display: flex; gap: 10px; }
.ph-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ph-breadcrumb { font-size: 13px; color: var(--ph-faint); margin-bottom: 18px; }
.ph-breadcrumb a { font-weight: 600; color: var(--ph-ink); }
.ph-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.ph-grid-lesson { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.ph-stack { display: flex; flex-direction: column; gap: 20px; }
.ph-course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 32px; }
.ph-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; font-size: 13.5px; }
.ph-detail-grid dt { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ph-faint); margin-bottom: 3px; }
.ph-detail-row { display: flex; justify-content: space-between; font-size: 13px; padding: 10px 0; border-top: 1px solid var(--ph-border-2); }

/* ---------- Tables ---------- */
.ph-table-wrap { padding: 0; overflow-x: auto; }
.ph-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ph-table th { text-align: left; color: var(--ph-faint); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 12px 20px; border-bottom: 1px solid var(--ph-border); }
.ph-table td { padding: 13px 20px; border-bottom: 1px solid var(--ph-border-2); }
.ph-table tr:hover td { background: #F8FAFB; }
.ph-table__empty { text-align: center; color: var(--ph-faint); padding: 32px !important; }
.ph-cell-avatar { display: flex; align-items: center; gap: 10px; }

/* ---------- Rows used across dashboards ---------- */
.ph-learning-row, .ph-doc-row, .ph-announcement-row, .ph-session-row, .ph-timeline-row, .ph-note-card { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ph-border-2); }
.ph-learning-row__title, .ph-doc-row__body, .ph-session-row__title { font-size: 14px; font-weight: 600; }
.ph-learning-row__icon, .ph-doc-row__icon { width: 30px; height: 30px; border-radius: 8px; background: var(--ph-blue-tint); color: var(--ph-blue); display: flex; align-items: center; justify-content: center; flex: none; }
.ph-doc-row__body { flex: 1; }
.ph-session-row__date { text-align: center; flex: none; width: 44px; font-weight: 700; }
.ph-timeline-row { border: none; gap: 14px; align-items: flex-start; }
.ph-timeline-row__dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--ph-border); color: var(--ph-faint); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
.ph-timeline-row.is-done .ph-timeline-row__dot { background: var(--ph-green); border-color: var(--ph-green); color: #fff; }
.ph-timeline-row.is-current .ph-timeline-row__dot { background: var(--ph-blue); border-color: var(--ph-blue); color: #fff; }
.ph-note-card { flex-direction: column; align-items: flex-start; background: #F8FAFB; border: 1px solid var(--ph-border-2); border-radius: 9px; padding: 12px 14px; }
.ph-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ph-blue); margin-top: 6px; flex: none; }
.ph-continue-card { display: flex; gap: 16px; }
.ph-continue-card__icon { width: 48px; height: 48px; border-radius: 10px; background: var(--ph-blue-tint); color: var(--ph-blue); display: flex; align-items: center; justify-content: center; flex: none; }
.ph-continue-card__body { flex: 1; }
.ph-continue-card__title { font-weight: 700; margin-bottom: 8px; }

/* ---------- Onboarding progress ---------- */
.ph-onboarding-progress__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ph-onboarding-progress__steps { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; color: var(--ph-faint); flex-wrap: wrap; gap: 6px; }
.ph-onboarding-progress__steps .is-done { color: var(--ph-green); font-weight: 700; }
.ph-onboarding-progress__steps .is-current { color: var(--ph-blue); font-weight: 700; }
.ph-profile-head { display: flex; align-items: center; gap: 20px; }

/* ---------- Chips ---------- */
.ph-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ph-chip { background: #fff; color: var(--ph-muted); border: 1.5px solid var(--ph-border); border-radius: 999px; padding: 8px 16px; font: 600 12.5px var(--font); }
.ph-chip.is-active { background: var(--ph-blue-tint); color: var(--ph-blue); border-color: var(--ph-blue); }

/* ---------- Forms / modal ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 7px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
	width: 100%; box-sizing: border-box; border: 1.5px solid var(--ph-border); border-radius: var(--radius-sm); padding: 11px 13px; font: 400 14px var(--font); color: var(--ph-ink); margin-bottom: 14px; background: #fff;
}
.ph-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ph-form-error { background: var(--ph-red-tint); color: var(--ph-red); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.ph-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ph-modal[hidden] { display: none; }
.ph-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 43, 61, .45); }
.ph-modal__panel { position: relative; width: 100%; max-width: 460px; }
.ph-modal__actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Kanban ---------- */
.ph-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.ph-kanban__col { background: #EEF2F5; border-radius: 12px; padding: 12px; }
.ph-kanban__col-head { display: flex; justify-content: space-between; padding: 4px 6px 12px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ph-muted); }
.ph-kanban__count { background: #fff; color: var(--ph-blue); border-radius: 999px; padding: 3px 9px; }
.ph-kanban__cards { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.ph-kanban-card { background: #fff; border: 1px solid var(--ph-border); border-radius: 9px; padding: 12px 13px; cursor: grab; }
.ph-kanban-card.is-dragging { opacity: .4; }
.ph-kanban-card__head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.ph-kanban-card__name { font-size: 13px; font-weight: 700; }
.ph-kanban__dropzone.is-over { background: var(--ph-blue-tint); border-radius: 8px; }

/* ---------- Week grid (sessions) ---------- */
.ph-week-grid { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; margin-bottom: 24px; }
.ph-week-grid__col { background: #fff; border: 1px solid var(--ph-border); border-radius: 12px; overflow: hidden; min-height: 180px; display: flex; flex-direction: column; }
.ph-week-grid__col.is-today .ph-week-grid__head { background: var(--ph-blue-tint); }
.ph-week-grid__head { padding: 12px 14px; border-bottom: 1px solid var(--ph-border-2); display: flex; gap: 8px; align-items: baseline; }
.ph-week-grid__body { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ph-week-session { background: var(--ph-blue-tint); border-left: 3px solid var(--ph-blue); border-radius: 7px; padding: 10px 11px; }
.ph-week-session__time { font-size: 11px; font-weight: 700; color: var(--ph-blue); }

/* ---------- Lesson player ---------- */
.ph-lesson-list__item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; }
.ph-lesson-list__item:hover, .ph-lesson-list__item.is-current { background: var(--ph-blue-tint); }
.ph-lesson-list__dot { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--ph-border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.ph-lesson-list__dot.is-done { background: var(--ph-green); border-color: var(--ph-green); color: #fff; }
.ph-lesson-list__title { flex: 1; font-size: 13.5px; font-weight: 600; }
.ph-lesson-list__dur { font-size: 12px; color: var(--ph-faint); }
.ph-lesson-content__media img { width: 100%; border-radius: 10px; margin-bottom: 20px; }
.ph-lesson-content__actions { display: flex; gap: 12px; border-top: 1px solid var(--ph-border-2); padding-top: 20px; margin-top: 20px; }
.ph-lesson-plan-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ph-border-2); }
.ph-lesson-plan-row__num { width: 26px; height: 26px; border-radius: 8px; background: #F0F5F8; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.ph-lesson-plan-row__title { flex: 1; font-weight: 600; font-size: 13.5px; }
.ph-add-lesson-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; padding-top: 16px; border-top: 1px solid var(--ph-border-2); margin-top: 8px; }
.ph-add-lesson-form input, .ph-add-lesson-form select { margin-bottom: 0; }
.ph-add-lesson-form input[name=title] { flex: 2; min-width: 160px; }
.ph-add-lesson-form select { flex: 1; min-width: 110px; }
.ph-add-lesson-form input[name=duration_minutes] { width: 90px; }

/* ---------- Quiz ---------- */
.ph-quiz { padding: 32px; }
.ph-quiz__intro { text-align: center; }
.ph-quiz__opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--ph-border); border-radius: 10px; padding: 14px 16px; cursor: pointer; margin-bottom: 10px; font: inherit; }
.ph-quiz__opt.is-selected { border-color: var(--ph-blue); background: var(--ph-blue-tint); }
.ph-quiz__opt-letter { width: 28px; height: 28px; border-radius: 50%; background: #F0F3F5; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; flex: none; }
.ph-quiz__result-ring { width: 104px; height: 104px; border-radius: 50%; border: 5px solid var(--ph-green); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 26px; font-weight: 700; }

/* ---------- Pipeline funnel / bench ---------- */
.ph-pipeline-funnel { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 12px; overflow-x: auto; margin: 20px 0; }
.ph-pipeline-funnel__col { background: var(--ph-bg); border: 1px solid var(--ph-border-2); border-radius: 10px; padding: 14px; }
.ph-pipeline-funnel__label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--ph-muted); margin-bottom: 10px; }
.ph-pipeline-funnel__count { font-size: 22px; font-weight: 700; }
.ph-pipeline-funnel__bar { height: 5px; background: var(--ph-border); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.ph-pipeline-funnel__bar div { height: 100%; background: var(--ph-blue); }

/* ---------- Dropzone ---------- */
.ph-dropzone { display: block; width: 100%; box-sizing: border-box; background: #fff; border: 2px dashed var(--ph-blue-tint-2); border-radius: 12px; padding: 36px; text-align: center; cursor: pointer; margin-bottom: 24px; }
.ph-dropzone:hover { border-color: var(--ph-blue); background: #F8FBFD; }
.ph-dropzone svg { margin-bottom: 10px; }

/* ---------- Alert band ---------- */
.ph-alert-band { background: var(--ph-amber-tint); border: 1px solid #EAD199; border-radius: 10px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 13.5px; }

/* ============================================================
   Public site
   ============================================================ */
.ph-public-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ph-border); }
.ph-public-header__row { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ph-public-header__wordmark { font-weight: 700; letter-spacing: .02em; }
.ph-public-header__wordmark span { font-weight: 400; }
.ph-public-nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
.ph-public-nav a { color: var(--ph-muted); font-weight: 500; }
.ph-public-nav a:hover { color: var(--ph-blue); }

.ph-hero { background: #fff; border-bottom: 1px solid var(--ph-border); padding: 88px 0 96px; }
.ph-hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 64px; align-items: center; }
.ph-hero h1 { font-size: clamp(38px, 4.4vw, 54px); line-height: 1.1; letter-spacing: -.01em; }
.ph-lede { font-size: 17.5px; line-height: 1.65; color: var(--ph-muted); max-width: 520px; }
.ph-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0; }
.ph-hero__stats { display: flex; gap: 32px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--ph-border); }
.ph-hero__stat-num { font-size: 24px; font-weight: 700; color: var(--ph-blue); }
.ph-hero__stat-label { font-size: 13px; color: var(--ph-faint); margin-top: 2px; }
.ph-hero__media img { width: 100%; border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(11,42,60,.25); }

.ph-section { padding: 80px 0; }
.ph-section--muted { background: var(--ph-bg); }
.ph-section--dark { background: var(--ph-navy); color: #fff; }
.ph-section__intro { color: var(--ph-muted); max-width: 560px; margin-bottom: 40px; }

.ph-pathway { display: flex; flex-wrap: wrap; }
.ph-pathway__item { flex: 1 1 180px; min-width: 170px; padding-right: 12px; }
.ph-pathway__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ph-blue); margin-bottom: 16px; }
.ph-pathway__level { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ph-faint); }

.ph-hotel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ph-hotel-card { padding: 0; overflow: hidden; }
.ph-hotel-card__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ph-hotel-card__body { padding: 18px 20px 20px; }
.ph-hotel-card__name { font-size: 15.5px; font-weight: 700; }
.ph-hotel-card__tagline { font-size: 13px; color: var(--ph-faint); margin-top: 4px; }

.ph-cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 64px 0; }

.ph-journey-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; }
.ph-journey-step__dot { width: 44px; height: 44px; border-radius: 50%; background: var(--ph-blue-tint); color: var(--ph-blue); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ph-journey-step__line { width: 2px; flex: 1; background: var(--ph-border); margin: 6px auto; min-height: 20px; }
.ph-journey-step__card { margin-bottom: 20px; }
.ph-checklist-item { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; background: var(--ph-bg); border-radius: 8px; padding: 10px 13px; margin-bottom: 8px; }

.ph-login { min-height: 100vh; display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.ph-login__panel { background: var(--ph-navy); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 56px; }
.ph-login__wordmark { color: #fff; font-weight: 700; }
.ph-login__wordmark em { color: #7FBEDD; font-style: normal; font-weight: 400; }
.ph-login__contact { font-size: 12.5px; color: #6E8CA0; }
.ph-login__form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: var(--ph-bg); }
.ph-login__form { width: 100%; max-width: 400px; }

.ph-public-footer { background: var(--ph-navy); color: #A9C2D1; }
.ph-public-footer__row { padding: 56px 0 40px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.ph-public-footer__wordmark { color: #fff; font-weight: 700; margin-bottom: 12px; }
.ph-public-footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.ph-public-footer__heading { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.ph-public-footer__bottom { border-top: 1px solid var(--ph-navy-2); padding: 18px 0; font-size: 12.5px; color: #6E8CA0; }

@media (max-width: 900px) {
	.ph-app-shell { flex-direction: column; }
	.ph-sidebar { width: 100%; height: auto; position: static; }
	.ph-grid-lesson { grid-template-columns: 1fr; }
}


/* ============================================================
   Design-fidelity additions (v1.1)
   ============================================================ */

/* Gradient progress (onboarding card + quiz header) — exact prototype values */
.ph-progress--lg .ph-progress__track { height: 10px; }
.ph-progress__fill--gradient { background: linear-gradient(90deg, #0070B0, #1E9AD6); }

/* Topbar: notification dot + live search results dropdown */
.ph-topbar__bell { position: relative; }
.ph-topbar__bell-dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--ph-red); border: 2px solid #fff; }
.ph-topbar__search { position: relative; }
.ph-topbar__search input:focus { border-color: var(--ph-blue); background: #fff; outline: none; }
.ph-topbar__results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--ph-border); border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(11, 42, 60, .25); padding: 6px; z-index: 60; }
.ph-topbar__result { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 7px; }
.ph-topbar__result:hover { background: #F0F5F8; }
.ph-topbar__result-title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-topbar__result-type { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ph-faint); flex: none; }
.ph-topbar__no-results { padding: 14px 12px; font-size: 13.5px; color: var(--ph-faint); }

/* Admin-only workspace switcher — the production version of the prototype's role tabs */
.ph-role-tabs { display: flex; align-items: center; gap: 4px; background: var(--ph-bg); border-radius: 9px; padding: 4px; }
.ph-role-tabs__tab { border-radius: 7px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; color: var(--ph-muted); }
.ph-role-tabs__tab:hover { color: var(--ph-blue); }
.ph-role-tabs__tab.is-active { background: #fff; color: var(--ph-blue); box-shadow: 0 2px 6px -2px rgba(11, 42, 60, .25); }

/* Hero: eyebrow leading dash + large CTA + text link button (exact prototype) */
.ph-hero .ph-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ph-blue); letter-spacing: .14em; font-size: 12.5px; margin-bottom: 20px; }
.ph-hero .ph-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--ph-blue); display: inline-block; }
.ph-btn--lg { padding: 15px 26px; font-size: 15.5px; }
.ph-btn--text { background: transparent; color: var(--ph-blue); padding: 15px 10px; }
.ph-btn--text:hover { color: var(--ph-blue-dark); }
.ph-hero__grid { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Login card: elevation + logo slot (prototype card has a shadow + logo) */
.ph-login__form--elevated { border-radius: 14px; padding: 36px; box-shadow: 0 12px 40px -20px rgba(11, 42, 60, .2); }
.ph-login__form-logo { margin-bottom: 22px; }
.ph-login__form-logo img { height: 40px; width: auto; display: block; }

/* Module editor: icon buttons + inline question rows */
.ph-icon-btn { background: none; border: none; cursor: pointer; color: var(--ph-faint); padding: 6px; border-radius: 6px; display: inline-flex; margin-left: auto; }
.ph-icon-btn:hover { color: var(--ph-red); background: var(--ph-red-tint); }
.ph-question-row { padding: 13px 0; border-bottom: 1px solid var(--ph-border-2); }
.ph-question-row__head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.ph-question-row__text { flex: 1; font-size: 13.5px; }
.ph-question-row__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.js-add-question-form { border-top: 1px solid var(--ph-border-2); padding-top: 18px; margin-top: 12px; }
.js-add-note-form { border-top: 1px solid var(--ph-border-2); padding-top: 14px; margin-top: 10px; }
.js-add-note-form textarea { margin-bottom: 10px; }

/* Dropzone as a real button (opens the upload modal) */
button.ph-dropzone { font: inherit; color: inherit; width: 100%; }

/* Global focus + placeholder (from prototype base styles) */
input::placeholder, textarea::placeholder { color: var(--ph-faint); }
input:focus, select:focus, textarea:focus { border-color: var(--ph-blue); outline: none; }
.ph-btn:focus-visible, a:focus-visible { outline: 2px solid var(--ph-blue); outline-offset: 2px; }


/* ===== Academy Setup (v1.3) =========================================== */
.ph-setup-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--ph-border); }
.ph-setup-row:last-of-type { border-bottom: 0; }
.ph-setup-row__index { width: 24px; height: 24px; border-radius: 50%; background: var(--ph-bg-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--ph-navy); flex: none; }
.ph-setup-row input[type="text"], .ph-setup-row select { flex: 1; min-width: 0; }
.ph-setup-row .ph-input--short, .ph-input--short { flex: 0 1 160px; }
.ph-setup-row__tools { display: inline-flex; gap: 4px; flex: none; }
.ph-setup-add { display: flex; gap: 8px; margin-top: 14px; }
.ph-setup-add input { flex: 1; }
.ph-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--ph-border); border-radius: 999px; font-size: 13px; background: #fff; }
.ph-chip em { font-style: normal; color: var(--ph-muted); font-size: 12px; }
.ph-chip button { border: 0; background: none; cursor: pointer; color: var(--ph-muted); padding: 0 2px; font-size: 12px; }
.ph-chip button:hover { color: var(--ph-navy); }
.ph-hb-editor { border: 1px solid var(--ph-border); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.ph-hb-editor summary { cursor: pointer; font-weight: 600; color: var(--ph-navy); }
.ph-hb-editor form { display: grid; gap: 10px; margin-top: 12px; }
.ph-hb-editor__tools { display: flex; gap: 8px; justify-content: flex-end; }
.ph-setup-settings { display: grid; gap: 12px; }
.ph-upload-label { cursor: pointer; }
.ph-grid--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .ph-grid--2 { grid-template-columns: 1fr; } }
