/* The grammar guides, on top of site.css — REDESIGN_GUIDE §8 (Grammar guide).
 *
 * These pages are long-form reading with paradigm tables in the middle, so
 * the prose is Garamond at the §6 prose size and the tables are real tables
 * with real headers. They used to carry a palette of their own (brand.py's
 * --bg/--acc/--card), which is why they were a different colour from the
 * rest of the site; nothing here defines a colour.
 */

.wrap { max-width: 820px; }

/* ---- on this page ------------------------------------------------------ */
.toc {
  background: var(--surface); border-radius: var(--r-card);
  padding: var(--s3) var(--s4); margin: 0 0 var(--s5);
}
.toc summary { font-size: 14px; font-weight: 600; color: var(--muted);
               cursor: pointer; }
.toc ul { list-style: none; padding: var(--s3) 0 0; margin: 0;
          display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.toc li { margin: 0; }
.toc a { font-size: 15px; }

/* ---- a section of the guide -------------------------------------------- */
.ov-block { margin: 0 0 var(--s6); }
.ov-block h2 { margin: 0 0 var(--s2); }
.ov-sub { font-family: var(--serif); font-size: 18px; line-height: 1.6;
          color: var(--ink-2); margin: 0 0 var(--s4); max-width: 68ch; }

/* ---- paradigm tables ---------------------------------------------------- */
.ov-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ov-table th {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 0 var(--s2) var(--s2);
  border-bottom: 1px solid var(--line);
}
.ov-table th:first-child, .ov-table td.ov-rowhead { text-align: left; padding-left: 0; }
.ov-table td { text-align: center; padding: var(--s3) var(--s2);
               border-bottom: 1px solid var(--line); vertical-align: middle; }
.ov-table tr:last-child td { border-bottom: none; }
.ov-table td.ov-rowhead { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ov-cell { display: flex; flex-direction: column; gap: 2px; }
.ov-cell .ar { font-family: var(--arabic-ui); font-size: 24px; line-height: 1.7;
               direction: rtl; color: var(--ink); }
.ov-cell .en { font-size: 13px; color: var(--muted); }
.ov-cell.empty .ar { color: var(--line); }

/* §7's Notice: an aside in the page's own voice, not a coloured warning bar */
.ov-note {
  font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--ink-2);
  background: var(--surface); border-left: 2px solid var(--ornament);
  padding: var(--s3) var(--s4); margin: var(--s4) 0 0; max-width: 68ch;
}

/* ---- word lists --------------------------------------------------------- */
.ov-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
           gap: var(--s3); }
.ov-item { display: flex; align-items: baseline; gap: var(--s3);
           background: var(--surface); border-radius: var(--r-ctl);
           padding: var(--s2) var(--s3); }
.ov-item .ar { font-family: var(--arabic-ui); font-size: 23px; line-height: 1.8;
               direction: rtl; }
.ov-item .meta { display: flex; flex-direction: column; min-width: 0; }
.ov-item .translit { font-family: var(--serif); font-style: italic; font-size: 13px;
                     color: var(--muted); }
.ov-item .en { font-size: 14px; }

/* ---- the index ---------------------------------------------------------- */
.tocgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
           gap: var(--s3); }
.toccard {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border-radius: var(--r-card); padding: var(--s4);
}
.toccard:hover { box-shadow: inset 0 0 0 1.5px var(--indigo); }
.toccard b { display: block; font-family: var(--serif); font-weight: 500;
             font-size: 19px; color: var(--ink); margin-bottom: var(--s1); }
.toccard span { font-size: 14px; color: var(--muted); }
