:root {
  --primary: #76232f;
  --primary-strong: #5a1824;
  --primary-soft: #f0e0e1;
  --secondary: #5a4143;
  --ink: #1c1b1b;
  --muted: #504344;
  --surface: #f9f9f9;
  --surface-low: #f3f3f3;
  --card: #ffffff;
  --line: #d4c2c3;
  --outline: #837374;
  --success: #177245;
  --warning: #9b5a00;
  --shadow: 0 10px 28px rgba(44, 22, 26, 0.11);
}

/* Jobs screen composition */
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.jobs-browser { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.jobs-filters { padding-right: 16px; border-right: 1px solid var(--line); }
.jobs-filters label, .jobs-filters legend { color: var(--muted); font-size: 10px; font-weight: 600; }
.jobs-filters input[type="search"] { min-height: 30px; margin-top: 6px; padding: 6px 8px; font-size: 10px; }
.jobs-filters fieldset { display: grid; gap: 8px; margin: 18px 0; padding: 0; border: 0; }
.jobs-filters fieldset label { display: flex; gap: 6px; align-items: center; margin: 0; font-weight: 400; }
.jobs-filters input[type="checkbox"] { width: 12px; min-height: 12px; }
.filter-callout { display: grid; gap: 6px; padding: 12px 10px; color: var(--primary); background: #fae8e9; border-left: 2px solid var(--primary); font-size: 10px; line-height: 1.35; }
.filter-callout span { color: var(--muted); }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; color: var(--muted); font-size: 10px; }
.results-toolbar strong { color: var(--ink); font-size: 14px; }
.results-toolbar b { color: var(--ink); }
.results-more { margin: 16px 0 0; padding: 12px; border: 1px dashed var(--line); color: var(--muted); font-size: 10px; text-align: center; }
.results-more span { display: inline-block; margin-top: 4px; color: var(--ink); }
.jobs-editorial { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; margin-top: 34px; }
.editorial-photo { min-height: 250px; background-position: center; background-size: cover; }
.editorial-photo--craft { background-image: url("../assets/lumber-inventory.jpg"); }
.editorial-photo--plans { min-height: 145px; background-image: url("../assets/door-production.jpg"); }
.editorial-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.editorial-values { display: flex; flex-direction: column; justify-content: end; padding: 24px; color: #fff; background: var(--primary); text-decoration: none; }
.editorial-values .eyebrow { color: #fff; opacity: .8; }
.editorial-values h2 { margin-bottom: 8px; }
.editorial-values p:last-child { max-width: 420px; margin-bottom: 0; color: rgba(255,255,255,.85); font-size: 11px; line-height: 1.5; }

@media (max-width: 760px) {
  .jobs-browser, .jobs-editorial { grid-template-columns: 1fr; }
  .jobs-filters { padding-right: 0; padding-bottom: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .editorial-photo--craft { min-height: 220px; }
}

/* Final Jobs screen scale overrides */
#applications-view { padding-top: 0; }
#applications-view .applications-intro { margin: 52px 0 36px !important; padding-bottom: 26px !important; }
#applications-view .applications-intro h1 { margin-bottom: 8px !important; color: var(--primary) !important; font-size: 38px !important; line-height: 1.1; }
#applications-view .applications-intro p { margin: 0 !important; color: var(--muted) !important; font-size: 15px !important; }
#applications-view .applications-layout { grid-template-columns: minmax(292px, 24%) minmax(0, 1fr) !important; gap: 16px !important; }
#applications-view .access-panel { min-height: 205px !important; padding: 16px !important; }
#applications-view .candidate-avatar { width: 52px !important; height: 52px !important; font-size: 20px !important; }
#applications-view .candidate-name { font-size: 18px !important; }
#applications-view .candidate-detail { font-size: 13px !important; }
#applications-view .records-panel { padding: 0 !important; }
#applications-view .records-panel { background: transparent !important; border: 0 !important; box-shadow: none !important; }
#applications-view .records-panel__header { margin-bottom: 14px !important; }
#applications-view .records-panel__header h2 { font-size: 13px !important; }
#applications-view .applications-sort, #applications-view .applications-sort select { font-size: 13px !important; }
#applications-view .record-list { gap: 16px !important; }
#applications-view .record-card { min-height: 130px !important; gap: 12px !important; padding: 20px 22px !important; }
#applications-view .record-card__title > strong { font-size: 22px !important; }
#applications-view .record-card__meta { gap: 34px !important; font-size: 13px !important; }
#applications-view .record-card small { font-size: 12px !important; }
#applications-view .status-chip { font-size: 11px !important; }
#applications-view .record-actions { min-width: 158px !important; }
#applications-view .record-actions .button, #applications-view .record-card > .button { min-height: 38px !important; font-size: 12px !important; }
#applications-view .record-progress { margin-top: 2px !important; }
#applications-view .record-progress { width: calc(100% - 178px) !important; background: transparent !important; }
#applications-view .record-progress span { width: 100% !important; }
#applications-view .record-progress--draft span { width: 33% !important; }
#applications-view .record-card > small { display: block; width: calc(100% - 178px); }
#applications-view .record-card { position: relative; padding-right: 200px !important; }
#applications-view .record-actions, #applications-view .record-card__top > .button { position: absolute; top: 50%; right: 22px; width: 158px; transform: translateY(-50%); }
#applications-view .record-card__top > .button { min-width: 158px; }
@media (max-width: 760px) {
  #applications-view .applications-intro { margin: 28px 0 24px !important; }
  #applications-view .applications-intro h1 { font-size: 34px !important; }
  #applications-view .applications-layout { grid-template-columns: 1fr !important; }
  #applications-view .record-card { padding: 16px !important; }
  #applications-view .record-card { padding-right: 16px !important; }
  #applications-view .record-actions, #applications-view .record-card__top > .button { position: static; width: 100%; transform: none; }
  #applications-view .record-card__meta { gap: 14px !important; }
  #applications-view .record-progress, #applications-view .record-card > small { width: 100% !important; }
}
.board-hero {
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(rgba(118,35,47,.16) .8px, transparent .8px), linear-gradient(rgba(244,245,246,.78), rgba(244,245,246,.78)), url("../assets/careers-building.jpg") !important;
  background-size: 16px 16px, auto, cover !important;
  background-position: center, center, center !important;
}
.view#jobs-view { margin-top: -24px; }
.board-hero__copy, .hero-mark, .board-hero__metrics { position: relative; z-index: 1; }
.hero-mark { align-self: stretch; place-items: center; padding: 0 !important; opacity: .94; }
.hero-mark img { max-width: 100%; max-height: 100%; object-position: center; }
.editorial-photo--craft { background-image: url("../assets/lumber-inventory.jpg") !important; }
.editorial-photo--plans { background-image: url("../assets/door-production.jpg") !important; }
.posting-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.posting__hero { grid-template-columns: 1fr; }
.posting-layout .posting__grid { grid-template-columns: 1fr 1fr; padding: 18px 0 0; }
.posting-layout .panel--feature { grid-column: 1 / -1; }
.posting-rail { display: grid; gap: 10px; padding-top: 18px; }
.posting-rail .button { width: 100%; }
.share-panel { display: grid; gap: 12px; margin-top: 8px; padding: 16px; background: #fff; border: 1px solid var(--line); }
.share-panel .eyebrow { margin: 0; }
.share-actions { display: flex; gap: 8px; }
.share-actions button { flex: 1; min-height: 34px; padding: 7px 8px; color: var(--primary); background: #fff; border: 1px solid var(--line); border-radius: 2px; font-size: 12px; font-weight: 700; }
.posting__hero { position: relative; padding: 28px 24px 26px !important; background: #fff !important; border: 1px solid #ead7d8 !important; border-left: 3px solid var(--primary) !important; }
.posting__hero h1 { color: var(--primary) !important; font-size: 42px; }
.posting__hero .eyebrow { color: var(--primary) !important; }
.posting-layout .panel { position: relative; overflow: hidden; background: #fff !important; border-color: #ead7d8 !important; }
.posting-layout .panel::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--primary); content: ""; }
.posting-layout .panel h2 { color: var(--primary); }
.posting-layout .panel--feature { background: #fff !important; }
.posting-layout .panel li::marker { color: var(--primary); }
.posting-rail { margin-top: 18px; padding: 18px; background: #fff !important; border: 1px solid #ead7d8 !important; border-top: 4px solid var(--primary) !important; }
.posting-rail .button--ghost { background: #fff !important; border-color: #ead7d8; }
.share-actions button:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.applications-intro { margin: 52px 0 36px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.applications-intro h1 { margin-bottom: 8px; color: var(--primary); font-size: 34px !important; }
.applications-intro p { margin: 0; color: var(--muted); font-size: 14px; }
.applications-layout { grid-template-columns: 292px minmax(0, 1fr) !important; gap: 16px; align-items: start; }
.access-panel { min-height: 0; padding: 16px !important; background: #fff; border: 1px solid var(--line); }
.candidate-avatar { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 10px; color: var(--primary); background: #f0f1f2; border-radius: 10px; font-size: 20px; font-weight: 700; }
.candidate-name { font-size: 17px; font-weight: 700; }
.verified-candidate { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--primary); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.verified-candidate .material-symbols-outlined { font-size: 15px; }
.candidate-divider { height: 1px; margin: 18px 0; background: var(--line); }
.candidate-detail { display: flex; gap: 8px; align-items: center; margin: 12px 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.candidate-detail .material-symbols-outlined { color: var(--muted); font-size: 16px; }
.candidate-signout { width: 100%; margin-top: 18px; }
.records-panel { min-height: 0; padding: 0 !important; background: transparent; border: 0; box-shadow: none; }
.records-panel__header { align-items: center; margin-bottom: 14px; padding: 0; }
.records-panel__header h2 { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.applications-sort { display: inline-flex; align-items: center; gap: 5px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.applications-sort select { padding: 3px 5px; color: var(--ink); background: transparent; border: 0; font-size: 12px; font-weight: 700; }
.record-list { gap: 16px !important; }
.record-card { gap: 10px !important; min-height: 130px !important; padding: 20px 22px !important; background: #fff; border: 1px solid var(--line); border-radius: 0; }
.record-card__top { align-items: center; }
.record-card__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.record-card__title > strong { font-size: 21px; }
.record-card__meta { display: flex; flex-wrap: wrap; gap: 28px; color: var(--muted); font-size: 12px; }
.record-card__meta > span { display: inline-flex; gap: 5px; align-items: center; }
.record-card__meta .material-symbols-outlined { font-size: 15px; }
.record-card small { color: var(--muted); font-size: 11px; }
.record-actions { display: grid; gap: 8px; min-width: 150px; }
.record-actions .button { width: 100%; }
.record-progress { height: 2px; margin-top: 2px; background: #e8d2d4; }
.record-progress span { display: block; height: 100%; background: var(--primary); }
.record-progress--complete { background: #cfe7d1; }
.record-progress--complete span { width: 100%; background: #8acb91; }
.status-chip--completed { color: #2d7b38; background: #d9f2dc; }
.status-chip--rejected { color: #6d6d6d; background: #e6e6e6; }
.status-chip--draft { color: #656565; background: #e5e5e5; }
.status-chip--withdrawn { color: #52525b; background: #e4e4e7; }
.application-record-groups { display: grid; gap: 22px; }
.application-record-group { display: grid; gap: 12px; }
.application-record-group__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.application-record-group__heading h3 { margin: 0; color: var(--ink); font-size: 17px; }
.application-record-group__heading span,
.past-application-records summary span { display: inline-grid; min-width: 26px; height: 26px; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 4px; font-size: 12px; font-weight: 700; }
.application-record-group__empty { margin: 0; padding: 24px; color: var(--muted); background: #fff; border: 1px dashed var(--line); text-align: center; }
.past-application-records { padding-top: 16px; border-top: 1px solid var(--line); }
.past-application-records summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); cursor: pointer; font-size: 17px; font-weight: 700; list-style: none; }
.past-application-records summary::-webkit-details-marker { display: none; }
.past-application-records summary::after { order: 2; color: var(--primary); content: "+"; font-size: 22px; font-weight: 400; }
.past-application-records[open] summary::after { content: "-"; }
.past-application-records summary span { margin-left: auto; }
.past-application-records > .record-list { margin-top: 14px; }
.button--text-danger { min-height: 30px !important; padding: 5px 8px !important; color: #9f1d1d; background: transparent; border: 0; }
.button--text-danger:hover { background: rgba(159, 29, 29, 0.08); }
.button--danger { color: #fff; background: #9f1d1d; border-color: #9f1d1d; }
.application-detail-withdraw { width: fit-content; margin-top: 14px; }
.application-dialog { width: min(520px, calc(100% - 32px)); padding: 0; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.application-dialog::backdrop { background: rgba(28, 27, 27, 0.58); }
.application-dialog form { display: grid; gap: 18px; padding: 22px; }
.application-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.application-dialog__header h2 { margin: 2px 0 0; font-size: 24px; }
.application-dialog__header .eyebrow { margin: 0; }
.application-dialog p { margin: 0; line-height: 1.55; }
.application-dialog label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.application-dialog textarea { width: 100%; resize: vertical; }
.application-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 760px) {
  .applications-intro { margin: 18px 0 24px; }
  .applications-intro h1 { font-size: 34px; }
  .applications-layout { grid-template-columns: 1fr !important; }
  .record-card__top, .record-card__title { align-items: flex-start; flex-direction: column; }
  .record-actions { min-width: 0; width: 100%; }
  .records-panel__header { align-items: flex-start; flex-direction: column; gap: 8px; }
}
.material-symbols-outlined { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; }
.back-link::before { content: none !important; }
.posting__hero h1 { font-size: 50px !important; }
.posting__hero .meta-row span { padding: 7px 11px; font-size: 13px !important; }
.posting-layout .panel h2 { display: flex; align-items: center; gap: 9px; font-size: 26px !important; }
.posting-layout .panel h2 .material-symbols-outlined { color: var(--primary); font-size: 22px; }
.posting-layout .panel p, .posting-layout .panel li { font-size: 16px !important; line-height: 1.65; }
.posting-rail .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-size: 14px !important; }
.posting-rail .button .material-symbols-outlined { font-size: 19px; }
.share-panel .eyebrow { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.share-panel .eyebrow .material-symbols-outlined { font-size: 17px; }
.share-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; }
.share-actions button .material-symbols-outlined { font-size: 17px; }
@media (max-width: 760px) { .posting__hero h1 { font-size: 40px !important; } }
@media (max-width: 760px) {
  .posting-layout { grid-template-columns: 1fr; }
  .posting-layout .posting__grid { grid-template-columns: 1fr; }
  .posting-layout .panel--feature { grid-column: auto; }
  .posting-rail { margin-top: 0; padding-top: 0; }
}
body { font-size: 16px; }
.job-board { font-size: 15px; }
.job-board__header h2 { font-size: 32px !important; }
.jobs-filters { font-size: 14px; }
.filter-group { gap: 18px !important; margin: 26px 0 !important; }
.filter-group legend { font-size: 15px !important; font-weight: 700; }
.filter-options { gap: 13px !important; }
.filter-group label { font-size: 14px !important; }
.filter-group input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; }
.filter-more { font-size: 13px; }
.jobs-filters input[type="search"] { min-height: 44px; font-size: 14px; }
.results-toolbar { font-size: 14px; }
.results-toolbar strong { font-size: 20px; }
.sort-control { font-size: 14px; }
.sort-control select { min-height: 38px; font-size: 14px; }
.job-card h3 { font-size: 23px !important; }
.job-card p { font-size: 14px !important; }
.job-card__meta span, .meta-row span { font-size: 12px !important; }
.job-card__footer { font-size: 15px !important; }
.button { font-size: 13px !important; }
.panel p, .panel li, .section-heading p, .access-panel p, .flow-panel li { font-size: 14px !important; }
.record-card p { font-size: 13px !important; }
.status-chip, .eyebrow, .job-card__id, .crumb { font-size: 11px; }
.brand strong { font-size: 19px !important; }
.tabs__item { font-size: 14px !important; }
.board-hero { min-height: 520px; align-content: start; background-color: #f4f5f6; background-image: radial-gradient(rgba(118,35,47,.12) .8px, transparent .8px); background-size: 16px 16px; }
.board-hero { grid-template-columns: minmax(0, 1fr) 390px !important; }
.hero-mark { display: grid; min-height: 360px; place-items: center; align-self: stretch; padding: 30px 24px 0 0; }
.hero-mark img { display: block; width: min(100%, 360px); height: auto; mix-blend-mode: multiply; }
.board-hero__metrics { grid-column: 1 / -1 !important; }
.board-hero__copy { max-width: 900px; padding: 72px 24px 54px; }
.board-hero__copy h1 { max-width: 720px; font-size: 64px; line-height: 1.02; }
.board-hero__copy p { max-width: 680px; font-size: 17px; line-height: 1.55; }
.hero-actions { margin-top: 28px; }
.hero-actions .button { min-height: 44px; padding: 12px 20px; font-size: 12px; }
.board-hero__metrics { min-height: 92px; }
.board-hero__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.board-hero__metrics div { padding: 22px 24px; }
.board-hero__metrics strong { font-size: 32px; }
.board-hero__metrics span { font-size: 13px; }
.job-board__header { padding-bottom: 18px; }
.job-board__header h2 { font-size: 30px; }
.jobs-browser { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
.jobs-filters { padding-right: 24px; }
.jobs-filters label, .jobs-filters legend { font-size: 12px; }
.jobs-filters input[type="search"] { min-height: 40px; font-size: 12px; }
.jobs-filters select { min-height: 40px; padding: 8px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 2px; font-size: 12px; }
.jobs-filters label { gap: 7px; }
.jobs-filters fieldset label { font-size: 12px; }
.filter-group { display: grid; gap: 14px; margin: 22px 0; padding: 0; border: 0; }
.filter-group legend { padding: 0; }
.filter-options { display: grid; gap: 11px; }
.filter-group label { display: flex; grid-template-columns: 14px 1fr; gap: 7px; align-items: center; margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; }
.filter-group input[type="checkbox"] { width: 14px; height: 14px; min-height: 14px; margin: 0; accent-color: var(--primary); }
.filter-more { width: fit-content; padding: 0; color: var(--primary); background: transparent; border: 0; font-size: 11px; font-weight: 700; }
.filter-callout { padding: 16px 14px; font-size: 12px; }
.results-toolbar { font-size: 12px; }
.results-toolbar strong { font-size: 18px; }
.sort-control { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.sort-control select { min-height: 32px; padding: 5px 8px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 2px; font-size: 12px; font-weight: 700; }
.job-card { padding: 18px 20px; }
.job-card h3 { font-size: 21px; }
.job-card p { font-size: 13px; }
.job-card__meta span, .meta-row span { padding: 5px 9px; font-size: 11px; }
.job-card__footer { font-size: 14px; }
.job-card__footer .button { min-height: 38px; padding: 9px 16px; font-size: 12px; }
.results-more { font-size: 12px; }
@media (max-width: 760px) {
  .view#jobs-view { margin-top: -16px; }
  .board-hero { min-height: 0; }
  .board-hero { grid-template-columns: 1fr !important; }
  .board-hero__copy { padding: 48px 16px 38px; }
  .board-hero__copy h1 { font-size: 42px; }
  .board-hero__copy p { font-size: 15px; }
  .board-hero__metrics div { padding: 18px 16px; }
  .hero-mark { min-height: 250px; padding: 0 16px 28px; }
  .hero-mark img { width: min(78vw, 300px); }
}

/* Jobs hero scale and Stitch-style first viewport */
.board-hero {
  min-height: 520px;
  align-content: start;
  background-color: #f4f5f6;
  background-image: radial-gradient(rgba(118,35,47,.12) .8px, transparent .8px);
  background-size: 16px 16px;
}
.board-hero__copy {
  max-width: 900px;
  padding: 72px 24px 54px;
}
.board-hero__copy h1 {
  max-width: 720px;
  font-size: 64px;
  line-height: 1.02;
}
.board-hero__copy p { max-width: 680px; font-size: 17px; line-height: 1.55; }
.hero-actions { margin-top: 28px; }
.hero-actions .button { min-height: 44px; padding: 12px 20px; font-size: 12px; }
.board-hero__metrics { min-height: 92px; }
.board-hero__metrics div { padding: 22px 24px; }
.board-hero__metrics strong { font-size: 32px; }
.board-hero__metrics span { font-size: 13px; }

.job-board__header { padding-bottom: 18px; }
.job-board__header h2 { font-size: 30px; }
.jobs-browser { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
.jobs-filters { padding-right: 24px; }
.jobs-filters label, .jobs-filters legend { font-size: 12px; }
.jobs-filters input[type="search"] { min-height: 40px; font-size: 12px; }
.jobs-filters fieldset label { font-size: 12px; }
.filter-callout { padding: 16px 14px; font-size: 12px; }
.results-toolbar { font-size: 12px; }
.results-toolbar strong { font-size: 18px; }
.job-card { padding: 18px 20px; }
.job-card h3 { font-size: 21px; }
.job-card p { font-size: 13px; }
.job-card__meta span, .meta-row span { padding: 5px 9px; font-size: 11px; }
.job-card__footer { font-size: 14px; }
.job-card__footer .button { min-height: 38px; padding: 9px 16px; font-size: 12px; }
.results-more { font-size: 12px; }

@media (max-width: 760px) {
  .board-hero { min-height: 0; }
  .board-hero__copy { padding: 48px 16px 38px; }
  .board-hero__copy h1 { font-size: 42px; }
  .board-hero__copy p { font-size: 15px; }
  .board-hero__metrics div { padding: 18px 16px; }
  .board-hero__metrics { grid-template-columns: 1fr !important; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(118, 35, 47, 0.07), transparent 340px),
    var(--surface);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  height: 72px;
  margin: 0 auto;
  padding: 0 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  text-align: left;
}

.brand__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 8px;
}

.tabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  padding: 10px 18px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
}

.tabs__item.is-active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--line);
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 40px 56px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.eyebrow,
.job-card__id,
.crumb {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.board-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.board-hero__copy {
  padding: 40px;
}

.board-hero__copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.board-hero__metrics {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--primary);
  color: #fff;
}

.board-hero__metrics div {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.board-hero__metrics strong {
  font-size: 38px;
  line-height: 1;
}

.board-hero__metrics span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.job-board,
.posting,
.form-panel,
.flow-panel,
.access-panel,
.records-panel,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.job-board {
  padding: 24px;
}

.job-board__header,
.records-panel__header,
.form-actions,
.record-card__top {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.board-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 36px;
  padding: 7px 12px;
  color: var(--muted);
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.filter-chip.is-active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--primary);
}

.job-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.job-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(240, 224, 225, 0.52), transparent 54%),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.job-card:hover {
  border-color: var(--primary);
  box-shadow: 0 14px 34px rgba(44, 22, 26, 0.14);
  transform: translateY(-2px);
}

.job-card__top,
.job-card__footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.job-card p {
  color: var(--muted);
  line-height: 1.6;
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.job-card__meta span,
.meta-row span {
  padding: 6px 10px;
  color: var(--muted);
  background: var(--surface-low);
  border: 1px solid rgba(212, 194, 195, 0.7);
  border-radius: 999px;
  font-size: 13px;
}

.job-card__footer {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.button {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
}

.button--primary {
  color: #fff;
  background: var(--primary);
}

.button--primary:hover {
  background: var(--primary-strong);
}

.button--secondary {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--line);
}

.button--ghost {
  color: var(--primary);
  background: transparent;
  border-color: var(--line);
}

.back-link {
  margin-bottom: 16px;
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.back-link::before {
  content: "< ";
}

.posting {
  overflow: hidden;
}

.posting__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  padding: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #f7eeee 100%);
  border-bottom: 1px solid var(--line);
}

.posting__hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.posting__apply {
  display: grid;
  gap: 12px;
  align-self: start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 10px;
  color: var(--primary);
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.posting__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  background: var(--surface);
}

.panel {
  padding: 24px;
}

.panel--feature {
  grid-column: 1 / -1;
}

.panel p,
.panel li,
.section-heading p,
.access-panel p,
.flow-panel li {
  color: var(--muted);
  line-height: 1.65;
}

.application-shell,
.applications-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
}

.applications-layout {
  grid-template-columns: 430px minmax(0, 1fr);
}

.form-panel,
.flow-panel,
.access-panel,
.records-panel {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(118, 35, 47, 0.12);
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.required-note {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.optional-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

#application-question-sections {
  display: grid;
  gap: 20px;
  margin: 22px 0;
}

.application-question-section {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.application-question-section--sensitive {
  background: #fffaf0;
  border: 1px solid #d9b45b;
  padding: 16px;
}

.application-question-section__heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.application-question-section__heading h2 {
  font-size: 18px;
  margin: 0;
}

.application-question-section__heading span {
  color: #6d4700;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.application-question-section__notice {
  color: #6d4700;
  font-size: 12px;
  line-height: 1.5;
  margin: -4px 0 16px;
}

.application-question-section__fields {
  display: grid;
  gap: 14px;
}

.application-question {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.application-question legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.application-question__choice-row,
.application-question__multi-grid {
  display: grid;
  gap: 8px;
}

.application-question__choice-row {
  grid-template-columns: repeat(2, minmax(0, 160px));
}

.application-question__multi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.application-question__choice-row label,
.application-question__multi-grid label {
  align-items: center;
  border: 1px solid var(--line);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  margin: 0;
  padding: 9px 10px;
}

.application-question__choice-row input,
.application-question__multi-grid input {
  min-height: 16px;
  padding: 0;
  width: 16px;
}

.application-answer-summary {
  display: grid;
  gap: 14px;
  margin: 0;
}

.application-answer-summary div {
  display: grid;
  gap: 4px;
}

.application-answer-summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.application-answer-summary dd {
  margin: 0;
  white-space: pre-wrap;
}

@media (max-width: 620px) {
  .application-question__multi-grid {
    grid-template-columns: 1fr;
  }
}

.applicant-notice {
  margin: 22px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.applicant-notice h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.applicant-notice p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.consent-row {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 18px 0;
  font-weight: 600;
  line-height: 1.5;
}

.consent-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.applicant-support {
  margin: 8px 0 0;
}

.applicant-support a {
  color: var(--primary);
  font-weight: 700;
}

.form-status {
  min-height: 20px;
  margin: 0 0 10px;
  color: #9f1d1d;
  font-size: 13px;
  font-weight: 700;
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.confirmation-shell,
.route-state {
  width: min(760px, 100%);
  margin: 48px auto;
  padding: 36px 0;
  border-top: 4px solid var(--primary);
}

.confirmation-shell__icon,
.route-state > .material-symbols-outlined {
  color: var(--success);
  font-size: 40px;
}

.route-state > .material-symbols-outlined {
  color: var(--primary);
}

.confirmation-shell h1,
.route-state h1 {
  margin: 4px 0 12px;
  font-size: 34px;
}

.confirmation-shell > p,
.route-state > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.confirmation-summary {
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.confirmation-summary > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.confirmation-summary dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.confirmation-summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.confirmation-next {
  margin-bottom: 24px;
}

.confirmation-next h2 {
  font-size: 20px;
}

.confirmation-next p {
  color: var(--muted);
  line-height: 1.65;
}

.flow-panel {
  align-self: start;
  border-top: 4px solid var(--primary);
}

.flow-panel ol {
  padding-left: 20px;
}

.notice {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 16px;
  color: var(--muted);
  background: var(--surface-low);
  border: 1px dashed var(--outline);
  border-radius: 4px;
}

.notice strong {
  color: var(--ink);
}

.records-panel {
  min-height: 380px;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 32px;
  color: var(--muted);
  background: var(--surface-low);
  border: 1px dashed var(--line);
  border-radius: 4px;
  text-align: center;
}

.record-list {
  display: grid;
  gap: 12px;
}

.record-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.status-chip {
  padding: 5px 9px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-chip--open {
  color: var(--primary);
  background: var(--primary-soft);
}

.status-chip--draft {
  color: var(--warning);
  background: rgba(155, 90, 0, 0.12);
}

.status-chip--submitted {
  color: var(--success);
  background: rgba(23, 114, 69, 0.12);
}

.status-chip--completed {
  color: var(--success);
  background: rgba(23, 114, 69, 0.12);
}

.status-chip--rejected {
  color: #9f1d1d;
  background: rgba(159, 29, 29, 0.12);
}

.signed-in-card {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 16px;
  background: var(--surface-low);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.signed-in-card strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.signed-in-card span:last-child {
  color: var(--muted);
}

.inline-status {
  color: var(--muted);
}

.code-form.is-hidden,
.is-hidden {
  display: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: 420px;
  padding: 14px 16px;
  color: #fff;
  background: var(--primary);
  border-radius: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .board-hero,
  .job-card-grid,
  .posting__hero,
  .application-shell,
  .applications-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar__inner,
  main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .topbar__inner {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .tabs__item {
    flex: 1;
    min-width: 0;
  }

  h1 {
    font-size: 34px;
  }

  .confirmation-shell,
  .route-state {
    margin: 24px auto;
    padding: 28px 0;
  }

  .confirmation-summary > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .board-hero__copy,
  .posting__hero,
  .job-board,
  .form-panel,
  .flow-panel,
  .access-panel,
  .records-panel,
  .panel {
    padding: 16px;
  }

  .job-board__header,
  .records-panel__header,
  .form-actions,
  .record-card__top,
  .job-card__footer,
  .form-grid,
  .posting__grid {
    grid-template-columns: 1fr;
  }

  .job-board__header,
  .records-panel__header,
  .form-actions,
  .record-card__top,
  .job-card__footer {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Stitch brand integration */
:root {
  --primary: #76232f;
  --primary-strong: #5d1723;
  --primary-soft: #f5e8e9;
  --ink: #191c1d;
  --muted: #635b5c;
  --surface: #f5f6f7;
  --surface-low: #eef0f1;
  --card: #ffffff;
  --line: #dedfe0;
  --outline: #887272;
  --shadow: 0 2px 8px rgba(25, 28, 29, 0.05);
}

body {
  background: var(--surface);
  font-family: "Hanken Grotesk", Arial, sans-serif;
}

.topbar {
  background: #fff;
  border-bottom-color: #e6e6e6;
  box-shadow: 0 1px 5px rgba(25, 28, 29, 0.04);
}

.topbar__inner {
  max-width: none;
  height: 64px;
  padding: 0 24px;
}

.brand {
  gap: 8px;
  color: var(--ink);
}

.brand__mark {
  width: 30px;
  height: 30px;
}

.brand strong {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand small { display: none; }

.tabs { gap: 24px; }

.tabs__item {
  min-width: 0;
  padding: 22px 0 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
}

.tabs__item.is-active {
  color: var(--primary);
  background: transparent;
  border-color: var(--primary);
}

main {
  max-width: none;
  padding: 24px 24px 60px;
}

h1 { font-size: 34px; letter-spacing: -0.02em; }
h2 { font-size: 22px; letter-spacing: -0.01em; }
h3 { font-size: 17px; }

.eyebrow,
.job-card__id,
.crumb {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.board-hero {
  grid-template-columns: minmax(0, 1fr);
  margin: 0 -24px 32px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #f0f1f2;
}

.board-hero__copy { max-width: 760px; padding: 48px 24px 38px; }
.board-hero__copy h1 { max-width: 500px; color: var(--primary); }
.board-hero__copy p { max-width: 620px; font-size: 14px; line-height: 1.5; }
.board-hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.board-hero__metrics div { padding: 18px 24px; border-right: 1px solid var(--line); border-bottom: 0; }
.board-hero__metrics strong { color: var(--primary); font-size: 25px; }
.board-hero__metrics span { color: var(--muted); font-size: 11px; }

.job-board,
.posting,
.form-panel,
.flow-panel,
.access-panel,
.records-panel,
.panel {
  border-color: var(--line);
  border-radius: 2px;
  box-shadow: none;
}

.job-board { padding: 0; background: transparent; border: 0; }
.job-board__header { align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.job-board__header h2 { margin-bottom: 0; }
.board-tools { gap: 6px; }
.filter-chip { min-height: 30px; padding: 5px 10px; border-radius: 2px; font-size: 11px; }

.job-card-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.job-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  padding: 15px 16px;
  background: #fff;
  border-radius: 2px;
  align-items: center;
}
.job-card__top { grid-column: 1 / -1; }
.job-card h3, .job-card p { margin-bottom: 0; }
.job-card p { grid-column: 1; font-size: 12px; line-height: 1.4; }
.job-card__meta { grid-column: 1; margin-top: 0; }
.job-card__meta span, .meta-row span { padding: 3px 7px; border-radius: 2px; font-size: 10px; }
.job-card__footer { grid-column: 2; grid-row: 2 / span 2; flex-direction: column; align-items: end; padding: 0; border: 0; font-size: 12px; }
.button { min-height: 34px; padding: 8px 14px; border-radius: 2px; font-size: 11px; }

.posting { overflow: visible; background: transparent; border: 0; }
.posting__hero { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; padding: 18px 0 24px; background: transparent; border-bottom-color: var(--line); }
.posting__hero h1 { margin-bottom: 8px; color: var(--ink); }
.posting__hero p { font-size: 13px; line-height: 1.5; }
.posting__apply { padding: 16px; border-radius: 2px; }
.posting__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 16px 0; background: transparent; }
.panel { padding: 18px; }
.panel--feature { grid-column: 1 / -1; }
.panel p, .panel li, .section-heading p, .access-panel p, .flow-panel li { font-size: 12px; line-height: 1.55; }

.application-shell { grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.applications-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.form-panel, .flow-panel, .access-panel, .records-panel { padding: 20px; }
.flow-panel { border-top: 2px solid var(--primary); }
.record-list { gap: 8px; }
.record-card { gap: 8px; padding: 14px; border-radius: 2px; }
.record-card p { margin: 0; color: var(--muted); font-size: 11px; }
.status-chip { border-radius: 2px; font-size: 10px; }

@media (max-width: 760px) {
  .topbar__inner { padding: 0 16px; }
  .tabs { gap: 14px; }
  .tabs__item { padding: 18px 0 14px; }
  .board-hero { margin-right: -16px; margin-left: -16px; }
  .board-hero__copy { padding: 34px 16px 28px; }
  .board-hero__metrics { grid-template-columns: 1fr; }
  .board-hero__metrics div { border-right: 0; border-bottom: 1px solid var(--line); }
  .job-card { grid-template-columns: 1fr; }
  .job-card__footer { grid-column: 1; grid-row: auto; align-items: stretch; }
.posting__hero, .posting__grid { grid-template-columns: 1fr; }
}

/* Hero animation placement */
.board-hero { grid-template-columns: minmax(0, 1fr) 390px; }
.hero-mark { display: grid; min-height: 360px; place-items: center; align-self: stretch; padding: 30px 24px 0 0; }
.hero-mark img { display: block; width: min(100%, 360px); height: auto; mix-blend-mode: multiply; }
.board-hero__metrics { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .board-hero { grid-template-columns: 1fr; }
  .hero-mark { min-height: 250px; padding: 0 16px 28px; }
  .hero-mark img { width: min(78vw, 300px); }
}

/* Final Jobs screen scale overrides */
.board-hero { min-height: 520px; align-content: start; background-color: #f4f5f6; background-image: radial-gradient(rgba(118,35,47,.12) .8px, transparent .8px); background-size: 16px 16px; }
.board-hero__copy { max-width: 900px; padding: 72px 24px 54px; }
.board-hero__copy h1 { max-width: 720px; font-size: 64px; line-height: 1.02; }
.board-hero__copy p { max-width: 680px; font-size: 17px; line-height: 1.55; }
.hero-actions { margin-top: 28px; }
.hero-actions .button { min-height: 44px; padding: 12px 20px; font-size: 12px; }
.board-hero__metrics { min-height: 92px; }
.board-hero__metrics div { padding: 22px 24px; }
.board-hero__metrics strong { font-size: 32px; }
.board-hero__metrics span { font-size: 13px; }
.job-board__header { padding-bottom: 18px; }
.job-board__header h2 { font-size: 30px; }
.jobs-browser { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
.jobs-filters { padding-right: 24px; }
.jobs-filters label, .jobs-filters legend { font-size: 12px; }
.jobs-filters input[type="search"] { min-height: 40px; font-size: 12px; }
.jobs-filters fieldset label { font-size: 12px; }
.filter-callout { padding: 16px 14px; font-size: 12px; }
.results-toolbar { font-size: 12px; }
.results-toolbar strong { font-size: 18px; }
.job-card { padding: 18px 20px; }
.job-card h3 { font-size: 21px; }
.job-card p { font-size: 13px; }
.job-card__meta span, .meta-row span { padding: 5px 9px; font-size: 11px; }
.job-card__footer { font-size: 14px; }
.job-card__footer .button { min-height: 38px; padding: 9px 16px; font-size: 12px; }
.results-more { font-size: 12px; }
@media (max-width: 760px) {
  .board-hero { min-height: 0; }
  .board-hero__copy { padding: 48px 16px 38px; }
  .board-hero__copy h1 { font-size: 42px; }
  .board-hero__copy p { font-size: 15px; }
  .board-hero__metrics div { padding: 18px 16px; }
}

/* Final responsive overrides must follow the desktop Stitch rules above. */
.schedule-shell {
  width: min(100%, 820px);
  margin: 46px auto 0;
}

.schedule-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.schedule-heading h1 {
  margin: 5px 0 10px;
  color: var(--primary);
  font-size: 42px;
  letter-spacing: 0;
}

.schedule-heading > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.schedule-content {
  padding: 26px 0;
}

.schedule-selection-form {
  display: grid;
  gap: 24px;
}

.schedule-context {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fff;
}

.schedule-context > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.schedule-context > div:last-child {
  border-right: 0;
}

.schedule-context span,
.schedule-footnote {
  color: var(--muted);
  font-size: 12px;
}

.schedule-context strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.schedule-context strong span {
  display: block;
  margin-top: 3px;
  font-family: "JetBrains Mono", monospace;
}

.schedule-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.schedule-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fff;
}

.schedule-mode__button {
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.schedule-mode__button:last-child {
  border-right: 0;
}

.schedule-mode__button.is-active {
  background: var(--primary);
  color: #fff;
}

.schedule-custom {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.schedule-custom.hidden,
.schedule-slots.hidden {
  display: none;
}

.schedule-custom legend {
  padding: 0 5px;
  font-weight: 700;
}

.schedule-custom p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.schedule-custom__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.schedule-custom__fields label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.schedule-custom__fields input {
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

.schedule-slots legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.schedule-slot {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
}

.schedule-slot:has(input:checked) {
  border-color: var(--primary);
  box-shadow: inset 3px 0 var(--primary);
}

.schedule-slot input {
  accent-color: var(--primary);
}

.schedule-slot .material-symbols-outlined {
  color: var(--primary);
}

.schedule-slot strong {
  font-size: 14px;
  line-height: 1.35;
}

.schedule-submit {
  width: fit-content;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 13px;
}

.schedule-footnote {
  max-width: 650px;
  margin: -12px 0 0;
  line-height: 1.5;
}

.schedule-state {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 60px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
}

.schedule-state > .material-symbols-outlined {
  color: var(--primary);
  font-size: 36px;
}

.schedule-state h2,
.schedule-state p {
  margin: 0;
}

.schedule-state p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.55;
}

.schedule-state p strong {
  color: var(--ink);
}

.offer-review-shell {
  width: min(100%, 900px);
  margin: 46px auto 0;
}

.offer-review-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.offer-review-heading h1 {
  margin: 5px 0 10px;
  color: var(--primary);
  font-size: 42px;
  letter-spacing: 0;
}

.offer-review-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.offer-review-content {
  display: grid;
  gap: 18px;
  padding: 26px 0;
}

.offer-review-card,
.offer-response-form {
  border: 1px solid var(--line);
  background: #fff;
}

.offer-review-card__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-top: 4px solid var(--primary);
  border-bottom: 1px solid var(--line);
}

.offer-review-card__intro h2,
.offer-review-card__intro p {
  margin: 0;
}

.offer-review-card__intro h2 {
  margin: 5px 0 7px;
  font-size: 28px;
}

.offer-review-card__intro > div > p:last-child {
  color: var(--muted);
}

.offer-review-card__intro > div > p:last-child span {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.offer-revision {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.offer-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.offer-terms > div {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.offer-terms > div:nth-child(3n) {
  border-right: 0;
}

.offer-terms dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.offer-terms dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.4;
}

.offer-document-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 20px;
  padding: 16px;
  background: var(--surface-low);
  border-left: 3px solid var(--primary);
}

.offer-document-callout > .material-symbols-outlined {
  color: var(--primary);
  font-size: 28px;
}

.offer-document-callout > div {
  display: grid;
  gap: 3px;
}

.offer-document-callout > div span {
  color: var(--muted);
  font-size: 12px;
}

.offer-response-form {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.offer-decision-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.offer-decision-options legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-size: 17px;
  font-weight: 700;
}

.offer-decision-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 9px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.offer-decision-option > .material-symbols-outlined {
  grid-row: 1 / span 2;
  color: var(--primary);
}

.offer-decision-option > span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.offer-decision-option.is-active {
  border-color: var(--primary);
  box-shadow: inset 3px 0 var(--primary);
  background: var(--primary-soft);
}

.offer-decision-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.offer-decision-panel.hidden {
  display: none;
}

.offer-decision-panel > label:not(.offer-consent) {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.offer-decision-panel input[type="text"],
.offer-decision-panel input[name="signatureName"],
.offer-decision-panel textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.offer-decision-panel textarea {
  min-height: 130px;
  resize: vertical;
}

.offer-signature-field {
  display: grid;
  gap: 9px;
}

.offer-signature-field__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.offer-signature-field__heading > div {
  display: grid;
  gap: 3px;
}

.offer-signature-field__heading strong {
  font-size: 13px;
}

.offer-signature-field__heading span:not(.material-symbols-outlined) {
  color: var(--muted);
  font-size: 12px;
}

.offer-signature-clear {
  min-height: 36px;
  padding: 7px 11px;
}

.offer-signature-clear .material-symbols-outlined {
  font-size: 18px;
}

.offer-signature-pad {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong, #aeb8c6);
  background: #fff;
}

.offer-signature-pad::after {
  position: absolute;
  right: 24px;
  bottom: 42px;
  left: 24px;
  height: 1px;
  background: #c7ced8;
  content: "";
  pointer-events: none;
}

.offer-signature-pad canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 180px;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.offer-signature-pad canvas:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent);
  outline-offset: -3px;
}

.offer-signature-pad > span {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.offer-signature-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.offer-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  line-height: 1.5;
}

.offer-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.offer-signature-note,
.offer-decision-panel > p,
.offer-withdraw-warning p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.offer-withdraw-warning {
  padding: 14px;
  border-left: 3px solid var(--primary);
  background: #fff;
}

.offer-withdraw-warning p {
  margin-top: 5px;
}

.offer-response-submit {
  width: fit-content;
  min-height: 44px;
  padding: 11px 20px;
}

@media (max-width: 1080px) {
  .application-shell,
  .applications-layout,
  .board-hero,
  .jobs-browser,
  .jobs-editorial,
  .posting-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .jobs-filters {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .results-panel,
  .editorial-stack {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .offer-review-shell {
    margin-top: 16px;
  }

  .offer-review-heading h1 {
    font-size: 34px;
  }

  .offer-review-card__intro,
  .offer-document-callout {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-review-card__intro {
    display: grid;
  }

  .offer-revision {
    width: fit-content;
  }

  .offer-terms,
  .offer-decision-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-terms > div,
  .offer-terms > div:nth-child(3n) {
    border-right: 0;
  }

  .offer-document-callout .button,
  .offer-response-submit {
    width: 100%;
  }

  .offer-signature-field__heading {
    align-items: start;
  }

  .offer-signature-pad canvas {
    height: 150px;
  }

  .schedule-shell {
    margin-top: 16px;
  }

  .schedule-heading h1 {
    font-size: 34px;
  }

  .schedule-context,
  .schedule-slots,
  .schedule-mode,
  .schedule-custom__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-context > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .schedule-context > div:last-child {
    border-bottom: 0;
  }

  .schedule-slots legend {
    grid-column: auto;
  }

  .schedule-submit {
    width: 100%;
  }

  .topbar__inner {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px 0;
  }

  .tabs {
    justify-content: space-between;
  }

  .tabs__item {
    flex: 1;
    padding: 10px 0 12px;
  }

  main {
    padding: 20px 16px 48px;
  }

  .application-shell,
  .form-grid,
  .posting__grid,
  .posting__hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-panel,
  .flow-panel,
  .access-panel,
  .records-panel {
    width: 100%;
    padding: 16px;
  }

  .form-actions {
    align-items: stretch;
  }

  .form-actions .button {
    width: 100%;
  }
}

/* Always-open (general interest) posting: its own section under the openings */
.job-board--always-open { margin-top: 24px; }
.job-board__lead { max-width: 720px; margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.job-card-grid--always-open { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.job-card--always-open { min-height: 0; border-color: var(--primary); }
.posting__note { max-width: 720px; margin: 14px 0 0; padding: 12px 14px; color: var(--muted); background: var(--primary-soft); border-left: 3px solid var(--primary); border-radius: 4px; font-size: 14px; line-height: 1.6; }
