/* Citysite skin for the pages still on the Bootstrap layouts (layouts.frontend, jobseeker,
   recruiter, app). Loaded after custom.min.css / dashboard.css so those pages match the
   redesigned home and jobs list: one ink, one green, Red Hat type, flat surfaces, one button
   look. Colours mirror the :root tokens in layouts/site.blade.php. */
:root {
  --cs-bg: #f7f7f1; --cs-surface: #eceee4; --cs-ink: #16241c; --cs-muted: #56635a;
  --cs-action: #0b7a3e; --cs-action-hover: #096634; --cs-line: rgb(22 36 28 / .14);
  --cs-display: "Red Hat Display", system-ui, sans-serif; --cs-text: "Red Hat Text", system-ui, sans-serif;
}
body { background: var(--cs-bg); color: var(--cs-ink); font-family: var(--cs-text); }
h1, h2, h3, h4, .playfairDisplay, .fs-40 { font-family: var(--cs-display) !important; font-weight: 500 !important; letter-spacing: -0.02em; color: var(--cs-ink); }
a { color: var(--cs-action); }
.text-black { color: var(--cs-ink) !important; }

/* buttons: one filled, one outlined, 44px, 8px radius, 500 weight */
.button1, .button2, .btn-primary, .btn-outline-primary {
  font-family: var(--cs-text); font-weight: 500 !important; border-radius: 8px !important; box-shadow: none !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}
.button1, .btn-primary { background: var(--cs-action) !important; border-color: var(--cs-action) !important; color: #fff !important; }
.button1:hover, .btn-primary:hover { background: var(--cs-action-hover) !important; border-color: var(--cs-action-hover) !important; }
.button2, .btn-outline-primary { background: transparent !important; color: var(--cs-ink) !important; border: 1px solid rgb(22 36 28 / .3) !important; line-height: 46px; }
.button2:hover, .btn-outline-primary:hover { background: var(--cs-surface) !important; color: var(--cs-ink) !important; border-color: var(--cs-ink) !important; }
.button1:active, .button2:active, .btn-primary:active { transform: translateY(1px) scale(.985); }

/* header: opaque, flat, a hairline under it */
.header { background: var(--cs-bg) !important; box-shadow: none !important; border-bottom: 1px solid var(--cs-line); padding: 6px 0 !important; }
.header .navbar-brand img { max-height: 52px !important; }
.header .main-nav .nav-link { color: var(--cs-ink) !important; font-weight: 500; background: none !important; border-radius: 0 !important; }
.header .main-nav .nav-link:hover { color: var(--cs-action) !important; }
.header .main-nav .nav-link.active { box-shadow: inset 0 -2px 0 var(--cs-ink); }

/* cards and panels: flat, one hairline, no drop shadows */
.jobs_card, .ljo_card, .blog_card, .job_card, .card, .plan-card, .pricing-card, .company_card, .dash-card {
  box-shadow: none !important; border: 1px solid var(--cs-line) !important; border-radius: 12px !important; background: #fff;
}

/* footer: the dark ground of the new footer */
.footer:not(.closing) { background: var(--cs-ink) !important; color: #f7f7f1; }
.footer:not(.closing) h3, .footer:not(.closing) .footer_about_txt, .footer .footer_about_txt p, .footer p, .footer .copyright { color: #f7f7f1 !important; }
.footer:not(.closing) a { color: #d6dcd4 !important; }
.footer:not(.closing) a:hover { color: #fff !important; }
.footer .navbar-brand img { background: var(--cs-bg); border-radius: 6px; padding: 6px 10px; max-height: 72px; }
.footer .footer_address .icon img, .footer .footer_social img { filter: brightness(0) invert(1); opacity: .85; }
.footer .copyright { border-top-color: rgb(247 247 241 / .16) !important; }
#backToTopBtn { display: none !important; }

/* focus ring, the same as the kit's */
:focus-visible { outline: 2px solid var(--cs-action) !important; outline-offset: 2px; }

/* the page's content on the header's lines: 80px gutters at 1440 (48 on a tablet, 24 on a phone), 1280 wide */
.middle_wraper .container, .middle_wraper .container-fluid, .middle_wraper .container-xl, .middle_wraper .container-xxl {
  width: min(100% - 160px + 24px, 1304px); max-width: none; margin-inline: auto; padding-inline: 12px;
}
@media (max-width: 1023px) { .middle_wraper :is(.container, .container-fluid, .container-xl, .container-xxl) { width: calc(100% - 96px + 24px); } }
@media (max-width: 639px) { .middle_wraper :is(.container, .container-fluid, .container-xl, .container-xxl) { width: calc(100% - 48px + 24px); } }
/* the old pages' scattered decorative dots */
.middle_wraper :is(.floating_circle, [class^="circle_"], [class*=" circle_"]) { display: none !important; }

/* auth pages: the admin theme's violet dot patterns are not part of the page's palette */
.authentication-wrapper .authentication-inner::before, .authentication-wrapper .authentication-inner::after { display: none !important; }
.authentication-wrapper .card { border-radius: 12px !important; }

/* dashboards (jobseeker, recruiter): the same header and button as the public site */
.profile_header { box-shadow: none !important; border-bottom: 1px solid var(--cs-line); background: var(--cs-bg) !important; }
.profile_header img { max-height: 52px; width: auto; }
.cs-dash .cs-btn-primary { background: var(--cs-action) !important; border-color: var(--cs-action) !important; color: #fff !important; }
.cs-dash .cs-btn-primary:hover { background: var(--cs-action-hover) !important; border-color: var(--cs-action-hover) !important; }
.profile_sidebar ul li a.active { background-color: var(--cs-surface) !important; color: var(--cs-ink) !important; box-shadow: inset 3px 0 0 var(--cs-action); }
.profile_sidebar ul li a:hover:not(.active) { background-color: var(--cs-surface) !important; color: var(--cs-ink) !important; }
.profile_sidebar ul li a.active img, .profile_sidebar ul li a:hover img { filter: none !important; }

/* pay (shared partial) on the Bootstrap pages */
.cs-pay { display: inline-flex; align-items: baseline; gap: .3em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cs-pay__sym { font-weight: 500; }
.cs-pay--none { color: var(--cs-muted); }
.cs-jd__card--apply .cs-pay--none { color: #b1b8ae; }
.cs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the pay always takes the size and weight of the value it sits in; only "Undisclosed" is muted */
.cs-pay > * { font: inherit; letter-spacing: inherit; }
.cs-pay__sym { font-weight: inherit; }
