html {
  scroll-behavior: smooth;
}

.modal {
  animation: fadeIn;
  animation-duration: 0.2s;
}

/* always show a scroll bar 
 * the element must set a fixed height (max-height)
*/
.vertical-scroll {
  overflow-y: scroll;
}

/* force showing a scroll bar on macOS */
.vertical-scroll::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
}

.vertical-scroll::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .5);
  box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

#close-ndc9:hover {
  color: red;
}

#book:hover {
  background-color: var(--bulma-info-soft);
}

#book input[type="checkbox"] {
  margin-right: 0.2rem;
}

/* #book label.checkbox { // this breaks tags
    text-indent: -1rem;
    padding-left: 1rem;
  } */
#book figure {
  margin-top: 0.5rem;
}

#book>figure.image {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#book label>span.icon {
  margin-left: 0.2rem;
}

#tableMode {
  table-layout: fixed;
}

.tabs strong {
  padding-right: 0.2rem;
}

.tabs ul {
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
}

div.modal figure.image {
  margin-bottom: 1.5rem;
}

#TableOutput {
  padding-bottom: 0.5rem;
}

footer {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

table td#chpTag {
  width: 20%;
}

/* #case {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  } */
#casebooks {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  /* Firefox */
}

#casebooks::-webkit-scrollbar {
  display: none;
  /* Safari, Chromium */
}

/* Holdings badge — overlays bottom-right of book cover */
.holdings-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(91, 192, 235, 0.85);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    line-height: 1.4;
    pointer-events: none;
}

.holdings-badge--other {
    background: rgba(150, 150, 150, 0.75);
}

/* Curated book not in viewer's library results — amber dashed border */
.curated-missing {
    border: 2px dashed #f59e0b !important;
    background-color: rgba(245, 158, 11, 0.08) !important;
}
.curated-missing.has-background-info {
    border: 2px dashed #f59e0b !important;
}
.curated-missing-row {
    border-left: 3px solid #f59e0b;
    background-color: rgba(245, 158, 11, 0.06) !important;
}

/* Disable dark mode — always use light theme */
:root {
  color-scheme: light only;
}

/* Compact NdcSelect summary — wrap long nerai / 単元名 text and clamp to 2 lines */
.ndc-summary-nerai {
  max-width: 20rem;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}