/* ============================================================================
   eMIS public look - the sign-in doors (SignIn.aspx), the Ministry & Staff
   sign-in (StaffLogin.aspx) and the home page designs (Index2 / Index3) share
   these tokens and parts, so the public side of the portal looks like the
   portal inside: Roboto, navy and gold, a 4px radius and square chips.

   Prefixed pb- so it never collides with the pages' own classes. Fonts are the
   site's own Roboto files (assets/fonts), the same the shell uses.
   ============================================================================ */
@font-face { font-family: Roboto; src: url(../../../assets/fonts/Roboto-Light.woff2) format("woff2"), url(../../../assets/fonts/Roboto-Light.woff) format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: Roboto; src: url(../../../assets/fonts/Roboto-Regular.woff2) format("woff2"), url(../../../assets/fonts/Roboto-Regular.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Roboto; src: url(../../../assets/fonts/Roboto-Medium.woff2) format("woff2"), url(../../../assets/fonts/Roboto-Medium.woff) format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Roboto; src: url(../../../assets/fonts/Roboto-Bold.woff2) format("woff2"), url(../../../assets/fonts/Roboto-Bold.woff) format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --pb-font: Roboto, "Segoe UI", Arial, sans-serif;
    --pb-navy: #12243D;
    --pb-navy-deep: #0B1828;
    --pb-navy-mid: #1D3A5F;
    --pb-gold: #F0B429;
    --pb-gold-ink: #8A6100;
    --pb-ink: #1E2D50;
    --pb-text: #303E67;
    --pb-muted: #6B7A90;
    --pb-line: #E4E9F2;
    --pb-accent: #0B4EA2;
    --pb-ok: #1E7F4F;
    --pb-warn: #8A6100;
    --pb-err: #C0392B;
    --pb-bg: #F4F6F9;
    --pb-r: 4px;
}

html { -webkit-text-size-adjust: 100%; }
body.pb-body {
    margin: 0;
    min-height: 100vh; display: flex; flex-direction: column;   /* the footer sits at the foot of a short page */
    background: var(--pb-bg);
    color: var(--pb-text);
    font-family: var(--pb-font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.pb-body *, .pb-body *::before, .pb-body *::after { box-sizing: border-box; }
.pb-body > form, .pb-body > main { flex: 1 0 auto; }
.pb-body a { color: var(--pb-accent); text-decoration: none; }
.pb-body a:hover { text-decoration: none; }   /* no underline on hover anywhere on the public pages */
.pb-body h1, .pb-body h2, .pb-body h3, .pb-body h4 { color: var(--pb-ink); margin: 0 0 8px; font-weight: 700; line-height: 1.2; }
.pb-body p { margin: 0 0 12px; }
.pb-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---- top bar: eMIS mark, the state line, a few links ------------------------ */
.pb-top { background: var(--pb-navy); color: #fff; }
.pb-top .pb-wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.pb-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.pb-body .pb-top .pb-brand, .pb-body .pb-top .pb-brand b { color: #fff; }   /* the state line stays white (it is a link) */
.pb-brand:hover { text-decoration: none; }
.pb-brand img { height: 34px; width: auto; display: block; }
.pb-brand .pb-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.pb-brand .pb-brand-text b { font-size: 14px; letter-spacing: .3px; }
.pb-brand .pb-brand-text span { font-size: 12px; color: rgba(255,255,255,.72); }
.pb-top nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pb-top nav a { color: rgba(255,255,255,.86); padding: 8px 12px; border-radius: var(--pb-r); font-size: 14px; font-weight: 500; }
.pb-top nav a:hover { background: var(--pb-navy-mid); color: #fff; text-decoration: none; }
.pb-top nav a.pb-cta { background: var(--pb-gold); color: var(--pb-navy-deep); font-weight: 700; }
.pb-top nav a.pb-cta:hover { background: #F5C65A; }
.pb-rule { height: 3px; background: var(--pb-navy-mid); }   /* the header's foot: plain navy, no gold */

/* ---- the doors --------------------------------------------------------------- */
.pb-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }   /* six doors = two even rows */
.pb-doors.pb-doors-one { grid-template-columns: minmax(0, 520px); }
.pb-doors.pb-doors-fit { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }   /* four or five doors in one row */
@media (max-width: 900px) { .pb-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pb-doors { grid-template-columns: 1fr; } }
.pb-door {
    display: flex; flex-direction: column; gap: 10px;
    background: #fff; border: 1px solid var(--pb-line); border-top: 3px solid var(--pb-navy);
    border-radius: var(--pb-r); padding: 20px 20px 18px; color: var(--pb-text);
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.pb-door:hover { text-decoration: none; box-shadow: 0 10px 28px rgba(18,36,61,.14); transform: translateY(-2px); border-top-color: var(--pb-gold); }
.pb-door .pb-door-ic { width: 44px; height: 44px; border-radius: var(--pb-r); background: #EEF3FA; color: var(--pb-navy); display: flex; align-items: center; justify-content: center; }
.pb-door .pb-door-ic svg { width: 24px; height: 24px; }
.pb-door b { font-size: 17px; color: var(--pb-ink); }
.pb-door span { font-size: 13.5px; color: var(--pb-muted); line-height: 1.45; }
.pb-door .pb-door-go { margin-top: auto; font-weight: 700; color: var(--pb-accent); font-size: 14px; }
.pb-door.pb-door-staff { border-top-color: var(--pb-gold); }
.pb-door.pb-door-staff .pb-door-ic { background: #FFF6DF; color: var(--pb-gold-ink); }
/* the same doors as numbered rows (HomeDoors.Rows - the third home page design) */
.pb-doorrows { display: grid; gap: 6px; }
.pb-doorrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--pb-line); border-radius: var(--pb-r); color: var(--pb-text); background: #fff; }
.pb-doorrow:hover { text-decoration: none; border-color: var(--pb-navy); background: #F9FBFE; }
.pb-doorrow i { font-style: normal; font-weight: 700; font-size: 12px; color: var(--pb-gold-ink); background: #FFF6DF; border-radius: var(--pb-r); width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.pb-doorrow .pb-doorrow-body { display: flex; flex-direction: column; min-width: 0; }
.pb-doorrow .pb-doorrow-body b { font-size: 15px; color: var(--pb-ink); }
.pb-doorrow .pb-doorrow-body span { font-size: 12.5px; color: var(--pb-muted); line-height: 1.4; }
.pb-doorrow em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--pb-accent); white-space: nowrap; }
.pb-doorrow.pb-doorrow-staff { border-left: 3px solid var(--pb-gold); }
.pb-doorrow.pb-doorrow-staff i { background: var(--pb-navy); color: #fff; }
@media (max-width: 480px) { .pb-doorrow { grid-template-columns: 34px minmax(0, 1fr); } .pb-doorrow em { display: none; } }
.pb-minor { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.pb-minor a { color: var(--pb-text); font-weight: 500; }
.pb-minor a b { color: var(--pb-accent); }

/* ---- the sign-in card -------------------------------------------------------- */
.pb-card { background: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-r); padding: 28px 28px 24px; box-shadow: 0 12px 34px rgba(18,36,61,.10); }
.pb-card h1 { font-size: 24px; }
.pb-card .pb-lead { color: var(--pb-muted); font-size: 14px; margin-bottom: 20px; }
.pb-label { display: block; font-size: 13px; font-weight: 700; color: var(--pb-ink); margin: 0 0 6px; }
.pb-input {
    display: block; width: 100%; font: inherit; font-size: 15px; color: var(--pb-ink);
    padding: 11px 12px; border: 1px solid #CBD3E0; border-radius: var(--pb-r); background: #fff; margin-bottom: 14px;
}
.pb-input:focus { outline: none; border-color: var(--pb-accent); box-shadow: 0 0 0 3px rgba(11,78,162,.15); }
.pb-btn {
    display: inline-block; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
    padding: 11px 18px; border-radius: var(--pb-r); border: 1px solid transparent; text-align: center;
}
.pb-btn-primary { background: var(--pb-navy); color: #fff; width: 100%; }
.pb-btn-primary:hover { background: var(--pb-navy-mid); }
.pb-btn-gold { background: var(--pb-gold); color: var(--pb-navy-deep); }
.pb-btn-gold:hover { background: #F5C65A; }
.pb-btn-light { background: #fff; color: var(--pb-ink); border-color: #CBD3E0; }
.pb-btn-light:hover { background: var(--pb-bg); }
.pb-alert { border-radius: var(--pb-r); padding: 10px 12px; font-size: 14px; margin-bottom: 14px; border: 1px solid; }
.pb-alert-warn { background: #FFF6DF; border-color: #F0D28A; color: var(--pb-warn); }
.pb-alert-info { background: #EEF3FA; border-color: #C9D8EE; color: var(--pb-ink); }
.pb-foot-note { font-size: 13px; color: var(--pb-muted); margin-top: 16px; }
.pb-choice { display: grid; gap: 10px; }
.pb-choice a, .pb-choice .pb-choice-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; border: 1px solid var(--pb-line); border-radius: var(--pb-r); background: #fff; color: var(--pb-ink); font: inherit; font-weight: 700; cursor: pointer; text-align: left; width: 100%;
}
.pb-choice a:hover, .pb-choice .pb-choice-btn:hover { border-color: var(--pb-navy); text-decoration: none; background: #F9FBFE; }
.pb-choice small { display: block; font-weight: 400; color: var(--pb-muted); font-size: 13px; }

/* ---- verification cards (HomeStats.StudentCardHtml / StaffCardHtml) ---------- */
.vf-note { border-radius: var(--pb-r); padding: 12px 14px; font-size: 14px; border: 1px solid var(--pb-line); background: #fff; color: var(--pb-text); }
.vf-note.vf-error { border-color: #EBC4BF; background: #FDF3F2; color: var(--pb-err); }
.vf-card { background: #fff; border: 1px solid var(--pb-line); border-left: 4px solid var(--pb-ok); border-radius: var(--pb-r); padding: 16px; }
.vf-card.vf-pending { border-left-color: var(--pb-gold); }
.vf-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.vf-photo { width: 64px; height: 64px; border-radius: var(--pb-r); object-fit: cover; background: #EEF3FA; flex: 0 0 64px; }
.vf-photo-none { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--pb-navy); font-size: 20px; }
.vf-id { display: flex; flex-direction: column; min-width: 0; }
.vf-num { font-family: Consolas, "Courier New", monospace; font-size: 15px; color: var(--pb-ink); font-weight: 700; }
.vf-name { font-size: 17px; font-weight: 700; color: var(--pb-ink); }
.vf-state { font-size: 12.5px; font-weight: 700; color: var(--pb-ok); text-transform: uppercase; letter-spacing: .4px; }
.vf-pending .vf-state { color: var(--pb-gold-ink); }
.vf-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.vf-grid dt { color: var(--pb-muted); font-weight: 500; }
.vf-grid dd { margin: 0; color: var(--pb-ink); }

/* ---- footer ------------------------------------------------------------------- */
.pb-footer { background: var(--pb-navy-deep); color: rgba(255,255,255,.72); font-size: 13px; padding: 26px 0; margin-top: 40px; }
.pb-footer .pb-wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.pb-footer a { color: #fff; }
.pb-footer b { color: #fff; }
.pb-footer .pb-right { margin-left: auto; }

@media (max-width: 640px) {
    .pb-wrap { padding: 0 16px; }
    .pb-top .pb-wrap { min-height: 56px; gap: 10px; }
    .pb-brand img { height: 28px; }
    .pb-brand .pb-brand-text span { display: none; }
    .pb-top nav a { padding: 7px 9px; font-size: 13px; }
    .pb-top nav a.pb-nav-x { display: none; }   /* the in-page links make way on a phone; Sign in and Support stay */
    .pb-card { padding: 22px 18px 18px; }
    .pb-footer .pb-right { margin-left: 0; }
}

/* ======================================================================================
   the inner public pages (Public.master): the contact desk, a new school's registration,
   the lists of approved schools - the same navy, gold and 4px radius as the home page
   ====================================================================================== */
.pb-main { padding: 34px 0 10px; }
.pb-main > .pb-wrap { padding-left: 20px; padding-right: 20px; }
.pb-page-head { margin-bottom: 22px; }
.pb-page-head .pb-kicker { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--pb-gold-ink); margin-bottom: 6px; }
.pb-page-head h1 { font-size: 30px; font-weight: 300; letter-spacing: -.3px; }
.pb-page-head h1 b { font-weight: 700; }
.pb-page-head p { color: var(--pb-muted); font-size: 15px; max-width: 760px; margin: 6px 0 0; }
.pb-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.pb-cols-equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pb-panel { background: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-r); padding: 22px 24px; margin-bottom: 20px; }
.pb-panel h2 { font-size: 18px; margin-bottom: 4px; }
.pb-panel h3 { font-size: 15px; margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--pb-line); }
.pb-panel .pb-lead { color: var(--pb-muted); font-size: 14px; margin-bottom: 16px; }
.pb-panel-navy { background: var(--pb-navy); color: #fff; border-color: var(--pb-navy); }
.pb-panel-navy h2, .pb-panel-navy h3 { color: #fff; border-color: rgba(255,255,255,.2); }
.pb-panel-navy .pb-lead, .pb-panel-navy p { color: rgba(255,255,255,.8); }
.pb-panel-navy a:not(.pb-btn) { color: #fff; text-decoration: underline; }
/* a link drawn as a button keeps the button's own colours, inside a navy panel too ("Save and leave" read white on white) */
a.pb-btn, a.pb-btn:hover { text-decoration: none; }
.pb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.pb-form-grid .pb-span2 { grid-column: 1 / -1; }
.pb-select, .pb-textarea { display: block; width: 100%; font: inherit; font-size: 15px; color: var(--pb-ink); padding: 10px 12px; border: 1px solid #CBD3E0; border-radius: var(--pb-r); background: #fff; margin-bottom: 14px; }
.pb-textarea { min-height: 110px; resize: vertical; }
.pb-select:focus, .pb-textarea:focus { outline: none; border-color: var(--pb-accent); box-shadow: 0 0 0 3px rgba(11,78,162,.15); }
.pb-help { font-size: 12.5px; color: var(--pb-muted); margin: -8px 0 12px; }
.pb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 10px; }
.pb-check input { margin-top: 4px; }
.pb-radios label, .pb-checks label { display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 10px 0; font-size: 14px; cursor: pointer; }
.pb-radios input, .pb-checks input { margin: 0; }
/* ASP.NET renders a list item as <input> then <label>, side by side: a gap between the two */
.pb-radios input + label, .pb-checks input + label { margin-left: 6px; }
/* a radio list one option per row (long options): each button beside its label, the label wrapping beside it */
.pb-radios-v { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 0; align-items: start; margin-bottom: 14px; }
.pb-radios-v input { margin-top: 3px; }
.pb-radios-v label { margin: 0 0 0 8px; }
.pb-radios-v br { display: none; }
@media (max-width: 640px) {
    /* a checkbox list one item per row on a phone, each box beside its label (a pair never splits over two lines) */
    .pb-checks { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 0; align-items: center; margin-bottom: 14px; }
    .pb-checks label { margin: 0 0 0 8px; }
    .pb-checks br { display: none; }
}
.pb-btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
/* forms typed in capitals (the new school registration): what is typed shows in capitals and is saved so; e-mail boxes
   (type=email), numbers and dates are left alone, and a box marked pb-nocaps (a phone-or-e-mail key) too */
.pb-caps input[type=text], .pb-caps textarea { text-transform: uppercase; }
.pb-caps input.pb-nocaps { text-transform: none; }
.pb-caps input::placeholder, .pb-caps textarea::placeholder { text-transform: none; }
.pb-caps .emis-phone input { text-transform: none; }
/* the portal's phone box (emis:PhoneInput - flag, dial code, the number formatted as typed) on the public pages:
   the height, border and spacing of the other boxes */
.pb-body .emis-phone { margin-bottom: 14px; }
.pb-body .emis-phone .selected-option { min-height: 46px; border-color: #CBD3E0; }
.pb-body .emis-phone .selected-option input[type="tel"] { font-size: 15px; color: var(--pb-ink); }
.pb-body .emis-phone .chooser .dial { font-size: 14px; }
.pb-btn-row .pb-btn-primary { width: auto; }
.pb-btn-sm { padding: 7px 12px; font-size: 13px; }
.pb-btn-danger { background: #fff; color: var(--pb-err); border-color: #EBC4BF; }
.pb-btn-danger:hover { background: #FDF3F2; }
/* the wizard's steps */
.pb-steps { display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; flex-wrap: wrap; }
.pb-steps li { flex: 1 1 140px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--pb-line); background: #fff; border-radius: var(--pb-r); font-size: 13px; color: var(--pb-muted); }
.pb-steps li i { font-style: normal; font-weight: 700; width: 26px; height: 26px; border-radius: var(--pb-r); display: inline-flex; align-items: center; justify-content: center; background: var(--pb-bg); color: var(--pb-navy); flex: none; }
.pb-steps li.now { border-color: var(--pb-navy); color: var(--pb-ink); font-weight: 700; }
.pb-steps li.now i { background: var(--pb-navy); color: #fff; }
.pb-steps li.done { color: var(--pb-ok); }
.pb-steps li.done i { background: #E6F4EC; color: var(--pb-ok); }
/* status words (square, never pills) */
.pb-status { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 3px 8px; border-radius: var(--pb-r); background: var(--pb-bg); color: var(--pb-ink); border: 1px solid var(--pb-line); white-space: nowrap; }
.pb-status.ok { background: #E6F4EC; color: var(--pb-ok); border-color: #CDE8D8; }
.pb-status.warn { background: #FFF6DF; color: var(--pb-warn); border-color: #F0D28A; }
.pb-status.bad { background: #FDF3F2; color: var(--pb-err); border-color: #EBC4BF; }
.pb-status.info { background: #EEF3FA; color: var(--pb-accent); border-color: #C9D8EE; }
/* tables */
table.pb-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
table.pb-table th { text-align: left; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--pb-muted); padding: 10px 12px; border-bottom: 2px solid var(--pb-line); background: #FAFBFD; }
table.pb-table td { padding: 10px 12px; border-bottom: 1px solid var(--pb-line); vertical-align: top; }
table.pb-table tr:hover td { background: #FAFBFD; }
table.pb-table td.num, table.pb-table th.num { text-align: right; white-space: nowrap; }
table.pb-table tfoot td { font-weight: 700; background: #FFF6DF; }
.pb-table-wrap { overflow-x: auto; border: 1px solid var(--pb-line); border-radius: var(--pb-r); background: #fff; }
.pb-table-wrap table.pb-table th, .pb-table-wrap table.pb-table td { white-space: nowrap; }
.pb-table-wrap table.pb-table td.wrap { white-space: normal; min-width: 220px; }
/* the timeline the applicant and the inspectorate read */
.pb-timeline { list-style: none; margin: 0; padding: 0; }
.pb-timeline li { position: relative; padding: 0 0 18px 30px; }
.pb-timeline li::before { content: ""; position: absolute; left: 7px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--pb-line); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--pb-line); }
.pb-timeline li::after { content: ""; position: absolute; left: 11px; top: 18px; bottom: -2px; width: 2px; background: var(--pb-line); }
.pb-timeline li:last-child::after { display: none; }
.pb-timeline li.done::before { background: var(--pb-ok); box-shadow: 0 0 0 1px var(--pb-ok); }
.pb-timeline li.now::before { background: var(--pb-gold); box-shadow: 0 0 0 1px var(--pb-gold); }
.pb-timeline li.bad::before { background: var(--pb-err); box-shadow: 0 0 0 1px var(--pb-err); }
.pb-timeline b { display: block; color: var(--pb-ink); font-size: 14px; }
.pb-timeline small { display: block; color: var(--pb-muted); font-size: 12.5px; margin-top: 2px; }
.pb-timeline p { margin: 4px 0 0; font-size: 13.5px; color: var(--pb-text); }
/* key / value facts */
.pb-facts { display: grid; grid-template-columns: max-content 1fr; gap: 7px 16px; margin: 0; font-size: 14px; }
.pb-facts dt { color: var(--pb-muted); font-weight: 500; }
.pb-facts dd { margin: 0; color: var(--pb-ink); min-width: 0; overflow-wrap: anywhere; }
/* the message thread of the contact desk */
.pb-thread { display: flex; flex-direction: column; gap: 12px; }
.pb-msg { border: 1px solid var(--pb-line); border-radius: var(--pb-r); padding: 12px 14px; background: #fff; max-width: 92%; font-size: 14px; white-space: pre-wrap; }
.pb-msg.sender { align-self: flex-end; background: #EEF3FA; border-color: #C9D8EE; }
.pb-msg.school { border-left: 4px solid var(--pb-gold); }
.pb-msg.ministry { border-left: 4px solid var(--pb-navy); }
.pb-msg small { display: block; color: var(--pb-muted); font-size: 12px; margin-bottom: 4px; white-space: normal; }
/* files and media */
.pb-files { list-style: none; margin: 0 0 10px; padding: 0; }
.pb-files li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--pb-line); border-radius: var(--pb-r); margin-bottom: 6px; font-size: 13.5px; background: #fff; }
.pb-files li i { font-style: normal; font-size: 11px; font-weight: 700; background: var(--pb-bg); color: var(--pb-navy); padding: 3px 7px; border-radius: var(--pb-r); flex: none; }
.pb-files li .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pb-files li small { color: var(--pb-muted); }
.pb-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pb-media a { display: block; border: 1px solid var(--pb-line); border-radius: var(--pb-r); overflow: hidden; background: #fff; }
.pb-media img { width: 100%; height: 110px; object-fit: cover; display: block; }
.pb-media span { display: block; font-size: 12px; padding: 6px 8px; color: var(--pb-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the WhatsApp float of the inner pages */
.pb-wa { position: fixed; right: 18px; bottom: 18px; z-index: 50; background: #1E7F4F; color: #fff !important; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: var(--pb-r); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.pb-wa:hover { background: #176A41; text-decoration: none; }
/* the floating WhatsApp button must not cover the footer's build stamp */
.pb-has-wa .pb-footer .pb-wrap { padding-right: 190px; }
@media (max-width: 640px) { .pb-has-wa .pb-footer { padding-bottom: 64px; } .pb-has-wa .pb-footer .pb-wrap { padding-right: 16px; } }
/* on a phone the WhatsApp button is smaller, so it covers less of a form */
@media (max-width: 640px) { .pb-wa { right: 10px; bottom: 10px; padding: 7px 10px; font-size: 12.5px; } }
.pb-score { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 700; color: var(--pb-ink); }
.pb-score b { font-size: 22px; }
.pb-score small { color: var(--pb-muted); font-weight: 500; }
.pb-bar { height: 8px; background: var(--pb-bg); border-radius: 2px; overflow: hidden; }
.pb-bar i { display: block; height: 100%; background: var(--pb-navy); }
.pb-bar.ok i { background: var(--pb-ok); } .pb-bar.warn i { background: var(--pb-gold); } .pb-bar.bad i { background: var(--pb-err); }
.pb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.pb-tile { background: #fff; border: 1px solid var(--pb-line); border-top: 3px solid var(--pb-navy); border-radius: var(--pb-r); padding: 12px 14px; }
.pb-tile b { display: block; font-size: 24px; color: var(--pb-ink); line-height: 1.1; }
.pb-tile span { font-size: 12.5px; color: var(--pb-muted); }
.pb-tile.gold { border-top-color: var(--pb-gold); } .pb-tile.ok { border-top-color: var(--pb-ok); } .pb-tile.bad { border-top-color: var(--pb-err); }
.pb-question { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--pb-line); font-size: 14px; }
.pb-question:last-child { border-bottom: 0; }
.pb-question .pb-radios label { margin: 0 12px 0 6px; }
.pb-question small { display: block; color: var(--pb-muted); font-size: 12.5px; }
@media (max-width: 900px) {
    /* minmax(0, 1fr), not 1fr: a long dropdown option or a wide control must not widen the column past the screen */
    .pb-cols, .pb-cols-equal, .pb-cols-3 { grid-template-columns: minmax(0, 1fr); }
    .pb-form-grid { grid-template-columns: minmax(0, 1fr); }
    .pb-page-head h1 { font-size: 25px; }
    .pb-question { grid-template-columns: 1fr; }
}
