:root {
  color-scheme: light;
  --ink: #14201d;
  --muted: #64706c;
  --line: #dfe5e2;
  --paper: #f6f8f7;
  --white: #ffffff;
  --accent: #176b52;
  --accent-soft: #e5f3ed;
  --warning: #8a5a16;
  --warning-soft: #fff4d8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.masthead {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.masthead__inner,
.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.masthead__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.preview-badge,
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1;
}

.preview-badge {
  background: var(--warning-soft);
  color: var(--warning);
}

.page {
  padding: 56px 0 80px;
}

.breadcrumb {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  text-decoration-color: #aeb9b4;
  text-underline-offset: 3px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.dek {
  max-width: 820px;
  margin: 24px 0 0;
  color: #40504a;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

.notice {
  margin-top: 28px;
  border-left: 4px solid #d49a35;
  background: var(--warning-soft);
  padding: 14px 16px;
  color: #624315;
  line-height: 1.5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 44px 0;
}

.stat {
  min-height: 136px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 22px;
}

.stat__value {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.section {
  margin-top: 56px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.section-copy {
  max-width: 740px;
  color: var(--muted);
  line-height: 1.6;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 12px;
}

.search {
  width: min(520px, 100%);
  border: 1px solid #bdc8c3;
  border-radius: 10px;
  background: var(--white);
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
}

.search:focus {
  border-color: var(--accent);
  outline: 3px solid var(--accent-soft);
}

.result-count {
  flex: none;
  color: var(--muted);
  font-size: 0.85rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  padding: 10px 14px;
  color: white;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.button--secondary {
  background: transparent;
  color: var(--accent);
}

.button:disabled {
  border-color: #c9d0cd;
  background: #e6eae8;
  color: #89928e;
  cursor: not-allowed;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.page-status {
  min-width: 120px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.empty-state {
  border: 1px dashed #b8c4bf;
  border-radius: 10px;
  margin: 14px 0;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.checker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.checker-field {
  position: relative;
}

.checker-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 800;
}

.checker-field .search {
  width: 100%;
}

.suggestions {
  position: absolute;
  z-index: 5;
  width: 100%;
  max-height: 330px;
  overflow-y: auto;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 14px 35px rgba(20, 32, 29, 0.16);
}

.suggestions button {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 11px 13px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.suggestions button:hover,
.suggestions button:focus {
  background: var(--accent-soft);
  outline: none;
}

.suggestions p {
  margin: 0;
  padding: 12px 13px;
  color: var(--muted);
}

.comparison {
  min-height: 150px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 22px;
}

.comparison h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
}

.comparison p {
  color: #4d5b56;
  line-height: 1.55;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #eef3f0;
  color: #40504a;
  font-size: 0.72rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

th button {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: inherit;
  text-transform: inherit;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #f8fbf9;
}

.state-name {
  font-weight: 780;
}

.aircraft-link {
  color: var(--accent);
  font-weight: 800;
  text-underline-offset: 3px;
}

.tie {
  display: inline-block;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 3px 7px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
}

.method {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.method p,
.method li {
  color: #4d5b56;
  line-height: 1.65;
}

.method ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.idea-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 22px;
  text-decoration: none;
}

.idea-card[href]:hover {
  border-color: #8eaaa0;
  transform: translateY(-1px);
}

.idea-card h2 {
  margin-top: 16px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.idea-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.status--live {
  background: var(--accent-soft);
  color: var(--accent);
}

.status--queued {
  background: #edf0ef;
  color: #68736f;
}

.status--ready {
  background: var(--accent-soft);
  color: var(--accent);
}

.status--checks {
  background: #e9f0ff;
  color: #315d9b;
}

.status--action {
  background: var(--warning-soft);
  color: var(--warning);
}

.status--collecting {
  background: #edf0ef;
  color: #68736f;
}

.footer-note {
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.82rem;
}

.remaining-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid #b8cfc6;
  border-radius: 16px;
  background: var(--accent-soft);
  padding: 26px;
}

.remaining-callout .section-copy {
  margin-bottom: 0;
}

.remaining-callout .button {
  flex: none;
}

.planning-table table {
  min-width: 1680px;
}

.planning-table td {
  min-width: 180px;
  line-height: 1.5;
}

.planning-table td:first-child {
  min-width: 55px;
}

.planning-table td:nth-child(2),
.planning-table td:nth-child(3) {
  min-width: 150px;
}

.collection-plan-table table {
  min-width: 2200px;
}

.collection-plan-table td {
  min-width: 200px;
}

.status-home-callout {
  margin-top: 34px;
}

.status-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 14px;
}

.status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-filter {
  min-height: 40px;
  border: 1px solid #b8c4bf;
  border-radius: 999px;
  background: var(--white);
  padding: 8px 13px;
  color: #40504a;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
}

.status-filter:hover,
.status-filter:focus-visible {
  border-color: var(--accent);
  outline: 3px solid var(--accent-soft);
}

.status-filter[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.status-search {
  flex: 0 1 420px;
}

.status-search .search {
  width: 100%;
}

.status-group {
  margin-top: 42px;
}

.status-group__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.status-group__heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 500;
}

.status-group__heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-job-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.status-job {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
  border-top-width: 4px;
  border-radius: 14px;
  background: var(--white);
  padding: 22px;
}

.status-job--ready {
  border-top-color: var(--accent);
}

.status-job--checks {
  border-top-color: #5b82bd;
}

.status-job--action {
  border-top-color: #d49a35;
}

.status-job--collecting {
  border-top-color: #9aa6a1;
}

.status-job__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-job__number {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-job h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
}

.status-job__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.status-fact h4 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-fact p {
  margin: 0;
  color: #40504a;
  font-size: 0.9rem;
  line-height: 1.52;
}

.status-fact--action {
  border-radius: 10px;
  background: #f2f7f5;
  padding: 14px;
}

.status-fact--action h4 {
  color: var(--accent);
}

.status-fact--action p {
  color: var(--ink);
  font-weight: 680;
}

.status-job__links {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 0.88rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .stats,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method {
    grid-template-columns: 1fr;
  }

  .checker-grid {
    grid-template-columns: 1fr;
  }

  .remaining-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .status-toolbar,
  .status-group__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .status-search {
    flex-basis: auto;
  }

  .status-job-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .masthead__inner,
  .page {
    width: min(100% - 24px, 1180px);
  }

  .page {
    padding-top: 36px;
  }

  .masthead__inner {
    min-height: 58px;
  }

  .brand span {
    display: none;
  }

  .stats,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 112px;
  }

  .toolbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .status-job__header,
  .status-job__facts {
    grid-template-columns: 1fr;
  }

  .status-job__header {
    flex-direction: column;
  }
}

@media print {
  .masthead,
  .toolbar,
  .button-row,
  .preview-badge {
    display: none;
  }

  body {
    background: white;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .table-shell {
    overflow: visible;
  }

  table {
    min-width: 0;
    font-size: 9px;
  }
}
