/* Let content shrink inside the theme's flex columns before scrolling a table. */
.page-content-section .section-body,
.page-services-single .section-body,
.content-text { min-width: 0; }

/* Native list markers keep nested unordered items out of ordered numbering. */
.content-text ol,
.content-text ul:not(.row-list) {
  overflow: visible;
  margin: 20px 0;
  padding: 0 0 0 1.75em;
  counter-reset: none;
}
.content-text ol { list-style: decimal outside; }
.content-text ol[type="a"] { list-style-type: lower-alpha; }
.content-text ol[type="A"] { list-style-type: upper-alpha; }
.content-text ol[type="i"] { list-style-type: lower-roman; }
.content-text ol[type="I"] { list-style-type: upper-roman; }
.content-text ul:not(.row-list) { list-style: disc outside; }
.content-text ul:not(.row-list) ul:not(.row-list) { list-style-type: circle; }
.content-text ol > li,
.content-text ul:not(.row-list) > li {
  display: list-item;
  position: static;
  padding: 0 0 0 0.3em;
}
.content-text ol > li::before,
.content-text ul:not(.row-list) > li::before {
  display: none;
  content: none;
  counter-increment: none;
}
.content-text ol > li::marker,
.content-text ul:not(.row-list) > li::marker {
  color: #2487bd;
  font-weight: 600;
}
.content-text ol > li + li,
.content-text ul:not(.row-list) > li + li { margin-top: 8px; }
.content-text li > ol,
.content-text li > ul:not(.row-list) { margin-top: 8px; margin-bottom: 12px; }
.content-text li > p { margin-bottom: 8px; }
.content-text li > p:last-child { margin-bottom: 0; }
.content-text ol:last-child,
.content-text ul:not(.row-list):last-child { margin-bottom: 0; }

/* Related destinations are navigation, not call-to-action buttons. */
.page-services-single .tags-container,
.content-text .tags-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  margin: 8px 0 28px;
  padding: 0;
  width: 100%;
  min-width: 0;
}
.content-related-services { margin: 0 0 28px; }
.page-services-single .tags-container > a,
.content-text .tags-container > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 68px;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #dce5eb;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1b536f;
  font: 600 14px/1.5 'Inter', Arial, sans-serif;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease;
}
.page-services-single .tags-container > a::before,
.content-text .tags-container > a::before { display: none; }
.page-services-single .tags-container > a > span,
.content-text .tags-container > a > span {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  text-align: left;
  overflow-wrap: anywhere;
}
.page-services-single .tags-container > a:hover,
.content-text .tags-container > a:hover { color: #147bae; border-color: #2487bd; }
.page-services-single .tags-container > a:focus-visible,
.content-text .tags-container > a:focus-visible {
  outline: 2px solid #2487bd;
  outline-offset: 4px;
}
.related-service-arrow { flex: 0 0 18px; fill: currentColor; }

/* One presentation for authored tables and the native prices shortcode. */
.content-text .content-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  margin: 24px 0 !important;
  padding: 0 !important;
  border: 1px solid #dce5eb;
  border-radius: 6px;
  background: #fff;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #92acba #edf2f5;
}
.content-text .content-table-wrap:focus-visible { outline: 2px solid #2487bd; outline-offset: 3px; }
.content-text table.content-table {
  width: 100%;
  min-width: var(--content-table-min-width, 0);
  margin: 0;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  color: #293943;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.content-text table.content-table td,
.content-text table.content-table th {
  min-width: 0;
  padding: 16px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid #e3eaee !important;
  vertical-align: top;
  text-align: left;
  overflow-wrap: break-word;
  word-break: normal;
  background: transparent;
}
.content-text table.content-table td + td,
.content-text table.content-table th + th,
.content-text table.content-table th + td { border-left: 1px solid #edf1f4 !important; }
.content-text table.content-table thead td,
.content-text table.content-table thead th {
  padding-top: 17px !important;
  padding-bottom: 17px !important;
  color: #213d4c;
  background: #edf4f8;
  font-weight: 600;
}
.content-text table.content-table tbody > tr:nth-child(even) { background: #f8fafb; }
.content-text table.content-table tbody > tr:hover { background: #f0f7fb; }
.content-text table.content-table tbody > tr:last-child > * { border-bottom: 0 !important; }
.content-text table.content-table p { margin: 0 0 8px; }
.content-text table.content-table p:last-child { margin-bottom: 0; }
.content-text table.content-table strong,
.content-text table.content-table b { font-size: inherit; font-weight: 600; }
.content-text table.content-table .prices-table-cost { font-weight: 600; color: #1b536f; }
.content-text table.content-table .prices-table-method .spoiler-title {
  display: block;
  max-height: none;
  height: auto;
  overflow: visible;
  white-space: normal;
  -webkit-line-clamp: unset;
}
.content-text table.content-table .prices-table-method .spoiler-open,
.content-text table.content-table .prices-table-method .spoiler-body { display: none !important; }
.content-text .content-table-wrap figcaption { padding: 12px 18px; font-size: 13px; }
@media (max-width: 1023px) {
  .page-services-single .tags-container,
  .content-text .tags-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
}
@media (max-width: 540px) {
  .page-services-single .tags-container,
  .content-text .tags-container { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .page-services-single .tags-container > a,
  .content-text .tags-container > a { min-height: 56px; padding: 12px 0; }
  .content-text table.content-table td,
  .content-text table.content-table th { padding: 13px 15px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .page-services-single .tags-container > a,
  .content-text .tags-container > a { transition: none; }
}
