@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Myanmar:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #172724;
  --muted: #5b6c65;
  --quiet: #687b73;
  --green: #096b55;
  --green-deep: #075241;
  --page: #f6f8f7;
  --line: #dfe8e3;
  --white: #fff;
  --side: 235px;
  --top: 70px;
  --body: 'DM Sans', 'Noto Sans Myanmar', system-ui, sans-serif;
  --heading: 'Manrope', 'Noto Sans Myanmar', system-ui, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; min-width: 280px; background: var(--page); color: var(--ink); font: 1rem/1.55 var(--body); }
html[lang=my] { --body: 'Noto Sans Myanmar', 'DM Sans', system-ui, sans-serif; --heading: 'Noto Sans Myanmar', 'Manrope', system-ui, sans-serif; }
html[lang=my] body { line-height: 1.75; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, .table-wrap:focus-visible { outline: 2px solid #127d64; outline-offset: 3px; }
svg { flex: none; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.23; }
[lang=my] :is(h1,h2,h3) { line-height: 1.5; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 15; top: 8px; left: 8px; padding: 10px 15px; border-radius: 7px; color: #fff; background: var(--green); }
.muted { color: var(--muted); }
.fine { font-size: .83rem; }

.shell { min-height: 100vh; }
.sidebar { width: var(--side); position: fixed; inset: 0 auto 0 0; z-index: 6; display: flex; flex-direction: column; padding: 0 17px 18px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.brand { min-height: 91px; display: flex; align-items: center; gap: 11px; padding: 0 7px; }
.brand img { flex: none; }
.brand strong { display: block; font: 800 1.35rem/1.1 var(--heading); letter-spacing: -.055em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.nav-content { display: grid; gap: 25px; }
.nav-main, .nav-tracks { display: grid; gap: 4px; }
.nav-label { margin: 0 9px 4px; color: var(--quiet); font-weight: 700; font-size: .73rem; letter-spacing: .088em; text-transform: uppercase; }
[lang=my] .nav-label { letter-spacing: 0; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 7px 10px; border-radius: 8px; color: #485c53; font-size: .9rem; font-weight: 600; }
.nav-link svg { color: #60796c; }
.nav-link:hover { background: #f1f6f3; color: var(--green-deep); }
.nav-link.active { background: #e4f3eb; color: var(--green-deep); font-weight: 700; }
.nav-link.active svg { color: var(--green); }
.track-nav svg { color: var(--tile-ink); }
.side-progress { display: grid; gap: 10px; margin-top: auto; padding: 13px 12px 11px; border: 1px solid #e0eae4; border-radius: 10px; background: #f7faf8; }
.nav-content { padding-bottom: 25px; }
.side-progress-label { display: flex; align-items: center; gap: 7px; color: #34594b; font-size: .8rem; font-weight: 700; }
.side-progress-label strong { margin-left: auto; color: var(--green); }
.side-progress small { font-size: .75rem; color: var(--quiet); }
.meter { height: 5px; border-radius: 12px; overflow: hidden; background: #e7eeea; }
.meter span { display: block; height: 100%; background: #309879; border-radius: inherit; }

.workspace { margin-left: var(--side); min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 5; min-height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(22px, 3.25vw, 54px); border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .97); }
.top-location, .top-actions { display: flex; align-items: center; gap: 13px; min-width: 0; }
.location-crumb { font-size: .93rem; font-weight: 700; }
.search-trigger { display: flex; align-items: center; gap: 9px; min-height: 39px; padding: 5px 8px 5px 11px; color: var(--muted); background: #f8faf9; border: 1px solid var(--line); border-radius: 8px; font-size: .86rem; }
.search-trigger:hover, .languages button:hover { border-color: #a9c5b8; color: var(--green); }
.search-trigger kbd { margin-left: 15px; padding: 1px 5px; font: .68rem/1.5 var(--body); color: #64796f; background: #fff; border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; }
.languages { display: flex; flex: none; align-items: center; gap: 3px; min-height: 39px; padding: 3px 4px 3px 8px; border: 1px solid var(--line); border-radius: 8px; color: #60786d; }
.languages > svg { margin-right: 3px; }
.languages button { min-height: 29px; border: 1px solid transparent; border-radius: 5px; background: none; padding: 2px 7px; color: #596f63; font-size: .77rem; font-weight: 700; }
.languages button[lang=my] { font-family: 'Noto Sans Myanmar', system-ui, sans-serif; }
.languages button[aria-pressed=true] { color: #07664f; background: #e5f4ec; }
.icon-button { display: inline-grid; place-items: center; min-width: 37px; min-height: 37px; padding: 6px; border: 1px solid transparent; border-radius: 8px; color: #4c6659; background: transparent; }
.icon-button:hover { color: var(--green); background: #eaf4ef; }
.mobile-menu { display: none; }

.content { max-width: 1340px; margin: 0 auto; padding: 33px clamp(22px, 3.25vw, 54px) 68px; outline: none; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(22px, 3.8vw, 65px); min-height: 330px; overflow: hidden; padding: 37px clamp(25px, 3.45vw, 52px); border: 1px solid #cde7da; border-radius: 19px; background: linear-gradient(110deg, #ecf8f1 8%, #e5f5eb 57%, #d8f0e4); }
.hero-copy { z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 15px; font-size: .73rem; color: #346252; font-weight: 800; letter-spacing: .11em; }
.hero-kicker span { display: block; width: 7px; height: 7px; background: #27856a; border-radius: 50%; }
.hero h1 { color: #182f28; font-size: clamp(2.35rem, 4vw, 4rem); letter-spacing: -.07em; font-weight: 800; line-height: 1.05; }
.hero h1 em { color: #087158; font-style: normal; }
[lang=my] .hero h1 { font-size: clamp(1.8rem, 3.25vw, 3.1rem); line-height: 1.45; letter-spacing: -.025em; }
[lang=my] .hero-kicker { letter-spacing: 0; }
.hero-description { max-width: 51ch; margin: 16px 0 23px; color: #425b50; line-height: 1.52; }
.hero-actions, .button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.button { display: inline-flex; width: fit-content; align-items: center; justify-content: center; gap: 7px; min-height: 41px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; font-size: .87rem; font-weight: 700; line-height: 1.25; text-align: center; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: var(--green-deep); }
.secondary { background: #fff; color: #23453a; border-color: #d9e5de; }
.secondary:hover { background: #f3faf6; border-color: #a4c7b7; color: var(--green-deep); }
.hero .secondary { background: rgb(255 255 255 / .65); border-color: #bddacd; }
.small { min-height: 34px; padding: 6px 10px; font-size: .8rem; }
.danger { color: #8e393e; background: #fff0ee; border-color: #edcbc7; }
.danger:hover { background: #ffe1dd; }
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; width: 100%; }
.hero-art::before { position: absolute; content: ''; z-index: 0; inset: -72px -120px -72px -35px; background-image: radial-gradient(#418e7242 .8px, transparent 1.1px); background-size: 15px 15px; mask-image: linear-gradient(95deg, transparent, black 25%); }
.hero-terminal { z-index: 1; width: 100%; max-width: 407px; min-width: 0; overflow: hidden; border: 1px solid #31574a; border-radius: 13px; color: #e0f0e9; background: #142b25; box-shadow: 0 18px 32px #17483632, 0 2px 8px #244f3930; transform: rotate(1.1deg); }
.terminal-bar { height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 13px; border-bottom: 1px solid #314940; background: #1b362d; color: #b6c9bf; font: .73rem var(--mono); }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { width: 7px; height: 7px; background: #ed927f; border-radius: 50%; }
.terminal-dots i:nth-child(2) { background: #e6bd76; }
.terminal-dots i:nth-child(3) { background: #79c29d; }
.terminal-code { padding: 13px 13px 15px; margin: 0; overflow-x: auto; font: clamp(.71rem, 1vw, .88rem)/1.85 var(--mono); }
.line-num { display: inline-block; color: #9aaea4; width: 25px; user-select: none; }
.code-violet { color: #dac2fc; }
.code-blue { color: #9cdded; }
.code-peach { color: #ffca99; }
.terminal-output { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 7px 14px; border-top: 1px solid #304b40; background: #1b362d; color: #a0edc4; font: .8rem var(--mono); }
.terminal-output > span { display: inline-flex; align-items: center; gap: 4px; color: #afc8bd; font: .76rem var(--body); }
.overview-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 11px clamp(14px, 3vw, 42px); min-height: 58px; margin: 16px 0 29px; padding: 11px 17px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #50665b; }
.overview-stats > span { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; font-size: .86rem; }
.overview-stats svg { margin-right: 2px; color: #45806a; }
.overview-stats strong { color: #274439; font-weight: 800; }
.section { margin-top: 30px; scroll-margin-top: calc(var(--top) + 18px); }
.section:focus { outline: none; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.section h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; }
.section-heading p { margin-top: 5px; color: var(--muted); }
.track-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mint { --tile-color: #e7f6ee; --tile-ink: #167458; }
.blue { --tile-color: #e9f3fd; --tile-ink: #296599; }
.purple { --tile-color: #f0eafa; --tile-ink: #7252a6; }
.orange { --tile-color: #fdf1de; --tile-ink: #9e5c17; }
.pink { --tile-color: #f9eaf1; --tile-ink: #a64475; }
.indigo { --tile-color: #edeffd; --tile-ink: #505db1; }
.icon-tile { display: inline-grid; flex: none; place-items: center; width: 43px; height: 43px; border-radius: 11px; background: var(--tile-color, #edf4ef); color: var(--tile-ink, #356c57); }
.icon-tile.large { width: 59px; height: 59px; border-radius: 15px; }
.icon-tile.large svg { width: 28px; height: 28px; }
.track-card, .project-card { display: flex; flex-direction: column; min-width: 0; padding: 16px 17px 15px; border: 1px solid #e1e9e4; border-radius: 12px; background: #fff; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.track-card:hover, .project-card:hover { border-color: #a8c9b9; box-shadow: 0 5px 16px #3356440e; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.card-link-icon { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1px solid #e6eee9; border-radius: 7px; color: #54776a; background: #fbfdfb; }
.track-card h3 { margin: 12px 0 4px; font-size: 1.11rem; font-weight: 800; letter-spacing: -.035em; }
.track-card p, .project-card p { color: var(--muted); font-size: .91rem; line-height: 1.48; }
[lang=my] .track-card p, [lang=my] .project-card p { line-height: 1.72; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin: auto 0 7px; padding-top: 14px; color: #5b7065; font-size: .77rem; font-weight: 600; }
.card-meta span:first-child { display: flex; align-items: center; gap: 4px; }
.card-meta svg { color: #608173; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 18px; }
.project-card h3 { margin: 1px 0 5px; font-size: 1.08rem; font-weight: 800; }
.project-count { display: block; margin-top: 7px; font-size: .8rem; }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; color: #63766b; font-size: .85rem; }
.breadcrumb a { color: var(--green); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.page-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 25px; }
.page-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.page-title h1, .lesson-heading h1 { font-size: clamp(1.85rem, 3.3vw, 3.05rem); font-weight: 800; letter-spacing: -.052em; }
.page-title p { margin-top: 5px; color: var(--muted); }
.track-progress { display: grid; gap: 10px; max-width: 850px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.track-progress > div:first-child { display: flex; justify-content: space-between; gap: 15px; font-size: .88rem; color: #435e51; }
.track-progress > div:first-child span { color: var(--green); font-weight: 700; }
.track-progress .meter { height: 7px; }
.lesson-group h2 { margin-bottom: 10px; }
.lesson-list { max-width: 920px; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 11px; overflow: clip; background: #fff; }
.lesson-list li + li { border-top: 1px solid #e6eee9; }
.lesson-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 55px; padding: 8px 13px; }
.lesson-row:hover { background: #f3f9f6; }
.lesson-row:focus-visible { outline-offset: -3px; }
.lesson-status { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; color: #62776e; background: #f0f4f2; }
.lesson-status.checked { color: var(--green); background: #e0f2e8; }
.row-name { font-weight: 700; }
.row-arrow { color: #648176; }
.badge { display: inline-block; border: 1px solid #dce8e0; border-radius: 6px; padding: 2px 7px; color: #50695c; background: #f6faf8; font-size: .74rem; text-wrap: nowrap; }
.badge.success { color: #09654d; background: #e5f6ec; border-color: #cce8d8; }

.project-brief { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-brief section, .backup { border: 1px solid var(--line); border-radius: 11px; padding: 16px 18px; background: #fff; }
.project-brief h2 { font-size: 1.07rem; letter-spacing: -.02em; margin-bottom: 6px; }
.project-brief p, .backup p { color: var(--muted); }
.backup { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

.lesson-heading { margin-bottom: 19px; }
.lesson-labels { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: .85rem; }
.lesson-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 17px; align-items: start; }
.lesson-instructions, .lesson-workspace { display: grid; gap: 12px; min-width: 0; }
.concept { font-size: 1rem; color: #435b50; }
.task, .lesson-instructions details, .exercise-files { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.task, .exercise-files { padding: 16px; }
.task h2, .exercise-files h2 { font-size: 1.04rem; margin-bottom: 6px; }
.task p { color: #3e574b; }
.expected { display: grid; gap: 5px; margin-top: 12px; padding: 11px 12px; border: 1px solid #d8e9df; border-radius: 7px; background: #eef8f2; }
.expected strong { color: #336454; font-size: .8rem; }
.expected p { margin: 0; font-size: .91rem; }
pre { max-width: 100%; }
.expected pre, .lesson-instructions pre { margin: 0; font: .83rem/1.65 var(--mono); overflow: auto; }
.expected pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.lesson-instructions details summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 12px; color: #36584b; font-size: .91rem; font-weight: 700; cursor: pointer; }
.lesson-instructions details summary::-webkit-details-marker { display: none; }
.lesson-instructions details summary svg:last-child { margin-left: auto; }
.lesson-instructions details[open] summary svg:last-child { transform: rotate(180deg); }
.lesson-instructions details summary:hover { background: #f4faf6; }
.lesson-instructions details p, .lesson-instructions details pre { margin: 2px 12px 12px; }
.lesson-instructions details pre { padding: 11px 12px; border-radius: 7px; background: #f0f5f2; color: #183e30; }
.lesson-instructions details .button { margin: 0 12px 12px; }
.exercise-files .text-button { width: 100%; justify-content: start; padding-left: 0; }
.editor-card { overflow: hidden; border: 1px solid #254138; border-radius: 11px; background: #132a23; color: #e5f4ed; }
.editor-top, .editor-actions { display: flex; align-items: center; gap: 8px; padding: 7px 11px; background: #1a362d; }
.editor-top { justify-content: space-between; min-height: 48px; border-bottom: 1px solid #345449; }
.editor-top > span { display: inline-flex; align-items: center; gap: 7px; color: #e2eee8; font-weight: 700; font-size: .88rem; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 33px; padding: 4px 7px; border: 0; border-radius: 6px; color: var(--green); background: none; font-size: .82rem; font-weight: 700; }
.text-button:hover { background: #eaf5ef; }
.editor-top .text-button { color: #d6e5de; }
.editor-top .text-button:hover { background: #284b3e; }
.code-area { display: grid; grid-template-columns: 40px minmax(0, 1fr); }
.code-area textarea, .line-numbers { background: transparent; color: #e1f3e9; font: .9rem/1.6 var(--mono); tab-size: 4; padding: 13px 12px; direction: ltr; }
.code-area textarea { height: 266px; min-height: 165px; resize: vertical; border: 0; caret-color: #a5edc8; white-space: pre; }
.code-area textarea:focus-visible { outline: 2px solid #71c8a2; outline-offset: -2px; }
.code-area textarea::placeholder { color: #aabfb4; }
.line-numbers { min-height: 0; overflow: hidden; max-height: 100%; color: #9bb4a8; border-right: 1px solid #29483c; padding-left: 4px; padding-right: 8px; text-align: right; white-space: pre; user-select: none; position: relative; contain: size; }
.stdin-settings { border-top: 1px solid #345449; }
.stdin-settings summary { min-height: 35px; padding: 7px 12px; color: #c9ddd3; font-size: .82rem; font-weight: 700; cursor: pointer; }
.stdin-settings summary svg { margin-right: 6px; }
.stdin-settings summary:hover { background: #244439; }
.stdin-row { display: grid; gap: 3px; padding: 0 12px 8px; }
.stdin-row small { color: #bdd2c7; }
.stdin-row textarea { width: 100%; padding: 7px; resize: vertical; border: 1px solid #416255; border-radius: 6px; background: #142f26; color: #e2f2e9; font: .88rem/1.45 var(--mono); }
.editor-actions { min-height: 56px; flex-wrap: wrap; border-top: 1px solid #345449; }
.editor-actions .primary { background: #b1e9ce; color: #123b2d; }
.editor-actions .primary:hover { background: #d1f5e2; }
.editor-actions .secondary { color: #e2f3ea; border-color: #56786a; background: transparent; }
.editor-actions .secondary:hover { background: #294d3e; }
.editor-shortcut { margin-left: auto; color: #a9c5b8; font: .75rem var(--mono); }
.output-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; scroll-margin-top: calc(var(--top) + 8px); }
.output-top { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px 13px; border-bottom: 1px solid var(--line); color: #416a5b; }
.output-top h2 { font-size: .92rem; }
.output-content { display: grid; gap: 8px; min-height: 65px; padding: 11px 13px; }
.output-note { font-size: .89rem; color: var(--muted); }
.output-note.success-note { color: #0d694c; background: #e7f8ee; border-radius: 6px; padding: 6px 8px; font-weight: 700; }
.output-note.warning-note { color: #705017; background: #fff5df; border-radius: 6px; padding: 6px 8px; }
.output-content pre { max-height: 330px; overflow: auto; margin: 0; border-radius: 6px; padding: 7px 8px; background: #f3f8f5; color: #204436; font: .83rem/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.output-content pre.runtime-error { color: #8b292b; background: #fff0ee; }
.output-content pre.runtime-stderr { color: #755013; background: #fff8ea; }
.output-chart { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.output-chart img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.output-chart figcaption { padding: 4px 10px; border-top: 1px solid var(--line); }
.output-file { justify-self: start; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { padding: 7px 9px; border-bottom: 1px solid #e5ede8; text-align: left; white-space: nowrap; }
th { color: #365c4c; background: #eff7f2; }
tbody tr:last-child td { border-bottom: 0; }
.lesson-navigation { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 19px; }

dialog { width: min(550px, calc(100% - 28px)); max-height: min(640px, 80vh); padding: 0; border: 1px solid #c6dacf; border-radius: 13px; color: var(--ink); overflow: hidden; background: white; box-shadow: 0 20px 70px #18332740; }
dialog::backdrop { background: #152d2582; }
.search-head { display: flex; align-items: center; gap: 9px; padding: 8px 10px 8px 15px; border-bottom: 1px solid var(--line); color: #477564; }
.search-head input { min-width: 0; flex: 1; min-height: 38px; padding: 4px; border: 1px solid transparent; color: var(--ink); }
.search-head input:focus { outline: 0; }
.search-results { max-height: calc(min(640px, 80vh) - 55px); overflow: auto; padding: 8px; }
.search-caption { padding: 4px 8px 6px; font-size: .83rem; }
.search-results a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; color: #315e4b; }
.search-results a:hover, .search-results a:focus-visible { background: #edf8f1; }
.search-results a span { display: grid; color: var(--ink); }
.search-results a small { font-size: .75rem; color: var(--muted); }
.search-results a > svg:last-child { margin-left: auto; }

@media (max-width: 1170px) {
  :root { --side: 211px; }
  .sidebar { padding-inline: 13px; }
  .hero { gap: 24px; }
}
@media (max-width: 1020px) {
  .hero { min-height: 300px; padding: 28px 22px; }
  .hero h1 { font-size: clamp(2.2rem, 4.7vw, 3rem); }
  .track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  :root { --top: 60px; }
  .workspace { margin-left: 0; }
  .sidebar { width: min(280px, 86vw); visibility: hidden; transform: translateX(-103%); transition: transform .2s ease, visibility .2s; }
  .menu-open .sidebar { visibility: visible; transform: translateX(0); }
  .menu-open { overflow: hidden; }
  .shade { position: fixed; inset: 0; z-index: 5; background: #172f2680; }
  .mobile-menu { display: inline-grid; }
  .topbar { padding: 8px 19px; }
  .content { padding-top: 23px; }
}
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; gap: 21px; min-height: auto; padding: 23px 18px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3.05rem); }
  .hero-terminal { transform: none; }
  .hero-art::before { inset: -20px -50px -55px -35px; }
  .topbar { padding-inline: 8px 13px; }
  .top-actions, .top-location { gap: 5px; }
  .search-trigger { padding: 6px 8px; }
  .search-trigger span, .search-trigger kbd, .languages > svg { display: none; }
  .languages { padding-left: 4px; }
  .location-crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content { padding-inline: 14px; }
  .overview-stats { gap: 5px 12px; margin-bottom: 18px; padding: 5px 10px; }
  .overview-stats > span { font-size: .76rem; }
  .overview-stats svg { width: 15px; height: 15px; margin-right: 0; }
  .track-grid, .project-grid, .project-brief { grid-template-columns: 1fr; }
  .section { margin-top: 23px; }
  .section-heading { align-items: start; }
  .section-heading .button { flex: none; }
  .lesson-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .lesson-row .badge { display: none; }
  .lesson-grid { gap: 14px; }
  .code-area { grid-template-columns: 34px minmax(0, 1fr); }
  .page-title { gap: 8px; }
  .page-title p { font-size: .93rem; }
  .icon-tile.large { width: 44px; height: 44px; }
  .icon-tile.large svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
