:root { color-scheme: dark; --paper: #2b2d2f; --ink: #c2c1b9; }
* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
html { background: var(--paper); }
@view-transition { navigation: auto; }
::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root),
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none !important; }
::view-transition-old(page-content) { animation: content-out 100ms ease-out both; }
::view-transition-new(page-content) { animation: content-in 300ms cubic-bezier(.2,.7,.2,1) both; }
::view-transition-group(home-mark) { animation-duration: 680ms; animation-timing-function: cubic-bezier(.2,.75,.25,1); }
::view-transition-old(home-mark) { animation: home-mark-out 180ms ease-in both; }
::view-transition-new(home-mark) { animation: home-mark-in 420ms ease-out 100ms both; }
@keyframes content-out { to { opacity: 0; } }
@keyframes content-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes home-mark-out { to { opacity: 0; transform: scale(.72); } }
@keyframes home-mark-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(page-content), ::view-transition-new(page-content) { animation: none !important; } }
body { margin: 0; color: var(--ink); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(20px, 4vw, 64px); gap: clamp(20px, 4vh, 40px); }
header, footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
header { border-bottom: 1px solid #9995; padding-bottom: 24px; }
header.site-header { view-transition-name: site-header; position: sticky; top: 0; z-index: 5; align-self: start; background: var(--paper); justify-content: space-between; height: auto; min-height: 76px; padding: 0 0 14px; }
header.site-header .header-tools { display: flex; }
.site-wordmark { display: block; flex: 0 1 174px; width: min(174px, 34vw); min-width: 118px; line-height: 0; }
.site-wordmark img { display: block; width: 100%; height: auto; }
.site-wordmark { position: relative; isolation: isolate; }
.site-wordmark::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #6e71d8 0%, #568fd4 16%, #53c3c4 32%, #8acb83 46%, #e0c66f 60%, #e78e78 74%, #d775b3 88%, #6e71d8 100%); background-size: 220% 100%; background-position: 100% 50%; -webkit-mask: url("assets/wordmark.svg") center / 100% 100% no-repeat; mask: url("assets/wordmark.svg") center / 100% 100% no-repeat; }
.site-wordmark:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }
.identity { font-size: 16px; letter-spacing: -.025em; text-decoration: none; color: inherit; }
.identity:focus-visible { outline: 1px solid var(--ink); outline-offset: 8px; }
.discipline, .clock-label { font-size: 13px; line-height: 1.5; letter-spacing: .02em; }
main { display: grid; place-items: center; min-height: min(420px, 55svh); view-transition-name: page-content; }
.wordmark { position: relative; width: min(64vw, 720px); aspect-ratio: 642 / 110; margin: 0; overflow: hidden; }

footer { align-items: end; justify-content: flex-end; }
.clock { text-align: right; }
.clock-label { display: block; margin-bottom: 8px; }
.clock-reading { display: flex; gap: 14px; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; }
#time { font: 16px/1.4 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; font-variant-numeric: tabular-nums; letter-spacing: .035em; }
#zone { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .page { min-height: 100svh; padding: 20px clamp(18px, 5vw, 28px); gap: 18px; }
  header { align-items: center; }
  header.site-header { min-height: 64px; gap: 12px; }
  header.site-header .header-tools { display: flex; flex: 0 1 auto; width: auto; min-width: 0; }
  .discipline { max-width: 120px; text-align: right; }
  .wordmark { width: min(84vw, 440px); max-width: 100%; }
  footer { align-items: start; flex-direction: column; gap: 28px; }
  .clock { text-align: left; }
  .clock-reading { justify-content: flex-start; }
}
@media (max-height: 450px) and (min-width: 601px) { .page { gap: 24px; } main { min-height: 140px; } }



.brand { display: grid; justify-items: center; width: 100%; text-align: center; transform: translateY(-3svh); mix-blend-mode: normal; }
.tagline { width: 100%; margin: 10px auto 0; font-size: 16px; line-height: 1.5; letter-spacing: .02em; text-align: center; }
.company-picker { width: min(100%, 560px); min-width: 0; padding: clamp(20px, 5vh, 36px) 0 clamp(24px, 5vh, 44px); text-align: center; }
.home-mascot { display: block; width: clamp(92px, 9vw, 120px); height: auto; margin: 0 auto clamp(6px, 1.2vh, 12px); object-fit: contain; }
.picker-eyebrow { margin: 0 0 clamp(12px, 2vh, 18px); color: #85867e; font-size: clamp(9px, 2.5vw, 11px); font-weight: 600; letter-spacing: .16em; }
.company-picker h1 { margin: 0 auto; max-width: 100%; color: var(--ink); font-size: clamp(28px, 4.3vw, 46px); font-weight: 500; letter-spacing: -.055em; line-height: 1.1; text-wrap: balance; }
.picker-description { margin: 14px 0 clamp(20px, 4vh, 30px); color: #898a82; font-size: clamp(14px, 3.5vw, 15px); line-height: 1.5; }
.company-search { display: flex; align-items: center; gap: 13px; width: 100%; height: 62px; padding: 0 18px; border: 1px solid #d5d3cb; border-radius: 14px; background: #f7f6f1; color: #85867e; text-align: left; transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.company-search:focus-within { border-color: #a2a399; background: #fbfaf6; box-shadow: 0 0 0 4px #85867e12; }
.company-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; flex: 0 0 auto; }
.company-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.company-search input { min-width: 0; }
.company-search input::placeholder { color: #9b9b93; }
.company-search input::-webkit-search-cancel-button { cursor: pointer; }
.company-search kbd { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #deddd6; border-radius: 6px; color: #9a9a92; font: 12px/1 'SFMono-Regular', Consolas, monospace; }
.search-help { margin: 9px 4px 0; color: #a09f96; font-size: 11px; text-align: left; }
.company-results { margin-top: 20px; text-align: left; }
.company-results[hidden] { display: none; }
.company-option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 1px solid #e1dfd7; border-radius: 13px; background: #f7f6f1; color: var(--ink); cursor: pointer; text-align: left; transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.company-results[hidden], .company-option[hidden], .no-results[hidden] { display: none !important; }
.company-option.is-selected { border-color: #78b89e; background: #eef5ee; }
:root[data-theme="dark"] .company-option.is-selected { border-color: #78b89e; background: #333b35; }
.company-option:hover, .company-option:focus-visible { border-color: #babbb0; background: #fbfaf6; box-shadow: 0 6px 22px #403d3010; transform: translateY(-1px); outline: 0; }
.company-logo { display: grid; width: 42px; height: 42px; flex: none; place-items: center; overflow: hidden; border: 1px solid #ffffff20; border-radius: 10px; background: #f4f3ef; color: #272a28; font-size: 22px; font-weight: 600; letter-spacing: -.08em; }
.company-logo img { display: block; width: 30px; height: 30px; object-fit: contain; }
.company-logo-monogram { line-height: 1; }
.company-details { display: grid; gap: 4px; }
.company-details { min-width: 0; }
.company-details strong { font-size: 14px; font-weight: 600; }
.company-details small { color: #898a82; font-size: 11px; }
.company-arrow { margin-left: auto; color: #a0a096; font-size: 19px; }
.no-results { margin: 0; padding: 22px 14px; color: #898a82; font-size: 13px; text-align: center; }
.company-ticker { position: relative; left: 50%; width: min(800px, calc(100vw - 36px)); height: auto; margin: 14px 0 18px; transform: translateX(-50%); text-align: center; }
.company-ticker-label { margin: 0 0 12px; color: #8e948d; font-size: 10px; font-weight: 600; letter-spacing: .16em; }
.company-ticker-window { overflow: hidden; width: 100%; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.company-ticker-track { display: flex; width: max-content; animation: company-ticker-scroll var(--company-ticker-duration, 56s) linear infinite; }
.company-ticker-window:hover .company-ticker-track { animation-play-state: paused; }
.company-ticker-group { display: flex; flex: none; align-items: center; gap: 28px; margin: 0; padding: 0 28px 0 0; list-style: none; }
.company-ticker-group li { display: flex; flex: none; align-items: center; gap: 9px; color: #bbbfb6; font-size: 14px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.company-ticker-mark { display: grid; width: 28px; height: 28px; flex: none; place-items: center; overflow: hidden; border: 1px solid #ffffff20; border-radius: 9px; background: #f4f3ef; }
.company-ticker-mark img { display: block; width: 22px; height: 22px; object-fit: contain; }
.company-ticker-monogram { color: #272a28; font-size: 12px; font-weight: 700; line-height: 1; }
.company-ticker-group li::after { display: inline-block; width: 4px; height: 4px; margin: 0 0 3px 28px; border-radius: 50%; background: #79b99d; content: ''; }
@keyframes company-ticker-scroll { to { transform: translateX(-50%); } }
.picker-footnote { margin: 27px 0 0; color: #aaa99f; font-size: 11px; }
:root[data-theme="dark"] .picker-eyebrow, :root[data-theme="dark"] .picker-description, :root[data-theme="dark"] .search-help, :root[data-theme="dark"] .company-details small, :root[data-theme="dark"] .picker-footnote, :root[data-theme="dark"] .no-results { color: #999b94; }
:root[data-theme="dark"] .company-search, :root[data-theme="dark"] .company-option { border-color: #484a46; background: #323431; }
:root[data-theme="dark"] .company-search:focus-within, :root[data-theme="dark"] .company-option:hover, :root[data-theme="dark"] .company-option:focus-visible { border-color: #77796f; background: #373934; }
:root[data-theme="dark"] .company-search kbd { border-color: #555750; }
.home-section-links { display:flex; justify-content:center; align-items:center; gap:36px; margin:38px auto 0; }
.home-section-links a { display:inline-flex; align-items:center; gap:12px; padding:8px 0; color:inherit; font-size:14px; text-decoration:none; border-bottom:1px solid #9996; transition:border-color 180ms ease,color 180ms ease; }
.home-section-links a:hover { border-color:currentColor; }
.home-section-links a span { font-size:12px; opacity:.65; }

header { align-items: start; }
header .clock { text-align: right; }
header .clock-reading { justify-content: flex-end; }
.bottom-space { height: 49px; }
@media (max-width: 600px) { header .clock { max-width: 65%; } header .clock-reading { gap: 4px 12px; } }

@media (max-width: 420px) {
  .site-wordmark { flex-basis: 112px; width: 112px; min-width: 100px; }
  .site-header .header-tools { display: flex; grid-template-columns: none; width: auto; gap: 8px; }
  .site-header .clock-label { font-size: 10px; }
  .site-header #time { font-size: 13px; }
  .site-header #zone { font-size: 10px; }
  .company-picker h1 { max-width: 360px; font-size: clamp(27px, 8vw, 34px); }
  .company-search { height: 56px; gap: 10px; padding: 0 13px; }
  .company-option { gap: 11px; padding: 11px; }
  .company-logo { width: 38px; height: 38px; flex: 0 0 38px; }
  .company-logo img { width: 26px; height: 26px; }
  .company-details small { line-height: 1.4; }
  .picker-footnote { margin-top: 22px; }
  .company-ticker { margin-top: 10px; margin-bottom: 16px; }
  .company-ticker-group { gap: 18px; padding-right: 18px; }
  .company-ticker-group li::after { margin-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .company-ticker-window { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .company-ticker-track { animation: none; }
  .company-ticker-group[aria-hidden="true"] { display: none; }
}

@media (max-width: 360px) {
  .page { padding-right: 16px; padding-left: 16px; }
  header.site-header { gap: 8px; }
  .site-wordmark { flex-basis: 96px; width: 96px; min-width: 88px; }
  .site-header .header-tools { gap: 5px; }
  .site-header .clock-reading { column-gap: 6px; }
  .site-header #time { font-size: 12px; }
  .site-header #zone { font-size: 9px; }
}

@media (max-height: 650px) {
  .page { gap: 16px; }
  main { min-height: 0; }
  .company-picker { padding-top: 12px; padding-bottom: 16px; }
  .picker-eyebrow { margin-bottom: 10px; }
  .picker-description { margin-top: 10px; margin-bottom: 18px; }
  .company-results { margin-top: 14px; }
  .picker-footnote { margin-top: 18px; }
}

.wordmark img { display: block; width: 100%; height: auto; }
.wordmark img { view-transition-name: home-mark; }

/* A quiet, one-time entrance for the identity and wordmark. */
@keyframes reveal-brand {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-header {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  header { animation: reveal-header 900ms ease-out both; }
  .wordmark { animation: reveal-brand 1400ms cubic-bezier(.22, 1, .36, 1) 150ms both; }
  .tagline { animation: reveal-brand 1100ms cubic-bezier(.22, 1, .36, 1) 550ms both; }
}

/* A moving spectrum passes through the fixed wordmark. */
.wordmark::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    #6e71d8 0%, #568fd4 16%, #53c3c4 32%, #8acb83 46%,
    #e0c66f 60%, #e78e78 74%, #d775b3 88%, #6e71d8 100%);
  background-size: 220% 100%;
  background-position: 100% 50%;
  -webkit-mask: url("assets/wordmark.svg") center / 100% 100% no-repeat;
  mask: url("assets/wordmark.svg") center / 100% 100% no-repeat;
}
@keyframes color-wave {
  from { background-position: 100% 50%; }
  to { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: no-preference) {
  .wordmark::after, .site-wordmark::after { animation: color-wave 8s linear infinite; }
}

:root[data-theme="dark"] { color-scheme: dark; --paper: #2b2d2f; --ink: #c2c1b9; }
.header-tools { display: flex; align-items: center; gap: 28px; }
.site-header .header-tools { gap: 18px; }
.site-header .clock-label { margin-bottom: 2px; font-size: 11px; }
.site-header .clock-reading { gap: 10px; }
.site-header #time { font-size: 15px; }
.site-header #zone { font-size: 11px; }
@media (max-width: 600px) {
 .header-tools { flex-direction: row; align-items: center; justify-content: flex-end; gap: 14px; max-width: 100%; }
 header .header-tools .clock { max-width: 100%; }
 .site-wordmark { width: 132px; }
}


.contact-footer { justify-content: center; min-height: 49px; }
.companion, .companion-panel, .companion-invite, .companion-toast, .companion-restore, .contact-footer { display: none !important; visibility: hidden !important; }
.contact-trigger { border: 0; border-bottom: 1px solid #9996; padding: 12px 0; min-height: 44px; background: none; color: var(--ink); font: 13px/1.5 'Helvetica Neue', Helvetica, Arial, sans-serif; cursor: pointer; }
.contact-trigger span { display: inline-block; margin-left: 16px; }
.contact-trigger:hover { border-color: currentColor; }
.contact-trigger:focus-visible, #contact-dialog a:focus-visible, #contact-dialog button:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
#contact-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 76px 0 0; border: 0; background: transparent; color: var(--ink); overflow-y: auto; }
#contact-dialog::backdrop { background: #1d20254d; backdrop-filter: blur(5px); }
.contact-peek { position: absolute; top: 0; left: calc(50% - 64px); width: 128px; height: 100px; overflow: hidden; pointer-events: none; }
.contact-peek img { width: 128px; transform: rotate(-10deg); }
.contact-card { position: relative; padding: 48px 30px 30px; border: 1px solid #9995; border-radius: 24px; background: var(--paper); text-align: center; }
.contact-close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 24px; cursor: pointer; }
.contact-close:hover { background: #9992; }
.contact-eyebrow { font-size: 9px; letter-spacing: .14em; margin: 0 0 20px; }
#contact-title { font-size: clamp(25px, 6vw, 32px); line-height: 1.2; font-weight: 400; letter-spacing: -.035em; margin: 0 0 16px; }
#contact-description { font-size: 14px; line-height: 1.8; margin: 0 0 25px; }
.contact-email { display: inline-flex; justify-content: center; align-items: center; gap: 32px; min-height: 48px; padding: 12px 24px; background: var(--ink); color: var(--paper); border-radius: 30px; text-decoration: none; font-size: 14px; }
.contact-email[hidden], .contact-note[hidden] { display: none; }
.contact-note { font-size: 11px; line-height: 1.6; margin: 18px 0 0; }
body.contact-is-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
 .companion.is-waving .companion-figure { animation: companion-wave 1.4s ease-in-out; }
 #contact-dialog[open] .contact-peek img { animation: contact-peek 500ms ease-out both; }
 .contact-trigger span { transition: transform 180ms ease; }
 .contact-trigger:hover span { transform: translate(3px,-3px); }
}
@keyframes contact-peek { from { transform: translateY(45px) rotate(0); } to { transform: translateY(0) rotate(-10deg); } }

/* An envelope opens the same contact card. */
.contact-trigger { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; font-size: 25px; line-height: 1; }
.contact-trigger span { margin-left: 0; }
.contact-trigger:hover { background: #9992; }
.contact-trigger:hover span { transform: none; }

.contact-trigger { position: relative; }
.contact-trigger .contact-tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; margin: 0; padding: 7px 11px; transform: translateX(-50%); border: 1px solid #9995; border-radius: 12px; background: var(--paper); color: var(--ink); font: 12px/1.4 'Helvetica Neue', Helvetica, Arial, sans-serif; white-space: nowrap; visibility: hidden; pointer-events: none; }
.contact-trigger:hover .contact-tooltip, .contact-trigger:focus-visible .contact-tooltip { visibility: visible; transform: translateX(-50%); }

/* Center the envelope at every screen size. */
.contact-footer { flex-direction: row; align-items: center; justify-content: center; }
.contact-courier { position: fixed; left: 0; top: 0; width: 96px; height: 96px; z-index: 2; pointer-events: none; }
.contact-courier[hidden], .contact-local-email[hidden] { display: none; }
.contact-courier img { display: block; width: 100%; height: 100%; }
.contact-courier span { position: absolute; left: 37px; top: 56px; font-size: 27px; line-height: 1; transform: rotate(-12deg); }
body.contact-is-open .companion, body.contact-is-open .companion-restore { visibility: hidden; }
#contact-dialog.is-delivering .contact-peek { visibility: hidden; }
#contact-dialog.is-delivering .contact-peek img { animation: none; }
.contact-local-email { display: block; width: fit-content; margin: 18px auto 0; color: var(--ink); font-size: 12px; line-height: 1.5; text-underline-offset: 4px; padding: 10px 4px; }

.journal-link { color: inherit; text-decoration: none; font-size: 14px; white-space: nowrap; padding: 8px 0 7px; border-bottom: 1px solid transparent; transition: color 180ms ease, border-color 180ms ease; }
.journal-link span { margin-left: 8px; }
.journal-link:hover { border-color: currentColor; }
.journal-link[aria-current="page"] { border-color: currentColor; }
.journal-link:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
@media(max-width:600px) { .header-tools { display: grid; grid-template-columns: auto auto; align-items: center; gap: 12px 18px; } .header-tools .clock { grid-column: 1 / -1; grid-row: 1; } }

.section-links { display:flex; align-items:center; gap:20px; }
.section-links a[aria-current="page"] { color:var(--ink); border-color:currentColor; }
@media(max-width:600px) { .header-tools .section-links { grid-column:1 / -1; justify-content:flex-end; gap:24px; } }

/* Keep the clock and theme switch inside the header at compact viewport widths. */
@media (max-width: 600px) {
  header.site-header { height: auto; min-height: 0; padding-bottom: 14px; }
  .site-header .header-tools {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    max-width: calc(100% - 104px);
    gap: 10px;
  }
  .site-header .clock { min-width: 0; max-width: min(220px, 48vw); text-align: right; }
  .site-header .clock-reading { justify-content: flex-end; flex-wrap: wrap; }
}

@media (max-width: 360px) {
  .site-header .header-tools { max-width: calc(100% - 88px); gap: 6px; }
  .site-header .clock { max-width: calc(100% - 82px); }
}

/* Company job browser */
.jobs-dialog { width: min(960px, calc(100vw - 32px)); max-width: none; max-height: min(850px, calc(100dvh - 32px)); padding: 0; overflow: hidden; border: 1px solid #51534e; border-radius: 24px; background: #2b2d2f; color: #c2c1b9; box-shadow: 0 24px 100px #0008; }
.jobs-dialog::backdrop { background: #101112b8; backdrop-filter: blur(8px); }
.jobs-window { display: flex; flex-direction: column; max-height: min(850px, calc(100dvh - 32px)); min-height: 0; }
.jobs-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 27px 30px 22px; border-bottom: 1px solid #454743; }
.jobs-eyebrow { margin: 0 0 8px; color: #8c9188; font-size: 10px; font-weight: 600; letter-spacing: .15em; }
.jobs-header h2 { margin: 0; font-size: clamp(25px, 4vw, 34px); font-weight: 500; letter-spacing: -.045em; }
.jobs-count { margin: 7px 0 0; color: #999c94; font-size: 12px; }
.jobs-close { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border: 1px solid #555750; border-radius: 50%; background: transparent; color: inherit; font: 26px/1 sans-serif; cursor: pointer; }
.jobs-close:hover { background: #ffffff0d; }
.jobs-close:focus-visible, .jobs-more:focus-visible, .job-card a:focus-visible { outline: 2px solid #88c7a8; outline-offset: 3px; }
.jobs-filters { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 1.1fr) repeat(2, minmax(120px, 1fr)) auto; align-items: center; gap: 10px; padding: 18px 30px; border-bottom: 1px solid #454743; }
.jobs-filter-search, .jobs-filter-select { display: flex; min-width: 0; min-height: 48px; align-items: center; gap: 9px; border: 1px solid #4b4d48; border-radius: 10px; background: #323431; color: #a8aaa2; }
.jobs-filter-search { padding: 0 12px; }
.jobs-filter-search > span { font-size: 22px; line-height: 1; }
.jobs-filter-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #e2e1da; font: inherit; font-size: 13px; }
.jobs-filter-search input::placeholder { color: #969890; }
.jobs-filter-select { position: relative; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; padding: 7px 12px; transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.jobs-filter-select:focus-within { border-color: #78b89e; background: #373a36; box-shadow: 0 0 0 3px #78b89e1c; }
.jobs-filter-select > span, .jobs-filter-location > label { color: #92958d; font-size: 10px; line-height: 1; }
.jobs-filter-select select, .jobs-filter-select input { width: 100%; min-width: 0; padding: 0 15px 0 0; appearance: none; border: 0; outline: 0; background: transparent; color: #e0dfd8; font: inherit; font-size: 13px; }
.jobs-filter-select input::placeholder { color: #d2d2cb; opacity: 1; }
.jobs-filter-select::after { position: absolute; right: 13px; top: 50%; color: #a8aaa2; content: '⌄'; font-size: 14px; pointer-events: none; transform: translateY(-20%); }
.jobs-filter-select option { background: #323431; color: #e2e1da; }
.jobs-filter-location { z-index: 3; }
.location-options { position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; left: 0; max-height: 300px; overflow: auto; padding: 5px; border: 1px solid #50534d; border-radius: 14px; background: #292b2a; box-shadow: 0 16px 38px #0008; }
.location-options[hidden] { display: none; }
.location-option { display: block; width: 100%; padding: 10px 11px; border: 0; border-radius: 9px; background: transparent; color: #dbdad3; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.location-option:hover, .location-option:focus-visible { outline: 0; background: #ffffff12; color: #fff; }
.location-options-empty { margin: 0; padding: 11px; color: #999c94; font-size: 12px; }
.jobs-reset { justify-self: end; padding: 9px 12px; border: 1px solid #50534d; border-radius: 20px; background: transparent; color: #b7cbbd; font: inherit; font-size: 11px; white-space: nowrap; cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.jobs-reset:hover { border-color: #78b89e; background: #78b89e14; }
.jobs-reset:focus-visible { outline: 2px solid #88c7a8; outline-offset: 3px; }
.jobs-reset[hidden] { display: none; }
.jobs-status { margin: 0; padding: 22px 30px; color: #a4a69f; font-size: 13px; line-height: 1.6; }
.jobs-list { min-height: 0; overflow: auto; padding: 8px 30px 20px; overscroll-behavior: contain; }
.job-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 2px; border-bottom: 1px solid #41433f; }
.job-card-details { min-width: 0; }
.job-card h3 { margin: 0; color: #e1e0d9; font-size: 14px; font-weight: 500; line-height: 1.45; }
.job-card p { margin: 6px 0 0; color: #92958d; font-size: 11px; line-height: 1.45; }
.job-card a { flex: 0 0 auto; color: #a6d3b7; font-size: 11px; text-decoration: none; white-space: nowrap; }
.job-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.job-card.has-details { flex-wrap: wrap; }
.job-card-more { flex: 0 0 100%; min-width: 0; }
.job-card-more summary { width: max-content; margin-top: -4px; color: #a6d3b7; font-size: 11px; cursor: pointer; }
.job-card-more summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.job-card-more summary:focus-visible { outline: 2px solid #88c7a8; outline-offset: 3px; }
.job-card-more-content { max-width: 72ch; padding: 12px 0 5px; }
.job-card-more-content section + section { margin-top: 20px; }
.job-card-more-content h4 { margin: 0; color: #d6d8d0; font-size: 12px; font-weight: 600; }
.job-card-more-content p { margin: 7px 0 0; color: #afb2a9; font-size: 12px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.job-card-more-content .job-posted-date { margin: 0 0 18px; color: #92958d; font-size: 11px; }
.jobs-empty { padding: 28px 0; color: #a4a69f; font-size: 13px; text-align: center; }
.jobs-more { align-self: center; margin: 0 20px 18px; padding: 11px 18px; border: 1px solid #555750; border-radius: 24px; background: transparent; color: #d0d0c9; font: inherit; font-size: 12px; cursor: pointer; }
.jobs-more:hover { background: #ffffff0d; }
.jobs-more[hidden] { display: none; }
.jobs-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 30px; border-top: 1px solid #454743; color: #82867e; font-size: 10px; }
.jobs-footer a { flex: 0 0 auto; color: #a6d3b7; text-decoration: none; }
.jobs-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) {
  .jobs-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
  .jobs-window { max-height: calc(100dvh - 20px); }
  .jobs-header { padding: 21px 20px 17px; }
  .jobs-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 20px; }
  .jobs-filter-search { grid-column: 1 / -1; }
  .jobs-reset { justify-self: start; }
  .jobs-status { padding: 18px 20px; }
  .jobs-list { padding: 6px 20px 16px; }
  .jobs-footer { align-items: flex-start; padding: 13px 20px; }
}
@media (max-width: 420px) {
  .jobs-dialog { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
  .jobs-window { max-height: calc(100dvh - 12px); }
  .jobs-header { padding: 17px 15px 14px; }
  .jobs-filters { padding: 12px 15px; gap: 8px; }
  .jobs-filter-select { min-height: 44px; }
  .jobs-list { padding-right: 15px; padding-left: 15px; }
  .job-card { align-items: flex-start; gap: 10px; }
  .job-card a { padding-top: 2px; }
  .jobs-footer { flex-direction: column; gap: 7px; padding: 12px 15px; }
}
.jobs-recovery-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:14px; }
.jobs-recovery-actions a, .jobs-recovery-actions button { display:inline-flex; min-height:38px; align-items:center; justify-content:center; padding:8px 13px; border:1px solid #555750; border-radius:22px; background:transparent; color:#c2c1b9; font:inherit; font-size:11px; text-decoration:none; cursor:pointer; }
.jobs-recovery-actions a:hover, .jobs-recovery-actions button:hover { background:#ffffff0d; }
@media(max-width:420px) { .jobs-recovery-actions { gap:7px; } .jobs-recovery-actions a, .jobs-recovery-actions button { padding-right:10px; padding-left:10px; } }

/* Keep the company picker in place while search results appear. */
.company-results { height: 168px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.company-option + .company-option { margin-top: 8px; }
.company-results[hidden] { display: block !important; visibility: hidden; pointer-events: none; }

/* Stable, matching controls for every company job filter. */
.jobs-dialog { position: fixed; inset: 0; height: min(850px, calc(100dvh - 32px)); margin: auto; }
.jobs-window { height: 100%; max-height: none; }
.jobs-list { flex: 1 1 auto; }
.jobs-header, .jobs-filters, .jobs-footer, .jobs-more { flex-shrink: 0; }
.jobs-status[hidden] { display: none; }
.jobs-filters { position: relative; z-index: 2; grid-template-columns: minmax(160px, 1.4fr) repeat(3, minmax(120px, 1fr)) auto; }
.jobs-filter-search, .jobs-filter-trigger { height: 52px; }
.jobs-filter-search { transition: border-color 160ms ease, box-shadow 160ms ease; }
.jobs-filter-search:focus-within { border-color: #78b89e; box-shadow: 0 0 0 3px #78b89e1c; }
.jobs-filter-trigger { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 7px 30px 7px 12px; border: 1px solid #4b4d48; border-radius: 10px; background: #323431; color: #e0dfd8; font: inherit; text-align: left; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.jobs-filter-trigger:not(:disabled):hover, .jobs-filter-trigger[aria-expanded="true"] { border-color: #78b89e; background: #373a36; }
.jobs-filter-trigger:disabled { opacity: .55; cursor: default; }
.jobs-filter-trigger:focus-visible { outline: 2px solid #88c7a8; outline-offset: 2px; }
.jobs-filter-label { color: #92958d; font-size: 10px; line-height: 1; }
.jobs-filter-value { display: block; max-width: 100%; overflow: hidden; font-size: 13px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.jobs-filter-chevron { position: absolute; right: 12px; top: 50%; color: #a8aaa2; font-size: 16px; transform: translateY(-50%); }
.jobs-filter-menu { position: absolute; z-index: 20; display: flex; flex-direction: column; max-height: min(330px, 50dvh); padding: 6px; border: 1px solid #555b52; border-radius: 14px; background: #292c2a; box-shadow: 0 18px 42px #0009; }
.jobs-filter-menu[hidden] { display: none; }
.jobs-menu-search { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 4px; padding: 0 10px; border: 1px solid #4d534d; border-radius: 9px; color: #9aa39a; }
.jobs-menu-search:focus-within { border-color: #78b89e; }
.jobs-menu-search > span { font-size: 19px; line-height: 1; }
.jobs-menu-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #e8e8e1; font: inherit; font-size: 12px; }
.jobs-menu-search input::placeholder { color: #929a91; }
.jobs-menu-list { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.jobs-menu-option { display: flex; width: 100%; min-height: 39px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #d9dbd3; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.jobs-menu-option:hover, .jobs-menu-option:focus-visible { outline: 0; background: #ffffff12; }
.jobs-menu-option[aria-selected="true"] { background: #78b89e1c; color: #a6d3b7; }
.jobs-menu-option small { flex: 0 0 auto; color: #8f998f; font-size: 10px; }
.jobs-menu-empty { margin: 0; padding: 12px 10px; color: #9ea39c; font-size: 12px; }
.jobs-reset { min-height: 36px; }
.jobs-reset:disabled { opacity: .5; cursor: default; }
@media (max-width: 700px) {
  .jobs-dialog { height: calc(100dvh - 20px); }
  .jobs-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobs-reset { justify-self: stretch; }
}
@media (max-width: 420px) {
  .jobs-dialog { height: calc(100dvh - 12px); }
  .jobs-filters { gap: 8px; }
  .jobs-filter-trigger { min-height: 46px; }
  .jobs-reset { grid-column: 1 / -1; min-height: 32px; }
  .job-card { flex-wrap: wrap; }
  .job-card a { margin-left: auto; }
}
@media (max-width: 700px) {
  .company-search input, .jobs-filter-search input, .jobs-menu-search input { font-size: 16px; }
}
@media (max-height: 560px) {
  .company-results { height: 108px; }
  .jobs-header { padding-top: 12px; padding-bottom: 10px; }
  .jobs-filters { padding-top: 8px; padding-bottom: 8px; }
  .jobs-filter-search, .jobs-filter-trigger { height: 42px; }
  .jobs-footer { padding-top: 8px; padding-bottom: 8px; }
}


/* Phone layout: keep the search controls legible and avoid horizontal overflow. */
@media (max-width: 600px) {
  .page { width: 100%; min-height: 100svh; padding: calc(12px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom)); gap: clamp(12px, 3vh, 22px); overflow-x: clip; }
  .site-header { width: 100%; }
  .site-wordmark { width: clamp(112px, 32vw, 150px); }
  .company-picker { width: 100%; padding: 12px 0 18px; }
  .company-picker h1 { max-width: 13ch; font-size: clamp(30px, 9vw, 42px); }
  .picker-description { max-width: 30ch; margin-right: auto; margin-left: auto; font-size: 15px; line-height: 1.5; }
  .company-search { height: 56px; gap: 10px; padding-right: 12px; padding-left: 13px; }
  .company-search input { min-width: 0; font-size: 16px; }
  .company-search kbd { display: none; }
  .company-results { height: min(34svh, 260px); }
  .company-ticker { margin-top: 22px; }
  .company-ticker-window { overflow: hidden; }
  .home-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .home-actions button { min-width: 0; min-height: 46px; padding: 10px 12px; font-size: 12px; }
  #for-you-open { grid-column: 1 / -1; }
  .picker-footnote { margin-top: 14px; font-size: 12px; }
  footer { width: 100%; }
}
@media (max-width: 360px) {
  .page { padding-right: 12px; padding-left: 12px; }
  .home-actions { grid-template-columns: 1fr; }
  #for-you-open { grid-column: auto; }
}


/* Explicit company listing refresh */
.jobs-refresh { flex: 0 0 auto; min-height: 36px; padding: 7px 12px; border: 1px solid #555750; border-radius: 20px; background: transparent; color: #c2c1b9; font: inherit; font-size: 11px; cursor: pointer; }
.jobs-refresh:hover:not(:disabled) { border-color: #88c7a8; background: #ffffff0d; }
.jobs-refresh:disabled { opacity: .55; cursor: wait; }
@media (max-width: 700px) { .jobs-refresh { order: 3; } }
