/* ============================================
   Rahul Singh Portfolio Theme – main.css
   Matches original HTML styling 1:1
   ============================================ */

/* --- Variables --- */
:root {
  --navy: #0f2742;
  --navy-2: #14385c;
  --blue: #2563eb;
  --cyan: #0ea5e9;
  --green: #10b981;
  --orange: #f59e0b;
  --text: #172033;
  --muted: #5d6b82;
  --soft: #f4f8fc;
  --soft-2: #eaf2fb;
  --line: #dbe7f3;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 39, 66, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 40%, #f8fbff 100%);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 100;
  width: 0;
  transition: width 0.1s linear;
}

/* --- Top Bar / Navigation --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 650;
}
.navlinks a:hover { color: var(--blue); }
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  transition: 0.22s ease;
  background: var(--navy);
  color: white;
  box-shadow: 0 12px 28px rgba(15, 39, 66, 0.18);
  font-family: inherit;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(15, 39, 66, 0.24);
}
.btn.secondary {
  background: white;
  color: var(--navy);
  border-color: var(--line);
  box-shadow: none;
}
.btn.secondary:hover {
  background: var(--soft);
  transform: translateY(-1px);
}
.btn.blue { background: var(--blue); }
.menu-btn,
.hamburger {
  display: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.hamburger {
  font-size: 0;
  line-height: 0;
}
.hamburger svg {
  width: 22px;
  height: 22px;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 22px 48px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -160px -120px auto auto;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.20), rgba(14, 165, 233, 0.06) 58%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(38px, 5.3vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero h1 span { color: var(--blue); }
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 760px;
  margin: 0 0 24px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}
.chip {
  padding: 9px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
}

/* --- Hero Card --- */
.hero-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.profile-line {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
}
.profile-line h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  color: var(--navy);
}
.profile-line p {
  font-size: 13px;
  margin: 4px 0 0;
  color: var(--muted);
}
.quick-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.quick-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 14px;
}
.quick-item b { color: var(--navy); }
.quick-item span { color: var(--muted); text-align: right; }

/* --- Sections --- */
section {
  padding: 54px 22px;
}
.container {
  max-width: var(--max);
  margin: auto;
}
.container.narrow {
  max-width: 760px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}
.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: 18px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- Cards --- */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 39, 66, 0.07);
}
.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.2;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.small {
  font-size: 14px;
  color: var(--muted);
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--soft-2);
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 14px;
}

/* --- Stat Strip --- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}
.stat strong {
  display: block;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.1;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  font-weight: 700;
}

/* --- Experience Timeline --- */
.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}
.job {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  align-items: start;
}
.job-date {
  color: var(--blue);
  font-weight: 900;
  background: #edf5ff;
  border: 1px solid #d8eaff;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}
.job-body {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 39, 66, 0.06);
}
.job-body h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}
.job-body .company {
  font-weight: 800;
  color: var(--blue);
  margin: 4px 0 10px;
}
.bullets {
  margin: 12px 0 0;
  padding-left: 19px;
  color: var(--muted);
}
.bullets li {
  margin: 7px 0;
}

/* --- Confidentiality Note --- */
.confidential {
  background: linear-gradient(135deg, #0f2742, #14385c);
  color: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.confidential h2 {
  margin: 0 0 12px;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.confidential p {
  margin: 0;
  color: #dbeafe;
}

/* --- Toolbar / Filters / Search --- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  font-weight: 800;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  font-size: 14px;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.search-input {
  min-width: 260px;
  flex: 1;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  font: inherit;
  color: var(--text);
  background: white;
  font-size: 14px;
}
.search-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* --- Case Study Cards --- */
.case-card {
  overflow: hidden;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}
.case-top {
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  border-bottom: 1px solid var(--line);
}
.case-tag {
  display: inline-block;
  padding: 6px 10px;
  background: #eaf3ff;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}
.case-top h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.16;
}
.case-top p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 22px 0;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: white;
  text-align: center;
}
.metric strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.1;
}
.metric span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  margin-top: 4px;
}
.case-body {
  padding: 20px 22px 22px;
  display: grid;
  gap: 14px;
  flex: 1;
}
.case-body h4 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--muted);
  font-size: 12px;
}

/* --- Marketing Update Cards --- */
.update-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 39, 66, 0.07);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.update-badge {
  display: inline-block;
  padding: 6px 10px;
  background: #eaf3ff;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  align-self: flex-start;
}
.update-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.25;
}
.update-card h3 a {
  color: inherit;
  text-decoration: none;
}
.update-card h3 a:hover {
  color: var(--blue);
}
.update-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.update-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.update-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.update-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.update-actions {
  display: flex;
  gap: 8px;
}
.update-actions .btn {
  padding: 8px 14px;
  font-size: 13px;
}

/* --- Tools Grid --- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.tool {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  font-weight: 800;
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(15, 39, 66, 0.05);
}

/* --- Services Grid --- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-list {
  padding-left: 18px;
  margin: 12px 0 0;
  color: var(--muted);
}
.service-list li {
  margin: 7px 0;
}

/* --- Contact CTA --- */
.cta {
  background: linear-gradient(135deg, var(--navy), #0b4b87);
  border-radius: 30px;
  padding: 38px;
  color: white;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}
.cta h2 {
  font-size: 38px;
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.cta p {
  color: #dbeafe;
  margin: 0 0 20px;
}
.cta .btn {
  margin-top: 8px;
}
.contact-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 22px;
}
.contact-card div {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #eaf3ff;
  font-weight: 700;
}
.contact-card div:last-child {
  border-bottom: 0;
}

/* --- Footer --- */
.footer,
.site-footer {
  padding: 24px 22px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: white;
}

/* --- Back to Top --- */
.back-to-top,
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(15, 39, 66, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 40;
  font-size: 0;
}
.back-to-top.visible,
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover,
#back-to-top:hover {
  background: var(--blue);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 22px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--blue); }
.breadcrumbs span { margin: 0 6px; opacity: 0.5; }

/* --- Archive Header --- */
.archive-header {
  padding: 60px 22px 30px;
  text-align: center;
}
.archive-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.archive-header p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}
.archive-desc { font-size: 16px; }

/* --- Single Post / Update Pages --- */
.single-post-main,
.single-update-main {
  padding: 40px 0 80px;
}
.single-article,
.single-update-article {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-top: 16px;
}
.single-header { margin-bottom: 28px; }
.single-cats { margin-bottom: 10px; }
.single-cats a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.single-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.single-header h1 {
  font-size: clamp(24px, 4vw, 38px);
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.single-meta {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.meta-sep { opacity: 0.4; }
.single-thumb { margin: 0 0 28px; }
.single-thumb img {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}
.single-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--navy);
}
.single-content h2,
.single-content h3,
.single-content h4 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--navy);
}
.single-content p { margin-bottom: 18px; }
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 18px 0;
}
.single-content a { color: var(--blue); text-decoration: underline; }
.single-content blockquote {
  border-left: 3px solid var(--blue);
  margin: 24px 0;
  padding: 12px 20px;
  color: var(--muted);
  font-style: italic;
  background: var(--soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.single-content ul,
.single-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.single-content li { margin-bottom: 6px; }
.single-content code {
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.single-content pre {
  background: var(--navy);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 18px 0;
}
.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.single-share {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.single-share .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.single-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Post Navigation --- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.post-nav-link {
  display: block;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-nav-link:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.post-nav-link.next { text-align: right; }
.post-nav-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.post-nav-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

/* --- Pagination --- */
.pagination {
  margin-top: 50px;
  text-align: center;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, color 0.2s ease;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--blue);
  color: #fff;
}
.pagination .page-numbers.dots {
  background: transparent;
  box-shadow: none;
}

/* --- Archive Pages --- */
.archive-main,
.archive-updates-main {
  padding: 40px 0 80px;
}
.card-body { padding: 20px; }
.card-thumb img {
  width: 100%;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .hero-inner,
  .grid.two,
  .grid.three,
  .grid.four,
  .services,
  .cta {
    grid-template-columns: 1fr;
  }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
  .job { grid-template-columns: 1fr; }
  .job-date { text-align: left; }
  .navlinks {
    display: none;
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }
  .navlinks.open { display: flex; }
  .menu-btn,
  .hamburger { display: inline-flex; }
  .nav-actions .btn.secondary { display: none; }
}

@media (max-width: 620px) {
  section { padding: 42px 16px; }
  .hero { padding: 52px 16px 32px; }
  .nav { padding: 12px 16px; }
  .metrics { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { display: block; }
  .search-input { width: 100%; max-width: none; margin-top: 12px; }
  .hero-card { padding: 18px; }
  .cta { padding: 26px; }
  .cta h2 { font-size: 30px; }
  .single-article,
  .single-update-article {
    padding: 24px 18px;
  }
  .post-nav { grid-template-columns: 1fr; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .topbar,
  .toolbar,
  .btn,
  .menu-btn,
  .hamburger,
  .scroll-progress,
  .back-to-top,
  #back-to-top {
    display: none !important;
  }
  body {
    background: white;
    color: #111;
  }
  section {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 28px 0;
  }
  .container,
  .hero-inner {
    max-width: 100%;
    padding: 0 22px;
  }
  .hero {
    padding: 20px 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .card,
  .job-body,
  .hero-card,
  .stat,
  .tool {
    box-shadow: none;
  }
  .case-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  a { text-decoration: none; color: inherit; }
}

/* Expertise and editorial solution pages */
.rs-library { padding-top: 32px; padding-bottom: 72px; }
.rs-library-hero { max-width: 860px; padding: 44px 0 32px; }
.rs-library-hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.12; letter-spacing: -.04em; margin: 14px 0 22px; color: var(--navy); }
.rs-library-hero p, .rs-deck { font-size: 19px; color: var(--muted); max-width: 720px; }
.rs-library-search { padding: 24px; background: var(--soft-2); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 24px; }
.rs-library-search label { display: block; font-weight: 650; margin-bottom: 10px; }
.rs-library-search > div { display: flex; gap: 12px; }
.rs-library-search input { min-width: 0; flex: 1; font: inherit; border: 1px solid var(--line); border-radius: 9px; padding: 13px 16px; background: white; }
.rs-library-search button { cursor: pointer; font: inherit; }
.rs-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 24px; }
.rs-topics a:hover, .rs-topics [aria-current] { background: var(--navy); color: white; }
.rs-results { margin-top: 32px; }
.rs-result { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.rs-result h2 { font-size: 23px; line-height: 1.35; margin: 14px 0; }
.rs-result p { color: var(--muted); }
.rs-text-link { color: var(--blue); font-weight: 700; margin-top: auto; }
.rs-result a:hover, .rs-related a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rs-empty { padding: 36px; margin-top: 30px; }
.rs-help { margin-top: 56px; padding: 36px; border-radius: var(--radius); background: var(--navy); color: white; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.rs-help h2 { color: white; margin: 8px 0; }
.rs-help .eyebrow { color: #94caff; }
.rs-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; margin-top: 35px; }
.rs-article-sidebar .card { padding: 26px; margin-bottom: 24px; }
.rs-article-sidebar h2 { font-size: 22px; line-height: 1.4; }
.rs-related { padding-left: 20px; }
.rs-related li { margin: 14px 0; }
.rs-article-layout .entry-content pre { overflow-x: auto; }
.rs-library :focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
@media (max-width: 900px) { .rs-article-layout { grid-template-columns: 1fr; } .rs-help { align-items: flex-start; flex-direction: column; } }
@media (max-width: 540px) { .rs-library-search > div { flex-direction: column; } .rs-help { padding: 24px; } .rs-library-hero { padding-top: 24px; } }

/* Shared footer skill directory */
.rs-footer-skills { background: var(--soft-2); border-top: 1px solid var(--line); }
.rs-footer-skills .section-head { align-items: center; }
.rs-footer-skills .section-head p { color: var(--muted); max-width: 660px; }
.rs-footer-skills .section-head > .btn { flex-shrink: 0; }
.rs-skill-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rs-skill-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; min-width: 0; }
.rs-skill-number { color: var(--blue); font-size: 13px; font-weight: 750; letter-spacing: .12em; }
.rs-skill-card h3 { color: var(--navy); font-size: 19px; line-height: 1.35; margin: 12px 0 18px; }
.rs-skill-card ul { list-style: none; margin: 0; padding: 0; }
.rs-skill-card li { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.rs-skill-card li > span, .rs-skill-card li > a { display: block; padding: 11px 0; }
.rs-skill-card li a { color: var(--navy); }
.rs-skill-card li a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.rs-skill-card li a span { float: right; color: var(--blue); }
.rs-skill-note { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.rs-skill-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
/* Give templates outside section wrappers their own horizontal breathing room. */
.rs-library { padding-left: 22px; padding-right: 22px; }
.rs-library .breadcrumbs { flex-wrap: wrap; overflow-wrap: anywhere; }
.rs-result h2, .rs-article-layout h1, .rs-related a, .entry-content { overflow-wrap: anywhere; }
.rs-article-layout > *, .rs-results > * { min-width: 0; }
.entry-content pre { max-width: 100%; overflow-x: auto; white-space: pre; }
.entry-content figure { max-width: 100%; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content iframe, .entry-content video { max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
@media (max-width: 1180px) {
  .nav { gap: 12px; }
  .navlinks { gap: 12px; font-size: 13px; }
  .brand { gap: 8px; }
}
@media (max-width: 1050px) {
  .rs-skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-actions > .btn { display: none; }
}
@media (max-width: 980px) {
  .navlinks { top: 100%; max-height: calc(100dvh - 90px); overflow-y: auto; align-items: stretch; }
  .navlinks a { padding: 10px 12px; min-height: 44px; border-radius: 8px; }
  .navlinks a:hover { background: var(--soft-2); }
  .hamburger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .rs-footer-skills .section-head > .btn { margin-top: 14px; }
}
@media (max-width: 620px) {
  .rs-library { padding: 22px 16px 42px; }
  .rs-library-hero h1 { font-size: clamp(30px, 9vw, 42px); }
  .rs-library-hero p, .rs-deck { font-size: 17px; }
  .rs-article-layout { gap: 24px; margin-top: 22px; }
  .rs-article-layout h1 { font-size: clamp(28px, 8vw, 38px); line-height: 1.2; }
  .rs-library-search { padding: 18px; }
  .rs-library-search input { font-size: 16px; }
  .rs-library-search button, .rs-help .btn { min-height: 44px; }
  .rs-topics .chip { min-height: 44px; display: inline-flex; align-items: center; white-space: normal; }
  .rs-skill-grid { grid-template-columns: 1fr; gap: 14px; }
  .rs-skill-card { padding: 22px; }
  .rs-skill-card li a { min-height: 44px; }
  .rs-help { margin-top: 32px; }
  .rs-library .single-article { padding: 22px 16px; }
  .rs-library .single-meta { flex-wrap: wrap; }
  .rs-library .pagination, .rs-library .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .rs-footer-skills { display: none; } }

/* High-contrast contact cards, including the archive help banner. */
.rs-help .eyebrow { background: rgba(255,255,255,.12); color: #d9eaff; }
.rs-help > .btn { background: #fff; color: var(--navy); border-color: #fff; flex-shrink: 0; }
.rs-help > .btn:hover { background: #eaf2fb; color: var(--navy); border-color: #eaf2fb; }
.rs-help > .btn:focus-visible { outline-color: #fff; }
.rs-help p { color: #e3edf9; }
/* Dedicated specialist landing page */
.rs-specialist-wrap { padding: 32px 22px 70px; }
.rs-specialist-wrap .breadcrumbs { flex-wrap: wrap; overflow-wrap: anywhere; }
.rs-specialist-hero { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 54px; align-items: center; padding: 48px 0 56px; }
.rs-specialist-hero h1 { font-size: clamp(36px,4.6vw,60px); line-height: 1.1; letter-spacing: -.04em; color: var(--navy); margin: 22px 0; overflow-wrap: anywhere; }
.rs-specialist-intro { font-size: 19px; color: var(--muted); max-width: 680px; line-height: 1.7; }
.rs-specialist-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rs-project-card { background: var(--navy); color: #e3edf9; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.rs-project-card .eyebrow { color: #d9eaff; background: rgba(255,255,255,.12); }
.rs-project-card h2 { color: white; font-size: 27px; line-height: 1.25; margin: 22px 0 16px; }
.rs-project-card ul { padding-left: 20px; margin: 20px 0 26px; }
.rs-project-card li { padding: 5px 0; }
.rs-project-card .btn { color: var(--navy); background: white; border-color: white; }
.rs-project-card .btn:focus-visible { outline-color: white; }
.rs-specialist-section { padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.rs-specialist-section h2 { color: var(--navy); font-size: clamp(26px,3vw,36px); line-height: 1.2; letter-spacing: -.025em; margin: 18px 0 28px; }
.rs-service-grid, .rs-process-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.rs-service-card { border: 1px solid var(--line); background: white; border-radius: var(--radius-sm); padding: 28px; min-width: 0; }
.rs-service-card h3, .rs-process-grid h3 { font-size: 21px; line-height: 1.35; color: var(--navy); margin: 0 0 14px; overflow-wrap: anywhere; }
.rs-service-card p, .rs-process-grid p, .rs-deliverables p { color: var(--muted); }
.rs-service-card p { margin-bottom: 0; }
.rs-service-card .rs-text-link { display: inline-block; margin-top: 18px; }
.rs-process-grid { list-style: none; padding: 0; margin: 0; }
.rs-process-grid li { padding: 26px; border-radius: var(--radius-sm); background: var(--soft-2); min-width: 0; }
.rs-step-number { display: inline-grid; place-items: center; height: 42px; width: 42px; border-radius: 12px; background: white; color: var(--blue); font-weight: 800; margin-bottom: 22px; }
.rs-deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.rs-deliverables ul { list-style: none; margin: 0; padding: 0; }
.rs-deliverables li { padding: 18px 0 18px 30px; position: relative; border-bottom: 1px solid var(--line); }
.rs-deliverables li::before { content: '✓'; position: absolute; left: 0; color: #087e60; font-weight: 800; }
.rs-specialist-detail .entry-content { max-width: 820px; }
.rs-specialist-image { margin: 0 0 35px; }
.rs-specialist-image img { width: 100%; height: auto; border-radius: var(--radius-sm); }
@media (max-width: 980px) {
  .rs-specialist-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .rs-project-card { max-width: none; }
  .rs-service-grid, .rs-process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rs-deliverables { gap: 28px; }
}
@media (max-width: 620px) {
  .rs-specialist-wrap { padding: 24px 16px 44px; }
  .rs-specialist-hero { padding: 28px 0 36px; }
  .rs-specialist-hero h1 { font-size: clamp(32px,9vw,44px); }
  .rs-specialist-intro { font-size: 17px; }
  .rs-service-grid, .rs-process-grid, .rs-deliverables { grid-template-columns: 1fr; }
  .rs-specialist-section { padding: 30px 0; }
  .rs-project-card, .rs-service-card { padding: 24px; }
  .rs-specialist-actions { flex-direction: column; align-items: stretch; }
  .rs-specialist-actions .btn, .rs-help > .btn, .rs-project-card .btn { min-height: 48px; }
  .rs-help > .btn { width: 100%; text-align: center; }
  .rs-specialist-page .rs-topics .chip { min-height: 44px; display: inline-flex; align-items: center; white-space: normal; }
}

/* Specialist pages v2: editorial layout, workflow blueprint and scoped service detail. */
.rs-specialist-premium { background: #fbfcfe; }
.rs-pro-shell { padding-left: 24px; padding-right: 24px; }
.rs-pro-hero { position: relative; overflow: hidden; color: #fff; background: #10243b; }
.rs-pro-hero::after { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; right: -240px; top: -250px; background: radial-gradient(circle,rgba(84,188,221,.14),transparent 70%); pointer-events: none; }
.rs-pro-hero .breadcrumbs { margin: 0; padding-top: 28px; color: #becde0; font-size: 12px; flex-wrap: wrap; overflow-wrap: anywhere; }
.rs-pro-hero .breadcrumbs a { color: #e1edff; }
.rs-pro-hero-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.9fr); align-items: center; gap: 62px; padding: 62px 0 66px; position: relative; z-index: 1; }
.rs-pro-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; line-height: 1.7; font-weight: 750; }
.rs-pro-hero-copy > .rs-pro-kicker { color: #a3deea; }
.rs-pro-hero-copy > .rs-pro-kicker > span { width: 6px; height: 6px; border-radius: 50%; background: #89d9cf; flex-shrink: 0; }
.rs-pro-hero h1 { color: white; font-size: clamp(38px,4.1vw,60px); letter-spacing: -.045em; line-height: 1.06; margin: 23px 0; overflow-wrap: anywhere; }
.rs-pro-promise { color: #f4e8ce; font-size: 21px; line-height: 1.45; font-weight: 550; margin: 0 0 18px; max-width: 560px; }
.rs-pro-hero .rs-specialist-intro { color: #becde0; font-size: 16px; line-height: 1.8; margin: 0; max-width: 560px; }
.rs-pro-hero .rs-specialist-actions { gap: 24px; align-items: center; margin-top: 28px; }
.rs-pro-hero .btn, .rs-pro-final .btn { border-radius: 9px; background: #a9eadb; color: #10243b; padding: 14px 21px; box-shadow: none; min-height: 49px; }
.rs-pro-hero .btn:hover, .rs-pro-final .btn:hover { background: #c7f7eb; }
.rs-pro-quiet-link { color: #fff; font-size: 13px; font-weight: 650; padding: 12px 0; }
.rs-pro-quiet-link span { margin-left: 12px; }
.rs-pro-signature { display: flex; align-items: center; gap: 12px; margin-top: 34px; padding-top: 24px; border-top: 1px solid #33485e; }
.rs-pro-avatar { display: grid; place-items: center; border: 1px solid #56718f; border-radius: 50%; height: 38px; width: 38px; flex-shrink: 0; color: #fff; font-size: 12px; font-weight: 800; }
.rs-pro-signature strong { display: block; font-size: 13px; color: white; }
.rs-pro-signature div > span { display: block; font-size: 11px; color: #becde0; }
.rs-pro-signature a { margin-left: auto; font-size: 11px; color: #a9eadb; padding: 10px 0; }
.rs-blueprint { background: #f6f4ed; color: #10243b; border-radius: 16px; padding: 25px; box-shadow: 0 25px 60px rgba(0,0,0,.16); transform: rotate(.6deg); }
.rs-blueprint-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dddcd3; padding-bottom: 17px; gap: 12px; }
.rs-blueprint-top .rs-pro-kicker { font-size: 10px; }
.rs-blueprint-dots { color: #a1ada6; letter-spacing: 4px; font-size: 8px; white-space: nowrap; }
.rs-blueprint h2 { margin: 25px 0; font-size: 24px; line-height: 1.25; letter-spacing: -.02em; color: #10243b; }
.rs-blueprint ol { list-style: none; margin: 0; padding: 0; }
.rs-blueprint li { display: flex; gap: 14px; position: relative; padding-bottom: 24px; }
.rs-blueprint li:not(:last-child)::before { content: ''; position: absolute; width: 1px; background: #c7d1c8; left: 17px; top: 36px; bottom: 0; }
.rs-blueprint-number { background: #e0e8df; width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; font-size: 11px; font-weight: 800; }
.rs-blueprint li h3 { margin: 1px 0 5px; font-size: 15px; line-height: 1.4; }
.rs-blueprint li p { margin: 0; font-size: 12px; line-height: 1.7; color: #506058; }
.rs-blueprint-bottom { padding: 16px 0 0; border-top: 1px solid #dddcd3; font-size: 10px; color: #506058; }
.rs-blueprint-bottom > span { color: #21654e; margin-right: 7px; }
.rs-section-nav { position: sticky; top: 72px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.rs-section-nav > div { display: flex; gap: 28px; align-items: center; overflow-x: auto; scrollbar-width: thin; }
.rs-section-nav a { font-size: 12px; font-weight: 650; color: #566479; padding: 19px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.rs-section-nav a:hover, .rs-section-nav a:focus-visible { color: #123b68; border-bottom-color: #123b68; }
.rs-section-nav .rs-nav-contact { margin-left: auto; color: #113d35; }
.rs-pro-evidence { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.rs-pro-evidence .rs-pro-kicker { font-size: 9px; color: #5b6b7c; }
.rs-pro-evidence a { font-size: 12px; color: #214a75; font-weight: 650; }
.rs-pro-main-grid { display: grid; grid-template-columns: minmax(0,1fr) 288px; gap: 68px; align-items: start; }
.rs-pro-main-content { min-width: 0; }
.rs-pro-section { padding: 54px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 155px; }
.rs-pro-section-label { color: #596a7e; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 15px; }
.rs-pro-section h2, .rs-pro-related > h2 { font-size: clamp(28px,3vw,38px); line-height: 1.17; letter-spacing: -.035em; color: #10243b; margin: 0 0 24px; max-width: 680px; }
.rs-pro-section > p { font-size: 15px; color: #526176; line-height: 1.85; margin: 0 0 20px; }
.rs-pro-section > p:last-child { margin-bottom: 0; }
.rs-pro-problems { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.rs-pro-problems li { padding: 19px 0; display: flex; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--line); }
.rs-pro-problems li > span { font-size: 10px; color: #6b7b8b; font-weight: 700; }
.rs-pro-problems p { font-size: 16px; color: #20344a; margin: 0; }
.rs-pro-services { display: grid; gap: 14px; }
.rs-pro-service { display: flex; gap: 20px; align-items: flex-start; background: white; border: 1px solid var(--line); padding: 25px; border-radius: 12px; box-shadow: 0 4px 12px rgba(20,40,65,.025); }
.rs-pro-service-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; background: #eaf3f0; color: #285a4d; font-size: 11px; font-weight: 800; border-radius: 10px; }
.rs-pro-service h3 { color: #10243b; font-size: 18px; line-height: 1.3; margin: 2px 0 10px; }
.rs-pro-service p { font-size: 14px; line-height: 1.8; color: #526176; margin: 0; }
.rs-pro-service-arrow { margin-left: auto; color: #6a897f; flex-shrink: 0; }
.rs-pro-scenario { background: #edf4f1; border-left: 3px solid #70a28c; border-radius: 0 12px 12px 0; padding: 27px; margin: 30px 0; }
.rs-pro-scenario .rs-pro-kicker { color: #386653; font-size: 9px; }
.rs-pro-scenario h3 { color: #193e31; font-size: 21px; margin: 14px 0; }
.rs-pro-scenario p { margin: 0; color: #446354; line-height: 1.85; font-size: 14px; }
.rs-pro-subheading { font-size: 20px; color: #10243b; margin: 30px 0 16px; }
.rs-pro-requirements { padding-left: 19px; color: #526176; font-size: 14px; }
.rs-pro-requirements li { margin: 12px 0; }
.rs-pro-section > .rs-pro-boundary { background: #f2f4f7; padding: 18px 21px; border-radius: 9px; font-size: 12px; margin-top: 25px; }
.rs-pro-sidebar { align-self: stretch; min-width: 0; padding-top: 54px; }
.rs-pro-sidebar-inner { position: sticky; top: 165px; }
.rs-pro-delivery { border: 1px solid #dddcd3; background: #f6f4ed; border-radius: 14px; padding: 27px; }
.rs-pro-delivery .rs-pro-kicker { font-size: 9px; color: #576d5e; }
.rs-pro-delivery h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.035em; margin: 16px 0 23px; color: #10243b; }
.rs-pro-delivery ul { list-style: none; padding: 0; margin: 0 0 26px; }
.rs-pro-delivery li { font-size: 13px; line-height: 1.75; display: flex; gap: 11px; border-top: 1px solid #dddcd3; padding: 14px 0; }
.rs-pro-delivery li > span { color: #28694d; }
.rs-pro-delivery .btn { font-size: 11px; border-radius: 8px; width: 100%; padding: 13px 9px; box-shadow: none; }
.rs-pro-delivery > p { color: #66705f; font-size: 10px; line-height: 1.7; text-align: center; margin: 14px 0 0; }
.rs-pro-side-note { padding: 27px 12px; }
.rs-pro-side-note strong { font-size: 13px; color: #20344a; }
.rs-pro-side-note p { font-size: 12px; line-height: 1.8; color: #667387; }
.rs-pro-side-note a { color: #214a75; font-size: 12px; font-weight: 650; }
.rs-pro-faqs { border-top: 1px solid var(--line); }
.rs-pro-faqs details { border-bottom: 1px solid var(--line); }
.rs-pro-faqs summary { cursor: pointer; font-size: 15px; font-weight: 650; padding: 22px 0; color: #20344a; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rs-pro-faqs summary::-webkit-details-marker { display: none; }
.rs-pro-faqs summary > span { font-size: 23px; font-weight: 400; color: #567a6b; }
.rs-pro-faqs details[open] summary > span { transform: rotate(45deg); }
.rs-pro-faqs details > p { color: #526176; font-size: 14px; line-height: 1.9; margin: 0 0 24px; max-width: 660px; }
.rs-pro-related { padding: 55px 0; }
.rs-pro-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.rs-pro-related-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: white; display: flex; flex-direction: column; }
.rs-pro-related-card .rs-pro-kicker { color: #667387; font-size: 9px; }
.rs-pro-related-card h3 { color: #20344a; font-size: 19px; line-height: 1.3; margin: 20px 0 27px; }
.rs-pro-related-card .rs-text-link { font-size: 12px; }
.rs-pro-related-card:hover { border-color: #78a18e; }
.rs-pro-final { margin: 45px 0 65px; padding: 48px; border-radius: 17px; background: #10243b; color: white; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.rs-pro-final .rs-pro-kicker { color: #a3deea; }
.rs-pro-final h2 { color: white; margin: 18px 0; font-size: clamp(30px,3.5vw,45px); line-height: 1.13; letter-spacing: -.035em; }
.rs-pro-final p { font-size: 14px; color: #becde0; max-width: 490px; }
.rs-pro-final .btn { flex-shrink: 0; font-size: 13px; }
.rs-specialist-premium :focus-visible { outline-color: #398dce; outline-offset: 5px; }
.rs-pro-hero :focus-visible, .rs-pro-final :focus-visible { outline-color: #b0f0de; }
body.admin-bar .rs-section-nav { top: 104px; }
@media (max-width: 1050px) {
  .rs-pro-hero-grid { gap: 34px; }
  .rs-pro-main-grid { gap: 36px; grid-template-columns: minmax(0,1fr) 260px; }
  .rs-pro-signature { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .rs-pro-hero-grid { grid-template-columns: 1fr; padding: 35px 0 42px; }
  .rs-blueprint { transform: none; }
  .rs-blueprint ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .rs-blueprint li { display: block; padding: 0 0 14px; }
  .rs-blueprint-number { margin-bottom: 12px; }
  .rs-blueprint li:not(:last-child)::before { display: none; }
  .rs-pro-main-grid { grid-template-columns: 1fr; gap: 0; }
  .rs-pro-sidebar { padding: 30px 0; }
  .rs-pro-sidebar-inner { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .rs-pro-evidence { align-items: flex-start; flex-direction: column; gap: 8px; }
  .rs-section-nav { top: 69px; }
  .rs-section-nav > div { gap: 24px; }
  .rs-section-nav .rs-nav-contact { margin-left: 0; }
  .rs-pro-final { padding: 34px; }
}
@media (max-width: 620px) {
  .rs-pro-shell { padding-left: 20px; padding-right: 20px; }
  .rs-pro-hero .breadcrumbs { padding-top: 20px; font-size: 10px; }
  .rs-pro-hero h1 { font-size: clamp(36px,10.5vw,48px); }
  .rs-pro-hero-grid { padding-top: 29px; gap: 30px; }
  .rs-pro-promise { font-size: 19px; }
  .rs-pro-hero .rs-specialist-intro { font-size: 14px; }
  .rs-pro-hero .rs-specialist-actions { align-items: stretch; gap: 8px; }
  .rs-pro-quiet-link { text-align: center; }
  .rs-pro-signature { margin-top: 20px; padding-top: 19px; gap: 10px; }
  .rs-pro-signature a { font-size: 10px; }
  .rs-pro-signature div > span { font-size: 10px; }
  .rs-pro-kicker { font-size: 9px; letter-spacing: .1em; }
  .rs-blueprint { padding: 21px; border-radius: 12px; }
  .rs-blueprint h2 { font-size: 22px; }
  .rs-blueprint ol { display: block; }
  .rs-blueprint li { display: flex; gap: 13px; padding-bottom: 19px; }
  .rs-blueprint li:not(:last-child)::before { display: block; }
  .rs-blueprint li h3 { font-size: 14px; }
  .rs-blueprint li p { font-size: 12px; }
  .rs-blueprint-number { margin: 0; }
  .rs-section-nav { top: 69px; }
  .rs-section-nav a { padding-top: 16px; padding-bottom: 16px; font-size: 11px; }
  .rs-pro-section { padding: 36px 0; scroll-margin-top: 145px; }
  .rs-pro-section h2 { font-size: 29px; }
  .rs-pro-section > p { font-size: 14px; }
  .rs-pro-problems p { font-size: 15px; }
  .rs-pro-service { padding: 22px 17px; gap: 14px; }
  .rs-pro-service h3 { font-size: 17px; }
  .rs-pro-service p { font-size: 13px; }
  .rs-pro-service-icon { width: 32px; height: 32px; font-size: 9px; }
  .rs-pro-service-arrow { display: none; }
  .rs-pro-scenario { padding: 22px; }
  .rs-pro-scenario h3 { font-size: 20px; }
  .rs-pro-sidebar-inner, .rs-pro-related-grid { grid-template-columns: 1fr; }
  .rs-pro-side-note { padding: 8px; }
  .rs-pro-faqs summary { font-size: 14px; min-height: 54px; }
  .rs-pro-related { padding: 35px 0; }
  .rs-pro-final { margin-top: 25px; margin-bottom: 42px; padding: 28px 24px; flex-direction: column; align-items: stretch; gap: 20px; }
  .rs-pro-final h2 { font-size: 32px; }
  .rs-pro-final .btn { width: 100%; }
  body.admin-bar .rs-section-nav { top: 115px; }
}
@media (max-width: 782px) and (min-width: 621px) { body.admin-bar .rs-section-nav { top: 115px; } }
@media print {
  .rs-section-nav, .rs-pro-sidebar, .rs-pro-final { display: none; }
  .rs-pro-hero { background: white; color: black; }
  .rs-pro-hero h1, .rs-pro-promise, .rs-pro-hero .rs-specialist-intro { color: black; }
  .rs-pro-main-grid, .rs-pro-hero-grid { display: block; }
  .rs-pro-hero .breadcrumbs, .rs-blueprint { display: none; }
  .rs-pro-section { break-inside: auto; }
}
.rs-section-nav { top: var(--rs-header-height, 74px); }
body.admin-bar .topbar { top: 32px; }
body.admin-bar .rs-section-nav { top: calc(var(--rs-header-height, 74px) + 32px); }
@media (max-width: 782px) {
  body.admin-bar .topbar { top: 46px; }
  body.admin-bar .rs-section-nav { top: calc(var(--rs-header-height, 69px) + 46px); }
}
.rs-pro-hero .breadcrumbs span[aria-current="page"] { opacity: 1; color: #becde0; }
