/* Worksheet discovery: scoped to the hub, with native controls and paper previews. */
.worksheet-hub { background: #faf9f6; color: #243b3a; }
.worksheet-hub .site-header { position: relative; border-bottom: 1px solid #e2e7e1; border-image: none; border-top: 4px solid #568774; }
.worksheet-hub .header-top { padding-top: 18px; padding-bottom: 18px; }
.worksheet-hub .topnav a[aria-current="page"] { color: #285d4c; text-decoration: underline; text-underline-offset: 7px; font-weight: 700; }
.worksheet-hub main.wrap { max-width: 1160px; padding-top: 0; }
.worksheet-hub main h3 { text-transform: none; letter-spacing: normal; color: #243b3a; }
.wf-sample-cursive { font-family: cursive; font-size: 18px; }
.wf-breadcrumb { margin: 20px 0 0; font-size: 13px; }
.wf-intro { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 32px 0 38px; }
.wf-eyebrow { font-size: 11px; line-height: 1.4; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; color: #597066; margin: 0 0 10px; }
.wf-intro h1 { font-size: clamp(34px,4vw,52px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 16px; }
.wf-intro h1 span { color: #3e7962; }
.wf-intro p:not(.wf-eyebrow) { max-width: 510px; margin: 0; font-size: 16px; color: #586961; }
.wf-promises { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 12px; color: #42624f; }
.wf-intro-art { width: 280px; flex: 0 0 280px; height: 220px; position: relative; background: #e5ede0; border-radius: 45% 55% 42% 58%; margin-right: 38px; }
.wf-mini-sheet { width: 188px; background: white; border: 1px solid #e4e7dd; border-radius: 7px; transform: rotate(-8deg); box-shadow: 0 12px 25px #243b3a12; margin: -5px auto; padding: 24px 20px; }
.wf-mini-sheet>span { display: block; font-size: 8px; letter-spacing: .07em; color: #6d7e73; }
.wf-mini-sheet strong { display: block; font-size: 28px; color: #527564; margin: 18px 0; }
.wf-mini-sheet b { display: block; font-size: 19px; margin: 12px 0; }
.wf-mini-sheet i { color: #c48b3d; }
.wf-mini-sheet hr { border: 0; border-top: 1px dashed #ccd7ca; }
.wf-spark { position: absolute; right: -6px; top: 8px; color: #d9a250; font-size: 44px; }
.wf-pencil { position: absolute; left: 0; bottom: 8px; color: #9e5f45; font-size: 60px; transform: rotate(-20deg); }
.wf-finder { background: #fff; border: 1px solid #dfe5db; padding: 22px 24px; border-radius: 16px; box-shadow: 0 4px 18px #243b3a05; }
.wf-finder-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wf-finder-heading h2 { font-family: inherit; font-size: 17px; margin: 0; }
.wf-finder-heading>span { color: #6e7c72; font-size: 12px; white-space: nowrap; }
#worksheet-filters { display: grid; grid-template-columns: 1fr 1fr 1.8fr auto; align-items: end; gap: 12px; }
.wf-filter { min-width: 0; }
.wf-filter label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.wf-filter select,.wf-filter input { font-family: inherit; font-size: 16px; width: 100%; min-width: 0; height: 46px; border: 1px solid #cbd6cb; border-radius: 8px; padding: 0 12px; color: #243b3a; background: #fff; }
.wf-find,.wf-more { font: 650 14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; cursor: pointer; border-radius: 8px; min-height: 46px; padding: 12px 18px; }
.wf-find { border: 1px solid #285d4c; color: #fff; background: #285d4c; white-space: nowrap; }
.wf-find:hover { background: #1b4739; }
.worksheet-hub :is(a,button,select,input,summary):focus-visible { outline: 3px solid #a86a25; outline-offset: 4px; }
.wf-results { padding: 34px 0 44px; }
.wf-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.wf-results-heading h2,.wf-resources>h2 { font-size: 25px; margin: 0 0 5px; }
#wf-count { font-size: 13px; color: #67746d; margin: 0; }
#wf-clear { color: #315e4d; font-size: 13px; padding: 10px 0; text-underline-offset: 3px; }
.wf-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.wf-card { --subject-color: #497865; --preview-bg: #eaf0e6; display: flex; flex-direction: column; color: inherit; text-decoration: none; border-radius: 12px; background: #fff; border: 1px solid #e0e5dc; min-width: 0; transition: box-shadow .15s, border-color .15s; }
.wf-handwriting { --subject-color: #746391; --preview-bg: #f0edf5; }
.wf-reading { --subject-color: #99723d; --preview-bg: #f7efdf; }
.wf-card:hover { border-color: var(--subject-color); box-shadow: 0 5px 16px #243b3a13; }
.wf-preview { height: 194px; padding: 20px 28px 0; background: var(--preview-bg); border-radius: 11px 11px 0 0; overflow: hidden; }
.wf-paper { background: #fff; color: #39473f; height: 200px; padding: 14px 12px; border: 1px solid #e2e6df; border-radius: 3px; box-shadow: 0 3px 8px #243b3a12; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.wf-paper-heading { font-size: 11px; font-weight: 750; margin-bottom: 9px; }
.wf-paper-name { font-size: 7px; color: #899188; padding-bottom: 9px; border-bottom: 1px solid #e9ede6; }
.wf-sample { font-size: 12px; line-height: 1.7; padding-top: 8px; display: grid; gap: 5px; }
.wf-sample-html { font-size: 8px; line-height: 1.6; }
.wf-sample-html .count-box { font-size: 16px; letter-spacing: 1px; }
.wf-sample .ws-blank { display: inline-block; min-width: 12px; border-bottom: 1px solid #879186; }
.wf-sample-clocks { display: flex; gap: 4px; }
.wf-sample-clocks>div { width: 50%; }
.wf-sample svg { max-width: 100%; height: auto; }
.wf-sample-letters { font-size: 16px; letter-spacing: 1px; color: #657966; }
.wf-sample-tracing { padding-top: 20px; }
.wf-paper-footer { border-top: 1px solid #e9ede6; margin-top: 12px; padding-top: 7px; font-size: 6px; color: #949c92; }
.wf-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.wf-card-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; font-size: 10px; color: var(--subject-color); margin-bottom: 9px; }
.wf-answer { color: #647368; }
.wf-card h3 { font-family: inherit; font-size: 16px; line-height: 1.35; margin: 0 0 7px; }
.wf-grade-label { font-size: 12px; font-weight: 600; margin: 0 0 5px; }
.wf-detail { font-size: 12px; color: #6c796f; margin: 0 0 16px; }
.wf-card-action { border-top: 1px solid #edf0e9; padding-top: 12px; margin-top: auto; font-size: 12px; color: #315e4d; display: flex; justify-content: space-between; gap: 8px; font-weight: 650; }
.wf-more { display: block; margin: 28px auto 0; color: #315e4d; border: 1px solid #bccdbd; background: #fff; }
.wf-empty { text-align: center; border: 1px dashed #bccdbd; border-radius: 12px; padding: 36px 20px; }
.wf-empty a { color: #285d4c; }
.worksheet-hub [hidden] { display: none !important; }
.wf-resources { padding: 30px 0 0; border-top: 1px solid #dee5d9; }
.wf-resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 22px; }
.wf-resource { display: block; padding: 24px; background: #f0f2e9; border-radius: 12px; color: #243b3a; text-decoration: none; }
.wf-resource-icon { font-size: 23px; color: #597e68; }
.wf-resource h3 { font-family: inherit; font-size: 16px; margin: 12px 0 7px; }
.wf-resource p { font-size: 13px; color: #637265; margin: 0 0 16px; }
.wf-resource>span:last-child { font-size: 12px; color: #315e4d; font-weight: 650; }
.wf-shortcuts { margin-top: 28px; border-top: 1px solid #dee5d9; border-bottom: 1px solid #dee5d9; padding: 18px 0; }
.wf-shortcuts summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.wf-shortcuts h3 { font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; margin-top: 20px; }
.wf-letter-links { display: flex; gap: 8px; flex-wrap: wrap; }
.wf-letter-links a { display: grid; place-items: center; min-width: 44px; min-height: 44px; background: #fff; border: 1px solid #d4ddce; border-radius: 7px; color: #315e4d; text-decoration: none; }
@media (max-width: 1000px) { .wf-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .wf-intro-art { margin-right: 0; } #worksheet-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
 .worksheet-hub .header-top { padding-top: 12px; padding-bottom: 12px; gap: 8px; }
 .worksheet-hub .topnav { gap: 4px 12px; }
 .worksheet-hub main h3 { text-transform: none; letter-spacing: normal; color: #243b3a; }
.wf-sample-cursive { font-family: cursive; font-size: 18px; }
.wf-breadcrumb { margin-top: 14px; font-size: 12px; }
 .wf-intro { padding: 22px 0 24px; }
 .wf-intro h1 { font-size: 34px; margin-bottom: 10px; }
 .wf-intro p:not(.wf-eyebrow) { font-size: 14px; }
 .wf-intro-art { display: none; }
 .wf-promises { gap: 6px 13px; margin-top: 12px; font-size: 11px; }
 .wf-finder { padding: 16px; border-radius: 12px; }
 .wf-finder-heading { margin-bottom: 12px; }
 .wf-finder-heading h2 { font-size: 15px; }
 .wf-finder-heading>span { display: none; }
 #worksheet-filters { gap: 10px; }
 .wf-keyword,.wf-find { grid-column: 1 / -1; }
 .wf-filter label { font-size: 11px; }
 .wf-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .wf-preview { height: 148px; padding: 14px 12px 0; }
 .wf-paper { padding: 10px 8px; }
 .wf-paper-heading { font-size: 9px; }
 .wf-sample { font-size: 10px; }
 .wf-sample-html { font-size: 7px; }
 .wf-sample-letters { font-size: 12px; }
 .wf-card-body { padding: 12px; }
 .wf-card h3 { font-size: 14px; }
 .wf-card-action { font-size: 11px; }
 .wf-results { padding-top: 25px; }
 .wf-results-heading h2,.wf-resources>h2 { font-size: 22px; }
 .wf-results-heading .wf-eyebrow { display: none; }
 .wf-results-heading { margin-bottom: 16px; }
 .wf-resource-grid { grid-template-columns: 1fr; gap: 12px; }
 .wf-resource { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .wf-card { transition: none; } }
