/* Example pages reached from the home page's linked words (owner 2026-10-03). */

/* Only the section asked for is shown; the rest of the page stays hidden. */
html[data-ex] main > section:not(.ex-target) { display: none; }
html[data-ex] .ex-target { padding-top: clamp(24px, 4vw, 40px); }
html[data-ex] .nav-dl { display: none; }
html[data-ex="appointments"] #appointments .wrap:nth-of-type(2), html[data-ex] .ex-hide { display: none; }
.ex-foot { margin: 28px 0 8px; font-size: 15px; }
.ex-foot a { color: var(--accent-deep); font-weight: 600; }
html[data-theme='dusk'] .ex-foot a { color: var(--accent); }

/* The swipe-back gesture, drawn small, near the top (owner 2026-10-03:
   less prominent, not mid-screen where the medication row itself swipes).
   A small dot leaves the left edge with a fading trail behind it, three
   times, then js removes it. The page does not move. */
.ex-swipe {
  position: fixed; left: 10px; top: 68px; z-index: 320;
  width: 18px; height: 18px; pointer-events: none;
  animation: ex-sweep 2.2s cubic-bezier(.4, .6, .3, 1) .8s 2;
  opacity: 0;
}
.ex-finger {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, #fff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
/* The after-motion: a streak that stretches out behind the dot and fades. */
.ex-ring {
  position: absolute; top: 5px; right: 50%; height: 8px; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 40%, transparent));
  animation: ex-trail 2.2s cubic-bezier(.4, .6, .3, 1) .8s 2;
  opacity: 0;
}
.ex-ring--2 { display: none; }
@keyframes ex-sweep {
  0%   { opacity: 0; transform: translateX(0); }
  15%  { opacity: .85; transform: translateX(0); }
  70%  { opacity: .85; transform: translateX(72px); }
  100% { opacity: 0; transform: translateX(84px); }
}
@keyframes ex-trail {
  0%, 15% { width: 0; opacity: 0; }
  45%  { width: 52px; opacity: .6; }
  70%  { width: 30px; opacity: .3; }
  100% { width: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .ex-swipe { display: none; } }

/* The real Appointments screen on /features/ (one phone, centred). */
.appt-shot { display: grid; justify-items: center; gap: 14px; }
.appt-shot .phone { max-width: 340px; width: 100%; }
