/* PPHAP Graduate Registry: front-end. Self-contained and theme-neutral. */

.pphap { box-sizing: border-box; max-width: 860px; line-height: 1.5; }
.pphap *, .pphap *::before, .pphap *::after { box-sizing: inherit; }
.pphap h2, .pphap h3 { margin: 0 0 .5em; }
.pphap p { margin: 0 0 1em; }
.pphap-muted { color: #787c82; }
.pphap-notice { padding: 12px 16px; border: 1px solid #c3c4c7; border-left: 4px solid #2271b1; background: #fff; }

/* Intro panel (PDF page 1, upper) */
.pphap-intro { border: 1px solid #c3c4c7; border-left: 4px solid #2271b1; background: #f6f7f7; padding: 18px 22px; margin: 0 0 28px; }
.pphap-intro-title { font-size: 1.25em; margin-bottom: .6em; }
.pphap-intro p:last-child { margin-bottom: 0; }

/* Step indicator */
.pphap-steps { margin: 0 0 24px; }
.pphap-steps-text { font-weight: 600; margin: 0 0 8px; }
.pphap-steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: none; }
.pphap-step { flex: 1 1 100px; min-width: 100px; }
.pphap-step > * { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 8px; border: 1px solid #c3c4c7; border-radius: 3px; background: #fff; font: inherit; font-size: 13px; color: #50575e; text-align: left; }
.pphap-step-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #dcdcde; font-size: 12px; font-weight: 600; flex: 0 0 22px; }
.pphap-step-current > * { border-color: #2271b1; color: #1d2327; background: #f0f6fc; }
.pphap-step-current .pphap-step-num { background: #2271b1; color: #fff; }
.pphap-step-done .pphap-step-link { cursor: pointer; }
.pphap-step-done .pphap-step-link:hover, .pphap-step-done .pphap-step-link:focus { border-color: #2271b1; }
.pphap-step-done .pphap-step-num { background: #00a32a; color: #fff; }
.pphap-step-later > * { opacity: .6; }

/* Section heading and the grey helper sentence (PDF) */
.pphap-section-heading { font-size: 1.3em; margin: 0 0 .3em; padding-bottom: .3em; border-bottom: 2px solid #2271b1; }
.pphap-section-note { color: #50575e; font-size: .95em; margin-bottom: 1.4em; }

/* Fields */
.pphap-field { margin: 0 0 18px; }
.pphap-field label, .pphap-field .pphap-label, .pphap-group legend { display: block; font-weight: 600; margin-bottom: 4px; }
.pphap-field input[type="text"], .pphap-field input[type="email"], .pphap-field input[type="url"], .pphap-field input[type="tel"],
.pphap-field input[type="number"], .pphap-field input[type="password"], .pphap-field input[type="search"], .pphap-field select, .pphap-field textarea {
    width: 100%; max-width: 100%; padding: 8px 10px; border: 1px solid #8c8f94; border-radius: 3px; font: inherit; background: #fff; color: #1d2327;
}
.pphap-field select[multiple] { min-height: 150px; }
.pphap-field textarea { min-height: 80px; }
.pphap-help { color: #50575e; font-size: .9em; margin: 4px 0 0; }
.pphap-req { color: #d63638; }
.pphap-readonly { padding: 8px 10px; border: 1px solid #dcdcde; border-radius: 3px; background: #f6f7f7; min-height: 38px; }
.pphap-field-private input { border-style: dashed; }

.pphap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.pphap-stack > .pphap-field { margin-bottom: 10px; }
@media (max-width: 640px) { .pphap-row { grid-template-columns: 1fr; } }

.pphap-group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.pphap-option { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0; }
.pphap-option input { margin: 4px 0 0; flex: 0 0 auto; }
.pphap-option label { font-weight: 400; margin: 0; }
.pphap-group-inline .pphap-option { display: inline-flex; margin-right: 18px; }
.pphap-private-block { border: 1px dashed #c3c4c7; padding: 12px 14px 0; margin-bottom: 18px; background: #fafafa; }

/* Errors */
.pphap-alert { border: 1px solid #c3c4c7; border-left: 4px solid #2271b1; background: #fff; padding: 10px 14px; margin: 0 0 18px; }
.pphap-alert-errors { border-left-color: #d63638; }
.pphap-alert ul { margin: 0; padding-left: 20px; }
.pphap-field-error input, .pphap-field-error select, .pphap-field-error textarea { border-color: #d63638; }
.pphap-error { color: #d63638; font-size: .9em; margin: 4px 0 0; }

/* Panels (PDF page 4 boxes, page 6 "What happens") */
.pphap-panel { border: 1px solid #c3c4c7; border-left: 4px solid #dba617; background: #fff; padding: 14px 18px; margin: 0 0 18px; }
.pphap-panel-title { font-size: 1.05em; margin-bottom: .4em; }
.pphap-panel-list { margin: 0; padding-left: 20px; }
.pphap-panel-example { border-left-color: #2271b1; color: #50575e; }
.pphap-panel-example p { margin: 0; }

.pphap-word-count { font-size: .9em; color: #50575e; margin: 4px 0 0; }
.pphap-word-count-amber { color: #7a5c00; font-weight: 600; }

.pphap-details { margin: 0 0 18px; }
.pphap-details summary { cursor: pointer; font-weight: 600; color: #2271b1; }
.pphap-declaration .pphap-option { margin: 8px 0; }
.pphap-clause-num { font-weight: 600; }

/* Navigation */
.pphap-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #dcdcde; flex-wrap: wrap; }
.pphap-btn { display: inline-block; padding: 9px 18px; border: 1px solid #2271b1; border-radius: 3px; background: #fff; color: #2271b1; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.3; }
.pphap-btn-primary { background: #2271b1; color: #fff; }
.pphap-btn-primary:hover, .pphap-btn-primary:focus { background: #135e96; color: #fff; }
.pphap-btn-secondary { border-color: #8c8f94; color: #1d2327; }
.pphap-btn-link { border-color: transparent; background: transparent; text-decoration: underline; font-weight: 400; }
.pphap-btn-danger { border-color: #d63638; background: #d63638; color: #fff; }
.pphap-btn[disabled] { opacity: .45; cursor: default; }
.pphap-saved-line { color: #50575e; font-size: .9em; margin-top: 10px; min-height: 1.4em; }
.pphap-saved-line.pphap-saved-error { color: #d63638; font-weight: 600; }
/* Only with JavaScript: without it the conditional fields stay visible and the server judges them. */
.js .pphap-conditional[data-pphap-hidden] { display: none; }
.pphap-headshot-current img { display: block; width: 200px; height: auto; max-width: 100%; border: 1px solid #c3c4c7; border-radius: 4px; margin: 4px 0 8px; }
.pphap-field-file input[type="file"] { display: block; font: inherit; }
.js .pphap-nojs-only { display: none; }
.pphap-js-only { display: none; }
.js .pphap-js-only { display: flex; }

/* Account pages */
.pphap-form-narrow { max-width: 420px; }
.pphap-signed-in { color: #50575e; font-size: .9em; }
.pphap-status-panel { border-left-color: #2271b1; }
.pphap-status-approved, .pphap-status-changes_pending { border-left-color: #00a32a; }
.pphap-status-returned { border-left-color: #dba617; }
.pphap-status-expired, .pphap-status-revoked { border-left-color: #d63638; }
.pphap-quote { margin: 0 0 1em; padding: 10px 14px; border-left: 3px solid #dba617; background: #fcf9e8; }
.pphap-inline-form { display: inline; }
.pphap-confirm-text { margin-right: 8px; }
.pphap-summary { border-collapse: collapse; width: 100%; font-size: .95em; }
.pphap-summary th, .pphap-summary td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid #dcdcde; }
.pphap-summary th { width: 220px; color: #50575e; font-weight: 600; }

/* Search page */
/* The search page takes the full width the theme gives it; the filter grid reflows to fit. */
.pphap-search { max-width: none; }
.pphap-filters { border: 1px solid #c3c4c7; background: #f6f7f7; padding: 16px 18px; margin: 0 0 24px; }
.pphap-filter { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.pphap-filter label, .pphap-filter legend { display: block; font-weight: 600; margin-bottom: 4px; }
.pphap-filter .pphap-option label { font-weight: 400; }
.pphap-filter input[type="text"], .pphap-filter input[type="search"], .pphap-filter select { width: 100%; padding: 7px 9px; border: 1px solid #8c8f94; border-radius: 3px; font: inherit; background: #fff; }
.pphap-filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 20px; }
.pphap-focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 20px; }
.pphap-count { color: #787c82; font-size: .9em; }
.pphap-filter-contrib { margin-top: 10px; }
.pphap-filter-actions { display: flex; gap: 10px; align-items: center; }
.pphap-dropped { padding: 10px 14px; border-left: 4px solid #dba617; background: #fcf9e8; }
.pphap-showing { color: #50575e; font-size: .9em; }
.pphap-results { list-style: none; margin: 0; padding: 0; }
.pphap-result { border: 1px solid #c3c4c7; border-left: 4px solid #2271b1; background: #fff; padding: 14px 18px; margin: 0 0 12px; }
.pphap-result-name { font-size: 1.15em; margin: 0 0 .2em; }
.pphap-result-prof { font-weight: 400; color: #50575e; }
.pphap-result-title, .pphap-result-loc { margin: 0 0 .3em; color: #50575e; }
.pphap-result-focus { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pphap-result-focus li { font-size: .85em; padding: 2px 8px; border-radius: 10px; background: #f0f6fc; color: #0b4a72; }
.pphap-result-focus .pphap-more { background: transparent; color: #787c82; }
.pphap-result-link { margin: 6px 0 0; }
.pphap-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #d5f2dd; color: #0a5c2b; font-size: .8em; font-weight: 600; vertical-align: middle; }
.pphap-tag-cred { background: #f0f6fc; color: #0b4a72; }
.pphap-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.pphap-page { display: inline-block; min-width: 34px; padding: 5px 8px; text-align: center; border: 1px solid #c3c4c7; border-radius: 3px; background: #fff; text-decoration: none; }
.pphap-page-current { border-color: #2271b1; background: #2271b1; color: #fff; }
.pphap-loading { opacity: .5; }

/* Profile page */
.pphap-profile-header { border-bottom: 2px solid #2271b1; margin: 0 0 20px; padding-bottom: 12px; }
.pphap-profile-header-photo { display: flex; gap: 24px; align-items: flex-start; }
.pphap-profile-photo { flex: 0 0 auto; }
.pphap-profile-photo img { display: block; width: 300px; max-width: 100%; height: auto; border-radius: 6px; }
.pphap-profile-heading { flex: 1 1 auto; min-width: 0; }
@media (max-width: 640px) { .pphap-profile-header-photo { display: block; } .pphap-profile-photo img { width: 200px; margin-bottom: 12px; } }
.pphap-tag-no { background: #f0f0f1; color: #50575e; }
.pphap-tag-contact { background: #fcf3d4; color: #7a5c00; }
.pphap-profile-contact-methods { color: #50575e; margin: 0 0 .5em; }
.pphap-profile-name { font-size: 1.6em; margin-bottom: .2em; }
.pphap-profile-prof { font-weight: 400; color: #50575e; }
.pphap-profile-title { font-weight: 600; margin: 0 0 .2em; }
.pphap-profile-practice, .pphap-profile-loc { color: #50575e; margin: 0 0 .2em; }
.pphap-profile-badges .pphap-tag { margin: 4px 6px 0 0; }
.pphap-profile-section { margin: 0 0 24px; }
.pphap-profile-section h3 { font-size: 1.1em; border-bottom: 1px solid #dcdcde; padding-bottom: .2em; }
.pphap-profile-facts { display: grid; grid-template-columns: 240px 1fr; gap: 6px 16px; margin: 12px 0 0; }
.pphap-profile-facts dt { font-weight: 600; color: #50575e; }
.pphap-profile-facts dd { margin: 0; }
@media (max-width: 640px) { .pphap-profile-facts { grid-template-columns: 1fr; } .pphap-profile-facts dt { margin-top: 6px; } }
.pphap-plain-list { list-style: none; margin: 0; padding: 0; }
.pphap-plain-list li { margin: 0 0 4px; }
.pphap-focus-list { columns: 2; column-gap: 24px; margin: 0; padding-left: 20px; }
@media (max-width: 640px) { .pphap-focus-list { columns: 1; } }
.pphap-profile-footer { color: #787c82; font-size: .9em; border-top: 1px solid #dcdcde; padding-top: 10px; display: flex; gap: 20px; flex-wrap: wrap; }
.pphap-profile-back { margin-top: 16px; }
.pphap-email-text { unicode-bidi: bidi-override; }
