/* The Practice page guide ("Find your way"). Uses the site's own tokens from
   style-v2.css; nothing here changes any other page. */

.wayfinder {
  padding-top: 8px;
  padding-bottom: 72px;
  max-width: 760px;
  scroll-margin-top: 24px;
}

.wayfinder h2 { margin-bottom: 0.3em; font-size: 26px; }
.wayfinder .wf-intro { font-size: 17px; margin-bottom: 0.9em; }

.wf-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 20px;
}
.wf-log:empty { display: none; }

.wf-turn {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--card-ground);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.wf-turn p { margin: 0 0 0.6em; }
.wf-turn p:last-child { margin-bottom: 0; }
.wf-turn.you {
  background: transparent;
  color: var(--text-quiet);
  white-space: pre-wrap;
}
.wf-turn .wf-who {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-bottom: 4px;
}
.wf-dots { display: inline-flex; gap: 6px; align-items: center; height: 1.6em; }
.wf-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
  animation: wf-pulse 1.2s ease-in-out infinite;
}
.wf-dots i:nth-child(2) { animation-delay: 0.2s; }
.wf-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes wf-pulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .wf-dots i { animation: none; opacity: 0.6; }
}
.wf-turn ul { margin: 0.4em 0 0; padding: 0; list-style: none; }
.wf-turn li { margin: 0 0 0.8em; }
.wf-turn li:last-child { margin-bottom: 0; }
.wf-turn li a { font-family: "Manrope", sans-serif; font-weight: 500; }
.wf-turn li span { display: block; }

.wf-form label {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.wf-form textarea {
  display: block;
  width: 100%;
  min-height: 76px;
  resize: vertical;
  font: inherit;
  font-size: 17px; /* 16px or more stops phones zooming on focus */
  line-height: 1.5;
  color: var(--text-body);
  background: var(--ground);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 14px;
}
.wf-form textarea:focus-visible,
.wf-actions button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.wf-count {
  font-size: 14px;
  color: var(--text-quiet);
  text-align: right;
  margin: 4px 0 0;
}

.wf-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}
.wf-actions button {
  cursor: pointer;
  font-family: "Manrope", sans-serif;
}
.wf-actions button[disabled] { opacity: 0.5; cursor: default; }

.wf-note {
  font-size: 15px;
  color: var(--text-quiet);
  margin: 0;
}

.wf-js-only[hidden] { display: none; }

/* On a phone the site header and hero fill the screen, so the guide's box
   starts below the fold. These tighten spacing on this page's hero only
   (type sizes and colours are unchanged except the tag line, 22px to 18px). */
@media (max-width: 640px) {
  .hero-v2:has(+ .wayfinder) { padding: 28px 0 8px; }
  .hero-v2:has(+ .wayfinder) .tag { font-size: 18px; line-height: 1.5; }
  .hero-v2:has(+ .wayfinder) .hero-cta { margin-top: 16px; gap: 10px; }
  .wayfinder .wf-intro { font-size: 16px; line-height: 1.55; }
  .wayfinder h2 { font-size: 22px; }
}

/* Inside a page's own .wrap (the home page): no extra gutters or top gap. */
.wayfinder-inline {
  padding-top: 0;
  padding-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
}
/* The home page's sections are centred, so this one's heading and intro are too. */
.wayfinder-inline h2,
.wayfinder-inline .wf-intro { text-align: center; }

/* Counted feedback under a reply. */
.wf-fb { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--card-border); font-size: 15px; color: var(--text-quiet); }
.wf-fb-q { margin-right: 8px; }
.wf-thumb { cursor: pointer; display: inline-flex; align-items: center; line-height: 1; padding: 7px 13px; margin-right: 6px; color: var(--accent); border: 1px solid var(--card-border); border-radius: 999px; background: transparent; }
.wf-thumb:hover { border-color: var(--accent); background: color-mix(in oklch, var(--accent) 10%, transparent); }
.wf-thumb:focus-visible, .wf-fb .btn-read:focus-visible, .wf-fb-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wf-fb-box { display: block; width: 100%; margin: 10px 0 6px; font: inherit; font-size: 16px; color: var(--text-body); background: var(--ground); border: 1px solid var(--card-border); border-radius: 12px; padding: 10px 12px; }
.wf-fb .wf-note { margin-bottom: 8px; }
.wf-fb .wf-actions { margin: 6px 0 0; }
