/* ============================================================
   ResultMaps — SEO Hub, Service, Niche, Calculator & Blog Styles
   Design tokens inherited from style.css (--green: #67b860, Manrope)
   ============================================================ */

.rm-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.rm-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.18s ease;
  white-space: nowrap;
}
.rm-nav a:hover,
.rm-nav a.is-active {
  color: var(--green-dark);
}
@media (max-width: 1080px) {
  .rm-nav {
    display: none;
  }
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(103, 184, 96, 0.55);
  animation: rm-status-pulse 2s infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes rm-status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(103, 184, 96, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(103, 184, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(103, 184, 96, 0); }
}

.rm-breadcrumbs {
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.rm-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.rm-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rm-breadcrumbs li + li::before {
  content: "/";
  color: #c2c2c2;
}
.rm-breadcrumbs a {
  color: var(--muted);
  transition: color 0.18s ease;
}
.rm-breadcrumbs a:hover {
  color: var(--green-dark);
}
.rm-breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.rm-hero {
  padding: 36px 0 56px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf6 100%);
}
.rm-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}
.rm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid #cce8c9;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.rm-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.rm-hero h1 .accent {
  color: var(--green);
}
.rm-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 24px;
  max-width: 680px;
}
.rm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.btn-outline-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s ease;
}
.btn-outline-green:hover {
  background: var(--green-soft);
}

.rm-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rm-metric-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.rm-metric-pill strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.2;
}
.rm-metric-pill span {
  font-size: 13px;
  color: var(--muted);
}

.rm-hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.rm-hero-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}
.rm-hero-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.rm-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
}
.rm-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.rm-check-list svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.rm-section {
  padding: 64px 0;
}
.rm-section--alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rm-section-head {
  max-width: 760px;
  margin-bottom: 36px;
}
.rm-section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--ink);
}
.rm-section-head p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.rm-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.rm-cards-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.rm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.rm-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #b8e0b4;
}
.brand-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-soft);
  border: 1px solid #cce8c9;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rm-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}
.rm-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}
.rm-card-link {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
}

.rm-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.rm-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.rm-step-num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.rm-step h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}
.rm-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.rm-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.rm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.rm-table th,
.rm-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.rm-table th {
  background: #f3f9f2;
  font-weight: 800;
  color: var(--ink);
}
.rm-table tr:last-child td {
  border-bottom: none;
}
.rm-price-tag {
  font-weight: 800;
  color: var(--green-dark);
  white-space: nowrap;
}

.rm-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.rm-tariff {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.rm-tariff--featured {
  border: 2px solid var(--green);
  box-shadow: var(--shadow-md);
  position: relative;
}
.rm-tariff-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.rm-tariff h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}
.rm-tariff-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  margin: 10px 0 4px;
}
.rm-tariff-price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.rm-tariff-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.rm-tariff .btn {
  margin-top: auto;
  width: 100%;
}

.rm-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}
.rm-faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.rm-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rm-faq-item summary::-webkit-details-marker {
  display: none;
}
.rm-faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.rm-faq-item[open] summary::after {
  content: "−";
  background: var(--green);
  color: #fff;
}
.rm-faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

.rm-cta-banner {
  background: linear-gradient(135deg, #1f331e 0%, #2b4a29 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
}
.rm-cta-banner h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.rm-cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.6;
}
.rm-cta-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.rm-article-prose {
  max-width: 820px;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink-2);
}
.rm-article-prose h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin: 36px 0 14px;
  line-height: 1.25;
}
.rm-article-prose h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 10px;
}
.rm-article-prose p {
  margin-bottom: 16px;
}
.rm-article-prose ul,
.rm-article-prose ol {
  margin: 0 0 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rm-callout {
  background: #f3faf2;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15.5px;
  color: var(--ink);
}

/* Interactive Calculator */
.rm-calc-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.rm-calc-field {
  margin-bottom: 20px;
}
.rm-calc-field label {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 8px;
  color: var(--ink);
}
.rm-calc-select,
.rm-calc-range {
  width: 100%;
}
.rm-calc-select {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}
.rm-calc-result {
  background: #f5fbf4;
  border: 1.5px solid #c6e6c3;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.rm-calc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.rm-calc-kpi {
  background: #fff;
  border: 1px solid #dfeedd;
  border-radius: var(--radius-sm);
  padding: 14px;
}
.rm-calc-kpi span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.rm-calc-kpi strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--green-dark);
}

@media (max-width: 960px) {
  .rm-hero-grid,
  .rm-cards-grid,
  .rm-steps-grid,
  .rm-pricing-grid,
  .rm-cta-banner,
  .rm-calc-wrap {
    grid-template-columns: 1fr;
  }
  .rm-cards-grid--2 {
    grid-template-columns: 1fr;
  }
  .rm-metrics-row {
    grid-template-columns: 1fr;
  }
  .rm-cta-banner {
    padding: 28px 24px;
  }
}
