/* Minimale CSS-Datei für die EPUB-Ausgabe der Altgriechischen Grammatik */

table {
  border: 1px solid black;
  border-collapse: collapse;
}

td,
th {
  border: 1px solid black;
  padding: 3px;
}

th {
  text-align: left;
}

em.bash {
  color: maroon;
}

em.file {
  color: green;
}

em.error {
  color: red;
}

em.advert {
  color: orange;
  font-weight: bold;
  font-style: normal;
}

em.bold {
  font-weight: bold;
}

/* Grammatiktabellen */
table[class^="gram"] {
  color: blue;
}

table[class^="gram"] th {
  color: purple;
}

table[class^="gram"] td,
table[class^="gram"] th {
  text-align: right;
}

/* Grammatiktabellen mit Zentrierungen */
table[class^="gramcenter"] td,
table[class^="gramcenter"] th {
  text-align: center;
}

table[class^="gramheadercenter"] th {
  text-align: center;
}

/* Spezielle Tabellen */
.gramSpecial1 td:nth-child(n+4) {
  color: darkgreen;
}

.gramSpecial1 td:nth-child(n+6) {
  color: maroon;
}

/* Numeralia */
.gramNum td:first-child {
  color: green;
}

/* Griechische Deklination */
.gramGrDekl td:nth-child(9) {
  color: green;
}

.gramGrDekl td:nth-child(10) {
  color: olive;
}

/* Lateinische Konjugation */
.gramLatKonj td:first-child {
  color: black;
}

.gramLatKonj td:nth-child(6) {
  color: green;
}

/* Sprachliche Hervorhebungen */
em.greek {
  color: maroon;
}

em.lat {
  color: slateblue;
}

em.eng {
  color: olive;
}

em.ger {
  color: green;
}

em.grke,
em.late {
  font-style: normal;
  color: red;
}

/* =========================================================
   Altgriechische Verb-Stammformen
   Farbmarkierung nach Tempus; Zusatzmarkierung nach Genus
   ========================================================= */

/* Tempora und Formkategorien */
.verbform.praesens {
  color: darkgreen;
}

.verbform.futur {
  color: blue;
}

.verbform.aorist {
  color: darkorange;
}

.verbform.perfekt {
  color: purple;
}

.verbform.plusquamperfekt {
  color: maroon;
}

.verbform.imperfekt {
  color: teal;
}

.verbform.infinitiv,
.verbform.partizip,
.verbform.imperativ {
  color: darkslateblue;
}

/* Genus verbi */
.verbform.medium {
  font-style: italic;
}

.verbform.mediopassiv {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.12em;
}

.verbform.passiv {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-underline-offset: 0.12em;
}

/* Die grammatische Erläuterung bleibt neutral. */
.gram {
  color: #444;
}

/* =========================================================
   Graecum-Verbtabelle: spaltenweise Farbmarkierung
   ========================================================= */

body {
  font-family: "Noto Serif", "Gentium Plus", "DejaVu Serif", serif;
  line-height: 1.35;
}

h1, h2 {
  color: #333;
}

.note {
  border-left: 0.3em solid #777;
  padding-left: 0.8em;
  margin: 1em 0;
}

table.gramVerbStammformen {
  width: 100%;
  table-layout: auto;
  color: black;
  font-size: 0.88em;
}

table.gramVerbStammformen th,
table.gramVerbStammformen td {
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

table.gramVerbStammformen th {
  color: #4b286d;
}

/* Lemma und Bedeutung */
table.gramVerbStammformen td:nth-child(1) {
  color: maroon;
  font-weight: bold;
}
table.gramVerbStammformen td:nth-child(2) {
  color: green;
}

/* Präsens, Futur, Aorist */
table.gramVerbStammformen td:nth-child(3) {
  color: darkgreen;
}
table.gramVerbStammformen td:nth-child(4) {
  color: blue;
}
table.gramVerbStammformen td:nth-child(5) {
  color: darkorange;
}

/* Perfekt Aktiv, Perfekt Medium/Passiv, Aorist Passiv */
table.gramVerbStammformen td:nth-child(6) {
  color: purple;
}
table.gramVerbStammformen td:nth-child(7) {
  color: #7a1f7a;
  font-style: italic;
}
table.gramVerbStammformen td:nth-child(8) {
  color: #9b1c1c;
}

/* Grammatische Klassifikation */
table.gramVerbStammformen td:nth-child(9),
table.gramVerbStammformen td:nth-child(10) {
  color: #444;
}

/* Unregelmäßige Verben */
table.gramVerbStammformen tr.irregular td:first-child::before {
  content: "★ ";
  color: #b00020;
}
table.gramVerbStammformen td.irregular {
  color: #b00020;
  font-weight: bold;
}
