/*
 * site.css — our rules, loaded after theme.css.
 *
 * theme.css is generated by scripts/build-theme-css.mjs from the ported Paris
 * stylesheets and is overwritten whenever that runs, so nothing of ours can
 * live in it. This file is hand-written and loads last, which also means it
 * wins ties without needing !important.
 *
 * Keep it small. It exists for gaps in the ported theme and for problems the
 * captured content creates, not as a second theme.
 */

/* ---------------------------------------------------------------------------
 * Media containment
 *
 * The ported theme constrains images in exactly three places — `.rte img`,
 * `.accordion__content img` and `.media > img`. Every image inside a captured
 * page-builder section falls outside all three and rendered at its natural
 * pixel size, which for this catalogue means up to 11MB and several thousand
 * pixels wide. That is the "full size images" problem: the image sets the page
 * width, and the layout is dragged along behind it.
 *
 * Deliberately low specificity. The theme's own rules — the product slider
 * setting height:100%, for instance — are more specific and still win.
 * ------------------------------------------------------------------------- */
img,
svg,
video,
canvas,
iframe,
embed,
object {
  max-width: 100%;
}

img,
video {
  height: auto;
}

/* Kills the few pixels of descender space under an inline image, which shows up
   as a hairline gap at the bottom of every captured image block. */
img,
svg,
video {
  vertical-align: middle;
}

/* ---------------------------------------------------------------------------
 * Nothing scrolls sideways
 *
 * A single over-wide element inside captured content makes the whole document
 * scroll horizontally, which on a phone reads as the site being broken. Tables
 * and pre blocks get their own scroll container instead of pushing the page.
 * ------------------------------------------------------------------------- */
html {
  overflow-x: hidden;
}

.rte table,
.policy__body table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

/* ---------------------------------------------------------------------------
 * AI responsive banner blocks
 *
 * These sections come from a Shopify app that emits a UNIQUE HASH in every
 * class name, per block instance:
 *
 *   .ai-responsive-banner__content-an3nhbytxrdznwkdjwaigenblockb31eafbweyeqv
 *
 * and ships the matching CSS inside that page's own <style> tag. The Phase 0
 * capture extracted stylesheets from one page, so theme.css carries the rules
 * for exactly three hashes — the homepage's. Every other instance has no CSS at
 * all: /pages/visit, /pages/venue-rental and /pages/podcast-room use five
 * different hashes between them and rendered completely unstyled. A full-height
 * image at natural size with the caption dumped underneath, which is the "no
 * design, bad margins" on those pages.
 *
 * Reproduced here with substring matching so the rules apply to every instance,
 * including any added later. Declarations, breakpoints and the desktop/mobile
 * split are copied verbatim from the captured rules — this is the app's own
 * design, not a reinterpretation of it.
 * ------------------------------------------------------------------------- */
[class*='ai-responsive-banner__image-wrapper-'] {
  position: relative;
  width: 100%;
  overflow: hidden;
}

[class*='ai-responsive-banner__image-']:not([class*='__image-wrapper-']) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

[class*='ai-responsive-banner__content-'] {
  z-index: 2;
}

[class*='ai-responsive-banner__heading-'] {
  color: #fff;
  margin: 0 0 15px;
  line-height: 1.2;
  font-family: Trirong, Georgia, serif;
  font-weight: 400;
}

[class*='ai-responsive-banner__text-'] {
  color: #fff;
  margin: 0;
  line-height: 1.5;
}

[class*='ai-responsive-banner__text-'] p {
  margin: 0;
  color: inherit;
}

[class*='ai-responsive-banner__button-wrapper-'] {
  margin-top: 20px;
}

[class*='ai-responsive-banner__button-']:not([class*='__button-wrapper-']) {
  display: inline-block;
  padding: 12px 24px;
  background-color: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

[class*='ai-responsive-banner__button-']:not([class*='__button-wrapper-']):hover {
  background-color: #f2ece7;
}

@media screen and (min-width: 750px) {
  [class*='ai-responsive-banner__image-wrapper-'] {
    height: 800px;
  }

  [class*='ai-responsive-banner__image-mobile-'],
  [class*='ai-responsive-banner__content-mobile-'] {
    display: none;
  }

  /* The dark panel floated over the image — without this the caption sits
     below the photo as plain black-on-white text. */
  [class*='ai-responsive-banner__content-'] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    max-width: 650px;
  }

  [class*='ai-responsive-banner__content--left-'] {
    left: 50px;
  }

  [class*='ai-responsive-banner__content--right-'] {
    right: 50px;
  }

  [class*='ai-responsive-banner__heading-'] {
    font-size: 56px;
  }

  [class*='ai-responsive-banner__text-'] {
    font-size: 18px;
  }
}

@media screen and (max-width: 749px) {
  [class*='ai-responsive-banner__image-wrapper-'] {
    height: 600px;
  }

  [class*='ai-responsive-banner__image-desktop-'],
  [class*='ai-responsive-banner__content-desktop-'] {
    display: none;
  }

  [class*='ai-responsive-banner__content-'] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    max-width: calc(100% - 40px);
    padding: 25px;
  }

  [class*='ai-responsive-banner__content--left-'] {
    left: 20px;
  }

  [class*='ai-responsive-banner__content--right-'] {
    right: 20px;
  }

  [class*='ai-responsive-banner__heading-'] {
    font-size: 24px;
  }

  [class*='ai-responsive-banner__text-'] {
    font-size: 14px;
  }

  [class*='ai-responsive-banner__button-']:not([class*='__button-wrapper-']) {
    font-size: 13px;
    padding: 10px 20px;
  }
}

/* ---------------------------------------------------------------------------
 * AI image + text blocks
 *
 * Same story as the banner above: theme.css holds rules for one hash and the
 * content uses five. /pages/visit, /pages/venue-rental and /pages/podcast-room
 * rendered these as a full-size photo with unstyled text beneath.
 *
 * Copied verbatim from the one styled instance. Two selector notes, because
 * substring matching is blunt:
 *
 *   - The block root's class is `ai-image-text-<hash>`, which every child class
 *     also starts with. `[class*='ai-image-text-']` alone would paint the whole
 *     subtree black and 800px tall. The root is always a direct child of
 *     .shopify-section, so that relationship identifies it.
 *   - `ai-image-text-image-` is a prefix of `ai-image-text-image-placeholder-`,
 *     so the placeholder rule must come after the image rule to win.
 * ------------------------------------------------------------------------- */
.shopify-section > [class*='ai-image-text-'] {
  width: 100%;
  background-color: #000;
  display: flex;
  align-items: center;
}

[class*='ai-image-text-container-'] {
  max-width: var(--page-width, 160rem);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

[class*='ai-image-text-wrapper-'] {
  display: grid;
  align-items: center;
}

[class*='ai-image-text-image-'] {
  width: 100%;
  position: relative;
}

[class*='ai-image-text-image-'] img {
  width: 100%;
  display: block;
  object-fit: cover;
}

[class*='ai-image-text-content-'] {
  padding: 45px;
}

[class*='ai-image-text-heading-'] {
  font-family: Trirong, Georgia, serif;
  font-weight: 400;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
}

[class*='ai-image-text-text-'] {
  color: #fff;
  line-height: 1.6;
  margin: 0 0 24px;
}

[class*='ai-image-text-text-'] p {
  margin: 0;
  color: inherit;
}

[class*='ai-image-text-button-'] {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  background-color: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

[class*='ai-image-text-button-']:hover {
  background-color: #423e3e;
  color: #fff;
}

@media screen and (min-width: 750px) {
  .shopify-section > [class*='ai-image-text-'] {
    padding: 50px 0;
    height: 800px;
  }

  [class*='ai-image-text-wrapper-'] {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  /* The app flips the column order with `direction`, restoring it on the
     children so the text itself is not reversed. */
  [class*='ai-image-text-wrapper-'].reverse {
    direction: rtl;
  }

  [class*='ai-image-text-wrapper-'].reverse > * {
    direction: ltr;
  }

  [class*='ai-image-text-image-'] img {
    height: 550px;
  }

  [class*='ai-image-text-mobile-'] {
    display: none;
  }

  [class*='ai-image-text-heading-'] {
    font-size: 56px;
  }

  [class*='ai-image-text-text-'] {
    font-size: 16px;
  }

  [class*='ai-image-text-button-'] {
    font-size: 16px;
  }
}

@media screen and (max-width: 749px) {
  .shopify-section > [class*='ai-image-text-'] {
    padding: 30px 0;
    height: auto;
  }

  [class*='ai-image-text-wrapper-'],
  [class*='ai-image-text-wrapper-'].reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    direction: ltr;
  }

  [class*='ai-image-text-image-'] img {
    height: 300px;
  }

  [class*='ai-image-text-desktop-'] {
    display: none;
  }

  [class*='ai-image-text-mobile-'] {
    display: block;
  }

  [class*='ai-image-text-content-'] {
    padding: 10px;
  }

  [class*='ai-image-text-heading-'] {
    font-size: 24px;
    margin-bottom: 12px;
  }

  [class*='ai-image-text-text-'] {
    font-size: 14px;
    margin-bottom: 16px;
  }

  [class*='ai-image-text-button-'] {
    padding: 10px 20px;
    font-size: 12px;
  }
}

/* ---------------------------------------------------------------------------
 * AI map + info blocks  (/pages/visit, /pages/visit-hours)
 *
 * Unlike the two above, NOTHING was ever captured for this block — no hash has
 * any CSS at all, so there is no original to copy. The markup is a map beside a
 * details column of address and opening hours, and it rendered as an unsized
 * iframe followed by a bare list of day/time spans running together.
 *
 * This is therefore our design, not the app's. It follows the block's own
 * structure and the type scale used by its siblings above.
 *
 * Ordering matters twice: `-section-` is a prefix of `-section-title-`, and
 * `-hours-` of `-hours-row-`. The longer selector must come second to win.
 * ------------------------------------------------------------------------- */
[class*='ai-map-info-container-'] {
  max-width: var(--page-width, 160rem);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/*
  `align-items: start`, not stretch. Stretched, the map column matched the
  details column — and the details column is a heading, an address and seven
  rows of opening hours, so the map grew to most of the viewport height for no
  reason. Both columns now size to their own content.
*/
[class*='ai-map-info-wrapper-'] {
  display: grid;
  gap: 40px;
  align-items: start;
}

[class*='ai-map-info-map-'] {
  position: relative;
  width: 100%;
  /* A map only needs to show the neighbourhood; more height tells you nothing
     extra. The ratio keeps it proportionate as the column narrows. */
  aspect-ratio: 4 / 3;
  max-height: 420px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(var(--color-foreground), 0.06);
}

[class*='ai-map-info-map-'] iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/*
  Address and Hours sit side by side rather than stacked. Both are short — the
  hours are two rows once consecutive identical days are merged — so stacking
  them wasted the column's width and made the block taller than the map beside
  it. The heading spans both.
*/
[class*='ai-map-info-details-'] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem 3.2rem;
  align-content: start;
}

[class*='ai-map-info-heading-'] {
  grid-column: 1 / -1;
}

[class*='ai-map-info-heading-'] {
  margin: 0;
  line-height: 1.2;
  font-family: Trirong, Georgia, serif;
  font-weight: 400;
}

[class*='ai-map-info-section-']:not([class*='-section-title-']) {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* After -section-, deliberately: see the note above. */
[class*='ai-map-info-section-title-'] {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

[class*='ai-map-info-address-'] {
  line-height: 1.7;
}

[class*='ai-map-info-address-'] p {
  margin: 0;
}

[class*='ai-map-info-hours-']:not([class*='-hours-row-']) {
  display: flex;
  flex-direction: column;
}

/* After -hours-, deliberately. */
[class*='ai-map-info-hours-row-'] {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 0.45rem;
  font-size: 1.4rem;
  border-block-end: 1px solid rgba(var(--color-foreground), 0.12);
}

[class*='ai-map-info-hours-row-']:last-child {
  border-block-end: 0;
}

[class*='ai-map-info-day-'] {
  font-weight: 600;
}

[class*='ai-map-info-time-'] {
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

@media screen and (min-width: 750px) {
  [class*='ai-map-info-container-'] {
    padding-block: 40px;
  }

  [class*='ai-map-info-wrapper-'] {
    grid-template-columns: 1fr 1fr;
  }

  [class*='ai-map-info-heading-'] {
    font-size: 40px;
  }

  /* Two columns for address + hours, once there is room for them. */
  [class*='ai-map-info-details-'] {
    grid-template-columns: auto 1fr;
  }
}

@media screen and (max-width: 749px) {
  [class*='ai-map-info-container-'] {
    padding-block: 24px;
  }

  [class*='ai-map-info-wrapper-'] {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  [class*='ai-map-info-heading-'] {
    font-size: 26px;
  }
}

/* ---------------------------------------------------------------------------
 * Focus visibility
 *
 * The theme relies on :focus with an outline that several captured sections
 * override to none. Anyone navigating by keyboard loses their place entirely.
 * ------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------------
 * Custom elements with no rule of their own
 *
 * An unknown element is `display: inline` until something says otherwise, and
 * these wrap block content. The ported theme styles `slider-component` and
 * `header-drawer` but never these three, so they were laying out as inline
 * boxes around block children — which mostly looks like stray gaps and
 * elements that will not take a width.
 *
 * `sticky-header` wraps the header on all 441 pages;
 * `pickup-availability-preview` is on all 203 product pages.
 * ------------------------------------------------------------------------- */
sticky-header,
animated-images {
  display: block;
}

pickup-availability-preview {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* The banner block's own root. The app sets this and the capture kept the
   class but not the rule; the panel inside still positions correctly because
   its image wrapper is the positioned ancestor, but the root should not be
   left to default. */
[class*='ai-responsive-banner-'] {
  position: relative;
  display: block;
  width: 100%;
}

/* Collection cards on /pages/gallery carry these two, and the ported theme has
   no rule for either — `card__text-hover` is the hover treatment and
   `slider-mobile-gutter` the mobile inset. Both are Dawn utilities that did not
   survive the capture. */
.card__text-hover {
  transition: opacity 0.2s ease;
}

.card:hover .card__text-hover,
.card__text-hover:hover {
  opacity: 0.92;
}

@media screen and (max-width: 749px) {
  .slider-mobile-gutter {
    padding-inline: 1.5rem;
  }
}

/* ---------------------------------------------------------------------------
 * The invisible accent band
 *
 * `.color-accent-2` resolves to black on black:
 *
 *   --color-foreground = --color-base-solid-button-labels = 18, 18, 18
 *   --color-background = --color-base-accent-2            = 18, 18, 18
 *
 * Two sections on /pages/gallery use it — "Current Exhibitions" and "Art That
 * Lives Beyond the Wall" — and both render as solid black rectangles with their
 * headings hidden inside.
 *
 * This is NOT a migration regression: the live Shopify site ships the same two
 * token values and has the same two invisible blocks today. It is a theme
 * settings mistake we inherited exactly.
 *
 * An accent scheme is meant to be a dark band with light type, so the
 * foreground is repointed at the light base colour. Only the text colour
 * changes; the band stays black, and nothing else in the palette moves.
 * ------------------------------------------------------------------------- */
.color-accent-2 {
  --color-foreground: var(--color-base-background-1);
}

/* ---------------------------------------------------------------------------
 * /pages/neon-customiser — the coming-soon page
 *
 * The in-house customiser is not built yet and the Sign Customiser widget that
 * used to fill this page was JavaScript that did not survive the capture, so
 * the URL served an empty heading. It is in the URL contract, sits in the main
 * footer nav, is the only CTA on /pages/custom-neon-signs-near-me, and is where
 * /products/letter-customizer redirects — it cannot stay blank.
 * ------------------------------------------------------------------------- */
.customiser {
  max-width: 68rem;
}

.customiser__lede {
  font-size: 1.9rem;
  line-height: 1.6;
}

.customiser__cta {
  margin-block: 3.2rem 2.4rem;
}

.customiser__alt {
  font-size: 1.5rem;
  opacity: 0.8;
}

/* ---------------------------------------------------------------------------
 * image-with-text, adapt variant
 *
 * The theme styles .image-with-text__content but never the --adapt modifier,
 * which is what makes the text column match the image's height instead of
 * standing at its own. Used on five of the Custom Neons landing pages.
 * ------------------------------------------------------------------------- */
.image-with-text__content--adapt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* ---------------------------------------------------------------------------
 * .enquire — what replaced the captured forms
 *
 * Three forms came across in the capture. Two posted to Shopify's /contact,
 * which does not exist in this build, so they 404'd silently for the whole life
 * of the static site; the third relayed through formsubmit.co. All three are
 * now a WhatsApp CTA with email underneath, because that is the one channel the
 * gallery actually answers. See scripts/forms-to-whatsapp.mjs.
 *
 * The quote page carries its own inline styles — it was built as raw HTML in
 * the Shopify editor, not from the theme — so it does not use these classes.
 * ------------------------------------------------------------------------- */
.enquire {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  margin-block-start: 1.6rem;
}

.enquire__cta {
  /* The theme's .button is inline-block sized to its text; without this it
     stretches to the flex column's width on narrow screens. */
  align-self: flex-start;
}

.enquire__email {
  font-size: 1.5rem;
  opacity: 0.8;
}

/*
 * The VIP block sits on a background photograph, and the section's own captured
 * <style> paints its heading and subheading white. The email link has to match
 * or it disappears into the image.
 */
.enquire--on-image {
  align-items: center;
}

.enquire--on-image .enquire__email {
  color: #fff;
}

/* ---------------------------------------------------------------------------
 * Buttons: one shape, whatever generated them
 *
 * A survey of all 441 built pages found 1,334 button-ish elements in 14 class
 * combinations. 1,329 use the theme's `.button` and agree with each other. The
 * rest come from the AI app blocks, and every instance ships its own hashed
 * class with its own rules, so no two agree:
 *
 *   theme .button              15px (1.5rem), letter-spacing .1rem, square
 *   ai-responsive-banner       16px, no letter-spacing, 4px radius, hover #272727
 *   ai-responsive-banner (2)   same, but hover #423e3e
 *   ai-image-text              16px, weight 600, 4px radius, white on black
 *   ai-image-text (3 more)     no rule at all — a bare inline link
 *
 * On the homepage alone that is five different buttons. The px sizes also
 * ignore the root font-size the rest of the site scales with, and the blocks
 * shrink to 12px on mobile where theme buttons do not.
 *
 * Two rules, and the split between them is the whole trick:
 *
 * 1. Geometry and type, at `a[class*=…]` — specificity 0,1,1, which beats the
 *    per-instance `.ai-…-hash` rules at 0,1,0. Every AI button now has the
 *    theme's size, spacing, padding and square corners. The wrappers are divs,
 *    so the `a` keeps them out of it.
 *
 * 2. Colour, wrapped in `:where()` — specificity 0,0,0, so it loses to any
 *    per-instance rule. Instances that define their own colours keep them, and
 *    the ones with no rule at all stop rendering as bare text links.
 *
 * Deliberately not colour-normalised: several sit on dark photography and are
 * light-on-dark on purpose. Shape and type are what made them look unrelated.
 * ------------------------------------------------------------------------- */
a[class*="ai-image-text-button-"],
a[class*="ai-responsive-banner__button-"] {
  display: inline-block;
  padding: 0.9rem 3rem 1.1rem;
  border: 0.1rem solid transparent;
  border-radius: 0;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1rem;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

:where(
    a[class*="ai-image-text-button-"],
    a[class*="ai-responsive-banner__button-"]
  ) {
  background-color: rgba(var(--color-button), var(--alpha-button-background));
  color: rgb(var(--color-button-text));
}
