:root {
  --ink: #24362f;
  --muted: #5b6862;
  --paper: #f2eee3;
  --white: #fffdf7;
  --line: #c9c0ae;
  --green: #356553;
  --green-pale: #dce7df;
  --rust: #af5238;
  --rust-pale: #efd9cf;
  --yellow: #d6af4c;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  z-index: 30;
  top: 7px;
  left: 7px;
  padding: 8px 12px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.site-header,
.site-footer,
.home,
.content-page {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}
.job-mark {
  display: grid;
  grid-template-columns: 17px 22px 28px;
  gap: 2px;
}
.job-mark i {
  display: grid;
  place-items: center;
  height: 25px;
  border: 1px solid var(--ink);
  font-family: ui-monospace, monospace;
  font-size: 0.61rem;
  font-style: normal;
}
.job-mark i:last-child {
  color: white;
  background: var(--rust);
  border-color: var(--rust);
}
.site-header nav,
.site-footer span:last-child {
  display: flex;
  gap: 18px;
}
.site-header nav a {
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 800;
  text-decoration: none;
}
.site-header nav a:hover {
  color: var(--rust);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: 58px;
  min-height: 480px;
  padding: 52px 0 46px;
}
.eyebrow,
.section-heading p,
.result-heading p,
.compare-tray header p,
.content-heading p {
  margin: 0 0 7px;
  color: var(--rust);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.product-heading h1 {
  max-width: 520px;
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.24;
  letter-spacing: 0.02em;
}
.product-heading > p:not(.eyebrow) {
  max-width: 530px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.9;
}
.facts {
  display: flex;
  margin-top: 33px;
}
.facts span {
  min-width: 112px;
  padding-right: 23px;
}
.facts span + span {
  padding-left: 23px;
  border-left: 1px solid var(--line);
}
.facts strong,
.facts small {
  display: block;
}
.facts strong {
  font-family: ui-monospace, monospace;
  font-size: 1.35rem;
}
.facts small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.67rem;
}

.workbench {
  position: relative;
  min-height: 350px;
  padding: 30px 28px;
  background: #e4e7dc;
  border: 1px solid #bdc6b9;
  box-shadow: 0 14px 32px rgb(36 54 47 / 10%);
  overflow: hidden;
}
.workbench::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgb(53 101 83 / 19%);
}
.worker-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: end;
  min-height: 120px;
}
.worker {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
}
.worker > i {
  position: relative;
  display: block;
  width: 47px;
  height: 63px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 24px 24px 5px 5px;
}
.worker > i::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 9px;
  width: 25px;
  height: 25px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.worker > i::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 17px;
  width: 22px;
  height: 10px;
  background: var(--rust);
  border: 2px solid var(--ink);
}
.worker b {
  font-size: 0.64rem;
}
.worker.clerk > i::after {
  width: 27px;
  height: 18px;
  background: var(--yellow);
}
.worker.maker > i::after {
  background: var(--green);
  transform: rotate(-14deg);
}
.worker.driver > i::after {
  border-radius: 50%;
  background: transparent;
}
.job-rail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.3fr;
  align-items: center;
  gap: 5px;
  margin-top: 23px;
  padding: 6px;
  background: var(--ink);
}
.job-rail span {
  display: grid;
  min-height: 58px;
  align-content: center;
  padding: 5px 10px;
  background: var(--white);
}
.job-rail small {
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 900;
}
.job-rail b {
  font-family: ui-monospace, monospace;
  font-size: 1.35rem;
}
.job-rail > i {
  color: var(--paper);
  font-style: normal;
}
.job-rail .final {
  color: white;
  background: var(--rust);
}
.job-rail .final small {
  color: var(--rust-pale);
}
.task-card {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 16px;
  display: none;
  width: 180px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 5px 5px 0 rgb(36 54 47 / 12%);
}
.task-card small,
.task-card span {
  display: block;
}
.task-card small {
  margin-bottom: 5px;
  color: var(--rust);
  font-weight: 900;
}
.task-card span {
  padding: 3px 0;
  border-top: 1px solid var(--line);
  font-size: 0.6rem;
}

.version-ribbon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  padding: 11px 15px;
  color: white;
  background: var(--ink);
  font-size: 0.72rem;
}
.version-ribbon strong {
  color: #f0d47a;
}
.version-ribbon span {
  opacity: 0.82;
}
.version-ribbon a {
  color: white;
  font-weight: 900;
}
.search-desk,
.major-board,
.job-results,
.compare-tray {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 7px 20px rgb(36 54 47 / 5%);
}
.search-desk,
.major-board {
  margin-top: 18px;
  padding: 26px 28px;
}
.section-heading,
.result-heading,
.compare-tray > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.section-heading h2,
.result-heading h2,
.compare-tray h2 {
  margin: 0;
  font-family: "Yu Mincho", serif;
  font-size: 1.34rem;
}
.section-heading output,
.result-heading output,
.compare-tray output {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 900;
}
.section-heading > button {
  padding: 7px 10px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  cursor: pointer;
}
.job-search {
  display: grid;
  gap: 7px;
  margin-top: 21px;
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 900;
}
.search-box {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  border: 2px solid var(--ink);
}
.search-box i {
  text-align: center;
  font-family: serif;
  font-size: 1.45rem;
  font-style: normal;
}
.search-box input {
  min-width: 0;
  padding: 13px 8px;
  background: transparent;
  border: 0;
  outline: none;
}
.search-box button {
  align-self: stretch;
  padding: 0 15px;
  background: var(--paper);
  border: 0;
  border-left: 1px solid var(--line);
  cursor: pointer;
}
.level-filter {
  margin: 17px 0 0;
  padding: 0;
  border: 0;
}
.level-filter legend {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}
.level-filter div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.level-filter button {
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 0.74rem;
  cursor: pointer;
}
.level-filter button[aria-pressed="true"] {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.privacy-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
}

.major-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 19px;
}
.major-grid > button {
  display: grid;
  grid-template-columns: 40px auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 8px;
  min-height: 74px;
  padding: 9px;
  background: #faf8f1;
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}
.major-grid > button:hover {
  border-color: var(--green);
}
.major-grid > button[aria-pressed="true"] {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.major-icon {
  grid-row: 1 / 3;
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 44px;
  border: 1px solid currentColor;
}
.major-icon i {
  width: 19px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.major-icon.plan i {
  border-radius: 0;
  transform: rotate(45deg);
}
.major-icon.desk i {
  border-radius: 0;
  border-width: 0 0 3px 3px;
}
.major-icon.shop i::after {
  content: "";
  display: block;
  width: 17px;
  border-top: 4px double currentColor;
}
.major-icon.shield i {
  border-radius: 50% 50% 6px 6px;
}
.major-icon.field i {
  border-radius: 50% 0;
  transform: rotate(-30deg);
}
.major-icon.factory i {
  border-radius: 0;
  border-top-width: 7px;
}
.major-icon.wheel i {
  border-width: 5px;
}
.major-icon.frame i {
  border-radius: 0;
  transform: rotate(45deg);
}
.major-icon.box i {
  border-radius: 0;
  box-shadow: 4px 4px 0 currentColor;
}
.major-icon.blank i {
  border-style: dashed;
}
.major-code {
  font-family: ui-monospace, monospace;
  font-size: 0.69rem;
  font-weight: 900;
}
.major-grid strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.major-grid small {
  grid-column: 2 / 4;
  color: var(--muted);
  font-size: 0.58rem;
}
.major-grid button[aria-pressed="true"] small {
  color: #dce7df;
}

.result-and-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 18px;
  margin: 18px 0 56px;
}
.job-results,
.compare-tray {
  padding: 25px 28px;
}
#search-status {
  margin: 15px 0 10px;
  color: var(--muted);
  font-size: 0.71rem;
}
.job-list {
  display: grid;
  gap: 10px;
}
.job-card {
  padding: 16px;
  background: #fbfaf5;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
}
.job-card.level-1 {
  border-left-color: var(--yellow);
}
.job-card.level-2 {
  border-left-color: #778d7d;
}
.job-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.job-code {
  padding: 5px 9px;
  color: white;
  background: var(--ink);
  font-family: ui-monospace, monospace;
  font-size: 0.87rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.level-badge {
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 900;
}
.job-card h3 {
  margin: 11px 0 7px;
  font-family: "Yu Mincho", serif;
  font-size: 1.13rem;
}
.job-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.job-trail li {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  color: var(--muted);
  background: var(--green-pale);
  font-size: 0.61rem;
}
.job-trail code {
  color: var(--green);
  font-weight: 900;
}
.job-description {
  display: -webkit-box;
  margin: 11px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 13px;
}
.card-actions button,
.official-link {
  display: grid;
  place-items: center;
  min-height: 33px;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  font-size: 0.67rem;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}
.copy-button {
  color: white;
  background: var(--ink);
}
.compare-button {
  color: var(--green);
  background: var(--green-pale);
  border-color: #9eb5a7 !important;
}
.compare-button.is-selected {
  color: white;
  background: var(--green);
}
.official-link {
  color: var(--rust);
  border-color: #d4a496;
}
.load-more {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  color: white;
  background: var(--green);
  border: 0;
  font-weight: 900;
  cursor: pointer;
}
.loading-note,
.empty-result {
  padding: 35px 20px;
  color: var(--muted);
  background: var(--paper);
  text-align: center;
}
.empty-result p {
  margin: 7px auto 15px;
  font-size: 0.77rem;
  line-height: 1.7;
}
.reset-button {
  padding: 7px 12px;
  background: white;
  border: 1px solid var(--ink);
  font-size: 0.72rem;
  cursor: pointer;
}

.compare-tray {
  position: sticky;
  top: 12px;
  border-top: 4px solid var(--rust);
}
#compared-items {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}
.empty-tray {
  margin: 0;
  padding: 20px 14px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.72rem;
  line-height: 1.7;
}
.compared-row {
  position: relative;
  padding: 11px;
  background: #faf8f1;
  border: 1px solid var(--line);
}
.compared-row header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-right: 30px;
}
.compared-row header code {
  color: white;
  background: var(--green);
  padding: 3px 5px;
  font-size: 0.65rem;
}
.compared-row header strong {
  overflow: hidden;
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compared-row > small {
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-size: 0.57rem;
  line-height: 1.5;
}
.compared-row > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.6;
}
.remove-compared {
  position: absolute;
  top: 7px;
  right: 6px;
  padding: 4px;
  color: var(--rust);
  background: transparent;
  border: 0;
  font-size: 0.61rem;
  cursor: pointer;
}
.compare-actions {
  display: grid;
  gap: 6px;
  margin-top: 13px;
}
.compare-actions button {
  padding: 9px;
  color: white;
  background: var(--rust);
  border: 1px solid var(--rust);
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}
.compare-actions .clear-button {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}
.compare-actions button:disabled {
  cursor: default;
  opacity: 0.42;
}

.content-page {
  min-height: calc(100vh - 155px);
  padding: 48px 0 62px;
}
.content-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 27px;
}
.content-heading > span {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  color: white;
  background: var(--rust);
  font-family: "Yu Mincho", serif;
  font-size: 1.35rem;
}
.content-heading h1 {
  margin: 0;
  font-family: "Yu Mincho", serif;
  font-size: clamp(1.55rem, 3.1vw, 2.2rem);
}
.instruction-grid,
.source-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.source-grid,
.privacy-grid {
  grid-template-columns: repeat(2, 1fr);
}
.instruction-grid section,
.source-grid section,
.privacy-grid section {
  padding: 23px;
  background: var(--white);
}
.instruction-grid section > b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: white;
  background: var(--green);
  font-family: "Yu Mincho", serif;
}
.instruction-grid h2,
.source-grid h2,
.privacy-grid h2 {
  margin: 13px 0 7px;
  font-size: 0.92rem;
}
.source-grid h2,
.privacy-grid h2 {
  margin-top: 0;
}
.instruction-grid p,
.source-grid p,
.privacy-grid p,
.care-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.85;
}
.classification-anatomy {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.2fr;
  align-items: center;
  gap: 6px;
  width: min(590px, 100%);
  margin: 25px auto;
  padding: 7px;
  background: var(--ink);
}
.classification-anatomy span {
  display: grid;
  min-height: 78px;
  align-content: center;
  padding: 7px 12px;
  background: var(--white);
}
.classification-anatomy span:last-child {
  color: white;
  background: var(--rust);
}
.classification-anatomy small {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 900;
}
.classification-anatomy span:last-child small {
  color: var(--rust-pale);
}
.classification-anatomy b {
  font-family: ui-monospace, monospace;
  font-size: 1.75rem;
}
.classification-anatomy > i {
  color: white;
  font-style: normal;
}
.care-note {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--green-pale);
  border-left: 4px solid var(--green);
}
.care-note.warning {
  background: var(--rust-pale);
  border-left-color: var(--rust);
}
.care-note strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.82rem;
}
.page-cta {
  display: inline-block;
  margin-top: 23px;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
  font-size: 0.77rem;
  font-weight: 900;
  text-decoration: none;
}
.source-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 22px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.source-ledger div {
  min-width: 0;
  padding: 13px;
  background: var(--white);
}
.source-ledger div:last-child {
  grid-column: 1 / -1;
}
.source-ledger dt {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
}
.source-ledger dd {
  margin: 4px 0 0;
  font-size: 0.77rem;
}
.source-ledger code {
  overflow-wrap: anywhere;
  font-size: 0.67rem;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
  padding: 22px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.66rem;
}
.site-footer a {
  color: var(--muted);
}
.not-found {
  display: grid;
  justify-items: center;
  min-height: calc(100vh - 155px);
  padding: 80px 20px;
  text-align: center;
}
.not-found > span {
  color: var(--rust);
  font-family: ui-monospace, monospace;
  font-size: 2.4rem;
  font-weight: 900;
}
.not-found h1 {
  margin: 8px 0;
  font-family: "Yu Mincho", serif;
  font-size: 1.7rem;
}
.not-found p {
  color: var(--muted);
}
.not-found a {
  padding: 9px 14px;
  color: white;
  background: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

@media (min-width: 1080px) {
  .task-card {
    display: block;
  }
  .workbench {
    padding-right: 85px;
  }
}
@media (max-width: 930px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
  }
  .result-and-compare {
    grid-template-columns: 1fr;
  }
  .compare-tray {
    position: static;
  }
  .major-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 680px) {
  .site-header,
  .site-footer,
  .home,
  .content-page {
    width: min(100% - 22px, 1180px);
  }
  .site-header {
    align-items: flex-start;
    min-height: 90px;
    padding: 14px 0;
  }
  .site-header nav {
    display: grid;
    gap: 2px;
    justify-items: end;
  }
  .intro {
    padding: 34px 0 28px;
  }
  .product-heading h1 {
    font-size: 2rem;
  }
  .facts span {
    min-width: 0;
    flex: 1;
    padding-right: 10px;
  }
  .facts span + span {
    padding-left: 10px;
  }
  .facts strong {
    font-size: 1.04rem;
  }
  .workbench {
    min-height: 310px;
    padding: 24px 13px;
  }
  .worker > i {
    width: 37px;
    height: 52px;
  }
  .worker > i::before {
    left: 6px;
    width: 22px;
    height: 22px;
  }
  .job-rail b {
    font-size: 1rem;
  }
  .version-ribbon {
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
  }
  .version-ribbon span {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .search-desk,
  .major-board,
  .job-results,
  .compare-tray {
    padding: 18px;
  }
  .major-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-actions {
    grid-template-columns: 1fr 1fr;
  }
  .official-link {
    grid-column: 1 / -1;
  }
  .instruction-grid,
  .source-grid,
  .privacy-grid,
  .source-ledger {
    grid-template-columns: 1fr;
  }
  .source-ledger div:last-child {
    grid-column: auto;
  }
  .site-footer {
    display: grid;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
