/* IndustryQR Learning Centre article additions.
   The shared IndustryQR CSS is loaded separately and remains unchanged. */

:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: #101820;
  background: #f3f1ec;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.iq-skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: #fff;
  background: #111b2a;
  font-weight: 900;
}

.iq-skip-link:focus {
  transform: translateY(0);
}

.iq-public-learn .iq-hero h1 {
  max-width: 850px;
  font-size: clamp(2.4rem, 4.8vw, 4.65rem);
}

.iq-public-learn .iq-lede-support {
  margin-top: 0.9rem;
  font-size: 1rem;
}

.iq-public-learn .iq-console-card {
  transform: none;
}

.iq-public-learn .iq-breadcrumb-wrap {
  padding-top: 1.35rem;
}

.iq-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  flex-wrap: wrap;
  color: #5d6a76;
  font-size: 0.88rem;
  font-weight: 780;
}

.iq-breadcrumbs a {
  color: #245f82;
  font-weight: 900;
}

.iq-breadcrumbs span[aria-hidden="true"] {
  color: #9aa3ab;
}

.iq-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.iq-article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 999px;
  color: #51606d;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 850;
}

.iq-public-learn .iq-trust-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.iq-learn-intro-card {
  padding: 1.35rem;
  border: 1px solid rgba(16, 24, 32, 0.13);
  border-radius: 26px;
  background:
    radial-gradient(circle at 98% 0%, rgba(200, 137, 43, 0.13), transparent 18rem),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(16, 24, 32, 0.08);
}

.iq-learn-intro-card p {
  margin: 0;
  color: #43515e;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.7;
}

.iq-learn-intro-card p + p {
  margin-top: 0.9rem;
}

.iq-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.iq-problem-card {
  min-height: 150px;
  padding: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.iq-problem-card strong,
.iq-problem-card span {
  display: block;
}

.iq-problem-card strong {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
}

.iq-problem-card span {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  line-height: 1.55;
}

.iq-article-shell {
  display: grid;
  grid-template-columns: minmax(230px, 0.28fr) minmax(0, 0.72fr);
  gap: 2rem;
  align-items: start;
}

.iq-article-nav {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.06);
}

.iq-article-nav strong {
  display: block;
  margin-bottom: 0.65rem;
  color: #111b2a;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.iq-article-nav a {
  display: block;
  padding: 0.52rem 0.58rem;
  border-radius: 10px;
  color: #51606d;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.iq-article-nav a:hover,
.iq-article-nav a:focus-visible {
  color: #111b2a;
  background: rgba(36, 95, 130, 0.09);
}

.iq-article-content {
  min-width: 0;
}

.iq-article-section {
  scroll-margin-top: 1rem;
  padding: 1.45rem;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(16, 24, 32, 0.07);
}

.iq-article-section + .iq-article-section {
  margin-top: 1rem;
}

.iq-article-section h2 {
  margin: 0;
  color: #111b2a;
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.iq-article-section h3 {
  margin: 1.35rem 0 0.45rem;
  color: #172439;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.iq-article-section p,
.iq-article-section li {
  color: #4f5d69;
  font-size: 1rem;
  line-height: 1.72;
}

.iq-article-section p {
  margin: 0.8rem 0 0;
}

.iq-article-section ul,
.iq-article-section ol {
  margin: 0.8rem 0 0;
  padding-left: 1.25rem;
}

.iq-article-section li + li {
  margin-top: 0.45rem;
}

.iq-article-section a:not(.iq-btn) {
  color: #245f82;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.iq-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 0.8rem;
  color: #245f82;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.iq-section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c8892b;
  box-shadow: 0 0 0 4px rgba(200, 137, 43, 0.16);
}

.iq-callout {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(36, 95, 130, 0.18);
  border-left: 5px solid #245f82;
  border-radius: 16px;
  background: rgba(36, 95, 130, 0.07);
}

.iq-callout strong {
  color: #111b2a;
  font-weight: 950;
}

.iq-callout p {
  margin-top: 0.35rem;
  font-size: 0.94rem;
}

.iq-callout-warning {
  border-color: rgba(200, 137, 43, 0.28);
  border-left-color: #c8892b;
  background: rgba(200, 137, 43, 0.08);
}

.iq-usecase-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.iq-usecase-card {
  padding: 1.05rem;
  border: 1px solid rgba(16, 24, 32, 0.11);
  border-radius: 20px;
  background: #ffffff;
}

.iq-usecase-card span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #245f82, #111b2a);
  font-size: 0.8rem;
  font-weight: 950;
}

.iq-usecase-card h3 {
  margin: 0;
  color: #111b2a;
  font-size: 1.08rem;
}

.iq-usecase-card p {
  margin-top: 0.45rem;
  font-size: 0.93rem;
  line-height: 1.6;
}

.iq-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.iq-check-item {
  position: relative;
  padding: 0.88rem 0.9rem 0.88rem 2.65rem;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 16px;
  color: #4f5d69;
  background: rgba(247, 248, 249, 0.9);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.5;
}

.iq-check-item::before {
  content: "✓";
  position: absolute;
  top: 0.82rem;
  left: 0.85rem;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: #3a7a58;
  font-size: 0.78rem;
  font-weight: 950;
}

.iq-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 18px;
  background: #fff;
}

.iq-compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.iq-compare-table th,
.iq-compare-table td {
  padding: 0.9rem;
  border-bottom: 1px solid rgba(16, 24, 32, 0.09);
  text-align: left;
  vertical-align: top;
}

.iq-compare-table th {
  color: #111b2a;
  background: #eef1f3;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.iq-compare-table td {
  color: #52606c;
  font-size: 0.92rem;
  line-height: 1.55;
}

.iq-compare-table tr:last-child td {
  border-bottom: 0;
}

.iq-plan-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.iq-plan-fit {
  padding: 1rem;
  border: 1px solid rgba(16, 24, 32, 0.11);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f3f5f6);
}

.iq-plan-fit strong {
  display: block;
  color: #111b2a;
  font-size: 1rem;
  font-weight: 950;
}

.iq-plan-fit span {
  display: block;
  margin-top: 0.4rem;
  color: #586672;
  font-size: 0.91rem;
  line-height: 1.55;
}

.iq-company-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.iq-company-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.44rem 0.7rem;
  border: 1px solid rgba(36, 95, 130, 0.16);
  border-radius: 999px;
  color: #354452;
  background: rgba(36, 95, 130, 0.07);
  font-size: 0.84rem;
  font-weight: 850;
}

.iq-faq-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.iq-faq-list details {
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.iq-faq-list summary {
  position: relative;
  padding: 1rem 3rem 1rem 1rem;
  color: #111b2a;
  font-weight: 920;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.iq-faq-list summary::-webkit-details-marker {
  display: none;
}

.iq-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #245f82;
  background: rgba(36, 95, 130, 0.09);
  font-size: 1.15rem;
  font-weight: 900;
}

.iq-faq-list details[open] summary::after {
  content: "−";
}

.iq-faq-list details p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: #52606c;
  font-size: 0.95rem;
  line-height: 1.65;
}

.iq-source-note {
  margin-top: 1rem;
  color: #6b7680;
  font-size: 0.82rem;
  line-height: 1.55;
}

.iq-learn-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.iq-learn-hub-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 1.25rem;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(16, 24, 32, 0.07);
}

.iq-learn-hub-card h2 {
  margin: 0;
  color: #111b2a;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.iq-learn-hub-card p {
  color: #586672;
  line-height: 1.62;
}

.iq-learn-hub-card .iq-btn {
  margin-top: auto;
  align-self: flex-start;
}

.iq-not-found {
  display: grid;
  place-items: center;
  min-height: 68vh;
  padding: 3rem 1rem;
}

.iq-not-found-card {
  width: min(720px, 100%);
  padding: 2rem;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(16, 24, 32, 0.12);
  text-align: center;
}

.iq-not-found-card h1 {
  margin: 0;
  color: #111b2a;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.055em;
}

.iq-not-found-card p {
  color: #586672;
  font-size: 1.02rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .iq-article-shell {
    grid-template-columns: 1fr;
  }

  .iq-article-nav {
    position: static;
  }

  .iq-article-nav nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
  }

  .iq-learn-hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .iq-public-learn .iq-trust-strip,
  .iq-problem-grid,
  .iq-usecase-cards,
  .iq-check-grid,
  .iq-plan-fit-grid,
  .iq-learn-hub-grid {
    grid-template-columns: 1fr;
  }

  .iq-article-nav nav {
    grid-template-columns: 1fr;
  }

  .iq-article-section {
    padding: 1.05rem;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
