@font-face { font-family: "Playwrite US Trad"; src: url('/assets/fonts/worksheet/playwrite-us-trad.ttf') format('truetype'); font-style: normal; font-weight: 100 400; font-display: swap; }
.alphabet-worksheets .aw-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #08636b; border-radius: 6px; padding: 10px 16px; background: #fff; color: #08636b; font: 600 14px/1.4 Inter, sans-serif; text-decoration: none; cursor: pointer; }
.alphabet-worksheets .aw-button.primary { background: #08636b; color: #fff; }
.alphabet-worksheets .aw-button:hover { background: #edf6f5; }
.alphabet-worksheets .aw-button.primary:hover { background: #064b51; }
.alphabet-worksheets .aw-button:disabled { cursor: not-allowed; opacity: .55; }
.alphabet-worksheets .aw-icon { width: 18px; height: 18px; flex: 0 0 18px; background: currentColor; mask: var(--icon) center / contain no-repeat; }
.alphabet-worksheets .aw-link { display: inline-flex; align-items: center; min-height: 44px; color: #08636b; text-underline-offset: 4px; }
.alphabet-worksheets .aw-link-button { border: 0; padding: 0 4px; background: transparent; font: inherit; cursor: pointer; text-decoration: underline; }
.alphabet-worksheets .aw-muted { color: #56616b; font-size: 14px; }
.alphabet-worksheets [hidden] { display: none !important; }
.utility-ui.alphabet-worksheets .download-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr); align-items: center; gap: 48px; padding-bottom: 8px; }
.alphabet-worksheets .download-hero h1 { max-width: 760px; }
.alphabet-worksheets .download-hero .lede { max-width: 700px; }
.alphabet-worksheets .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 24px 0 8px; }
.alphabet-worksheets .hero-actions .primary { padding-inline: 22px; }
.alphabet-worksheets .hero-meta { margin: 10px 0 0; font-size: 14px; color: #56616b; }
.alphabet-worksheets .paper-switch, .alphabet-worksheets .format-switch { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; margin: 20px 0 0; min-width: 0; }
.alphabet-worksheets .paper-switch legend, .alphabet-worksheets .format-switch legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.alphabet-worksheets .choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 14px; border: 1px solid #dce2e5; border-radius: 6px; font-size: 14px; cursor: pointer; background: #fff; }
.alphabet-worksheets .choice:has(input:checked) { border-color: #08636b; background: #f0f8f7; color: #08636b; }
.alphabet-worksheets .choice input { width: 16px; height: 16px; min-height: 0; margin: 0; }
.alphabet-worksheets .choice:has(input:focus-visible), .alphabet-worksheets .letter-choice:has(input:focus-visible) { outline: 3px solid #08636b; outline-offset: 3px; }
.alphabet-worksheets .hero-preview { margin: 0; padding: 22px; background: #f3f6f6; text-align: center; border-radius: 6px; }
.alphabet-worksheets .hero-preview img { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto 10px; border: 1px solid #dce2e5; box-shadow: 0 3px 9px #20272d10; }
.alphabet-worksheets .hero-preview figcaption { font-size: 13px; color: #56616b; }
.alphabet-worksheets .pack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.alphabet-worksheets .pack-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #dce2e5; border-radius: 6px; padding: 18px; background: #fff; }
.alphabet-worksheets .pack-preview { display: block; margin-bottom: 16px; }
.alphabet-worksheets .pack-preview img { display: block; width: 100%; height: auto; max-height: 265px; object-fit: contain; }
.alphabet-worksheets .pack-card h3 { font: italic 21px/1.35 Georgia, serif; margin: 0 0 6px; }
.alphabet-worksheets .pack-card p { margin: 6px 0; font-size: 14px; color: #56616b; }
.alphabet-worksheets .pack-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; }
.alphabet-worksheets .pack-actions a { font-size: 14px; }
.alphabet-worksheets .complete-customize { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 12px; font-size: 14px; color: #56616b; }
.alphabet-worksheets .selector-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); grid-template-areas: "controls preview" "actions preview"; gap: 12px 40px; align-items: start; margin-top: 24px; }
.alphabet-worksheets .selector-controls { grid-area: controls; min-width: 0; }
.alphabet-worksheets .selection-bottom { grid-area: actions; min-width: 0; }
.alphabet-worksheets .selector-settings { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.alphabet-worksheets .selector-settings fieldset { margin: 0; }
.alphabet-worksheets .worksheet-layout { display: block; margin: 20px 0 0; padding: 16px 0 0; min-width: 0; border: 0; border-top: 1px solid #dce2e5; scroll-margin-top: 90px; }
.alphabet-worksheets .worksheet-layout legend { padding: 0 10px 0 0; font-size: 14px; font-weight: 600; }
.alphabet-worksheets .layout-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.alphabet-worksheets .layout-control { min-width: 0; }
.alphabet-worksheets .layout-control label { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.alphabet-worksheets .layout-control output { color: #56616b; font-weight: 400; white-space: nowrap; }
.alphabet-worksheets .layout-control input[type=range] { display: block; width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 0; accent-color: #08636b; }
.alphabet-worksheets .range-hints { display: flex; justify-content: space-between; color: #56616b; font-size: 12px; }
.alphabet-worksheets .row-count-control { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.alphabet-worksheets .row-count-control select { min-height: 44px; border: 1px solid #dce2e5; border-radius: 6px; background: #fff; padding: 8px; color: #20272d; font: 400 16px/1.4 Inter, sans-serif; }
.alphabet-worksheets #layoutSummary { min-height: 42px; margin: 12px 0 0; }
.alphabet-worksheets .selection-tools { display: flex; gap: 20px; margin: 12px 0 8px; }
.alphabet-worksheets .letter-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.alphabet-worksheets .letter-choice { position: relative; min-height: 86px; display: grid; place-items: center; border: 1px solid #dce2e5; border-radius: 6px; cursor: pointer; padding: 20px 4px 6px; overflow: hidden; }
.alphabet-worksheets .letter-choice input { position: absolute; left: 7px; top: 7px; width: 15px; height: 15px; min-height: 0; margin: 0; }
.alphabet-worksheets .letter-choice:has(input:checked) { border-color: #08636b; background: #f0f8f7; }
.alphabet-worksheets .tile-print { position: absolute; top: 5px; right: 7px; font: 500 11px/1.4 Inter, sans-serif; color: #56616b; }
.alphabet-worksheets .tile-script { font: 400 25px/1.7 "Playwrite US Trad", cursive; }
.alphabet-worksheets #selectionCount { display: block; font-size: 14px; color: #56616b; margin: 12px 0; }
.alphabet-worksheets .selection-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.alphabet-worksheets #selectionStatus { min-height: 24px; margin: 10px 0; color: #56616b; font-size: 14px; }
.alphabet-worksheets #selectionError { border-left: 3px solid #ad381f; padding: 8px 12px; color: #7f2c1b; background: #fff6f2; }
.alphabet-worksheets .selected-workbench { grid-area: preview; position: sticky; top: 90px; margin: 0; padding: 22px; background: #f3f6f6; border-radius: 6px; }
.alphabet-worksheets #selectedPaper { max-width: 410px; margin: auto; }
.alphabet-worksheets #selectedPaper canvas { display: block; width: 100%; height: auto; background: #fff; border: 1px solid #dce2e5; box-shadow: 0 3px 9px #20272d10; }
.alphabet-worksheets #selectedPaper:empty { min-height: 180px; }
.alphabet-worksheets .preview-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.alphabet-worksheets .preview-footer button { padding-inline: 10px; min-width: 44px; }
.alphabet-worksheets #selectedPage { font-size: 13px; color: #56616b; min-width: 90px; text-align: center; }
.alphabet-worksheets .preview-footer .aw-link { margin-left: auto; font-size: 13px; }
.alphabet-worksheets .selected-guides { display: flex; gap: 4px 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; font-size: 14px; }
.alphabet-worksheets .selected-guides a { display: inline-flex; min-width: 28px; min-height: 44px; justify-content: center; align-items: center; }
.alphabet-worksheets .alphabet-samples { margin: 24px 0; }
.alphabet-worksheets .sample-label { display: block; color: #56616b; font-size: 14px; margin: 20px 0 10px; }
.alphabet-worksheets .glyph-row { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px 12px; }
.alphabet-worksheets .glyph-row span { text-align: center; font: 400 32px/2.1 "Playwrite US Trad", cursive; border-bottom: 1px solid #dce2e5; }
.alphabet-worksheets .join-examples { display: flex; flex-wrap: wrap; gap: 12px 34px; font: 400 28px/2 "Playwrite US Trad", cursive; padding-bottom: 8px; border-bottom: 1px solid #dce2e5; }
.alphabet-worksheets .practice-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; padding: 0; list-style: none; }
.alphabet-worksheets .practice-steps li { min-width: 0; }
.alphabet-worksheets .practice-steps h3 { margin: 0; font: 600 16px/1.5 Inter, sans-serif; }
.alphabet-worksheets .practice-steps p { font-size: 14px; color: #56616b; margin: 8px 0 12px; }
.alphabet-worksheets .practice-steps img { width: 100%; height: auto; border: 1px solid #dce2e5; }
.alphabet-worksheets .aw-dialog { width: min(850px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 1px solid #dce2e5; border-radius: 6px; padding: 0; color: #20272d; background: #fff; }
.alphabet-worksheets .aw-dialog::backdrop { background: #20272d99; }
.alphabet-worksheets .dialog-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #dce2e5; background: #fff; }
.alphabet-worksheets .dialog-heading h2 { margin: 0; font: 600 16px/1.5 Inter, sans-serif; }
.alphabet-worksheets .dialog-content { padding: 20px; background: #f3f6f6; }
.alphabet-worksheets .dialog-content img { display: block; width: 100%; height: auto; background: #fff; }
.alphabet-worksheets .dialog-actions { display: flex; justify-content: center; padding: 12px 20px; }
@media (max-width: 1100px) {
  .alphabet-worksheets .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alphabet-worksheets .pack-preview img { max-height: 230px; }
  .alphabet-worksheets .selector-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); column-gap: 24px; }
  .alphabet-worksheets .letter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .alphabet-worksheets .letter-choice { min-height: 72px; }
  .alphabet-worksheets .tile-script { font-size: 20px; }
}
@media (max-width: 760px) {
  .utility-ui.alphabet-worksheets .download-hero { grid-template-columns: 1fr; gap: 20px; }
  .alphabet-worksheets .download-hero h1 { font-size: 30px; }
  .alphabet-worksheets .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 18px; }
  .alphabet-worksheets .hero-actions .aw-link { justify-content: center; }
  .alphabet-worksheets .hero-preview { padding: 14px; background: #fff; }
  .alphabet-worksheets .hero-preview img { max-width: 150px; }
  .alphabet-worksheets .pack-grid { display: flex; flex-direction: column; gap: 12px; }
  .alphabet-worksheets .pack-card { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px 14px; padding: 14px; }
  .alphabet-worksheets .pack-preview { grid-column: 1; margin: 0; }
  .alphabet-worksheets .pack-preview img { max-height: 72px; }
  .alphabet-worksheets .pack-copy { align-self: center; }
  .alphabet-worksheets .pack-card h3 { font: 600 16px/1.4 Inter, sans-serif; }
  .alphabet-worksheets .pack-description { display: none; }
  .alphabet-worksheets .pack-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; padding: 0; gap: 8px; }
  .alphabet-worksheets .pack-actions .aw-link { justify-content: center; border: 1px solid #08636b; border-radius: 6px; text-decoration: none; }
  .alphabet-worksheets .selector-layout { grid-template-columns: 1fr; grid-template-areas: "controls" "preview" "actions"; row-gap: 16px; }
  .alphabet-worksheets .selector-settings { gap: 16px; }
  .alphabet-worksheets .selector-settings .format-switch { flex: 1 1 100%; }
  .alphabet-worksheets .format-switch .choice { flex: 1; justify-content: center; padding-inline: 8px; font-size: 13px; }
  .alphabet-worksheets .letter-choice { min-height: 50px; padding: 4px; }
  .alphabet-worksheets .tile-script { display: none; }
  .alphabet-worksheets .tile-print { position: static; color: #20272d; font-size: 16px; }
  .alphabet-worksheets .letter-choice input { width: 12px; height: 12px; left: 4px; top: 4px; }
  .alphabet-worksheets .selection-actions { flex-direction: column; }
  .alphabet-worksheets .selected-workbench { position: static; padding: 16px; }
  .alphabet-worksheets #selectedPaper { max-width: 300px; }
  .alphabet-worksheets .preview-footer .aw-link { margin-left: 0; }
  .alphabet-worksheets .glyph-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .alphabet-worksheets .glyph-row span { font-size: 27px; }
  .alphabet-worksheets .join-examples { gap: 10px 22px; font-size: 24px; }
  .alphabet-worksheets .practice-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .alphabet-worksheets .dialog-heading { padding-inline: 12px; }
  .alphabet-worksheets .dialog-content { padding: 8px; }
}
@media (max-width: 359px) {
  .alphabet-worksheets .letter-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .alphabet-worksheets .format-switch { gap: 5px; }
  .alphabet-worksheets .format-switch .choice { flex: 1 1 100%; justify-content: flex-start; }
}
@media print {
  .alphabet-worksheets > :not(main), .alphabet-worksheets .aw-dialog { display: none; }
  .alphabet-worksheets .selection-actions, .alphabet-worksheets fieldset, .alphabet-worksheets .pack-actions { display: none; }
}
