/* ==========================================================================
   CubPrintables v1.0.0 — main stylesheet
   Free printable worksheets for kids (PreK–Grade 5).
   Vanilla CSS. Fonts are enqueued by the theme (Baloo 2 + Nunito).
   Breakpoints: 1100px (hero/stack) · 900px (mobile header + tab bar) · 640px.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root{
  --teal:#0E7C7B;
  --teal-deep:#0B5F5E;
  --teal-ink:#0B8A57;
  --coral:#FF6B4A;
  --coral-deep:#E1502E;
  --ink:#22303E;
  --ink-deep:#1D2836;
  --cream:#FFFCF6;
  --cream-2:#FFF6E9;
  --line:#F0E6D2;
  --line-soft:#EFE7DA;
  --field:#F8F4EC;
  --field-line:#EFE5D2;
  --muted:#68758A;
  --muted-2:#98A1AC;
  --muted-3:#B9A888;
  --amber:#FFC53D;
  --amber-ink:#7A4B00;
  --mint:#DCF5EC;
  --mint-bg:#EAF7F5;
  --mint-line:#E8FBF2;
  --purple:#8B5CF6;
  --purple-deep:#6D28D9;
  --radius:20px;
  --radius-sm:12px;
  --font-head:'Baloo 2','Nunito',sans-serif;
  --font-body:'Nunito',Arial,sans-serif;
}

/* ---------- 2. Base / reset ---------- */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--font-body);
  background:var(--cream);
  color:var(--ink);
  line-height:1.5;
  overflow-x:hidden; /* guard: zero horizontal scroll at 360px */
}
h1,h2,h3,h4,.baloo{font-family:var(--font-head);line-height:1.2;color:var(--ink)}
img,svg,video{max-width:100%;height:auto}
a{color:var(--teal)}
button{font-family:inherit;cursor:pointer}
::selection{background:var(--amber);color:var(--ink)}

/* Accessible keyboard focus for every interactive element */
a:focus-visible,button:focus-visible,
input:focus-visible,select:focus-visible,textarea:focus-visible,
.tab:focus-visible{
  outline:3px solid var(--teal);
  outline-offset:2px;
  border-radius:8px;
}

/* ---------- 3. Layout helpers ---------- */
.wrap{max-width:1240px;margin:0 auto;padding-inline:20px}
section.block{padding:58px 0 6px}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:26px}
.sec-head h2{font-size:33px;font-weight:800}
.sec-head p{color:#77828F;font-weight:600;font-size:15.5px;margin-top:4px}
.see-all{font-weight:900;color:var(--teal);text-decoration:none;font-size:15px;white-space:nowrap}
.see-all:hover{text-decoration:underline}

/* ---------- 4. Buttons ---------- */
.btn{
  display:inline-block;
  text-decoration:none;
  font-weight:900;
  border-radius:999px;
  border:0;
  text-align:center;
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover{transform:translateY(-1px);filter:brightness(1.03)}
.btn:active{transform:translateY(0)}
.btn-teal{background:var(--teal);color:#fff;box-shadow:0 10px 22px rgba(14,124,123,.32)}
.btn-coral{background:var(--coral);color:#fff;box-shadow:0 10px 22px rgba(255,107,74,.35)}
.btn-dark{background:var(--ink);color:#fff;box-shadow:0 10px 22px rgba(34,48,62,.25)}

/* ---------- 5. Forms — real <select>/<input>/<textarea> styled to the pill look ---------- */
input[type="text"],input[type="email"],input[type="number"],input[type="search"],
select,textarea{
  font-family:var(--font-body);
  font-size:15px;
  font-weight:700;
  color:var(--ink);
  background:var(--field);
  border:1.5px solid var(--field-line);
  border-radius:var(--radius-sm);
  padding:12px 14px;
  width:100%;
  min-height:46px;
}
textarea{min-height:110px;resize:vertical;line-height:1.5}
input::placeholder,textarea::placeholder{color:var(--muted-2);font-weight:600}
select{
  appearance:none;-webkit-appearance:none;
  font-weight:800;cursor:pointer;
  padding-right:38px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B9A888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
}
button,.btn{min-height:44px} /* comfortable touch targets */

/* ---------- 6. Header ---------- */
header.cp-header{background:#fff;border-bottom:1px solid var(--line-soft);position:relative;z-index:50}
.header-in{display:flex;align-items:center;gap:32px;padding:15px 0}

.logo{display:flex;align-items:center;gap:11px;text-decoration:none;flex:none;min-width:0}
.logo-mark{
  width:46px;height:46px;border-radius:14px;flex:none;
  background:linear-gradient(135deg,var(--teal),#12A594);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 16px rgba(14,124,123,.30);
}
.logo-text{display:block;font-size:25px;font-weight:800;line-height:1;color:var(--ink);font-family:var(--font-head)}
.logo-text span{color:var(--teal)}
.logo-sub{display:block;font-size:10px;font-weight:800;letter-spacing:1.7px;color:var(--muted-2);text-transform:uppercase;margin-top:3px;white-space:nowrap}

.cp-nav{display:flex;gap:22px;margin-left:6px}
.cp-nav a{text-decoration:none;color:#48566A;font-weight:800;font-size:15px;white-space:nowrap}
.cp-nav a:hover{color:var(--teal)}
.cp-nav a.hot{color:var(--coral)}
.cp-menu{list-style:none;display:flex;gap:22px;margin:0;padding:0}
.cp-menu li{margin:0;padding:0}
.cp-menu a{text-decoration:none;color:#48566A;font-weight:800;font-size:15px;white-space:nowrap}
.cp-menu a:hover{color:var(--teal)}
.cp-menu a.hot{color:var(--coral)}

.header-right{margin-left:auto;display:flex;align-items:center;gap:13px}
.search-pill{
  display:flex;align-items:center;gap:8px;
  background:#F6F1E7;border-radius:999px;padding:10px 16px;
  color:var(--muted-2);font-weight:700;font-size:14px;
  width:186px;white-space:nowrap;overflow:hidden;text-decoration:none;
}
.search-pill:hover{color:var(--muted)}
.btn-head{padding:12px 21px;font-size:14.5px;white-space:nowrap;min-height:0}

/* compact mobile-only header bits (hidden on desktop) */
.head-ic{
  display:none;margin-left:auto;width:40px;height:40px;border-radius:50%;
  background:#F6F1E7;align-items:center;justify-content:center;font-size:17px;
  border:0;flex:none;color:var(--ink);text-decoration:none;
}
.head-cta{
  display:none;background:var(--coral);color:#fff;font-weight:900;font-size:12.5px;
  padding:11px 14px;border-radius:999px;text-decoration:none;white-space:nowrap;
  min-height:44px;align-items:center;
}

/* ---------- 7. Mobile tab bar (fixed bottom, ≤900px) ---------- */
.tabbar{
  display:none; /* shown in the 900px media query */
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  background:#fff;border-top:1px solid var(--line-soft);
  box-shadow:0 -8px 24px rgba(60,40,10,.08);
  padding:9px 6px calc(13px + env(safe-area-inset-bottom));
}
.tab{
  flex:1;text-decoration:none;color:var(--muted-2);
  font-size:10.5px;font-weight:800;text-align:center;
  min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  border-radius:10px;
}
.tab .ti{font-size:20px;line-height:1}
.tab.on{color:var(--teal)}

/* ---------- 8. Hero ---------- */
.hero{background:linear-gradient(180deg,var(--cream-2) 0%,var(--cream) 92%);border-bottom:1px solid #F3EAD9;overflow:hidden}
.hero-in{display:flex;gap:44px;padding:52px 0 58px;align-items:flex-start}
.hero-left{width:565px;max-width:100%;padding-top:10px;flex:none}
.hero-right{flex:1;min-width:0}
.hero-pill{
  display:inline-flex;gap:8px;align-items:center;background:#fff;
  border:1.5px solid #FFE1B8;color:#B45309;
  font-weight:900;font-size:12.5px;letter-spacing:.7px;
  padding:8px 15px;border-radius:999px;
  box-shadow:0 4px 10px rgba(217,119,6,.10);
}
.hero h1{font-size:54px;line-height:1.05;font-weight:800;margin:19px 0 15px}
.hero h1 .t{color:var(--teal)}
.hero h1 .c{color:var(--coral)}
.hero p.sub,.hero .sub{font-size:18px;line-height:1.55;color:#5A6879;font-weight:600;max-width:520px}
.hero .sub b{color:var(--ink)}
.mini-points{display:flex;gap:20px;margin:22px 0 26px;flex-wrap:wrap}
.mini-points div{font-size:14px;font-weight:800;color:#48566A;display:flex;gap:7px;align-items:center}
.tick{
  width:20px;height:20px;border-radius:50%;background:var(--mint);color:var(--teal);
  display:inline-flex;align-items:center;justify-content:center;font-size:12px;flex:none;font-weight:900;
}
.hero-ctas{display:flex;gap:13px;align-items:center;flex-wrap:wrap}
.btn-hero{padding:16px 28px;font-size:16.5px}
.hero-note{font-size:13px;color:var(--muted-2);font-weight:700;margin-top:13px}

/* ---------- 9. Quick maker card ---------- */
.maker-card{
  background:#fff;border:1.5px solid var(--line);border-radius:24px;
  box-shadow:0 30px 60px rgba(120,84,20,.16);
  padding:26px 28px 24px;
}
.mc-head{display:flex;align-items:center;gap:11px;margin-bottom:18px}
.mc-ic{width:42px;height:42px;border-radius:12px;background:#FFF1E8;display:flex;align-items:center;justify-content:center;flex:none}
.mc-head h3{font-size:20px;font-weight:800}
.mc-head p{font-size:13px;color:#8B96A3;font-weight:700}
.mc-live{
  margin-left:auto;background:var(--mint-line);color:var(--teal-ink);
  font-size:11.5px;font-weight:900;padding:6px 11px;border-radius:999px;letter-spacing:.5px;white-space:nowrap;
}
.mc-row{display:flex;gap:12px;margin-bottom:12px}
.mc-2col{display:flex;gap:10px}
.mc-2col .mc-field{flex:1;min-width:0}
.mc-field{flex:1;min-width:0;margin-bottom:0}
.mc-field label{display:block;font-size:11px;font-weight:900;letter-spacing:1px;color:var(--muted-2);margin-bottom:6px}
/* .mc-sel works both as a styled real <select> and (legacy) as a fake-pill div */
select.mc-sel{
  background-color:var(--field);
  border:1.5px solid var(--field-line);
  border-radius:12px;
  padding:11px 38px 11px 13px;
  font-weight:800;font-size:14.5px;color:var(--ink);
  width:100%;min-height:48px;
}
div.mc-sel{
  background:var(--field);border:1.5px solid var(--field-line);border-radius:12px;
  padding:11px 13px;font-weight:800;font-size:14.5px;color:var(--ink);
  display:flex;justify-content:space-between;align-items:center;min-height:48px;
}
.mc-sel .chev{color:var(--muted-3);font-size:12px}
.level-row{display:flex;gap:9px}
.level{
  flex:1;text-align:center;padding:10px 6px;border-radius:11px;
  border:2px solid var(--field-line);font-weight:900;font-size:13.5px;
  color:#77828F;background:#fff;cursor:pointer;min-height:46px;
  display:flex;align-items:center;justify-content:center;
}
.level.on{border-color:var(--teal);background:var(--mint-bg);color:var(--teal)}
.mc-create{width:100%;text-align:center;padding:15px;font-size:16.5px;margin-top:15px;display:block}
.mc-foot{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:13px;font-size:12.5px;font-weight:800;color:var(--muted-2)}
#cp-quick-output{margin-top:18px} /* generated sheet preview area below the card */

/* ---------- 10. Proof sheets row ---------- */
.hero-proof{display:flex;gap:14px;margin-top:16px}
.proof-sheet{
  flex:1;min-width:0;background:#fff;border:1.5px solid var(--line);border-radius:16px;
  padding:13px 15px;box-shadow:0 12px 24px rgba(120,84,20,.08);
}
.proof-sheet .ps-t{font-family:var(--font-head);font-weight:800;font-size:13.5px;margin-bottom:6px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.ps-tag{font-size:9.5px;font-weight:900;padding:3px 8px;border-radius:999px;color:#fff;letter-spacing:.4px;white-space:nowrap}
.ps-tag.teal{background:var(--teal)}
.ps-tag.amber{background:var(--amber);color:var(--amber-ink)}
.ps-tag.purple{background:var(--purple)}
.proof-sheet .ps-r{
  font-size:12.5px;font-weight:700;color:#5A6879;border-bottom:2px solid #F5EFE2;
  padding:2.5px 0;display:flex;justify-content:space-between;gap:10px;
}

/* ---------- 11. Trust bar ---------- */
.trustbar{background:var(--ink);color:#fff}
.trustbar-in{display:flex;padding:20px 0}
.tb{flex:1;text-align:center;border-right:1px solid #37465A;padding:2px 8px}
.tb:last-child{border-right:0}
.tb b{font-family:var(--font-head);font-size:23px;font-weight:800;display:block}
.tb span{font-size:12.5px;font-weight:700;color:#A9B6C4;letter-spacing:.3px}

/* ---------- 12. Makers grid ---------- */
.makers{display:grid;grid-template-columns:repeat(4,1fr);gap:19px}
.maker{
  background:#fff;border:1.5px solid var(--line);border-radius:var(--radius);
  padding:23px 22px 20px;box-shadow:0 8px 18px rgba(120,90,40,.05);
  display:flex;flex-direction:column;
}
.maker .ic{width:50px;height:50px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:24px;margin-bottom:13px;flex:none}
.maker .top{display:flex;gap:12px;align-items:flex-start}
.maker h3{font-size:19px;font-weight:800;margin-bottom:5px}
.maker p{font-size:13.5px;color:var(--muted);font-weight:600;line-height:1.5;min-height:61px}
.maker .ui{
  background:var(--field);border-radius:11px;padding:10px 12px;margin:12px 0 13px;
  font-size:12.5px;font-weight:800;color:#77828F;
  display:flex;justify-content:space-between;gap:10px;
}
.maker .ui b{color:var(--ink)}
.maker .go{font-weight:900;font-size:14px;text-decoration:none;margin-top:auto;display:inline-block}
.maker .go:hover{text-decoration:underline}
.new-tag{
  display:inline-block;background:var(--coral);color:#fff;
  font-size:10px;font-weight:900;letter-spacing:.8px;
  padding:3px 8px;border-radius:999px;vertical-align:3px;margin-left:7px;
}

/* ---------- 13. Classroom moments ---------- */
.situ{display:grid;grid-template-columns:repeat(4,1fr);gap:19px}
.sit{border-radius:var(--radius);padding:24px 23px;color:#fff;position:relative;overflow:hidden;min-height:158px}
.sit h3{font-size:20px;font-weight:800;margin-bottom:6px;color:#fff}
.sit p{font-size:13.5px;font-weight:600;line-height:1.5;opacity:.93;width:88%}
.sit .cnt{
  position:absolute;right:18px;bottom:14px;font-family:var(--font-head);
  font-size:15px;font-weight:800;background:rgba(255,255,255,.22);
  padding:5px 12px;border-radius:999px;text-align:center;line-height:1.3;
}
.sit .emoji{font-size:27px;display:block;margin-bottom:11px}

/* ---------- 14. Today panel ---------- */
.today{
  background:linear-gradient(115deg,var(--teal),var(--teal-deep));
  border-radius:26px;padding:38px 44px;
  display:flex;gap:38px;align-items:center;margin-top:56px;
}
.today .t-left{width:400px;flex:none}
.today .t-date{
  display:inline-block;background:var(--amber);color:#5C3D00;
  font-weight:900;font-size:12.5px;letter-spacing:.7px;
  padding:7px 14px;border-radius:999px;margin-bottom:15px;
}
.today h2{color:#fff;font-size:31px;font-weight:800;line-height:1.18}
.today p{color:#BFE8E2;font-weight:600;font-size:15.5px;line-height:1.55;margin-top:9px}
.t-cards{flex:1;min-width:0;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.t-card{background:#fff;border-radius:16px;padding:16px 17px;box-shadow:0 16px 30px rgba(0,0,0,.18)}
.t-card .tc-g{font-size:11px;font-weight:900;letter-spacing:1px;color:var(--teal)}
.t-card h4{font-family:var(--font-head);font-size:16.5px;font-weight:800;margin:5px 0 4px;line-height:1.25}
.t-card p{font-size:12.5px;color:#8B96A3;font-weight:700}
.t-card .tc-btn{
  display:block;margin-top:11px;text-align:center;background:#FFF1E8;color:var(--coral-deep);
  font-weight:900;font-size:13px;padding:9px;border-radius:10px;text-decoration:none;min-height:44px;
  display:flex;align-items:center;justify-content:center;
}
.t-card .tc-btn:hover{background:#FFE4D6}

/* ---------- 15. Library + grades ---------- */
.lib{display:grid;grid-template-columns:repeat(6,1fr);gap:15px}
.libc{
  background:#fff;border:1.5px solid var(--line);border-radius:17px;padding:18px;
  text-align:center;box-shadow:0 6px 14px rgba(120,90,40,.045);
  text-decoration:none;display:block;color:var(--ink);
}
.libc:hover{border-color:var(--teal)}
.libc .ic{font-size:27px;display:block;margin-bottom:8px}
.libc h3{font-size:16.5px;font-weight:800}
.libc p{font-size:12px;color:var(--muted-2);font-weight:800;margin-top:2px}
.grades{display:flex;gap:11px;margin-top:20px}
.gcard,.grow{
  flex:1;background:var(--ink);color:#fff;border-radius:15px;padding:14px 16px;
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  text-decoration:none;min-width:0;
}
.gcard:hover,.grow:hover{background:var(--ink-deep)}
.gcard b,.grow b{font-family:var(--font-head);font-size:16px;color:#fff}
.gcard span,.grow span{font-size:12px;font-weight:800;color:var(--amber);white-space:nowrap}

/* ---------- 16. Week pack ---------- */
.weekpack{
  margin-top:56px;background:var(--cream-2);border:1.5px solid #F3E3C2;border-radius:26px;
  padding:36px 44px;display:flex;gap:40px;align-items:center;
}
.weekpack .wp-copy{width:430px;flex:none;max-width:100%}
.weekpack h2{font-size:30px;font-weight:800;line-height:1.2}
.weekpack h2 span{color:var(--coral)}
.weekpack p{color:#77828F;font-weight:600;font-size:15.5px;line-height:1.55;margin-top:9px}
.weekpack .btn{padding:14px 26px;font-size:15.5px;margin-top:17px}
.wp-days{flex:1;min-width:0;display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.wp-day{min-width:0}
.wp-day{
  background:#fff;border-radius:14px;padding:13px 13px 11px;
  border:1.5px solid var(--line);box-shadow:0 8px 16px rgba(120,90,40,.06);
}
.wp-day b{font-family:var(--font-head);font-size:13px;letter-spacing:.6px;display:block;margin-bottom:6px}
.wp-day span{font-size:12px;font-weight:700;color:var(--muted);display:block;line-height:1.45}
.wp-day .hw{
  margin-top:7px;display:inline-block;background:var(--mint-bg);color:var(--teal);
  font-size:10.5px;font-weight:900;padding:3px 8px;border-radius:999px;
}

/* ---------- 17. Starter-pack magnet ---------- */
.magnet{
  margin:56px 0 0;background:linear-gradient(120deg,var(--coral),#F43F5E);
  border-radius:26px;padding:42px 50px;display:flex;gap:38px;align-items:center;
}
.magnet .mf-copy{max-width:500px}
.magnet h2{color:#fff;font-size:31px;font-weight:800;line-height:1.2}
.magnet p{color:#FFE3D9;font-weight:600;font-size:15.5px;margin-top:8px;line-height:1.5}
.mf{margin-left:auto;width:420px;max-width:100%;flex:none}
.mf-row{display:flex;background:#fff;border-radius:999px;padding:6px;box-shadow:0 16px 30px rgba(0,0,0,.20)}
.mf-in{flex:1;min-width:0;padding:12px 18px;color:var(--muted-2);font-weight:600;font-size:15px;border:0;background:transparent;min-height:44px}
.mf-in:focus{outline:none}
.mf-row:focus-within{outline:3px solid #fff;outline-offset:3px}
.mf-btn{
  background:var(--ink);color:#fff;font-weight:900;padding:12px 23px;
  border-radius:999px;font-size:15px;border:0;white-space:nowrap;min-height:44px;
}
.mf-btn:hover{background:var(--ink-deep)}
.mf-note{color:#FFE3D9;font-size:12.5px;font-weight:600;margin-top:11px;text-align:center}

/* ---------- 18. Testimonials ---------- */
.quotes{display:grid;grid-template-columns:repeat(3,1fr);gap:19px}
.quote{background:#fff;border:1.5px solid var(--line);border-radius:var(--radius);padding:23px 25px}
.quote .stars{color:#F59E0B;letter-spacing:2px;font-size:14px}
.quote p{font-size:15px;line-height:1.6;font-weight:600;color:#454f63;margin:10px 0 13px}
.quote .who{font-weight:900;font-size:14px}
.quote .who span{color:var(--muted-2);font-weight:700}

/* ---------- 19. Footer ---------- */
footer.cp-footer{background:var(--ink-deep);color:#A9B6C4;margin-top:64px}
.foot-in{display:flex;gap:54px;padding:48px 0 34px}
.foot-brand{width:310px;flex:none}
.foot-brand .logo-text{color:#fff}
.foot-brand p{font-size:13.5px;line-height:1.6;font-weight:600;margin-top:12px;color:#8494A7}
.foot-col{flex:1;min-width:0}
.foot-col h4{color:#fff;font-size:15px;margin-bottom:14px;font-family:var(--font-head)}
.foot-col a{display:block;color:#8494A7;text-decoration:none;font-size:13.5px;font-weight:600;margin-bottom:9px}
.foot-col a:hover{color:#fff}
.foot-menu{list-style:none;margin:0;padding:0}
.foot-menu li{margin:0;padding:0}
/* simplified mobile link row (hidden on desktop) */
.foot-links{display:none;gap:8px 18px;flex-wrap:wrap;margin-top:15px}
.foot-links a{color:#A9B6C4;text-decoration:none;font-size:12.5px;font-weight:700}
.foot-bottom{
  border-top:1px solid #2E3D52;padding:18px 0 23px;
  display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;
  font-size:12.5px;font-weight:600;color:#6E8098;
}

/* ---------- 20. Worksheet archive cards ---------- */
.ws-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:19px}
.ws-card{
  background:#fff;border:1.5px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:0 8px 18px rgba(120,90,40,.05);
  display:flex;flex-direction:column;text-decoration:none;color:var(--ink);
}
.ws-card:hover{border-color:var(--teal)}
.ws-thumb{aspect-ratio:4/3;background:var(--cream-2);display:flex;align-items:center;justify-content:center;overflow:hidden}
.ws-thumb svg,.ws-thumb img{width:100%;height:100%;object-fit:cover}
.ws-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.ws-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.level-tag{font-size:10px;font-weight:900;letter-spacing:.6px;padding:4px 10px;border-radius:999px;white-space:nowrap}
.level-tag.level-easy{background:var(--mint-line);color:var(--teal)}
.level-tag.level-medium{background:#FFF3D6;color:var(--amber-ink)}
.level-tag.level-challenge{background:#FFE8E8;color:#B91C1C}
.ws-grade{font-size:11px;font-weight:900;letter-spacing:1px;color:var(--teal)}
.ws-card h3{font-size:18px;font-weight:800;line-height:1.25}
.ws-meta{font-size:12.5px;font-weight:700;color:var(--muted-2)}
.ws-print{margin-top:auto;padding-top:8px;font-weight:900;font-size:14px;color:var(--teal);text-decoration:none}
.ws-print:hover{text-decoration:underline}

/* ---------- 21. Single worksheet ---------- */
.ws-single{display:grid;grid-template-columns:1.25fr .75fr;gap:32px;align-items:start}
.ws-side{
  background:#fff;border:1.5px solid var(--line);border-radius:var(--radius);
  padding:26px;box-shadow:0 8px 18px rgba(120,90,40,.05);
  position:sticky;top:20px;
}
.ws-side h1{font-size:26px;font-weight:800;margin-bottom:8px}
.ws-side .cp-sheet-meta{margin:10px 0 16px}
.ws-side .btn{display:block;width:100%;padding:15px;font-size:16px;margin-top:10px}
.ws-side .btn + .btn{margin-top:10px}
.share-row{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
.share-row a,.share-row button{
  width:44px;height:44px;border-radius:50%;flex:none;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  font-size:19px;text-decoration:none;border:2px solid transparent;
  color:#fff;font-weight:900;
}
.share-row .share-label{display:block;font-size:9px;font-weight:800;margin-top:3px;color:var(--muted-2);text-align:center}
.share-pinterest{background:#E60023}
.share-facebook{background:#1877F2}
.share-x{background:var(--ink)}
.share-whatsapp{background:#25D366}
.share-copy{background:#fff;border-color:var(--teal);color:var(--teal)}
[data-cp-copy]{cursor:pointer}
/* on mobile the share buttons drop their text labels (aria-labels carry the meaning) */

/* ---------- 22. Maker pages ---------- */
.maker-layout{display:grid;grid-template-columns:380px 1fr;gap:28px;align-items:start}
.maker-controls{
  background:#fff;border:1.5px solid var(--line);border-radius:24px;
  padding:26px;box-shadow:0 20px 40px rgba(120,84,20,.10);
  position:sticky;top:20px;
}
.maker-controls h2{font-size:22px;font-weight:800;margin-bottom:4px}
.maker-controls .maker-controls-sub{font-size:13.5px;color:var(--muted);font-weight:600;margin-bottom:18px}
.cp-field{margin-bottom:14px}
.cp-field > label{display:block;font-size:11px;font-weight:900;letter-spacing:1px;color:var(--muted-2);margin-bottom:6px}
.cp-generate{width:100%;padding:16px;font-size:16.5px;margin-top:8px}
/* answer-key toggle switch */
.cp-toggle{display:flex;align-items:center;gap:10px;font-weight:800;font-size:14px;color:#48566A;cursor:pointer;user-select:none}
.cp-toggle input{position:absolute;opacity:0;width:1px;height:1px}
.cp-toggle .tk{
  width:48px;height:28px;border-radius:999px;background:#E5DCC8;position:relative;flex:none;
  transition:background .15s ease;
}
.cp-toggle .tk::after{
  content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;
  background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.2);transition:left .15s ease;
}
.cp-toggle input:checked + .tk{background:var(--teal)}
.cp-toggle input:checked + .tk::after{left:23px}
.cp-toggle input:focus-visible + .tk{outline:3px solid var(--teal);outline-offset:2px}
/* sheet stage: paper-white preview on a cream backdrop */
.maker-stage{
  background:var(--cream-2);border:1.5px dashed #E7D9BE;border-radius:24px;
  padding:34px;position:relative;min-height:420px;
  display:flex;align-items:flex-start;justify-content:center;
}
.maker-ribbon{
  position:absolute;top:18px;right:-8px;background:var(--amber);color:var(--amber-ink);
  font-size:11px;font-weight:900;letter-spacing:1px;padding:6px 14px;border-radius:8px 8px 0 8px;
  box-shadow:0 6px 14px rgba(217,119,6,.25);
}

/* ---------- 23. Printable sheet (.cp-sheet) ---------- */
.cp-print-area{width:100%}
.cp-sheet{
  background:#fff;color:#111;
  width:100%;max-width:760px;margin:0 auto;
  min-height:560px; /* paper feel on screen; grows with content */
  border-radius:6px;
  box-shadow:0 24px 60px rgba(60,40,10,.18);
  border:1px solid #E9E2D4;
  padding:44px 48px 36px;
  display:flex;flex-direction:column;
  font-family:var(--font-body);
}
.cp-sheet-brand{
  font-size:11px;font-weight:900;letter-spacing:2px;text-transform:uppercase;
  color:#8B96A3;margin-bottom:8px;
}
.cp-sheet-title{font-family:var(--font-head);font-size:34px;font-weight:800;line-height:1.15;color:#111;margin-bottom:6px}
.cp-sheet-meta{font-size:13.5px;font-weight:700;color:#5A6879;margin-bottom:14px}
.cp-nameline{
  display:flex;gap:26px;align-items:flex-end;
  font-size:15px;font-weight:800;color:#22303E;
  border-top:2px solid #22303E;border-bottom:2px solid #22303E;
  padding:10px 0;margin-bottom:18px;
}
.cp-nameline .nl{flex:1;display:flex;align-items:flex-end;gap:8px;white-space:nowrap}
.cp-nameline .nl i{flex:1;border-bottom:2px solid #9AA5AF;min-width:40px;font-style:normal}
.cp-sheet-body{flex:1;min-height:0}
/* math problems grid */
.cp-math-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px 28px}
.cp-prob{font-size:20px;font-weight:800;color:#111;letter-spacing:.5px;white-space:nowrap}
/* tracing letters: outlined fill, with a light-gray fallback for non-webkit */
.trace-word,.trace-name{color:#C7D0DA;font-weight:800}
@supports ((-webkit-text-stroke:1px #9AA5AF)){
  .trace-word,.trace-name{color:transparent;-webkit-text-stroke:2px #9AA5AF}
}
.trace-word{font-size:64px;line-height:1.25;letter-spacing:6px;font-family:var(--font-head)}
.trace-name{font-size:88px;line-height:1.3;letter-spacing:10px;font-family:var(--font-head);text-align:center}
/* word-search grid: square bordered cells; .found marks answer cells */
.cp-ws-grid{display:grid;gap:0;border:2px solid #22303E;max-width:520px;margin:0 auto}
.cp-ws-grid > span{
  aspect-ratio:1/1;border:1px solid #C9D2DC;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-head);font-weight:800;font-size:19px;color:#111;
  background:#fff;user-select:none;
}
.cp-ws-grid > span.found{background:var(--amber);border-color:#D99A06}
.found{background:var(--amber)}
/* answer key block */
.cp-key{
  margin-top:18px;background:#FFF6E9;border:1.5px dashed var(--amber);
  border-radius:12px;padding:14px 18px;font-size:14px;font-weight:700;color:#5A3B00;
}
.cp-key b{color:var(--amber-ink)}
/* sheet footer: brand left, QR placeholder right */
.cp-sheet-foot{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  border-top:2px solid #22303E;margin-top:18px;padding-top:12px;
}
.cp-sheet-foot .cp-foot-brand{font-size:13px;font-weight:900;color:#22303E}
.cp-qr{text-align:center;flex:none}
.cp-qr .qr-box{
  width:64px;height:64px;border:2px dashed #9AA5AF;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  font-size:15px;font-weight:900;color:#9AA5AF;letter-spacing:1px;margin:0 auto;
}
.cp-qr small{display:block;font-size:9.5px;font-weight:700;color:#8B96A3;margin-top:4px;max-width:88px;line-height:1.35}

/* ---------- 24. Print — only .cp-print-area survives ---------- */
@page{size:Letter;margin:12mm}
@media print{
  /* JS adds body.cp-printing right before window.print() */
  body.cp-printing{padding:0 !important;background:#fff}
  body.cp-printing > *:not(.cp-print-area){display:none !important}
  body.cp-printing .cp-print-area{display:block !important}
  body.cp-printing .cp-sheet{
    max-width:none;aspect-ratio:auto;height:auto;
    box-shadow:none;border:0;border-radius:0;
    padding:0;overflow:visible;
  }
  /* keep the answer-key highlights faithful in print */
  .cp-sheet.answer .found,.cp-sheet.answer .cp-ws-grid > span.found{
    -webkit-print-color-adjust:exact;print-color-adjust:exact;
  }
  .cp-sheet .maker-ribbon{display:none}
}

/* ---------- 25. Responsive ---------- */

/* ----- 1100px: hero stacks, wide grids relax ----- */
@media (max-width:1100px){
  .hero-in{flex-direction:column;gap:36px;padding:40px 0 44px}
  .hero-left{width:100%}
  .hero p.sub,.hero .sub{max-width:100%}
  .hero h1{font-size:46px}
  .makers{grid-template-columns:repeat(2,1fr)}
  .situ{grid-template-columns:repeat(2,1fr)}
  .lib{grid-template-columns:repeat(3,1fr)}
  .grades{flex-wrap:wrap}
  .gcard,.grow{flex:1 1 30%}
  .ws-grid{grid-template-columns:repeat(3,1fr)}
  .today{flex-direction:column;align-items:stretch;padding:32px}
  .today .t-left{width:100%}
  .weekpack{flex-direction:column;align-items:stretch;padding:32px}
  .weekpack .wp-copy{width:100%}
  .maker-layout{grid-template-columns:1fr}
  .maker-controls{position:static}
  .magnet{flex-direction:column;align-items:stretch;padding:36px}
  .mf{margin-left:0;width:100%}
  .magnet .mf-copy{max-width:100%}
}

/* ----- 900px: mobile header + tab bar, single-column flows ----- */
.cta-short{display:none}
@media (max-width:900px){
  body{padding-bottom:88px} /* tab bar clearance */
  section.block{padding:30px 0 4px}
  .wrap{padding-inline:18px}

  /* compact sticky header */
  header.cp-header{position:sticky;top:0}
  .header-in{gap:10px;padding:11px 0}
  .cp-nav,.search-pill,.btn-head{display:none}
  .logo-mark{width:38px;height:38px;border-radius:11px}
  .logo-text{font-size:20px}
  .logo-sub{font-size:8px;letter-spacing:1.2px;margin-top:2px;white-space:nowrap}
  .logo{min-width:0}
  .header-right{min-width:0;gap:10px}
  .head-cta{font-size:12px;padding:10px 12px}
  .head-ic{display:flex}
  .head-cta{display:inline-flex}
  .head-cta .cta-full{display:none}
  .head-cta .cta-short{display:inline}

  /* tab bar on */
  .tabbar{display:flex}
  .sec-head h2{font-size:24px}
  .sec-head p{font-size:13.5px}
  .see-all{font-size:13.5px}

  /* hero */
  .hero-in{padding:20px 0 22px;gap:0}
  .hero-pill{font-size:10.5px;letter-spacing:.5px;padding:7px 12px}
  .hero h1{font-size:33px;line-height:1.12;margin:13px 0 10px}
  .hero p.sub,.hero .sub{font-size:15px}
  .mini-points{gap:8px 14px;margin:14px 0 4px}
  .mini-points div{font-size:12.5px}
  .tick{width:18px;height:18px;font-size:11px}
  .btn-hero{font-size:15.5px}

  /* maker card stacks */
  .maker-card{border-radius:20px;padding:19px;margin-top:16px;box-shadow:0 20px 40px rgba(120,84,20,.14)}
  .mc-head h3{font-size:17px}
  .mc-head p{font-size:11.5px}
  .mc-ic{width:36px;height:36px;border-radius:10px}
  .mc-live{font-size:10.5px;padding:5px 9px}
  .mc-row{flex-direction:column}
  .mc-field{margin-bottom:11px}
  .mc-field label{font-size:10px;margin-bottom:5px}
  select.mc-sel,div.mc-sel{min-height:46px;font-size:14px;border-radius:11px;padding:12px 38px 12px 13px}
  div.mc-sel{padding-right:13px}
  .level{font-size:12.5px;padding:11px 4px;border-radius:10px}
  .mc-create{font-size:16px;margin-top:4px}
  .mc-foot{font-size:11px;margin-top:11px}

  /* proof sheets: 2 across */
  .hero-proof{gap:11px;margin-top:14px}
  .proof-sheet{padding:11px 12px;border-radius:14px}
  .proof-sheet .ps-t{font-size:12px}
  .ps-tag{font-size:8.5px;padding:2px 7px}
  .proof-sheet .ps-r{font-size:11.5px}
  .hero-proof .proof-sheet:nth-child(3){display:none}

  /* trustbar: 3-col grid */
  .trustbar-in{display:grid;grid-template-columns:repeat(3,1fr);gap:12px 0;padding:16px 10px}
  .tb{border-right:0}
  .tb b{font-size:19px}
  .tb span{font-size:9.5px;font-weight:800;letter-spacing:.4px}

  /* makers: stacked rows with top-flex layout */
  .makers{grid-template-columns:1fr}
  .maker{padding:18px}
  .maker .ic{width:46px;height:46px;border-radius:13px;font-size:22px;margin-bottom:0}
  .maker h3{font-size:17.5px}
  .maker p{font-size:13px;min-height:0}
  .maker .ui{font-size:12px;padding:9px 11px;border-radius:10px}
  .maker .go{font-size:13.5px}
  .new-tag{font-size:9px;letter-spacing:.7px;padding:3px 7px;margin-left:6px}

  /* classroom moments: stacked rows, icon left */
  .situ{grid-template-columns:1fr}
  .sit{min-height:0;border-radius:18px;padding:18px;display:flex;gap:13px;align-items:center}
  .sit .emoji{font-size:26px;margin-bottom:0;flex:none}
  .sit > div{flex:1;min-width:0}
  .sit h3{font-size:17.5px}
  .sit p{font-size:12.5px;width:100%}
  .sit .cnt{position:static;margin-left:auto;flex:none;font-size:12.5px;padding:6px 10px}

  /* today: stacked rows */
  .today{border-radius:22px;padding:22px 19px;margin-top:26px}
  .today .t-date{font-size:11px;letter-spacing:.6px;padding:6px 12px;margin-bottom:11px}
  .today h2{font-size:24px}
  .today p{font-size:13.5px}
  .t-cards{grid-template-columns:1fr}
  .t-card{border-radius:14px;padding:14px 15px;display:flex;align-items:center;gap:12px}
  .t-card > div{flex:1;min-width:0}
  .t-card .tc-g{font-size:9.5px}
  .t-card h4{font-size:15.5px;margin:2px 0 1px}
  .t-card p{font-size:11.5px}
  .t-card .tc-btn{margin:0 0 0 auto;flex:none;font-size:12.5px;padding:11px 13px;min-height:44px}

  /* library: 2-col, icon-left */
  .lib{grid-template-columns:1fr 1fr;gap:11px}
  .libc{border-radius:15px;padding:15px 14px;display:flex;gap:11px;align-items:center;text-align:left}
  .libc .ic{font-size:23px;margin-bottom:0;flex:none}
  .libc h3{font-size:15.5px}
  .libc p{font-size:10.5px}
  .grades{flex-direction:column;gap:10px;margin-top:16px}
  .gcard,.grow{flex:none;border-radius:13px;padding:14px 16px}
  .gcard b,.grow b{font-size:15.5px}

  /* weekpack rows */
  .weekpack{border-radius:22px;padding:22px 19px;margin-top:26px}
  .weekpack h2{font-size:23px}
  .weekpack p{font-size:13.5px}
  .wp-days{grid-template-columns:1fr;gap:9px}
  .wp-day{border-radius:12px;padding:11px 13px;display:flex;align-items:center;gap:11px}
  .wp-day b{font-size:12.5px;margin-bottom:0;width:34px;flex:none}
  .wp-day span{font-size:12.5px}
  .wp-day .hw{margin:0 0 0 auto;flex:none;font-size:10px;padding:4px 8px}
  .weekpack .btn{display:block;font-size:15px;margin-top:15px}

  /* magnet stacked */
  .magnet{border-radius:22px;padding:24px 21px;margin-top:26px}
  .magnet h2{font-size:23px}
  .magnet p{font-size:13.5px}
  .mf-row{padding:5px;margin-top:16px}
  .mf-in{padding:11px 14px;font-size:13.5px}
  .mf-btn{padding:11px 16px;font-size:13.5px}
  .mf-note{font-size:11px}

  /* testimonials: show 2 */
  .quotes{grid-template-columns:1fr}
  .quote{border-radius:17px;padding:18px}
  .quote .stars{font-size:13px}
  .quote p{font-size:14px;margin:8px 0 10px}
  .quote .who{font-size:13px}
  .quotes .quote:nth-child(3){display:none}

  /* footer simplified */
  footer.cp-footer{margin-top:30px}
  .foot-in{flex-direction:column;gap:0;padding:26px 0 20px}
  .foot-brand{width:100%}
  footer .logo-text{font-size:19px}
  .foot-col{display:none}
  .foot-links{display:flex}
  .foot-bottom{font-size:11px;line-height:1.6;margin-top:17px;padding-top:13px}

  /* archive + single */
  .ws-grid{grid-template-columns:repeat(2,1fr);gap:14px}
  .ws-single{grid-template-columns:1fr}
  .ws-side{position:static}
  .share-row .share-label{display:none} /* icon-only on mobile, aria-labels carry meaning */

  /* maker page stage */
  .maker-stage{padding:20px 14px}
  .cp-sheet{padding:30px 26px 24px}
  .cp-sheet-title{font-size:26px}
  .trace-word{font-size:44px}
  .trace-name{font-size:56px}
}

/* ----- 640px: small-phone tightening, zero horizontal scroll ----- */
@media (max-width:640px){
  .wrap{padding-inline:16px}
  .hero h1{font-size:30px}
  .sec-head{flex-direction:column;align-items:flex-start;gap:4px}
  .ws-grid{grid-template-columns:repeat(2,1fr);gap:11px}
  .ws-body{padding:12px 13px 14px}
  .ws-card h3{font-size:15.5px}
  .mc-foot{font-size:10.5px;gap:6px}
  .mc-foot span{white-space:nowrap}
  .t-card .tc-btn{padding:11px 10px;font-size:11.5px}
  .trustbar-in{grid-template-columns:repeat(3,1fr)}
  .cp-math-grid{grid-template-columns:repeat(2,1fr)}
  .cp-prob{font-size:17px}
  .cp-nameline{flex-direction:column;align-items:stretch;gap:10px}
  .foot-bottom{flex-direction:column}
}

/* desktop-only: never show the mobile tab bar or mobile header bits */
@media (min-width:901px){
  .tabbar{display:none !important}
}

/* ---------- 24. Template pieces (page/archive/single/maker forms) ---------- */
.cp-page-head{padding:44px 0 8px}
.cp-page-head h1{font-size:38px;font-weight:800}
.cp-page-head p{color:var(--muted);font-weight:600;font-size:16px;margin-top:6px;max-width:720px}
.cp-page{padding-bottom:40px}
.cp-page-body{font-size:16.5px;line-height:1.7;color:#3A4657;max-width:780px}
.cp-page-body p{margin-bottom:16px}
.cp-crumb{font-size:13px;font-weight:700;color:var(--muted-2);padding:22px 0 0}
.cp-crumb a{color:var(--teal);text-decoration:none}
.cp-empty{text-align:center;padding:70px 20px;max-width:560px;margin:0 auto}
.cp-empty .baloo{font-size:26px;font-weight:800;margin-bottom:10px}
.cp-empty p{color:var(--muted);font-weight:600;margin-bottom:14px}
.cp-404{padding:90px 20px}
.cp-pagination{margin:34px 0 10px;text-align:center}
.cp-pagination .page-numbers{display:inline-block;min-width:44px;padding:10px 14px;margin:0 4px;border-radius:12px;background:#fff;border:1.5px solid var(--line);font-weight:800;color:var(--ink);text-decoration:none}
.cp-pagination .page-numbers.current{background:var(--teal);border-color:var(--teal);color:#fff}
.ws-filters{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;background:#fff;border:1.5px solid var(--line);border-radius:var(--radius);padding:18px 20px;margin:22px 0 26px;box-shadow:0 8px 18px rgba(120,90,40,.05)}
.ws-filters .mc-field{margin:0;min-width:170px;flex:1}
.ws-filter-btn{padding:13px 26px;font-size:15px;flex:none}
.ws-single > .ws-main{min-width:0}
.ws-preview-card{background:#fff;border:1.5px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:0 8px 18px rgba(120,90,40,.05);margin-bottom:22px}
.ws-preview-card .cp-sheet{box-shadow:none;margin:0}
.ws-preview-img{width:100%;height:auto;border-radius:12px;display:block}
.ws-preview-ph{text-align:center;padding:60px 20px;color:var(--muted-2)}
.ws-preview-ph span{font-size:52px}
.ws-content{font-size:16.5px;line-height:1.7;color:#3A4657;margin-bottom:8px}
.ws-content p{margin-bottom:14px}
.ws-meta-list{list-style:none;margin:14px 0;padding:0;font-size:14.5px}
.ws-meta-list li{padding:7px 0;border-bottom:1px solid var(--field-line);color:var(--muted);font-weight:600}
.ws-meta-list li strong{color:var(--ink)}
.ws-meta-list a{color:var(--teal);text-decoration:none;font-weight:800}
.ws-actions{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.ws-note{font-size:13px;color:var(--muted-2);font-weight:700;margin-top:12px}
.ws-thumb{position:relative;display:block;overflow:hidden}
.ws-thumb .level-tag{position:absolute;top:10px;right:10px}
.ws-thumb-ph{display:flex;align-items:center;justify-content:center;font-size:44px;min-height:180px;background:var(--cream-2)}
.cp-output{width:100%}
.cp-output-empty{border:2px dashed #E7D9BE;border-radius:18px;padding:70px 24px;text-align:center;color:var(--muted-2);font-weight:700;background:#fff}
.cp-output-empty span{font-size:44px;display:block;margin-bottom:10px}
.cp-check{display:flex;align-items:center;gap:10px;font-weight:800;font-size:14.5px;color:#48566A;margin:4px 0 12px;cursor:pointer}
.cp-check input{width:20px;height:20px;accent-color:var(--teal)}
.cp-hint{font-size:12.5px;color:var(--muted-2);font-weight:700;margin-top:8px}
.mc-area,.mc-input{width:100%;background:var(--field);border:1.5px solid var(--field-line);border-radius:12px;padding:12px 14px;font-weight:700;font-size:15px;color:var(--ink);font-family:var(--font-body)}
.mc-area:focus,.mc-input:focus{outline:3px solid rgba(14,124,123,.25);border-color:var(--teal)}
.mc-area{min-height:180px;resize:vertical;line-height:1.6}
.share-label{font-weight:900;font-size:13px;letter-spacing:1px;color:var(--muted-2);align-self:center;margin-right:4px;text-transform:uppercase}
.share-btn .share-copy-text{font-size:10px;font-weight:900}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cp-quick-output{margin-top:18px}
.cp-quick-output .cp-sheet{margin-top:6px}
/* print buttons injected at the top of generated sheets */
.cp-sheet-actions{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.cp-print-btn{background:var(--teal);color:#fff;border:0;border-radius:999px;padding:12px 22px;font-weight:900;font-size:14.5px;cursor:pointer;box-shadow:0 8px 18px rgba(14,124,123,.30);font-family:var(--font-body)}
.cp-print-btn:hover{filter:brightness(1.06)}
.cp-dl-btn{background:var(--ink);color:#fff}
.cp-form-note{font-size:13.5px;font-weight:800;margin-top:10px;color:var(--teal-ink)}
.cp-form-note.cp-form-error{color:#C2410C}
@media (max-width:900px){
  .cp-page-head{padding:30px 0 6px}
  .cp-page-head h1{font-size:29px}
  .ws-filters{padding:14px}
  .ws-single{grid-template-columns:1fr}
  .ws-side{position:static}
}

/* ---------- 25. Sheet internals: problems, spelling, word search ---------- */
/* math / week-pack problems (JS emits .cp-problems > .cp-problem) */
.cp-math-grid,.cp-problems{columns:2;column-gap:36px}
.cp-prob,.cp-problem{break-inside:avoid;margin-bottom:15px;font-size:20px;font-weight:800;color:#111;letter-spacing:.5px;white-space:nowrap;font-family:var(--font-body)}
/* "Open in Math Maker" link under quick-maker sheets */
.cp-sheet-after{margin-top:14px;text-align:center}
.cp-open-maker{display:inline-block;font-weight:900;color:var(--teal);text-decoration:none;font-size:15px}
.cp-open-maker:hover{text-decoration:underline}
/* week pack */
.cp-day-tag{display:inline-block;background:var(--ink);color:#fff;font-weight:900;font-size:12px;letter-spacing:1.5px;padding:6px 16px;border-radius:999px;margin-bottom:12px}
.cp-homework{break-inside:avoid;margin-top:14px;background:#FFF6E9;border:1.5px dashed var(--amber);border-radius:12px;padding:12px 16px;font-size:14.5px;font-weight:800;color:#5A3B00}
/* spelling: trace rows */
.cp-trace-row{display:grid;grid-template-columns:repeat(3,1fr);gap:6px 14px;margin-bottom:10px;align-items:end}
.cp-trace-row .trace-word{font-size:40px;letter-spacing:3px;line-height:1.3}
/* spelling: copy rows */
.cp-copy-row{margin-bottom:16px}
.cp-copy-word{display:inline-block;font-size:30px;font-weight:800;font-family:var(--font-head);color:#111;margin-bottom:2px}
.cp-copy-line{border-bottom:2px solid #9AA5AF;height:32px}
/* spelling: missing letters */
.cp-missing-word{font-size:30px;font-weight:800;font-family:var(--font-head);letter-spacing:5px;color:#111;margin-bottom:14px}
/* word search: grid is rows of cells (JS emits .cp-ws-row > .cp-ws-cell) */
.cp-ws-wrap .cp-ws-grid{margin-bottom:6px}
.cp-ws-row{display:grid;grid-auto-flow:column;grid-auto-columns:1fr}
.cp-ws-grid > span,.cp-ws-grid > div.cp-ws-cell,.cp-ws-cell{
  aspect-ratio:1/1;border:1px solid #C9D2DC;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-head);font-weight:800;font-size:19px;color:#111;
  background:#fff;user-select:none;min-width:0;
}
.cp-ws-grid > span.found,.cp-ws-cell.found{background:var(--amber);border-color:#D99A06}
.cp-ws-bank{display:flex;flex-wrap:wrap;gap:8px 10px;margin-top:14px}
.cp-ws-bank-word{display:inline-block;font-weight:800;font-size:14.5px;color:#22303E;background:#FFF6E9;border:1.5px solid var(--line);border-radius:999px;padding:6px 14px}
.cp-ws-bank-word.found{background:var(--amber);border-color:#D99A06;color:#3D2E00}
.cp-key-title{font-weight:900;color:#5A3B00;margin-bottom:10px;font-size:15px}
@media print{
  .cp-sheet.answer .cp-ws-cell.found,.cp-sheet.answer .cp-ws-bank-word.found{
    -webkit-print-color-adjust:exact;print-color-adjust:exact;
  }
}
@media (max-width:600px){
  .cp-prob,.cp-problem{font-size:17px}
  .cp-trace-row .trace-word{font-size:30px}
  .cp-copy-word{font-size:24px}
  .cp-missing-word{font-size:24px}
}

/* ---------- 26. Articles (blog) ---------- */
.art-grid{grid-template-columns:repeat(3,1fr)}
.art-card .art-ex{font-size:14px;color:var(--muted);font-weight:600;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.art-card .art-cat{background:var(--coral);color:#fff}
/* single article */
.art-single{display:grid;grid-template-columns:minmax(0,1fr);gap:30px;margin-top:6px}
.art-single.has-side{grid-template-columns:minmax(0,1fr) 300px;align-items:start}
.art-main{min-width:0}
.art-cats{margin:0 0 10px}
.art-cats a{display:inline-block;background:var(--mint);color:var(--teal-ink);font-weight:900;font-size:12.5px;letter-spacing:.6px;text-transform:uppercase;text-decoration:none;border-radius:999px;padding:6px 14px;margin:0 6px 6px 0}
.art-title{font-size:40px;font-weight:800;line-height:1.15;margin:0 0 10px;color:var(--ink)}
.art-meta{color:var(--muted-2);font-weight:700;font-size:14px;margin:0 0 22px}
.art-hero{margin:0 0 26px}
.art-hero .ws-preview-img{width:100%;height:auto;border-radius:var(--radius);box-shadow:0 14px 30px rgba(120,90,40,.10)}
.art-body{font-size:17.5px;line-height:1.75;color:#33404F;max-width:720px}
.art-body p{margin:0 0 20px}
.art-body h2,.art-body h3,.art-body h4{font-family:var(--font-head);font-weight:800;color:var(--ink);line-height:1.3;margin:34px 0 14px}
.art-body h2{font-size:28px}
.art-body h3{font-size:23px}
.art-body ul,.art-body ol{margin:0 0 20px;padding-left:26px}
.art-body li{margin-bottom:8px}
.art-body a{color:var(--teal);font-weight:700}
.art-body img{max-width:100%;height:auto;border-radius:14px}
.art-body blockquote{margin:0 0 20px;padding:16px 22px;border-left:5px solid var(--coral);background:#fff;border-radius:0 14px 14px 0;font-weight:600;color:#48566A}
.art-tags{margin:26px 0 6px}
.art-tags a{display:inline-block;background:#F6F1E7;color:var(--muted);font-weight:800;font-size:13.5px;text-decoration:none;border-radius:999px;padding:7px 15px;margin:0 8px 8px 0}
.art-tags a:hover{background:var(--mint);color:var(--teal-ink)}
.art-main .share-row{margin-top:22px}
/* article sidebar + widgets */
.art-side{position:sticky;top:20px;background:#fff;border:1.5px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:0 8px 18px rgba(120,90,40,.05)}
.widget{margin-bottom:26px}
.widget:last-child{margin-bottom:0}
.widget-title{font-size:18px;font-weight:800;margin:0 0 12px;color:var(--ink)}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{margin-bottom:9px;font-size:14.5px;font-weight:600}
.widget a{color:var(--teal);text-decoration:none;font-weight:700}
.widget a:hover{text-decoration:underline}
.foot-strip{border-top:1px solid rgba(255,255,255,.08);margin-top:26px;padding-top:22px;color:#8494A7}
.foot-strip .widget-title{color:#fff}
@media (max-width:1000px){
  .art-grid{grid-template-columns:repeat(2,1fr)}
  .art-single.has-side{grid-template-columns:minmax(0,1fr)}
  .art-side{position:static}
}
@media (max-width:900px){
  .art-title{font-size:29px}
  .art-body{font-size:16.5px}
}
@media (max-width:600px){
  .art-grid{grid-template-columns:1fr 1fr}
}
