/* Shared visual language for tracking, receipt and developer surfaces. */

:root {
  --bg: #f1f3f5;
  --surface: #ffffff;
  --line: #d4dbe3;
  --text: #172233;
  --muted: #637083;
  --accent: #245fc5;
  --accent-soft: #e7eef9;
  --blue: #245fc5;
  --green: #087a55;
  --code: #111c2c;
  --shadow: 0 16px 42px rgba(23, 34, 51, .12);
}

html,
body {
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: -.006em;
}

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

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

:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(36, 95, 197, .22);
  outline-offset: 2px;
}

/* Public tracking */

.shell {
  width: min(1220px, 100%);
  padding: 24px;
}

.head {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.mark,
.receive-mark {
  border-radius: 5px;
  background: var(--accent);
  box-shadow: none;
}

.identity strong {
  color: var(--text);
  font-size: 17px;
  letter-spacing: -.02em;
}

.track-code,
.receive-reference,
.code,
.path,
.method {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.delivery-head {
  align-items: flex-end;
  margin-bottom: 18px;
}

.delivery-head h1 {
  color: var(--text);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 720;
  letter-spacing: -.035em;
}

.status,
.receive-status,
.receive-item-state {
  border-radius: 999px;
}

.map-wrap,
.receive-map {
  border-color: #cbd4de;
  border-radius: 8px;
  box-shadow: none;
}

.map-wrap {
  background: #dfe5eb;
}

.map-state {
  border-color: #c7d0db;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.details {
  gap: 12px;
  margin-top: 12px;
}

.section,
.receive-section {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.section h2,
.receive-section-head h2 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -.015em;
}

.dot {
  border-radius: 5px;
}

.facts .fact,
.receive-package {
  border-color: #e2e7ed;
}

/* Recipient card */

.receive-shell {
  width: min(1220px, 100%);
  padding: 24px;
}

.receive-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.receive-brand strong {
  font-weight: 750;
  letter-spacing: -.02em;
}

.receive-overview {
  align-items: flex-end;
  margin-bottom: 20px;
}

.receive-eyebrow {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .08em;
}

.receive-overview h1 {
  color: var(--text);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 720;
  letter-spacing: -.035em;
}

.receive-layout,
.receive-side {
  gap: 12px;
}

.receive-notice {
  border-color: #b8c7dc;
  border-radius: 8px;
  background: #f3f6fb;
}

.receive-item {
  padding: 13px 2px;
  border-width: 0 0 1px;
  border-radius: 0;
}

.receive-item:last-child {
  border-bottom: 0;
}

.receive-fact {
  border-color: var(--line);
  border-radius: 5px;
  background: #f5f7f9;
}

.receive-package-focus,
.handoff-state,
.receive-line {
  border-radius: 6px;
}

.receive-fields input,
.receive-comment textarea,
.receive-line-input input {
  border-color: #aeb9c7;
  border-radius: 6px;
}

.receive-fields input:focus,
.receive-comment textarea:focus,
.receive-line-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(36, 95, 197, .14);
}

.receive-submit button {
  border-color: var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #f8fbff;
  box-shadow: none;
}

.receive-submit button:hover {
  border-color: #174da8;
  background: #174da8;
}

.receive-result,
.receive-error {
  border-radius: 8px;
}

/* Developer documentation */

.top {
  border-color: var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.top-inner {
  height: 64px;
}

.brand {
  font-weight: 760;
  letter-spacing: -.02em;
}

.button {
  min-height: 38px;
  border-color: #aeb9c7;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

.button:hover {
  border-color: #8392a5;
  background: #f4f6f8;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #f8fbff;
}

.intro {
  padding: 62px 0 42px;
  border-color: var(--line);
  background:
    linear-gradient(90deg, rgba(36, 95, 197, .045) 1px, transparent 1px),
    linear-gradient(rgba(36, 95, 197, .045) 1px, transparent 1px);
  background-size: 40px 40px;
}

.eyebrow {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .08em;
}

.intro h1 {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 760;
  letter-spacing: -.05em;
}

.layout {
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 42px;
}

.layout,
.content,
.content > .section,
.endpoint,
.code {
  min-width: 0;
  max-width: 100%;
}

.nav a {
  border-radius: 5px;
}

.nav a:hover {
  background: #e7ebf0;
}

.content {
  gap: 12px;
}

.content > .section {
  padding: 24px;
}

.endpoint {
  border-color: #e2e7ed;
}

.method {
  border-radius: 4px;
}

.code {
  border: 1px solid #314158;
  border-radius: 7px;
  background: var(--code);
  color: #e7edf5;
}

.note {
  border-color: var(--accent);
  background: #edf2f9;
}

.fact {
  border-color: var(--line);
  border-radius: 6px;
}

@media (max-width: 820px) {
  .shell,
  .receive-shell {
    padding: 14px;
  }

  .head,
  .receive-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  .delivery-head,
  .receive-overview {
    align-items: flex-start;
  }

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

  .top-inner {
    align-items: center;
  }

  .actions {
    flex-wrap: nowrap;
  }

  .actions .button {
    padding-inline: 10px;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .delivery-head,
  .receive-overview {
    display: block;
  }

  .delivery-head .status,
  .receive-overview .receive-status {
    margin-top: 12px;
  }

  .receive-section,
  .content > .section {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
