/* Printable tracing worksheets (worksheets/*.html). Sized in mm so a sheet fits on A4 and US Letter. */

.ws-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin: 0 0 18px; }
.ws-wrap { display: flex; justify-content: center; }

.sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: 196mm;
  background: #fff;
  color: #2b2140;
  padding: 7mm 8mm;
  border-radius: 6px;
  box-shadow: var(--shadow);
  font-family: var(--font);
}
.ws-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; border-bottom: 0.4mm solid #2b2140; padding-bottom: 2mm; font-size: 11pt; }
.ws-brand b { color: var(--primary); font-size: 13pt; }
.ws-brand small { color: #6b6280; }
.ws-name { white-space: nowrap; }
.ws-name span { display: inline-block; border-bottom: 0.3mm solid #2b2140; width: 42mm; margin: 0 3mm 0 1mm; }
.ws-name span.date { width: 26mm; margin-right: 0; }

.ws-title { display: flex; align-items: center; gap: 8mm; margin: 4mm 0 2mm; }
.ws-big { font-size: 58pt; font-weight: 700; line-height: 1; color: var(--primary); min-width: 30mm; text-align: center; }
.ws-kind { font-size: 10pt; color: #6b6280; font-weight: 600; }
.ws-sound { font-size: 16pt; font-weight: 700; }
.ws-word { font-size: 13pt; margin-top: 1mm; }
.ws-word .emoji { font-size: 18pt; vertical-align: middle; }
.ws-word .ml { font-weight: 700; font-size: 15pt; }
.ws-tip { font-size: 10.5pt; color: #6b6280; margin: 0 0 2mm; }

.ws-label { font-size: 10pt; font-weight: 700; color: #6b6280; margin: 2.5mm 0 1mm; }
.ws-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2mm; }
.ws-row svg { width: 100%; height: 25mm; display: block; }
.ws-wordrow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2mm; }
.ws-wordrow svg { width: 100%; height: 22mm; display: block; }

/* guide lines and letters inside each SVG box */
.g-box { fill: none; stroke: #e6dccb; stroke-width: 0.8; }
.g-mid { stroke: #efe6d8; stroke-width: 0.8; stroke-dasharray: 4 4; }
.g-base { stroke: #d9ccb6; stroke-width: 1; }
.t { font-family: "Baloo Chettan 2", "Noto Sans Malayalam", sans-serif; font-weight: 600; text-anchor: middle; }
.t-model { fill: #2b2140; }
.t-fill { fill: #ece4d6; stroke: #a8987e; stroke-width: 1.1; stroke-dasharray: 3 2.5; }
.t-dash { fill: none; stroke: #a8987e; stroke-width: 1.3; stroke-dasharray: 3 2.5; }
.t-faint { fill: none; stroke: #d6cbb8; stroke-width: 1.1; stroke-dasharray: 2 3.5; }

.ws-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 3mm; font-size: 10pt; color: #6b6280; }
.ws-foot .done { font-weight: 700; color: #2b2140; }
.ws-foot .box { display: inline-block; width: 5mm; height: 5mm; border: 0.4mm solid #2b2140; border-radius: 1mm; vertical-align: middle; margin-left: 1.5mm; }

/* index page */
.ws-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); margin-bottom: 26px; }
.ws-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 10px 4px; box-shadow: var(--shadow); }
.ws-grid a:hover { border-color: var(--primary); }
.ws-grid .big { font-size: 2.2rem; font-weight: 700; line-height: 1.15; color: var(--primary); }
.ws-grid small { color: var(--muted); }
.pack-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; }
.pack-table th, .pack-table td { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--line); }
.pack-table td:last-child { white-space: nowrap; }
.pack-table .btn { margin: 2px 4px 2px 0; }
.ws-about { max-width: 760px; }
@media (max-width: 560px) {
  .pack-table td, .pack-table th { display: block; border: 0; padding: 4px 0; }
  .pack-table tr { display: block; border-bottom: 2px solid var(--line); padding: 8px 0; }
}

@media print {
  @page { margin: 9mm; }
  body { background: #fff !important; display: block; min-height: 0; }
  .site-header, .site-footer, .ws-toolbar, .no-print, .toast { display: none !important; }
  main { padding: 0 !important; max-width: none !important; }
  .ws-wrap { display: block; }
  .sheet { max-width: none; box-shadow: none; border-radius: 0; padding: 0; break-after: page; }
  .sheet:last-of-type { break-after: auto; }
  /* use the full page height: bigger boxes are easier for small hands */
  .ws-row svg { height: 31mm; }
  .ws-wordrow svg { height: 27mm; }
  .ws-label { margin-top: 3.5mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
