/* The Palme Upgrade portals, in the feel of the legacy eps-fe app. Everything is under .pp: the website's global.css (Bootstrap) is loaded under it, and its links, headings and fonts must not leak in. */
/* eps-fe's `rem` is 16 px (Vuetify); the website's styles set the root to 18 px, which would make every `rem` of these pages 12.5 % bigger than in eps-fe. This sheet is loaded by the Palme Upgrade pages only. */
html { font-size: 16px; }

/* As in eps-fe: one file (Light) and no `font-weight` range, so the browser makes its own bold from it wherever the text is bold. A range such as 100 900 would say the file already has every weight and switch that off. */
@font-face { font-family: 'Avenir'; src: url('/assets/ranking/palm/Avenir-Light.ttf') format('truetype'); font-display: swap; }

.pp { --pp-primary: #581866; --pp-secondary: #8e2569; --pp-error: #f42d2d; --pp-info: #4496f3; --pp-success: #04ab15; --pp-surface: #f9f9f9; --pp-expand: #3178c6; min-height: 100vh; background: var(--pp-surface); color: #444; font-family: 'Avenir', sans-serif; font-size: 16px; line-height: 1.5; }
.pp *, .pp *::before, .pp *::after { box-sizing: border-box; }
.pp a { color: inherit; text-decoration: none; }
/* Bootstrap gives every label a bottom margin of .5rem; Vuetify, which eps-fe is made with, does not. */
.pp label { margin-bottom: 0; }
/* The website sets every b and strong to `font-weight: 400 !important` in its own "avenirblack" font; eps-fe's bold is the browser's (`bolder`) of the one Avenir file. */
.pp b, .pp strong { font-weight: bolder !important; font-family: inherit !important; }
.pp h1, .pp h2, .pp h3, .pp p { font-family: inherit; }
.pp img { max-width: 100%; }
.pp-wrapper { max-width: 1440px; margin: 0 auto; }
.pp-center { text-align: center; }

/* Frame of the logged-in pages (eps-fe Default.vue) */
.pp-header { background: #fff; }
.pp-header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 1rem .75rem; }
.pp-header-logo { width: 160px; flex: none; }
.pp-header-title { margin: 0; color: var(--pp-primary); font-size: 2.125rem; font-weight: 400; line-height: 1.2; text-align: center; }
.pp-header-side { flex: none; min-width: 160px; display: flex; justify-content: flex-end; }
.pp-pill { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 36px; padding: 0 1.25rem; white-space: nowrap; border: 0; border-radius: 36px; background: var(--pp-primary); color: #fff; font: inherit; font-size: 16px; letter-spacing: 0; cursor: pointer; }
.pp-pill:disabled { opacity: .6; cursor: default; }
.pp-pill-secondary { background: var(--pp-secondary); font-weight: 700; min-width: 180px; min-height: 50px; }
.pp-pill-primary { font-weight: 700; min-width: 150px; }
.pp-main { min-height: calc(100vh - 160px); padding: 0 1rem; }
.pp-welcome { margin: 2rem 0; font-size: 1.5rem; text-align: center; }
/* The school's bar (eps-fe Card/Hero.vue): the logo and the name on a white card. */
.pp-hero { display: flex; align-items: center; gap: .75rem; margin: 0 0 2rem; padding: 1rem; border-radius: 10px; background: #fff; box-shadow: 0 0 20px rgba(0, 0, 0, .05); }
.pp-hero-logo { height: 100px; width: auto; max-width: 240px; object-fit: contain; }
.pp-hero-name { margin: 0; color: var(--pp-primary); font-size: 1.5em; font-weight: 400; text-transform: capitalize; }
@media (max-width: 959px) { .pp-hero { flex-direction: column; text-align: center; } }
/* The two columns of the Home (eps-fe Home.vue): the cards of the school on the left (a third), the accordion on the right. */
.pp-home-grid { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pp-home-left { flex: 0 0 33.333%; max-width: 33.333%; min-width: 0; }
.pp-home-right { flex: 1 1 0; min-width: 0; }
.pp-box { margin: 0 0 1rem; padding: 1.5rem; border-radius: 10px; background: #fff; box-shadow: 0 0 20px rgba(0, 0, 0, .05); }
.pp-box-header { display: flex; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--pp-primary); color: var(--pp-primary); }
.pp-box-logo { height: 40px; width: auto; }
.pp-box-title { margin: 0 0 0 .5rem; color: var(--pp-primary); font-size: 1.5em; font-weight: 400; line-height: 1.2; }
.pp-info-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.pp-info-list li { display: flex; margin-bottom: .5rem; }
.pp-info-list li > span { flex: none; width: 175px; color: var(--pp-primary); font-style: italic; }
.pp-link { color: var(--pp-primary); }
.pp-icon { vertical-align: middle; }
.pp-contact { margin-top: 1rem; padding-bottom: 8px; border-bottom: 1px solid #e7e7e9; }
.pp-contact p { margin: 0 0 1rem; }
.pp-contact p.pp-accent { color: var(--pp-primary); }
.pp-contact-line { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; color: #000; word-break: break-word; }
.pp-contact-line a { color: #000; }
.pp-metrics { margin: 0 0 1rem; padding: .75rem; border-radius: 10px; background: var(--pp-primary); color: #555; text-align: center; }
.pp-metrics-title { margin: 0 0 .5rem; color: #fff; font-size: .9rem; }
.pp-metrics-boxes { display: flex; justify-content: center; gap: .75rem; }
.pp-metric { display: flex; flex-direction: column; justify-content: space-between; width: 140px; padding: .5rem .75rem; border-radius: 10px; background: #fff; color: var(--pp-primary); }
.pp-metric p { margin: 0; }
.pp-metric-subtitle { font-size: .75rem; color: #555; }
.pp-metric-score { font-size: 1.5rem; }
.pp-metric-base { color: #555; font-size: .9rem; font-weight: normal; }
/* The gauge under it (eps-fe Card/Rating.vue): the 400 px chart is pulled up by 5rem and the sentence by 4rem, as there; the card clips what goes above. */
.pp-rating { margin: 0 0 1rem; padding: 0 1rem; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 0 20px rgba(0, 0, 0, .05); }
.pp-rating-chart { padding: 0 4rem; }
.pp-gauge { display: block; width: 100%; height: 400px; margin-top: -5rem; }
.pp-gauge text { font-family: inherit; }
.pp-gauge-needle { transition: transform 3s cubic-bezier(.215, .61, .355, 1); }
.pp-rating-foot { padding: 0 1.5rem 1.5rem; }
.pp-rating-result { margin-top: -4rem; padding: .5rem 1rem; border-radius: 10px; color: #555; font-size: 1.3rem; font-weight: bold; text-align: center; }
@media (prefers-reduced-motion: reduce) { .pp-gauge-needle { transition: none; } }
@media (max-width: 959px) { .pp-home-grid { display: block; } .pp-home-left { max-width: none; } .pp-info-list li > span { width: 150px; } }
.pp-footer { background: #000; color: #fff; }
.pp-footer-row { display: flex; gap: 8px; max-width: 1440px; min-height: 64px; margin: 0 auto; }
.pp-footer-logo { flex: none; display: flex; align-items: center; padding: .5rem .75rem; background: var(--pp-primary); }
.pp-footer-body { display: flex; flex: 1 1 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: .5rem 1rem .5rem 0; }
.pp-footer-brand { max-width: 330px; font-weight: 700; text-transform: uppercase; }
.pp-footer-links a { display: inline-block; padding: 0 1rem; text-transform: uppercase; }
.pp-footer-links a + a { border-left: 1px solid rgba(255, 255, 255, .35); }
.pp-footer-copy { max-width: 210px; }

/* Forms (eps-fe SurveyRegisterForm and CommitteeLoginForm) */
.pp-form { width: 100%; }
.pp-field { margin: 0 0 1.25rem; }
.pp-field label { display: block; margin: 0 0 .25rem; font-weight: 700; }
.pp-field input { display: block; width: 100%; height: 44px; padding: 0 .75rem; color: inherit; font: inherit; background: #fff; }
.pp-form-outlined .pp-field { display: flex; align-items: center; gap: 1.25rem; }
.pp-form-outlined .pp-field label { flex: none; width: 5.5rem; margin: 0; }
.pp-form-outlined .pp-field input { border: 1px solid #9e9e9e; border-radius: 4px; }
.pp-form-outlined .pp-field input:focus { border-color: var(--pp-primary); outline: 1px solid var(--pp-primary); }
.pp-form-underlined .pp-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pp-form-underlined .pp-field input { padding: 0; border: 0; border-bottom: 1px solid #9e9e9e; border-radius: 0; background: transparent; }
.pp-form-underlined .pp-field input:focus { border-bottom-color: var(--pp-primary); outline: 0; box-shadow: 0 1px 0 var(--pp-primary); }
.pp-forgot { margin: 0 0 1rem; text-align: right; }
.pp-forgot a, .pp-forgot button { padding: 0; border: 0; background: none; color: var(--pp-primary); font: inherit; cursor: pointer; }
.pp-forgot button:hover { text-decoration: underline; }
.pp-form-error { margin: .5rem 0 0; color: var(--pp-error); text-align: center; }
.pp-form-done { margin: .5rem 0 0; color: var(--pp-success); text-align: center; }
.pp-form-actions { padding-top: 1.5rem; text-align: center; }

/* The popup of eps-fe (Popup/Base.vue in a v-dialog): a card of 600 px over a dark veil, the logo and the title over a primary line, tonal buttons (a 12 % veil of their colour). */
.pp-dialog-scrim { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(33, 33, 33, .46); }
.pp-dialog { width: 100%; max-width: 600px; max-height: 100%; overflow: auto; border-radius: 4px; background: #fff; color: #444; box-shadow: 0 11px 15px -7px rgba(0, 0, 0, .2), 0 24px 38px 3px rgba(0, 0, 0, .14), 0 9px 46px 8px rgba(0, 0, 0, .12); }
.pp-dialog-title { display: flex; align-items: center; justify-content: center; margin: .5rem 1rem 0; padding: 0 0 1rem; border-bottom: 1px solid var(--pp-primary); color: var(--pp-primary); font-size: 1.5rem; line-height: 2rem; }
.pp-dialog-title img { width: 60px; margin-right: 10px; }
.pp-dialog-body { padding: 1rem; }
.pp-dialog .pp-field { margin: 0; }
.pp-form-popup .pp-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pp-form-popup .pp-field input { height: 40px; border: 1px solid #9e9e9e; border-radius: 4px; }
.pp-form-popup .pp-field input:focus { border-color: var(--pp-primary); outline: 1px solid var(--pp-primary); }
.pp-form-hint { margin: 1.25rem 0 0; font-size: .875rem; font-style: italic; line-height: 1.25rem; }
.pp-form-hint p { margin: 0 0 .5rem; }
.pp-form-popup .pp-form-actions { display: flex; justify-content: center; gap: .5rem; margin: 1rem 0; padding: .5rem 0 0; }
.pp-btn { min-width: 120px; min-height: 36px; padding: 0 1rem; border: 0; border-radius: 4px; font: inherit; font-size: .875rem; font-weight: 500; letter-spacing: .0893em; text-transform: uppercase; cursor: pointer; }
.pp-btn:disabled { opacity: .5; cursor: default; }
.pp-btn-primary { background: rgba(88, 24, 102, .12); color: var(--pp-primary); }
.pp-btn-error { background: rgba(244, 45, 45, .12); color: var(--pp-error); }

/* Committee login and the pages around it: a white page and a centred card (eps-fe CommitteeLogin.vue) */
.pp-card-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: #fff; font-family: 'Open Sans', sans-serif; }
.pp-card { width: 100%; max-width: 550px; padding: 2.5rem 3rem; border-radius: 15px; box-shadow: 0 4px 20px rgba(0, 0, 0, .1); }
/* eps-fe's CommitteeResetPassForm (the forgotten and the new password) uses `GlobalLogo` at its default size, 100 x 50. */
.pp-card-logo { display: block; width: 100px; height: 50px; max-width: 100%; margin: 0 auto 1.5rem; }
/* The login: eps-fe draws the logo in a 400 x 130 box (`v-img`, contain), and the logo is twice as wide as high, so it shows 260 x 130. */
.pp-card-logo-login { width: 260px; height: 130px; object-fit: contain; }
.pp-card-title { margin: 0 0 1.5rem; color: var(--pp-primary); font-size: 1.4rem; font-weight: 400; text-align: center; }
.pp-card-note { margin: 0; text-align: center; }
.pp-card-note a { color: var(--pp-primary); text-decoration: underline; }

/* Contact login: the video, a translucent bar and a Login tab that opens the form (eps-fe Register.vue) */
.pp-intro { position: relative; min-height: 100vh; overflow: hidden; background: #1b0a20; color: #fff; }
.pp-intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-intro-bar { position: relative; z-index: 2; background: rgba(0, 0, 0, .4); }
.pp-intro-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1440px; margin: 0 auto; padding: .75rem 1rem; }
/* eps-fe draws both logo files at their own size (104 x 52); the white one is the same file made pure white with a filter (its `.icon-white` class). */
.pp-intro-logo-light, .pp-intro-logo-dark { width: 104px; height: 52px; flex: none; }
.pp-intro-logo-light { filter: brightness(0) invert(1); }
.pp-intro-logo-dark { display: none; }
.pp-intro-title { margin: 0 4rem 0 0; font-size: 2.125rem; font-weight: 400; line-height: 1.2; }
.pp-intro-tab { position: absolute; top: 0; right: 0; height: 100%; padding: 0 4rem; border: 0; background: var(--pp-primary); color: #fff; font: inherit; font-size: 1.5rem; cursor: pointer; }
.pp-intro-form { display: none; position: absolute; top: 100%; right: 0; width: 100%; max-width: 400px; padding: 2rem 1.5rem 1rem; background: #fff; color: #444; box-shadow: 0 0 20px rgba(0, 0, 0, .05); }
.pp-intro-form-open { display: block; }
.pp-intro-close { position: absolute; top: 0; right: 0; width: 32px; height: 32px; border: 0; background: transparent; color: var(--pp-error); font-size: 1.25rem; cursor: pointer; }
/* A round button with a tabler icon, as eps-fe's `v-btn variant="tonal" color="white" icon` (a 12 % white veil, a white icon). `.pp-intro-media` is transparent to the layout on a desktop: the video fills the page and the button sits at its top right. */
.pp-intro-media { display: contents; }
.pp-intro-mute { position: absolute; z-index: 3; top: 90px; right: 16px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.pp-intro-mute:hover { background: rgba(255, 255, 255, .2); }
.pp-intro-mute svg { width: 30px; height: 30px; }

@media (max-width: 959px) {
  .pp-header-row { flex-direction: column; text-align: center; }
  .pp-header-title { font-size: 1.6rem; }
  .pp-header-side { width: auto; justify-content: center; }
  .pp-footer-body { justify-content: center; text-align: center; padding: .75rem 1rem; }
  .pp-card { padding: 2rem 1.5rem; }
  .pp-intro { display: flex; flex-direction: column; min-height: 0; background: #fff; color: var(--pp-primary); }
  .pp-intro-bar { display: contents; }
  .pp-intro-bar-row { order: 1; flex-direction: column; text-align: center; padding: 1.5rem 1rem .75rem; background: #fff; }
  .pp-intro-logo-light { display: none; }
  .pp-intro-logo-dark { display: block; }
  .pp-intro-title { margin: 0; font-size: 1.6rem; }
  .pp-intro-tab, .pp-intro-close { display: none; }
  .pp-intro-media { display: block; position: relative; order: 2; }
  .pp-intro-video { display: block; position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .pp-intro-form { order: 3; display: block; position: static; max-width: 600px; margin: 0 auto; padding: 2rem 1.5rem; box-shadow: none; }
  .pp-intro-mute { top: 36px; right: 16px; width: 40px; height: 40px; background: rgba(255, 255, 255, .25); }
  .pp-intro-mute svg { width: 24px; height: 24px; }
}

/* The Contact Information popup (eps-fe Popup/Contact.vue, 1200 px) and the card's Add/Edit button */
.pp-edit-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 0 .5rem; min-height: 36px; border: 0; border-radius: 4px; background: none; color: var(--pp-info); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; }
.pp-edit-btn:hover { background: rgba(68, 150, 243, .08); }
.pp-cd { position: relative; width: min(1200px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.25rem 1.5rem; border-radius: 4px; background: #fff; color: #444; text-align: left; }
.pp-cd-title { margin: 0 0 1rem; color: var(--pp-primary); font-size: 1.5rem; font-weight: 400; }
.pp-cd-row { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #a8a8a9; }
.pp-cd-row:last-of-type { border-bottom-color: transparent; }
.pp-cd-fields { flex: 1 1 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; min-width: 0; }
.pp-cd-side { flex: none; width: 36px; }
.pp-cd-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; }
.pp-cd-span-3 { grid-column: span 3; }
.pp-cd-span-6 { grid-column: span 6; }
.pp-cd-label { font-size: .875rem; }
.pp-cd-required::after { content: ' *'; color: var(--pp-error); }
.pp-cd-field input { width: 100%; height: 40px; padding: 0 .75rem; border: 1px solid rgba(0, 0, 0, .38); border-radius: 4px; background: #fff; color: #444; font: inherit; font-size: .85rem; }
.pp-cd-field input:focus { outline: 0; border-color: var(--pp-primary); box-shadow: 0 0 0 1px var(--pp-primary); }
.pp-cd-phone { display: flex; gap: 8px; }
.pp-cd-phone input { flex: 1 1 0; min-width: 0; }
.pp-cd-code { position: relative; flex: 0 0 45%; width: 45%; min-width: 0; }
.pp-cd-code-btn { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 .5rem 0 .75rem; border: 1px solid rgba(0, 0, 0, .38); border-radius: 4px; background: #fff; color: #444; font: inherit; font-size: .85rem; text-align: left; cursor: pointer; }
.pp-cd-code-btn:focus-visible { outline: 0; border-color: var(--pp-primary); box-shadow: 0 0 0 1px var(--pp-primary); }
.pp-cd-code-btn img, .pp-cd-code-pop li img { flex: none; width: 24px; height: 16px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.pp-cd-code-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-cd-code-pop { position: fixed; z-index: 60; border-radius: 4px; background: #fff; box-shadow: 0 5px 5px -3px rgba(0, 0, 0, .2), 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 2px rgba(0, 0, 0, .12); }
.pp-cd-code-pop .pp-cd-code-search { display: block; width: 100%; height: 40px; padding: 0 .75rem; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .12); border-radius: 4px 4px 0 0; font: inherit; font-size: .85rem; }
.pp-cd-code-pop .pp-cd-code-search:focus { outline: 0; }
.pp-cd-code-pop ul { max-height: 260px; margin: 0; padding: 4px 0; overflow-y: auto; list-style: none; }
.pp-cd-code-pop li { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: .85rem; cursor: pointer; }
.pp-cd-code-pop li:hover { background: rgba(0, 0, 0, .04); }
.pp-cd-code-pop li[aria-selected='true'] { background: rgba(88, 24, 102, .08); }
.pp-cd-code-pop li.pp-cd-code-none { color: #777; cursor: default; }
.pp-cd-invalid input { border-color: var(--pp-error); }
.pp-cd-error { color: var(--pp-error); font-size: .75rem; }
.pp-cd-remove { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-top: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--pp-error); cursor: pointer; }
.pp-cd-remove:hover { background: rgba(244, 45, 45, .08); }
.pp-cd-actions { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 1rem; }
.pp-cd-spacer { flex: none; width: 200px; }
.pp-cd-main { display: flex; flex: 1 1 auto; justify-content: center; gap: .5rem; }
.pp-cd-bold { font-weight: 700; }
.ps-btn.pp-cd-cancel { min-width: 100px; background: rgba(244, 45, 45, .12); color: var(--pp-error); }
.pp-cd-add { display: inline-flex; align-items: center; gap: 4px; flex: none; width: 200px; min-height: 36px; justify-content: center; border: 1px solid currentColor; border-radius: 4px; background: none; color: var(--pp-info); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; }
.pp-cd-add:disabled { opacity: .5; cursor: default; }
@media (max-width: 959px) {
  .pp-cd-span-3, .pp-cd-span-6 { grid-column: span 12; }
  .pp-cd-actions { flex-direction: column; }
  .pp-cd-spacer { display: none; }
}
