/* Dhandha Bazar — visual identity layered on Bootstrap 5.3 (local assets only). */
:root {
  --cc-navy: #0f2a55;
  --cc-navy-2: #16396f;
  --cc-blue: #1f5eb8;       /* 6.0:1 on white */
  --cc-teal: #0e7c6b;       /* 5.2:1 on white */
  --cc-amber: #fbbf24;      /* accent; dark text on it is 10:1 */
  --cc-ink: #1b2536;
  --cc-muted: #56627a;      /* 5.9:1 on white */
  --cc-surface: #f5f7fb;
  --cc-border: #dde3ee;
  --cc-radius: .75rem;
  --cc-focus: #f59e0b;
  --color-primary: var(--cc-blue);
  --bs-primary: var(--cc-blue);
  --bs-primary-rgb: 31, 94, 184;
  --bs-link-color: var(--cc-blue);
  --bs-link-color-rgb: 31, 94, 184;
  --bs-link-hover-color: #174a92;
  --bs-body-color: var(--cc-ink);
  --bs-secondary-color: var(--cc-muted);
  --bs-border-radius: .5rem;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

body { background: var(--cc-surface); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
main:focus { outline: none; }
.text-muted, .text-body-secondary { color: var(--cc-muted) !important; }

/* Default paragraph = Bootstrap "text-muted mb-4": muted text, 1.5rem below.
   The last paragraph in a box adds no extra space, so cards and panels don't end with a gap. */
p { color: var(--cc-muted); margin-bottom: 1.5rem; }
p:last-child { margin-bottom: 0; }
/* One paragraph style on every page: same size and line height everywhere (also inside smaller
   areas such as cards and the footer). Headings, labels and badges keep their own sizes. */
p { font-size: 1rem; line-height: 1.65; }
/* Lists and description values in page content read like paragraphs: same size and line height.
   Inline meta lists, navigation and pagination keep their own sizes. */
main li, main dd, .modal li, .modal dd { line-height: 1.65; }
main ul:not(.list-inline):not(.nav):not(.breadcrumb):not(.pagination) > li, main ol > li, main dd, .modal li, .modal dd { font-size: 1rem; }
/* Every paragraph uses .mb-0, so pages look the same everywhere; the element AFTER a paragraph
   supplies the gap instead. Low specificity on purpose: Bootstrap spacing utilities (mt-*, mt-auto)
   and component margins (.row, .form-check …) still win. */
p + * { margin-top: 1rem; }
.prose p + p, .prose p + ul, .prose p + ol { margin-top: .75rem; }
.prose p + h2, .prose p + h3, .prose ul + h2, .prose ul + h3, .prose ol + h2, .prose ol + h3 { margin-top: 1.75rem; }
/* keep the container's colour where it sets one: dark panels, alerts, callouts, footer, toasts */
.hero p, .auth-visual p, .site-footer p, .alert p, .callout p, .toast p, .cta-band p, [class*="text-bg-"] p, .text-white p { color: inherit; }

/* Visible, consistent keyboard focus */
:focus-visible, .btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible, .form-check-input:focus-visible, .nav-link:focus-visible {
  outline: 3px solid var(--cc-focus) !important;
  outline-offset: 2px;
  box-shadow: none;
}
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; color: var(--cc-navy); padding: .5rem 1rem; border-radius: .5rem; font-weight: 600; }

.btn-primary { --bs-btn-bg: var(--cc-blue); --bs-btn-border-color: var(--cc-blue); --bs-btn-hover-bg: #174a92; --bs-btn-hover-border-color: #174a92; --bs-btn-active-bg: #123c78; --bs-btn-disabled-bg: #6f8fc2; --bs-btn-disabled-border-color: #6f8fc2; }
.btn-outline-primary { --bs-btn-color: var(--cc-blue); --bs-btn-border-color: var(--cc-blue); --bs-btn-hover-bg: var(--cc-blue); --bs-btn-hover-border-color: var(--cc-blue); --bs-btn-active-bg: #174a92; }
.btn-accent { --bs-btn-color: #1b2536; --bs-btn-bg: var(--cc-amber); --bs-btn-border-color: var(--cc-amber); --bs-btn-hover-bg: #f59e0b; --bs-btn-hover-border-color: #f59e0b; --bs-btn-hover-color: #1b2536; --bs-btn-active-bg: #f59e0b; --bs-btn-active-border-color: #f59e0b; --bs-btn-active-color: #1b2536; --bs-btn-disabled-bg: #fcd34d; --bs-btn-disabled-border-color: #fcd34d; --bs-btn-disabled-color: #1b2536; font-weight: 600; }

/* Header */
.site-header { background: var(--cc-navy); border-bottom: 2px solid var(--cc-amber); }
.site-header .navbar-brand { color: #fff; font-weight: 700; letter-spacing: .01em; display: flex; align-items: center; gap: .5rem; }
.site-header .navbar-brand img { width: 34px; height: 34px; }
.site-header .nav-link { color: #d6e0f0; font-weight: 500; border-radius: .5rem; padding-inline: .75rem !important; }
.site-header .nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-header .nav-link.active, .site-header .nav-link[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); }
.site-header .nav-link.show, .site-header .nav-link.dropdown-toggle:focus { color: #fff; background: rgba(255,255,255,.14); }
.site-header .navbar-toggler { border-color: rgba(255,255,255,.4); }
.site-header .navbar-toggler-icon { filter: invert(1); }

/* Hero & sections */
.hero { background: linear-gradient(135deg, var(--cc-navy) 0%, var(--cc-navy-2) 60%, #1b5a8c 100%); color: #fff; }
.hero .lead { color: #d6e0f0; }
.hero-badge { display: inline-flex; gap: .4rem; align-items: center; background: rgba(94,234,212,.15); color: #99f6e4; border: 1px solid rgba(94,234,212,.35); padding: .25rem .75rem; border-radius: 999px; font-size: .875rem; }
.section-title { font-weight: 700; color: var(--cc-navy); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--cc-teal); }

.card { border: 1px solid var(--cc-border); border-top: 3px solid var(--color-primary); border-radius: var(--cc-radius); box-shadow: 0 1px 2px rgba(15,42,85,.04); }
.card-hover { transition: box-shadow .15s ease, transform .15s ease; }
.card-hover:hover { box-shadow: 0 8px 24px rgba(15,42,85,.10); transform: translateY(-2px); }
.card-hover .stretched-link:focus-visible::after { outline: 3px solid var(--cc-focus); outline-offset: 2px; border-radius: var(--cc-radius); }
.feature-icon { width: 3rem; height: 3rem; display: inline-grid; place-items: center; border-radius: .75rem; background: #e8f0fc; color: var(--cc-blue); font-size: 1.4rem; }
.feature-icon.teal { background: #e3f5f1; color: var(--cc-teal); }
.feature-icon.amber { background: #fff4d6; color: #92580a; }

.meta-list { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--cc-muted); font-size: .925rem; list-style: none; padding: 0; margin: 0; }
.prose { max-width: 72ch; }
.prose p { margin-bottom: 1rem; line-height: 1.65; }
.badge-soft { background: #eef2f8; color: #334155; font-weight: 600; }
.badge-state-draft { background: #eef2f8; color: #334155; }
.badge-state-pending { background: #fff4d6; color: #7a4a06; }
.badge-main { background: var(--cc-amber); color: #1b2536; }
.badge-state-approved { background: #dcf5ec; color: #0b5d4f; }
.badge-state-rejected { background: #fde2e2; color: #8f1d1d; }
.badge-state-archived, .badge-state-closed { background: #e9ecef; color: #495057; }
.badge-state-active { background: #dcf5ec; color: #0b5d4f; }
.badge-state-suspended { background: #fde2e2; color: #8f1d1d; }
.badge-state-new { background: #e8f0fc; color: #174a92; }
.badge-state-read, .badge-state-contacted { background: #eef2f8; color: #334155; }
.badge-state-replied, .badge-state-converted { background: #dcf5ec; color: #0b5d4f; }

/* Disclaimer callout */
.callout { border-left: 4px solid var(--cc-teal); background: #eefaf7; padding: .9rem 1rem; border-radius: .5rem; }
.callout-warning { border-left-color: #d97706; background: #fff8eb; }

/* Forms */
.form-label { font-weight: 600; }
.required::after { content: " *"; color: #b42318; }
.form-text { color: var(--cc-muted); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Loading / empty states */
.state-box { text-align: center; padding: 2.5rem 1rem; color: var(--cc-muted); }
.state-box .bi { font-size: 2rem; display: block; margin-bottom: .5rem; }
.skeleton { background: linear-gradient(90deg, #e9eef6 25%, #f4f7fb 37%, #e9eef6 63%); background-size: 400% 100%; animation: sk 1.2s ease infinite; border-radius: .5rem; min-height: 1rem; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .card-hover, .card-hover:hover { transition: none; transform: none; } }

/* Admin */
.admin-sidebar .nav-link { color: var(--cc-ink); border-radius: .5rem; }
.admin-sidebar .nav-link.active { background: #e8f0fc; color: var(--cc-blue); font-weight: 600; }
.admin-sidebar .nav-link:hover { background: #eef2f8; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--cc-navy); }
.table > :not(caption) > * > * { vertical-align: middle; }
.text-prewrap { white-space: pre-wrap; word-break: break-word; }


@media (max-width: 575.98px) {
  .hero h1 { font-size: 1.9rem; }
}

/* Accessible secondary outline buttons (Bootstrap's #6c757d is only ~4.4:1 on our light surface) */
.btn-outline-secondary { --bs-btn-color: #4a5568; --bs-btn-border-color: #8a94a6; --bs-btn-hover-bg: #4a5568; --bs-btn-hover-border-color: #4a5568; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #3b4452; --bs-btn-active-border-color: #3b4452; --bs-btn-disabled-color: #6b7280; }

/* ---------------------------------------------------------------- sign-in / register: 60/40 split */
.auth-form-wrap { width: 100%; margin: 0 auto; padding: 2.5rem 1.25rem 2rem; }
.auth-mini-footer { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--cc-border); font-size: .85rem; }
.auth-visual { background: radial-gradient(120% 90% at 10% 0%, #1b5a8c 0%, var(--cc-navy-2) 45%, var(--cc-navy) 100%); color: #fff; align-items: center; justify-content: center; overflow: hidden; }
.auth-visual-inner { width: 100%; max-width: 620px; padding: 2.5rem 3rem; }
.auth-illustration { display: block; width: 100%; max-width: 560px; max-height: 46vh; height: auto; object-fit: contain; }
.auth-visual .lead { color: #d6e0f0; }
.auth-points li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; color: #e6edf8; }
.auth-points .bi { color: #5eead4; font-size: 1.15rem; line-height: 1.3; }

@media (min-width: 992px) {
  /* Fixed-height page: only the form column scrolls. */
  body.auth-page { height: 100vh; min-height: 0; overflow: hidden; }
  body.auth-page > main { flex: 1 1 auto; min-height: 0; display: flex; }
  body.auth-page .site-footer { display: none; }
  .auth-split { display: grid; grid-template-columns: 60% 40%; width: 100%; height: 100%; min-height: 0; }
  .auth-form-col { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-left: 1px solid var(--cc-border); }
  .auth-form-wrap { margin: auto; padding: 3rem 2.75rem 2rem; } /* centred when short, scrolls when tall */
}
@media (min-width: 992px) and (max-height: 700px) {
  .auth-illustration { max-height: 34vh; }
  .auth-visual-inner { padding: 1.5rem 2.5rem; }
  .auth-visual h2 { font-size: 1.5rem; }
}

/* Navigation: Categories submenu */
.nav-cat-menu { min-width: 17rem; max-height: 70vh; overflow-y: auto; }

/* Headings that are links keep heading colour */
.link-heading { color: inherit; text-decoration: none; }
.link-heading:hover, .link-heading:focus-visible { color: var(--cc-blue); text-decoration: underline; }

.breadcrumb { --bs-breadcrumb-divider-color: var(--cc-muted); }

/* Combobox (App.combobox) */
.combo { position: relative; }
.combo-list { display: none; position: absolute; z-index: 1050; top: calc(100% + .25rem); left: 0; right: 0; max-height: 20rem; overflow-y: auto; margin: 0; padding: .3rem 0; list-style: none; background: #fff; border: 1px solid var(--cc-border); border-radius: .5rem; box-shadow: 0 12px 28px rgba(15,42,85,.14); }
.combo-list.show { display: block; }
.combo-option { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem .85rem; cursor: pointer; }
.combo-option:hover, .combo-option.active { background: #e8f0fb; }
.combo-option.active { box-shadow: inset 3px 0 0 var(--cc-blue); }
.combo-option[aria-disabled="true"] { color: var(--cc-muted); cursor: not-allowed; background: transparent; }
.combo-hint { flex-shrink: 0; font-size: .8rem; color: var(--cc-muted); }
.combo-group { padding: .55rem .85rem .2rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cc-muted); }
.combo-empty { padding: .5rem .85rem; color: var(--cc-muted); }

/* Sign-in / registration form card */
.auth-card { box-shadow: 0 6px 24px rgba(15,42,85,.08); }
/* Combobox inputs look like a select: chevron on the right, flipped while the list is open */
.combo > .form-control,
.combo > .form-control.is-invalid {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2356627a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 16px 12px;
  cursor: pointer;
}
.combo > .form-control[aria-expanded="true"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231f5eb8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 11 6-6 6 6'/%3e%3c/svg%3e");
  cursor: text;
}

/* Captcha field: keep clear space before the submit button */
.captcha-field { margin-bottom: 1.25rem; }
.captcha-question { font-weight: 700; color: var(--cc-ink); white-space: nowrap; }
.captcha-input { max-width: 14rem; }
/* question and answer box always on one line; in narrow forms the question text wraps instead */
.captcha-row { display: flex; align-items: flex-start; gap: 1rem; }
.captcha-row > label { flex: 0 1 auto; min-width: 0; padding-top: .45rem; }
.captcha-row .captcha-input { flex: 0 0 9.5rem; max-width: none; }
.captcha-field:has(.is-invalid) > .invalid-feedback { display: block; } /* full-width message under the row */

/* Standard button size (Bootstrap has sm/lg only; .btn-md makes the medium size explicit) */
.btn-md { --bs-btn-padding-y: .4rem; --bs-btn-padding-x: .9rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: var(--bs-border-radius); }

/* Admin sidebar: items awaiting approval */
.admin-sidebar .nav-link { display: flex; align-items: center; gap: .35rem; }
.sidebar-count { margin-left: auto; background: #b42318; color: #fff; font-size: .72rem; min-width: 1.5rem; }

/* Panels that stay in view while the page scrolls (inquiry and requirement forms, admin sidebar).
   Desktop only: on narrow screens the columns stack, so normal flow is better.
   A panel taller than the window scrolls inside itself instead of being cut off. */
@media (min-width: 992px) {
  .sticky-panel { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; overscroll-behavior: contain; }
}

/* Email sign-in code */
.otp-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; max-width: 16rem; }
.otp-switch .form-check-input { width: 2.75em; height: 1.4em; cursor: pointer; }
.otp-switch .form-check-label { padding-left: .5rem; padding-top: .1rem; }

/* Header: menu labels never wrap (the hamburger menu takes over below 1200px) */
.site-header .nav-link, .site-header .btn, .site-header .navbar-brand { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .site-header .nav-link { padding-inline: .45rem !important; } }

/* ---------------------------------------------------------------- marketplace */
.text-accent { color: var(--cc-amber); }
.min-w-0 { min-width: 0; }
.section-lead { max-width: 46rem; }
.hero-points { color: #d6e0f0; }
.hero-points .bi { color: #5eead4; margin-right: .3rem; }
.hero-form-card { border-top-color: var(--cc-amber); box-shadow: 0 16px 40px rgba(6,20,45,.35); }
.hero-form-card h2 { color: var(--cc-navy); }

/* Header search */
.header-search .form-control { min-width: 14rem; border-color: rgba(255,255,255,.35); }
.header-search .btn-accent { --bs-btn-padding-x: .7rem; }
.header-search .input-group { flex-wrap: nowrap; } /* the search button never drops below the box */
@media (min-width: 1200px) and (max-width: 1399.98px) { .header-search .form-control { min-width: 0; width: 9rem; } }

/* Category tiles, product and supplier cards */
.category-tile .card-body { color: inherit; }
.category-tile img, .cat-icon { flex-shrink: 0; width: 44px; height: 44px; padding: .35rem; border-radius: .65rem; background: var(--cc-surface); border: 1px solid var(--cc-border); }
.category-tile img[width="56"] { width: 56px; height: 56px; }
/* Bootstrap Icon chosen for a category: same tile as the illustrations */
.cat-bi { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: .65rem;
  background: var(--cc-surface); border: 1px solid var(--cc-border); color: var(--cc-blue); font-size: 1.35rem; line-height: 1; }
.cat-bi-56 { width: 56px; height: 56px; font-size: 1.7rem; }
.cat-bi-72 { width: 72px; height: 72px; font-size: 2.2rem; border-radius: .85rem; }
.cat-bi.cat-icon, .cat-bi.cat-icon-lg { padding: 0; }
/* Admin › Categories icon picker */
.icon-pick-btn { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: start; }
.icon-pick-btn .cat-bi, .icon-pick-btn img { width: 32px; height: 32px; font-size: 1.05rem; }
.icon-grid { max-height: 18rem; overflow-y: auto; padding: .15rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(3.25rem, 1fr)); gap: .4rem; }
.icon-group-title { grid-column: 1 / -1; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--cc-muted); margin-top: .25rem; }
.icon-option { display: flex; align-items: center; justify-content: center; padding: .25rem; border: 2px solid transparent; border-radius: .75rem; background: none; }
.icon-option:hover { border-color: var(--cc-border); }
.icon-option.active { border-color: var(--cc-blue); background: #e0ecfb; }
.cat-icon-lg { width: 72px; height: 72px; padding: .5rem; border-radius: .85rem; background: var(--cc-surface); border: 1px solid var(--cc-border); }
.product-card h3 a, .supplier-card h3 a { color: var(--cc-ink); }
.product-card h3 a:hover, .supplier-card h3 a:hover { color: var(--cc-blue); }
.price { font-weight: 700; color: var(--cc-teal); }
.badge-verified { background: #dcf5ec; color: #0b5d4f; font-weight: 600; }
.nav-tabs { --bs-nav-tabs-link-active-bg: #fff; --bs-nav-tabs-link-active-color: var(--cc-navy); }
.nav-tabs .nav-link { font-weight: 600; color: var(--cc-muted); }
.nav-tabs .nav-link:hover { color: var(--cc-navy); }
/* the area under a tab bar: same white as the active tab, so tab and panel read as one */
.tab-panel-box { background: #fff; border: 1px solid var(--bs-border-color); border-top: 0; border-radius: 0 0 .75rem .75rem; padding: 1.25rem; }
.badge-import { background: #e0ecfb; color: #174a92; font-weight: 600; }
.supplier-initials { flex-shrink: 0; width: 3rem; height: 3rem; display: inline-grid; place-items: center; border-radius: .75rem; background: var(--cc-navy); color: var(--cc-amber); font-weight: 800; letter-spacing: .02em; }
.supplier-initials.lg { width: 4rem; height: 4rem; font-size: 1.35rem; }
.requirement-card { border-top-color: var(--cc-teal); }
.other-cats li { padding: .2rem 0; }

/* Facts list (supplier page, moderation detail) */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; }
.facts dt { font-weight: 600; color: var(--cc-muted); }
.facts dd { margin: 0; word-break: break-word; }

/* How it works */
.step-card { background: var(--cc-surface); border: 1px solid var(--cc-border); border-radius: var(--cc-radius); padding: 1.5rem; }
.step-number { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: .75rem; border-radius: 50%; background: var(--cc-blue); color: #fff; font-weight: 800; }

/* Numbers band and call-to-action */
.stats-band { background: var(--cc-navy-2); color: #d6e0f0; }
.stat-big { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.cta-band { background: linear-gradient(135deg, var(--cc-navy) 0%, var(--cc-navy-2) 100%); color: #fff; border-radius: var(--cc-radius); border-left: 0; }
.cta-band h2 { color: #fff; }
.search-404 { max-width: 32rem; }

/* Product photos */
.product-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cc-surface); border-bottom: 1px solid var(--cc-border); }
.product-gallery { overflow: hidden; margin: 0; }
.product-gallery-main { display: block; width: 100%; height: auto; max-height: 32rem; object-fit: contain; background: #fff; }
.product-gallery-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem; border-top: 1px solid var(--cc-border); }
.product-gallery-thumbs img { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: .4rem; border: 1px solid var(--cc-border); }
.seller-photos { display: flex; flex-wrap: wrap; gap: .75rem; }
.seller-photo { position: relative; width: 132px; }
.seller-photo img { display: block; width: 132px; height: 99px; object-fit: cover; border-radius: .5rem; border: 1px solid var(--cc-border); background: var(--cc-surface); }
.seller-photo.is-main img { outline: 3px solid var(--cc-amber); outline-offset: 1px; }
.seller-photo .btn { --bs-btn-padding-y: .1rem; --bs-btn-padding-x: .4rem; --bs-btn-font-size: .8rem; }
.row-thumb { width: 48px; height: 36px; object-fit: cover; border-radius: .3rem; border: 1px solid var(--cc-border); }

/* ---------------------------------------------------------------- footer (crm-certs.com layout, gradient background) */
.site-footer {
  /* as on linkedprof.com: deep navy with a soft brand-blue glow, a faint teal glow, and a blue→teal line on top */
  color: rgba(255,255,255,.72); font-size: .925rem;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(31,94,184,.42) 0%, rgba(31,94,184,0) 62%),
    radial-gradient(55% 90% at 0% 100%, rgba(94,234,212,.10) 0%, rgba(94,234,212,0) 60%),
    linear-gradient(160deg, #0b1a33 0%, var(--cc-navy) 58%, #11305f 100%);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--cc-blue) 0%, #3b82c4 50%, #5eead4 100%) 1;
}
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.footer-top { padding: 4.5rem 0 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand-name { display: block; color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer .footer-description { max-width: 22rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { width: 38px; height: 38px; border-radius: .5rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); color: #fff; font-size: 1.05rem; }
.footer-social a:hover, .footer-social a:focus-visible { background: var(--cc-blue); border-color: var(--cc-blue); color: #fff; text-decoration: none; }
.footer-heading { color: #fff; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.25rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .75rem; }
.footer-contact-item { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; overflow-wrap: anywhere; }
.footer-contact-item .bi { color: #5eead4; flex-shrink: 0; margin-top: .15rem; }
/* "Show email address" / "Show phone number" (the details appear after the security question) */
.footer-reveal, .site-footer .contact-revealed { display: inline-flex; gap: .75rem; align-items: flex-start; color: rgba(255,255,255,.82); text-decoration: none; text-align: start; font-size: inherit; }
.footer-reveal:hover, .footer-reveal:focus-visible, .site-footer .contact-revealed:hover { color: #fff; text-decoration: underline; }
.contact-revealed { overflow-wrap: anywhere; }
.footer-bottom { padding: 1.25rem 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-start; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.62); }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom > div a { text-decoration: underline; }
.footer-disclaimer { margin-top: .35rem; max-width: 46rem; color: rgba(255,255,255,.62); line-height: 1.6; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
@media (max-width: 767.98px) {
  .footer-top { padding: 3rem 0 2rem; }
  .footer-bottom { flex-direction: column; }
}


/* Home hero: quote card (the form itself opens in #quoteModal) */
.quote-points li { display: flex; gap: .5rem; align-items: center; margin-bottom: .45rem; color: var(--cc-ink); }
.quote-points .bi { color: var(--cc-teal); }

/* Locally hosted marketplace photography; no external image requests. */
.hero-marketplace {
  background: linear-gradient(90deg, rgba(8, 25, 49, .91), rgba(8, 25, 49, .68)), url("../images/marketplace-warehouse.jpg") center 65% / cover no-repeat;
}
@media (min-width: 992px) {
  .auth-visual {
    background: linear-gradient(180deg, rgba(8, 25, 49, .12) 0%, rgba(8, 25, 49, .60) 38%, rgba(8, 25, 49, .97) 100%), url("../images/marketplace-warehouse.jpg") center 65% / cover no-repeat;
    align-items: flex-end;
    overflow-y: auto;
  }
  .auth-visual-inner { max-width: 760px; padding: clamp(2rem, 5vw, 5rem); }
  .auth-visual .lead, .auth-points li { color: #fff; }
}
@media (min-width: 992px) and (max-height: 700px) {
  .auth-visual-inner { padding: 1.5rem 2.5rem; }
}

@media (max-width: 575.98px) {
  .hero-marketplace > .container > .row { --bs-gutter-x: 1.5rem; }
}

/* Page hero (partials/page-hero.php): every page except the home page, same look as buy.html */
.hero-breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.55); }
.hero-breadcrumb a { color: #d6e0f0; }
.hero-breadcrumb a:hover, .hero-breadcrumb a:focus-visible { color: #fff; }
.hero-breadcrumb .breadcrumb-item.active { color: #fff; }
.page-hero a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: .15em; }
.page-hero .form-label { color: #fff; }
.page-hero .badge-verified { vertical-align: .1em; }

/* Rich-text field (assets/js/rich-text.js) and rendered rich text */
.rte-toolbar { margin-bottom: .4rem; }
.rte-toolbar .btn[aria-pressed="true"] { background: var(--cc-navy); border-color: var(--cc-navy); color: #fff; }
.rte-editor, .rte-editor.prose { min-height: 11rem; max-height: 28rem; max-width: none; overflow-y: auto; cursor: text; }
.rte-editor:empty::before { content: "Tell buyers about your business…"; color: var(--cc-muted); }
.rte:has(textarea.is-invalid) .rte-editor { border-color: var(--bs-form-invalid-border-color); }
.rich-text h3 { font-size: 1.15rem; font-weight: 700; color: var(--cc-navy); }
.rich-text h4 { font-size: 1.05rem; font-weight: 700; color: var(--cc-navy); }
.rich-text ul, .rich-text ol { padding-left: 1.4rem; margin-bottom: 0; }
.rich-text > * + * { margin-top: .75rem; }
