/* The browse pages: Companies, Locations, Industries, Careers (made by make_pages.py, filled in by js/page.js).
   A light green top (the shared gradient, theme.css), white rows, and the arch from the logo: it frames every rating. */
:root {
  --ink: var(--lw-ink);
  --muted: var(--lw-muted);
  --line: var(--lw-line);
  --paper: var(--lw-paper);
  --forest: var(--lw-forest);
  --forest-2: #124a38;
  --mint: var(--lw-mint);
  --emerald: #059669;
  --amber: var(--lw-amber);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);   /* the light gradient on top of it comes from theme.css (html body) */
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
html .lw-search input:focus-visible { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stats { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stats li { border: 1px solid #bfe3d2; background: #fff; border-radius: 999px; padding: 4px 14px; color: #3d5f50; font-size: .95rem; }
.stats strong { color: #0f8a64; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- body ---------- */
.wrap { max-width: var(--lw-w); margin: 0 auto; padding: 28px var(--lw-pad) 72px; }
.h2 { margin: 30px 0 12px; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.h2:first-child { margin-top: 0; }

/* Companies: industry chips (the search card, sort box and chip buttons live in theme.css) */
.chips { display: flex; gap: 8px; margin: 14px calc(var(--lw-pad) * -1) 0; padding: 0 var(--lw-pad) 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; margin: 14px 0 0; padding: 0; overflow: visible; } }
.count { margin: 16px 2px 8px; color: var(--muted); font-size: .9rem; }
.empty { margin: 28px 0; text-align: center; color: var(--muted); }

/* One employer per row: who, the rating, the jobs, the invitation to rate. */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.row:hover { border-color: #9fd4bf; }
.who { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.who-text { display: flex; flex-direction: column; min-width: 0; }
.who-text strong { font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; }
.who:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.sub { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { position: relative; overflow: hidden; flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.b0 { background: #d1fae5; color: #065f46; } .b1 { background: #fef3c7; color: #92400e; }
.b2 { background: #e0e7ff; color: #3730a3; } .b3 { background: #fce7f3; color: #9d174d; }
.b4 { background: #cffafe; color: #155e75; } .b5 { background: #ede9fe; color: #5b21b6; }
.b6 { background: #ffedd5; color: #9a3412; } .b7 { background: #ecfccb; color: #3f6212; }

.score { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.score-text { font-size: .85rem; line-height: 1.25; color: var(--muted); }
.score-text b { display: block; color: var(--ink); font-size: .9rem; }
.open-jobs { font-weight: 700; font-size: .95rem; color: #065f46; text-decoration: none; white-space: nowrap; }
a.open-jobs:hover { text-decoration: underline; text-underline-offset: 3px; }
.open-jobs.none { color: var(--muted); font-weight: 500; white-space: normal; }
.rate { justify-self: end; font-weight: 800; font-size: .88rem; color: #92400e; background: #fffbeb; border: 2px solid var(--amber); border-radius: 999px; padding: 5px 14px; text-decoration: none; white-space: nowrap; }
.rate:hover { background: #fef3c7; }
.row .score { grid-column: 1; }
.row .open-jobs { grid-column: 2; justify-self: end; }
.row .rate { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 760px) {
  .row { grid-template-columns: minmax(0, 1fr) 210px 150px auto; padding: 10px 16px; }
  .who, .row .score, .row .open-jobs, .row .rate { grid-column: auto; }
  .row .open-jobs { justify-self: start; }
  .row .rate { justify-self: end; }
}
.more-wrap { text-align: center; margin: 20px 0 0; }
.more { font: inherit; font-weight: 700; color: #fff; background: var(--lw-grad-btn); border: 0; border-radius: 10px; padding: 12px 26px; cursor: pointer; }
.more:hover { background: var(--lw-grad-btn-hover); }

/* Locations */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mode { display: flex; flex-direction: column; text-decoration: none; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.mode strong { font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mode span { color: var(--muted); font-weight: 600; font-size: .92rem; }
.mode:nth-child(1) { border-top: 5px solid var(--emerald); }
.mode:nth-child(2) { border-top: 5px solid var(--amber); }
.mode:nth-child(3) { border-top: 5px solid #6366f1; }
.mode:hover { border-color: #9fd4bf; }
.locs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.loc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.loc-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; text-decoration: none; }
.loc-name { font-weight: 800; font-size: 1.08rem; }
.loc-main:hover .loc-name { text-decoration: underline; text-underline-offset: 3px; }
.loc-n { text-align: right; color: var(--muted); white-space: nowrap; }
.loc-n strong { color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; height: 12px; border-radius: 6px; background: #e3ece7; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #047857, #10b981 60%, #5fd3a3); }
.loc-facts, .loc-emps { margin: 8px 0 0; font-size: .88rem; color: var(--muted); }
.loc-emps { margin-top: 2px; }
@media (min-width: 760px) {
  .loc-main { grid-template-columns: 190px minmax(0, 1fr) 110px; }
  .bar { grid-column: auto; }
}

/* Industries and Careers */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--emerald); border-radius: 16px; padding: 16px 18px 18px; display: flex; flex-direction: column; }
.card:nth-child(3n + 2) { border-top-color: var(--amber); }
.card:nth-child(3n) { border-top-color: #6366f1; }
.card h2 { margin: 0; font-size: 1.12rem; line-height: 1.25; letter-spacing: -0.01em; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-n { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.card-n strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.card-sub { margin: 14px 0 6px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card-sub + .tags { margin-top: 0; }
.tags a { display: inline-block; text-decoration: none; background: #eef6f2; color: var(--forest); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 600; }
.tags a:hover { background: #d1fae5; }
.tags a span { color: var(--muted); font-weight: 500; margin-left: 3px; }
.card-links { margin: auto 0 0; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.card-links a { color: #065f46; font-weight: 700; font-size: .92rem; text-underline-offset: 3px; }

@media (max-width: 420px) {
  .modes { grid-template-columns: 1fr; }
  .sort select { min-width: 7.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .row, .chip, .tags a { transition: border-color .15s, background-color .15s; }
}

/* Careers: the occupations block, and the notes the Skills and Salaries pages use */
.lead-block { background: #fff; border: 1px solid var(--lw-line); border-top: 5px solid var(--lw-emerald); border-radius: 16px; padding: 16px 18px 18px; margin-bottom: 22px; }
.lead-block h2 { margin: 0; font-size: 1.12rem; letter-spacing: -0.01em; }
.lead-block .tags { margin-top: 12px; }
.section-h { margin: 6px 0 12px; font-size: 1.12rem; letter-spacing: -0.01em; }
.note { margin: 6px 0 0; color: var(--lw-muted); font-size: .92rem; line-height: 1.5; max-width: 70ch; }
.lead-note { margin: 0 0 18px; }
/* Skills and Salaries: ranked lists. One row per item: its place, its name, the figure, and a bar under them. */
.rk-wrap { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .rk-wrap.two { grid-template-columns: 1fr 1fr; align-items: start; } }
.rk-box { background: #fff; border: 1px solid var(--lw-line); border-top: 5px solid var(--lw-emerald); border-radius: 16px; padding: 16px 18px 8px; }
.rk-wrap .rk-box:nth-child(2) { border-top-color: var(--lw-amber); }
.rk-wide { margin-bottom: 12px; }
.rk-box h2 { margin: 0; font-size: 1.12rem; line-height: 1.25; letter-spacing: -0.01em; }
.rk-box .note { margin-top: 6px; }
.rk { list-style: none; margin: 10px 0 0; padding: 0; }
.rk li { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 11px 0 12px; border-top: 1px solid var(--lw-line); }
.rk li:first-child { border-top: 0; }
.rk-n { color: var(--lw-muted); font-weight: 700; font-size: .9rem; text-align: right; font-variant-numeric: tabular-nums; }
.rk-main { display: flex; flex-direction: column; min-width: 0; }
.rk-name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.rk-sub { color: var(--lw-muted); font-size: .85rem; line-height: 1.35; overflow-wrap: anywhere; }
.rk-sub a { color: #065f46; text-underline-offset: 3px; }
.rk-v2 { display: block; }
.rk-val { text-align: right; color: var(--lw-muted); font-size: .85rem; line-height: 1.35; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-val strong { color: var(--lw-ink); font-size: 1rem; }
.rk-val a { color: #065f46; font-weight: 700; text-underline-offset: 3px; }
.rk-bar { grid-column: 2 / -1; height: 10px; border-radius: 5px; background: #e3ece7; overflow: hidden; }
.rk-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #047857, #10b981 60%, #5fd3a3); }
.rk-emp .who { min-width: 0; }
.rk-emp .sub { white-space: normal; overflow: visible; text-overflow: clip; }
.how { margin: 0 0 18px; max-width: 70ch; }
.how summary { cursor: pointer; font-weight: 700; font-size: .92rem; color: #065f46; }
.how .note { margin-top: 6px; }
@media (max-width: 560px) {
  .rk li { grid-template-columns: 1.7rem minmax(0, 1fr); }
  .rk-val { grid-column: 2; text-align: left; white-space: normal; }
  .rk-v2 { display: inline; }
  .rk-v2::before { content: " · "; }
  .rk-bar { grid-column: 2; }
}
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.subnav .chip { display: inline-block; text-decoration: none; }
.sector-note { margin: 0 0 12px; }
.tags-static li > span { display: inline-block; background: #eef6f2; color: var(--lw-forest); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 600; }
.tags-static li > span b { color: var(--lw-muted); font-weight: 500; margin-left: 3px; }
.card .tags-static { margin-top: 12px; }


/* An employer's own logo (fetch_logos.py) sits on top of its letters; if it cannot load, the letters show. */
.badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
