.records-public-page {
  --service-accent: #2563eb;
  --service-secondary: #0f766e;
  --service-accent-rgb: 37, 99, 235;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.66), rgba(255, 255, 255, 0.94) 42%),
    #fff;
  border-radius: 8px;
  margin: -0.5rem auto 0;
  padding: clamp(1rem, 2.4vw, 1.6rem);
}

.records-public-hero {
  align-items: stretch;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  margin-bottom: 1.1rem;
  min-height: 360px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.records-public-hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 32px);
  bottom: 0;
  content: "";
  left: 0;
  opacity: 0.4;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}

.records-public-hero-copy {
  align-self: center;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.records-public-hero .service-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.records-public-hero .service-subtitle {
  font-size: 1.06rem;
}

.records-public-hero .service-action {
  border-radius: 8px;
  min-height: 44px;
}

.records-public-panel {
  align-self: stretch;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.records-panel-kicker {
  align-items: center;
  color: #2563eb;
  display: flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 0.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.records-stat-list,
.records-step-list {
  display: grid;
  gap: 0.75rem;
}

.records-stat-card,
.records-step-card {
  background: #f8fafc;
  border: 1px solid #dce8f2;
  border-radius: 8px;
  color: #172033;
  display: grid;
  gap: 0.18rem;
  min-height: 104px;
  padding: 0.9rem;
  text-decoration: none;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.records-stat-card:hover,
.records-stat-card:focus,
.records-step-card:hover,
.records-step-card:focus {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  color: #172033;
  transform: translateY(-2px);
}

.records-stat-card i {
  align-items: center;
  background: #eff6ff;
  border-radius: 8px;
  color: #2563eb;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.records-stat-card strong,
.records-step-card strong {
  color: #0f172a;
  font-size: 0.98rem;
}

.records-stat-card small,
.records-step-card small {
  color: #64748b;
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 0.18rem;
}

.records-private-card {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.records-private-card i {
  background: #ede9fe;
  color: #6d28d9;
}

.records-support-strip {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.6rem;
}

.records-support-strip a {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe7f2;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  color: #334155;
  display: flex;
  font-weight: 820;
  gap: 0.7rem;
  min-height: 64px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.records-support-strip a:hover,
.records-support-strip a:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
  color: #0f172a;
  transform: translateY(-2px);
}

.records-support-strip i {
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.records-content-grid {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
}

.records-content-main,
.records-public-rail {
  min-width: 0;
}

.records-public-card {
  border-radius: 8px;
  min-height: 292px;
}

.records-public-card::after {
  background: linear-gradient(90deg, #2563eb, #0f766e, #7c3aed);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.records-card-meta {
  color: #2563eb;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.74rem;
  font-weight: 820;
  gap: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.records-card-meta span {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
}

.records-public-rail {
  background: #fff;
  border: 1px solid #dbe7f2;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
  padding: 1rem;
  position: sticky;
  top: 1rem;
}

.records-rail-heading {
  align-items: start;
  margin: 0 0 0.9rem;
}

.records-rail-heading h2 {
  font-size: 1.18rem;
}

.records-rail-heading p {
  font-size: 0.88rem;
}

.records-step-card {
  align-items: start;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: auto;
}

.records-step-card > span {
  align-items: center;
  background: #eff6ff;
  border-radius: 8px;
  color: #2563eb;
  display: inline-flex;
  font-weight: 850;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.records-footer-page .records-public-card {
  height: 100%;
}

.records-footer-link {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: #2563eb;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 820;
  gap: 0.42rem;
  padding: 0.6rem 0.8rem;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.records-footer-link:hover,
.records-footer-link:focus {
  background: #2563eb;
  color: #fff;
  transform: translateY(-1px);
}

.records-public-page a:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.55);
  outline-offset: 3px;
}

@media (max-width: 1199.98px) {
  .records-public-hero,
  .records-content-grid {
    grid-template-columns: 1fr;
  }

  .records-public-rail {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .records-public-page {
    padding: 0.75rem;
  }

  .records-public-hero {
    min-height: auto;
  }

  .records-support-strip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .records-public-page *,
  .records-public-page *::before,
  .records-public-page *::after {
    transition-duration: 0.01ms !important;
  }
}
