/*
 * The content vocabulary: what articles and custom modules are written in.
 *
 * The Joomla 3 site's content was written for UIkit 2 and the old theme. The migration's
 * tools/migrate/uikit-sweep.php renames its UIkit classes into the sr- names below and turns
 * UIkit's behaviours into the template's (js/template.js: slides, tabs, toggles, the
 * accordion). The old theme's own classes (the pricing band's .colN and .pack_*, .btn-big,
 * .aligncenter, the demo and template boxes, …) are kept by the sweep and styled here, on the
 * template's tokens, so both colour schemes work.
 *
 * Headings: tools/migrate/headings.php renumbers the content's headings (one <h1> per page, no
 * level skipped) and a heading whose level changed keeps its old look as Bootstrap's class for
 * that level (<h2 class="h4">). A rule here that styles a heading by its tag names that class too
 * (:is(h4, .h4)), and within one context the rules go from the largest heading to the smallest,
 * so the class, later, wins over the new tag (the overlay's tagline is an <h2 class="h3">).
 *
 * Breakpoints are UIkit's, so content keeps the layout it was written for: sm 480px, md 768px,
 * lg 960px, xl 1220px.
 *
 * Contents: grid · text and visibility · buttons · alerts, badges · tables, lists · panels,
 * headings, spacing · figures and embeds · overlay · navigation lists and accordion · tabs ·
 * slides · icons · the old theme's classes · the bands · the footer modules.
 */

/* --------------------------------------------------------------------------
 * Grid: a row of columns with a gutter; a column's width per breakpoint is a
 * fraction (sr-grid__col--md-1-2 is half from 768px).
 * ------------------------------------------------------------------------ */

.sr-grid {
  --sr-grid-gutter: 32px;
  display: flex;
  flex-wrap: wrap;
  row-gap: var(--sr-grid-gutter);
  margin: 0 0 0 calc(-1 * var(--sr-grid-gutter));
  padding: 0;
  list-style: none;
}

.sr-grid > * {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-left: var(--sr-grid-gutter);
}

.sr-grid + .sr-grid {
  margin-top: var(--sr-grid-gutter);
}

.sr-grid--small {
  --sr-grid-gutter: 12px;
}

.sr-grid--medium {
  --sr-grid-gutter: 24px;
}

.sr-grid--large {
  --sr-grid-gutter: 48px;
}

.sr-grid--collapse {
  --sr-grid-gutter: 0px;
}

/* Equal-height columns: their only child fills them. */
.sr-grid--match > * {
  display: flex;
  flex-direction: column;
}

.sr-grid--match > * > :only-child {
  flex: 1 1 auto;
}

@media (min-width: 960px) {
  .sr-grid--divider > * + * {
    border-left: 1px solid var(--sr-line);
  }

  .sr-grid--divider > * {
    padding-right: calc(var(--sr-grid-gutter) / 2);
  }
}

.sr-grid__col--1-1 { width: 100%; }
.sr-grid__col--1-2 { width: 50%; }
.sr-grid__col--2-2 { width: 100%; }
.sr-grid__col--1-3 { width: 33.3333%; }
.sr-grid__col--2-3 { width: 66.6667%; }
.sr-grid__col--3-3 { width: 100%; }
.sr-grid__col--1-4 { width: 25%; }
.sr-grid__col--2-4 { width: 50%; }
.sr-grid__col--3-4 { width: 75%; }
.sr-grid__col--4-4 { width: 100%; }
.sr-grid__col--1-5 { width: 20%; }
.sr-grid__col--2-5 { width: 40%; }
.sr-grid__col--3-5 { width: 60%; }
.sr-grid__col--4-5 { width: 80%; }
.sr-grid__col--5-5 { width: 100%; }
.sr-grid__col--1-6 { width: 16.6667%; }
.sr-grid__col--2-6 { width: 33.3333%; }
.sr-grid__col--3-6 { width: 50%; }
.sr-grid__col--4-6 { width: 66.6667%; }
.sr-grid__col--5-6 { width: 83.3333%; }
.sr-grid__col--6-6 { width: 100%; }

@media (min-width: 480px) {
  .sr-grid__col--sm-1-1 { width: 100%; }
  .sr-grid__col--sm-1-2 { width: 50%; }
  .sr-grid__col--sm-2-2 { width: 100%; }
  .sr-grid__col--sm-1-3 { width: 33.3333%; }
  .sr-grid__col--sm-2-3 { width: 66.6667%; }
  .sr-grid__col--sm-3-3 { width: 100%; }
  .sr-grid__col--sm-1-4 { width: 25%; }
  .sr-grid__col--sm-2-4 { width: 50%; }
  .sr-grid__col--sm-3-4 { width: 75%; }
  .sr-grid__col--sm-4-4 { width: 100%; }
  .sr-grid__col--sm-1-5 { width: 20%; }
  .sr-grid__col--sm-2-5 { width: 40%; }
  .sr-grid__col--sm-3-5 { width: 60%; }
  .sr-grid__col--sm-4-5 { width: 80%; }
  .sr-grid__col--sm-5-5 { width: 100%; }
  .sr-grid__col--sm-1-6 { width: 16.6667%; }
  .sr-grid__col--sm-2-6 { width: 33.3333%; }
  .sr-grid__col--sm-3-6 { width: 50%; }
  .sr-grid__col--sm-4-6 { width: 66.6667%; }
  .sr-grid__col--sm-5-6 { width: 83.3333%; }
  .sr-grid__col--sm-6-6 { width: 100%; }
}

@media (min-width: 768px) {
  .sr-grid__col--md-1-1 { width: 100%; }
  .sr-grid__col--md-1-2 { width: 50%; }
  .sr-grid__col--md-2-2 { width: 100%; }
  .sr-grid__col--md-1-3 { width: 33.3333%; }
  .sr-grid__col--md-2-3 { width: 66.6667%; }
  .sr-grid__col--md-3-3 { width: 100%; }
  .sr-grid__col--md-1-4 { width: 25%; }
  .sr-grid__col--md-2-4 { width: 50%; }
  .sr-grid__col--md-3-4 { width: 75%; }
  .sr-grid__col--md-4-4 { width: 100%; }
  .sr-grid__col--md-1-5 { width: 20%; }
  .sr-grid__col--md-2-5 { width: 40%; }
  .sr-grid__col--md-3-5 { width: 60%; }
  .sr-grid__col--md-4-5 { width: 80%; }
  .sr-grid__col--md-5-5 { width: 100%; }
  .sr-grid__col--md-1-6 { width: 16.6667%; }
  .sr-grid__col--md-2-6 { width: 33.3333%; }
  .sr-grid__col--md-3-6 { width: 50%; }
  .sr-grid__col--md-4-6 { width: 66.6667%; }
  .sr-grid__col--md-5-6 { width: 83.3333%; }
  .sr-grid__col--md-6-6 { width: 100%; }
}

@media (min-width: 960px) {
  .sr-grid__col--lg-1-1 { width: 100%; }
  .sr-grid__col--lg-1-2 { width: 50%; }
  .sr-grid__col--lg-2-2 { width: 100%; }
  .sr-grid__col--lg-1-3 { width: 33.3333%; }
  .sr-grid__col--lg-2-3 { width: 66.6667%; }
  .sr-grid__col--lg-3-3 { width: 100%; }
  .sr-grid__col--lg-1-4 { width: 25%; }
  .sr-grid__col--lg-2-4 { width: 50%; }
  .sr-grid__col--lg-3-4 { width: 75%; }
  .sr-grid__col--lg-4-4 { width: 100%; }
  .sr-grid__col--lg-1-5 { width: 20%; }
  .sr-grid__col--lg-2-5 { width: 40%; }
  .sr-grid__col--lg-3-5 { width: 60%; }
  .sr-grid__col--lg-4-5 { width: 80%; }
  .sr-grid__col--lg-5-5 { width: 100%; }
  .sr-grid__col--lg-1-6 { width: 16.6667%; }
  .sr-grid__col--lg-2-6 { width: 33.3333%; }
  .sr-grid__col--lg-3-6 { width: 50%; }
  .sr-grid__col--lg-4-6 { width: 66.6667%; }
  .sr-grid__col--lg-5-6 { width: 83.3333%; }
  .sr-grid__col--lg-6-6 { width: 100%; }
}

@media (min-width: 1220px) {
  .sr-grid__col--xl-1-1 { width: 100%; }
  .sr-grid__col--xl-1-2 { width: 50%; }
  .sr-grid__col--xl-2-2 { width: 100%; }
  .sr-grid__col--xl-1-3 { width: 33.3333%; }
  .sr-grid__col--xl-2-3 { width: 66.6667%; }
  .sr-grid__col--xl-3-3 { width: 100%; }
  .sr-grid__col--xl-1-4 { width: 25%; }
  .sr-grid__col--xl-2-4 { width: 50%; }
  .sr-grid__col--xl-3-4 { width: 75%; }
  .sr-grid__col--xl-4-4 { width: 100%; }
  .sr-grid__col--xl-1-5 { width: 20%; }
  .sr-grid__col--xl-2-5 { width: 40%; }
  .sr-grid__col--xl-3-5 { width: 60%; }
  .sr-grid__col--xl-4-5 { width: 80%; }
  .sr-grid__col--xl-5-5 { width: 100%; }
  .sr-grid__col--xl-1-6 { width: 16.6667%; }
  .sr-grid__col--xl-2-6 { width: 33.3333%; }
  .sr-grid__col--xl-3-6 { width: 50%; }
  .sr-grid__col--xl-4-6 { width: 66.6667%; }
  .sr-grid__col--xl-5-6 { width: 83.3333%; }
  .sr-grid__col--xl-6-6 { width: 100%; }
}

/* --------------------------------------------------------------------------
 * Text and visibility
 * ------------------------------------------------------------------------ */

.sr-text-center {
  text-align: center;
}

.sr-text-start {
  text-align: start;
}

.sr-text-end {
  text-align: end;
}

.sr-text-brand {
  color: var(--sr-link);
}

.sr-text-muted,
.sr-muted {
  color: var(--sr-muted);
}

.sr-text-bold {
  font-weight: 700;
}

.sr-text-success {
  color: var(--sr-green-text);
}

.sr-text-warning,
.sr-text-accent {
  color: var(--sr-accent-text);
}

.sr-bg-tint {
  background: var(--sr-tint);
}

.sr-text-danger {
  color: #b42318;
}

[data-bs-theme="dark"] .sr-text-danger {
  color: #ff8a80;
}

.sr-text-large {
  font-size: 1.25rem;
  line-height: 1.5;
}

.sr-text-small {
  font-size: 0.875rem;
}

.sr-text-nowrap {
  white-space: nowrap;
}

.sr-text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Read by screen readers and search engines, not shown: the words a short button leaves out (the
   demos' round "GO" buttons). */
.sr-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Hidden until something shows it (a toggle); without the script, shown. */
.sr-js .sr-hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .sr-hide-sm {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 959px) {
  .sr-hide-md {
    display: none !important;
  }
}

@media (min-width: 960px) {
  .sr-hide-lg {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .sr-show-sm {
    display: none !important;
  }
}

@media (max-width: 767px), (min-width: 960px) {
  .sr-show-md {
    display: none !important;
  }
}

@media (max-width: 959px) {
  .sr-show-lg {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
 * Buttons. .btn-big is the old theme's large button.
 * ------------------------------------------------------------------------ */

.sr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  box-sizing: border-box;
  min-height: 40px;
  padding: 6px 16px;
  border: 1px solid var(--sr-brand);
  border-radius: var(--sr-radius-sm);
  background: var(--sr-brand);
  color: var(--sr-on-brand);
  font-family: var(--sr-font-heading);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
}

.sr-btn:hover,
.sr-btn:focus {
  border-color: var(--sr-brand-strong);
  background: var(--sr-brand-strong);
  color: var(--sr-on-brand);
}

.sr-btn:active,
.sr-btn.sr-active {
  border-color: var(--sr-brand-deep);
  background: var(--sr-brand-deep);
  color: var(--sr-on-brand);
}

.sr-btn--large,
.btn-big {
  min-height: 48px;
  padding: 10px 24px;
  font-size: 1.125rem;
}

.sr-btn--small {
  min-height: 32px;
  padding: 3px 10px;
  font-size: 0.875rem;
}

.sr-btn--success {
  border-color: var(--sr-green);
  background: var(--sr-green);
  color: #16240a;
}

.sr-btn--success:hover,
.sr-btn--success:focus {
  border-color: var(--sr-green-fill);
  background: var(--sr-green-fill);
  color: #ffffff;
}

.sr-btn--danger {
  border-color: #b42318;
  background: #b42318;
  color: #ffffff;
}

.sr-btn--link {
  border-color: transparent;
  background: transparent;
  color: var(--sr-link);
  text-decoration: underline;
}

.sr-btn--link:hover,
.sr-btn--link:focus {
  border-color: transparent;
  background: transparent;
  color: var(--sr-link-hover);
}

a.btn-big:not(.sr-btn) {
  display: inline-block;
}

/* --------------------------------------------------------------------------
 * Alerts and badges
 * ------------------------------------------------------------------------ */

.sr-alert {
  --sr-alert-line: var(--sr-brand);
  --sr-alert-bg: var(--sr-brand-tint);
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--sr-line);
  border-left: 4px solid var(--sr-alert-line);
  border-radius: var(--sr-radius-sm);
  background: var(--sr-alert-bg);
  color: var(--sr-text);
}

.sr-alert > :last-child {
  margin-bottom: 0;
}

.sr-alert :is(h2, h3, h4) {
  margin-top: 0;
}

.sr-alert--large {
  padding: 20px 24px;
}

.sr-alert--success {
  --sr-alert-line: var(--sr-green-text);
  --sr-alert-bg: #eef7e6;
}

.sr-alert--warning {
  --sr-alert-line: var(--sr-accent);
  --sr-alert-bg: #fff4e6;
}

.sr-alert--danger {
  --sr-alert-line: #b42318;
  --sr-alert-bg: #fdecea;
}

[data-bs-theme="dark"] .sr-alert--success {
  --sr-alert-bg: #18291a;
}

[data-bs-theme="dark"] .sr-alert--warning {
  --sr-alert-bg: #2e2312;
}

[data-bs-theme="dark"] .sr-alert--danger {
  --sr-alert-line: #ff8a80;
  --sr-alert-bg: #321a18;
}

.sr-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--sr-brand);
  color: var(--sr-on-brand);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
}

.sr-badge--success {
  background: var(--sr-green-fill);
}

.sr-badge--warning {
  background: var(--sr-accent);
  color: var(--sr-on-accent);
}

.sr-badge--danger {
  background: #b42318;
}

.sr-badge--round {
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
 * Tables and lists
 * ------------------------------------------------------------------------ */

.sr-table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.sr-table th,
.sr-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--sr-line);
  text-align: start;
  vertical-align: top;
}

.sr-table th {
  color: var(--sr-ink);
  font-weight: 700;
}

.sr-table--striped tbody tr:nth-of-type(odd) {
  background: var(--sr-tint);
}

.sr-table--hover tbody tr:hover {
  background: var(--sr-tint-strong);
}

.sr-table--condensed th,
.sr-table--condensed td {
  padding: 4px 8px;
}

.sr-table--middle td {
  vertical-align: middle;
}

.sr-scroll-x,
table.table-responsive {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.sr-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.sr-list > li + li {
  margin-top: 4px;
}

.sr-list--line > li + li {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--sr-line-soft);
}

.sr-list--striped > li {
  padding: 6px 8px;
}

.sr-list--striped > li:nth-of-type(odd) {
  background: var(--sr-tint);
}

.sr-list--space > li + li {
  margin-top: 12px;
}

.sr-list-plain {
  padding-left: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
 * Panels, headings, spacing, alignment
 * ------------------------------------------------------------------------ */

.sr-panel {
  position: relative;
}

.sr-panel--box {
  padding: 20px;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: var(--sr-tint);
}

.sr-panel--brand {
  background: var(--sr-brand-tint);
}

.sr-panel--space {
  padding: 30px;
}

.sr-panel--header .sr-panel__title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sr-line);
}

.sr-panel__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.sr-h1 {
  font-size: 2.25rem;
}

.sr-h2 {
  font-size: 1.75rem;
}

.sr-h3 {
  font-size: 1.5rem;
}

.sr-h4 {
  font-size: 1.25rem;
}

.sr-h5 {
  font-size: 1.0625rem;
}

.sr-h6 {
  font-size: 0.9375rem;
}

/* A heading that is an image (the RMS logo, its page's <h1>): the image's alt is its text. */
.sr-heading-image {
  margin: 0;
  line-height: 0;
}

.sr-article__lead,
.sr-lead {
  font-size: 1.25rem;
  line-height: 1.5;
}

.sr-article__meta {
  color: var(--sr-muted);
  font-size: 0.875rem;
}

.sr-divider {
  height: 0;
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--sr-line);
}

.sr-my {
  margin-block: 20px;
}

.sr-mt {
  margin-top: 20px;
}

.sr-mb {
  margin-bottom: 20px;
}

.sr-mt-sm {
  margin-top: 10px;
}

.sr-mb-sm {
  margin-bottom: 10px;
}

.sr-mt-lg {
  margin-top: 40px;
}

.sr-mb-lg {
  margin-bottom: 40px;
}

.sr-ms {
  margin-inline-start: 10px;
}

.sr-me {
  margin-inline-end: 10px;
}

.sr-m-0 {
  margin: 0 !important;
}

.sr-align-center,
.aligncenter {
  display: block;
  margin-inline: auto;
}

.sr-align-start {
  float: inline-start;
  margin: 0 16px 16px 0;
}

.sr-align-end {
  float: inline-end;
  margin: 0 0 16px 16px;
}

.sr-float-start {
  float: inline-start;
}

.sr-float-end {
  float: inline-end;
}

.sr-clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.sr-valign {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sr-valign__bottom {
  margin-top: auto;
}

.sr-img-fluid {
  max-width: 100%;
  height: auto;
}

.sr-rounded {
  border-radius: var(--sr-radius-sm);
}

.sr-rounded-circle {
  border-radius: 50%;
}

.sr-thumbnail {
  display: inline-block;
  padding: 4px;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius-sm);
  background: var(--sr-surface);
}

/* --------------------------------------------------------------------------
 * Figures and embeds, as the blog posts have them (tools/migrate/blog.php):
 * a figure is centred, as WordPress' aligncenter was, its caption under it;
 * a video fills the column up to 800px at 16:9 (4:3 with --4x3).
 * ------------------------------------------------------------------------ */

:is(.com-content-article__body, .com-content-category-blog__item) figure {
  margin: 0 auto 24px;
  text-align: center;
}

:is(.com-content-article__body, .com-content-category-blog__item) figcaption {
  margin-top: 8px;
  color: var(--sr-muted);
  font-size: 0.875rem;
}

.sr-embed {
  max-width: 800px;
}

.sr-embed iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.sr-embed--4x3 iframe {
  aspect-ratio: 4 / 3;
}

/* --------------------------------------------------------------------------
 * Overlay: a caption over an image.
 * ------------------------------------------------------------------------ */

.sr-overlay,
.sr-slides__track > li {
  position: relative;
}

.sr-overlay {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
}

.sr-overlay > img,
.sr-slides__track > li > img {
  display: block;
  width: 100%;
}

.sr-overlay__panel {
  position: absolute;
  inset: 0;
  padding: 20px;
  color: #ffffff;
}

.sr-overlay__panel--bottom {
  top: auto;
  background: linear-gradient(to top, rgba(8, 28, 33, 0.85), rgba(8, 28, 33, 0));
}

.sr-overlay__panel--top {
  bottom: auto;
}

.sr-overlay__panel--shade {
  background: rgba(8, 28, 33, 0.6);
}

.sr-overlay__panel :is(h1, h2, h3, h4),
.sr-overlay__panel a {
  margin: 0;
  color: #ffffff;
}

.sr-overlay__panel :is(h2, .h2) {
  font-size: clamp(1.125rem, 0.9rem + 1vw, 1.75rem);
}

.sr-overlay__panel :is(h3, .h3) {
  margin-top: 4px;
  font-family: var(--sr-font-body);
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.125rem);
}

/* On a phone a slide's caption goes under its image instead of over it. */
@media (max-width: 767px) {
  .sr-slides__track .sr-overlay__panel {
    position: static;
    padding: 12px 16px;
    background: var(--sr-brand-deep);
  }
}

/* --------------------------------------------------------------------------
 * Navigation lists and the accordion (the FAQ). Without the script every
 * answer shows.
 * ------------------------------------------------------------------------ */

.sr-navlist {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.sr-navlist > li > a {
  display: block;
  padding: 6px 0;
}

.sr-navlist__header {
  margin-top: 12px;
  color: var(--sr-ink);
  font-family: var(--sr-font-heading);
  text-transform: uppercase;
}

.sr-navlist__divider {
  margin: 8px 0;
  border-top: 1px solid var(--sr-line);
}

.sr-accordion__item {
  border-bottom: 1px solid var(--sr-line);
}

.sr-accordion__item > .sr-accordion__toggle,
.sr-accordion__item > a:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  color: var(--sr-ink);
  text-decoration: none;
  cursor: pointer;
}

.sr-accordion__item > a:first-child > :is(h2, h3, h4, h5, h6) {
  margin: 0;
  font-size: 1.125rem;
}

.sr-accordion__item > a:first-child::after {
  content: "";
  flex: none;
  width: 0.55em;
  height: 0.55em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.2s ease;
}

.sr-accordion__item--open > a:first-child::after {
  transform: translateY(25%) rotate(225deg);
}

.sr-accordion__item > a:first-child:hover {
  color: var(--sr-link);
}

.sr-accordion__panel {
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
}

.sr-js [data-sr-accordion] .sr-accordion__item:not(.sr-accordion__item--open) > .sr-accordion__panel {
  display: none;
}

/* A toggle (data-sr-toggle) is a link that shows or hides one element. */
[data-sr-toggle] {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
 * Tabs: a list of tabs over a list of panels (.sr-switcher). Without the
 * script every panel shows, one under the other.
 * ------------------------------------------------------------------------ */

.sr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 20px;
  padding: 0;
  border-bottom: 1px solid var(--sr-line);
  list-style: none;
}

.sr-tabs > li > a {
  display: block;
  margin-bottom: -1px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--sr-radius-sm) var(--sr-radius-sm) 0 0;
  color: var(--sr-text);
  text-decoration: none;
}

.sr-tabs > li > a:hover {
  border-color: var(--sr-line-soft);
  background: var(--sr-tint);
  color: var(--sr-ink);
}

.sr-tabs > li > a[aria-selected="true"],
.sr-tabs > li.sr-active > a {
  border-color: var(--sr-line);
  border-bottom-color: var(--sr-bg);
  background: var(--sr-bg);
  color: var(--sr-ink);
  font-weight: 700;
}

/* UIkit's "more" item for narrow screens: the tabs wrap instead. */
.sr-tabs__more,
.sr-tabs__more-menu {
  display: none !important;
}

@media (min-width: 768px) {
  .sr-tabs--vertical {
    float: inline-start;
    flex-direction: column;
    width: 30%;
    margin-inline-end: 24px;
    border-bottom: 0;
    border-inline-end: 1px solid var(--sr-line);
  }

  .sr-tabs--vertical > li > a {
    margin: 0 -1px 0 0;
    border-radius: var(--sr-radius-sm) 0 0 var(--sr-radius-sm);
  }

  .sr-tabs--vertical > li > a[aria-selected="true"],
  .sr-tabs--vertical > li.sr-active > a {
    border-color: var(--sr-line);
    border-right-color: var(--sr-bg);
  }

  .sr-tabs--vertical + .sr-switcher {
    overflow: hidden;
  }
}

.sr-switcher {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.sr-switcher > [hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
 * Slides: a horizontal track that scrolls one slide at a time (swipe,
 * scroll, or the buttons the script adds); nothing moves on its own.
 * ------------------------------------------------------------------------ */

.sr-slides {
  position: relative;
}

.sr-slides__frame {
  position: relative;
}

.sr-slides__track,
.sr-grid.sr-slides__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

.sr-slides__track::-webkit-scrollbar {
  display: none;
}

.sr-slides__track > li {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 0;
  scroll-snap-align: start;
}

.sr-slides--set .sr-slides__track > li {
  flex-basis: 33.3333%;
  padding: 0 8px;
}

@media (min-width: 768px) {
  .sr-slides--set .sr-slides__track > li {
    flex-basis: 25%;
  }
}

@media (min-width: 960px) {
  .sr-slides--set .sr-slides__track > li {
    flex-basis: 16.6667%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sr-slides__track {
    scroll-behavior: smooth;
  }
}

.sr-slides__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 28, 33, 0.65);
  color: #ffffff;
  cursor: pointer;
}

.sr-slides__nav:hover,
.sr-slides__nav:focus-visible {
  background: rgba(8, 28, 33, 0.9);
  color: #ffffff;
}

.sr-slides__nav::before {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.sr-slides__nav--prev {
  left: 8px;
}

.sr-slides__nav--prev::before {
  margin-left: 4px;
  transform: rotate(135deg);
}

.sr-slides__nav--next {
  right: 8px;
}

.sr-slides__nav--next::before {
  margin-right: 4px;
  transform: rotate(-45deg);
}

/* Until the script has the slides, the buttons cannot work: hide them. */
html:not(.sr-js) .sr-slides__nav {
  display: none;
}

.sr-slides__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sr-slides__dots a {
  display: block;
  width: 12px;
  height: 12px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--sr-line);
  color: transparent;
  text-indent: 100%;
  white-space: nowrap;
}

.sr-slides__dots a[aria-current="true"] {
  background: var(--sr-brand);
}

/* --------------------------------------------------------------------------
 * Icons (Font Awesome 6 from Joomla)
 * ------------------------------------------------------------------------ */

.sr-icon--small {
  font-size: 1.5em;
}

.sr-icon--medium {
  font-size: 2em;
}

.sr-icon--large {
  font-size: 2.5em;
}

.sr-icon-btn {
  display: inline-grid;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--sr-tint);
  color: var(--sr-link);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
 * The old theme's classes, kept in the content
 * ------------------------------------------------------------------------ */

.link-text {
  font-family: var(--sr-font-heading);
  text-transform: uppercase;
}

.hr-text {
  width: 50%;
  margin: 0 auto;
  border-top: 3px double var(--sr-line);
}

@media (max-width: 479px) {
  .hr-text {
    width: 100%;
  }
}

/* Demos (bottom-a): the screenshot, and a round button that rises on hover. */
.img-demo {
  position: relative;
}

.img-demo .mask {
  position: absolute;
  right: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
}

.img-demo:hover .mask,
.img-demo:focus-within .mask {
  opacity: 1;
}

.img-demo:hover :is(h4, .h4) {
  color: var(--sr-accent-text);
}

.btn-demo {
  display: inline-grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  background: var(--sr-brand);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* Customers (the logos slideset) */
.box-cus {
  padding: 10px;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius-sm);
  background: var(--sr-surface);
}

.box-cus a {
  text-decoration: none;
}

.box-cus :is(h5, .h5) {
  margin: 12px 0 0;
  color: var(--sr-muted);
  font-size: 0.8125rem;
}

.box-cus a:hover :is(h5, .h5) {
  color: var(--sr-link);
}

/* The template boxes (Browse templates): a screenshot with a hover caption
 * and a corner ribbon. */
.item-intro {
  position: relative;
  overflow: hidden;
}

.img-intro img {
  width: 100%;
  margin: 0 !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mask-intro {
  position: absolute;
  inset: 0;
  opacity: 0;
  text-align: center;
  transition: opacity 0.3s ease;
}

.mask-intro .line {
  width: 0;
  height: 1px;
  margin: 10px auto;
  background: var(--sr-muted);
  transition: width 0.5s ease-out;
}

.mask-intro p {
  margin: 10px 0;
  color: var(--sr-ink);
  font-weight: 700;
}

.item-intro:hover .img-intro img,
.item-intro:focus-within .img-intro img {
  opacity: 0.3;
  transform: scale(1.05);
}

.item-intro:hover .mask-intro,
.item-intro:focus-within .mask-intro {
  padding-top: 30%;
  opacity: 1;
}

.item-intro:hover .mask-intro .line,
.item-intro:focus-within .mask-intro .line {
  width: 50%;
}

.item-state {
  position: absolute;
  top: 10px;
  right: -25px;
  width: 100px;
  height: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 0.9375rem;
  line-height: 32px;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg);
}

.state-new {
  background: var(--sr-green-fill);
}

.state-hot {
  background: #b35a00;
}

.state-free {
  background: #4b5b62;
}

.btn-intro {
  display: none;
}

.link-intro :is(h4, .h4) {
  margin: 15px 0 25px;
}

.link-intro a:hover :is(h4, .h4) {
  color: var(--sr-link);
}

@media (max-width: 479px) {
  .btn-intro {
    display: block;
    margin-top: 20px;
  }
}

/* Video tutorials: a 4:3 frame. */
.box-video {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.video-tutorial {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Support and payment gateway tables */
.support-table :is(td, th),
.payment-table :is(td, th) {
  padding: 16px;
  border: 1px solid var(--sr-line);
  vertical-align: middle;
}

.support-table :is(td, th) img,
.payment-table img {
  margin: 0;
  padding: 0;
  border: 0;
}

.support-table :is(td, th) :is(h4, h5, .h4, .h5),
.payment-table :is(h4, .h4) {
  margin: 0;
}

.box-pay-img {
  padding: 16px 10px;
  border-radius: var(--sr-radius-sm);
  background: #f1f7f9;
}

.payment-table .fa-check,
.payment-table .fa-xmark {
  font-size: 1.25rem;
}

.payment-table .fa-check {
  color: var(--sr-green-text);
}

.payment-table .fa-xmark {
  color: var(--sr-muted);
}

@media (max-width: 767px) {
  .support-table thead {
    display: none;
  }

  .support-table tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid var(--sr-line);
  }

  .support-table td {
    display: block;
    padding: 16px 16px 0;
    border: 0;
  }
}

/* The template pages' scrolling screenshot (Porta). */
.image-bg {
  position: relative;
  display: inline-block;
  width: 369px;
  max-width: 100%;
  height: 211px;
  padding-top: 10px;
  background-image: url("../images/img-bg.png");
}

.image-bg .image-scroll {
  position: absolute;
  left: 0;
  width: 100%;
  height: 182px;
  overflow: hidden;
  background-position: center 0;
  background-repeat: no-repeat;
  transition: background-position 2s ease-out;
}

.image-bg:hover .image-scroll {
  background-position: center 100%;
}

/* The plans comparison (.pricing): one column per plan, .col0 the feature
 * names, .col1–.col5 the plans in their tier colours (FREE, SINGLE, BUNDLE,
 * HUB, DEVELOPER), the ticks named "yes"/"no" for screen readers. */
.pricing {
  padding-top: 40px;
}

.pricing ul {
  margin: 0;
  padding-left: 0;
  background: var(--sr-surface);
  list-style: none;
}

.pricing li {
  display: block;
  line-height: 35px;
}

.pricing li:nth-child(even) {
  background: var(--sr-tint);
}

.pricing .updates li {
  height: 70px;
}

.pricing .support {
  color: var(--sr-accent-text);
}

.pricing .updates {
  color: var(--sr-link);
}

.pricing li span {
  display: none;
  color: var(--sr-muted);
  font-weight: 700;
}

.pricing .features.group1,
.pricing .features.group2,
.pricing .features.group3,
.pricing .features.group4,
.pricing .support {
  border-bottom: 1px dotted var(--sr-muted);
}

.pricing .group1 i {
  color: #4f7590;
}

.pricing .group2 i {
  color: #a87700;
}

.pricing .group3 i {
  color: #3f7d3e;
}

.pricing .group4 i {
  color: #a8344a;
}

.pricing .fa-xmark {
  color: var(--sr-muted);
}

.pricing .fa-ban {
  color: #c62828;
}

.col0 li {
  padding-left: 5px;
}

.col0 i {
  padding-right: 5px;
}

.col0 .features,
.col0 .support,
.col0 .updates {
  font-weight: 700;
}

.col1,
.col2,
.col3,
.col4,
.col5 {
  --sr-tier: #7296af;
  --sr-tier-strong: #4f7590;
  padding-left: 0 !important;
  background: var(--sr-tier);
}

.col2 {
  --sr-tier: #f9c454;
  --sr-tier-strong: #8a6200;
}

.col3 {
  --sr-tier: #5a985a; /* the old theme's #61a760, a shade darker: its white BUNDLE heading reads (3.4:1) */
  --sr-tier-strong: #3f7d3e;
  box-shadow: 1px 0 10px rgba(0, 0, 0, 0.5);
}

.col4 {
  --sr-tier: #c34258;
  --sr-tier-strong: #a8344a;
}

.col5 {
  --sr-tier: #2b6375;
  --sr-tier-strong: #2b6375;
}

.col1:hover,
.col2:hover,
.col4:hover,
.col5:hover {
  box-shadow: 1px 0 10px rgba(0, 0, 0, 0.5);
}

.col1 .pack_price,
.col2 .pack_price,
.col3 .pack_price,
.col4 .pack_price,
.col5 .pack_price {
  background: var(--sr-tier-strong);
}

.col1 .sr-btn,
.col2 .sr-btn,
.col3 .sr-btn,
.col4 .sr-btn,
.col5 .sr-btn {
  border-color: var(--sr-tier-strong);
  background: var(--sr-tier-strong);
  color: #ffffff;
}

.col1 .sr-btn:hover,
.col2 .sr-btn:hover,
.col3 .sr-btn:hover,
.col4 .sr-btn:hover,
.col5 .sr-btn:hover,
.col1 .sr-btn:focus,
.col2 .sr-btn:focus,
.col3 .sr-btn:focus,
.col4 .sr-btn:focus,
.col5 .sr-btn:focus {
  border-color: var(--sr-green-fill);
  background: var(--sr-green-fill);
}

/* 24px at every width: white on the tier colours reads as large text only (3:1), and Bootstrap would
 * shrink an h4 under that on a phone. */
.pack_title :is(h4, .h4) {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 400;
}

.col2 .pack_title :is(h4, .h4) {
  color: #24343a;
}

.pack_price {
  width: 80px;
  height: 80px;
  margin: -40px auto 15px;
  border: 4px solid #ffffff;
  border-radius: 50%;
}

.pack_price :is(h3, .h3) {
  margin: 0;
  color: #ffffff;
  line-height: 72px;
}

.pack_features h2 {
  color: var(--sr-accent-text);
}

@media (max-width: 959px) {
  .li-height {
    height: 70px;
  }

  .li-height .fa-check,
  .li-height .fa-xmark {
    padding-top: 28px;
  }

  .pricing .updates li {
    height: 105px;
  }
}

@media (max-width: 767px) {
  .li-height,
  .pricing .updates li {
    height: auto;
  }

  .li-height .fa-check,
  .li-height .fa-xmark {
    padding-top: 0;
  }

  .col0 {
    display: none;
  }

  .col2,
  .col3,
  .col4,
  .col5 {
    margin-top: 60px;
  }

  .pricing li {
    padding: 5px 10px;
    text-align: start;
  }

  .pricing li span {
    display: inline-block;
  }

  .pricing li .fa-check,
  .pricing li .fa-xmark,
  .pricing li .fa-ban {
    float: inline-end;
    line-height: 35px;
  }
}

/* The RMS plans (module "RMS Plans & Pricing") */
.plan-inner {
  position: relative;
  background: var(--sr-surface);
}

.plan-title {
  --sr-plan: #12a7c6;
  --sr-plan-strong: #0b7b93;
  position: relative;
  height: 125px;
  margin-bottom: 30px;
  background: #48c5df;
  color: #ffffff;
}

.plan-title h3 {
  margin: 0;
  padding: 5px 0;
  background: var(--sr-plan-strong);
  color: #ffffff;
  font-size: 1.25rem;
}

.plan-price {
  position: absolute;
  right: 0;
  bottom: -25px;
  left: 0;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: var(--sr-plan-strong);
  font-family: var(--sr-font-heading);
  font-size: 1.5rem;
  line-height: 72px;
}

.plan-content ul {
  padding: 0 20px;
  list-style: none;
  text-align: start;
}

.plan-content li {
  padding: 10px 0;
  border-bottom: 1px solid var(--sr-line-soft);
}

.plan-content li:last-child {
  border: 0;
}

.plan-content i {
  margin-right: 5px;
  color: #0b7b93;
  font-size: 0.75rem;
}

.plan-btn {
  padding-bottom: 20px;
}

.plan-btn .sr-btn {
  border-color: #0b7b93;
  background: #0b7b93;
}

.plan-hot {
  position: absolute;
  z-index: 2;
  top: -7px;
  right: 7px;
  padding: 2px 4px 1px;
  border-radius: 2px;
  background: #b35a00;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: normal;
}

.plan-new {
  background: var(--sr-green-fill);
}

.plan2 .plan-title {
  background: #66d0cc;
}

.plan2 .plan-title h3,
.plan2 .plan-price,
.plan2 .sr-btn {
  border-color: #1f7f7b;
  background: #1f7f7b;
}

.plan3 .plan-title {
  background: #3a79b5;
}

.plan3 .plan-title h3,
.plan3 .plan-price,
.plan3 .sr-btn {
  border-color: #2e679d;
  background: #2e679d;
}

.plan4 .plan-title {
  background: #ed5266;
}

.plan4 .plan-title h3,
.plan4 .plan-price,
.plan4 .sr-btn {
  border-color: #b5303f;
  background: #b5303f;
}

.plan-btn .sr-btn:hover,
.plan-btn .sr-btn:focus {
  border-color: var(--sr-green-fill);
  background: var(--sr-green-fill);
}

/* --------------------------------------------------------------------------
 * The bands: what the old theme gave each home page section.
 * ------------------------------------------------------------------------ */

/* top-a, the banner */
.sr-band--top-a {
  background-image: linear-gradient(rgba(23, 116, 139, 0.88), rgba(23, 116, 139, 0.88)), url("../images/bg_banner.jpg");
  background-position: center;
  background-size: cover;
  text-align: center;
}

/* top-b, the button row: each button with its icon in a square. */
.sr-band--top-b .sr-btn {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 0 12px 0 56px;
  border-color: var(--sr-brand-strong);
  background: var(--sr-brand-strong);
  color: #ffffff;
  text-transform: uppercase;
}

/* The dark scheme's strong teal is lighter (a hover colour on dark); white on it is 4.2:1, so the
 * buttons take the brand teal, which still stands out on the darker band. */
[data-bs-theme="dark"] .sr-band--top-b .sr-btn {
  border-color: var(--sr-brand);
  background: var(--sr-brand);
}

.sr-band--top-b .sr-btn:hover,
.sr-band--top-b .sr-btn:focus {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--sr-brand-deep);
}

.sr-band--top-b .sr-btn .sr-icon-btn {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  width: 44px;
  height: auto;
  border-radius: var(--sr-radius-sm) 0 0 var(--sr-radius-sm);
  background: var(--sr-brand-deep);
  color: #ffffff;
}

/* On a phone the four buttons sit two by two, not as four full-width rows. */
@media (max-width: 767.98px) {
  .sr-band--top-b .sr-grid {
    --sr-grid-gutter: 10px;
  }

  .sr-band--top-b .sr-grid__col {
    width: 50%;
  }

  .sr-band--top-b .sr-btn {
    min-height: 44px;
    padding: 4px 6px 4px 42px;
    font-size: 0.9375rem;
    line-height: 1.15;
  }

  .sr-band--top-b .sr-btn .sr-icon-btn {
    width: 34px;
  }
}

/* The home page's hero (top-a; it replaced the slideshow): the headline and the four ways in beside
 * the booking-site picture, then the other products. A plain brand gradient behind it, not the
 * banner photo, so its text reads at 5:1 or better wherever it falls. */
.sr-band--top-a:has(.sr-hero) {
  padding-block: 56px 40px;
  background: radial-gradient(ellipse at 80% 30%, rgba(255, 255, 255, 0.1), transparent 55%),
    linear-gradient(135deg, var(--sr-brand-deep) 0%, var(--sr-brand) 70%);
  text-align: start;
}

.sr-hero {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 992px) {
  .sr-hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
  }
}

.sr-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--sr-font-heading);
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sr-hero__eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--sr-accent);
}

.sr-hero .sr-hero__title {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem);
  line-height: 1.08;
}

.sr-hero__lead {
  max-width: 34em;
  margin: 0 0 28px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.5;
}

.sr-hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 34em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-hero .sr-hero__action {
  width: 100%;
  height: 100%;
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
  color: #ffffff;
  text-transform: uppercase;
}

.sr-hero .sr-hero__action:hover,
.sr-hero .sr-hero__action:focus {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--sr-brand-deep);
}

.sr-hero .sr-hero__action--primary {
  border-color: var(--sr-accent);
  background: var(--sr-accent);
  color: var(--sr-on-accent);
}

.sr-hero .sr-hero__action :is(.fa-solid, .fa-regular) {
  font-size: 0.9em;
}

/* Two buttons a row on a phone, each label on one line. */
@media (max-width: 575.98px) {
  .sr-hero__actions {
    gap: 10px;
  }

  .sr-hero .sr-hero__action {
    gap: 0.4em;
    padding-inline: 8px;
    font-size: 1rem;
    letter-spacing: 0;
  }
}

.sr-hero__media {
  margin: 0;
}

.sr-hero__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* The screenshot in a browser window: the window is part of the picture, so it stays light in both
 * schemes, as the page in it does. */
.sr-hero__window {
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(4, 30, 38, 0.35), 0 4px 12px rgba(4, 30, 38, 0.2);
}

.sr-hero__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #dbe5e8;
  background: #eef3f5;
}

.sr-hero__dots {
  flex: none;
  width: 42px;
  height: 10px;
  background:
    radial-gradient(circle at 5px 5px, #ff5f57 4px, transparent 4.5px),
    radial-gradient(circle at 21px 5px, #febc2e 4px, transparent 4.5px),
    radial-gradient(circle at 37px 5px, #28c840 4px, transparent 4.5px);
}

.sr-hero__url {
  flex: 1;
  max-width: 20em;
  margin-inline: auto;
  padding: 2px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5b62;
  font-size: 0.8125rem;
  text-align: center;
}

/* The other products: a row of links under the hero, where the slideshow rotated them. */
.sr-hero-family {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.sr-hero-family__label {
  margin: 0 0 16px;
  font-family: var(--sr-font-heading);
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sr-hero-family__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-band--top-a .sr-hero-family__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  height: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--sr-radius-sm);
  background: rgba(8, 48, 59, 0.35);
  color: #ffffff;
  text-decoration: none;
}

.sr-band--top-a .sr-hero-family__link:hover,
.sr-band--top-a .sr-hero-family__link:focus {
  border-color: #ffffff;
  background: rgba(8, 48, 59, 0.6);
}

.sr-hero-family__icon {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.sr-hero-family__name {
  font-family: var(--sr-font-heading);
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}

.sr-hero-family__text {
  font-size: 0.875rem;
  line-height: 1.35;
}

/* On a phone, one line each: the icon, then the name over its line. */
@media (max-width: 575.98px) {
  .sr-hero-family {
    margin-top: 36px;
  }

  .sr-hero-family__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .sr-band--top-a .sr-hero-family__link {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 10px 14px;
  }

  .sr-hero-family__icon {
    grid-row: span 2;
    margin: 0;
    text-align: center;
  }
}

/* top-c, top-e: the patterned bands */
.sr-band--top-c {
  border-top: 5px solid var(--sr-bg);
  border-bottom: 1px solid var(--sr-line);
  background-image: url("../images/bg_pattern1.jpg");
}

.sr-band--top-e {
  border-block: 5px solid var(--sr-line);
  background-image: url("../images/bg_pattern2.jpg");
}

[data-bs-theme="dark"] .sr-band--top-c,
[data-bs-theme="dark"] .sr-band--top-e {
  background-image: none;
}

/* top-f, the features */
.sr-band--top-f i {
  padding-right: 5px;
  color: var(--sr-green-text);
}

/* bottom-a, the demos */
.sr-band--bottom-a {
  background: url("../images/bg_demo.jpg") var(--sr-tint) bottom center no-repeat;
}

[data-bs-theme="dark"] .sr-band--bottom-a {
  background-image: none;
}

.sr-band--bottom-a :is(h4, .h4) {
  margin-bottom: 20px;
  color: var(--sr-green-text);
}

/* top-d, "Why choose Solidres?" (a module with its own <style>, whose card stays light in both
 * schemes): its lead in the light scheme's muted grey (the module's own grey was 4.4:1 on the card). */
.sr-why .sr-why__lead {
  color: #627279;
}

/* bottom-c, the purchase call */
.sr-band--bottom-c h2 {
  margin: 0;
  font-size: 1.5rem;
}

.sr-band--bottom-c .sr-grid {
  align-items: center;
}

.sr-band--bottom-c .sr-btn {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--sr-brand-deep);
}

.sr-band--bottom-c .sr-btn:hover,
.sr-band--bottom-c .sr-btn:focus {
  border-color: var(--sr-green);
  background: var(--sr-green);
  color: #16240a;
}

@media (max-width: 767px) {
  .sr-band--bottom-c h2 {
    margin-bottom: 12px;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
 * The footer modules: bottom-d's columns (latest posts, links, contact) and
 * the bar (logo, download button, copyright).
 * ------------------------------------------------------------------------ */

.sr-footer__main ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.sr-footer__main li {
  padding: 5px 0;
}

.sr-footer__main a {
  text-decoration: none;
}

.sr-footer__main a:hover {
  text-decoration: underline;
}

.sr-footer__main i {
  padding-right: 8px;
  color: var(--sr-footer-link);
}

.sr-footer__main p {
  margin: 0 0 7px;
}

.sr-footer__main :is(h5, .h5) {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  text-align: end;
  text-transform: uppercase;
}

.sr-footer .sr-grid--divider > * + * {
  border-left-color: var(--sr-footer-line);
}

.sr-footer__bar .sr-grid {
  --sr-grid-gutter: 16px;
  align-items: center;
  justify-content: space-between;
  row-gap: 12px;
}

/* The bar's modules share one row, so each is narrow: its columns take the
 * width of what they hold, not their fractions (the button's quarter was
 * narrower than the button, which ran over the copyright). */
.sr-footer__bar .sr-grid > * {
  flex: 0 1 auto;
  width: auto;
}

.sr-footer__bar .copyright {
  text-align: start;
}

/* The bar as one grid: the logo (module 143), the download button and the
 * copyright (144), the sibling sites line (145) and the template's Back to
 * top. The modules and their rows step aside (display: contents), so each
 * column they hold is a cell of the bar:
 *
 *   phone    logo, Back to top / button / copyright / sibling sites
 *   768px    logo, button, Back to top / copyright / sibling sites
 *   960px    logo, the copyright over the sibling sites, button, Back to top
 *
 * Sharing the wrapping row above, the modules split unevenly: the button sat
 * over its copyright and the sibling line broke in two. A bar without the
 * copyright column keeps that row. An editor's edit button (front-end
 * editing) goes to the corner of its module's cell. */
.sr-footer__bar-inner:has(.copyright) {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo top"
    "btn btn"
    "copy copy"
    "sib sib";
  align-items: center;
  gap: 12px 24px;
}

.sr-footer__bar-inner:has(.copyright) > .mod-custom,
.sr-footer__bar-inner:has(.copyright) > .mod-custom > :is(.sr-grid, .sr-grid__col) {
  display: contents;
}

.sr-footer__bar-inner:has(.copyright) .sr-grid > * {
  width: auto;
  padding: 0;
  text-align: start;
}

.sr-footer__bar-inner:has(.copyright) .social-icons:not(:has(*)) {
  display: none;
}

.sr-footer__bar .logo-bottom,
.sr-footer__bar .mod-custom:has(.logo-bottom) > :is(.jmodedit, [role="tooltip"]) {
  grid-area: logo;
}

.sr-footer__bar .logo-bottom img {
  display: block;
}

.sr-footer__bar .download-bottom {
  grid-area: btn;
}

.sr-footer__bar .copyright,
.sr-footer__bar .mod-custom:has(.copyright) > :is(.jmodedit, [role="tooltip"]) {
  grid-area: copy;
}

.sr-footer__bar .sr-sibling-sites,
.sr-footer__bar .mod-custom:has(.sr-sibling-sites) > :is(.jmodedit, [role="tooltip"]) {
  grid-area: sib;
}

.sr-footer__bar .sr-footer__top {
  grid-area: top;
  justify-self: end;
}

/* The copyright and the sibling sites line read as one block. */
@media (max-width: 959.98px) {
  .sr-footer__bar .sr-sibling-sites {
    margin-top: -8px;
  }
}

@media (min-width: 768px) {
  .sr-footer__bar-inner:has(.copyright) {
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "logo btn top"
      "copy copy copy"
      "sib sib sib";
    column-gap: 32px;
  }
}

@media (min-width: 960px) {
  .sr-footer__bar-inner:has(.copyright) {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas:
      "logo copy btn top"
      "logo sib btn top";
    gap: 2px 40px;
  }

  .sr-footer__bar .copyright {
    align-self: end;
  }

  .sr-footer__bar .sr-sibling-sites {
    align-self: start;
  }
}

.sr-footer__bar .sr-btn {
  min-height: 34px;
  color: var(--sr-on-brand);
  font-size: 0.875rem;
  white-space: nowrap;
}

.sr-footer__bar :is(h6, .h6) {
  margin: 0;
  color: var(--sr-footer-muted);
  font-family: var(--sr-font-body);
  font-size: 0.9375rem;
  font-weight: 400;
}

.logo-bottom,
.download-bottom {
  text-align: start;
}

.social-icons,
.copyright {
  text-align: end;
}

@media (max-width: 479px) {
  .logo-bottom,
  .download-bottom,
  .social-icons,
  .copyright {
    text-align: inherit;
  }
}

/* The sibling sites line under the bar */
.sr-sibling-sites {
  margin: 0;
}
