/* ==========================================================================================================
   Pasabuy type system — the ONE place text styles are defined (loaded last, after components / mobile).
   Each style is a token set + the classes that use it. New markup can use the .t-* classes directly.

   Page title     Inter 1.75rem/700 navy           .page-head h1, .t-page
   Card title     Inter 1.05rem/600 slate          .t-card, .prof-h, card <h5>s
   Section label  Inter 12px/700 CAPS dark slate   .t-section, .acc-group-h, Settings card titles (a step darker than fields)
   Field label    Inter 12px/600 CAPS grey         .t-label, .form-label, .k, .pb-blocks h6, table heads  (the "question")
   Answer         Poppins 15.2px/500 dark          .t-answer, .v, contact values, meeting points          (the "answer")
   Help text      Inter 13px/400 grey              .t-help, .form-text, .small
   Placeholder    Inter 14px light grey            every input / empty "Select …" dropdown
   Chip           Poppins .75rem/500 dark slate    .tag
   Inputs         Inter (what people type stays the normal font)
   ========================================================================================================== */
:root {
  --pb-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pb-answer-font: "Poppins", "Inter", system-ui, sans-serif;
  --pb-c-title: #0b1f44;     /* page titles */
  --pb-c-card: #334155;      /* card titles, body text */
  --pb-c-label: #64748b;     /* labels, section labels, help */
  --pb-answer: #1e293b;      /* answers, chips */
}

/* Page title */
.page-head h1, .t-page { font-family: var(--pb-font); font-size: 1.75rem; font-weight: 700; color: var(--pb-c-title); }
@media (max-width: 575.98px) { .page-head h1, .t-page { font-size: 1.5rem; } }

/* Card title (About, Accepted items, Contact & social, Reviews, Live Seller / Pabili…) */
.t-card, .prof-h, .prof-side .pb-card > h5, .trip-cols .pb-card > h5, .trip-cols section > h5, .set-page #pabili-role h5, .set-page #agent-role h5 {
  font-family: var(--pb-font) !important; font-size: 1.05rem !important; font-weight: 600 !important; color: var(--pb-c-card) !important; }

/* Section label (LOGIN, NAME, PRIVACY, CONTACT & SOCIAL…) */
.t-section, .acc-group-h, .set-page .set-head h5 {
  font-family: var(--pb-font); font-size: .78rem !important; font-weight: 600 !important; letter-spacing: .06em; text-transform: uppercase; color: var(--pb-c-label) !important; }

/* Field label — the question */
.t-label, .form-label, .pb-blocks h6, .contact-row .d-block.small.text-muted, .trip-accepted .text-muted.mb-1 {
  font-family: var(--pb-font); font-size: .875rem; font-weight: 500; color: var(--pb-c-label); }
.form-label .bi, .pb-blocks h6 .bi { color: var(--pb-c-label) !important; }
.form-label .text-muted { font-weight: 400; }
.k { font-family: var(--pb-font); color: var(--pb-c-label); }  /* compact card labels keep their own size */

/* Answer — Poppins, dark slate, so the eye lands on it */
.t-answer, .v, .contact-row .contact-val, .pb-blocks h6 + .small, .trip-accepted .point-val, .trip-accepted > .small:not(.row) {
  font-family: var(--pb-answer-font) !important; font-weight: 500 !important; color: var(--pb-answer); letter-spacing: 0; }
.k + :not(.k):not(.tag):not(.btn):not(.d-flex) { font-family: var(--pb-answer-font); color: var(--pb-answer); }  /* detail pages: answer right after its label */
.k + .small, .k + .fw-semibold { font-weight: 500 !important; }
.v a, .t-answer a, .contact-row .contact-val a { color: var(--pb-primary); }
.trip-accepted > .small > .text-muted { font-family: var(--pb-font); font-weight: 400; }

/* Help text */
.t-help, .form-text { font-family: var(--pb-font); font-size: .8rem; font-weight: 400; color: var(--pb-c-label); }

/* Chip */
.tag { font-family: var(--pb-answer-font); font-weight: 500; color: var(--pb-answer); }

/* Inputs: what people type stays Inter */
.form-control, .form-select { font-family: var(--pb-font); }

/* Profit Calculator (core/calculator.html) on the same styles */
.calc-step, .calc-results > h2 { font-family: var(--pb-font) !important; font-size: 1.05rem !important; font-weight: 600 !important; color: var(--pb-c-card) !important; }  /* Card title */
.calc-totals dt, .calc-f > span, .calc-item .calc-total > span:first-child, .calc-head, .calc-pcts {
  font-family: var(--pb-font); font-weight: 500; color: var(--pb-c-label); }                                     /* Field label */
.calc-totals dd, .calc-f .calc-conv, .calc-item .calc-total strong, .calc-bar strong {
  font-family: var(--pb-answer-font); color: var(--pb-answer); }                                                  /* Answer (numbers keep their weight) */
/* Results: every row the same — label (grey Inter 500) + answer (Poppins 500); only the lines between them stay */
.calc-totals dt, .calc-totals dt.calc-sub, .calc-totals dt.calc-profit {
  font-family: var(--pb-font) !important; font-size: .9rem !important; font-weight: 500 !important; color: var(--pb-c-label) !important; }
.calc-totals dd, .calc-totals dd.calc-sub, .calc-totals dd.calc-profit {
  font-family: var(--pb-answer-font) !important; font-size: .95rem !important; font-weight: 500 !important; color: var(--pb-answer) !important; }
.calc-totals dd.calc-profit.text-danger { color: #b91c1c !important; }  /* a loss is still red */
.calc-totals .calc-pcts { font-family: var(--pb-font) !important; font-size: .8rem !important; font-weight: 400 !important; color: var(--pb-c-label) !important; }
.calc-bar strong { color: inherit; }
/* Requests to you (padala/_trip_request_card.html): name · what (answer) · fee + weight (answer, stronger) · meet at (help) */
.req-card .req-what { font-size: 1rem; }
.req-card .req-fee { font-size: 1rem; font-weight: 600 !important; }

/* Card titles and small uppercase labels everywhere (forms like Send Padala / Post Padala, detail pages) */
section.pb-card > h5, .pb-card.card-pad > h5:not(.modal-title) {
  font-family: var(--pb-font); font-size: 1.05rem; font-weight: 600; color: var(--pb-c-card); }
.small.text-muted.text-uppercase.fw-semibold { font-family: var(--pb-font); font-size: .78rem !important; font-weight: 600 !important; letter-spacing: .06em; color: var(--pb-c-label) !important; }

/* ==========================================================================================================
   THE SCALE — every text on the site snaps to these (added after a page-by-page audit found 84 combinations).
   sizes: 12px chips/badges/table heads · 13px labels, help, small text · 15.2px body + answers (1rem base .95)
          · 16.8px card titles · 28px page titles (24px phones)
   colours: navy titles · one dark text colour (body, names, answers) · grey labels/help · blue links/actions
   ========================================================================================================== */
:root { --pb-answer: var(--pb-text, #1e2a44); }
body { font-family: var(--pb-font); color: var(--pb-text, #1e2a44); }

/* small text: one size (Bootstrap's .small, <small>, breadcrumbs, help) */
.small, small, .crumb, .form-text, .t-help { font-size: .8125rem !important; }

/* labels (the question): 13px, medium, grey */
.form-label, .k, .t-label, .pb-blocks h6, .calc-totals dt, .calc-f > span, .trip-accepted .text-muted.mb-1 {
  font-family: var(--pb-font) !important; font-size: .75rem !important; font-weight: 600 !important; color: var(--pb-c-label) !important;
  text-transform: uppercase !important; letter-spacing: .05em !important; }  /* field labels in CAPITALS: never mistaken for an answer */
.form-label .text-muted, .t-label .text-muted { font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; }  /* "(optional)" stays lowercase */

/* answers: Poppins, one dark colour (tables too — Bootstrap's table colour was turning them black) */
.t-answer, .v, td.t-answer, .contact-row .contact-val, .calc-totals dd, .calc-f .calc-conv, .calc-item .calc-total strong {
  color: var(--pb-answer) !important; }
.calc-item .calc-total strong { font-weight: 600 !important; font-size: 1rem !important; }

/* names: the one dark text colour, not Bootstrap's near-black */
a.fw-bold.text-dark, .u-name, .req-who .fw-bold, .text-dark.fw-bold { color: var(--pb-text, #1e2a44) !important; }

/* titles: every card / box heading is the card title; side-box h6 a step smaller */
h5:not(.modal-title):not(.offcanvas-title), .h5 { font-family: var(--pb-font) !important; font-size: 1.05rem !important; font-weight: 600 !important; color: var(--pb-c-card) !important; }
h6:not(.offcanvas-title):not(.dropdown-header), .h6 { font-family: var(--pb-font) !important; font-size: .95rem !important; font-weight: 600 !important; color: var(--pb-c-card) !important; }
.page-head h1, h1 { color: var(--pb-c-title); }

/* section labels + table heads: 12px uppercase grey */
.t-section, .acc-group-h, .set-page .set-head h5, .small.text-muted.text-uppercase.fw-semibold, .mylist-divider td {
  font-size: .75rem !important; font-weight: 700 !important; letter-spacing: .07em !important; text-transform: uppercase !important; color: var(--pb-c-card) !important; }  /* sections: darker + bolder than field labels */
.table-clean thead th { font-size: .75rem !important; font-weight: 600 !important; letter-spacing: .05em !important; text-transform: uppercase !important; color: var(--pb-c-label) !important; }
/* the few older, more specific rules the scale has to beat */
.pb-blocks h6:not(.offcanvas-title):not(.dropdown-header), .info-type .k, .trip-stats .k, .meta-grid .k, .mt-detail .k, .prof-stats .k {
  font-size: .75rem !important; font-weight: 600 !important; color: var(--pb-c-label) !important; text-transform: uppercase !important; letter-spacing: .05em !important; }
.trip-stats .fs-5, .trip-stats .fw-bold, .info-type .fs-5 { font-size: 1rem !important; }
.text-dark { color: var(--pb-text, #1e2a44) !important; }
.calc-f .calc-conv { font-weight: 500 !important; font-size: .875rem !important; }
.notif-item .d-block, .notif-row .d-block { font-size: .8125rem; }

/* Placeholders everywhere: lighter and a bit smaller, so an empty box never looks filled in.
   Dropdowns still on their empty "Select …" option look the same. */
.form-control::placeholder { color: #a7b0be; opacity: 1; font-size: .875rem; }
.form-select:has(option:checked[value=""]) { color: #a7b0be; font-size: .875rem; }
.form-select option { color: var(--pb-text, #1e2a44); }

/* ONE answer size everywhere (15.2px) — a .small wrapper around it can't shrink it. Labels are 13px, help 13px (above). */
.t-answer, .v, td.t-answer, .contact-row .contact-val, .pb-blocks h6 + .small, .trip-accepted .point-val, .trip-accepted > .small:not(.row),
.mylist-plain dd, .calc-totals dd, .req-card .req-what, .req-card .req-fee {
  font-size: .95rem !important; }
.info-type .fs-5, .info-type .pd-stats .row > div > div:nth-child(2), .trip-stats > div > div:nth-child(2),
.calc-f .calc-conv, .calc-item .calc-total strong { font-size: .95rem !important; }
.calc-totals dt, .calc-totals dt.calc-sub, .calc-totals dt.calc-profit { font-size: .75rem !important; }
/* the footer keeps its own (white) headings — the global h6 rule is for the page body */
.pb-footer h6:not(.x) { color: #fff !important; font-size: 1rem !important; }

/* the trip at the top of Send Padala: label 12px caps · route at card-title size · date as 13px help — one even step down each line */
.trip-mini { font-size: .95rem; font-weight: 600; color: var(--pb-text, #1e2a44); }
.trip-mini .route .arrow { color: var(--pb-c-label); }


/* trip page: "Not accepted" sits last and quiet — help text, its link grey too */
.trip-not-accepted, .trip-not-accepted a { color: var(--pb-c-label) !important; font-family: var(--pb-font) !important; font-weight: 400 !important; }
.trip-not-accepted a { text-decoration: underline; text-underline-offset: 2px; }

/* TRIAL (Send Padala form, .req-stars): a red * after the label of every required field — read from the field's own
   `required` attribute, so it always matches what the form really needs */
.req-stars div:has(> [required]) > .form-label::after,
.req-stars div:has(> .input-group > [required]) > .form-label::after,
.req-stars div:has(> [required]) > label.form-label::after,
.req-stars #feeFields:has([required]) .fee-title::after { content: " *"; color: #dc3545; font-weight: 700; }
.req-stars section:has(input[type=checkbox][required]) > h5::after { content: " *"; color: #dc3545; font-weight: 700; }  /* e.g. Declarations: every tick is needed */

.pkg-sum { font-weight: 600 !important; }  /* Padala page: fee · weight · size · category in one line */
