/* ============================================================
   Southwestern developer portal
   The Southwestern brand system, shared with Recruiting Card (SWAdv_BrandingGuidelines.pdf):
   orange #ed8322, ink #2c2b28, emphasis blue, warm paper, Raleway, the 8 degree angle of the "N".
   Design context and principles: .impeccable.md in the repository root.
   No inline styles anywhere: the content security policy only allows this file.
   ============================================================ */

@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/raleway-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/raleway-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 800; font-display: swap;
  src: url("/static/fonts/raleway-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 800; font-display: swap;
  src: url("/static/fonts/raleway-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --orange: #ed8322; --orange-dark: #cf6f18; --orange-wash: #fdf1e4; --orange-line: #f3d3a6;
  --ink: #2c2b28; --ink-soft: #4a4742; --gray: #6d6f71; --gray-2: #9a9b9d;
  --blue: #0a7fb0; --blue-ink: #08678f; --blue-wash: #e8f3f8; --blue-line: #c2e0ec;
  --green: #3a8f5c; --green-ink: #1f7a44; --green-wash: #eaf6ef; --green-line: #bfe6cd;
  --red: #b23b2e; --red-wash: #fbe9e7; --red-line: #f0bdb7;
  --line: #e7e4de; --paper: #f4f2ee; --surface: #fffefb; --sunken: #eeece8;
  --shadow: 0 22px 40px -28px rgba(59, 46, 32, .28);
  --sans: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  font: 500 15px/1.55 var(--sans);
  /* Raleway's default figures are old-style; ports, sizes and times need lining, tabular ones. */
  font-variant-numeric: lining-nums tabular-nums; }
button, input, select { font: inherit; color: inherit; }
::selection { background: #f6d4ad; color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
/* The brand's emphasis blue is 4.0:1 on paper; links use a darker step of the same hue. */
a { color: var(--blue-ink); text-underline-offset: 2px; }
code, kbd { font: .87em var(--mono); }
h1, h2, h3, p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- brand devices ---------- */
.eyebrow { font-style: italic; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 10.5px; color: var(--gray); }
.rule { display: block; width: 44px; height: 3px; margin-top: var(--s2); background: var(--orange); transform: skewX(-8deg); border-radius: 1px; }
.bug { flex: 0 0 auto; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.rise-1 { --i: 1; } .rise-2 { --i: 2; } .rise-3 { --i: 3; }

/* ---------- the band ---------- */
.band { background: var(--ink); color: var(--paper); }
.band-in { max-width: 1120px; margin: 0 auto; padding: var(--s4) clamp(16px, 3vw, 40px); display: flex; align-items: center; gap: var(--s3); }
.band .brand { display: flex; align-items: center; gap: var(--s3); min-width: 0; color: inherit; text-decoration: none; }
.band .brand b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.band .brand span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #c9c5bd; }
.band .who { margin-left: auto; display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.band .who div { min-width: 0; text-align: right; line-height: 1.3; }
.band .who b { display: block; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.band .who span { display: block; font-size: 11.5px; color: #c9c5bd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.band .btn { border-color: #5a564f; background: transparent; color: var(--paper); }
.band .btn:hover { background: #3b3935; border-color: #77726a; }

/* ---------- page ---------- */
.page { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: var(--s6) clamp(16px, 3vw, 40px) var(--s7);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s6) var(--s7); align-items: start;
  /* Without this the rows stretch to fill a tall window and the gaps between sections grow. */
  align-content: start; }
.page > .wide { grid-column: 1 / -1; }
.head { margin-bottom: var(--s4); }
.head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; margin-top: var(--s1); }
.lede { color: var(--gray); font-size: 14px; max-width: 60ch; margin-top: var(--s3); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.foot { max-width: 1120px; width: 100%; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px) var(--s5); color: var(--gray); font-size: 12px;
  display: flex; gap: var(--s2) var(--s4); flex-wrap: wrap; justify-content: space-between; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 12px; padding: 8px 13px; font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; text-decoration: none; color: var(--ink);
  transition: background .12s, border-color .12s, transform .12s; }
.btn:hover { border-color: var(--gray-2); background: var(--paper); }
.btn:active { transform: translateY(1px); }
/* Ink on orange, not white: white on this orange is 2.9:1. */
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.primary:hover { background: #f0913a; border-color: #f0913a; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.dark:hover { background: #1d1c1a; }
.btn.big { padding: 13px 18px; font-size: 15px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.s { padding: 5px 10px; font-size: 12px; border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* ---------- the generator form ---------- */
.fstep { padding: var(--s5); border-top: 1px solid var(--line); }
.fstep:first-child { border-top: 0; }
.fstep.tight { padding-top: var(--s4); padding-bottom: var(--s2); }
.fstep-head { display: flex; align-items: baseline; gap: var(--s3); margin-bottom: var(--s4); }
.no { flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; background: var(--orange); color: var(--ink);
  font-size: 12px; font-weight: 800; transform: skewX(-8deg); border-radius: 3px; }
.no > span { transform: skewX(8deg); }
.fstep-head h3 { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.fstep-head p { font-size: 13px; color: var(--gray); margin-left: auto; text-align: right; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.aside-note { margin-top: var(--s3); font-size: 12.5px; color: var(--gray); }
.aside-note b { font-weight: 700; color: var(--ink-soft); }
.tile { position: relative; display: block; min-width: 0; padding: var(--s3) var(--s4) var(--s3) 42px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; }
.tile:hover { border-color: var(--gray-2); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile b { display: block; font-size: 14px; font-weight: 800; line-height: 1.3; }
.tile small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--gray); }
.tile::before { content: ""; position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--gray-2); background: var(--surface);
  transition: background .12s, border-color .12s; }
.tile::after { content: ""; position: absolute; left: 20px; top: 17px; width: 5px; height: 9px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform .18s var(--ease); }
.tile:has(input:checked) { border-color: var(--ink); background: #fbf9f5; }
.tile:has(input:checked)::before { background: var(--ink); border-color: var(--ink); }
.tile:has(input:checked)::after { transform: rotate(45deg) scale(1); }
.tile:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.tile:has(input:disabled) { cursor: default; }

.seg { display: inline-flex; max-width: 100%; padding: 3px; gap: 2px; background: var(--sunken); border-radius: 12px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--ink-soft); cursor: pointer; white-space: nowrap;
  transition: background .12s, color .12s, box-shadow .12s; }
.seg label:hover { color: var(--ink); }
.seg input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(59, 46, 32, .14); }
.seg input:focus-visible + label { outline: 2px solid var(--orange); outline-offset: 1px; }

.slot { margin-top: var(--s4); padding: var(--s3) var(--s4); border: 1px dashed #cfcac1; border-radius: 12px; display: flex; gap: var(--s2) var(--s4); flex-wrap: wrap; align-items: baseline; }
.slot p { font-size: 13px; color: var(--gray); max-width: 58ch; }

details.more summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; }
details.more[open] summary::before { transform: rotate(45deg); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.field label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--gray); }
.field small { display: block; margin-top: 4px; font-size: 12px; color: var(--gray); }
.inp { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; outline: none;
  transition: border-color .12s, box-shadow .12s; }
.inp:hover { border-color: var(--gray-2); }
.inp:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237, 131, 34, .18); }
.go { padding: var(--s4) var(--s5) var(--s5); }
.go-note { margin-top: var(--s2); font-size: 12.5px; color: var(--gray); text-align: center; }

/* ---------- messages ---------- */
.box { padding: 11px 13px; border: 1px solid; border-radius: 14px; font-size: 14px; }
.box.bad { background: var(--red-wash); border-color: var(--red-line); color: var(--red); }
.box.info { background: var(--blue-wash); border-color: var(--blue-line); color: #0b5f83; }
.box + * { margin-top: var(--s4); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.tag.running { background: var(--orange-wash); color: #9a4f0c; } .tag.done { background: var(--green-wash); color: var(--green-ink); }
.tag.failed { background: var(--red-wash); color: var(--red); } .tag.plain { background: var(--sunken); color: var(--gray); }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--sunken); font-size: 12px; font-weight: 700; color: var(--ink-soft); }

/* ---------- the environment (status) ---------- */
.status { padding: var(--s5); }
.status-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.status-head h3 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.steps { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { position: relative; padding-top: 22px; font-size: 12px; font-weight: 700; color: var(--gray); text-align: center; }
.steps li::before { content: ""; position: absolute; top: 0; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid #cfcac1; background: var(--surface); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 6px; left: calc(-50% + 9px); right: calc(50% + 9px); height: 2px; background: #dcd7ce; }
.steps li:first-child::after { display: none; }
.steps li[data-state="done"] { color: var(--ink); }
.steps li[data-state="done"]::before { background: var(--green); border-color: var(--green); }
.steps li[data-state="done"]::after, .steps li[data-state="current"]::after, .steps li[data-state="failed"]::after { background: var(--green); }
.steps li[data-state="current"] { color: var(--ink); }
.steps li[data-state="current"]::before { border-color: var(--orange); background: var(--orange); animation: pulse 1.6s ease-in-out infinite; }
.steps li[data-state="failed"] { color: var(--red); }
.steps li[data-state="failed"]::before { border-color: var(--red); background: var(--red); }
/* Skipped: the stage had nothing to do (no data yet). Not a tick: nothing was done there. */
.steps li[data-state="skipped"] { color: var(--gray); }
.steps li[data-state="skipped"]::before { border-style: dashed; border-color: var(--gray-2); background: var(--surface); }
.steps li[data-state="skipped"]::after { background: var(--green); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(237, 131, 34, .45); } 50% { box-shadow: 0 0 0 7px rgba(237, 131, 34, 0); } }
.now { margin-top: var(--s5); font-size: 14px; color: var(--ink-soft); }
details.log { margin-top: var(--s4); }
details.log ol { margin: var(--s3) 0 0; padding: var(--s3) var(--s4) var(--s3) 38px; max-height: 15rem; overflow: auto; background: var(--sunken); border-radius: 12px;
  font: 12.5px/1.6 var(--mono); color: var(--ink-soft); }
details.log li + li { margin-top: 2px; }
.get { margin-top: var(--s5); display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.get small { color: var(--gray); font-size: 12.5px; }
.next { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }
.next ol { margin: var(--s3) 0 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: var(--s4); }
.next li { counter-increment: n; position: relative; padding-left: 30px; font-size: 14px; min-width: 0; }
.next li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--sunken); color: var(--ink-soft);
  font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.cmd { margin-top: 6px; display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.cmd code { flex: 1; min-width: 0; padding: 8px 11px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.5; color: var(--ink); }
.cmd button { flex: 0 0 auto; border: 0; border-left: 1px solid var(--line); background: var(--surface); padding: 0 12px; font-size: 12px; font-weight: 800; cursor: pointer; color: var(--ink-soft); }
.cmd button:hover { background: var(--sunken); }
.links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; }

/* the empty right-hand side: how it works, on paper, no card */
.how { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s5); }
.how li { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s3); align-items: baseline; }
.how b { font-size: 14.5px; font-weight: 800; }
.how p { grid-column: 2; font-size: 13.5px; color: var(--gray); max-width: 46ch; }
.how .cmd { grid-column: 2; }
.next .wait { margin-top: var(--s2); font-size: 14px; color: var(--ink-soft); }

/* ---------- my generations ---------- */
.gens { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gens li { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) auto auto; gap: var(--s2) var(--s4); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.gens .when a { font-weight: 700; color: var(--ink); text-decoration: none; }
.gens .when a:hover { text-decoration: underline; }
.gens .when small { display: block; font-size: 12px; color: var(--gray); }
.gens .what { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.gens .why { grid-column: 2 / -1; font-size: 12.5px; color: var(--red); }
.gens .act { display: flex; align-items: center; gap: var(--s3); justify-content: flex-end; }
.gens .act small { color: var(--gray); font-size: 12px; }
.empty { padding: var(--s5) 0; color: var(--gray); font-size: 14px; max-width: 60ch; }

/* ---------- sign-in ---------- */
.auth { flex: 1; display: grid; place-items: center; padding: var(--s5) var(--s4); }
.auth .card { width: min(400px, 100%); padding: var(--s6) var(--s5) var(--s5); }
.auth .brand { display: flex; align-items: center; gap: var(--s3); }
.auth .brand b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.auth .lede { margin-top: var(--s4); }
.auth form { margin-top: var(--s5); display: grid; gap: var(--s4); }
.auth .box { margin-top: var(--s4); }
.auth .fine { margin-top: var(--s4); font-size: 12.5px; color: var(--gray); }

/* ---------- narrow screens: one column, the running generation first ---------- */
@media (max-width: 380px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .page { grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-top: var(--s5); }
  .page > .side.live { order: -1; }
  .band .who div { display: none; }
  .fstep, .status { padding: var(--s4); }
  .fstep.tight { padding-bottom: 0; }
  .go { padding: var(--s3) var(--s4) var(--s4); }
  .fstep-head { flex-wrap: wrap; }
  .fstep-head p { margin-left: 38px; text-align: left; flex-basis: 100%; }
  .gens li { grid-template-columns: minmax(0, 1fr) auto; }
  .gens .what { grid-column: 1 / -1; grid-row: 2; }
  .gens .why { grid-column: 1 / -1; }
  .gens .act { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .steps li[data-state="current"]::before { animation: none; }
  * { transition: none !important; }
}
