/* Melola MOOC: Stat's layout with its own accent (ADR 0037). The colour is provisional until the logo and
   colours are chosen (ADR 0037, pertanyaan terbuka). */
.mooc {
  --stat-accent: #c2410c;
  --stat-accent-soft: #ffedd5;
}

.topbar--mooc { border-bottom: 3px solid var(--stat-accent); }
.mooc-nav { display: flex; gap: 14px; margin-left: 12px; }
.mooc-nav a { color: #dbe6f3; font-size: 0.9rem; text-decoration: none; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.mooc-nav a:hover { color: #fff; }
.mooc-nav a[aria-current='page'] { color: #fff; border-bottom-color: var(--stat-accent); }

.mooc-icon { flex: 0 0 auto; vertical-align: -3px; }
.mooc-icon--selesai { color: var(--green); }

/* Catalogue. */
.mooc-section { margin-top: 40px; }
.mooc-section__title { margin: 0 0 16px; font-size: 1.3rem; }
.mooc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mooc-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--stat-accent); border-radius: var(--radius-md); background: var(--surface); }
.mooc-card__eyebrow { margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--stat-accent); text-transform: uppercase; letter-spacing: 0.02em; }
.mooc-card__title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.mooc-card__title a { color: var(--ink); text-decoration: none; }
.mooc-card__title a:hover { color: var(--link); text-decoration: underline; }
.mooc-card__subtitle, .mooc-card__people, .mooc-card__progress { margin: 0; color: var(--ink-muted); font-size: 0.92rem; }
.mooc-card .btn { align-self: flex-start; margin-top: auto; }
.mooc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mooc-tags li { padding: 2px 10px; border-radius: 999px; background: var(--stat-accent-soft); color: var(--stat-accent); font-size: 0.78rem; font-weight: 600; }
.mooc-tags .mooc-tags__review { background: #fef3c7; color: #92400e; }
.mooc-tags .mooc-tags__done { background: #dcfce7; color: var(--green); }
.mooc-card--program { border-top-color: var(--navy-800); }
.mooc-mastered { color: var(--green); font-weight: 700; }
.mooc-program__eyebrow { margin: 8px 0 0; font-size: 0.82rem; font-weight: 700; color: var(--caption); text-transform: uppercase; letter-spacing: 0.03em; }
.mooc-path { margin: 0; padding: 0; list-style: none; }
.mooc-path__level { position: relative; padding: 0 0 24px 22px; border-left: 3px solid var(--line); }
.mooc-path__level::before { content: ''; position: absolute; left: -9px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--stat-accent); }
.mooc-path__label { margin: 0 0 10px; font-weight: 600; }
.mooc-path__label span { margin-right: 6px; font-size: 0.8rem; font-weight: 700; color: var(--stat-accent); text-transform: uppercase; }
.mooc-tags--skills li { background: #eef2f7; color: var(--ink); font-weight: 500; }

.mooc-people { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.mooc-people li { display: flex; align-items: center; gap: 8px; }
.mooc-people img { flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #eef2f7; }
.mooc-people__org { color: var(--ink-muted); }
.mooc-people--hero { margin: 0 0 20px; color: #fff; }
.mooc-people--hero a { color: #fff; font-weight: 600; }
.mooc-people--hero .mooc-people__org { color: var(--caption); }

.mooc-meter { height: 8px; border-radius: 999px; background: #e5e9ef; overflow: hidden; }
.mooc-meter span { display: block; height: 100%; border-radius: 999px; background: var(--green); }

/* Course page: a hero with the one action, facts, then about, syllabus, instructors and questions. */
.mooc-hero { background: var(--navy-900); color: #fff; }
.mooc-hero__inner { max-width: 1040px; margin: 0 auto; padding: 32px 16px 36px; }
.mooc-hero .mooc-crumbs a { color: var(--caption); }
.mooc-hero__title { margin: 8px 0; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; max-width: 760px; }
.mooc-hero__subtitle { margin: 0 0 12px; max-width: 720px; font-size: 1.1rem; color: var(--caption); }
.mooc-hero__people { margin: 0 0 20px; color: var(--caption); }
.mooc-hero__people a { color: #fff; }
.mooc-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mooc-hero__actions .btn { flex: 0 0 auto; }
.mooc-hero__actions .btn--primary { background: var(--stat-accent); border-color: var(--stat-accent); }
.mooc-hero__hint { margin: 0; color: var(--caption); font-size: 0.9rem; }
.mooc-hero__hint a, .mooc-hero .mooc-done { color: #fff; }
.mooc-crumbs { margin: 0; font-size: 0.85rem; color: var(--ink-muted); }
.mooc-crumbs a { color: var(--link); }
.mooc-review { display: inline-block; margin: 8px 0 0; padding: 3px 12px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 0.82rem; font-weight: 600; }
.mooc-review--inline { margin: 0 0 16px; }

.mooc-facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.mooc-facts__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; padding: 18px 16px; list-style: none; }
.mooc-facts strong { display: block; font-size: 1rem; }
.mooc-facts span { font-size: 0.85rem; color: var(--ink-muted); }

.mooc-course { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px 64px; }
.mooc-anchors { position: sticky; top: 0; z-index: 2; display: flex; gap: 20px; margin: 0 -16px 24px; padding: 12px 16px; background: var(--page); border-bottom: 1px solid var(--line); overflow-x: auto; }
.mooc-anchors a { color: var(--ink); font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.mooc-anchors a:hover { color: var(--link); }
.mooc-course__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.mooc-block { margin-bottom: 32px; scroll-margin-top: 64px; }
.mooc-block h2 { margin: 0 0 12px; font-size: 1.35rem; }
.mooc-block h3 { margin: 20px 0 8px; font-size: 1.05rem; }
.mooc-block > p { color: var(--ink); line-height: 1.6; }
.mooc-learn { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.mooc-learn h3 { margin-top: 0; }
.mooc-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.mooc-checks li { position: relative; padding-left: 26px; line-height: 1.5; }
.mooc-checks li::before { content: '✓'; position: absolute; left: 4px; color: var(--green); font-weight: 700; }

.mooc-module { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mooc-module summary { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: baseline; padding: 14px 16px; cursor: pointer; list-style: none; }
.mooc-module summary::-webkit-details-marker { display: none; }
.mooc-module summary::after { content: '▾'; grid-column: 3; grid-row: 1; color: var(--ink-muted); transition: transform 0.15s; }
.mooc-module[open] summary::after { transform: rotate(180deg); }
.mooc-module__number { font-size: 0.8rem; font-weight: 700; color: var(--stat-accent); text-transform: uppercase; }
.mooc-module__title { font-weight: 600; }
.mooc-module__meta { grid-column: 2; font-size: 0.85rem; color: var(--ink-muted); }
.mooc-module__summary { margin: 0; padding: 0 16px 8px; color: var(--ink-muted); font-size: 0.92rem; }
.mooc-items { margin: 0; padding: 0 16px 12px; list-style: none; }
.mooc-items__row { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.mooc-items__row a { color: var(--link); }
.mooc-items__meta { grid-column: 2; font-size: 0.82rem; color: var(--ink-muted); }

.mooc-person { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.mooc-person__photo { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #eef2f7; }
.mooc-person__name { margin: 0; font-weight: 700; }
.mooc-person__org { margin: 0; font-weight: 600; color: var(--stat-accent); font-size: 0.92rem; }
.mooc-person__role { margin: 0 0 8px; color: var(--ink-muted); font-size: 0.9rem; }
.mooc-person p:last-child { margin-bottom: 0; }
.mooc-faq { border-bottom: 1px solid var(--line); }
.mooc-faq summary { padding: 12px 0; font-weight: 600; cursor: pointer; }
.mooc-faq p { margin: 0 0 12px; color: var(--ink-muted); }

.mooc-course__side { position: sticky; top: 64px; }
.mooc-side-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.mooc-side-card p { margin: 0; }
.mooc-side-card a:not(.btn) { color: var(--link); }
.mooc-side-card .btn { width: 100%; justify-content: center; text-align: center; }
.mooc-side-card .mooc-hero__hint, .mooc-side-card .mooc-hero__hint a { color: var(--ink-muted); }
.mooc-side-card__label { font-weight: 700; }
.mooc-side-card__facts { margin: 4px 0 0; padding-left: 1.1em; font-size: 0.88rem; color: var(--ink-muted); }

/* Course player: the item, and the course outline beside it (below it on a phone). */
.mooc-player { flex: 1; display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: 'bar bar' 'outline content'; width: 100%; max-width: 1240px; margin: 0 auto; }
.mooc-player__bar { grid-area: bar; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mooc-player__course { font-weight: 700; color: var(--ink); text-decoration: none; }
.mooc-player__course:hover { color: var(--link); }
.mooc-player__progress { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 0.85rem; color: var(--ink-muted); }
.mooc-player__progress .mooc-meter { width: 120px; }
.mooc-player__progress a, .mooc-player__jump { color: var(--link); font-size: 0.85rem; }
.mooc-player__jump { display: none; }

.mooc-outline { grid-area: outline; align-self: start; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 16px 12px 32px 16px; border-right: 1px solid var(--line); }
.mooc-outline__title { margin: 0 0 12px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--ink-muted); }
.mooc-outline__module { margin-bottom: 16px; }
.mooc-outline__module-title { margin: 0 0 6px; font-size: 0.9rem; font-weight: 600; }
.mooc-outline__module-title > span:first-child { display: block; font-size: 0.75rem; color: var(--stat-accent); text-transform: uppercase; }
.mooc-outline__count { margin-left: 4px; font-size: 0.75rem; font-weight: 500; color: var(--ink-muted); }
.mooc-outline ol { margin: 0; padding: 0; list-style: none; }
.mooc-outline__item a, .mooc-outline__soon { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; color: var(--ink); font-size: 0.88rem; text-decoration: none; line-height: 1.35; }
.mooc-outline__item a:hover { background: #eef2f7; }
.mooc-outline__item a[aria-current='page'] { background: var(--stat-accent-soft); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--stat-accent); }
.mooc-outline__soon { color: var(--ink-muted); font-size: 0.85rem; }
.mooc-outline__item--selesai a { color: var(--ink-muted); }

.mooc-content { grid-area: content; min-width: 0; max-width: 820px; padding: 24px 24px 64px; }
.mooc-content__title { margin: 4px 0 6px; font-size: 1.7rem; line-height: 1.25; }
.mooc-content__meta { display: flex; align-items: center; gap: 6px; margin: 0 0 16px; color: var(--ink-muted); font-size: 0.9rem; }
.mooc-content__done { color: var(--green); font-weight: 600; }
.mooc-join { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; padding: 14px 16px; border-left: 4px solid var(--stat-accent); border-radius: 8px; background: var(--stat-accent-soft); }
.mooc-join p { flex: 1 1 320px; margin: 0; }
.mooc-goals { margin-bottom: 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mooc-goals__title { margin: 0 0 6px; font-weight: 600; }
.mooc-goals ul { margin: 0; padding-left: 1.2em; }
.mooc-prose { line-height: 1.7; }
.mooc-prose pre { overflow-x: auto; padding: 12px 14px; border-radius: 8px; background: #0f172a; color: #e2e8f0; font-size: 0.85rem; line-height: 1.5; }
.mooc-prose code { font-size: 0.9em; }
.mooc-prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.mooc-prose th, .mooc-prose td { padding: 6px 10px; border: 1px solid var(--line); vertical-align: top; }
.mooc-prose th { background: #eef2f7; text-align: left; }
.mooc-prose blockquote { margin: 16px 0; padding: 12px 16px; border-left: 4px solid var(--stat-accent); border-radius: 0 8px 8px 0; background: var(--surface); }
.mooc-prose blockquote p { margin: 0 0 8px; }
.mooc-prose blockquote p:last-child { margin-bottom: 0; }
.mooc-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.mooc-pager form { margin: 0; }

/* Quiz results and SQL labs. */
.mooc-quiz, .mooc-lab { margin-top: 28px; }
.mooc-quiz__title { margin: 0 0 6px; font-size: 1.3rem; }
.mooc-result { display: flex; align-items: center; gap: 16px; margin: 12px 0 16px; padding: 14px 18px; border-radius: 12px; }
.mooc-result p { margin: 0; }
.mooc-result--pass { background: #dcfce7; }
.mooc-result--fail { background: #fef3c7; }
.mooc-result__score { font-size: 1.8rem; font-weight: 700; }
.mooc-graded { padding-left: 1.2em; }
.mooc-graded__row { margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.mooc-graded__row p { margin: 0 0 6px; }
.mooc-graded__row--right { border-left: 4px solid var(--green); }
.mooc-graded__row--wrong { border-left: 4px solid #b45309; }
.mooc-graded__question { font-weight: 600; }
.mooc-graded__feedback { color: var(--ink-muted); }

.mooc-lab__status { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: #eef2f7; font-size: 0.9rem; }
.mooc-task { margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mooc-task--right { border-left: 4px solid var(--green); }
.mooc-task__text { margin: 0 0 8px; }
.mooc-task__badge { margin-left: 6px; color: var(--green); font-weight: 600; font-size: 0.85rem; }
.mooc-task__query { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #0f172a; color: #e2e8f0; font: 0.9rem/1.5 ui-monospace, 'Cascadia Mono', Consolas, monospace; resize: vertical; }
.mooc-task__query:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.mooc-task__actions { display: flex; gap: 8px; margin-top: 8px; }
.mooc-task__feedback:not(:empty) { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #eef2f7; font-size: 0.9rem; }
.mooc-task__feedback--right { background: #dcfce7 !important; }
.mooc-task__feedback--wrong { background: #fef3c7 !important; }
.mooc-task__hint { margin-top: 8px; font-size: 0.9rem; }
.mooc-task__hint summary { cursor: pointer; color: var(--link); }
.mooc-task__result:not(:empty) { margin-top: 10px; }
.mooc-table { overflow-x: auto; }
.mooc-table table { border-collapse: collapse; font-size: 0.85rem; }
.mooc-table th, .mooc-table td { padding: 5px 10px; border: 1px solid var(--line); text-align: left; white-space: nowrap; }
.mooc-table th { background: #eef2f7; }
.mooc-table__null { color: var(--ink-muted); font-style: italic; }
.mooc-table__caption { margin: 0 0 4px; font-size: 0.8rem; color: var(--ink-muted); }
.stat-page .mooc-table table { width: 100%; background: var(--surface); }
.stat-page .mooc-table td { white-space: normal; }

@media (max-width: 520px) {
  .mooc-person { flex-direction: column; }
}

@media (max-width: 900px) {
  .mooc-nav { margin-left: 0; }
  .mooc-course__body { grid-template-columns: 1fr; }
  .mooc-course__side { position: static; grid-row: 1; }
  .mooc-player { grid-template-columns: 1fr; grid-template-areas: 'bar' 'content' 'outline'; }
  .mooc-player__jump { display: inline; }
  .mooc-player__progress { margin-left: 0; }
  .mooc-outline { position: static; max-height: none; border-right: 0; border-top: 1px solid var(--line); }
  .mooc-content { padding: 20px 16px 40px; }
}

/* Instructor review (apps.mooc.review): the button only instructors see, and the review page. */
.mooc-hero__actions .mooc-review-button { background: transparent; border: 1px solid #fef3c7; color: #fef3c7; }
.mooc-hero__actions .mooc-review-button:hover { background: #fef3c7; color: #92400e; }
.mooc-review-link { margin: 0 0 16px; font-size: 0.9rem; }
.mooc-approved { color: #166534; font-weight: 600; }
.mooc-review-page__status--ok { display: inline-block; padding: 6px 12px; border-radius: 8px; background: #dcfce7; color: #166534; font-weight: 600; }
.mooc-review-page__modules { padding-left: 1.2em; }
.mooc-review-page__modules > li { margin-bottom: 12px; }
.mooc-review-page__modules ul { margin: 4px 0 0; padding-left: 1.1em; }
.mooc-review-page__form { display: grid; gap: 8px; max-width: 640px; }
.mooc-review-page__form textarea { width: 100%; font: inherit; padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px; }
.mooc-review-page__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mooc-authors__title { margin: 16px 0 4px; font-size: 1rem; }
.mooc-authors { margin: 0 0 12px; padding-left: 1.2em; }

/* Spreadsheet labs and a session's downloads. */
.mooc-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 16px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); }
.mooc-upload label { font-weight: 600; }
.mooc-upload input[type=file] { max-width: 100%; }
.mooc-sheet-checks { margin: 0; padding: 0; list-style: none; }
.mooc-task--wrong { border-left: 4px solid #b45309; }
.mooc-task__badge--wrong { color: #b45309; }
.mooc-downloads { margin-top: 28px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mooc-downloads__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.05rem; }
.mooc-downloads ul { margin: 0; padding-left: 1.2em; }
.mooc-downloads li { margin: 4px 0; }
.mooc-downloads li .stat-hint { margin-left: 6px; font-size: 0.85rem; }

/* Kursus anak usia dini (ADR 0054): huruf besar, warna cerah, tombol besar, sedikit teks. */
.mooc--anak { background: #fffdf5; }
.tk-hero { background: linear-gradient(135deg, #fef3c7, #e0f2fe 55%, #dcfce7); border-bottom: 4px solid #fde68a; }
.tk-hero__inner { max-width: 1040px; margin: 0 auto; padding: 24px 16px 28px; }
.tk-hero__title { margin: 6px 0 8px; font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; color: #1e3a8a; letter-spacing: -0.01em; }
.tk-hero__subtitle { max-width: 640px; margin: 0 0 14px; font-size: 1.2rem; line-height: 1.5; }
.tk-hero__note { margin: 0 0 12px; }
.tk-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tk-hero__facts li { padding: 6px 14px; border-radius: 999px; background: #fff; border: 2px solid #bfdbfe; font-weight: 600; }
.tk-course { max-width: 1040px; margin: 0 auto; padding: 24px 16px 56px; }
.tk-course__heading { margin: 0 0 14px; font-size: 1.6rem; font-weight: 800; color: #1e3a8a; }
.tk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0 0 36px; padding: 0; list-style: none; }
.tk-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: 22px; border: 3px solid #fcd34d; background: #fffbeb; box-shadow: 0 5px 0 #fde68a; }
.tk-card--b { border-color: #93c5fd; background: #eff6ff; box-shadow: 0 5px 0 #bfdbfe; }
.tk-card--soon { opacity: 0.6; box-shadow: none; }
.tk-card__number { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #f59e0b; color: #fff; font-size: 1.4rem; font-weight: 800; }
.tk-card--b .tk-card__number { background: #3b82f6; }
.tk-card__title { margin: 4px 0 0; font-size: 1.3rem; font-weight: 800; }
.tk-card__summary { flex: 1; margin: 0; line-height: 1.45; }
.tk-card__play { align-self: flex-start; margin-top: 6px; padding: 12px 24px; min-height: 52px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 1.2rem; font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 #15803d; }
.tk-card__play:hover, .tk-card__play:focus-visible { background: #15803d; color: #fff; }
.tk-card__play:focus-visible { outline: 4px solid #f59e0b; outline-offset: 2px; }
.tk-card__soon { align-self: flex-start; margin-top: 6px; padding: 8px 16px; border-radius: 999px; background: #e5e7eb; font-weight: 700; }
.tk-adult { max-width: 760px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: #fff; line-height: 1.6; }
.tk-adult h2 { margin-top: 0; }
.tk-adult__privacy, .mooc--anak .tk-privasi { padding: 10px 14px; border-left: 4px solid #22c55e; border-radius: 0 8px 8px 0; background: #f0fdf4; }
.mooc--anak .mooc-content__title { font-size: clamp(1.8rem, 5vw, 2.4rem); color: #1e3a8a; }
.mooc--anak .tk-ajak { font-size: 1.3rem; line-height: 1.5; }
.mooc--anak .tk-pendamping { margin-top: 32px; padding: 18px 20px; border-radius: 16px; border: 2px dashed #a5b4fc; background: #f8fafc; font-size: 0.97rem; }
.mooc--anak .tk-pendamping h2 { margin-top: 0; font-size: 1.25rem; }

/* Kerangka permainan anak (apps/mooc/static/mooc/tk/tk.js, ADR 0054). */
.tk-main { --tk-ink: #1f2937; --tk-blue: #2563eb; margin: 16px 0 24px; padding: 0; border-radius: 24px; overflow: hidden; background: linear-gradient(#e0f2fe, #f0f9ff 60%, #dcfce7); border: 3px solid #bae6fd; color: var(--tk-ink); }
.tk-main svg { display: block; }
.tk-main button { font: inherit; color: var(--tk-ink); touch-action: manipulation; }
.tk-main button:focus-visible { outline: 4px solid #f59e0b; outline-offset: 2px; }
.tk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 0; }
.tk-levels { display: flex; gap: 6px; }
.tk-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1rem; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 3px solid #93c5fd; background: #fff; cursor: pointer; }
.tk-pill[aria-pressed="true"] { background: var(--tk-blue); border-color: var(--tk-blue); color: #fff; }
.tk-main .tk-pill[aria-pressed="true"] { color: #fff; }
.tk-pill svg { width: 20px; height: 20px; }
.tk-stars { display: flex; gap: 4px; }
.tk-stars svg { width: 28px; height: 28px; }
.tk-stage { position: relative; padding: 8px 12px 16px; text-align: center; }
.tk-sun { position: absolute; top: -6px; right: 10px; width: 64px; height: 64px; pointer-events: none; }
.tk-prompt { margin: 8px 64px 12px; font-size: 1.45rem; line-height: 1.35; font-weight: 800; min-height: 2.7em; display: flex; align-items: center; justify-content: center; }
.tk-play { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tk-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 12px; }
.tk-tile { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 88px; min-height: 88px; padding: 8px; border-radius: 20px; border: 4px solid #fbbf24; background: #fffbeb; cursor: pointer; box-shadow: 0 4px 0 #f59e0b; }
.tk-tile svg { width: 64px; height: 64px; }
.tk-tile strong { font-size: 2.4rem; line-height: 1; }
.tk-tile span { font-weight: 700; }
.tk-tile:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
.tk-tile--ok { border-color: #16a34a !important; box-shadow: 0 4px 0 #15803d !important; background: #f0fdf4 !important; opacity: 1 !important; }
.tk-tile--plain { border-color: transparent; background: transparent; box-shadow: none; }
.tk-tile--plain:hover { background: #ffffff80; }
.tk-baskets { display: flex; justify-content: center; align-items: flex-end; gap: 12px; flex-wrap: wrap; width: 100%; }
.tk-basket { position: relative; flex: 1 1 260px; max-width: 420px; margin: 0 auto; }
.tk-baskets--two .tk-basket { flex: 1 1 140px; max-width: 300px; }
.tk-fruits { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 4px; min-height: 76px; padding: 0 10px; }
.tk-basket-front { position: relative; z-index: 2; width: 100%; height: 64px; margin-top: -12px; pointer-events: none; }
.tk-fruit { position: relative; width: 68px; height: 68px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.tk-fruit svg { width: 100%; height: 100%; }
.tk-baskets--two .tk-fruit { width: 44px; height: 44px; }
.tk-baskets--two .tk-fruits { gap: 2px; min-height: 48px; padding: 0 4px; }
.tk-baskets--two .tk-basket-front { height: 52px; margin-top: 0; }
.tk-badge { position: absolute; top: -4px; right: -4px; min-width: 28px; height: 28px; padding: 0 4px; border-radius: 999px; background: var(--tk-blue); color: #fff; font-weight: 800; font-size: 1rem; line-height: 28px; border: 2px solid #fff; }
.tk-baskets--two .tk-badge { min-width: 22px; height: 22px; line-height: 22px; font-size: 0.8rem; top: -6px; right: -6px; }
.tk-tile.tk-choice svg { width: 64px; height: 16px; }
.tk-pick { font-size: 1.15rem; font-weight: 800; min-height: 56px; margin-top: 8px; padding: 8px 18px; border-radius: 16px; border: 4px solid #a78bfa; background: #f5f3ff; cursor: pointer; box-shadow: 0 4px 0 #8b5cf6; }
.tk-pick:disabled { opacity: 0.35; box-shadow: none; cursor: default; }
.tk-feedback { min-height: 2.2em; margin: 14px 8px 0; font-size: 1.3rem; font-weight: 800; }
.tk-feedback--yes { color: #15803d; }
.tk-feedback--try { color: #b45309; }
.tk-next { font-size: 1.3rem; font-weight: 800; min-height: 60px; margin-top: 10px; padding: 10px 28px; border-radius: 999px; border: 0; background: #16a34a; color: #fff !important; cursor: pointer; box-shadow: 0 5px 0 #15803d; }
.tk-grass { width: 100%; height: 26px; }
.tk-caption { padding: 8px 14px 12px; margin: 0; font-size: 0.85rem; color: var(--ink-muted, #64748b); background: #ecfdf5; }
.tk-burst { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.tk-burst svg { position: absolute; width: 34px; height: 34px; margin: -17px; animation: tk-fly 900ms ease-out forwards; }
.tk-done .tk-trophy { width: 140px; height: 140px; }
@keyframes tk-fly { from { transform: translate(0, 0) scale(0.4); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(160deg); opacity: 0; } }
@keyframes tk-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px) scale(1.08); } }
@keyframes tk-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.tk-hop { animation: tk-hop 380ms ease-out; }
.tk-shake { animation: tk-shake 300ms ease-in-out 2; }
@media (max-width: 480px) {
  .tk-prompt { margin: 8px 8px 12px; padding-top: 44px; font-size: 1.25rem; }
  .tk-sun { width: 52px; height: 52px; top: 0; right: auto; left: 50%; margin-left: -26px; }
  .tk-fruit { width: 56px; height: 56px; }
  .tk-baskets--two .tk-fruit { width: 34px; height: 34px; }
  .tk-tile { min-width: 76px; min-height: 80px; }
  .tk-tile svg { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-hop, .tk-shake, .tk-burst svg { animation: none; }
  .tk-burst { display: none; }
}
.tk-card-big { display: inline-flex; align-items: center; justify-content: center; min-width: 132px; min-height: 132px; padding: 10px; border-radius: 24px; background: #fff; border: 4px solid #c7d2fe; box-shadow: 0 5px 0 #a5b4fc; }
.tk-card-big svg { width: 120px; height: 120px; }
.tk-numeral { font-size: 5rem; font-weight: 800; line-height: 1; color: #1e3a8a; }
.tk-tile.tk-group svg { width: 132px; height: auto; }
.tk-tile.tk-free svg { width: auto; height: auto; }
.tk-lanes { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 380px; padding-left: 10px; border-left: 6px solid #f97316; }
.tk-tile.tk-lane { justify-content: flex-start; flex-direction: row; min-height: 64px; width: 100%; padding: 8px 10px; }
.tk-string { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px; padding: 6px 8px; background: linear-gradient(transparent 47%, #92400e 47%, #92400e 53%, transparent 53%); }
.tk-string svg { width: 44px; height: 44px; }
.tk-slot { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 3px dashed #64748b; background: #fff; font-size: 1.5rem; font-weight: 800; }
.tk-boxes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.tk-tile.tk-box { min-width: 100px; padding: 6px 8px 8px; }
.tk-tile.tk-box svg { width: 88px; height: 64px; }
.tk-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; min-height: 26px; max-width: 96px; }
.tk-tile.tk-box .tk-tray svg { width: 24px; height: 24px; }
.tk-tile.tk-sky { padding: 6px 6px 8px; }
.tk-tile.tk-sky svg { width: 96px; height: 72px; border-radius: 12px; }
@media (max-width: 480px) {
  .tk-tile.tk-group svg { width: 104px; }
  .tk-string { gap: 0; padding: 6px 2px; }
  .tk-string svg, .tk-slot { width: 30px; height: 30px; }
  .tk-slot { font-size: 1.1rem; border-width: 2px; }
  .tk-tile.tk-box { min-width: 92px; }
  .tk-tile.tk-box svg { width: 76px; height: 56px; }
  .tk-tile.tk-sky svg { width: 80px; height: 60px; }
  .tk-card-big svg { width: 100px; height: 100px; }
}
/* Penjelajah Kecil (ADR 0054) */
.tk-tank { position: relative; width: 220px; height: 165px; margin-top: 8px; }
.tk-tank__water { width: 100%; height: 100%; }
.tk-tank__thing { position: absolute; left: 50%; top: -14px; width: 64px; height: 64px; margin-left: -32px; transition: top 1.1s ease-in; }
.tk-tank__thing svg { width: 100%; height: 100%; }
.tk-tank__thing--float { top: 20px; transition-timing-function: cubic-bezier(.3, 1.6, .5, 1); }
.tk-tank__thing--sink { top: 92px; }
.tk-tile.tk-place svg { width: 96px; height: 72px; border-radius: 12px; }
.tk-beach { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; width: 100%; max-width: 460px; padding: 40px 10px 14px; border-radius: 18px; background: linear-gradient(#7dd3fc 0, #38bdf8 22%, #fde68a 22%, #fcd34d 100%); }
.tk-beach .tk-tile { min-width: 70px; min-height: 70px; background: #ffffffaa; border-width: 3px; box-shadow: none; }
.tk-beach .tk-tile svg { width: 52px; height: 52px; }
.tk-beach .tk-tile--gone { visibility: hidden; }
.tk-bag { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; }
.tk-bag svg { width: 44px; height: 44px; }
@media (max-width: 480px) {
  .tk-tile.tk-place svg { width: 76px; height: 57px; }
  .tk-beach .tk-tile { min-width: 60px; min-height: 60px; }
  .tk-beach .tk-tile svg { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .tk-tank__thing { transition: none; } }
/* Aku dan Perasaanku (ADR 0054) */
.tk-breath { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tk-breath__circle { width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(#f9a8d4, #f472b6); transform: scale(.7); transition: transform 2.8s ease-in-out; }
.tk-breath--in .tk-breath__circle { transform: scale(1.4); }
.tk-breath__word { margin: 18px 0 0; font-size: 1.5rem; font-weight: 800; color: #be185d; }
@media (prefers-reduced-motion: reduce) { .tk-breath__circle { transition: none; } }
/* Aku Bisa Membuat (ADR 0054) */
.tk-grid { display: grid; gap: 4px; width: 100%; padding: 6px; border-radius: 14px; background: #65a30d; }
.tk-grid__cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: #bbf7d0; }
.tk-grid__cell--path { background: #fef08a; }
.tk-grid__cell svg { width: 82%; height: 82%; }
.tk-arrows { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tk-tile.tk-arrow-btn { min-width: 64px; min-height: 64px; padding: 6px; }
.tk-tile.tk-arrow-btn svg { width: 48px; height: 48px; }
.tk-program { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 56px; width: 100%; max-width: 380px; padding: 6px 8px; border: 3px dashed #94a3b8; border-radius: 14px; background: #fff; }
.tk-program:empty::before { content: 'Susun panahmu di sini'; color: #94a3b8; font-weight: 700; margin: auto; }
.tk-program button { padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.tk-program svg { width: 40px; height: 40px; }
.tk-program .tk-program__step--now svg circle { fill: #f59e0b; }
.tk-program .tk-program__step--bad { outline: 4px solid #ef4444; outline-offset: 1px; }
.tk-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tk-tower { display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; height: 120px; transition: transform .8s ease-in; transform-origin: bottom center; }
.tk-tower--fall { transform: rotate(-35deg) translateY(10px); opacity: .5; }
.tk-tower span { display: block; height: 18px; margin-top: 2px; border-radius: 4px; border: 2px solid rgba(0, 0, 0, .25); }
@media (prefers-reduced-motion: reduce) { .tk-tower { transition: none; } }
.tk-trash svg { width: 40px; height: 40px; }
.tk-bin { display: flex; flex-direction: column; align-items: center; font-size: 1.3rem; }
.tk-bin svg { width: 56px; height: 56px; }
.tk-robot--hold { outline: 4px solid #fbbf24; }
.tk-hint { max-width: 360px; margin: 0; font-size: 0.95rem; color: #475569; }
.tk-speaker { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; }
/* Warna & Bunyi (ADR 0054) */
.tk-canvas { width: 100%; max-width: 560px; aspect-ratio: 3 / 2; border-radius: 14px; border: 4px solid #fbbf24; background: #fff; touch-action: none; cursor: crosshair; }
.tk-palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tk-swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #cbd5e1; cursor: pointer; }
.tk-swatch--on { box-shadow: 0 0 0 4px #1f2937; }
.tk-bell { padding: 0; border: 0; background: none; cursor: pointer; }
.tk-tile.tk-drum { min-width: 140px; min-height: 140px; }
.tk-tile.tk-drum svg { width: 120px; height: 120px; }
.tk-count { min-height: 1.6em; margin: 0; font-size: 1.6rem; letter-spacing: 4px; color: #ef4444; }
/* Numerasi SD (ADR 0054) */
.sd-line { display: flex; gap: 6px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 3px solid #93c5fd; }
.sd-line span { display: inline-grid; place-items: center; min-width: 52px; height: 52px; border-radius: 10px; background: #eff6ff; font-size: 1.5rem; font-weight: 800; color: #1e3a8a; }
.sd-line .sd-line__gap { background: #fff; border: 3px dashed #64748b; color: #64748b; }
.sd-sticks { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 6px; max-width: 360px; padding: 8px; border-radius: 12px; background: #fff; }
.sd-bundle svg { width: 30px; height: 64px; }
.sd-stick svg { width: 10px; height: 64px; }
.sd-objects { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 220px; }
.sd-objects svg { width: 34px; height: 34px; }
.sd-objects .sd-crossed { position: relative; opacity: .45; }
.sd-objects .sd-crossed::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; border-top: 4px solid #ef4444; transform: rotate(-35deg); }
.sd-sum { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.sd-sum > strong { font-size: 2rem; color: #1e3a8a; }
.sd-equation { margin: 0; padding: 6px 16px; border-radius: 12px; background: #fff; font-size: 2rem; font-weight: 800; color: #1e3a8a; letter-spacing: 1px; }
.tk-tile .sd-small, .sd-small { font-size: 1.2rem; }
.tk-tile.sd-money svg, .tk-row.sd-money svg, .sd-money svg { width: 96px; height: 68px; }
.sd-measures { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 12px; background: #fff; max-width: 100%; overflow-x: auto; }
.sd-measure { height: 46px; width: auto; max-width: 100%; }
.sd-chart { width: 100%; max-width: 380px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 2px solid #cbd5e1; }
.sd-chart__title { margin: 0 0 6px; font-weight: 800; text-align: center; }
.sd-chart__row { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid #e2e8f0; }
.sd-chart__label { min-width: 64px; font-weight: 700; text-align: left; }
.sd-chart__icons { display: flex; flex-wrap: wrap; gap: 1px; }
.sd-chart__icons svg { width: 26px; height: 26px; }
@media (max-width: 480px) {
  .sd-line span { min-width: 44px; height: 46px; font-size: 1.25rem; }
  .sd-chart__icons svg { width: 22px; height: 22px; }
}
.sd-digit--on { color: #ef4444; text-decoration: underline; }
/* Numerasi SD Fase B */
.sd-array { display: grid; gap: 2px; padding: 8px; border-radius: 12px; background: #fff; }
.sd-array svg { width: 30px; height: 30px; }
.sd-plates { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sd-plate { position: relative; width: 86px; height: 76px; }
.sd-plate__dish { position: absolute; left: 0; bottom: 0; width: 86px; height: 56px; }
.sd-plate__pile { position: absolute; left: 10px; right: 10px; bottom: 18px; display: flex; flex-wrap: wrap; justify-content: center; }
.sd-plate__pile svg { width: 22px; height: 22px; }
.sd-plates--hidden .sd-plate__pile { visibility: hidden; }
.sd-frac { display: inline-flex; flex-direction: column; align-items: center; font-size: 1.6rem; font-weight: 800; line-height: 1.05; color: #1e3a8a; }
.sd-frac sup { border-bottom: 3px solid #1e3a8a; padding: 0 4px; vertical-align: baseline; font-size: inherit; }
.sd-frac sub { vertical-align: baseline; font-size: inherit; }
.sd-bars { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 300px; }
.sd-bars svg, .sd-bar svg { width: 100%; height: auto; }
.tk-card-big.sd-bar svg { width: 240px; height: auto; }
.tk-tile.sd-bar-tile svg { width: 120px; height: auto; }
.sd-ruler, .sd-gridshape { width: 100%; height: auto; max-width: 320px; }
.sd-barchart { width: 100%; height: auto; }
@media (max-width: 480px) { .sd-array svg { width: 24px; height: 24px; } }
/* Numerasi SD Fase C (ADR 0054): petak seratus, bilangan bulat dalam kalimat pecahan, balok isometrik, sudut, tabel data. */
.tk-card-big svg.sd-hundred { width: 180px; height: 180px; }
.tk-card-big svg.sd-box { width: auto; height: auto; max-width: 240px; max-height: 180px; }
.tk-card-big svg.sd-angle { width: auto; height: 130px; }
.sd-whole { font-size: inherit; font-weight: 800; color: #1e3a8a; }
.sd-equation .sd-frac { vertical-align: middle; }
.sd-list { margin: 0; padding: 8px 14px; border-radius: 12px; background: #fff; border: 2px solid #cbd5e1; font-size: 1.15rem; font-weight: 700; line-height: 1.6; color: #1e3a8a; text-align: center; }
.sd-table-wrap { max-width: 100%; overflow-x: auto; }
.sd-table { border-collapse: collapse; background: #fff; border-radius: 12px; font-size: 1.1rem; }
.sd-table th, .sd-table td { padding: 6px 18px; border: 2px solid #cbd5e1; text-align: center; }
.sd-table th { background: #dbeafe; color: #1e3a8a; }
/* Literasi SD (ADR 0054): kata besar, huruf yang hilang, kotak suku kata, pilihan kalimat, dan cerita pendek. */
.sd-word { margin: 0; padding: 4px 18px; border-radius: 14px; background: #fff; font-size: 2.6rem; font-weight: 800; letter-spacing: 3px; color: #1e3a8a; }
.sd-gap { display: inline-block; min-width: 0.8em; border-bottom: 4px solid #ef4444; color: transparent; }
.sd-slots { display: flex; gap: 8px; }
.sd-slot { display: inline-grid; place-items: center; min-width: 64px; height: 56px; padding: 0 8px; border-radius: 12px; border: 3px dashed #64748b; background: #fff; font-size: 1.6rem; font-weight: 800; color: #1e3a8a; }
.sd-slot:not(:empty) { border-style: solid; border-color: #16a34a; background: #f0fdf4; }
.tk-tile.sd-text-tile { width: 100%; max-width: 380px; min-height: 56px; padding: 10px 16px; }
.sd-text { font-size: 1.25rem; font-weight: 700; line-height: 1.35; color: #1f2937; text-align: center; }
.sd-story { max-width: 460px; margin: 0; padding: 12px 16px; border-radius: 14px; background: #fff; border: 3px solid #93c5fd; font-size: 1.25rem; line-height: 1.6; text-align: left; color: #1f2937; }
.sd-story.sd-poem { text-align: center; font-style: italic; }
.sd-table-title { margin: 0 0 6px; font-weight: 800; text-align: center; color: #1e3a8a; }
.sd-story.sd-message { background: #f0fdf4; border-color: #86efac; border-radius: 14px 14px 14px 2px; font-size: 1.1rem; }
.sd-story p { margin: 0 0 .6em; }
.sd-story p:last-child { margin-bottom: 0; }
@media (max-width: 480px) { .sd-table { font-size: 1rem; } .sd-table th, .sd-table td { padding: 6px 8px; } }
/* Koding dan KA SD (ADR 0054): petak robot, blok kode, perulangan, kode semu, pohon keputusan. */
.tk-card-big svg.sd-robot-grid { width: 220px; height: 220px; }
.sd-blks { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.sd-blk { display: inline-block; padding: 4px 8px; border-radius: 8px; background: #3b82f6; color: #fff; font-weight: 800; font-size: .95rem; line-height: 1.3; }
.sd-blk--arah { min-width: 1.8em; text-align: center; font-size: 1.2rem; }
.sd-blk--kiri, .sd-blk--kanan { background: #8b5cf6; }
.tk-tile.sd-code-tile { width: 100%; max-width: 380px; min-height: 56px; padding: 10px 12px; }
.sd-code-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; max-width: 420px; margin: 0; padding: 10px; border-radius: 12px; background: #fff; border: 2px solid #cbd5e1; }
.sd-blk-num { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; margin-left: 4px; border-radius: 50%; background: #e2e8f0; font-size: .8rem; font-weight: 800; color: #334155; }
.sd-loop { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px 6px 4px 4px; border-radius: 10px; border: 3px solid #f59e0b; background: #fffbeb; }
.sd-loop__head { padding: 3px 8px; border-radius: 6px; background: #f59e0b; color: #fff; font-weight: 800; font-size: .9rem; }
.sd-pseudo { margin: 0; font: 700 1.05rem/1.5 ui-monospace, Consolas, monospace; color: #1e3a8a; text-align: left; white-space: pre-wrap; }
.sd-tree { max-width: 460px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 2px solid #cbd5e1; text-align: left; font-size: 1rem; }
.sd-tree ul { margin: 4px 0 4px 10px; padding-left: 12px; border-left: 3px solid #bfdbfe; list-style: none; }
.sd-node { font-weight: 800; color: #1e3a8a; }
.sd-leaf { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #dcfce7; font-weight: 800; color: #166534; }
.sd-table-pic svg { width: 32px; height: 32px; vertical-align: middle; }
/* Koding SD Fase A–B (ADR 0054): pola gambar, kunci sandi, diagram alur, kartu angka, piksel. */
.sd-blk--tanya { background: #fff; color: #1e3a8a; border: 2px dashed #64748b; }
.sd-blk-num--on { background: #ef4444; color: #fff; }
.sd-pattern { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; max-width: 420px; padding: 8px; border-radius: 12px; background: #fff; }
.sd-pattern svg { width: 44px; height: 44px; }
.sd-pattern__gap { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 3px dashed #64748b; font-size: 1.6rem; font-weight: 800; color: #64748b; }
.sd-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 2px solid #cbd5e1; font-size: 1.5rem; font-weight: 800; color: #1e3a8a; }
.sd-legend span { display: inline-flex; align-items: center; gap: 4px; }
.sd-legend svg { width: 36px; height: 36px; }
.sd-cipher { display: inline-flex; flex-wrap: wrap; gap: 4px; font-weight: 800; color: #1e3a8a; }
.sd-cipher > span { display: inline-block; min-width: 1.6em; padding: 2px 4px; border-radius: 6px; background: #eff6ff; text-align: center; line-height: 1.15; }
.sd-num-card { display: inline-grid; place-items: center; min-width: 48px; height: 52px; border-radius: 10px; background: #fef3c7; border: 2px solid #f59e0b; font-size: 1.4rem; font-weight: 800; color: #78350f; }
.sd-flow { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 420px; padding: 10px; border-radius: 12px; background: #fff; border: 2px solid #cbd5e1; font-size: .98rem; }
.sd-flow__box { display: inline-block; padding: 4px 10px; border-radius: 8px; background: #dbeafe; font-weight: 700; color: #1e3a8a; }
.sd-flow__end { border-radius: 999px; background: #dcfce7; color: #166534; }
.sd-flow__q { background: #fef3c7; color: #78350f; border: 2px solid #f59e0b; }
.sd-flow__arrow { color: #64748b; font-weight: 800; }
.sd-flow__split { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; text-align: center; }
.tk-card-big svg.sd-pixels, .tk-tile svg.sd-pixels { width: 90px; height: 90px; }
.sd-bits { font-size: 1.1rem; letter-spacing: 3px; line-height: 1.3; }
.sd-cipher { justify-content: center; max-width: 380px; font-size: .9rem; }
/* IPAS SD (ADR 0054): gambar soal dan denah. */
.tk-card-big.sd-art svg { width: 200px; height: auto; max-height: 170px; }
.tk-card-big svg.sd-map { width: 240px; height: auto; }
