/* Industry boards + whitepapers — premium layout aligned with library/home */

/* ---- Hero override: Chinese titles need wider line ---- */
.page-shell.ind-page .page-hero h1,
.page-shell.wp-page .page-hero h1{
  max-width: none;
  max-width: 28ch;
}

/* ---- Section scaffolding ---- */
.ind-section{
  margin: 42px 0 0;
}
.ind-section > .ind-kicker{
  display: inline-block;
  margin: 0 0 10px;
  color: #6E21FE;
  font: 700 11px/1 var(--font-mono, ui-monospace, monospace);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ind-section > h2{
  margin: 0 0 18px;
  font-family: var(--font-display, "Sora","Noto Sans SC",sans-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -.03em;
  color: #14142b;
}
.ind-section > .ind-section-lead{
  margin: -6px 0 20px;
  max-width: 68ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: #575B66;
}

/* ---- Callout (method notes — not an error) ---- */
.ind-callout{
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 20px 22px;
  list-style: none;
  border: 1px solid rgba(110,33,254,.14);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.96), rgba(247,246,255,.92)),
    radial-gradient(circle at 0 0, rgba(110,33,254,.06), transparent 50%);
  box-shadow: 0 12px 32px rgba(26,26,46,.04);
}
.ind-callout li{
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #3d4150;
}
.ind-callout li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6E21FE;
  opacity: .55;
}
.ind-callout a{ color: #5b34d6; }
.ind-callout code{
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(110,33,254,.08);
  font-size: .92em;
}
.ind-callout-block{
  margin: 0;
  padding: 20px 22px;
  border: 1px solid rgba(110,33,254,.14);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.96), rgba(247,246,255,.92));
  font-size: 14.5px;
  line-height: 1.8;
  color: #3d4150;
}

/* ---- Stat strip ---- */
.ind-stat-strip{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 8px;
}
.ind-stat{
  position: relative;
  padding: 22px 20px 18px;
  border: 1px solid rgba(20,20,43,.08);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.98), rgba(246,247,255,.94)),
    radial-gradient(circle at 100% 0, rgba(110,33,254,.08), transparent 48%);
  box-shadow: 0 14px 36px rgba(26,26,46,.05);
  overflow: hidden;
}
.ind-stat::after{
  content: "";
  position: absolute;
  right: -18%;
  top: -40%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,33,254,.10), transparent 70%);
  pointer-events: none;
}
.ind-stat .ind-stat-label{
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  font: 650 11px/1.2 var(--font-sans, "Sora","Noto Sans SC",sans-serif);
  letter-spacing: .04em;
  color: #7a7f8c;
  text-transform: uppercase;
}
.ind-stat .ind-stat-value{
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-display, "Sora","Noto Sans SC",sans-serif);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: #14142b;
}
.ind-stat .ind-stat-hint{
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #8a8f9c;
}

/* ---- Board cards (first batch) ---- */
.ind-card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 4px 0 0;
}
.ind-card{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 188px;
  padding: 22px 20px 18px;
  border: 1px solid rgba(20,20,43,.08);
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.98), rgba(246,247,255,.94)),
    radial-gradient(circle at 100% 0, rgba(110,33,254,.10), transparent 46%);
  box-shadow: 0 18px 48px rgba(26,26,46,.06);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .24s cubic-bezier(.2,.7,.2,1), box-shadow .24s ease, border-color .24s ease;
}
.ind-card::after{
  content: "";
  position: absolute;
  right: -20%;
  top: -30%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,33,254,.12), transparent 70%);
  pointer-events: none;
}
.ind-card:hover{
  transform: translateY(-4px);
  border-color: rgba(110,33,254,.28);
  box-shadow: 0 28px 60px rgba(77,8,207,.14);
  color: inherit;
  text-decoration: none;
}
.ind-card-top{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ind-card-name{
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display, "Sora","Noto Sans SC",sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #14142b;
}
.ind-card-metric{
  position: relative;
  z-index: 1;
  margin-top: auto;
}
.ind-card-metric .ind-big{
  display: block;
  font-family: var(--font-display, "Sora","Noto Sans SC",sans-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: #6E21FE;
}
.ind-card-metric .ind-big-label{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #7a7f8c;
}
.ind-card-meta{
  position: relative;
  z-index: 1;
  font-size: 12.5px;
  line-height: 1.55;
  color: #575B66;
}
.ind-card-cta{
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 650;
  color: #5b34d6;
}

/* ---- Pill badges ---- */
.ind-pill{
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font: 650 11px/1.4 var(--font-sans, "Sora","Noto Sans SC",sans-serif);
  letter-spacing: .02em;
  white-space: nowrap;
}
.ind-pill-first{
  color: #4D08CF;
  background: rgba(110,33,254,.10);
  border: 1px solid rgba(110,33,254,.16);
}
.ind-pill-grade{
  color: #fff;
  min-width: 2.2em;
  justify-content: center;
}
.ind-pill-grade.ind-g-A{ background: #238636; }
.ind-pill-grade.ind-g-B{ background: #6366f1; }
.ind-pill-grade.ind-g-C{ background: #d29922; }
.ind-pill-grade.ind-g-D{ background: #da3633; }
.ind-pill-grade.ind-g-F,
.ind-pill-grade.ind-g-unknown{ background: #8a8f9c; }

/* ---- All-industries table ---- */
.ind-table-wrap{
  margin-top: 4px;
  border: 1px solid rgba(20,20,43,.08);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 36px rgba(26,26,46,.04);
}
.ind-table-wrap .table-scroll{
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.ind-table-wrap .reports-table{
  margin: 0;
}
.ind-table-wrap .reports-table th{
  background: rgba(247,246,255,.9);
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #7a7f8c;
}
.ind-table-wrap .reports-table td,
.ind-table-wrap .reports-table th{
  padding: 14px 16px;
}
.ind-table-wrap .reports-table a{
  color: #14142b;
  font-weight: 650;
  text-decoration: none;
}
.ind-table-wrap .reports-table a:hover{
  color: #5b34d6;
  text-decoration: underline;
}
.ind-mobile-cards{ display: none; }
.ind-mobile-card{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(20,20,43,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  text-decoration: none;
  color: inherit;
}
.ind-mobile-card:hover{ border-color: rgba(110,33,254,.28); color: inherit; }
.ind-mobile-card strong{ font-size: 1rem; }
.ind-mobile-card .ind-mobile-meta{
  font-size: 12.5px;
  color: #575B66;
}

/* ---- Grade bars ---- */
.ind-grade-list{
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px 22px;
  border: 1px solid rgba(20,20,43,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 32px rgba(26,26,46,.04);
}
.ind-grade-row{
  display: grid;
  grid-template-columns: 52px 1fr 48px;
  gap: 12px;
  align-items: center;
}
.ind-grade-bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(20,20,43,.06);
  overflow: hidden;
}
.ind-grade-fill{
  height: 100%;
  border-radius: inherit;
  min-width: 0;
  transition: width .35s ease;
}
.ind-grade-fill.ind-g-A{ background: #238636; }
.ind-grade-fill.ind-g-B{ background: #6366f1; }
.ind-grade-fill.ind-g-C{ background: #d29922; }
.ind-grade-fill.ind-g-D{ background: #da3633; }
.ind-grade-count{
  text-align: right;
  font: 650 13px/1 var(--font-mono, ui-monospace, monospace);
  color: #4a4f5c;
}
.ind-empty{
  margin: 0;
  padding: 20px 22px;
  border: 1px dashed rgba(20,20,43,.12);
  border-radius: 16px;
  color: #7a7f8c;
  font-size: 14px;
}

/* ---- Domain sample cards ---- */
.ind-domain-cols{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ind-domain-panel{
  padding: 18px 18px 14px;
  border: 1px solid rgba(20,20,43,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 32px rgba(26,26,46,.04);
}
.ind-domain-panel h3{
  margin: 0 0 14px;
  font-size: 0.95rem;
  letter-spacing: -.01em;
  color: #14142b;
}
.ind-domain-list{
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ind-domain-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(20,20,43,.06);
  background: rgba(247,246,255,.55);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, background .2s ease;
}
.ind-domain-item:hover{
  border-color: rgba(110,33,254,.22);
  background: rgba(247,246,255,.95);
  color: inherit;
  text-decoration: none;
}
.ind-domain-item .ind-dom-name{
  font-size: 13.5px;
  font-weight: 650;
  word-break: break-all;
  color: #14142b;
}
.ind-domain-item .ind-dom-score{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font: 700 14px/1 var(--font-display, "Sora","Noto Sans SC",sans-serif);
  letter-spacing: -.02em;
  color: #3d4150;
}

/* ---- Article cards ---- */
.ind-article-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.ind-article-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(20,20,43,.08);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.98), rgba(246,247,255,.94));
  box-shadow: 0 12px 28px rgba(26,26,46,.04);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ind-article-card:hover{
  transform: translateY(-3px);
  border-color: rgba(110,33,254,.24);
  box-shadow: 0 20px 40px rgba(77,8,207,.10);
  color: inherit;
  text-decoration: none;
}
.ind-article-card .ind-article-title{
  margin: 0;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.55;
  color: #14142b;
}
.ind-article-card .ind-article-time{
  margin-top: auto;
  font-size: 12px;
  color: #8a8f9c;
}

/* ---- Whitepaper cover card ---- */
.wp-cover-grid{
  display: grid;
  gap: 16px;
}
.wp-cover-card{
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px 28px 24px;
  border: 1px solid rgba(20,20,43,.08);
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(255,255,255,.98), rgba(246,247,255,.94)),
    radial-gradient(circle at 100% 0, rgba(110,33,254,.12), transparent 42%);
  box-shadow: 0 20px 50px rgba(26,26,46,.07);
  overflow: hidden;
}
.wp-cover-card::after{
  content: "";
  position: absolute;
  right: -12%;
  top: -30%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,33,254,.14), transparent 70%);
  pointer-events: none;
}
.wp-cover-kicker{
  position: relative;
  z-index: 1;
  font: 700 11px/1 var(--font-mono, ui-monospace, monospace);
  letter-spacing: .16em;
  color: #6E21FE;
  text-transform: uppercase;
}
.wp-cover-card h2{
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display, "Sora","Noto Sans SC",sans-serif);
  font-size: 1.45rem;
  letter-spacing: -.03em;
  color: #14142b;
}
.wp-cover-card p{
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 60ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: #575B66;
}
.wp-chip-row{
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wp-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(110,33,254,.08);
  border: 1px solid rgba(110,33,254,.12);
  font-size: 12.5px;
  font-weight: 650;
  color: #3a2a6e;
}
.wp-chip strong{
  font-family: var(--font-display, "Sora","Noto Sans SC",sans-serif);
  color: #6E21FE;
}
.wp-cover-actions{
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* ---- Whitepaper article body ---- */
.wp-article{
  max-width: 760px;
  margin: 0 auto;
}
.wp-article .ind-section > h2{
  margin-top: 0;
}
.wp-quote-stat{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 8px 0 0;
}
.wp-quote-stat .ind-stat .ind-stat-value{
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}
.wp-prose{
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #3d4150;
}
.wp-prose + .wp-prose{ margin-top: 12px; }
.wp-list{
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.wp-list li{
  position: relative;
  padding: 12px 14px 12px 34px;
  border-radius: 12px;
  border: 1px solid rgba(20,20,43,.06);
  background: rgba(255,255,255,.72);
  font-size: 14.5px;
  line-height: 1.7;
  color: #3d4150;
}
.wp-list li::before{
  content: attr(data-n);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 18px;
  font: 700 12px/1.4 var(--font-mono, ui-monospace, monospace);
  color: #6E21FE;
}
.wp-list.wp-list-bullet li::before{
  content: "";
  top: 1.15em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6E21FE;
  opacity: .55;
}
.wp-first-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.wp-link-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 8px;
}
.wp-link-row a{
  font-weight: 650;
  color: #5b34d6;
  text-decoration: none;
}
.wp-link-row a:hover{ text-decoration: underline; }

/* ---- Dark theme soft overrides ---- */
html[data-theme="dark"] .page-shell.ind-page .page-hero h1,
html[data-theme="dark"] .page-shell.wp-page .page-hero h1,
body.dark-pro .page-shell.ind-page .page-hero h1,
body.dark-pro .page-shell.wp-page .page-hero h1,
html:not([data-theme="light"]) .dark-ready .page-shell.ind-page .ind-section > h2{
  color: inherit;
}
html[data-theme="dark"] .ind-section > h2,
html[data-theme="dark"] .ind-card-name,
html[data-theme="dark"] .ind-stat .ind-stat-value,
html[data-theme="dark"] .ind-domain-panel h3,
html[data-theme="dark"] .ind-article-card .ind-article-title,
html[data-theme="dark"] .wp-cover-card h2,
html[data-theme="dark"] .ind-domain-item .ind-dom-name,
body.dark-pro .ind-section > h2,
body.dark-pro .ind-card-name,
body.dark-pro .ind-stat .ind-stat-value,
body.dark-pro .ind-domain-panel h3,
body.dark-pro .ind-article-card .ind-article-title,
body.dark-pro .wp-cover-card h2,
body.dark-pro .ind-domain-item .ind-dom-name{
  color: var(--t1, #e8e6f0);
}
html[data-theme="dark"] .ind-stat,
html[data-theme="dark"] .ind-card,
html[data-theme="dark"] .ind-callout,
html[data-theme="dark"] .ind-callout-block,
html[data-theme="dark"] .ind-grade-list,
html[data-theme="dark"] .ind-domain-panel,
html[data-theme="dark"] .ind-article-card,
html[data-theme="dark"] .ind-table-wrap,
html[data-theme="dark"] .wp-cover-card,
html[data-theme="dark"] .wp-list li,
body.dark-pro .ind-stat,
body.dark-pro .ind-card,
body.dark-pro .ind-callout,
body.dark-pro .ind-callout-block,
body.dark-pro .ind-grade-list,
body.dark-pro .ind-domain-panel,
body.dark-pro .ind-article-card,
body.dark-pro .ind-table-wrap,
body.dark-pro .wp-cover-card,
body.dark-pro .wp-list li{
  background: var(--card-bg, rgba(255,255,255,.04));
  border-color: var(--border, rgba(255,255,255,.08));
  box-shadow: none;
}
html[data-theme="dark"] .ind-callout li,
html[data-theme="dark"] .ind-section > .ind-section-lead,
html[data-theme="dark"] .ind-card-meta,
html[data-theme="dark"] .wp-prose,
html[data-theme="dark"] .wp-cover-card p,
body.dark-pro .ind-callout li,
body.dark-pro .ind-section > .ind-section-lead,
body.dark-pro .ind-card-meta,
body.dark-pro .wp-prose,
body.dark-pro .wp-cover-card p{
  color: var(--t2, #a8a4b8);
}
html[data-theme="dark"] .ind-grade-bar,
body.dark-pro .ind-grade-bar{
  background: rgba(255,255,255,.08);
}
html[data-theme="dark"] .ind-domain-item,
body.dark-pro .ind-domain-item{
  background: rgba(255,255,255,.03);
  border-color: var(--border, rgba(255,255,255,.08));
}
html[data-theme="dark"] .ind-table-wrap .reports-table th,
body.dark-pro .ind-table-wrap .reports-table th{
  background: rgba(255,255,255,.04);
  color: var(--t2, #a8a4b8);
}
html[data-theme="dark"] .ind-table-wrap .reports-table a,
body.dark-pro .ind-table-wrap .reports-table a{
  color: var(--t1, #e8e6f0);
}

/* ---- Responsive ---- */
@media (max-width: 900px){
  .ind-stat-strip{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-domain-cols{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .page-shell.ind-page .page-hero h1,
  .page-shell.wp-page .page-hero h1{ max-width: none; }
  .ind-stat-strip{ grid-template-columns: 1fr 1fr; gap: 10px; }
  .ind-stat{ padding: 16px 14px 14px; }
  .ind-grade-row{ grid-template-columns: 44px 1fr 40px; gap: 8px; }
  .ind-desktop-table{ display: none; }
  .ind-mobile-cards{
    display: grid;
    gap: 10px;
  }
  .wp-cover-card{ padding: 22px 18px 18px; }
}
