/* ==========================================================================
   Gov422 Card Component
   Social content series for Tango by MakeGov
   Drop into your 11ty project's CSS pipeline
   ========================================================================== */

.gov422 {
  background: #151b3d;
  border-radius: 12px;
  overflow: hidden;
  max-width: 560px;
  font-family: 'Public Sans', sans-serif;
}

/* Top accent bar — brand gradient */
.gov422__accent {
  height: 4px;
  background: linear-gradient(90deg, #07bfff 0%, #3f51b5 50%, #2d3a82 100%);
}

.gov422__inner {
  padding: 28px 32px 24px;
}

/* ---- Header row ---- */
.gov422__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gov422__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.gov422__title {
  font-family: 'Source Code Pro', monospace;
  font-size: 28px;
  font-weight: 700;
  color: #07bfff;
  letter-spacing: -0.5px;
  line-height: 1;
}

.gov422__subtitle {
  font-size: 11px;
  font-weight: 600;
  color: #8990ab;
  text-transform: uppercase;
  letter-spacing: 2.5px;
}

.gov422__number {
  font-family: 'Source Code Pro', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #9ba5d6;
  background: rgba(116, 129, 198, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ---- Error detail block ---- */
.gov422__error {
  font-family: 'Source Code Pro', monospace;
  background: rgba(7, 191, 255, 0.06);
  border: 1px solid rgba(7, 191, 255, 0.12);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.gov422__error-label {
  font-size: 10px;
  font-weight: 600;
  color: #8990ab;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.gov422__error-body {
  font-size: 13px;
  color: #e8eaf6;
  line-height: 1.65;
}

.gov422__field {
  color: #07bfff;
}

.gov422__value--bad {
  color: #ff6b6b;
}

.gov422__value--bad::before {
  content: "\26A0\FE0F ";
}

.gov422__value--ok {
  color: #06db96;
}

/* ---- Commentary ---- */
.gov422__commentary {
  font-size: 14px;
  font-weight: 300;
  color: #a4a7bc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.gov422__commentary strong,
body.blog-post .section .wrapper .gov422__commentary strong {
  color: #e8eaf6;
  font-weight: 600;
}

/* ---- Actions row ---- */
.gov422__actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.gov422__action-btn {
  font-family: 'Source Code Pro', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid rgba(7, 191, 255, 0.3);
  background: rgba(7, 191, 255, 0.08);
  color: #07bfff;
}

.gov422__action-btn:hover {
  background: rgba(7, 191, 255, 0.18);
  border-color: rgba(7, 191, 255, 0.5);
  color: #e8eaf6;
}

.gov422__action-btn:focus-visible {
  outline: 2px solid #07bfff;
  outline-offset: 2px;
}

.gov422__action-btn--share {
  border-color: rgba(116, 129, 198, 0.3);
  background: rgba(116, 129, 198, 0.08);
  color: #9ba5d6;
}

.gov422__action-btn--share:hover {
  background: rgba(116, 129, 198, 0.18);
  border-color: rgba(116, 129, 198, 0.5);
  color: #e8eaf6;
}

/* ---- Footer ---- */
.gov422__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(164, 167, 188, 0.12);
  padding-top: 16px;
}

.gov422__footer-brand {
  font-size: 12px;
  font-weight: 500;
  color: #8990ab;
  letter-spacing: 0.3px;
}

.gov422__footer-brand span {
  color: #7481c6;
}

.gov422__footer-url {
  font-family: 'Source Code Pro', monospace;
  font-size: 10px;
  color: #8990ab;
  letter-spacing: 0.5px;
}

.gov422__footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.gov422__footer-link:hover {
  color: #07bfff;
}

.gov422__footer-link:focus-visible {
  outline: 2px solid #07bfff;
  outline-offset: 2px;
  border-radius: 2px;
}

.gov422__footer-share {
  font-family: 'Source Code Pro', monospace;
  font-size: 11px;
}

.gov422__share-link {
  color: #07bfff;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.15s ease;
}

.gov422__share-link:hover {
  color: #e8eaf6;
}

.gov422__share-link:focus-visible {
  outline: 2px solid #07bfff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Focus states for interactive elements ---- */
.gov422-grid__link:focus-visible,
.gov422-grid__item:focus-within {
  outline: none;
}

.gov422-grid__link:focus-visible .gov422,
.gov422-grid__item a:focus-visible {
  outline: 2px solid #07bfff;
  outline-offset: 2px;
  border-radius: 12px;
}

/* ---- Hero subtitle ---- */
.hero-subtitle {
  font-family: 'Source Code Pro', monospace;
  font-size: 1rem;
  color: #8990ab;
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
}

/* ---- Listing grid ---- */
.gov422-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
}

@media (min-width: 640px) {
  .gov422-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gov422-grid__link {
  text-decoration: none;
  display: block;
}

.gov422-grid__link:hover .gov422 {
  outline: 1px solid rgba(7, 191, 255, 0.3);
}

.gov422-grid__link .gov422 {
  transition: outline 0.15s ease;
}
