@font-face {
  font-family: "Sana Sans";
  src: url("/fonts/SanaSans-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --tarmac: #0a1217;
  --canvas-white: #ffffff;
  --limestone: #e4eff7;
  --cloud-gray: #85898b;
  --steel-gray: #6c7174;
  --green: #cdfe00;
  --green-hover: #d8ff33;
  --danger: #c0392b;

  --border: rgba(10, 18, 23, 0.12);
  --border-strong: rgba(10, 18, 23, 0.18);
  --surface-soft: #f5f8fb;

  --radius-card: 24px;
  --radius-sm: 14px;
  --radius-pill: 9999px;

  --font-sans: "Sana Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --font-display: "Sana Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--canvas-white);
  color: var(--tarmac);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Top navigation ---------- */
.top-nav {
  flex-shrink: 0;
  background: var(--canvas-white);
  border-bottom: 1px solid var(--border);
}

.top-nav-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  max-width: 920px;
  margin: 0 auto;
}

.top-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--green);
  flex-shrink: 0;
}

.top-nav-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.top-nav-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--steel-gray);
}

/* ---------- Main content ---------- */
.main {
  flex: 1;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.75rem;
  margin-bottom: 0.25rem;
}

.page-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.lede {
  margin: 0.875rem 0 0;
  color: var(--steel-gray);
  font-size: 16px;
  line-height: 1.5;
  max-width: 62ch;
}

.card {
  margin-top: 1.75rem;
  background: var(--canvas-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

section + section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 14px;
  font-weight: 600;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--canvas-white);
  color: var(--tarmac);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder,
textarea::placeholder {
  color: var(--cloud-gray);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--tarmac);
  box-shadow: 0 0 0 3px rgba(10, 18, 23, 0.08);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236c7174' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

textarea {
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 4.5rem;
}

.hint {
  font-weight: 400;
  color: var(--steel-gray);
  font-size: 13px;
  line-height: 1.4;
}

.dri-checkbox {
  margin-top: 1rem;
}

#dri-fields {
  margin-top: 1rem;
}

label > .hint {
  margin-top: -0.15rem;
}

.checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--tarmac);
  flex-shrink: 0;
}

.checkbox-label span {
  line-height: 1.4;
}

.grid.two {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

.actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

button {
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  background: var(--green);
  color: var(--tarmac);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}

button:hover {
  background: var(--green-hover);
}

button:active {
  transform: translateY(1px);
}

button.secondary {
  background: var(--canvas-white);
  color: var(--tarmac);
  box-shadow: inset 0 0 0 1px var(--tarmac);
}

button.secondary:hover {
  background: var(--limestone);
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 14px;
}

.status.error {
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.success h2 {
  margin-top: 0;
}

.success a {
  color: var(--tarmac);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.success a:hover {
  color: var(--steel-gray);
}

.success-lede {
  margin: 0 0 1rem;
  color: var(--steel-gray);
}

/* ---------- Routing callouts (deflection / version warnings) ---------- */
.routing-callout {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--tarmac);
  background: var(--limestone);
  font-size: 15px;
  line-height: 1.55;
}

.routing-callout--info {
  background: #eef5fc;
  border-color: #4a7fa8;
}

.routing-callout--success {
  margin-bottom: 1rem;
  background: #f3fce0;
  border-color: #8aa600;
}

.routing-callout--warning {
  background: #fff8e6;
  border-color: #c9a000;
}

.routing-callout-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  font-size: 15px;
}

.routing-callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--tarmac);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.routing-callout-body {
  margin: 0;
  color: var(--tarmac);
}

.routing-callout-body a.slack-channel-link {
  display: inline-block;
  font-weight: 700;
  color: var(--tarmac);
  text-decoration: none;
  background: var(--green);
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(10, 18, 23, 0.15);
  margin: 0 0.1rem;
  transition: background 0.15s, transform 0.05s;
}

.routing-callout-body a.slack-channel-link:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

.routing-callout-body a.routing-email-link,
.routing-callout-body a.routing-doc-link {
  font-weight: 600;
  color: var(--tarmac);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.routing-callout-body a.routing-email-link:hover,
.routing-callout-body a.routing-doc-link:hover {
  color: var(--steel-gray);
}
