/* POINTS (nav/points.js): Read and Study in the readers, the marks of each point over the words, the pen, the bar, the panel.
   Gold is for doing things (the pen in Study, Done, a point chosen); the marks keep the hand marks' own colors (nav/marks.js). */
.pt-host { position: relative; }
.pt-lay { position: absolute; left: 0; top: 0; z-index: 2; overflow: visible; pointer-events: none; }
.pt-lay .pt-m { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: var(--pmw, 2.5px); opacity: 0.94; }
.pt-lay .pt-m.is-new path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pt-draw 0.55s ease-out var(--pmd, 0ms) forwards; }
@keyframes pt-draw { to { stroke-dashoffset: 0; } }
.pt-lay .pt-p { transition: opacity 0.25s ease; }
.pt-lay .pt-p.is-back { opacity: 0.42; } /* (a point shown that isn't the one being drawn on: faint, behind it) */
.pt-lay .pt-veil rect { fill: var(--veil, #fff); opacity: 0.68; stroke: none; }
.pt-lay .pt-veil.is-spot rect { opacity: 0.62; }
.pt-lay .pt-veil.is-new { animation: pt-fade 0.5s ease-out; }
@keyframes pt-fade { from { opacity: 0; } }
.pt-lay .pt-tap { pointer-events: auto; cursor: pointer; }
.pt-lay .pt-hit rect { fill: transparent; stroke: none; }
.pt-lay .pt-chit { fill: none; stroke: transparent; stroke-width: 24px; } /* (a connection's line, a finger wide, to be tapped) */
/* (the mark chosen by a tap, its menu open: lit) */
.pt-lay .pt-hit.is-sel rect { fill: color-mix(in srgb, var(--gold, #A6773A) 16%, transparent); }
.pt-lay .pt-m.is-sel:not(.hm-src) { filter: drop-shadow(0 0 2.5px color-mix(in srgb, var(--gold, #A6773A) 85%, transparent)); }
.pt-mc-acts { margin-top: 12px; }
.pt-mc-acts .ui-chip svg { width: 16px; height: 16px; }
.pt-syms button.is-on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--bg)); }
/* erasing: each of your marks wiggles with a − at its top left, as the top bar's buttons do in Customize (reader.css hb-wiggle) */
.pt-lay .is-wig { transform-box: fill-box; transform-origin: center; animation: pt-wig 0.26s ease-in-out var(--wd, 0s) infinite; }
@keyframes pt-wig { 0% { transform: rotate(-1.2deg) translate(0, 0.4px); } 25% { transform: rotate(-0.4deg) translate(0.4px, 0); } 50% { transform: rotate(1.2deg) translate(0, -0.4px); } 75% { transform: rotate(0.4deg) translate(-0.4px, 0); } 100% { transform: rotate(-1.2deg) translate(0, 0.4px); } }
/* (over everything else in the layer: a note's button, with its bigger place to tap, had covered its −. From the owner: "The
   minus sign is behind the note in erase mode and you can't click it") */
.pt-minus { position: absolute; z-index: 2; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 72%, var(--bg)); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transform: translate(-50%, -50%); cursor: pointer; animation: pt-up-in 0.18s ease-out; }
.pt-minus::before { content: ''; position: absolute; left: 5px; right: 5px; top: 10px; height: 2px; border-radius: 1px; background: var(--bg-raised); }
.pt-minus::after { content: ''; position: absolute; inset: -9px; } /* (a bigger place to tap than it looks) */
@keyframes pt-up-in { from { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pt-lay .is-wig { animation: none; } }
.pt-lay .pt-note .pt-note-i { fill: currentColor; stroke: none; opacity: 0.85; }
/* a note, as the thought flow diagram's (study/guide.css .tf-nm, .tf-nc): its gold button at the end of the line, and opened,
   the note under the line in the text, the lines under it moved down; its words from data-t, never words in the page */
.pt-nm { position: absolute; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: none; border-radius: 50%; background: color-mix(in srgb, var(--gold) 20%, var(--bg-raised)); color: var(--gold); transform: translateY(-50%); cursor: pointer; }
.pt-nm::after { content: ''; position: absolute; inset: -10px; } /* (a bigger place to tap than it looks) */
.pt-nm svg { width: 12px; height: 12px; }
.pt-nm.is-on { background: var(--gold); color: var(--on-gold, #221E19); }
.pt-nc { display: block; margin: 4px 0 8px; padding: 7px 12px; border-left: 2px solid color-mix(in srgb, var(--gold) 55%, var(--rule)); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--gold) 6%, var(--bg)); font: italic 0.8em/1.45 var(--sans); color: var(--muted); text-indent: 0; letter-spacing: 0; white-space: pre-wrap; cursor: pointer; animation: pt-fade 0.22s ease-out; }
.pt-nc::before { content: attr(data-t); }
.pt-nc.is-edit { font-style: normal; cursor: default; }
.pt-nc.is-edit::before { content: none; }
.pt-nt { display: block; width: 100%; box-sizing: border-box; min-height: 52px; padding: 7px 10px; font: 16px/1.45 var(--sans); resize: none; }
.pt-nc-acts { display: flex; gap: 16px; margin-top: 6px; }
.pt-nc-btn { padding: 2px 0; border: none; background: none; color: var(--ink); font: 700 13px var(--sans); cursor: pointer; }
.pt-nc-btn::before { content: attr(data-t); }
.pt-nc-btn.is-del { color: var(--muted); }
.pt-labs { position: absolute; left: 0; top: 0; z-index: 3; width: 0; height: 0; overflow: visible; }
.pt-lb { position: absolute; display: block; height: 1.6em; padding: 0; overflow: hidden; border: 0; background: transparent; font-family: var(--sans, system-ui, sans-serif); font-weight: 800; letter-spacing: 0.03em; line-height: 1.6em; text-align: center; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: opacity 0.25s ease; }
.pt-lb::before { content: attr(data-t); }
.pt-lb.is-back { opacity: 0.42; }
.pt-lb.is-tag { width: 22px; height: 22px; transform: translate(-50%, -50%); }
.pt-lb.is-tag::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px var(--veil, #fff); transform: translate(-50%, -50%); }
.pt-ty { transition: font-size 0.2s ease; }

/* the pen, in Read: one quiet button at the foot of the window */
.pt-pen { position: absolute; left: max(14px, env(safe-area-inset-left)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg-raised); color: var(--muted); font: 700 13px var(--sans); box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.45); cursor: pointer; opacity: 0.82; transition: opacity 0.2s ease, transform 0.2s ease; }
.pt-pen[hidden] { display: none; }
.pt-pen svg { width: 17px; height: 17px; }
.pt-pen:hover { opacity: 1; color: var(--ink); }
/* (reading on, it steps aside with the reader's other tools, and is back looking back: the Bible's is-calm, a book's is-immersed.
   From the owner: "The study button needs to disappear like all the other buttons when you scroll down to read") */
.br-sheet.is-calm .pt-pen, .bk-shell.is-immersed .pt-pen { opacity: 0; transform: translateY(14px); pointer-events: none; }
html.vp-open .pt-pen, html.vp-open .pt-bar { opacity: 0; pointer-events: none; }
html.pt-studying .as-ctl, .pt-studying .br-ribs-here { display: none; } /* (and the ribbons in the margin: a bracket's room) */ /* (in Study, the foot is the bar's: Auto-scroll is for reading) */ /* (the reader's own bar on words picked: over them) */

/* the bar, in Study: the point drawn on, the list, Done */
.pt-bar { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 31; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 24px); padding: 6px; transform: translateX(-50%); border: 1px solid var(--rule); border-radius: 999px; background: var(--bg-raised); color: var(--ink); font-family: var(--sans); box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.5); box-sizing: border-box; animation: pt-up 0.22s ease-out; }
.pt-bar[hidden] { display: none; }
@keyframes pt-up { from { opacity: 0; transform: translate(-50%, 10px); } }
.pt-chip { display: inline-flex; align-items: center; gap: 7px; min-width: 0; height: 36px; padding: 0 10px 0 12px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: 700 14px var(--sans); cursor: pointer; }
.pt-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-chip small { color: var(--muted); font-weight: 600; white-space: nowrap; }
.pt-chip svg { flex: none; width: 15px; height: 15px; color: var(--muted); }
.pt-hint { color: var(--muted); font-weight: 600; }
.pt-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--gold)); }
.pt-b { display: inline-flex; flex: none; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 13px var(--sans); cursor: pointer; }
.pt-b svg { width: 17px; height: 17px; }
.pt-b.is-icon { width: 36px; padding: 0; justify-content: center; }
.pt-b.is-off { opacity: 0.32; } /* (Undo with nothing to undo: there, so it's always in its place, quiet) */
.pt-b:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.pt-what { display: flex; flex-direction: column; min-width: 0; padding: 0 6px; line-height: 1.15; }
.pt-what b { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.pt-what small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.pt-done { flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--gold); color: var(--on-gold, #fff); font: 800 13.5px var(--sans); cursor: pointer; }

/* the panel: the points here */
.pt-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; max-height: min(78%, 620px); overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); border-radius: 20px 20px 0 0; background: var(--bg-raised); color: var(--ink); font-family: var(--sans); box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, 0.45); transform: translateY(100%); transition: transform 0.22s ease; box-sizing: border-box; }
.pt-panel[hidden] { display: none; }
.pt-panel.is-open { transform: none; }
@media (min-width: 700px) { .pt-panel { left: 50%; right: auto; width: min(460px, calc(100% - 32px)); margin-left: max(-230px, calc(-50% + 16px)); bottom: 12px; border: 1px solid var(--rule); border-radius: 20px; } }
.pt-grab { width: 38px; height: 5px; margin: 4px auto 8px; border-radius: 3px; background: var(--rule); }
.pt-ph { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pt-ph b { flex: 1; min-width: 0; font: italic 600 19px var(--serif, Georgia, serif); }
.pt-list > li > .rbx-in { gap: 4px; }
.pt-list > li > .rbx-in > .ui-grip { width: 22px; margin: 0 -4px 0 2px; }
.pt-list > li > .rbx-in > .ui-grip + .pt-row { padding-left: 4px; } /* (its grip, by the dot: dragged by it, or held anywhere on the row) */
.pt-list.is-sortable .pt-row { touch-action: pan-y; }
.pt-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 6px 11px 12px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.pt-row > span { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 2px; }
.pt-row b { overflow: hidden; font: 700 14.5px/1.25 var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.pt-row small { overflow: hidden; color: var(--muted); font-family: var(--sans); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pt-row .ui-row-k { font-weight: 800; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--door-bible, var(--gold)); }
.pt-shut { flex: none; height: 34px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); color: var(--ink); font: 700 13.5px var(--sans); cursor: pointer; }
.pt-list > li.is-cur .pt-row b { color: var(--gold); }
.pt-list > li.is-cur .pt-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 28%, transparent); }
.pt-eye { display: grid; flex: none; place-items: center; width: 38px; height: 38px; margin-right: 6px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.pt-eye svg { width: 19px; height: 19px; }
.pt-eye.is-on { color: var(--ink); }
.pt-row > .pt-hl-i { display: grid; flex: none; place-items: center; width: 10px; color: var(--muted); }
.pt-hlrow .pt-row { cursor: default; }
.pt-hl-i svg { width: 16px; height: 16px; }
.pt-new { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 6px; border: 0; background: transparent; color: var(--gold); font: 700 14.5px var(--sans); cursor: pointer; }
.pt-new svg { width: 17px; height: 17px; }
.pt-tip { margin: 10px 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pt-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pt-acts .ui-chip svg { width: 15px; height: 15px; }
.pt-pick .pt-check { flex: none; width: 22px; height: 22px; border: 2px solid var(--rule); border-radius: 7px; }
.pt-pick.is-on .pt-check { border-color: var(--gold); background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat; }
.pt-none { padding: 12px 6px; color: var(--muted); font-size: 14px; }

/* the readers' own cards, over the ring (the ring's look: nav/marks.js, reader/verse.css, study/guide.css) */
.pt-card { transform: none; }
.pt-card-p { margin: 4px 0 10px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.pt-card-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-card-row .ui-chip svg { width: 16px; height: 16px; }
.pt-card .ui-field, .pt-ring-card .ui-field { width: 100%; box-sizing: border-box; padding: 9px 12px; font-size: 16px; }
.pt-card .ui-seg.is-many > button.is-on { background: var(--gold); color: var(--on-gold, #fff); }
.pt-ty-show { display: flex; align-items: center; justify-content: center; min-height: 64px; margin-bottom: 4px; font: 18px/1.4 var(--serif, Georgia, serif); }
.pt-syms { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.pt-syms button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg); color: var(--ink); cursor: pointer; }
.pt-syms b { font-size: 22px; line-height: 1; }
.pt-syms small { color: var(--muted); font: 600 11.5px var(--sans); text-align: center; }

/* a note's words, a bracket's label, tapped */
.pt-pop { position: absolute; z-index: 45; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg-raised); color: var(--ink); font-family: var(--sans); box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.5); box-sizing: border-box; }
.pt-pop[hidden] { display: none; }
.pt-pop p { margin: 0 0 8px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.pt-pop small { color: var(--muted); font-size: 12px; }
.pt-pop textarea { width: 100%; margin-bottom: 8px; box-sizing: border-box; font-size: 16px; }
.pt-pop-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-pop-acts svg { width: 14px; height: 14px; }

.pt-toast { position: absolute; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 46; width: max-content; max-width: calc(100% - 32px); box-sizing: border-box; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.pt-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.pt-toast-b { margin-left: 10px; border: 0; background: transparent; color: var(--gold); font: 800 13.5px var(--sans); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .pt-lay .pt-m.is-new path { animation-duration: 0.01s; } .pt-bar, .pt-panel { animation: none; transition: none; } }
/* (See them all clearly: a switch over the list, every point as strong as the one drawn on) */
.pt-clear { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 10px; padding: 11px 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg); color: var(--ink); text-align: left; cursor: pointer; font-family: var(--sans); }
.pt-clear > span { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 2px; }
.pt-clear b { font: 700 14.5px/1.25 var(--sans); }
.pt-clear small { color: var(--muted); font-size: 12px; line-height: 1.35; }
/* (a bracket within a line: the room beside its words, so it sits between them: nav/points.js's rooms(), HandMarks.ROOM) */
.pt-room { transition: margin 0.2s ease; }
@media (prefers-reduced-motion: reduce) { .pt-room { transition: none; } }
/* (Show me how: the ? at the foot of Study, nudged the first times it's there, and its list, the thought flow diagram's tf-help) */
.pt-q { font: 800 16px var(--sans); }
.pt-q.is-nudge { animation: pt-nudge 1.4s ease-in-out 3; color: var(--gold); }
@keyframes pt-nudge { 0%, 100% { transform: none; box-shadow: none; } 20% { transform: rotate(-12deg) scale(1.08); } 40% { transform: rotate(10deg) scale(1.08); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 35%, transparent); } 60% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pt-q.is-nudge { animation: none; } }
.pt-help { padding: 0 2px 6px; }
.pt-help dd { margin: 0; color: var(--muted); }
.pt-help .tf-demo-b svg:first-child, .pt-help-t svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
.pt-help-t { display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; font-weight: 800; }

/* A line to another page (nav/points.js crossDraw): its tag at the page's top or foot, in the line's color, saying where the
   other end is; tapped, it turns there. And the bar's ‹ › while connecting, to carry the line: names on a wider screen. */
.pt-xtag { position: absolute; display: block; box-sizing: border-box; padding: 0 12px; border: 1.5px solid var(--c, #3E7A4C); border-radius: 999px; background: color-mix(in srgb, var(--c, #3E7A4C) 12%, var(--bg-raised, #fffdf8)); color: color-mix(in srgb, var(--c, #3E7A4C) 72%, var(--ink, #2b2620)); font-family: var(--sans); font-weight: 700; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; transition: opacity 0.25s ease, transform 0.15s ease; }
.pt-xtag:active { transform: scale(0.97); }
.pt-xtag.is-back { opacity: 0.45; }
.pt-bar .pt-turn { display: inline-flex; align-items: center; gap: 2px; width: auto; padding: 0 8px; white-space: nowrap; }
.pt-bar .pt-turn svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 560px) { .pt-bar .pt-turn span { display: none; } .pt-bar .pt-turn { padding: 0 6px; } }
