/*
Theme Name:   FindTheCity (WikiPress Child)
Theme URI:    https://findthecity.com
Description:  Custom child theme for FindTheCity.com — The U.S. Reverse City Finder & City-Alternative Engine, built on WikiPress.
Author:       FindTheCity Editorial & Data Team
Author URI:   https://findthecity.com/about/
Template:     wikipress
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  wikipress-child
Tags:         two-columns, left-sidebar, right-sidebar, custom-colors, custom-logo, custom-menu, translation-ready
*/

/* ============================================================
   1. FindTheCity Brand Design Tokens
   ============================================================ */
:root {
	--wikipress-primary: #0f4c81;
	--wikipress-primary-hover: #09355c;
	--wikipress-text: #1e293b;
	--wikipress-heading: #0f172a;
	--wikipress-bg: #ffffff;
	--wikipress-bg-off: #f8fafc;
	--wikipress-border: #cbd5e1;
	--wikipress-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wikipress-font-content: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wikipress-font-size: 16.5px;
	--wikipress-content-max: 860px;

	--ftc-emerald: #059669;
	--ftc-emerald-bg: #ecfdf5;
	--ftc-amber: #d97706;
	--ftc-rose: #b91c1c;
	--ftc-rose-bg: #fef2f2;
	--ftc-surface-muted: #f1f5f9;
	--ftc-navy-dark: #0b2948;
}

/* Full-width homepage override */
.wikipress-homepage .content-wrapper {
	display: block;
	max-width: 100%;
	padding: 0;
}

.ftc-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

.ftc-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ftc-emerald);
	margin-bottom: 8px;
}

.ftc-cpt-subtitle {
	font-size: 1.12rem;
	color: #475569;
	margin: 6px 0 12px;
}

.ftc-btn-primary {
	display: inline-block;
	background: var(--wikipress-primary);
	color: #fff !important;
	font-weight: 600;
	padding: 11px 20px;
	border-radius: 6px;
	border: none;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ftc-btn-primary:hover {
	background: var(--wikipress-primary-hover);
}

.ftc-btn-secondary {
	display: inline-block;
	background: #fff;
	color: var(--wikipress-primary) !important;
	border: 1px solid var(--wikipress-primary);
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 6px;
	text-decoration: none !important;
}

/* ============================================================
   2. Homepage 7-Section Conversion & Crawl Hub
   ============================================================ */
.ftc-hero {
	background: linear-gradient(135deg, #0b2948 0%, #0f4c81 100%);
	color: #fff;
	padding: 54px 0 46px;
}

.ftc-hero .ftc-eyebrow {
	color: #6ee7b7;
}

.ftc-hero h1 {
	color: #fff;
	font-size: clamp(1.85rem, 3.4vw, 2.75rem);
	line-height: 1.18;
	max-width: 820px;
	margin: 0 0 14px;
}

.ftc-hero-lead {
	color: #e2e8f0;
	font-size: 1.08rem;
	max-width: 740px;
	margin: 0 0 26px;
}

.ftc-quick-filter {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	gap: 12px;
	background: #fff;
	color: var(--wikipress-text);
	padding: 16px;
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
	align-items: end;
}

.ftc-filter-field label {
	display: block;
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #475569;
	margin-bottom: 5px;
}

.ftc-filter-field select {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #f8fafc;
}

.ftc-quick-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 16px;
	font-size: 0.88rem;
}

.ftc-chips-label {
	color: #cbd5e1;
	font-weight: 600;
}

.ftc-quick-chips a {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	padding: 5px 12px;
	border-radius: 999px;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.24);
}

.ftc-quick-chips a:hover {
	background: rgba(255, 255, 255, 0.26);
}

.ftc-home-section {
	padding: 48px 0;
}

.ftc-bg-muted {
	background: var(--ftc-surface-muted);
}

.ftc-section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.ftc-section-head h2 {
	margin: 0;
	font-size: 1.55rem;
}

.ftc-section-sub {
	margin: 4px 0 0;
	color: #475569;
}

.ftc-cards-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ftc-tool-card,
.ftc-post-card,
.ftc-silo-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.ftc-silo-card {
	display: block;
	text-decoration: none !important;
	color: inherit !important;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.ftc-silo-card:hover {
	border-color: var(--wikipress-primary);
	transform: translateY(-2px);
}

.ftc-tool-kicker,
.ftc-card-badge {
	display: inline-block;
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	background: #e0f2fe;
	color: #0369a1;
	padding: 3px 9px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.ftc-mini-twin-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	border-top: 1px solid #f1f5f9;
}

.ftc-mini-twin-list li {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 0.88rem;
	border-bottom: 1px dashed #e2e8f0;
}

.ftc-region-svg {
	width: 100%;
	height: auto;
	display: block;
	margin-bottom: 22px;
}

.ftc-states-matrix {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.ftc-region-col {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px;
}

.ftc-region-col h3 {
	font-size: 1rem;
	margin: 0 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--wikipress-primary);
}

.ftc-region-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ftc-region-col li a {
	display: flex;
	justify-content: space-between;
	padding: 3px 0;
	font-size: 0.88rem;
	text-decoration: none;
}

.ftc-st-abbr {
	color: #64748b;
	font-size: 0.76rem;
}

.ftc-spotlight-banner {
	background: var(--ftc-navy-dark);
	color: #fff;
	border-radius: 12px;
	padding: 32px;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	align-items: center;
}

.ftc-spotlight-banner h2 {
	color: #fff;
	margin: 4px 0 12px;
}

.ftc-spotlight-banner p {
	color: #cbd5e1;
	margin-bottom: 18px;
}

.ftc-spotlight-stats {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ftc-stat-pill {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 14px 18px;
	border-radius: 8px;
}

.ftc-stat-pill strong {
	display: block;
	font-size: 1.65rem;
	color: #6ee7b7;
}

.ftc-trust-strip {
	background: #0f172a;
	color: #cbd5e1;
	padding: 18px 0;
	font-size: 0.88rem;
}

.ftc-trust-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.ftc-trust-inner a {
	color: #6ee7b7;
	font-weight: 600;
}

/* ============================================================
   3. The 9 Modular Content Blocks
   ============================================================ */
.ftc-module {
	margin: 26px 0;
}

.ftc-module-heading {
	margin: 0 0 14px;
	font-size: 1.3rem;
}

/* Module 1: Verdict Box */
.ftc-verdict-box {
	background: #f0f9ff;
	border-left: 4px solid var(--wikipress-primary);
	border-radius: 8px;
	padding: 18px 20px;
}

.ftc-verdict-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wikipress-primary);
	margin-bottom: 6px;
}

.ftc-verdict-text {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.6;
	font-weight: 500;
}

.ftc-verdict-splits {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 14px;
}

.ftc-verdict-pill {
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 0.9rem;
}

.ftc-verdict-pill--pro {
	background: var(--ftc-emerald-bg);
	border: 1px solid #a7f3d0;
}

.ftc-verdict-pill--con {
	background: var(--ftc-rose-bg);
	border: 1px solid #fecaca;
}

/* Module 2: Scorecard */
.ftc-scorecard {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 20px;
}

.ftc-scorecard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e2e8f0;
}

.ftc-scorecard-title {
	margin: 0;
	font-size: 1.2rem;
}

.ftc-scorecard-sub {
	font-size: 0.84rem;
	color: #64748b;
}

.ftc-fit-badge {
	text-align: center;
	background: var(--ftc-emerald-bg);
	border: 1px solid #6ee7b7;
	border-radius: 8px;
	padding: 8px 14px;
	min-width: 96px;
}

.ftc-fit-score-num {
	display: block;
	font-size: 1.45rem;
	font-weight: 800;
	color: #065f46;
	line-height: 1.1;
}

.ftc-fit-score-lbl {
	font-size: 0.7rem;
	text-transform: uppercase;
	font-weight: 700;
	color: #047857;
}

.ftc-scorecard-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.ftc-metric-tile {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px;
}

.ftc-metric-label {
	display: block;
	font-size: 0.76rem;
	text-transform: uppercase;
	color: #64748b;
	font-weight: 600;
}

.ftc-metric-value {
	display: block;
	font-size: 1.22rem;
	color: #0f172a;
	margin: 4px 0 2px;
}

.ftc-metric-note {
	font-size: 0.8rem;
	color: #475569;
}

/* Module 3 & 6: Tables */
.ftc-table-scroll {
	overflow-x: auto;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
}

.ftc-compare-table,
.ftc-budget-display-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
	background: #fff;
}

.ftc-compare-table th,
.ftc-budget-display-table th {
	background: #f1f5f9;
	color: #0f172a;
	text-align: left;
	padding: 10px 12px;
	border-bottom: 2px solid #cbd5e1;
	white-space: nowrap;
}

.ftc-compare-table td,
.ftc-budget-display-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e2e8f0;
}

.ftc-table-score {
	display: inline-block;
	background: var(--ftc-emerald-bg);
	color: #065f46;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
}

.ftc-table-hint,
.ftc-budget-footnote {
	font-size: 0.8rem;
	color: #64748b;
	margin: 6px 0 0;
}

.ftc-inline-search {
	padding: 7px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 0.9rem;
}

/* Module 4: Honest Trade-Offs */
.ftc-tradeoffs-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ftc-tradeoff-col {
	border-radius: 8px;
	padding: 16px 18px;
}

.ftc-tradeoff-col--pros {
	background: var(--ftc-emerald-bg);
	border: 1px solid #a7f3d0;
}

.ftc-tradeoff-col--cons {
	background: var(--ftc-rose-bg);
	border: 1px solid #fecaca;
}

.ftc-tradeoff-col h4 {
	margin: 0 0 10px;
}

.ftc-tradeoff-col ul {
	margin: 0;
	padding-left: 18px;
}

/* Module 5 & 7: Neighborhoods & Twins */
.ftc-hood-grid,
.ftc-twins-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.ftc-hood-card,
.ftc-twin-card {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 16px;
}

.ftc-hood-top,
.ftc-twin-badges,
.ftc-twins-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.ftc-persona-tag,
.ftc-match-pill {
	font-size: 0.73rem;
	font-weight: 700;
	background: #e0f2fe;
	color: #0369a1;
	padding: 2px 8px;
	border-radius: 4px;
}

.ftc-save-pill {
	font-size: 0.73rem;
	font-weight: 700;
	background: var(--ftc-emerald-bg);
	color: #065f46;
	padding: 2px 8px;
	border-radius: 4px;
}

.ftc-twin-stats {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
	font-size: 0.86rem;
	color: #475569;
}

/* Module 8: FAQ Accordion */
.ftc-faq-item {
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 10px;
	background: #fff;
}

.ftc-faq-q {
	font-weight: 700;
	cursor: pointer;
	color: #0f172a;
}

.ftc-faq-a {
	margin-top: 8px;
	color: #334155;
}

/* Module 9: Methodology Footer */
.ftc-methodology-footer {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px 16px;
	font-size: 0.85rem;
	color: #475569;
}

.ftc-freshness-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #065f46;
	margin-bottom: 4px;
}

.ftc-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ftc-emerald);
}

/* Radar Card & Silo Hubs */
.ftc-radar-card {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 20px;
}

.ftc-radar-flex {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 24px;
	align-items: center;
}

.ftc-swatch {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	margin-right: 6px;
}

.ftc-swatch--a { background: #0f4c81; }
.ftc-swatch--b { background: #059669; }

.ftc-subsilo-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.ftc-subsilo-pills a {
	padding: 6px 13px;
	border-radius: 999px;
	border: 1px solid #cbd5e1;
	background: #fff;
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 600;
}

.ftc-subsilo-pills a.is-active {
	background: var(--wikipress-primary);
	color: #fff;
	border-color: var(--wikipress-primary);
}

.ftc-silo-posts-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 22px 0;
}

.ftc-post-card--featured {
	grid-column: 1 / -1;
	border-left: 4px solid var(--wikipress-primary);
}

.ftc-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 960px) {
	.ftc-quick-filter,
	.ftc-cards-3,
	.ftc-states-matrix,
	.ftc-scorecard-grid,
	.ftc-hood-grid,
	.ftc-twins-grid,
	.ftc-tradeoffs-grid,
	.ftc-verdict-splits,
	.ftc-spotlight-banner,
	.ftc-radar-flex,
	.ftc-silo-posts-grid,
	.ftc-footer-grid {
		grid-template-columns: 1fr;
	}
}
