/* Public content: news, blog, standing pages and the gallery. */

.cwrap { padding: 42px 0 70px; }

.chead { max-width: 62ch; margin-bottom: 30px; }
.chead__title { font-family: var(--font-display, inherit); font-size: 2.1rem; margin: 0 0 10px; letter-spacing: -.6px; }
.chead__lead { color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin: 0; }

/* ---- listings ---- */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.cgrid--tight { gap: 14px; }

.ccard {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--card); transition: transform .16s ease, box-shadow .16s ease;
}
.ccard:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 23, 42, .09); }
.ccard__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.ccard__top { height: 168px; background: var(--sk-base, #E9EEF5); }
.ccard__top > img { width: 100%; height: 100%; object-fit: cover; }
.ccard__body { padding: 16px 17px 18px; display: grid; gap: 8px; align-content: start; }
.ccard__pin {
  justify-self: start; font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--court);
  background: var(--court-tint); border-radius: 999px; padding: 3px 9px;
}
.ccard__title { font-size: 1.07rem; line-height: 1.4; margin: 0; letter-spacing: -.2px; }
.ccard__sum { color: var(--muted); font-size: .89rem; line-height: 1.6; margin: 0; }
.ccard__meta { color: var(--muted); font-size: .78rem; margin: 2px 0 0; }

.cpager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 30px; }
.cpager__at { color: var(--muted); font-size: .86rem; }

.cempty {
  border: 1px dashed var(--border-strong); border-radius: 14px;
  padding: 44px 28px; text-align: center; color: var(--muted); line-height: 1.75;
}
.cempty p { margin: 0 0 6px; }
.cempty strong { color: var(--ink); }

/* ---- a single post ---- */
.cpost { max-width: 72ch; margin: 0 auto; }
.cpost--page { max-width: 76ch; }
.cpost__title { font-size: 2.2rem; line-height: 1.22; margin: 10px 0 10px; letter-spacing: -.7px; }
.cpost__meta { color: var(--muted); font-size: .86rem; margin: 0 0 26px; }
/* A floor as well as a ceiling: a small upload should still read as a cover
   image rather than a thin sliver across the page. */
.cpost__cover { border-radius: 14px; margin-bottom: 28px; height: clamp(180px, 34vw, 420px); }
.cpost__cover > img { width: 100%; height: 100%; object-fit: cover; }

/* The rendered Markdown. Generous line length and spacing: this is for reading. */
.prose { font-size: 1.02rem; line-height: 1.8; color: var(--ink-2, var(--ink)); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.45rem; line-height: 1.35; margin: 36px 0 12px; color: var(--ink); letter-spacing: -.3px; }
.prose h3 { font-size: 1.18rem; margin: 28px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--court); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  margin: 22px 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--court); color: var(--muted);
}
.prose code {
  background: var(--paper); padding: 2px 6px; border-radius: 5px;
  font-family: "IBM Plex Mono", monospace; font-size: .88em;
}
.prose pre { background: var(--paper); padding: 16px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

.cmore { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--border); }
.cmore__title { font-size: 1.12rem; margin: 0 0 16px; }

/* ---- gallery ---- */
.galfilter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.galfilter__btn {
  font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer;
  padding: 7px 15px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--card); color: var(--ink);
}
.galfilter__btn.is-on { background: var(--court); border-color: var(--court); color: #fff; font-weight: 600; }

.pgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.pgal__item { margin: 0; display: grid; gap: 7px; }
.pgal__open {
  display: block; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 12px; height: 190px; width: 100%;
  background: var(--sk-base, #E9EEF5);
}
.pgal__open > img { width: 100%; height: 100%; object-fit: cover; }
.pgal__open:focus-visible { outline: 2px solid var(--court); outline-offset: 3px; }
.pgal__item figcaption { color: var(--muted); font-size: .82rem; line-height: 1.5; }

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 11, 16, .88);
  display: grid; place-items: center; padding: 32px;
}
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: 12px; justify-items: center; }
.lightbox__fig img { max-width: 100%; max-height: 80vh; border-radius: 10px; display: block; }
.lightbox__fig figcaption { color: #E8EDF5; font-size: .9rem; text-align: center; max-width: 60ch; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px;
  inline-size: 40px; block-size: 40px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 1.6rem; line-height: 1;
  background: rgba(255, 255, 255, .14); color: #fff;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .24); }

/* The announcement strip used to be styled here, but it appears on the
   landing page and the booking pages too, and those do not load this
   file - so the bar rendered unstyled everywhere except the article
   pages. Its styles now live in site-desktop.css, which every page
   that includes _AnnouncementBar loads. */

@media (max-width: 700px) {
  .cpost__title { font-size: 1.6rem; }
  .chead__title { font-size: 1.65rem; }
  .cwrap { padding: 28px 0 50px; }
}

/* Gallery captions name the venue under the photo. */
.pgal__item figcaption { display: grid; gap: 2px; }
.pgal__cap { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.pgal__venue { color: var(--court); font-size: .74rem; font-weight: 600; }

/* ---- the gallery viewer's controls ----
   Added when the viewer learned to move between photos: a counter so you know
   where you are in the set, and arrows that sit clear of the photo itself. */
.lightbox { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox__bar {
  position: absolute; inset: 0 0 auto; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
}
.lightbox__count {
  color: #E8EDF5; font-size: .82rem; opacity: .75;
  font-variant-numeric: tabular-nums;
}
.lightbox__close { margin-left: auto; }

.lightbox__nav {
  z-index: 2; flex: none; inline-size: 46px; block-size: 46px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 1.7rem; line-height: 1;
  display: grid; place-items: center;
  transition: background .15s ease;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox__nav[disabled] { opacity: .25; cursor: default; }
.lightbox__nav:focus-visible,
.lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Phones: the swipe is the control, so the arrows only take up room on
   pointer devices. The photo gets the full width instead. */
@media (max-width: 700px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { display: none; }
  .lightbox__fig img { max-height: 72vh; }
}

/* The venue page shows the same tiles in a narrower column than the gallery
   page, so it gets a tighter grid rather than three big photos per row. */
.pgal--venue { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.pgal--venue .pgal__open { aspect-ratio: 4 / 3; }
