/* Pop Pickers Gigs – deliberately light so it inherits your theme's fonts and colours.
   Change the accent by adding e.g. `:root{--ppg-accent-override:#0057b8}` in Appearance → Customise → Additional CSS. */

.ppg-list, .ppg-cal, .ppg-single, .ppg-next, .ppg-map, .ppg-featured-venue {
	--ppg-accent: var(--ppg-accent-override, #c8102e);
	--ppg-border: rgba(0, 0, 0, .12);
	--ppg-muted: rgba(0, 0, 0, .6);
}

/* List */
.ppg-month { margin: 1.6em 0 .5em; font-size: 1.15em; border-bottom: 2px solid var(--ppg-accent); padding-bottom: .25em; }
.ppg-item { display: flex; align-items: center; gap: 1em; padding: .85em 0; border-bottom: 1px solid var(--ppg-border); }
.ppg-date { flex: 0 0 4.2em; text-align: center; line-height: 1.1; border: 1px solid var(--ppg-border); border-radius: 6px; padding: .35em 0; }
.ppg-date__dow, .ppg-date__mon { display: block; font-size: .75em; text-transform: uppercase; letter-spacing: .05em; color: var(--ppg-muted); }
.ppg-date__day { display: block; font-size: 1.6em; font-weight: 700; color: var(--ppg-accent); }
.ppg-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.ppg-body { flex: 1 1 auto; min-width: 0; }
.ppg-title { margin: 0 0 .2em; font-size: 1.05em; }
.ppg-title a { text-decoration: none; }
.ppg-meta { margin: 0; color: var(--ppg-muted); font-size: .92em; }
.ppg-sep { margin: 0 .35em; }
.ppg-empty { font-style: italic; }

.ppg-item--cancelled .ppg-title a, .ppg-item--cancelled .ppg-meta { text-decoration: line-through; opacity: .7; }
.ppg-badge { display: inline-block; font-size: .7em; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15em .5em; border-radius: 3px; vertical-align: middle; color: #fff; background: #555; text-decoration: none; }
.ppg-badge--cancelled { background: #b32d2e; }
.ppg-badge--postponed { background: #b26200; }

/* Buttons */
.ppg-btn { display: inline-block; padding: .5em 1em; border: 1px solid var(--ppg-accent); line-height: 1.4; border-radius: 4px; background: var(--ppg-accent); color: #fff !important; text-decoration: none !important; font-size: .9em; font-weight: 600; white-space: nowrap; }
.ppg-btn:hover { filter: brightness(1.1); }
.ppg-btn--icon { display: inline-flex; align-items: center; gap: .45em; }
.ppg-btn--icon svg { flex: 0 0 auto; }
.ppg-btn--ghost { background: transparent; color: var(--ppg-accent) !important; border: 1px solid var(--ppg-accent); }

/* Next gig */
.ppg-next { border: 2px solid var(--ppg-accent); border-radius: 8px; padding: .5em 1em; }
.ppg-next__label { margin: .3em 0 0; font-weight: 700; text-transform: uppercase; font-size: .8em; letter-spacing: .08em; color: var(--ppg-accent); }
.ppg-next .ppg-item { border-bottom: 0; }

/* Single gig */
.ppg-hero { margin: 0 0 1.25em; text-align: center; }
.ppg-hero a { display: inline-block; }
.ppg-hero__img { display: block; max-width: 100%; height: auto; max-height: 520px; width: auto; margin: 0 auto; border-radius: 8px; }
.ppg-single { border: 1px solid var(--ppg-border); border-radius: 8px; padding: 1em 1.25em; margin-bottom: 1.5em; }
.ppg-single__facts { display: grid; grid-template-columns: 5em 1fr; gap: .6em 1em; margin: .5em 0 1em; }
.ppg-single__facts dt { font-weight: 700; margin: 0; }
.ppg-single__facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ppg-org__text { min-width: 0; }
.ppg-venue-dd.has-photo { display: flex; align-items: flex-start; gap: .75em; }
.ppg-venue__photo-link { flex: 0 0 auto; }
.ppg-venue__photo { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--ppg-border); }
.ppg-venue__text { min-width: 0; }
.ppg-org.has-logo { display: flex; align-items: flex-start; gap: .75em; }
.ppg-org__logo { display: block; width: 64px; height: 64px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--ppg-border); flex: 0 0 auto; }
.ppg-org__logo-link { flex: 0 0 auto; }
.ppg-single__actions { display: flex; flex-wrap: wrap; gap: .5em; margin: 0; }

/* Map */
.ppg-map { margin-top: 1em; border-radius: 8px; overflow: hidden; border: 1px solid var(--ppg-border, rgba(0,0,0,.12)); }
.ppg-map iframe { display: block; width: 100%; border: 0; }
.ppg-map--consent { display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(0, 0, 0, .04); }
.ppg-map--consent p { margin: .6em 0 0; font-size: .85em; opacity: .7; }
.ppg-featured-venue .ppg-map { margin-bottom: 1em; }

/* Calendar */
.ppg-cal__nav { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin-bottom: .5em; }
.ppg-cal__nav a { text-decoration: none; white-space: nowrap; }
.ppg-cal__title { margin: 0; font-size: 1.3em; text-align: center; }
.ppg-cal__grid { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0 0 1em; }
.ppg-cal__grid th { font-size: .8em; text-transform: uppercase; padding: .4em 0; text-align: center; }
.ppg-cal__grid td { border: 1px solid var(--ppg-border); vertical-align: top; height: 5.5em; padding: .3em; overflow: hidden; }
.ppg-cal__pad { background: rgba(0, 0, 0, .03); }
.ppg-cal__num { display: block; font-size: .8em; color: var(--ppg-muted); }
.ppg-cal__day.is-today .ppg-cal__num { color: var(--ppg-accent); font-weight: 700; }
.ppg-cal__day.has-gig { background: rgba(200, 16, 46, .06); }
.ppg-cal__gig { display: block; margin-top: .2em; padding: .15em .3em; border-radius: 3px; background: var(--ppg-accent); color: #fff !important; font-size: .75em; line-height: 1.25; text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppg-cal__gig.is-cancelled { background: #888; text-decoration: line-through !important; }

@media (max-width: 640px) {
	.ppg-item { display: grid; grid-template-columns: 4.2em 1fr; gap: .4em 1em; align-items: start; }
	.ppg-item > .ppg-btn { grid-column: 2; justify-self: start; }
	.ppg-thumb { display: none; }
	/* On phones the grid just shows dots; the list underneath has the detail. */
	.ppg-cal__grid td { height: 3em; }
	.ppg-cal__gig { font-size: 0; width: 8px; height: 8px; padding: 0; border-radius: 50%; display: inline-block; }
}

/* Upcoming gigs preview */
.ppg-preview { --ppg-accent: var(--ppg-accent-override, #c8102e); --ppg-border: rgba(0, 0, 0, .12); --ppg-muted: rgba(0, 0, 0, .6); }
.ppg-preview__heading { margin: 0 0 .6em; }
.ppg-preview__list { list-style: none; margin: 0; padding: 0; }
.ppg-preview__item { margin: 0; border-bottom: 1px solid var(--ppg-border); display: flex; align-items: center; gap: .75em; }
.ppg-preview__item:last-child { border-bottom: 0; }
.ppg-preview__item > a:first-child { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .9em; padding: .6em .2em; text-decoration: none !important; color: inherit; border-radius: 6px; }
.ppg-preview__item > a:first-child:hover { background: rgba(0, 0, 0, .035); }
.ppg-preview__date { flex: 0 0 3.4em; text-align: center; line-height: 1.05; background: var(--ppg-accent); color: #fff; border-radius: 6px; padding: .35em 0; }
.ppg-preview__dow, .ppg-preview__mon { display: block; font-size: .68em; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.ppg-preview__day { display: block; font-size: 1.35em; font-weight: 700; }
.ppg-preview__text { min-width: 0; }
.ppg-preview__title { display: block; font-weight: 600; }
.ppg-preview__sub { display: block; font-size: .88em; color: var(--ppg-muted); }
.ppg-preview .ppg-item--cancelled .ppg-preview__date { background: #888; }
.ppg-preview .ppg-item--cancelled .ppg-preview__title, .ppg-preview .ppg-item--cancelled .ppg-preview__sub { text-decoration: line-through; opacity: .7; }
.ppg-preview__more { margin: 1em 0 0; }

/* Visually hidden text for screen readers (in case the theme doesn't define it). */
.ppg-single .screen-reader-text, .ppg-item .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ppg-preview__tickets { flex: 0 0 auto; padding: .35em .85em; font-size: .85em; }
.ppg-preview .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
@media (max-width: 480px) {
	.ppg-preview__item { flex-wrap: wrap; gap: 0; }
	.ppg-preview__item > a:first-child { flex-basis: 100%; }
	.ppg-preview__tickets { margin: -.2em 0 .7em calc(3.4em / .85 + 1.3em); }
}

@media (max-width: 480px) {
	.ppg-single__facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.ppg-single__facts dt { font-size: .78em; text-transform: uppercase; letter-spacing: .06em; color: var(--ppg-muted); margin-top: .8em; }
	.ppg-single__facts dt:first-child { margin-top: 0; }
	.ppg-org__logo, .ppg-venue__photo { width: 52px; height: 52px; }
	.ppg-org.has-logo { align-items: flex-start; }
}
