/* StationQR Directory - front-end styles */

/* Hide the theme's own duplicate post title on station pages - our hero
   card renders its own styled <h1>. Covers the most common theme markup
   patterns; harmless no-ops on themes that don't match. */
body.sqr-station-page .entry-title,
body.sqr-station-page .entry-header .entry-title,
body.sqr-station-page h1.entry-title,
body.sqr-station-page .page-title,
body.sqr-station-page .post-title,
body.sqr-station-page article > header h1,
body.sqr-station-page .elementor-widget-theme-post-title {
	display: none !important;
}

/* Hide the theme's own author/date byline on station pages - a "By X /
   Date" line doesn't make sense for these auto-generated station pages.
   Covers the most common theme markup patterns for post meta. */
body.sqr-station-page .entry-meta,
body.sqr-station-page .entry-header .entry-meta,
body.sqr-station-page .post-meta,
body.sqr-station-page .posted-on,
body.sqr-station-page .byline,
body.sqr-station-page .entry-date,
body.sqr-station-page .author-name,
body.sqr-station-page .post-author,
body.sqr-station-page .meta-author,
body.sqr-station-page .meta-date,
body.sqr-station-page .elementor-widget-theme-post-info {
	display: none !important;
}

body.sqr-station-page .site-content,
body.sqr-station-page .entry-content {
	max-width: none;
}

.sqr-station-wrap {
	max-width: 640px;
	margin: 0 auto 2.5em;
	font-family: inherit;
}

/* Breadcrumb */

.sqr-breadcrumb {
	font-size: 0.85em;
	color: #667085;
	margin: 0 0 16px;
}

.sqr-breadcrumb a {
	color: #667085;
	text-decoration: none;
}

.sqr-breadcrumb a:hover {
	color: #005caf;
	text-decoration: underline;
}

.sqr-breadcrumb-sep {
	margin: 0 6px;
	color: #c2c7d0;
}

.sqr-breadcrumb-current {
	color: #14182a;
	font-weight: 600;
}

/* Hero card */

.sqr-hero {
	background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 55%);
	border: 1px solid #e5e9f0;
	border-radius: 20px;
	padding: 36px 28px 32px;
	text-align: center;
	box-shadow: 0 8px 30px rgba(20, 40, 90, 0.06);
}

.sqr-hero-badges {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.sqr-badge {
	display: inline-block;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 5px 14px;
	border-radius: 999px;
	text-transform: uppercase;
}

.sqr-badge-state {
	background: #e8f1ff;
	color: #005caf;
}

.sqr-badge-code {
	background: #14182a;
	color: #fff;
}

.sqr-hero-title {
	margin: 0 0 6px;
	font-size: 2em;
	line-height: 1.2;
	font-weight: 800;
	color: #14182a;
}

.sqr-hero-subtitle {
	margin: 0 0 26px;
	font-size: 0.98em;
	color: #667085;
}

.sqr-nowrap {
	white-space: nowrap;
}

.sqr-qr-card {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	max-width: 420px;
	margin: 0 auto;
}

.sqr-qr-image {
	width: 100%;
	max-width: 400px;
	height: auto;
	display: block;
	margin: 0 auto;
}

.sqr-qr-caption {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sqr-qr-station-name {
	font-weight: 700;
	font-size: 1.05em;
	color: #14182a;
}

.sqr-qr-brand {
	font-size: 0.85em;
	color: #005caf;
	font-weight: 600;
}

.sqr-qr-pending {
	color: #667085;
	font-style: italic;
}

.sqr-action-row {
	margin-top: 24px;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	gap: 10px;
}

.sqr-share-btn,
.sqr-save-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 0;
	min-width: 0;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 14px 18px;
	font-size: 0.96em;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.sqr-share-btn {
	background: linear-gradient(135deg, #0068c9, #005caf);
	box-shadow: 0 4px 14px rgba(0, 92, 175, 0.28);
}

.sqr-share-btn:hover {
	background: #00427e;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0, 92, 175, 0.34);
}

.sqr-save-btn {
	background: linear-gradient(135deg, #23283f, #14182a);
	box-shadow: 0 4px 14px rgba(20, 24, 42, 0.25);
}

.sqr-save-btn:hover {
	background: #000;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(20, 24, 42, 0.32);
}

.sqr-save-btn:disabled {
	opacity: 0.6;
	cursor: default;
	transform: none;
}

@media (max-width: 420px) {
	.sqr-share-btn,
	.sqr-save-btn {
		padding: 13px 10px;
		font-size: 0.88em;
		gap: 6px;
	}
}

.sqr-share-btn:focus-visible,
.sqr-save-btn:focus-visible {
	outline: 3px solid #ffcd3c;
	outline-offset: 2px;
}

@media print {
	body.sqr-station-page .sqr-breadcrumb,
	body.sqr-station-page .sqr-action-row,
	body.sqr-station-page .sqr-hero-subtitle,
	body.sqr-station-page .site-header,
	body.sqr-station-page .site-footer,
	body.sqr-station-page nav {
		display: none !important;
	}
	.sqr-hero {
		box-shadow: none;
		border: 2px solid #000;
	}
}

.sqr-share-fallback-note {
	margin-top: 10px;
	font-size: 0.85em;
	color: #555;
	word-break: break-word;
}

.sqr-meta-strip {
	margin-top: 28px;
	display: flex;
	justify-content: center;
	gap: 32px;
	flex-wrap: wrap;
	border-top: 1px solid #e5e9f0;
	padding-top: 20px;
}

.sqr-meta-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sqr-meta-label {
	font-size: 0.72em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #98a0ac;
	font-weight: 700;
}

.sqr-meta-value {
	font-size: 1em;
	font-weight: 600;
	color: #14182a;
}

.sqr-meta-value a {
	color: #005caf;
	text-decoration: none;
}

.sqr-meta-value a:hover {
	text-decoration: underline;
}

.sqr-extra-content {
	margin-top: 24px;
	font-size: 0.95em;
	color: #333;
}

/* ---- Search shortcode ---- */

.sqr-search-wrap {
	position: relative;
	max-width: 480px;
	margin: 0 auto;
}

.sqr-search-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	font-size: 1em;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	outline: none;
}

.sqr-search-input:focus {
	border-color: #005caf;
}

.sqr-search-results {
	position: absolute;
	z-index: 50;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.12);
	max-height: 340px;
	overflow-y: auto;
	display: none;
}

.sqr-search-results.is-visible {
	display: block;
}

.sqr-search-result-item {
	display: block;
	padding: 10px 16px;
	text-decoration: none;
	color: #14182a;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.95em;
}

.sqr-search-result-item:last-child {
	border-bottom: none;
}

.sqr-search-result-item:hover,
.sqr-search-result-item.is-active {
	background: #f4f8fc;
}

.sqr-search-result-name {
	font-weight: 600;
}

.sqr-search-result-meta {
	color: #667085;
	font-size: 0.85em;
	margin-left: 4px;
}

.sqr-search-empty {
	padding: 12px 16px;
	color: #667085;
	font-size: 0.9em;
}

@media (max-width: 480px) {
	.sqr-hero {
		padding: 26px 16px 24px;
		border-radius: 16px;
	}
	.sqr-hero-title {
		font-size: 1.5em;
	}
	.sqr-qr-card {
		padding: 16px;
	}
}
