/* Scoped to the Books and Comic Books OPDS panels. */
.opds-panel {
  box-sizing: border-box;
  min-width: 0;
  max-width: 45rem;
  margin: 1.4rem 0 1rem;
  padding: clamp(.85rem, 3vw, 1.2rem) clamp(.85rem, 3vw, 1.35rem);
  border: 1px solid #c7a96967;
  border-radius: .65rem;
  background: #132237;
  color: #f1e7d0;
  text-align: start;
  color-scheme: dark;
}
.opds-panel h2 {
  margin: 0;
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #f5ebd4;
}
.opds-panel h2 span {
  padding: .14rem .35rem;
  border: 1px solid #c7a96992;
  border-radius: .25rem;
  color: #edd39b;
  font: 600 .72rem/1.25 system-ui, sans-serif;
}
.opds-panel .opds-lead,
.opds-panel .opds-member-help {
  margin: .55rem 0 0;
  max-width: none;
  color: #e6ddca;
  font-size: .9rem;
  line-height: 1.45;
}
.opds-panel .opds-feeds { margin: .8rem 0 0; }
.opds-panel .opds-feed-row {
  display: grid;
  grid-template-columns: minmax(8.4rem, max-content) minmax(0, 1fr);
  gap: .25rem .8rem;
  align-items: baseline;
  padding: .55rem .65rem;
  background: #0b192b;
  border-inline-start: 2px solid #c7a969;
}
.opds-panel .opds-feed-row + .opds-feed-row { margin-top: .3rem; }
.opds-panel dt {
  color: #f1e4bd;
  font: 650 .84rem/1.45 system-ui, sans-serif;
}
.opds-panel dd { margin: 0; min-width: 0; }
.opds-panel a,
.opds-panel a:visited {
  color: #ffe1a1;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.opds-panel a:focus-visible,
.comic-vote-control:focus-visible {
  outline: 2px solid #ffe1a1;
  outline-offset: 3px;
}
.opds-panel .opds-feed-link {
  overflow-wrap: anywhere;
  word-break: normal;
  user-select: text;
  font: 500 clamp(.72rem, 2.4vw, .82rem)/1.45 ui-monospace, Menlo, Consolas, monospace;
}
.opds-panel .opds-app-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .7rem;
  row-gap: .35rem;
  margin-top: .8rem;
  padding-top: .7rem;
  border-top: 1px solid #c7a96940;
  font: 500 .82rem/1.4 system-ui, sans-serif;
}
.opds-panel .opds-glimshelf-link { display: inline-flex; align-items: center; min-width: 0; color: #f4dda9; font-weight: 650; }
.opds-panel .opds-glimshelf-link img { display: block; flex-shrink: 0; }
.comic-vote-row { margin: .65rem 0 0; }
.comic-vote-row .comic-vote-control,
.comic-vote-row .comic-vote-control:visited {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .6rem;
  max-width: 100%;
  box-sizing: border-box;
  padding: .35rem .65rem;
  border: 1px solid #c7a96963;
  border-radius: .45rem;
  background: #101c2e;
  color: #f4dda9;
  font: 600 .82rem/1.35 system-ui, sans-serif;
  text-decoration: none;
}
.comic-vote-row .comic-vote-control:hover { text-decoration: underline; }
.comic-vote-row .comic-vote-control img { width: 88px; height: 31px; }
@media (max-width: 38rem) {
  .opds-panel .opds-feed-row { grid-template-columns: minmax(0,1fr); }
  .opds-panel { margin-top: 1.15rem; }
}
