/* One look for the whole site (v36). Loaded by index.html, privacy.html, terms.html and the browse pages
   (/companies/, /locations/, /industries/, /careers/), so the top bar, the greens, the buttons and the rating arch
   are the same everywhere. Change a colour here and it changes on every page.

   Green is never flat: buttons and badges use the gradients below. Large surfaces (the top bar, the title bands, the first section of the
   home page, the ratings and employer pages) are never deep green: they all sit on ONE very light mint gradient (--lw-sky, painted on the body).
   Amber is only for "rate" actions and middling scores. In the job detail (v38) each block has its own edge colour: green job, amber Rate, blue CV match, violet skills, slate advert text.

   Rules in this file start with "html " on purpose: the Tailwind script that styles the app adds its rules after this
   file, and "html .x" is more specific than a single Tailwind class, so these win. */
:root {
  --lw-w: 1600px;      /* THE page width: the same as the Jobs board. Every page, the top bar and the footer use it. */
  --lw-pad: 12px;      /* the side margin; 24px from 640px up (below) */
  --lw-sky-h: 720px;   /* how far down the light gradient reaches on the pages that scroll */
  --lw-ink: #14231d;
  --lw-muted: #5d7168;
  --lw-line: #d7e3dd;
  --lw-paper: #f2f6f4;
  --lw-forest: #0a3d2e;
  --lw-emerald: #0f8a64;
  --lw-mint: #b7ecd6;
  --lw-amber: #f59e0b;

  /* the one light gradient: a soft mint glow at the top centre fading to the page colour. Painted on the body, so the top bar,
     the title band and the first section of a page are one piece. */
  --lw-sky: radial-gradient(75% 55% at 50% 0%, rgba(167, 243, 208, .60), rgba(167, 243, 208, 0) 72%), linear-gradient(180deg, #eefaf5 0%, #f7fcfa 55%, var(--lw-paper) 100%);
  --lw-grad-btn: linear-gradient(135deg, #047857 0%, #059669 52%, #0b9a70 100%);
  --lw-grad-btn-hover: linear-gradient(135deg, #065f46 0%, #047857 52%, #088a63 100%);
  --lw-grad-arch: linear-gradient(160deg, #16b583 0%, #047857 100%);
  --lw-grad-soft: linear-gradient(135deg, #ecfdf5 0%, #e3f6ef 100%);
}
@media (min-width: 640px) { :root { --lw-pad: 24px; } }

/* ---------- the light gradient behind everything near the top ---------- */
html body { background-color: var(--lw-paper); background-image: var(--lw-sky); background-repeat: no-repeat; background-size: 100% var(--lw-sky-h); }
/* Home: the first section fills the screen, so the gradient reaches the bottom of it; everything below is plain white. */
html body.on-home {
  background-color: #ffffff; background-size: 100% 100vh;
  background-image: radial-gradient(75% 55% at 50% 0%, rgba(167, 243, 208, .60), rgba(167, 243, 208, 0) 72%), linear-gradient(180deg, #eefaf5 0%, #f7fcfa 55%, #ffffff 100%);
}
/* The ratings page is transparent so the body gradient shows through. The employer and position pages cover the whole screen: they paint it themselves. */
html #ratings-workspace { background: transparent; }
html #employer-page, html #position-page { background-color: var(--lw-paper); background-image: var(--lw-sky); background-repeat: no-repeat; background-size: 100% var(--lw-sky-h); }

/* ---------- top bar: the same on every page ---------- */
html .lw-top { background: transparent; color: var(--lw-ink); border-bottom: 1px solid rgba(15, 138, 100, .14); }
html .lw-top-in {
  max-width: var(--lw-w); margin: 0 auto; padding: 0 var(--lw-pad); height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
@media (min-width: 640px) { html .lw-top-in { height: 64px; gap: 16px; } }
/* Phones: the search drops to its own full-width row under the logo and buttons (where the page shows one). */
@media (max-width: 639px) {
  html .lw-top-in { height: auto; min-height: 56px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
  html .lw-search { order: 3; flex: 1 1 100%; max-width: none; }
}
html .lw-brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; color: #0b2a20; cursor: pointer; }
html .lw-brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }
html .lw-brand-name { display: block; font-weight: 700; font-size: 1.125rem; line-height: 1; letter-spacing: -.01em; color: #0b2a20; }
html .lw-brand-tag { display: none; margin-top: 2px; font-size: 11px; line-height: 1.2; white-space: nowrap; color: #3d5f50; }
@media (min-width: 1024px) { html .lw-brand-tag { display: block; } }
html .lw-slogan { margin: 0; padding: 4px 0; font-size: 11px; line-height: 16px; background: transparent; color: #3d5f50; }
html .lw-slogan > span { display: block; max-width: var(--lw-w); margin: 0 auto; padding: 0 var(--lw-pad); }
@media (min-width: 1024px) { html .lw-slogan { display: none; } }

html .lw-search { flex: 1 1 auto; min-width: 0; max-width: 36rem; position: relative; margin: 0; }
html .lw-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #6b7f76; pointer-events: none; }
html .lw-search input {
  display: block; width: 100%; padding: 8px 32px 8px 36px; font: inherit; font-size: 14px; line-height: 20px; color: var(--lw-ink);
  background: #fff; border: 1px solid var(--lw-line); border-radius: 10px;
}
html .lw-search input::placeholder { color: #7a8d84; }
html .lw-search input:focus { outline: none; background: #fff; border-color: var(--lw-emerald); box-shadow: 0 0 0 3px rgba(15, 138, 100, .2); }

html .lw-acts { display: flex; align-items: center; gap: 8px; flex: none; }

/* The name menu in the top bar (js/member.js): Applications, Saved jobs, Saved searches, My CV, Sign out. */
html .mm { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; padding: 8px; z-index: 60; text-align: left; background: #fff; border: 1px solid #d1fae5; border-radius: 14px; box-shadow: 0 22px 44px -18px rgba(10, 61, 46, .4); }
html .mm-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 15px; font-weight: 600; color: #0b2a20; text-align: left; cursor: pointer; }
html .mm-item i { font-style: normal; font-weight: 500; color: #5d7168; }
html .mm-item:hover { background: #ecfdf5; }
html .mm-item:focus-visible { outline: 3px solid var(--lw-amber); outline-offset: -2px; }
html .mm hr { border: 0; border-top: 1px solid #eef3f0; margin: 6px 4px; }
/* Layout for buttons that are not toggled by the app (the browse pages). In the app the same buttons keep Tailwind layout classes. */
html .lw-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 12px; line-height: 16px; font-weight: 600;
  border-radius: 8px; border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
}
@media (min-width: 640px) { html .lw-btn { padding: 8px 12px; font-size: 14px; line-height: 20px; } }
html .lw-btn .lw-star { color: #fbbf24; }
html .lw-ghost { background: #fff; border-color: var(--lw-line); color: var(--lw-forest); }
html .lw-ghost:hover { background: #ecfdf5; border-color: #bfe3d2; }
html .lw-btn.lw-solid { padding-left: 14px; padding-right: 14px; }
@media (min-width: 640px) { html .lw-btn.lw-solid { padding-left: 16px; padding-right: 16px; } }
html .lw-solid { background: var(--lw-grad-btn); border-color: transparent; color: #fff; font-weight: 700; }
html .lw-solid:hover { background: var(--lw-grad-btn-hover); }
@media (max-width: 639px) { html .lw-btn .lw-hide-sm { display: none; } }

/* The browse row: the same six places on every page; the current one is underlined in amber. */
html .lw-nav { background: transparent; border-top: 1px solid rgba(15, 138, 100, .10); }
html .lw-nav-in { max-width: var(--lw-w); margin: 0 auto; padding: 0 var(--lw-pad); display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
html .lw-nav-in::-webkit-scrollbar { display: none; }
html .lw-nav-in > a, html .lw-nav-in > button {
  flex: none; padding: 8px 12px; font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; color: #3d5f50;
  background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; text-decoration: none; cursor: pointer; white-space: nowrap;
}
html .lw-nav-in > a:hover, html .lw-nav-in > button:hover { color: #0b2a20; }
html .lw-nav-in > [aria-current="page"] { color: #0b2a20; border-bottom-color: var(--lw-amber); }
/* Phones: the Home and Ratings pages keep a fixed top bar and every pixel counts, so the row steps aside there. */
@media (max-width: 767px) {
  body.on-home .lw-nav, body.on-ratings .lw-nav { display: none; }
}

/* "Saved" is switched on: board.js adds bg-amber-50 to the button */

/* ---------- title bands (Ratings, Companies, Locations, Industries, Careers) ---------- */
html .lw-band { background: transparent; color: var(--lw-ink); }
html .lw-band h1 { color: #0b2a20; }
html .lw-band .lw-lead { color: #3d5f50; }

/* ---------- green is never flat: main buttons and badges ---------- */
html .bg-emerald-600, html .bg-emerald-500 { background-image: var(--lw-grad-btn); }
html .hover\:bg-emerald-700:hover, html .hover\:bg-emerald-600:hover { background-image: var(--lw-grad-btn-hover); }
html .bg-emerald-700 { background-image: var(--lw-grad-btn-hover); }
html .bg-emerald-50\/60 { background-image: var(--lw-grad-soft); }

/* ---------- the rating arch (the shape of the logo's door): the same on every list ---------- */
html .lw-arch {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 48px; border-radius: 22px 22px 8px 8px;
  font-weight: 800; font-size: 1.05rem; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; background: var(--lw-grad-arch);
}
html .lw-arch.mid { background: linear-gradient(160deg, #fbbf24 0%, #f59e0b 100%); color: #3b2300; }
html .lw-arch.lo { background: linear-gradient(160deg, #fb7185 0%, #e11d48 100%); }
html .lw-arch.none { background: transparent; border: 2px dashed #b4c7be; color: #93a79f; font-weight: 600; }
html .lw-arch.sm { width: 36px; height: 40px; border-radius: 18px 18px 7px 7px; font-size: .95rem; }

/* ---------- title band layout, the search card that overlaps it, and the pill buttons (shared by every page with a band) ---------- */
.hero { padding: 34px 0 74px; }
.hero-flat { padding-bottom: 30px; }
.hero-in { max-width: var(--lw-w); margin: 0 auto; padding: 0 var(--lw-pad); }
/* THE content width: every page, every screen size. It is the width of the Jobs board (--lw-w, 1600px at most) and it follows the browser
   window up and down. The top bar, the title bands, the boxes on the home page, Ratings, employer, position, tracker, Privacy, Terms, the browse
   pages and the footer all use it, with the same side margin (--lw-pad). Do not give a page its own width. */
.lw-w { max-width: var(--lw-w); margin-left: auto; margin-right: auto; padding-left: var(--lw-pad); padding-right: var(--lw-pad); }
/* The Jobs board is the same width, and its boxes start and end on the same two page edges as the boxes on every other page: the job cards
   start at the left edge, the job detail card ends at the right edge. (Between the two panes the gap stays as it is.) */
html #list-pane > * { padding-left: var(--lw-pad); }
html #searches-panel { left: var(--lw-pad); }
html #detail-pane .pc-job { margin-right: var(--lw-pad); }
html #detail-body { padding-right: var(--lw-pad); }
@media (max-width: 1023px) {
  html #detail-pane .pc-job { margin-left: var(--lw-pad); }
  html #detail-body { padding-left: var(--lw-pad); }
}
.hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.lead { margin: 12px 0 0; max-width: 40rem; font-size: clamp(1rem, 2.4vw, 1.2rem); }

.tools { margin-top: -62px; position: relative; display: flex; gap: 8px; padding: 10px; background: #fff; border: 1px solid var(--lw-line); border-radius: 16px; box-shadow: 0 10px 30px -14px rgba(11, 59, 46, .45); }
.find { flex: 1 1 auto; min-width: 0; }
.find input, .sort select { width: 100%; height: 46px; font: inherit; color: var(--lw-ink); background: #f7faf8; border: 1px solid var(--lw-line); border-radius: 10px; padding: 0 12px; }
.find input { padding-left: 14px; }
.sort { flex: 0 0 auto; }
.sort select { min-width: 9.5rem; font-weight: 600; }
.chip { flex: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--lw-forest); background: #fff; border: 1px solid var(--lw-line); border-radius: 999px; padding: 6px 13px; cursor: pointer; }
.chip span { color: var(--lw-muted); font-weight: 500; margin-left: 2px; }
.chip:hover { border-color: #059669; }
.chip.on { background: var(--lw-grad-btn); color: #fff; border-color: #047857; }
.chip.on span { color: #a7e8cf; }

/* ---------- the job detail: every block is a card, and the colour of the edge says what the block is (v38) ----------
   Never set "display" on these: the app hides and shows some of them with Tailwind's "hidden" class.
   Level 1, green: the job itself and Apply.            Level 2, solid coloured head: things to do (Rate = amber, CV match = blue).
   Level 3, quiet, coloured left edge: things to read (skills = violet, the advert text = slate). */
html .pane-card {
  --pc-pad: 20px; position: relative; background: #fff; border-radius: 16px; padding: var(--pc-pad);
  border: 1px solid var(--lw-line); box-shadow: 0 1px 2px rgba(20, 35, 29, .04);
}
@media (min-width: 640px) { html .pane-card { --pc-pad: 24px; } }

/* the coloured band at the top of the cards you act on; it reaches the edges of the card */
html .pane-card .pc-head {
  margin: calc(var(--pc-pad) * -1) calc(var(--pc-pad) * -1) 18px; padding: 16px var(--pc-pad); border-radius: 13px 13px 0 0;
}
html .pane-card .pc-head h2 { margin: 0; line-height: 1.25; }
html .pane-card .pc-head p { margin-bottom: 0; line-height: 1.45; }

/* level 1: the job */
html .pc-job { border: 2px solid #0f8a64; box-shadow: 0 0 0 4px rgba(15, 138, 100, .09), 0 14px 28px -18px rgba(10, 61, 46, .6); }

/* level 2: Rate this role (amber, the colour of the rating arch) */
html .pc-rate { border: 2px solid #e8a010; box-shadow: 0 0 0 4px rgba(245, 158, 11, .12), 0 14px 28px -18px rgba(146, 84, 0, .55); }
html .pc-rate .pc-head { background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%); color: #3b2300; }
html .pc-rate .pc-head h2 { color: #3b2300; }
html .pc-rate .pc-head p { color: #5a3a06; }
html .pc-rate .pc-btn { background: #fff; background-image: none; color: #7a4a00; border: 2px solid #7a4a00; box-shadow: 0 2px 6px rgba(59, 35, 0, .25); }
html .pc-rate .pc-btn:hover { background: #fff7e0; }

/* level 2: CV match (blue, the strongest block after the job: a solid band, white text, a white button) */
html .pc-cv { border: 2px solid #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), 0 14px 28px -18px rgba(30, 64, 175, .6); }
html .pc-cv .pc-head { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 52%, #3b82f6 100%); color: #fff; }
html .pc-cv .pc-head h2 { color: #fff; }
html .pc-cv .pc-head p { color: #dbeafe; }
html .pc-cv .pc-btn { background: #fff; background-image: none; color: #1e3a8a; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .35); }
html .pc-cv .pc-btn:hover { background: #eff6ff; }
html .pc-cv .pc-link { color: #dbeafe; }
html .pc-cv .pc-link:hover { color: #fff; }

/* the list of written ratings: space above it only when it has something in it (so an empty card does not end with a gap) */
html #rt-list:not(:empty) { margin-top: 20px; }

/* level 3: things to read */
html .pc-esco { border: 1px solid #ddd3f7; border-left: 6px solid #7c3aed; }
html .pc-text, html .pc-thin { border: 1px solid #d5dde5; border-left: 6px solid #64748b; }
html .pc-thin { background: #f8fafc; border-style: dashed dashed dashed solid; }
html .pc-thin-link { color: #0a3d2e; }
html .pc-thin-link:hover { color: #0f8a64; }

/* ---------- bottom ---------- */
.foot { border-top: 1px solid var(--lw-line); background: #fff; }
.foot-in { max-width: var(--lw-w); margin: 0 auto; padding: 22px var(--lw-pad) 30px; color: var(--lw-muted); font-size: .9rem; }
.foot-in p { margin: 0; }
.foot-links { margin-top: 10px !important; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--lw-forest); font-weight: 600; text-underline-offset: 3px; }
.foot-copy { margin-top: 12px !important; color: var(--lw-muted); font-size: .8rem; }

@media (max-width: 560px) {
  .tools { flex-wrap: wrap; }
  .find, .sort { flex: 1 1 100%; }
  .sort select { width: 100%; }
}

/* Keyboard focus in the top bar */
html .lw-top a:focus-visible, html .lw-top button:focus-visible { outline: 3px solid var(--lw-amber); outline-offset: 2px; }

/* ---------- the position page: the job board's detail view, borrowed (js/position.js) ----------
   The title band already names the job and the employer, and the ratings card has the other review sites, so those parts of the
   job card are left out here. The cards take the page's one column (see .lw-w) and the advert text fills each card edge to edge. */
#position-page #detail-content { display: block; }
#position-page #detail-content .pc-job { margin: 0; }
#position-page #dt-company-banner, #position-page #dt-title, #position-page #dt-ratings-row { display: none; }
#position-page #detail-body { padding: 0; }
#position-page #detail-body > * + *, #position-page #detail-content > * + * { margin-top: 20px; }
