/* Rhyme reconstructions page; layout from pairs.css, colours and fonts from style.css */
.rhymesApp { grid-template-columns: 230px minmax(0, 1fr) !important; }
.rhymesApp.has-panel { grid-template-columns: 230px minmax(0, 1fr) 340px !important; }
.rhymes-page #pmain { padding: 0 20px 60px; overflow: auto; }
.rhymes-page .rwrap { margin-top: 18px; }
.rhymes-page #pside h1 { font-size: 22px; line-height: 1.25; }
:root { --ipa: "Charis SIL", "Doulos SIL", "Gentium Plus", "Noto Serif", Georgia, serif; --shade: #f0ebe2; --blk: #6d645a; }

.opts.sys label { display: block; font-size: 14px; }
.opts.sys label .nm { color: var(--ink-soft); font-size: 11.5px; font-family: Georgia, serif; }
.sysbtns { display: flex; gap: 6px; margin-top: 6px; }
.sysbtns button { font: 12px Georgia, serif; padding: 2px 8px; border: 1px solid #cfc6b7; border-radius: 6px; background: var(--paper);
  color: #4a433c; cursor: pointer; }
.sysbtns button:hover { background: #fff; }
.rlegend { font-family: Georgia, serif; font-size: 12px; line-height: 1.45; color: #4a433c; margin: 14px 0; display: grid; gap: 6px; }
.rlegend .sw { display: inline-block; min-width: 22px; height: 14px; vertical-align: -2px; border: 1px solid #d6cfc3; margin-right: 4px; }
.rlegend .sw.shade { background: var(--shade); }
.rlegend .sw.dif { border: 0; text-align: center; font: 13px var(--ipa); height: auto; }

/* the table */
.rwrap { background: var(--card); border: 1px solid var(--card-edge); border-radius: 8px; width: max-content; margin: 0 auto; }
table.rt { border-collapse: collapse; font-family: var(--ipa); font-size: 15px; color: #2f2a25; }
.rt th, .rt td { padding: 4px 9px; text-align: center; white-space: nowrap; border-left: 1px solid #ebe5da; height: 31px; }
.rt thead th { position: sticky; top: 0; z-index: 2; background: var(--card-head); font: 600 13.5px/1.2 Georgia, var(--cjk);
  color: #3f3831; border-bottom: 2px solid var(--blk); padding: 7px 9px; }
.rt thead th.blk { font-size: 14.5px; }
.rt thead th .full { display: block; font: 400 10px/1.1 Georgia, serif; color: var(--ink-soft); margin-top: 2px; }
.rt th.she, .rt td.she { border-left: 0; }
.rt td.she { font: 15px/1.35 Georgia, var(--cjk); color: #3f3831; background: var(--card); border-right: 1px solid var(--blk); min-width: 66px; }
.rt td.she .s2 { display: block; font-family: var(--ipa); color: var(--ink-soft); font-size: 14px; }
.rt .blk { border-left: 1.5px solid var(--blk) !important; }
.rt td.rno { font-weight: 700; font-family: Georgia, serif; cursor: pointer; }
.rt td.rno:hover, .rt td.rno:focus-visible { background: var(--hover); outline: none; text-decoration: underline; }
.rt td.tn { font: 14px Georgia, serif; color: #4a433c; }
.rt tbody tr.first td { border-top: 1.5px solid var(--blk); }
.rt tbody tr.dash td:not(.she) { border-top: 1px dashed #8a8075; }
.rt tbody tr.shade td:not(.she) { background: var(--shade); }
.rt tbody tr:not(.first):not(.dash) td:not(.she) { border-top: 1px solid #efe9df; }
.rt td.v.mb { color: #3a342e; }
.rt td.v.tr { font-size: 13.5px; color: #5a5249; max-width: 190px; white-space: normal; line-height: 1.25; }
.rt td.v .q { color: #b0a698; }
.rt td.v .dif { border-bottom: 1px dotted #a0573e; cursor: help; }
.rt td.on { background: var(--sel) !important; }
.rt td.rno.on { box-shadow: inset 0 0 0 1.5px var(--sel-edge); }

/* detail panel */
#rpanel { background: var(--paper); border-left: 1px solid #d8d1c4; overflow-y: auto; padding: 18px 18px 40px; position: relative; }
.rclose { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.rclose:hover { color: var(--ink); }
.rh { font: 600 22px/1.2 Georgia, serif; color: #2f2a25; margin: 0 0 2px; }
.rsub { font: 13px/1.5 Georgia, var(--cjk); color: var(--ink-soft); margin-bottom: 10px; }
.rsub .tg { font-size: 18px; color: #2f2a25; }
#rpanel .card { margin-bottom: 10px; }
#rpanel h3 { font: 600 12px/1 Georgia, serif; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin: 14px 0 6px; }
table.rv { border-collapse: collapse; width: 100%; font-size: 14px; }
.rv td { padding: 3px 6px; border-bottom: 1px solid #eee7db; vertical-align: top; }
.rv td.l { font: 12px Georgia, serif; color: var(--ink-soft); white-space: nowrap; width: 1%; }
.rv td.x { font-family: var(--ipa); font-size: 15px; }
.rv tr.def td.x { font-weight: 600; }
.rv .alt { display: block; font: 12px Georgia, serif; color: #8a4a35; }
.rv .sp { color: var(--ink-soft); font-size: 12px; font-family: Georgia, serif; }
.golink { display: block; margin: 6px 0; padding: 7px 10px; border: 1px solid #d0c8bb; border-radius: 8px; background: var(--card);
  color: #6b5532; font: 13.5px Georgia, var(--cjk); text-decoration: none; }
.golink:hover { background: #fff; color: var(--ink); }
.vb { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; border-bottom: 1px solid #eee7db; font-size: 13px; }
.vb .tg { font-size: 22px; flex: none; }
.vb .st { font: 600 11px Georgia, serif; color: var(--ink-soft); }
.vb .r { font-family: var(--ipa); font-size: 14px; }
.vb .g { color: #4a433c; font-family: Georgia, var(--cjk); }
.muted2 { color: var(--ink-soft); font: 12.5px Georgia, serif; }

@media (max-width: 1100px) {
  .rhymesApp.has-panel { grid-template-columns: 230px minmax(0, 1fr) !important; }
  .rhymesApp.has-panel #rpanel { position: fixed; right: 0; top: 0; bottom: 0; width: min(360px, 92vw); z-index: 20;
    box-shadow: -6px 0 18px rgba(60, 50, 40, .18); }
}
@media (max-width: 760px) {
  .rhymes-page #pmain { padding: 0 8px 40px; }
  .rwrap { width: auto; overflow-x: auto; }
  .rt th, .rt td { padding: 3px 6px; }
}
