/*
Theme Name: AS64013 RedMesh
Theme URI: https://www.as64013.com/
Author: OpenAI
Author URI: https://openai.com/
Description: A clean dark multi-page network-service WordPress theme for AS64013. Version 2.1 adds starter pages, service-detail layouts, auto-created menus, dynamic service templates, a richer homepage, blog templates, and Customizer options.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: as64013-redmesh
Tags: custom-logo, custom-menu, featured-images, blog, one-column, two-columns, wide-blocks, block-styles
*/

:root {
  --rm-bg: #070910;
  --rm-bg-soft: #0d1220;
  --rm-surface: rgba(15, 23, 42, 0.78);
  --rm-surface-strong: rgba(15, 23, 42, 0.94);
  --rm-surface-light: rgba(255, 255, 255, 0.06);
  --rm-line: rgba(148, 163, 184, 0.18);
  --rm-line-strong: rgba(248, 113, 113, 0.34);
  --rm-text: #f8fafc;
  --rm-muted: #aab6ca;
  --rm-muted-2: #7d8aa2;
  --rm-accent: #ef4444;
  --rm-accent-2: #fb923c;
  --rm-good: #22c55e;
  --rm-link: #f97316;
  --rm-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --rm-radius: 24px;
  --rm-radius-sm: 14px;
  --rm-container: 1180px;
  --rm-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rm-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(239, 68, 68, 0.24), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(249, 115, 22, 0.20), transparent 28%),
    linear-gradient(180deg, #070910 0%, #090d17 48%, #0b0f18 100%);
  color: var(--rm-text);
  font-family: var(--rm-font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto -20% -20% -20%;
  height: 45vh;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.12), transparent 64%);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

img {
  border-radius: var(--rm-radius-sm);
}

a {
  color: var(--rm-link);
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a:hover,
a:focus {
  color: #fed7aa;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--rm-accent-2);
  outline-offset: 4px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

p {
  color: var(--rm-muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--rm-text);
  line-height: 1.12;
  margin: 0 0 0.72em;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.65rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

hr {
  border: 0;
  border-top: 1px solid var(--rm-line);
  margin: 2rem 0;
}

pre,
code {
  font-family: var(--rm-mono);
}

pre {
  overflow-x: auto;
  padding: 1.15rem;
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius-sm);
  background: rgba(2, 6, 23, 0.72);
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--rm-muted);
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rm-line);
  text-align: left;
}

th {
  color: var(--rm-text);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--rm-line);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.64);
  color: var(--rm-text);
  padding: 0.9rem 1rem;
}

textarea {
  min-height: 150px;
}

input[type="submit"],
.wp-block-button__link,
.rm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  min-height: 48px;
  font-weight: 750;
  line-height: 1;
  background: linear-gradient(135deg, var(--rm-accent), var(--rm-accent-2));
  color: #fff;
  box-shadow: 0 16px 42px rgba(239, 68, 68, 0.28);
}

input[type="submit"]:hover,
.wp-block-button__link:hover,
.rm-button:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 22px 54px rgba(239, 68, 68, 0.34);
}

.rm-button--ghost {
  color: var(--rm-text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--rm-line);
  box-shadow: none;
}

.rm-button--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  box-shadow: none;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fff;
  color: #111827;
}

.skip-link:focus {
  top: 1rem;
}

.rm-container,
.site-main,
.rm-section__inner,
.rm-header__inner,
.rm-footer__inner {
  width: min(var(--rm-container), calc(100vw - 2rem));
  margin-inline: auto;
}

.rm-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  padding-block: 2rem 5rem;
}

body.home .site-main,
body.front-page .site-main,
body.page-template-page-landing .site-main {
  width: 100%;
  padding: 0;
}

.rm-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(7, 9, 16, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-bar .rm-site-header {
  top: 32px;
}

.rm-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.rm-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--rm-text);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.rm-brand:hover,
.rm-brand:focus {
  color: #fff;
}

.rm-brand__mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.85), transparent 0.1rem),
    linear-gradient(135deg, var(--rm-accent), var(--rm-accent-2));
  box-shadow: 0 14px 35px rgba(239, 68, 68, 0.28);
  font-size: 0.84rem;
  font-family: var(--rm-mono);
}

.rm-brand__name {
  display: block;
  line-height: 1.05;
  font-size: 1.15rem;
}

.rm-brand__tagline {
  display: block;
  margin-top: 0.14rem;
  color: var(--rm-muted-2);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  max-height: 52px;
  width: auto;
  border-radius: 0;
}

.rm-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rm-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rm-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--rm-text);
}

.rm-menu-toggle__bar,
.rm-menu-toggle__bar::before,
.rm-menu-toggle__bar::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.rm-menu-toggle__bar {
  position: relative;
}

.rm-menu-toggle__bar::before,
.rm-menu-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.rm-menu-toggle__bar::before {
  top: -6px;
}

.rm-menu-toggle__bar::after {
  top: 6px;
}

.rm-menu,
.rm-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rm-menu {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.rm-menu li {
  position: relative;
}

.rm-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.54rem 0.72rem;
  border-radius: 999px;
  color: var(--rm-muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.rm-menu a:hover,
.rm-menu a:focus,
.rm-menu .current-menu-item > a,
.rm-menu .current_page_item > a {
  color: var(--rm-text);
  background: rgba(255, 255, 255, 0.06);
}

.rm-menu .sub-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 210px;
  padding: 0.5rem;
  border: 1px solid var(--rm-line);
  border-radius: 16px;
  background: var(--rm-surface-strong);
  box-shadow: var(--rm-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 160ms ease;
}

.rm-menu li:hover > .sub-menu,
.rm-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rm-menu .sub-menu a {
  width: 100%;
  border-radius: 12px;
}

.rm-header-cta {
  padding-inline: 1rem;
}

.rm-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7.2rem) 0 clamp(3rem, 6vw, 5.5rem);
}

.rm-hero::before {
  content: "";
  position: absolute;
  inset: 5% -10% auto auto;
  width: min(56vw, 650px);
  height: min(56vw, 650px);
  border-radius: 999px;
  background:
    radial-gradient(circle at 42% 44%, rgba(255, 255, 255, 0.09), transparent 8%),
    radial-gradient(circle at center, rgba(239, 68, 68, 0.18), transparent 58%);
  filter: blur(0.2px);
  opacity: 0.9;
  pointer-events: none;
}

.rm-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.rm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--rm-line-strong);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(239, 68, 68, 0.09);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rm-kicker::before {
  content: "";
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--rm-good);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.rm-gradient-text {
  background: linear-gradient(135deg, #fff 0%, #fee2e2 38%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rm-hero__lead {
  max-width: 720px;
  margin: 0 0 1.8rem;
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  color: var(--rm-muted);
}

.rm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.7rem;
}

.rm-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  color: var(--rm-muted-2);
  font-size: 0.94rem;
  font-weight: 650;
}

.rm-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
}

.rm-hero__meta span::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--rm-accent-2);
}

.rm-network-card {
  position: relative;
  min-height: 470px;
  padding: 1.1rem;
  border: 1px solid var(--rm-line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(15, 23, 42, 0.55);
  box-shadow: var(--rm-shadow);
  overflow: hidden;
}

.rm-network-card::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    linear-gradient(120deg, transparent 38%, rgba(255, 255, 255, 0.10), transparent 55%),
    radial-gradient(circle at 40% 40%, rgba(239, 68, 68, 0.15), transparent 34%);
  animation: rmSweep 7s linear infinite;
}

@keyframes rmSweep {
  0% { transform: translateX(-5%) rotate(0deg); }
  100% { transform: translateX(5%) rotate(360deg); }
}

.rm-network-card__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 448px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.56);
}

.rm-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--rm-muted-2);
  font-family: var(--rm-mono);
  font-size: 0.78rem;
}

.rm-card-dots {
  display: inline-flex;
  gap: 0.38rem;
}

.rm-card-dots span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.7);
}

.rm-card-dots span:nth-child(2) {
  background: rgba(251, 146, 60, 0.7);
}

.rm-card-dots span:nth-child(3) {
  background: rgba(34, 197, 94, 0.7);
}

.rm-map {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
}

.rm-orbit {
  position: absolute;
  border: 1px solid rgba(248, 113, 113, 0.26);
  border-radius: 999px;
}

.rm-orbit--one {
  width: 80%;
  aspect-ratio: 1 / 0.58;
  transform: rotate(-18deg);
}

.rm-orbit--two {
  width: 64%;
  aspect-ratio: 1 / 0.58;
  transform: rotate(18deg);
}

.rm-orbit--three {
  width: 48%;
  aspect-ratio: 1 / 0.58;
  transform: rotate(52deg);
}

.rm-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 7px rgba(239, 68, 68, 0.12), 0 0 26px rgba(239, 68, 68, 0.8);
}

.rm-node--one { top: 18%; left: 22%; }
.rm-node--two { top: 24%; right: 18%; }
.rm-node--three { bottom: 20%; left: 28%; }
.rm-node--four { right: 29%; bottom: 18%; }

.rm-core {
  position: relative;
  z-index: 2;
  width: 156px;
  height: 156px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.35), transparent 18%),
    linear-gradient(135deg, rgba(239, 68, 68, 0.94), rgba(251, 146, 60, 0.92));
  box-shadow: 0 0 80px rgba(239, 68, 68, 0.42);
  color: #fff;
  font-family: var(--rm-mono);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.rm-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.rm-status-item {
  padding: 0.8rem;
  border: 1px solid var(--rm-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.rm-status-item strong,
.rm-stat strong {
  display: block;
  color: var(--rm-text);
  font-size: 1rem;
  line-height: 1.2;
}

.rm-status-item span,
.rm-stat span {
  display: block;
  margin-top: 0.24rem;
  color: var(--rm-muted-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rm-section {
  padding: clamp(3.8rem, 7vw, 6.4rem) 0;
}

.rm-section--tight {
  padding: clamp(2.6rem, 5vw, 4rem) 0;
}

.rm-section__header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.rm-section__header.centered {
  margin-inline: auto;
  text-align: center;
}

.rm-eyebrow {
  margin: 0 0 0.6rem;
  color: #fed7aa;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rm-grid {
  display: grid;
  gap: 1rem;
}

.rm-grid--services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rm-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rm-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rm-card {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius);
  background: var(--rm-surface);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.rm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), transparent 35%);
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.rm-card:hover::before {
  opacity: 1;
}

.rm-service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.rm-service-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 18px;
  background: rgba(239, 68, 68, 0.11);
  color: #fecaca;
}

.rm-service-card h3 {
  margin-bottom: 0.55rem;
}

.rm-service-card p {
  margin: 0 0 1.4rem;
}

.rm-service-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  color: #fed7aa;
  font-weight: 850;
}

.rm-service-card__link::after {
  content: "→";
  margin-left: 0.45rem;
  transition: transform 160ms ease;
}

.rm-service-card:hover .rm-service-card__link::after {
  transform: translateX(3px);
}

.rm-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.rm-feature-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.rm-feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.95rem;
  border: 1px solid var(--rm-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--rm-muted);
}

.rm-feature-list li::before {
  content: "";
  width: 0.68rem;
  height: 0.68rem;
  margin-top: 0.43rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rm-accent), var(--rm-accent-2));
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12);
}

.rm-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rm-stat {
  padding: 1.25rem;
  border: 1px solid var(--rm-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.rm-stat strong {
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  letter-spacing: -0.08em;
}

.rm-band {
  border-block: 1px solid var(--rm-line);
  background:
    radial-gradient(circle at 20% 10%, rgba(239, 68, 68, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.03);
}

.rm-process {
  counter-reset: rm-step;
}

.rm-step {
  counter-increment: rm-step;
}

.rm-step::after {
  content: "0" counter(rm-step);
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.08);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

.rm-step h3,
.rm-step p {
  position: relative;
  z-index: 1;
}

.rm-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--rm-line-strong);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.20), transparent 35%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.86));
  box-shadow: var(--rm-shadow);
}

.rm-contact-panel p {
  margin-bottom: 0;
}

.rm-post-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius);
  background: var(--rm-surface);
}

.rm-post-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.rm-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  color: var(--rm-muted-2);
  font-size: 0.86rem;
  font-weight: 700;
}

.rm-entry-meta a {
  color: var(--rm-muted-2);
}

.rm-entry-title a {
  color: var(--rm-text);
}

.rm-entry-title a:hover {
  color: #fed7aa;
}

.rm-entry-summary p:last-child,
.entry-content p:last-child {
  margin-bottom: 0;
}

.rm-page-header {
  padding: clamp(3rem, 7vw, 5rem) 0 1.5rem;
}

.rm-page-header__inner {
  max-width: 850px;
}

.entry-content,
.comment-content {
  color: var(--rm-muted);
}

.entry-content > * {
  margin-top: 0;
}

.entry-content > * + * {
  margin-top: 1.35rem;
}

.entry-content a {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.alignwide {
  width: min(1320px, calc(100vw - 2rem));
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.wp-caption,
.gallery-caption {
  color: var(--rm-muted-2);
}

.bypostauthor {
  border-left: 3px solid var(--rm-accent);
}

.rm-pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 2rem;
}

.page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--rm-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--rm-muted);
  font-weight: 750;
}

.page-numbers.current,
.nav-links .current {
  color: #fff;
  border-color: var(--rm-line-strong);
  background: rgba(239, 68, 68, 0.12);
}

.rm-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rm-line);
}

.comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-list .comment-body {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.rm-search-form {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
  max-width: 620px;
}

.rm-search-form label {
  flex: 1 1 auto;
}

.rm-search-form .search-submit {
  width: auto;
  white-space: nowrap;
}

.rm-site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rm-line);
  background: rgba(2, 6, 23, 0.62);
}

.rm-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.7rem 0;
  color: var(--rm-muted-2);
  font-size: 0.92rem;
}

.rm-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rm-footer-menu a {
  color: var(--rm-muted-2);
  font-weight: 650;
}

.rm-no-results {
  padding: 2rem;
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius);
  background: var(--rm-surface);
}

@media (max-width: 1040px) {
  .rm-grid--services,
  .rm-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-hero__inner,
  .rm-split {
    grid-template-columns: 1fr;
  }

  .rm-network-card {
    max-width: 620px;
  }
}

@media (max-width: 860px) {
  .admin-bar .rm-site-header {
    top: 46px;
  }

  .rm-menu-toggle {
    display: inline-flex;
  }

  .rm-navigation {
    margin-left: auto;
  }

  .rm-menu-wrap {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: none;
    padding: 0.75rem;
    border: 1px solid var(--rm-line);
    border-radius: 18px;
    background: rgba(7, 9, 16, 0.96);
    box-shadow: var(--rm-shadow);
  }

  .rm-menu-wrap.is-open {
    display: block;
  }

  .rm-menu {
    display: grid;
    gap: 0.25rem;
  }

  .rm-menu a {
    width: 100%;
    border-radius: 12px;
  }

  .rm-menu .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0.25rem 0 0.25rem 1rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
  }

  .rm-menu li:hover > .sub-menu,
  .rm-menu li:focus-within > .sub-menu {
    display: block;
  }

  .rm-header-cta {
    display: none;
  }

  .rm-contact-panel {
    grid-template-columns: 1fr;
  }

  .rm-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rm-container,
  .site-main,
  .rm-section__inner,
  .rm-header__inner,
  .rm-footer__inner {
    width: min(var(--rm-container), calc(100vw - 1.25rem));
  }

  .rm-header__inner {
    min-height: 68px;
  }

  .rm-brand__tagline {
    display: none;
  }

  .rm-grid--services,
  .rm-grid--two,
  .rm-grid--three,
  .rm-status-grid,
  .rm-metrics {
    grid-template-columns: 1fr;
  }

  .rm-hero {
    padding-top: 3rem;
  }

  .rm-network-card,
  .rm-network-card__inner {
    min-height: 380px;
  }

  .rm-map {
    min-height: 190px;
  }

  .rm-core {
    width: 118px;
    height: 118px;
  }

  .rm-search-form {
    display: grid;
  }

  .rm-search-form .search-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Version 1.1 multi-page service refinements. */
body.page:not(.home) .site-main {
  padding-bottom: 6rem;
}

.rm-page-header {
  position: relative;
  overflow: hidden;
}

.rm-page-header::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  width: min(64vw, 760px);
  height: min(64vw, 760px);
  transform: translate(-15%, -62%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.16), transparent 64%);
  pointer-events: none;
}

.rm-page-header__inner {
  position: relative;
  z-index: 1;
}

.entry-content code {
  padding: 0.18rem 0.34rem;
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fed7aa;
  font-family: var(--rm-mono);
  font-size: 0.9em;
}

.entry-content .rm-button {
  text-decoration: none;
}

.rm-service-page {
  display: grid;
  gap: clamp(1.3rem, 3vw, 2rem);
}

.rm-service-intro {
  max-width: 860px;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--rm-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 8%, rgba(239, 68, 68, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.035);
}

.rm-service-intro h2 {
  max-width: 780px;
}

.rm-brief-grid,
.rm-resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rm-resource-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-content .rm-grid {
  margin-top: 0;
}

.entry-content .rm-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rm-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rm-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.rm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.rm-table th,
.rm-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--rm-line);
  text-align: left;
  vertical-align: top;
}

.rm-table tr:last-child th,
.rm-table tr:last-child td {
  border-bottom: 0;
}

.rm-table th {
  width: 180px;
  color: var(--rm-text);
  font-weight: 850;
}

.rm-table td {
  color: var(--rm-muted);
}

.rm-terminal {
  padding: 1rem;
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(2, 6, 23, 0.78);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
}

.rm-terminal--wide {
  max-width: 100%;
}

.rm-terminal pre {
  margin: 1rem 0 0;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  color: #fed7aa;
  font-family: var(--rm-mono);
  font-size: 0.9rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.entry-content .rm-contact-panel {
  margin: 0;
}

@media (max-width: 1040px) {
  .entry-content .rm-grid--three,
  .rm-resource-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .rm-brief-grid,
  .rm-resource-list,
  .entry-content .rm-grid--three {
    grid-template-columns: 1fr;
  }

  .rm-table {
    min-width: 0;
  }

  .rm-table th,
  .rm-table td {
    display: block;
    width: 100%;
  }

  .rm-table th {
    padding-bottom: 0.25rem;
  }

  .rm-table td {
    padding-top: 0.25rem;
  }
}


/* Version 2 multi-page refinements */
.rm-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rm-page-subtitle {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--rm-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.rm-entry-content--detailed {
  max-width: var(--rm-container);
}

.rm-content-section {
  margin: 0 0 clamp(2rem, 5vw, 4rem);
}

.rm-lead-section {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--rm-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 12%, rgba(239, 68, 68, 0.16), transparent 30%),
    rgba(15, 23, 42, 0.54);
  box-shadow: var(--rm-shadow);
}

.rm-lead {
  max-width: 880px;
  margin: 0 0 1.5rem;
  color: var(--rm-text);
  font-size: clamp(1.12rem, 2.5vw, 1.55rem);
  line-height: 1.55;
  letter-spacing: -0.035em;
}

.rm-content-grid {
  display: grid;
  gap: 1rem;
}

.rm-content-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rm-content-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rm-info-card {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--rm-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.rm-info-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--rm-accent), transparent);
  opacity: 0.7;
}

.rm-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.rm-info-card p:last-child,
.rm-info-card ul:last-child {
  margin-bottom: 0;
}

.rm-slab {
  padding: clamp(1.35rem, 4vw, 2.35rem);
  border: 1px solid var(--rm-line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.10), transparent 34%),
    rgba(2, 6, 23, 0.38);
}

.rm-feature-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rm-spec-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rm-spec-list--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rm-spec-list li {
  display: grid;
  gap: 0.28rem;
  padding: 1rem;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.rm-spec-list strong {
  color: var(--rm-text);
}

.rm-spec-list span {
  color: var(--rm-muted);
}

.rm-timeline {
  counter-reset: rm-timeline;
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rm-timeline li {
  counter-increment: rm-timeline;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.rm-timeline li::before {
  content: counter(rm-timeline);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rm-accent), var(--rm-accent-2));
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.rm-timeline strong {
  display: block;
  color: var(--rm-text);
}

.rm-timeline span {
  display: block;
  color: var(--rm-muted);
}

.rm-note {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 18px;
  background: rgba(251, 146, 60, 0.08);
  color: #fed7aa;
}

.rm-cta-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border: 1px solid var(--rm-line-strong);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 10%, rgba(239, 68, 68, 0.16), transparent 35%),
    rgba(15, 23, 42, 0.82);
}

.rm-cta-inline h3,
.rm-cta-inline p {
  margin: 0;
}

.rm-cta-inline p {
  margin-top: 0.4rem;
}

.rm-console {
  border: 1px solid var(--rm-line);
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.76);
  box-shadow: var(--rm-shadow);
  overflow: hidden;
}

.rm-console__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rm-line);
  color: var(--rm-muted-2);
  font-family: var(--rm-mono);
  font-size: 0.8rem;
}

.rm-console__bar span {
  width: 0.66rem;
  height: 0.66rem;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.78);
}

.rm-console__bar span:nth-child(2) {
  background: rgba(251, 146, 60, 0.78);
}

.rm-console__bar span:nth-child(3) {
  background: rgba(34, 197, 94, 0.78);
}

.rm-console__bar em {
  margin-left: 0.5rem;
  font-style: normal;
}

.rm-console pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  color: #dbeafe;
  font-family: var(--rm-mono);
  font-size: 0.92rem;
  line-height: 1.7;
}

.rm-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.rm-pill-grid span {
  display: block;
  padding: 0.95rem 1rem;
  border: 1px solid var(--rm-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--rm-muted);
  text-align: center;
  font-weight: 750;
}

.rm-network-topology {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  margin-top: 1rem;
  border: 1px solid var(--rm-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at center, rgba(239, 68, 68, 0.14), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.rm-topology-ring {
  position: absolute;
  width: min(72%, 620px);
  aspect-ratio: 1;
  border: 1px dashed rgba(248, 113, 113, 0.42);
  border-radius: 999px;
}

.rm-topology-ring::before,
.rm-topology-ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: inherit;
}

.rm-topology-ring::after {
  inset: 27%;
}

.rm-topology-node {
  position: relative;
  z-index: 2;
  width: 145px;
  height: 145px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rm-accent), var(--rm-accent-2));
  color: #fff;
  font-family: var(--rm-mono);
  font-weight: 900;
  box-shadow: 0 0 70px rgba(239, 68, 68, 0.35);
}

.rm-topology-label {
  position: absolute;
  z-index: 2;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rm-line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.82);
  color: var(--rm-text);
  font-weight: 800;
}

.rm-topology-label--a { top: 13%; left: 17%; }
.rm-topology-label--b { top: 18%; right: 15%; }
.rm-topology-label--c { bottom: 18%; left: 13%; }
.rm-topology-label--d { bottom: 14%; right: 17%; }

.rm-code-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--rm-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.rm-code-table th,
.rm-code-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--rm-line);
  text-align: left;
  vertical-align: top;
}

.rm-code-table tr:last-child th,
.rm-code-table tr:last-child td {
  border-bottom: 0;
}

.rm-code-table th {
  width: 220px;
  color: var(--rm-text);
  font-family: var(--rm-mono);
}

.rm-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.rm-contact-card {
  padding: 1.25rem;
  border: 1px solid var(--rm-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.rm-contact-card ul {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .rm-grid--four,
  .rm-grid--services,
  .rm-content-grid--three,
  .rm-pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .rm-grid--four,
  .rm-content-grid--two,
  .rm-content-grid--three,
  .rm-feature-columns,
  .rm-spec-list--wide,
  .rm-pill-grid,
  .rm-contact-grid,
  .rm-cta-inline {
    grid-template-columns: 1fr;
  }

  .rm-cta-inline .rm-button {
    justify-self: start;
  }

  .rm-network-topology {
    min-height: 340px;
  }

  .rm-topology-node {
    width: 118px;
    height: 118px;
  }

  .rm-topology-label {
    font-size: 0.84rem;
  }

  .rm-topology-label--a { top: 10%; left: 8%; }
  .rm-topology-label--b { top: 12%; right: 6%; }
  .rm-topology-label--c { bottom: 10%; left: 7%; }
  .rm-topology-label--d { bottom: 9%; right: 6%; }

  .rm-code-table,
  .rm-code-table tbody,
  .rm-code-table tr,
  .rm-code-table th,
  .rm-code-table td {
    display: block;
    width: 100%;
  }

  .rm-code-table th {
    padding-bottom: 0.25rem;
    border-bottom: 0;
  }

  .rm-code-table td {
    padding-top: 0;
  }
}

/* Version 2.1 generated page layouts */
.rm-detail-main,
.rm-front-main {
  width: 100%;
  padding: 0;
}

.rm-detail-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--rm-line);
  background:
    radial-gradient(circle at 20% 10%, rgba(239, 68, 68, 0.20), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(251, 146, 60, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.02);
}

.rm-detail-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -38% 20%;
  height: 48vh;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.13), transparent 68%);
  pointer-events: none;
}

.rm-detail-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.rm-detail-hero__copy h1 {
  max-width: 940px;
  font-size: clamp(2.35rem, 6vw, 5rem);
}

.rm-detail-lead {
  max-width: 760px;
  margin: 0 0 1.8rem;
  color: var(--rm-muted);
  font-size: clamp(1.06rem, 2.2vw, 1.26rem);
}

.rm-detail-panel {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid var(--rm-line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(15, 23, 42, 0.72);
  box-shadow: var(--rm-shadow);
}

.rm-detail-panel h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.rm-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rm-stat-row .rm-stat {
  min-height: 126px;
}

.rm-mini-list,
.rm-number-list {
  margin: 1rem 0 0;
  padding: 0;
}

.rm-mini-list {
  display: grid;
  gap: 0.72rem;
  list-style: none;
}

.rm-mini-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.62rem;
  align-items: start;
  color: var(--rm-muted);
}

.rm-mini-list li::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  margin-top: 0.58rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rm-accent), var(--rm-accent-2));
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.11);
}

.rm-mini-list--plain li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rm-line);
}

.rm-mini-list--plain li:last-child {
  border-bottom: 0;
}

.rm-number-list {
  display: grid;
  gap: 0.8rem;
  counter-reset: rm-list;
  list-style: none;
}

.rm-number-list li {
  counter-increment: rm-list;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.78rem;
  align-items: start;
  color: var(--rm-muted);
}

.rm-number-list li::before {
  content: counter(rm-list);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.14);
  color: #fed7aa;
  font-weight: 900;
  line-height: 1;
}

.rm-check-card h3,
.rm-info-card h3,
.rm-contact-card h3 {
  margin-top: 0;
}

.rm-editor-section {
  padding-bottom: 0;
}

.rm-editor-content {
  max-width: 960px;
  margin-inline: auto;
}

.rm-links-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
}

.rm-link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.rm-button--disabled,
.rm-button--disabled:hover {
  cursor: not-allowed;
  color: var(--rm-muted-2);
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--rm-line);
  box-shadow: none;
  transform: none;
}

.rm-grid.rm-grid--three.rm-contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rm-contact-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.rm-contact-card .rm-service-card__link {
  margin-top: auto;
}

.rm-timeline--cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rm-timeline--cards div {
  position: relative;
  padding: 1.15rem;
  border: 1px solid var(--rm-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.rm-timeline--cards strong {
  display: block;
  color: var(--rm-text);
  margin-bottom: 0.42rem;
}

.rm-timeline--cards span {
  display: block;
  color: var(--rm-muted);
}

.rm-front-main .rm-service-card p,
.rm-detail-main .rm-service-card p {
  font-size: 0.96rem;
}

@media (max-width: 1100px) {
  .rm-grid--four,
  .rm-timeline--cards,
  .rm-grid.rm-grid--three.rm-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .rm-detail-hero__grid,
  .rm-links-card {
    grid-template-columns: 1fr;
  }

  .rm-link-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .rm-grid--four,
  .rm-timeline--cards,
  .rm-grid.rm-grid--three.rm-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Version 2.1 generated-page and homepage support. */
.rm-front-main,
.rm-page-main {
  overflow: hidden;
}

.rm-grid--six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rm-service-card--detailed {
  min-height: 340px;
}

.rm-card-points {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.3rem;
  padding: 0;
  list-style: none;
}

.rm-card-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--rm-muted);
  font-size: 0.92rem;
}

.rm-card-points li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rm-accent), var(--rm-accent-2));
}

.rm-metrics--large .rm-stat {
  min-height: 150px;
}

.rm-timeline--cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.rm-timeline--cards div {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--rm-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.rm-timeline--cards div::before {
  content: "";
  display: block;
  width: 2rem;
  height: 0.2rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rm-accent), var(--rm-accent-2));
}

.rm-timeline--cards strong,
.rm-timeline--cards span {
  display: block;
}

.rm-timeline--cards strong {
  color: var(--rm-text);
}

.rm-timeline--cards span {
  margin-top: 0.4rem;
  color: var(--rm-muted);
}

.rm-page-hero {
  padding: clamp(3.8rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
}

.rm-page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  padding: clamp(1.35rem, 4vw, 2.35rem);
  border: 1px solid var(--rm-line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 14% 12%, rgba(239, 68, 68, 0.16), transparent 34%),
    rgba(15, 23, 42, 0.58);
  box-shadow: var(--rm-shadow);
}

.rm-page-hero h1 {
  max-width: 880px;
  margin-bottom: 0.8rem;
}

.rm-page-hero__lead {
  max-width: 780px;
  margin: 0;
  color: var(--rm-muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.rm-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.rm-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.72rem;
  border: 1px solid var(--rm-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #fed7aa;
  font-size: 0.82rem;
  font-weight: 800;
}

.rm-service-detail-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rm-service-detail-card .rm-service-card__link {
  margin-top: auto;
}

.rm-editable-content {
  padding: 1.25rem;
  border: 1px solid var(--rm-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.rm-editable-content > *:first-child {
  margin-top: 0;
}

.rm-editable-content > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 1120px) {
  .rm-grid--six,
  .rm-timeline--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .rm-page-hero__inner,
  .rm-cta-inline {
    grid-template-columns: 1fr;
  }

  .rm-grid--six,
  .rm-timeline--cards {
    grid-template-columns: 1fr;
  }
}
