/* שכבת התיוג המורפולוגי — the word card, the hover line, the editors' queue */

::highlight(morph-word){ background:#ffe39a; color:inherit; }

.morph-modal{ z-index:1200; }
.modal-box.morph-box, .modal-box.morph-qbox{ overflow-y:auto; overscroll-behavior:contain; gap:8px; text-align:start; }
.modal-box.morph-qbox{ max-width:760px; }

.morph-top{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.morph-word{ flex:1; text-align:center; min-width:0; overflow-wrap:anywhere; }
.morph-word .morph-heb{ font-family:'Hebrew',serif; font-size:34px; line-height:1.4; color:var(--navy,#1c2b4a); }
.morph-word .morph-sam{ font-size:36px; line-height:1.6; color:#3a2a12; unicode-bidi:isolate; }
.morph-word .morph-sam.nik{ line-height:2.2; }
.morph-word .morph-lat{ font-family:'Translit',serif; font-size:28px; font-style:italic; color:#333; }
.morph-sam .samchar{ font-family:'Samaritan'; }
.morph-sam .samchar.nik{ font-family:'SamNikud','Samaritan',serif; }
.morph-heb{ font-family:'Hebrew',serif; unicode-bidi:isolate; }
.morph-heb.big{ font-size:1.25em; }
.morph-lat{ font-family:'Translit',serif; unicode-bidi:isolate; font-style:italic; }
.morph-en{ color:#555; font-size:.92em; unicode-bidi:isolate; }
.morph-num{ color:#888; font-size:.8em; unicode-bidi:isolate; }
.morph-nav{ flex:0 0 auto; width:40px; height:40px; border-radius:50%; border:1px solid #d5d9e4; background:#f5f6fa;
            font-size:22px; line-height:1; color:#33415f; cursor:pointer; }
.morph-nav:disabled{ opacity:.3; cursor:default; }

.morph-scripts{ display:flex; justify-content:center; gap:0; }
.morph-scripts button{ border:1px solid #cfd5e3; background:#fff; padding:5px 12px; font-size:13.5px; cursor:pointer; color:#33415f; min-height:34px; }
.morph-scripts button:first-child{ border-start-start-radius:8px; border-end-start-radius:8px; }
.morph-scripts button:last-child{ border-start-end-radius:8px; border-end-end-radius:8px; }
.morph-scripts button + button{ border-inline-start:0; }
.morph-scripts button.on{ background:var(--navy,#1c2b4a); color:#fff; border-color:var(--navy,#1c2b4a); }
.morph-scripts button:disabled{ opacity:.4; cursor:default; }

.morph-loc{ text-align:center; font-size:12.5px; color:#667; }

/* the status of the analysis — never to be mistaken for a settled fact */
.morph-status{ display:flex; flex-wrap:wrap; gap:4px 12px; align-items:baseline; border-radius:8px; padding:7px 10px; font-size:13px;
               background:#f3f3f3; color:#444; border-inline-start:4px solid #999; }
.morph-status b{ font-size:14px; }
.morph-status.vs-a{ background:#fff6dc; color:#6b4a00; border-color:#d99a00; }
.morph-status.vs-v, .morph-status.vs-c{ background:#e2f4e8; color:#17623a; border-color:#1e8a4c; }
.morph-status.vs-d, .morph-status.vs-k{ background:#fde6e6; color:#8a1f1f; border-color:#c0392b; }
.morph-rnote{ flex-basis:100%; font-style:italic; }

.morph-grid{ display:grid; grid-template-columns:max-content 1fr; gap:4px 12px; font-size:15px; align-items:baseline; }
.morph-k{ color:#667; font-size:13.5px; }
.morph-v{ min-width:0; overflow-wrap:anywhere; }
.morph-src{ display:inline-block; margin-inline-start:6px; min-width:16px; padding:0 4px; border-radius:4px; font-size:10.5px; line-height:16px;
            text-align:center; background:#e9ecf4; color:#4a5674; font-family:system-ui,sans-serif; cursor:help; vertical-align:middle; unicode-bidi:isolate; }
.morph-h{ margin-top:6px; font-weight:700; font-size:14px; color:var(--navy,#1c2b4a); border-bottom:1px solid #e3e6ee; padding-bottom:2px; }
.morph-p{ font-size:14.5px; line-height:1.55; }
.morph-p.dim{ color:#667; font-size:13.5px; }
.morph-p.warn{ background:#fff3d6; color:#6b4a00; border-radius:6px; padding:6px 9px; font-size:13.5px; }
.morph-k2{ color:#667; font-size:13.5px; }
.morph-chip{ display:inline-block; margin:1px 3px; padding:0 7px; border-radius:10px; background:#fff0cc; color:#7a5200; font-size:12.5px; }
.morph-chip.ok{ background:#dff3e6; color:#17623a; }

.morph-segs{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; padding:4px 0; }
.morph-seg{ display:flex; flex-direction:column; align-items:center; min-width:44px; padding:4px 10px; border-radius:8px; background:#eef0f6; }
.morph-seg b{ font-family:'Hebrew',serif; font-size:22px; font-weight:400; line-height:1.3; }
.morph-seg i{ font-style:normal; font-size:11px; color:#667; }
.morph-seg.pf{ background:#e3eefb; } .morph-seg.sf{ background:#f6e9f7; } .morph-seg.m{ background:#f3efe2; }

.morph-senses{ margin:2px 0; padding-inline-start:22px; }
.morph-senses li.here{ font-weight:600; }
.morph-alts{ margin:2px 0; padding-inline-start:20px; font-size:14px; }
.morph-alts li{ margin:3px 0; }
.morph-mini{ border:1px solid #b9c2d8; background:#fff; border-radius:6px; padding:2px 8px; font-size:12.5px; cursor:pointer; min-height:28px; }

.morph-foot{ margin-top:6px; font-size:11.5px; line-height:1.5; color:#777; border-top:1px solid #e3e6ee; padding-top:6px; }

/* the editor */
.morph-admin{ border:1px dashed #b9c2d8; border-radius:8px; padding:8px 10px; background:#fafbfe; display:flex; flex-direction:column; gap:6px; }
.morph-adm-row{ display:flex; gap:6px; flex-wrap:wrap; }
.morph-adm-row input{ flex:1 1 140px; min-width:0; padding:6px 8px; border:1px solid #cfd5e3; border-radius:6px; font-size:14px; }
.morph-btns{ display:flex; flex-wrap:wrap; gap:6px; }
.morph-btns .admin-btn{ flex:1 1 auto; margin:0; }
.morph-form{ display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:6px 10px; }
.morph-f{ display:flex; flex-direction:column; gap:2px; font-size:12.5px; color:#556; min-width:0; border:0; padding:0; margin:0; }
.morph-f select, .morph-f input[type=text]{ padding:5px 6px; border:1px solid #cfd5e3; border-radius:6px; font-size:14px; min-width:0; width:100%; box-sizing:border-box; }
.morph-f.wide{ grid-column:1 / -1; }
fieldset.morph-f{ flex-direction:row; flex-wrap:wrap; gap:4px 12px; }
fieldset.morph-f legend{ padding:0; font-size:12.5px; color:#556; }
.morph-ck{ display:inline-flex; align-items:center; gap:4px; font-size:13.5px; color:#222; }
.morph-log{ margin:0; padding-inline-start:18px; font-size:12.5px; color:#445; }

/* the queue */
.morph-qbar{ display:flex; flex-wrap:wrap; gap:6px 12px; align-items:end; font-size:13px; color:#556; }
.morph-qbar label{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.morph-qbar select, .morph-qbar input{ padding:5px 6px; border:1px solid #cfd5e3; border-radius:6px; font-size:14px; max-width:100%; }
.morph-qbar input{ width:110px; }
.morph-qbar .admin-btn{ margin:0; }
.morph-qlist{ display:flex; flex-direction:column; gap:4px; }
.morph-qrow{ display:grid; grid-template-columns:minmax(88px,max-content) minmax(70px,max-content) 1fr; gap:2px 10px; align-items:baseline; text-align:start;
             border:1px solid #e1e5ee; border-inline-start:4px solid #d99a00; border-radius:8px; background:#fff; padding:6px 9px; cursor:pointer; font:inherit; color:inherit; }
.morph-qrow.vs-v, .morph-qrow.vs-c{ border-inline-start-color:#1e8a4c; }
.morph-qrow.vs-d, .morph-qrow.vs-k{ border-inline-start-color:#c0392b; }
.morph-qrow:hover{ background:#f6f8fd; }
.morph-qrow b{ font-size:19px; font-weight:400; }
.morph-qloc{ font-size:12.5px; color:#667; }
.morph-qan{ font-size:13.5px; min-width:0; overflow-wrap:anywhere; }
.morph-qan i{ color:#7a5200; font-style:normal; }
.morph-qst{ grid-column:1 / -1; font-size:11.5px; color:#778; }
.morph-qpager{ display:flex; justify-content:center; align-items:center; gap:12px; font-size:13px; color:#556; }
.morph-qpager .admin-btn{ margin:0; width:auto; }

/* the hover line */
#morphTip{ position:fixed; z-index:1300; display:none; max-width:min(320px, 92vw); pointer-events:none; background:#1c2538; color:#fff;
           border-radius:8px; padding:7px 10px; font-size:13px; line-height:1.5; box-shadow:0 4px 16px rgba(0,0,0,.3); }
#morphTip b{ font-size:19px; font-weight:400; }
#morphTip .morph-lat{ color:#cfd8ee; }
.morph-tipst{ font-size:11.5px; color:#ffd98a; }
.morph-tipst.vs-v, .morph-tipst.vs-c{ color:#9be3b6; }

/* the switch in the tools row */
.bm-nav.morph-nav{ font-size:.78em; letter-spacing:0; padding:0 .45em; width:auto; border-radius:6px; opacity:.6; }
.bm-nav.morph-nav.on{ opacity:1; background:rgba(46,97,184,.9); color:#fff; }

@media (max-width:520px){
  .morph-word .morph-heb{ font-size:30px; } .morph-word .morph-sam{ font-size:31px; }
  .morph-grid{ font-size:14.5px; gap:3px 8px; }
  .morph-qrow{ grid-template-columns:1fr max-content; }
  .morph-qan{ grid-column:1 / -1; }
  .morph-nav{ width:44px; height:44px; }
}
@media print{ .morph-modal, #morphTip{ display:none !important; } }
