/*
 * Shared news styles (enqueued by includes/news.php).
 * Plain CSS on purpose: style.css is CodeKit-compiled from sass/.
 */

/* ---- Single post: Beaver Builder posts use the classic reading column ---- */

/* BB rows bring their own side padding/max-width; inside the reading
   column, line their content up with the post header instead. */
body.single .polg-news-bb .fl-builder-content .fl-row-content-wrap,
body.single .polg-news-bb .fl-builder-content .fl-module-content,
body.single .polg-news-bb .fl-builder-content .fl-col-content {
	padding-left: 0;
	padding-right: 0;
	margin-left: 0;
	margin-right: 0;
}
body.single .polg-news-bb .fl-builder-content .fl-row-content,
body.single .polg-news-bb .fl-builder-content .fl-row-fixed-width {
	max-width: none;
}
body.single .polg-news-bb .fl-builder-content .fl-module.fl-heading,
body.single .polg-news-bb .fl-builder-content .fl-module-rich-text,
body.single .polg-news-bb .fl-builder-content .fl-module-photo {
	margin-left: 0;
	margin-right: 0;
}

/* Same body text treatment for both kinds of post */
body.single #post-wrap article {
	font-size: 1rem;
	line-height: 1.6;
}
body.single #post-wrap article img {
	max-width: 100%;
	height: auto;
}
body.single #post-wrap article iframe {
	max-width: 100%;
}

/* ---- Home page news cards ---- */

.fl-module-polg-card-carousel .eyebrow .card-date {
	font-weight: 400;
	opacity: 0.75;
	text-transform: none;
	letter-spacing: 0;
}
.fl-module-polg-card-carousel .eyebrow .card-date::before {
	content: "\00b7";
	margin: 0 0.4em;
}

/* Shown when a post has no image, so card heights stay even */
.fl-module-polg-card-carousel .card-img-placeholder {
	aspect-ratio: 333 / 414;
	width: 100%;
	display: flex;
	align-items: flex-end;
	padding: 24px;
	background: #033503;
	background-image: radial-gradient(circle at 80% 15%, rgba(94, 200, 61, 0.45), transparent 55%);
	color: #fff;
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.1;
	letter-spacing: 0.02em;
}

/* ---- Event pages: route band (map + key numbers), e.g. Mountain2Sea ---- */

.fl-row.polg-route-band > .fl-row-content-wrap {
	background: #033503;
	color: #fff;
	padding-top: 72px;
	padding-bottom: 64px;
}
.polg-route-band .polg-route h3 {
	color: #fff;
	margin-bottom: 0.75rem;
}
.polg-route .polg-route-intro {
	max-width: 36rem;
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
}
.polg-route-map {
	margin: 2.5rem 0 2rem;
}
.polg-route-map svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}
.polg-route-map .sm { display: none; }
@media (max-width: 620px) {
	.polg-route-map .lg { display: none; }
	.polg-route-map .sm { display: block; }
}
.polg-route-map .path {
	fill: none;
	stroke: #0DCB0C;
	stroke-width: 2.5;
	stroke-dasharray: 2 9;
	stroke-linecap: round;
	opacity: 0.55;
}
.polg-route-map .wake {
	fill: none;
	stroke: #0DCB0C;
	stroke-width: 2.5;
	stroke-linecap: round;
}
/* Only animate once JS has confirmed it can reveal it again */
.polg-route-map.will-draw .wake {
	stroke-dasharray: 1200;
	stroke-dashoffset: 1200;
}
.polg-route-map.will-draw.is-drawn .wake {
	transition: stroke-dashoffset 3s cubic-bezier(.45, .05, .3, 1) .2s;
	stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: reduce) {
	.polg-route-map.will-draw .wake { stroke-dashoffset: 0; transition: none; }
}
.polg-route-map .dot { fill: #fff; }
.polg-route-map .ring { fill: none; stroke: #fff; stroke-width: 1.5; }
.polg-route-map text {
	fill: #fff;
	font-family: "Basis Grotesgue", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.polg-route-map .place { font-size: 20px; }
.polg-route-map .sub,
.polg-route-map .ocean-sub {
	font-family: "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	letter-spacing: 0.02em;
	fill: rgba(255, 255, 255, 0.7);
	text-transform: uppercase;
}
.polg-route-map .ocean { font-size: 17px; fill: rgba(255, 255, 255, 0.85); }

.polg-route-facts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.polg-route-facts li {
	padding: 1.25rem 1.25rem 0 0;
}
.polg-route-facts li + li {
	padding-left: 1.25rem;
	border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.polg-route-facts strong {
	display: block;
	font-weight: 400;
	font-size: clamp(1.5rem, 2.6vw, 2.125rem);
	line-height: 1.2;
	color: #fff;
}
.polg-route-facts span {
	display: block;
	margin-top: 0.35rem;
	font-family: "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.8125rem;
	color: #0DCB0C;
}
@media (max-width: 820px) {
	.polg-route-facts { grid-template-columns: repeat(2, 1fr); }
	.polg-route-facts li { padding-bottom: 1.25rem; }
	.polg-route-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
}
