/* Purposeful interactions, using the shared readable typography. */
[hidden] { display: none !important; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-left: auto; }
.footer-links a { font-size: 16px; font-weight: 650; line-height: 1.6; color: var(--green); overflow-wrap: anywhere; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.cta-contact a { text-decoration: underline; text-underline-offset: 5px; font-weight: 700; }
@media (max-width: 800px) { .footer-links { width: 100%; margin-left: 0; } }
.reading-progress { position: absolute; height: 3px; inset: auto 0 -1px; background: #82a96e; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.header #navigation a:not(.button)[aria-current="location"] { color: var(--green); text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.back-to-top { position: fixed; z-index: 18; bottom: 24px; right: 24px; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #ffffff65; border-radius: 50%; background: var(--green); color: white; box-shadow: 0 5px 22px #153b3020; font-size: 26px; line-height: 1; }
.back-to-top:hover { background: var(--deep); }
.explorer-instruction { font-size: var(--text-detail); color: var(--muted); margin: 0 0 15px; }
.hero-halo { inset: -25px 10px 20px 30px; transform: rotate(6deg); }
.journey-stage-controls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; margin-bottom: 26px; }
.journey-stage-button { position: relative; background: #f6f8f1; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 16px; text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.journey-stage-button .step-photo { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.journey-stage-button > span { display: flex; gap: 10px; align-items: baseline; padding: 14px 10px 0; }
.journey-stage-button small { color: #738c65; font-size: 14px; font-weight: 650; }
.journey-stage-button strong { font-size: 18px; line-height: 1.5; font-weight: 700; }
.journey-stage-button[aria-selected="true"] { border: 2px solid var(--green); padding: 5px 5px 15px; background: #edf3e5; }
.journey-stage-button[aria-selected="true"] strong { color: var(--green); }
.journey-stage-button:hover { border-color: var(--green); transform: translateY(-3px); }
.journey-player { display: grid; grid-template-columns: 1fr 1.05fr; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: #f7f8f2; }
.journey-player .care-scene { border-radius: 0; height: 100%; min-height: 440px; }
.journey-player .care-scene #stage-image { width: 100%; height: 100%; aspect-ratio: auto; min-height: 440px; object-fit: cover; }
.journey-player .care-scene #stage-image-caption { font-size: 16px; max-width: none; }
.journey-player .care-scene figcaption { flex-wrap: wrap; padding: 50px 24px 20px; }
.journey-player .care-scene .concept-label { font-size: 12px; }
.journey-feature-copy { padding: 35px 38px; }
.journey-feature-copy .stage-display { min-height: 0; }
.journey-feature-copy .stage-display .eyebrow { font-size: 13px; color: var(--green); margin-bottom: 17px; }
.journey-feature-copy .stage-display h3 { font-size: 34px; line-height: 1.25; font-weight: 700; margin-bottom: 20px; }
.journey-feature-copy .stage-display > p:not(.eyebrow) { color: var(--muted); font-size: var(--text-body); line-height: 1.8; }
.journey-feature-copy #stage-tags { flex-wrap: wrap; margin-top: 23px; }
.journey-feature-copy #stage-tags span { font-size: 14px; border: 1px solid #cedbc5; background: #edf2e7; color: var(--green); padding: 7px 11px; }
.journey-feature-copy .text-link { margin-top: 25px; }
.journey-navigation { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 28px; }
.journey-navigation button { display: inline-flex; align-items: center; gap: 9px; background: white; border: 1px solid #cfd9c9; border-radius: 6px; padding: 10px 14px; font-size: 15px; font-weight: 650; color: var(--green); }
.journey-navigation button:hover:enabled { background: #eaf1e4; }
.journey-position { font-size: 14px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.record-panel .journey-navigation { border-color: #ffffff30; }
.record-panel .journey-navigation button { background: #ffffff0e; border-color: #ffffff40; color: white; }
.record-panel .journey-navigation button:hover:enabled { background: #ffffff20; }
.record-panel .journey-position { color: #e0eadc; }
.benefit-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.benefit-tab, .guide-choice { background: white; border: 1px solid #cedaca; color: var(--green); border-radius: 7px; padding: 14px 20px; font-size: 17px; line-height: 1.5; font-weight: 650; transition: background .2s, border-color .2s; }
.benefit-tab[aria-selected="true"], .guide-choice[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.benefit-tab:hover, .guide-choice:hover { border-color: var(--green); }
.municipal-section .municipal-grid[data-enhanced] { grid-template-columns: minmax(0, 1fr); }
.municipal-section .municipal-grid[data-enhanced] article { grid-template-columns: 1fr 1.1fr; border: 1px solid #dfe6dc; padding: 0; }
.municipal-grid[data-enhanced] .benefit-photo { min-height: 420px; }
.municipal-grid[data-enhanced] .benefit-copy { padding: 36px 40px; }
.municipal-grid[data-enhanced] .benefit-copy h3 { font-size: 34px; line-height: 1.25; margin-bottom: 20px; }
.municipal-grid[data-enhanced] .benefit-copy p { max-width: 540px; }
.municipal-grid[data-enhanced] .benefit-photo figcaption { font-size: 12px; padding: 40px 20px 17px; }
.benefit-flow { margin: 25px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.benefit-flow .eyebrow { font-size: 12px; margin: 0 0 16px; }
.benefit-flow ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 9px 18px; }
.benefit-flow li { font-size: 16px; color: var(--green); line-height: 1.7; }
.benefit-flow li:not(:last-child)::after { content: '→'; margin-left: 18px; color: #759265; }
.checklist-meter { height: 6px; border-radius: 10px; background: #e1e8da; overflow: hidden; margin: 18px 0 8px; }
.checklist-meter-fill { display: block; height: 100%; background: var(--green); width: var(--checklist-completion, 0%); border-radius: inherit; transition: width .3s ease; }
.action:has(input:checked) .action-copy strong { color: var(--green); }
.action:has(input:checked) .action-photo { box-shadow: 0 0 0 3px #9eb88b; }
.guide-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 28px; }
.guide-choice { text-align: left; padding: 13px 17px; font-size: 16px; }
.response-steps .guide-title { font-size: 27px; line-height: 1.3; margin: 0 0 25px; color: var(--green); }
.guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 25px; }
.guide-status { font-size: 15px; color: var(--green); line-height: 1.7; margin: 16px 0 0; min-height: 26px; }
.response-layout { align-items: start; }
.response-photo { position: sticky; top: 128px; }
.response-photo img { height: 510px; }
.response-steps .reporting-note { margin-top: 22px; }

@media (max-width: 1100px) {
  .journey-stage-controls { gap: 11px; }
  .journey-stage-button strong { font-size: 16px; }
  .journey-stage-button > span { display: block; padding-inline: 8px; }
  .journey-stage-button small { display: block; margin-bottom: 4px; }
  .journey-feature-copy { padding: 28px; }
  .journey-feature-copy .stage-display h3 { font-size: 30px; }
  .journey-navigation { gap: 10px; }
  .journey-navigation button { padding: 10px; }
  .municipal-grid[data-enhanced] .benefit-copy { padding: 30px; }
  .response-layout { grid-template-columns: 1fr 1.25fr; }
}
@media (max-width: 900px) {
  .hero-halo { inset: -15px 18px 30px; transform: rotate(4deg); }
  .journey-player { grid-template-columns: 1fr; }
  .journey-player .care-scene, .journey-player .care-scene #stage-image { height: 360px; min-height: 0; }
  .journey-stage-button .step-photo { height: 85px; }
  .journey-feature-copy { padding: 32px; }
  .municipal-section .municipal-grid[data-enhanced] article { grid-template-columns: 1fr; }
  .municipal-grid[data-enhanced] .benefit-photo { min-height: 330px; }
  .response-layout { grid-template-columns: 1fr; gap: 30px; }
  .response-photo { position: relative; top: auto; }
  .response-photo img { height: 380px; }
}
@media (max-width: 620px) {
  .back-to-top { width: 43px; height: 43px; right: 16px; bottom: 16px; }
  .journey-stage-controls { display: flex; overflow-x: auto; padding: 3px 3px 13px; gap: 11px; scroll-snap-type: x mandatory; }
  .journey-stage-button { flex: 0 0 148px; scroll-snap-align: start; }
  .journey-stage-button .step-photo { height: 85px; }
  .journey-stage-button strong { font-size: 16px; }
  .journey-player .care-scene, .journey-player .care-scene #stage-image { height: 250px; }
  .journey-player .care-scene #stage-image-caption { font-size: 14px; }
  .journey-feature-copy { padding: 25px 22px; }
  .journey-feature-copy .stage-display h3 { font-size: 29px; }
  .journey-feature-copy .stage-display .eyebrow { font-size: 12px; }
  .journey-navigation { flex-wrap: wrap; gap: 12px; }
  .journey-position { order: -1; width: 100%; text-align: center; }
  .journey-navigation button { font-size: 15px; padding: 10px 12px; }
  .benefit-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .benefit-tab { font-size: 15px; padding: 13px 12px; text-align: left; }
  .municipal-grid[data-enhanced] .benefit-copy { padding: 25px 23px; }
  .municipal-grid[data-enhanced] .benefit-copy h3 { font-size: 29px; }
  .municipal-grid[data-enhanced] .benefit-photo { min-height: 250px; }
  .benefit-flow ol { flex-direction: column; gap: 8px; }
  .benefit-flow li:not(:last-child)::after { content: '↓'; margin-left: 12px; }
  .guide-choice { font-size: 15px; padding: 12px 13px; }
  .guide-actions { align-items: start; flex-direction: column; }
  .response-steps .guide-title { font-size: 26px; }
  .response-photo img { height: 290px; }
  .guide-status { font-size: 15px; }
  .record-panel .journey-navigation button { font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
  .reveal.in-view { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .checklist-meter-fill, .journey-stage-button, .benefit-tab, .guide-choice { transition: none; }
}
