[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 0; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, input:focus-visible, textarea:focus-visible, .upload-label:focus-within { outline: 3px solid var(--blue); outline-offset: 4px; }
input, textarea { border: 1px solid #9babb6; border-radius: 0; padding: 14px; background: #fff; color: var(--ink); width: 100%; font-size: 1.0625rem; line-height: 1.5; }
textarea { resize: vertical; min-height: 80px; }
label { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 9px; }
label span { font-weight: 400; color: var(--muted); }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.button-secondary { color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1px #9babb6; }
.button-secondary:hover { background: var(--paper); color: var(--navy); }
.plain-button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; background: none; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.plain-button:hover { color: var(--navy); }
.admin-link { font-size: .75rem; padding: 3px 0; }
.admin-link:hover, .admin-link:focus-visible { color: #fff; }
.gallery-archive { padding-bottom: 80px; }
.gallery-archive .gallery-empty { width: 100%; }
.job-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 56px 36px; }
.job-card { display: block; border-top: 1px solid var(--line); }
.job-card-link { display: block; }
.job-image { position: relative; background: var(--paper); min-height: 160px; }
.job-card .job-image { aspect-ratio: 4/3; }
.job-card .job-image img { width: 100%; height: 100%; object-fit: cover; }
.job-image-status { padding: 28px; color: var(--muted); font-size: .9375rem; }
.job-image-retry { margin-block: 12px; }
.gallery-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.gallery-status { color: var(--muted); font-size: .9375rem; }
.gallery-error { line-height: 1.6; color: #722715; }
.job-card>img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--paper); }
.job-card-copy { padding-block: 24px; }
.job-card h2 { font-size: 2rem; margin-block: 12px 14px; overflow-wrap: anywhere; }
.job-card .eyebrow { font-size: .75rem; }
.job-excerpt { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.job-card .text-link { margin-top: 18px; color: var(--blue); }
.job-card:hover h2 { color: var(--blue); }
.gallery-notice { font-size: 1.125rem; line-height: 1.6; padding: 32px 0; }
.job-content { padding-bottom: 70px; }
.job-body { max-width: 780px; font-size: 1.25rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 48px; }
.job-photos { display: grid; gap: 48px; }
.job-photos figure { margin: 0; }
.job-photos img { width: 100%; height: auto; max-height: 900px; object-fit: contain; background: var(--paper); }
.job-photos figcaption { max-width: 780px; padding-block: 16px; color: var(--muted); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.page-job .page-heading { padding-top: 36px; }
.page-job h1 { max-width: 960px; overflow-wrap: anywhere; }
.page-job [data-job-date] { margin-top: 28px; }
.gallery-back { padding-top: 32px; }
.load-more { margin-top: 40px; }
.page-admin { background: #f7f9fa; }
.admin-header { background: #fff; border-bottom: 1px solid var(--line); }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 24px; }
.admin-header .brand img { width: 210px; }
.admin-header nav { display: flex; align-items: center; gap: 26px; font-size: .9375rem; }
.admin-header nav>a { padding-block: 12px; }
.admin-main { padding-bottom: 80px; }
.admin-main h1 { font-size: clamp(2.25rem,4vw,3.5rem); letter-spacing: -.04em; line-height: 1.1; }
.status-message { padding: 18px 22px; margin-block: 24px; background: #e6f1f7; color: var(--navy); border-left: 3px solid var(--blue); line-height: 1.5; overflow-wrap: anywhere; }
.status-message:empty { padding: 0; margin-block: 0; height: 30px; border: 0; }
.status-message.is-error { background: #fff0eb; border-color: #a5381f; color: #722715; }
.auth-panel { max-width: 470px; margin: 36px auto; }
.auth-panel h1 { margin-block: 18px; }
.auth-panel>p:not(.eyebrow) { line-height: 1.6; color: var(--muted); margin-bottom: 26px; }
.auth-panel input { margin-bottom: 24px; }
.auth-panel .button { width: 100%; margin-top: 6px; }
.auth-links { display: flex; justify-content: space-between; gap: 24px; margin-top: 20px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 400; min-height: 44px; }
.checkbox-label input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.auth-panel .checkbox-label { margin-top: -14px; margin-bottom: 16px; }
.admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-block: 20px; }
.admin-title-row .eyebrow { margin-bottom: 16px; }
.admin-intro { max-width: 660px; color: var(--muted); line-height: 1.65; font-size: 1.125rem; }
.archive-filter { margin-block: 24px 12px; }
.admin-job-list { margin-bottom: 32px; }
.admin-job-row { display: flex; justify-content: space-between; align-items: center; gap: 30px; border-top: 1px solid var(--line); padding: 26px 0; }
.admin-job-row>div { min-width: 0; }
.admin-job-row h2 { font-size: 1.625rem; margin-block: 8px; overflow-wrap: anywhere; }
.admin-job-row .button { flex-shrink: 0; }
.field-help { color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.list-empty { border-block: 1px solid var(--line); color: var(--muted); padding: 36px 0; line-height: 1.6; }
.back-button { margin-bottom: 8px; }
.state-tag { font-size: .8125rem; padding: 9px 14px; background: #e2ebf0; }
.editor-fields { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 28px; margin-block: 34px 42px; }
.full-width { grid-column: 1/-1; }
.photos-heading { display: flex; align-items: start; justify-content: space-between; gap: 32px; margin-bottom: 18px; }
.photos-heading h2 { font-size: 1.75rem; margin-bottom: 12px; }
.photos-heading p { color: var(--muted); line-height: 1.6; max-width: 550px; }
.upload-label { position: relative; white-space: nowrap; overflow: hidden; cursor: pointer; flex-shrink: 0; }
.upload-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.editor-photos { margin-block: 24px 36px; }
.editor-photo { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 26px; padding-block: 28px; border-top: 1px solid var(--line); }
.editor-photo img { width: 100%; height: 240px; object-fit: contain; background: #e5ecef; }
.photo-fields .eyebrow { margin-bottom: 16px; }
.photo-fields { min-width: 0; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 12px; }
.save-bar { border-top: 1px solid var(--line); padding-block: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #f7f9fa; }
#save-note { line-height: 1.5; color: var(--muted); }
.save-actions { display: flex; gap: 12px; flex-shrink: 0; }
.editor-bottom { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-top: 14px; }
.editor-bottom .plain-button { margin-left: auto; }
@media (max-width: 760px) {
  .job-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-archive { padding-bottom: 40px; }
  .job-body { font-size: 1.125rem; margin-bottom: 30px; }
  .job-photos { gap: 28px; }
  .admin-header-inner { padding-block: 20px 10px; align-items: start; flex-direction: column; gap: 10px; }
  .admin-header .brand img { width: 190px; }
  .admin-header nav { width: 100%; justify-content: space-between; }
  .auth-panel { margin-block: 24px; }
  .admin-title-row { align-items: start; flex-wrap: wrap; }
  .admin-job-row { align-items: start; flex-direction: column; gap: 16px; }
  .editor-fields { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .photos-heading { flex-direction: column; gap: 20px; }
  .editor-photo { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .editor-photo img { height: 230px; }
  .save-bar { flex-direction: column; align-items: stretch; }
  .save-actions { flex-direction: column; }
  .editor-bottom { align-items: start; flex-direction: column; gap: 14px; }
  .editor-bottom .plain-button { margin-left: 0; }
}
