.country-choices{margin:24px 0;padding:22px;background:#f3f6f6;border:1px solid #d8e2e2;border-radius:16px}.country-choices h2{font-size:1.2rem;margin:0 0 8px}.country-choices p{margin:0 0 16px;color:#43535d}.country-choices nav,.country-subjects{display:flex;flex-wrap:wrap;gap:10px}.country-choice{display:block;padding:12px 18px;background:#fff;border:1px solid #bacccc;border-radius:10px;color:#173f4c;text-decoration:none;font-weight:700}.country-choice:hover,.country-choice[aria-current]{background:#e0eeee;border-color:#376d7c}.country-page{padding-top:30px;padding-bottom:44px}.country-page h1{font-size:clamp(1.8rem,4vw,2.8rem);max-width:850px;line-height:1.2}.country-page .lead{max-width:800px}.country-scope{border-left:3px solid #a6bcc1;padding-left:15px;color:#445961;max-width:850px;line-height:1.65}.country-subjects{margin:28px 0}.country-how{background:#f4f5f3;padding:24px;border-radius:16px;margin:28px 0}.country-how h2{margin-top:0}.country-how ol{padding-left:24px;line-height:1.9}.country-activities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0 30px}.country-activity{display:flex;flex-direction:column;align-items:flex-start;padding:22px;border:1px solid #d8e2e2;border-radius:14px;text-decoration:none;color:inherit;background:#fff}.country-activity:hover{border-color:#376d7c;background:#f5faf9}.country-activity h3{font-size:1.15rem;margin:0 0 10px}.country-activity p{margin:0 0 18px;color:#56656d;font-size:.9rem}.country-activity span{margin-top:auto;color:#175b6d;font-weight:700}.country-references{padding:20px 0;line-height:1.65}.country-references summary{font-weight:700;cursor:pointer}.country-choice:focus-visible,.country-activity:focus-visible{outline:3px solid #175b6d;outline-offset:3px}@media(max-width:600px){.country-activities{grid-template-columns:1fr}.country-choices{padding:18px}.country-choices nav{display:grid;grid-template-columns:1fr 1fr}.country-choice{padding:12px;font-size:.9rem}.country-page .crumb{font-size:.85rem}.country-how{padding:18px}}

/* A single native worksheet preview stays in flow, including on narrow homes. */
html:is(:lang(ms),:lang(fil),:lang(pl),:lang(th)) .hero .paper{height:auto;display:flex;flex-direction:column;align-items:center;gap:20px;padding:20px 12px;width:100%;max-width:440px;margin:0 auto}
html:is(:lang(ms),:lang(fil),:lang(pl),:lang(th)) .hero .paper img{position:relative;left:auto;right:auto;top:auto;width:min(66%,280px);height:auto;transform:rotate(-3deg)}
html:is(:lang(ms),:lang(fil),:lang(pl),:lang(th)) .hero .paper .tag{position:static;transform:none;white-space:normal;max-width:100%;text-align:center}

html:lang(th) body{font-family:"Noto Sans Thai Looped",system-ui,sans-serif;line-height:1.7}html:lang(th) h1{line-height:1.35;letter-spacing:0}

/* Language-scoped curriculum references */
.curriculum-picker h3{font-size:1rem;margin:0 0 10px}.curriculum-options{display:flex;gap:8px;flex-wrap:wrap}.curriculum-options button{border:1px solid #d4dbe0;background:#fff;color:inherit;border-radius:10px;padding:10px 16px;font:inherit;cursor:pointer}.curriculum-options button[aria-pressed="true"]{background:#e6f2fb;color:#155f8e;border:2px solid #176a9a;font-weight:700}.curriculum-current{margin:0 0 6px;font-weight:600}.curriculum-other{background:none;border:0;text-decoration:underline;color:#275d7d;padding:10px 0;font:inherit;font-size:.9rem;cursor:pointer}.curriculum-dialog{box-sizing:border-box;border:1px solid #ddd;border-radius:18px;width:min(640px,calc(100vw - 24px));max-width:calc(100vw - 24px);margin:auto;max-height:85dvh;padding:22px;color:#202a35}.curriculum-dialog::backdrop{background:#0008}.curriculum-dialog-head{position:sticky;top:0;background:#fff;z-index:1;padding-bottom:10px;display:flex;justify-content:space-between;align-items:start;gap:12px}.curriculum-dialog h2{font-size:1.2rem;margin:0}.curriculum-dialog-head button{font:inherit;padding:8px;border:1px solid #ddd;border-radius:8px;background:white;color:inherit;cursor:pointer}.curriculum-dialog ul{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:8px}.curriculum-dialog li a{display:block;border:1px solid #dde3e8;border-radius:10px;padding:12px;text-decoration:none;color:#155f8e}.curriculum-dialog li span{display:block;font-size:.85rem;color:#626b74;margin-top:4px}
