/*
 * Firsthand Design System
 * A conventional, high-trust job-search interface.
 * Loaded after the legacy stylesheet while the product is migrated.
 */

:root {
  --fh-primary: #147a63;
  --fh-primary-hover: #0f6552;
  --fh-primary-soft: #eaf5f1;
  --fh-primary-pale: #f4f9f7;
  --fh-text: #20282f;
  --fh-text-strong: #151b20;
  --fh-muted: #65717c;
  --fh-subtle: #87919a;
  --fh-border: #d9dfe3;
  --fh-border-strong: #c7ced4;
  --fh-canvas: #f6f7f8;
  --fh-surface: #ffffff;
  --fh-warning: #fff6db;
  --fh-warning-border: #ead08a;
  --fh-danger: #b94545;
  --fh-radius-sm: 6px;
  --fh-radius: 10px;
  --fh-radius-lg: 14px;
  --fh-shadow-sm: 0 1px 2px rgb(24 39 49 / 7%);
  --fh-shadow: 0 3px 12px rgb(24 39 49 / 8%);
  --fh-content: 1120px;
  --fh-font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--fh-canvas);
  color: var(--fh-text);
  font-family: var(--fh-font);
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--fh-canvas);
  color: var(--fh-text);
  font-family: var(--fh-font);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select,
summary {
  cursor: pointer;
}

a {
  color: var(--fh-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--fh-primary-hover);
}

:focus-visible {
  outline: 3px solid rgb(20 122 99 / 24%);
  outline-offset: 2px;
}

::selection {
  background: #cce9df;
  color: var(--fh-text-strong);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  color: var(--fh-text-strong);
}

h1,
h2,
h3 {
  font-family: var(--fh-font);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2rem);
  line-height: 1.35;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.5rem);
  line-height: 1.4;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.5;
}

.ui-icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  stroke-width: 1.8;
}

.section-index,
.overline {
  margin: 0 0 6px;
  color: var(--fh-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  border-radius: var(--fh-radius-sm);
  background: var(--fh-text-strong);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: relative;
  z-index: 20;
  top: auto;
  min-height: 64px;
  border-bottom: 1px solid var(--fh-border);
  background: rgb(255 255 255 / 97%);
  box-shadow: none;
}

.site-header__inner {
  display: flex;
  width: min(100% - 40px, var(--fh-content));
  min-height: 64px;
  margin: 0 auto;
  padding: 0;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  min-width: auto;
  color: var(--fh-text-strong);
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.brand:hover {
  color: var(--fh-text-strong);
}

.brand__wordmark {
  display: block;
  width: 143px;
  height: auto;
}

.brand > small {
  margin-left: 1px;
  color: var(--fh-muted);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
}

.site-header nav,
.site-header nav ul {
  margin: 0;
}

.nav-list {
  display: flex;
  padding: 0;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link,
.saved-indicator {
  display: inline-flex;
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: var(--fh-radius-sm);
  color: #45515b;
  font-size: 0.88rem;
  font-weight: 600;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.nav-link:hover,
.saved-indicator:hover,
.nav-link--active {
  background: var(--fh-primary-pale);
  color: var(--fh-primary-hover);
}

.nav-link::after {
  display: none;
  content: none;
}

.nav-link--active {
  box-shadow: none;
}

.saved-indicator {
  border: 1px solid var(--fh-border);
  background: var(--fh-surface);
}

.saved-indicator--active {
  border-color: #b6dace;
  background: var(--fh-primary-soft);
  color: var(--fh-primary-hover);
}

.saved-indicator strong {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--fh-primary);
  color: #fff;
  font-size: 0.7rem;
  place-items: center;
}

/* Shared status and surfaces */

.demo-notice {
  display: flex;
  min-height: 36px;
  margin: 0;
  padding: 7px 20px;
  border: 0;
  border-bottom: 1px solid var(--fh-warning-border);
  border-radius: 0;
  background: var(--fh-warning);
  color: #635321;
  font-size: 0.78rem;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.demo-notice span {
  padding: 1px 6px;
  border: 1px solid #d8bd6b;
  border-radius: 4px;
  color: #655010;
  font-size: 0.68rem;
  font-weight: 700;
}

/* Home search */

.atlas-hero {
  min-height: 0;
  padding: 45px 24px 40px;
  border: 0;
  border-bottom: 1px solid #dce6e2;
  background: var(--fh-primary-pale);
  color: var(--fh-text);
}

.atlas-hero::before,
.atlas-hero::after {
  display: none;
}

.atlas-hero__inner {
  display: block;
  width: min(100%, var(--fh-content));
  min-height: 0;
  margin: 0 auto;
  padding: 0;
}

.atlas-hero__copy {
  display: block;
  width: 100%;
  max-width: none;
}

.job-site-label {
  display: flex;
  width: max-content;
  margin: 0 auto 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fh-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  align-items: center;
  gap: 6px;
}

.hero-brand {
  display: flex;
  width: max-content;
  margin: 0 auto 15px;
  color: var(--fh-text-strong);
  align-items: center;
  flex-direction: column;
  gap: 7px;
}

.hero-brand__wordmark {
  display: block;
  width: 218px;
  height: auto;
  animation: hero-wordmark-in 560ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-brand span {
  color: var(--fh-muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
}

@keyframes hero-wordmark-in {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    clip-path: inset(0);
    transform: translateY(0);
  }
}

.atlas-hero h1 {
  max-width: none;
  margin: 0;
  color: var(--fh-text-strong);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
}

.atlas-hero h1 span {
  display: inline;
}

.atlas-hero h1 span + span::before {
  content: none;
}

.atlas-hero__lead {
  max-width: 660px;
  margin: 10px auto 25px;
  color: var(--fh-muted);
  font-size: 0.94rem;
  line-height: 1.8;
  text-align: center;
}

.atlas-hero__lead strong {
  color: var(--fh-primary);
  font-size: inherit;
}

.hero-job-search {
  display: grid;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--fh-border-strong);
  border-radius: var(--fh-radius);
  background: var(--fh-surface);
  box-shadow: var(--fh-shadow);
  grid-template-columns: minmax(260px, 1.4fr) minmax(210px, 0.8fr) 136px;
  gap: 0;
}

.hero-job-search__field {
  display: flex;
  min-width: 0;
  min-height: 54px;
  padding: 7px 16px;
  border: 0;
  border-right: 1px solid var(--fh-border);
  border-radius: 0;
  background: var(--fh-surface);
  flex-direction: column;
  justify-content: center;
}

.hero-job-search__field > span:first-child {
  display: flex;
  margin-bottom: 1px;
  color: var(--fh-muted);
  font-size: 0.72rem;
  font-weight: 600;
  align-items: center;
  gap: 5px;
}

.hero-job-search input,
.hero-job-search select {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fh-text);
  font-size: 0.94rem;
  line-height: 1.6;
}

.hero-job-search input::placeholder {
  color: #929ba3;
}

.hero-job-search__select {
  position: relative;
  display: block;
}

.hero-job-search__select select {
  padding-right: 24px;
  appearance: none;
}

.hero-job-search__select > svg {
  position: absolute;
  top: 50%;
  right: 0;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--fh-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-job-search > button,
.search-button,
.apply-button,
.primary-link {
  display: inline-flex;
  min-height: 48px;
  border: 1px solid var(--fh-primary);
  border-radius: 7px;
  background: var(--fh-primary);
  color: #fff;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.hero-job-search > button {
  min-height: 54px;
  margin-left: 10px;
  padding: 0 18px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.hero-job-search > button:hover,
.search-button:hover,
.apply-button:hover,
.primary-link:hover {
  border-color: var(--fh-primary-hover);
  background: var(--fh-primary-hover);
  color: #fff;
}

.atlas-hero__quick-links {
  display: flex;
  margin: 12px auto 0;
  justify-content: center;
  gap: 18px;
}

.atlas-hero__quick-links a {
  display: inline-flex;
  color: var(--fh-primary-hover);
  font-size: 0.8rem;
  font-weight: 600;
  align-items: center;
  gap: 5px;
}

.home-summary {
  display: grid;
  max-width: 900px;
  min-height: 0;
  margin: 26px auto 0;
  padding: 0;
  border: 0;
  align-items: center;
  grid-template-columns: auto auto minmax(0, 1fr);
  column-gap: 28px;
}

.home-summary > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
}

.home-summary > div + div {
  padding-left: 0;
  border-left: 0;
}

.home-summary > div strong {
  color: var(--fh-primary-hover);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.home-summary > div span {
  color: var(--fh-muted);
  font-size: 0.75rem;
}

.atlas-trust {
  display: flex;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--fh-muted);
  font-size: 0.76rem;
  justify-content: flex-end;
  gap: 18px;
  list-style: none;
}

.atlas-trust li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.atlas-trust .ui-icon {
  color: var(--fh-primary);
}

.popular-filters {
  display: flex;
  max-width: 900px;
  margin: 14px auto 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.popular-filters > span {
  margin-right: 3px;
  color: var(--fh-muted);
  font-size: 0.75rem;
}

.popular-filters a {
  display: inline-flex;
  min-height: 31px;
  padding: 4px 10px;
  border: 1px solid #c9dcd5;
  border-radius: 99px;
  background: var(--fh-surface);
  color: #3c5c52;
  font-size: 0.75rem;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.popular-filters a:hover {
  border-color: #91bbae;
  background: #fff;
}

.popular-filters small {
  color: var(--fh-subtle);
  font-size: 0.68rem;
}

.atlas-visual,
.atlas-bars {
  display: none;
}

/* Home discovery */

.explore-start,
.recent-work {
  width: min(100% - 48px, var(--fh-content));
  margin: 0 auto;
}

.explore-start {
  padding: 54px 0 0;
}

.explore-start__heading,
.recent-work > header {
  display: flex;
  margin-bottom: 18px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.explore-start__heading h2,
.recent-work h2 {
  margin: 0;
  color: var(--fh-text-strong);
  font-size: 1.45rem;
}

.explore-start__heading > p {
  max-width: 480px;
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.83rem;
}

.explore-paths {
  display: grid;
  margin: 0;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  background: var(--fh-surface);
  box-shadow: var(--fh-shadow-sm);
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.explore-path {
  display: flex;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 24px 26px;
  border: 0;
  border-right: 1px solid var(--fh-border);
  background: transparent;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 18px;
  transition: none;
}

.explore-path:last-child {
  border-right: 0;
}

.explore-path:hover,
.explore-path:focus-within {
  padding-inline: 26px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.explore-path__number {
  display: none;
}

.explore-path > .explore-path__intro {
  position: static;
  display: block;
  width: 100%;
  padding: 0;
}

.explore-path__title {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  gap: 10px;
}

.explore-path__title > .ui-icon {
  display: block;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 8px;
  background: var(--fh-primary-soft);
  color: var(--fh-primary);
  flex: 0 0 32px;
}

.explore-path h3 {
  margin: 0;
  color: var(--fh-text-strong);
  font-size: 1.02rem;
}

.explore-path p {
  min-height: 0;
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.route-search {
  display: flex;
  width: 100%;
  min-height: 43px;
  margin-top: 0;
  border: 1px solid var(--fh-border-strong);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.route-search input {
  min-width: 0;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.78rem;
  flex: 1;
}

.route-search button {
  width: 42px;
  border: 0;
  background: var(--fh-primary);
  color: #fff;
  font-size: 1rem;
}

.route-links {
  display: grid;
  width: 100%;
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-links a {
  display: flex;
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  border-top: 1px solid #edf0f2;
  border-left: 1px solid #edf0f2;
  color: #334047;
  font-size: 0.79rem;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}

.route-links a:first-child {
  border-left: 0;
}

.route-links a:hover {
  background: var(--fh-primary-pale);
  color: var(--fh-primary-hover);
}

.route-links a span {
  min-width: 0;
  color: var(--fh-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
}

.route-links--locations {
  grid-template-columns: 1fr 1fr;
  column-gap: 13px;
}

.route-links--locations a {
  min-height: 38px;
  padding: 7px 4px;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

.route-links--locations a:nth-child(odd) {
  border-left: 0;
}

.route-links--locations a span {
  min-width: 28px;
  text-align: right;
}

.advanced-search {
  margin-top: 16px;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  background: var(--fh-surface);
  box-shadow: var(--fh-shadow-sm);
}

.advanced-search > summary {
  display: flex;
  min-height: 54px;
  padding: 0 18px;
  color: #334047;
  font-size: 0.83rem;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.advanced-search > summary::-webkit-details-marker {
  display: none;
}

.advanced-search > summary span {
  display: flex;
  font-weight: 700;
  align-items: center;
  gap: 7px;
}

.advanced-search > summary small {
  color: var(--fh-muted);
  font-size: 0.75rem;
}

.advanced-search[open] > summary {
  border-bottom: 1px solid var(--fh-border);
}

/* Shared search controls */

.search-form {
  display: grid;
  margin: 0;
  padding: 22px;
  border: 0;
  border-radius: 0 0 var(--fh-radius) var(--fh-radius);
  background: var(--fh-surface);
  box-shadow: none;
  grid-template-columns: minmax(250px, 1.2fr) minmax(0, 2fr);
  gap: 18px;
}

.search-form__heading {
  display: flex;
  margin: 0;
  padding: 0;
  grid-column: 1 / -1;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.search-form__heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.search-form__heading span {
  color: var(--fh-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
}

.search-form__heading strong {
  color: var(--fh-text-strong);
  font-size: 1.05rem;
}

.search-form__heading p {
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.75rem;
}

.search-form label,
.search-form legend {
  color: #4d5962;
  font-size: 0.72rem;
  font-weight: 600;
}

.search-form__query {
  min-width: 0;
}

.query-input {
  position: relative;
  display: flex;
  min-height: 47px;
  margin-top: 5px;
  border: 1px solid var(--fh-border-strong);
  border-radius: 7px;
  background: #fff;
  align-items: center;
}

.query-input > svg {
  width: 18px;
  height: 18px;
  margin-left: 13px;
  fill: none;
  stroke: var(--fh-muted);
  stroke-width: 1.8;
}

.query-input input {
  min-width: 0;
  height: 45px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.86rem;
  flex: 1;
}

.search-form__filters {
  display: grid;
  min-width: 0;
  align-items: end;
  grid-template-columns: repeat(3, minmax(105px, 1fr)) minmax(125px, 0.9fr) 140px;
  gap: 9px;
}

.select-field,
.salary-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.select-field > label,
.salary-field legend {
  display: flex;
  min-height: 21px;
  padding: 0;
  align-items: center;
  gap: 4px;
}

.select-control {
  position: relative;
  margin-top: 5px;
}

.select-control select {
  width: 100%;
  height: 47px;
  padding: 0 31px 0 10px;
  border: 1px solid var(--fh-border-strong);
  border-radius: 7px;
  outline: 0;
  background: #fff;
  font-size: 0.79rem;
  appearance: none;
}

.select-control > svg {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--fh-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.salary-toggle {
  display: flex;
  width: 100%;
  height: 47px;
  margin-top: 5px;
  padding: 0 9px;
  border: 1px solid var(--fh-border-strong);
  border-radius: 7px;
  background: #fff;
  color: #40505a;
  align-items: center;
  gap: 6px;
}

.salary-toggle input {
  position: absolute;
  opacity: 0;
}

.salary-toggle__box {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid #aeb7bd;
  border-radius: 3px;
  background: #fff;
}

.salary-toggle input:checked + .salary-toggle__box {
  border-color: var(--fh-primary);
  background: var(--fh-primary);
}

.salary-toggle input:checked + .salary-toggle__box::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.salary-toggle__count {
  margin-left: auto;
  color: var(--fh-primary);
  font-size: 0.7rem;
}

.search-button {
  width: 100%;
  min-height: 47px;
  padding: 0 12px;
  font-size: 0.82rem;
}

/* Job list */

.recent-work {
  padding: 60px 0 72px;
}

.recent-work > header {
  margin-bottom: 17px;
}

.recent-work > header a {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.job-list {
  display: flex;
  margin: 0;
  padding: 0;
  border-top: 0;
  flex-direction: column;
  gap: 12px;
}

.job-row {
  position: relative;
  display: grid;
  min-height: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  background: var(--fh-surface);
  box-shadow: var(--fh-shadow-sm);
  animation: none;
  grid-template-columns: minmax(0, 1fr) 148px;
  grid-template-areas:
    "primary actions"
    "facts actions";
  column-gap: 24px;
  row-gap: 17px;
  transform: none;
}

.job-row:hover {
  border-color: var(--fh-border);
  background: #fbfcfc;
  box-shadow: var(--fh-shadow);
  transform: none;
}

.job-row__visual {
  display: none;
}

.job-row__primary {
  min-width: 0;
  grid-area: primary;
}

.job-row__eyebrow {
  display: flex;
  margin: 0 0 7px;
  color: var(--fh-muted);
  font-size: 0.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.job-row__eyebrow > span:first-child {
  color: #445059;
  font-weight: 600;
}

.freshness {
  display: inline-flex;
  color: #567269;
  font-size: 0.7rem;
  white-space: nowrap;
  align-items: center;
  gap: 4px;
}

.freshness__icon {
  color: var(--fh-primary);
}

.job-row h3 {
  margin: 0 0 8px;
  color: var(--fh-text-strong);
  font-size: 1.08rem;
  line-height: 1.5;
}

.job-row h3 a {
  color: inherit;
  text-decoration: none;
}

.job-row h3 a::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
}

.job-row__primary > p {
  display: -webkit-box;
  max-width: 800px;
  margin: 0 0 12px;
  color: var(--fh-muted);
  font-size: 0.8rem;
  line-height: 1.75;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-list {
  position: relative;
  z-index: 1;
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.tag-list li {
  padding: 2px 8px;
  border: 0;
  border-radius: 4px;
  background: #f0f2f3;
  color: #56616a;
  font-size: 0.68rem;
}

.job-row__facts {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 13px 0 0;
  border-top: 1px solid #edf0f2;
  border-left: 0;
  grid-area: facts;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 18px;
}

.job-row__facts div,
.job-row__facts div:nth-child(n) {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.job-row__facts div + div {
  padding-left: 18px;
  border-left: 1px solid #edf0f2;
}

.job-row__facts dt,
.detail-fact dt,
.detail-aside dt {
  display: flex;
  margin: 0 0 3px;
  color: var(--fh-muted);
  font-size: 0.67rem;
  font-weight: 600;
  align-items: center;
  gap: 4px;
}

.job-row__facts dd {
  margin: 0;
  color: #313d44;
  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.5;
}

.job-row__fact--salary dd {
  color: var(--fh-text-strong);
  font-weight: 700;
}

.job-row__actions {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 1px solid #edf0f2;
  grid-area: actions;
  align-items: stretch;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.save-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #cdd5d9;
  border-radius: 7px;
  background: #fff;
  color: #40505a;
  font-size: 0.78rem;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.save-button:hover {
  border-color: #8db9aa;
  background: var(--fh-primary-pale);
  color: var(--fh-primary-hover);
}

.save-button[aria-pressed="true"] {
  border-color: #8db9aa;
  background: var(--fh-primary-soft);
  color: var(--fh-primary-hover);
}

.save-button--compact {
  width: 100%;
  min-width: 0;
}

.save-button--compact .visually-hidden {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  overflow: visible;
  white-space: normal;
}

.save-button--compact .visually-hidden::before {
  content: "保存";
}

.save-button--compact .visually-hidden {
  font-size: 0;
}

.save-button--compact .visually-hidden::before {
  font-size: 0.78rem;
}

.job-row__arrow {
  position: relative;
  z-index: 3;
  display: inline-flex;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--fh-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.job-row__arrow:hover {
  background: var(--fh-primary-hover);
  color: #fff;
}

/* Search results */

.selected-view {
  padding: 27px 24px 25px;
  border: 0;
  border-bottom: 1px solid var(--fh-border);
  background: var(--fh-surface);
  color: var(--fh-text);
}

.selected-view__inner {
  display: grid;
  width: min(100%, var(--fh-content));
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  color: var(--fh-text);
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 24px;
}

.selected-view__back {
  display: inline-flex;
  width: max-content;
  color: var(--fh-primary);
  font-size: 0.76rem;
  grid-column: 1 / -1;
}

.selected-view .overline {
  color: var(--fh-primary);
}

.selected-view h1 {
  max-width: none;
  margin: 0 0 5px;
  color: var(--fh-text-strong);
  font-size: 1.6rem;
  line-height: 1.4;
}

.selected-view__inner > div > p:not(.overline) {
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.8rem;
}

.selected-view__inner > div > p strong {
  margin: 0 3px;
  color: var(--fh-primary-hover);
  font-size: inherit;
}

.selected-view__my {
  display: inline-flex;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--fh-border);
  border-radius: 7px;
  background: #fff;
  color: #40505a;
  font-size: 0.78rem;
  font-weight: 600;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.selected-view__my:hover {
  border-color: #9fc5b8;
  background: var(--fh-primary-pale);
}

.selected-view__my span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--fh-primary);
  color: #fff;
  font-size: 0.68rem;
  place-items: center;
}

.selected-search {
  padding: 24px;
  border-bottom: 1px solid var(--fh-border);
  background: #edf1f1;
}

.selected-search > div {
  width: min(100%, var(--fh-content));
  margin: 0 auto;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  background: #fff;
  box-shadow: var(--fh-shadow-sm);
}

.selected-search .search-form {
  border-radius: var(--fh-radius);
}

.results {
  width: min(100% - 48px, var(--fh-content));
  margin: 0 auto;
  padding: 38px 0 72px;
  border: 0;
}

.result-tools {
  display: grid;
  min-height: 0;
  margin: 0 0 17px;
  padding: 0;
  border: 0;
  background: transparent;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
}

.result-tools__label {
  margin: 0 0 4px;
  color: var(--fh-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.result-tools h2 {
  margin: 0;
  color: var(--fh-text-strong);
  font-size: 1.25rem;
}

.result-total {
  display: inline-flex;
  margin: 6px 12px 0 0;
  color: var(--fh-muted);
  font-size: 0.78rem;
  align-items: baseline;
  gap: 3px;
}

.result-total strong {
  color: var(--fh-primary-hover);
  font-size: 1.25rem;
}

.result-range {
  display: inline;
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.75rem;
}

.result-tools__guide {
  margin: 5px 0 0;
  color: var(--fh-muted);
  font-size: 0.73rem;
}

.result-tools__actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
}

.sort-links {
  display: flex;
  min-height: 36px;
  padding: 3px;
  border: 1px solid var(--fh-border);
  border-radius: 7px;
  background: #fff;
  align-items: center;
}

.sort-links > span {
  padding: 0 8px;
  color: var(--fh-muted);
  font-size: 0.7rem;
}

.sort-links a {
  display: inline-flex;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 5px;
  color: #53606a;
  font-size: 0.72rem;
  align-items: center;
  text-decoration: none;
}

.sort-links a[aria-current="true"] {
  background: var(--fh-primary-soft);
  color: var(--fh-primary-hover);
  font-weight: 700;
}

.result-next {
  display: flex;
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.68rem;
  align-items: center;
  gap: 4px;
}

.pagination {
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.pagination > p {
  margin: 0 0 10px;
  color: var(--fh-muted);
  font-size: 0.72rem;
}

.pagination nav,
.pagination__pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.pagination a,
.pagination__step,
.pagination__pages > span {
  display: inline-flex;
  min-width: 36px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--fh-border);
  border-radius: 6px;
  background: #fff;
  color: #4c5962;
  font-size: 0.75rem;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pagination a[aria-current="page"] {
  border-color: var(--fh-primary);
  background: var(--fh-primary);
  color: #fff;
}

.pagination [aria-disabled="true"] {
  color: #afb6bb;
}

.empty-state {
  padding: 60px 24px;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  background: #fff;
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.empty-state__copy {
  color: var(--fh-muted);
  font-size: 0.82rem;
}

/* Job detail */

.detail-page {
  background: var(--fh-canvas);
}

.detail-page__inner,
.principles-page {
  width: min(100% - 48px, var(--fh-content));
  margin: 0 auto;
  padding: 25px 0 72px;
}

.breadcrumbs {
  display: flex;
  margin: 0 0 17px;
  color: var(--fh-muted);
  font-size: 0.73rem;
  align-items: center;
  gap: 7px;
}

.detail-hero {
  display: grid;
  margin: 0;
  padding: 26px;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  background: #fff;
  box-shadow: var(--fh-shadow-sm);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 175px;
  gap: 28px;
}

.detail-hero__content {
  display: block;
}

.detail-hero__organization {
  margin: 0 0 7px;
  color: var(--fh-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.detail-hero h1 {
  max-width: 760px;
  margin: 0 0 10px;
  color: var(--fh-text-strong);
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  line-height: 1.45;
}

.detail-hero__summary {
  max-width: 760px;
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.detail-hero__actions {
  display: flex;
  width: auto;
  flex-direction: column;
  gap: 8px;
}

.detail-hero__actions > * {
  width: 100%;
}

.community-link-button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--fh-border);
  border-radius: 7px;
  background: #fff;
  color: #45525b;
  font-size: 0.75rem;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.apply-button {
  min-height: 45px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.source-bar {
  display: flex;
  min-height: 47px;
  margin: 10px 0 20px;
  padding: 8px 15px;
  border: 1px solid #cfe2dc;
  border-radius: 7px;
  background: var(--fh-primary-pale);
  color: #52635d;
  font-size: 0.73rem;
  align-items: center;
  gap: 20px;
}

.source-bar > span,
.source-bar time {
  display: flex;
  align-items: center;
  gap: 5px;
}

.decision-note {
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  background: #fff;
  box-shadow: var(--fh-shadow-sm);
  overflow: hidden;
}

.decision-note__heading {
  display: grid;
  min-height: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--fh-border);
  background: #fff;
  align-items: center;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 11px;
}

.decision-note__icon {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--fh-primary-soft);
  color: var(--fh-primary);
  place-items: center;
}

.decision-note__heading h2 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.decision-note__heading p:last-child {
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.72rem;
}

.decision-note__privacy,
.my-page__privacy {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid #cfe2dc;
  border-radius: 99px;
  background: var(--fh-primary-pale);
  color: #4f6e64;
  font-size: 0.68rem;
  align-items: center;
  gap: 5px;
}

.decision-note__workspace {
  display: grid;
  padding: 20px;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
}

.decision-status {
  display: flex;
  margin: 0;
  padding: 0;
  border: 0;
  flex-direction: column;
  gap: 7px;
}

.decision-status legend,
.decision-note__memo > label {
  margin-bottom: 8px;
  color: #3a474f;
  font-size: 0.75rem;
  font-weight: 700;
}

.decision-status label {
  display: flex;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid #e1e5e7;
  border-radius: 6px;
  font-size: 0.73rem;
  align-items: center;
  gap: 7px;
}

.decision-note__memo {
  min-width: 0;
}

.decision-prompts {
  display: flex;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.decision-prompts button {
  min-height: 29px;
  padding: 0 8px;
  border: 1px solid var(--fh-border);
  border-radius: 5px;
  background: #f8f9f9;
  color: #59656d;
  font-size: 0.68rem;
}

.decision-note textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  padding: 11px;
  border: 1px solid var(--fh-border-strong);
  border-radius: 7px;
  outline: 0;
  resize: vertical;
  font-size: 0.8rem;
}

.decision-note__footer {
  display: flex;
  margin-top: 8px;
  color: var(--fh-muted);
  font-size: 0.68rem;
  align-items: center;
  gap: 10px;
}

.decision-note__footer > button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--fh-danger);
  font-size: 0.68rem;
}

.decision-note__footer > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.detail-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 20px;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-main > section {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  background: #fff;
  box-shadow: var(--fh-shadow-sm);
}

.detail-main h2,
.principles-list h2 {
  margin: 0 0 17px;
  font-size: 1.15rem;
}

.detail-facts {
  display: grid;
  margin: 0;
  border: 1px solid #e2e6e8;
  border-radius: 7px;
  overflow: hidden;
  grid-template-columns: 1fr 1fr;
}

.detail-fact,
.detail-fact:nth-child(n) {
  min-width: 0;
  padding: 15px;
  border: 0;
  border-bottom: 1px solid #e6eaec;
  background: #fff;
}

.detail-fact:nth-child(odd) {
  border-right: 1px solid #e6eaec;
}

.detail-fact:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.detail-fact dd {
  margin: 0 0 3px;
  color: var(--fh-text-strong);
  font-size: 0.82rem;
  font-weight: 600;
}

.detail-fact > span {
  color: var(--fh-muted);
  font-size: 0.65rem;
}

.description-section > p:not(.section-index, .fact-source) {
  color: #404b52;
  font-size: 0.83rem;
  line-height: 1.9;
}

.fact-source {
  display: flex;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--fh-primary-pale);
  color: #50655e;
  font-size: 0.72rem;
  gap: 7px;
}

.tag-list--detail {
  margin-top: 18px;
}

.evidence-list {
  border: 1px solid #e2e6e8;
  border-radius: 7px;
  overflow: hidden;
}

.evidence-list > div {
  display: grid;
  min-height: 58px;
  padding: 10px 13px;
  border-bottom: 1px solid #e8ebed;
  align-items: center;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 2px 12px;
}

.evidence-list > div:last-child {
  border-bottom: 0;
}

.evidence-list span {
  color: var(--fh-muted);
  font-size: 0.68rem;
  grid-row: 1 / 3;
}

.evidence-list strong {
  font-size: 0.76rem;
}

.evidence-list small {
  color: var(--fh-subtle);
  font-size: 0.64rem;
}

.detail-aside {
  position: sticky;
  top: 20px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  background: #fff;
  box-shadow: var(--fh-shadow-sm);
}

.detail-aside dl {
  margin: 0;
}

.detail-aside dl div {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f2;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.detail-aside dd {
  margin: 0;
  color: #354149;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: right;
}

.detail-aside > p:not(.section-index) {
  margin: 17px 0;
  color: var(--fh-muted);
  font-size: 0.7rem;
  line-height: 1.75;
}

.detail-aside > a {
  font-size: 0.72rem;
}

/* Saved jobs */

.my-page {
  width: min(100% - 48px, var(--fh-content));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.my-page__header {
  display: grid;
  min-height: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fh-text);
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 20px;
}

.my-page__header h1 {
  margin: 0 0 5px;
  color: var(--fh-text-strong);
  font-size: 1.7rem;
}

.my-page__header > div:first-child > p:last-child {
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.82rem;
}

.my-page__count {
  display: flex;
  padding: 0;
  border: 0;
  align-items: baseline;
  gap: 5px;
}

.my-page__count strong {
  color: var(--fh-primary);
  font-size: 1.5rem;
}

.my-page__count span {
  color: var(--fh-muted);
  font-size: 0.73rem;
}

.my-board {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  background: #fff;
  box-shadow: var(--fh-shadow-sm);
  overflow: hidden;
}

.my-board__toolbar {
  display: flex;
  min-height: 60px;
  padding: 10px 17px;
  border-bottom: 1px solid var(--fh-border);
  background: #fafbfb;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.my-board__toolbar h2 {
  margin: 0;
  font-size: 0.9rem;
}

.my-board__toolbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.my-board__toolbar button {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--fh-border);
  border-radius: 6px;
  background: #fff;
  color: #53606a;
  font-size: 0.7rem;
}

.my-board__toolbar button[aria-pressed="true"] {
  border-color: #a8cec1;
  background: var(--fh-primary-soft);
  color: var(--fh-primary-hover);
}

.my-board__toolbar button span {
  margin-left: 3px;
  font-weight: 700;
}

.my-empty {
  min-height: 320px;
  padding: 52px 24px;
  background: #fff;
  text-align: center;
}

.my-empty[hidden] {
  display: none;
}

.my-empty > span {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 13px;
  border: 0;
  border-radius: 50%;
  background: var(--fh-primary-soft);
  color: var(--fh-primary);
  place-items: center;
}

.my-empty h2 {
  margin: 0 0 7px;
  font-size: 1.15rem;
}

.my-empty > p:not(.section-index) {
  margin: 0 auto 19px;
  color: var(--fh-muted);
  font-size: 0.78rem;
}

.primary-link {
  min-height: 40px;
  padding: 0 15px;
  font-size: 0.76rem;
}

.my-list {
  display: flex;
  padding: 14px;
  border-top: 0;
  flex-direction: column;
  gap: 10px;
}

.my-list:empty {
  display: none;
}

.my-job {
  display: grid;
  min-height: 0;
  padding: 18px;
  border: 1px solid var(--fh-border);
  border-radius: 8px;
  background: #fff;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px 20px;
  transition: none;
}

.my-job:hover {
  padding: 18px;
  border-color: #b6c9c2;
  background: #fff;
  transform: none;
}

.my-job__organization {
  color: var(--fh-muted);
  font-size: 0.7rem;
}

.my-job__identity > a {
  display: block;
  margin-top: 4px;
  color: var(--fh-text-strong);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.my-job__note {
  color: var(--fh-muted);
  font-size: 0.72rem;
}

.my-job__facts {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.my-job__facts > div,
.my-job__facts > div:nth-child(n) {
  padding: 8px;
  border: 0;
  border-radius: 5px;
  background: #f5f7f7;
}

.my-job__facts dt {
  color: var(--fh-muted);
  font-size: 0.62rem;
}

.my-job__facts dd {
  margin: 2px 0 0;
  font-size: 0.7rem;
}

.my-job__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-job__actions label {
  color: var(--fh-muted);
  font-size: 0.68rem;
}

.my-job__actions select {
  min-height: 34px;
  border: 1px solid var(--fh-border);
  border-radius: 6px;
  font-size: 0.7rem;
}

.my-next-step {
  display: grid;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid #cfe2dc;
  border-radius: var(--fh-radius);
  background: var(--fh-primary-pale);
  align-items: center;
  grid-template-columns: 1fr 1.6fr auto;
  gap: 24px;
}

.my-next-step h2 {
  margin: 0;
  font-size: 1rem;
}

.my-next-step > p {
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.74rem;
}

.my-next-step > a {
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Principles and utility pages */

.principles-hero {
  max-width: 780px;
  margin: 0 0 22px;
  padding: 30px;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  background: #fff;
  box-shadow: var(--fh-shadow-sm);
}

.principles-hero h1 {
  max-width: none;
  margin: 0 0 9px;
  font-size: 1.75rem;
}

.principles-hero > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.84rem;
}

.principles-list {
  display: grid;
  max-width: 900px;
  margin: 0;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  background: #fff;
  box-shadow: var(--fh-shadow-sm);
  overflow: hidden;
  grid-template-columns: 1fr 1fr;
}

.principles-list section {
  display: grid;
  min-height: 170px;
  padding: 24px;
  border: 0;
  border-bottom: 1px solid #e8ebed;
  background: #fff;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}

.principles-list section:nth-child(odd) {
  border-right: 1px solid #e8ebed;
}

.principles-list section:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.principles-list section > span {
  color: var(--fh-primary);
  font-size: 0.74rem;
  font-weight: 700;
}

.principles-list h2 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.principles-list p {
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.75rem;
  line-height: 1.8;
}

.principles-back {
  display: inline-flex;
  margin-top: 22px;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 6px;
}

.error-page {
  width: min(100% - 48px, 680px);
  margin: 60px auto;
  padding: 48px;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  background: #fff;
  text-align: center;
}

.error-page h1 {
  margin-bottom: 9px;
  font-size: 1.5rem;
}

.error-page__copy {
  color: var(--fh-muted);
  font-size: 0.82rem;
}

/* Footer */

.site-footer {
  display: flex;
  width: 100%;
  min-height: 130px;
  margin: 0;
  padding: 34px max(24px, calc((100% - var(--fh-content)) / 2));
  border-top: 1px solid var(--fh-border);
  background: #fff;
  color: var(--fh-muted);
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.site-footer p {
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.72rem;
}

.site-footer__brand {
  margin-bottom: 4px;
  color: var(--fh-text-strong);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-footer__logo {
  display: block;
  width: 178px;
  margin: -2px 0 7px;
}

.site-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer__links {
  display: flex;
  font-size: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.site-footer__links a {
  color: #53606a;
}

@media (max-width: 920px) {
  .hero-job-search {
    grid-template-columns: minmax(200px, 1.3fr) minmax(180px, 0.9fr) 125px;
  }

  .home-summary {
    grid-template-columns: 115px 135px 1fr;
  }

  .atlas-trust {
    gap: 10px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-form__query,
  .search-form__filters {
    grid-column: 1;
  }

  .search-form__filters {
    grid-template-columns: repeat(3, 1fr);
  }

  .salary-field {
    grid-column: 1 / 2;
  }

  .search-button {
    grid-column: 2 / 4;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 225px;
  }

  .my-next-step {
    grid-template-columns: 1fr auto;
  }

  .my-next-step > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    width: min(100% - 28px, var(--fh-content));
  }

  .brand > small {
    display: none;
  }

  .nav-link {
    display: none;
  }

  .saved-indicator {
    padding: 0 10px;
  }

  .atlas-hero {
    padding: 34px 18px 31px;
  }

  .atlas-hero__lead {
    margin-bottom: 19px;
  }

  .hero-job-search {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-job-search__field {
    min-height: 51px;
    border: 1px solid var(--fh-border);
    border-radius: 7px;
  }

  .hero-job-search > button {
    min-height: 49px;
    margin: 0;
  }

  .home-summary {
    padding: 0;
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
  }

  .home-summary > div {
    justify-content: center;
  }

  .atlas-trust {
    padding-top: 0;
    border-top: 0;
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
  }

  .popular-filters {
    flex-wrap: wrap;
  }

  .popular-filters > span {
    width: 100%;
    text-align: center;
  }

  .explore-start,
  .recent-work,
  .results,
  .my-page,
  .detail-page__inner,
  .principles-page {
    width: min(100% - 28px, var(--fh-content));
  }

  .explore-start {
    padding-top: 40px;
  }

  .explore-start__heading,
  .recent-work > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .explore-paths {
    grid-template-columns: 1fr;
  }

  .explore-path {
    min-height: 0;
    padding: 21px;
    border-right: 0;
    border-bottom: 1px solid var(--fh-border);
  }

  .explore-path:hover,
  .explore-path:focus-within {
    padding-inline: 21px;
  }

  .explore-path:last-child {
    border-bottom: 0;
  }

  .route-links {
    grid-template-columns: 1fr;
  }

  .route-links a {
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
  }

  .route-links a,
  .route-links--locations a:nth-child(odd) {
    border-left: 0;
  }

  .route-links a span {
    min-width: 28px;
    text-align: right;
  }

  .route-links--locations {
    grid-template-columns: 1fr 1fr;
  }

  .route-links--locations a:nth-child(even) {
    border-left: 1px solid #edf0f2;
  }

  .advanced-search > summary small {
    display: none;
  }

  .search-form {
    padding: 17px;
  }

  .search-form__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .search-form__filters {
    grid-template-columns: 1fr 1fr;
  }

  .salary-field,
  .search-button {
    grid-column: auto;
  }

  .recent-work {
    padding: 48px 0 56px;
  }

  .job-row {
    padding: 18px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "primary"
      "facts"
      "actions";
  }

  .job-row__eyebrow {
    flex-direction: row;
  }

  .job-row__facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .job-row__facts div + div {
    padding: 10px 0 0;
    border-top: 1px solid #edf0f2;
    border-left: 0;
  }

  .job-row__actions {
    display: grid;
    padding: 12px 0 0;
    border-top: 1px solid #edf0f2;
    border-left: 0;
    grid-template-columns: 1fr 1.3fr;
  }

  .selected-view {
    padding: 23px 18px;
  }

  .selected-view__inner {
    grid-template-columns: 1fr;
  }

  .selected-view__my {
    width: max-content;
  }

  .selected-search {
    padding: 14px;
  }

  .result-tools {
    grid-template-columns: 1fr;
  }

  .result-tools__actions {
    align-items: flex-start;
  }

  .sort-links {
    max-width: 100%;
    overflow-x: auto;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .detail-hero__actions .apply-button {
    grid-column: 1 / -1;
  }

  .source-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .decision-note__workspace,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .decision-status {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .decision-status legend {
    grid-column: 1 / -1;
  }

  .detail-aside {
    position: static;
  }

  .my-page__header {
    grid-template-columns: 1fr auto;
  }

  .my-page__privacy {
    grid-column: 1 / -1;
    width: max-content;
  }

  .my-board__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .my-job {
    grid-template-columns: 1fr;
  }

  .principles-list {
    grid-template-columns: 1fr;
  }

  .principles-list section,
  .principles-list section:nth-child(odd),
  .principles-list section:nth-last-child(-n + 2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #e8ebed;
  }

  .principles-list section:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .site-header__inner {
    min-height: 58px;
  }

  .site-header {
    min-height: 58px;
  }

  .saved-indicator span {
    display: none;
  }

  .demo-notice {
    justify-content: flex-start;
    line-height: 1.45;
  }

  .atlas-hero h1 {
    font-size: 1.65rem;
  }

  .hero-brand {
    margin-bottom: 13px;
  }

  .hero-brand__wordmark {
    width: 192px;
  }

  .atlas-hero__lead {
    font-size: 0.84rem;
    text-align: left;
  }

  .search-form__filters,
  .detail-hero__actions,
  .decision-status,
  .detail-facts,
  .my-job__facts {
    grid-template-columns: 1fr;
  }

  .search-button {
    grid-column: 1;
  }

  .detail-fact,
  .detail-fact:nth-child(odd),
  .detail-fact:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #e6eaec;
  }

  .detail-fact:last-child {
    border-bottom: 0;
  }

  .decision-note__heading {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .decision-note__privacy {
    width: max-content;
    grid-column: 2;
  }

  .decision-note__footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .decision-note__footer > button {
    margin-left: 0;
  }

  .my-page__header {
    grid-template-columns: 1fr;
  }

  .my-page__count {
    width: max-content;
    padding-right: 0;
    border-right: 0;
  }

  .my-next-step {
    grid-template-columns: 1fr;
  }

  .my-next-step > p {
    grid-column: 1;
    grid-row: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
