/* Frequency articles + /frequencies hub — Cultivate light theme */

.article-page {
  background: var(--ng-card);
  color: var(--ng-ink);
}

.article {
  max-width: 760px;
  padding-top: 6.5rem;
  padding-bottom: 4rem;
}

.article.hub {
  max-width: 1080px;
}

.breadcrumbs {
  font-size: 0.8rem;
  color: var(--ng-muted);
  margin-bottom: 1.5rem;
}

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

.breadcrumbs a:hover {
  color: var(--ng-accent-strong);
}

.breadcrumbs span {
  margin: 0 0.35rem;
}

.article-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  color: var(--ng-ink);
  margin: 0.75rem 0 1rem;
}

.article-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ng-ink-soft);
}

.article-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  background: var(--ng-ground);
  border: 1px solid var(--ng-line);
  color: var(--ng-ink-soft);
}

.chip-hz {
  font-family: 'Space Mono', monospace;
  color: var(--ng-card);
  background: var(--freq-color, var(--ng-accent));
  border-color: transparent;
}

.chip-strong { background: color-mix(in srgb, var(--ng-accent) 15%, transparent); border-color: color-mix(in srgb, var(--ng-accent) 40%, transparent); color: var(--ng-accent); }
.chip-moderate { background: color-mix(in srgb, var(--ng-accent) 15%, transparent); border-color: color-mix(in srgb, var(--ng-accent) 45%, transparent); color: var(--ng-pollen-strong); }
.chip-early { background: color-mix(in srgb, var(--ng-muted) 12%, transparent); border-color: color-mix(in srgb, var(--ng-muted) 35%, transparent); color: var(--ng-ink-soft); }

.article-body {
  margin-top: 2.5rem;
}

.article-section {
  margin-bottom: 2.25rem;
}

.article-section h2,
.article-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--ng-ink);
  margin-bottom: 0.75rem;
}

.article-section p,
.article-section li {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.article-section a {
  color: var(--ng-accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.cite a {
  font-size: 0.75em;
  font-weight: 700;
  text-decoration: none;
  padding: 0 0.15em;
}

.tips {
  padding-left: 1.2rem;
}

.evidence-box {
  border-left: 4px solid var(--freq-color, var(--ng-accent));
  background: var(--ng-card);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  margin: 0 0 2.25rem;
  line-height: 1.6;
}

.faq details {
  background: var(--ng-card);
  border: 1px solid var(--ng-line);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
}

.faq summary {
  font-weight: 600;
  color: var(--ng-ink);
  cursor: pointer;
}

.faq details p {
  margin: 0.75rem 0 0;
}

.refs-note {
  font-size: 0.9rem !important;
  color: var(--ng-ink-soft);
}

.study-list {
  list-style: none;
  padding: 0;
}

.study-card {
  background: var(--ng-card);
  border: 1px solid var(--ng-line);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 90px;
}

.study-card:target {
  border-color: var(--freq-color, var(--ng-accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ng-shadow) 15%, transparent);
}

.study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ng-muted);
  margin-bottom: 0.4rem;
}

.study-num {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--freq-color, var(--ng-accent));
}

.study-design {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-section .study-title {
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.article-section .study-source {
  font-size: 0.85rem;
  color: var(--ng-ink-soft);
  margin-bottom: 0.5rem;
}

.article-section .study-finding {
  font-size: 0.95rem;
  margin: 0;
}

.article-cta {
  background: var(--ng-ink);
  color: var(--ng-ground);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2.25rem;
}

.article-cta h2 {
  color: var(--ng-card);
}

.article-cta p {
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.related-grid,
.freq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem;
}

.freq-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 2.5rem;
}

.related-card,
.freq-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--ng-card);
  border: 1px solid var(--ng-line);
  border-top: 4px solid var(--freq-color, var(--ng-accent));
  border-radius: 14px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--ng-ink);
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover,
.freq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ng-shadow) 8%, transparent);
}

.related-hz,
.freq-hz {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--freq-color, var(--ng-accent));
}

.related-name,
.freq-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ng-ink);
  margin: 0;
}

.related-band,
.freq-band {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ng-muted);
}

.freq-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.freq-summary {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0.25rem 0 0.5rem;
}

.freq-read {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ng-accent-strong);
}

.table-wrap {
  overflow-x: auto;
}

.band-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ng-card);
  border-radius: 12px;
  overflow: hidden;
}

.band-table th,
.band-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--ng-ground);
  font-size: 0.95rem;
}

.band-table th {
  background: var(--ng-ground);
  color: var(--ng-ink);
}

.article-disclaimer {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ng-muted);
  border-top: 1px solid var(--ng-line);
  padding-top: 1rem;
  margin: 0 0 2.25rem;
}

@media (max-width: 768px) {
  .article {
    padding-top: 5.5rem;
  }
}

/* Data tables (privacy policy) */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--ng-line);
  border-radius: 12px;
  background: var(--ng-card);
}

.article-section table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-section th,
.article-section td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--ng-ground);
}

.article-section th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ng-ink-soft);
  background: var(--ng-card);
}

.article-section tr:last-child td {
  border-bottom: 0;
}
