/* ==========================================================================
   Resdex design layer: makes citysite.co.in look like resumes.citysite.co.in
   --------------------------------------------------------------------------
   Visual only. Loaded LAST by layouts site, frontend, legal and portal (via
   partials/resdex-head) so it overrides the older layers without touching
   any markup, route, form or script.

   Two faces, as in Resdex itself:
     1. Public pages  -> the Resdex front door: fog ground, Geologica display
        type at 600 with tight tracking, pill buttons, bright green with a dark
        label, white "console" panels, one dark rounded band per page.
     2. Portal (admin, recruiter, candidate; body.portal-body) -> the Resdex
        app: portal.css tokens remapped to Resdex (section at the end).

   Fonts load from the <link> in each layout (Geologica, Reddit Sans,
   JetBrains Mono), the same way Resdex loads them.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  /* Resdex front door */
  --rx-fog: #ebf0ec;
  --rx-paper: #ffffff;
  --rx-ink: #0a2416;
  --rx-ink-2: #4a5f52;
  --rx-line: #d2dcd5;
  --rx-green: #00bf58;
  --rx-green-hi: #00d262;
  --rx-green-deep: #008a40;
  --rx-mint: #d4f7e3;
  --rx-band: #0a2416;
  --rx-band-ink: #e6eee8;
  --rx-band-muted: #9fb5a7;
  --rx-r-s: 8px; --rx-r-m: 14px; --rx-r-l: 22px; --rx-r-band: 32px;
  --rx-console: 0 1px 0 var(--rx-line), 0 30px 60px -30px rgba(10, 36, 22, .28);

  /* Resdex app */
  --rx-canvas: #f5f7f5;
  --rx-surface: #ffffff;
  --rx-ink-900: #0f1d16;
  --rx-ink-700: #2e3933;
  --rx-ink-500: #46504b;
  --rx-ink-300: #8d968f;
  --rx-l: #dde3de;
  --rx-l-strong: #c9d1cb;
  --rx-l-soft: #e9eeea;
  --rx-brand-50: #ecf8f1;
  --rx-brand-100: #d5f0e0;
  --rx-brand-200: #ade0c2;
  --rx-brand-500: #00bf58;
  --rx-brand-600: #009a47;
  --rx-brand-700: #0b7a41;
  --rx-brand-800: #0a6335;
  --rx-brand-900: #008f42;
  --rx-forest-800: #20392c;
  --rx-forest-950: #0f1d16;
  --rx-amber-50: #fdf7e7; --rx-amber-500: #c2851b; --rx-amber-700: #8a5c12;
  --rx-red-50: #fdf1f0; --rx-red-600: #b93b35; --rx-red-700: #9a2f2a;
  --rx-shadow-card: 0 1px 2px rgba(20, 28, 24, .04);
  --rx-shadow-raised: 0 1px 2px rgba(20, 28, 24, .04), 0 4px 12px -4px rgba(20, 28, 24, .08);
  --rx-shadow-pop: 0 12px 32px -12px rgba(20, 28, 24, .22), 0 2px 6px rgba(20, 28, 24, .05);
  --rx-ease: cubic-bezier(.22, 1, .36, 1);

  --rx-display: "Geologica", "Reddit Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rx-text: "Reddit Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rx-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* --- remap the site kit (tokens.css / system.css) onto Resdex --- */
  --p-bg: var(--rx-fog);
  --p-surface: #f6f9f7;       /* Resdex cta-box tint: tiles, tags and quiet panels on white */
  --p-ink: var(--rx-ink);
  --p-muted: var(--rx-ink-2);
  --p-accent: var(--rx-green);
  --p-accent-ink: #03170b;
  --p-action: var(--rx-green);
  --p-action-ink: #03170b;
  --p-inv-bg: var(--rx-band);
  --p-inv-surface: #12321f;
  --p-inv-ink: var(--rx-band-ink);
  --p-inv-muted: var(--rx-band-muted);
  --p-inv-accent: var(--rx-green);
  --p-inv-accent-ink: #03170b;
  --p-inv-action: var(--rx-green);
  --p-inv-action-ink: #03170b;
  --font-display: var(--rx-display);
  --font-text: var(--rx-text);
  --display-weight: 600;
  --display-tracking: -0.04em;
  --display-tracking-xl: -0.045em;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-btn: 999px;
  --btn-h: 48px; --btn-h-sm: 40px;

  /* --- remap the Bootstrap-page skin (skin.css) --- */
  --cs-bg: var(--rx-fog);
  --cs-surface: var(--rx-paper);
  --cs-ink: var(--rx-ink);
  --cs-muted: var(--rx-ink-2);
  --cs-action: var(--rx-green);
  --cs-action-hover: var(--rx-green-hi);
  --cs-line: var(--rx-line);
  --cs-display: var(--rx-display);
  --cs-text: var(--rx-text);
}

/* ======================================================================
   1. PUBLIC PAGES (layouts.site, layouts.frontend, layouts.legal)
   ====================================================================== */

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body:not(.portal-body) { background: var(--rx-fog); color: var(--rx-ink); font-family: var(--rx-text); }
::selection { background: var(--rx-mint); color: var(--rx-ink); }

/* Display type: Geologica 600, tight. Sizes stay with the kit, weight and
   tracking come from Resdex. */
body:not(.portal-body) :is(h1, h2, h3) { font-family: var(--rx-display); font-weight: 600; color: inherit; }
body:not(.portal-body) h1 { letter-spacing: -0.045em; }
body:not(.portal-body) h2 { letter-spacing: -0.04em; }
body:not(.portal-body) h3 { letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--rx-green) !important; outline-offset: 3px; }

/* ---- header: translucent fog bar, hairline only on scroll, pill CTA ---- */
.nav, .cs-shell .nav {
  background: rgba(235, 240, 236, .86) !important;
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rx-line) !important;
  color: var(--rx-ink);
}
/* backdrop-filter makes the bar the containing block for the fixed phone menu (it then collapsed into the
   64px bar with no ground): below desktop the bar is solid and unfiltered */
@media (max-width: 1023px) {
  .nav, .cs-shell .nav { background: var(--rx-fog) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav__link { color: var(--rx-ink-2); font-size: 15px; font-weight: 500; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--rx-ink); }
.nav__link::before { height: 2px; background: var(--rx-green); }
.nav__menu { background: var(--rx-paper) !important; border-bottom: 1px solid var(--rx-line); box-shadow: 0 30px 60px -30px rgba(10, 36, 22, .28); }
.menu-col a:hover { color: var(--rx-green-deep); }
.t-label, .menu-col .t-label { color: var(--rx-ink-2); letter-spacing: 0; text-transform: none; font-weight: 500; }

/* ---- buttons: pills, green with a dark label, ink outline secondary ---- */
.btn, .cs-shell .btn {
  border-radius: 999px !important;
  font-family: var(--rx-text); font-weight: 600; letter-spacing: 0;
  transition: transform .15s, background-color .15s, color .15s, box-shadow .15s;
}
.btn--primary, .cs-shell .btn--primary, .cs-plan--pick .cs-plan__cta {
  background: var(--rx-green) !important; color: #03170b !important; border-color: transparent !important;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14);
}
.btn--primary:hover, .cs-shell .btn--primary:hover { background: var(--rx-green-hi) !important; transform: translateY(-1px); }
.btn--secondary, .cs-shell .btn--secondary {
  background: transparent !important; color: var(--rx-ink) !important; border-color: transparent !important;
  box-shadow: inset 0 0 0 1.5px var(--rx-ink);
}
.btn--secondary:hover, .cs-shell .btn--secondary:hover { background: var(--rx-ink) !important; color: var(--rx-fog) !important; }
.ground-inverse .btn--secondary, .footer--dark .btn--secondary { color: var(--rx-band-ink) !important; box-shadow: inset 0 0 0 1.5px var(--rx-band-ink); }
.ground-inverse .btn--secondary:hover, .footer--dark .btn--secondary:hover { background: var(--rx-band-ink) !important; color: var(--rx-ink) !important; }
.btn--arrow::after { content: "\2192"; }

/* ---- fields: Resdex inputs, 14px radius, fog fill, green focus ---- */
body:not(.portal-body) :is(.field input, .field select, .field textarea, .cs-filter input, .cs-filter select, .cs-signin__card input, .cs-contact__form input, .cs-contact__form textarea, .cs-contact__form select) {
  border-radius: var(--rx-r-m) !important; border: 1.5px solid var(--rx-line) !important; background: var(--rx-fog) !important; color: var(--rx-ink);
  font-family: var(--rx-text);
}
body:not(.portal-body) :is(.field input, .field select, .field textarea, .cs-filter input, .cs-filter select, .cs-signin__card input, .cs-contact__form input, .cs-contact__form textarea):focus {
  border-color: var(--rx-green) !important; background: var(--rx-paper) !important; box-shadow: 0 0 0 4px rgba(0, 191, 88, .15) !important; outline: none;
}

/* ---- hero: light fog ground, giant ink headline, white search console ---- */
section.hero.cs-hero {
  --bg: var(--rx-fog); --surface: var(--rx-paper); --ink: var(--rx-ink); --muted: var(--rx-ink-2);
  --line: var(--rx-line); --line-strong: rgba(10, 36, 22, .3);
  --action: var(--rx-green); --action-ink: #03170b;
  background: var(--rx-fog); color: var(--rx-ink);
}
section.hero.cs-hero h1 {
  color: var(--rx-ink); font-weight: 600;
  font-size: clamp(44px, 5.4vw, 94px); line-height: .96; letter-spacing: -0.045em;
}
section.hero.cs-hero .cs-hero__h1b { color: var(--rx-ink-2); font-weight: 500; letter-spacing: -0.03em; }
section.hero.cs-hero .hero__lead { color: var(--rx-ink-2); opacity: 1; font-size: 19px; }
section.hero.cs-hero .cs-hero__live { color: var(--rx-ink); border-color: var(--rx-line); background: var(--rx-paper); }
section.hero.cs-hero .cs-hero__alt { color: var(--rx-ink-2); }
section.hero.cs-hero .cs-hero__alt a { color: var(--rx-ink); font-weight: 600; text-decoration-color: rgba(10, 36, 22, .35); }
.cs-hero__search {
  --bg: var(--rx-paper); --line-strong: var(--rx-line);
  background: var(--rx-paper) !important; border-radius: var(--rx-r-l) !important; box-shadow: var(--rx-console); padding: 10px !important;
}
.cs-hero__field + .cs-hero__field { border-left-color: var(--rx-line); }
.cs-hero__field label { color: var(--rx-ink-2); }
.cs-hero__field input { font-family: var(--rx-text); color: var(--rx-ink); }
/* one focus mark per field: the whole field lights up, the input itself draws nothing */
.cs-hero__field { border-radius: var(--rx-r-m); transition: background-color .15s, box-shadow .15s; }
.cs-hero__field:focus-within { background: var(--rx-fog); box-shadow: inset 0 0 0 1.5px var(--rx-green) !important; }
.cs-hero__field:focus-within + .cs-hero__field, .cs-hero__field:has(+ .cs-hero__field:focus-within) { border-color: transparent; }
.cs-hero__field input:focus, .cs-hero__field input:focus-visible { outline: none !important; box-shadow: none !important; border-radius: 0; }
.cs-hero__search .btn { height: 56px; }

/* hero cards become white consoles on the fog */
section.hero.cs-hero .cs-card {
  background: var(--rx-paper); color: var(--rx-ink); border: 0; box-shadow: var(--rx-console); border-radius: var(--rx-r-l);
}
section.hero.cs-hero .cs-card:hover { border-color: transparent; }
section.hero.cs-hero .cs-card__label, section.hero.cs-hero .cs-card__meta { color: var(--rx-ink-2); }
section.hero.cs-hero .cs-card__when { color: var(--rx-green-deep); }
section.hero.cs-hero .cs-card__title { font-weight: 600; }
section.hero.cs-hero .cs-card__tags > span { background: var(--rx-mint); color: var(--rx-ink); border-radius: 999px; padding: 3px 10px; }
section.hero.cs-hero .cs-card__chip { background: var(--rx-paper); border-radius: 999px; box-shadow: var(--rx-shadow-raised); }
section.hero.cs-hero .cs-card__chip strong { color: var(--rx-green-deep); }
section.hero.cs-hero .cs-bars__track { background: #e1e8e3; }
section.hero.cs-hero .cs-bars__n { font-weight: 600; }
.cs-card--photo { box-shadow: none !important; }

/* ---- dark bands: Resdex's rounded ink section, inset from the edges ---- */
main > section.ground-inverse:not(.cs-hero), main > section.cs-jobs-top {
  background: var(--rx-band) !important; color: var(--rx-band-ink);
  border-radius: var(--rx-r-band); margin-inline: 16px;
}
main > section.ground-inverse:not(.cs-hero) :is(h2, h3) { color: #fff; }
/* a band that ends the page must not touch the dark footer: leave fog between them */
main > section.ground-inverse:not(.cs-hero):last-child, main > section.cs-jobs-top:last-child { margin-bottom: 64px; }
@media (max-width: 639px) { main > section.ground-inverse:not(.cs-hero):last-child { margin-bottom: 40px; } }
.ground-inverse .cs-prose--inverse, .ground-inverse p { color: var(--rx-band-muted); }

/* ---- section heads: big Resdex statements ---- */
.cs-sec-h, .cs-pricing-more__h, .cs-offices__h, .cs-towns__name {
  font-weight: 600 !important; letter-spacing: -0.04em !important; line-height: 1.02 !important;
}
.section-head h2, main > section h2 { font-weight: 600; }

/* ---- rows and cards: white consoles, hairline rows ---- */
.card, .cs-feature, .cs-co, .cs-plan, .cs-signin__card, .cs-contact__form, .cs-office, .cs-card-lite, .cs-step {
  border-radius: var(--rx-r-l) !important; border-color: var(--rx-line) !important;
}
.card:not(.card--open), .cs-co, .cs-signin__card, .cs-contact__form, .cs-plan:not(.cs-plan--pick) { background: var(--rx-paper); }
.cs-signin__card, .cs-contact__form { border: 0 !important; box-shadow: var(--rx-console); }
.cs-jobrow, .cs-result { border-color: var(--rx-line) !important; }
.cs-jobrow__title, .cs-result__title, .cs-co__name { font-weight: 600 !important; letter-spacing: -0.02em !important; }
/* results: one white console with divided rows, the way Resdex lists candidates */
.cs-results { gap: 0 !important; background: var(--rx-paper); border-radius: var(--rx-r-l); box-shadow: var(--rx-console); overflow: hidden; }
.cs-results > .cs-result { border: 0 !important; border-top: 1px solid var(--rx-line) !important; border-radius: 0 !important; background: transparent !important; transform: none !important; }
.cs-results > .cs-result:first-child { border-top: 0 !important; }
.cs-results > .cs-result:hover { background: #f6f9f7 !important; }
.cs-result__logo { background: var(--rx-mint) !important; color: var(--rx-green-deep); font-weight: 600; border-radius: 12px !important; }
.cs-result__tags span { background: var(--rx-fog) !important; border-radius: 999px !important; padding: 3px 10px !important; }
.cs-chip { border-radius: 999px !important; border-width: 1.5px !important; }
.cs-plan--pick { background: var(--rx-band) !important; border-color: var(--rx-band) !important; color: var(--rx-band-ink) !important; }
.cs-plan__badge { background: var(--rx-green) !important; color: #03170b !important; font-weight: 600; }
.cs-plan__price { font-weight: 600 !important; }
.cs-plan__cta { border-radius: 999px !important; font-weight: 600; }
.cs-facts dd, .cs-stat, .q-count b { font-weight: 600 !important; letter-spacing: -0.04em; }

/* ---- About page: Resdex consoles on one fog ground, tighter rhythm ---- */
main > section.cs-about-sec { padding-top: 88px !important; padding-bottom: 88px !important; }
main > section.cs-about-sec--tight { padding-top: 56px !important; }
main > section.cs-about-sec + section.cs-about-sec:not(.ground-inverse) { padding-top: 0 !important; }
.cs-about-sec--alt { background: transparent !important; }
section.cs-about .cs-app__head h1 { font-size: clamp(44px, 4.6vw, 80px) !important; line-height: .98 !important; letter-spacing: -0.045em !important; }
section.cs-about .cs-app__lead { font-size: 19px; color: var(--rx-ink-2); max-width: 46ch; }
section.cs-about .cs-prose { font-size: 16px; line-height: 1.7; color: var(--rx-ink-2); max-width: 60ch; }
.cs-about__photo { border-radius: var(--rx-r-l) !important; box-shadow: var(--rx-console); }
.cs-facts { margin-top: 64px !important; gap: 16px !important; }
.cs-facts div, .cs-svc__card, .cs-value, .cs-card-lite, .cs-feature {
  background: var(--rx-paper) !important; border: 0 !important; border-radius: var(--rx-r-l) !important; box-shadow: var(--rx-console) !important;
}
.cs-facts div { padding: 24px !important; }
.cs-facts dt { font-size: 14px !important; color: var(--rx-ink-2) !important; }
.cs-facts dd { font-size: clamp(32px, 2.4vw, 44px) !important; color: var(--rx-ink); margin-top: 4px !important; }
.cs-svc { gap: 16px !important; }
.cs-svc__card { padding: 28px !important; color: var(--rx-ink); }
.cs-svc__card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--rx-line), 0 36px 60px -28px rgba(10, 36, 22, .34) !important; }
.cs-svc__k, .cs-value__k {
  justify-self: start; align-self: flex-start; display: inline-flex; padding: 3px 10px; border-radius: 999px;
  background: var(--rx-mint); color: var(--rx-green-deep) !important; font-size: 13px !important; font-weight: 600 !important;
}
.cs-svc__t { font-weight: 600 !important; font-size: 24px !important; letter-spacing: -0.03em !important; }
.cs-svc__d { color: var(--rx-ink-2) !important; }
.cs-svc__go { font-weight: 600 !important; }
.cs-values { row-gap: 16px !important; align-items: stretch !important; }
#connect .cs-prose--lead { font-size: 17px !important; line-height: 1.65; color: var(--rx-ink-2) !important; max-width: 62ch; margin-bottom: 40px; }
#connect .cs-sec-h { margin-bottom: 20px !important; }
.cs-value { padding: 32px !important; gap: 14px !important; }
.cs-value__v { font-size: 22px !important; font-weight: 500 !important; line-height: 1.4 !important; letter-spacing: -0.02em !important; color: var(--rx-ink); }
.cs-card-lite { padding: 28px !important; margin-bottom: 16px !important; }
.cs-card-lite__h { font-size: 20px !important; font-weight: 600 !important; letter-spacing: -0.02em; }
.cs-card-lite .cs-prose { color: var(--rx-ink-2); line-height: 1.7; }
.cs-features { gap: 16px !important; }
.cs-feature { padding: 24px !important; font-weight: 600 !important; font-size: 17px !important; letter-spacing: -0.01em; }
.cs-feature img { width: 48px !important; height: 48px !important; padding: 10px; border-radius: 12px; background: var(--rx-mint); }
#strategy .cs-prose, #strategy .cs-prose p { color: var(--rx-band-muted) !important; font-size: 16px; line-height: 1.7; }
#strategy .cs-prose strong, #strategy .cs-prose b { color: #fff; font-weight: 600; }
#strategy .cs-about__photo { box-shadow: none; }

/* chips and tags in the Resdex mint */
.chip, .tag, .cs-chip, .cs-tag { border-radius: 999px; }
.cs-hero__live .cs-hero__dot { background: var(--rx-green); }

/* jobs-list filter bar on the band */
.cs-jobs-top .cs-filter {
  --bg: var(--rx-paper); background: var(--rx-paper) !important; border-radius: var(--rx-r-l); box-shadow: var(--rx-console);
}
.cs-jobs-top .cs-filter :is(input, select) { background: var(--rx-fog) !important; }

/* pager */
.cs-pager__num, .cs-pager__btn, .cs-pager__gap { border-radius: 999px !important; }
.cs-pager__num[aria-current], .cs-pager__num.is-on { background: var(--rx-ink) !important; color: var(--rx-fog) !important; }

/* ---- footer: ink, like the Resdex band ---- */
.footer--dark, .footer.closing.footer--dark { background: var(--rx-band) !important; color: var(--rx-band-ink); }
.footer--dark :is(h2, h3) { color: #fff; }
.footer--dark a:hover { color: var(--rx-green) !important; }

/* cookie notice */
.cs-consent__inner { background: var(--rx-paper) !important; border-radius: var(--rx-r-m) !important; box-shadow: var(--rx-console); border-color: var(--rx-line) !important; }
.cs-consent .btn { border-radius: 999px !important; }
.cs-consent .btn--primary { background: var(--rx-green) !important; color: #03170b !important; }
.cs-consent .btn--secondary, .footer--dark .cs-consent .btn--secondary { color: var(--rx-ink) !important; box-shadow: none !important; background: none !important; }
.cs-consent__text, .cs-consent__dismiss,
.footer .cs-consent__text, .footer .cs-consent__dismiss { color: var(--rx-ink-2) !important; }   /* banner lives inside the dark footer: beat `.footer p` */
.cs-consent, .cs-consent :is(p, a, button, span) { font-family: var(--rx-text) !important; }
.cs-consent__text a, .footer .cs-consent__text a { color: var(--rx-ink) !important; text-decoration: underline; text-underline-offset: 3px; }

/* ---- the Bootstrap public pages (layouts.frontend: job detail, blogs, FAQs) ---- */
.cs-shell {
  --bg: var(--rx-fog); --surface: var(--rx-paper); --ink: var(--rx-ink); --muted: var(--rx-ink-2);
  --action: var(--rx-green); --action-ink: #03170b; --line: var(--rx-line); --line-strong: rgba(10, 36, 22, .3);
  --font-display: var(--rx-display); --font-text: var(--rx-text); --r: 999px;
}
body:not(.portal-body) :is(.playfairDisplay, .fs-40) { font-family: var(--rx-display) !important; font-weight: 600 !important; letter-spacing: -0.04em; }
body:not(.portal-body) :is(h1, h2, h3, h4) { font-weight: 600 !important; }
/* zero-specificity reset of skin.css green links; component colours (e.g. the selected .cs-switch tab) still win */
:where(body:not(.portal-body)) a { color: inherit; }
body:not(.portal-body) :is(.button1, .btn-primary) {
  background: var(--rx-green) !important; border-color: var(--rx-green) !important; color: #03170b !important;
  border-radius: 999px !important; font-weight: 600 !important; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14) !important;
}
body:not(.portal-body) :is(.button1, .btn-primary):hover { background: var(--rx-green-hi) !important; border-color: var(--rx-green-hi) !important; }
body:not(.portal-body) :is(.button2, .btn-outline-primary) {
  border-radius: 999px !important; font-weight: 600 !important; border: 0 !important; box-shadow: inset 0 0 0 1.5px var(--rx-ink) !important; color: var(--rx-ink) !important;
}
body:not(.portal-body) :is(.button2, .btn-outline-primary):hover { background: var(--rx-ink) !important; color: var(--rx-fog) !important; }
body:not(.portal-body) :is(.jobs_card, .ljo_card, .blog_card, .job_card, .plan-card, .pricing-card, .company_card) {
  background: var(--rx-paper) !important; border: 0 !important; border-radius: var(--rx-r-l) !important; box-shadow: var(--rx-console) !important;
}
body:not(.portal-body) .middle_wraper { background: var(--rx-fog); }
body:not(.portal-body) :is(.form-control, .form-select) {
  border-radius: var(--rx-r-m); border: 1.5px solid var(--rx-line); background-color: var(--rx-fog); font-family: var(--rx-text);
}
body:not(.portal-body) :is(.form-control, .form-select):focus { border-color: var(--rx-green); box-shadow: 0 0 0 4px rgba(0, 191, 88, .15); background-color: var(--rx-paper); }

/* blog article: the post and the sidebar sit in white consoles, like the job page cards */
.blog_detail_section .blog_post_detail,
.blog_detail_section .sidebar_recent_news {
  background: var(--rx-paper) !important; border: 0 !important; border-radius: var(--rx-r-l) !important;
  box-shadow: var(--rx-console) !important; padding: 40px !important;
}
.blog_detail_section .sidebar_recent_news { padding: 28px !important; position: sticky; top: calc(var(--nav, 72px) + 24px); }
.blog_detail_section .blog_post_detail > h2 { margin-top: 16px !important; }
.blog_detail_section .blog_post_detail_img { margin: 24px 0 32px !important; }
.blog_detail_section .blog_post_detail_img img { border-radius: var(--rx-r-m) !important; }
.blog_detail_section .blog_post_content { font-size: 17px; line-height: 1.7; color: var(--rx-ink); max-width: 72ch; }
.blog_detail_section .blog_post_content :is(h2, h3, h4) { margin: 1.6em 0 .6em; letter-spacing: -0.02em !important; }
.blog_detail_section .blog_post_content a { color: var(--rx-green-deep); text-decoration: underline; text-underline-offset: 3px; }
.blog_detail_section .blog_post_content :is(table) { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; }
.blog_detail_section .blog_post_content :is(th, td) { border-bottom: 1px solid var(--rx-line); padding: 10px 12px; text-align: left; }
.blog_detail_section .share_icons { border-top: 1px solid var(--rx-line); padding-top: 24px; margin-top: 32px !important; }
.blog_detail_section .blog_pubish_date { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--rx-fog); color: var(--rx-ink-2); font-size: 14px; }
.blog_detail_section .sidebar_recent_news h3 { font-size: 20px !important; margin-bottom: 16px; }
.blog_detail_section .sidebar_recent_news li { border-top: 1px solid var(--rx-line); padding: 14px 0 !important; margin: 0 !important; }
.blog_detail_section .sidebar_recent_news li:first-child { border-top: 0; padding-top: 0 !important; }
.blog_detail_section .sidebar_recent_news li { display: flex; align-items: center; gap: 14px; }
.blog_detail_section .sidebar_recent_news figure { flex: 0 0 64px; width: 64px; height: 64px; margin: 0; overflow: hidden; border-radius: 12px; background: var(--rx-fog); font-size: 0; }
.blog_detail_section .sidebar_recent_news figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px !important; }
.blog_detail_section .sidebar_recent_news h4 { font-size: 15px !important; line-height: 1.35; margin: 0 0 4px; letter-spacing: -0.01em; }
.blog_detail_section .sidebar_recent_news .date { font-size: 13px; color: var(--rx-ink-2); }
/* editor-pasted text carries inline Arial / sizes: bring it onto the site's type */
.blog_detail_section .blog_post_content :is(p, span, li, td, th, div, strong, b, em) { font-family: var(--rx-text) !important; }
.blog_detail_section .blog_post_content :is(p, li, span) { font-size: inherit !important; line-height: inherit !important; color: inherit !important; }
.blog_detail_section .blog_post_content p { margin: 0 0 1em; }
.blog_detail_section .blog_post_content :is(h2, h3, h4, h2 *, h3 *, h4 *) { font-family: var(--rx-display) !important; font-weight: 600 !important; color: var(--rx-ink) !important; }
.blog_detail_section .blog_post_content h3, .blog_detail_section .blog_post_content h3 * { font-size: 22px !important; }
.pagetitle_bar .breadcrumb-item, .pagetitle_bar .breadcrumb-item a, .pagetitle_bar .breadcrumb-item::before { color: rgba(255, 255, 255, .85) !important; }
.pagetitle_bar .breadcrumb-item a:hover { color: #fff !important; text-decoration: underline; }
.blog_detail_section .blog_pubish_date i { color: var(--rx-green-deep); background: none !important; }
@media (max-width: 991.98px) {
  .blog_detail_section .sidebar_recent_news { position: static; margin-top: 24px; }
  .blog_detail_section .blog_post_detail { padding: 24px !important; }
}

/* job page: "Similar jobs" as a grid of white cards, the whole card is the link */
.cs-jd-related { padding: 72px 0 88px !important; }
.cs-jd-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border: 0 !important; padding: 0 !important; margin-bottom: 24px !important; }
.cs-jd-related__head h2 { margin: 0; font-size: clamp(32px, 3vw, 48px) !important; letter-spacing: -0.04em !important; }
.cs-jd-related__head .cs-jd__link {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; text-decoration: none !important;
  box-shadow: inset 0 0 0 1.5px var(--rx-ink); color: var(--rx-ink) !important; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.cs-jd-related__head .cs-jd__link::after { content: "→"; margin-left: 6px; }
.cs-jd-related__head .cs-jd__link:hover { background: var(--rx-ink); color: var(--rx-fog) !important; }
.cs-jd-related__list { list-style: none; margin: 0; padding: 0; border-top: 0 !important; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cs-jd-related__row {
  position: relative; display: grid !important; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 14px 14px; align-items: start;
  padding: 24px !important; border: 0 !important; border-radius: var(--rx-r-l); background: var(--rx-paper); box-shadow: var(--rx-console);
  transition: transform .2s var(--rx-ease), box-shadow .2s var(--rx-ease);
}
.cs-jd-related__row:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--rx-line), 0 36px 60px -26px rgba(10, 36, 22, .36); }
.cs-jd-related__logo {
  width: 48px !important; height: 48px !important; display: grid !important; place-items: center; border-radius: 12px !important;
  background: var(--rx-mint) !important; color: var(--rx-green-deep) !important; font: 600 15px/1 var(--rx-display) !important; border: 0 !important;
}
.cs-jd-related__row h3 { margin: 0 0 6px !important; font-size: 18px !important; line-height: 1.3; letter-spacing: -0.02em !important; }
.cs-jd-related__row h3 a { color: var(--rx-ink) !important; text-decoration: none; }
.cs-jd-related__row h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* whole card clickable */
.cs-jd-related__row:hover h3 a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cs-jd-related__row p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--rx-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-jd-related__row .cs-jd-related__pay {
  grid-column: 1 / -1; justify-self: start; margin: 0 !important; padding: 6px 14px; border-radius: 999px;
  background: var(--rx-mint); color: var(--rx-ink) !important; font-weight: 600 !important; font-size: 15px;
}
.cs-jd-related__row .cs-jd-related__pay.cs-pay--none { background: var(--rx-fog); color: var(--rx-ink-2) !important; }
@media (max-width: 1023px) { .cs-jd-related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .cs-jd-related__list { grid-template-columns: minmax(0, 1fr); } .cs-jd-related { padding: 48px 0 56px !important; } }

/* job detail page (assets/site/job.css) */
/* one surface language: white consoles, no hairline + shadow doubling */
.cs-jd__head, .cs-jd__block, .cs-jd__card { border: 0 !important; border-radius: var(--rx-r-l) !important; background: var(--rx-paper); box-shadow: var(--rx-console); }
.cs-jd__head { padding: 32px 32px 28px; }
.cs-jd__block { padding: 32px; }
.cs-jd__block h2 { font: 600 22px/1.25 var(--rx-display) !important; letter-spacing: -0.025em !important; color: var(--rx-ink); }
.cs-jd__card-h { font: 600 17px/1.3 var(--rx-display) !important; letter-spacing: -0.02em; color: var(--rx-ink); }
.cs-jd__card--apply { background: var(--rx-band) !important; color: var(--rx-band-ink); box-shadow: 0 30px 60px -30px rgba(10,36,22,.45); }
.cs-jd__card--apply .cs-jd__pay, .cs-jd__card--apply .cs-jd__stats dd { font-family: var(--rx-display); font-weight: 600; letter-spacing: -0.03em; }
.cs-jd__apply { border-radius: 999px !important; background: var(--rx-green) !important; color: #03170b !important; font-weight: 600 !important; }
.cs-jd__apply:hover { background: var(--rx-green-hi) !important; }
.cs-jd__help { box-shadow: none !important; background: var(--rx-mint) !important; }
/* logo: mint tile with deep-green initials, like the results list */
.cs-jd__logo { border-radius: var(--rx-r-m) !important; background: var(--rx-mint) !important; }
.cs-jd__logo-in { font: 600 20px/1 var(--rx-display) !important; color: var(--rx-green-deep) !important; letter-spacing: -0.02em; }
/* title: employer data is often ALL CAPS, so keep it calm (500, modest size) */
.cs-jd__title { font: 500 clamp(24px, 1.2vw + 14px, 32px)/1.2 var(--rx-display) !important; letter-spacing: -0.02em !important; color: var(--rx-ink); overflow-wrap: anywhere; }
.cs-jd__posted { display: inline-block; margin-bottom: 10px !important; padding: 4px 10px; border-radius: 999px; background: var(--rx-mint); color: var(--rx-green-deep) !important; font-size: 12px !important; font-weight: 600 !important; }
.cs-jd__company { font-weight: 500; color: var(--rx-ink-2) !important; }
.cs-jd__save-btn, .cs-jd__saved { border-radius: 999px !important; border: 0 !important; box-shadow: inset 0 0 0 1.5px var(--rx-ink); }
.cs-jd__saved { box-shadow: none; background: var(--rx-mint) !important; color: var(--rx-green-deep) !important; }
.cs-jd__facts { border-top-color: var(--rx-line) !important; }
.cs-jd__facts li { font-size: 15px; color: var(--rx-ink); }
.cs-jd__facts li > span:first-child { font-size: 12px !important; text-transform: uppercase; letter-spacing: .06em; color: var(--rx-ink-2) !important; }
.cs-jd__tags span { background: var(--rx-fog) !important; }
/* breadcrumbs: the current item is the (often uppercase) job title, so mute and clip it */
.cs-jd__crumbs { color: var(--rx-ink-2) !important; font-size: 13px !important; }
.cs-jd__crumbs > :last-child { max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-jd__crumbs a { text-decoration-color: var(--rx-line) !important; }
.cs-share { border-color: var(--rx-line) !important; }
@media (max-width: 575px) { .cs-jd__head, .cs-jd__block { padding: 22px !important; } .cs-jd__crumbs > :last-child { max-width: 100%; } }


/* ======================================================================
   Regression fixes (Dec 4): text contrast + leftover fonts on public pages
   ====================================================================== */
/* bright green (#00bf58) is a fill colour; as text on fog/white it reads ~2.2:1. Text uses green-deep. */
:is(.cs-step__n, .cs-co-cta__k, .cs-legalpage__kicker, .cs-legalpage__label, .cs-co__jobs, .cs-pricing-more__k, .cs-card__chip strong, .cs-blog__kicker, .cs-post__more):not(.ground-inverse *, .footer *) { color: var(--rx-green-deep) !important; }
/* plain inline links in light content (legal pages, prose, notes) */
:is(.cs-legalpage, .cs-legalpage__prose, .cs-legalpage__sec, .cs-prose, .blog_post_content, .accordion-body, dd, .cs-note) a:not([class]):not(.ground-inverse *, .footer *) { color: var(--rx-green-deep) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:is(.cs-legalpage, .cs-legalpage__prose, .cs-legalpage__sec, .cs-prose, .blog_post_content, .accordion-body, dd, .cs-note) a:not([class]):not(.ground-inverse *, .footer *):hover { color: var(--rx-ink) !important; }
/* Bootstrap accordion (FAQs) still carried the old text face */
body:not(.portal-body) .accordion-button, body:not(.portal-body) .accordion-body { font-family: var(--rx-text) !important; }

/* old Bootstrap title banner (FAQs, blog list/detail, jobs by city): drop the photo, use the ink band */
body:not(.portal-body) .pagetitle_bar {
  background-image: none !important; background-color: var(--rx-band) !important; background-attachment: scroll !important;
  margin: 0 16px; padding: 64px 0 !important; border-radius: 0 0 var(--rx-r-band) var(--rx-r-band); overflow: hidden;
}
body:not(.portal-body) .pagetitle_bar::before { display: none !important; }
body:not(.portal-body) .pagetitle_bar h1 { font: 600 clamp(34px, 3.4vw, 56px)/1.05 var(--rx-display) !important; letter-spacing: -0.04em !important; color: var(--rx-band-ink) !important; }
body:not(.portal-body) .pagetitle_bar .breadcrumb li { font-size: 14px !important; }
@media (max-width: 767px) { body:not(.portal-body) .pagetitle_bar { margin: 0 8px; padding: 36px 0 !important; border-radius: 0 0 var(--rx-r-l) var(--rx-r-l); } }
/* the decorative dotted background image behind Bootstrap content sections */
body:not(.portal-body) .common_content_section { background-image: none !important; }
/* jobs by city: console cards instead of 2px black outlines */
.jbc_card { border: 0 !important; border-radius: var(--rx-r-l) !important; background: var(--rx-paper) !important; box-shadow: var(--rx-console); }
.jbc_card:hover { box-shadow: 0 1px 0 var(--rx-line), 0 36px 60px -26px rgba(10, 36, 22, .36) !important; }
.jbc_icon, .jbc_card:hover .jbc_icon { background: var(--rx-mint) !important; color: var(--rx-green-deep) !important; border-radius: var(--rx-r-m) !important; }
.jbc_city { font: 600 18px/1.3 var(--rx-display) !important; letter-spacing: -0.02em; color: var(--rx-ink); }
.jbc_count, .jbc_count strong { color: var(--rx-ink-2) !important; }
.jbc_cta, .jbc_card:hover .jbc_cta { color: var(--rx-green-deep) !important; font-weight: 600; }
.jbc_search .form-control { border-radius: 999px !important; }
/* payment result pages: plain Bootstrap alert -> centred console */
body:not(.portal-body) main .alert-success, body:not(.portal-body) main .alert-danger, body:not(.portal-body) main .alert-warning, body:not(.portal-body) main .alert-info {
  border: 0 !important; border-radius: var(--rx-r-l) !important; background: var(--rx-paper) !important; box-shadow: var(--rx-console); padding: 40px 32px !important; color: var(--rx-ink-2) !important;
}
body:not(.portal-body) main :is(.alert-success, .alert-danger, .alert-warning, .alert-info) :is(h1, h2, h3, h4) { color: var(--rx-ink) !important; font-family: var(--rx-display) !important; font-weight: 600 !important; letter-spacing: -0.03em; }
body:not(.portal-body) main .alert-success::before { content: "✓"; display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: var(--rx-mint); color: var(--rx-green-deep); font: 700 22px/1 var(--rx-text); }


/* Similar jobs: balanced grid whatever the count. 6-track grid, cards span 2 (3 per row);
   a last row of 2 splits the width in halves, a set of 4 becomes 2x2, a lone last card spans the row. */
.cs-jd-related__list { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; grid-auto-rows: 1fr; }
.cs-jd-related__row { grid-column: span 2; height: 100%; }
.cs-jd-related__row:nth-child(3n+1):nth-last-child(2), .cs-jd-related__row:nth-child(3n+1):nth-last-child(2) + .cs-jd-related__row { grid-column: span 3; }
.cs-jd-related__row:first-child:nth-last-child(4), .cs-jd-related__row:first-child:nth-last-child(4) ~ .cs-jd-related__row { grid-column: span 3; }
.cs-jd-related__row:nth-child(3n+1):last-child { grid-column: span 6; }
.cs-jd-related__row p { min-height: 3em; }   /* meta always reserves two lines, so titles and pills line up */
@media (max-width: 1279px) {
  .cs-jd-related__list .cs-jd-related__row { grid-column: span 3 !important; }
  .cs-jd-related__list .cs-jd-related__row:nth-child(odd):last-child { grid-column: span 6 !important; }
}
@media (max-width: 639px) { .cs-jd-related__list .cs-jd-related__row { grid-column: span 6 !important; } }

/* ======================================================================
   Home: carded sections (Dec 4) — latest jobs, three steps, town + industry
   ====================================================================== */
/* latest jobs: one white console, hairline-divided rows (matches /jobs/list) */
#jobs .cs-jobrows { background: var(--rx-paper); border-radius: var(--rx-r-l); box-shadow: var(--rx-console); padding: 4px 0; overflow: hidden; }
#jobs .cs-jobrows > li { border-bottom: 1px solid var(--rx-line) !important; padding: 0 !important; }
#jobs .cs-jobrows > li:last-child { border-bottom: 0 !important; }
#jobs .cs-jobrow, #jobs .cs-jobrows > li:first-child .cs-jobrow { padding: 20px 28px !important; border: 0 !important; transition: background-color .15s ease; }
#jobs .cs-jobrow:hover { background: #f6f9f7; }
@media (max-width: 639px) { #jobs .cs-jobrow, #jobs .cs-jobrows > li:first-child .cs-jobrow { padding: 18px 20px !important; } }

/* three steps: each step a card, photo bleeding to the edges, text padded inside, equal heights */
#apply .cs-steps { align-items: stretch; }
#apply .cs-step { background: var(--rx-paper); border: 0 !important; border-radius: var(--rx-r-l) !important; box-shadow: var(--rx-console); overflow: hidden;
  padding: 0 0 28px; gap: 8px; align-content: start; transition: transform .2s ease, box-shadow .2s ease; }
#apply .cs-step:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--rx-line), 0 36px 60px -26px rgba(10, 36, 22, .36); }
#apply .cs-step__img { margin: 0 0 12px !important; border-radius: 0 !important; }
#apply .cs-step > :not(.cs-step__img) { margin-inline: 28px; }
#apply .cs-step__n { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--rx-mint); font-size: 12px; font-weight: 600; }
#apply .cs-step__t { margin-top: 2px; }
#apply .cs-step p { color: var(--rx-ink-2); }
@media (max-width: 639px) { #apply .cs-step > :not(.cs-step__img) { margin-inline: 20px; } #apply .cs-step { padding-bottom: 22px; } }

/* town + industry: both lists in one console beside the photo, towns calmer so they don't rival the h2 */
#browse .grid--top { align-items: stretch; }
#browse .span-6:has(.cs-towns) { display: flex; flex-direction: column; }
#browse .cs-towns { background: var(--rx-paper); border-radius: var(--rx-r-l) var(--rx-r-l) 0 0; box-shadow: 0 30px 60px -30px rgba(10,36,22,.28); padding: 12px 28px 4px; }
#browse .cs-industries { flex: 1; margin-top: 0 !important; background: var(--rx-paper); border-radius: 0 0 var(--rx-r-l) var(--rx-r-l); box-shadow: 0 1px 0 var(--rx-line), 0 30px 60px -30px rgba(10,36,22,.28); padding: 4px 28px 12px; }
#browse .cs-towns a { padding-block: 14px !important; border-bottom: 1px solid var(--rx-line); align-items: center !important; }
#browse .cs-towns__name { font-size: clamp(22px, 1vw + 12px, 28px) !important; font-weight: 600; letter-spacing: -0.03em; }
#browse .cs-towns__n { padding: 4px 10px; border-radius: 999px; background: var(--rx-mint); color: var(--rx-green-deep) !important; font-size: 12px; font-weight: 600; }
#browse .cs-industries > li { border-bottom-color: var(--rx-line) !important; }
#browse .cs-industries > li:last-child { border-bottom: 0 !important; }
#browse .cs-industries a, #browse .cs-industries > li:first-child a { padding-block: 14px !important; }
#browse .cs-industries > li:first-child { padding-top: 6px !important; }
#browse .cs-industries .rows__value { color: var(--rx-ink-2); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { #browse .cs-towns a:hover .cs-towns__name, #browse .cs-industries a:hover .rows__name { color: var(--rx-green-deep) !important; } }
@media (max-width: 639px) { #browse .cs-towns { padding: 8px 20px 4px; } #browse .cs-industries { padding: 4px 20px 8px; } }

/* ======================================================================
   About: intro + "connects you" as consoles (same structure as the home page)
   ====================================================================== */
#about-top .cs-about__intro { align-items: stretch; }
#about-top .cs-about__intro > .span-7 {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--rx-paper); border-radius: var(--rx-r-l); box-shadow: var(--rx-console); padding: 48px;
}
#about-top .cs-about__intro > .span-7 .cs-app__head { margin-bottom: 20px; }
#about-top .cs-about__intro > .span-7 .cs-prose { color: var(--rx-ink-2); max-width: 62ch; }
#about-top .cs-about__actions { margin: 28px 0 0 !important; }
#about-top .cs-about__photo { height: 100%; aspect-ratio: auto; min-height: 420px; }
@media (max-width: 1023px) { #about-top .cs-about__photo { aspect-ratio: 4 / 3; min-height: 0; height: auto; } }
@media (max-width: 639px) { #about-top .cs-about__intro > .span-7 { padding: 28px 22px; } }

/* connects you: one console, head on top, the four features as flat tiles inside */
#connect > .wrap { background: var(--rx-paper); border-radius: var(--rx-r-l); box-shadow: var(--rx-console); padding: 48px !important; }
#connect .cs-app__head { margin-bottom: 32px; max-width: 70ch; }
#connect .cs-prose--lead { color: var(--rx-ink-2); }
#connect .cs-feature { background: var(--rx-fog) !important; box-shadow: none !important; border: 0 !important; border-radius: var(--rx-r-m) !important; padding: 20px !important; align-items: center; }
#connect .cs-feature span { font-weight: 600; color: var(--rx-ink); }
#connect .cs-feature img { width: 44px !important; height: 44px !important; padding: 10px; border-radius: 12px; background: var(--rx-paper) !important; }
@media (max-width: 1023px) { #connect > .wrap { margin-inline: 16px; } }
@media (max-width: 639px) { #connect > .wrap { padding: 28px 20px !important; margin-inline: 12px; } }
@media (min-width: 1280px) {
  #about-top .cs-about__photo { position: relative; min-height: 480px; }
  #about-top .cs-about__photo :is(picture, img) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}
#connect .cs-app__head { margin-bottom: 24px !important; }


/* Home hero: the photo card is a vertical video from 1280px (the only width where the card is tall); below that it is hidden and "Jobs by town" takes its slot */
.cs-card__video { display: none; }
@media (max-width: 1279px) {
  .cs-card--photo { display: none !important; }
  .cs-hero__cards .cs-card--towns { display: flex !important; }
}
@media (min-width: 1280px) {
  .cs-card--photo .cs-card__video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; background: #0a2416; }
  .cs-card--photo .cs-card__chip { z-index: 1; }
  .cs-card--photo { overflow: hidden; border: 0 !important; box-shadow: 0 0 0 1px var(--rx-line), var(--rx-console) !important; background: #0a2416; }
}


/* FAQs as an accordion (pricing pages: frontend/partials/pricing-support, native <details>) */
.cs-faq--accordion { display: grid; gap: 0; background: var(--rx-paper); border-radius: var(--rx-r-l); box-shadow: var(--rx-console); padding: 4px 28px; }
.cs-faq--accordion .cs-faq__item { border-bottom: 1px solid var(--rx-line); padding: 0; }
.cs-faq--accordion .cs-faq__item:last-child { border-bottom: 0; }
.cs-faq--accordion .cs-faq__q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font: 500 17px/1.35 var(--rx-text); color: var(--rx-ink); }
.cs-faq--accordion .cs-faq__q::-webkit-details-marker { display: none; }
.cs-faq--accordion .cs-faq__q::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--rx-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2416' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s ease; }
.cs-faq--accordion .cs-faq__item[open] > .cs-faq__q::after { transform: rotate(45deg); }
.cs-faq--accordion .cs-faq__q:hover { color: var(--rx-green-deep); }
.cs-faq--accordion .cs-faq__q:focus-visible { outline-offset: 4px; border-radius: 6px; }
.cs-faq--accordion .cs-faq__a { padding: 0 44px 20px 0; line-height: 1.7; color: var(--rx-ink-2); }
.cs-faq--accordion .cs-faq__a a { color: var(--rx-green-deep); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) { .cs-faq--accordion { padding: 2px 18px; } .cs-faq--accordion .cs-faq__a { padding-right: 0; } }

/* the mobile-menu "Sign in" (nav__item--account) is hidden at desktop by site.css, which layouts.frontend
   (job page, blogs, FAQs) does not load, so those pages showed "Sign in" twice */
.cs-shell .nav__item.nav__item--account, .nav__item--account { display: none; }
@media (max-width: 1023px) { .cs-shell .nav__item.nav__item--account, .nav__item--account { display: flex; } .cs-shell .nav__actions > .nav__link, .nav__actions > .nav__link { display: none; } }

/* ======================================================================
   2. PORTAL (layouts.portal: admin, recruiter, candidate; body.portal-body)
   portal.css is token-driven, so the Resdex app look is a token remap:
   canvas ground, white 256px sidebar and cards, Reddit Sans interface,
   Geologica headings, 8/12/16 radii, hairlines. One green does both jobs
   (button fill with a white label, and link text), so it is the AA-safe
   brand-700 rather than the bright fill green.
   ====================================================================== */
body.portal-body,
body.portal-body .portal {
  --p-bg: #f5f7f5;
  --p-surface: #f5f7f5;
  --p-card: #ffffff;
  --p-ink: #0f1d16;
  --p-muted: #5b6a61;
  --p-accent: #0b7a41;
  --p-action: #0b7a41;
  --p-action-hover: #096335;
  --p-action-ink: #ffffff;
  --p-line: #dde3de;
  --p-line-soft: #e9eeea;
  --p-line-strong: #c9d1cb;
  --p-green-soft: #d4f7e3;
  --p-green-line: #a6e6c3;
  --font-display: "Geologica", system-ui, sans-serif;
  --font-text: "Reddit Sans", system-ui, sans-serif;
  --display-weight: 600;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --p-shadow: 0 1px 2px rgb(15 29 22 / .04), 0 6px 20px rgb(15 29 22 / .05);
  --sidebar-w: 256px;
  /* the dashboard layer (assets/css/front/dashboard.css) reads the --cs-* tokens that :root maps to the public greens */
  --cs-surface: #ffffff;
  --cs-ink: #0f1d16;
  --cs-muted: #5b6a61;
  --cs-action: #0b7a41;
  --cs-action-hover: #096335;
  --cs-line: #dde3de;
  --cs-display: "Geologica", system-ui, sans-serif;
  --cs-text: "Reddit Sans", system-ui, sans-serif;
}
body.portal-body { background: #f5f7f5; }
body.portal-body .portal :is(h1, h2, h3, .card-title, .modal-title) { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
body.portal-body .portal :is(button, input, select, textarea, optgroup) { font-family: var(--font-text); }

/* status colours from the old admin theme (Sneat/Bootstrap) are too light to read on white */
body.portal-body .text-success, body.portal-body td span[style*="28a745"] { color: #0b7a41 !important; }
body.portal-body .text-warning { color: #a15c07 !important; }
body.portal-body .btn-outline-warning { color: #a15c07 !important; border-color: #e7c27d !important; }
body.portal-body .btn-outline-warning:hover { background: #fdf3e1 !important; }
body.portal-body .btn-info { background: #ffffff !important; border: 1px solid #c9d1cb !important; color: #0f1d16 !important; }
body.portal-body .btn-info:hover { background: #f5f7f5 !important; }
/* inline code (API keys, SEO paths): Bootstrap pink on grey -> ink on the canvas, and long keys wrap on phones */
body.portal-body code { color: #0f1d16 !important; background: #eef2ef !important; padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* =========================================================================
   3. AUTH (layouts.app: admin /login, password reset, verify)
   Matches the public /sign-in card: fog page, white console card, Geologica
   heading, fog inputs, green pill button.
   ========================================================================= */
body.rx-auth { background: var(--rx-fog) !important; font-family: var(--rx-text) !important; color: var(--rx-ink); }
body.rx-auth .authentication-wrapper { min-height: 100vh; }
body.rx-auth .authentication-wrapper .authentication-inner { max-width: 480px; width: 100%; }
body.rx-auth .authentication-wrapper .card { border: 0 !important; border-radius: var(--rx-r-l) !important; box-shadow: var(--rx-console) !important; background: #fff !important; max-width: none !important; padding: 16px 12px; }
body.rx-auth .authentication-wrapper .card::before, body.rx-auth .authentication-wrapper::before, body.rx-auth .authentication-wrapper::after { display: none !important; }
body.rx-auth .app-brand img { height: 64px !important; width: auto !important; max-width: 100%; padding-bottom: 8px !important; }
body.rx-auth :is(h1, h2, h3, h4, h5) { font-family: var(--rx-display) !important; font-weight: 600 !important; letter-spacing: -0.03em; color: var(--rx-ink) !important; }
body.rx-auth h4 { font-size: 1.75rem !important; margin-bottom: .35rem !important; }
body.rx-auth p, body.rx-auth .form-check-label { color: #4a5c51; }
body.rx-auth .form-label { font: 500 .9rem/1.3 var(--rx-text) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--rx-ink) !important; }
body.rx-auth .form-control { border-radius: var(--rx-r-m) !important; border: 1.5px solid var(--rx-line) !important; background: var(--rx-fog) !important; min-height: 48px; font-size: 1rem; color: var(--rx-ink) !important; }
body.rx-auth .input-group { flex-wrap: nowrap; border-radius: var(--rx-r-m); box-shadow: none !important; }
body.rx-auth .input-group > .form-control { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; border-right: 0 !important; }
body.rx-auth .input-group > .input-group-text { border: 1.5px solid var(--rx-line) !important; border-left: 0 !important; background: var(--rx-fog) !important; border-radius: 0 var(--rx-r-m) var(--rx-r-m) 0 !important; color: #4a5c51; }
body.rx-auth .form-control:focus, body.rx-auth .input-group:focus-within > * { border-color: var(--rx-green) !important; background: #fff !important; }
body.rx-auth .form-control:focus { outline: none !important; box-shadow: 0 0 0 4px rgba(0, 191, 88, .15) !important; }
body.rx-auth .input-group:focus-within .form-control:focus { box-shadow: none !important; }
body.rx-auth .input-group:focus-within { box-shadow: 0 0 0 4px rgba(0, 191, 88, .15) !important; }
body.rx-auth .form-control.is-invalid { border-color: #b93b35 !important; }
body.rx-auth .form-check-input:checked { background-color: var(--rx-brand-700) !important; border-color: var(--rx-brand-700) !important; }
body.rx-auth .btn-primary, body.rx-auth .authentication-inner .btn-primary { background: var(--rx-green) !important; border-color: var(--rx-green) !important; color: #03170b !important; border-radius: 999px !important; font-weight: 600 !important; min-height: 48px; font-size: 1rem; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14) !important; }
body.rx-auth .btn-primary:hover, body.rx-auth .btn-primary:focus-visible { background: #00a94e !important; border-color: #00a94e !important; }
body.rx-auth a:not(.btn) { color: var(--rx-brand-700) !important; text-decoration: underline; text-underline-offset: 3px; }
body.rx-auth .app-brand a { text-decoration: none; }
body.rx-auth .alert { border-radius: var(--rx-r-m) !important; }
body.rx-auth .btn-link { color: var(--rx-brand-700) !important; }

/* "Already registered? Sign in" on the two registration forms */
.register_signin { margin: 10px 0 0; color: #4a5c51; font-size: 1rem; }
.register_signin a { color: var(--rx-brand-700) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.register_signin--inline { margin: 0 0 0 auto; align-self: center; }
@media (max-width: 575px) { .register_signin--inline { margin: 8px 0 0; flex-basis: 100%; } .form_group:has(.register_signin--inline) { flex-wrap: wrap; } }

/* ============================================================
   4. PHONE TYPE SCALE (< 768px)
   The desktop clamp() minimums were set for tablets up; on a
   390px phone headings took 3-4 lines and pushed content down.
   One smaller scale for phones, so nothing jumps on scroll.
   ============================================================ */
@media (max-width: 767px) {
  :root { --t-lead: 16px; --t-card: 16px; --t-h3: 20px; --t-h2: 25px; --t-h1: 30px; --t-stat: 26px; }

  /* hero + page heads */
  section.hero.cs-hero h1 { font-size: 34px; line-height: 1.02; }
  section.hero.cs-hero .cs-hero__h1b { font-size: 18px; }
  section.hero.cs-hero .hero__lead { font-size: 16px; }
  section.cs-about .cs-app__head h1 { font-size: 34px !important; line-height: 1.02 !important; }
  section.cs-about .cs-app__lead, .cs-app__lead { font-size: 16px; }
  body:not(.portal-body) .pagetitle_bar h1 { font-size: 28px !important; }
  body:not(.portal-body) h1.playfairDisplay, body:not(.portal-body) h1.fs-40 { font-size: 28px !important; }
  body .cs-blog__head h1 { font-size: 28px; }
  body .cs-article__title { font-size: 26px; }
  body .cs-article__body h2 { font-size: 21px; }

  /* section heads and cards */
  .cs-sec-h, .cs-pricing-more__h, .cs-jd-related__head h2 { font-size: 25px !important; }
  .cs-facts dd { font-size: 26px !important; }
  .cs-svc__t { font-size: 20px !important; }
  .cs-value__v { font-size: 18px !important; }
  .cs-card-lite__h { font-size: 18px !important; }
  .cs-plan__price { font-size: 32px; }
  .cs-towns__name, #browse .cs-towns__name { font-size: 18px !important; }
  .accordion-button, .cs-faq__q { font-size: 16px !important; }

  /* job page */
  body .cs-jd__title, body .cs-apply .cs-jd__title { font-size: 22px !important; }
  body .cs-jd__block h2, body .cs-apply__form h2 { font-size: 20px !important; }
  .cs-jd__pay { font-size: 22px; }
  .cs-jd__stats dd { font-size: 19px; }
  .cs-jd__help strong, .cs-jd__card-h, body .cs-jd-related__row h3 { font-size: 16px !important; }
  .cs-jd__apply { font-size: 16px; }

  /* closing band + footer */
  .cs-shell .closing__cta h2 { font-size: 26px; }
  .cs-shell .closing__cta p { font-size: 16px; }
  .cs-shell .btn--xl { height: 56px; padding: 0 24px; font-size: 18px; }
  .cs-shell .footer__lede { font-size: 16px; }
}
