@import url("../fonts/fonts.css");

/* ==========================================================================
   PGDGC theme — direction B, "Bold & sporty" (chosen by the directors,
   2026-09-17). Source mockup: /home/pgdgc/design/BoldSporty.dc.html.
   Palette is the club logo's, sampled in SITE.md. Green is an accent, not
   the field: warm off-white carries the pages, gold does the emphasis.
   ========================================================================== */

:root {
  /* brand — the values in the club's own logo artwork (design/brand/*.svg),
     not the ones sampled off the tournament poster. Corrected 2026-09-17
     when the vector originals turned up in the club's Drive export. */
  --pg-ink:         #14181A;
  --pg-gold:        #F9B101;  /* the basket */
  --pg-gold-hover:  #E0A000;  /* a darker gold, so a hover never swaps the fill */
  --pg-gold-deep:   #B37D00;  /* large display text only — 3.4:1 on paper */
  --pg-gold-ink:    #8A6100;  /* text-sized gold — 5.2:1, passes AA */
  --pg-forest:      #195128;  /* the trees */
  --pg-footer:      #14401F;  /* the trees, darkened so cream reads on it */
  --pg-river:       #00426B;  /* the river */
  --pg-cream:       #F5EFDD;
  --pg-discord:     #5865F2;

  /* surfaces */
  --pg-paper:       #FBF8F0;
  --pg-card:        #FFFFFF;
  --pg-chip:        #F3F1EA;
  --pg-light:       #FDFBF5;

  /* text */
  --pg-body:        #3C443E;
  --pg-body-soft:   #4C544E;
  --pg-muted:       #626A64;
  --pg-muted-soft:  #6B736C;
  --pg-on-dark:     rgba(253, 251, 245, 0.82);

  /* lines */
  --pg-line:        rgba(20, 24, 26, 0.10);
  --pg-line-strong: rgba(20, 24, 26, 0.16);
  --pg-line-dark:   rgba(245, 239, 221, 0.16);

  /* metrics */
  --pg-max:         1440px;   /* the mockup's artboard width */
  --pg-gutter:      56px;
  /* Bands run the full width of the window; their contents stop at the
     artboard width and stay centred, so a wide screen gets a wider dark
     band rather than cream margins down both sides. */
  --pg-pad:         max(var(--pg-gutter), calc((100% - var(--pg-max) + var(--pg-gutter) * 2) / 2));
  --pg-rule:        3px;   /* the gold rule under the nav */
  --pg-accent:      5px;   /* the coloured edge on cards and rows */

  --pg-sans:        'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pg-cond:        'Barlow Condensed', 'Arial Narrow', 'Barlow', sans-serif;
}

/* --- base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pg-paper);
  color: var(--pg-ink);
  font-family: var(--pg-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--pg-gold-ink); text-decoration: none; }
a:hover, a:focus { color: var(--pg-ink); text-decoration: underline; }

:focus-visible { outline: 3px solid var(--pg-gold); outline-offset: 2px; }

.pg-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--pg-ink); color: var(--pg-cream);
  padding: 12px 20px; font-family: var(--pg-cond);
  font-size: 18px; font-weight: 700; text-transform: uppercase;
}
.pg-skip:focus { left: 0; color: var(--pg-cream); }

/* --- layout -------------------------------------------------------------- */

.pg-page { background: var(--pg-paper); }

.pg-container { padding-left: var(--pg-pad); padding-right: var(--pg-pad); }

.pg-band { padding-block: 62px 58px; }
.pg-band--tight { padding-block: 40px 36px; }
.pg-band--gold { background: var(--pg-gold); color: var(--pg-ink); }
.pg-band--ink  { background: var(--pg-ink);  color: var(--pg-light); }
.pg-band--chip { background: var(--pg-chip); }
.pg-band--cont { padding-block-start: 0; }   /* a band that carries on from the one above */

.pg-grid { display: grid; gap: 24px; }
.pg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-stack { display: flex; flex-direction: column; gap: 10px; }

/* --- typography ---------------------------------------------------------- */

.pg-cond,
.pg-page h1, .pg-page h2, .pg-page h3, .pg-page h4 {
  font-family: var(--pg-cond);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 700;
  line-height: 1.02;
}

.pg-page h1 { font-size: 64px; margin: 0 0 18px; }
.pg-page h2 { font-size: 46px; margin: 0 0 22px; }
.pg-page h3 { font-size: 32px; margin: 0 0 10px; }
.pg-page h4 { font-size: 24px; margin: 0 0 8px; }

.pg-eyebrow {
  font-family: var(--pg-cond);
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--pg-gold-ink);
  margin-bottom: 8px;
}
.pg-eyebrow--on-dark { color: var(--pg-gold); letter-spacing: 0.2em; font-size: 17px; }

.pg-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 26px;
}
.pg-section-head h2 { margin: 0; }
.pg-section-head .pg-more {
  font-family: var(--pg-cond); text-transform: uppercase;
  font-size: 19px; font-weight: 600; white-space: nowrap;
}

.pg-lead { font-size: 19px; line-height: 1.55; color: var(--pg-body-soft); }
.pg-note { font-size: 16px; color: var(--pg-muted-soft); margin: 0 0 26px; }
.pg-meta { font-size: 14px; color: var(--pg-muted); }

/* --- buttons ------------------------------------------------------------- */

.pg-btn {
  display: inline-block;
  font-family: var(--pg-cond);
  text-transform: uppercase;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  padding: 16px 34px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.pg-btn:hover, .pg-btn:focus { text-decoration: none; }

.pg-btn--gold  { background: var(--pg-gold); color: var(--pg-ink); }
.pg-btn--gold:hover, .pg-btn--gold:focus { background: var(--pg-gold-hover); color: var(--pg-ink); }

.pg-btn--dark  { background: var(--pg-ink); color: var(--pg-gold); }
.pg-btn--dark:hover, .pg-btn--dark:focus { background: var(--pg-forest); color: #FFFFFF; }

.pg-btn--ghost { border-color: rgba(253, 251, 245, 0.45); color: var(--pg-light); }
.pg-btn--ghost:hover, .pg-btn--ghost:focus { background: var(--pg-light); border-color: var(--pg-light); color: var(--pg-ink); }

.pg-btn--outline { border-color: var(--pg-ink); color: var(--pg-ink); }
.pg-btn--outline:hover, .pg-btn--outline:focus { background: var(--pg-ink); border-color: var(--pg-ink); color: var(--pg-gold); }

.pg-btn--sm { font-size: 18px; padding: 11px 24px; }
.pg-btn--block { display: block; width: 100%; text-align: center; }

.pg-navtoggle:hover, .pg-navtoggle:focus { background: var(--pg-gold-hover); }

.pg-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- header -------------------------------------------------------------- */

.pg-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pg-pad);
  background: var(--pg-ink);
  border-bottom: var(--pg-rule) solid var(--pg-gold);
}
.pg-header__brand { display: block; flex: none; }
.pg-header__brand img { height: 60px; width: auto; display: block; }

.pg-nav { display: flex; align-items: center; gap: 28px; }
.pg-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.pg-nav a {
  font-family: var(--pg-cond);
  text-transform: uppercase;
  font-size: 19px;
  font-weight: 600;
  color: var(--pg-light);
}
.pg-nav a:hover, .pg-nav a:focus { color: var(--pg-gold); text-decoration: none; }
.pg-nav li.nav-selected > a, .pg-nav li.nav-path-selected > a { color: var(--pg-gold); }

/* second-level pages hang off the top-level item */
.pg-nav li { position: relative; }
.pg-nav li ul {
  display: none; position: absolute; top: 100%; left: -18px; z-index: 40;
  flex-direction: column; align-items: stretch; gap: 0;
  min-width: 230px; padding: 8px 0;
  background: var(--pg-ink); border-top: var(--pg-rule) solid var(--pg-gold);
}
.pg-nav li:hover > ul, .pg-nav li:focus-within > ul { display: flex; }
.pg-nav li ul a { display: block; padding: 9px 18px; font-size: 18px; }

.pg-header__cta { flex: none; }

.pg-navtoggle {
  display: none;
  background: var(--pg-gold); color: var(--pg-ink);
  transition: background-color .12s ease;
  border: 0; padding: 10px 18px;
  font-family: var(--pg-cond); text-transform: uppercase;
  font-size: 19px; font-weight: 700; cursor: pointer;
}

/* --- hero ---------------------------------------------------------------- */

.pg-hero { position: relative; overflow: hidden; background: var(--pg-ink); }
.pg-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 48%;
}
.pg-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16, 19, 21, 0.95) 38%, rgba(16, 19, 21, 0.55) 100%);
}
.pg-hero__inner { position: relative; padding: 70px var(--pg-pad) 62px; }
.pg-hero__grid {
  display: grid; gap: 64px; align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.pg-hero__copy { color: var(--pg-light); }
.pg-hero__copy h1 { font-size: 92px; line-height: 0.92; margin: 0 0 22px; }
.pg-hero__copy h1 em { font-style: normal; color: var(--pg-gold); }
.pg-hero__copy p { font-size: 19px; line-height: 1.55; margin: 0 0 32px; color: var(--pg-on-dark); max-width: 530px; }

/* --- the "next up" card -------------------------------------------------- */

.pg-eventcard { background: var(--pg-light); border: 1px solid var(--pg-line-strong); }
.pg-eventcard__head {
  background: var(--pg-gold); color: var(--pg-ink);
  font-family: var(--pg-cond); text-transform: uppercase;
  font-size: 20px; font-weight: 700; padding: 12px 24px;
}
.pg-eventcard__body { padding: 24px 24px 26px; }
.pg-eventcard__when {
  font-family: var(--pg-cond); text-transform: uppercase;
  font-size: 46px; font-weight: 700; line-height: 1; margin-bottom: 5px;
}
.pg-eventcard__sub { font-size: 16px; color: var(--pg-muted); margin-bottom: 20px; }

.pg-deflist {
  display: flex; flex-direction: column; gap: 11px;
  margin: 0; font-size: 15px;
  border-top: 1px solid var(--pg-line-strong); padding-top: 18px;
}
.pg-deflist > div { display: flex; justify-content: space-between; gap: 16px; }
.pg-deflist dt { color: var(--pg-muted); }
.pg-deflist dd { margin: 0; font-weight: 600; text-align: right; }
.pg-deflist > div.pg-deflist__stacked { display: block; }
.pg-deflist__stacked dt { margin-bottom: 4px; }
.pg-deflist__stacked dd { text-align: left; }

/* --- fixture rows -------------------------------------------------------- */

.pg-fixture {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) 300px 150px 120px;
  gap: 22px; align-items: center;
  background: var(--pg-card);
  border: 1px solid var(--pg-line);
  border-left: var(--pg-accent) solid var(--pg-gold);
  padding: 22px 26px;
}
.pg-fixture__when {
  font-family: var(--pg-cond); text-transform: uppercase;
  font-size: 26px; font-weight: 700; color: var(--pg-gold-deep);
}
.pg-fixture__name {
  font-family: var(--pg-cond); text-transform: uppercase;
  font-size: 27px; font-weight: 700; line-height: 1;
}
.pg-fixture__blurb { font-size: 14px; color: var(--pg-muted-soft); margin-top: 4px; }
.pg-fixture__fact { font-size: 15px; color: var(--pg-body); }
.pg-fixture__fact small { color: var(--pg-muted-soft); font-size: inherit; }
.pg-fixture__link {
  font-family: var(--pg-cond); text-transform: uppercase;
  font-size: 17px; font-weight: 600;
}
.pg-fixture--members { border-left-color: var(--pg-forest); }

/* --- cards --------------------------------------------------------------- */

.pg-card {
  background: var(--pg-card);
  border: 1px solid var(--pg-line);
}
.pg-card__body { padding: 24px 28px 26px; }
.pg-card--topped { border-top: var(--pg-accent) solid var(--pg-gold); }
.pg-card--topped-blue { border-top: var(--pg-accent) solid var(--pg-river); }
.pg-card--topped-green { border-top: var(--pg-accent) solid var(--pg-forest); }

.pg-league { padding: 32px 32px 30px; }
.pg-league h3 { margin: 0 0 5px; font-size: 34px; }
.pg-league__when {
  font-family: var(--pg-cond); text-transform: uppercase;
  font-size: 18px; font-weight: 600; color: var(--pg-gold-ink); margin-bottom: 16px;
}
.pg-league p { font-size: 16px; line-height: 1.6; margin: 0 0 20px; color: var(--pg-body-soft); }

.pg-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  border-top: 1px solid var(--pg-line); padding-top: 18px;
}
.pg-stat__n {
  font-family: var(--pg-cond); text-transform: uppercase;
  font-size: 30px; font-weight: 700; color: var(--pg-forest); line-height: 1;
}
.pg-stat__l { font-size: 13px; color: var(--pg-muted-soft); }

.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--pg-line); padding-top: 18px; }
.pg-chip {
  font-family: var(--pg-cond); text-transform: uppercase;
  font-size: 15px; font-weight: 600;
  background: var(--pg-chip); color: var(--pg-body);
  padding: 6px 12px;
}

.pg-course__shot { height: 180px; overflow: hidden; }
.pg-course__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-course__shot--empty {
  background: var(--pg-chip);
  display: flex; align-items: center; justify-content: center;
}
.pg-course__shot--empty img { height: 88px; width: auto; opacity: 0.28; object-fit: contain; }
.pg-course p { font-size: 15px; line-height: 1.6; margin: 0 0 16px; color: var(--pg-body-soft); }
.pg-course .pg-more { font-family: var(--pg-cond); text-transform: uppercase; font-size: 17px; font-weight: 600; }

/* --- membership band ----------------------------------------------------- */

.pg-join { display: grid; gap: 68px; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.pg-join h2 { font-size: 58px; line-height: 1; margin: 0 0 12px; }
.pg-join p { font-size: 18px; line-height: 1.55; margin: 0 0 26px; }
.pg-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.pg-perk { border-top: 2px solid rgba(20, 24, 26, 0.3); padding-top: 13px; }
.pg-perk__t { font-family: var(--pg-cond); text-transform: uppercase; font-size: 21px; font-weight: 700; }
.pg-perk__d { font-size: 14px; line-height: 1.5; }

/* --- Discord feed -------------------------------------------------------- */

.pg-post {
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px;
  background: var(--pg-card);
  border: 1px solid var(--pg-line);
  border-left: var(--pg-accent) solid var(--pg-discord);
  padding: 22px 26px;
}
.pg-post__who { font-family: var(--pg-cond); text-transform: uppercase; font-size: 21px; font-weight: 700; }
.pg-post__when { font-size: 13px; color: var(--pg-muted); }
.pg-post__body { font-size: 16px; line-height: 1.6; color: var(--pg-body); }
.pg-post__body p { margin: 0 0 10px; }
.pg-post__body p:last-child { margin-bottom: 0; }

.pg-placeholder {
  border: 2px dashed var(--pg-line-strong);
  background: var(--pg-chip);
  padding: 26px 28px;
  color: var(--pg-muted);
  font-size: 15px;
}
.pg-placeholder strong { color: var(--pg-ink); }

/* --- interior page header ------------------------------------------------ */

.pg-pagehead {
  background: var(--pg-ink);
  border-bottom: var(--pg-rule) solid var(--pg-gold);
  padding: 52px var(--pg-pad) 46px;
  color: var(--pg-light);
}
.pg-pagehead h1 { margin: 0; font-size: 62px; }
.pg-pagehead .pg-eyebrow { color: var(--pg-gold); }
.pg-pagehead__crumbs { font-size: 14px; color: var(--pg-on-dark); margin-bottom: 10px; }
.pg-pagehead__crumbs a { color: var(--pg-gold); }
.pg-pagehead__crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.pg-pagehead__crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(253, 251, 245, 0.4); }

/* --- prose (content blocks) ---------------------------------------------- */

.pg-prose { font-size: 17px; line-height: 1.7; color: var(--pg-body); }
.pg-prose > p,
.pg-prose > ul,
.pg-prose > ol,
.pg-prose > blockquote,
.pg-prose > .pg-lead,
.pg-prose > .pg-note { max-width: 72ch; }
.pg-prose > :first-child { margin-top: 0; }
.pg-prose h2 { font-size: 40px; margin: 40px 0 16px; color: var(--pg-ink); }
.pg-prose h3 { font-size: 28px; margin: 32px 0 12px; color: var(--pg-ink); }
.pg-prose h4 { font-size: 22px; margin: 26px 0 10px; color: var(--pg-ink); }
.pg-prose p { margin: 0 0 18px; }
.pg-prose ul, .pg-prose ol { margin: 0 0 18px; padding-left: 22px; }
.pg-prose li { margin-bottom: 7px; }
.pg-prose ul { list-style: none; padding-left: 0; }
.pg-prose ul > li { position: relative; padding-left: 26px; }
.pg-prose ul > li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 9px; height: 9px; background: var(--pg-gold);
}
.pg-prose ul ul { margin-top: 7px; }
.pg-prose blockquote {
  margin: 0 0 20px; padding: 4px 0 4px 22px;
  border-left: var(--pg-accent) solid var(--pg-gold);
  font-size: 19px; color: var(--pg-ink);
}
.pg-prose hr { border: 0; border-top: 1px solid var(--pg-line); margin: 34px 0; }
.pg-prose img { height: auto; }
.pg-prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
.pg-prose th, .pg-prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--pg-line); }
.pg-prose th {
  font-family: var(--pg-cond); text-transform: uppercase;
  font-size: 18px; font-weight: 700;
  background: var(--pg-chip); border-bottom-color: var(--pg-line-strong);
}

/* --- footer -------------------------------------------------------------- */

.pg-footer {
  background: var(--pg-footer);
  border-top: var(--pg-rule) solid var(--pg-gold);
  padding: 52px var(--pg-pad) 38px;
  color: rgba(245, 239, 221, 0.75);
}
.pg-footer__grid {
  display: grid; gap: 48px;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  padding-bottom: 36px;
  border-bottom: 1px solid var(--pg-line-dark);
}
.pg-footer img { height: 102px; width: auto; display: block; margin-bottom: 14px; }
.pg-footer p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: rgba(245, 239, 221, 0.65); }
.pg-footer h2 {
  font-size: 18px; margin: 0 0 14px;
  color: var(--pg-gold);
}
.pg-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pg-footer a { color: rgba(245, 239, 221, 0.75); font-size: 14px; }
.pg-footer a:hover, .pg-footer a:focus { color: var(--pg-gold); }
.pg-footer__strong a { color: var(--pg-cream); font-weight: 600; }
.pg-footer__legal {
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  font-size: 13px; color: rgba(245, 239, 221, 0.45);
}
.pg-footer__legal a { font-size: 13px; color: rgba(245, 239, 221, 0.45); }

/* --- core block and form styling ----------------------------------------- */

.pg-page .ccm-block-page-title h1 { margin: 0 0 22px; }

.pg-page label { font-family: var(--pg-cond); text-transform: uppercase; font-weight: 600; font-size: 18px; }
.pg-page input[type="text"], .pg-page input[type="email"], .pg-page input[type="tel"],
.pg-page input[type="url"], .pg-page input[type="number"], .pg-page input[type="password"],
.pg-page select, .pg-page textarea {
  font-family: var(--pg-sans); font-size: 17px;
  padding: 11px 14px; width: 100%;
  background: var(--pg-card);
  border: 1px solid var(--pg-line-strong);
  color: var(--pg-ink);
}
.pg-page .btn, .pg-page button[type="submit"], .pg-page input[type="submit"] {
  font-family: var(--pg-cond); text-transform: uppercase;
  font-size: 20px; font-weight: 700;
  background: var(--pg-gold); color: var(--pg-ink);
  border: 0; padding: 14px 30px; cursor: pointer;
}
.pg-page .alert { padding: 16px 20px; border-left: var(--pg-accent) solid var(--pg-gold); background: var(--pg-chip); margin-bottom: 20px; }
.pg-page .alert-danger { border-left-color: #A6301F; }
.pg-page .alert-success { border-left-color: var(--pg-forest); }

/* Concrete's edit mode needs room to click into empty areas. */
.ccm-edit-mode .pg-hero__inner, .ccm-edit-mode .ccm-area-empty { min-height: 60px; }
.ccm-edit-mode .pg-band { padding-block: 30px; }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1200px) {
  :root { --pg-gutter: 40px; }
  .pg-hero__copy h1 { font-size: 74px; }
  .pg-page h1 { font-size: 54px; }
  .pg-page h2 { font-size: 40px; }
  .pg-join h2 { font-size: 48px; }
  .pg-pagehead h1 { font-size: 52px; }
  .pg-fixture { grid-template-columns: 130px minmax(0, 1fr) 220px 110px 110px; gap: 16px; }
  .pg-footer__grid { gap: 32px; }
}

@media (max-width: 1080px) {
  .pg-header { flex-wrap: wrap; }
  .pg-navtoggle { display: block; }
  .pg-nav {
    display: none; order: 3; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding-top: 14px; border-top: 1px solid var(--pg-line-dark); margin-top: 14px;
  }
  .pg-nav.is-open { display: flex; }
  .pg-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .pg-nav > ul > li > a { display: block; padding: 12px 0; border-bottom: 1px solid var(--pg-line-dark); font-size: 22px; }
  .pg-nav li ul {
    display: flex; position: static; min-width: 0;
    padding: 0 0 8px 18px; border-top: 0; background: transparent;
  }
  .pg-nav li ul a { padding: 8px 0; font-size: 19px; color: var(--pg-on-dark); }
  .pg-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pg-hero__copy p { max-width: none; }
  .pg-join { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pg-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --pg-gutter: 28px; }
  body { font-size: 16px; }
  .pg-band { padding-block: 44px 40px; }
  .pg-hero__inner { padding: 48px var(--pg-pad) 44px; }
  .pg-hero__copy h1 { font-size: 56px; }
  .pg-page h1 { font-size: 44px; }
  .pg-page h2 { font-size: 34px; }
  .pg-page h3 { font-size: 27px; }
  .pg-pagehead { padding: 36px var(--pg-pad) 32px; }
  .pg-pagehead h1 { font-size: 42px; }
  .pg-grid--2, .pg-grid--3, .pg-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .pg-fixture { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 22px; }
  .pg-fixture__link { margin-top: 6px; }
  .pg-post { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pg-join h2 { font-size: 42px; }
  .pg-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 620px) {
  .pg-hero__copy h1 { font-size: 44px; }
  .pg-page h1 { font-size: 36px; }
  .pg-page h2 { font-size: 30px; }
  .pg-join h2 { font-size: 34px; }
  .pg-btn { font-size: 19px; padding: 14px 24px; }
  .pg-btn-row { flex-direction: column; align-items: stretch; }
  .pg-btn-row .pg-btn { text-align: center; }
  .pg-perks { grid-template-columns: minmax(0, 1fr); }
  .pg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  /* Badge, Menu and Join have to share one line down here, or Join wraps
     onto a row of its own and leaves a hole beside Menu. */
  .pg-header { gap: 12px; }
  .pg-header__brand img { height: 46px; }
  .pg-navtoggle,
  .pg-header__cta .pg-btn { font-size: 16px; padding: 9px 14px; }
  .pg-eventcard__when { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- the Discord mirror, wearing the club's colours ----------------------
   The pgdgc_discord package ships a theme-neutral stylesheet that inherits
   from whatever page it lands on. These are the few places where inheriting
   is not enough: the bubbles should read as the same white cards the rest of
   the page uses, and the byline belongs in the condensed face.
   ------------------------------------------------------------------------ */

.pg-page .pgdgc-discord-feed,
.pg-page .pgdgc-discord-intro,
.pg-page .pgdgc-discord-image {
  --pgdgc-line: var(--pg-line);
  --pgdgc-fill: var(--pg-card);
  --pgdgc-soft: var(--pg-chip);
  --pgdgc-brand: var(--pg-discord);
}

.pg-page .pgdgc-discord-intro { background: var(--pg-chip); font-size: 16px; }

.pg-page .pgdgc-discord-bubble {
  background: var(--pg-card);
  border-radius: 0;
  border-left: var(--pg-accent) solid var(--pg-discord);
  font-size: 16px;
  color: var(--pg-body);
}
.pg-page .pgdgc-discord-message--grouped .pgdgc-discord-bubble { border-radius: 0; }
.pg-page .pgdgc-discord-bubble:hover { background: var(--pg-card); }

.pg-page .pgdgc-discord-author {
  font-family: var(--pg-cond);
  text-transform: uppercase;
  font-size: 21px;
  font-weight: 700;
  color: var(--pg-ink);
}
.pg-page .pgdgc-discord-meta { color: var(--pg-muted); opacity: 1; }
.pg-page .pgdgc-discord-avatar { border-radius: 0; }
.pg-page .pgdgc-discord-img { border-radius: 0; max-width: 520px; }
.pg-page .pgdgc-discord-image .pgdgc-discord-img { max-width: 100%; }

/* The package's dark-mode block would fight the theme, which has one palette. */
@media (prefers-color-scheme: dark) {
  .pg-page .pgdgc-discord-feed,
  .pg-page .pgdgc-discord-intro,
  .pg-page .pgdgc-discord-image {
    --pgdgc-line: var(--pg-line);
    --pgdgc-fill: var(--pg-card);
    --pgdgc-soft: var(--pg-chip);
  }
}

/* --- course and event cards ---------------------------------------------
   Used on /courses and /events, where a wall of prose was doing a job a set
   of cards does better: the facts a visitor actually wants (how long is a
   round, how far do I walk, is there a toilet) read at a glance.
   ------------------------------------------------------------------------ */

.pg-coursecard { display: flex; flex-direction: column; }
.pg-coursecard .pg-card__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.pg-coursecard h3 { margin: 0 0 14px; }
.pg-coursecard p { font-size: 16px; line-height: 1.6; margin: 0 0 16px; color: var(--pg-body-soft); }
.pg-coursecard .pg-btn { margin-top: auto; align-self: flex-start; }

.pg-course__shot--tall { height: 250px; }
.pg-course__shot--tall.pg-course__shot--empty img { height: 130px; }

/* The facts strip: label above value, two across, tight. */
.pg-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 0 0 18px;
  padding: 16px 0;
  border-top: 1px solid var(--pg-line);
  border-bottom: 1px solid var(--pg-line);
}
.pg-facts > div { margin: 0; }
.pg-facts dt {
  font-family: var(--pg-cond);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--pg-muted);
  margin-bottom: 2px;
}
.pg-facts dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--pg-ink); line-height: 1.35; }

.pg-chips--quiet { border-top: 0; padding-top: 0; margin-bottom: 18px; }
.pg-chip--plain { background: transparent; border: 1px solid var(--pg-line-strong); color: var(--pg-muted); }

/* A warning that belongs to one card rather than the page. */
.pg-cardnote {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--pg-chip);
  border-left: var(--pg-accent) solid var(--pg-gold);
  font-size: 15px;
  line-height: 1.5;
  color: var(--pg-body);
}

/* --- social links --------------------------------------------------------- */

.pg-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.pg-social a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--pg-line-strong);
  font-family: var(--pg-cond);
  text-transform: uppercase;
  font-size: 17px;
  font-weight: 600;
  color: var(--pg-ink);
}
.pg-social a:hover, .pg-social a:focus { background: var(--pg-ink); border-color: var(--pg-ink); color: var(--pg-gold); text-decoration: none; }
.pg-social svg { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* In the footer they sit on the green band, so they borrow its palette. */
.pg-footer .pg-social a {
  border-color: var(--pg-line-dark);
  color: var(--pg-cream);
  font-size: 16px;
  padding: 8px 12px;
}
.pg-footer .pg-social a:hover, .pg-footer .pg-social a:focus { background: var(--pg-gold); border-color: var(--pg-gold); color: var(--pg-ink); }

.pg-footer__brand { display: inline-block; }
.pg-footer__brand:hover img, .pg-footer__brand:focus img { opacity: .82; }

@media (max-width: 620px) {
  .pg-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pg-course__shot--tall { height: 200px; }
}
/* --- sponsor strip --------------------------------------------------------
   Sponsors who paid for the Rainbow Park baskets were promised placement on
   this site, so the strip sits above the footer on every page, the way the old
   site carried it. The logos are white knockouts, hence the dark band.
   ------------------------------------------------------------------------- */

.pg-sponsors {
  background: var(--pg-ink);
  border-top: var(--pg-rule) solid var(--pg-gold);
  padding: 44px var(--pg-pad) 40px;
  color: var(--pg-on-dark);
}
.pg-sponsors__intro {
  max-width: 68ch;
  margin: 0 auto 28px;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
}
.pg-sponsors__intro strong { color: var(--pg-light); }
.pg-sponsors__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 46px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pg-sponsors__grid img {
  width: auto;
  display: block;
  opacity: .88;
  transition: opacity .15s ease;
}

/* Sponsors bought a size, so the tiers are the sizes. Gold sits alone on its
   own row; silver and bronze share theirs. */
.pg-sponsors__grid--gold   { gap: 22px 40px; margin-bottom: 34px; }
.pg-sponsors__grid--gold img   { height: 74px; }
.pg-sponsors__grid--silver { gap: 22px 44px; margin-bottom: 30px; }
.pg-sponsors__grid--silver img { height: 48px; }
.pg-sponsors__grid--bronze img { height: 32px; }

.pg-sponsors__tier {
  text-align: center;
  font-family: var(--pg-cond);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
  font-weight: 600;
  color: var(--pg-gold);
  margin: 0 0 12px;
}
.pg-sponsors__grid a:hover img,
.pg-sponsors__grid a:focus img { opacity: 1; }

@media (max-width: 860px) {
  .pg-sponsors { padding: 34px var(--pg-pad) 30px; }
  .pg-sponsors__grid { gap: 20px 28px; }
  .pg-sponsors__grid--gold img   { height: 54px; }
  .pg-sponsors__grid--silver img { height: 36px; }
  .pg-sponsors__grid--bronze img { height: 26px; }
}

/* A dark band breaks up a run of pale sections. Only the band's own heading
   and links invert — the white cards inside keep their dark type. */
.pg-band--ink > .pg-section-head h2,
.pg-band--ink > h2 { color: var(--pg-light); }
.pg-band--ink > .pg-section-head .pg-more { color: var(--pg-gold); }
.pg-band--ink > .pg-section-head .pg-more:hover,
.pg-band--ink > .pg-section-head .pg-more:focus { color: var(--pg-light); }
.pg-band--ink > .pg-note { color: var(--pg-on-dark); }

/* A card on a dark band is still a white card: it must not inherit the band's
   light text colour, or its headings vanish into the paper. */
.pg-band--ink .pg-card { color: var(--pg-body); }
.pg-band--ink .pg-card h2,
.pg-band--ink .pg-card h3,
.pg-band--ink .pg-card h4 { color: var(--pg-ink); }
.pg-band--ink .pg-card .pg-stat__n { color: var(--pg-forest); }

/* A card image that has to be read rather than admired — the course map sign.
   Cropping it would cut off the very thing it is there for, so it gets its own
   wrapper rather than .pg-course__shot: that class carries an object-fit:cover
   rule for photographs, and this is not a photograph, it is a document. */
.pg-cardmap {
  height: 250px;
  background: var(--pg-chip);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}
.pg-cardmap img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }

@media (max-width: 620px) {
  .pg-cardmap { height: 200px; }
}
