﻿.gt-topic-layout {
  gap: 18px;
}

.gt-topic-head {
  background:
    radial-gradient(circle at 12% 0%, rgba(76, 131, 240, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.92));
}

.gt-deep-dive {
  display: grid;
  gap: 16px;
}

.gt-hero,
.gt-band {
  border: 1px solid rgba(190, 202, 222, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(29, 54, 93, 0.08);
}

.gt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.gt-hero h2 {
  margin: 6px 0 10px;
  color: #111827;
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  letter-spacing: 0;
}

.gt-hero p,
.gt-band p {
  margin: 0;
  color: #667085;
  line-height: 1.75;
}

.gt-mini-map {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(190, 202, 222, 0.75);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f6f9ff);
}

.gt-mini-map span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-weight: 900;
}

.gt-mini-map i {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  font-style: normal;
  background: #4c83f0;
}

.gt-nav {
  position: sticky;
  top: 84px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(190, 202, 222, 0.72);
  border-radius: 16px;
  background: rgba(245, 249, 255, 0.92);
  backdrop-filter: blur(14px);
}

.gt-nav button,
.gt-card button,
.gt-quiz button,
.gt-action {
  min-height: 42px;
  border: 1px solid rgba(190, 202, 222, 0.9);
  border-radius: 12px;
  color: #1f2937;
  font-weight: 900;
  background: linear-gradient(180deg, #fff, #f7faff);
  box-shadow: 0 8px 18px rgba(29, 54, 93, 0.06);
  cursor: pointer;
}

.gt-nav button:hover,
.gt-card button:hover,
.gt-quiz button:hover,
.gt-action:hover {
  border-color: rgba(76, 131, 240, 0.7);
  color: #2f6ee9;
}

html[lang="en"] .gt-nav {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

html[lang="en"] .gt-nav button,
html[lang="en"] .gt-action,
html[lang="en"] .gt-card button,
html[lang="en"] .gt-quiz button {
  min-width: 0;
  padding: 8px 10px;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="en"] .gt-card strong,
html[lang="en"] .gt-step strong,
html[lang="en"] .gt-quiz h3 {
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.gt-band {
  padding: 20px;
  scroll-margin-top: 150px;
}

.gt-lab {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 16px;
}

.gt-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.gt-output {
  padding: 14px 16px;
  border: 1px solid rgba(190, 202, 222, 0.8);
  border-radius: 14px;
  color: #334155;
  font-weight: 900;
  line-height: 1.65;
  background: rgba(248, 251, 255, 0.95);
}

.gt-figure {
  width: 100%;
  min-height: 340px;
  border: 1px solid rgba(212, 222, 237, 0.9);
  border-radius: 16px;
  background:
    linear-gradient(rgba(76, 131, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 131, 240, 0.05) 1px, transparent 1px),
    #fff;
  background-size: 32px 32px;
}

.gt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.gt-card,
.gt-quiz article {
  display: grid;
  gap: 10px;
  min-height: 158px;
  padding: 16px;
  border: 1px solid rgba(190, 202, 222, 0.76);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
}

.gt-card strong {
  color: #111827;
  font-size: 1.05rem;
}

.gt-card span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #2f6ee9;
  font-size: 0.78rem;
  font-weight: 950;
  background: rgba(76, 131, 240, 0.12);
}

.gt-card p {
  color: #667085;
}

.gt-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.gt-step {
  padding: 16px;
  border: 1px solid rgba(190, 202, 222, 0.76);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f7faff);
}

.gt-step b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: #fff;
  background: #4c83f0;
}

.gt-quiz {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.gt-quiz-options {
  display: grid;
  gap: 8px;
}

.gt-quiz button.is-correct {
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.5);
  background: rgba(20, 184, 166, 0.12);
}

.gt-quiz button.is-wrong {
  color: #b42318;
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.1);
}


