/* Compass: a field chart for finding your bearing. Chalk paper with faint contour lines, ink range rings and bearing
   ticks, a sky "territory" where the visitor's answers reach, poppy only for north, the selected needle and the one
   button that moves you forward. Builds on shared/brand.css. Light only, square corners, no italics or shadows.
   Public pages load it at /assets/compass/compass.css, Omar's private copy at /assets/w/compass/compass.css. */

.cp { display: grid; gap: 44px; min-width: 0; }
.cp-h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); margin: 0; }
.cp-h2 { margin: 0 0 6px; font: 400 clamp(1.35rem, 3.4vw, 1.9rem)/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.03em; text-wrap: balance; }
.cp-lead { margin: 16px 0 0; max-width: 40rem; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); line-height: 1.5; }
.cp-quiet { color: var(--ink-soft); margin: 0; }
.cp-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cp-big { min-height: 48px; padding-inline: 1.5em; font-size: 1rem; }
.cp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The sign in the bar */
.cp-sign-ring { fill: none; stroke: var(--ink); stroke-width: 0.9; }
.cp-sign-ink { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.cp-sign-north { fill: var(--poppy); }

/* Start: the chart sheet. Contour lines sit behind the heading, the empty rose shows the twelve directions. */
.cp-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; padding: 28px 0 8px;
  background: url("contours.svg") center / cover no-repeat; }
.cp-mirror { margin: 14px 0 0; max-width: 34rem; color: var(--ink-soft); }
.cp-start-row { margin-top: 26px; }
.cp-hero-rose { margin: 0; max-width: 560px; justify-self: center; width: 100%; }
@media (min-width: 960px) {
  .cp-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; padding: 48px 0 24px; }
}

.cp-route, .cp-dims { display: grid; gap: 10px; max-width: 64rem; }
.cp-legs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.cp-leg { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.cp-leg-n { font: 400 2.2rem/1 var(--display); font-stretch: 125%; }
.cp-leg-body { display: grid; gap: 4px; }
.cp-leg-name { margin: 0; font: 600 1.1875rem/1.25 var(--text); }
.cp-leg-line { margin: 0; color: var(--ink-soft); }
.cp-leg-meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9375rem; }
.cp-leg-meta a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; font-weight: 500; }
.cp-leg-coming .cp-leg-n, .cp-leg-coming .cp-leg-name { color: var(--ink-soft); }
.cp-coming { padding: 2px 10px; border: 1px dashed var(--ink-soft); border-radius: 999px; color: var(--ink-soft); }
@media (min-width: 760px) {
  .cp-legs { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; gap: 24px; }
  .cp-leg { grid-template-columns: minmax(0, 1fr); border-bottom: 0; border-top: 1px solid var(--ink); padding-top: 14px; }
}

.cp-dim-list { margin: 10px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
.cp-dim-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cp-dim-row dt { font-weight: 600; }
.cp-dim-row dd { margin: 0; color: var(--ink-soft); }
@media (min-width: 760px) { .cp-dim-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .cp-dim-row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.cp-privacy { max-width: 46rem; display: grid; gap: 8px; }
.cp-privacy p { margin: 0; }

/* The rose. Every mark carries a class; the colors live here. */
.cp-rose { display: block; width: 100%; height: auto; overflow: visible; }
.cp-ring { fill: none; stroke: var(--ink); stroke-opacity: 0.18; stroke-dasharray: 2 5; }
.cp-ring-out { stroke-opacity: 0.45; stroke-dasharray: none; }
.cp-bezel { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.cp-tick { stroke: var(--ink); stroke-opacity: 0.45; stroke-width: 1; }
.cp-tick-major { stroke-opacity: 1; stroke-width: 1.6; }
.cp-north { fill: var(--poppy); }
.cp-territory { fill: var(--sky); fill-opacity: 0.7; stroke: var(--ink); stroke-opacity: 0.5; stroke-width: 1; stroke-linejoin: round; }
.cp-needle { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; transition: fill 0.15s; }
.cp-needle.on { fill: var(--poppy); stroke: var(--poppy-text); }
.cp-tip { fill: var(--ink); }
.cp-unrated { stroke: var(--ink); stroke-opacity: 0.5; stroke-width: 2; stroke-dasharray: 0.1 8; stroke-linecap: round; }
.cp-hit { stroke: transparent; stroke-width: 34; stroke-linecap: round; pointer-events: stroke; }
.cp-label { font: 500 19px var(--text); fill: var(--ink); }
.cp-label-quiet { fill: var(--ink-soft); }
.cp-hub { fill: var(--ink); }
.cp-spoke[role="button"] { cursor: pointer; outline: none; }
.cp-spoke[role="button"]:hover .cp-needle:not(.on) { fill: var(--sky); }
.cp-spoke[role="button"]:focus-visible .cp-hit { stroke: var(--wash); }
.cp-spoke[role="button"]:focus-visible .cp-label, .cp-spoke.on .cp-label { text-decoration: underline; text-decoration-thickness: 1.5px; }
@media (max-width: 600px) { .cp-label { font-size: 27px; } }

/* The walk: one exercise per screen. */
.cp-walk { max-width: 44rem; width: 100%; margin: 0 auto; gap: 22px; }
.cp-walk-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; padding-top: 4px; }
.cp-stage { margin: 0; font: 400 1.125rem/1.1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.02em; }
.cp-count { margin: 0; grid-column: 2; grid-row: 1; font-size: 0.9375rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cp-trail { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; position: relative; }
.cp-trail::before { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 1.5px dashed var(--ink); opacity: 0.4; }
.cp-trail li { flex: 1 1 0; display: flex; justify-content: center; min-width: 0; }
.cp-wp { position: relative; width: 100%; max-width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.cp-wp::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); transition: transform 0.15s var(--ease); }
.cp-wp.done::before { background: var(--ink); }
.cp-wp.here::before { width: 16px; height: 16px; border: 2px solid var(--poppy-fill); background: var(--white); box-sizing: border-box; }
.cp-wp.here.done::before { background: var(--poppy); }
.cp-wp:hover::before { transform: scale(1.25); }

.cp-ex { display: grid; gap: 18px; padding-top: 6px; }
.cp-ex-dim { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--poppy-text); }
.cp-prompt { margin: -8px 0 0; font: 500 clamp(1.375rem, 4.6vw, 1.875rem)/1.28 var(--text); letter-spacing: -0.01em; max-width: 34ch; text-wrap: pretty; }
.cp-prompt:focus { outline: none; }
.cp-scale, .cp-choices { margin: 0; padding: 0; border: 0; min-width: 0; }
.cp-pips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: pip; }
.cp-pip { position: relative; display: block; cursor: pointer; counter-increment: pip; }
.cp-pip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cp-pip-face { display: grid; place-items: center; height: 56px; border: 1px solid var(--ink); background: var(--white); font: 500 1.125rem/1 var(--text); transition: background-color 0.15s, color 0.15s; }
.cp-pip-face::after { content: counter(pip); }
.cp-pip:hover .cp-pip-face { background: var(--sky); }
.cp-pip input:checked + .cp-pip-face { background: var(--ink); color: var(--white); }
.cp-pip input:focus-visible + .cp-pip-face { outline: 2px solid var(--ink); outline-offset: 3px; }
.cp-ends { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font-size: 0.9375rem; color: var(--ink-soft); }
.cp-ends span:last-child { text-align: right; }
.cp-choice-list { display: grid; gap: 8px; }
.cp-choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border: 1px solid var(--ink); background: var(--white); cursor: pointer; }
.cp-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
.cp-choice:hover { background: var(--sky); }
.cp-choice:has(input:checked) { background: var(--ink); color: var(--white); }
.cp-choice:has(input:checked) input { accent-color: var(--white); }
.cp-field { display: grid; gap: 6px; font-size: 0.9375rem; font-weight: 500; }
.cp-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.45 var(--text); resize: vertical; }
.cp-field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.cp-why { font-size: 0.9375rem; }
.cp-why summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cp-why p { margin: 0 0 4px; color: var(--ink-soft); }
.cp-steps { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.cp-next { justify-self: end; min-width: 8rem; }
.cp-keeping { margin: 0; display: grid; gap: 10px; justify-items: start; }
.cp-done { display: grid; gap: 18px; padding: 24px 0; background: url("contours.svg") center / cover no-repeat; }
.cp-done:focus { outline: none; }
@media (max-width: 600px) {
  .cp-walk { gap: 16px; }
  .cp-steps { position: sticky; bottom: 0; background: var(--paper); padding-bottom: 12px; z-index: 10; }
}

/* The result */
.cp-res-head { display: grid; gap: 4px; }
.cp-empty { margin: 0; max-width: 40rem; }
.cp-res-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.cp-rose-wrap { margin: 0; display: grid; gap: 10px; }
.cp-rose-host { padding: clamp(8px, 3vw, 28px) 0; background: url("contours.svg") center / cover no-repeat; }
.cp-spoke-panel { display: grid; gap: 8px; align-content: start; padding-top: 14px; border-top: 1px solid var(--ink); }
@media (min-width: 960px) {
  .cp-res-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; }
  .cp-spoke-panel { position: sticky; top: 24px; margin-top: 28px; }
}
.cp-answers { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.cp-answer { display: grid; gap: 4px; }
.cp-a-q { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }
.cp-a-rate, .cp-a-choice { margin: 0; }
.cp-a-words { margin: 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--ink); font-size: 1.0625rem; line-height: 1.45; overflow-wrap: anywhere; }

.cp-sec { display: grid; gap: 10px; max-width: 72rem; }
.cp-t-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 22px; }
.cp-t { display: grid; gap: 14px; padding: 18px 20px; background: var(--lilac); max-width: 60rem; }
.cp-t-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.cp-t-side { display: grid; gap: 8px; align-content: start; padding: 0 14px; min-width: 0; }
.cp-t-side:first-child { padding-left: 0; border-right: 1px solid var(--ink); }
.cp-t-name { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 600; }
.cp-pips-row { display: inline-flex; gap: 3px; }
.cp-dot { width: 9px; height: 9px; border: 1px solid var(--ink); border-radius: 50%; }
.cp-dot.on { background: var(--ink); }
.cp-t-text { margin: 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: clamp(1.0625rem, 2.4vw, 1.25rem); line-height: 1.45; max-width: 52rem; }
.cp-b-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.cp-b { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; padding: 12px 16px; background: var(--blush); }
.cp-b-name { font-weight: 600; }
@media (max-width: 520px) { .cp-b { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.cp-x-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.cp-x { display: grid; gap: 8px; align-content: start; padding-top: 12px; border-top: 1px solid var(--ink); }
.cp-x-title { margin: 0; font: 400 1.25rem/1.05 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.02em; text-wrap: balance; }
.cp-x-week { margin: 0; }
.cp-x-from { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }
.cp-log { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px 40px; }
.cp-log-dim { display: grid; gap: 4px; align-content: start; padding-top: 10px; border-top: 1px solid var(--rule); }
.cp-log-name { margin: 0; font: 600 1.0625rem/1.3 var(--text); }
.cp-file { gap: 12px; }
.cp-file p { margin: 0; }
.cp-file-btn { position: relative; overflow: hidden; }
.cp-file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cp-file-btn:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.cp-status:empty { display: none; }
.cp-status { font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Print: one clean page with the rose and the visitor's own words. */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .bar nav, .cp-file, .cp-spoke-panel, .cp-steps, .foot, .cp-xps .cp-quiet, noscript { display: none !important; }
  .shell { max-width: none; padding: 0; gap: 10px; }
  .cp { gap: 14px; }
  .cp-h1 { font-size: 28pt; }
  .cp-res-grid { display: block; }
  .cp-rose-host { background: none; padding: 0; }
  .cp-rose { max-width: 120mm; margin: 0 auto; }
  .cp-t, .cp-b { background: none; border: 1px solid #000; padding: 8px 10px; }
  .cp-t, .cp-b, .cp-x, .cp-log-dim { break-inside: avoid; }
  .cp-territory { fill-opacity: 0.35; }
}
