/* Meridian tab: point buttons and the point detail card (explorer.js, point-card.js). */
.pdet .ptlink { border: 0; background: var(--d-ok, #e9fbf2); color: var(--d-ok-ink, #00804a); font: 700 12px "JetBrains Mono", ui-monospace, monospace; border-radius: 5px; padding: 2px 5px; cursor: pointer; min-height: 0; }
.pdet .ptlink:hover { background: var(--d-ok, #c9f3dd); }
.pdet { border: 1px solid var(--line); border-inline-start: 4px solid #00c76a; border-radius: 12px; padding: 14px 16px; }
.pdet .code { font: 700 26px "JetBrains Mono", ui-monospace, monospace; }
.pdet .code span { font: 600 16px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--muted); margin-inline-start: 6px; }
.pdet p { margin: 8px 0 14px; line-height: 1.55; }
.pts button { position: relative; }
.pts button[data-mark~="preg"]::after, .pts button[data-mark~="course"]::before { content: ""; position: absolute; top: 3px; width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #141826b3; } /* the dark ring shows on yellow buttons */
.pts button[data-mark~="preg"]::after { right: 3px; background: #e5484d; }
.pts button[data-mark~="course"]::before { left: 3px; background: #f5b400; }
.pdet .zh { margin-top: 2px; color: var(--muted); font-size: 14px; }
.pdet .zh b { font-size: 17px; color: var(--ink); margin-inline-end: 4px; }
.pdet .cats { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 4px; }
.pdet .cats span { font-size: 11.5px; font-weight: 600; background: var(--d-soft, #eef2ff); color: var(--d-ink, #3b3f8f); border-radius: 999px; padding: 3px 9px; }
.pdet .caut { margin: 10px 0 4px; display: grid; gap: 6px; }
.pdet .caut p { margin: 0; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; line-height: 1.4; background: var(--d-warn, #fff4e0); color: var(--d-warn-ink, #8a4b00); border-inline-start: 3px solid #f59f00; }
.pdet .caut p.stop { background: var(--d-bad, #ffe8e8); color: var(--d-bad-ink, #a3161b); border-inline-start-color: #e5484d; }
.pdet .caut details { padding: 7px 10px; border-radius: 9px; font-size: 13.5px; line-height: 1.4; background: var(--d-warn, #fff4e0); color: var(--d-warn-ink, #8a4b00); border-inline-start: 3px solid #f59f00; }
.pdet .caut details.stop { background: var(--d-bad, #ffe8e8); color: var(--d-bad-ink, #a3161b); border-inline-start-color: #e5484d; }
.pdet .caut summary { display: flex; gap: 6px; align-items: baseline; font-weight: 600; cursor: pointer; list-style: none; }
.pdet .caut summary::-webkit-details-marker { display: none; }
.pdet .caut summary::after { content: ""; flex: none; margin-inline-start: auto; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.pdet .caut details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.pdet .caut details > p { margin: 7px 0 0; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 400; }
.pdet .sm { font-size: 13px; color: var(--muted); margin: -6px 0 12px; }
.pdet details { border-top: 1px solid var(--line); padding: 4px 0; }
.pdet summary { cursor: pointer; font-weight: 650; font-size: 14.5px; color: var(--ink); min-height: 40px; display: flex; align-items: center; }
.pdet details p { margin: 4px 0 10px; font-size: 14px; }
.pdet details .sm { margin: 0 0 10px; }
.pdet ul { margin: 2px 0 10px; padding-inline-start: 18px; font-size: 14px; line-height: 1.5; }
.pdet .badge.alt { background: var(--d-info, #dbeafe); color: var(--d-info-ink, #1e3a8a); }
.pdet .nav { margin-top: 8px; }
.pdet .nav button { white-space: nowrap; flex: none; } /* ‹ Previous / Next › stay on one line; the channel name gives way */
.pdet .nav span { min-width: 0; text-align: center; }

/* Collapsible sections show a chevron — summary is display:flex, which drops the native disclosure marker. */
.pdet summary::after, .patient > summary::after, .sess > summary::after { content: ""; width: 7px; height: 7px; margin-inline-start: auto; margin-inline-end: 4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.pdet details[open] > summary::after, .patient[open] > summary::after, .sess[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.pdet summary::-webkit-details-marker { display: none; }
.pts-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin: -10px 0 16px; }
.pts-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pts-legend i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1px #141826b3; }
/* Practice (practice-hide.js): switches at the top of the point's card blur its names or card text; a tap shows them. */
.mprac { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; font-size: 12px; color: var(--muted); }
.pfloat.pf-min .mprac, .pfloat.pf-min .mprac-tip { display: none; }
.mprac > span { font-weight: 700; margin-inline-end: 2px; }
.mprac button { min-height: 28px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.mprac button[aria-pressed="true"] { background: var(--indigo, #4b5bdc); border-color: transparent; color: #fff; }
.mprac-tip { margin: -6px 0 12px; font-size: 12px; color: var(--muted); }
:root[data-practice~="names"]:not([data-rv~="names"]) :is(#pfloat .pf-head > b, #pfloat .pf-name, #pfloat .pdet > .code, #pfloat .pdet > .pc-zhrow .zh, #pfloat .pdet > .sm),
:root[data-practice~="text"]:not([data-rv~="text"]) #pfloat .pdet > .pc-panel { filter: blur(7px); cursor: pointer; user-select: none; }
:root[data-practice~="text"]:not([data-rv~="text"]) #pfloat .pdet > .pc-panel * { pointer-events: none; }
:root[data-practice~="names"]:not([data-rv~="names"]):has(#pfloat:not([hidden])) .lbl.sel { filter: blur(6px); }
.pts-legend .preg { background: #e5484d; } .pts-legend .course { background: #f5b400; }

/* Jump-to-point search at the top of the Meridian panel. */
.psearch { margin: 0 0 16px; }
.psearch input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: 500 14px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); background: var(--d-panel, #fff); }
.psearch input:focus { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: transparent; }
.psearch-msg { margin: 6px 2px 0; font-size: 13px; color: var(--d-bad-ink, #a12a2e); min-height: 0; }
.psearch-msg:empty { display: none; }
.psearch-msg.wait { color: var(--muted); }
/* A search that named no point exactly (explorer.js showFound): the note on a corrected search, or points to pick. */
.psearch-msg.sug { color: var(--ink, #14162b); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.psearch-msg.sug .psug { font: 600 12.5px/1.3 "Plus Jakarta Sans", system-ui, sans-serif; text-align: start; border: 1px solid var(--line, #d9dcef); background: var(--d-panel, #fff); color: var(--accent, #4b5bdc); border-radius: 9px; padding: 6px 10px; cursor: pointer; }
.psearch-msg.sug .psug:hover, .psearch-msg.sug .psug:focus-visible { border-color: var(--accent, #4b5bdc); }
.psearch-msg.sug .psearch-tip { color: var(--muted); font-size: 12px; }

/* Pregnancy caution points under the search box (point-filter.js). */
.pfilter { margin: 0 0 16px; }
.phits { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.phits > p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.phits > p b { color: var(--ink); }
.phits .clearf { margin-inline-start: auto; border: 1px solid var(--line); background: var(--d-panel, #fff); border-radius: 9px; min-height: 32px; padding: 0 10px; font: 600 12.5px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--muted); cursor: pointer; }
.phits .pg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0; }
.phits .pg i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-inline-end: 4px; flex: none; }
.phits .pg button { border: 0; background: var(--c); color: var(--k, #fff); font: 700 11.5px "JetBrains Mono", ui-monospace, monospace; border-radius: 7px; padding: 0 7px; min-height: 30px; min-width: 46px; cursor: pointer; }
.phits .pg button.on { background: #00c76a; color: var(--d-ink, #141826); }
.pts button.hit { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f08a24; }

/* Cun ruler button under the location: the same switch as Display › Cun ruler. */
.pdet .cun-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin: -6px 0 12px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--d-panel, #fff); color: var(--indigo); font: 600 13px "Plus Jakarta Sans", system-ui, sans-serif; cursor: pointer; }
.pdet .cun-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pdet .cun-btn:hover { background: var(--indigo-soft, #eef0ff); }
.pdet .cun-btn.on { background: var(--indigo, #4b5bdc); border-color: var(--indigo, #4b5bdc); color: #fff; }
/* Several channels drawn (Meridians): how many, and which one the list is for. */
.mtabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.mtabs span { margin-inline-end: 4px; }
.mtabs button { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--d-panel, #fff); font: 700 11.5px "JetBrains Mono", ui-monospace, monospace; color: var(--ink); cursor: pointer; }
.mtabs button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mtabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--d-panel, #fff); } /* the dark theme turns --ink light */

.pdet .zh .py { color: var(--muted); font-style: italic; margin-inline-end: .3em; } /* the italic's last letter leans into the meaning */
/* Where to find it first, in plain size; the textbook location under it (Detailed only, when there is a short one). */
.pdet p.find { margin: 10px 0 6px; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.pdet p.loc { margin: 6px 0 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
/* Treatment: the row above already names the point and is the highlight. */
.rec-card .pdet > .code { display: none; }
.rec-card .pdet { border-inline-start: 1px solid var(--line); }
/* Needles | Shiatsu (technique.js sets <html data-tech>): the Needle tab or the Press tab. */
:root[data-tech="shiatsu"] .pdet .t-needle, :root:not([data-tech="shiatsu"]) .pdet .t-press { display: none; }
/* The two switches as small pictures at the end of the name line (option A, owner 2026-12-02); the tabs under them. */
.pdet .pc-zhrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 2px; }
.pdet .pc-zhrow .zh { flex: 1 1 12em; min-width: 0; margin: 0; }
.pdet .pc-toggles { display: flex; gap: 6px; margin-inline-start: auto; }
.pdet .pc-toggles .pc-view { margin: 0; }
:is(.pdet, .cset-pop) .pc-view.pc-icons button { display: grid; place-items: center; width: 32px; min-height: 28px; padding: 0; }
.pc-icons svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pdet .pc-tabs { display: flex; gap: 2px; margin: 10px 0 4px; padding: 3px; border-radius: 11px; background: var(--d-panel2, #eef0f4); overflow-x: auto; scrollbar-width: none; }
.pfloat .pdet .pc-tabs { position: sticky; top: var(--pf-head-h, 47px); z-index: 1; } /* the card scrolls under them */
.pdet .pc-tabs button { flex: 1 0 auto; border: 0; background: none; border-radius: 8px; min-height: 36px; padding: 0 8px; font: 650 13px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--muted); cursor: pointer; white-space: nowrap; }
.pdet .pc-tabs button:hover { color: var(--ink); }
.pdet .pc-tabs button[aria-selected="true"] { background: var(--d-panel, #fff); color: var(--indigo); box-shadow: 0 1px 3px #14182122; }
.pdet .pc-panel { padding-top: 4px; }
.pdet .pc-panel > p:first-child, .pdet .pc-panel > div:first-child > p:first-child { margin-top: 6px; }
.pdet .pc-panel .k { margin: 12px 0 4px; }
.pdet .pc-pairs { display: grid; }
.pdet .pc-pairs > div { display: grid; gap: 2px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pdet .pc-pairs > div:last-child { border-bottom: 0; }
.pdet .pc-pts { color: var(--ink); }

/* Summary / Detailed switch (point-card.js): <html data-card="full"> shows the detailed text, otherwise the summary. */
:is(.pdet, .cset-pop) .pc-view { display: flex; width: fit-content; margin: 0 0 10px; padding: 3px; gap: 2px; border-radius: 10px; background: var(--d-panel2, #eef0f4); }
:is(.pdet, .cset-pop) .pc-view button { border: 0; background: none; border-radius: 8px; min-height: 32px; padding: 0 14px; font: 600 12.5px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--muted); cursor: pointer; }
:is(.pdet, .cset-pop) .pc-view button[aria-pressed="true"] { background: var(--d-panel, #fff); color: var(--indigo); box-shadow: 0 1px 3px #14182122; }
html:not([data-card="full"]) .pdet .v-full, html[data-card="full"] .pdet .v-sum { display: none; }
