/* latin.css — Latin word study (latin.js). Every class starts with "lt-". */
/* Latin text anywhere: a tap opens the word (latin.js); the tapped word is lit with the CSS Highlight API where there is one */
#main [lang="la"], .ui-sheet [lang="la"] { cursor: pointer; }
#main a[lang="la"], .ui-sheet a[lang="la"] { cursor: pointer; }
::highlight(lt-tap) { background-color: var(--hl-yellow); color: var(--ink); }
.rd-p-fine { font: 12px/1.45 var(--sans); color: var(--muted); margin: 6px 0 0; }

/* the word sheet */
.lt-big { font-family: var(--serif); font-size: 38px; line-height: 1.25; text-align: center; margin: 4px 0 2px; font-style: italic; overflow-wrap: anywhere; }
.lt-note { font: 13.5px/1.45 var(--sans); color: var(--ink-2); margin: 8px 0 0; }
.lt-ent { padding: 12px 0 10px; border-top: 1px solid var(--border); }
.lt-ent.is-main { border-top: 0; }
.lt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.lt-head b, .lt-hw { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.lt-hw:hover { color: var(--rubric); text-decoration: underline; }
.lt-ent:not(.is-main) .lt-hw { font-size: 18px; }
.lt-pos { font: italic 15px var(--serif); color: var(--muted); }
.lt-mean { margin: 4px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.lt-parse { margin-top: 8px; }
.lt-parse ul { margin: 2px 0 0; padding-left: 1.1em; font: 13.5px/1.5 var(--sans); color: var(--ink-2); }
.lt-count { margin: 8px 0 0; font: 12.5px/1.4 var(--sans); color: var(--muted); }
.lt-more { margin-top: 4px; border-top: 1px solid var(--border); padding-top: 8px; }
.lt-more > summary { cursor: pointer; font: 600 13px var(--sans); color: var(--link); padding: 4px 0; }
.lt-acts { margin-top: 14px; }
.lt-fine { font: 12px/1.45 var(--sans); color: var(--muted); margin: 14px 0 0; }
.lt-fine a { color: inherit; }

/* a word's page */
.lt-ptitle { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.2; margin: 6px 0 0; overflow-wrap: anywhere; }
.lt-psub { margin: 6px 0 0; color: var(--muted); font: italic 17px var(--serif); }
.lt-pmean { margin: 10px 0 12px; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.lt-forms { margin: 10px 0 8px; line-height: 2; }
.lt-form { display: inline-block; margin: 0 4px 0 0; padding: 0 9px; border: 1px solid var(--border-2); border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-style: italic; line-height: 1.8; }
.lt-form small { font: 600 11px var(--sans); color: var(--muted); font-style: normal; }
.lt-form:hover { border-color: var(--gold-2); }
.lt-books { margin: 6px 0 10px; }
.lt-verses { list-style: none; margin: 0; padding: 0; }
.lt-verses li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--border); }
.lt-verses li:first-child { border-top: 0; }
.lt-vref { font-variant: small-caps; letter-spacing: .03em; color: var(--rubric); text-decoration: none; white-space: nowrap; font-weight: 600; }
.lt-vt { font-style: italic; color: var(--ink-2); font-size: 16.5px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.lt-vt b { font-style: italic; color: var(--ink); background: var(--hl-yellow); border-radius: 2px; padding: 0 1px; }
.lt-vst { font: 600 12px var(--sans); color: var(--link); }
@media (max-width: 520px) {
  .lt-verses li { grid-template-columns: 1fr auto; }
  .lt-vt { grid-column: 1 / -1; grid-row: 2; }
  .lt-ptitle { font-size: 32px; }
}

/* Latin or English -> the dictionary (the Words page) */
.lt-intro p { color: var(--ink-2); margin: 4px 0 10px; }
.lt-er { display: flex; align-items: center; gap: 14px; padding: 10px 4px; border-top: 1px solid var(--border); color: var(--ink); text-decoration: none; }
.lt-eres > div > .lt-er:first-child { border-top: 0; }
.lt-er:hover .lt-erl { color: var(--rubric); }
.lt-erl { flex: none; min-width: 5.5em; max-width: 40%; font-family: var(--serif); font-size: 21px; font-style: italic; line-height: 1.3; overflow-wrap: anywhere; }
.lt-erm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lt-ert { font-size: 16px; overflow-wrap: anywhere; color: var(--ink-2); }
.lt-ert i { color: var(--muted); }
.lt-ert b { font-weight: 400; color: var(--ink); }
.lt-erw { font: 12.5px/1.4 var(--sans); color: var(--gold); }
.lt-ern { flex: none; font: 700 13px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.lt-emore { margin-top: 10px; }
@media print { .lt-acts, .lt-books { display: none; } }
