.robo-page { --club-blue: var(--accent); --club-yellow: #e9d593; }
.course-tabs { display: flex; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin: 32px 0 0; }
.course-tabs button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; min-height: 50px; }
.course-tabs button[aria-selected='true'] { color: #fff; background: var(--mint); }
.course-tabs button:hover:not([aria-selected='true']) { background: var(--accent-soft); color: var(--mint); }
.course-tabs .course-index { font: 11px var(--mono); opacity: .8; }
.course-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 65px; padding: 42px 0 0; min-height: 470px; }
.course-panel + .course-panel { border-top: 1px solid var(--line); margin-top: 35px; }
.course-tabs:not([hidden]) ~ .course-panel { border: 0; margin: 0; }
.course-panel h3 { font-size: 34px; margin: 18px 0; }
.course-panel p { color: var(--muted); line-height: 1.8; font-size: 15px; }
.course-topics { list-style: none; padding: 0; margin: 24px 0; }
.course-topics li { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.course-topics li span { font: 11px var(--mono); color: var(--coral); padding-top: 3px; }
.course-example { align-self: stretch; margin: 0; background: var(--accent-soft); padding: 30px; border-radius: var(--radius); min-width: 0; overflow: hidden; }
.course-example figcaption { font: 10px var(--mono); color: var(--club-blue); margin-bottom: 26px; }
.python-example { background: var(--ink); color: #fff; }
.python-example figcaption { color: #a8d8ca; }
.python-example pre { margin: 32px 0; font: 17px/2 var(--mono); color: #e0f0ec; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-value { color: #f5da84; }.code-function { color: #8ed9c2; }
.python-example p { color: #baccc6; font-size: 13px; }.python-example .example-output { color: #fff; font: 14px var(--mono); border-top: 1px solid #52635e; padding-top: 22px; }
.ai-example { display: flex; flex-direction: column; }
.pattern-samples { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 25px 0; }
.pattern-samples span { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); font: 18px var(--mono); color: var(--club-blue); border-radius: var(--radius); }
.pattern-samples span:nth-child(even) { background: var(--accent-soft); color: var(--mint); }
.ai-example h4 { margin: 15px 0 0; font-size: 22px; font-weight: 500; }
.ai-example .example-output { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--club-blue); }
.robot-example { padding: 0; background: #f0f2f3; position: relative; }
.robot-example figcaption { position: absolute; left: 24px; top: 24px; z-index: 1; color: var(--mint); }
.robot-example img { display: block; width: 100%; height: 350px; object-fit: cover; object-position: right; }
.robot-example p { padding: 0 25px 20px; }
.try-section { border-block: 1px solid var(--line); background: var(--surface); }
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.try-grid h2 { margin: 20px 0; }.try-grid > div > p { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 430px; }
.mini-code { font: 19px/1.9 var(--mono); padding: 22px 0; color: var(--text); border-top: 1px solid #ddcf9e; border-bottom: 1px solid #ddcf9e; white-space: pre-wrap; }
.answer-options { border: 0; margin: 0; padding: 0; }
.answer-options legend { font-size: 20px; font-weight: 500; margin-bottom: 20px; }
.answer-row { display: flex; gap: 12px; margin-bottom: 24px; }
.answer-row label { position: relative; flex: 1; cursor: pointer; }
.answer-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.answer-row span { display: grid; place-items: center; height: 68px; border: 1px solid #d4c697; background: #fffdf7; border-radius: var(--radius); font: 24px var(--mono); }
.answer-row input:checked + span { background: var(--mint); color: #fff; border-color: var(--mint); }
.answer-row input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 4px; }
#quiz-feedback { min-height: 80px; color: var(--muted); font-size: 14px; line-height: 1.7; padding-top: 8px; }
#quiz-feedback[data-state='correct'] { color: var(--success); }#quiz-feedback[data-state='retry'] { color: var(--warning); }
.parents-band { background: var(--accent-soft); border-block: 1px solid var(--line); }
.parents-band .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.parents-band .process-grid p { min-height: 0; }
.robo-page .project-card:nth-child(2) .project-image { background: var(--ink); display: grid; align-items: center; padding: 28px; }
.project-code { overflow-wrap: anywhere; font: 16px/1.8 var(--mono); color: #e2f1ea; white-space: pre-wrap; margin: 0; }
.robo-page .project-card:nth-child(3) .project-image { min-width: 0; background: var(--accent-soft); display: grid; align-content: center; padding: 28px; }
.project-pattern { display: flex; gap: 16px; align-items: center; justify-content: center; }
.project-pattern span { width: 54px; height: 54px; border: 2px solid var(--accent); background: #fff; border-radius: 50%; }
.project-pattern span:nth-child(2) { border-radius: var(--radius); background: #f5da84; border-color: #b18a32; }
.project-pattern span:nth-child(4) { display: grid; place-items: center; border-style: dashed; font-size: 23px; color: var(--club-blue); }
.project-image .pattern-label { text-align: center; color: var(--club-blue); font: 11px var(--mono); margin-top: 24px; }
@media(max-width:800px) { .course-panel { gap: 30px; }.course-panel h3 { font-size: 29px; }.course-example { padding: 22px; }.robot-example { padding: 0; }.try-grid { gap: 35px; }.pattern-samples { gap: 5px; }.pattern-samples span { font-size: 14px; }.project-pattern { gap: 9px; }.project-pattern span { width: 36px; height: 36px; } }
@media(max-width:580px) {
  
  .course-tabs { gap: 4px; }.course-tabs button { flex: 1; padding: 12px 8px; font-size: 13px; min-width: 0; }.course-index { display: none; }
  .course-panel { grid-template-columns: 1fr; padding-top: 26px; gap: 28px; min-height: 0; }.course-panel h3 { font-size: 29px; }
  .course-example { min-height: 285px; }.robot-example img { height: 270px; }.pattern-samples span { font-size: 18px; }
  .try-grid { grid-template-columns: 1fr; gap: 22px; }.mini-code { margin-bottom: 0; }.answer-row span { height: 60px; }
  .parents-band .process-grid { grid-template-columns: 1fr; gap: 22px; }.parents-band .process-grid h3 { margin-top: 15px; }
  .project-pattern span { width: 48px; height: 48px; }.project-pattern { gap: 16px; }
}
