/* The daily jobs page (jobs.html). Builds on style.css: its header, footer,
   tokens and type. */

/* The sky from the setup section, behind the header and the heading. */
.sky { position: relative; isolation: isolate; margin: 12px 12px 0; border-radius: 22px; overflow: hidden;
  background: linear-gradient(rgba(16, 38, 72, .34), rgba(16, 38, 72, .12) 55%, rgba(16, 38, 72, .04)),
    url('./assets/setup-sky.jpg') center bottom / cover; }
.jobs-head { padding: 64px 0 44px; color: #fff; }
.jobs-head h1 { color: #fff; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 700; margin: 0 0 14px; }
.jobs-head .lede { color: rgba(255, 255, 255, .86); font-size: 18px; max-width: 680px; margin: 0; line-height: 1.5; }

/* Glass tiles: the sky shows through, blurred and tinted blue so the white
   text stays readable over the bright clouds. */
.stat-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.stat { min-width: 150px; padding: 16px 20px; border-radius: 14px; color: #fff;
  background: rgba(22, 50, 92, .30); border: 1px solid rgba(255, 255, 255, .30);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 30px rgba(11, 31, 58, .14); }
.stat b { display: block; font-size: 28px; letter-spacing: -0.02em; }
.stat span { color: rgba(255, 255, 255, .92); font-size: 13px; }
.stat b, .stat span { text-shadow: 0 1px 2px rgba(11, 31, 58, .25); }

.jobs-page { padding-bottom: 96px; }

/* The filter bar stays at the top while the list scrolls. It is solid, so rows
   never show through it. Two rows: role chips with the view switch at their
   right end, then search and the other filters. */
.tools { position: sticky; top: 0; z-index: 5; margin-top: 18px; padding: 14px 0 12px; background: var(--paper);
  border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px #0000000a; }
/* Grid items keep their content width unless told otherwise; minmax lets the
   chips row shrink and scroll on phones instead of widening the page. */
.tools-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.chip-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chip { font: inherit; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
  padding: 7px 13px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background .15s, border-color .15s; }
.chip .n { color: var(--muted); font-variant-numeric: tabular-nums; }
/* Chosen chips, the chosen view, the senior-roles toggle and the open phone filters take
   the Star button's blue. */
.chip[aria-pressed="true"] { background: #2f5687; color: #fff; border-color: #2f5687; }
.chip[aria-pressed="true"] .n { color: #ffffffb0; }
.view-switch { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.view-switch button { font: inherit; font-size: 14px; border: 0; background: transparent; padding: 0 14px; height: 38px; cursor: pointer; color: var(--muted); }
.view-switch button[aria-pressed="true"] { background: #2f5687; color: #fff; }
.chip-row .view-switch button { height: 36px; }
.view-switch.phone-only { display: none; }

.tool-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 0 12px; height: 40px; }
.search input { border: 0; outline: 0; font: inherit; font-size: 15px; flex: 1; background: transparent; color: var(--ink); }
.search svg, .meta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; color: var(--muted); flex: none; }
.more-filters { display: flex; align-items: center; gap: 10px; }
.filters-btn { display: none; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; user-select: none;
  padding: 0 4px; margin-left: 4px; white-space: nowrap; }
.toggle input { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative;
  cursor: pointer; transition: background .15s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px #0003; transition: transform .15s; }
.toggle input:checked { background: #2f5687; }
.toggle input:checked::after { transform: translateX(14px); }

/* The dashboard's menus: a soft raised button, a floating list with checks. */
.menu { position: relative; }
.menu-button { font: inherit; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 40px; min-width: 160px; padding: 0 10px 0 14px; border: 0; border-radius: 10px; background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
  box-shadow: 0 0 0 1px #dedede, 0 1px 3px rgb(0 0 0 / .03), 0 8px 24px rgb(0 0 0 / .025); transition: box-shadow .15s; }
.menu-button:hover, .menu-button[aria-expanded="true"] { box-shadow: 0 0 0 1px #d6d6d6, 0 2px 5px rgb(0 0 0 / .04), 0 20px 50px rgb(0 0 0 / .07); }
.menu-button .icon, .menu-option .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }
.menu-button .icon { color: var(--muted); transition: rotate .15s cubic-bezier(.2, .7, .2, 1); }
.menu-button[aria-expanded="true"] .icon { rotate: 180deg; }
.menu-list { position: fixed; inset: auto; margin: 0; max-height: min(320px, 60vh); overflow: auto; padding: 5px; list-style: none;
  border: 0; border-radius: 12px; color: var(--ink); background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 12px 28px rgb(0 0 0 / .14), 0 32px 72px rgb(0 0 0 / .16); }
.menu-list:popover-open { animation: menu-in .14s cubic-bezier(.2, .7, .2, 1); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu-list:focus { outline: none; }
.menu-option { display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px; border-radius: 8px; font-size: 14px;
  white-space: nowrap; cursor: pointer; }
.menu-option .icon { visibility: hidden; color: #4a74a8; }
.menu-option[aria-selected="true"] { font-weight: 600; }
.menu-option[aria-selected="true"] .icon { visibility: visible; }
.menu-option.active { background: #f2f2f2; }

.results-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 24px 0 14px; }
.results { color: var(--muted); font-size: 14px; margin: 0; min-width: 0; }
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

/* Shared by both views. */
.logo { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; object-fit: contain; padding: 7px; }
.logo.mono { display: grid; place-items: center; font-weight: 700; font-size: 19px; color: var(--ink); background: var(--wash); padding: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta .co { color: var(--ink); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag { font-size: 12px; border-radius: 6px; padding: 3px 8px; background: var(--wash); color: var(--ink); border: 1px solid var(--line); }
.tag.warn { background: #fff4e5; border-color: #f3d3a6; color: #7a4a00; }
.tag.senior { color: var(--muted); }
.sponsor { font-size: 13px; color: var(--muted); }
.sponsor b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 99px; background: var(--wash); margin: 6px 0 4px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: #4a74a8; }

/* View: the calmest thing in a row, a soft blue pill with a drawn arrow whose
   head moves forward on hover while the shaft stretches with it. */
.view { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 15px; border: 0; border-radius: 999px;
  background: #eef3f9; color: #2f5687; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .28s ease-out; }
.view:hover { background: #e2ebf6; }
.view .go { width: 16px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round;
  stroke-linejoin: round; overflow: visible; opacity: .8; }
.view .go .shaft { transform-origin: 1px 6px; transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
.view .go .head { transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
.view:hover .go { opacity: 1; }
.view:hover .go .shaft { transform: scaleX(1.15); }
.view:hover .go .head { transform: translateX(2.5px); }

/* By company: one card per employer, its history once, its new jobs inside.
   Rows fade to a light grey under the pointer, so the eye can track a job
   across the card. */
.company { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-low); overflow: hidden; }
.company-head { display: grid; grid-template-columns: 48px 1fr 220px; gap: 18px; align-items: center; padding: 18px 20px;
  border-bottom: 1px solid var(--line); background: linear-gradient(#fff, var(--paper)); }
.company-head h2 { font-size: 19px; margin: 0; letter-spacing: -0.015em; }
.company-head .count { color: var(--muted); font-size: 14px; margin-top: 3px; }
.company-jobs { list-style: none; margin: 0; padding: 4px 0; }
.cjob { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 12px 20px 12px 86px;
  transition: background-color .28s ease-out; }
.cjob + .cjob { border-top: 1px solid #efefef; }
.cjob:hover { background: #f4f5f6; }
.cjob h3 { font-size: 16px; margin: 0 0 4px; font-weight: 600; line-height: 1.3; }
.cjob h3 a { color: inherit; text-decoration: none; }
.cjob h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cjob .tags { margin-top: 6px; }
.show-all { font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; color: #4a74a8;
  padding: 10px 20px 16px 86px; cursor: pointer; text-align: left; }

/* Every job: one card, thin dividers, two lines per posting. */
.job-list.compact { gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-low); overflow: hidden; }
.job { display: grid; grid-template-columns: 36px minmax(0, 1fr) 132px auto; gap: 16px; align-items: center; padding: 12px 18px;
  transition: background-color .28s ease-out; }
.job + .job { border-top: 1px solid #efefef; }
.job:hover { background: #f4f5f6; }
.job .logo { width: 36px; height: 36px; border-radius: 9px; padding: 5px; }
.job .logo.mono { font-size: 15px; padding: 0; }
.job h2 { font-size: 15px; font-weight: 600; margin: 0 0 3px; letter-spacing: -0.01em; line-height: 1.3;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.job h2 a { color: inherit; text-decoration: none; min-width: 0; }
.job h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.job h2 .tag { font-size: 11.5px; font-weight: 500; padding: 1px 7px; }
.job .meta { font-size: 13px; gap: 4px 14px; }
.job .meta svg { width: 14px; height: 14px; }
.job .sponsor { font-size: 12.5px; line-height: 1.35; text-align: right; }
.job .sponsor b { font-size: 14px; }
.job .view { padding: 6px 12px 6px 13px; font-size: 13px; }
.cjob:hover .view, .job:hover .view { background: #e2ebf6; }

/* Page bar: a white pill with arrows, numbers, and the current page as a filled
   circle with a soft halo, in the site's blue. "…" turns into a box to type a page. */
.pager { display: flex; justify-content: center; margin: 34px 0 0; --pg-blue: #4a74a8; }
.pager[hidden] { display: none; }
.pager-pill { display: inline-flex; align-items: center; gap: 18px; background: #fff; border-radius: 999px; padding: 8px 14px;
  box-shadow: 0 0 0 1px #e6e6e6, 0 2px 6px rgb(0 0 0 / .04), 0 14px 34px rgb(0 0 0 / .06); }
.pg-arrow { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background .15s; }
.pg-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg-arrow:hover:not(:disabled) { background: #f2f2f2; }
.pg-arrow:disabled { color: #c4c4c4; cursor: default; }
.pg-numbers { display: flex; align-items: center; gap: 6px; }
.pg-num, .pg-gap { font: inherit; font-size: 16px; min-width: 40px; height: 40px; padding: 0 6px; border: 0; border-radius: 999px;
  background: none; color: #4a4a4a; cursor: pointer; font-variant-numeric: tabular-nums; transition: background .15s, box-shadow .15s; }
.pg-num:hover, .pg-gap:hover { background: #f2f2f2; color: var(--ink); }
.pg-num[aria-current="page"] { background: var(--pg-blue); color: #fff; font-weight: 600; box-shadow: 0 0 0 5px rgb(74 116 168 / .2); }
.pg-gap { letter-spacing: 1px; color: var(--muted); }
.pg-input { font: inherit; font-size: 15px; width: 64px; height: 36px; text-align: center; border: 0; border-radius: 999px; outline: none;
  background: #f2f2f2; color: var(--ink); box-shadow: 0 0 0 2px rgb(74 116 168 / .45); }
.pg-input.bad { animation: pg-shake .3s; box-shadow: 0 0 0 2px #d4544f88; }
@keyframes pg-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Phones: the chips get the whole row and scroll sideways; the view switch,
   menus and the senior switch fold into a Filters panel. */
@media (max-width: 760px) {
  .sky { margin: 8px 8px 0; border-radius: 18px; }
  .jobs-head { padding: 36px 0 28px; }
  .stat-row { gap: 8px; }
  .stat { min-width: 0; flex: 1; padding: 12px; }
  .stat b { font-size: 20px; white-space: nowrap; }

  .chip-row { gap: 10px; }
  .chips { flex: 1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .chip-row .view-switch { display: none; }
  .search { flex: 1 1 0; min-width: 0; }
  .filters-btn { display: inline-flex; align-items: center; font: inherit; font-size: 14px; font-weight: 600; height: 40px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
  .filters-btn[aria-expanded="true"] { background: #2f5687; color: #fff; border-color: #2f5687; }
  .more-filters { display: none; }
  .more-filters.open { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding-top: 4px; }
  .more-filters.open .menu, .more-filters.open .menu-button { width: 100%; }
  .more-filters.open .view-switch.phone-only { display: inline-flex; align-self: flex-start; }
  .results-row { flex-wrap: wrap; }

  .logo { width: 40px; height: 40px; }
  .company-head { grid-template-columns: 40px 1fr; }
  .company-head .sponsor { grid-column: 1 / -1; }
  .cjob, .show-all { padding-left: 20px; }
  .job { grid-template-columns: 32px minmax(0, 1fr); padding: 12px 14px; }
  .job .logo { width: 32px; height: 32px; padding: 4px; }
  .job .sponsor { grid-column: 2; text-align: left; display: flex; gap: 12px; }
  .job .view { grid-column: 2; justify-self: start; }

  .pager-pill { gap: 6px; padding: 6px 8px; }
  .pg-numbers { gap: 2px; }
  .pg-num, .pg-gap { min-width: 34px; height: 34px; font-size: 15px; }
}
