/* Page width, gutters, type and colour, layered over style.css and layout.css.
 *
 * Loaded last, so a rule here wins over an equally specific one in either file.
 * The brand stays as it was: the navy header, the pink search button, the blue
 * links, the green salaries and the programme colours. What changes is the
 * structure around them:
 *
 *   - One content column. Every band (header, banners, content, footer) shares
 *     --page and --gutter, so text no longer starts 10px from the left edge on
 *     a wide screen or runs the full width of it.
 *   - One type family with tabular figures, so salary columns line up.
 *   - Greys, link blue and salary green darkened just enough to pass WCAG AA on
 *     white. The hues are the originals.
 */

:root {
  --page: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 720px;

  --navy: #343756;
  --navy-deep: #2A2C47;
  --ink: #1D2030;
  --text: #33384A;
  --muted: #5E6475;
  --line: #E3E5EC;
  --surface: #F5F6F9;
  --card: #FFFFFF;
  --link: #2C72B8;
  --money: #157A35;
  --cta: #E84A6F;
  --focus: #2C72B8;

  --radius: 10px;
}

/* ---- base ---------------------------------------------------------------- */

html { -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font-sans), "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

/* style.css names fonts per element ('PT-Regular', 'PT-Bold' and an Open Sans
   that was never loaded). Everything now inherits the one family. */
body *:not(i):not(.fa):not(.fas):not(.far):not(.fab) {
  font-family: inherit;
}

h1, h2, h3 { color: var(--ink); letter-spacing: -0.01em; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
header :focus-visible,
footer :focus-visible,
.landingpagesearchcontainer :focus-visible,
.sceneintrocontainer :focus-visible { outline-color: #FFF; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---- the content column -------------------------------------------------- */

.centralcontainer {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
  float: none;
  display: flow-root;
  margin-left: auto;
  margin-right: auto;
  overflow-x: visible;
}

/* ---- header ---------------------------------------------------------------- */

header {
  float: none;
  overflow: visible;
  background-color: var(--navy);
  position: relative;
  z-index: 20;
}

header .headerinner {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 60px;
}

header .navlogolink { display: block; margin-right: 20px; }
header .navlogo {
  float: none;
  height: auto;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
header .navlogo img { height: 30px; margin: 0; display: block; }

header .navcontainer {
  float: none;
  height: 60px;
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

header .navcontainer a {
  float: none;
  display: flex;
  align-items: center;
  height: 60px;
  line-height: normal;
  padding: 0 14px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  box-shadow: inset 0 -3px 0 transparent;
  border: 0;
}
header .navcontainer a:first-child { margin-left: 0; border-top: 0; }
header .navcontainer a:hover { background: rgba(255, 255, 255, .08); color: #FFF; text-decoration: none; }
header .navcontainer a#selected {
  background: transparent;
  color: #FFF;
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--cta);
}

header .navmenuicon {
  float: none;
  display: none;
  margin: 0 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, .1);
  background-position: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  header .navmenuicon { display: block; }
  header .navcontainer {
    display: none;
    order: 3;
    width: 100%;
    height: auto;
    flex-direction: column;
    margin: 0 0 12px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 6px;
  }
  header .navcontainer.responsive { display: flex; }
  header .navcontainer a {
    width: auto;
    height: 48px;
    padding: 0 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 0;
    box-shadow: none;
  }
  header .navcontainer a:first-child { border-top: 0; }
  header .navcontainer a#selected { background: rgba(255, 255, 255, .1); box-shadow: inset 3px 0 0 var(--cta); }
}

/* ---- banners --------------------------------------------------------------- */

.sceneintrocontainer,
.landingpagesearchcontainer {
  float: none;
  width: 100%;
  background-color: var(--navy);
}

.sceneintrocontainer .scenetitle {
  float: none;
  padding: 44px 0 0;
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 600;
  color: #FFF;
}
.sceneintrocontainer .scenenitnro {
  float: none;
  padding: 12px 0 44px;
  margin: 0;
  max-width: var(--measure);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
}
.sceneintrocontainer .scenenitnro a { color: #FFF; text-decoration: underline; text-underline-offset: 2px; }

.landingpagesearchcontainer .landingheading {
  padding: 56px 0 0;
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFF;
}
.landingpagesearchcontainer .landinglede {
  max-width: 760px;
  padding: 0;
  font-size: 17px;
  color: rgba(255, 255, 255, .78);
}
.landingpagesearchcontainer .searchintro {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 0 48px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
}

/* ---- search bars ----------------------------------------------------------- */

.landingpagesearchcontainer form,
.searchcontainer form {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.landingpagesearchcontainer input,
.landingpagesearchcontainer select,
.searchcontainer input,
.searchcontainer select {
  font-size: 16px !important; /* below 16px, iOS zooms the page on focus */
  color: var(--ink);
}

.landingpagesearchcontainer .searchbutton,
.searchcontainer .searchbutton {
  font-weight: 600;
  border-radius: 6px;
}

.searchcontainer form,
.landingpagesearchcontainer form { padding-left: 0; padding-right: 0; }

.searchcontainer {
  float: none;
  width: 100%;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

/* ---- headings in the content column ---------------------------------------- */

h2.landingsubtitle {
  float: none;
  width: auto;
  margin: 40px 0 16px;
  padding: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.termheading {
  margin: 36px 0 12px;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.2;
  font-weight: 700;
}

/* ---- home cards -------------------------------------------------------------- */

.cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.centralcontainer .cardgrid .jobcard,
.centralcontainer .cardgrid .companycard {
  float: none;
  width: auto;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}
.centralcontainer .cardgrid .jobcard:hover,
.centralcontainer .cardgrid .companycard:hover {
  border-color: #C9CDDA;
  box-shadow: none;
}

.centralcontainer .cardgrid .jobcard .jobtitle {
  float: none;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--link);
}
.centralcontainer .cardgrid .jobcard .countcontainer {
  float: none;
  width: 50%;
  margin: 0;
  padding: 0;
}
.centralcontainer .cardgrid .jobcard .salaryvalue {
  float: none;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--money);
}
.centralcontainer .cardgrid .jobcard .salaryvalue.countvalue { color: var(--ink); }
.centralcontainer .cardgrid .jobcard .salarylabel {
  float: none;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.centralcontainer .cardgrid .companycard { flex-wrap: nowrap; gap: 14px; }
.centralcontainer .cardgrid .companycard img {
  float: none;
  margin: 0;
  flex: 0 0 auto;
  border-radius: 50%;
}
.centralcontainer .cardgrid .companycard .companyinfocontainer,
.centralcontainer .cardgrid .companycard.nologo .companyinfocontainer {
  float: none;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.centralcontainer .cardgrid .companycard .companyinfocontainer .companytitle {
  float: none;
  width: 100%;
  margin: 0 0 10px;
  padding: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.centralcontainer .cardgrid .companycard .companyinfocontainer .companyjobtitle {
  float: none;
  display: block;
  width: 100%;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--link);
  overflow-wrap: anywhere;
}
.centralcontainer .cardgrid .companycard .companyinfocontainer .companyjobsalary {
  float: none;
  width: 100%;
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--money);
}
.centralcontainer .cardgrid .companycard .companyinfocontainer .companyjobsalary span {
  font-weight: 400;
  color: var(--muted);
}
.centralcontainer .cardgrid .companycard .companyinfocontainer .companycardmore {
  float: none;
  display: inline-block;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}

/* style.css gives every line in the cards a fixed height with overflow hidden,
   sized for 13-15px text. At the new sizes that cut off descenders and the tails
   of commas, which made $178,454 read as $178.454. Let them size to content. */
.centralcontainer .cardgrid .jobcard .jobtitle,
.centralcontainer .cardgrid .jobcard .salaryvalue,
.centralcontainer .cardgrid .jobcard .salarylabel,
.centralcontainer .cardgrid .companycard .companyinfocontainer .companytitle,
.centralcontainer .cardgrid .companycard .companyinfocontainer .companyjobtitle,
.centralcontainer .cardgrid .companycard .companyinfocontainer .companyjobsalary,
.centralcontainer .cardgrid .companycard .companyinfocontainer .companycardmore {
  height: auto;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}
.centralcontainer .cardgrid .companycard .companyinfocontainer .companycardmore { margin-left: auto; }

/* ---- home notes ---------------------------------------------------------------- */

.homenotes { gap: 24px 40px; margin: 0; padding-top: 4px; }
.homenotes h3 { margin: 0 0 8px; }
.homenotes h3 { font-size: 17px; font-weight: 600; color: var(--ink); }
.homenotes p { font-size: 16px; line-height: 1.65; color: var(--text); }

/* ---- links on light backgrounds ------------------------------------------------ */

.textpart a,
.insightsuggestion a,
.normalintro a,
.insightlistname,
.postarticlebody a,
.postarticlefooter a,
.termfacts a,
.termsummary .termupdated a,
.newsitem h3 a,
.statustable a,
.postcardtitle a,
.postcardmore {
  color: var(--link);
}

/* ---- term pages (company and job title) ------------------------------------------ */

.termsummary { max-width: var(--measure); font-size: 17px; line-height: 1.65; color: var(--text); }
.termsummary p { margin: 0 0 10px; }
.termfacts { gap: 32px; margin-top: 24px; }
.termfacts h2 { font-size: 18px; font-weight: 600; color: var(--ink); }
.termfacts th { color: var(--muted); font-weight: 500; }
.termfacts td { color: var(--text); }
.termsummary .termupdated,
.termupdated { color: var(--muted); font-size: 14px; }

/* ---- search results ------------------------------------------------------------- */

.searchtablecontainer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.searchtablecontainer .tableheadercontainer { background: var(--card); }
.resultcount, .sortlabel { color: var(--muted); }
.searchtablecontainer .tablerawconatainer { border-color: var(--line); }
.searchtablecontainer .tablejobtitletext { color: var(--link); font-weight: 500; }
.searchtablecontainer .tablesalary .tablevalue { font-weight: 600; color: var(--ink); }
.searchtablecontainer .tablesalary .salarybar { background-color: #DCEBFA; }

/* ---- blog --------------------------------------------------------------------------- */

.postlist { max-width: var(--measure); margin: 0 auto; }
.postcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 24px;
  margin-bottom: 16px;
}
.postcardtitle { font-size: 21px; font-weight: 600; line-height: 1.3; }
.postcardmeta { color: var(--muted); font-size: 14px; }
.postcardexcerpt { color: var(--text); font-size: 16px; line-height: 1.6; }

.centralcontainer .postarticle,
.postarticle {
  max-width: var(--measure);
  margin: 0 auto;
  float: none;
}
.postarticletitle {
  margin: 40px 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
  font-weight: 700;
  color: var(--ink);
}
.postarticle > .postcardmeta { margin-bottom: 24px; }
.postarticlebody {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}
.postarticlebody p { margin: 0 0 20px; }
.postarticlebody h2 {
  margin: 40px 0 14px;
  padding: 0;
  border: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.postarticlebody h3 { margin: 28px 0 10px; font-size: 19px; font-weight: 600; color: var(--ink); }

/* Wide tables scroll inside themselves instead of pushing the page sideways. */
.statustable,
.postarticlebody .tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 24px;
}
.postarticlebody table,
.statustable table {
  font-size: 15px;
  line-height: 1.45;
  border-collapse: collapse;
  background: var(--card);
}
.postarticlebody th,
.statustable th {
  background: var(--surface);
  color: var(--muted);
  font-weight: 500;
}
.postarticlebody td,
.postarticlebody th,
.statustable td,
.statustable th { border-color: var(--line); }

/* ---- skills and news ------------------------------------------------------------------ */

.skillcard,
.skillfacts > div,
.newsitem {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.skillcard span,
.skillfacts span,
.newsmeta,
.newsreports span,
.skillnote { color: var(--muted); }
.skilllede { font-size: 18px; line-height: 1.6; color: var(--text); max-width: var(--measure); }
.newspage { max-width: var(--measure); margin: 0 auto; padding: 8px 0 32px; }
.newsitem h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }
.newsitem p { font-size: 16px; line-height: 1.6; color: var(--text); }

/* ---- footer ------------------------------------------------------------------------- */

footer {
  float: none;
  width: 100%;
  background-color: var(--navy-deep);
  color: rgba(255, 255, 255, .72);
}
footer .centralcontainer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  row-gap: 10px;
  padding-top: 40px;
  padding-bottom: 32px;
}
footer .centralcontainer > a:first-child { flex: 0 0 auto; }
footer img { float: none; margin: 0; display: block; }
footer .footerintro {
  float: none;
  flex: 1 1 400px;
  width: auto;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .72);
}
footer .footerseparator {
  float: none;
  flex: 0 0 100%;
  width: 100%;
  height: 1px;
  margin: 16px 0 6px;
  background: rgba(255, 255, 255, .14);
}
footer .footersmaltext,
footer a.footersmaltext {
  float: none;
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
}
footer a.footersmaltext:hover { color: #FFF; }
footer .footersmaltext:first-of-type { margin-right: auto; }

/* ---- phones ------------------------------------------------------------------------- */

@media (max-width: 768px) {
  h2.landingsubtitle { margin-top: 32px; font-size: 20px; }
  .postarticlebody { font-size: 17px; }
  .postcard { padding: 18px; }
  .landingpagesearchcontainer .landingheading { padding-top: 36px; text-align: left; }
  .landingpagesearchcontainer .landinglede { text-align: left; font-size: 16px; }
  .landingpagesearchcontainer .searchintro { text-align: left; padding-bottom: 32px; }
  .sceneintrocontainer .scenetitle { padding-top: 32px; }
  .sceneintrocontainer .scenenitnro { padding-bottom: 32px; font-size: 16px; }
  footer .footersmaltext:first-of-type { flex: 0 0 100%; margin-right: 0; }
}

/* ---- term pages: one left edge ---------------------------------------------- */

.termheading,
.termsummary,
.programtabs { padding-left: 0; padding-right: 0; }
.termheading { color: var(--ink); }
.termsummary { max-width: none; }
.termsummary > p { max-width: var(--measure); }
.termfacts > div { min-width: 280px; }

/* ---- results table ------------------------------------------------------------ */

.searchtablecontainer .programtabs { padding: 16px 20px 0; margin: 0; }
.centralcontainer .searchtablecontainer .tableheadercontainer { padding-left: 20px; padding-right: 20px; box-sizing: border-box; }

.searchtablecontainer .jobtitlecolumnheader,
.searchtablecontainer .tablejobtitle { width: 27%; }
.searchtablecontainer .companynamecolumnheader,
.searchtablecontainer .tableemployeename { width: 21%; }
.searchtablecontainer .locationcolumnheader,
.searchtablecontainer .tablelocation { width: 15%; }
.searchtablecontainer .salarycolumnheader,
.searchtablecontainer .tablesalary { width: 19%; }
.searchtablecontainer .startdatecolumnheader,
.searchtablecontainer .tablestartdate { width: 11%; white-space: nowrap; }
.searchtablecontainer .yearcolumnheader,
.searchtablecontainer .tableyear { width: 7%; }

.centralcontainer .searchtablecontainer .tablerawconatainer {
  padding: 14px 20px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--line);
}
.centralcontainer .searchtablecontainer .tablerawconatainer:hover { background-color: #FAFBFD; }

@media (max-width: 900px) {
  .searchtablecontainer .jobtitlecolumnheader,
  .searchtablecontainer .tablejobtitle { width: 34%; }
  .searchtablecontainer .companynamecolumnheader,
  .searchtablecontainer .tableemployeename { width: 28%; }
  .searchtablecontainer .locationcolumnheader,
  .searchtablecontainer .tablelocation { width: 18%; }
  .searchtablecontainer .salarycolumnheader,
  .searchtablecontainer .tablesalary { width: 20%; }
}

/* Phones: one compact row per filing. Title and salary share the first line,
   company sits under the title, and location and start date close the row. A
   result used to take most of a screen; this fits four or five. */
@media (max-width: 560px) {
  .searchtablecontainer .programtabs { padding: 14px 14px 0; }
  .centralcontainer .searchtablecontainer .tableheadercontainer { padding-left: 14px; padding-right: 14px; }

  .centralcontainer .searchtablecontainer .tablerawconatainer {
    float: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title  salary"
      "company company"
      "where  start";
    column-gap: 12px;
    row-gap: 4px;
    padding: 14px;
  }
  .searchtablecontainer .tablerawconatainer > div {
    float: none;
    width: auto;
    padding: 0;
    margin: 0;
    min-width: 0;
  }
  .searchtablecontainer .tablerawconatainer .tablejobtitle { grid-area: title; }
  .searchtablecontainer .tablerawconatainer .tablesalary { grid-area: salary; text-align: right; }
  .searchtablecontainer .tablerawconatainer .tableemployeename { grid-area: company; }
  .searchtablecontainer .tablerawconatainer .tablelocation { grid-area: where; color: var(--muted); font-size: 14px; }
  .searchtablecontainer .tablerawconatainer .tablestartdate { grid-area: start; display: block; text-align: right; color: var(--muted); font-size: 14px; }
  .searchtablecontainer .tablerawconatainer .tableyear { display: none; }

  .searchtablecontainer .tablerawconatainer .tablevalue { float: none; margin: 0; padding: 0; line-height: 1.4; }
  .searchtablecontainer .tablerawconatainer .tablestartdate span { display: inline; margin-right: 4px; }
  .searchtablecontainer .tablerawconatainer .tablesalary .tablevalue { font-size: 16px; font-weight: 700; color: var(--money); }
  .searchtablecontainer .tablerawconatainer .tablejobtitletext { font-size: 16px; line-height: 1.35; }
  .searchtablecontainer .tablerawconatainer .newemployeetag { margin: 4px 0 0; }
  .searchtablecontainer .tablerawconatainer .tableemployeename img { width: 20px; height: 20px; margin: 0 6px 0 0; }
  .searchtablecontainer .tablerawconatainer .tableemployeename .tablevalue a { display: flex; align-items: center; }
  .searchtablecontainer .tablerawconatainer .tableemployeename .companyname { font-size: 14px; }
}

/* ---- links that inherited white ----------------------------------------------
 * style.css sets `a { color: #FFF }` for the dark bands, so any link on a light
 * page without its own colour rule disappears (the skills page's related
 * salaries were white on near-white). :where() keeps this at the specificity of
 * a bare `a`, so every rule that does colour a link still wins. */
:where(.skillpage, .newspage, .termsummary, .termfacts, .postarticle, .postlist,
       .homenotes, .textpart, .termscontainer, .simcardcontainer, .insightresult) a {
  color: var(--link);
}

/* ---- blog posts ----------------------------------------------------------------- */

.centralcontainer .postarticle,
.postarticle { padding-left: 0; padding-right: 0; }

/* Tables keep their numbers on one line and scroll sideways on a phone; the
   first column may wrap, but not into a sliver. */
.postarticlebody td,
.postarticlebody th,
.statustable td,
.statustable th { white-space: nowrap; }
.postarticlebody td:first-child,
.postarticlebody th:first-child,
.statustable td:first-child,
.statustable th:first-child { white-space: normal; min-width: 150px; }

/* ---- skills ----------------------------------------------------------------------- */

.skillpage { padding: 24px 0 48px; color: var(--text); font-size: 16px; }
.skillpage h2 { color: var(--ink); font-size: 17px; }
.skillfilters a { font-size: 14px; }

/* ---- search band and sort row ------------------------------------------------------- */

.searchcontainer form { padding-top: 16px; padding-bottom: 16px; }

@media (max-width: 560px) {
  .centralcontainer .searchtablecontainer .tableheadercontainer:first-of-type {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }
  .searchtablecontainer .tableheadercontainer .resultcount,
  .searchtablecontainer .tableheadercontainer .sortlabel { float: none; margin: 0; padding: 0; width: auto; }
  .searchtablecontainer .tableheadercontainer select,
  .tableheadercontainer #sortdropdown { float: none; margin: 0 0 0 auto; width: 190px; max-width: 62%; background-position: right 10px center; padding-right: 32px; }
}

/* ---- older colours that failed contrast ---------------------------------------
 * Found by a scripted WCAG check across the main pages at three widths. Each
 * selector matches the style.css rule it replaces. */

.newemployeetag { color: #6B4590; }
.newemployeetag.continued { color: #2B6B2F; }
.searchtablecontainer .tableemployeename .companyname,
.searchtablecontainer .tableemployeename .tablevalue a { color: var(--link); }
.tablerawconatainer .tablestartdate span { color: var(--muted); }
.programtabcount { color: var(--muted); }
.programtab.active .programtabcount { color: rgba(255, 255, 255, .9); }
.skillshare { color: var(--muted); }

.termscontainer .normalintro a { color: var(--link); }

.pagination li a { color: var(--link); }
ul.pagination li .active { background: var(--link); border-color: var(--link); }
ul.pagination { margin-left: 0; display: flex; flex-wrap: wrap; justify-content: center; }

.topjobslistcontainer .topjobslist .topjobinfocontainer .topjobtitle { color: var(--link); font-weight: 600; }
.topjobslistcontainer .topjobslist .topjobinfocontainer .topjobcount { color: var(--muted); }
.topjobslistcontainer .topjobslist .topjobinfocontainer .topjobcount span { color: var(--money); }
.topjobslistcontainer .topjobslist .topjobinfocontainer .topjobcount + .topjobcount span { color: var(--ink); }
.topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .topsalary { color: var(--muted); }
.topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .topsalary span { color: var(--money); }
.topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .topcompanycard a { color: var(--link); }
.topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .topcompanycard .topcompanycardsalary { color: var(--muted); }
.topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .topcompanycard .topcompanycardsalary span { color: var(--money); }

.simcard .simcardintro { color: var(--muted); }

/* ---- tap targets on phones ------------------------------------------------------- */

@media (max-width: 600px) {
  footer a.footersmaltext { padding: 8px 0; }
  footer .centralcontainer { column-gap: 24px; row-gap: 0; }
  .postcardmore,
  .postarticlefooter a { display: inline-block; padding: 10px 0; }
  .pagination li a,
  ul.pagination li .active { min-width: 44px; min-height: 44px; box-sizing: border-box; text-align: center; }
  .centralcontainer .cardgrid .jobcard .jobtitle,
  .centralcontainer .cardgrid .companycard .companyinfocontainer .companyjobtitle,
  .centralcontainer .cardgrid .companycard .companyinfocontainer .companycardmore { padding-top: 3px; padding-bottom: 3px; }
  .searchtablecontainer .tablerawconatainer .tablejobtitletext { display: inline-block; padding: 2px 0; }
}


@media (max-width: 600px) {
  .searchtablecontainer .tablerawconatainer .tableemployeename .tablevalue a { padding: 3px 0; }
  .topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .topcompanycard a { padding: 3px 0; height: auto; }
}

/* ---- About, Privacy and Terms ----------------------------------------------------
 * The pages a reviewer reads to judge the site. They were 13-14px with a 20px
 * indent; now they read like the blog: same column, same measure, same scale. */

.termscontainer {
  float: none;
  margin: 0 auto;
  padding: 8px 0 48px;
  max-width: var(--measure);
}
.termscontainer .bigtitle {
  float: none;
  margin: 36px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.termscontainer .bigtitle:first-child { margin-top: 32px; }
.termscontainer .normalintro {
  float: none;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.termscontainer .normalintro a { font-weight: 500; text-underline-offset: 2px; }
.termscontainer .normalintro span { font-size: inherit; font-weight: 600; color: var(--ink); }
.termscontainer .normalintro ul {
  margin: 8px 0 0;
  padding-left: 1.3em;
  list-style-position: outside;
  font-size: 17px;
  font-weight: 400;
}
.termscontainer .normalintro li { margin-bottom: 6px; }

/* ---- listing pages ------------------------------------------------------------------ */

.topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .toptitle { color: var(--link); font-weight: 600; }

/* ---- tablets: the search bar's second row ----------------------------------------------
 * Between phone and desktop the three fields fill one row and the year and
 * button wrapped onto a ragged, centred second row. Make that row deliberate:
 * the year takes the space and the button sits beside it at full height. */
@media (min-width: 769px) and (max-width: 1080px) {
  .landingpagesearchcontainer form,
  .searchcontainer form { row-gap: 12px; }
  .landingpagesearchcontainer #yeardropdown,
  .searchcontainer #yeardropdown { flex: 1 1 auto; margin-left: 0; }
  .landingpagesearchcontainer .searchbutton,
  .searchcontainer .searchbutton { flex: 0 0 180px; margin-left: 12px; }
}

/* Pages with a banner start their text on the banner title's left edge. */
.termscontainer,
.newspage,
.postlist { margin-left: 0; margin-right: auto; }

@media (min-width: 769px) and (max-width: 1080px) {
  .searchcontainer #jobtitle,
  .searchcontainer #employeename,
  .searchcontainer #joblocation { flex: 1 1 33%; }
}

.centralcontainer .postlist,
.postlist { padding: 32px 0 16px; }
.newspage { padding-top: 32px; }

/* ---- company logos sit in the name row ----------------------------------------
 * A logo used to be a column of its own, so a company with one started its text
 * 65px further right than a company without. Now it is a small mark before the
 * name, and every row shares one left edge. */

.centralcontainer .cardgrid .companycard .companyinfocontainer .companytitle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.centralcontainer .cardgrid .companycard .companyinfocontainer .companytitle img {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  float: none;
  border-radius: 50%;
  object-fit: contain;
  background: #FFF;
  box-shadow: 0 0 0 1px var(--line);
}

.topcompanieslistcontainer { float: none; width: 100%; margin-top: 8px; }
.topcompanieslistcontainer .topcompanylist {
  float: none;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.topcompanieslistcontainer .topcompanylist .topcompanyrank {
  float: none;
  width: auto;
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
}
.topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer,
.topcompanieslistcontainer .topcompanylist.nologo .topcompanyinfocontainer {
  float: none;
  width: auto;
  margin: 0;
}
.topcompanieslistcontainer .topcompanylist .toptitlerow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topcompanieslistcontainer .topcompanylist .toptitlerow .companylogo {
  float: none;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 50%;
  object-fit: contain;
  background: #FFF;
  box-shadow: 0 0 0 1px var(--line);
}
.topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .toptitle {
  float: none;
  width: auto;
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  height: auto;
  white-space: normal;
}
.topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .topsalary {
  float: none;
  width: auto;
  margin: 6px 0 16px;
  font-size: 15px;
  height: auto;
}
.topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .topsalary span { font-size: 18px; font-weight: 600; }

.topcompanieslistcontainer .topcompanylist .topcompanycards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .topcompanycard {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  padding: 14px 16px;
  box-sizing: border-box;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}
.topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .topcompanycard a,
.topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .topcompanycard .topcompanycardsalary {
  float: none;
  display: block;
  width: auto;
  margin: 0;
}
.topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .topcompanycard .topcompanycardsalary { margin-top: 4px; }

@media (max-width: 600px) {
  .topcompanieslistcontainer .topcompanylist { grid-template-columns: 40px minmax(0, 1fr); padding: 22px 0; }
  .topcompanieslistcontainer .topcompanylist .topcompanyrank { font-size: 18px; }
  .topcompanieslistcontainer .topcompanylist .topcompanyinfocontainer .toptitle { font-size: 19px; }
  .topcompanieslistcontainer .topcompanylist .toptitlerow .companylogo { flex-basis: 30px; width: 30px; height: 30px; }
}

/* ---- ad slots -------------------------------------------------------------------
 * Each slot reserves the height of a typical responsive unit so content below it
 * does not jump when the ad loads. An unfilled slot collapses entirely. */

.adslot {
  clear: both;
  margin: 28px 0;
  text-align: center;
}
.adslotlabel {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
/* Each slot takes a family of shapes (see AdSlot.tsx) inside a box of fixed
   width, with its usual height reserved so nothing below jumps when the ad
   arrives. Rectangles: at most 336 wide, 250-280 tall. Banners on wide
   screens: the column's width, about 90 tall. */
.adslot .adunit { margin: 0 auto; width: 100%; max-width: 336px; min-height: 250px; }
@media (min-width: 769px) {
  .adslot .adunit-banner { max-width: 970px; min-height: 90px; }
}

/* Inside the results list it reads as one more row, full width. */
.searchtablecontainer .adslot.adslotinline {
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
@media (max-width: 560px) {
  .searchtablecontainer .adslot.adslotinline { padding: 14px; }
}

.postarticlebody .adslot { margin: 32px 0; }

/* The term-page ad sits just above the programme tabs and sort menu. Extra room
   below it keeps a tap aimed at those controls from landing on the ad. */
.adslot.adslotmid { margin: 32px 0 40px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---- top banner and bottom pair (the PHP site's topad/bottomad) ----------------
 * Boxes are sized before the ad loads: 90px tall on wide screens and 100px on
 * phones for the banner; 250px for the bottom pair. */
.adslot.adtop { margin: 24px 0 8px; }
.adtopbox { min-height: 100px; display: flex; justify-content: center; }
@media (min-width: 769px) { .adtopbox { min-height: 90px; } }
.adslot.adbottom { margin: 32px 0 40px; }
.adbottombox { min-height: 250px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
/* An unfilled unit hides itself (Google documents this CSS for exactly this
   case); the slot, label and all, goes only when none of its units filled. */
.adslot ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.adslot:has(ins.adsbygoogle[data-ad-status="unfilled"]):not(:has(ins.adsbygoogle:not([data-ad-status="unfilled"]))) { display: none; }

/* ---- questions and neighbours on term pages ---------------------------------- */
.termfaq { max-width: var(--measure); margin: 40px 0 0; }
.termfaq h2,
.termneighbours h2 { margin: 0 0 12px; font-size: 22px; font-weight: 600; color: var(--ink); }
.termfaqitem { padding: 14px 0; border-top: 1px solid var(--line); }
.termfaqitem h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.termfaqitem p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); }
.termfaqitem a,
.termneighbours a { color: var(--link); }
.termneighbours { margin: 32px 0 8px; }
.termneighbours ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.termneighbours li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}
.termneighbours li a:hover { border-color: #C9CDDA; }
