/*
 * MilPayGuide Theme — Location Pages
 * Fintech aesthetic: clean white, charcoal (#1a1a2e), electric blue (#2563eb)
 * Enqueue via functions.php or Additional CSS in the WordPress Customizer
 */

/* ─────────────────────────────────────────
   TYPOGRAPHY & BASE
───────────────────────────────────────── */

.single-locations .wp-block-group,
.single-locations .wp-block-post-content {
	font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	color: #374151;
}

/* ─────────────────────────────────────────
   HERO TITLE BAND
───────────────────────────────────────── */

/* Override the inline #f0f4f8 background on the hero group */
.single-locations .alignfull.wp-block-group:first-of-type {
	background-color: #f8faff !important;
	border-bottom: 1px solid #e5e9f0;
}

.single-locations .wp-block-post-title {
	font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 700;
	color: #1a1a2e;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 0;
}

/* ─────────────────────────────────────────
   SECTION H4 HEADERS (rank category labels)
   Override inline border-left color
───────────────────────────────────────── */

.single-locations .wp-block-post-content h4.wp-block-heading {
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #1a1a2e;
	border-left: 4px solid #2563eb !important; /* override inline #2c3e50 */
	padding-left: 12px !important;
	margin-top: 2.5rem !important;
	margin-bottom: 0.75rem;
}

/* ─────────────────────────────────────────
   INTRO HEADING (h3 above the tables)
───────────────────────────────────────── */

.single-locations .wp-block-post-content h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: #1a1a2e;
	margin-bottom: 0.35rem;
}

/* ─────────────────────────────────────────
   INTRO PARAGRAPH
───────────────────────────────────────── */

.single-locations .wp-block-post-content > p:first-of-type {
	font-size: 0.9375rem;
	color: #6b7280;
	margin-top: 0;
	margin-bottom: 1.5rem;
}

/* ─────────────────────────────────────────
   DATA TABLES — base
───────────────────────────────────────── */

.single-locations .wp-block-table {
	margin: 0 0 1rem 0;
	overflow-x: auto; /* enables horizontal scroll on small screens */
	display: block;
}

.single-locations .wp-block-table table {
	width: 100%;
	min-width: 320px;
	border-collapse: collapse;
	font-size: 0.9rem;
	background-color: #ffffff;
	border: 1px solid #e5e9f0;
	border-radius: 8px;
	overflow: hidden;
}

/* Header row */
.single-locations .wp-block-table thead tr {
	background-color: #1a1a2e;
}

.single-locations .wp-block-table thead th {
	padding: 10px 16px;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	text-align: left;
	border: none;
}

/* Rank column — narrow & centered */
.single-locations .wp-block-table thead th:first-child,
.single-locations .wp-block-table tbody td:first-child {
	width: 22%;
	text-align: center;
}

/* Money columns */
.single-locations .wp-block-table thead th:not(:first-child),
.single-locations .wp-block-table tbody td:not(:first-child) {
	text-align: right;
}

/* Body cells */
.single-locations .wp-block-table tbody td {
	padding: 9px 16px;
	border-top: 1px solid #f1f3f7;
	color: #374151;
	vertical-align: middle;
}

.single-locations .wp-block-table tbody td strong {
	font-weight: 600;
	color: #1a1a2e;
	font-size: 0.875rem;
}

/* ─────────────────────────────────────────
   ALTERNATING STRIPES (is-style-stripes)
   TT4 default stripe is gray — override
   with a subtle blue tint
───────────────────────────────────────── */

.single-locations .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: #f0f6ff;
}

.single-locations .wp-block-table.is-style-stripes tbody tr:nth-child(even) {
	background-color: #ffffff;
}

/* Hover highlight */
.single-locations .wp-block-table tbody tr:hover {
	background-color: #e8f0fe !important;
	transition: background-color 0.12s ease;
}

/* ─────────────────────────────────────────
   DISCLAIMER TEXT
───────────────────────────────────────── */

.single-locations .wp-block-post-content p.disclaimer,
.single-locations .wp-block-post-content p[style*="0.9em"] {
	font-size: 0.8125rem !important;
	color: #9ca3af !important;
	border-top: 1px solid #e5e9f0;
	padding-top: 1rem;
	margin-top: 2rem;
}

/* ─────────────────────────────────────────
   SIDEBAR PANEL
   Overrides inline #f0f4f8 background
───────────────────────────────────────── */

.single-locations .wp-block-column:last-child > .wp-block-group {
	background-color: #f8faff !important;
	border: 1px solid #e5e9f0 !important;
	border-radius: 10px !important;
	box-shadow: 0 1px 4px rgba(26, 26, 46, 0.06);
	position: sticky;
	top: 24px; /* keeps sidebar in view while scrolling */
}

/* Sidebar headings */
.single-locations .wp-block-column:last-child h2,
.single-locations .wp-block-column:last-child h3,
.single-locations .wp-block-column:last-child h4 {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #6b7280;
	margin-bottom: 0.5rem;
}

/* Sidebar links */
.single-locations .wp-block-column:last-child a {
	color: #2563eb;
	text-decoration: none;
	font-size: 0.9rem;
	display: block;
	padding: 3px 0;
	transition: color 0.12s ease;
}

.single-locations .wp-block-column:last-child a:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

/* ─────────────────────────────────────────
   HIDE POST METADATA ("Written by in")
   Covers common block and classic theme
   selectors for author/date meta lines
───────────────────────────────────────── */

.single-locations .wp-block-post-author,
.single-locations .wp-block-post-date,
.single-locations .wp-block-post-terms,
.single-locations .entry-meta,
.single-locations .post-meta,
.single-locations .byline,
.single-locations .posted-on {
	display: none;
}

/* ─────────────────────────────────────────
   MOBILE RESPONSIVENESS
───────────────────────────────────────── */

@media (max-width: 768px) {

	/* Stack columns vertically */
	.single-locations .wp-block-columns {
		flex-direction: column;
	}

	.single-locations .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}

	/* Sidebar loses sticky + comes after content */
	.single-locations .wp-block-column:last-child > .wp-block-group {
		position: static;
		margin-top: 2rem;
	}

	/* Reduce title size */
	.single-locations .wp-block-post-title {
		font-size: 1.5rem;
	}

	/* Tables scroll horizontally */
	.single-locations .wp-block-table {
		-webkit-overflow-scrolling: touch;
	}

	.single-locations .wp-block-table thead th,
	.single-locations .wp-block-table tbody td {
		padding: 8px 12px;
		font-size: 0.8375rem;
	}

	/* H4 labels less top margin on mobile */
	.single-locations .wp-block-post-content h4.wp-block-heading {
		margin-top: 1.75rem !important;
	}

}

@media (max-width: 480px) {

	.single-locations .wp-block-post-title {
		font-size: 1.3rem;
	}

	.single-locations .wp-block-table thead th,
	.single-locations .wp-block-table tbody td {
		padding: 7px 10px;
		font-size: 0.8rem;
	}

}
