.teori-path {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 2.5rem;
}

.teori-path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  counter-reset: teori-step;
}

.teori-path-list li {
  counter-increment: teori-step;
}

.teori-path-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 32, 51, 0.72);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.teori-path-list a:hover {
  border-color: rgba(61, 214, 198, 0.4);
  background: rgba(61, 214, 198, 0.06);
  text-decoration: none;
}

.teori-path-list a::before {
  content: counter(teori-step);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(61, 214, 198, 0.15);
  color: var(--accent);
}

.teori-path-list strong {
  display: block;
  font-size: 0.98rem;
}

.teori-path-list span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 0.15rem;
}

.teori-path-list .arrow {
  color: var(--accent);
  font-weight: 700;
}

.teori-fags {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 2rem;
}

.teori-fag {
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
}

.teori-fag h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.teori-fag p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.teori-lesson {
  display: grid;
  gap: 1.35rem;
  max-width: 880px;
}

.teori-lesson h2 {
  margin: 0.5rem 0 0.4rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.teori-lesson h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.05rem;
}

.teori-lesson p,
.teori-lesson li {
  color: var(--text);
  line-height: 1.65;
}

.teori-lesson p {
  margin: 0 0 0.75rem;
}

.teori-lesson ul,
.teori-lesson ol {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}

.teori-figure {
  margin: 0.4rem 0 1rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.teori-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.teori-figure figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.teori-callout {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(61, 214, 198, 0.28);
  background: rgba(61, 214, 198, 0.07);
  margin: 0.5rem 0 1rem;
}

.teori-callout p {
  margin: 0;
  font-size: 0.92rem;
}

.teori-ms,
.teori-try {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 32, 51, 0.65);
}

.teori-ms h2,
.teori-try h2 {
  margin: 0;
  font-size: 1rem;
}

.teori-ms ul,
.teori-try ul {
  margin: 0;
}

.teori-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.teori-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.teori-nav-lessons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.teori-table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.teori-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.teori-table th,
.teori-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.teori-table th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-weight: 600;
}

.teori-table tr:last-child td {
  border-bottom: none;
}

.teori-code {
  margin: 0.4rem 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #071018;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #d7e6f5;
  white-space: pre;
}

.teori-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.teori-brand-row img {
  width: 36px;
  height: 36px;
}

.teori-attr {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.teori-attr a {
  color: var(--accent);
}
