:root {
  color-scheme: light;
  --brand: #ff0033;
  --brand-dark: #d9002b;
  --brand-soft: #fff0f2;
  --surface-warm: #fffdfa;
  --surface-mint: #edf8f3;
  --surface-sky: #edf7fc;
  --surface-sun: #fff8df;
  --surface-peach: #fff0eb;
  --ink: #17212b;
  --text: #29343d;
  --muted: #596773;
  --faint: #727f8a;
  --line: #c6cdd3;
  --line-soft: #e2e6e9;
  --surface: #fff;
  --surface-subtle: #f5f7f8;
  --surface-blue: #eef4f7;
  --success: #216e4e;
  --success-soft: #eaf5ee;
  --danger: #b42318;
  --focus: #005fcc;
  --content: 1360px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--surface-warm); font-size: 16px; line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: #0759a5; text-underline-offset: 0.18em; }
a:hover { color: #003d75; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.35; }
h1 { font-size: clamp(2rem, 3.1vw, 3rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -0.02em; }
h3 { font-size: 1.12rem; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; background: #fff; border: 2px solid var(--focus); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.icon-arrow { width: 18px; height: 18px; }

.site-header { z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.header-inner { min-height: 76px; max-width: var(--content); padding: 0 30px; margin: 0 auto; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 1.28rem; font-weight: 800; letter-spacing: -0.035em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { position: relative; display: inline-grid; width: 27px; height: 27px; border-radius: 6px; background: var(--brand); place-items: center; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; display: block; background: #fff; border-radius: 2px; }
.brand-mark::before { width: 15px; height: 3px; }
.brand-mark::after { width: 3px; height: 15px; }
.brand-mark span { display: none; }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 42px); margin: 0 auto; }
.nav-link { position: relative; min-height: 44px; display: inline-flex; align-items: center; color: #34404a; text-decoration: none; font-size: 0.94rem; font-weight: 650; white-space: nowrap; }
.nav-link:hover, .nav-link.is-active { color: var(--brand-dark); }
.nav-link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.user-button { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.role-label { display: block; color: var(--faint); font-size: 0.7rem; text-align: left; font-weight: 500; }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 12px 8px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.button { display: inline-flex; min-height: 46px; justify-content: center; align-items: center; gap: 9px; padding: 10px 20px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-size: 0.98rem; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
.button:hover { text-decoration: none; }
.button-primary { color: white; border-color: var(--brand-dark); background: var(--brand-dark); }
.button-primary:hover { color: white; border-color: #b80024; background: #b80024; }
.button-outline { color: #24313c; border-color: #64717c; background: white; }
.button-outline:hover { color: #111b24; border-color: #293744; background: #f7f8f9; }
.button-text, .plain-button { color: #0759a5; border: 0; background: transparent; padding: 8px 10px; cursor: pointer; font-weight: 700; text-decoration: none; }
.button-text:hover, .plain-button:hover { color: #003d75; text-decoration: underline; }
.button-small { min-height: 42px; padding: 8px 14px; font-size: 0.9rem; }
.button-large { min-height: 62px; padding: 16px 24px; font-size: 1.05rem; }
.button-full { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: 0.55; }

.section-shell { width: min(100% - 60px, var(--content)); margin-inline: auto; }
.page-shell { width: min(100% - 60px, 1220px); margin: 0 auto; padding: 28px 0 88px; }
.sample-notice { display: flex; align-items: center; gap: 9px; width: min(100% - 60px, var(--content)); margin: 14px auto 0; color: #56636e; font-size: 0.82rem; }
.notice-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #7d8b95; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 0.85rem; }
.breadcrumbs .icon { width: 14px; height: 14px; color: #74818b; }
.breadcrumbs a { color: #0759a5; }
.eyebrow { margin-bottom: 8px; color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; }
.muted-copy, .field-help { color: var(--muted); font-size: 0.88rem; }
.field-help { margin: 6px 0 0; line-height: 1.6; }
.meta-label, .field-label { display: block; color: var(--muted); font-size: 0.83rem; font-weight: 650; }
.meta-inline { color: var(--muted); font-size: 0.82rem; }
.section-heading, .page-title-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading h2, .page-title-row h1 { margin-bottom: 6px; }
.section-heading p, .page-title-row p { margin-bottom: 0; color: var(--muted); }
.section-heading > .text-link { flex: 0 0 auto; }
.text-link { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; padding: 5px 0; color: #0759a5; cursor: pointer; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 17px; height: 17px; }
.content-section { padding-top: 68px; padding-bottom: 68px; }
.section-band { background: var(--surface-mint); border-top: 1px solid #d3e7dc; border-bottom: 1px solid #d3e7dc; }
.section-band .content-section { padding-top: 58px; padding-bottom: 58px; }

.hero { position: relative; isolation: isolate; min-height: 382px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 24px; padding-top: 30px; padding-bottom: 18px; }
.hero > * { min-width: 0; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero::before { top: 45px; right: 3%; width: 210px; height: 210px; background: var(--surface-sky); }
.hero::after { right: 25%; bottom: 29px; width: 74px; height: 74px; background: var(--surface-sun); }
.hero-copy h1 { margin-bottom: 17px; font-size: clamp(2.25rem, 3.6vw, 3.25rem); letter-spacing: -0.045em; line-height: 1.42; }
.hero-lead { margin-bottom: 25px; color: #46535e; font-size: 1.08rem; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.hero-visual { position: relative; width: 100%; min-width: 0; min-height: 310px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 48% 52% 41% 59% / 53% 41% 59% 47%; background: #e9f5fb; }
.hero-visual::before { content: ""; position: absolute; top: 8%; left: 1%; width: 48px; height: 48px; border-radius: 50%; background: #fff0eb; }
.hero-visual img { position: relative; z-index: 1; display: block; width: min(100%, 550px); max-width: 100%; max-height: 375px; height: auto; object-fit: contain; object-position: center; }
.search-wrap { padding-bottom: 27px; }
.quick-search { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 16px; padding: 22px 23px; border: 1px solid #c7dce7; border-radius: 18px; background: var(--surface-sky); box-shadow: 0 4px 14px rgb(41 68 82 / 5%); }
.search-button { min-width: 190px; min-height: 54px; }
.search-help { margin: 8px 0 0; color: var(--muted); font-size: 0.82rem; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.field-label { line-height: 1.4; }
.field input, .field select, .field textarea, .filter-panel select, .filter-panel input:not([type="checkbox"]), .table-scroll select {
  width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #aeb8c0; border-radius: 10px; background: white; color: var(--ink); font-size: 0.98rem;
}
.field textarea { min-height: 96px; resize: vertical; }
select { cursor: pointer; }
input::placeholder, textarea::placeholder { color: #697681; opacity: 1; }
.field input:disabled, .field select:disabled { background: #f0f2f4; color: #56636e; }
.home-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 19px; }
.filter-chip { min-height: 40px; padding: 8px 14px; border: 1px solid #aeb8c0; border-radius: 20px; background: white; color: #34414c; cursor: pointer; font-size: 0.89rem; font-weight: 600; }
.filter-chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.link-tile { display: flex; justify-content: space-between; align-items: center; min-height: 62px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: white; color: #0759a5; cursor: pointer; text-align: left; font-weight: 650; }
.link-tile:hover { border-color: #aac4d1; background: var(--surface-sky); text-decoration: underline; }
.salary-promo { padding: 47px 0; border-block: 1px solid #f0e8c8; background: var(--surface-sun); }
.salary-promo-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.salary-promo h2 { margin-bottom: 8px; }
.salary-promo p { margin: 0; color: var(--muted); }
.employer-promo { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.employer-promo h2 { margin-bottom: 10px; }
.employer-promo p:not(.eyebrow) { color: var(--muted); }

.job-list { display: grid; gap: 12px; }
.job-row { display: grid; grid-template-columns: minmax(220px, 1.3fr) minmax(155px, 0.8fr) minmax(170px, 0.85fr) auto; align-items: center; gap: 23px; min-height: 142px; padding: 22px 19px; border: 1px solid var(--line-soft); border-radius: 16px; background: white; box-shadow: 0 3px 12px rgb(28 47 57 / 4%); }
.job-row:hover { border-color: #b8d4df; background: #fcfefe; box-shadow: 0 6px 18px rgb(28 47 57 / 8%); }
.job-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-title { color: #143b5a; font-size: 1.2rem; font-weight: 750; text-decoration: none; }
.job-title:hover { color: #0759a5; text-decoration: underline; }
.facility-name { margin: 5px 0 8px; color: #43505b; font-size: 0.89rem; }
.job-meta-line { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; }
.job-meta-line span + span::before { content: "·"; margin-right: 10px; color: #83909a; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 10px; border: 1px solid #bdd8e4; border-radius: 999px; background: var(--surface-sky); color: #263b48; font-size: 0.78rem; line-height: 1.25; }
.job-row-pay { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.35; }
.job-row-pay strong { color: #c4002a; font-size: 1.42rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.job-row-pay strong small { color: var(--muted); font-size: 0.92rem; }
.pay-max, .benchmark-diff { color: var(--muted); font-size: 0.8rem; }
.benchmark-diff { margin-top: 3px; }
.benchmark-diff.positive { color: var(--success); font-weight: 700; }
.job-row-support { display: flex; flex-direction: column; gap: 6px; }
.grant-amount { display: flex; flex-direction: column; line-height: 1.45; }
.grant-amount span { color: var(--muted); font-size: 0.77rem; }
.grant-amount strong { color: #b80028; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.job-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.favorite-button, .icon-button { display: inline-grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid #aeb8c0; border-radius: 50%; background: white; color: #34414c; cursor: pointer; }
.favorite-button:hover, .favorite-button.is-saved { border-color: var(--brand); color: var(--brand-dark); }
.detail-link { white-space: nowrap; }
.label { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 7px; border: 1px solid #b7c0c7; border-radius: 3px; background: white; color: #34414c; font-size: 0.72rem; font-weight: 700; line-height: 1.25; }
.label-red { border-color: var(--brand-dark); background: var(--brand-dark); color: white; }
.label-neutral { background: #eff2f4; }
.label-green { border-color: #91b69f; background: var(--success-soft); color: #17573b; }
.empty-state { display: grid; place-items: center; min-height: 235px; padding: 28px; border: 1px solid var(--line-soft); border-top: 0; color: var(--muted); text-align: center; }
.empty-state h2 { margin-bottom: 8px; color: var(--ink); }
.empty-state p { margin-bottom: 18px; }
.empty-mark { display: grid; width: 42px; height: 42px; margin-bottom: 8px; place-items: center; border-radius: 50%; background: #edf1f3; color: #384651; font-weight: 800; }

.page-title-row { align-items: center; margin: 20px 0 25px; }
.page-title-row h1 { margin-bottom: 7px; }
.result-total { color: var(--brand-dark); font-size: 2.1rem; font-weight: 800; }
.result-total small { margin-left: 3px; color: var(--ink); font-size: 1rem; }
.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.results-heading h2 { margin-bottom: 4px; }
.results-heading p { margin-bottom: 0; color: var(--muted); }
.results-range { flex: 0 0 auto; font-size: 0.86rem; font-weight: 700; }
.pagination { display: grid; justify-items: center; gap: 10px; margin-top: 30px; }
.pagination-status { margin: 0; color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.pagination-controls { display: flex; justify-content: center; align-items: center; gap: 7px; flex-wrap: wrap; }
.pagination-button { min-width: 44px; min-height: 44px; padding: 7px 11px; border: 1px solid #aeb8c0; border-radius: 10px; background: white; color: #17496f; cursor: pointer; font-weight: 700; }
.pagination-button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.pagination-button.is-current { border-color: var(--brand-dark); background: var(--brand-dark); color: white; }
.pagination-button:disabled { cursor: not-allowed; opacity: 0.42; }
.pagination-move { min-width: 70px; }
.pagination-gap { padding-inline: 3px; color: var(--muted); }
.table-limit-note { margin: 0 0 9px; color: var(--muted); font-size: 0.84rem; }
.filter-panel { margin: 25px 0 48px; padding: 23px; border: 1px solid var(--line); border-radius: 7px; background: #f8f9fa; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; }
.filter-grid > .check-field { grid-column: 1 / -1; }
.check-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.check-field legend { margin-bottom: 9px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.check-grid.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-grid.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check-grid.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.check-option { position: relative; display: inline-flex; min-height: 38px; align-items: center; gap: 9px; color: #34414c; font-size: 0.9rem; line-height: 1.45; cursor: pointer; }
.check-option input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--brand); }
.standalone-check { margin-top: 14px; }
.filter-actions { display: flex; justify-content: center; gap: 15px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.results-heading p { font-size: 0.88rem; }

.detail-page { padding-bottom: 100px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; margin-top: 22px; }
.detail-main { min-width: 0; }
.detail-title-block { padding: 23px 0 24px; border-bottom: 1px solid var(--line); }
.detail-title-block h1 { margin: 10px 0 12px; }
.detail-highlight { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 20px; padding: 22px 20px; margin: 20px 0 28px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfc; }
.detail-highlight > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.detail-salary { display: block; margin-top: 3px; color: #b80028; font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.detail-highlight p { margin: 5px 0 0; }
.detail-grant strong { display: block; margin-top: 4px; color: #b80028; font-size: 1.52rem; }
.grant-note { color: var(--muted); font-size: 0.79rem; }
.detail-section { padding: 25px 0; border-bottom: 1px solid var(--line-soft); }
.detail-section h2 { margin-bottom: 17px; font-size: 1.3rem; }
.detail-section p:last-child { margin-bottom: 0; }
.definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line-soft); }
.definition-grid > div { min-height: 82px; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); }
.definition-grid > div:nth-child(even) { border-left: 1px solid var(--line-soft); }
.definition-grid dt { margin-bottom: 5px; color: var(--muted); font-size: 0.81rem; font-weight: 650; }
.definition-grid dd { margin: 0; font-weight: 600; }
.required-label, .optional-label { display: inline-block; margin-left: 8px; color: #7b3434; font-size: 0.77rem; font-weight: 600; }
.optional-label { color: var(--muted); }
.long-copy { line-height: 1.9; }
.check-list { display: grid; gap: 7px; padding-left: 22px; color: #34414c; }
.payment-steps { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.payment-steps li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; min-height: 58px; gap: 11px; border-bottom: 1px solid var(--line-soft); }
.step-number { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid #9aa6af; border-radius: 50%; color: #34414c; font-size: 0.8rem; }
.payment-steps strong { color: #a90025; font-variant-numeric: tabular-nums; }
.disclosure { margin-top: 23px; padding: 15px; border-left: 3px solid #8a98a2; background: #f5f7f8; color: #48555f; font-size: 0.85rem; }
.detail-main > .detail-section .button { margin-top: 10px; margin-right: 9px; }
.detail-aside { position: sticky; top: 18px; display: grid; gap: 12px; }
.aside-panel, .aside-note { padding: 19px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.aside-panel h2 { margin: 12px 0 7px; font-size: 1.15rem; }
.aside-panel p { margin: 6px 0 16px; color: var(--muted); }
.aside-pay { display: block; margin-top: 12px; color: #b80028; font-size: 1.4rem; }
.aside-panel .button + .button { margin-top: 9px; }
.aside-note p { margin: 4px 0 0; }
.facility-header { display: flex; align-items: center; gap: 17px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.facility-header h1 { margin-bottom: 5px; }
.facility-header p { margin: 0; color: var(--muted); }
.facility-symbol { display: grid; width: 62px; height: 62px; flex: 0 0 auto; place-items: center; border: 1px solid #a8b3bb; border-radius: 5px; background: #f2f5f6; color: #31404b; font-size: 1.7rem; font-weight: 700; }

.match-page { max-width: 1020px; }
.match-intro { margin: 18px 0 22px; }
.match-intro h1 { margin-bottom: 7px; }
.match-intro p { color: var(--muted); }
.wizard-panel { margin: 22px 0 14px; padding: 30px 36px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.wizard-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.progress-track { height: 7px; overflow: hidden; border-radius: 5px; background: #e6eaed; }
.progress-track span { display: block; height: 100%; background: var(--brand); transition: width 150ms ease; }
.wizard-panel form > h2 { margin: 26px 0 4px; font-size: 1.55rem; }
.wizard-fields { display: grid; gap: 19px; margin-top: 22px; }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.wizard-privacy { color: var(--muted); font-size: 0.83rem; }
.ranked-roles { display: grid; gap: 13px; }
.two-column-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.two-column-fields .check-field { grid-column: 1 / -1; }
.notice-block { margin: 20px 0 24px; padding: 18px 20px; border: 1px solid #c5cfd5; border-left: 4px solid #596e7c; border-radius: 4px; background: #f7f9fa; color: #34414c; }
.notice-block strong { display: block; margin-bottom: 5px; }
.notice-block p { margin-bottom: 10px; }
.notice-block .button { margin-top: 5px; }
.match-results-list { display: grid; gap: 15px; margin-top: 20px; }
.match-result { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.match-result-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 17px; padding-bottom: 15px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 0.86rem; }
.match-result-head > div { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.match-number { color: var(--brand-dark); font-size: 1.7rem; font-weight: 800; }
.match-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding: 17px 0; }
.match-result-grid > div { display: grid; gap: 3px; align-content: start; }
.match-result-grid strong { font-size: 1.02rem; }
.match-result-grid span:not(.field-label) { color: var(--muted); font-size: 0.82rem; }
.match-reasons { padding: 13px 15px; border-left: 3px solid #7b9791; background: #f4f8f6; font-size: 0.9rem; }
.match-reasons ul { display: flex; gap: 5px 25px; flex-wrap: wrap; margin: 7px 0 0; padding-left: 19px; }
.match-result-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

.salary-table-wrap { margin: 31px 0; }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: white; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { min-width: 92px; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-size: 0.88rem; }
thead th { background: #f1f4f5; color: #28343e; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
tbody th { font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: #fafbfc; }
td small, th small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.salary-filters { max-width: 360px; margin: 12px 0; }
.salary-guide { margin-top: 35px; padding: 23px; border: 1px solid var(--line-soft); background: #f7f9fa; }
.salary-guide h2 { margin-bottom: 8px; font-size: 1.2rem; }
.salary-guide p { margin: 0; color: var(--muted); }

.employer-hero { display: grid; grid-template-columns: 1fr 0.5fr; align-items: center; gap: 34px; margin: 28px 0 54px; padding: 30px 0 36px; border-bottom: 1px solid var(--line); }
.employer-hero h1 { margin-bottom: 15px; }
.employer-hero > div:first-child > p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 1.05rem; }
.employer-stat { display: grid; justify-items: center; padding: 28px; border-left: 1px solid var(--line); text-align: center; }
.employer-stat strong { color: var(--brand-dark); font-size: 4.1rem; line-height: 1.1; }
.employer-stat strong span { font-size: 1.3rem; }
.employer-stat > span { font-weight: 700; }
.employer-stat small { max-width: 230px; margin-top: 12px; color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 25px 0 35px; }
.plan-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.plan-card.current-plan { outline: 2px solid var(--brand); outline-offset: -2px; }
.plan-title { display: flex; justify-content: space-between; align-items: center; }
.plan-title h3 { margin: 0; }
.plan-price { margin: 17px 0 6px; font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan-price small { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.plan-discount { min-height: 28px; color: #a60025; font-size: 0.86rem; font-weight: 700; }
.plan-card ul { display: grid; gap: 8px; min-height: 150px; padding-left: 20px; color: #3f4c56; }
.plan-pro { border-color: #bd7786; }
.billing-detail { max-width: 750px; margin-top: 32px; padding: 20px; border: 1px solid var(--line-soft); background: #f8f9fa; }
.billing-detail h3 { margin-bottom: 6px; }
.billing-detail p { color: var(--muted); }

.dashboard-page { padding-bottom: 90px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 10px 0 25px; }
.dashboard-heading h1 { margin-bottom: 0; font-size: 2rem; }
.dashboard-heading .eyebrow { margin-bottom: 3px; }
.dashboard-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 29px; align-items: start; margin-top: 20px; }
.dashboard-nav { display: grid; border-top: 1px solid var(--line); }
.dashboard-nav-item { display: block; min-height: 50px; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--line); background: white; color: #34414c; cursor: pointer; text-align: left; font-weight: 650; }
.dashboard-nav-item:hover { background: #f6f8f9; }
.dashboard-nav-item.is-active { border-left: 4px solid var(--brand); background: #f7f8f9; color: #a30024; }
.dashboard-content { min-width: 0; }
.dashboard-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 35px; }
.admin-page .dashboard-cards:first-of-type { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card { display: grid; min-height: 118px; align-content: center; gap: 4px; padding: 17px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.metric-card span { color: var(--muted); font-size: 0.84rem; }
.metric-card strong { font-size: 1.75rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric-card small { color: var(--muted); font-size: 0.78rem; }
.dashboard-content .section-heading { margin-top: 29px; }
.dashboard-content .table-scroll { margin: 15px 0 28px; }
.table-actions { display: flex; gap: 10px; white-space: nowrap; }
.edit-form { display: grid; gap: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.member-profile { max-width: 900px; padding: 22px; border: 1px solid var(--line); border-radius: 5px; }
.member-profile .form-grid .check-field { grid-column: 1 / -1; }
.notice-inline { margin: 0; padding: 11px 13px; border-left: 3px solid #7e8c95; background: #f5f7f8; color: #46535e; font-size: 0.84rem; }
.simple-list { border-top: 1px solid var(--line); }
.simple-list-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; padding: 13px 10px; border-bottom: 1px solid var(--line); }
.simple-list-row p { margin: 4px 0 0; color: var(--muted); font-size: 0.82rem; }
.admin-section { margin-top: 45px; }
.admin-section > .table-scroll { margin-top: 14px; }
.weight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; padding: 20px; border: 1px solid var(--line); background: #f8f9fa; }
.weight-control { display: grid; gap: 7px; color: #34414c; font-size: 0.88rem; }
.weight-control > span { display: flex; justify-content: space-between; }
.weight-control b { color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.weight-control input { width: 100%; accent-color: var(--brand); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: rgb(17 27 36 / 54%); }
.modal { position: relative; width: min(100%, 510px); max-height: min(90vh, 900px); overflow-y: auto; padding: 28px; border: 1px solid #aeb8c0; border-radius: 7px; background: white; box-shadow: 0 12px 38px rgb(18 31 40 / 23%); }
.modal-wide { width: min(100%, 850px); }
.modal > h2 { padding-right: 32px; margin-bottom: 7px; }
.modal > p { color: var(--muted); }
.modal-close { position: absolute; top: 13px; right: 14px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid transparent; border-radius: 4px; background: white; color: #24313c; cursor: pointer; font-size: 1.75rem; line-height: 1; }
.modal-close:hover { border-color: var(--line); background: #f7f8f9; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.task-page { max-width: 980px; }
.task-form-panel { width: min(100%, 620px); margin: 12px auto 0; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 8px 24px rgb(28 47 57 / 6%); }
.task-form-panel.task-form-wide { width: min(100%, 900px); }
.task-form-panel > h1 { margin-bottom: 8px; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.task-form-panel > p:not(.eyebrow) { color: var(--muted); }
.form-page-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.payment-editor { padding: 16px; border: 1px solid var(--line-soft); border-radius: 5px; background: #f8f9fa; }
.payment-editor h3 { margin-bottom: 4px; }
.payment-editor .field { margin-top: 12px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 200; max-width: min(450px, calc(100% - 44px)); padding: 13px 18px; border: 1px solid #94b19e; border-radius: 5px; background: #f1f8f3; color: #174e34; box-shadow: 0 4px 16px rgb(18 31 40 / 12%); }
.toast-error { border-color: #d69b97; background: #fff4f2; color: #8f1b14; }

.site-footer { padding: 38px 0 20px; border-top: 1px solid var(--line); background: #f7f8f9; color: #45515b; }
.footer-inner { display: flex; justify-content: space-between; gap: 25px; padding-bottom: 27px; }
.footer-brand { font-size: 1.1rem; }
.footer-inner p { margin: 11px 0 0; color: var(--muted); font-size: 0.86rem; }
.footer-links { display: flex; align-content: start; gap: 14px 24px; flex-wrap: wrap; }
.footer-links a { color: #0759a5; font-size: 0.88rem; }
.footer-legal { display: flex; justify-content: space-between; gap: 15px; padding-top: 14px; border-top: 1px solid #d8dee2; color: var(--muted); font-size: 0.75rem; }

@media (max-width: 1100px) {
  .header-inner { gap: 19px; padding-inline: 22px; }
  .primary-nav { gap: 17px; }
  .nav-link { font-size: 0.86rem; }
  .header-actions { gap: 7px; }
  .section-shell { width: min(100% - 44px, var(--content)); }
  .page-shell { width: min(100% - 44px, 1220px); }
  .sample-notice { width: min(100% - 44px, var(--content)); }
  .job-row { grid-template-columns: minmax(190px, 1.15fr) minmax(135px, 0.8fr) minmax(145px, 0.8fr); }
  .job-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-page .dashboard-cards:first-of-type { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .header-inner { min-height: 68px; }
  .primary-nav { position: absolute; top: 67px; left: 0; right: 0; z-index: 25; display: none; padding: 10px 22px 16px; border-bottom: 1px solid var(--line); background: white; }
  .primary-nav.is-open { display: grid; gap: 0; }
  .nav-link { min-height: 46px; border-bottom: 1px solid var(--line-soft); }
  .nav-link.is-active::after { top: 9px; right: auto; bottom: 9px; left: -10px; width: 3px; height: auto; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-actions { margin-left: auto; }
  .hero { min-height: auto; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 10px; padding-top: 31px; }
  .hero-copy h1 { font-size: clamp(2rem, 5vw, 2.7rem); }
  .hero-visual { min-height: 240px; }
  .quick-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-button { min-width: 0; }
  .job-row { grid-template-columns: minmax(0, 1fr) minmax(140px, 0.7fr); gap: 12px 18px; }
  .job-row-pay { grid-column: 2; grid-row: 1; }
  .job-row-support { grid-column: 1; grid-row: 2; }
  .job-row-actions { grid-column: 2; grid-row: 2; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: static; grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; gap: 19px; }
  .dashboard-nav { grid-template-columns: repeat(5, max-content); overflow-x: auto; border-bottom: 1px solid var(--line); }
  .dashboard-nav-item { border-bottom: 0; border-right: 1px solid var(--line-soft); white-space: nowrap; }
  .dashboard-nav-item.is-active { border-left: 0; border-bottom: 3px solid var(--brand); }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: 1.9rem; }
  .header-inner { min-height: 62px; gap: 8px; padding-inline: 15px; }
  .brand { gap: 7px; font-size: 1.08rem; }
  .brand-mark { width: 24px; height: 24px; }
  .primary-nav { top: 61px; padding-inline: 17px; }
  .header-actions { gap: 2px; }
  .header-actions .plain-button { padding-inline: 4px; font-size: 0.82rem; }
  .header-actions .button-small { min-height: 38px; padding: 6px 10px; font-size: 0.78rem; }
  .user-button { max-width: 98px; }
  .role-label { display: none; }
  .menu-toggle { width: 38px; flex: 0 0 auto; padding-inline: 6px; }
  .section-shell, .page-shell { width: calc(100% - 32px); }
  .page-shell { padding-top: 19px; padding-bottom: 65px; }
  .sample-notice { width: calc(100% - 32px); align-items: flex-start; margin-top: 11px; font-size: 0.75rem; }
  .breadcrumbs { margin-bottom: 12px; font-size: 0.78rem; }
  .hero { display: block; padding-top: 33px; padding-bottom: 8px; }
  .hero-copy h1 { margin-bottom: 12px; font-size: clamp(2rem, 8vw, 2.7rem); line-height: 1.4; }
  .hero-lead { margin-bottom: 18px; font-size: 0.98rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 5px; }
  .hero-actions .button { width: 100%; min-height: 52px; }
  .hero-actions .button-text { justify-content: flex-start; }
  .desktop-only { display: none; }
  .hero-visual { min-height: 190px; max-height: 240px; margin: 8px 0 0; overflow: hidden; }
  .hero-visual img { width: 96%; max-height: 250px; }
  .quick-search { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .quick-search .field { gap: 4px; }
  .quick-search .field-label { font-size: 0.79rem; }
  .search-wrap { padding-bottom: 12px; }
  .search-help { font-size: 0.74rem; }
  .content-section { padding-top: 46px; padding-bottom: 46px; }
  .section-band .content-section { padding-top: 44px; padding-bottom: 44px; }
  .section-heading, .page-title-row { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 17px; }
  .section-heading > .text-link { align-self: flex-start; }
  .home-filters { gap: 7px; margin: 17px 0 14px; }
  .filter-chip { min-height: 37px; padding: 7px 11px; font-size: 0.79rem; }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .link-tile { min-height: 58px; padding: 10px 11px; font-size: 0.84rem; }
  .salary-promo { padding: 31px 0; }
  .salary-promo-inner, .employer-promo { align-items: flex-start; flex-direction: column; gap: 15px; }
  .salary-promo .button, .employer-promo .button { width: 100%; }
  .job-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 10px; min-height: 0; padding: 17px 9px; }
  .job-row-main { grid-column: 1 / -1; grid-row: 1; }
  .job-title { font-size: 1.03rem; }
  .facility-name { margin: 4px 0 6px; font-size: 0.79rem; }
  .job-meta-line { gap: 5px; font-size: 0.73rem; }
  .job-meta-line span + span::before { margin-right: 5px; }
  .job-row .tag-list { gap: 5px; margin-top: 8px; }
  .tag { min-height: 24px; padding: 3px 6px; font-size: 0.71rem; }
  .job-row-pay { grid-column: 1; grid-row: 2; }
  .job-row-pay strong { font-size: 1.2rem; }
  .job-row-pay .meta-label, .grant-amount span { font-size: 0.72rem; }
  .pay-max { font-size: 0.75rem; }
  .benchmark-diff { font-size: 0.73rem; }
  .job-row-support { grid-column: 1; grid-row: 3; gap: 3px; }
  .grant-amount strong { font-size: 0.96rem; }
  .meta-inline { font-size: 0.75rem; }
  .job-row-actions { grid-column: 2; grid-row: 2 / span 2; display: grid; justify-items: end; align-content: center; gap: 6px; }
  .detail-link { font-size: 0.76rem; }
  .detail-link .icon { width: 14px; height: 14px; }
  .favorite-button { width: 38px; height: 38px; }
  .label { min-height: 20px; padding: 2px 5px; font-size: 0.67rem; }
  .filter-panel { margin: 18px 0 35px; padding: 15px 13px; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; }
  .filter-grid > .check-field { grid-column: 1 / -1; }
  .filter-panel .field-label, .check-field legend { font-size: 0.78rem; }
  .filter-panel select, .filter-panel input:not([type="checkbox"]) { min-height: 43px; padding: 7px 8px; font-size: 0.84rem; }
  .check-grid, .check-grid.columns-3, .check-grid.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 8px; }
  .check-grid.columns-2 { grid-template-columns: 1fr; }
  .check-option { min-height: 36px; gap: 6px; font-size: 0.8rem; }
  .check-option input { width: 17px; height: 17px; }
  .filter-actions { flex-direction: column; gap: 6px; }
  .filter-actions > * { width: 100%; }
  .result-total { font-size: 1.7rem; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .pagination { gap: 5px; }
  .pagination-button { min-width: 40px; min-height: 40px; padding-inline: 8px; }
  .pagination-move { min-width: 58px; }
  .detail-layout { gap: 21px; }
  .detail-title-block { padding-top: 15px; }
  .detail-title-block h1 { font-size: 1.75rem; }
  .detail-highlight { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .detail-highlight > div + div { padding-top: 12px; padding-left: 0; border-top: 1px solid var(--line-soft); border-left: 0; }
  .detail-salary { font-size: 1.42rem; }
  .detail-section { padding: 21px 0; }
  .detail-section h2 { font-size: 1.16rem; }
  .definition-grid { grid-template-columns: 1fr; }
  .definition-grid > div:nth-child(even) { border-left: 0; }
  .definition-grid > div { min-height: 0; padding: 11px 9px; }
  .detail-aside { grid-template-columns: 1fr; }
  .aside-panel { display: none; }
  .detail-main > .detail-section .button { width: 100%; margin: 6px 0; }
  .facility-header { gap: 12px; }
  .facility-header h1 { font-size: 1.6rem; }
  .facility-symbol { width: 50px; height: 50px; font-size: 1.4rem; }
  .wizard-panel { margin: 18px 0 12px; padding: 20px 15px; }
  .wizard-panel form > h2 { margin-top: 21px; font-size: 1.3rem; }
  .two-column-fields { grid-template-columns: 1fr; gap: 13px; }
  .two-column-fields .check-field { grid-column: auto; }
  .wizard-actions { gap: 8px; }
  .wizard-actions .button { min-height: 44px; padding-inline: 12px; font-size: 0.83rem; }
  .match-result { padding: 14px; }
  .match-result-head { grid-template-columns: 1fr; gap: 3px; }
  .match-result-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .match-result-grid > div:first-child { grid-column: 1 / -1; }
  .match-result-actions { flex-direction: column; }
  .match-result-actions .button { width: 100%; }
  .match-reasons ul { display: block; }
  .table-scroll { border-radius: 0; }
  th, td { min-width: 105px; padding: 10px 11px; font-size: 0.8rem; }
  .salary-filters { grid-template-columns: 1fr; }
  .employer-hero { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; padding: 18px 0 22px; }
  .employer-hero h1 { font-size: 1.8rem; }
  .employer-hero .button { width: 100%; }
  .employer-stat { grid-template-columns: auto 1fr; justify-items: start; gap: 0 13px; padding: 15px 0 0; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .employer-stat strong { grid-row: span 2; font-size: 3rem; }
  .employer-stat small { max-width: none; margin: 2px 0 0; }
  .plan-grid { grid-template-columns: 1fr; gap: 12px; }
  .plan-card { padding: 17px; }
  .plan-card ul { min-height: 0; margin-bottom: 17px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-heading h1 { font-size: 1.65rem; }
  .dashboard-heading > .button { width: 100%; }
  .dashboard-nav { grid-template-columns: repeat(5, max-content); margin-inline: -16px; padding-inline: 16px; }
  .dashboard-nav-item { min-height: 45px; padding: 8px 9px; font-size: 0.78rem; }
  .dashboard-cards, .admin-page .dashboard-cards:first-of-type { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric-card { min-height: 98px; padding: 12px; }
  .metric-card span { font-size: 0.74rem; }
  .metric-card strong { font-size: 1.42rem; }
  .form-grid { grid-template-columns: 1fr; }
  .member-profile { padding: 15px; }
  .weight-grid { grid-template-columns: 1fr; padding: 14px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 92vh; padding: 24px 17px 20px; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 10px 10px 0 0; }
  .modal-wide { width: 100%; }
  .modal h2 { font-size: 1.35rem; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .button { width: 100%; }
  .task-form-panel { padding: 22px 17px; }
  .form-page-actions { flex-direction: column-reverse; }
  .form-page-actions .button { width: 100%; }
  .toast { right: 12px; bottom: 12px; max-width: calc(100% - 24px); font-size: 0.85rem; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 12px 17px; }
  .footer-legal { flex-direction: column; font-size: 0.7rem; }
}

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