.v09-shelf-action {
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: .55rem .85rem;
  border: 1px solid var(--plum, #744579);
  background: transparent;
  color: var(--plum-dark, #482b50);
  font: 650 .82rem/1.3 var(--sans, system-ui);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.v09-shelf-action:hover {
  background: var(--plum-dark, #482b50);
  color: #fff;
}

.v09-shelf-action:focus-visible,
.v09-shelf-text-link:focus-visible,
.v09-raf-card-link:focus-visible {
  outline: 2px solid var(--plum-dark, #482b50);
  outline-offset: 4px;
}

.v09-shelf-action[aria-pressed='true'] {
  border-color: #527032;
  background: #e6ecd5;
  color: #345122;
}

.v09-shelf-action[aria-pressed='true']:hover {
  background: #d5dfb9;
  color: #273c18;
}

.v09-catalog-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: .55rem;
}

.v09-catalog-item[hidden] { display: none; }
.v09-catalog-item > .bk { flex: 1; }
.v09-catalog-item > .v09-shelf-action { align-self: start; }

.v09-detail-tools {
  padding: 0 0 1.15rem;
  margin-top: -1.05rem;
}

.v09-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}

.v09-shelf-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .35rem .5rem;
  color: var(--plum-dark, #482b50);
  font: 650 .84rem/1.4 var(--sans, system-ui);
  text-underline-offset: .17em;
}

.v09-shelf-text-link:hover { text-decoration: underline; }

.v09-detail-feedback {
  margin: .55rem 0 0;
  color: var(--ink-muted, #5c5461);
  font-size: .85rem;
}

.v09-detail-feedback:empty { display: none; }

.v09-citation {
  padding: .65rem;
  margin-top: .65rem;
  border: 1px solid var(--border, #d9d0c5);
  background: var(--paper, #f7f2ea);
  color: var(--ink, #231d25);
}

.v09-citation[hidden] { display: none; }
.v09-citation label { display: block; margin-bottom: .35rem; font: 650 .82rem/1.3 var(--sans, system-ui); }
.v09-citation textarea {
  box-sizing: border-box;
  width: 100%;
  padding: .55rem;
  border: 1px solid var(--plum, #744579);
  background: #fff;
  color: var(--ink, #231d25);
  font: inherit;
  resize: vertical;
}

.v09-raf-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.v09-raf-section {
  padding-block: clamp(2.5rem, 8vw, 5rem);
  border-bottom: 1px solid var(--border, #d9d0c5);
}

.v09-raf-heading {
  margin: 0 0 1.35rem;
  color: var(--plum-dark, #482b50);
  font: 400 clamp(2rem, 4vw, 3.55rem)/1.05 var(--serif, Georgia);
  letter-spacing: -.025em;
}

.v09-raf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.v09-raf-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: .72rem;
  padding: 1rem;
  border-top: 2px solid var(--plum, #744579);
  background: var(--paper, #f7f2ea);
}

.v09-raf-card-link {
  display: grid;
  min-width: 0;
  grid-template-columns: clamp(44px, 11vw, 72px) minmax(0, 1fr);
  gap: .9rem;
  align-items: center;
  text-decoration: none;
}

.v09-raf-card-link:hover strong { text-decoration: underline; text-underline-offset: .14em; }

.v09-raf-cover {
  display: grid;
  min-width: 0;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  background: #eee6ed;
  color: var(--plum-dark, #482b50);
  font: 600 .62rem/1.1 var(--serif, Georgia);
  text-align: center;
}

.v09-raf-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.v09-raf-card-text strong {
  display: block;
  color: var(--ink, #231d25);
  font: 500 clamp(1.05rem, 1.8vw, 1.4rem)/1.22 var(--serif, Georgia);
  overflow-wrap: anywhere;
}

.v09-raf-card-text > span {
  display: block;
  margin-top: .3rem;
  color: var(--ink-muted, #5c5461);
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.v09-raf-card > button { align-self: start; }
.v09-raf-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  padding: 1rem;
  border-block: 1px solid var(--border, #d9d0c5);
  background: var(--paper, #f7f2ea);
}

.v09-raf-empty p { margin: 0; color: var(--ink-muted, #5c5461); }
.v09-raf-storage { margin: .8rem 0; color: var(--ink-muted, #5c5461); font-size: .85rem; }
