:root {
  color-scheme: light;
  --ink: #111e39;
  --muted: #53617a;
  --orange: #ff8a20;
  --accent: #a94b08;
  --paper: #fff;
  --line: #e0e5eb;
  background: #f3f5f8;
  color: var(--ink);
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(1.65rem, 6vw, 2.35rem); line-height: 1.14; letter-spacing: -.04em; }
h2 { font-size: 1.22rem; line-height: 1.26; }
p { color: var(--muted); }
small { font-size: .85rem; color: var(--muted); }
a { color: var(--accent); font-weight: 650; }
button,input,textarea,select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible,a:focus-visible { outline: 3px solid #b94f03; outline-offset: 3px; }
.primary,.secondary,.quiet {
  min-height: 46px; padding: .66rem 1rem; border-radius: 12px; font-weight: 750;
  border: 1px solid transparent;
}
.primary { background: var(--orange); color: var(--ink); }
.primary:hover { background: #ffa34c; }
.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.quiet { background: transparent; color: var(--accent); }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 124px; height: auto; }
.auth .hero .brand { background: #fff; padding: .45rem .7rem; border-radius: 10px; }
.auth .hero .brand img { width: 143px; }
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.head-inner { max-width: 960px; margin: auto; padding: .8rem 1.2rem; display: flex; justify-content: space-between; align-items: center; }
.icon-button { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page { width: min(100%, 960px); margin: auto; padding: 1.25rem 1.15rem 7rem; display: grid; gap: 1.2rem; }
.hero { display: grid; gap: .85rem; padding: clamp(1.45rem, 5vw, 3rem); border-radius: 22px; background: linear-gradient(115deg, #101d36 40%, #273b5c); color: #fff; box-shadow: 0 12px 30px #1120391c; }
.hero p { color: #e0e6f2; max-width: 38ch; }
.hero .eyebrow { color: #ffab60; text-transform: uppercase; letter-spacing: .13em; font-size: .76rem; font-weight: 800; }
.hero button { justify-self: start; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.section-head span { color: var(--muted); font-size: .9rem; }
.cards { display: grid; gap: .85rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 17px; padding: 1.05rem; display: grid; gap: .75rem; overflow-wrap: anywhere; }
.card > button { justify-self: start; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .65rem; }
.badge { white-space: nowrap; font-size: .73rem; background: #fff0e0; color: #7d3509; border-radius: 999px; padding: .31rem .53rem; font-weight: 800; }
.badge.full { background: #eef0f3; color: #48566d; }
.detail { border-top: 1px solid var(--line); padding-top: .8rem; display: grid; gap: .28rem; }
.detail p,.job-summary { white-space: pre-wrap; }
.empty { text-align: center; padding: 2rem 1rem; }
.empty .icon { margin: auto; width: 34px; height: 34px; color: var(--accent); }
.nav { position: fixed; z-index: 1; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; background: #fff; box-shadow: 0 -2px 20px #13274512; border-top: 1px solid var(--line); padding: .38rem .4rem calc(.38rem + env(safe-area-inset-bottom)); }
.nav button { flex: 1; max-width: 170px; min-width: 0; display: grid; place-items: center; gap: .22rem; background: transparent; border: 0; padding: .38rem .1rem; color: var(--muted); font-size: clamp(.69rem, 3vw, .85rem); font-weight: 700; }
.nav button[aria-current="page"] { color: var(--accent); }
.nav button[aria-current="page"] .icon { background: #fff0e0; box-shadow: 0 0 0 6px #fff0e0; border-radius: 3px; }
form { display: grid; gap: .85rem; }
label { display: grid; gap: .26rem; font-weight: 650; }
input,textarea,select { width: 100%; padding: .65rem .75rem; border-radius: 10px; border: 1px solid #aab5c6; background: #fff; color: var(--ink); }
textarea { min-height: 5rem; resize: vertical; }
.auth { min-height: 100dvh; margin: auto; max-width: 540px; padding: 1.4rem 1rem; display: grid; align-content: center; gap: 1rem; }
.auth .card { padding: clamp(1rem, 5vw, 2rem); }
.auth .brand { justify-self: start; }
.auth .hero { gap: 1rem; }
.auth-toggle { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.loading { padding: 2rem; text-align: center; }
#feedback:not(:empty) { position: fixed; z-index: 3; left: 50%; transform: translateX(-50%); bottom: calc(5.3rem + env(safe-area-inset-bottom)); width: min(90%, 440px); border-radius: 13px; background: var(--ink); color: #fff; padding: .75rem 1rem; box-shadow: 0 6px 22px #0003; }
@media (min-width: 700px) {
  .page { padding-top: 2rem; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .cards .empty { grid-column: 1 / -1; }
  .auth { padding-block: 2rem; }
}
@media (min-width: 900px) {
  .team-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100dvh; }
  .team-layout .header { grid-column: 1 / -1; }
  .team-layout .head-inner { max-width: 1200px; }
  .team-layout .page { grid-column: 2; grid-row: 2; align-content: start; }
  .team-layout .nav {
    grid-column: 1; grid-row: 2; position: static; display: flex; flex-direction: column;
    justify-content: flex-start; gap: .45rem; align-items: stretch;
    padding: 1.25rem .85rem; border: 0; border-right: 1px solid var(--line); box-shadow: none;
  }
  .team-layout .nav button {
    display: flex; flex: none; max-width: none; align-items: center;
    gap: .85rem; padding: .7rem .85rem; border-radius: 10px; font-size: .9rem;
  }
  .team-layout .nav button[aria-current="page"] { background: #fff0e0; }
  .team-layout .nav button[aria-current="page"] .icon { box-shadow: none; }
}
