/* Reader UI only. No approved print-page selector or dimensions are changed. */
#mobile-reader-details-trigger { display: none; }
.mobile-reader-dialog:not([open]) { display: none; }
.mobile-reader-dialog {
  --mobile-reader-surface: #f2ede3;
  --mobile-reader-ink: #25271f;
  --mobile-reader-olive: #4e5340;
  box-sizing: border-box;
  border: 0;
  padding: 0;
  background: var(--mobile-reader-surface);
  color: var(--mobile-reader-ink);
  direction: rtl;
  font: 400 16px/1.65 Sefira, sans-serif;
  overscroll-behavior: contain;
}
.mobile-reader-dialog::backdrop { background: #1d1a1578; }
.mobile-reader-dialog *, .mobile-reader-dialog *::before, .mobile-reader-dialog *::after { box-sizing: border-box; }
.mobile-reader-dialog :is(button,a,summary):focus-visible { outline: 2px solid var(--mobile-reader-olive); outline-offset: 3px; }
.mobile-reader-dialog ::selection { background: #dce0cf; color: #25271f; }
.mobile-reader-dialog :is(button,a,summary) { -webkit-tap-highlight-color: transparent; }
.mobile-reader-dialog svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.mobile-reader-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(14px + env(safe-area-inset-top,0px)) 20px 14px; border-bottom: 1px solid #4e534033; }
.mobile-reader-dialog-head h2 { margin: 0; font: 400 29px/1.25 Jardin, Sefira, sans-serif; }
.mobile-reader-dialog button { cursor: pointer; color: inherit; font: inherit; }
.mobile-reader-close { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid #4e53404d; background: transparent; flex-shrink: 0; }
.mobile-reader-dialog-body { min-height: 0; overflow-y: auto; padding: 8px 22px calc(28px + env(safe-area-inset-bottom,0px)); overscroll-behavior: contain; scrollbar-color: #858b73 #f2ede3; scrollbar-width: thin; }
.mobile-reader-toc-group { border-bottom: 1px solid #4e534033; }
.mobile-reader-toc-group summary { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 20px; line-height: 1.35; }
.mobile-reader-toc-group summary::-webkit-details-marker { display: none; }
.mobile-reader-toc-group summary > span { flex: 1; }
.mobile-reader-toc-group summary bdi { color: var(--mobile-reader-olive); font-size: 16px; font-variant-numeric: tabular-nums; }
.mobile-reader-toc-group summary svg { width: 18px; transition: transform 150ms ease; }
.mobile-reader-toc-group[open] summary svg { transform: rotate(180deg); }
.mobile-reader-toc-links { padding-bottom: 16px; }
.mobile-reader-toc-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 10px 0; color: inherit; text-decoration: none; font-size: 17px; border-top: 1px solid #4e53401a; }
.mobile-reader-toc-links a bdi { flex-shrink: 0; color: var(--mobile-reader-olive); font-size: 16px; font-variant-numeric: tabular-nums; }
.mobile-reader-toc-links .mobile-reader-toc-variant { padding-inline-start: 18px; font-size: 15px; }
.mobile-reader-page-title { margin: 22px 0 16px; font: 400 27px/1.35 Jardin, Sefira, sans-serif; overflow-wrap: anywhere; text-wrap: balance; }
.mobile-reader-copy { color: var(--mobile-reader-olive); font-size: 17px; line-height: 1.75; }
.mobile-reader-copy p { margin: 0 0 16px; }
.mobile-reader-copy h4 { margin: 24px 0 6px; color: var(--mobile-reader-ink); font: 400 22px/1.4 Jardin,Sefira,sans-serif; }
.mobile-reader-page-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 24px 0; padding-block: 18px; border-top: 1px solid #4e534033; border-bottom: 1px solid #4e534033; font-size: 22px; }
.mobile-reader-page-price > span:first-child { color: var(--mobile-reader-olive); font-size: 15px; }
.mobile-reader-items { display: grid; gap: 0; margin-top: 24px; }
.mobile-reader-item { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 16px; padding: 20px 0; border-top: 1px solid #4e534033; align-items: start; }
.mobile-reader-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #eee8dc; }
.mobile-reader-item h4 { margin: 0 0 8px; font: 400 21px/1.35 Jardin,Sefira,sans-serif; overflow-wrap: anywhere; text-wrap: balance; }
.mobile-reader-item-specs { margin: 0; color: var(--mobile-reader-olive); font-size: 16px; line-height: 1.65; }
.mobile-reader-product-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--mobile-reader-olive); font-size: 16px; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.mobile-reader-enlarge-action { display: flex; width: 100%; justify-content: center; align-items: center; min-height: 52px; margin-top: 28px; padding: 12px 16px; color: #fffdf7 !important; background: var(--mobile-reader-olive); border: 0; }
.mobile-reader-zoom-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; background: var(--mobile-reader-surface); }
.mobile-reader-zoom-tools button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #4e53404d; background: transparent; font-size: 16px; }
.mobile-reader-zoom-tools button:disabled { opacity: .4; cursor: default; }
.mobile-reader-zoom-tools output { margin-inline-start: auto; color: var(--mobile-reader-olive); font-size: 14px; font-variant-numeric: tabular-nums; }
.mobile-reader-zoom-hint { margin: 0; padding: 0 16px 12px; color: var(--mobile-reader-olive); font-size: 14px; line-height: 1.5; }
.mobile-reader-zoom-viewport { flex: 1; min-height: 0; overflow: auto; direction: ltr; padding: 0; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; scrollbar-color: #858b73 #e6dfd1; scrollbar-width: thin; background: #e6dfd1; }
.mobile-reader-zoom-viewport:focus-visible { outline: 2px solid var(--mobile-reader-olive); outline-offset: -3px; }
.mobile-reader-zoom-viewport iframe { display: block; max-width: none; border: 0; margin: 0; background: var(--mobile-reader-surface); pointer-events: none; }
.mobile-reader-enlarged .mobile-reader-dialog-body { display: flex; flex-direction: column; padding: 0 0 env(safe-area-inset-bottom,0px); overflow: hidden; }
@media screen and (max-width:800px) {
  body.mobile-reader-enhanced #mobile-reader-details-trigger { display: inline-flex; }
  body.continuous-reader.mobile-reader-enhanced #zoom { display: inline-flex; }
  body.continuous-reader.mobile-reader-enhanced .reader-tools { gap: 12px; }
  body.continuous-reader.mobile-reader-enhanced .reader-tools button { align-items: center; justify-content: center; min-height: 44px; padding: 8px 2px; font-size: 15px; }
  body.continuous-reader.mobile-reader-dialog-open .reader-header { transform: none; }
  .mobile-reader-dialog[open] { display: flex; flex-direction: column; position: fixed; inset: 0; width: 100%; max-width: 800px; height: 100vh; height: 100dvh; max-height: 100%; margin: 0 auto; overflow: hidden; }
  .mobile-reader-dialog-head { flex-shrink: 0; }
  .mobile-reader-dialog-body { flex: 1; }
}
@media (max-width:360px) {
  body.continuous-reader.mobile-reader-enhanced .reader-tools { gap: 8px; }
  body.continuous-reader.mobile-reader-enhanced .reader-tools button { font-size: 14px; }
  .mobile-reader-dialog-head { padding-inline: 16px; }
  .mobile-reader-dialog-body { padding-inline: 16px; }
  .mobile-reader-item { grid-template-columns: 88px minmax(0,1fr); gap: 12px; }
}
@media (prefers-reduced-motion:reduce) { .mobile-reader-toc-group summary svg { transition: none; } }
@media print { .mobile-reader-dialog, #mobile-reader-details-trigger { display: none !important; } }
