/* Shared collection introduction, with the owner-approved phone browsing layout. */
@font-face {
  font-family: "Latin Modern";
  src: url("/journal/assets/latin-modern-roman-italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
.catalogue-category-mobile { display: none; }
.catalogue-search-icon { display: none; }
/* A quiet, keyboard-accessible sort list beneath the existing utility bar. */
.catalogue .catalogue-tools { position: relative; }
.catalogue-tools .catalogue-mobile-tools { display: flex; align-items: center; order: 2; }
.catalogue-tools .catalogue-search { order: 1; }
/* Identify text entry with a quiet grey outline, never the orange focus box.
   The text caret and the existing ink rules belong to the approved design. */
.catalogue-tools .catalogue-search input {
  appearance: none;
  -webkit-appearance: none;
  caret-color: var(--shop-ink);
  min-height: 44px;
  height: 44px;
  padding-inline: 12px;
}
.catalogue-tools .catalogue-search input:focus,
.catalogue-tools .catalogue-search input:focus-visible {
  outline: 1px solid var(--shop-rule) !important;
  outline-offset: -9px;
  box-shadow: none !important;
}
@media (forced-colors: active) {
  .catalogue-tools .catalogue-search input:focus-visible {
    outline-color: Highlight !important;
    border-bottom: 2px solid Highlight !important;
  }
}
.catalogue-tools .catalogue-tool-icon { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 0; border: 0; background: transparent; color: var(--shop-ink); cursor: pointer; font-family: "Latin Modern", serif; font-size: 16px; font-weight: 400; letter-spacing: normal; line-height: 1.2; text-transform: none; }
.catalogue-tools .catalogue-tool-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.catalogue-tools .catalogue-tool-icon:focus-visible { outline: none !important; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.catalogue-tools .catalogue-sort { position: absolute; top: calc(100% - 8px); right: 0; z-index: 8; display: block; width: min(264px, 100%); margin: 0; padding: 8px 16px; border: 1px solid var(--shop-rule); background: var(--shop-paper); color: var(--shop-ink); }
.catalogue-tools .catalogue-sort[hidden] { display: none !important; }
.catalogue-tools .catalogue-sort fieldset { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; width: 100%; margin: 0; padding: 0; border: 0; }
.catalogue-tools .catalogue-sort-option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 0; cursor: pointer; font-family: "Latin Modern", serif; }
.catalogue-tools .catalogue-sort-option > .catalogue-sort-label { color: var(--shop-ink); font-size: 17px; font-weight: 400; letter-spacing: normal; line-height: 1.3; text-transform: none; }
.catalogue-tools .catalogue-sort-option > .catalogue-sort-tick { flex: 0 0 14px; width: 14px; height: 14px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 1.6; visibility: hidden; }
.catalogue-tools .catalogue-sort-option input:checked ~ .catalogue-sort-tick { visibility: visible; }
.catalogue-tools .catalogue-sort-option input:focus-visible + .catalogue-sort-label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.shop-intro .shop-intro__copy {
  display: block;
  max-width: 38ch;
  margin: 38px 0 0;
  font-size: clamp(20px, 1.5vw, 24px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  color: #746a61;
}
/* Keep shop information on the same page measure as the catalogue and item pages. */
body > .rp-footer-controls[data-rp-shop-policies] {
  width: var(--ledger-page-width);
  flex-wrap: wrap;
  column-gap: 26px;
  row-gap: 0;
  padding: 14px 0 26px;
}
@media (max-width: 640px) {
  .shop-intro h1 { font-size: 52px !important; letter-spacing: -.055em !important; line-height: .96 !important; }
  .shop-intro .shop-intro__copy {
    font-size: 20px;
  }
  .shop-intro { padding-bottom: 22px; }
  .shop-category-rail { display: block; padding: 12px 0; border-bottom: 0; }
  .shop-category-rail .catalogue-filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; }
  .shop-category-rail .catalogue-filter button {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    min-height: 48px;
    padding: 10px 0;
    border: 0;
    font-family: "Latin Modern", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: left;
  }
  .catalogue-filter button.is-active .catalogue-category-text { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
  .catalogue .catalogue-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 20px; padding: 3px 0; border-top: 1px solid var(--shop-ink); border-bottom: 1px solid var(--shop-ink); }
  .catalogue .catalogue-list { border-top: 0; }
  /* Category, original photograph, title, price and a quiet exploration link. */
  .catalogue-list .shop-card { display: flex; flex-direction: column; gap: 0; padding: 26px 0; }
  .catalogue-list .shop-card__copy { display: contents; }
  .catalogue-list .shop-card__meta { order: 0; margin: 0 0 10px; }
  .catalogue-list .shop-card__image { order: 1; width: 100%; aspect-ratio: auto; background: transparent; }
  .catalogue-list .shop-card__image img { width: 100%; height: auto; object-fit: contain; }
  .catalogue-list .shop-card h3 { order: 2; max-width: none; margin: 14px 0 0; font-size: 22px; line-height: 1.15; }
  .catalogue-list .shop-card__purchase { order: 3; min-height: 0; gap: 8px; margin-top: 8px; padding: 0; }
  .catalogue-list .shop-card__price { margin: 0; font-size: 22px; line-height: 1.15; }
  .catalogue-list .shop-card__actions { display: flex; justify-content: flex-start; gap: 0; }
  .catalogue-list .shop-card__more {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    border: 0;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.2;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }
  .catalogue-list .shop-card__more:focus-visible { outline: 2px solid var(--shop-rust); outline-offset: 3px; }
  .shop-footer { gap: 14px; padding: 28px 0 20px; }
  body > .rp-footer-controls[data-rp-shop-policies] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
  .catalogue-tools .catalogue-mobile-tools { display: contents; }
  .catalogue-tools [data-catalogue-sort-toggle] { grid-column: 2; grid-row: 1; }
  .catalogue-tools .catalogue-tool-icon { min-height: 44px; gap: 8px; padding: 10px 0; border: 0; color: var(--shop-ink); font-size: 16px; font-weight: 400; letter-spacing: normal; line-height: 1.2; text-transform: none; }
  .catalogue-tools .catalogue-tool-icon svg { width: 16px; height: 16px; }
  .catalogue-tools .catalogue-search { display: flex; flex-direction: row; align-items: center; gap: 8px; grid-column: 1; grid-row: 1; min-width: 0; width: 100%; margin: 0; color: var(--shop-ink); }
  .catalogue-tools .catalogue-search-icon { display: block; flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .catalogue-tools .catalogue-sort { position: static; grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 3px 0 -3px; padding: 8px 0; border: 0; border-top: 1px solid var(--shop-ink); background: transparent; }
  .catalogue-tools .catalogue-search.is-open { display: flex; }
  .catalogue-tools .catalogue-sort.is-open { display: block; }
  .catalogue-tools .catalogue-sort-option > .catalogue-sort-label { font-size: 16px; }
  .catalogue-tools .catalogue-search input { min-height: 44px; padding: 8px 12px; border: 0; font-family: "Latin Modern", serif; font-size: 16px; font-weight: 400; letter-spacing: normal; line-height: 1.2; color: var(--shop-ink); width: 100%; min-width: 0; }
  .catalogue-tools .catalogue-search input::placeholder { color: var(--shop-ink); font-weight: 400; opacity: 1; }
  .catalogue-filter button:focus-visible { outline: 2px solid var(--shop-rust); outline-offset: 2px; }
}
@media (max-width: 360px) {
  .shop-intro h1 { font-size: 44px !important; }
  .shop-category-rail .catalogue-filter { column-gap: 16px; }
}

/* Keep the gallery within the page even while a photo is loading or unavailable. */
/* A quiet, centred page row with the same typeface and reliable phone targets. */
#catalogue-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 8px;
  padding: 0;
}
#catalogue-pagination[hidden] { display: none; }
#catalogue-pagination button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--shop-rule);
  border-radius: 0;
  background: transparent;
  color: var(--shop-ink);
  font-family: "Latin Modern", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  cursor: pointer;
}
#catalogue-pagination button[aria-current="page"] {
  border-color: var(--shop-ink);
  background: var(--shop-ink);
  color: var(--shop-paper);
}
#catalogue-pagination button:hover:not([aria-current="page"]) { border-color: var(--shop-rust); color: var(--shop-rust); }
#catalogue-pagination button:focus-visible { outline: 2px solid var(--shop-rust); outline-offset: 3px; }
#catalogue-pagination .catalogue-pagination-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  height: 44px;
  color: var(--shop-ink);
  font-family: "Latin Modern", serif;
  font-size: 18px;
  line-height: 1;
}
@media (max-width: 350px) { #catalogue-pagination { gap: 4px; } }

.product-layout > *, .product-gallery, .product-gallery__primary, .product-gallery__primary button, .product-gallery__track, .product-gallery__frame, .product-gallery img, .product-copy { min-width: 0; max-width: 100%; }
@media (max-width: 640px) { .product-layout { grid-template-columns: minmax(0, 1fr); } }
