/* Precision Courts — Galleries (Courts + Murals)
   Shared design system. Everything is scoped to .pcg / .pcg-menu so it
   cannot restyle the rest of the site. Fonts are inherited from the site. */

.pcg,
.pcg-menu,
.pcg-lb {
  --pcg-ink: #0f1b3d;
  --pcg-ink-2: #4b5672;
  --pcg-line: #e1e5ee;
  --pcg-soft: #f4f6fa;
  --pcg-blue: #1f3a8f;      /* logo blue: focus rings */
  --pcg-accent: #e5582f;    /* site orange: small non-text marks only */
  --pcg-r: 5px;
  --pcg-max: 1320px;
  --pcg-gutter: clamp(20px, 4vw, 48px);
  --pcg-gap: clamp(14px, 1.8vw, 26px);
}

.pcg { color: var(--pcg-ink); background: #fff; }
.pcg *, .pcg *::before, .pcg *::after { box-sizing: border-box; }
.pcg img { max-width: 100%; }

.pcg-wrap {
  width: 100%;
  max-width: calc(var(--pcg-max) + 2 * var(--pcg-gutter));
  margin-inline: auto;
  padding-inline: var(--pcg-gutter);
}

.pcg-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.pcg :focus-visible,
.pcg-menu :focus-visible,
.pcg-lb :focus-visible {
  outline: 3px solid var(--pcg-blue);
  outline-offset: 3px;
  border-radius: var(--pcg-r);
}

/* ---------- Intro ---------- */
.pcg-intro__in {
  position: relative;
  padding-top: clamp(18px, 2.6vw, 32px);
  padding-bottom: clamp(22px, 3vw, 34px);
  /* hairline rule inset to the content edge */
  background: linear-gradient(var(--pcg-line), var(--pcg-line)) bottom center / calc(100% - 2 * var(--pcg-gutter)) 1px no-repeat;
}
/* small registration marks where the rule meets the content edge */
.pcg-intro__in::before,
.pcg-intro__in::after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 11px; height: 11px;
  background:
    linear-gradient(var(--pcg-ink), var(--pcg-ink)) center / 1px 100% no-repeat,
    linear-gradient(var(--pcg-ink), var(--pcg-ink)) center / 100% 1px no-repeat;
  opacity: .5;
}
.pcg-intro__in::before { left: calc(var(--pcg-gutter) - 5px); }
.pcg-intro__in::after  { right: calc(var(--pcg-gutter) - 5px); }

.pcg-crumbs { margin: 0 0 clamp(12px, 2vw, 20px); font-size: .8125rem; color: var(--pcg-ink-2); }
.pcg-crumbs a { color: inherit; text-underline-offset: 3px; }

.pcg-intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--pcg-gap);
  row-gap: 18px;
  align-items: end;
}
.pcg-title {
  grid-column: 1 / span 7;
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.35rem, 1.45rem + 3.3vw, 4.35rem);
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.pcg-intro__aside { grid-column: 8 / -1; }
.pcg-lede {
  margin: 0 0 18px;
  max-width: 50ch;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--pcg-ink-2);
}
@media (max-width: 900px) {
  .pcg-title, .pcg-intro__aside { grid-column: 1 / -1; }
}

/* One orchestrated entrance. CSS-only, so content is visible without JS. */
@media (prefers-reduced-motion: no-preference) {
  .pcg-reveal { animation: pcg-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .pcg-reveal--2 { animation-delay: .12s; }
  .pcg-reveal--3 { animation-delay: .22s; }
}
@keyframes pcg-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Actions ---------- */
.pcg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.pcg-btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 46px;
  padding: 6px 6px 6px 18px;
  border-radius: var(--pcg-r);
  background: var(--pcg-ink);
  color: #fff;
  font-weight: 700; font-size: .9375rem; line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s;
}
.pcg-btn:hover { background: #1c2b5c; }
.pcg-btn__tile {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: var(--pcg-r);
  background: var(--pcg-accent);
}
.pcg-btn__tile svg { width: 14px; height: 14px; }
.pcg-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  color: var(--pcg-ink); font-weight: 700; font-size: .9375rem;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.pcg-link:hover { text-decoration-color: var(--pcg-accent); }
.pcg-link svg { width: 14px; height: 14px; flex: none; }

/* ---------- Toolbar + filters ---------- */
.pcg-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px;
  padding-block: 16px 18px;
}
.pcg-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pcg-filters[hidden] { display: none; }
.pcg-filter {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  font: inherit; font-size: .875rem; font-weight: 600;
  color: var(--pcg-ink); background: #fff;
  border: 1px solid var(--pcg-line); border-radius: var(--pcg-r);
  transition: border-color .2s, background-color .2s, color .2s;
}
.pcg-filter:hover { border-color: #b9c1d4; }
.pcg-filter__n { color: var(--pcg-ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.pcg-filter[aria-pressed="true"] {
  background: var(--pcg-ink); border-color: var(--pcg-ink); color: #fff;
  box-shadow: inset 0 -2px 0 var(--pcg-accent);
}
.pcg-filter[aria-pressed="true"] .pcg-filter__n { color: #cfd5e6; }
.pcg-status { margin: 0; font-size: .875rem; color: var(--pcg-ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Grid: equal frames, one aspect ratio per page ---------- */
.pcg-grid {
  list-style: none; margin: 0; padding: 0 0 clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 36px) var(--pcg-gap);
}
@media (max-width: 639px) { .pcg-grid { grid-template-columns: minmax(0, 1fr); } }
.pcg-item[hidden] { display: none; }
.pcg-fig { margin: 0; }
.pcg-frame {
  position: relative; display: block;
  aspect-ratio: var(--pcg-frame, 3 / 2);
  overflow: hidden;
  border-radius: var(--pcg-r);
  background: var(--pcg-soft);
}
.pcg-frame img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pcg-focal, 50% 50%);
}
@media (prefers-reduced-motion: no-preference) {
  .pcg-frame img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
  .pcg-frame:hover img { transform: scale(1.025); }
}
.pcg-frame:focus-visible { outline-offset: 4px; }

.pcg-cap {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 14px; align-items: baseline;
  padding-top: 12px;
  font-size: .875rem; line-height: 1.4;
}
.pcg-idx {
  position: relative; padding-left: 14px;
  font-weight: 600; color: var(--pcg-ink-2); font-variant-numeric: tabular-nums;
}
.pcg-idx::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 2px; background: var(--pcg-accent);
}
.pcg-cap__title { font-weight: 700; color: var(--pcg-ink); }
.pcg-cap__tags { color: var(--pcg-ink-2); text-align: right; }
.pcg-cap__note { grid-column: 2 / -1; color: var(--pcg-ink-2); }
@media (max-width: 420px) {
  .pcg-cap { grid-template-columns: auto minmax(0, 1fr); }
  .pcg-cap__tags { grid-column: 2; text-align: left; }
}

/* ---------- Staging notices (murals until assets arrive) ---------- */
.pcg-pending {
  margin: 0 0 clamp(28px, 4vw, 48px);
  padding: 22px 24px;
  border: 1px dashed #b8c0d4; border-radius: var(--pcg-r);
  background: var(--pcg-soft);
  font-size: .9375rem; line-height: 1.55; color: var(--pcg-ink-2);
}
.pcg-pending strong { color: var(--pcg-ink); }

/* ---------- Artist intro (murals) ---------- */
.pcg-artist {
  display: grid;
  grid-template-columns: minmax(96px, 168px) minmax(0, 1fr);
  gap: 0 clamp(16px, 2vw, 26px);
  align-items: start;
}
.pcg-portrait {
  margin: 0;
  aspect-ratio: var(--pcg-portrait, 4 / 5);
  overflow: hidden;
  border-radius: var(--pcg-r);
  background: var(--pcg-soft);
}
.pcg-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pcg-focal, 50% 30%); }
.pcg-portrait--pending {
  display: grid; place-items: center; padding: 10px;
  border: 1px dashed #b8c0d4;
  font-size: .75rem; line-height: 1.4; text-align: center; color: var(--pcg-ink-2);
}
.pcg-artist .pcg-lede { margin-bottom: 14px; }
.pcg-artist__name { color: var(--pcg-ink); font-weight: 700; text-underline-offset: 4px; }
.pcg-artist__name:hover { text-decoration-color: var(--pcg-accent); }
@media (max-width: 900px) { .pcg-intro__aside .pcg-artist { max-width: 620px; } }
@media (max-width: 420px) { .pcg-artist { grid-template-columns: 104px minmax(0, 1fr); } }

/* ---------- Section heading above a grid ---------- */
.pcg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-block: 18px 16px; }
.pcg-head h2 { margin: 0; font-size: 1.125rem; font-weight: 800; letter-spacing: -.01em; }

/* ---------- Closing band ---------- */
.pcg-next__in {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px var(--pcg-gap); align-items: center;
  padding-block: clamp(26px, 3.6vw, 44px);
  border-top: 1px solid var(--pcg-line);
}
.pcg-next__copy { grid-column: 1 / span 6; }
.pcg-next__copy h2 { margin: 0 0 8px; font-size: clamp(1.55rem, 1.15rem + 1.4vw, 2.35rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.pcg-next__copy p { margin: 0; max-width: 52ch; line-height: 1.6; color: var(--pcg-ink-2); }
.pcg-next__act { grid-column: 8 / -1; }
@media (max-width: 900px) { .pcg-next__copy, .pcg-next__act { grid-column: 1 / -1; } }

/* ---------- Lightbox ---------- */
html.pcg-lock { overflow: hidden; }
.pcg-lb {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #fff; color: var(--pcg-ink);
}
.pcg-lb:not([open]) { display: none; }
.pcg-lb[open] {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "bar bar bar" "prev stage next" ". cap .";
}
.pcg-lb::backdrop { background: rgba(15, 27, 61, .35); }
@media (prefers-reduced-motion: no-preference) {
  .pcg-lb[open] { animation: pcg-fade .2s ease-out; }
  .pcg-lb__img { transition: opacity .2s; }
}
@keyframes pcg-fade { from { opacity: 0; } to { opacity: 1; } }

.pcg-lb__bar {
  grid-area: bar;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(12px, 2vw, 20px);
}
.pcg-lb__count { margin: 0; font-size: .875rem; font-weight: 600; color: var(--pcg-ink-2); font-variant-numeric: tabular-nums; }
.pcg-lb__stage {
  grid-area: stage; margin: 0; min-height: 0; min-width: 0;
  display: grid; place-items: center;
  padding: 4px 0;
}
.pcg-lb__img {
  display: block;
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--pcg-r);
}
.pcg-lb__img.is-loading { opacity: .35; }
.pcg-lb__cap {
  grid-area: cap;
  padding: 12px 0 18px;
  font-size: .9375rem; line-height: 1.5;
  text-align: center;
}
.pcg-lb__cap strong { display: block; font-weight: 700; }
.pcg-lb__cap span { color: var(--pcg-ink-2); }
.pcg-lb__btn {
  appearance: none; cursor: pointer;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  color: var(--pcg-ink); background: #fff;
  border: 1px solid var(--pcg-line); border-radius: var(--pcg-r);
  transition: background-color .2s, color .2s, border-color .2s;
}
.pcg-lb__btn:hover { background: var(--pcg-ink); border-color: var(--pcg-ink); color: #fff; }
.pcg-lb__btn svg { width: 18px; height: 18px; }
.pcg-lb__prev { grid-area: prev; align-self: center; justify-self: center; }
.pcg-lb__next { grid-area: next; align-self: center; justify-self: center; }
.pcg-lb__btn[hidden] { display: none; }
@media (max-width: 720px) {
  .pcg-lb[open] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "bar bar" "stage stage" "cap cap" "prev next";
  }
  .pcg-lb__stage { padding: 0 8px; }
  .pcg-lb__cap { padding: 10px 16px 6px; }
  .pcg-lb__prev { justify-self: end; margin: 0 6px 18px 0; }
  .pcg-lb__next { justify-self: start; margin: 0 0 18px 6px; }
}

/* ---------- Galleries navigation menu (goes in the site header) ---------- */
.pcg-menu { position: relative; }
.pcg-menu__btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0;
  background: none; border: 0;
  font: inherit; color: inherit; font-weight: inherit; letter-spacing: inherit;
}
.pcg-menu__btn svg { width: 10px; height: 10px; transition: transform .2s; }
.pcg-menu__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.pcg-menu__list {
  position: absolute; z-index: 60; top: 100%; left: 50%;
  transform: translateX(-50%);
  display: none;
  min-width: 236px; margin: 0; padding: 6px;
  list-style: none; text-align: left;
  background: #fff;
  border: 1px solid var(--pcg-line); border-radius: var(--pcg-r);
  box-shadow: 0 10px 28px rgba(15, 27, 61, .08);
}
.pcg-menu.is-open .pcg-menu__list { display: block; }
html:not(.pcg-js) .pcg-menu:focus-within .pcg-menu__list { display: block; }
@media (hover: hover) { html:not(.pcg-js) .pcg-menu:hover .pcg-menu__list { display: block; } }
.pcg-menu__list a {
  position: relative; display: block;
  padding: 10px 12px 10px 20px;
  border-radius: var(--pcg-r);
  color: var(--pcg-ink); text-decoration: none; font-weight: 700; line-height: 1.3;
}
.pcg-menu__list a small { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 400; color: var(--pcg-ink-2); }
.pcg-menu__list a:hover { background: var(--pcg-soft); }
.pcg-menu__list a[aria-current="page"]::before {
  content: ""; position: absolute; left: 8px; top: 18px; width: 6px; height: 2px; background: var(--pcg-accent);
}
/* Inside the site's mobile menu the list sits inline. Match this breakpoint
   to the site's existing mobile-nav breakpoint. */
@media (max-width: 1080px) {
  .pcg-menu__list { position: static; transform: none; min-width: 0; padding: 2px 0 6px 10px; border: 0; box-shadow: none; }
}

.pcg-skip{position:absolute;left:16px;top:-80px;z-index:100;background:white;padding:12px}.pcg-skip:focus{top:10px}
.pcg-murals .pcg-title{grid-column:1 / span 5}.pcg-murals .pcg-intro__aside{grid-column:6 / -1}
.pcg-murals .pcg-frame{aspect-ratio:1}.pcg-murals .pcg-frame img{object-fit:contain}
.pcg ~ .quick-quote-section .quick-quote-shell,.pcg ~ .quick-quote-section input,.pcg ~ .quick-quote-section select,.pcg ~ .quick-quote-section textarea{border-radius:5px}
@media(max-width:900px){.pcg-murals .pcg-title,.pcg-murals .pcg-intro__aside{grid-column:1/-1}}

.pcg ~ .quick-quote-section .quick-quote-points[hidden]{display:none}
