/* Polaris-One editor.
 *
 * This file is tangled from lit/web.org. Do not edit it directly.
 *
 * The palette matches lit/sheet.org. A shiftboss reads the printed A3
 * and this screen on the same day, and the two must look like one
 * document.
 */

:root {
  --ns-blue: #1f3a63;
  --ns-yellow: #ffd200;
  --ns-red: #b81d24;
  --ns-amber: #f6c343;
  --rule-grey: #9aa3ad;
  --head-grey: #e9edf2;
  --page: #ffffff;
  --ink: #16202e;
  --ink-soft: #5b6775;
  --ok: #1d7a4c;
  --ns-green: #1b7a43;
  --ok-soft: #e4f4ea;
  --warn-soft: #fdf1d8;
  --fault-soft: #fbe3e5;
}

:where(*) {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #f3f5f8;
  color: var(--ink);
  font-family: "Liberation Sans", "DejaVu Sans", Arial, sans-serif;
  font-size: 13px;
}

/* ---------------------------------------------------------------- */
/* The banner and the header                                         */
/* ---------------------------------------------------------------- */

.banner {
  background: var(--ns-red);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.4px;
  padding: 4px 8px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--page);
  border-bottom: 2px solid var(--ns-blue);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar h1 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.4px;
  color: var(--ns-blue);
}

.topbar .spacer {
  flex: 1;
}

.badge {
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  letter-spacing: 0.4px;
  background: var(--ns-yellow);
  color: var(--ink);
}

.badge-plain {
  background: var(--head-grey);
}

button {
  font: inherit;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--ns-blue);
  background: var(--ns-blue);
  color: #fff;
  cursor: pointer;
}

button.ghost {
  background: var(--page);
  color: var(--ns-blue);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.topbar-out {
  margin: 0;
  display: inline-flex;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--ns-blue);
  background: var(--page);
  color: var(--ns-blue);
  text-decoration: none;
  cursor: pointer;
}

.btn-link:hover {
  background: var(--head-grey);
}

button.link {
  border: 0;
  background: none;
  color: var(--ns-red);
  padding: 0 4px;
  font-size: 14px;
  line-height: 1;
}

/* ---------------------------------------------------------------- */
/* The tabs                                                          */
/* ---------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ns-blue);
  background: var(--head-grey);
  border: 1px solid var(--rule-grey);
}

.tab.on {
  background: var(--ns-blue);
  color: #fff;
  border-color: var(--ns-blue);
}

.tab-count {
  background: var(--ns-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 7px;
}

.stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.grid tr.vacant td {
  background: var(--warn-soft);
}

.where {
  display: block;
}

/* ---------------------------------------------------------------- */
/* The cycle strip                                                   */
/* ---------------------------------------------------------------- */

.cycle-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 0;
}

.cycle-stage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--page);
  border: 1px solid var(--rule-grey);
  border-left: 3px solid var(--ns-blue);
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.cycle-stage:hover {
  background: var(--head-grey);
}

.cycle-stage.on {
  background: var(--ns-blue);
  color: #fff;
  border-color: var(--ns-blue);
}

.cycle-stage.on .cycle-crew {
  color: #cdd8e6;
}

.cycle-stage.on .cycle-n {
  background: #fff;
  color: var(--ns-blue);
}

.stage-barriers {
  margin: 10px 14px 0;
}

.finding .chip {
  float: right;
  margin-left: 8px;
}

.cycle-n {
  background: var(--ns-blue);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
}

.cycle-crew {
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 10.5px;
}

.cycle-repeat {
  font-size: 10.5px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------------------------------------------------------------- */
/* Safety                                                            */
/* ---------------------------------------------------------------- */

/* Green marks a safe condition: where a person goes when something
 * goes wrong. ISO 7010 and AS 1319 give green that meaning, and the
 * signs underground already use it. The screen agrees with the
 * signs, and it agrees with the printed sheet. */

.block-title-safety {
  background: var(--ns-green);
}

.tab-safety {
  border-left: 3px solid var(--ns-green);
}

.tab-count-green {
  background: var(--ns-green);
}

.finding.safe {
  border-left: 4px solid var(--ns-green);
}

.grid tr.moved td {
  background: var(--ok-soft);
}

.grid tr.moved input {
  font-weight: 700;
}

button.link-green {
  border: 0;
  background: none;
  color: var(--ok);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 0 4px;
  cursor: pointer;
}

.chip-plain {
  background: var(--head-grey);
  color: var(--ink-soft);
}

.warn-note {
  background: var(--warn-soft);
  border-left: 4px solid var(--ns-amber);
  color: var(--ink);
}

.title-soft {
  font-weight: 400;
  opacity: 0.8;
  margin-left: 6px;
  font-size: 11px;
}

.proposal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.proposal-head button {
  padding: 3px 9px;
  font-size: 11px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- */
/* The two columns                                                   */
/* ---------------------------------------------------------------- */

.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  padding: 14px;
  align-items: start;
}

.block-title {
  background: var(--ns-blue);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  margin: 0;
}

.panel {
  background: var(--page);
  border: 1px solid var(--rule-grey);
}

.panel-body {
  padding: 8px;
}

aside.rail {
  position: sticky;
  top: 58px;
  display: grid;
  gap: 10px;
}

/* ---------------------------------------------------------------- */
/* The headings table                                                */
/* ---------------------------------------------------------------- */

.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.grid th {
  background: var(--head-grey);
  font-size: 10px;
  letter-spacing: 0.3px;
  text-align: left;
  padding: 4px 5px;
  border: 1px solid var(--rule-grey);
  position: sticky;
  top: 48px;
  z-index: 10;
}

.grid td {
  border: 1px solid var(--rule-grey);
  padding: 0;
}

.grid td.pad {
  padding: 2px 5px;
}

.grid input[type="text"],
.grid input[type="number"],
.grid select {
  font: inherit;
  font-size: 11.5px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 3px 5px;
  color: inherit;
}

.grid input:focus,
.grid select:focus {
  outline: 2px solid var(--ns-blue);
  outline-offset: -2px;
  background: #fffdf0;
}

.grid tr:nth-child(even) td {
  background: #fafbfc;
}

.grid tr.flagged td {
  background: var(--fault-soft);
}

.num {
  text-align: right;
}

.mono {
  font-variant-numeric: tabular-nums;
}

.heading-name input {
  font-weight: 700;
}

.to-stop {
  text-align: right;
  padding: 3px 6px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.to-stop.clear {
  color: var(--ink-soft);
  font-weight: 400;
}

.to-stop.approaching {
  background: var(--warn-soft);
}

.to-stop.at_or_past {
  background: var(--fault-soft);
  color: var(--ns-red);
}

.tick {
  text-align: center;
}

.tick input {
  margin: 0;
}

.row-tools {
  text-align: center;
}

/* ---------------------------------------------------------------- */
/* The findings rail                                                 */
/* ---------------------------------------------------------------- */

.finding-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.finding {
  padding: 6px 8px;
  border-bottom: 1px solid var(--head-grey);
  font-size: 11.5px;
  line-height: 1.35;
}

.finding:last-child {
  border-bottom: 0;
}

.finding b {
  letter-spacing: 0.2px;
}

.finding .why {
  color: var(--ink-soft);
}

.finding.fault {
  border-left: 4px solid var(--ns-red);
}

.finding.action {
  border-left: 4px solid var(--ns-amber);
}

.finding.question {
  border-left: 4px solid var(--rule-grey);
}

.finding.instruction {
  border-left: 4px solid var(--ns-blue);
}

.count {
  float: right;
  font-weight: 700;
}

.empty {
  padding: 8px;
  color: var(--ink-soft);
  font-size: 11.5px;
}

.note {
  padding: 6px 8px;
  font-size: 10.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--head-grey);
}

.chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  letter-spacing: 0.3px;
}

.chip-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.chip-warn {
  background: var(--warn-soft);
}

.chip-fault {
  background: var(--fault-soft);
  color: var(--ns-red);
}

/* ---------------------------------------------------------------- */
/* The flash messages                                                */
/* ---------------------------------------------------------------- */

.flash-group {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 50;
  display: grid;
  gap: 6px;
}

.flash {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--rule-grey);
  background: var(--page);
  max-width: 420px;
}

.flash-info {
  border-left: 4px solid var(--ok);
}

.flash-error {
  border-left: 4px solid var(--ns-red);
}

/* ================================================================ */
/* The front page and the sign-in                                    */
/* ================================================================ */

/* These two pages are the only part of the application that a person
 * meets before the work starts. They carry a photograph of a drive,
 * because the subject of this application is a place.
 *
 * The product UI keeps Liberation Sans, because it must match the
 * printed sheet. These two pages use IBM Plex: it was drawn for
 * technical documentation, and the mono cut carries a unit number the
 * way a machine plate does. */

.land,
.gate {
  --ink-900: #0d1117;
  --paper: #fbfaf8;
  font-family: "IBM Plex Sans", "Liberation Sans", Arial, sans-serif;
}

.land-mark {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ns-yellow);
  margin: 0 0 22px;
}

/* ---- the hero ---- */

.land-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  align-items: center;
  gap: 48px;
  padding: 72px 48px;
  overflow: hidden;
  background: var(--ink-900);
}

.land-shot,
.gate-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The headline sits on the dark third of the photograph. The wash
 * keeps the text legible without flattening the rock. */
.land-hero-ink {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 11, 15, 0.94) 0%, rgba(8, 11, 15, 0.82) 34%,
      rgba(8, 11, 15, 0.3) 62%, rgba(8, 11, 15, 0.55) 100%);
}

.land-hero-body {
  position: relative;
  max-width: 41rem;
}

.land-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(30px, 3.6vw, 50px);
  text-wrap: balance;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.land-lede {
  margin: 0 0 32px;
  max-width: 30rem;
  font-size: 17px;
  line-height: 1.6;
  color: #c7cfd9;
}

.land-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.land-go {
  display: inline-block;
  padding: 13px 24px;
  background: var(--ns-yellow);
  color: var(--ink-900);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.land-go:hover {
  background: #ffdf45;
}

.land-note {
  font-size: 13px;
  color: #93a0ae;
}

/* The computed finding, in the chrome that the application uses. */
.land-find {
  position: relative;
  margin: 0;
  background: var(--page);
  border-top: 3px solid var(--ns-red);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.land-find-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ns-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 14px;
}

.land-find-head span {
  background: var(--ns-red);
  border-radius: 8px;
  padding: 1px 8px;
  font-size: 11px;
}

.land-find-row {
  padding: 12px 14px;
  border-bottom: 1px solid var(--head-grey);
  border-left: 4px solid var(--ns-red);
  font-size: 13.5px;
  line-height: 1.5;
}

.land-where {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--ink-soft);
}

.land-find-free {
  padding: 12px 14px;
  border-left: 4px solid var(--ns-green);
  background: var(--ok-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.land-find figcaption {
  padding: 10px 14px;
  font-size: 11.5px;
  color: var(--ink-soft);
}

/* ---- the two reading sections ---- */

.land-reads,
.land-limits {
  padding: 76px 48px;
}

.land-reads {
  background: var(--paper);
}

.land-reads h2,
.land-limits h2 {
  margin: 0 0 36px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 24rem;
  line-height: 1.2;
}

.land-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 56px;
  margin: 0;
  max-width: 1180px;
}

/* A rule per row, the way the sheet rules a table. No cards. */
.land-list > div {
  border-top: 1px solid var(--rule-grey);
  padding: 18px 0;
}

.land-list dt {
  font-weight: 600;
  font-size: 15.5px;
  margin-bottom: 5px;
}

.land-list dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34rem;
}

.land-limits {
  background: var(--ns-blue);
  color: #e6ecf4;
}

.land-limits h2 {
  color: #fff;
}

.land-limits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px 56px;
  max-width: 1180px;
}

.land-limits li {
  border-left: 3px solid var(--ns-green);
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 34rem;
}

.land-limits b {
  display: block;
  color: #fff;
  margin-bottom: 3px;
}

.land-foot {
  background: var(--ink-900);
  color: #93a0ae;
  padding: 44px 48px;
  font-size: 13.5px;
  line-height: 1.6;
}

.land-foot p {
  margin: 0 0 12px;
  max-width: 44rem;
}

.land-foot a {
  color: var(--ns-yellow);
}

/* ---- the sign-in ---- */

.gate {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--ink-900);
}

.gate-ink {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 44%, rgba(8, 11, 15, 0.1), rgba(8, 11, 15, 0.82) 74%);
}

.gate-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--ns-red);
  color: #fff;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 12px;
}

.gate-card {
  position: relative;
  width: 100%;
  max-width: 25rem;
  background: var(--page);
  padding: 34px 32px 28px;
  border-top: 3px solid var(--ns-yellow);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.gate-card .land-mark {
  color: var(--ns-blue);
  margin-bottom: 14px;
}

.gate-card h1 {
  margin: 0 0 26px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gate-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.gate-card input[type="text"],
.gate-card input[type="password"] {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  margin-bottom: 18px;
  border: 1px solid var(--rule-grey);
  background: #fff;
  color: var(--ink);
}

.gate-card input:focus {
  outline: 2px solid var(--ns-blue);
  outline-offset: -2px;
}

.gate-card button {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  background: var(--ns-blue);
  border-color: var(--ns-blue);
}

.gate-error {
  background: var(--fault-soft);
  border-left: 3px solid var(--ns-red);
  color: #8d161c;
  font-size: 13.5px;
  padding: 9px 12px;
  margin: 0 0 20px;
}

.gate-small {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}


/* ---- what comes next ---- */

.land-next {
  padding: 76px 48px;
  background: #11161d;
  color: #c3ccd7;
}

.land-next h2 {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 24rem;
  line-height: 1.2;
}

.land-next-lede {
  margin: 0 0 44px;
  max-width: 40rem;
  font-size: 15.5px;
  line-height: 1.65;
}

.land-next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0 56px;
  max-width: 1180px;
}

.land-next-grid > div {
  border-top: 1px solid #2b3642;
  padding: 20px 0 4px;
}

.land-next-grid h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
}

.land-next-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  max-width: 32rem;
}

.land-next-note {
  margin: 40px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--ns-amber);
  font-size: 14px;
  line-height: 1.6;
  max-width: 40rem;
  color: #aeb9c6;
}

/* ---- the state of a machine, on the hero card ---- */

.land-chip {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 6px;
  margin-left: 4px;
}

.land-chip-stop {
  background: var(--fault-soft);
  color: var(--ns-red);
}

.land-chip-soon {
  background: var(--warn-soft);
  color: #7a5a06;
}

/* ---- narrow screens ---- */

@media (max-width: 900px) {
  .land-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 56px 20px;
    gap: 36px;
  }

  .land-hero-ink {
    background: linear-gradient(180deg, rgba(8, 11, 15, 0.86) 0%, rgba(8, 11, 15, 0.93) 100%);
  }

  .land-reads,
  .land-next,
  .land-limits,
  .land-foot {
    padding: 48px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .land-go,
  .gate-card button {
    transition: none;
  }
}
