body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 20px;
    background-color: #eef2f5;
    color: #333;
}

h1, h2 {
    text-align: center;
    color: #2c3e50;
}

.controls-container {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.config-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.lock-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
}

.hint {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
    font-style: italic;
}

.control-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.control-col {
    flex: 1 1 200px;
    max-width: 220px;
}

.control-col h3 {
    margin-top: 0;
    font-size: 1em;
    margin-bottom: 10px;
}

.control-col select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.action-bar {
    text-align: center;
    margin-top: 20px;
}

.primary-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.primary-btn:hover {
    background-color: #0056b3;
}

#status-msg {
    display: block;
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
}

#results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.contrast-card {
    width: 260px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 15px;
    font-size: 14px;
    transition: transform 0.2s;
}

.contrast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.sample-text {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
}

.details p {
    margin: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag {
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.pass { color: #155724; background-color: #d4edda; }
.fail { color: #721c24; background-color: #f8d7da; }

.external-link {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 0.85em;
    color: #007bff;
    text-decoration: none;
    text-align: center;
}

.external-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

    .site-footer {
      margin-top: 2rem;
      padding: 1rem 0;
      border-top: 1px solid var(--border-subtle);
      background: var(--card-bg);
      text-align: center;
    }

    .site-footer p {
      margin: 0;
      color: var(--text-muted-on-light);
      font-size: 0.95rem;
    }

    .site-footer a {
      color: var(--accent);
      text-decoration: underline;
    }

    .site-footer a:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

/* Center the whole Bluesky likes section */
.post__likes {
  text-align: center;
  margin-inline: auto;
}

/* Center the CTA link nicely */
.post__likesCta {
  display: inline-block;
  margin-inline: auto;
}

/* Center the avatar list (and remove default UL indentation) */
.post__likesList {
  list-style: none;
  padding: 0;
  margin: 1rem auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Bluesky Links */
/* Container card */
.post__likes {
  margin-block: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;

  /* KEY CHANGES: no hard-coded colors */
  color: inherit; /* use whatever the page is using (light or dark) */
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  background-color: color-mix(in srgb, currentColor 4%, transparent);

  /* optional layout */
  max-width: 32rem;
}

/* Heading */
.post__likesTitle {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

/* CTA link */
.post__likesCta {
  display: inline-block;
  margin-bottom: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  color: inherit; /* let the global link color / theme handle it */
}

/* Avatar list */
.post__likesList {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.post__like {
  margin: 0;
  padding: 0;
}

.post__like__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;

  /* also theme-aware */
  border: 2px solid color-mix(in srgb, currentColor 40%, transparent);
  display: block;
}

.social-media-links {
    text-align: center;
}
