:root {
  --rgm-blue: #0068d8;
  --rgm-blue-deep: #004ea8;
  --rgm-cyan: #13b8cf;
  --rgm-green: #2ea843;
  --rgm-orange: #ff6a2a;
  --rgm-red: #ef4f42;
  --rgm-yellow: #ffb923;
  --rgm-ink: #101828;
  --rgm-muted: #667085;
  --rgm-line: #d9e4f2;
  --rgm-soft: #f4f9ff;
  --rgm-white: #fff;
  --rgm-shadow: 0 14px 34px rgba(16, 56, 104, 0.11);
  --rgm-radius: 8px;
  --rgm-container: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.rgm-site {
  margin: 0;
  background: #f7fbff;
  color: var(--rgm-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

.rgm-skip-link:focus {
  z-index: 9999;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--rgm-white);
  border: 2px solid var(--rgm-blue);
}

.rgm-container {
  width: min(calc(100% - 48px), var(--rgm-container));
  margin-inline: auto;
}

.rgm-topbar {
  background: linear-gradient(90deg, var(--rgm-blue-deep), var(--rgm-blue));
  color: var(--rgm-white);
  font-weight: 700;
  font-size: 13px;
}

.rgm-topbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rgm-topbar p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rgm-topbar nav {
  display: flex;
  gap: 22px;
  white-space: nowrap;
}

.rgm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--rgm-line);
  box-shadow: 0 6px 18px rgba(31, 66, 106, 0.06);
  backdrop-filter: blur(14px);
}

.rgm-header-main {
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(330px, 360px) minmax(0, 1fr) 320px;
  align-items: center;
  gap: 30px;
}

.rgm-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.rgm-brand-logo {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border: 3px solid #b8e9ff;
  border-radius: 50%;
  overflow: hidden;
  background: var(--rgm-white);
  box-shadow: 0 8px 20px rgba(0, 104, 216, 0.14);
}

.rgm-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rgm-brand-text {
  display: grid;
  min-width: 0;
}

.rgm-brand-text strong {
  color: #082c68;
  font-size: clamp(22px, 1.65vw, 26px);
  line-height: 1.15;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rgm-brand-text small {
  color: #334d74;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rgm-primary-nav {
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.rgm-nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rgm-nav-list a {
  min-width: 0;
  max-width: 150px;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 11px;
  color: #1f365b;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 3px solid transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rgm-nav-list a:hover,
.rgm-nav-list .current-menu-item a {
  color: var(--rgm-blue);
  border-bottom-color: var(--rgm-blue);
}

.rgm-nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--rgm-blue);
  border: 2px solid currentColor;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1;
}

.rgm-header-cta,
.rgm-btn,
.rgm-inline-cta a,
.rgm-category-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 7px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.rgm-header-cta {
  justify-self: end;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.rgm-header-cta,
.rgm-btn-orange {
  color: var(--rgm-white);
  background: linear-gradient(180deg, #ff7b35, #f4511e);
  box-shadow: 0 8px 20px rgba(244, 81, 30, 0.22);
}

.rgm-btn-green {
  color: var(--rgm-white);
  background: linear-gradient(180deg, #2fc85b, #1f9d40);
  box-shadow: 0 8px 20px rgba(31, 157, 64, 0.2);
}

.rgm-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rgm-line);
  border-radius: var(--rgm-radius);
  background: var(--rgm-white);
}

.rgm-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--rgm-blue);
}

.rgm-page {
  padding: 20px 0 56px;
}

.rgm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  align-items: start;
  gap: 28px;
}

.rgm-main {
  min-width: 0;
}

.rgm-sidebar {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 14px;
}

.rgm-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid #bde5ff;
  border-radius: var(--rgm-radius);
  background:
    linear-gradient(90deg, rgba(238, 250, 255, 0.96) 0%, rgba(238, 250, 255, 0.8) 38%, rgba(238, 250, 255, 0.05) 62%),
    var(--hero-image) center right / cover no-repeat;
  box-shadow: var(--rgm-shadow);
}

.rgm-hero-copy {
  position: relative;
  z-index: 2;
  width: min(780px, 78%);
  padding: 48px 28px 230px;
}

.rgm-eyebrow {
  display: inline-flex;
  margin: 0 0 10px;
  color: var(--rgm-blue);
  font-size: 13px;
  font-weight: 900;
}

.rgm-hero h1 {
  margin: 0;
  color: #050b18;
  font-size: clamp(34px, 3.55vw, 54px);
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: normal;
  word-break: keep-all;
}

.rgm-hero h1 .rgm-hero-line {
  color: inherit;
  white-space: nowrap;
}

.rgm-hero h1 .rgm-hero-accent {
  color: var(--rgm-green);
}

.rgm-hero-copy p:not(.rgm-eyebrow) {
  width: min(100%, 760px);
  display: inline-block;
  margin: 18px 0 0;
  padding: 6px 12px;
  color: #223959;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 800;
  line-height: 1.55;
  white-space: nowrap;
}

.rgm-step-row {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.rgm-step {
  --step-color: var(--rgm-blue);
  --step-soft: #eef7ff;
  --step-line: #bddcff;
  position: relative;
  min-height: 166px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 24px 14px 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid currentColor;
  border-radius: var(--rgm-radius);
  box-shadow: 0 8px 18px rgba(31, 66, 106, 0.1);
  text-align: center;
  word-break: keep-all;
}

.rgm-step::after {
  display: none;
}

.rgm-step-num {
  position: absolute;
  top: -17px;
  left: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  color: var(--rgm-white);
  background: var(--step-color);
  border: 3px solid var(--rgm-white);
  border-radius: 50%;
  font-weight: 950;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.rgm-step strong {
  color: var(--step-color);
  font-size: 15px;
  font-weight: 950;
}

.rgm-step small {
  color: #344a68;
  font-size: 12px;
  font-weight: 800;
}

.rgm-step-pr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  margin-top: auto;
  padding: 3px 8px;
  color: var(--step-color);
  background: var(--step-soft);
  border: 1px solid var(--step-line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.rgm-step-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 2px auto 4px;
  color: var(--step-color);
  background: var(--step-soft);
  border: 1px solid var(--step-line);
  border-radius: 12px;
}

.rgm-step-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.rgm-step-blue { --step-color: var(--rgm-blue); --step-soft: #eef7ff; --step-line: #bddcff; color: var(--step-color); }
.rgm-step-cyan { --step-color: var(--rgm-cyan); --step-soft: #ecfbfd; --step-line: #b8edf4; color: var(--step-color); }
.rgm-step-green { --step-color: var(--rgm-green); --step-soft: #f0fbf2; --step-line: #bee8c6; color: var(--step-color); }
.rgm-step-orange { --step-color: #f28b15; --step-soft: #fff7eb; --step-line: #ffd9a8; color: var(--step-color); }
.rgm-step-red { --step-color: var(--rgm-red); --step-soft: #fff2f1; --step-line: #ffc5bf; color: var(--step-color); }

.rgm-pr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 8px;
  color: var(--rgm-white);
  background: var(--rgm-blue);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.rgm-section {
  margin-top: 26px;
}

.rgm-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.rgm-section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 950;
}

.rgm-section-head a {
  color: var(--rgm-blue);
  font-weight: 900;
}

.rgm-card-grid {
  display: grid;
  gap: 14px;
}

.rgm-card-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.rgm-post-card {
  overflow: hidden;
  background: var(--rgm-white);
  border: 1px solid var(--rgm-line);
  border-radius: var(--rgm-radius);
  box-shadow: 0 8px 18px rgba(31, 66, 106, 0.07);
}

.rgm-post-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rgm-soft);
}

.rgm-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rgm-card-cat {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 8px;
  overflow: hidden;
  color: var(--rgm-white);
  background: var(--rgm-blue);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rgm-post-card-body {
  padding: 12px;
}

.rgm-post-card h3 {
  min-height: 3.1em;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.5;
}

.rgm-post-card time,
.rgm-meta {
  color: var(--rgm-muted);
  font-size: 12px;
  font-weight: 700;
}

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

.rgm-category-card {
  min-height: 160px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px 16px;
  background: var(--rgm-white);
  border: 2px solid currentColor;
  border-radius: var(--rgm-radius);
  box-shadow: 0 8px 18px rgba(31, 66, 106, 0.06);
}

.rgm-category-card strong {
  font-size: 22px;
  font-weight: 950;
}

.rgm-category-card small {
  color: #435876;
  font-weight: 800;
}

.rgm-category-card span {
  min-height: 34px;
  padding: 0 10px;
  color: currentColor;
  border: 2px solid currentColor;
  background: var(--rgm-white);
  font-size: 13px;
}

.rgm-category-blue { color: var(--rgm-blue); }
.rgm-category-cyan { color: var(--rgm-cyan); }
.rgm-category-green { color: var(--rgm-green); }
.rgm-category-orange { color: var(--rgm-orange); }
.rgm-category-red { color: var(--rgm-red); }

.rgm-revenue-path {
  margin: 22px 0 0;
  padding: 18px;
  background: linear-gradient(135deg, #f5fbff, #fff);
  border: 1px solid #bfe6ff;
  border-radius: var(--rgm-radius);
  box-shadow: 0 8px 18px rgba(31, 66, 106, 0.07);
}

.rgm-revenue-path .rgm-section-head {
  margin-bottom: 14px;
}

.rgm-revenue-path .rgm-section-head h2 {
  font-size: clamp(21px, 2.5vw, 28px);
}

.rgm-revenue-path .rgm-section-head p:not(.rgm-eyebrow) {
  margin: 4px 0 0;
  color: #425b78;
  font-size: 14px;
  font-weight: 800;
}

.rgm-revenue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rgm-revenue-card {
  --revenue-color: var(--rgm-blue);
  position: relative;
  min-height: 174px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
  overflow: hidden;
  color: #0b2c58;
  background: var(--rgm-white);
  border: 2px solid currentColor;
  border-radius: var(--rgm-radius);
  box-shadow: 0 8px 18px rgba(31, 66, 106, 0.06);
}

.rgm-revenue-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -26px;
  width: 92px;
  height: 92px;
  background: currentColor;
  border-radius: 28px;
  opacity: 0.08;
  transform: rotate(18deg);
}

.rgm-revenue-step {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--rgm-white);
  background: var(--revenue-color);
  border-radius: 50%;
  font-weight: 950;
}

.rgm-revenue-card .rgm-pr {
  position: absolute;
  top: 16px;
  right: 16px;
}

.rgm-revenue-card small {
  margin-top: 6px;
  color: currentColor;
  font-weight: 950;
}

.rgm-revenue-card strong {
  font-size: 18px;
  font-weight: 950;
  line-height: 1.4;
}

.rgm-revenue-card em {
  color: #455d78;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.55;
}

.rgm-revenue-card b {
  align-self: end;
  margin-top: 6px;
  color: currentColor;
  font-size: 13px;
  font-weight: 950;
}

.rgm-revenue-blue { --revenue-color: var(--rgm-blue); color: var(--revenue-color); }
.rgm-revenue-cyan { --revenue-color: var(--rgm-cyan); color: var(--revenue-color); }
.rgm-revenue-orange { --revenue-color: var(--rgm-orange); color: var(--revenue-color); }
.rgm-revenue-green { --revenue-color: var(--rgm-green); color: var(--revenue-color); }

.rgm-market-placement {
  margin: 24px 0;
}

.rgm-search-form {
  display: grid;
  grid-template-columns: 1fr 54px;
  overflow: hidden;
  background: var(--rgm-white);
  border: 1px solid var(--rgm-line);
  border-radius: var(--rgm-radius);
  box-shadow: 0 8px 18px rgba(31, 66, 106, 0.07);
}

.rgm-search-form input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  font: inherit;
}

.rgm-search-form button {
  color: var(--rgm-white);
  background: var(--rgm-blue);
  border: 0;
  font-weight: 900;
  cursor: pointer;
}

.rgm-side-card,
.rgm-widget,
.rgm-legacy-ad {
  background: var(--rgm-white);
  border: 1px solid var(--rgm-line);
  border-radius: var(--rgm-radius);
  box-shadow: 0 8px 18px rgba(31, 66, 106, 0.07);
}

.rgm-side-card {
  padding: 14px;
}

.rgm-side-card h2,
.rgm-widget-title {
  margin: 0 0 10px;
  color: #0f2e5a;
  font-size: 17px;
  font-weight: 950;
}

.rgm-ranking ol,
.rgm-category-side ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rgm-ranking li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
}

.rgm-rank-num {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--rgm-white);
  background: var(--rgm-yellow);
  border-radius: 6px;
  font-weight: 950;
}

.rgm-ranking li:nth-child(2) .rgm-rank-num { background: #8d99a6; }
.rgm-ranking li:nth-child(3) .rgm-rank-num { background: #c07a39; }
.rgm-ranking li:nth-child(n+4) .rgm-rank-num { color: #38506d; background: #edf3f9; }

.rgm-ranking a {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid #ecf2f8;
}

.rgm-rank-thumb {
  width: 58px;
  height: 44px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--rgm-soft);
}

.rgm-rank-title {
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.rgm-server-card {
  position: relative;
  overflow: hidden;
  border-color: #a7defa;
}

.rgm-server-copy {
  position: relative;
  z-index: 2;
}

.rgm-server-card img {
  width: 104px;
  max-height: 104px;
  object-fit: contain;
  display: block;
  margin: 10px auto 0;
}

.rgm-server-card ul {
  padding-left: 18px;
  margin: 8px 0 12px;
  color: #1b5b70;
  font-size: 13px;
  font-weight: 800;
}

.rgm-server-card .rgm-btn,
.rgm-guide-card .rgm-btn,
.rgm-valuation-card .rgm-btn {
  width: 100%;
}

.rgm-valuation-card {
  border-color: #b8e5c2;
  background: linear-gradient(135deg, #f5fff8, #fff);
}

.rgm-valuation-card h2 {
  color: var(--rgm-green);
}

.rgm-valuation-card p,
.rgm-guide-card p {
  margin: 0 0 12px;
  color: #42546d;
  font-size: 13px;
  font-weight: 800;
}

.rgm-guide-card {
  border-color: #ffd2bf;
  background: linear-gradient(135deg, #fff7f2, #fff);
}

.rgm-category-side li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 6px 8px;
  border-bottom: 1px solid #edf3f9;
  font-size: 13px;
  font-weight: 850;
}

.rgm-category-side b {
  min-width: 28px;
  padding: 2px 7px;
  color: var(--rgm-white);
  background: var(--rgm-blue);
  border-radius: 999px;
  font-size: 11px;
  text-align: center;
}

.rgm-legacy-ad {
  margin-top: 20px;
  padding: 14px;
  overflow: hidden;
}

.rgm-legacy-ad .rgm-widget {
  border: 0;
  box-shadow: none;
  padding: 0;
}

.rgm-archive-hero,
.rgm-single-head {
  margin-bottom: 20px;
  padding: 24px;
  background: var(--rgm-white);
  border: 1px solid var(--rgm-line);
  border-radius: var(--rgm-radius);
  box-shadow: 0 8px 18px rgba(31, 66, 106, 0.07);
}

.rgm-archive-hero h1,
.rgm-single-head h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 950;
  line-height: 1.34;
}

.rgm-archive-hero p,
.rgm-single-head p {
  margin: 10px 0 0;
  color: #445b78;
  font-weight: 800;
}

.rgm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--rgm-muted);
  font-size: 12px;
  font-weight: 800;
}

.rgm-breadcrumb a {
  color: var(--rgm-blue);
}

.rgm-breadcrumb > * + *::before {
  content: ">";
  margin-right: 8px;
  color: #9aa8ba;
}

.rgm-single-cat {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  color: var(--rgm-white);
  background: var(--rgm-blue);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 950;
}

.rgm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.rgm-author-box {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--rgm-white);
  border: 1px solid var(--rgm-line);
  border-radius: var(--rgm-radius);
}

.rgm-author-box img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}

.rgm-author-box strong {
  display: block;
  font-weight: 950;
}

.rgm-author-box p {
  margin: 2px 0 0;
  color: var(--rgm-muted);
  font-size: 13px;
  font-weight: 750;
}

.rgm-author-box a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--rgm-blue);
  border: 1px solid var(--rgm-blue);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.rgm-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.rgm-featured {
  margin: 0;
  overflow: hidden;
  background: var(--rgm-soft);
  border: 1px solid var(--rgm-line);
  border-radius: var(--rgm-radius);
}

.rgm-featured-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.rgm-toc-card {
  position: sticky;
  top: 120px;
  padding: 16px;
  background: var(--rgm-white);
  border: 1px solid var(--rgm-line);
  border-radius: var(--rgm-radius);
  box-shadow: 0 8px 18px rgba(31, 66, 106, 0.07);
}

.rgm-toc-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 950;
}

.rgm-toc-card ol {
  max-height: 260px;
  display: grid;
  gap: 8px;
  padding: 0 0 0 20px;
  margin: 0 0 14px;
  overflow: auto;
  color: var(--rgm-blue);
  font-size: 12px;
  font-weight: 850;
}

.rgm-toc-card li.is-child {
  margin-left: 10px;
  color: #39526f;
}

.rgm-toc-card .rgm-btn {
  width: 100%;
  min-height: 48px;
  padding-inline: 12px;
  font-size: 13px;
}

.rgm-summary-box,
.rgm-faq-preview,
.rgm-entry-content,
.rgm-related {
  background: var(--rgm-white);
  border: 1px solid var(--rgm-line);
  border-radius: var(--rgm-radius);
  box-shadow: 0 8px 18px rgba(31, 66, 106, 0.07);
}

.rgm-summary-box {
  margin-bottom: 16px;
  padding: 18px;
  border-color: #8fc9ff;
  background: linear-gradient(135deg, #f5fbff, #fff);
}

.rgm-summary-box h2 {
  margin: 0 0 8px;
  color: var(--rgm-blue);
  font-size: 20px;
  font-weight: 950;
}

.rgm-summary-box p {
  margin: 0 0 10px;
  color: #344a68;
  font-weight: 800;
}

.rgm-summary-box ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rgm-summary-box li {
  position: relative;
  padding-left: 24px;
  font-weight: 850;
}

.rgm-summary-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: var(--rgm-cyan);
  border-radius: 50%;
}

.rgm-entry-content {
  padding: clamp(20px, 3vw, 34px);
  overflow-wrap: anywhere;
}

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

.rgm-entry-content h2 {
  position: relative;
  margin: 2.2em 0 0.75em;
  padding: 0 0 0 16px;
  border-left: 6px solid var(--rgm-blue);
  color: #0a254b;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 950;
  line-height: 1.4;
}

.rgm-entry-content h3 {
  margin: 1.8em 0 0.7em;
  padding: 10px 14px;
  color: #113b6f;
  background: #eff8ff;
  border-radius: 6px;
  font-size: clamp(19px, 2.5vw, 24px);
  font-weight: 950;
}

.rgm-entry-content p {
  margin: 1em 0;
  font-size: 16px;
}

.rgm-entry-content a {
  color: var(--rgm-blue);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.rgm-entry-content ul,
.rgm-entry-content ol {
  padding: 18px 22px 18px 42px;
  background: #f8fbff;
  border: 1px solid #e2edf8;
  border-radius: var(--rgm-radius);
}

.rgm-entry-content li + li {
  margin-top: 0.35em;
}

.rgm-entry-content blockquote {
  margin: 1.6em 0;
  padding: 18px 20px;
  color: #184368;
  background: #f0fbff;
  border-left: 6px solid var(--rgm-cyan);
  border-radius: 0 var(--rgm-radius) var(--rgm-radius) 0;
  font-weight: 850;
}

.rgm-entry-content table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--rgm-radius);
  box-shadow: 0 0 0 1px var(--rgm-line);
}

.rgm-entry-content th,
.rgm-entry-content td {
  padding: 12px;
  border: 1px solid var(--rgm-line);
  text-align: left;
  vertical-align: top;
}

.rgm-entry-content th {
  color: #0d386a;
  background: #eaf6ff;
  font-weight: 950;
}

.rgm-entry-content .wp-block-image img {
  border-radius: var(--rgm-radius);
  box-shadow: var(--rgm-shadow);
}

.rgm-inline-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f7fbff, #fff);
  border: 2px solid #8fc9ff;
  border-radius: var(--rgm-radius);
}

.rgm-inline-cta strong,
.rgm-inline-cta span {
  display: block;
}

.rgm-inline-cta span {
  color: var(--rgm-blue);
  font-size: 13px;
  font-weight: 950;
}

.rgm-inline-cta strong {
  font-size: 17px;
  font-weight: 950;
}

.rgm-inline-cta p {
  margin: 2px 0 0;
  color: #4d627b;
  font-size: 13px;
  font-weight: 800;
}

.rgm-inline-cta a {
  color: var(--rgm-white);
  background: var(--rgm-orange);
}

.rgm-inline-compare {
  border-color: #9ed4ff;
  background: #f8fbff;
}

.rgm-faq-preview {
  margin-top: 20px;
  padding: 18px;
}

/* Unified Rakko ad system overrides. These classes come from Code Snippets. */
.rgm-site .rakko-ad {
  margin: 24px 0 !important;
}

.rgm-site .rakko-ad__inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 16px 16px 16px 18px !important;
  color: #0f2e5a !important;
  background: linear-gradient(135deg, #f5fbff, #fff) !important;
  border: 2px solid #8fc9ff !important;
  border-radius: var(--rgm-radius) !important;
  box-shadow: 0 8px 18px rgba(31, 66, 106, 0.08) !important;
}

.rgm-site .rakko-ad__inner::before {
  inset: auto !important;
  right: -30px !important;
  bottom: -38px !important;
  width: 120px !important;
  height: 120px !important;
  background: var(--rgm-blue) !important;
  border-radius: 36px !important;
  opacity: 0.08 !important;
  transform: rotate(16deg) !important;
}

.rgm-site .rakko-ad__top {
  position: static !important;
  display: flex !important;
  grid-column: 1 / -1 !important;
  margin: 0 0 -4px !important;
}

.rgm-site .rakko-ad__pill,
.rgm-site .rakko-mna-block__pill,
.rgm-site .rakko-market-search__badge-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
  height: 22px !important;
  padding: 0 8px !important;
  color: var(--rgm-white) !important;
  background: var(--rgm-blue) !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

.rgm-site .rakko-ad__service {
  color: var(--rgm-blue) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

.rgm-site .rakko-ad__link {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 38px !important;
  align-items: center !important;
  gap: 14px !important;
  color: inherit !important;
  text-decoration: none !important;
}

.rgm-site .rakko-ad__headline {
  display: block !important;
  color: #0a254b !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.45 !important;
}

.rgm-site .rakko-ad__body {
  display: block !important;
  margin-top: 4px !important;
  color: #425b78 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
}

.rgm-site .rakko-ad__icon {
  width: 38px !important;
  height: 38px !important;
  color: var(--rgm-white) !important;
  background: var(--rgm-orange) !important;
  border-radius: 50% !important;
}

.rgm-site .rakko-ad__svg,
.rgm-site .rakko-ad__svg path {
  fill: var(--rgm-white) !important;
}

.rgm-site .rakko-ad--single_top .rakko-ad__inner {
  border-color: #bfe6ff !important;
  background: linear-gradient(135deg, #f0f9ff, #fff) !important;
}

.rgm-site .rakko-ad--single_middle .rakko-ad__inner {
  border-color: #ffbc98 !important;
  background: linear-gradient(135deg, #fff7f2, #fff) !important;
}

.rgm-site .rakko-ad--single_bottom .rakko-ad__inner,
.rgm-site .rakko-ad--home_bottom .rakko-ad__inner {
  border-color: #ade9bc !important;
  background: linear-gradient(135deg, #f3fff6, #fff) !important;
}

.rgm-site .rakko-mna-block {
  max-width: none !important;
  margin: 26px 0 !important;
  padding: 18px !important;
  background: linear-gradient(135deg, #f5fbff, #fff) !important;
  border: 1px solid #bfe6ff !important;
  border-radius: var(--rgm-radius) !important;
  box-shadow: 0 8px 18px rgba(31, 66, 106, 0.07) !important;
}

.rgm-site .rakko-mna-block__header {
  gap: 4px !important;
  margin-bottom: 14px !important;
}

.rgm-site .rakko-mna-block__title {
  color: #0a254b !important;
  font-size: clamp(20px, 2.4vw, 26px) !important;
  font-weight: 950 !important;
}

.rgm-site .rakko-mna-block__desc {
  color: #425b78 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.rgm-site .rakko-mna-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.rgm-site .rgm-shortcode-section .rakko-mna-list,
.rgm-site .rgm-front-ad .rakko-mna-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.rgm-site .rakko-mna-card__inner {
  min-height: auto !important;
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) 30px !important;
  grid-template-areas:
    "thumb title icon"
    "meta meta icon"
    "tags tags icon" !important;
  align-items: start !important;
  gap: 7px 10px !important;
  padding: 10px !important;
  color: #0f2e5a !important;
  background: var(--rgm-white) !important;
  border: 1px solid var(--rgm-line) !important;
  border-radius: var(--rgm-radius) !important;
  box-shadow: 0 8px 18px rgba(31, 66, 106, 0.07) !important;
}

.rgm-site .rakko-mna-card__inner::before {
  display: none !important;
}

.rgm-site .rakko-mna-card__thumb {
  grid-area: thumb !important;
  flex-basis: auto !important;
  position: relative !important;
  display: block !important;
  width: 104px !important;
  height: 66px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.96) 0 13px, transparent 14px),
    linear-gradient(135deg, #e9f7ff 0%, #f5fff9 100%) !important;
}

.rgm-site .rakko-mna-card__thumb::before {
  content: "M&A" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: grid !important;
  place-items: center !important;
  color: rgba(47, 111, 214, 0.84) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

.rgm-site .rakko-mna-card__thumb::after {
  content: "" !important;
  position: absolute !important;
  right: 10px !important;
  bottom: 9px !important;
  z-index: 0 !important;
  width: 28px !important;
  height: 17px !important;
  border-right: 4px solid rgba(46, 161, 89, 0.5) !important;
  border-bottom: 4px solid rgba(46, 161, 89, 0.5) !important;
  transform: skewX(-14deg) rotate(-6deg) !important;
}

.rgm-site .rakko-mna-card__thumb-inner {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background-position: top center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.rgm-site .rakko-mna-card__content {
  min-width: 0 !important;
  display: contents !important;
}

.rgm-site .rakko-mna-card__title {
  grid-area: title !important;
  min-width: 0 !important;
  margin: 1px 0 0 !important;
  color: #0a254b !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1.38 !important;
  -webkit-line-clamp: 2 !important;
}

.rgm-site .rakko-mna-card__meta,
.rgm-site .rakko-mna-card__tags {
  display: grid !important;
  gap: 4px !important;
  margin-top: 0 !important;
}

.rgm-site .rakko-mna-card__meta {
  grid-area: meta !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.rgm-site .rakko-mna-card__tags {
  grid-area: tags !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.rgm-site .rakko-mna-card__meta-item,
.rgm-site .rakko-mna-card__tag {
  color: #3c526f !important;
  background: #f4f9ff !important;
  border: 1px solid #dfebf8 !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  padding: 2px 6px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.rgm-site .rakko-mna-card__meta-item strong {
  color: var(--rgm-orange) !important;
}

.rgm-site .rakko-mna-card__icon {
  grid-area: icon !important;
  width: 30px !important;
  height: 30px !important;
  color: var(--rgm-white) !important;
  background: var(--rgm-orange) !important;
  border-radius: 50% !important;
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.rgm-site .rakko-mna-card__svg {
  width: 18px !important;
  height: 18px !important;
  fill: var(--rgm-white) !important;
}

.rgm-site .rakko-mna-card__svg path {
  fill: var(--rgm-white) !important;
}

.rgm-site .rakko-market-search {
  max-width: none !important;
  margin: 24px 0 !important;
  padding: 0 !important;
}

.rgm-site .rakko-market-search__inner {
  padding: 18px !important;
  color: #0f2e5a !important;
  background: linear-gradient(135deg, #fff7f2, #fff) !important;
  border: 2px solid #ffbc98 !important;
  border-radius: var(--rgm-radius) !important;
  box-shadow: 0 8px 18px rgba(31, 66, 106, 0.07) !important;
}

.rgm-site .rakko-market-search__inner::before {
  right: -44px !important;
  bottom: -46px !important;
  left: auto !important;
  top: auto !important;
  width: 150px !important;
  height: 150px !important;
  background: var(--rgm-orange) !important;
  border-radius: 42px !important;
  opacity: 0.08 !important;
  transform: rotate(16deg) !important;
}

.rgm-site .rakko-market-search__badge {
  display: inline-flex !important;
  gap: 8px !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.rgm-site .rakko-market-search__badge-text {
  color: var(--rgm-orange) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

.rgm-site .rakko-market-search__title {
  margin: 8px 0 4px !important;
  color: #0a254b !important;
  font-size: clamp(20px, 2.4vw, 26px) !important;
  font-weight: 950 !important;
}

.rgm-site .rakko-market-search__subtitle {
  color: #425b78 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.rgm-site .rakko-market-search__field {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) 172px !important;
  align-items: center !important;
  min-height: 64px !important;
  margin-top: 12px !important;
  padding: 5px 6px 5px 0 !important;
  background: var(--rgm-white) !important;
  border: 1px solid #ffd1be !important;
  border-radius: var(--rgm-radius) !important;
  box-shadow: none !important;
}

.rgm-site .rakko-market-search__icon {
  width: 40px !important;
  height: 40px !important;
  margin-left: 9px !important;
  display: grid !important;
  place-items: center !important;
  color: var(--rgm-orange) !important;
  background: #fff3ec !important;
  border: 1px solid #ffd1be !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
}

.rgm-site .rakko-market-search__icon-svg {
  width: 23px !important;
  height: 23px !important;
  fill: none !important;
  stroke: currentColor !important;
}

.rgm-site .rakko-market-search__input {
  min-width: 0 !important;
  height: 54px !important;
  color: var(--rgm-ink) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.rgm-site .rakko-market-search__button {
  min-width: 0 !important;
  height: 52px !important;
  color: var(--rgm-white) !important;
  background: linear-gradient(180deg, #ff7b35, #f4511e) !important;
  border-radius: 7px !important;
  box-shadow: 0 8px 16px rgba(244, 81, 30, 0.2) !important;
  font-weight: 950 !important;
}

.rgm-site .rakko-market-auto-link {
  color: var(--rgm-blue) !important;
  font-weight: 950 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 0.1em !important;
  text-underline-offset: 0.18em !important;
  text-decoration-color: rgba(0, 104, 216, 0.6) !important;
}

.rgm-site .rakko-market-auto-note {
  padding: 10px 12px !important;
  color: #52667d !important;
  background: #f7fbff !important;
  border: 1px solid #dfebf8 !important;
  border-radius: var(--rgm-radius) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.rgm-site .rakko-mna-card__tags .rakko-mna-card__tag:nth-child(1) {
  color: #9a3412 !important;
  background: linear-gradient(180deg, #fff7ed, #ffedd5) !important;
  border-color: #fed7aa !important;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.08) !important;
}

.rgm-site .rakko-mna-card__tags .rakko-mna-card__tag:nth-child(2) {
  color: #166534 !important;
  background: linear-gradient(180deg, #f0fdf4, #dcfce7) !important;
  border-color: #bbf7d0 !important;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.08) !important;
}

.rgm-site .rakko-mna-card__tags .rakko-mna-card__tag:nth-child(3) {
  color: #1d4ed8 !important;
  background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
  border-color: #bfdbfe !important;
}

@media (prefers-reduced-motion: no-preference) {
  .rgm-site .rakko-mna-card__tags .rakko-mna-card__tag:nth-child(1),
  .rgm-site .rakko-mna-card__tags .rakko-mna-card__tag:nth-child(2) {
    animation: rgm-chip-breathe 4.8s ease-in-out infinite;
  }
}

@keyframes rgm-chip-breathe {
  0%,
  100% {
    transform: translateY(0);
    filter: saturate(1);
  }
  50% {
    transform: translateY(-1px);
    filter: saturate(1.08);
  }
}

.rgm-guide-page {
  display: grid;
  gap: 28px;
  padding-block: 28px 54px;
}

.rgm-guide-hero {
  min-height: 430px;
  display: grid;
  align-items: stretch;
  padding: 28px;
  border: 1px solid #bfe6ff;
  border-radius: var(--rgm-radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0 43%, rgba(255, 255, 255, 0.78) 62%, rgba(255, 255, 255, 0.28) 100%),
    var(--guide-image) center right / cover no-repeat;
  box-shadow: 0 14px 34px rgba(31, 66, 106, 0.1);
}

.rgm-guide-hero-copy {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.rgm-guide-hero h1 {
  max-width: 620px;
  margin: 0;
  color: #071326;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 950;
}

.rgm-guide-hero p {
  max-width: 560px;
  margin: 0;
  color: #263e62;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.75;
}

.rgm-guide-hero small {
  max-width: 560px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.rgm-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.rgm-guide-print {
  min-height: 44px;
  padding: 0 18px;
  color: var(--rgm-blue);
  background: #fff;
  border: 2px solid #b7d8ff;
  border-radius: 7px;
  font-weight: 900;
  cursor: pointer;
}

.rgm-guide-section {
  padding: 28px;
  border: 1px solid var(--rgm-line);
  border-radius: var(--rgm-radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 66, 106, 0.06);
}

.rgm-guide-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.rgm-guide-step {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 2px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.rgm-guide-step span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--rgm-blue);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 950;
}

.rgm-guide-step h3 {
  margin: 0;
  color: #0a254b;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.rgm-guide-step p {
  flex: 1 1 auto;
  margin: 0;
  color: #3e5573;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.7;
}

.rgm-guide-step a,
.rgm-guide-offer a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--rgm-blue);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.rgm-guide-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: center;
}

.rgm-guide-split h2,
.rgm-guide-faq h2 {
  margin: 0 0 12px;
  color: #071326;
  font-size: 30px;
  line-height: 1.28;
  font-weight: 950;
}

.rgm-guide-split p {
  margin: 0;
  color: #344b6c;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.85;
}

.rgm-guide-checks {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.rgm-guide-checks li {
  padding: 10px 12px;
  color: #1f365b;
  background: #f7fbff;
  border-left: 4px solid var(--rgm-green);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 850;
}

.rgm-guide-offer {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 2px solid #ffd2bf;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7f2, #fff);
}

.rgm-guide-offer h3 {
  margin: 0;
  color: #0a254b;
  font-size: 21px;
  font-weight: 950;
}

.rgm-guide-offer a:first-of-type {
  color: #fff;
  background: linear-gradient(180deg, #ff7b35, #f4511e);
  border-color: transparent;
}

.rgm-guide-faq {
  display: grid;
  gap: 10px;
}

.rgm-guide-faq details {
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.rgm-guide-faq summary {
  color: #0a254b;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
}

.rgm-guide-faq p {
  margin: 10px 0 0;
  color: #42546d;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.8;
}

.rgm-contact-page {
  display: grid;
  gap: 24px;
  padding-block: 28px 54px;
}

.rgm-contact-hero {
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
  gap: 28px;
  padding: 30px 34px;
  border: 1px solid #bfe6ff;
  border-radius: var(--rgm-radius);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.96) 0 42px, transparent 43px),
    linear-gradient(135deg, #f2fbff 0%, #fff7f2 100%);
  box-shadow: 0 14px 34px rgba(31, 66, 106, 0.1);
  overflow: hidden;
}

.rgm-contact-hero h1 {
  max-width: 760px;
  margin: 6px 0 12px;
  color: #071326;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 950;
}

.rgm-contact-hero p:not(.rgm-eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #2e4567;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.8;
}

.rgm-contact-hero img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border: 5px solid #b8e9ff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 32px rgba(0, 104, 216, 0.16);
}

.rgm-contact-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.rgm-contact-side,
.rgm-contact-card {
  border: 1px solid var(--rgm-line);
  border-radius: var(--rgm-radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 66, 106, 0.06);
}

.rgm-contact-side {
  position: sticky;
  top: 132px;
  padding: 22px;
}

.rgm-contact-side h2 {
  margin: 0 0 12px;
  color: #0a254b;
  font-size: 21px;
  font-weight: 950;
}

.rgm-contact-side ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}

.rgm-contact-side li {
  position: relative;
  padding: 9px 10px 9px 34px;
  color: #1f365b;
  background: #f7fbff;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 850;
}

.rgm-contact-side li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--rgm-green);
  border-bottom: 3px solid var(--rgm-green);
  transform: translateY(-58%) rotate(45deg);
}

.rgm-contact-side p {
  margin: 0;
  color: #607086;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.75;
}

.rgm-contact-card {
  padding: 0;
  overflow: hidden;
}

.rgm-contact-card-head {
  padding: 24px 26px;
  color: #0a254b;
  background:
    linear-gradient(135deg, rgba(238, 246, 255, 0.96), rgba(255, 247, 242, 0.96)),
    #f7fbff;
  border-bottom: 1px solid #dbeafe;
}

.rgm-contact-card-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rgm-blue);
  font-size: 13px;
  font-weight: 950;
}

.rgm-contact-card-head h2 {
  margin: 10px 0 6px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 950;
}

.rgm-contact-card-head p {
  margin: 0;
  color: #425b78;
  font-size: 14px;
  font-weight: 800;
}

.rgm-contact-content {
  padding: 26px;
  box-shadow: none;
}

.rgm-contact-content .wpcf7 {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.rgm-contact-content .wpcf7-form {
  display: grid;
  gap: 16px;
}

.rgm-contact-content .wpcf7-form p {
  position: relative;
  margin: 0;
}

.rgm-contact-content .wpcf7-form label {
  display: grid;
  gap: 8px;
  color: #173a64;
  font-size: 14px;
  font-weight: 950;
}

.rgm-contact-content .wpcf7-form-control-wrap {
  display: block;
}

.rgm-contact-content input[type="text"],
.rgm-contact-content input[type="email"],
.rgm-contact-content textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  color: #0f2547;
  background: #f8fbff;
  border: 2px solid #d7e8fb;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rgm-contact-content textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.7;
}

.rgm-contact-content input[type="text"]:focus,
.rgm-contact-content input[type="email"]:focus,
.rgm-contact-content textarea:focus {
  background: #fff;
  border-color: #7cc8ff;
  box-shadow: 0 0 0 4px rgba(0, 104, 216, 0.1);
}

.rgm-contact-content .wpcf7-submit {
  width: min(100%, 320px);
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  color: #fff;
  background: linear-gradient(180deg, #ff7b35, #f4511e);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(244, 81, 30, 0.22);
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
}

.rgm-contact-content .wpcf7-spinner {
  margin-left: 12px;
}

.rgm-contact-content .wpcf7-not-valid-tip {
  margin-top: 5px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 850;
}

.rgm-contact-content .wpcf7-response-output {
  margin: 4px 0 0 !important;
  padding: 12px 14px !important;
  color: #173a64;
  background: #f7fbff;
  border: 1px solid #bfdbfe !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
}

@media print {
  .rgm-topbar,
  .rgm-primary-nav,
  .rgm-header-cta,
  .rgm-menu-toggle,
  .rgm-footer,
  .rgm-guide-actions,
  .rgm-guide-offer {
    display: none !important;
  }

  .rgm-guide-page {
    width: 100%;
    padding: 0;
  }

  .rgm-guide-hero,
  .rgm-guide-section {
    box-shadow: none;
    break-inside: avoid;
  }
}

.rgm-faq-preview h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 950;
}

.rgm-faq-preview details {
  border: 1px solid var(--rgm-line);
  border-radius: 7px;
  background: var(--rgm-white);
}

.rgm-faq-preview details + details {
  margin-top: 8px;
}

.rgm-faq-preview summary {
  cursor: pointer;
  padding: 12px 42px 12px 14px;
  color: #173a64;
  font-weight: 900;
}

.rgm-faq-preview p {
  margin: 0;
  padding: 0 14px 14px;
  color: #4b5d75;
}

.rgm-related {
  padding: 18px;
}

.rgm-pagination {
  margin-top: 26px;
  text-align: center;
}

.rgm-pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rgm-pagination a,
.rgm-pagination span {
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  background: var(--rgm-white);
  border: 1px solid var(--rgm-line);
  border-radius: 6px;
  font-weight: 900;
}

.rgm-pagination .current {
  color: var(--rgm-white);
  background: var(--rgm-blue);
}

.rgm-footer {
  padding: 38px 0 20px;
  background: #082b57;
  color: var(--rgm-white);
}

.rgm-footer-grid {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.rgm-brand-footer .rgm-brand-text strong,
.rgm-brand-footer .rgm-brand-text small {
  color: var(--rgm-white);
}

.rgm-footer-note {
  max-width: 560px;
  margin: 12px 0 0;
  color: #c8d8ec;
}

.rgm-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 850;
}

.rgm-copyright {
  width: min(calc(100% - 48px), var(--rgm-container));
  margin: 26px auto 0;
  color: #aac0dc;
  font-size: 12px;
}

@media (max-width: 1320px) {
  .rgm-header-main {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 24px;
  }

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

@media (max-width: 1180px) {

  .rgm-card-grid-5,
  .rgm-category-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rgm-layout {
    grid-template-columns: 1fr;
  }

  .rgm-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rgm-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(238, 250, 255, 0.96) 0%, rgba(238, 250, 255, 0.74) 48%, rgba(238, 250, 255, 0.16) 100%),
      var(--hero-image) center top / cover no-repeat;
  }

  .rgm-hero-copy {
    width: 100%;
    padding: 30px 22px 28px;
  }

  .rgm-hero-copy p:not(.rgm-eyebrow) {
    width: min(100%, 760px);
    white-space: normal;
  }

  .rgm-step-row {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 16px 16px;
  }

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

  .rgm-guide-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rgm-guide-split,
  .rgm-contact-grid {
    grid-template-columns: 1fr;
  }

  .rgm-contact-side {
    position: static;
  }

  .rgm-site .rgm-shortcode-section .rakko-mna-list,
  .rgm-site .rgm-front-ad .rakko-mna-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .rgm-container {
    width: min(calc(100% - 28px), var(--rgm-container));
  }

  .rgm-topbar nav {
    display: none;
  }

  .rgm-header-main {
    min-height: 72px;
    grid-template-columns: 1fr 44px;
    gap: 12px;
  }

  .rgm-brand-logo {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .rgm-brand-text strong {
    font-size: 22px;
  }

  .rgm-menu-toggle {
    display: block;
  }

  .rgm-primary-nav {
    position: absolute;
    top: 100%;
    right: 14px;
    left: 14px;
    display: none;
    padding: 12px;
    background: var(--rgm-white);
    border: 1px solid var(--rgm-line);
    border-radius: var(--rgm-radius);
    box-shadow: var(--rgm-shadow);
  }

  .rgm-nav-open .rgm-primary-nav {
    display: block;
  }

  .rgm-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rgm-nav-list a {
    min-height: 54px;
    border: 1px solid #edf3f9;
    border-radius: 7px;
  }

  .rgm-hero-copy {
    width: 100%;
    padding: 26px 18px 24px;
  }

  .rgm-step-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 14px 14px;
  }

  .rgm-step {
    min-height: 146px;
  }

  .rgm-visual-grid {
    grid-template-columns: 1fr;
  }

  .rgm-toc-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .rgm-page {
    padding-top: 14px;
  }

  .rgm-topbar-inner {
    min-height: 30px;
    justify-content: center;
    text-align: center;
  }

  .rgm-topbar p {
    font-size: 11px;
  }

  .rgm-brand-text small {
    max-width: 240px;
  }

  .rgm-hero {
    background:
      linear-gradient(180deg, rgba(238, 250, 255, 0.92) 0%, rgba(238, 250, 255, 0.62) 45%, rgba(238, 250, 255, 0.18) 100%),
      var(--hero-image) 56% top / auto 390px no-repeat,
      #eaf8ff;
  }

  .rgm-hero h1 {
    font-size: 32px;
  }

  .rgm-hero-copy {
    min-height: 390px;
    padding: 26px 18px 22px;
  }

  .rgm-hero-copy p:not(.rgm-eyebrow) {
    width: 100%;
    margin-top: 16px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.7;
    white-space: normal;
  }

  .rgm-step-row,
  .rgm-card-grid-5,
  .rgm-card-grid-3,
  .rgm-category-cards,
  .rgm-revenue-grid,
  .rgm-guide-flow,
  .rgm-sidebar,
  .rgm-summary-box ul {
    grid-template-columns: 1fr;
  }

  .rgm-guide-page {
    gap: 18px;
    padding-block: 12px 34px;
  }

  .rgm-guide-hero {
    min-height: 520px;
    padding: 20px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.8) 46%, rgba(255, 255, 255, 0.34) 100%),
      var(--guide-image) center bottom / auto 285px no-repeat,
      #eff9ff;
  }

  .rgm-guide-hero-copy {
    justify-content: flex-start;
  }

  .rgm-guide-hero h1 {
    font-size: 31px;
  }

  .rgm-guide-hero p {
    font-size: 14px;
  }

  .rgm-guide-actions,
  .rgm-guide-actions .rgm-btn,
  .rgm-guide-print {
    width: 100%;
  }

  .rgm-guide-section {
    padding: 18px;
  }

  .rgm-contact-page {
    gap: 18px;
    padding-block: 12px 34px;
  }

  .rgm-contact-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
  }

  .rgm-contact-hero h1 {
    font-size: 30px;
  }

  .rgm-contact-hero img {
    width: 96px;
    height: 96px;
    justify-self: center;
  }

  .rgm-contact-card-head,
  .rgm-contact-content,
  .rgm-contact-side {
    padding: 18px;
  }

  .rgm-contact-card-head h2 {
    font-size: 24px;
  }

  .rgm-guide-step {
    min-height: 0;
  }

  .rgm-guide-split h2,
  .rgm-guide-faq h2 {
    font-size: 25px;
  }

  .rgm-site .rakko-ad__inner,
  .rgm-site .rakko-ad__link,
  .rgm-site .rgm-shortcode-section .rakko-mna-list,
  .rgm-site .rgm-front-ad .rakko-mna-list,
  .rgm-site .rakko-mna-list {
    grid-template-columns: 1fr !important;
  }

  .rgm-site .rakko-mna-card__inner {
    grid-template-columns: 86px minmax(0, 1fr) 28px !important;
    grid-template-areas:
      "thumb title icon"
      "meta meta meta"
      "tags tags tags" !important;
  }

  .rgm-site .rakko-mna-card__thumb {
    width: 86px !important;
    height: 58px !important;
    aspect-ratio: auto !important;
  }

  .rgm-site .rakko-mna-card__meta,
  .rgm-site .rakko-mna-card__tags {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .rgm-site .rakko-market-search__field {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    padding: 5px !important;
  }

  .rgm-site .rakko-market-search__icon {
    justify-self: center !important;
    margin-left: 0 !important;
  }

  .rgm-site .rakko-market-search__button {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    border-radius: 7px !important;
  }

  .rgm-post-card h3 {
    min-height: 0;
  }

  .rgm-step-row {
    gap: 10px;
  }

  .rgm-step {
    min-height: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 42px;
    grid-template-areas:
      "num title icon"
      "num desc icon"
      "pr pr pr";
    align-items: center;
    gap: 4px 10px;
    padding: 12px;
    text-align: left;
  }

  .rgm-step-num {
    position: static;
    grid-area: num;
    width: 34px;
    height: 34px;
    transform: none;
  }

  .rgm-step strong {
    grid-area: title;
    font-size: 14px;
  }

  .rgm-step small {
    grid-area: desc;
    font-size: 11px;
  }

  .rgm-step-icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 10px;
  }

  .rgm-step-icon svg {
    width: 26px;
    height: 26px;
  }

  .rgm-step-pr {
    grid-area: pr;
    justify-content: center;
    min-height: 28px;
    margin-top: 4px;
  }

  .rgm-archive-hero,
  .rgm-single-head,
  .rgm-entry-content {
    padding: 18px;
  }

  .rgm-author-box {
    grid-template-columns: 52px 1fr;
  }

  .rgm-author-box a {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .rgm-featured-img {
    min-height: 210px;
  }

  .rgm-inline-cta {
    grid-template-columns: 1fr;
  }

  .rgm-inline-cta a {
    width: 100%;
  }

  .rgm-footer-grid {
    display: grid;
  }
}

@media (max-width: 420px) {
  .rgm-container {
    width: min(calc(100% - 20px), var(--rgm-container));
  }

  .rgm-brand-text strong {
    font-size: 18px;
  }

  .rgm-brand-text small {
    max-width: 200px;
    font-size: 11px;
  }

  .rgm-hero h1 {
    font-size: 27px;
  }

  .rgm-hero-copy {
    min-height: 370px;
    padding: 22px 14px 18px;
  }

  .rgm-step {
    padding-inline: 12px;
  }

  .rgm-site .rakko-mna-card__inner {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    grid-template-areas:
      "thumb title"
      "meta meta"
      "tags tags" !important;
  }

  .rgm-site .rakko-mna-card__thumb {
    width: 76px !important;
    height: 52px !important;
  }

  .rgm-site .rakko-mna-card__icon {
    display: none !important;
  }

  .rgm-single-head h1,
  .rgm-archive-hero h1 {
    font-size: 28px;
  }
}
