/* Mississippi special education resource page (paired with ACTPREP/styles + resource-hubs-shared) */

.resource-hub--sped {
  --primary: #2b6089;
  --primary-deep: #1d4564;
}

.resource-hub--sped main .surface-section {
  padding: 2.25rem 0 2rem;
}

.sped-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
  padding: 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--line));
  background: rgba(255, 255, 255, 0.92);
}

.sped-jump-nav a {
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-deep);
}

.sped-jump-nav a:hover,
.sped-jump-nav a:focus-visible {
  background: color-mix(in srgb, var(--primary) 10%, white);
}

.sped-h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.28;
  margin: 0 0 1rem;
  color: var(--ink);
}

.sped-lead {
  max-width: 68ch;
  margin: 0 0 1.75rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.sped-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.sped-list li + li {
  margin-top: 0.5rem;
}

.sped-list a {
  color: var(--primary-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sped-callout {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.45rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(232, 242, 250, 0.9));
}

.sped-callout h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  color: var(--primary-deep);
}

.sped-callout p,
.sped-callout ul {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.58;
}

.sped-callout ul {
  padding-left: 1.1rem;
  margin-top: 0.65rem;
}

.sped-callout--legal {
  border-color: rgba(180, 120, 40, 0.35);
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98), rgba(255, 244, 220, 0.55));
}

.sped-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: stretch;
  margin: 0;
}

.sped-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 1.5rem 1.65rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--line));
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    color-mix(in srgb, var(--primary) 4%, white)
  );
  box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 6%, transparent);
}

.sped-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.32;
  margin: 0 0 0.75rem;
  color: var(--primary-deep);
}

.sped-card p {
  flex: 1;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--muted);
}

.sped-card .button {
  align-self: stretch;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.sped-card > .button {
  margin-top: auto;
}

.sped-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
  width: 100%;
}

.sped-card__actions .button {
  margin-top: 0;
}

.sped-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sped-checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.65rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.sped-checklist li:last-child {
  border-bottom: none;
}

.sped-checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  top: 0.55rem;
  color: var(--primary-deep);
  font-weight: 700;
}

.sped-note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.55;
}

.sped-note a {
  color: var(--primary-deep);
  font-weight: 700;
}

@media (max-width: 640px) {
  .sped-grid {
    grid-template-columns: 1fr;
  }

  .sped-card {
    padding: 1.25rem 1.35rem;
  }
}
