/* Styles for the static article pages built by scripts/build-content.mjs.
   Loaded after the app's own stylesheet, so the tokens, header, footer,
   cards and buttons all come from App.css; this only adds article layout. */

.site-header .header-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .header-cta:hover {
  background: var(--accent-strong);
}

.article {
  padding-top: 28px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--faint);
  font-size: 0.82rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.article .pill .trait-dot {
  margin-right: 2px;
}

.article section > p,
.article section li {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.7;
}

.article section > p {
  margin: 0 0 14px;
}

.article section ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.article section li {
  margin-bottom: 6px;
}

.article .section-heading {
  margin-top: 40px;
  font-size: 1.45rem;
}

.article-cta {
  margin: 40px 0 8px;
  padding: 24px;
  background: var(--accent-tint);
  border-color: transparent;
  box-shadow: none;
}

.article-cta-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.article-cta-detail {
  margin: 8px 0 18px;
  color: var(--muted);
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.article-cta .primary-button {
  text-decoration: none;
}

.text-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.link-grid-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.link-grid-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.link-grid-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.link-grid-detail {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.faq-item {
  margin-bottom: 10px;
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text);
  line-height: 1.65;
}

@media (max-width: 420px) {
  .site-header .header-cta {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
}

.table-wrap {
  margin: 4px 0 18px;
  overflow-x: auto;
}

.norms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.norms-table caption {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: left;
}

.norms-table th,
.norms-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.norms-table thead th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.norms-table tbody th {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.norms-table td {
  font-variant-numeric: tabular-nums;
}

.article section li a,
.article section p a {
  color: var(--accent);
}

.source-list li {
  font-size: 0.92rem;
}
