/* ABQ flip books (owner 2026-11-15). Colors and type follow the site: black ink, teal accent #8FCDCF, Montserrat caps. */
.abq-book { position: relative; outline: none; margin: 40px 0;
  /* wider than the text column: up to 1160px, centered on the page (owner wants it readable) */
  width: min(1160px, calc(100vw - 48px)); margin-left: calc(50% - min(580px, 50vw - 24px)); }
.abq-book:focus-visible { outline: 2px solid #8FCDCF; outline-offset: 6px; }
.abq-book__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto 20px; }
.abq-book__jump select {
  font-family: var(--font-display, Montserrat), sans-serif; font-size: 13px; letter-spacing: .04em;
  min-width: 240px; max-width: 100%; height: 40px; padding: 0 36px 0 12px; border: 1px solid #000; border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none; appearance: none; color: #000; cursor: pointer;
}
.abq-book__nav { display: flex; align-items: center; gap: 10px; }
.abq-book__count { font-family: var(--font-display, Montserrat), sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; min-width: 150px; text-align: center; }
.abq-book__prev, .abq-book__next, .abq-book__full {
  height: 40px; border: 1px solid #000; background: transparent; color: #000; cursor: pointer; border-radius: 0;
  font-family: var(--font-display, Montserrat), sans-serif; transition: background-color .3s, border-color .3s;
}
.abq-book__prev, .abq-book__next { width: 40px; font-size: 26px; line-height: 1; padding: 0 0 3px; }
.abq-book__full { padding: 0 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.abq-book__stage { margin: 0 auto; max-width: 100%; transition: transform .5s ease; }
/* closed book: the cover sits alone on the right half of the spread, so slide it to the middle */
.abq-book.is-closed-front .abq-book__stage { transform: translateX(-25%); }
.abq-book.is-closed-back .abq-book__stage { transform: translateX(25%); }
.abq-book__page { background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 8px 28px rgba(0,0,0,.10); }
.abq-book__page img { display: block; margin: 0 !important; padding: 0; border: 0; max-width: none; width: 100%; height: 100%; object-fit: cover; filter: blur(1px); transition: filter .25s; }
.abq-book__page img.is-sharp { filter: none; }
.abq-book__hint { text-align: center; font-size: 13px; color: #555; margin: 16px 0 0; }
.abq-book:fullscreen { width: 100%; margin: 0; background: #f1f1f1; padding: 16px; overflow: auto; display: flex; flex-direction: column; justify-content: center; }
.abq-book:fullscreen .abq-book__hint { display: none; }
@media (max-width: 640px) {
  .abq-book__bar { justify-content: center; }
  .abq-book__jump, .abq-book__jump select { width: 100%; }
  .abq-book__full { display: none; }
}

/* ---- [abq_books]: cover cards that open the pop-up reader (owner 2026-11-16) ---- */
.abq-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin: 40px 0; }
.abq-books__card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.abq-books__cover { display: block; width: 200px; max-width: 70%; padding: 0; border: 0; background: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: transform .3s ease, box-shadow .3s ease; }
.abq-books__cover img { display: block; width: 100%; height: auto; margin: 0 !important; }
.abq-books__cover:focus-visible { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 16px 40px rgba(0,0,0,.24); }
.abq-books__eyebrow { margin: 28px 0 8px !important; font-family: var(--font-display, Montserrat), sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #555; }
.abq-books__title { margin: 0 0 10px !important; font-size: 22px; line-height: 1.3; }
.abq-books__meta { margin: 0 0 20px !important; font-size: 14px; line-height: 1.6; color: #555; }
.abq-books__btn { display: inline-flex; align-items: center; height: 44px; padding: 0 24px; margin-top: auto; border: 1px solid #000; color: #000 !important; text-decoration: none !important;
  font-family: var(--font-display, Montserrat), sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; transition: background-color .3s, border-color .3s; }
@media (max-width: 640px) { .abq-books { grid-template-columns: 1fr; gap: 56px; } }
/* one book on its own (e.g. the xeriscape guide in a blog post, owner 2026-11-23) */
.abq-books.abq-books--one { grid-template-columns: minmax(0, 420px); justify-content: center; }
.abq-books__meta a { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }

/* the pop-up reader fills the window */
html.abq-book-open { overflow: hidden; }
.abq-books__dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; background: #f1f1f1; overflow: auto; }
.abq-books__dialog::backdrop { background: rgba(0,0,0,.6); }
.abq-books__dialog .abq-book { width: 100%; margin: 0; min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.abq-books__dialog .abq-book__hint { display: none; }
.abq-books__dialog .abq-book__bar { width: 100%; }
.abq-book__close { height: 40px; padding: 0 16px; border: 1px solid #000; background: #fff; color: #000; cursor: pointer; border-radius: 0;
  font-family: var(--font-display, Montserrat), sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; transition: background-color .3s, border-color .3s; }
.abq-book__close span { font-size: 18px; line-height: 1; margin-left: 6px; vertical-align: -1px; }
.abq-books__dialog .abq-book__jump select { background-color: #fff; }
@media (max-width: 640px) {
  .abq-books__dialog { padding: 12px; }
  .abq-books__dialog .abq-book__bar { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  .abq-books__dialog .abq-book__nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
}
/* fast taps to turn pages must not trigger the phone's double-tap zoom (owner 2026-11-16); pinch zoom still works */
.abq-book, .abq-book button, .abq-book select, .abq-books__dialog { touch-action: manipulation; }
/* The theme (Hello Elementor reset.css) paints any focused or hovered button pink (#c36, white text), and phones keep
   a tapped button focused, so ‹ › and Close stayed pink after a tap (owner 2026-11-16). Keep our colors on focus, and
   show the teal hover only where there is a real mouse, so it doesn't stick after a tap either. */
.abq-book .abq-book__prev:focus, .abq-book .abq-book__next:focus, .abq-book .abq-book__full:focus,
.abq-book .abq-book__prev:hover, .abq-book .abq-book__next:hover, .abq-book .abq-book__full:hover { background: transparent; color: #000; border-color: #000; }
.abq-book .abq-book__close:focus, .abq-book .abq-book__close:hover { background: #fff; color: #000; border-color: #000; }
.abq-books .abq-books__cover:focus, .abq-books .abq-books__cover:hover { background: none; }
@media (hover: hover) {
  .abq-book .abq-book__prev:hover, .abq-book .abq-book__next:hover, .abq-book .abq-book__full:hover, .abq-book .abq-book__close:hover,
  .abq-books .abq-books__btn:hover { background: #8FCDCF; border-color: #8FCDCF; color: #000; }
  .abq-books .abq-books__cover:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 16px 40px rgba(0,0,0,.24); }
}
