/* IQSTAT Blog — article/list styles (shell: iq-pub-shell.css from iqstat.io PublicSiteShell) */
:root {
  --iq-bg: #fdfdff;
  --iq-surface: #ffffff;
  --iq-text: #111827;
  --iq-text-muted: #4b5563;
  --iq-text-soft: #6b7280;
  --iq-blue: #3b82f6;
  --iq-blue-dark: #2563eb;
  --iq-green: #22c55e;
  --iq-border: #f3f4f6;
  --iq-border-strong: #e5e7eb;
  --iq-max: 1140px;
  --iq-article: 760px;
  --iq-radius: 16px;
  --iq-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--iq-text);
  background: var(--iq-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--iq-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Blog index */
.iqstat-blog-index {
  width: 100%;
}

.iqstat-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--iq-blue);
  margin-bottom: 12px;
}

.iqstat-blog-index__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.iqstat-blog-index__lead {
  margin: 0 0 24px;
  max-width: 720px;
  font-size: 18px;
  color: var(--iq-text-soft);
  line-height: 1.55;
}

.iqstat-blog-categories {
  margin: 0 0 28px;
}

.iqstat-blog-categories__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.iqstat-blog-categories__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid var(--iq-border-strong);
  background: #fff;
  color: var(--iq-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.iqstat-blog-categories__chip:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--iq-blue);
}

.iqstat-blog-categories__chip.is-active {
  border-color: var(--iq-blue);
  background: #eff6ff;
  color: var(--iq-blue-dark);
}

.iqstat-blog-categories__count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--iq-blue-dark);
  font-size: 12px;
  font-weight: 700;
}

.iqstat-blog-categories__chip.is-active .iqstat-blog-categories__count {
  background: var(--iq-blue);
  color: #fff;
}

.iqstat-blog-index__filter-note {
  margin: -8px 0 24px;
  font-size: 15px;
  color: var(--iq-text-soft);
}

.iqstat-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.iqstat-card {
  position: relative;
  background: var(--iq-surface);
  border: 1px solid var(--iq-border-strong);
  border-radius: var(--iq-radius);
  overflow: hidden;
  box-shadow: var(--iq-shadow);
  display: flex;
  flex-direction: column;
}

.iqstat-card--pinned {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.12);
}

.iqstat-card__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.iqstat-card__pin {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 100px;
  background: #eff6ff;
  color: var(--iq-blue-dark);
  border: 1px solid rgba(37, 99, 235, 0.25);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.iqstat-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}

.iqstat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iqstat-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.iqstat-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.iqstat-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.iqstat-card__title a {
  color: var(--iq-text);
  text-decoration: none;
}

.iqstat-card__title a:hover {
  color: var(--iq-blue);
}

.iqstat-card__excerpt {
  margin: 0;
  color: var(--iq-text-soft);
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
}

.iqstat-card__date {
  font-size: 13px;
  color: #9ca3af;
}

.iqstat-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 100px;
  background: #eff6ff;
  color: var(--iq-blue-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.iqstat-chip--ghost {
  background: #f1f5f9;
  color: var(--iq-text-muted);
}

.iqstat-pagination {
  margin-top: 40px;
}

.iqstat-pagination .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.iqstat-pagination a,
.iqstat-pagination span {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--iq-border-strong);
  text-decoration: none;
  color: var(--iq-text);
  font-weight: 600;
}

.iqstat-pagination .current {
  background: var(--iq-blue);
  border-color: var(--iq-blue);
  color: #fff;
}

/* Single article */
.iqstat-article-wrap {
  padding: 0;
}

.iqstat-article {
  max-width: var(--iq-article);
  margin: 0 auto;
}

.iqstat-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--iq-text-soft);
}

.iqstat-article__meta time {
  color: #9ca3af;
}

.iqstat-article__title {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
}

.iqstat-article__cover {
  margin: 0 0 28px;
  border-radius: var(--iq-radius);
  overflow: hidden;
  border: 1px solid var(--iq-border-strong);
  box-shadow: var(--iq-shadow);
}

.iqstat-article__cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Excalibur article HTML */
.iqstat-entry {
  font-size: 17px;
  line-height: 1.7;
  color: #1f2937;
}

.iqstat-entry > :first-child {
  margin-top: 0;
}

.iqstat-entry p {
  margin: 0 0 1rem;
}

.iqstat-entry h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.iqstat-entry h3 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--iq-text-muted);
}

.iqstat-entry ul,
.iqstat-entry ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.iqstat-entry li {
  margin-bottom: 0.35rem;
}

.iqstat-entry blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--iq-blue);
  background: #f8fafc;
  border-radius: 0 12px 12px 0;
  color: #334155;
}

.iqstat-entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--iq-border-strong);
  border-radius: 12px;
  overflow: hidden;
}

.iqstat-entry th,
.iqstat-entry td {
  border: 1px solid var(--iq-border-strong);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.iqstat-entry th {
  background: #f8fafc;
  font-weight: 700;
}

.iqstat-entry figure.inline-quad {
  margin: 1.25rem 0 1.5rem;
}

.iqstat-entry figure.inline-quad img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--iq-border-strong);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.iqstat-entry a {
  color: var(--iq-blue-dark);
  font-weight: 600;
}

.iqstat-article-cta {
  margin-top: 48px;
  padding: 28px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid var(--iq-border-strong);
  text-align: center;
}

.iqstat-article-cta__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--iq-blue);
}

.iqstat-article-cta__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
}

.iqstat-article-cta__text {
  margin: 0 0 20px;
  color: var(--iq-text-soft);
}

/* Hide default WP / parent theme cruft if any leaks */
.site-header:not(.iq-pub-header),
.header-background-image,
#masthead:not(.iq-pub-header) {
  display: none !important;
}

/* Article enrichment blocks */
.iqstat-article__read {
  color: #9ca3af;
}

.iqstat-article-enrich {
  max-width: var(--iq-article);
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.iqstat-article-enrich--wide {
  max-width: var(--iq-max);
  padding: 0 clamp(16px, 4vw, 24px);
}

/* TOC */
.iqstat-toc {
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.22);
}

.iqstat-toc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.iqstat-toc__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.iqstat-toc__hint {
  font-size: 12px;
  opacity: 0.82;
}

.iqstat-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iqstat-toc__item a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}

.iqstat-toc__item a:hover {
  text-decoration: underline;
}

.iqstat-toc__item--h3 {
  padding-left: 14px;
  opacity: 0.92;
}

.iqstat-toc__item--h3 a {
  font-size: 14px;
  font-weight: 500;
}

/* Insight cards */
.iqstat-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.iqstat-insight-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--iq-border-strong);
  box-shadow: var(--iq-shadow);
}

.iqstat-insight-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.iqstat-insight-card--important .iqstat-insight-card__icon {
  background: #fef9c3;
  color: #854d0e;
}

.iqstat-insight-card--mistake .iqstat-insight-card__icon {
  background: #fee2e2;
  color: #991b1b;
}

.iqstat-insight-card--step .iqstat-insight-card__icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.iqstat-insight-card--insight .iqstat-insight-card__icon {
  background: #ede9fe;
  color: #6d28d9;
}

.iqstat-insight-card__label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
}

.iqstat-insight-card__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #374151;
}

/* Quiz */
.iqstat-quiz {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.25);
}

.iqstat-quiz__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.iqstat-quiz__badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.iqstat-quiz__xp {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}

.iqstat-quiz__eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  opacity: 0.9;
}

.iqstat-quiz__title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.iqstat-quiz__lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.92;
}

.iqstat-quiz__step {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.85;
}

.iqstat-quiz__question {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.iqstat-quiz__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iqstat-quiz__option {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #1d4ed8;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.iqstat-quiz__option:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.iqstat-quiz__result-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.iqstat-quiz__result h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.iqstat-quiz__result p {
  margin: 0 0 18px;
  line-height: 1.55;
  opacity: 0.95;
}

/* Next steps */
.iqstat-next {
  margin: 8px 0 28px;
  padding: 28px 24px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid var(--iq-border-strong);
}

.iqstat-next__title {
  margin: 0 0 8px;
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
}

.iqstat-next__lead {
  margin: 0 0 22px;
  text-align: center;
  color: var(--iq-text-soft);
}

.iqstat-next__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.iqstat-next-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--iq-border-strong);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--iq-shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.iqstat-next-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
}

.iqstat-next-card__badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--iq-blue);
}

.iqstat-next-card__title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.iqstat-next-card__text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--iq-text-soft);
}

/* Related */
.iqstat-related {
  margin-bottom: 28px;
}

.iqstat-related__title {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
}

.iqstat-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.iqstat-related-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--iq-border-strong);
  box-shadow: var(--iq-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

.iqstat-related-card:hover {
  transform: translateY(-2px);
}

.iqstat-related-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  overflow: hidden;
}

.iqstat-related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iqstat-related-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.iqstat-related-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.iqstat-related-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--iq-text);
}

.iqstat-related-card__date {
  font-size: 13px;
  color: #9ca3af;
}

/* FAQ accordion */
.iqstat-faq-block {
  margin-top: 2rem;
}

.iqstat-faq-heading {
  margin-bottom: 1rem !important;
}

.iqstat-faq-item {
  margin: 0 0 10px;
  padding: 0;
  border: 1px solid var(--iq-border-strong);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.iqstat-faq-item summary {
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.iqstat-faq-item summary::-webkit-details-marker {
  display: none;
}

.iqstat-faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--iq-text-muted);
}

@media (max-width: 768px) {
  .iqstat-insights,
  .iqstat-next__grid,
  .iqstat-related__grid {
    grid-template-columns: 1fr;
  }

  .iqstat-toc__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
