.card-grid-entry-expanded {
  container-type: inline-size;
}
.card-grid-entry-expanded .card-tile {
  height: auto;
}
.card-grid-entry-expanded .card-copy {
  min-width: 0;
  gap: .55rem;
  padding: .75rem;
}
.selected-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: .25rem;
}
.selected-card-credit {
  font-weight: 650;
}
.selected-card-odds {
  display: grid;
  gap: .3rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.selected-card-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.selected-card-source {
  min-width: 0;
  anchor-name: --selected-card-source;
}
.selected-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  font-size: .8rem;
}
.selected-card-read-more {
  min-height: 2.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
  font-size: .8rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.selected-card-popover {
  width: min(27rem, calc(100% - 2rem));
  max-height: min(18rem, calc(100dvh - 2rem));
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-raised);
  color: var(--ink);
  box-shadow: 0 .6rem 2rem rgba(0, 0, 0, .45);
  overflow: auto;
  overflow-wrap: anywhere;
  font-size: .875rem;
  line-height: 1.55;
}
.selected-card-popover p { margin: 0; }
@supports (position-area: bottom span-all) {
  .selected-card-popover {
    position-anchor: --selected-card-source;
    position-area: bottom span-all;
    position-try-fallbacks: flip-block;
    justify-self: anchor-center;
    inset: auto;
    margin: .4rem .75rem;
  }
}
.selected-card-popover:popover-open {
  display: grid;
  gap: .7rem;
}
.selected-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}
.selected-card-links a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .2em;
}
@media (min-width: 768px) {
  .card-grid-entry-expanded .card-tile {
    display: grid;
    aspect-ratio: 3 / 4;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .card-grid-entry-expanded .card-image {
    aspect-ratio: auto;
    min-height: 0;
  }
  .card-grid-entry-expanded .card-copy {
    gap: .28rem;
    padding: .5rem;
  }
  .card-grid-entry-expanded .card-tier { margin-bottom: .15rem; line-height: 1.15; }
  .card-grid-entry-expanded .card-copy h3 { font-size: 1rem; }
  .card-grid-entry-expanded .card-copy dl { gap: .35rem; line-height: 1.2; }
  .card-grid-entry-expanded .card-copy dl div { gap: .05rem; }
  .card-grid-entry-expanded .card-copy dd { font-size: .68rem; }
  .selected-card-source {
    display: grid;
    gap: .2rem;
  }
  .selected-card-description {
    -webkit-line-clamp: 3;
    font-size: .7rem;
    line-height: 1.25;
  }
  .selected-card-actions :is(.collection-toggle, .selected-card-read-more) {
    min-height: 1.6rem;
    font-size: .66rem;
  }
  @container (min-width: 212px) {
    .selected-card-description { -webkit-line-clamp: 4; }
  }
}
