/* ===========================================================================
   Shield the Joyous — stylesheet
   Palette and typography follow The Episcopal Church Visual Identity Guide
   (April 2018). Layout owes a debt to Trinity Church Wall Street.
   Mobile first: every rule below is the phone rule until a media query says
   otherwise.
   =========================================================================== */

:root {
  /* --- TEC palette ------------------------------------------------------ */
  --purple:      #330072;   /* PMS 2685 C — Shield the Joyous */
  --blue:        #407EC9;   /* PMS 660 C  — the Diocese */
  --gold:        #F1B434;   /* PMS 143 C  — parish worship */
  --red:         #BF0D3E;   /* PMS 193 C  — used only for cancellations */
  --grey:        #888B8D;   /* PMS Cool Grey 8 */

  /* Darkened companions, for text that must clear contrast on cream.
     The bright values above stay on rails, chips and rules. */
  --blue-ink:    #2A5D96;
  --gold-ink:    #7A5713;

  /* --- surface ---------------------------------------------------------- */
  --ink:         #262626;   /* 85% black — never pure black, per the guide */
  --ink-soft:    #55565A;
  --cream:       #FBF9F5;
  --nav-h:       2.75rem;   /* height of the sticky bar; offsets every jump */
  --card:        #FFFFFF;
  --rule:        #E5E0D6;

  /* --- the three category colours, addressed generically ---------------- */
  --c-stj:       var(--purple);
  --c-stj-ink:   var(--purple);
  --c-stj-wash:  #F2EEF8;

  --c-diocese:      var(--blue);
  --c-diocese-ink:  var(--blue-ink);
  --c-diocese-wash: #ECF3FB;

  --c-parish:      var(--gold);
  --c-parish-ink:  var(--gold-ink);
  --c-parish-wash: #FCF4E2;

  /* --- type ------------------------------------------------------------- */
  --serif: "EB Garamond", Garamond, "Adobe Garamond Pro", Georgia, serif;
  --sans:  "Cabin", "Gill Sans", "Gill Sans MT", "Lato", system-ui, sans-serif;

  --on-accent:   #FFFFFF;
  --on-gold:     #2A1F04;   /* ink for text sitting on the gold */
  /* Both lockups are print marks drawn for a white ground, and the identity
     guide forbids altering them, so they sit on a white plaque in BOTH themes
     rather than being recoloured or knocked out. One definition, on purpose. */
  --plaque:      #FFFFFF;
  --accent-solid: var(--c-stj);

  --cancel-wash: #FBE9EE;
  --cancel-ink:  var(--red);


  /* --- map, from Claude Design ------------------------------------------ */
  --map-ground:    #FFFFFF;
  --map-grid:      #EFE9DC;
  --map-road:      #C4A970;
  --map-road-case: #FFFFFF;
  --map-loop-fill: rgba(241, 180, 52, 0.06);
  --map-label:     #7A5713;
  --map-pin:       #F1B434;
  --map-pin-edge:  #B9832A;

  --measure: 46rem;
}

/* Dark palette, declared twice on purpose: once for the viewer who has made no
   choice (system default stamps nothing on :root, so only the media query
   separates light from dark), and once for the viewer who explicitly chose dark.
   Only tokens are redefined here -- no component is styled inside either block,
   so nothing can go missing in the unstamped state. Keep the two lists identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:            #EDEAE3;
    --ink-soft:       #B6B2AA;
    --cream:          #1A1720;
    --card:           #221E2B;
    --rule:           #38323F;
    --grey:           #9B9DA0;

    --c-stj:          #9B72E0;
    --c-stj-ink:      #C6A9F5;
    --c-stj-wash:     #2C2340;

    --c-diocese:      #5B94D6;
    --c-diocese-ink:  #8FC0F0;
    --c-diocese-wash: #1E2B3C;

    --c-parish:       #D9A22C;
    --c-parish-ink:   #E9C46A;
    --c-parish-wash:  #322913;

    /* On a dark ground the accents are lighter than the page, so a solid fill
       takes dark text and needs a lighter fill than the rails use. */
    --on-accent:      #1A1720;
    --accent-solid:   #C6A9F5;


    /* --- map, from Claude Design ---------------------------------------- */
    --map-ground:     #221E2B;
    --map-grid:       #332D3D;
    --map-road:       #8A7040;
    --map-road-case:  #221E2B;
    --map-loop-fill:  rgba(217, 162, 44, 0.08);
    --map-label:      #E9C46A;
    --map-pin:        #D9A22C;
    --map-pin-edge:   #8C6A20;

    --cancel-wash:    #3B1C25;
    --cancel-ink:     #F0899F;
  }
}

:root[data-theme="dark"] {
  --ink:            #EDEAE3;
  --ink-soft:       #B6B2AA;
  --cream:          #1A1720;
  --card:           #221E2B;
  --rule:           #38323F;
  --grey:           #9B9DA0;

  --c-stj:          #9B72E0;
  --c-stj-ink:      #C6A9F5;
  --c-stj-wash:     #2C2340;

  --c-diocese:      #5B94D6;
  --c-diocese-ink:  #8FC0F0;
  --c-diocese-wash: #1E2B3C;

  --c-parish:       #D9A22C;
  --c-parish-ink:   #E9C46A;
  --c-parish-wash:  #322913;

  /* On a dark ground the accents are lighter than the page, so a solid fill
     takes dark text and needs a lighter fill than the rails use. */
  --on-accent:      #1A1720;
  --accent-solid:   #C6A9F5;


  /* --- map, from Claude Design ---------------------------------------- */
  --map-ground:     #221E2B;
  --map-grid:       #332D3D;
  --map-road:       #8A7040;
  --map-road-case:  #221E2B;
  --map-loop-fill:  rgba(217, 162, 44, 0.08);
  --map-label:      #E9C46A;
  --map-pin:        #D9A22C;
  --map-pin-edge:   #8C6A20;

  --cancel-wash:    #3B1C25;
  --cancel-ink:     #F0899F;
}

/* ===========================================================================
   base
   =========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;          /* leading always exceeds the type size */
  text-rendering: optimizeLegibility;
}

/* Left-aligned, ragged right. Never justified. */
p { margin: 0 0 1em; max-width: 38rem; }

a { color: var(--c-stj-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--c-diocese);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--card); color: var(--ink);
  padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* An eyebrow: all caps, tight size, wide letterspacing. Gill Sans territory. */
.eyebrow {
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0;
}

/* ===========================================================================
   masthead
   =========================================================================== */

.masthead {
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  padding-block: 1.75rem 1.5rem;
}

.masthead__name {
  font-family: var(--serif);
  font-size: 2.125rem;
  line-height: 1.1;
  font-weight: 600;
  color: var(--c-stj-ink);
  margin: 0;
  letter-spacing: -0.005em;
}

.masthead__rule {
  border: 0;
  border-top: 2px solid var(--c-stj);
  margin: .85rem 0 .75rem;
  max-width: 4.5rem;
}

.masthead__tagline {
  font-family: var(--sans);
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.navbar .wrap { height: 100%; }

.nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1.25rem;
  overflow-x: auto;              /* four links still fit a narrow phone */
  scrollbar-width: none;
  font-family: var(--sans);
  font-size: .875rem;
  letter-spacing: .03em;
  white-space: nowrap;
}
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.nav a:hover { border-bottom-color: var(--c-stj); color: var(--c-stj-ink); }

/* ===========================================================================
   hero
   =========================================================================== */

.hero { padding-block: 2.5rem 1rem; }

.hero__blurb {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 34rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .7rem 1.15rem;
  border-radius: 2px;
  border: 1px solid var(--c-stj);
  color: var(--c-stj-ink);
  background: transparent;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-solid); color: var(--on-accent); }
.btn--solid { background: var(--accent-solid); color: var(--on-accent); }
.btn--solid:hover { background: var(--c-stj-ink); color: var(--on-accent); }

.btn--sm {
  padding: .5rem .85rem;
  font-size: .75rem;
  border-color: var(--c-parish-ink);
  color: var(--c-parish-ink);
}
.btn--sm:hover { background: var(--c-parish-ink); color: var(--cream); }

/* ===========================================================================
   sections
   =========================================================================== */

.section { padding-block: 2.5rem; }
.section + .section { border-top: 1px solid var(--rule); }

.section__head { margin-bottom: 1.5rem; }

.section__title {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 600;
  margin: .35rem 0 0;
}

.section__rule {
  border: 0;
  border-top: 1.5px solid var(--c-stj);
  margin: .75rem 0 0;
}

.section__intro { margin-top: 1rem; color: var(--ink-soft); }

/* ===========================================================================
   filters
   =========================================================================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}

.chip {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .45rem .8rem;
  border-radius: 100px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
}
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }

.chip[aria-pressed="true"] { color: var(--on-accent); border-color: transparent; }
.chip[data-filter="all"][aria-pressed="true"]     { background: var(--ink); color: var(--cream); }
.chip[data-filter="stj"][aria-pressed="true"]     { background: var(--accent-solid); }
.chip[data-filter="diocese"][aria-pressed="true"] { background: var(--c-diocese-ink); }
.chip[data-filter="parish"][aria-pressed="true"]  { background: var(--c-parish-ink); }

.chip__dot {
  display: inline-block;
  width: .5rem; height: .5rem;
  border-radius: 50%;
  margin-right: .45rem;
  vertical-align: baseline;
}
.chip[data-filter="stj"] .chip__dot     { background: var(--c-stj); }
.chip[data-filter="diocese"] .chip__dot { background: var(--c-diocese); }
.chip[data-filter="parish"] .chip__dot  { background: var(--c-parish); }
.chip[aria-pressed="true"] .chip__dot   { background: var(--on-accent); }

/* ===========================================================================
   the calendar
   =========================================================================== */

.month { margin-bottom: 2.25rem; }
.month:last-child { margin-bottom: 0; }

.month__name {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: var(--nav-h);
  background: var(--cream);
  z-index: 2;
}

.cards { display: flex; flex-direction: column; gap: .9rem; }

/* A card is a vertical block with a colour rail down its leading edge.
   The rail is the whole colour system: purple ours, blue the Diocese,
   gold the parishes. */
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent, var(--grey));
  border-radius: 2px;
  padding: 1.1rem 1.15rem 1.15rem;
}

.card--stj     { --accent: var(--c-stj);     --accent-ink: var(--c-stj-ink);     --accent-wash: var(--c-stj-wash); }
.card--diocese { --accent: var(--c-diocese); --accent-ink: var(--c-diocese-ink); --accent-wash: var(--c-diocese-wash); }
.card--parish  { --accent: var(--c-parish);  --accent-ink: var(--c-parish-ink);  --accent-wash: var(--c-parish-wash); }

.card__tag {
  color: var(--accent-ink);
  margin-bottom: .55rem;
}

.card__when {
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .015em;
  color: var(--ink);
  margin: 0 0 .2rem;
}
.card__when .time { font-weight: 400; color: var(--ink-soft); }
.card__when .time::before { content: " · "; color: var(--rule); }

.card__title {
  font-family: var(--serif);
  font-size: 1.3125rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 .35rem;
  color: var(--ink);
}

.card__place {
  font-family: var(--sans);
  font-size: .8125rem;
  color: var(--ink-soft);
  margin: 0;
}

.card__note {
  margin: .65rem 0 0;
  font-size: .9875rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: none;
}

.card__note a { color: var(--accent-ink); text-underline-offset: 2px; }

.card__link {
  display: inline-block;
  margin-top: .75rem;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.card__link::after { content: " \2192"; }

/* status flags */
.flag {
  display: inline-block;
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .18rem .45rem;
  border-radius: 2px;
  margin-left: .5rem;
  vertical-align: 2px;
  white-space: nowrap;
}
.flag--tentative { background: var(--c-parish-wash); color: var(--c-parish-ink); }
.flag--cancelled { background: var(--cancel-wash); color: var(--cancel-ink); }
.flag--full      { background: var(--c-diocese-wash); color: var(--c-diocese-ink); }
.flag--next      { background: var(--c-stj-wash); color: var(--c-stj-ink); }


.empty {
  font-style: italic;
  color: var(--ink-soft);
  padding: 1.5rem 0;
}

/* ===========================================================================
   parish worship
   =========================================================================== */

.parishes { display: flex; flex-direction: column; gap: .9rem; }

.parish__name {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .1rem;
}
.parish__name a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.parish__name a:hover { border-bottom-color: var(--c-parish); }

.parish__where {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 .7rem;
}

.parish__home {
  font-family: var(--sans);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-stj-ink);
  background: var(--c-stj-wash);
  padding: .15rem .4rem;
  border-radius: 2px;
  margin-left: .4rem;
  white-space: nowrap;
}

.services { list-style: none; margin: 0; padding: 0; }

.services li {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .5rem;
  padding: .38rem 0;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
}
.services li:first-child { border-top: 0; padding-top: 0; }

.services .day {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-parish-ink);
  flex: 0 0 100%;
}
.services .what { color: var(--ink); }
.services .at   { color: var(--ink-soft); margin-left: auto; white-space: nowrap; }

/* ===========================================================================
   newsletter + instagram
   =========================================================================== */

.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--c-stj);
  border-radius: 2px;
  padding: 1.5rem 1.25rem;
}

.panel--instagram { border-left-color: var(--c-diocese); }

.embed-frame {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--card);
  min-height: 320px;
  margin-top: 1rem;
}

.pending {
  font-family: var(--sans);
  font-size: .875rem;
  color: var(--ink-soft);
  background: var(--c-parish-wash);
  border-radius: 2px;
  padding: .9rem 1rem;
  margin-top: 1rem;
}

/* ===========================================================================
   footer
   =========================================================================== */

.footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem 3rem;
  font-family: var(--sans);
  font-size: .8125rem;
  color: var(--ink-soft);
}
.footer p { max-width: 34rem; }
.footer a { color: var(--ink-soft); }

.legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.legend span { display: inline-flex; align-items: center; gap: .45rem; }
.legend i {
  width: 1.25rem; height: 3px; border-radius: 2px;
  display: inline-block; font-style: normal;
}
.legend .l-stj     { background: var(--c-stj); }
.legend .l-diocese { background: var(--c-diocese); }
.legend .l-parish  { background: var(--c-parish); }


/* ===========================================================================
   weekday worship cards in the calendar
   These repeat every week, so they are set tight and quiet: no headline, just
   the day and a list of times. The eye should skip them unless it wants them.
   =========================================================================== */

.card--worship { padding: .85rem 1rem .9rem; }

.ws { list-style: none; margin: 0; padding: 0; }

.ws li {
  display: flex;
  gap: .65rem;
  align-items: baseline;
  padding: .22rem 0;
  font-size: .875rem;
  line-height: 1.4;
}

.ws__at {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-parish-ink);
  flex: 0 0 5.25rem;
  font-variant-numeric: tabular-nums;
}
.ws__what { color: var(--ink-soft); }
.ws__what strong { color: var(--ink); font-weight: 600; }

/* ===========================================================================
   the map
   =========================================================================== */

.map { margin-bottom: 1.5rem; }

/* A thin white mount around the drawing, the way a map sits in a book. */
.map__frame {
  background: var(--map-ground);
  border: 1px solid var(--rule);
  padding: 6px;
}

.map__svg { width: 100%; height: auto; display: block; }

/* Parish names are unreadable once the map is phone-width, so they go and the
   numbered pins carry it. Their positions are authored, not measured, so
   display:none costs nothing here. */
.map__names { display: none; }
@media (min-width: 34rem) {
  .map__names { display: block; }
}

.map__caption {
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--ink-soft);
  margin: .7rem 0 0;
  max-width: none;
}

/* the number badge that ties a parish card back to its pin */
.pin-no {
  display: inline-grid;
  place-items: center;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--c-parish);
  color: var(--on-gold);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-right: .5rem;
  vertical-align: -.2rem;
}

.parish__weekday {
  font-family: var(--sans);
  font-size: .8125rem;
  color: var(--ink-soft);
  margin: .7rem 0 0;
  padding-top: .6rem;
  border-top: 1px solid var(--rule);
  max-width: none;
}

.parish__address {
  font-family: var(--sans);
  font-size: .8125rem;
  color: var(--ink-soft);
  margin: .7rem 0 .6rem;
  max-width: none;
}


/* ===========================================================================
   Instagram
   =========================================================================== */

.ig__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
}

.ig__post {
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--plaque);
}

.ig__more { margin: 1.25rem 0 0; }

/* ===========================================================================
   footer lockups
   =========================================================================== */

.lockups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1.75rem;
}

.lockup {
  display: block;
  background: var(--plaque);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .8rem 1rem;
  line-height: 0;
  transition: border-color .15s ease;
}
.lockup:hover { border-color: var(--c-stj); }

.lockup img { display: block; width: auto; }

/* Sized for optical balance, not equal height: the Episcopal Church lockup is a
   long thin wordmark, the diocesan one a squarer shield. */
.lockup--tec img { height: 30px; }
.lockup--dso img { height: 46px; }

/* ===========================================================================
   wider screens — the column simply gets more air, and cards stay vertical
   =========================================================================== */

@media (min-width: 40rem) {
  body { font-size: 1.09375rem; }
  .masthead { padding-block: 2.5rem 2rem; }
  .masthead__name { font-size: 2.75rem; }
  .hero { padding-block: 3.25rem 1.25rem; }
  .hero__blurb { font-size: 1.375rem; }
  .section { padding-block: 3.25rem; }
  .section__title { font-size: 2.125rem; }
  .card { padding: 1.35rem 1.5rem 1.4rem; }
  .card__title { font-size: 1.4375rem; }
  .panel { padding: 2rem 1.75rem; }
  .services .day { flex: 0 0 9.5rem; }
  .ig__grid { grid-template-columns: repeat(3, 1fr); gap: .85rem; }
  .ig__post { min-height: 540px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .navbar, .nav, .filters, .hero__actions, .embed-frame { display: none; }
  body { background: #fff; }
  .card { break-inside: avoid; }
}


/* ===========================================================================
   Jumping from a worship card or a map pin down to the parish

   Both the generated worship rows in the calendar and the numbered pins on the
   map are links to `#parish-N`, where N is the parish's position in PARISHES --
   the same number the pin shows. The scroll offset has to clear the sticky bar,
   and the target flashes briefly so it is obvious where you landed.
   =========================================================================== */

html { scroll-behavior: smooth; }

/* everything that can be jumped to clears the sticky bar */
:target,
[id="calendar-section"], [id="worship"], [id="newsletter"], [id="instagram"] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.ws li > .ws__link {
  display: flex;
  flex: 1 1 auto;
  gap: .65rem;
  align-items: baseline;
  color: inherit;
  text-decoration: none;
  border-radius: 3px;
  padding: .1rem .25rem;
  margin: -.1rem -.25rem;
}
.ws li > .ws__link:hover,
.ws li > .ws__link:focus-visible {
  background: var(--c-parish-wash);
  color: var(--gold-ink);
}
.ws li > .ws__link:hover .ws__what strong { text-decoration: underline; }

.map__pin { cursor: pointer; }
.map__pin:hover circle { filter: brightness(1.15); }

/* the parish you landed on, called out for a couple of seconds */
.card--parish[id^="parish-"] { outline: none; }
.card--parish[id^="parish-"]:target { animation: parish-landed 2.6s ease-out 1; }

@keyframes parish-landed {
  0%, 55% { background: var(--c-parish-wash); }
  100%    { background: var(--card); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card--parish[id^="parish-"]:target { animation: none; background: var(--c-parish-wash); }
}
