* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("/static/vendor/fontawesome/webfonts/fa-solid-900.woff2") format("woff2");
}

.fas {
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-variant: normal;
  font-weight: 900;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa-phone-alt::before {
  content: "\f879";
}

.fa-map-marker-alt::before {
  content: "\f3c5";
}

.fa-broadcast-tower::before {
  content: "\f519";
}

.fa-arrows-alt-h::before {
  content: "\f337";
}

.fa-list-ol::before {
  content: "\f0cb";
}

.fa-link::before {
  content: "\f0c1";
}

.fa-sm {
  font-size: 0.875em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #c0c0c0, #ffffff);
  color: #1f2933;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

a {
  color: inherit;
}

a[href^="tel"] {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
  cursor: text;
}

.result-value a[x-apple-data-detectors],
.result-value a[href^="tel"],
.lookup-result a[x-apple-data-detectors],
.lookup-result a[href^="tel"] {
  color: inherit !important;
  font: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
  cursor: text;
}

.legacy-main {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem;
}

.lookup-card,
.page-card {
  width: 100%;
  max-width: 28rem;
  margin-top: 0.5rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.page-card {
  max-width: 46rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.legacy-logo {
  width: auto;
  height: 6rem;
  border-radius: 0.5rem;
}

.legacy-title {
  margin: 0 0 1rem;
  color: #b91c1c;
  font-size: 1.875rem;
  font-weight: 300;
  line-height: 1.2;
  text-align: center;
}

.legacy-title a {
  text-decoration: none;
}

.legacy-description {
  margin: 0 0 2rem;
  color: #4b5563;
  text-align: center;
  line-height: 1.5;
}

.legacy-description small {
  color: #2563eb;
}

.compact-date {
  margin-bottom: 1rem;
}

.phone-form {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: #f3f4f6;
}

.phone-form input {
  width: 100%;
  min-width: 0;
  height: 2.65rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
  background: #ffffff;
  color: #111827;
  font-size: 1rem;
  outline: none;
}

.phone-form input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.phone-form button {
  height: 2.65rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 0 0.5rem 0.5rem 0;
  background: #3b82f6;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
}

.phone-form button:hover,
.phone-form button:focus {
  background: #2563eb;
}

.hidden {
  display: none !important;
}

.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.5rem;
}

.progress img {
  width: 32px;
  height: 32px;
}

.result {
  margin-top: 1rem;
}

.lookup-result {
  font-size: 1rem;
}

.result-grid {
  display: block;
}

.lookup-result .result-row {
  display: flex;
}

.lookup-result .w-32 {
  flex: 0 0 8rem;
}

.lookup-result .w-12 {
  flex: 0 0 3rem;
}

.lookup-result .flex-1 {
  min-width: 0;
  flex: 1 1 0%;
}

.lookup-message {
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  background: #fff7ed;
  color: #b45309;
}

.lookup-error {
  background: #fef2f2;
  color: #dc2626;
}

.result-value {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.result-value small {
  color: #6b7280;
}

.operator-brand {
  display: inline-block;
  margin-bottom: 0.15rem;
  color: #111827;
  font-size: 1.05rem;
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1 1 0%;
}

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

.justify-begin {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.w-32 {
  width: 8rem;
}

.w-12 {
  width: 3rem;
}

.pr-4 {
  padding-right: 1rem;
}

.p-4 {
  padding: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.bg-blue-50 {
  background: #eff6ff;
}

.font-bold {
  font-weight: 700;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-500 {
  color: #6b7280;
}

.text-blue-500 {
  color: #3b82f6;
}

.hover\:text-blue-600:hover {
  color: #2563eb;
}

.text-green-500 {
  color: #10b981;
}

.text-red-500 {
  color: #ef4444;
}

.text-purple-500 {
  color: #8b5cf6;
}

.lookup-result hr {
  height: 0;
  margin-top: 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.number-link-wrap {
  display: flex;
  justify-content: center;
}

.number-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.95rem;
}

.number-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.78rem;
}

.card-foot a,
.page-nav a,
.link-row a {
  color: #2563eb;
  text-decoration: none;
}

.card-foot a:hover,
.page-nav a:hover,
.link-row a:hover {
  text-decoration: underline;
}

.page-section {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem;
}

.page-card h1 {
  margin: 0 0 1rem;
  color: #b91c1c;
  font-size: 1.8rem;
  font-weight: 300;
  text-align: center;
}

.page-card h2 {
  margin: 1.4rem 0 0.6rem;
  color: #374151;
  font-size: 1.15rem;
}

.page-card p,
.page-card li {
  color: #4b5563;
  line-height: 1.55;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
  color: #2563eb;
  font-size: 0.92rem;
}

.status-grid,
.status-list,
.result-list {
  margin: 0;
}

.status-grid div,
.status-list div,
.result-list div {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid #e5e7eb;
}

.status-grid div:first-child,
.status-list div:first-child,
.result-list div:first-child {
  border-top: 0;
}

dt {
  color: #374151;
  font-weight: 700;
}

dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

pre {
  overflow-x: auto;
  padding: 0.85rem;
  border-radius: 0.5rem;
  background: #f3f4f6;
  color: #111827;
}

.admin-mode .legacy-main {
  align-items: flex-start;
  min-height: auto;
  padding: 0.5rem;
}

.admin-mode .lookup-card {
  max-width: 25rem;
  margin-top: 0;
  padding: 1rem;
  box-shadow: none;
}

.admin-mode .legacy-logo {
  height: 4rem;
}

.admin-mode .legacy-title {
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

.admin-mode .phone-form {
  margin-bottom: 1rem;
}

.admin-mode .result-row {
  grid-template-columns: 5.8rem 2rem minmax(0, 1fr);
  gap: 0.45rem;
  padding: 0.35rem 0;
}

.admin-mode .result-label {
  padding-right: 0;
}

@media (min-width: 640px) {
  .legacy-main,
  .page-section {
    align-items: center;
  }

  .lookup-card,
  .page-card {
    margin-top: 0;
  }
}

@media (max-width: 430px) {
  .lookup-card,
  .page-card {
    padding: 1rem;
  }

  .legacy-logo {
    height: 5rem;
  }

  .legacy-title {
    font-size: 1.55rem;
  }

  .phone-form {
    margin-bottom: 1.2rem;
  }

  .phone-form input {
    padding: 0.5rem 0.75rem;
  }

  .phone-form button {
    padding: 0 0.85rem;
  }

  .status-grid div,
  .status-list div,
  .result-list div {
    grid-template-columns: 1fr;
  }

  .result-row {
    grid-template-columns: minmax(5.8rem, 34%) 2.1rem minmax(0, 1fr);
    gap: 0.35rem;
    font-size: 0.94rem;
  }

  .result-label,
  .result-icon {
    width: auto;
  }

  .result-icon svg {
    width: 1rem;
    height: 1rem;
  }
}
