/* SOMPO AI — visual identity layered on Bootstrap 5.3 (local assets only).
   Colours, header, cards, buttons and the sign-in/registration layout follow the CRM-CERTS reference. */
: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;
  --cc-ink: #1b2536;
  --cc-muted: #56627a;      /* 5.9:1 on white */
  --cc-surface: #f5f7fb;
  --cc-border: #dde3ee;
  --cc-radius: .75rem;
  --cc-focus: #f59e0b;
  --lp-text-size: 1rem;     /* the ONE paragraph size */
  --lp-text-leading: 1.6;   /* the ONE paragraph line height */
  --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-body-font-size: var(--lp-text-size);
  --bs-body-line-height: var(--lp-text-leading);
  --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; }

/* Shared typography: every paragraph uses the same size and line height, everywhere
   (pages, cards, modals, rich-text posts, alerts). Use headings or <div class="small"> for
   other sizes, never a differently sized <p>. */
p, .prose p, .post-body p, .modal p, .alert p, .card p, .site-footer p, .auth-visual p, .hero p {
  font-size: var(--lp-text-size);
  line-height: var(--lp-text-leading);
}
p { color: var(--cc-muted); margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }
.hero p, .cta-band p, .auth-visual p, .site-footer p, .alert p, .callout p, .toast p, [class*="text-bg-"] p, .text-white p, .post-body p, .msg-bubble 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; font-weight: 600; }
.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; }
.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); }
.btn-success { --bs-btn-bg: #157347; --bs-btn-border-color: #157347; --bs-btn-hover-bg: #125f3b; --bs-btn-hover-border-color: #125f3b; }

/* Header */
.site-header { background: var(--cc-navy); }
.site-header .navbar-brand { color: #fff; font-weight: 700; letter-spacing: .01em; display: flex; align-items: center; gap: .5rem; }
.site-header .navbar-brand img { height: 34px; width: auto; }
.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); }
.site-header .nav-link, .site-header .btn, .site-header .navbar-brand { white-space: nowrap; }
.nav-badge { font-size: .7rem; vertical-align: top; margin-left: .2rem; }
.mode-switch .btn { --bs-btn-padding-y: .2rem; --bs-btn-padding-x: .6rem; --bs-btn-font-size: .85rem; }
.mode-switch .btn-check:checked + .btn { background: #fff; color: var(--cc-navy); border-color: #fff; }
.mode-switch .btn { color: #d6e0f0; border-color: rgba(255,255,255,.4); }

/* Hero & sections */
.hero { background: linear-gradient(135deg, var(--cc-navy) 0%, var(--cc-navy-2) 60%, #1b5a8c 100%); color: #fff; }
.hero-intro { color: #d6e0f0; font-size: var(--lp-text-size); line-height: var(--lp-text-leading); width: 100%; max-width: 100%; }
.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; }
.hero-search { background: #fff; border-radius: var(--cc-radius); padding: 1rem; box-shadow: 0 12px 32px rgba(8,22,48,.28); color: var(--cc-ink); }
.hero-search .form-label { font-weight: 600; font-size: .875rem; color: var(--cc-ink); }
.page-header { background: #fff; border-bottom: 1px solid var(--cc-border); }
.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; }

.listing-logo { width: 56px; height: 56px; object-fit: contain; border-radius: .5rem; background: #fff; border: 1px solid var(--cc-border); }
.listing-logo-lg { width: 96px; height: 96px; }
.logo-placeholder { width: 56px; height: 56px; flex-shrink: 0; border-radius: .5rem; display: inline-grid; place-items: center; background: #e8f0fc; color: var(--cc-blue); font-weight: 700; font-size: 1.25rem; }
.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; }
.prose.prose-full { max-width: none; }
.badge-soft { background: #eef2f8; color: #334155; font-weight: 600; }
.min-w-0 { min-width: 0; }
.text-prewrap { white-space: pre-wrap; word-break: break-word; }

/* Status badges */
.badge-status { font-weight: 600; }
.badge-status-draft, .badge-status-archived, .badge-status-withdrawn, .badge-status-closed { background: #e9ecef; color: #495057; }
.badge-status-published, .badge-status-hired, .badge-status-submitted, .badge-status-active, .badge-status-visible { background: #dcf5ec; color: #0b5d4f; }
.badge-status-reviewing, .badge-status-shortlisted, .badge-status-interviewing, .badge-status-offered, .badge-status-pending, .badge-status-open { background: #e8f0fc; color: #174a92; }
.badge-status-rejected, .badge-status-suspended, .badge-status-hidden, .badge-status-removed, .badge-status-dead, .badge-status-failed { background: #fde2e2; color: #8f1d1d; }

/* Benefit badges (directly below job titles) */
.benefit-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 .5rem; padding: 0; list-style: none; }
.benefit-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid transparent; }
.benefit-badge.is-yes { background: #dcf5ec; color: #0b5d4f; border-color: #a7dcc8; }
.benefit-badge.is-no { background: #f1f3f6; color: #495057; border-color: #d6dbe3; }
.benefit-badge.is-unanswered { background: #fff8eb; color: #7a4a06; border-color: #f3d39a; }
.benefit-panel { border: 1px solid var(--cc-border); border-radius: .65rem; padding: 1rem; background: #fff; height: 100%; }
.benefit-panel h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; display: flex; align-items: center; gap: .4rem; }
.benefit-panel .benefit-state { font-weight: 700; }
.benefit-panel .benefit-state.is-yes { color: #0b5d4f; }
.benefit-panel .benefit-state.is-no { color: #495057; }

/* 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; }
.callout-info { border-left-color: var(--cc-blue); background: #eef4fd; }

/* 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; }
fieldset.benefit-question { border: 1px solid var(--cc-border); border-radius: .65rem; padding: .85rem 1rem 1rem; background: #fbfcfe; }
fieldset.benefit-question legend { font-size: 1rem; font-weight: 700; float: none; width: auto; padding: 0 .35rem; margin-bottom: .25rem; }
.conditional-fields { border-left: 3px solid var(--cc-blue); padding-left: 1rem; margin-top: .75rem; }

/* Tag / chip input (App.tags) */
.tag-input { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: .3rem .45rem; min-height: calc(1.5em + .75rem + 2px); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); background: #fff; cursor: text; }
.tag-input:focus-within { border-color: #86b7fe; box-shadow: 0 0 0 .25rem rgba(31,94,184,.2); }
.tag-input.is-invalid { border-color: var(--bs-form-invalid-border-color); }
.tag-input input { border: 0; outline: 0; flex: 1 1 8rem; min-width: 6rem; padding: .15rem .25rem; background: transparent; }
.tag-chip { display: inline-flex; align-items: center; gap: .25rem; background: #e8f0fc; color: #174a92; border-radius: 999px; padding: .1rem .2rem .1rem .6rem; font-size: .875rem; font-weight: 600; }
.tag-chip button { border: 0; background: transparent; color: inherit; width: 1.5rem; height: 1.5rem; border-radius: 50%; line-height: 1; display: inline-grid; place-items: center; }
.tag-chip button:hover { background: rgba(23,74,146,.12); }

/* ---------------------------------------------------------------- modal forms
   Two columns per row on desktop (col-md-6), one column on small screens; long fields use
   col-12. The body scrolls, the header and footer stay visible, and the action buttons
   are centred in the footer. */
.modal-form .modal-content { border: 0; border-top: 3px solid var(--color-primary); border-radius: var(--cc-radius); }
.modal-form .modal-header { background: #fff; border-bottom: 1px solid var(--cc-border); }
.modal-form .modal-title { font-weight: 700; color: var(--cc-navy); }
.modal-form .modal-body { background: #fff; }
.modal-form .modal-footer { justify-content: center; gap: .5rem; border-top: 1px solid var(--cc-border); background: var(--cc-surface); flex-wrap: wrap; }
.modal-form .modal-footer > * { margin: 0; }
.modal-form .modal-footer .footer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.modal-form .discard-bar { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; padding: .5rem .75rem; border-radius: .5rem; background: #fff8eb; border: 1px solid #f3d39a; color: #7a4a06; font-weight: 600; }
.modal-form .section-heading { font-size: 1rem; font-weight: 700; color: var(--cc-navy); margin: .5rem 0 0; padding-top: .75rem; border-top: 1px solid var(--cc-border); }
.modal-form .row > .section-heading:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 575.98px) {
  .modal-form .modal-footer .btn { flex: 1 1 auto; }
}

/* 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; } }

/* Dashboards */
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--cc-navy); }
.stat-card .stat-label { color: var(--cc-muted); font-size: .9rem; }
.quota-bar { height: .65rem; }
.completeness-bar { height: .6rem; }
.reason-list { list-style: none; padding: 0; margin: .25rem 0 0; }
.reason-list li { display: flex; gap: .4rem; align-items: flex-start; font-size: .925rem; margin-bottom: .2rem; }
.reason-list .bi-check-circle-fill { color: #198754; }
.reason-list .bi-x-circle-fill { color: #b42318; }
.factor-table td, .factor-table th { font-size: .875rem; }

/* Profile sections */
.profile-section .entry { border-top: 1px solid var(--cc-border); padding: .85rem 0; }
.profile-section .entry:first-of-type { border-top: 0; }
.entry-actions { display: flex; flex-wrap: wrap; gap: .35rem; }

/* Admin */
.admin-sidebar .nav-link { color: var(--cc-ink); border-radius: .5rem; display: flex; align-items: center; gap: .35rem; }
.admin-sidebar .nav-link.active { background: #e8f0fc; color: var(--cc-blue); font-weight: 600; }
.admin-sidebar .nav-link:hover { background: #eef2f8; }
.sidebar-count { margin-left: auto; background: #b42318; color: #fff; font-size: .72rem; min-width: 1.5rem; }
.table > :not(caption) > * > * { vertical-align: middle; }

/* Panels that stay in view while the page scrolls (desktop only) */
@media (min-width: 992px) {
  .sticky-panel { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; overscroll-behavior: contain; }
}

/* Job cards: "See details" cue (the card itself is the link) */
.job-card-cta { flex-shrink: 0; pointer-events: none; }
.card-hover:hover .job-card-cta { --bs-btn-bg: #174a92; --bs-btn-border-color: #174a92; }
@media (max-width: 575.98px) { .job-card-cta { width: 100%; } }

/* Feed */
.post-body { color: var(--cc-ink); overflow-wrap: anywhere; }
.post-body ul, .post-body ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.post-body blockquote { border-left: 3px solid var(--cc-border); padding-left: .9rem; color: var(--cc-muted); }
.post-body pre { background: var(--cc-surface); padding: .75rem; border-radius: .5rem; white-space: pre-wrap; }
.post-body h3, .post-body h4 { font-size: 1.1rem; font-weight: 700; margin-top: .75rem; }
.comment { border-top: 1px solid var(--cc-border); padding-top: .75rem; margin-top: .75rem; }
.comment .comment-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--cc-ink); }
.comment-replies { margin-left: 1.25rem; padding-left: .85rem; border-left: 2px solid var(--cc-border); }
.editor-host .ql-toolbar.ql-snow { border-radius: .5rem .5rem 0 0; border-color: var(--bs-border-color); }
.editor-host .ql-container.ql-snow { border-radius: 0 0 .5rem .5rem; border-color: var(--bs-border-color); min-height: 12rem; font-size: 1rem; font-family: inherit; }
.editor-host.is-invalid .ql-container.ql-snow, .editor-host.is-invalid .ql-toolbar.ql-snow { border-color: var(--bs-form-invalid-border-color); }

/* Inbox */
.inbox { min-height: 32rem; }
.conv-list .list-group-item { cursor: pointer; }
.conv-list .list-group-item.active { background: #e8f0fc; color: var(--cc-ink); border-color: var(--cc-border); }
.thread { display: flex; flex-direction: column; height: 32rem; }
.thread-messages { flex: 1 1 auto; overflow-y: auto; padding: 1rem; background: var(--cc-surface); display: flex; flex-direction: column; gap: .5rem; }
.msg { max-width: 78%; }
.msg.mine { align-self: flex-end; text-align: right; }
.msg-bubble { display: inline-block; padding: .5rem .8rem; border-radius: .9rem; background: #fff; border: 1px solid var(--cc-border); white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }
.msg.mine .msg-bubble { background: var(--cc-blue); color: #fff; border-color: var(--cc-blue); }
.msg-meta { font-size: .78rem; color: var(--cc-muted); margin-top: .15rem; }
.composer { border-top: 1px solid var(--cc-border); padding: .75rem; background: #fff; }
@media (max-width: 991.98px) { .thread { height: 26rem; } }

/* Captcha field */
.captcha-question { font-weight: 700; color: var(--cc-ink); white-space: nowrap; }
/* label, answer box and refresh button on one line; the error message below the line */
.captcha-row { display: flex; flex-wrap: nowrap; align-items: center; gap: .75rem; }
.captcha-row > label { flex: 1 1 auto; min-width: 0; } /* on narrow screens the text wraps, the box stays beside it */
.captcha-input { width: auto; flex: 0 0 auto; }
.captcha-input .form-control { width: 4.75rem; flex: 0 0 auto; text-align: center; }
.captcha-input .form-control.is-invalid { background-image: none; padding-right: .75rem; } /* no warning icon in the small box */
.captcha-field:has(.is-invalid) > .invalid-feedback { display: block; }
.captcha-field { margin-bottom: 1rem; }
.otp-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; max-width: 16rem; }

/* ---------------------------------------------------------------- sign-in / register: 60/40 split (as CRM-CERTS) */
.auth-card { box-shadow: 0 6px 24px rgba(15,42,85,.08); }
.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 .auth-lead { color: #d6e0f0; font-size: 1.25rem; font-weight: 300; margin-bottom: 1rem; }
.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) {
  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; }
}
@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; }
}

.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); }
.info-banner { --bs-alert-bg: #e7f1ff; --bs-alert-border-color: #b6d4fe; --bs-alert-color: #0b3a75; width: 100%; }
.cta-band { background: linear-gradient(135deg, var(--cc-navy) 0%, var(--cc-navy-2) 60%, #1b5a8c 100%); color: #fff; }
.cta-band p { color: #d6e0f0; }

/* Footer (as CRM-CERTS: brand, link columns, contact, bottom bar) */
.site-footer {
  /* deep navy with a soft brand-blue glow, and a blue→teal line on top */
  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%, #0f2a55 58%, #11305f 100%);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #1f5eb8 0%, #3b82c4 50%, #5eead4 100%) 1;
  color: rgba(255,255,255,.72); font-size: .925rem;
}
.site-footer a { color: rgba(255,255,255,.72); 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; }
.footer-description { max-width: 22rem; margin-bottom: 1.5rem; }
.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-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,.55); }
.footer-bottom a { color: rgba(255,255,255,.65); }
.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; }
}
@media (max-width: 575.98px) { .hero h1 { font-size: 1.9rem; } }
@media (min-width: 1200px) and (max-width: 1399.98px) { .site-header .nav-link { padding-inline: .55rem !important; } }

/* group-level messages (radio groups such as the benefit questions) sit beside, not after, the input */
fieldset .invalid-feedback:not(:empty) { display: block; }

/* Combobox (App.combobox / App.selectCombo — same look and behaviour as CRM-CERTS) */
.combo { position: relative; }
.combo-list { display: none; position: absolute; z-index: 1060; top: calc(100% + .25rem); left: 0; right: 0; min-width: 12rem; 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.is-current .combo-label { font-weight: 600; }
.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); }
.form-control-sm + .combo-list .combo-option, .form-control-sm + .combo-list .combo-empty { padding: .35rem .7rem; font-size: .875rem; }
/* inputs look like a select: chevron on the right, flipped while the list is open */
.combo > .form-control {
  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-sm { padding-right: 2rem; background-position: right .6rem center; background-size: 14px 10px; }
.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;
}
.combo > .form-control:disabled { cursor: not-allowed; }
/* the native select stays in the form (source of truth) but is not shown */
select.combo-native { display: none !important; }
/* validation: the hidden select carries .is-invalid; show it on the visible input */
select.combo-native.is-invalid + .combo > .form-control { border-color: var(--bs-form-invalid-border-color, #dc3545); }
select.combo-native.is-invalid + .combo > .form-control:focus { box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb, 220,53,69), .25); }
/* inside input groups (e.g. salary currency + period) */
.input-group > .combo { flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group > .combo > .form-control { border-radius: 0; }
.input-group > .combo-native:first-child + .combo > .form-control { border-top-left-radius: var(--bs-border-radius); border-bottom-left-radius: var(--bs-border-radius); }
.input-group > .combo:last-child > .form-control, .input-group > .combo:has(+ .invalid-feedback:last-child) > .form-control { border-top-right-radius: var(--bs-border-radius); border-bottom-right-radius: var(--bs-border-radius); }
.input-group > .combo:not(.combo-native:first-child + .combo) { margin-left: -1px; }

/* admin: content column while another section loads in place */
.admin-loading, .nav-loading { opacity: .55; transition: opacity .15s; pointer-events: none; }

/* search filters accordion (jobs.html, sponsored-jobs.html) */
.search-accordion .accordion-item { border: 1px solid var(--cc-border); border-top: 3px solid var(--cc-blue); border-radius: .75rem; overflow: visible; }
.search-accordion .accordion-header { border-radius: .75rem; }
.search-accordion .accordion-button { border-radius: .75rem; background: #fff; color: var(--cc-ink, #14213d); box-shadow: none; gap: .25rem; flex-wrap: wrap; }
.search-accordion .accordion-button:not(.collapsed) { border-bottom: 1px solid var(--cc-border); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.search-accordion .accordion-button:focus-visible { box-shadow: 0 0 0 .25rem rgba(31,94,184,.25); }
.search-accordion .filter-summary { font-size: .875rem; font-weight: 400; color: var(--cc-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: calc(100% - 13rem); }
.search-accordion .accordion-collapse { overflow: visible; } /* let dropdown lists extend past the panel */
.search-accordion .input-group > .combo:last-child { flex: 0 0 8.5rem; width: auto; } /* currency next to the amount */

/* Signed-in workspace: left navigation + content column (candidate and HR pages) */
.side-nav .nav-link { color: var(--cc-ink); border-radius: .5rem; display: flex; align-items: center; gap: .45rem; padding: .55rem .75rem; }
.side-nav .nav-link.active { background: #e8f0fc; color: var(--cc-blue); font-weight: 600; }
.side-nav .nav-link:hover { background: #eef2f8; }
.side-nav .nav-link .bi { width: 1.15rem; text-align: center; }
/* inside the content column, page headers and inner containers drop their full-width styling */
.workspace-main .page-header { background: transparent; border: 0; padding: 0 0 .25rem !important; margin-bottom: 1.25rem !important; }
.workspace-main .container, .workspace-main .container-fluid { max-width: none; padding-left: 0; padding-right: 0; }
@media (max-width: 991.98px) {
  /* phones and tablets: the sidebar becomes a horizontal, scrollable bar above the content */
  .workspace-sidebar { padding: .35rem !important; }
  /* min-width: 0 lets the bar shrink to the screen and scroll inside itself, however many items it has */
  .workspace-sidebar { min-width: 0; max-width: 100%; }
  .workspace-sidebar .nav { flex-direction: row !important; flex-wrap: nowrap; overflow-x: auto; gap: .25rem; scrollbar-width: thin; min-width: 0; max-width: 100%; }
  .workspace-sidebar .nav-link { white-space: nowrap; }
}

/* ---- network: Connect, Groups, Events */
.avatar { flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e6eefb; color: var(--cc-navy); font-weight: 700; overflow: hidden; vertical-align: middle; line-height: 1; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.navbar .avatar { background: rgba(255,255,255,.18); color: #fff; }
.photo-preview { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; border: 1px solid var(--cc-border); }
.post-cover { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--cc-radius) var(--cc-radius) 0 0; background: var(--cc-surface); }
.post-title { font-size: 1.25rem; font-weight: 700; margin: .25rem 0 .5rem; overflow-wrap: anywhere; }
.cover-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: .5rem; border: 1px solid var(--cc-border); }
.member-card .card-body { gap: .25rem; }
.connection-note { border-left: 3px solid var(--cc-border); padding: .35rem 0 .35rem .75rem; margin-top: .4rem; color: var(--cc-ink); overflow-wrap: anywhere; }
.text-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event-date { flex: 0 0 auto; width: 58px; text-align: center; border: 1px solid var(--cc-border); border-radius: .6rem; overflow: hidden; align-self: flex-start; }
.event-date-month { display: block; background: var(--cc-blue); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; padding: .15rem 0; }
.event-date-day { display: block; font-size: 1.35rem; font-weight: 700; color: var(--cc-ink); padding: .2rem 0; }
.event-cancelled { opacity: .75; }
.event-cancelled h3 { text-decoration: line-through; }

/* profile: month + year pickers, and room for dropdown lists in short modals */
.month-picker .form-select:first-child { flex: 1.4 1 0; }
.month-picker .form-select { flex: 1 1 0; min-width: 0; }
.month-picker:has(input.is-invalid) .form-select { border-color: var(--bs-form-invalid-border-color, #dc3545); }
.month-picker:has(input.is-invalid) ~ .invalid-feedback { display: block; }
.modal-body.modal-body-tall { min-height: 26rem; }
.photo-text { flex: 1 1 18rem; min-width: 0; }

/* menu bar: yellow line along the bottom */
.site-header { border-bottom: 2px solid var(--cc-amber); }

/* home: feature cards in the state-box card style */
.feature-card { padding: 2rem 1.5rem; }
.feature-card h2 { color: var(--cc-ink); }
.feature-card p { margin-bottom: 0; }
.fresher-tag { color: #0f5132; font-weight: 600; }

/* posts: Like · Repost · Comment bar with counts */
.post-actions { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .85rem; padding-top: .6rem; border-top: 1px solid var(--cc-border); }
.post-action { color: var(--cc-muted); font-weight: 600; border-radius: .5rem; display: inline-flex; align-items: center; gap: .35rem; }
.post-action:hover, .post-action:focus-visible { background: #eef2f8; color: var(--cc-ink); }
.post-action.is-on { color: var(--cc-blue); }
.post-count { font-weight: 400; font-variant-numeric: tabular-nums; }
.repost-original { border: 1px solid var(--cc-border); border-radius: .75rem; padding: 1rem; }

/* show/hide password button */
.pw-toggle { border-color: var(--bs-border-color); color: var(--cc-muted); }
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--cc-ink); background: #eef2f8; border-color: var(--bs-border-color); }

/* post author row: card border; Edit Post / Delete Post on the right */
.post-author { border: 1px solid var(--cc-border); border-radius: .75rem; padding: .55rem .75rem; background: #fff; }
.post-author .btn-link { white-space: nowrap; }

/* recruiter Companies tab: the actions column takes the space it needs, buttons wrap */
.company-actions { width: 1%; min-width: 15rem; }

/* "Show jobs on your website": the code to copy */
.embed-code { background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .75rem 1rem; white-space: pre-wrap; word-break: break-all; font-size: .85rem; }
@media (min-width: 768px) { .embed-add { padding-top: 2rem; } }

/* icon and label on one line (buttons inside narrow cards) */
.btn-icon-text { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }

/* Resume ATS Checker */
.ats-score { --p: 0; --c: var(--bs-success); width: 7.5rem; height: 7.5rem; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--bs-tertiary-bg) 0); }
.ats-score span { width: 6rem; height: 6rem; border-radius: 50%; background: var(--bs-body-bg); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }
.ats-score.fair { --c: var(--bs-warning); }
.ats-score.poor { --c: var(--bs-danger); }
.ats-checks li { display: flex; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--bs-border-color); }
.ats-checks li:first-child { border-top: 0; padding-top: 0; }
.ats-checks .bi { font-size: 1.15rem; line-height: 1.4; }
.ats-improve { border-left: 4px solid var(--cc-amber); }

/* Campus drives: QR code on screen and on the printable poster */
.campus-qr { width: 220px; height: 220px; image-rendering: pixelated; border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .5rem; background: #fff; }
.campus-poster { max-width: 720px; margin: 0 auto; text-align: center; }
.campus-poster .poster-qr { width: 360px; max-width: 80vw; height: auto; image-rendering: pixelated; }
@media print {
  .print-page .site-header, .print-page footer, .print-page .no-print, .print-page .skip-link { display: none !important; }
  .print-page main { padding: 0 !important; }
  .campus-poster { max-width: none; }
  .campus-poster .poster-qr { width: 9cm; }
}

/* header: a long account name never pushes the menu onto two lines (full name on hover and in the menu) */
.site-header .user-name { display: inline-block; max-width: 8.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .site-header .user-name { max-width: 6.5rem; } }

/* outline "danger" buttons (e.g. Cancel drive): a darker red, readable on the light page background (WCAG AA) */
.btn-outline-danger { --bs-btn-color: #b02a37; --bs-btn-border-color: #b02a37; --bs-btn-hover-bg: #b02a37; --bs-btn-hover-border-color: #b02a37; --bs-btn-active-bg: #8f222d; --bs-btn-active-border-color: #8f222d; }

/* screen-reader-only labels in table headers are absolutely positioned: keep them inside the
   table's own scroll box, or on phones they widen the whole page */
.table-responsive { position: relative; }

/* Home hero: 70 % search, 30 % rotating cards (large screens) */
@media (min-width: 992px) {
  .hero .hero-main { flex: 0 0 auto; width: 70%; }
  .hero .hero-side { flex: 0 0 auto; width: 30%; }
}
.hero-form-card { border-top-color: var(--cc-amber); box-shadow: 0 16px 40px rgba(6, 20, 45, .35); color: var(--cc-ink); }
.hero-form-card h2 { color: var(--cc-navy); }
.hero-form-card p { color: var(--cc-muted); }
.quote-points li { margin-bottom: .35rem; }
.quote-points .bi { color: var(--cc-teal); margin-right: .35rem; }

/* the cards turn like an iPhone picker wheel: the current one rolls up and fades out, the next rolls up from below */
.hero-slides { display: grid; perspective: 900px; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(45%) rotateX(-55deg) scale(.92); transform-origin: 50% 50%;
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .7, .2, 1), visibility 0s linear .7s; backface-visibility: hidden; }
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.22, .7, .2, 1), visibility 0s; z-index: 1; }
.hero-slide.is-leaving { opacity: 0; visibility: visible; transform: translateY(-45%) rotateX(55deg) scale(.92); transition: opacity .7s ease, transform .7s cubic-bezier(.22, .7, .2, 1), visibility 0s linear .7s; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active, .hero-slide.is-leaving { transition: none; transform: none; }
}
/* the tilted cards are drawn a little wider than their column mid-turn: never let that widen the page */
.hero { overflow-x: clip; }

/* sign-in / create-account: a photo fills the side panel; the text sits on its navy lower part */
.auth-visual-photo { position: relative; align-items: flex-end; background: var(--cc-navy); }
.auth-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.auth-visual-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 42, 85, 0) 30%, rgba(15, 42, 85, .55) 55%, rgba(12, 33, 68, .92) 100%); }
.auth-visual-photo .auth-visual-inner { position: relative; z-index: 1; padding-bottom: 3rem; }
.auth-visual-photo .auth-visual-inner h2 { margin-top: 0 !important; }

/* "small" text uses the normal size everywhere (Bootstrap shrinks .small and <small> to .875em) */
.small, small { font-size: inherit; }

/* home hero: a visible gradient — navy → royal blue → teal-blue, with a teal glow behind the cards
   and a blue glow low on the left (same family as the footer); white text stays above 4.5:1 */
.hero {
  background:
    radial-gradient(65% 90% at 0% 0%, rgba(125, 211, 252, .55) 0%, rgba(125, 211, 252, .18) 38%, rgba(125, 211, 252, 0) 72%),
    radial-gradient(65% 85% at 92% 100%, rgba(59, 130, 196, .42) 0%, rgba(59, 130, 196, 0) 65%),
    linear-gradient(225deg, #0b1a33 0%, #0f2a55 32%, #1d4a92 68%, #175f80 100%);
}

/* Candidate / HR switch (header): on hover the text turns white on a light highlight — Bootstrap's
   default hover colour is the dark body text, which disappears on the navy header */
.mode-switch .btn { --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .14); --bs-btn-hover-border-color: rgba(255, 255, 255, .7);
  --bs-btn-active-color: var(--cc-navy); }
.mode-switch .btn-check:checked + .btn:hover { color: var(--cc-navy); background: #fff; }
.mode-switch .btn-check:focus-visible + .btn { outline: 3px solid var(--cc-amber); outline-offset: 2px; }

/* Photographic audience tiles on the homepage. */
.audience-card { overflow: hidden; }
.audience-card-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; flex-shrink: 0; }

/* home headline: yellow-gold gradient text with a light sweep ("shine") every few seconds */
.hero-title { color: #fbbf24; } /* browsers without gradient text */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title {
    background-image:
      linear-gradient(110deg, transparent 0%, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%, transparent 100%),
      linear-gradient(100deg, #fde68a 0%, #fbbf24 35%, #f59e0b 65%, #fcd34d 100%);
    background-size: 250% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: 150% 0, 0 0;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: hero-shine 4.5s ease-in-out 1s infinite;
    filter: drop-shadow(0 2px 10px rgba(251, 191, 36, .25));
  }
}
@keyframes hero-shine {
  0% { background-position: 150% 0, 0 0; }
  45%, 100% { background-position: -60% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-title { animation: none; } }

/* Alternating audience stories: text stays first in the mobile reading order. */
.audience-section { background: #fff; }
.audience-intro { max-width: 48rem; }
.audience-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.audience-row + .audience-row { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--cc-border); }
.audience-row:nth-of-type(even) .audience-copy { grid-column: 2; grid-row: 1; }
.audience-row:nth-of-type(even) .audience-visual { grid-column: 1; grid-row: 1; }
.audience-visual img { display: block; width: 100%; height: auto; border-radius: 1.25rem; }
.audience-points { padding-left: 1.25rem; color: var(--cc-muted); margin-bottom: 1.25rem; }
.audience-points li + li { margin-top: .5rem; }
.audience-points li::marker { color: var(--cc-teal); }
.audience-roadmap { padding: 1rem 1.25rem; border-left: 3px solid var(--cc-teal); background: var(--cc-surface); border-radius: 0 .5rem .5rem 0; }
@media (max-width: 767.98px) {
  .audience-row { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .audience-row:nth-of-type(even) .audience-copy, .audience-row:nth-of-type(even) .audience-visual { grid-column: auto; grid-row: auto; }
  .audience-row + .audience-row { margin-top: 3rem; padding-top: 3rem; }
}

/* Alternate full-width sections as well as adjacent audience articles. */
@media (min-width: 768px) {
  .audience-row-reverse .audience-copy { grid-column: 2; grid-row: 1; }
  .audience-row-reverse .audience-visual { grid-column: 1; grid-row: 1; }
}

/* Header adapted from the Klintoz site. */
:root { --hdr-navy: #0f2a55; --hdr-blue: #1f5eb8; --header-h: 84px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1030;
  color: #fff;
  transition: background-color .28s ease, box-shadow .28s ease, backdrop-filter .28s ease;
}
#mainNav { background: transparent; box-shadow: none; padding: 0; }
#mainNav .nav-wrap {
  height: 84px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}

/* Brand: the Klintoz logo is a white-background JPG, so it sits on a white chip */
#mainNav .navbar-brand {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 5px 9px;
  border-radius: 11px;
  background: #fff;
  flex-shrink: 0;
}
#mainNav .navbar-logo-img { height: 34px; width: auto; }

/* Links */
#mainNav .navbar-nav { gap: 30px; }
#mainNav .nav-link {
  padding: 0 !important;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  color: rgba(255,255,255,.82) !important;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active,
#mainNav .nav-link[aria-current="page"] { color: #fff !important; }

/* CTA button (.btn.btn-primary in the reference) */
#mainNav .nav-item-cta .btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px !important;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 1rem !important;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  background: var(--hdr-blue);
  box-shadow: 0 10px 26px rgba(31,94,184,.28);
  transition: .2s transform, .2s box-shadow, .2s background;
  width: auto;
  white-space: nowrap;
}
#mainNav .nav-item-cta .btn:hover { background: #174a92; transform: translateY(-2px); color: #fff; }

/* Menu toggle (three bars) */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #fff;
}
.menu-toggle span { display: block; height: 2px; margin: 6px 0; background: currentColor; }

/* Stuck state — translucent white; text switches to dark navy so it stays readable */
.site-header.is-stuck {
  background: rgba(255,255,255,.96);
  box-shadow: 0 6px 26px rgba(15,42,85,.14);
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .site-header.is-stuck {
    background: rgba(255,255,255,.85);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    backdrop-filter: saturate(150%) blur(12px);
  }
}
.site-header.is-stuck .menu-toggle { color: var(--cc-ink); }
body.menu-open .site-header .menu-toggle { color: #fff; }
@media (min-width: 992px) {
  .site-header.is-stuck #mainNav .nav-link { color: var(--cc-ink) !important; }
  .site-header.is-stuck #mainNav .nav-link:hover,
  .site-header.is-stuck #mainNav .nav-link.active,
  .site-header.is-stuck #mainNav .nav-link[aria-current="page"] { color: var(--cc-blue) !important; }
}
.site-header.is-stuck #mainNav .nav-wrap { height: 70px; }

/* Open mobile menu: solid bar behind it. backdrop-filter is dropped because it
   would trap the fixed menu panel inside the header box. */
body.menu-open { overflow: hidden; }
body.menu-open .site-header {
  background: rgba(33,37,41,.97);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Fixed bar covers the top of the page: give every hero room to clear it */
.hero.py-5 { padding-top: calc(var(--header-h) + 3rem) !important; }
.page-hero { padding-top: calc(var(--header-h) + 36px); }
section[id], h1[id], h2[id], h3[id] { scroll-margin-top: 104px; }

/* ── Slide-in menu (reference: max-width 900px; here Bootstrap's lg breakpoint) ── */
@media (max-width: 991.98px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  #mainNav .nav-panel {
    position: fixed;
    inset: 0 0 0 25%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 105px 30px 30px;
    transform: translateX(100%);
    visibility: hidden;
    background: var(--hdr-navy);
    transition: transform .25s, visibility .25s;
    overflow-y: auto;
  }
  #mainNav .nav-panel.open { transform: none; visibility: visible; }
  #mainNav .navbar-nav { gap: 22px; margin: 0 !important; }
  #mainNav .nav-link { font-size: 1rem; white-space: normal; }

  /* Dropdowns open in place inside the panel */
  #mainNav .dropdown-menu {
    position: static;
    float: none;
    min-width: 0;
    margin: 12px 0 0;
    padding: .25rem;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    background: rgba(255,255,255,.06);
  }
  #mainNav .dropdown-item { border-radius: 8px; color: rgba(255,255,255,.82); white-space: normal; }
  #mainNav .dropdown-item i { color: rgba(255,255,255,.7); }
  #mainNav .dropdown-item:hover,
  #mainNav .dropdown-item:focus { background: rgba(255,255,255,.1); color: #fff; }
  #mainNav .dropdown-divider { border-color: rgba(255,255,255,.14); }
  #mainNav .nav-item-cta .btn { width: 100%; }
}
@media (max-width: 767.98px) {
  .page-hero { padding-top: calc(var(--header-h) + 22px); }
}
@media (max-width: 620px) {
  :root { --header-h: 72px; }
  #mainNav .nav-wrap { height: 72px; }
  #mainNav .nav-panel { left: 12%; }
  .site-header.is-stuck #mainNav .nav-wrap { height: 64px; }
  section[id], h1[id], h2[id], h3[id] { scroll-margin-top: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header *, #mainNav .nav-panel { transition: none !important; }
}


/* Reset the previous marketing header decoration. */
.site-header { background: transparent; border-bottom: 0; }
#mainNav .nav-link:hover, #mainNav .nav-link[aria-current="page"] { background: transparent; }
.solid-header-page { padding-top: var(--header-h); }
.solid-header-page .site-header { background: var(--cc-navy); }
.solid-header-page .site-header.is-stuck { background: rgba(255,255,255,.96); }
@media (min-width: 992px) and (max-width: 1199.98px) {
  #mainNav .navbar-nav { gap: 18px; }
  #mainNav .nav-item-cta .btn { padding-inline: 14px !important; }
}

/* Header account actions. */
#mainNav .header-sign-in {
  background: var(--cc-amber); border: 1px solid var(--cc-amber); color: var(--cc-ink);
  padding: 12px 20px; border-radius: 12px; font-weight: 700; min-height: 50px;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
}
#mainNav .header-sign-in:hover { background: #f59e0b; border-color: #f59e0b; color: var(--cc-ink); }
#mainNav .nav-item-cta .header-register { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; box-shadow: none; }
#mainNav .nav-item-cta .header-register:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; transform: none; }
.site-header.is-stuck #mainNav .nav-item-cta .header-register { border-color: var(--cc-blue); color: var(--cc-blue); }
.site-header.is-stuck #mainNav .nav-item-cta .header-register:hover { background: var(--cc-blue); color: #fff; }
@media (max-width: 991.98px) {
  #mainNav .header-sign-in { width: 100%; }
  .site-header.is-stuck #mainNav .nav-item-cta .header-register { border-color: rgba(255,255,255,.8); color: #fff; }
  .site-header.is-stuck #mainNav .nav-item-cta .header-register:hover { background: rgba(255,255,255,.12); }
}

/* Let the logo sit directly on the header background. */
#mainNav .navbar-brand { background: transparent; }
