/* Philly Media Group: shared chassis. Tokens first, so themes can read them. */
:root {
	--pmg-ink: #101318;
	--pmg-muted: #5e6570;
	--pmg-rule: #dedad1;
	--pmg-paper: #f6f4ef;
	--pmg-card: #ffffff;
	--pmg-radius: 10px;
	--pmg-display: Oswald, "Arial Narrow", Impact, sans-serif;
	--pmg-ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--pmg-accent: #101318;
	--pmg-on-accent: #ffffff;
}
body.pmg-site-tailgates { --pmg-accent: #1e5b3a; }
body.pmg-site-beer      { --pmg-accent: #13203a; }
body.pmg-site-news      { --pmg-accent: #1d4e89; }
body.pmg-site-sports    { --pmg-accent: #d7192d; }

/* Hide each theme's old network bar once ours is on. */
.pmg-has-bar .network-bar,
.pmg-has-bar .pn-network-bar { display: none !important; }

/* Network bar */
.pmg-bar {
	background: var(--pmg-ink);
	color: #e9e7e1;
	font: 500 13px/1.3 var(--pmg-ui);
	position: relative;
	z-index: 100;
}
.pmg-bar__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 8px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
}
.pmg-bar__label {
	font: 500 12px/1 var(--pmg-display);
	letter-spacing: 0.12em;
	color: #b8bcc4;
}
.pmg-bar a.pmg-bar__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #c9cdd4;
	text-decoration: none;
	min-height: 24px;
}
.pmg-bar a.pmg-bar__link:hover,
.pmg-bar a.pmg-bar__link:focus-visible { color: #fff; text-decoration: underline; }
.pmg-bar a.pmg-bar__link.is-current { color: #fff; font-weight: 700; }
.pmg-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: 0 0 8px;
}

/* Buttons */
.pmg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 6px;
	background: var(--pmg-accent);
	color: var(--pmg-on-accent) !important;
	font: 600 15px/1 var(--pmg-display);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none !important;
}
.pmg-btn:hover { filter: brightness(1.1); }
.pmg-btn--dark { background: var(--pmg-ink); }

/* Ad slots */
.pmg-ad {
	margin: 20px auto;
	text-align: center;
	max-width: 100%;
}
.pmg-ad--net_top { max-width: 970px; }
.pmg-ad--net_rail,
.pmg-ad--net_infeed { max-width: 300px; }
.pmg-ad__label {
	display: block;
	font: 500 11px/1.6 var(--pmg-ui);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pmg-muted);
}
.pmg-ad__unit { margin: 0 auto; }
.pmg-ad__house img { max-width: 100%; height: auto; }
.pmg-ad--empty { display: none; }
.pmg-ad--outline {
	border: 1px dashed #b9b3a6;
	border-radius: 6px;
	background: #efece5;
	padding: 24px 12px;
	color: var(--pmg-muted);
	font: 12px/1.5 var(--pmg-ui);
}
.pmg-ad--net_top.pmg-ad--outline { min-height: 90px; }
.pmg-ad--net_rail.pmg-ad--outline,
.pmg-ad--net_infeed.pmg-ad--outline { min-height: 250px; display: flex; flex-direction: column; justify-content: center; }

/* Events */
.pmg-events {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}
.pmg-event {
	background: var(--pmg-card);
	border: 1px solid var(--pmg-rule);
	border-radius: var(--pmg-radius);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--pmg-ink);
	font-family: var(--pmg-ui);
}
.pmg-event.is-featured { border: 2px solid var(--pmg-accent); }
.pmg-event__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pmg-event__kind {
	font: 500 13px/1.2 var(--pmg-display);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #1e5b3a;
}
.pmg-event--phillies .pmg-event__kind { color: #b5121f; }
.pmg-event--concert .pmg-event__kind { color: #6b4fa0; }
.pmg-event__flag {
	font: 600 12px/1 var(--pmg-ui);
	background: #fff6e0;
	color: #5a3b06;
	border-radius: 999px;
	padding: 4px 10px;
}
.pmg-event__title { margin: 0; font: 700 24px/1.05 var(--pmg-display); }
.pmg-event__title a { color: inherit; text-decoration: none; }
.pmg-event__title a:hover { text-decoration: underline; }
.pmg-event__when { margin: 0; font-weight: 600; font-size: 15px; }
.pmg-event__note { margin: 0; font-size: 14px; color: var(--pmg-muted); }
.pmg-event__buy {
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--pmg-rule);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.pmg-event__price { font-weight: 700; font-size: 20px; }
.pmg-muted { color: var(--pmg-muted); }

/* Hero title from [pmg_next_event] */
.pmg-hero-title {
	margin: 0;
	font: 700 clamp(40px, 6vw, 72px)/0.98 var(--pmg-display);
	color: inherit;
}

/* Around the Network */
.pmg-around {
	max-width: 1240px;
	margin: 48px auto 0;
	padding: 12px 24px 0;
	box-sizing: border-box;
	font-family: var(--pmg-ui);
}
.pmg-around__title {
	margin: 0 0 16px;
	padding-top: 12px;
	border-top: 3px solid var(--pmg-ink);
	font: 700 22px/1.2 var(--pmg-display);
	color: var(--pmg-ink);
}
.pmg-around__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}
.pmg-around__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	background: var(--pmg-card);
	border: 1px solid var(--pmg-rule);
	border-top: 4px solid var(--pmg-ink);
	border-radius: var(--pmg-radius);
	color: var(--pmg-ink) !important;
	text-decoration: none !important;
}
.pmg-around__card:hover { box-shadow: 0 4px 16px rgba(16, 19, 24, 0.08); }
.pmg-around__name { font: 700 18px/1.2 var(--pmg-display); }
.pmg-around__tag { font-size: 14px; color: var(--pmg-muted); }

/* Next-tailgate promo */
.pmg-promo {
	background: #1e5b3a;
	color: #fff;
	border-radius: var(--pmg-radius);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-family: var(--pmg-ui);
}
.pmg-promo p { margin: 0; }
.pmg-promo__kicker {
	display: flex;
	align-items: center;
	gap: 7px;
	font: 500 13px/1 var(--pmg-display);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #9fd3b4;
}
.pmg-promo__title { font: 700 20px/1.15 var(--pmg-display); }
.pmg-promo__text { font-size: 14px; color: #ddebe2; }
.pmg-promo .pmg-btn { background: #3fa36b; }

/* Footer pieces */
.pmg-netlinks__title {
	margin: 0 0 8px;
	font: 500 12px/1 var(--pmg-display);
	letter-spacing: 0.12em;
	color: #fff;
}
.pmg-netlinks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pmg-netlinks a { color: #c9cdd4; text-decoration: none; }
.pmg-netlinks a:hover { color: #fff; text-decoration: underline; }
.pmg-credit { margin: 0; font-size: 13px; color: #9ca3ae; }

@media (max-width: 600px) {
	.pmg-bar__label { flex-basis: 100%; }
}
