/*
Theme Name: Stations
Theme URI: https://stations.life/
Description: Stations branding for the WordPress side of stations.life: the homepage and the editorial pages under /pages. A child theme of Twenty Twenty-Five.
Author: Seektivity
Author URI: https://seektivity.com/
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stations
*/

/*
 * Ported from web/app/globals.css (the Next.js site this replaces). Keep the
 * two in step until Next.js is retired. Colors, type and button styles live in
 * theme.json; this file holds the page layout and components.
 */

:root {
	--stations-coral: #f47a6a;
	--stations-yellow: #f6c85a;
	--stations-blue: #4a7fd4;
	--stations-bg: #f1f2f4;
	--stations-surface: #ffffff;
	--stations-border: #ccd3e1;
	--stations-slate: #2b3245;
	--stations-text-secondary: #6a758d;
	--stations-text-muted: #8b95a8;
	--stations-ink: #111827;
	--stations-rule: rgba(43, 50, 69, 0.1);
	--stations-max: 1120px;
}

/* Page shell: sticky header, footer pinned to the bottom of short pages. */

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	padding: 0;
}

.wp-site-blocks > * {
	margin-block: 0;
}

.wp-site-blocks > main {
	flex: 1;
}

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 10;
	border-bottom: 1px solid var(--stations-rule);
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

/* Header */

.stations-nav.wp-block-group {
	max-width: var(--stations-max);
	margin: 0 auto;
	padding: 14px 22px;
	gap: 20px;
}

.stations-brand.wp-block-group {
	gap: 10px;
}

.stations-brand .wp-block-site-logo img {
	width: 34px;
	height: 34px;
	display: block;
}

.stations-brand .wp-block-site-title {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
}

.stations-brand .wp-block-site-title a {
	color: var(--stations-slate);
	text-decoration: none;
}

.stations-nav-links.wp-block-group {
	gap: 16px;
	color: var(--stations-text-secondary);
	font-size: 14px;
	font-weight: 650;
}

.stations-menu.wp-block-navigation,
.stations-menu .wp-block-navigation__container {
	gap: 16px;
	font-size: 14px;
	font-weight: 650;
}

.stations-menu .wp-block-navigation-item__content {
	color: var(--stations-text-secondary);
	text-decoration: none;
}

.stations-nav .wp-block-button__link {
	font-size: 14px;
}

/* Buttons (colors and padding are in theme.json) */

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	box-sizing: border-box;
	text-decoration: none;
}

.stations-main .hero-actions.wp-block-buttons {
	gap: 12px;
	margin: 28px 0 0;
}

/* Shared text styles */

.stations-main .eyebrow {
	color: var(--stations-blue);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 12px;
}

.stations-main h1.wp-block-heading {
	color: var(--stations-ink);
	font-size: 58px;
	line-height: 1;
	letter-spacing: 0;
	margin: 0;
}

.stations-main .hero-copy {
	color: var(--stations-text-secondary);
	font-size: 19px;
	line-height: 1.55;
	margin: 22px 0 0;
	max-width: 660px;
}

/* Links typed into page text stay recognizable. Card and button links do not. */
.stations-main .hero-copy a,
.stations-main .content-section > p a,
.stations-main .content-section > ul > li a,
.stations-main .content-section > ol > li a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Homepage hero */

.stations-front .wp-block-post-content > * {
	margin-block: 0;
}

.stations-hero.wp-block-group {
	max-width: var(--stations-max);
	margin: 0 auto;
	padding: 70px 22px 36px;
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
	gap: 46px;
	align-items: center;
}

.stations-hero.wp-block-group > * {
	margin: 0;
}

.stations-hero-aside.wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.stations-hero-aside.wp-block-group > * {
	margin: 0;
}

/* Map preview, an illustration rather than a real map */

.product-panel {
	background: var(--stations-surface);
	border: 1px solid var(--stations-border);
	border-radius: 8px;
	padding: 18px;
	box-shadow: 0 24px 70px rgba(43, 50, 69, 0.12);
}

.preview-map {
	min-height: 220px;
	border-radius: 8px;
	overflow: hidden;
	background:
		linear-gradient(90deg, rgba(74, 127, 212, 0.12) 1px, transparent 1px),
		linear-gradient(0deg, rgba(74, 127, 212, 0.12) 1px, transparent 1px),
		#edf3f8;
	background-size: 44px 44px;
	position: relative;
}

.preview-route {
	position: absolute;
	left: 13%;
	right: 12%;
	top: 28%;
	height: 46%;
	border: 5px solid var(--stations-blue);
	border-left-color: transparent;
	border-bottom-color: var(--stations-coral);
	border-radius: 48% 52% 42% 58%;
}

.pin {
	position: absolute;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--stations-coral);
	border: 3px solid #fff;
	box-shadow: 0 6px 18px rgba(43, 50, 69, 0.28);
}

.pin.one {
	left: 18%;
	top: 32%;
}

.pin.two {
	left: 56%;
	top: 46%;
	background: var(--stations-yellow);
}

.pin.three {
	right: 18%;
	bottom: 23%;
	background: var(--stations-blue);
}

.preview-card {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(204, 211, 225, 0.8);
	border-radius: 8px;
	padding: 16px;
}

.preview-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.2;
	color: var(--stations-ink);
	font-weight: 850;
}

.preview-meta {
	margin: 6px 0 0;
	color: var(--stations-text-secondary);
	font-size: 14px;
	line-height: 1.2;
}

/* Account card: replaces the Next.js login form. The app owns sign-in at /login. */

.stations-account-card.wp-block-group {
	background: var(--stations-surface);
	border: 1px solid var(--stations-border);
	border-radius: 8px;
	padding: 22px;
}

.stations-account-card.wp-block-group > * {
	margin: 0;
}

.stations-account-card.wp-block-group > h2.wp-block-heading {
	font-size: 18px;
	line-height: 1.25;
	margin: 0 0 6px;
}

.stations-account-card.wp-block-group > p {
	color: var(--stations-text-secondary);
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 16px;
}

.stations-account-card .wp-block-buttons,
.stations-account-card .wp-block-button,
.stations-account-card .wp-block-button__link {
	width: 100%;
}

/* Full-width bands below the hero */

.stations-band.wp-block-group {
	border-top: 1px solid rgba(43, 50, 69, 0.08);
	margin: 0;
}

.stations-band-inner.wp-block-group {
	max-width: var(--stations-max);
	margin: 0 auto;
	padding: 50px 22px;
}

.stations-band-inner.wp-block-group > * {
	margin: 0;
}

.stations-band-inner.wp-block-group > .eyebrow {
	margin-bottom: 12px;
}

.stations-feature-grid.wp-block-group {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.stations-card.wp-block-group {
	background: var(--stations-surface);
	border: 1px solid var(--stations-border);
	border-radius: 8px;
	padding: 22px;
	margin: 0;
}

.stations-card.wp-block-group > * {
	margin: 0;
}

.stations-card h2.wp-block-heading {
	font-size: 22px;
	line-height: 1.2;
	margin: 0 0 10px;
}

.stations-card p {
	color: var(--stations-text-secondary);
	line-height: 1.55;
}

/* Link cards: the whole card is the link target. */

.stations-card-list,
.stations-card-list.wp-block-group,
.stations-card-list.wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stations-card-list > * {
	margin: 0;
}

.stations-link-card.wp-block-group {
	position: relative;
	padding: 18px;
}

.stations-link-card .stations-card-title,
.stations-link-card .stations-card-title.wp-block-post-title {
	display: block;
	color: var(--stations-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
}

.stations-link-card .stations-card-text,
.stations-link-card .wp-block-post-excerpt__excerpt {
	color: var(--stations-text-secondary);
	font-size: 16px;
	line-height: 1.45;
	margin: 0;
}

.stations-link-card a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 8px;
}

.stations-link-card:focus-within {
	outline: 2px solid var(--stations-blue);
	outline-offset: 2px;
}

.stations-link-card a:focus {
	outline: none;
}

/* Pages under /pages. Each block's spacing is set explicitly (eyebrow, h1,
   hero-copy and hero-actions above), so nothing here resets child margins. */

.stations-page.wp-block-group {
	max-width: 820px;
	margin: 0 auto;
	padding: 62px 22px;
}

.stations-page h1.wp-block-heading {
	font-size: 46px;
}

/* The intro's bottom rule plus the first section's top rule match the Next.js page. */
.stations-page .page-intro.wp-block-group {
	border-bottom: 1px solid var(--stations-rule);
	margin: 0 0 56px;
}

.stations-main .content-section.wp-block-group {
	padding: 28px 0;
	border-top: 1px solid var(--stations-rule);
	margin: 0;
}

.stations-main .content-section h2.wp-block-heading {
	color: var(--stations-ink);
	font-size: 22px;
	line-height: 1.2;
	margin: 0 0 10px;
}

.stations-main .content-section > p,
.stations-main .content-section > ul,
.stations-main .content-section > ol {
	color: var(--stations-text-secondary);
	line-height: 1.55;
	margin: 0;
}

.stations-main .content-section > ul,
.stations-main .content-section > ol {
	padding-left: 1.25em;
}

.stations-main .content-section > * + p,
.stations-main .content-section > * + ul,
.stations-main .content-section > * + ol {
	margin-top: 1em;
}

.stations-main .content-section > h2 + * {
	margin-top: 0;
}

/* 404 */

.stations-not-found.wp-block-group {
	max-width: 680px;
	margin: 0 auto;
	padding: 86px 22px;
}

/* Footer */

.wp-site-blocks > footer.wp-block-template-part {
	border-top: 1px solid var(--stations-rule);
	color: var(--stations-text-muted);
	font-size: 14px;
}

.stations-footer-inner.wp-block-group {
	max-width: var(--stations-max);
	margin: 0 auto;
	padding: 26px 22px;
	gap: 18px;
}

.stations-footer-inner p {
	margin: 0;
	font-size: 14px;
	line-height: 1.2;
}

.stations-footer-inner a {
	color: inherit;
	text-decoration: none;
}

/* Phones and small tablets, as in the Next.js site */

@media (max-width: 820px) {
	.stations-nav-links.wp-block-group,
	.stations-menu.wp-block-navigation,
	.stations-menu .wp-block-navigation__container {
		gap: 10px;
	}

	.stations-menu .optional {
		display: none;
	}

	.stations-hero.wp-block-group {
		grid-template-columns: 1fr;
		padding-top: 46px;
	}

	.stations-main h1.wp-block-heading,
	.stations-page h1.wp-block-heading {
		font-size: 40px;
	}

	.stations-feature-grid.wp-block-group,
	.stations-card-list,
	.stations-card-list.wp-block-group,
	.stations-card-list.wp-block-post-template {
		grid-template-columns: 1fr;
	}

	.preview-map {
		min-height: 330px;
	}
}

/* 1.1.0: homepage bands, guides, the blog and the footer columns. */

.stations-band-inner.wp-block-group > h2.wp-block-heading {
	color: var(--stations-ink);
	font-size: 30px;
	line-height: 1.15;
	margin: 0 0 18px;
	max-width: 760px;
}

.stations-band-inner.wp-block-group > p:not(.eyebrow) {
	color: var(--stations-text-secondary);
	max-width: 760px;
	margin: 0 0 18px;
}

.stations-band-inner.wp-block-group > p.stations-more {
	margin: 18px 0 0;
	font-weight: 700;
}

.stations-main a.stations-more-link,
.stations-more a {
	color: var(--stations-ink);
	text-decoration: underline;
	text-decoration-color: var(--stations-coral);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.stations-feature-grid.stations-feature-grid--four.wp-block-group {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Numbered steps: an ordered list laid out as cards. */
.stations-main ol.stations-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: stations-step;
}

.stations-main ol.stations-steps > li {
	counter-increment: stations-step;
	background: var(--stations-surface);
	border: 1px solid var(--stations-border);
	border-radius: 8px;
	padding: 20px;
	color: var(--stations-text-secondary);
	line-height: 1.5;
}

.stations-main ol.stations-steps > li::before {
	content: counter(stations-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--stations-coral);
	color: var(--stations-ink);
	font-weight: 800;
}

.stations-main ol.stations-steps > li strong {
	display: block;
	color: var(--stations-ink);
	font-size: 17px;
	margin-bottom: 6px;
}

/* FAQ: Details blocks. */
.stations-main .wp-block-details {
	background: var(--stations-surface);
	border: 1px solid var(--stations-border);
	border-radius: 8px;
	padding: 16px 20px;
	margin: 0 0 10px;
}

.stations-main .wp-block-details summary {
	color: var(--stations-ink);
	font-weight: 700;
	cursor: pointer;
}

.stations-main .wp-block-details[open] summary {
	margin-bottom: 8px;
}

.stations-main .wp-block-details > p {
	color: var(--stations-text-secondary);
	margin: 0;
	line-height: 1.55;
}

.stations-main .wp-block-details a,
.stations-main .content-section > p a {
	color: var(--stations-ink);
	text-decoration: underline;
}

/* Blog index, archives and posts. */
.stations-post-list.wp-block-post-template {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stations-card-meta.wp-block-post-date {
	color: var(--stations-text-secondary);
	font-size: 14px;
	margin: 0 0 6px;
}

.stations-blog .page-intro .eyebrow a,
.stations-post .page-intro .eyebrow a {
	color: inherit;
	text-decoration: none;
}

.stations-blog .wp-block-query-title {
	font-size: 46px;
	line-height: 1;
	margin: 0 0 18px;
}

.stations-pagination.wp-block-query-pagination {
	margin-top: 28px;
	font-weight: 700;
}

.stations-byline.wp-block-group {
	gap: 6px 14px;
	color: var(--stations-text-secondary);
	font-size: 14px;
	margin: 0 0 28px;
}

.stations-byline.wp-block-group > * {
	margin: 0;
}

.stations-byline a {
	color: var(--stations-ink);
	font-weight: 700;
	text-decoration: none;
}

.stations-updated.wp-block-post-date::before {
	content: "Updated ";
}

.stations-featured.wp-block-post-featured-image {
	margin: 0 0 36px;
}

.stations-featured img {
	border-radius: 8px;
}

.stations-post-content > h2.wp-block-heading {
	color: var(--stations-ink);
	font-size: 24px;
	line-height: 1.25;
	margin: 40px 0 12px;
}

.stations-post-content > h3.wp-block-heading {
	color: var(--stations-ink);
	font-size: 19px;
	margin: 28px 0 8px;
}

.stations-post-content > p,
.stations-post-content > ul,
.stations-post-content > ol {
	color: var(--stations-slate);
	font-size: 17px;
	line-height: 1.65;
	margin: 0 0 18px;
}

.stations-post-content > ul,
.stations-post-content > ol {
	padding-left: 1.25em;
}

.stations-post-content li + li {
	margin-top: 6px;
}

.stations-post-content a {
	color: var(--stations-ink);
	text-decoration: underline;
	text-decoration-color: var(--stations-coral);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.stations-post-content > .wp-block-group.stations-takeaways {
	background: var(--stations-surface);
	border: 1px solid var(--stations-border);
	border-radius: 8px;
	padding: 18px 22px;
	margin: 0 0 28px;
}

.stations-post-cta.wp-block-group {
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--stations-rule);
}

.stations-post-cta h2.wp-block-heading {
	font-size: 22px;
	margin: 0 0 8px;
}

.stations-post-cta p {
	color: var(--stations-text-secondary);
	margin: 0 0 16px;
}

/* Footer columns. Muted text darkened to secondary for contrast. */
.wp-site-blocks > footer.wp-block-template-part {
	color: var(--stations-text-secondary);
}

.stations-footer-columns.wp-block-group {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	max-width: var(--stations-max);
	margin: 0 auto;
	padding: 36px 22px 8px;
}

.stations-footer-columns.wp-block-group > *,
.stations-footer-column.wp-block-group > * {
	margin: 0;
}

.stations-footer-heading {
	color: var(--stations-ink);
	font-size: 14px;
	font-weight: 800;
	margin: 0 0 10px !important;
}

.stations-footer-links.wp-block-list {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

.stations-footer-links li + li {
	margin-top: 8px;
}

.stations-footer-links a {
	color: var(--stations-text-secondary);
	text-decoration: none;
}

.stations-footer-links a:hover,
.stations-footer-links a:focus {
	color: var(--stations-ink);
	text-decoration: underline;
}

@media (max-width: 1000px) {
	.stations-feature-grid.stations-feature-grid--four.wp-block-group,
	.stations-main ol.stations-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.stations-band-inner.wp-block-group > h2.wp-block-heading {
		font-size: 26px;
	}

	.stations-post-list.wp-block-post-template,
	.stations-footer-columns.wp-block-group {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stations-blog .wp-block-query-title {
		font-size: 40px;
	}
}

@media (max-width: 560px) {
	.stations-feature-grid.stations-feature-grid--four.wp-block-group,
	.stations-main ol.stations-steps,
	.stations-post-list.wp-block-post-template {
		grid-template-columns: 1fr;
	}
}
