/*
 * arabic-tools.com — letter-forms
 *
 * BUILT FILE. Do not edit here.
 * Source: .claude/arabic-tools/port/, rebuild with build.sh letter-forms
 */



/* ==========================================================
   tool.css — letter-forms
   ========================================================== */

/* ────────────────────────────────────────────────────────────────
   TOOL — Arabic Letter Forms

   The sheet itself inherits .ac-sheet from the shared runtime; this is
   the table and the three size steps, plus the control column.

   Version log
   1.0.0  2026-08-08  Initial.
   ──────────────────────────────────────────────────────────────── */

.at-lf__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
    align-items: start;
}

@media ( max-width: 860px ) {
    .at-lf__grid { grid-template-columns: 1fr; }
}

.at-lf__stage {
    max-height: 70vh;
    overflow: auto;
    background: var( --at-paper, #FBF9F6 );
    border: 1px solid var( --at-line, #E9E5F1 );
    border-radius: var( --at-radius, 16px );
    padding: 14px;
}

.at-lf__title {
    margin: 0 0 2mm;
    font-size: 15pt;
    text-align: center;
}

.at-lf__sub {
    margin: 0 0 4mm;
    font-size: 10pt;
    text-align: left;
}

.at-lf__table {
    width: 100%;
    border-collapse: collapse;
}

.at-lf__table th {
    font-size: 9pt;
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: .04em;
    padding: 1.5mm 1mm;
    border-bottom: 0.8pt solid #444;
    text-align: center;
}

.at-lf__table td {
    padding: 1mm;
    border-bottom: 0.4pt solid #BBB;
    text-align: center;
    vertical-align: middle;
}

/* The isolated letter is the row's subject, so it carries the weight. */
.at-lf__ch   { font-weight: 700; }
.at-lf__name { font-size: 10pt; white-space: nowrap; }

/* A form the letter does not have. Muted rather than blank, so the
   absence reads as deliberate rather than as a rendering failure. */
.at-lf__table td.is-missing {
    color: #AAA;
    font-size: 11pt;
}

/* Non-joiners are the exception the chart exists to teach, so the row
   is tinted to group them at a glance. Kept light enough to photocopy. */
.at-lf__table tr.is-nonjoiner td { background: #F4F4F7; }

/* Three size steps. Only the Arabic cells scale — the names and
   headings stay put, or a large chart stops fitting the page. */
.at-lf__sheet--small  .at-lf__ch,
.at-lf__sheet--small  .at-lf__form,
.at-lf__sheet--small  .at-lf__eg  { font-size: 16pt; }

.at-lf__sheet--medium .at-lf__ch,
.at-lf__sheet--medium .at-lf__form,
.at-lf__sheet--medium .at-lf__eg  { font-size: 22pt; }

.at-lf__sheet--large  .at-lf__ch,
.at-lf__sheet--large  .at-lf__form,
.at-lf__sheet--large  .at-lf__eg  { font-size: 30pt; }

.at-lf__sheet--small  .at-lf__table td { padding: 0.6mm; }
.at-lf__sheet--large  .at-lf__table td { padding: 1.8mm 1mm; }

@media print {
    .at-lf__stage {
        max-height: none;
        overflow: visible;
        background: none;
        border: 0;
        padding: 0;
    }
}
