.contact-dialog {
  width: min(940px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--story-card, var(--paper));
  color: var(--ink);
  box-shadow: 0 28px 100px rgb(20 30 35 / 20%);
  overscroll-behavior: contain;
}
.contact-dialog::backdrop { background: rgb(24 33 38 / 48%); backdrop-filter: blur(5px); }
.contact-dialog [hidden] { display: none; }
body.contact-is-open { overflow: hidden; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 248px; }
.contact-main { min-width: 0; padding: 38px 40px; }
.contact-main h2,
.contact-alternatives h3 {
  margin: 0;
  font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.12;
}
.contact-main h2 { font-size: 42px; }
.contact-main h2 em, .contact-alternatives h3 em { color: var(--gold); font-weight: 400; }
.contact-main > p { margin: 12px 0 26px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.contact-close {
  position: absolute; z-index: 1; top: 10px; right: 10px;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.contact-close:hover { background: var(--story-accent); color: var(--ink); }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.contact-field-wide { grid-column: 1 / -1; }
.contact-field label { font-size: 11px; font-weight: 500; }
.contact-field label span { color: var(--muted); font-weight: 400; }
.contact-field input, .contact-field textarea {
  width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 7px;
  background: var(--paper); color: var(--ink); padding: 12px 13px;
  font: inherit; font-size: 12px; line-height: 1.6;
}
.contact-field input { min-height: 46px; }
.contact-field textarea { min-height: 100px; resize: vertical; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: var(--muted); font-size: 12px; opacity: .8; }
.contact-dialog :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.contact-main h2:focus, .contact-success h3:focus { outline: none; }
.contact-submit-row { display: flex; align-items: center; gap: 18px; margin-top: 2px; }
.contact-dialog .button { margin: 0; font-family: inherit; cursor: pointer; white-space: nowrap; }
.contact-submit-row > p { max-width: 220px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.contact-fields:disabled { opacity: .65; }
.contact-fields:disabled .button { cursor: wait; transform: none; }
.contact-error { margin: 18px 0 0; padding: 12px 14px; border-left: 2px solid var(--gold); background: var(--story-surface); color: var(--ink); font-size: 12px; line-height: 1.8; }
.contact-alternatives { padding: 78px 28px 36px; background: var(--story-surface); border-left: 1px solid var(--line); }
.contact-aside-line { display: block; width: 30px; height: 1px; margin-bottom: 22px; background: var(--gold); }
.contact-alternatives h3 { font-size: 32px; }
.contact-alternatives > p { margin: 16px 0 24px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.contact-channel { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 12px; }
.contact-channel:last-child { border-bottom: 1px solid var(--line); }
.contact-channel:hover { color: var(--gold); }
.contact-channel-label { display: flex; align-items: center; gap: 10px; }
.contact-channel-icon { flex: 0 0 20px; width: 20px; height: 20px; }
.contact-channel small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.contact-success { padding-block: 16px 28px; }
.contact-success-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--story-surface); color: var(--gold); font-size: 22px; }
.contact-success h3 { margin: 20px 0 10px; font-size: 19px; font-weight: 500; }
.contact-success p { max-width: 360px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.contact-reset { margin-top: 12px; padding: 10px 0; background: transparent; border: 0; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.contact-honeypot { display: none; }
.contact-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Header navigation shares the landing's quiet type and charcoal / gold palette. */
.site-navigation .nav-link { font-size: 13px; }
.site-navigation .nav-mobile-only, .nav-toggle { display: none; }
.nav-toggle {
  flex-shrink: 0; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 1px solid rgb(41 48 52 / 20%); border-radius: 8px;
  background: transparent; color: inherit; cursor: pointer;
}
.nav-toggle-cross { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-cross { display: block; }
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Careers uses the site's palette throughout the page, including navigation. */
.careers-page {
  --story-surface: #F3F2EE; --story-card: #FFFFFF; --story-accent: #EEE8DC;
  background-image: none; overflow-x: clip;
}
.careers-page .header { position: relative; z-index: 2; isolation: isolate; color: var(--ink); }
.careers-page .header::before {
  content: ""; position: absolute; z-index: -1; inset-block: 0; left: 50%;
  width: 100vw; transform: translateX(-50%); background: var(--paper);
}
.careers-page .header .nav-link:hover { color: var(--gold); }
.careers-page .nav-toggle { border-color: var(--line); }
.careers-page .nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.careers-page .careers-copy h1 { margin-top: 0; }
@media (prefers-color-scheme: dark) {
  .careers-page { --story-surface: #182632; --story-card: #15222E; --story-accent: #263644; }
  .careers-page .brand-logo { filter: brightness(0) invert(1); }
}
.careers-section {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start; gap: clamp(32px, 6vw, 90px);
  padding-block: 64px 88px; border-top: 1px solid var(--line); scroll-margin-top: 28px;
}
.careers-copy h1 {
  margin: 24px 0; font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(44px, 5vw, 66px); font-weight: 400; letter-spacing: -.045em; line-height: 1.08;
}
.careers-copy h1 em { color: var(--gold); font-weight: 400; }
.careers-copy > p:not(.eyebrow) { max-width: 390px; margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.careers-card { min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--story-card, var(--paper)); }
.careers-card [hidden] { display: none; }
.careers-instructions { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.careers-card .contact-field label { font-size: 12px; }
.careers-card .contact-field input, .careers-card .contact-field textarea { font-size: 14px; }
.careers-card .button { margin: 8px 0 0; font-family: inherit; cursor: pointer; }
.careers-card :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.careers-section:focus, .careers-card .contact-success h3:focus { outline: none; }
.careers-file { align-content: start; }
.careers-file-hint { margin: -2px 0 2px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.careers-card input[type="file"] { padding: 8px; font-size: 11px; text-overflow: ellipsis; }
.careers-card input[type="file"]::file-selector-button {
  min-height: 32px; margin-right: 8px; padding: 6px 10px; border: 0; border-radius: 4px;
  background: var(--story-surface); color: var(--ink); font: inherit; cursor: pointer;
}
.careers-card input[type="file"]::file-selector-button:hover { background: var(--story-accent); }
.careers-remove { align-self: flex-start; min-height: 32px; padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.careers-file-error { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.6; }
.careers-card [aria-invalid="true"] { border-color: var(--gold); }
.careers-privacy, .careers-fallback { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.careers-privacy a, .careers-fallback a { text-underline-offset: 3px; }
.careers-fallback { margin-top: 18px; }
@media (max-width: 1000px) {
  .careers-section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .careers-copy h1 br { display: none; }
  .careers-copy h1 em::before { content: " "; }
  .careers-copy > p:not(.eyebrow) { max-width: 560px; }
}
@media (max-width: 800px) {
  .header:not(.navigation-ready) { flex-wrap: wrap; height: auto; }
  .header .site-navigation { gap: 0; }
  .header:not(.navigation-ready) .site-navigation { width: 100%; flex-wrap: wrap; gap: 4px 22px; }
  .site-navigation .nav-mobile-only { display: inline-flex; }
  .navigation-ready .nav-toggle:not([hidden]) { display: grid; }
  .navigation-ready .site-navigation {
    position: absolute; top: calc(100% - 4px); right: 0; left: 0;
    display: none; flex-direction: column; align-items: stretch; padding: 10px 20px;
    border: 1px solid rgb(41 48 52 / 14%); border-radius: 12px;
    background: #FAFBFC; color: #293034; box-shadow: 0 12px 32px rgb(24 33 38 / 12%);
  }
  .navigation-ready .site-navigation.is-open { display: flex; }
  .navigation-ready .site-navigation .nav-link { justify-content: space-between; min-height: 52px; font-size: 14px; }
  .navigation-ready .site-navigation .nav-link + .nav-link { border-top: 1px solid rgb(41 48 52 / 14%); }
  .careers-page .navigation-ready .site-navigation {
    background: var(--story-card); color: var(--ink); border-color: var(--line);
  }
  .careers-page .navigation-ready .site-navigation .nav-link + .nav-link { border-top-color: var(--line); }
  .careers-section { padding-block: 36px 48px; }
  .careers-copy h1 { margin-block: 18px; }
}
@media (max-width: 600px) {
  .careers-card { padding: 24px 18px; }
  .careers-card .contact-fields { grid-template-columns: minmax(0, 1fr); }
  .careers-card .contact-field input, .careers-card .contact-field textarea { font-size: 16px; }
  .careers-card input[type="file"] { font-size: 12px; }
  .careers-card .button { width: 100%; }
}
@media (max-width: 700px) {
  .contact-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-main { padding: 30px 24px; }
  .contact-main h2 { padding-right: 16px; font-size: 36px; }
  .contact-field input, .contact-field textarea { font-size: 16px; }
  .contact-alternatives { padding: 26px 24px; border-left: 0; border-top: 1px solid var(--line); }
  .contact-aside-line { display: none; }
  .contact-alternatives h3 { font-size: 28px; }
  .contact-alternatives h3 br { display: none; }
  .contact-alternatives h3 em::before { content: " "; }
  .contact-alternatives > p { margin: 10px 0 16px; }
}
@media (max-width: 420px) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .contact-submit-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .contact-submit-row > p { max-width: none; text-align: center; }
}
