/* Main tool headings: 4px above their former 22px subheadings and 2px above H2s. */
.prose h2:is(
  [id="2-microsoft-power-automate"],
  [id="1-uipath"],
  [id="3-automation-anywhere"],
  [id="robot-framework--rpa-framework"],
  [id="n8n--api-orchestration-not-desktop-rpa"],
  [id="voiceping-meeting-automation"]
) {
  /* The shared mobile H2 rule is important, too. */
  font-size: 1.625rem !important;
  line-height: 1.35;
}

/* Shared native shortcodes; article Markdown needs no enclosing HTML wrapper. */
.rpa-compare,
.rpa-compare *,
.rpa-pros-cons,
.rpa-pros-cons *,
.rpa-meeting-handoff,
.rpa-meeting-handoff * {
  box-sizing: border-box;
}

.rpa-compare {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-block: 1.25rem;
  color: #334155;
  font-size: max(16px, 1rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.rpa-compare .rpa-data-table {
  display: table;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  table-layout: fixed;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.rpa-compare .rpa-data-table caption {
  caption-side: top;
  padding: 0 0 0.75rem;
  text-align: left;
  color: #475569;
  font-size: inherit;
  line-height: inherit;
}

.rpa-compare .rpa-data-table thead {
  border: 0;
  background: #f1f5f9;
}

.rpa-compare .rpa-data-table tr {
  border: 0;
  background: transparent;
}

.rpa-compare .rpa-data-table th,
.rpa-compare .rpa-data-table td {
  min-width: 0;
  padding: 0.875rem 0.75rem;
  border: 0;
  border-bottom: 1px solid #cbd5e1;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

.rpa-compare .rpa-data-table th {
  color: #0f172a;
  font-weight: 650;
}

.rpa-compare .rpa-data-table thead th:first-child {
  width: 26%;
}

.rpa-entry-prices .rpa-data-table thead th:first-child {
  width: 20%;
}

.rpa-entry-prices .rpa-data-table thead th:nth-child(2) {
  width: 26%;
}

.rpa-entry-prices .rpa-data-table thead th:nth-child(3) {
  width: 34%;
}

.rpa-entry-prices .rpa-data-table thead th:nth-child(4) {
  width: 20%;
}

.rpa-compare .rpa-data-table p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.rpa-compare .rpa-data-table p + p {
  margin-top: 0.375rem;
}

.rpa-compare .rpa-data-table .rpa-table-handoff {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid #e2e8f0;
  color: #475569;
}

.rpa-compare .rpa-data-table .rpa-table-handoff strong {
  color: #312e81;
}

.rpa-meeting-handoff {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0.75rem 0 1.125rem;
  padding: 0.75rem 0.875rem;
  border-left: 3px solid #818cf8;
  background: #f8fafc;
  color: #475569;
  font-size: max(16px, 1rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.rpa-meeting-handoff p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.rpa-meeting-handoff strong {
  color: #0f172a;
}

.rpa-meeting-handoff a {
  color: #4338ca;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.rpa-meeting-handoff a:hover {
  color: #312e81;
}

.rpa-meeting-handoff a:focus-visible {
  outline: 2px solid #4338ca;
  outline-offset: 3px;
}

.rpa-compare .rpa-price-amount {
  display: block;
  color: #0f172a;
  font-size: max(18px, 1.125rem);
  font-weight: 700;
  line-height: 1.4;
}

.rpa-compare .rpa-price-term {
  display: block;
  margin-top: 0.375rem;
}

.rpa-compare .rpa-data-table a {
  color: #4338ca;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.rpa-compare .rpa-data-table a:hover {
  color: #312e81;
}

.rpa-compare .rpa-data-table a:focus-visible {
  outline: 2px solid #4338ca;
  outline-offset: 3px;
}

/* Keep the workflow comparison tabular at every width. Only this region scrolls
   on narrow screens; column headers and row relationships remain visible. */
.rpa-entry-prices {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.rpa-entry-prices:focus-visible {
  outline: 2px solid #4338ca;
  outline-offset: 3px;
}

.rpa-entry-prices .rpa-data-table {
  min-width: 800px;
}

/* Other comparison shortcodes retain their existing mobile-card layout. */
@media (max-width: 720px) {
  .rpa-compare:not(.rpa-entry-prices) .rpa-data-table,
  .rpa-compare:not(.rpa-entry-prices) .rpa-data-table caption,
  .rpa-compare:not(.rpa-entry-prices) .rpa-data-table tbody,
  .rpa-compare:not(.rpa-entry-prices) .rpa-data-table tbody tr,
  .rpa-compare:not(.rpa-entry-prices) .rpa-data-table tbody th,
  .rpa-compare:not(.rpa-entry-prices) .rpa-data-table tbody td {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .rpa-compare:not(.rpa-entry-prices) .rpa-data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
  }

  .rpa-compare:not(.rpa-entry-prices) .rpa-data-table tbody tr {
    padding-block: 1rem;
    border-bottom: 1px solid #cbd5e1;
  }

  .rpa-compare:not(.rpa-entry-prices) .rpa-data-table tbody tr:first-child {
    border-top: 1px solid #cbd5e1;
  }

  .rpa-compare:not(.rpa-entry-prices) .rpa-data-table tbody th,
  .rpa-compare:not(.rpa-entry-prices) .rpa-data-table tbody td {
    padding: 0;
    border: 0;
  }

  .rpa-compare:not(.rpa-entry-prices) .rpa-data-table tbody td {
    margin-top: 0.75rem;
  }

  .rpa-compare:not(.rpa-entry-prices) .rpa-data-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    color: #475569;
    font-weight: 600;
  }
}

/* Pros and cons sit one heading level below the main tool sections. */
.rpa-pros-cons {
  --rpa-thumb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 10.5A1.5 1.5 0 0 1 3.5 9H6v12H3.5A1.5 1.5 0 0 1 2 19.5v-9ZM8 9l3.9-6.3a1.5 1.5 0 0 1 2.78.92L14.3 8H20a2 2 0 0 1 1.94 2.49l-2 8A2 2 0 0 1 18 20H8V9Z'/%3E%3C/svg%3E");
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-block: 1.25rem;
  color: #334155;
  font-size: max(16px, 1rem);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.rpa-pros-cons > * {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.rpa-pros-cons h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  color: #0f172a;
  /* The site's mobile .prose h3 font size is also marked important. */
  font-size: max(20px, 1.25rem) !important;
  font-weight: 700;
  line-height: 1.4;
}

.rpa-pros-cons .rpa-pros h3::before,
.rpa-pros-cons .rpa-cons h3::before {
  content: "";
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: #15803d;
  -webkit-mask: var(--rpa-thumb-icon) center / contain no-repeat;
  mask: var(--rpa-thumb-icon) center / contain no-repeat;
}

.rpa-pros-cons .rpa-cons h3::before {
  background-color: #b91c1c;
  transform: rotate(180deg);
}

.rpa-pros-cons ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rpa-pros-cons li {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: max(16px, 1rem);
  line-height: 1.6;
}

.rpa-pros-cons li + li {
  margin-top: 0.5rem;
}

@media (max-width: 599.98px) {
  .rpa-pros-cons {
    grid-template-columns: minmax(0, 1fr);
  }
}
