/* Daily Life Doc, round 30 (zone P): the plan's five sections (js/plan/plan-sections.js, plan-sections-draw.js): the
   quiet headings Goal, How to talk, Start, Schedule, When with their ⓘ and its one line, the drag handle at the start
   of a line that can move inside its section, the line being dragged and the thin line where it lands; the section
   words in Review's numbered list (js/plan/plan-organize-list.js). Tokens from css/base.css; the rows are css/plan.css. */

/* A heading: small and grey, as What happens next's day words; never big. Its words start where a line's words start
   (a row's padding, 10px from css/profile.css's .prow, 4px at 520px and less, plus the line's own 6px). */
/* Round 32 (zone B1; the owner: "make them in a small font … we should know that this is the title"): a small label in
   capitals, spaced, darker than the hints, with a thin rule after it, so it reads as a title and never as a line. */
.psec { display: flex; flex-wrap: wrap; align-items: center; column-gap: 2px; margin: 18px 0 4px; padding: 0 16px; }
.plines > .psec:first-child { margin-top: 4px; }
.psn { font-size: var(--t-s); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink2); }
.psec::after { content: ""; flex: 1 1 24px; order: 1; height: 1px; margin-left: 8px; background: var(--line, rgba(0, 0, 0, .08)); }
.psx { order: 2; }


/* Round 32: "Same as …?" with Merge under two lines that look alike. */
.psame { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 0 6px 6px; font-size: var(--t-xs); color: var(--ink2);
  animation: dd-rise var(--m-add) var(--ease-out) both; }
.psi { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: -4px 0; padding: 0; border-radius: 50%; color: var(--ink3);
  cursor: pointer; transition: background-color var(--m-step) ease, color var(--m-step) ease, transform var(--m-press) var(--ease-out); }
.psi svg { width: 14px; height: 14px; }
.psi:hover, .psi[aria-expanded="true"] { background: var(--soft); color: var(--ink2); }
.psi:active { transform: scale(.92); }
.psi:focus-visible { outline: 2px solid var(--sage); outline-offset: 1px; }
.psx { flex-basis: 100%; padding: 1px 0 3px; font-size: var(--t-xs); color: var(--ink3); animation: dd-rise var(--m-add) var(--ease-out) both; }
.psx[hidden] { display: none; }
.cpside .psec { margin-top: 10px; }

/* The handle: in a gutter left of the lines on the Plan tab (the read-only plan beside Chat has none). It shows when
   the pointer is over the line (or it has the focus); on a touch screen it always shows, faintly. */
.wdoc .plines:not(.ro) { margin-left: -12px; padding-left: 22px; }
.plines:not(.ro) .prow.unpub > .pln::after { left: -8px; }
.pgrip { display: none; position: absolute; left: -22px; top: 4px; z-index: 1; width: 14px; height: 24px; place-items: center; padding: 0; border-radius: 5px;
  color: var(--ink3); cursor: grab; touch-action: none; opacity: 0; transition: opacity var(--m-step) ease, background-color var(--m-step) ease; }
.pgrip svg { fill: currentColor; }
.prow.mv > .pgrip { display: grid; }
.prow.mv:hover > .pgrip, .pgrip:focus-visible { opacity: .8; }
.pgrip:hover { background: var(--soft); }
.pgrip:focus-visible { outline: 2px solid var(--sage); outline-offset: 0; }
@media (hover: none) { .prow.mv > .pgrip { opacity: .45; } }

/* While a line is dragged: it rides over the others, lifted; a thin sage line shows where it lands. */
.plines.dragging { user-select: none; -webkit-user-select: none; }
.plines.dragging .pgrip { cursor: grabbing; }
.prow.pdrag { z-index: 40; border-radius: 10px; background: var(--card); box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 14px 28px -14px rgba(20, 20, 20, .4); }
.prow.pdrag > .pgrip { opacity: 1; }
.pdrop { position: absolute; left: 22px; right: 6px; height: 2px; border-radius: 2px; background: var(--sage-d); pointer-events: none; }

/* Review's list: the section's word above its first line, as quiet as the plan's headings. */
.orgsec { margin: 10px 0 2px 70px; font-size: var(--t-xs); font-weight: 600; color: var(--ink3); list-style: none; }
.orgn > .orgsec:first-child { margin-top: 0; }

@media (max-width: 880px) {
  .wdoc .plines:not(.ro) { margin-left: -6px; padding-left: 18px; }
  .pgrip { left: -18px; width: 12px; }
  .plines:not(.ro) .prow.unpub > .pln::after { left: -6px; }
  .pdrop { left: 18px; }
}
@media (max-width: 640px) { .orgsec { margin-left: 58px; } }
@media (max-width: 520px) { .psec { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .psx, .psame { animation: none; } }
.pvc .pvc-rev { margin-bottom: 6px; } /* round 32: Review's findings on a version (js/plan/plan-vers.js) */
