@charset "UTF-8";
.si {
  padding: 18px;
}

.si-empty,
.si-emptyState {
  border-radius: 12px;
  color: var(--text);
}

.si-empty {
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: 14px;
}

.si-emptyState {
  padding: 14px;
  background-color: var(--bg);
  border: 1px dashed var(--border);
  font-size: 12px;
}

/* HERO */
.si-hero {
  margin-bottom: 18px;
}

.si-heroCard {
  background-color: var(--panel);
  background-image: url("/assets/img/banner.png");
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 38px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.si-heroTitle {
  margin: 0 0 10px 0;
  font-size: 60px;
  font-weight: 700;
  color: #E31937;
}

.si-heroBody {
  margin: 0 0 16px 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
  max-width: 70ch;
}

.si-heroActions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.si-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.si-btn.is-outline {
  background: var(--bg);
  border-color: #a78bfa;
  color: #4b2fbf;
}

.si-btn.is-outline:hover {
  background: #f5f3ff;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.18);
}

.si-btn.is-primary {
  background: #4b2fbf;
  border-color: #4b2fbf;
  color: #fff;
}

/* PANEL */
.si-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
  overflow: hidden;
}

.si-panelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.si-panelTitle {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.si-panelRight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.si-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  min-width: 240px;
}

.si-searchIcon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(100, 116, 139, 0.35);
  position: relative;
}

.si-searchIcon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: rgba(100, 116, 139, 0.35);
  right: -5px;
  bottom: -1px;
  transform: rotate(45deg);
  border-radius: 2px;
}

.si-search input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 12px;
  color: var(--text);
  background-color: var(--bg);
}

.si-advanced {
  font-size: 11px;
  color: #4b2fbf;
  text-decoration: none;
  font-weight: 700;
}

/* SECTIONS */
.si-sub {
  padding: 12px 16px 16px;
}

.si-sub + .si-sub {
  border-top: 1px solid var(--border);
}

.si-subTitle {
  font-size: 10px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 10px;
}

.si-subMeta {
  margin-left: 8px;
  font-weight: 700;
  color: var(--muted);
}

/* GRID */
.si-grid {
  display: grid;
  gap: 14px;
}

.si-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.si-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* CARD */
.si-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}

.si-cardImg {
  position: relative;
  height: 150px;
  background: #f3f4f6;
}

.si-cardThumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}

.si-cardInfo {
  padding: 10px 12px 12px;
  cursor: pointer;
}

.si-cardLink {
  display: block;
  text-decoration: none;
  color: inherit;
}

.si-cardTitle {
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
}

.si-cardMeta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}

.si-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(100, 116, 139, 0.12);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* PAGER */
.si-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.si-pagerBtn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
}

.si-pagerBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.si-pagerInfo {
  font-size: 13px;
  color: var(--muted);
}

/* VIEWER HEADER */
.si-viewTop {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  margin-bottom: 10px;
}

.si-viewBack {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
}

.si-viewHeading {
  flex: 1;
  min-width: 0;
}

.si-viewTitle {
  font-weight: 800;
  font-size: 22px;
}

.si-viewSub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.si-viewLink {
  color: var(--brand1);
  text-decoration: none;
}

.si-viewLink:hover {
  text-decoration: underline;
}

.si-viewActions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

/* TABS */
.si-tabs {
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  margin-top: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.si-tabs::-webkit-scrollbar {
  height: 0;
  width: 0;
}

.si-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text);
}

.si-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  background: var(--brand1);
}

/* DOC FRAME (single-scroll: DO NOT set height, DO NOT set overflow) */
.si-docFrame {
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 12px;
  background: var(--surface, #fff);
  padding: 18px;
}

/* DOC CONTENT CARD */
.si-docHtml {
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 18px;
  padding: 28px 30px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}
.si-docHtml h1, .si-docHtml h2, .si-docHtml h3, .si-docHtml p, .si-docHtml li {
  color: var(--text);
}

.si-docHtml h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.si-docHtml h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

.si-docHtml h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 22px 0 10px;
}

.si-docHtml p {
  margin: 10px 0;
}

.si-docHtml ul,
.si-docHtml ol {
  margin: 10px 0 10px 20px;
}

.si-docHtml li {
  margin: 6px 0;
}

.si-docHtml a {
  color: var(--brand1);
  text-decoration: none;
}

.si-docHtml a:hover {
  text-decoration: underline;
}

.si-docHtml img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* TABLES */
.si-docHtml table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.si-docHtml th,
.si-docHtml td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.si-docHtml tr:last-child td {
  border-bottom: 0;
}

.si-docHtml th {
  background: #f6f7fb;
  font-weight: 600;
}

/* CODE */
.si-docHtml code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  background: #f3f4f6;
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 8px;
}

.si-docHtml pre {
  margin: 14px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: #0f1115;
  color: #e6e6e6;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: auto;
}

.si-docHtml pre code {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.6;
  display: block;
  white-space: pre;
}

/* BLOCKQUOTE */
.si-docHtml blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 4px solid var(--brand1);
  background: #f7f8ff;
  border-radius: 10px;
}

.si-viewActions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Generate TSD button — gradient with sparkle feel */
.si-btn--generate {
  color: #fff;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  border-color: transparent;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
}

.si-btn--generate:hover:not(:disabled) {
  opacity: 0.92;
  box-shadow: 0 4px 16px rgba(75, 47, 191, 0.28);
}

.si-btn--generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Download-ready button — solid success green */
.si-btn--download {
  color: #fff;
  background: #16a34a;
  border-color: #16a34a;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.si-btn--download:hover {
  background: #15803d;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

/* Spin animation for Loader2 icon */
@keyframes si-spin {
  to {
    transform: rotate(360deg);
  }
}
.si-spin {
  animation: si-spin 0.7s linear infinite;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .si-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .si-panelHeader {
    flex-direction: column;
    align-items: stretch;
  }
  .si-panelRight {
    width: 100%;
    justify-content: space-between;
  }
  .si-search {
    min-width: 0;
    width: 100%;
  }
  .si-grid-2,
  .si-grid-3 {
    grid-template-columns: 1fr;
  }
  .si-docHtml {
    padding: 18px 16px;
  }
}
.si-cardMedia {
  width: 100%;
  height: 100%;
}

.si-cardThumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

html.theme-dark .si-cardInfo {
  background: var(--panel) !important;
  border-color: var(--border) !important;
}

html.theme-dark .si-cardMeta {
  color: white;
}

.si-folderIcon {
  width: 16px;
  height: 16px;
  display: flex;
  flex: 0 0 auto;
  color: currentColor;
}

html.theme-dark .si-folderIcon {
  color: #fff;
}

html.theme-dark .si-viewTop,
html.theme-dark .si-docFrame {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .si-docHtml {
  color: black;
}

html.theme-dark .si-docHtml a {
  color: #9f8bff;
}

html.theme-dark .si-viewBack {
  color: Black;
}

/* Dark mode: make tab text white */
:root[data-theme=dark] .si-tab,
html[data-theme=dark] .si-tab,
body.dark .si-tab,
body.theme-dark .si-tab,
body[data-theme=dark] .si-tab,
body[data-mode=dark] .si-tab {
  color: rgba(255, 255, 255, 0.92);
}

/* Optional: active tab stronger */
:root[data-theme=dark] .si-tab.is-active,
html[data-theme=dark] .si-tab.is-active,
body.dark .si-tab.is-active,
body.theme-dark .si-tab.is-active,
body[data-theme=dark] .si-tab.is-active,
body[data-mode=dark] .si-tab.is-active {
  color: #fff;
}

.si-metaItem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
}

.si-metaIcon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: currentColor;
}

/* Dark mode */
html.theme-dark .si-metaItem,
html.theme-dark .si-viewLink {
  color: rgba(255, 255, 255, 0.9);
}

/*# sourceMappingURL=solutionsandinsights.css.map */