@font-face {
    font-family: "Raleway Dots";
    src: url("../fonts/RalewayDots-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.worksheet-stage {
    margin-top: 22px;
    padding: 24px;
    overflow: auto;
    border-radius: 22px;
    background: #e9edf4;
}

.worksheet-sheet {
    --outer-line: #475569;
    --mid-line: #94a3b8;
    width: 8.5in;
    min-height: 11in;
    margin: 0 auto;
    padding: .5in .75in;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.worksheet-sheet--landscape {
    width: 11in;
    min-height: 8.5in;
}

.sheet-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.1rem;
    padding-bottom: .2rem;
}

.sheet-header__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}

.sheet-header__title {
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
}

.guide-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guide-row {
    position: relative;
    width: 100%;
    height: 100px;
    flex: 0 0 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.line-top,
.line-mid,
.line-base {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
}

.line-top {
    top: 20px;
    border-top: 1.5px solid var(--outer-line);
}

.line-mid {
    top: 55px;
    border-top: 1.5px dashed var(--mid-line);
}

.line-base {
    top: 90px;
    border-top: 1.5px solid var(--outer-line);
}

.tracing-text {
    position: relative;
    z-index: 2;
    max-width: 100%;
    color: #1f2937;
    font-family: "Raleway Dots", cursive;
    font-size: clamp(30px, 7vw, 72px);
    line-height: .97;
    letter-spacing: 2px;
    white-space: nowrap;
}

.tracing-text--model {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
}

.sheet-footer-note {
    margin-top: auto;
    padding-top: 20px;
    color: #334155;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 820px) {
    .worksheet-stage { padding: 12px; }
    .worksheet-sheet {
        transform-origin: top left;
    }
}

@media print {
    body * { visibility: hidden; }
    .worksheet-stage, .worksheet-stage * { visibility: visible; }
    .worksheet-stage { position: absolute; inset: 0; padding: 0; background: #fff; }
    .worksheet-sheet { box-shadow: none; }
}

