:root {
  color-scheme: light;
  --paper: #f9f8f1;
  --ink: #171718;
  --muted: #52504a;
  --line: #c7c4b2;
  --blue: #0000a8;
  --visited: #6b2a78;
  --navy: #20235d;
  --control: #ebe8dd;
  font: 100%/1.45 Verdana, Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  border-top: 5px solid var(--navy);
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--blue); text-underline-offset: .15em; }
a:visited { color: var(--visited); }
a:hover { color: #aa2c1c; }
:focus-visible { outline: 2px dashed var(--blue); outline-offset: 3px; }
main:focus { outline: none; }

.page {
  width: min(100%, 1100px);
  margin: auto;
  padding: 0 clamp(16px, 4vw, 56px) clamp(32px, 8vw, 96px);
}
.masthead { padding-top: 23px; border-bottom: 2px solid var(--ink); }
.masthead-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; }
.wordmark {
  font: bold clamp(1.9rem, 5vw, 3.25rem)/1.05 "Courier New", monospace;
  letter-spacing: -.07em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark:visited { color: var(--ink); }
.site-label { font-size: .8125rem; color: var(--muted); }
.retro-aides { display: flex; align-items: end; gap: 12px; min-height: 43px; margin-inline-start: auto; }
.retro-aides > span { position: relative; display: inline-block; }
.retro-clip {
  width: 17px;
  height: 29px;
  border: 2px solid #536a81;
  border-radius: 7px;
  background: linear-gradient(90deg, #edfbff, #b0cada);
  transform: rotate(18deg);
}
.retro-clip::before {
  content: "";
  position: absolute;
  inset: 3px 3px 2px;
  border: 2px solid #536a81;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}
.retro-clip i {
  position: absolute;
  top: 4px;
  left: 0;
  width: 14px;
  height: 8px;
  background: radial-gradient(circle at 27% 55%, #202341 1px, transparent 1.5px),
    radial-gradient(circle at 74% 55%, #202341 1px, transparent 1.5px), #fffdf5;
  border: 1px solid #536a81;
  border-radius: 40%;
}
.retro-dog { width: 46px; height: 42px; }
.retro-dog i, .retro-wizard i { position: absolute; display: block; }
.dog-body {
  right: 8px;
  bottom: 1px;
  width: 28px;
  height: 22px;
  border: 1px solid #815019;
  border-radius: 49% 52% 30% 35%;
  background: radial-gradient(ellipse at 28% 18%, #ffe48b, #ecad42 57%, #c67e22);
  box-shadow: -6px 1px 0 -3px #ffe4a1, -7px 2px 0 -3px #815019;
}
.dog-body::after {
  content: "";
  position: absolute;
  right: -9px;
  bottom: 7px;
  width: 11px;
  height: 4px;
  border: 1px solid #815019;
  border-radius: 40%;
  background: #d28f36;
  transform-origin: left center;
  transform: rotate(-32deg);
}
.dog-head {
  left: 4px;
  top: 1px;
  width: 24px;
  height: 23px;
  border: 1px solid #815019;
  border-radius: 45% 48% 39% 42%;
  background: radial-gradient(ellipse at 34% 42%, #33271e 1.5px, #fff9e8 2px, #fff9e8 3px, transparent 3.4px),
    radial-gradient(ellipse at 20% 16%, #ffe9a4, #e7a337 75%);
  transform-origin: 75% 85%;
}
.dog-head::before, .dog-head::after {
  content: "";
  position: absolute;
}
.dog-head::before {
  right: -4px;
  top: 3px;
  width: 9px;
  height: 18px;
  border: 1px solid #815019;
  border-radius: 45% 55% 58% 49%;
  background: #c7852c;
  transform: rotate(-14deg);
}
.dog-head::after {
  left: -5px;
  bottom: 2px;
  width: 16px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 27% 32%, #342721 0 2px, transparent 2.7px), #ffe3a0;
  border: 1px solid #815019;
}
.dog-scarf {
  left: 16px;
  bottom: 12px;
  width: 12px;
  height: 7px;
  background: #356baf;
  border: 1px solid #23436b;
  clip-path: polygon(0 0, 100% 0, 73% 100%, 43% 56%, 7% 77%);
  transform: rotate(-10deg);
}
.retro-wizard { width: 22px; height: 33px; }
.retro-wizard::before {
  content: "";
  position: absolute;
  inset: 0 1px 12px;
  background: #504093;
  clip-path: polygon(53% 0, 88% 73%, 100% 74%, 100% 98%, 0 98%, 0 75%, 15% 73%);
}
.retro-wizard i {
  inset: 18px 4px 0;
  border-radius: 35% 37% 55% 46%;
  background: radial-gradient(circle at 50% 32%, #25223f 0 1px, transparent 1.5px), linear-gradient(#d99d75 42%, #e7e6f0 43%);
  border: 1px solid #534671;
}
@media (prefers-reduced-motion: no-preference) {
  .retro-clip { animation: retro-clip-nod 1.1s ease-in-out 2; }
  .dog-head { animation: retro-dog-look 1.4s .25s ease-in-out 2; }
  .dog-body::after { animation: retro-dog-wag .4s .25s ease-in-out 5; }
  .retro-wizard { animation: retro-wizard-hop 1s .35s ease-in-out 2; }
}
@keyframes retro-clip-nod {
  50% { transform: translateY(-3px) rotate(-11deg); }
}
@keyframes retro-dog-look {
  52% { transform: rotate(-16deg); }
}
@keyframes retro-dog-wag {
  50% { transform: rotate(-57deg); }
}
@keyframes retro-wizard-hop {
  50% { transform: translateY(-4px); }
}
.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(12px, 3vw, 27px);
  margin: 15px 0 12px;
  font-size: .875rem;
}
.navigation [aria-current="page"] { color: var(--ink); font-weight: bold; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 15px; margin: 24px 0 15px; }
h1, h2, h3, p { margin: 0 0 .65em; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.12; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }
.demo-label {
  background: #f7efcf;
  border: 1px solid #d3bd74;
  padding: 1px 5px;
  color: #51451e;
  font-size: .8125rem;
}

input, select, textarea, button { font: inherit; color: inherit; }
input:not([type="checkbox"]), select, textarea {
  min-width: 0;
  border: 1px solid #736f61;
  border-radius: 0;
  background: #fffef9;
  padding: 6px 8px;
}
input[type="checkbox"] { margin: 0; accent-color: var(--navy); }
button, .source-action {
  background: var(--control);
  border: 2px solid;
  border-color: #fffefa #77735f #77735f #fffefa;
  border-radius: 0;
  padding: 4px 9px;
  box-shadow: 0 0 0 1px #888475;
  cursor: pointer;
}
button:active, button[aria-pressed="true"], .source-action:active {
  border-color: #77735f #fffefa #fffefa #77735f;
  background: #d9d9e7;
}
button:disabled { color: #66635b; cursor: default; }
.catalog-layout { display: grid; grid-template-columns: 13.25rem minmax(0, 1fr); gap: 22px; }
.filter-box {
  min-inline-size: 0;
  margin: 0 0 12px;
  padding: 8px 10px 11px;
  border: 1px solid var(--line);
  background: #f2f0e6;
  font-size: .875rem;
}
.filter-box legend { padding-inline: 4px; font-weight: bold; }
.role-filter { align-self: start; }
.role-filter summary { cursor: pointer; color: var(--blue); text-decoration: underline; font-weight: bold; }
.role-filter[open] summary { margin-bottom: 8px; }
.check-row { display: flex; gap: 7px; align-items: baseline; cursor: pointer; line-height: 1.35; }
.check-row input { flex: 0 0 auto; }
.secondary-filters { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.secondary-filters select { width: 100%; }
.secondary-filters button { margin-top: 2px; }
.results, .search-form input { min-width: 0; }
.search-form { display: flex; align-items: stretch; gap: 7px; margin-bottom: 12px; }
.search-form input { flex: 1; }
.search-form button { margin: 1px; }
.source-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 1px 1px 12px; }
.results-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.results-heading h2 { margin: 0; }
.results-heading p { margin: 0; color: var(--muted); font-size: .875rem; }
.catalog-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 90px;
  margin-top: 8px;
  border-block: 1px solid var(--line);
  color: var(--muted);
}
.hourglass {
  width: 16px;
  height: 22px;
  border-block: 2px solid var(--navy);
  background: linear-gradient(to bottom, #c7a050 26%, #fff4ca 27% 68%, #c7a050 69%);
  clip-path: polygon(0 0, 100% 0, 100% 18%, 59% 49%, 100% 82%, 100% 100%, 0 100%, 0 82%, 41% 49%, 0 18%);
}
@media (prefers-reduced-motion: no-preference) {
  .hourglass { animation: hourglass-turn 1.35s steps(1, end) 3; }
}
@keyframes hourglass-turn {
  50% { transform: rotate(180deg); }
}
.job-list { margin: 0; padding: 0; list-style: none; }
.result-columns, .job-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, .38fr) minmax(82px, .42fr) minmax(70px, .3fr);
  gap: 5px 10px;
}
.result-columns {
  margin-top: 8px;
  padding: 4px 7px;
  background: var(--navy);
  color: #fff;
  font-size: .8125rem;
}
.job-row {
  align-items: baseline;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 7px;
}
.job-row:nth-child(even) { background: #f4f2e8; }
.job-title { font-weight: bold; overflow-wrap: anywhere; }
.job-company, .row-format, .row-date, .row-salary { font-size: .8125rem; overflow-wrap: anywhere; }
.job-company { color: var(--muted); margin: 2px 0 0; }
.row-date { display: flex; flex-direction: column; gap: 1px; }
.row-reactions { display: inline-flex; gap: 5px; align-self: flex-end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-like { color: #285623; }
.row-dislike { color: #801f1f; }
.date-origin { color: var(--muted); font-size: .75rem; }
.sources { display: inline-flex; flex-wrap: wrap; gap: 3px; margin-left: 5px; vertical-align: .13em; }
.source-badge {
  display: inline-block;
  padding: 0 3px;
  border: 1px solid #a4a3ad;
  color: #36364c;
  background: #ecebf2;
  font: .75rem/1.3 "Courier New", monospace;
  white-space: nowrap;
}
.source-badge[data-source="hh"] { background: #f6e7e7; border-color: #c6a3a3; color: #7f2529; }
.source-badge[data-source="telegram"] { background: #e5edf9; border-color: #9baec7; color: #244b79; }
.source-badge[data-source="website"] { background: #e8eee2; border-color: #a4b593; color: #364e28; }
#toggle-old { margin: 14px 1px 0; font-size: .875rem; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  margin: 10px 1px 0;
  font-size: .875rem;
}
.page-buttons, .page-size-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.page-size-form input { width: 4rem; }

.document { max-width: 48rem; margin-top: 22px; overflow-wrap: anywhere; }
.document article { margin-top: 12px; }
.document ul { padding-left: 24px; }
.document time { font-variant-numeric: tabular-nums; }
.job-meta { color: var(--muted); margin: 6px 0 14px; }
.job-detail-block { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.job-original { border: 1px solid var(--line); margin-top: 14px; padding: 8px 10px; }
.job-original summary { color: var(--blue); cursor: pointer; text-decoration: underline; }
.job-original[open] summary { margin-bottom: 8px; }
.job-description { white-space: pre-wrap; }
.source-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.source-action { color: var(--blue); text-decoration: none; }
.source-action:hover { text-decoration: underline; }
.job-preview {
  position: fixed;
  z-index: 5;
  width: min(24rem, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  padding: 8px 10px;
  border: 1px solid var(--ink);
  background: #ffffe6;
  box-shadow: 2px 2px 0 var(--line);
  font-size: .875rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.job-preview p { margin: 0; }
.job-preview p + p { margin-top: .5em; }
.job-preview strong { display: block; }
.tag-list, .source-links { display: flex; gap: 6px 12px; flex-wrap: wrap; list-style: none; padding: 0 !important; margin: 4px 0 10px; }
.tag-list li { border: 1px solid var(--line); background: #f0ede0; padding: 1px 5px; font-size: .875rem; }
.react { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.react button { margin: 1px; font-size: .875rem; }
.react [role="status"], #feedback-status { color: var(--muted); font-size: .875rem; margin: 0; }
.flag-good { color: #354f26; }
.flag-bad { color: #882b25; }
.latest-news {
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.latest-news .section-heading { justify-content: space-between; margin: 20px 0 8px; }
.latest-news h2 { margin: 0; }
.latest-news .section-heading a { font-size: .875rem; }
.latest-issues { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 10px 16px; }
.latest-issue {
  min-width: 0;
  border-top: 2px solid var(--navy);
  padding: 7px 8px 0;
  background: #f4f2e8;
  overflow-wrap: anywhere;
}
.latest-issue h3 { margin-bottom: 4px; }
.tag-cloud { margin-top: 18px; padding: 8px 10px; border: 1px solid var(--line); }
.tag-cloud summary { color: var(--blue); cursor: pointer; text-decoration: underline; font-weight: bold; overflow-wrap: anywhere; }
.cloud-tags { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; margin-top: 6px; }
.cloud-tags button { max-width: 100%; color: var(--blue); background: none; border: 0; box-shadow: none; padding: 0 3px; text-decoration: underline; overflow-wrap: anywhere; }
.cloud-tags button[aria-pressed="true"] { background: #dce3f3; color: var(--ink); }
.news-excerpt { font-size: .875rem; }
.news-entry { border-bottom: 1px solid var(--line); padding: 0 0 12px; margin-bottom: 18px; }
.news-byline { color: var(--muted); font-size: .875rem; }
.news-body { white-space: pre-wrap; }
#issue-detail .news-byline { margin: 6px 0 14px; }
#issue-detail .react { margin-top: 15px; }
.api-parameters dt { margin-top: .5em; }
.api-parameters dd { margin-left: 1.2em; }
code { font-family: "Courier New", monospace; }
.feedback-form { display: grid; justify-items: start; gap: 8px; max-width: 30rem; }
.feedback-form input, .feedback-form textarea { width: 100%; }
.feedback-form button { margin: 3px 1px 0; }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 9px 18px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  font-size: .875rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.site-footer p { margin: 0; overflow-wrap: anywhere; }
.site-footer button { border: 0; padding: 0; box-shadow: none; background: none; color: var(--blue); text-decoration: underline; text-underline-offset: .15em; }
.site-footer button:hover { color: #aa2c1c; }

.system-dialog {
  width: min(30rem, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border: 2px solid;
  border-color: #f9f8f1 #62605c #62605c #f9f8f1;
  box-shadow: 0 0 0 1px #292831, 4px 4px 0 #29283180;
  padding: 0;
  background: #eeece4;
  color: var(--ink);
}
.system-dialog::backdrop { background: #22253859; }
.dialog-title {
  background: var(--navy);
  border-bottom: 1px solid #111638;
  color: #fff;
  font-weight: bold;
  font-size: .9375rem;
  padding: 4px 10px;
}
.dialog-content { padding: 15px; }
.dialog-content p { margin: 0 0 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin: 14px 1px 1px; }
.dialog-actions button { min-width: 66px; }
.role-options { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.role-option { display: flex; align-items: center; gap: 6px; border: 1px solid #a7a494; padding: 3px 5px; background: #faf8ed; cursor: pointer; }
.role-option:has(:checked) { background: #dce3f3; border-color: #697b9a; }
.skip-link { position: fixed; z-index: 2; top: -100px; left: 10px; background: #fff; padding: 4px; }
.skip-link:focus { top: 10px; }
.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  white-space: nowrap;
  overflow: hidden;
}

@media (max-width: 850px) {
  .catalog-layout { grid-template-columns: 1fr; gap: 8px; }
  .filters { display: grid; grid-template-columns: 1fr minmax(9.5rem, .55fr); gap: 8px; }
}
@media (max-width: 620px) {
  .latest-issues { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .filters { grid-template-columns: 1fr; }
  .filter-box { margin-bottom: 2px; }
  .secondary-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; }
  .secondary-filters label[for="scope-filter"] { grid-column: 1; }
  .secondary-filters select { grid-column: 1; grid-row: 3; }
  .secondary-filters button { grid-column: 2; grid-row: 3; }
  .result-columns { display: none; }
  .job-row { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: 3px; }
  .job-row > :first-child { grid-column: 1 / -1; }
  .row-date { align-items: flex-end; text-align: right; }
}
