/* Approved artwork integration; keep general reader/navigation rules in their owners' files. */
.site-header .brand .brand-word,
.book-top .brand .brand-word,
.brand .brand-word {
  display: block;
  width: 156px;
  height: 36px;
  flex: 0 0 auto;
  font-size: 0;
  background: url('/assets/logo-horizontal.svg') center / contain no-repeat;
}
[data-theme='dark'] .brand .brand-word {
  background-image: url('/assets/logo-horizontal-inverse.svg');
}
.siddur-cover[data-cover-artwork] {
  border-radius: 8px;
  background: var(--cover);
  box-shadow: 0 10px 24px #17271f26;
}
.siddur-cover[data-cover-artwork]::before {
  display: none;
}
.siddur-cover .book-cover-image,
.cover-style-options .cover-design-art .book-cover-image {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: inherit;
  opacity: 1;
  filter: none;
}
.siddur-cover[data-cover-artwork] .cover-lettering {
  left: var(--art-left);
  right: auto;
  top: var(--art-top);
  width: var(--art-width);
  height: var(--art-height);
  justify-content: center;
  gap: 1.2cqw;
  text-shadow: none;
}
.siddur-cover[data-cover-artwork] .cover-title {
  font-size: 15cqw;
  margin: 0;
  line-height: 1.2;
}
.siddur-cover[data-cover-artwork] .cover-nusach {
  font-size: 4cqw;
  margin: 0;
}
.siddur-cover[data-cover-artwork] .cover-divider {
  display: none;
}
.siddur-cover[data-cover-artwork] .cover-owner {
  font-size: 4.2cqw;
  margin-top: 1.5cqw;
  max-width: 100%;
}
.siddur-cover[data-cover-artwork] .cover-owner--long {
  font-size: 2.7cqw;
  line-height: 1.2;
}
.siddur-cover[data-cover-artwork] .cover-lettering:has(.cover-owner--long) .cover-title {
  font-size: 12cqw;
}
.artwork-color-note {
  display: none;
}
[data-artwork-selected] .artwork-color-note {
  display: block;
}
#personalize .finish-field[hidden] {
  display: none;
}
.cover-style-options label:has(input:focus-visible) > span {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.siddur-cover[data-cover-style='forest-palace'] {
  --art-left: 24%;
  --art-top: 30%;
  --art-width: 52%;
  --art-height: 44%;
}
.siddur-cover[data-cover-style='oxblood-pomegranate'] {
  --art-left: 24%;
  --art-top: 30%;
  --art-width: 52%;
  --art-height: 44%;
}
.siddur-cover[data-cover-style='midnight-arcade'] {
  --art-left: 24%;
  --art-top: 32%;
  --art-width: 52%;
  --art-height: 42%;
}
.siddur-cover[data-cover-style='ivory-lace'] {
  --art-left: 24%;
  --art-top: 30%;
  --art-width: 52%;
  --art-height: 44%;
}
.siddur-cover[data-cover-style='classic-siddur'] {
  --art-left: 24%;
  --art-top: 34%;
  --art-width: 52%;
  --art-height: 36%;
}
.siddur-cover[data-cover-style='jerusalem-mosaic'] {
  --art-left: 22%;
  --art-top: 25%;
  --art-width: 56%;
  --art-height: 30%;
}
.siddur-cover[data-cover-style='judaica-papercut'] {
  --art-left: 24%;
  --art-top: 32%;
  --art-width: 52%;
  --art-height: 36%;
}
.siddur-cover[data-cover-style='modern-woven'] {
  --art-left: 10%;
  --art-top: 27%;
  --art-width: 50%;
  --art-height: 42%;
}
.siddur-cover[data-cover-style='dawn-ribbons'] {
  --art-left: 16%;
  --art-top: 17%;
  --art-width: 68%;
  --art-height: 36%;
}
.siddur-cover[data-cover-style='jerusalem-color'] {
  --art-left: 16%;
  --art-top: 17%;
  --art-width: 68%;
  --art-height: 36%;
}
.siddur-cover[data-cover-style='western-wall-dawn'] {
  --art-left: 16%;
  --art-top: 14%;
  --art-width: 68%;
  --art-height: 30%;
}
.siddur-cover[data-cover-style='western-wall-night'] {
  --art-left: 16%;
  --art-top: 14%;
  --art-width: 68%;
  --art-height: 30%;
}
.siddur-cover[data-cover-style='menorah-light'] {
  --art-left: 16%;
  --art-top: 14%;
  --art-width: 68%;
  --art-height: 36%;
}
.siddur-cover[data-cover-style='shabbat-glow'] {
  --art-left: 18%;
  --art-top: 14%;
  --art-width: 64%;
  --art-height: 30%;
}
/* A maximum-length inscription must stay inside even the shorter illustration title fields. */
.siddur-cover[data-cover-artwork] .cover-lettering:has(.cover-owner--long) {
  gap: 0.7cqw;
}
.siddur-cover[data-cover-artwork] .cover-lettering:has(.cover-owner--long) .cover-title {
  font-size: 10cqw;
  margin: 0;
}
.siddur-cover[data-cover-artwork] .cover-owner--long {
  font-size: 2.4cqw;
}
/* Until a thumbnail arrives the picker shows a neutral box of the final size (width and height
   attributes plus the aspect ratio of .cover-design-art), so nothing moves when it loads. */
.cover-style-options .cover-design-art .book-cover-image {
  background: #cfcabc;
}
[data-theme='dark'] .cover-style-options .cover-design-art .book-cover-image {
  background: #3a3d38;
}
