/* post-UASA worksheets page: loaded after style.css and story.css */
.ws-bm { color: var(--h-muted); font-size: 16px; font-style: italic; margin: 12px 0 0; }
.ws-sec { padding-block: clamp(48px, 7vw, 80px); }

/* how it works */
.ws-how { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ws-how li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 20px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ws-how b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
@media (max-width: 900px) { .ws-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ws-how { grid-template-columns: 1fr; } }

/* Year buttons: big and plain, easy for children too */
.ws-ask { font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; }
.ws-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 32px; }
.ws-tabs a { display: grid; place-items: center; min-height: 72px; text-decoration: none; background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: 18px; font: 700 clamp(20px, 3.4vw, 28px) var(--display); transition: border-color .2s, transform .2s; }
.ws-tabs a:hover { transform: translateY(-2px); border-color: var(--c); }
.ws-tabs a[aria-selected="true"] { border-color: var(--c); box-shadow: inset 0 -7px 0 var(--c); }

/* one Year at a time (all three are in the page for Google; the script hides two) */
.ws-panel { scroll-margin-top: calc(var(--nav-h) + 16px); }
.js .ws-panel:not(.on) { display: none; }
.ws-panel + .ws-panel { margin-top: 48px; }
.js .ws-panel + .ws-panel { margin-top: 0; }
.ws-week { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 16px; }
.ws-week h3 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 700; }
.ws-ready { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: #dff1e6; color: #1f6a43; }

.ws-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.ws { display: grid; gap: 8px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; min-width: 0; }
.ws-thumb { display: block; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: zoom-in; aspect-ratio: 210 / 297; max-width: 100%; }
.ws-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.ws-thumb:hover img { transform: scale(1.03); }
.ws-k { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.ws h4 { margin: 0; font: 700 18px/1.25 var(--body); color: var(--ink); }
.ws-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ws-dl, .ws-pv { font: 700 15px var(--body); border-radius: 10px; padding: 9px 13px; text-decoration: none; cursor: pointer; }
.ws-dl { background: var(--accent); color: #fff; border: 2px solid var(--accent); }
.ws-pv { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.ws-dl:hover, .ws-pv:hover { filter: brightness(1.1); }

/* coming soon */
.ws-soon { margin-top: 26px; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 26px 18px; border: 2px dashed var(--line); border-radius: 18px; background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(45,93,159,.05) 12px 24px); }
.ws-soon h3 { font-size: 24px; font-weight: 700; }
.ws-soon p { margin: 0; color: var(--muted); }
.ws-bar { width: min(220px, 100%); height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ws-bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: #c8ab76; animation: ws-load 2.4s ease-in-out infinite; }
@keyframes ws-load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.ws-tg { display: inline-flex; align-items: center; gap: 8px; background: #229ed9; color: #fff; text-decoration: none; font-weight: 700; border-radius: 12px; padding: 11px 18px; }
.ws-tg:hover { filter: brightness(1.08); }
.ws-note { margin: 34px 0 0; color: var(--muted); font-size: 15px; text-align: center; }

/* preview: all three pages */
.ws-view { width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); border: 0; border-radius: 20px; padding: 16px; background: #fff; color: #0f1422; }
.ws-view::backdrop { background: rgba(8, 11, 20, .85); }
.ws-view-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; position: sticky; top: -16px; background: #fff; padding-block: 6px; z-index: 1; }
.ws-view-top button { border: 0; background: #eef0f4; color: #0f1422; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; flex: none; }
.ws-pages { display: grid; gap: 12px; }
.ws-pages img { display: block; width: 100%; height: auto; border: 1px solid #d8dde6; border-radius: 6px; }
.ws-view-cap { color: #4d586c; font-size: 14px; margin: 12px 0; }
.ws-view .btn { width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) { .ws-bar i { animation: none; width: 55%; } .ws-thumb img { transition: none; } }
