/* Your map (content/en/your-map.html). Linked by that page only, after showcase.css, home-p4.css and
   home-p2.css. Adds what the results page has that P4's map does not: a checkbox on every line, the
   whole line as its label, the small own-site details link, the files under the hero, the count and
   the quote form under the map. No braces in comments. */

.ym-page #map-h { scroll-margin-top: calc(var(--bar-h, 64px) + 24px); }

/* ---- Files carried over from the prompter ------------------------------------------------------- */
.ym-files { margin: 14px 0 0; max-width: 34rem; }
.ym-files[hidden] { display: none; }
.ym-files-h { margin: 0 0 6px; font-size: var(--t-1); font-weight: 700; color: var(--ink); }
.ym-files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ym-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 6px 6px 14px;
  border: var(--rule-w, 1px) solid var(--rule); border-radius: 12px; background: var(--paper); }
.ym-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: var(--t-1); }
.ym-file-meta { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.ym-file-x { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.ym-file-x:is(:hover, :focus-visible) { background: var(--accent-soft); color: var(--ink); }
.ym-file-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ym-files-note { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 480px) {
  .ym-files li { grid-template-columns: minmax(0, 1fr) auto; }
  .ym-file-meta { grid-column: 1; grid-row: 2; }
  .ym-file-x { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---- The map with checkboxes -------------------------------------------------------------------- */
.ym-leaf { display: grid; }
.ym-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--paper-2); border: var(--rule-w, 1px) solid var(--rule); color: var(--ink); cursor: pointer;
  transition: border-color var(--dur), background-color var(--dur), transform var(--dur) var(--ease); }
.ym-pick:hover { border-color: var(--accent); transform: translateX(3px); }
.ym-pick:has(:focus-visible) { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.ym-pick:has(:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--paper-2)); }
.ym-pick input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-ink); cursor: pointer; }
.ym-pick input:focus-visible { outline: none; }
.ym-text { display: grid; gap: 2px; min-width: 0; }
.ym-text strong { overflow-wrap: anywhere; }
.ym .mm-leaf .ym-more { justify-self: end; margin: 4px 6px 0 0; font-size: 13px; font-weight: 600; color: var(--accent-ink); text-underline-offset: 3px; min-height: 24px; display: inline-flex; align-items: center; }
.ym .mm-leaf .ym-more span { color: inherit; }
.ym .mm-leaf::before { top: 24px; }

/* ---- Under the map ------------------------------------------------------------------------------ */
.ym-next { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.ym-next[hidden] { display: none; }
.ym-count { flex: 1 1 100%; margin: 0; text-align: center; font-weight: 700; color: var(--ink); }
.ym-quote { margin: clamp(40px, 6vw, 72px) auto 0; max-width: 64rem; display: grid; gap: clamp(20px, 4vw, 48px); align-items: start;
  scroll-margin-top: calc(var(--bar-h, 64px) + 16px); }
@media (min-width: 900px) { .ym-quote { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.ym-quote > * { min-width: 0; }
.ym-quote h3 { margin: 0 0 .4em; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.03em; line-height: 1.1; }
.ym-quote-copy p { margin: 0; color: var(--ink-2); }
.ym-quote .contact-form { margin: 0; max-width: none; }

/* ---- The text reveal, after "Why it happens" ----------------------------------------------------- */
.ym-reveal { display: block; }
.ym .ym-text { color: var(--ink); }
