/* "What is roaming?" — a PORT of the design
   (.local/simoptions.com/What-is-Roaming.dc.html). Declarations are the
   design's, verbatim; the brand hex resolves through the theme token. */

.rm { background: #fff; }

.rm-sec { padding: 24px 24px 40px; }
.rm-sec:first-child { padding-top: 64px; }
.rm-sec:last-child { padding-bottom: 90px; }
.rm-inner { max-width: 1040px; margin: 0 auto; }

.rm-h2 {
  font-size: var(--text-h2);
  font-weight: 500;
  color: var(--ink-800);
  margin: 34px 0 16px;
  line-height: 1.25;
}
.rm-inner > .rm-h2:first-child { margin-top: 0; }

.rm-p { font-size: var(--text-md); color: var(--ink-800); line-height: 1.7; margin: 0 0 18px; }

.rm-head { margin-bottom: 36px; }
.rm-head h2 {
  font-size: var(--text-h2);
  font-weight: 500;
  letter-spacing: -.3px;
  color: var(--ink-800);
  margin: 0;
  line-height: 1.15;
}
.rm-head p { font-size: var(--text-md); color: var(--ink-700); line-height: 1.6; margin: 14px 0 0; }

/* --- tables -------------------------------------------------------------- */
/* Wide tables scroll inside their own box; the page never scrolls sideways. */
.rm-table-wrap { overflow-x: auto; }

.rm-table {
  min-width: 640px;
  border: 1px solid var(--line-card);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 5px 10px 20px 0 rgba(0, 0, 0, .06);
}

.rm-table--rates .rm-tr { grid-template-columns: 1fr 1.2fr 1.2fr 1.2fr 1.2fr; }
.rm-table--usage { min-width: 0; }
.rm-table--usage .rm-tr { grid-template-columns: 1.6fr 1fr; }

.rm-tr { display: grid; border-top: 1px solid var(--line-hair); }
.rm-tr:first-child { border-top: 0; }
.rm-tr--head { background: var(--tint-2); }
.rm-tr--alt { background: rgba(131, 87, 249, .04); }

.rm-tr span { padding: 16px; font-size: var(--text-sm); color: var(--ink-700); }
.rm-tr--head span { padding: 18px 16px; font-size: var(--text-xs); font-weight: 600; color: var(--ink-800); }
.rm-tr:not(.rm-tr--head) span:first-child { font-weight: 600; color: var(--color-primary); }

/* --- "how to avoid" list ------------------------------------------------- */
.rm-avoid { display: flex; flex-direction: column; gap: 40px; max-width: 900px; }
.rm-item { display: flex; gap: 22px; align-items: flex-start; }

.rm-item__icon {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: var(--text-2xl);
}
/* The inner ring is a pseudo-element, not the <i>: theme icons are CSS masks
   sized 1em and filled with currentColor. */
.rm-item__icon::before {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}

.rm-item__body h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink-800);
  margin: 0 0 10px;
}
.rm-item__body p { font-size: var(--text-base); color: var(--ink-800); line-height: 1.6; margin: 0; }

.rm-paths { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; margin: 18px 0 0; }
.rm-paths__os {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.rm-paths__path { display: block; font-size: var(--text-sm); color: var(--ink-700); }

/* --- data-per-activity split --------------------------------------------- */
.rm-usage {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.rm-usage .rm-h2 { font-size: var(--text-h2); margin: 0 0 16px; }
.rm-usage .rm-p { font-size: var(--text-base); line-height: 1.65; margin: 0 0 16px; }

@media (max-width: 900px) {
  .rm-usage { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .rm-sec { padding: 16px 20px 28px; }
  .rm-sec:first-child { padding-top: 40px; }
  .rm-h2, .rm-usage .rm-h2 { font-size: var(--text-h3); }
  .rm-head h2 { font-size: var(--text-h3); }
}
