/* ============================================================
   RentCheckMe Design System
   Space Grotesk + Lora  |  Blue #209cee  |  Off-white #f5f4f2
   ============================================================ */

/* 1. VARIABLES */
:root {
  --page: #f5f4f2;
  --surface: #ffffff;
  --ink: #0f1117;
  --ink-mid: #3d3f47;
  --ink-light: #6b6e78;
  --blue: #209cee;
  --blue-dark: #1785cc;
  --blue-tint: #eef7fd;
  --blue-border: #b8dff7;
  --border: #e2e0db;
  --border-mid: #d0cec9;
  --protected: #1a5c35;
  --protected-tint: #e8f5ed;
  --protected-border: #c8e6d4;
  --not-protected: #92400e;
  --not-protected-tint: #fef3c7;
  --not-protected-border: #fde68a;
  --unknown-tint: #f0f9ff;
  --ad-bg: #f9f8f6;
  --ad-border: #dddbd6;
  --ad-label: #9b9892;
}

/* 2. RESET + BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

/* 3. NAV */
.rcm-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: relative;
  z-index: 200;
}
.rcm-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.rcm-logo:hover { color: var(--ink); }
.logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.rcm-nav-links { display: flex; gap: 24px; list-style: none; }
.rcm-nav-links a { color: var(--ink-light); text-decoration: none; font-size: 0.82rem; font-weight: 500; }
.rcm-nav-links a:hover { color: var(--ink); }

/* 4. HERO */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 500px;
}
.hero-form-panel {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  border-radius: 3px;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 16px;
  width: fit-content;
}
.hero-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hero-title strong { font-weight: 600; }
.hero-desc {
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.65;
  margin-bottom: 28px;
}
.form-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 7px;
  display: block;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  background: var(--page);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  color: var(--ink);
  outline: none;
  margin-bottom: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input::placeholder { color: var(--ink-light); }
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(32,156,238,0.12);
  background: var(--surface);
}
.form-btn {
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
.form-btn:hover { background: var(--blue-dark); }
.form-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* Address autocomplete dropdown */
.address-suggestions {
  position: relative;
  z-index: 300;
}

/* Hero map panel */
.hero-map-panel {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}
.map-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(32,156,238,0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 35%, rgba(26,92,53,0.06) 0%, transparent 45%),
    linear-gradient(160deg, #e4eef8 0%, #e8f0f7 40%, #eaeef5 100%);
}
.map-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(160,185,210,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,185,210,0.2) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* 5. LOADING */
.loading-message {
  animation: rcmFadeInOut 2s ease-in-out infinite;
  font-size: 0.9rem;
  color: var(--ink-light);
  margin: 12px 0 0;
  text-align: center;
}
@keyframes rcmFadeInOut {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* 6. RESULTS SECTION (below hero) */
.results-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 48px;
}
.results-inner {
  max-width: 840px;
  margin: 0 auto;
}

/* 7. RESULT CARD */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.result-top {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.result-top.protected { background: var(--protected-tint); border-bottom: 1px solid var(--protected-border); }
.result-top.not-protected { background: var(--not-protected-tint); border-bottom: 1px solid var(--not-protected-border); }
.result-top.unknown { background: var(--blue-tint); border-bottom: 1px solid var(--blue-border); }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-badge.protected { background: var(--protected); color: white; }
.status-badge.not-protected { background: var(--not-protected); color: white; }
.status-badge.unknown { background: var(--blue); color: white; }
.status-address { font-size: 0.8rem; color: var(--ink-mid); }
.result-head { padding: 18px 20px 4px; }
.result-head h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.result-rows { padding: 10px 20px 18px; }
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.result-row:last-child { border-bottom: none; }
.row-key { color: var(--ink-light); }
.row-val { font-weight: 500; text-align: right; }
.row-val.pos { color: var(--protected); }
.result-article-link {
  margin: 0 20px 16px;
  padding: 12px 16px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  border-radius: 6px;
  font-size: 0.86rem;
}
.result-article-link a { color: var(--blue-dark); font-weight: 600; }
.result-article-link a:hover { color: var(--blue); }
.result-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--page);
  font-size: 0.76rem;
  color: var(--ink-light);
}
.result-details { padding: 0 20px 16px; font-size: 0.87rem; color: var(--ink-mid); line-height: 1.65; }
.result-next { padding: 12px 20px; border-top: 1px solid var(--border); }
.result-next h4 { font-size: 0.8rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.result-next p { font-size: 0.82rem; color: var(--ink-mid); line-height: 1.55; }

/* 8. DATA STRIP */
.data-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 48px;
  display: flex;
  align-items: center;
}
.data-item {
  flex: 1;
  padding: 0 24px 0 0;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.data-item:first-child { padding-left: 0; }
.data-item:last-child { border-right: none; padding-right: 0; }
.data-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.data-desc { font-size: 0.76rem; color: var(--ink-light); line-height: 1.3; }

/* 9. GUIDE DIRECTORY */
.guide-dir {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 48px;
}
.guide-dir-inner { max-width: 960px; margin: 0 auto; }
.guide-dir-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.guide-dir-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}
.guide-dir-total { font-size: 0.74rem; color: var(--ink-light); }
.featured-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}
.featured-tab {
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--page);
  color: var(--ink-mid);
  white-space: nowrap;
  transition: all 0.12s;
  flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
}
.featured-tab:hover { border-color: var(--blue); color: var(--blue-dark); }
.featured-tab.active { background: var(--blue); border-color: var(--blue); color: white; }
.guide-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-label-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.state-select {
  padding: 6px 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  background: var(--page);
  border: 1px solid var(--border-mid);
  border-radius: 5px;
  color: var(--ink);
  cursor: pointer;
  outline: none;
}
.state-select:focus { border-color: var(--blue); }

/* Guide list items */
.guide-dir-inner .state-guides { margin-bottom: 8px; }
.guide-dir-inner .state-guides h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 10px;
}
.guide-dir-inner .state-guides ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.guide-dir-inner .state-guides li a {
  display: inline-block;
  padding: 4px 10px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--ink-mid);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.1s;
}
.guide-dir-inner .state-guides li a:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--blue-tint);
}

/* 10. ARTICLE HEADER */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
}
.breadcrumb {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-light);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--border-mid); }
.breadcrumb-current { color: var(--ink-mid); }

.article-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px 32px;
}
.article-header-inner { max-width: 840px; margin: 0 auto; }
.article-tag {
  display: inline-flex;
  align-items: center;
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  border-radius: 3px;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.article-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  max-width: 680px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--ink-light);
  flex-wrap: wrap;
}
.meta-divider { color: var(--border-mid); }

/* 11. ARTICLE LAYOUT */
.article-single {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px 64px;
  line-height: 1.8;
}
.article-single h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.article-single h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  margin-top: 36px;
  margin-bottom: 12px;
}
.article-single h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 8px;
}
.article-single p,
.article-single li { color: var(--ink-mid); font-size: 0.96rem; }
.article-single a { color: var(--blue); }
.article-single a:hover { text-decoration: underline; }
.article-single ul,
.article-single ol { padding-left: 1.5rem; margin-bottom: 1rem; }

.article-single .page-lead {
  font-size: 1.1rem;
  color: var(--ink-light);
  margin-bottom: 28px;
  line-height: 1.6;
}
.article-single .yellow-cta {
  background: #F5EE9E;
  padding: 1rem 1.2rem;
  border-radius: 4px;
  font-size: 0.88rem;
  margin: 20px 0;
}

.article-layout {
  max-width: 840px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: flex-start;
}
.article-body { flex: 1 1 0; min-width: 0; }
.article-body::after { content: ''; display: table; clear: both; }
.article-sidebar { flex: 0 0 220px; }

/* Prevent AdSense iframes from overflowing their container */
ins.adsbygoogle { max-width: 100% !important; overflow: hidden; }
ins.adsbygoogle iframe { max-width: 100% !important; }

/* 12. ARTICLE BODY TYPOGRAPHY */
.article-body h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 36px;
  margin-bottom: 12px;
}
.article-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--ink);
}
.article-body p {
  font-size: 0.92rem;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 14px;
}
.article-body ul, .article-body ol {
  margin: 0 0 14px;
  padding-left: 20px;
}
.article-body li {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.65;
  padding: 2px 0;
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--blue); }
.article-body a:hover { color: var(--blue-dark); }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* Data table */
.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 24px; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.data-table thead th {
  text-align: left;
  padding: 9px 12px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  background: var(--page);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-mid);
  vertical-align: top;
  font-size: 0.82rem;
}
.data-table tbody tr:last-child td { border-bottom: none; }

/* Callout */
.callout {
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.86rem;
  color: var(--ink-mid);
  line-height: 1.6;
}
.callout strong { color: var(--blue-dark); font-weight: 600; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 0.92rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.faq-a { font-size: 0.88rem; color: var(--ink-mid); line-height: 1.65; }

/* Related cities */
.related-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.related-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 12px;
}
.city-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.city-chip {
  padding: 5px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--ink-mid);
  text-decoration: none;
  font-weight: 500;
}
.city-chip:hover { border-color: var(--blue); color: var(--blue-dark); }

/* Resources list */
.resources-list { list-style: none; padding: 0; margin: 0 0 14px; }
.resources-list li {
  font-size: 0.88rem;
  color: var(--ink-mid);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
.resources-list li:last-child { border-bottom: none; }

/* 13. KEY TAKEAWAYS */
.quick-answer {
  background: var(--protected-tint);
  border: 1px solid var(--protected-border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.qa-icon {
  width: 30px; height: 30px;
  background: var(--protected);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
}
.qa-text h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--protected);
  margin-bottom: 6px;
}
.takeaways-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin: 0; }
.takeaways-list li {
  font-size: 0.87rem;
  color: var(--ink-mid);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
  margin-bottom: 0;
}
.takeaways-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--protected);
  font-size: 0.8rem;
  font-weight: 700;
}

/* 14. AD SLOTS */
.ad-slot { display: flex; flex-direction: column; align-items: center; }
.ad-label-text {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ad-label);
  padding-bottom: 4px;
  width: 100%;
  text-align: center;
}
.ad-slot ins { display: block; }
.ad-after-summary { margin: 20px 0 28px; }
.ad-incontent-wrap {
  float: right;
  margin: 4px 0 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ad-slot-sidebar { }

/* Mobile checker (hidden on desktop) */
.mobile-checker { display: none; }

/* Mobile key facts (hidden on desktop) */
.mobile-key-facts { display: none; }

/* 15. ARTICLE SIDEBAR */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 72px;
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.checker-card {
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  padding: 18px;
}
.checker-card h4 { font-size: 0.82rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; }
.checker-card p { font-size: 0.78rem; color: var(--ink-mid); line-height: 1.5; margin-bottom: 12px; }
.checker-input {
  width: 100%;
  padding: 10px 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  background: white;
  border: 1px solid var(--blue-border);
  border-radius: 5px;
  color: var(--ink);
  outline: none;
  margin-bottom: 8px;
}
.checker-btn {
  width: 100%;
  padding: 10px;
  background: var(--blue);
  color: white !important;
  border: none;
  border-radius: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.checker-btn:hover { background: var(--blue-dark); color: white !important; }

.toc-card { padding: 18px; }
.toc-card h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list li a {
  font-size: 0.8rem;
  color: var(--ink-mid);
  text-decoration: none;
  display: block;
  padding: 5px 0 5px 11px;
  border-left: 2px solid var(--border);
  line-height: 1.4;
}
.toc-list li a:hover { border-left-color: var(--blue); color: var(--ink); }

.facts-card { padding: 18px; }
.facts-card h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
}
.fact-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.79rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.fact-row:last-child { border-bottom: none; }
.fact-key { color: var(--ink-light); }
.fact-val { font-weight: 600; color: var(--ink); text-align: right; }
.fact-val.green { color: var(--protected); }

/* Inline TOC (single-column articles) */
.article-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0 32px;
}
.article-toc .toc-heading {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
}

/* 16. EMAIL CAPTURE */
.email-capture {
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  padding: 22px;
  margin-top: 32px;
}
.email-capture h4 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.email-capture > p {
  font-size: 0.84rem;
  color: var(--ink-mid);
  margin-bottom: 14px;
  line-height: 1.5;
}
.email-form { display: flex; gap: 8px; flex-wrap: wrap; }
.email-input {
  flex: 1;
  min-width: 180px;
  padding: 10px 13px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  background: white;
  border: 1px solid var(--blue-border);
  border-radius: 5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.email-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32,156,238,0.1); }
.email-btn {
  padding: 10px 18px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.email-btn:hover { background: var(--blue-dark); }
.email-fine { font-size: 0.72rem; color: var(--ink-light); margin-top: 8px; }

/* 17. FOOTER */
footer.rcm-footer { background: var(--ink); padding: 40px 48px; margin-top: 0; }
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}
.footer-brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.footer-note { font-size: 0.74rem; color: rgba(255,255,255,0.3); max-width: 360px; line-height: 1.6; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,0.75); }

/* 18. MOBILE ≤768px */
@media (max-width: 768px) {

  /* Nav */
  .rcm-nav { padding: 0 16px; }
  .rcm-nav-links li:not(:last-child) { display: none; }

  /* Hero */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-map-panel { height: 260px; min-height: unset; order: 2; border-top: 1px solid var(--border); }
  .hero-form-panel { order: 1; padding: 24px 16px 28px; border-right: none; }
  .hero-title { font-size: 1.6rem; margin-bottom: 6px; }
  .hero-desc { font-size: 0.87rem; margin-bottom: 22px; }

  /* Results */
  .results-section { padding: 16px; }

  /* Data strip */
  .data-strip { padding: 0 16px; flex-wrap: wrap; }
  .data-item { flex: 0 0 50%; border-right: none; border-bottom: 1px solid var(--border); padding: 10px 0; }
  .data-item:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--border); }
  .data-item:nth-child(3), .data-item:nth-child(4) { border-bottom: none; }
  .data-num { font-size: 1.1rem; }

  /* Guide dir */
  .guide-dir { padding: 20px 16px; }
  .guide-dir-title { font-size: 1rem; }

  /* Article header */
  .breadcrumb-bar { padding: 8px 16px; }
  .article-header { padding: 24px 16px 20px; }

  /* Article layout */
  .article-layout { display: block; padding: 20px 16px; gap: 0; }
  .article-sidebar { display: none; }

  /* Show mobile elements */
  .mobile-checker {
    display: block;
    background: var(--blue-tint);
    border: 1px solid var(--blue-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
  }
  .mobile-checker h4 { font-size: 0.8rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
  .mobile-checker input {
    width: 100%;
    padding: 11px 13px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    background: white;
    border: 1px solid var(--blue-border);
    border-radius: 6px;
    color: var(--ink);
    outline: none;
    margin-bottom: 8px;
  }
  .mobile-checker button {
    width: 100%;
    padding: 12px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-key-facts {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
    margin: 24px 0;
  }
  .mobile-key-facts h4 {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 10px;
  }

  /* Ad slots */
  .ad-after-summary { margin: 16px 0 24px; }
  .ad-incontent-wrap { float: none; margin: 20px auto; }

  /* Data table */
  .data-table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
  .data-table { min-width: 480px; }

  /* Article body */
  .article-body p { font-size: 0.95rem; }
  .article-body li { font-size: 0.92rem; }
  .faq-q { font-size: 0.92rem; }

  /* Footer */
  footer.rcm-footer { padding: 32px 16px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-note { max-width: 100%; }
}

/* 19. SMALL MOBILE ≤480px */
@media (max-width: 480px) {
  .article-title { font-size: 1.5rem; }
  .article-meta { gap: 8px; font-size: 0.72rem; }
  .meta-divider { display: none; }
  .city-chip { font-size: 0.76rem; padding: 4px 9px; }
  .email-form { flex-direction: column; }
  .email-input, .email-btn { width: 100%; }
}
