/* TL-13 student planner: round 1 fixes (review tl13-r1). Loaded only where the student planner renders.
   The shared planners.css (TL-08 + TL-13) is unchanged. Isolation contract: every selector starts .wt-, no !important. */

/* returning visitor: "Your plan from {date} is here" + Open / Clear, shown before first paint (BUILD-GUIDE rule 13) */
.wt-sp-back { margin: 0 0 14px; }
.wt-sp-back-t { margin: 0 0 8px; }
.wt-sp-back .wt-actions { margin: 0; }
.wt-tool.wt-is-static .wt-sp-back { display: none; }

/* r1 #7: the date fields' native calendar button keeps the kit's 2 px teal ring (the input itself loses
   :focus-visible while its calendar button has focus) */
.wt-tool .wt-sp input[type="date"]:focus-within { outline: 2px solid var(--wg-teal, #008671); outline-offset: 2px; }

/* r1 #8: the twin's terms paragraph gets a gap under the table */
.wt-s .wt-sp-terms { margin-top: 14px; }

/* r2 #2: each person's profile. Radio cards (a select cut "A shared-house room with some furniture" off at every phone
   width), one column of people below 620 px and in the narrow 1000-1279 px panel, two columns elsewhere. The shared
   ".wt-sp .wt-field + .wt-field" / ".wt-fieldset + .wt-fieldset" 16 px gap must not reach the grid items, or Person 2
   sits 16 px below Person 1. */
.wt-tool .wt-sp .wt-sp-each > .wt-field, .wt-tool .wt-sp .wt-sp-each > .wt-fieldset { margin-top: 0; }
.wt-tool .wt-sp .wt-sp-each { gap: 14px 12px; }
@media (max-width: 619.98px) { .wt-tool .wt-sp .wt-sp-each { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1000px) and (max-width: 1279.98px) { .wt-tool .wt-sp .wt-sp-each { grid-template-columns: minmax(0, 1fr); } }
.wt-tool .wt-sp .wt-sp-person.wt-off { display: none; }
.wt-tool .wt-sp .wt-sp-person > .wt-label { font-size: 15px; margin: 0 0 6px; }
.wt-tool .wt-sp .wt-sp-person-cards { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.wt-tool .wt-sp .wt-sp-person-cards .wt-card span { min-width: 0; overflow-wrap: anywhere; }

/* r2 #2 follow-up: at 320-359 px "University of Gloucestershire" was cut to "Gloucestersh" by the select's own arrow.
   A little less padding gives every option's full text room (font stays 16 px so iOS does not zoom on focus). */
@media (max-width: 359.98px) {
  .wt-tool .wt-sp .wt-controls { padding-left: 10px; padding-right: 10px; }
  .wt-tool .wt-sp .wt-select { padding-left: 6px; padding-right: 4px; }
}

/* r3 #2: the kit's .wg-b is nowrap; in the narrow two-column panel (1000-1279 px) "Call {store} on {phone} for a price"
   ran past the result card and scrolled the page sideways. Every button in the result wraps inside the card. */
.wt-tool .wt-sp-result .wt-actions .wg-b { white-space: normal; max-width: 100%; min-width: 0; text-align: center; }

/* UX round (reviews/ux/tl13-ux.md, UX-STANDARD §3, §4, §6) */
/* the stay's total, the last of the money lines, reads as the answer the heading gave */
.wt-tool .wt-sp-result .wt-sp-cost { font-weight: 600; }
/* floor helper sits between the legend and the cards */
.wt-tool .wt-sp .wt-sp-floor-hint { margin: -2px 0 8px; }
/* "Start again" + "Cleared. Undo" in the form's action row; the privacy line under it */
.wt-tool .wt-sp .wt-sp-acts { align-items: center; }
.wt-tool .wt-sp .wt-sp-undo { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 600; }
.wt-tool .wt-sp .wt-sp-undo.wt-off { display: none; }
.wt-tool .wt-sp .wt-sp-privacy { margin: 10px 0 0; }
/* the opening placeholder is a link to the question */
.wt-tool .wt-sp-result .wt-sp-pick { display: inline-flex; align-items: center; min-height: 44px; }
/* next steps: at most two arrow links (§4.4), like TL-14 */
.wt-tool .wt-sp-result .wt-sp-next { margin: 14px 0 0; padding: 0; list-style: none; }
.wt-tool .wt-sp-result .wt-sp-next li { margin: 0 0 4px; }
.wt-tool .wt-sp-result .wt-sp-next .wg-arrowlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
/* collapsed "How we worked this out" / "Good to know" (§4.5) */
.wt-tool .wt-sp-result .wt-sp-more { margin: 10px 0 0; border-top: 1px solid var(--wg-line, #dde3e8); }
.wt-tool .wt-sp-result .wt-sp-more > summary { display: flex; align-items: center; min-height: 44px; color: var(--wg-blue); font-weight: 600; cursor: pointer; }
.wt-tool .wt-sp-result .wt-sp-more[open] > summary { margin-bottom: 4px; }
.wt-tool .wt-sp-result .wt-sp-more .wt-sp-bills { margin: 6px 0 10px; }
.wt-tool .wt-sp-result .wt-sp-more .wt-sp-kit { margin: 10px 0 6px; padding: 0; border: 0; background: none; }
.wt-tool .wt-sp-result .wt-sp-more .wt-sp-share { margin: 0 0 8px; }
/* the plan's own actions (copy the split, calendar) and the Call / See store row */
.wt-tool .wt-sp-result .wt-sp-actions { margin-top: 12px; }
/* the phone bar is blue: a white focus ring keeps contrast (as TL-02) */
.wt-tool.wt-tool--student-planner .wt-stickybar a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
