body {
  font-family: sans-serif;
  margin: 0;
}

main {
  max-width: 700px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

/* Toolbar at the top of every page */
.toolbar {
  background: #1a365d;
}

.toolbar-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}

.toolbar a {
  color: #e2e8f0;
  text-decoration: none;
}

.toolbar a:hover {
  color: white;
}

.site-name {
  font-weight: bold;
}

.toolbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.9rem;
}

.toolbar-links a {
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}

.toolbar-links a.current {
  color: white;
  border-bottom-color: #90cdf4;
}

.disclaimer {
  color: #4a5568;
  font-size: 0.85rem;
}

/* Homepage tool cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.card {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover, .card:focus-visible {
  border-color: #2b6cb0;
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.15);
}

.card-title {
  font-weight: bold;
  color: #2b6cb0;
}

.card p {
  margin: 8px 0 0;
  color: #4a5568;
  font-size: 0.9rem;
}

.card-soon .card-title {
  color: #4a5568;
}

.soon {
  margin-left: 6px;
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: #edf2f7;
  color: #4a5568;
}

.button {
  display: inline-block;
  padding: 10px 16px;
  background: #2b6cb0;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.button:hover {
  background: #2c5282;
}

input.button, button.button {
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

input.button:disabled {
  background: #718096;
  cursor: wait;
}

/* Prior authorization checker */
.error {
  color: #9b2c2c;
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 4px;
  padding: 10px 12px;
}

.warning {
  color: #744210;
  background: #fffff0;
  border: 1px solid #f6e05e;
  border-radius: 4px;
  padding: 10px 12px;
}

.warning ul {
  margin: 6px 0 0;
}

fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin: 0 0 16px;
  padding: 8px 14px;
}

.choice {
  display: block;
  margin: 6px 0;
}

.tested {
  font-size: 0.8rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: #bee3f8;
  color: #2a4365;
}

.feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.muted {
  color: #4a5568;
  font-size: 0.9rem;
}

.decision {
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  border-left: 6px solid;
}

.decision p {
  margin: 6px 0 0;
}

.decision-label {
  font-size: 1.4rem;
  font-weight: bold;
}

.decision-covered {
  background: #f0fff4;
  border-color: #2f855a;
}

.decision-denied {
  background: #fff5f5;
  border-color: #c53030;
}

.decision-insufficient-information {
  background: #fffff0;
  border-color: #b7791f;
}

.criterion {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 10px 0;
}

.criterion p {
  margin: 6px 0;
}

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

.policy-text {
  color: #4a5568;
  font-style: italic;
  font-size: 0.9rem;
}

.verdict {
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.verdict-met {
  background: #c6f6d5;
  color: #22543d;
}

.verdict-not-met {
  background: #fed7d7;
  color: #742a2a;
}

.verdict-insufficient-information {
  background: #fefcbf;
  color: #744210;
}

.verdict-not-applicable {
  background: #edf2f7;
  color: #2d3748;
}

/* Skeleton loader shown while the analysis runs */
.loading-text {
  color: #4a5568;
}

.skeleton {
  border-radius: 6px;
  margin: 10px 0;
  background: linear-gradient(90deg, #edf2f7 25%, #f7fafc 50%, #edf2f7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-banner {
  height: 72px;
}

.skeleton-line {
  height: 14px;
  width: 80%;
}

.skeleton-line.short {
  width: 50%;
}

.skeleton-row {
  height: 90px;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}