/* Carried from the deployed Lawyer's calendar.css: its tokens named --la-, its data- states as is- classes. */
/*
 * The court calendar, one frame at every level: where a page stands, the day,
 * its counts and the days around it, always in the same place; beneath it the
 * counties, a county's courts, or a court's hearings by hour; the map of the
 * counties the home shows; what a page says when a day is quiet or the
 * calendar is unavailable.
 *
 * Worn by procese.online. Every class is lawyer's, under its `la-` prefix,
 * and every colour a slot of `tokens.css`.
 */

.la-cal,
.la-cal-frame,
.la-places {
  background: var(--la-color-bg);
}

/* ---- breadcrumb -------------------------------------------------------- */

.la-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--la-space-2);
  align-items: center;
  padding: var(--la-space-3) var(--la-page-edge);
  color: var(--la-color-fg-muted);
  font-size: var(--la-text-xs);
  background: var(--la-color-bg-raised);
  border-block-end: 1px solid var(--la-color-border);
}

.la-crumb a {
  color: var(--la-color-fg-muted);
  text-decoration: none;
}

.la-crumb a:hover {
  color: var(--la-color-link);
}

.la-crumb-sep {
  color: var(--la-color-fg-subtle);
}

.la-crumb-here {
  color: var(--la-color-fg);
  font-weight: var(--la-weight-medium);
}

/* ---- the frame: where, the day, the counts ----------------------------- */

.la-place-head {
  position: relative;
  padding: var(--la-space-5) var(--la-page-edge) var(--la-space-4);
  background: var(--la-color-bg);
  border-block-end: 1px solid var(--la-color-border);
}

/* The saffron rule that says a page of the calendar starts here. */
.la-place-head::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--la-color-accent),
    var(--la-color-role-display-from, var(--la-color-accent-active))
  );
}

.la-place-sub {
  display: flex;
  flex-wrap: wrap;
  gap: var(--la-space-2);
  align-items: center;
  margin-block-end: var(--la-space-2);
  color: var(--la-color-fg-muted);
  font-size: var(--la-text-sm);
}

.la-place-when::first-letter {
  text-transform: uppercase;
}

.la-place-head h1 {
  max-width: 24ch;
  margin-block-end: var(--la-space-2);
  color: var(--la-color-fg);
  font-size: var(--la-text-3xl);
  font-weight: var(--la-weight-bold);
  line-height: var(--la-leading-tight);
  letter-spacing: -0.02em;
}

.la-place-lede {
  max-width: 60ch;
  color: var(--la-color-fg-muted);
  font-size: var(--la-text-sm);
  line-height: var(--la-leading-normal);
}

/* What kind of place it is, said in one word beside its name. */
.la-place-level {
  display: inline-block;
  padding: 2px var(--la-space-2);
  color: var(--la-color-fg-muted);
  font-size: var(--la-text-2xs);
  font-weight: var(--la-weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--la-color-bg-sunken);
  border: 1px solid var(--la-color-border-strong);
  border-radius: var(--la-radius-full);
}

.la-place-level.la-l-tribunal {
  color: var(--la-color-fg-muted);
}

.la-place-level.la-l-curte {
  color: var(--la-color-link);
  background: var(--la-color-accent-subtle);
  border-color: var(--la-color-role-accent-soft, var(--la-color-accent));
}

.la-place-level.la-l-jud {
  color: var(--la-color-success);
  background: var(--la-color-success-subtle);
  border-color: var(--la-color-success-subtle);
}

.la-place-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-block-start: var(--la-space-4);
  background: var(--la-color-bg-raised);
  border: 1px solid var(--la-color-border);
  border-radius: var(--la-radius-md);
}

.la-place-stat {
  min-width: 0;
  padding: var(--la-space-3) var(--la-space-4);
  border-inline-end: 1px solid var(--la-color-border);
}

.la-place-stat:last-child {
  border-inline-end: 0;
}

.la-place-stat .la-num {
  color: var(--la-color-link);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-xl);
  font-weight: var(--la-weight-medium);
  line-height: 1;
}

.la-place-stat .la-lbl {
  margin-block-start: var(--la-space-2);
  color: var(--la-color-fg-muted);
  font-size: var(--la-text-2xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* On a phone the counts stand as rows, each count with its label on one line, never a label broken thrice. */
@container la-page (max-width: 30rem) {
  .la-place-stats {
    grid-template-columns: 1fr;
  }

  .la-place-stat {
    display: flex;
    gap: var(--la-space-3);
    align-items: baseline;
    padding: var(--la-space-2) var(--la-space-3);
    border-inline-end: 0;
    border-block-end: 1px solid var(--la-color-border);
  }

  .la-place-stat:last-child {
    border-block-end: 0;
  }

  .la-place-stat .la-num {
    flex: none;
    min-width: 4.5ch;
    font-size: var(--la-text-lg);
  }

  .la-place-stat .la-lbl {
    margin-block-start: 0;
  }
}

/* ---- the days: seven around the day shown, a week back and on --------- */

.la-place-days {
  display: grid;
  grid-template-columns: 1.5rem repeat(7, minmax(0, 1fr)) 1.5rem;
  gap: 2px;
  align-items: stretch;
  padding: var(--la-space-3) var(--la-page-edge);
  overflow-x: auto;
  background: var(--la-color-bg-raised);
  border-block-end: 1px solid var(--la-color-border);
  scrollbar-width: none;
}

.la-place-days::-webkit-scrollbar {
  display: none;
}

/* What the number under each day counts, said once, over the seven. */
.la-place-days-say {
  grid-column: 1 / -1;
  margin: 0 0 var(--la-space-1);
  color: var(--la-color-fg-subtle);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-2xs);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.la-place-day {
  display: flex;
  flex-direction: column;
  gap: var(--la-space-05);
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: var(--la-tap-target);
  padding: var(--la-space-2) 2px;
  color: var(--la-color-fg);
  text-align: center;
  text-decoration: none;
  background: var(--la-color-bg-raised);
  border: 1px solid var(--la-color-border);
  border-radius: var(--la-radius-md);
}

.la-place-day:hover {
  border-color: var(--la-color-fg-subtle);
}

.la-place-day .la-dy {
  color: var(--la-color-fg-subtle);
  font-size: var(--la-text-2xs);
  font-weight: var(--la-weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.la-place-day .la-dn {
  color: var(--la-color-fg);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-base);
  font-weight: var(--la-weight-medium);
}

.la-place-day .la-dc {
  max-width: 100%;
  overflow: hidden;
  color: var(--la-color-fg-muted);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-2xs);
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: clip;
}

.la-place-day.is-weekend {
  background: var(--la-color-bg-sunken);
}

.la-place-day.is-weekend .la-dn {
  color: var(--la-color-fg-subtle);
}

/* The day shown wins over the weekend's dim, whichever order they land in. */
.la-place-day.is-active,
.la-place-day.is-active.is-weekend {
  color: var(--la-color-fg-on-accent);
  background: linear-gradient(180deg, var(--la-color-accent), var(--la-color-accent-hover));
  border-color: var(--la-color-accent-active);
  box-shadow: var(--la-shadow-sm);
}

.la-place-day.is-active .la-dy,
.la-place-day.is-active .la-dn,
.la-place-day.is-active .la-dc {
  color: var(--la-color-fg-on-accent);
}

.la-place-step {
  display: grid;
  place-items: center;
  min-height: var(--la-tap-target);
  color: var(--la-color-fg-muted);
  text-decoration: none;
  border: 1px solid var(--la-color-border);
  border-radius: var(--la-radius-md);
}

.la-place-step:hover {
  color: var(--la-color-link);
  border-color: var(--la-color-fg-subtle);
}

.la-place-step svg {
  width: var(--la-space-4);
  height: var(--la-space-4);
}

.la-place-step.is-off {
  color: var(--la-color-fg-subtle);
  border-color: transparent;
  opacity: 0.4;
}

/* On a phone a day's count, up to six signs, fits its seventh of the strip: never larger than the room allows. */
@container la-page (max-width: 30rem) {
  .la-place-day .la-dc {
    font-size: min(var(--la-text-2xs), 2.5cqi);
  }
}

/* ---- what a level holds: the counties, or a county's courts ------------ */

.la-places-sect {
  padding: var(--la-space-5) var(--la-page-edge) var(--la-space-2);
}

.la-places-sect h2 {
  margin-block-end: var(--la-space-1);
  color: var(--la-color-fg);
  font-size: var(--la-text-xl);
  font-weight: var(--la-weight-semi);
  line-height: var(--la-leading-tight);
  letter-spacing: -0.01em;
}

.la-places-meta {
  color: var(--la-color-fg-muted);
  font-size: var(--la-text-xs);
}

.la-places-list,
.la-places-grp {
  background: var(--la-color-bg);
}

.la-places-grp-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--la-space-3);
  align-items: baseline;
  padding: var(--la-space-4) var(--la-page-edge) var(--la-space-2);
  border-block-start: 1px solid var(--la-color-border);
}

.la-places-grp-head h3 {
  color: var(--la-color-fg-subtle);
  font-size: var(--la-text-sm);
  font-weight: var(--la-weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.la-places-grp-head .la-meta {
  color: var(--la-color-fg-muted);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-2xs);
  letter-spacing: 0.02em;
}

.la-places-row {
  display: grid;
  grid-template-columns: 1fr auto var(--la-space-4);
  gap: var(--la-space-3);
  align-items: center;
  min-height: var(--la-tap-target);
  padding: var(--la-space-2) var(--la-page-edge);
  color: inherit;
  text-decoration: none;
  border-block-start: 1px solid var(--la-color-border);
}

.la-places-row:hover {
  background: var(--la-color-accent-subtle);
}

.la-places-row .la-nm {
  min-width: 0;
  overflow: hidden;
  color: var(--la-color-fg);
  font-size: var(--la-text-sm);
  font-weight: var(--la-weight-medium);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.la-places-row .la-ct {
  min-width: var(--la-space-6);
  color: var(--la-color-link);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-sm);
  font-weight: var(--la-weight-medium);
  text-align: end;
}

.la-places-row.la-zero .la-ct,
.la-places-row .la-arr {
  color: var(--la-color-fg-subtle);
}

/* ---- the tail: the one door ------------------------------------------- */

.la-place-tail {
  padding: var(--la-space-5) var(--la-page-edge);
  background: var(--la-color-accent-subtle);
  border-block: 1px solid var(--la-color-role-accent-soft, var(--la-color-accent));
}

.la-place-tail-head {
  margin-block-end: var(--la-space-2);
  color: var(--la-color-fg);
  font-size: var(--la-text-lg);
  font-weight: var(--la-weight-semi);
}

.la-place-tail-body {
  max-width: 60ch;
  margin-block-end: var(--la-space-4);
  color: var(--la-color-fg-muted);
  font-size: var(--la-text-sm);
}

@container la-page (min-width: 48rem) {
  .la-place-head {
    padding: var(--la-space-7) var(--la-page-edge) var(--la-space-6);
    background:
      radial-gradient(56rem 20rem at 100% 0, var(--la-color-accent-subtle), transparent 70%), var(--la-color-bg);
  }

  .la-place-head::before {
    width: 4px;
    background: linear-gradient(
      180deg,
      var(--la-color-accent),
      var(--la-color-role-display-from, var(--la-color-accent-active)) 60%,
      transparent
    );
  }

  .la-place-head h1 {
    margin-block: var(--la-space-2) var(--la-space-3);
    font-size: var(--la-text-4xl);
    line-height: var(--la-leading-display);
    letter-spacing: -0.025em;
  }

  .la-place-lede {
    font-size: var(--la-text-base);
  }

  .la-place-stats {
    max-width: 45rem;
    margin-block-start: var(--la-space-5);
  }

  .la-place-stats .la-num {
    font-size: var(--la-text-3xl);
  }

  .la-place-days {
    grid-template-columns: 2.75rem repeat(7, 4.5rem) 2.75rem;
    gap: var(--la-space-2);
  }

  .la-place-day {
    padding: var(--la-space-2) var(--la-space-3);
  }

  .la-place-day .la-dc {
    letter-spacing: 0;
  }

  .la-places-sect {
    padding: var(--la-space-6) var(--la-page-edge) var(--la-space-2);
  }

  /* The groups side by side, each whole in its column: a county's courts by level. */
  .la-places-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    column-gap: var(--la-space-6);
    align-items: start;
    padding: 0 var(--la-page-edge) var(--la-space-6);
  }

  .la-places-grp {
    background: transparent;
  }

  /* A group of many places, the counties, spans the room and flows in columns of its own. */
  .la-places-grp.is-long {
    grid-column: 1 / -1;
    columns: 2;
    column-gap: var(--la-space-6);
  }

  .la-places-grp.is-long .la-places-grp-head {
    column-span: all;
  }

  .la-places-grp-head {
    padding: var(--la-space-4) 0 var(--la-space-2);
    break-after: avoid;
  }

  .la-places-row {
    padding: var(--la-space-2) 0;
    break-inside: avoid;
  }

  .la-place-tail {
    padding: var(--la-space-6) var(--la-page-edge);
  }

  .la-place-tail-head {
    font-size: var(--la-text-xl);
  }
}

@container la-page (min-width: 64rem) {
  .la-places-grp.is-long {
    columns: 3;
  }
}

/* A phone on its side: the head drawn short, so the days stand in the first window too. */
@media (orientation: landscape) and (max-height: 32rem) {
  .la-place-head {
    padding-block: var(--la-space-3);
  }

  .la-place-sub {
    margin-block-end: var(--la-space-1);
  }

  .la-place-head h1 {
    margin-block: 0;
    font-size: var(--la-text-2xl);
  }

  .la-place-lede {
    display: none;
  }

  .la-place-stats {
    margin-block-start: var(--la-space-2);
  }

  .la-place-stat {
    padding: var(--la-space-2) var(--la-space-3);
  }

  .la-place-stats .la-num {
    font-size: var(--la-text-lg);
  }

  .la-place-stat .la-lbl {
    margin-block-start: var(--la-space-1);
  }

  .la-place-days {
    padding-block: var(--la-space-2);
  }
}

/* ---- the hours of a day ------------------------------------------------ */

.la-ora-overview {
  display: flex;
  gap: var(--la-space-2);
  align-items: center;
  padding: var(--la-space-3) var(--la-page-edge);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--la-color-bg-raised);
  border-bottom: 1px solid var(--la-color-border);
  -webkit-overflow-scrolling: touch;
}
.la-ora-overview::-webkit-scrollbar {
  display: none;
}
.la-ora-overview .la-ora-lbl {
  font-family: var(--la-font-mono);
  font-size: var(--la-text-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--la-color-fg-muted);
  flex-shrink: 0;
  padding: 0 var(--la-space-1);
}
.la-ora-overview .la-ora-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--la-space-2);
  padding: var(--la-space-1) var(--la-space-3);
  border: 1px solid var(--la-color-border);
  border-radius: var(--la-radius-full);
  color: inherit;
  background: var(--la-color-bg-raised);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 80ms,
    border-color 80ms;
}
.la-ora-overview .la-ora-pill:hover {
  border-color: var(--la-color-role-accent-soft, var(--la-color-accent));
  background: var(--la-color-accent-subtle);
}
.la-ora-overview .la-ora-pill:active {
  background: var(--la-color-role-accent-soft, var(--la-color-accent));
}
.la-ora-overview .la-ora-h {
  font-family: var(--la-font-mono);
  font-size: var(--la-text-xs);
  font-weight: 600;
  /* The full foreground, not the link colour: the link on a raised ground is
     just under the contrast floor at this size. */
  color: var(--la-color-fg);
  letter-spacing: -0.01em;
}
.la-ora-overview .la-ora-c {
  font-family: var(--la-font-mono);
  font-size: var(--la-text-2xs);
  color: var(--la-color-fg-muted);
}
@container la-page (min-width: 48rem) {
  .la-ora-overview {
    flex-wrap: wrap;
    overflow-x: visible;
    padding: var(--la-space-4) var(--la-page-edge);
  }
}

/* ---- a court's hearings, by hour --------------------------------------- */

.la-dd-list {
  background: var(--la-color-bg);
  padding-bottom: var(--la-space-8);
}

.la-dd-grp {
  border-top: 1px solid var(--la-color-border);
  padding: var(--la-space-4) var(--la-page-edge) var(--la-space-1);
  /* An hour led to from its link lands below the sticky head, its heading shown. */
  scroll-margin-top: var(--la-space-8);
}

.la-dd-grp-head {
  display: flex;
  align-items: baseline;
  gap: var(--la-space-2);
  margin-bottom: var(--la-space-3);
}

.la-dd-grp-head h3 {
  font-family: var(--la-font-mono);
  font-size: var(--la-text-base);
  font-weight: 600;
  color: var(--la-color-fg);
  margin: 0;
  letter-spacing: -0.005em;
}

.la-dd-grp-head .la-dd-grp-time {
  margin-left: auto;
  font-family: var(--la-font-mono);
  font-size: var(--la-text-sm);
  color: var(--la-color-link);
  font-weight: 500;
}

/* A sitting: one panel at its hour, a card headed once by its name, its department and its count. */
.la-dd-sitting {
  min-width: 0;
  margin-bottom: var(--la-space-3);
  overflow: hidden;
  background: var(--la-color-bg-raised);
  border: 1px solid var(--la-color-border);
  border-radius: var(--la-radius-md);
}

.la-dd-sitting-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--la-space-1) var(--la-space-3);
  padding: var(--la-space-3) var(--la-space-4);
  background: var(--la-color-bg-sunken);
  border-bottom: 1px solid var(--la-color-border);
}

.la-dd-sitting-name {
  margin: 0;
  color: var(--la-color-fg);
  font-size: var(--la-text-sm);
  font-weight: var(--la-weight-semi);
}

.la-dd-sitting-meta {
  margin-inline-start: auto;
  color: var(--la-color-fg-muted);
  font-size: var(--la-text-xs);
}

.la-dd-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.la-dd-rows > li + li {
  border-top: 1px solid var(--la-color-border);
}

/* A case of the sitting: its number first, its chips at the end of the line, its old number and day filed beneath. */
.la-dd-row {
  display: grid;
  /* The number takes what it needs and is never squeezed by the chips, which take the rest and wrap among themselves. */
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-areas:
    'num chips'
    'meta meta';
  gap: 2px var(--la-space-3);
  align-items: center;
  min-height: var(--la-tap-target);
  padding: var(--la-space-2) var(--la-space-4);
  color: inherit;
  text-decoration: none;
}

a.la-dd-row {
  transition: background var(--la-duration-fast) var(--la-ease-out);
}

a.la-dd-row:hover {
  background: var(--la-color-accent-subtle);
}

a.la-dd-row:focus-visible {
  outline: 2px solid var(--la-color-accent);
  outline-offset: -2px;
}

/* The number a reader copies: whole, never cut or broken, in the face for exact strings. */
.la-dd-row .la-dd-num {
  grid-area: num;
  min-width: 0;
  color: var(--la-color-fg);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.la-dd-row-meta {
  grid-area: meta;
  color: var(--la-color-fg-muted);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-xs);
  overflow-wrap: anywhere;
}

.la-dd-row .la-dr-chips {
  grid-area: chips;
  justify-content: end;
}

.la-dr-chips {
  display: flex;
  gap: var(--la-space-1);
  flex-wrap: wrap;
}

.la-dr-chip {
  font-size: var(--la-text-2xs);
  font-weight: 500;
  padding: 2px var(--la-space-2);
  border-radius: var(--la-radius-full);
  border: 1px solid var(--la-color-border);
}

.la-dr-chip.la-cat.la-civil {
  background: var(--la-color-accent-subtle);
  /* The full foreground, not the link colour: the accent on its own subtle
     ground is under the contrast floor at this size, and a chip has to read. */
  color: var(--la-color-fg);
  border-color: var(--la-color-role-accent-soft, var(--la-color-accent));
}

.la-dr-chip.la-cat.la-penal {
  background: var(--la-color-danger-subtle);
  color: var(--la-color-danger);
  border-color: var(--la-color-danger-subtle);
}

.la-dr-chip.la-cat.la-familie {
  background: var(--la-color-warning-subtle);
  /* fg: amber-600 on amber-100 is 2.69:1 — under AA at any size. */
  color: var(--la-color-fg);
  border-color: var(--la-color-warning-subtle);
}

.la-dr-chip.la-cat.la-contencios {
  background: var(--la-color-success-subtle);
  color: var(--la-color-success);
  border-color: var(--la-color-success-subtle);
}

.la-dr-chip.la-cat.la-comercial {
  background: var(--la-color-bg-sunken);
  color: var(--la-color-fg-muted);
  border-color: var(--la-color-border-strong);
}

.la-dr-chip.la-stadiu {
  background: var(--la-color-bg-sunken);
  color: var(--la-color-fg-muted);
}

/* From a tablet up, each hour its own grid: the head across the row, its cards tiled beneath. */
@container la-page (min-width: 48rem) {
  .la-dd-list {
    padding-bottom: 0;
  }

  .la-dd-grp {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--la-space-3) var(--la-space-5);
    align-items: start;
    padding: var(--la-space-5) var(--la-page-edge) var(--la-space-4);
  }

  .la-dd-grp-head {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .la-dd-sitting {
    margin-bottom: 0;
  }
}

@container la-page (min-width: 69rem) {
  .la-dd-grp {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container la-page (min-width: 88rem) {
  .la-dd-grp {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---- empty block ------------------------------------------------------- */

.la-empty-block {
  padding: var(--la-space-5) var(--la-space-4);
  margin: var(--la-space-4) var(--la-page-edge);
  background: var(--la-color-bg-sunken);
  border: 1px solid var(--la-color-border);
  border-radius: var(--la-radius-md);
}

.la-empty-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--la-control-md);
  height: var(--la-control-md);
  margin-block-end: var(--la-space-3);
  color: var(--la-color-link);
  background: var(--la-color-accent-subtle);
  border: 1px solid var(--la-color-role-accent-soft, var(--la-color-accent));
  border-radius: var(--la-radius-md);
}

.la-empty-glyph svg {
  width: var(--la-icon-md);
  height: var(--la-icon-md);
}

.la-empty-head {
  margin-block-end: var(--la-space-2);
  color: var(--la-color-fg);
  font-size: var(--la-text-lg);
  font-weight: var(--la-weight-semi);
  line-height: var(--la-leading-tight);
  letter-spacing: -0.01em;
}

.la-empty-body {
  max-width: 50ch;
  margin-block-end: var(--la-space-4);
  color: var(--la-color-fg-muted);
  font-size: var(--la-text-sm);
  line-height: var(--la-leading-normal);
}

.la-empty-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--la-space-2);
  margin-block-end: var(--la-space-3);
}

.la-empty-row svg {
  width: var(--la-icon-sm);
  height: var(--la-icon-sm);
}

.la-empty-source {
  color: var(--la-color-fg-subtle);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-2xs);
  letter-spacing: 0.02em;
}

@container la-page (min-width: 48rem) {
  .la-empty-block {
    max-width: 34rem;
    padding: var(--la-space-6);
    margin: var(--la-space-6) auto;
  }

  .la-empty-head {
    font-size: var(--la-text-xl);
  }
}

/* ---- freshness stamp --------------------------------------------------- */

.la-freshness {
  display: flex;
  gap: var(--la-space-2);
  align-items: center;
  padding: var(--la-space-4) var(--la-page-edge) var(--la-space-5);
  color: var(--la-color-fg-subtle);
  font-size: var(--la-text-2xs);
}

.la-freshness-at {
  color: var(--la-color-fg-muted);
  font-family: var(--la-font-mono);
  font-weight: var(--la-weight-medium);
}

@container la-page (min-width: 48rem) {
  .la-freshness {
    padding: var(--la-space-4) var(--la-page-edge) var(--la-space-6);
  }
}

/* ---- calendar unavailable ---------------------------------------------- */

.la-closed {
  background: var(--la-color-bg);
}

.la-outage-advisory {
  padding: var(--la-space-2) var(--la-page-edge);
  color: var(--la-color-fg);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-2xs);
  font-weight: var(--la-weight-semi);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  background: var(--la-color-warning-subtle);
  border-block: 1px solid var(--la-color-warning);
}

.la-closed-card {
  max-width: 45rem;
  padding: var(--la-space-6) var(--la-space-5);
  margin: var(--la-space-7) auto var(--la-space-8);
  text-align: center;
  background: var(--la-color-bg-raised);
  border: 1px solid var(--la-color-border);
  border-radius: var(--la-radius-lg);
}

.la-closed-title {
  margin-block-end: var(--la-space-4);
  color: var(--la-color-fg);
  font-size: var(--la-text-2xl);
  line-height: var(--la-leading-tight);
  letter-spacing: -0.018em;
}

.la-closed-body {
  max-width: 52ch;
  margin-block-end: var(--la-space-5);
  margin-inline: auto;
  color: var(--la-color-fg-muted);
  font-size: var(--la-text-base);
  line-height: var(--la-leading-normal);
}

.la-outage-when {
  padding-block: var(--la-space-5);
  color: var(--la-color-fg-subtle);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-2xs);
  letter-spacing: 0.04em;
  border-block: 1px dashed var(--la-color-border);
}

.la-outage-at {
  color: var(--la-color-fg-muted);
  font-weight: var(--la-weight-medium);
}

.la-outage-meanwhile {
  margin-block: var(--la-space-5) var(--la-space-6);
  color: var(--la-color-fg-muted);
  font-size: var(--la-text-sm);
  text-align: start;
}

.la-outage-eyebrow {
  margin-block-end: var(--la-space-2);
  color: var(--la-color-link);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-2xs);
  font-weight: var(--la-weight-semi);
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.la-outage-meanwhile ul {
  display: flex;
  flex-direction: column;
  gap: var(--la-space-2);
}

.la-outage-meanwhile li {
  display: flex;
  gap: var(--la-space-2);
  align-items: flex-start;
  line-height: var(--la-leading-normal);
}

.la-outage-meanwhile li::before {
  content: '→';
  flex: none;
  color: var(--la-color-link);
  font-family: var(--la-font-mono);
  font-weight: var(--la-weight-semi);
}

.la-outage-meanwhile a {
  color: var(--la-color-link);
  font-weight: var(--la-weight-medium);
}

.la-outage-cta {
  display: flex;
  justify-content: center;
}

@container la-page (min-width: 48rem) {
  .la-closed-card {
    padding: var(--la-space-8) var(--la-space-7);
    margin-block: var(--la-space-8) var(--la-space-9);
  }

  .la-closed-title {
    font-size: var(--la-text-3xl);
  }
}

/* ---- county heatmap ---------------------------------------------------- */

/* Narrow: gone. The lists under it are the surface that works on a phone,
   and a nine-column map of a country is not. */
.la-map-zone {
  display: none;
}

@container la-page (min-width: 48rem) {
  .la-map-zone {
    display: block;
    padding: var(--la-space-6) var(--la-page-edge) var(--la-space-6);
    background:
      radial-gradient(56rem 28rem at 50% 0, var(--la-color-accent-subtle), transparent 70%), var(--la-color-bg);
    border-block: 1px solid var(--la-color-border);
  }
}

/* The map itself stands wherever its zone does: on the calendar from a tablet up, and as a screen of the home in
   every room. */

.la-map-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--la-space-3);
  align-items: flex-end;
  justify-content: space-between;
  margin-block-end: var(--la-space-4);
}

.la-map-head h2 {
  color: var(--la-color-fg);
  font-size: var(--la-text-xl);
  font-weight: var(--la-weight-semi);
  letter-spacing: -0.01em;
}

.la-legend {
  display: inline-flex;
  gap: var(--la-space-2);
  align-items: center;
  color: var(--la-color-fg-muted);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.la-legend .la-ramp {
  display: inline-flex;
  height: var(--la-space-3);
  overflow: hidden;
  border: 1px solid var(--la-color-border);
  border-radius: var(--la-radius-full);
}

.la-legend .la-ramp span {
  display: block;
  width: var(--la-space-4);
  height: 100%;
}

.la-map-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-auto-rows: 4.875rem;
  gap: var(--la-space-2);
}

.la-judet {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--la-space-2);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--la-color-bg-sunken);
  border: 1px solid var(--la-color-border);
  border-radius: var(--la-radius-md);
  transition:
    transform var(--la-duration-fast) var(--la-ease-out),
    box-shadow var(--la-duration-fast) var(--la-ease-out),
    border-color var(--la-duration-fast) var(--la-ease-out);
}

.la-judet:hover {
  z-index: var(--la-z-sticky);
  border-color: var(--la-color-link);
  box-shadow:
    var(--la-shadow-md),
    0 0 0 2px var(--la-color-role-accent-soft, var(--la-color-accent));
  transform: translateY(-1px);
}

.la-judet .la-abbr {
  margin-block-end: var(--la-space-05);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-2xs);
  font-weight: var(--la-weight-semi);
  letter-spacing: 0.04em;
}

.la-judet .la-judet-name {
  font-size: var(--la-text-sm);
  font-weight: var(--la-weight-semi);
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.la-judet .la-judet-count {
  position: absolute;
  inset-block-end: var(--la-space-1);
  inset-inline-end: var(--la-space-2);
  font-family: var(--la-font-mono);
  font-size: var(--la-text-sm);
  font-weight: var(--la-weight-medium);
}

/* Nine bins, from the page's own paper up to deep saffron. The design
     owns them: they are colour, and a heat step is a role like any other. */
.la-judet.la-h-0 {
  color: var(--la-color-role-heat-0-ink);
  background: var(--la-color-role-heat-0, var(--la-color-bg-sunken));
}

.la-judet.la-h-1 {
  color: var(--la-color-role-heat-1-ink);
  background: var(--la-color-role-heat-1, var(--la-color-bg-sunken));
}

.la-judet.la-h-2 {
  color: var(--la-color-role-heat-2-ink);
  background: var(--la-color-role-heat-2, var(--la-color-bg-sunken));
}

.la-judet.la-h-3 {
  color: var(--la-color-role-heat-3-ink);
  background: var(--la-color-role-heat-3, var(--la-color-accent-subtle));
}

.la-judet.la-h-4 {
  color: var(--la-color-role-heat-4-ink);
  background: var(--la-color-role-heat-4, var(--la-color-accent-subtle));
  border-color: var(--la-color-role-heat-4-border, var(--la-color-border));
}

.la-judet.la-h-5 {
  color: var(--la-color-role-heat-5-ink);
  background: var(--la-color-role-heat-5, var(--la-color-accent));
  border-color: var(--la-color-role-heat-5-border, var(--la-color-border));
}

.la-judet.la-h-6 {
  color: var(--la-color-role-heat-6-ink);
  background: var(--la-color-role-heat-6, var(--la-color-accent));
  border-color: var(--la-color-link);
}

.la-judet.la-h-7 {
  color: var(--la-color-role-heat-7-ink);
  background: var(--la-color-role-heat-7, var(--la-color-accent-active));
  border-color: var(--la-color-link);
}

.la-judet.la-h-8 {
  color: var(--la-color-role-heat-8-ink);
  background: var(--la-color-role-heat-8);
  border-color: var(--la-color-role-heat-8, var(--la-color-accent-active));
}

/* The city-wide tile reads as distinct from the six sector tiles beside
     it, through a ring rather than through a colour the ramp is using. */
.la-judet.la-municipal {
  box-shadow: inset 0 0 0 1.5px var(--la-color-role-accent-soft, var(--la-color-accent));
}

/* A second jurisdiction is not a heat county: a dashed edge and a tint
     say so, and its count stays a dash. */
.la-judet.la-region {
  background: var(--la-color-accent-subtle);
  border: 1px dashed var(--la-color-role-accent-soft, var(--la-color-accent));
}

.la-judet.la-region:hover {
  border-style: solid;
  border-color: var(--la-color-link);
}

.la-legend .la-ramp .la-h-0 {
  background: var(--la-color-role-heat-0, var(--la-color-bg-sunken));
}

.la-legend .la-ramp .la-h-2 {
  background: var(--la-color-role-heat-2, var(--la-color-bg-sunken));
}

.la-legend .la-ramp .la-h-3 {
  background: var(--la-color-role-heat-3, var(--la-color-accent-subtle));
}

.la-legend .la-ramp .la-h-4 {
  background: var(--la-color-role-heat-4, var(--la-color-accent-subtle));
}

.la-legend .la-ramp .la-h-5 {
  background: var(--la-color-role-heat-5, var(--la-color-accent));
}

.la-legend .la-ramp .la-h-6 {
  background: var(--la-color-role-heat-6, var(--la-color-accent));
}

.la-legend .la-ramp .la-h-7 {
  background: var(--la-color-role-heat-7, var(--la-color-accent-active));
}

.la-legend .la-ramp .la-h-8 {
  background: var(--la-color-role-heat-8, var(--la-color-accent-active));
}

/* ---- a county's courts as tiles ---------------------------------------- */

/* A county's courts drawn as the map draws the counties: each a tile in the heat of its day, its name and its count,
   by level, the most the room holds to a row; two to a row on a phone. */
/* The levels one under another, each across the whole room: a level of five courts is never squeezed beside one of
   one. */
.la-places.is-tiled .la-places-list {
  display: block;
  padding: 0 var(--la-page-edge) var(--la-space-6);
}

.la-places.is-tiled .la-places-grp-head {
  padding-inline: 0;
  border-block-start: 0;
}

.la-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  gap: var(--la-space-2);
  padding-block-end: var(--la-space-2);
}

.la-judet.la-tile {
  min-height: 5.5rem;
  padding: var(--la-space-3);
}

.la-judet.la-tile .la-judet-name {
  padding-inline-end: var(--la-space-2);
  font-size: var(--la-text-sm);
  line-height: 1.2;
}

.la-judet.la-tile .la-judet-count {
  inset-block-end: var(--la-space-2);
  inset-inline-end: var(--la-space-3);
  font-size: var(--la-text-lg);
}

/* The word beside a tile's number: quieter and smaller than it, so the number is still read first. */
.la-judet.la-tile .la-judet-unit {
  font-size: var(--la-text-2xs);
  font-weight: var(--la-weight-normal);
  letter-spacing: 0.02em;
}

@container la-page (max-width: 40rem) {
  .la-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
