/* Book Status Icon Standard v1.0: presentation only. SVG paths are supplied by the app. */
.rs-book-status { --rs-book-status-color:var(--rs-text-secondary); display:inline-flex;align-items:center;gap:.375rem;min-width:0;color:var(--rs-book-status-color);vertical-align:middle; }
.rs-book-status__icon { width:1.125rem;height:1.125rem;flex:none;display:block;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.rs-book-status--sm .rs-book-status__icon { width:1rem;height:1rem; }
.rs-book-status--lg .rs-book-status__icon { width:1.25rem;height:1.25rem; }
.rs-book-status[data-status="reading"][data-active="true"] { --rs-book-status-color:var(--rs-book-status-reading); }
.rs-book-status[data-status="to-read"][data-active="true"] { --rs-book-status-color:var(--rs-book-status-to-read); }
.rs-book-status[data-status="read"][data-active="true"] { --rs-book-status-color:var(--rs-book-status-read); }
.rs-book-status[data-status="owned"][data-active="true"] { --rs-book-status-color:var(--rs-book-status-owned); }
.rs-book-status[data-status="wishlist"][data-active="true"] { --rs-book-status-color:var(--rs-book-status-wishlist); }
.rs-book-status[data-status="favorite"][data-active="true"] { --rs-book-status-color:var(--rs-book-status-favorite); }
.rs-book-status[data-status="rating"] { --rs-book-status-color:var(--rs-book-status-rating); }
.rs-book-status-action { display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;min-width:44px;padding:.5rem .75rem; }
.rs-book-status-action[aria-pressed="true"] .rs-book-status__icon { stroke-width:2.3; }
.rs-book-status-action:disabled { opacity:.5;cursor:not-allowed; }
@media (prefers-reduced-motion:reduce) { .rs-book-status-action { transition:none; } }

/* Book Status rollout: accessible action target despite legacy bookshelf button rules. */
.bookshelf-owner-states button.rs-book-status-action,.book-reading-actions button.rs-book-status-action{min-width:44px;min-height:44px;}
.bookshelf-book-relationship.rs-book-status{color:var(--rs-book-status-color);padding:2px 5px;}
.bookshelf-library-symbol .rs-book-status__icon{display:block;}


/* v1.0.2: persistent selected visuals are exclusively owned by
   Design System buttons.css .rs-button[aria-pressed="true"].
   Relationship-specific color is reserved for informational status badges. */
.rs-button.rs-book-status-action { color:var(--rs-text-primary); }
.rs-button.rs-book-status-action .rs-book-status__icon { color:inherit; }
@media (hover:hover) and (pointer:fine) {
  .bookshelf-owner-states button.rs-book-status-action,
  .book-reading-actions button.rs-book-status-action { min-height:38px;padding-block:5px; }
}

/* v1.0.8: Approved semantic status palette. Keep the shared rs-button
   selected background/border; only the icon carries status-specific color. */
.rs-book-status.rs-book-status-action[data-active="true"] .rs-book-status__icon,
.rs-book-status.rs-book-status-action[aria-pressed="true"] .rs-book-status__icon {
  color:var(--rs-book-status-color);
  stroke:currentColor;
  stroke-width:2.5;
}
/* Passive icons stay neutral even while hovering. */
.rs-book-status.rs-book-status-action[data-active="false"] .rs-book-status__icon,
.rs-book-status.rs-book-status-action[aria-pressed="false"] .rs-book-status__icon {
  color:var(--rs-text-secondary);
  fill:none;
  stroke-width:1.8;
}
/* Selected state has a visible shape cue, not color alone. */
.rs-book-status.rs-book-status-action[data-active="true"][data-status="favorite"] .rs-book-status__icon,
.rs-book-status.rs-book-status-action[data-active="true"][data-status="to-read"] .rs-book-status__icon {
  fill:currentColor;
  fill-opacity:.20;
}
/* Informational status icons inherit the canonical semantic color, not
   the surrounding card text or the selected button styling. */
.rs-book-status:not(.rs-book-status-action)[data-active="true"] .rs-book-status__icon {
  color:var(--rs-book-status-color);
  stroke:currentColor;
  stroke-width:2.15;
}
.rs-book-status:not(.rs-book-status-action)[data-active="true"][data-status="favorite"] .rs-book-status__icon,
.rs-book-status:not(.rs-book-status-action)[data-active="true"][data-status="to-read"] .rs-book-status__icon {
  fill:currentColor;
  fill-opacity:.20;
}

/* v1.0.9: Status action icon colors. Keep generic button background/border.
   Scope to both consumers to win over module-level icon color rules. */
.rs-book-page .book-reading-actions button.rs-book-status-action[aria-pressed="true"] > svg.rs-book-status__icon,
.rs-bookshelf-v2 .bookshelf-owner-states button.rs-book-status-action[aria-pressed="true"] > svg.rs-book-status__icon {
  color:var(--rs-book-status-color);
  stroke:currentColor;
  stroke-width:2.5;
}
.rs-book-page .book-reading-actions button.rs-book-status-action[aria-pressed="false"] > svg.rs-book-status__icon,
.rs-bookshelf-v2 .bookshelf-owner-states button.rs-book-status-action[aria-pressed="false"] > svg.rs-book-status__icon {
  color:var(--rs-text-secondary);
  stroke:currentColor;
  stroke-width:1.8;
  fill:none;
}
.rs-book-page .book-reading-actions button.rs-book-status-action[aria-pressed="true"][data-status="favorite"] > svg.rs-book-status__icon,
.rs-book-page .book-reading-actions button.rs-book-status-action[aria-pressed="true"][data-status="to-read"] > svg.rs-book-status__icon,
.rs-bookshelf-v2 .bookshelf-owner-states button.rs-book-status-action[aria-pressed="true"][data-status="favorite"] > svg.rs-book-status__icon,
.rs-bookshelf-v2 .bookshelf-owner-states button.rs-book-status-action[aria-pressed="true"][data-status="to-read"] > svg.rs-book-status__icon {
  fill:currentColor;
  fill-opacity:.20;
}

/* v1.0.10: resolve icon color from the button's own canonical status.
   Do not rely on outer page wrappers or a module's text color. */
button.rs-book-status-action[data-status="reading"] { --rs-book-status-active-color:var(--rs-book-status-reading); }
button.rs-book-status-action[data-status="to-read"] { --rs-book-status-active-color:var(--rs-book-status-to-read); }
button.rs-book-status-action[data-status="read"] { --rs-book-status-active-color:var(--rs-book-status-read); }
button.rs-book-status-action[data-status="owned"] { --rs-book-status-active-color:var(--rs-book-status-owned); }
button.rs-book-status-action[data-status="wishlist"] { --rs-book-status-active-color:var(--rs-book-status-wishlist); }
button.rs-book-status-action[data-status="favorite"] { --rs-book-status-active-color:var(--rs-book-status-favorite); }
button.rs-button.rs-book-status-action[aria-pressed="true"] > svg.rs-book-status__icon {
  color:var(--rs-book-status-active-color) !important;
  stroke:currentColor;
  stroke-width:2.5;
}
button.rs-button.rs-book-status-action[aria-pressed="false"] > svg.rs-book-status__icon {
  color:var(--rs-text-secondary) !important;
  stroke:currentColor;
  stroke-width:1.8;
  fill:none;
}
button.rs-book-status-action[aria-pressed="true"][data-status="favorite"] > svg.rs-book-status__icon,
button.rs-book-status-action[aria-pressed="true"][data-status="to-read"] > svg.rs-book-status__icon {
  fill:currentColor;
  fill-opacity:.2;
}
