/* Meridian tab: point buttons and the point detail card (explorer.js, point-card.js). */
.pdet .ptlink { border: 0; background: #e9fbf2; color: #00804a; font: 700 12px "JetBrains Mono", ui-monospace, monospace; border-radius: 5px; padding: 2px 5px; cursor: pointer; min-height: 0; }
.pdet .ptlink:hover { background: #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: #eef2ff; color: #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: #fff4e0; color: #8a4b00; border-inline-start: 3px solid #f59f00; }
.pdet .caut p.stop { background: #ffe8e8; color: #a3161b; border-inline-start-color: #e5484d; }
.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: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); min-height: 34px; 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: #dbeafe; color: #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; }
.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: #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: #a12a2e; min-height: 0; }
.psearch-msg:empty { display: none; }

/* 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: #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: #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: #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: #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: #fff; }
