/* Protocol compatibility pages + checker widget */

.proto-hero {
  padding: 6rem 0 2.5rem;
  text-align: center;
}

.proto-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0.75rem 0 0.75rem;
  line-height: 1.15;
}

.proto-hero-sub {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  color: var(--muted, #64748b);
  font-size: 1.05rem;
  line-height: 1.55;
}

.proto-index {
  padding: 1rem 0 4rem;
}

.proto-hub-intro {
  max-width: 40rem;
  margin: 0 0 1.5rem;
  text-align: left;
}
.proto-hub-intro h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.proto-hub-intro p {
  color: var(--muted, #64748b);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.proto-cat-title {
  font-size: 1.1rem;
  margin: 2rem 0 0.85rem;
  color: var(--text, #0f172a);
}

.proto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.proto-card {
  display: block;
  text-align: left;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.proto-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.proto-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.proto-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.proto-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted, #64748b);
  line-height: 1.45;
}

.proto-brands {
  margin-top: 0.65rem !important;
  font-size: 0.8rem !important;
  color: #6366f1 !important;
}

.proto-card-cta {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary, #6366f1);
}

.proto-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  white-space: nowrap;
}

.proto-pill-muted {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.proto-cta {
  text-align: center;
  padding: 3rem 0 5rem;
}

.proto-cta h2 {
  margin-bottom: 0.5rem;
}

.proto-detail {
  padding: 5.5rem 0 4rem;
}

.proto-detail-inner {
  max-width: 44rem;
}

.proto-crumb {
  font-size: 0.85rem;
  color: var(--muted, #64748b);
  margin-bottom: 1.25rem;
}

.proto-crumb a {
  color: #6366f1;
  text-decoration: none;
}

.proto-crumb span[aria-hidden] {
  margin: 0 0.35rem;
}

.proto-detail-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin: 0.5rem 0 0.75rem;
}

.proto-detail-lead {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--muted, #64748b);
}

.proto-detail-flags {
  margin-top: 0.85rem;
}

.proto-block {
  margin-top: 2rem;
}

.proto-block h2 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.proto-note {
  font-size: 0.95rem;
  color: var(--muted, #64748b);
}

.proto-steps {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.proto-steps li {
  margin-bottom: 0.45rem;
}

.proto-brand-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.45rem 1rem;
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.proto-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.proto-related a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.proto-download {
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.06);
}

/* Checker widget */
.compat-checker {
  max-width: 40rem;
  margin: 0 auto;
  text-align: left;
}

.compat-label {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.compat-row {
  display: flex;
  gap: 0.5rem;
}

.compat-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font-size: 1rem;
  background: #fff;
}

.compat-input:focus {
  outline: 2px solid rgba(99, 102, 241, 0.45);
  border-color: transparent;
}

.compat-hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--muted, #64748b);
}

.compat-results {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.compat-hit {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}

.compat-hit-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.compat-hit h3 {
  margin: 0;
  font-size: 1rem;
}

.compat-hit p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted, #64748b);
  line-height: 1.45;
}

.compat-hit-lead {
  color: #0f172a !important;
}

.compat-hit-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: #4f46e5;
  text-decoration: none;
}

.compat-empty {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
  text-align: left;
}

.compat-suggest-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.compat-suggest-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.compat-suggest-form input,
.compat-suggest-form textarea {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font: inherit;
  font-weight: 400;
}

.compat-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.compat-suggest-status {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}

.compat-suggest-status.ok { color: #047857; }
.compat-suggest-status.err { color: #b91c1c; }

.compat-error {
  color: #b91c1c;
  font-size: 0.9rem;
}

.compat-section {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05), transparent);
}

.compat-section .section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.compat-section-more {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--muted, #64748b);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .compat-row {
    flex-direction: column;
  }
  .proto-hero {
    padding-top: 5rem;
  }
}
