/* Services — the directory that lights. */

.eve-listing{padding-block:var(--breath)}
.eve-listing__grid{align-items:start}
.eve-listing__head{grid-column:1/-1;min-width:0}
.eve-listing__title{font-size:clamp(1.45rem,6.3vw,2.9rem);line-height:.96;letter-spacing:-.025em;white-space:nowrap}
.eve-listing__text{min-width:0}
.eve-listing__sub{margin:0 0 1.4rem;font-family:'Fira Sans Extra Condensed',sans-serif;font-weight:700;
  font-size:var(--reading);line-height:1.25}

/* The arch: a round head over the list. On a desk it is tall and narrow, held
   sticky so it rides down beside every row; on a phone it is a wide short crop. */
.eve-listing__arch{width:100%;max-width:100%;margin:0;aspect-ratio:auto;
  height:clamp(12rem,36vh,20rem);border-radius:50% 50% 0 0/50% 50% 0 0}
.eve-listing__arch img{object-position:center 35%}

/* Sorters wrap two or three to a row rather than running off the edge. */
.eve-sorters{display:flex;flex-flow:row wrap;align-items:center;justify-content:flex-start;
  gap:.45rem;margin:0 0 1.8rem;padding:0}
.eve-sorters:empty{display:none}
.eve-sorters button{flex:0 1 auto;width:auto;min-width:0;max-width:100%;min-height:44px;
  margin:0;padding:.35rem .8rem;border:2px solid var(--signal);border-radius:999px;
  background:transparent;color:var(--type);font-size:1rem;line-height:1.15;text-align:center;
  white-space:normal;cursor:pointer}
.eve-sorters button[aria-pressed="true"]{background:var(--signal);color:var(--page)}
@media (min-width:48em){
  .eve-sorters{gap:.6rem}
  .eve-sorters button{min-height:48px;padding:.45rem 1.2rem;font-size:var(--reading)}
}

/* No rules: the numeral opens each row and carries the alignment. */
.eve-directory__list{list-style:none;margin:0;padding:0;counter-reset:eve-visit}
.eve-directory__row{counter-increment:eve-visit;margin:0;padding:1rem 0;
  display:grid;gap:.5rem 1rem;align-items:center}
.eve-directory__row[hidden]{display:none}
.eve-directory__link{display:grid;grid-template-columns:auto 1fr;column-gap:1rem;align-items:baseline;
  min-height:48px;text-decoration:none;color:var(--type)}
.eve-directory__link::before{content:counter(eve-visit,decimal-leading-zero);grid-row:span 2;
  font-family:'Archivo Black',Impact,sans-serif;color:var(--signal);font-size:calc(var(--reading)*1.2)}
.eve-directory__name{font-weight:700;font-size:var(--reading);line-height:1.2}
.eve-directory__link:hover .eve-directory__name,.eve-directory__link:focus-visible .eve-directory__name{
  text-decoration:underline;text-underline-offset:.2em}
.eve-directory__line{font-weight:400;font-size:var(--reading);line-height:1.35;max-width:48ch}
.eve-directory__tag{justify-self:start;margin-left:3.4rem;padding:.2rem .9rem;border-radius:999px;
  background:var(--type);color:var(--page);font-size:1rem;font-weight:400;line-height:1.3}

.eve-listing__evidence{margin:1.4rem 0 1rem;font-weight:700;max-width:46ch}
.eve-listing__act{margin:0 0 1rem}
.eve-listing__pointers{max-width:46ch;margin:0}

/* Phone: the words open the page, the arch follows them, the list comes last. */
@media (max-width:47.99em){
  .eve-listing{padding-block:clamp(1.2rem,3.2vh,2.4rem) var(--breath)}
  .eve-listing__grid{gap:1.4rem}
}

@media (min-width:48em){
  .eve-listing{min-height:calc(100vh - 5rem);display:grid;align-items:center}
  .eve-listing__grid{grid-template-columns:repeat(5,1fr)}
  .eve-listing__title{font-size:clamp(2.4rem,6.6vw,5.6rem);line-height:.9;white-space:nowrap}
  .eve-listing__arch{grid-column:1/span 2;align-self:start;justify-self:center;
    position:sticky;top:clamp(1rem,5vh,2.5rem);
    width:min(100%,26rem);max-width:none;margin:0;aspect-ratio:auto;
    height:clamp(22rem,62vh,38rem);border-radius:50% 50% 0 0/46% 46% 0 0}
  .eve-listing__arch img{object-position:left center}
  .eve-listing__text{grid-column:3/span 3}
  .eve-directory__row{grid-template-columns:1fr auto}
  .eve-directory__tag{justify-self:end;margin-left:0}
}
