/* PrepIEP blog and state guide extensions.
   Uses the landing page design tokens; no new colors or fonts. */

.resource-hero {
  padding: 72px 0 40px;
  background: var(--bg);
}

.resource-hero__inner {
  max-width: 860px;
}

.resource-kicker,
.article-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 11px;
  margin-bottom: 14px;
}

.resource-hero h1,
.article-header h1 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.08;
  color: var(--text);
  max-width: 820px;
}

.resource-hero p,
.article-dek {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 720px;
  margin-top: 16px;
}

.resource-grid {
  padding: 24px 0 72px;
}

.resource-grid__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.resource-card__meta {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.resource-card h2 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.18;
  color: var(--text);
}

.resource-card p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.68;
  margin-top: 10px;
}

.resource-card__link {
  color: var(--primary);
  font-weight: 700;
  margin-top: auto;
  padding-top: 18px;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 28px;
}

.fact-card {
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.fact-card span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fact-card strong {
  display: block;
  color: var(--primary);
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 650;
  line-height: 1.15;
}

.fact-card p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
  margin-top: 8px;
}

.state-grid {
  margin-top: 18px;
}

.state-callout {
  max-width: none;
}

.article {
  padding: 64px 0 76px;
}

.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  max-width: 1120px;
}

.article-header {
  max-width: 820px;
  margin-bottom: 28px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: .88rem;
  margin-top: 16px;
}

.article-body {
  max-width: 740px;
}

.article-body h2 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--text);
  margin: 42px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--outline);
}

.article-body h3 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 26px 0 8px;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.article-body p {
  margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
  margin: 12px 0 18px 22px;
}

.article-body li {
  padding-left: 4px;
  margin-bottom: 8px;
}

.article-body a,
.article-aside a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(14,79,82,.32);
}

.article-body a:hover,
.article-aside a:hover {
  text-decoration-color: var(--primary);
}

.article-callout,
.article-tldr {
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin: 24px 0;
}

.article-tldr h2,
.article-callout h2,
.article-callout h3 {
  border: 0;
  padding: 0;
  margin-top: 0;
}

.article-tldr ul {
  margin-bottom: 0;
}

.article-aside {
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  height: fit-content;
}

.article-aside h2,
.article-aside h3 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.article-aside p,
.article-aside li {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.65;
}

.article-aside ul {
  margin: 12px 0 18px 18px;
}

.source-list {
  padding-left: 18px;
}

.source-list li {
  margin-bottom: 10px;
}

.breadcrumb {
  color: var(--muted);
  font-size: .86rem;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

@media (min-width: 720px) {
  .resource-grid__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .article__layout {
    grid-template-columns: minmax(0, 740px) 280px;
    align-items: start;
  }

  .article-header {
    grid-column: 1 / -1;
  }
}
