/* Page-specific additions reuse the guide palette, sections, and media layout. */
.pickup-shell { max-width: 62rem; }
.pickup-shell .back-link { display: inline-block; margin-bottom: 1.25rem; }
.pickup-shell .resource-article h3 { color: var(--green-dark); }
.pickup-shell .resource-article [id] { scroll-margin-top: 7rem; }
.pickup-shell .resource-article > section:has(> h3) { display: flow-root; margin-top: 1.35rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.pickup-shell .resource-article > section > h3,
.pickup-shell .guide-editorial-copy > h3 { margin-top: 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.pickup-shell .resource-article > #title h1 { max-width: 24ch; }
.pickup-shell .resource-article > #queue-spillover { margin-top: 0; padding-top: 0; border-top: 0; }
.pickup-shell a:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.pickup-shell #next-step { background: var(--green-dark); color: white; padding-block: 1.25rem; }
.pickup-shell #next-step h2 { color: white; }
.pickup-shell #next-step strong, .pickup-shell #next-step a { color: #f7d78c; }
.pickup-shell #next-step a:focus-visible { outline-color: #f7d78c; }
.pickup-shell .resource-article > #sources-and-updates { background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); }
.pickup-shell .resource-article > #sources-and-updates h2,
.pickup-shell .resource-article > #sources-and-updates strong,
.pickup-shell .resource-article > #sources-and-updates a { color: var(--green-dark); }

.pickup-diagram { max-width: 42rem; margin: 1.2rem auto; padding: 1rem; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--paper); break-inside: avoid; }
.pickup-diagram-pair .pickup-diagram { margin-block: 0 1rem; }
.pickup-diagram-pair .pickup-diagram:last-child { margin-bottom: 0; }
.pickup-diagram__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.7rem; margin-bottom: 0.75rem; }
.pickup-diagram h4 { margin: 0; color: var(--green-dark); font-size: 1rem; line-height: 1.35; }
.pickup-diagram__toggle { flex: none; padding: 0.35rem 0.6rem; border: 1px solid var(--green); border-radius: 0.4rem; color: var(--green-dark); background: white; font-size: 0.8rem; cursor: pointer; }
.pickup-diagram__toggle:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.pickup-diagram svg { display: block; width: 100%; height: auto; }
.pickup-diagram svg text { font: 24px ui-sans-serif, system-ui, sans-serif; fill: var(--ink); }
.pickup-diagram svg .diagram-small-label { font-size: 24px; }
.pickup-diagram__legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0.7rem 0; font-size: 0.82rem; line-height: 1.4; }
.pickup-diagram__legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.diagram-key { display: inline-block; width: 1rem; height: 0.75rem; border: 1px solid #715025; border-radius: 0.15rem; }
.diagram-key--car { background: #9b491e; }
.diagram-key--risk { background: repeating-linear-gradient(125deg, #fff3d3 0 3px, #b66a09 3px 5px); }
.pickup-diagram figcaption { color: var(--ink); font-size: 0.9rem; line-height: 1.5; }
.pickup-diagram figcaption small { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.8rem; }
.diagram-traffic { animation: pickup-traffic 8s linear infinite; }
.diagram-line-traffic { animation: pickup-line-traffic 8s linear infinite; }
.diagram-line-bike { animation: pickup-line-bike 8s linear infinite; }
.diagram-driver-approach { animation: pickup-driver 8s linear infinite; }
.diagram-bike-detour { animation: pickup-bike 8s linear infinite; }
.diagram-kid-crossing { animation: pickup-kid 8s linear infinite; }
.diagram-shortcut-traffic { animation: pickup-shortcut-traffic 8s linear infinite; }
.diagram-shortcut-kid { animation: pickup-shortcut-kid 8s linear infinite; }
.diagram-reversing-car { animation: pickup-reverse 8s ease-in-out infinite; }
.diagram-behind-car { animation: pickup-behind-car 8s linear infinite; }
.pickup-diagram:not([data-animated="true"]) .diagram-motion { animation: none; }
.pickup-diagram[data-paused="true"] .diagram-motion { animation-play-state: paused; }
@keyframes pickup-traffic { 0%, 12% { transform: translateX(0); } 40% { transform: translateX(-70px); } 57% { transform: translateX(-137px); } 85%, 100% { transform: translateX(-260px); } }
@keyframes pickup-line-traffic { 0%, 25% { transform: translateX(80px); } 28% { transform: translateX(60px); } 57%, 100% { transform: translateX(-197px); } }
@keyframes pickup-line-bike { 0%, 12% { transform: translate(0, 0); } 40% { transform: translate(-130px, 0); } 57%, 100% { transform: translate(-190px, 48px); } }
@keyframes pickup-driver { 0% { transform: translateX(0); } 55% { transform: translateX(-170px); animation-timing-function: cubic-bezier(.15, .7, .3, 1); } 70%, 100% { transform: translateX(-210px); } }
@keyframes pickup-bike { 0%, 12% { transform: translate(0, 0); } 40% { transform: translate(-130px, 0); } 57% { transform: translate(-190px, 48px); } 85%, 100% { transform: translate(-315px, 48px); } }
@keyframes pickup-kid { 0%, 12% { transform: translateY(0); } 55% { transform: translateY(80px); } 68%, 100% { transform: translateY(89px); } }
@keyframes pickup-shortcut-traffic { 0%, 12% { transform: translateX(0); } 65%, 100% { transform: translateX(-150px); } }
@keyframes pickup-shortcut-kid { 0%, 12% { transform: translateY(0); } 65%, 100% { transform: translateY(-100px); } }
@keyframes pickup-reverse { 0%, 30% { transform: translateY(0); } 65%, 100% { transform: translateY(40px); } }
@keyframes pickup-behind-car { 0%, 12% { transform: translateX(0); } 65%, 100% { transform: translateX(100px); } }
@media (max-width: 520px) {
  .pickup-diagram { padding: 0.65rem; }
  .pickup-diagram__heading { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .pickup-diagram .diagram-motion { animation: none; }
  .pickup-diagram__toggle { display: none; }
}

@media screen and (min-width: 900px) {
  .pickup-diagram, .pickup-diagram-pair { float: right; clear: right; width: 46%; margin: 0 0 1.2rem 1.5rem; }
  .pickup-diagram-pair .pickup-diagram { float: none; width: auto; margin: 0 0 1rem; }
  .pickup-diagram__heading { flex-direction: column; }
}

@media print {
  @page { size: Letter portrait; margin: 0.6in; }
  html, body { width: auto; }
  .pickup-shell { width: auto; padding: 0; }
  .pickup-shell .resource-article { overflow: visible !important; border: 0; box-shadow: none; }
  .pickup-shell .resource-article > section { background: white !important; color: #173129 !important; }
  .pickup-shell .resource-article h1, .pickup-shell .resource-article h2,
  .pickup-shell .resource-article strong, .pickup-shell .resource-article a { color: #173129 !important; }
  .pickup-shell h1, .pickup-shell h2, .pickup-shell h3 { break-after: avoid; }
  .pickup-shell p, .pickup-shell li { orphans: 3; widows: 3; }
  .pickup-shell .program-mark { display: none; }
  .pickup-shell .guide-editorial-section { display: block; }
  .pickup-shell .guide-editorial-media { max-width: 3in; margin: 1rem auto; }
  .pickup-diagram .diagram-motion { animation: none; }
  .pickup-diagram__toggle { display: none; }
}

/* Council handout photos wrap beside the same sections as the printed copy. */
.pickup-shell [data-resource-id="school-pickup-dropoff"] > .guide-editorial-section {
  display: flow-root;
}
.pickup-shell [data-resource-id="school-pickup-dropoff"] .guide-editorial-copy {
  display: contents;
}
.pickup-shell [data-resource-id="school-pickup-dropoff"] .guide-editorial-media {
  float: right;
  width: 32%;
  margin: 0 0 1rem 1.5rem;
}
@media (max-width: 720px) {
  .pickup-shell [data-resource-id="school-pickup-dropoff"] .guide-editorial-media {
    float: none;
    width: 100%;
    margin: 1rem 0;
  }
}

/* Use the same guide-and-resource layout as the parent organizer guide. */
.council-shell { max-width: 82rem; }
