:root{font-family:Inter,Arial,sans-serif;color:#172d27;background:#f2f6f3;--green:#176247;--line:#d8e5dc;--muted:#4e655a}*{box-sizing:border-box}body{margin:0}header{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:14px}.brand{font-size:21px;font-weight:800;display:flex;align-items:center;gap:12px;white-space:nowrap}.logo{display:grid;place-items:center;background:#176247;color:white;width:36px;height:36px;border-radius:9px;font-size:24px}.summary{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px}progress{width:110px;height:10px;accent-color:var(--green)}.layout{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:calc(100vh - 68px)}aside{background:white;border-right:1px solid var(--line);padding:24px 17px}aside>label{display:block;font-weight:750;margin:0 0 12px 4px}input,button{font:inherit}input{border:1px solid #bacfc2;border-radius:8px;padding:10px;color:inherit;background:#fff;min-width:0}input:focus-visible,button:focus-visible{outline:3px solid #6ab78b;outline-offset:2px}#search{width:100%;font-size:14px}nav h2{font-size:12px;letter-spacing:.06em;color:var(--muted);margin:23px 0 7px 8px;text-transform:uppercase}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;background:white;color:var(--green);padding:9px 12px;font-weight:700}button:hover{background:#ebf5ef}nav button{display:flex;justify-content:space-between;text-align:left;width:100%;border:0;padding:7px 9px;font:600 13px ui-monospace,monospace;color:#344d40}button[aria-current=true],button[aria-pressed=true]{background:#dcefe2;color:#124932}main{padding:35px clamp(18px,4vw,62px);max-width:1490px;width:100%;margin:auto;margin-top:0}.crumb{color:#246348;font-size:13px;font-weight:750;margin-bottom:12px}.hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#123d31;color:white;padding:28px clamp(20px,4vw,40px);border-radius:17px;margin-bottom:22px;min-height:154px}.hero h1{margin:0;font-size:clamp(32px,5vw,55px);letter-spacing:-.055em}.hero p{color:#d5eee1;line-height:1.55;margin:10px 0 0;max-width:610px}.fx{color:#9dd3b8;font:italic 54px Georgia,serif;border:1px solid #548577;border-radius:14px;padding:8px 20px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}.card{background:white;border:1px solid var(--line);border-radius:15px;padding:19px;min-width:0}.cardhead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:17px;flex-wrap:wrap}h2{font-size:17px;margin:0}.cardhead p,small,footer{color:var(--muted);font-size:13px}.cardhead p{margin:5px 0 0}.quiet,.tabs button{font-size:12px;padding:6px 9px}.tabs{display:flex;gap:4px}.sheet{overflow:auto;border:1px solid var(--line);border-radius:8px}table{border-collapse:collapse;width:100%;font-size:13px}th,td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:0}th{background:#eef5ef;color:#416052;font-weight:700;padding:8px;white-space:nowrap}tr:last-child td,tr:last-child th[scope=row]{border-bottom:0}tr>*:last-child{border-right:0}td input{width:100%;min-width:92px;padding:9px 8px;border:0;border-radius:0;white-space:pre;font-size:13px}td input:focus-visible{outline-offset:-3px}tr:nth-child(even) td input{background:#fafcfb}td input.numeric{text-align:right}.prompt{line-height:1.5;margin:0 0 19px;font-weight:650}form label{display:block;font-size:14px;font-weight:700;margin-bottom:6px}#formula{width:100%;font:14px ui-monospace,monospace;background:#f9fcfa}small{display:block;margin:7px 0 14px}.actions{display:flex;gap:7px;flex-wrap:wrap}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#104832}#feedback:not(:empty),#steps:not([hidden]){margin-top:13px;padding:12px;background:#eaf5ee;border-radius:8px;line-height:1.5;font-size:14px;overflow-wrap:anywhere}#feedback[data-state=wrong]{background:#fff1e7;color:#693412}#steps h3{margin:0 0 8px;font-size:15px}#steps code{display:block;white-space:pre-wrap;background:#fff;padding:8px;border-radius:5px}#steps ol{margin:8px 0 0;padding-left:22px}footer{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:16px}@media(max-width:1050px){.workspace{grid-template-columns:1fr}}@media(max-width:650px){header{padding:0 12px}.summary progress{display:none}.layout{display:block}aside{padding:12px;border-right:0;border-bottom:1px solid var(--line)}nav{display:flex;overflow:auto;gap:5px;margin-top:7px}nav h2{display:none}nav button{white-space:nowrap;width:auto;gap:4px;border:1px solid var(--line)}main{padding-top:18px}.fx{display:none}.hero{min-height:0}.card{padding:13px}}
.example{margin-bottom:18px;border-left:4px solid #3f8d64}.example p{margin:8px 0;line-height:1.5}.example p:last-child{margin-bottom:0;color:var(--muted);font-size:14px}.example dl{margin:12px 0;display:flex;flex-wrap:wrap;gap:10px 22px}.example dl div{min-width:0}.example dt{font-size:12px;font-weight:750;color:var(--muted);margin-bottom:5px}.example dd{margin:0;font-size:14px;font-weight:700;color:#124932}.example code{display:block;background:#edf5ef;border-radius:6px;padding:5px 8px;overflow-wrap:anywhere}

.hero{background:#dcefe2;color:#123d31}
.hero p{color:#31584a}
.fx{color:#27684e;border-color:#80af96}
#feedback[data-state=wrong]{background:#fce2e2;color:#8b2027;border:1px solid #e9a0a4}

#categories{display:grid;gap:8px;margin:12px 0}
#categories .category{display:grid;place-items:center;position:relative;width:100%;aspect-ratio:2.55;background:#123d31;color:#fff;border:0;border-radius:9px;padding:0;overflow:hidden;font-size:14px}
#categories .category img{display:block;width:100%;height:100%;object-fit:cover}
#categories .category:hover img{filter:brightness(1.12)}
#categories .category[aria-pressed="true"]{outline:2px solid #176247;outline-offset:2px}
#categories .category:focus-visible{outline:3px solid #176247;outline-offset:3px}
@media(max-width:650px){#categories{grid-template-columns:repeat(2,minmax(0,1fr))}nav h2{display:block;align-self:center;white-space:nowrap;margin:0 2px 0 5px}}

@font-face{font-family:"Noto Sans AZ";src:url("fonts/noto-sans-az-bold.woff2") format("woff2");font-style:normal;font-weight:700;font-display:swap}
#categories .category,#topics h2{font-family:"Noto Sans AZ",sans-serif;font-weight:700}

#categories{width:min(calc(100% - 40px),1040px);margin:16px auto;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.layout{min-height:0}
@media(max-width:650px){#categories{width:calc(100% - 24px);grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px auto}}

#example-method-box{margin:10px 0 12px}
#example-method-label{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}
.example-sheet th,.example-sheet td{text-align:left;white-space:normal;padding:8px 10px}
.example-sheet td{line-height:1.45;vertical-align:middle}
.example-sheet .example-inputs{background:white;white-space:pre-wrap}
.example-inputs div+div{margin-top:3px}
.example-output{font-weight:750;white-space:pre-wrap!important}
.example-correct td:not(.example-inputs){background:#e4f4e9;color:#165737}
.example-wrong td{background:#fce2e2;color:#8b2027}
.example-sheet td strong{display:block}
.example-sheet td strong span{font-size:16px}
@media(max-width:650px){.example-sheet th,.example-sheet td{padding:6px;font-size:12px}}

.text-subgroup{margin-top:10px;border:1px solid var(--line);border-radius:9px;padding:4px}
.text-subgroup h3{margin:0 0 3px;border-radius:5px;background:#e7f1fc;color:#244e7a;text-align:center;padding:6px 4px;font-size:13px;font-weight:700}
@media(max-width:650px){.text-subgroup{flex:0 0 auto;margin:0}.text-subgroup button{display:inline-flex;margin:2px}}

button.brand{padding:0;border:0;border-radius:8px;background:transparent;color:inherit}
button.brand:hover{color:var(--green)}
#overview-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#overview-cards p{margin:9px 0 0;line-height:1.55;color:var(--muted)}
#overview-guide{color:var(--green);font-weight:700;line-height:1.5}
@media(max-width:950px){#overview-cards{grid-template-columns:1fr}}

.brand .logo{background:transparent;color:#217346;font:bold italic 34px/1 Georgia,serif;letter-spacing:-.08em}
