/*
 * solidres.com site template.
 *
 * Bootstrap's CSS loads first (the store, forum, downloads and tickets are
 * written for it); this file sets Bootstrap's tokens from the site's palette
 * and styles the page around the components.
 *
 * Colour scheme: one attribute, data-bs-theme on <html>, set before the first
 * paint from the style's Colour scheme (and the visitor's system when it
 * follows it). The light tokens are the defaults; [data-bs-theme="dark"]
 * redefines them, the way Bootstrap redefines its own. Printing is always
 * light (template.js switches the attribute for it; the print rules below
 * cover a browser that prints without running it).
 *
 * Contents: fonts · tokens · Bootstrap tokens · base · layout · header and
 * navigation · bands and module titles · cards and sidebars · footer ·
 * Bootstrap components · store · search page · error and offline pages · print.
 */

/* --------------------------------------------------------------------------
 * Fonts: Oswald (headings, navigation; SIL OFL 1.1) and Roboto Condensed
 * (text; Apache 2.0), self-hosted, licences beside the files.
 * ------------------------------------------------------------------------ */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url("../fonts/oswald-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url("../fonts/oswald-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url("../fonts/oswald-vietnamese.woff2") format("woff2-variations");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/roboto-condensed-light.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-condensed-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Condensed";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-condensed-regularitalic.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-condensed-bold.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Condensed";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-condensed-bolditalic.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
 * Tokens. Brand: teal #17748b, orange #fe8201, green #6ebf1e, as on the
 * Joomla 3 site and the plans and features pages. Orange is a fill (with
 * dark text) or an accent; as text on white it reads in --sr-accent-text.
 * ------------------------------------------------------------------------ */

:root,
[data-bs-theme="light"] {
  color-scheme: light;

  --sr-font-heading: "Oswald", "Arial Narrow", Arial, sans-serif;
  --sr-font-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --sr-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --sr-container: 1200px;
  --sr-gutter: 16px;
  --sr-radius: 10px;
  --sr-radius-sm: 6px;
  --sr-header-height: 64px;

  --sr-bg: #ffffff;
  --sr-surface: #ffffff;
  --sr-tint: #f1f7f9;
  --sr-tint-strong: #e3eef1;
  --sr-ink: #24343a;
  --sr-text: #4b5b62;
  --sr-muted: #627279;
  --sr-line: #dbe5e8;
  --sr-line-soft: #edf2f4;

  --sr-brand: #17748b;
  --sr-brand-rgb: 23, 116, 139;
  --sr-brand-strong: #0f5a6c;
  --sr-brand-deep: #0b4251;
  --sr-brand-tint: #e4f1f4;
  --sr-on-brand: #ffffff;
  --sr-link: #17748b;
  --sr-link-rgb: 23, 116, 139;
  --sr-link-hover: #0f5a6c;
  --sr-link-hover-rgb: 15, 90, 108;

  --sr-accent: #fe8201;
  --sr-accent-text: #a35100;
  --sr-on-accent: #24343a;
  --sr-green: #6ebf1e;
  --sr-green-text: #3d7410;
  --sr-green-fill: #3d7410; /* under white text, in both schemes */
  --sr-danger-text: #b02a37;

  --sr-focus: #0f5a6c;
  --sr-shadow: 0 1px 2px rgba(16, 52, 61, 0.05), 0 4px 14px rgba(16, 52, 61, 0.06);
  --sr-shadow-raised: 0 2px 4px rgba(16, 52, 61, 0.08), 0 12px 28px rgba(16, 52, 61, 0.12);

  --sr-header-bg: #ffffff;
  --sr-header-line: #17748b;
  --sr-nav-link: #24343a;
  --sr-nav-hover-bg: #f1f7f9;
  --sr-band-brand-bg: #17748b;
  --sr-band-brand-bg-2: #1b7b93;
  --sr-band-tint-bg: #f1f7f9;
  --sr-footer-bg: #262b2e;
  --sr-footer-bar-bg: #1d2124;
  --sr-footer-text: #c9d1d4;
  --sr-footer-muted: #9aa6ab;
  --sr-footer-link: #8fd0e0;
  --sr-footer-line: #3a4246;
}

[data-bs-theme="dark"] {
  color-scheme: dark;

  --sr-bg: #0f1719;
  --sr-surface: #162124;
  --sr-tint: #1b292d;
  --sr-tint-strong: #22343a;
  --sr-ink: #e8f0f2;
  --sr-text: #c5d3d7;
  --sr-muted: #95a8ae;
  --sr-line: #2b3c41;
  --sr-line-soft: #213035;

  --sr-brand: #17748b;
  --sr-brand-rgb: 23, 116, 139;
  --sr-brand-strong: #1b86a1;
  --sr-brand-deep: #0b4251;
  --sr-brand-tint: #15343c;
  --sr-on-brand: #ffffff;
  --sr-link: #5bbdd4;
  --sr-link-rgb: 91, 189, 212;
  --sr-link-hover: #8fd3e3;
  --sr-link-hover-rgb: 143, 211, 227;

  --sr-accent: #ff9a2e;
  --sr-accent-text: #ffb366;
  --sr-on-accent: #1a1206;
  --sr-green: #7fd02c;
  --sr-green-text: #9be05a;
  --sr-green-fill: #3d7410;
  --sr-danger-text: #ea868f;

  --sr-focus: #8fd3e3;
  --sr-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.3);
  --sr-shadow-raised: 0 2px 4px rgba(0, 0, 0, 0.45), 0 12px 28px rgba(0, 0, 0, 0.4);

  --sr-header-bg: #131d20;
  --sr-header-line: #17748b;
  --sr-nav-link: #e8f0f2;
  --sr-nav-hover-bg: #1b292d;
  --sr-band-brand-bg: #0f4f5f;
  --sr-band-brand-bg-2: #12596b;
  --sr-band-tint-bg: #131d20;
  --sr-footer-bg: #0b1113;
  --sr-footer-bar-bg: #080d0e;
  --sr-footer-text: #c5d3d7;
  --sr-footer-muted: #95a8ae;
  --sr-footer-link: #8fd3e3;
  --sr-footer-line: #24343a;
}

/* --------------------------------------------------------------------------
 * Bootstrap's tokens from the palette, in both schemes (the dark rule above
 * redefines the --sr-* they read). The -rgb triplets cannot be derived, so
 * each scheme states its own.
 * ------------------------------------------------------------------------ */

:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
  --bs-body-font-family: var(--sr-font-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--sr-text);
  --bs-body-bg: var(--sr-bg);
  --bs-emphasis-color: var(--sr-ink);
  --bs-heading-color: var(--sr-ink);
  --bs-secondary-color: var(--sr-muted);
  --bs-tertiary-color: var(--sr-muted);
  --bs-secondary-bg: var(--sr-tint);
  --bs-tertiary-bg: var(--sr-tint);
  --bs-border-color: var(--sr-line);
  --bs-border-radius: var(--sr-radius-sm);
  --bs-border-radius-lg: var(--sr-radius);
  --bs-link-color: var(--sr-link);
  --bs-link-color-rgb: var(--sr-link-rgb);
  --bs-link-hover-color: var(--sr-link-hover);
  --bs-link-hover-color-rgb: var(--sr-link-hover-rgb);
  --bs-primary: var(--sr-brand);
  --bs-primary-rgb: var(--sr-brand-rgb);
  --bs-primary-bg-subtle: var(--sr-brand-tint);
  --bs-primary-text-emphasis: var(--sr-link-hover);
  --bs-focus-ring-color: rgba(var(--sr-brand-rgb), 0.35);
  --bs-code-color: var(--sr-accent-text);
}

:root,
[data-bs-theme="light"] {
  --bs-body-color-rgb: 75, 91, 98;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-emphasis-color-rgb: 36, 52, 58;
  --bs-secondary-color-rgb: 98, 114, 121;
  --bs-secondary-bg-rgb: 241, 247, 249;
  --bs-tertiary-bg-rgb: 241, 247, 249;
  --bs-border-color-translucent: rgba(16, 52, 61, 0.14);
}

[data-bs-theme="dark"] {
  --bs-body-color-rgb: 197, 211, 215;
  --bs-body-bg-rgb: 15, 23, 25;
  --bs-emphasis-color-rgb: 232, 240, 242;
  --bs-secondary-color-rgb: 149, 168, 174;
  --bs-secondary-bg-rgb: 27, 41, 45;
  --bs-tertiary-bg-rgb: 27, 41, 45;
  --bs-border-color-translucent: rgba(232, 240, 242, 0.14);
}

/* .text-secondary is the secondary button's grey (#6c757d in both schemes:
 * 4.3:1 on the tint, 3.9:1 on the dark page). Extensions print muted text
 * with it (Solidticket's labels and ticket details), so it reads the muted
 * token like .text-body-secondary. */
.text-secondary {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-secondary-color-rgb), var(--bs-text-opacity)) !important;
}

/* Bootstrap's outline success button is #198754 in both schemes (4:1 on the
 * dark page): Solidticket's "Mark resolved". On the palette's green. */
.btn-outline-success {
  --bs-btn-color: var(--sr-green-text);
  --bs-btn-border-color: var(--sr-green-text);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--sr-green-fill);
  --bs-btn-hover-border-color: var(--sr-green-fill);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--sr-green-fill);
  --bs-btn-active-border-color: var(--sr-green-fill);
  --bs-btn-disabled-color: var(--sr-green-text);
  --bs-btn-disabled-border-color: var(--sr-green-text);
}

/* --------------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------------ */

html {
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background-color: var(--sr-bg);
  color: var(--sr-text);
  font-family: var(--sr-font-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: var(--sr-ink);
  font-family: var(--sr-font-heading);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

a {
  color: var(--sr-link);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--sr-link-hover);
}

:focus-visible {
  outline: 3px solid var(--sr-focus);
  outline-offset: 2px;
}

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

code,
kbd,
pre,
samp {
  font-family: var(--sr-font-mono);
}

.sr-skip-link {
  position: absolute;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: var(--sr-radius-sm);
  background: var(--sr-brand-deep);
  color: #ffffff;
  font-weight: 700;
  transform: translateY(-200%);
}

.sr-skip-link:focus {
  color: #ffffff;
  transform: none;
}

.sr-main:focus {
  outline: none;
}

/* --------------------------------------------------------------------------
 * Layout
 * ------------------------------------------------------------------------ */

.sr-container {
  width: 100%;
  max-width: calc(var(--sr-container) + 2 * var(--sr-gutter));
  margin-inline: auto;
  padding-inline: var(--sr-gutter);
}

@media (min-width: 768px) {
  :root {
    --sr-gutter: 24px;
  }
}

.sr-page {
  padding-block: 24px 48px;
}

.sr-home .sr-page {
  padding-block: 0;
}

.sr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 960px) {
  .sr-layout--sidebar-a {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .sr-layout--sidebar-b {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .sr-layout--sidebar-a.sr-layout--sidebar-b {
    grid-template-columns: 240px minmax(0, 1fr) 260px;
  }
}

.sr-layout__content > :first-child {
  margin-top: 0;
}

.sr-layout__content:empty {
  display: none;
}

.sr-page__top,
.sr-page__bottom {
  margin-block: 24px;
}

/* --------------------------------------------------------------------------
 * Header and navigation. One menu (the menu position: main menu, register
 * menu, login module) that is a bar from 1024px and a drawer under the
 * header below that. Joomla's mod_menu script owns the submenu toggles
 * (aria-expanded on the button, aria-hidden on the list).
 * ------------------------------------------------------------------------ */

.sr-header {
  position: relative;
  z-index: 100;
  border-top: 3px solid var(--sr-header-line);
  background: var(--sr-header-bg);
  box-shadow: 0 1px 0 var(--sr-line);
}

.sr-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  min-height: var(--sr-header-height);
}

.sr-header__logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  margin-inline-end: auto;
  padding-block: 8px;
  color: var(--sr-brand);
  text-decoration: none;
}

.sr-header__logo-img {
  display: block;
  width: auto;
  height: 35px;
}

/* The white logo in the dark scheme, the teal one otherwise. */
.sr-header__logo-img--dark,
[data-bs-theme="dark"] .sr-header__logo-img {
  display: none;
}

[data-bs-theme="dark"] .sr-header__logo-img--dark {
  display: block;
}

/* "since 2013" beside the logo's foot */
.sr-header__since {
  align-self: flex-end;
  margin-bottom: -6px;
  color: var(--sr-accent-text);
  font-family: var(--sr-font-heading);
  font-size: 0.8125rem;
  line-height: 1;
  white-space: nowrap;
}


.sr-header__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius-sm);
  background: transparent;
  color: var(--sr-ink);
  font-family: var(--sr-font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.sr-header__toggle-bars,
.sr-header__toggle-bars::before,
.sr-header__toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sr-header__toggle-bars {
  position: relative;
}

.sr-header__toggle-bars::before,
.sr-header__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.sr-header__toggle-bars::before {
  top: -6px;
}

.sr-header__toggle-bars::after {
  top: 6px;
}

.sr-header__toggle[aria-expanded="true"] .sr-header__toggle-bars {
  background: transparent;
}

.sr-header__toggle[aria-expanded="true"] .sr-header__toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.sr-header__toggle[aria-expanded="true"] .sr-header__toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Small screens: the drawer. Hidden until the toggle opens it; without the
 * script (no .sr-js on <html>) it is simply shown under the header. */
.sr-nav {
  flex-basis: 100%;
  padding-block: 4px 16px;
}

.sr-js .sr-nav {
  display: none;
}

.sr-js .sr-nav.sr-nav--open {
  display: block;
}

.sr-nav .mod-menu {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-nav .mod-menu > li {
  border-top: 1px solid var(--sr-line-soft);
}

/* A heading or separator is an item of its own only without children; with
 * them, its label is inside the toggle and takes the toggle's type (as its own
 * item it was 1rem in a 0.9375rem bar, so Download and Products stood out). */
.sr-nav .mod-menu a,
.sr-nav .mod-menu li > .mod-menu__heading,
.sr-nav .mod-menu li > .mod-menu__separator,
.sr-nav .mod-menu__toggle-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 8px 4px;
  color: var(--sr-nav-link);
  font-family: var(--sr-font-heading);
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sr-nav .mod-menu__toggle-sub {
  cursor: pointer;
}

.sr-nav .mod-menu__toggle-sub .icon-chevron-down {
  width: 0.6em;
  height: 0.6em;
  margin-inline-start: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.2s ease;
}

.sr-nav .mod-menu__toggle-sub .icon-chevron-down::before {
  content: none;
}

.sr-nav .mod-menu__toggle-sub[aria-expanded="true"] .icon-chevron-down {
  transform: translateY(25%) rotate(225deg);
}

/* A linked item with children (Restaurant Management System and its
 * templates): the link and its toggle side by side, the list under them.
 * A heading or separator with children is its toggle, label and all. */
.sr-nav .mod-menu li.deeper:has(> a) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.sr-nav .mod-menu li.deeper:has(> a) > a {
  flex: 1 1 auto;
  width: auto;
}

.sr-nav .mod-menu li.deeper:has(> a) > .mod-menu__toggle-sub {
  flex: 0 0 auto;
  width: 44px;
  justify-content: center;
}

.sr-nav .mod-menu li.deeper:has(> a) > .mod-menu__sub {
  flex-basis: 100%;
}

.sr-nav .mod-menu a:hover,
.sr-nav .mod-menu__toggle-sub:hover {
  color: var(--sr-link);
}

body:not(.sr-error-page) .sr-nav .mod-menu .current > a,
body:not(.sr-error-page) .sr-nav .mod-menu a[aria-current] {
  color: var(--sr-link);
}

.sr-nav .mod-menu__sub {
  margin: 0 0 8px;
  padding: 0 0 0 12px;
  list-style: none;
  font-size: 1rem;
}

.sr-nav .mod-menu__sub a {
  min-height: 40px;
  font-family: var(--sr-font-body);
  font-size: 1.0625rem;
  text-transform: none;
  letter-spacing: 0;
}

/* The menus after the main one (the register menu) and the login module:
 * account links, in the accent. */
.sr-nav .mod-menu ~ .mod-menu a,
.sr-nav__account-link {
  color: var(--sr-accent-text);
}

.sr-nav__account-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: none;
  font-family: var(--sr-font-heading);
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.sr-nav__account-link:hover {
  color: var(--sr-link-hover);
  text-decoration: underline;
}

.sr-nav__logout {
  margin: 0;
}

/* The search box (Smart Search's module in the search position). On small
 * screens it is the drawer's last row, shown with the menu; from 1024px the
 * magnifier after the menu opens it as a row under the header. Without the
 * script (no .sr-js) it is simply shown and the magnifier is not. */
.sr-header__search-toggle {
  display: none;
}

.sr-header__search {
  flex-basis: 100%;
  padding-block: 4px 16px;
}

.sr-js .sr-header__search {
  display: none;
}

.sr-header__search .mod-finder__search {
  flex-wrap: nowrap;
}

@media (max-width: 1023.98px) {
  .sr-js .sr-nav--open ~ .sr-header__search {
    display: block;
  }

  .sr-header__search {
    padding-top: 12px;
    border-top: 1px solid var(--sr-line-soft);
  }
}

@media (min-width: 1024px) {
  .sr-header__toggle {
    display: none;
  }

  .sr-nav,
  .sr-js .sr-nav {
    display: flex;
    flex-basis: auto;
    align-items: center;
    gap: 4px;
    padding: 0;
  }

  .sr-nav .mod-menu {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .sr-nav .mod-menu > li {
    position: relative;
    border: 0;
  }

  .sr-nav .mod-menu > li > a,
  .sr-nav .mod-menu > li > .mod-menu__toggle-sub,
  .sr-nav .mod-menu > li > .mod-menu__heading,
  .sr-nav__account-link {
    width: auto;
    min-height: var(--sr-header-height);
    padding: 8px 12px;
    border-radius: 0;
    font-size: 0.9375rem;
  }

  .sr-nav .mod-menu > li > a:hover,
  .sr-nav .mod-menu > li > .mod-menu__toggle-sub:hover,
  .sr-nav .mod-menu > li > .mod-menu__toggle-sub[aria-expanded="true"] {
    background: var(--sr-nav-hover-bg);
  }

  /* The current section: a bar under it, like the Joomla 3 site's marker.
   * An error page matches no menu item, and Joomla calls the home one active. */
  body:not(.sr-error-page) .sr-nav .mod-menu > li.active > a,
  body:not(.sr-error-page) .sr-nav .mod-menu > li.active > .mod-menu__toggle-sub {
    box-shadow: inset 0 -3px 0 var(--sr-accent);
  }

  /* Above the search box's row, whose field Bootstrap positions. */
  .sr-nav .mod-menu__sub {
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 0;
    width: max-content;
    min-width: 240px;
    max-width: 360px;
    margin: 0;
    padding: 8px 0;
    border: 1px solid var(--sr-line);
    border-top: 3px solid var(--sr-brand);
    border-radius: 0 0 var(--sr-radius-sm) var(--sr-radius-sm);
    background: var(--sr-surface);
    box-shadow: var(--sr-shadow-raised);
  }

  .sr-nav .mod-menu > li:last-child > .mod-menu__sub {
    right: 0;
    left: auto;
  }

  /* The third level opens inside its dropdown. */
  .sr-nav .mod-menu__sub .mod-menu__sub {
    position: static;
    min-width: 0;
    padding: 0 0 4px 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .sr-nav .mod-menu__sub li.deeper:has(> a) > .mod-menu__toggle-sub {
    min-height: 40px;
  }

  .sr-nav .mod-menu__sub a {
    min-height: 40px;
    padding: 8px 16px;
    white-space: nowrap;
  }

  .sr-nav .mod-menu__sub a:hover {
    background: var(--sr-nav-hover-bg);
  }

  /* Hover opens a submenu for a mouse; the toggle and the keyboard still work. */
  @media (hover: hover) {
    .sr-nav .mod-menu > li:hover > .mod-menu__sub {
      display: block;
    }
  }

  .sr-js .sr-header__search-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--sr-line);
    border-radius: var(--sr-radius-sm);
    background: transparent;
    color: var(--sr-ink);
    cursor: pointer;
  }

  .sr-header__search-toggle:hover,
  .sr-header__search-toggle[aria-expanded="true"] {
    background: var(--sr-nav-hover-bg);
    color: var(--sr-link);
  }

  .sr-js .sr-header__search.sr-header__search--open {
    display: block;
  }

  .sr-header__search .mod-finder {
    max-width: 560px;
    margin-inline-start: auto;
  }
}

/* --------------------------------------------------------------------------
 * Bands: the home page's full-width sections, one per position, with the
 * backgrounds the Joomla 3 site gave them.
 * ------------------------------------------------------------------------ */

.sr-band {
  padding-block: 40px;
}

.sr-band--top-a,
.sr-band--top-b {
  background: linear-gradient(180deg, var(--sr-band-brand-bg) 0%, var(--sr-band-brand-bg-2) 100%);
  color: #ffffff;
}

.sr-band--top-a {
  padding-block: 32px 16px;
}

.sr-band--top-b {
  padding-block: 16px 24px;
}

.sr-band--top-a a:not(.btn, .sr-btn),
.sr-band--top-b a:not(.btn, .sr-btn),
.sr-band--bottom-c a:not(.btn, .sr-btn) {
  color: #ffffff;
}

.sr-band--top-a :focus-visible,
.sr-band--top-b :focus-visible,
.sr-band--bottom-c :focus-visible {
  outline-color: #ffffff;
}

.sr-band--top-c,
.sr-band--top-e,
.sr-band--bottom-b {
  background: var(--sr-band-tint-bg);
}

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

.sr-band--bottom-c h2,
.sr-band--bottom-c h3 {
  color: #ffffff;
}

.sr-band .sr-module + .sr-module {
  margin-top: 40px;
}

.sr-module__title {
  margin: 0 0 28px;
  color: var(--sr-brand);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  text-align: center;
  text-transform: uppercase;
}

[data-bs-theme="dark"] .sr-module__title {
  color: var(--sr-link);
}

.sr-module__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--sr-accent);
}

/* --------------------------------------------------------------------------
 * Cards and sidebars
 * ------------------------------------------------------------------------ */

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

.sr-card + .sr-card {
  margin-top: 24px;
}

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

@media (min-width: 960px) {
  .sr-layout__sidebar {
    align-self: start;
    position: sticky;
    top: 16px;
  }
}

/* --------------------------------------------------------------------------
 * The page bar: the brand's strip under the header on every page but the
 * home page, with the breadcrumb (mod_breadcrumbs) in it. Under the button
 * band it carries on from the band's lower colour.
 * ------------------------------------------------------------------------ */

.sr-pagebar {
  min-height: 12px;
  padding-block: 10px;
  background: var(--sr-band-brand-bg-2);
  color: #ffffff;
}

.sr-band--top-b + .sr-pagebar {
  padding-top: 0;
}

.sr-pagebar .mod-breadcrumbs__wrapper {
  margin: 0;
}

/* Bootstrap's spacing utilities on the list (px-3 py-2) are !important. */
.sr-pagebar .mod-breadcrumbs.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin: 0;
  padding: 0 !important;
  background: none;
  font-size: 0.9375rem;
  list-style: none;
  --bs-breadcrumb-divider-color: #ffffff;
  --bs-breadcrumb-item-active-color: #ffffff;
}

.sr-pagebar .mod-breadcrumbs__here {
  margin-inline-end: 0.5em;
}

.sr-pagebar a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  text-underline-offset: 0.2em;
}

.sr-pagebar a:hover,
.sr-pagebar a:focus {
  text-decoration-color: #ffffff;
}

.sr-pagebar :focus-visible {
  outline-color: #ffffff;
}

/* --------------------------------------------------------------------------
 * Front-end editing. For a signed-in editor Joomla puts an edit button and
 * its tooltip at the start of each module, and a tooltip inside each article's
 * Edit link. The button sits in its module's end corner, out of the layout
 * (over the start of a menu it hid the first item's name), and a
 * tooltip shows only while its link is hovered or focused, as in Cassiopeia;
 * without these rules the tooltips' text was printed in the page.
 * ------------------------------------------------------------------------ */

:has(> .btn.jmodedit) {
  position: relative;
}

/* a.btn: above the menu's links, whose rule it would otherwise take. */
a.btn.jmodedit {
  position: absolute;
  z-index: 900;
  top: 0;
  inset-inline-end: 0;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 0;
  padding: 3px 5px;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius-sm);
  background: var(--sr-surface);
  color: var(--sr-link);
  font-size: 0.75rem;
  line-height: 1;
}

/* A module's tooltip follows its edit button; an article's is inside its
 * Edit link. */
a[aria-describedby]:has(> [role="tooltip"]) {
  position: relative;
}

a[aria-describedby] + [role="tooltip"],
a[aria-describedby] > [role="tooltip"] {
  position: absolute;
  z-index: 1070;
  display: none;
  width: max-content;
  max-width: 20rem;
  margin: 4px 0 0;
  padding: 0.5em 0.75em;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius-sm);
  background: var(--sr-surface);
  box-shadow: var(--sr-shadow-raised);
  color: var(--sr-text);
  font-family: var(--sr-font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: start;
  text-transform: none;
}

.btn.jmodedit + [role="tooltip"] {
  top: 20px;
  inset-inline-end: 0;
}

/* Joomla floats an article's Edit link to the end: its tooltip opens back. */
a[aria-describedby] > [role="tooltip"] {
  top: 100%;
  inset-inline-end: 0;
}

a[aria-describedby]:is(:hover, :focus-visible) + [role="tooltip"],
a[aria-describedby]:is(:hover, :focus-visible) > [role="tooltip"] {
  display: block;
}

/* --------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------ */

.sr-footer {
  background: var(--sr-footer-bg);
  color: var(--sr-footer-text);
  font-size: 1rem;
}

.sr-footer a {
  color: var(--sr-footer-link);
}

.sr-footer a:hover {
  color: #ffffff;
}

.sr-footer :is(h4, h5, h6, .h4, .h5, .h6) {
  color: inherit;
}

.sr-footer a :is(h4, h5, h6, .h4, .h5, .h6) {
  color: var(--sr-footer-link);
}

.sr-footer h2,
.sr-footer h3 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sr-footer-line);
  color: #ffffff;
  font-size: 1.5rem;
}

.sr-footer :focus-visible {
  outline-color: var(--sr-footer-link);
}

.sr-footer__main {
  padding-block: 40px 32px;
}

.sr-footer__bar {
  padding-block: 20px;
  border-top: 1px solid var(--sr-footer-line);
  background: var(--sr-footer-bar-bg);
  color: var(--sr-footer-muted);
  font-size: 0.9375rem;
}

.sr-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sr-footer__bar-inner > .mod-custom {
  flex: 1 1 280px;
}

.sr-footer__bar p {
  margin: 0;
}

.sr-footer__top {
  margin-inline-start: auto;
  font-family: var(--sr-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.sr-bloglist__item + .sr-bloglist__item {
  margin-top: 10px;
}

.sr-bloglist__link {
  display: inline-block;
  padding-inline-start: 16px;
  text-indent: -16px;
  text-decoration: none;
}

.sr-bloglist__link::before {
  content: "›";
  display: inline-block;
  width: 16px;
  text-indent: 0;
  color: var(--sr-footer-link);
}

.sr-bloglist__link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
 * Articles: the blog list (Category Blog) and a post, as Joomla's layouts
 * print them. The info block is one muted line (its "Details" term kept for
 * screen readers), the tags quiet pills, Read more and the previous/next
 * links outline buttons.
 * ------------------------------------------------------------------------ */

.com-content-category-blog > h1 {
  margin-bottom: 24px;
}

.com-content-category-blog__item + .com-content-category-blog__item {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--sr-line);
}

.com-content-category-blog__item .page-header h2 {
  margin-bottom: 8px;
}

.com-content-category-blog__item .page-header a {
  color: var(--sr-ink);
  text-decoration: none;
}

.com-content-category-blog__item .page-header a:hover {
  color: var(--sr-link-hover);
  text-decoration: underline;
}

.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 12px;
  font-size: 0.875rem;
}

.article-info dd {
  margin: 0;
}

.article-info-term {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.tags .list-inline-item {
  margin: 0;
}

.tags .btn {
  --bs-btn-padding-y: 2px;
  --bs-btn-padding-x: 10px;
  --bs-btn-font-size: 0.8125rem;
  --bs-btn-color: var(--sr-link);
  --bs-btn-bg: var(--sr-brand-tint);
  --bs-btn-border-color: var(--sr-brand-tint);
  --bs-btn-hover-color: var(--sr-on-brand);
  --bs-btn-hover-bg: var(--sr-brand);
  --bs-btn-hover-border-color: var(--sr-brand);
  --bs-btn-active-color: var(--sr-on-brand);
  --bs-btn-active-bg: var(--sr-brand-strong);
  --bs-btn-active-border-color: var(--sr-brand-strong);
  --bs-btn-focus-shadow-rgb: var(--sr-brand-rgb);
  border-radius: 999px;
}

:is(.readmore, .pagenavigation) .btn {
  --bs-btn-color: var(--sr-link);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--sr-brand);
  --bs-btn-hover-color: var(--sr-on-brand);
  --bs-btn-hover-bg: var(--sr-brand);
  --bs-btn-hover-border-color: var(--sr-brand);
  --bs-btn-active-color: var(--sr-on-brand);
  --bs-btn-active-bg: var(--sr-brand-strong);
  --bs-btn-active-border-color: var(--sr-brand-strong);
  --bs-btn-focus-shadow-rgb: var(--sr-brand-rgb);
}

.pagenavigation .pagination {
  gap: 8px;
}

/* --------------------------------------------------------------------------
 * Bootstrap components: the variants Bootstrap compiles with fixed colours.
 * ------------------------------------------------------------------------ */

.btn {
  font-family: var(--sr-font-heading);
  letter-spacing: 0.02em;
}

.btn-primary {
  --bs-btn-bg: var(--sr-brand);
  --bs-btn-border-color: var(--sr-brand);
  --bs-btn-color: var(--sr-on-brand);
  --bs-btn-hover-bg: var(--sr-brand-strong);
  --bs-btn-hover-border-color: var(--sr-brand-strong);
  --bs-btn-hover-color: var(--sr-on-brand);
  --bs-btn-active-bg: var(--sr-brand-deep);
  --bs-btn-active-border-color: var(--sr-brand-deep);
  --bs-btn-active-color: var(--sr-on-brand);
  --bs-btn-disabled-bg: var(--sr-brand);
  --bs-btn-disabled-border-color: var(--sr-brand);
  --bs-btn-focus-shadow-rgb: var(--sr-brand-rgb);
}

.btn-outline-primary {
  --bs-btn-color: var(--sr-link);
  --bs-btn-border-color: var(--sr-brand);
  --bs-btn-hover-bg: var(--sr-brand);
  --bs-btn-hover-border-color: var(--sr-brand);
  --bs-btn-hover-color: var(--sr-on-brand);
  --bs-btn-active-bg: var(--sr-brand-strong);
  --bs-btn-active-border-color: var(--sr-brand-strong);
  --bs-btn-active-color: var(--sr-on-brand);
  --bs-btn-disabled-color: var(--sr-link);
  --bs-btn-disabled-border-color: var(--sr-brand);
  --bs-btn-focus-shadow-rgb: var(--sr-brand-rgb);
}

.btn-outline-secondary {
  --bs-btn-color: var(--sr-text);
  --bs-btn-border-color: var(--sr-line);
  --bs-btn-hover-bg: var(--sr-tint-strong);
  --bs-btn-hover-border-color: var(--sr-line);
  --bs-btn-hover-color: var(--sr-ink);
  --bs-btn-active-bg: var(--sr-tint-strong);
  --bs-btn-active-border-color: var(--sr-line);
  --bs-btn-active-color: var(--sr-ink);
}

.text-primary {
  color: var(--sr-link) !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--sr-brand);
  box-shadow: 0 0 0 0.25rem rgba(var(--sr-brand-rgb), 0.25);
}

.form-check-input:checked {
  border-color: var(--sr-brand);
  background-color: var(--sr-brand);
}

/* Joomla's account forms (log in, register, the password and username reminders, the
 * profile) print a row per field and per button; Joomla's own site template spaces them,
 * here the buttons touched what came before them. Only on these pages: the forum's
 * forms use the same class and were laid out without it. */
.com_users .control-group {
  margin: 0 0 1rem;
}

.com_users .com-users-login__options {
  margin-top: 1.5rem;
}

/* The passkey button Joomla adds to its login forms (System - WebAuthn Passwordless Login):
 * its icon is an SVG with no size of its own, which Joomla's own site template gives it,
 * so here it filled the form's width. It takes the button's text colour, in both schemes. */
.plg_system_webauthn_login_button svg {
  width: 1.5em;
  height: 1.5em;
  margin-inline-end: 0.5em;
  vertical-align: middle;
  fill: currentColor;
}

/* A box that scrolls sideways is the containing block of what is positioned inside it, so
 * that is clipped with the rest: a visually hidden label (positioned absolutely) in a
 * table's last column otherwise widened the page on a phone. */
.table-responsive,
.sr-scroll {
  position: relative;
}

/* Joomla's list search tools (layouts/joomla/searchtools, on component lists such as the
 * Download IDs): the search box, Clear, then the sort and page-size selects, in one row that
 * wraps. Without this the selects stacked and stretched the search box to their height. */
.js-stools {
  margin-bottom: 16px;
}

.js-stools-container-bar .btn-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.js-stools .filter-search-bar {
  flex: 1 1 240px;
  max-width: 420px;
}

.js-stools .filter-search-bar > .input-group {
  flex: 1 1 auto;
}

.js-stools .ordering-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.js-stools .js-stools-field-list .form-select {
  width: auto;
}

.js-stools-container-filters:not(:has(*)) {
  display: none;
}

/* Joomla's pagination: the page numbers wrap on a phone instead of widening the page. */
.pagination {
  flex-wrap: wrap;
  row-gap: 4px;
}

.page-link {
  --bs-pagination-color: var(--sr-link);
  --bs-pagination-hover-color: var(--sr-link-hover);
  --bs-pagination-active-bg: var(--sr-brand);
  --bs-pagination-active-border-color: var(--sr-brand);
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(var(--sr-brand-rgb), 0.25);
}

.nav-pills {
  --bs-nav-pills-link-active-bg: var(--sr-brand);
}

.card {
  --bs-card-border-color: var(--sr-line);
  --bs-card-cap-bg: var(--sr-tint);
}

/* Bootstrap keeps these light in its dark palette; the store pages use them
 * for table heads and card headers. */
.table-light {
  --bs-table-color: var(--sr-ink);
  --bs-table-bg: var(--sr-tint);
  --bs-table-border-color: var(--sr-line);
  --bs-table-striped-bg: var(--sr-tint-strong);
  --bs-table-hover-bg: var(--sr-tint-strong);
  --bs-table-hover-color: var(--sr-ink);
}

[data-bs-theme="dark"] .bg-light {
  background-color: var(--sr-tint) !important;
}

[data-bs-theme="dark"] .text-dark {
  color: var(--sr-ink) !important;
}

/* Bootstrap's red is the same in both schemes and reads below 4.5:1 on the tint the store's
 * tables use (an order's discount line: 4.2:1 here, 3.3:1 in the dark scheme). */
.text-danger {
  color: var(--sr-danger-text) !important;
}

/* A link inside one of Bootstrap's alerts (the docs' notes) takes the alert's own link colour, which
 * reads on its background; the site's teal does not on all of them. Buttons keep theirs. */
.alert a:not(.btn, .sr-btn) {
  color: var(--bs-alert-link-color);
}

/* --------------------------------------------------------------------------
 * Store (Solidshop)
 * ------------------------------------------------------------------------ */

/* An order status: its label after a dot in the status's colour
 * (layouts/solidres/shop/status.php). The ring keeps a pale colour's dot in sight. */
.sr-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sr-ink);
  white-space: nowrap;
}

.sr-status__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border: 1px solid color-mix(in srgb, var(--sr-ink) 30%, transparent);
  border-radius: 50%;
  background: var(--sr-status-color, var(--sr-muted));
}

/* The product list (/products, where "Continue shopping" leads): the products carry no
 * images, and Solidshop fills each card's image area with a placeholder icon. That link is
 * hidden from the keyboard and screen readers already; without it a card is its name, price
 * and button. */
.solidshop-product-card__media:has(> .solidshop-product-card__media-placeholder) {
  display: none;
}

/* --------------------------------------------------------------------------
 * Search page (Smart Search, html/com_finder/search/)
 * ------------------------------------------------------------------------ */

.com-finder__search label {
  margin-bottom: 4px;
}

.com-finder__search .input-group {
  max-width: 640px;
}

/* A result's title is an <h2> (the override); it keeps the size Joomla gives it. */
.com-finder .result__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.com-finder .result__title-text {
  font-size: inherit;
}

.result__item + .result__item {
  border-top-color: var(--sr-line);
}

/* The searched words: Bootstrap's highlight colour, which reads in both
 * schemes (Joomla's is a fixed yellow). */
.result__item .highlight::before {
  background: var(--bs-highlight-bg);
}

/* The same words offered to the forum's search, after the results. */
.sr-finder__forum {
  margin-top: 1.5em;
  padding-top: 16px;
  border-top: 1px solid var(--sr-line);
}

/* --------------------------------------------------------------------------
 * Error and offline pages
 * ------------------------------------------------------------------------ */

.sr-error {
  max-width: 720px;
  padding-block: 32px 48px;
  text-align: center;
}

.sr-error__code {
  margin: 0;
  color: var(--sr-brand);
  font-family: var(--sr-font-heading);
  font-size: clamp(4rem, 3rem + 6vw, 7.5rem);
  line-height: 1;
}

[data-bs-theme="dark"] .sr-error__code {
  color: var(--sr-link);
}

.sr-error__title {
  margin: 8px 0 12px;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}

.sr-error__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--sr-font-heading);
  font-size: 1.125rem;
}

.sr-error__debug {
  margin-top: 32px;
  text-align: start;
}

.sr-offline {
  display: grid;
  min-height: 100vh;
  padding: 24px var(--sr-gutter);
  place-items: center;
  background: var(--sr-tint);
}

.sr-offline__card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border: 1px solid var(--sr-line);
  border-top: 3px solid var(--sr-brand);
  border-radius: var(--sr-radius);
  background: var(--sr-surface);
  box-shadow: var(--sr-shadow);
}

.sr-offline__title {
  margin: 0 0 16px;
  color: var(--sr-brand);
  font-size: 2rem;
}

[data-bs-theme="dark"] .sr-offline__title {
  color: var(--sr-link);
}

.sr-offline__form-title {
  margin: 24px 0 16px;
  font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
 * Print: light, without the chrome.
 * ------------------------------------------------------------------------ */

@media print {
  :root,
  [data-bs-theme] {
    color-scheme: light;
  }

  .sr-skip-link,
  .sr-header__toggle,
  .sr-nav,
  .sr-header__search-toggle,
  .sr-header__search,
  .sr-layout__sidebar,
  .sr-footer {
    display: none !important;
  }

  .sr-header {
    border: 0;
    box-shadow: none;
  }

  .sr-layout {
    display: block;
  }
}
