/* Verb stem pairs page; colours and fonts come from style.css */
body.pairs-page { overflow: hidden; }
#pairsApp { display: grid; grid-template-columns: 230px minmax(0, 1fr); height: 100vh; }
#pside { background: var(--side); padding: 20px 18px; overflow-y: auto; font-size: 15px; border-right: 1px solid #d8d1c4; }
#pmain { overflow-y: auto; padding: 22px 28px 60px; }
.back { display: inline-block; font-size: 13px; color: #6b5532; text-decoration: none; margin-bottom: 12px; }
.back:hover { text-decoration: underline; }
.opts.lang label, .opts.view label { display: inline-block; margin-right: 12px; }

#toc { margin: 16px 0; font-size: 13.5px; }
#toc .toc-h { font-weight: 600; color: #4a433c; margin-bottom: 4px; }
#toc a { display: flex; justify-content: space-between; padding: 2px 6px; border-radius: 5px;
  color: var(--ink); text-decoration: none; font-family: "Charis SIL", "Gentium Plus", "Noto Serif", Georgia, serif; }
#toc a:hover { background: var(--hover); }
#toc .n { color: var(--ink-soft); font-size: 12px; }

.psec { max-width: 980px; margin: 0 auto 30px; }
.psec h2 { font: 600 20px/1.3 "Charis SIL", "Gentium Plus", "Noto Serif", Georgia, serif; color: #3f3831;
  margin: 0 0 10px; padding-bottom: 5px; border-bottom: 1px solid var(--card-edge); }
.psec h2 .n { font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-left: 6px; }

.pair { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); align-items: stretch;
  background: var(--card); border: 1px solid var(--card-edge); border-radius: 8px; margin: 0 0 8px; }
.pair.tentative { border-style: dashed; }
.side { display: flex; gap: 10px; padding: 10px 12px; min-width: 0; }
.stem { flex: none; width: 18px; font: 600 12px/1 Georgia, serif; color: var(--ink-soft); padding-top: 4px; }
.tilde { display: flex; align-items: center; justify-content: center; color: var(--rule); font-size: 18px;
  border-left: 1px solid var(--card-edge); border-right: 1px solid var(--card-edge); background: var(--card-head); }
.tent { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%;
  background: #f1e3c8; color: #8a6a2c; font: 600 13px/1 Georgia, serif; }
.note { grid-column: 1 / -1; border-top: 1px solid var(--card-edge); padding: 5px 12px 6px 40px;
  font: 12.5px/1.45 Georgia, var(--cjk); color: var(--ink-soft); background: #fbf8f2; border-radius: 0 0 8px 8px; }
.note .pat { font-family: "Charis SIL", "Gentium Plus", "Noto Serif", Georgia, serif; color: #4a433c; margin-right: 10px; }
.note .pat + :not(:empty) { margin-left: 0; }

.form { display: flex; gap: 12px; min-width: 0; }
.form .ch { font-size: 34px; line-height: 1.15; flex: none; width: 44px; text-align: center; color: #2f2a25; }
.form .info { min-width: 0; }
.rds { display: flex; flex-wrap: wrap; gap: 2px 14px; font-family: "Charis SIL", "Gentium Plus", "Noto Serif", "Doulos SIL", Georgia, serif; }
.rd { font-size: 15px; white-space: nowrap; }
.rd.ghc { font-size: 16.5px; color: #2f2a25; }
.rd.mb, .rd.miy { color: #5a5249; }
.rd .lab { font: 10.5px/1 Georgia, serif; letter-spacing: .03em; color: var(--ink-soft); margin-right: 4px; text-transform: uppercase; }
.rd .none { color: #b9b0a3; }
.gl { font-size: 14px; line-height: 1.4; margin-top: 3px; color: var(--ink); overflow-wrap: anywhere; }
.gl .stm { color: var(--ink-soft); font-size: 12px; }
.meta { margin-top: 4px; font-size: 11.5px; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; }
.wtag { display: inline-block; padding: 0 6px; border: 1px solid #d6c59f; border-radius: 9px; background: #f6eedb;
  color: #6b5532; font-size: 11px; line-height: 17px; }

.singles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.singles .side { background: var(--card); border: 1px solid var(--card-edge); border-radius: 8px; }

@media (max-width: 760px) {
  body.pairs-page { overflow: auto; }
  #pairsApp { display: block; height: auto; }
  #pmain { padding: 16px 12px 40px; overflow: visible; }
  .pair { grid-template-columns: 1fr; }
  .tilde { border: 0; border-top: 1px solid var(--card-edge); border-bottom: 1px solid var(--card-edge); padding: 2px 0; }
  .note { padding-left: 12px; }
}
