@charset "UTF-8";
@import "themes.css";
@import "nullstyle.css";
@import "fonts/FFGoodProCond.css";
@import "fonts/Roboto.css";
@font-face {
  font-family: "Pathfinder2eActions";
  src: url("fonts/Pathfinder2eActions.ttf");
}
body {
  color: var(--textcolor);
}

.wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 98vh;
  background-color: var(--grey0);
  font-family: "FF Good Pro Cond News";
  font-size: 16px;
  line-height: 1.7em;
}

/* Optional explicit light theme hook (defaults already match light) */
[data-theme=light] {
  color-scheme: light;
}

.header {
  width: 100%;
  height: 42px;
  background: var(--bg-color);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  flex-wrap: nowrap;
  position: fixed;
  padding: 2px 3px;
  align-items: center;
  z-index: 999;
}
.header__logo {
  width: -moz-fit-content;
  width: fit-content;
  display: inline-flex;
  margin-left: 20px;
}
.header__pf2-logo {
  text-align: center;
  display: inline-flex;
}
.header__nav-panel {
  display: inline-flex;
  justify-content: end;
  margin: auto 10px;
}
.header__lang-panel {
  margin-right: 5px;
  display: flex;
  align-self: center;
  height: 28px;
}
.header__lang-button {
  display: inline-flex;
  width: 80px;
}
.header__lang-button:focus {
  outline: none;
}

.logo--mobile {
  display: none;
}

.logo-link {
  color: var(--text-light);
  font-size: 36px;
  margin-top: 5px;
  font-family: "FF Good Pro Cond Black";
  text-decoration: none;
  letter-spacing: 1px;
}
.logo-link:visited {
  color: var(--text-light);
  text-decoration: none;
}
.logo-link:hover {
  color: var(--text-light);
  text-decoration: none;
}

.lang-panel {
  border: 1px solid white;
}

.lang-button {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  font-family: "FF Good Pro Cond Black";
  font-size: 20px;
  background-color: var(--bg-color);
  outline: none;
}
.lang-button--active {
  -webkit-text-decoration: solid;
          text-decoration: solid;
  background-color: white;
  color: var(--bg-color);
}
.lang-button:hover {
  cursor: pointer;
}

.button-rus {
  display: block;
}
.button-rus--mobile {
  display: none;
}

.button-eng {
  display: block;
}
.button-eng--mobile {
  display: none;
}

.advanced-search-box {
  margin-left: 5px;
  padding: 0 3px;
}

.search-link {
  color: var(--text-light);
}
.search-link:hover {
  color: var(--text-light);
  text-decoration: underline;
}

.user-panel {
  color: var(--text-light);
  margin-left: 15px;
  position: relative;
}
.user-panel #logout-button {
  background-color: inherit !important;
  color: var(--h4-color) !important;
}
.user-panel--userlink {
  color: var(--text-light);
}
.user-panel:hover {
  color: var(--rm-dark);
  text-decoration: underline;
  cursor: pointer;
}
.user-panel--login {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.user-panel--login--form {
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
}
.user-panel--login--form label {
  font-size: 14px;
  color: var(--textcolor);
  margin-bottom: 5px;
  font-weight: 500;
}
.user-panel--login--form input {
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background-color: rgba(120, 120, 120, 0.07);
  color: var(--textcolor);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.user-panel--login--form input:focus {
  outline: none;
  border-color: var(--h4-color);
  box-shadow: 0 0 0 3px rgba(2, 94, 78, 0.15);
}
.user-panel--login--form--button {
  background: var(--h4-color);
  color: var(--text-light);
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.user-panel--login--form--button:hover {
  background: var(--h2-color);
}
.user-panel--login--form--button:active {
  transform: scale(0.98);
}
.user-panel--usermenu {
  min-width: 150px;
  padding: 12px;
  position: absolute;
  top: 40px;
  right: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  color: var(--textcolor);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 8px;
  z-index: 1001;
  gap: 8px;
}
.user-panel--usermenu .textlink {
  color: var(--textcolor);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.2s, color 0.2s;
}
.user-panel--usermenu .textlink:hover {
  background-color: rgba(120, 120, 120, 0.15);
  color: var(--h4-color);
  text-decoration: none;
}
.user-panel--usermenu #logout-button {
  background: var(--h4-color) !important;
  color: var(--text-light) !important;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-weight: 500;
  transition: background-color 0.2s;
}
.user-panel--usermenu #logout-button:hover {
  background: var(--h2-color) !important;
}
.user-panel--usermenu--link {
  background-color: var(--grey2);
  margin: 2px 0;
  padding: 2px;
}

.login-modal-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 30px 40px;
  border-radius: 12px;
  position: relative;
  width: 90%;
  max-width: 400px;
  color: var(--textcolor);
  box-sizing: border-box;
  animation: modalFadeIn 0.3s ease-out;
}

:root[data-theme=light] .login-modal-content {
  --glass-bg: rgba(245, 248, 245, 0.95);
}

:root[data-theme=dark] .login-modal-content {
  --glass-bg: rgba(25, 25, 30, 0.95);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.login-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: 300;
  color: var(--grey4);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.login-modal-close:hover {
  color: var(--h2-color);
}

.login-modal-title {
  font-family: "FFGoodProCond", "Roboto", sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: var(--h2-color);
  margin-bottom: 20px;
  text-transform: uppercase;
  text-align: center;
}

.login-modal-links {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  border-top: 1px solid var(--glass-border);
  padding-top: 15px;
  margin-top: 5px;
}
.login-modal-links .textlink {
  color: var(--h4-color);
  text-decoration: none;
  transition: color 0.2s;
}
.login-modal-links .textlink:hover {
  color: var(--h2-color);
  text-decoration: underline;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background 0.3s;
  color: #f0f0f0; /* default light color for icon */
}

#theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

#theme-icon {
  transition: all 0.5s ease;
}

/* Dark theme */
body.dark #theme-icon {
  transform: rotate(180deg);
  color: #ede1a2; /* moon color  */
}

.google-button {
  padding: 5px;
  background-color: var(--grey4);
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}
.google-button:hover {
  background-color: var(--grey5);
}

.search-panel {
  display: flex;
  flex: 1 1 0;
  justify-content: flex-end;
  align-items: center;
}
.search-panel--input {
  width: 20%;
  border: 1px solid var(--grey2);
  padding-left: 5px;
  padding-right: 5px;
}
.search-panel--button {
  display: none;
}
.search-panel--results {
  background-color: var(--grey1);
  height: -moz-fit-content;
  height: fit-content;
  max-height: 500px;
  overflow-y: auto;
  z-index: 1000;
  position: absolute;
  top: 42px;
  left: auto;
  display: none;
  width: 80%;
  border: 1px double var(--grey4);
  align-items: center;
}
.search-panel--results--item {
  display: flex;
  flex-direction: column;
  padding: 5px;
  border: 1px solid var(--grey4);
  background-color: var(--grey0);
  margin: 2px;
}
.search-panel--results--item .is-legacy--true {
  color: var(--legacy) !important;
}
.search-panel--results--item .is-legacy--true a {
  color: var(--legacy);
}
.search-panel--results--item--header {
  display: flex;
  padding: 3px;
  font-weight: bold;
  border-bottom: 2px solid var(--grey4);
  background-color: var(--grey1);
  font-size: 20px;
}
.search-panel--results--item--header a {
  color: var(--main-color);
  text-decoration: none;
}
.search-panel--results--item--header a:hover {
  text-decoration: underline;
}
.search-panel--results--item--header--level {
  display: flex;
  margin-left: auto;
}
.search-panel--results--item--traits {
  margin: 5px 0;
  font-size: 16px;
}
.search-panel--results--item--body:hover {
  background-color: var(--grey1);
}
.search-panel--dropdown {
  display: none;
  border: 0;
}
.search-panel--dropdown--results {
  display: none;
  border: 0;
  width: 0;
  height: 0;
}

.search-icon {
  height: 30px;
  width: 30px;
  background-image: url("icons/glass.png");
  background-repeat: no-repeat;
  background-size: contain;
  cursor: pointer;
  border: 2px solid white;
  border-radius: 10px;
  margin-left: 3px;
}

.menu-bgc {
  display: block;
  background-color: var(--grey-bgc);
  flex: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.no-scroll {
  overflow: hidden;
}

.leftmenu {
  position: fixed;
  display: block;
  min-width: 272px;
  min-height: 90%;
  height: 97%;
  height: -webkit-fill-available;
  top: 45px;
  background: var(--glass-bg);
  border-right: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.leftmenu__footer {
  display: flex;
}
.leftmenu--active {
  display: block;
  z-index: 150;
  overflow-y: auto;
}
.leftmenu {
  overflow-x: hidden;
}
.leftmenu:after {
  display: none;
}
.leftmenu__menu-content {
  margin: 3px;
  width: 255px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.leftmenu__menu-h1 {
  width: 100%;
  justify-content: space-between;
  display: flex;
}
.leftmenu__menu-h1:not(:first-child) {
  margin-top: 10px;
}
.leftmenu__menu-h1-header {
  text-decoration: none;
  text-align: left;
  padding-left: 4px;
  text-transform: uppercase;
}
.leftmenu__menu-h1-open-menu {
  margin: 10px;
}
.leftmenu__inside-h1 {
  width: 240px;
  margin-left: 15px;
}
.leftmenu__menu-h2 {
  width: 240px;
  display: flex;
  justify-content: space-between;
}
.leftmenu__menu-h2-header {
  text-transform: uppercase;
}
.leftmenu__menu-h2-open-menu {
  text-align: left;
}
.leftmenu__inside-h2 {
  width: 225px;
  margin-left: 15px;
}
.leftmenu__menu-h3 {
  width: 225px;
  justify-content: space-between;
  display: flex;
}
.leftmenu__menu-h3-header {
  text-transform: capitalize;
}
.leftmenu__menu-h3-open-menu {
  text-align: left;
}
.leftmenu__inside-h3 {
  width: 210px;
  margin-left: 15px;
}
.leftmenu__menu-h4 {
  width: 210px;
  justify-content: space-between;
  display: flex;
}
.leftmenu__inside-h4 {
  width: 195px;
  margin-left: 15px;
}
.leftmenu__menu-h5 {
  width: 180px;
  justify-content: space-between;
  display: flex;
}
.leftmenu::-webkit-scrollbar {
  width: 10px;
}

.leftmenu--full-hide {
  display: none !important;
}

.leftmenu::-webkit-scrollbar-track {
  width: 1px;
  background-color: var(--grey3);
  border: 4px solid white;
}

.leftmenu::-webkit-scrollbar-thumb {
  background-color: var(--grey2);
  border-radius: 0;
}

.header__full_burger {
  display: block;
  position: relative;
  width: 30px;
  height: 20px;
  left: 10px;
  cursor: pointer;
  z-index: 1111;
}
.header__full_burger--active {
  opacity: 60%;
}

.header__full_burger::before,
.header__full_burger::after {
  content: "";
  background-color: cornsilk;
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
}

.header__full_burger span {
  background-color: cornsilk;
  position: absolute;
  width: 100%;
  left: 0;
  height: 2px;
  top: 9px;
}

.header__full_burger::before {
  top: 0;
}

.header__full_burger::after {
  bottom: 0;
}

.menu-h, .menu-h5, .menu-h4, .menu-h3, .menu-h2 {
  display: flex;
  justify-content: space-between;
  color: var(--menu-text);
  text-decoration: none;
  border-bottom: 1px solid var(--grey3);
}

.menu-header, .menu-h5-header, .menu-h4-header, .menu-h3-header, .menu-h2-header {
  color: var(--menu-text);
  text-decoration: none;
  display: flex;
  justify-self: flex-start;
  max-width: -moz-fit-content;
  max-width: fit-content;
}
.menu-header:hover, .menu-h5-header:hover, .menu-h4-header:hover, .menu-h3-header:hover, .menu-h2-header:hover {
  text-decoration: underline;
  cursor: pointer;
  color: var(--main-color);
}
.menu-header--legacy:hover {
  text-decoration: underline;
  cursor: pointer;
  color: var(--legacy);
}

.open-menu {
  position: relative;
  border: solid 1px var(--grey4);
  border-radius: 50%;
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-self: center;
  margin: auto 10px;
  transition: all 0.5s ease;
}
.open-menu::before, .open-menu::after {
  content: "";
  position: absolute;
  background-color: var(--main-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.open-menu::before {
  width: 2px;
  height: 8px;
}
.open-menu::after {
  width: 8px;
  height: 2px;
}
.open-menu--active {
  transition: all 0.5s ease;
  background-color: var(--main-color);
}
.open-menu--active::before {
  display: none;
}
.open-menu--active::after {
  width: 8px;
  height: 2px;
  background-color: var(--grey1);
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.menu-h1-open-menu {
  border-color: var(--text-light);
}

.menu-h1 {
  min-height: 36px;
  background-color: var(--bg-color);
}
.menu-h1--legacy {
  background-color: var(--legacy-dark);
}

.menu-h1-header {
  margin: auto 2px;
  color: var(--text-light);
  font-family: "FF Good Pro Cond Black";
  font-size: 26px;
}
.menu-h1-header:hover {
  color: var(--text-light);
  text-decoration: underline;
}

.menu-h2 {
  min-height: 32px;
}

.menu-h2-header {
  margin: auto 2px;
  color: var(--h2-header-menu);
  font-family: "FF Good Pro Cond Black";
  font-size: 22px;
}
.menu-h2-header:hover {
  color: var(--main-color);
}
.menu-h2-header--legacy {
  color: var(--legacy);
}
.menu-h2-header--legacy:hover {
  color: var(--legacy);
}

.menu-h3 {
  min-height: 30px;
}
.menu-h3--legacy {
  color: var(--h2-legacy);
}

.menu-h3-header {
  margin: auto 2px;
  font-family: "FF Good Pro Cond Medium";
  font-size: 22px;
}
.menu-h3-header--legacy {
  color: var(--legacy);
}

.menu-h4 {
  min-height: 28px;
}

.menu-h4-header {
  margin: auto 2px;
  font-size: 20px;
  font-family: "FF Good Pro Cond Medium";
}
.menu-h4-header--legacy {
  color: var(--legacy);
}

.menu-h5 {
  min-height: 26px;
}

.menu-h5-header {
  margin: auto 2px;
  font-size: 20px;
  font-family: "FF Good Pro Cond Medium";
}
.menu-h5-header:hover {
  text-decoration: underline;
}

.page {
  display: flex;
  flex-direction: row;
  background-color: var(--grey0);
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .main {
    max-width: 1200px;
  }
}
.main {
  background-color: var(--grey0);
  display: flex;
  margin: 50px 0 0 280px;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  flex-direction: column;
  box-sizing: border-box;
}

.main-no-menu {
  margin-left: 1em !important;
}

.content {
  margin: 15px 20px 0 25px;
  display: flex;
  flex-direction: column;
  min-height: 82.2vh;
  flex: 1 1 auto;
  width: 80%;
  max-width: 70em;
  font-family: "Roboto";
  font-size: 16px;
}

.wayfinder-chapter {
  margin-top: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.wayfinder-chapter--header {
  margin: 3px;
  font-size: 24px;
  color: var(--h2-color);
  font-family: "FF Good Pro Cond Black";
  border-bottom: 1px solid var(--glass-border);
}

.grid-sizer {
  width: 48%;
}

.wayfinder {
  font-size: 14px;
  display: block;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
.wayfinder--category {
  border: 1px solid var(--rm-dark);
  border-radius: 5px;
  padding: 3px;
  width: 48%;
  float: left;
  margin-left: 5px;
  height: auto;
  display: inline-block;
}
.wayfinder--category--header {
  background-color: var(--bg-color);
  padding: 5px;
  font-family: "FF Good Pro Cond News";
  font-weight: 600;
  font-size: 1.3em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--grey5);
  border-radius: 5px;
  letter-spacing: 1px;
}
.wayfinder--category--header a {
  color: var(--rm-light);
}
.wayfinder--category--header a:hover {
  text-decoration: underline;
}
.wayfinder--section {
  color: var(--main-color);
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 5px;
}
.wayfinder--item {
  display: flex;
  padding: 2px 3px;
  font-weight: bold;
  align-items: center;
  border: 1px solid var(--grey3);
  border-radius: 5px;
}
.wayfinder--item--header {
  display: flex;
  padding: 3px;
  text-decoration: underline;
}
.wayfinder--item--header a {
  color: var(--main-color);
}
.wayfinder--submenus {
  display: flex;
  padding: 3px;
  flex-direction: row;
  font-weight: normal;
  flex-wrap: wrap;
  margin-left: 5px;
}
.wayfinder--submenus--subitem {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
}
.wayfinder--submenus--subitem .wayfinder-link {
  padding: 3px;
  margin-left: 5px;
  color: var(--h4-color);
  text-decoration: underline;
}

.rules--index-menu {
  font-family: "FF Good Pro Cond";
  font-size: 1.1em;
}
.rules--level-h1 {
  margin-left: 0em;
  font-weight: bold;
}
.rules--level-h1 .rules--header-row a {
  padding: 1px;
  border-bottom: 1px solid var(--rm-borders);
  font-size: 1.1em;
}
.rules--level-h2 {
  margin-left: 0.5em;
}
.rules--level-h2 .rules--header-row a {
  color: var(--main-color);
  font-size: 1.1em;
  border: 0;
  background-color: var(--grey0);
}
.rules--level-h3 {
  margin-left: 1em;
}
.rules--level-h3 .rules--header-row a {
  color: var(--main-color);
  font-size: 1.1em;
  border: 0;
  background-color: var(--grey0);
}
.rules--level-h4 {
  margin-left: 1.5em;
}
.rules--level-h4 .rules--header-row a {
  color: var(--main-color);
  font-size: 1.1em;
  border: 0;
  background-color: var(--grey0);
}
.rules--index-menu a {
  text-decoration: none;
  color: var(--main-color);
}
.rules--index-menu a:hover {
  text-decoration: underline;
}
.rules--toggle-button {
  cursor: pointer;
  margin-right: 6px;
  display: inline-block;
  width: 1em;
  text-align: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.rules--header-row {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--main-color);
  margin-bottom: 5px;
  width: -moz-fit-content;
  width: fit-content;
}
.rules--children {
  display: none;
  border-left: 2px solid var(--grey4);
  padding-left: 0.5em;
  margin-left: 0.5em;
}
.rules--entry.expanded > .rules--children, .rules--section.expanded > .rules--children {
  display: block;
}
.rules--toggle-all {
  margin-bottom: 10px;
  padding: 5px 10px;
  font-size: 1em;
  cursor: pointer;
  background-color: var(--grey2);
  border: 1px solid var(--grey4);
  border-radius: 5px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.rules--toggle-all:hover {
  background-color: var(--grey3);
}
.rules--toggle-all:focus {
  border: 1px solid var(--grey4) !important;
  outline: none;
}

.class-content {
  display: block;
}

.item-output {
  margin-top: 10px;
  max-width: 98%;
}
.item-output--card {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 10px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.item-output--card--header {
  margin-bottom: 10px;
  color: var(--h2-color);
  border-bottom: 1px solid var(--glass-border);
  font-size: 1.3em;
  font-family: "FF Good Pro Cond Black";
  text-transform: uppercase;
  display: flex;
  background: var(--nested-glass-header-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  align-items: baseline;
  padding: 4px 8px;
  border-radius: 4px;
}
.item-output--card .h2-header {
  color: var(--support-text) !important;
  border-bottom: 2px solid;
  font-size: 1.2em;
  display: flex;
  align-items: baseline;
  margin-bottom: 5px;
  margin-top: 1em;
}
.item-output--body {
  margin-top: 10px;
}
.item-output--body .h3-header {
  font-size: 18px;
}
.item-output--body--legacy .textlink, .item-output--body--legacy .quicklink {
  color: var(--legacy) !important;
}
.item-output--body--legacy .rhombus:hover {
  cursor: pointer;
}
.item-output--body--legacy .rhombus:hover:before {
  background-color: var(--legacy-dark) !important;
  border: 1px solid var(--legacy) !important;
}
.item-output--body--legacy .rhombus {
  border: 2px solid var(--legacy) !important;
}
.item-output--body--legacy .rhombus:after {
  border: 1px solid var(--legacy) !important;
}
.item-output--body--remaster .textlink, .item-output--body--remaster .quicklink {
  color: var(--main-color) !important;
}
.item-output--body--remaster .rhombus:hover {
  cursor: pointer;
}
.item-output--body--remaster .rhombus:hover:before {
  background-color: var(--bg-color) !important;
  border: 1px solid var(--main-color) !important;
}
.item-output--body--remaster .rhombus {
  border: 2px solid var(--main-color) !important;
}
.item-output--body--remaster .rhombus:after {
  border: 1px solid var(--main-color) !important;
}
.item-output--search-header {
  display: flex;
  border-bottom: 2px solid var(--grey4);
  padding: 2px 5px;
  color: black;
  font-family: "Roboto";
  font-weight: bold;
  font-size: 1em;
  background-color: var(--grey2);
}
.item-output--search-header a {
  color: var(--h2-color);
  text-decoration: none;
}
.item-output--search-header a:hover {
  text-decoration: underline;
}
.item-output--search-header-level {
  margin-left: auto;
}
.item-output--search-traits {
  margin-top: 5px;
}

.search-hr {
  margin: 5px 0 10px 0;
}

.item-output hr {
  width: 100%;
  border-top: 1px solid var(--text-color);
  margin: 5px 0;
  overflow: unset;
}

.clickable-menu {
  display: inline-flex;
  justify-content: end;
  flex-grow: 1;
  min-width: -moz-max-content;
  min-width: max-content;
}
.clickable-menu:hover {
  cursor: pointer;
}

.expanded-menu--active {
  font-weight: bold;
  border-bottom: 2px solid var(--grey5);
}
.expanded-menu:hover {
  background-color: var(--grey2);
}

.submenu {
  display: none;
  visibility: hidden;
  height: 0;
  opacity: 0;
}
.submenu--active {
  display: block;
  visibility: visible;
  height: auto;
  transition: all 0.3s linear;
  opacity: 1;
}

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

.h1-header {
  margin-top: 15px;
  margin-bottom: 0;
  display: flex;
  font-family: "FF Good Pro Cond Black";
  font-size: 24px;
  color: var(--main-color);
  text-transform: uppercase;
  align-items: baseline;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.h1-header--legacy {
  color: var(--legacy);
}

.h2-header {
  margin-top: 15px;
  margin-bottom: 0;
  display: flex;
  font-family: "FF Good Pro Cond Black";
  font-size: 22px;
  color: var(--h2-color);
  text-transform: uppercase;
  align-items: baseline;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.h2-header--inline {
  color: rgb(50, 50, 50);
  border-bottom: 1px solid var(--glass-border);
  font-size: 22px;
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.h2-header--legacy {
  color: var(--h2-legacy);
}

.h3-header {
  margin-top: 10px;
  display: flex;
  font-family: "FF Good Pro Cond Black";
  font-size: 20px;
  color: var(--main-color);
  text-transform: uppercase;
  margin-bottom: 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.h3-header--legacy {
  color: var(--legacy);
}
.h3-header--link:hover {
  color: var(--main-color);
  text-decoration: underline;
}

a.header-link {
  color: inherit;
}
a.header-link:hover {
  text-decoration: underline;
}

.force-legacy--main {
  color: var(--legacy) !important;
}
.force-legacy--h2 {
  color: var(--h2-legacy) !important;
}
.force-legacy--h2 .item-type {
  color: var(--h2-legacy) !important;
}
.force-legacy--h4 {
  color: var(--h4-legacy) !important;
}

.force-remaster--main {
  color: var(--main-color) !important;
}
.force-remaster--h2 {
  color: var(--h2-color) !important;
}
.force-remaster--h2 .item-type {
  color: var(--h2-color) !important;
}
.force-remaster--h4 {
  color: var(--h4-color) !important;
}

.footer {
  text-align: right;
  margin-top: 40px;
  margin-bottom: 10px;
}
.footer:before {
  display: flex;
  width: 45%;
  content: "";
  border-top: 1px solid var(--grey3);
  position: absolute;
  right: 2%;
}
.footer__link {
  padding: 5px 10px;
  display: inline-flex;
}
.footer__textlink {
  margin: 0 15px;
}
.footer__telegram {
  display: inline-flex;
  vertical-align: sub;
}
.footer__telegram img {
  height: 1em;
}

.textlink {
  color: var(--h4-color);
  text-decoration: none;
}
.textlink:hover {
  text-decoration: underline;
  color: var(--h4-color);
}

.tabs-panel, .tabs-panel-nolinks {
  display: flex;
  padding: 0;
  margin: 5px 0 5px 0;
  flex-wrap: wrap;
}

.tab-header {
  text-align: center;
}

.tablink {
  flex: 1;
  min-width: 15%;
  max-width: 100%;
  text-align: center;
  padding: 10px 5px;
  background-color: var(--grey2);
  border-top: 5px solid rgb(215, 215, 215);
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border-bottom: 2px solid var(--grey4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
  position: relative;
  overflow: hidden;
  margin: 1px 1px 0 1px;
  z-index: 9;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.tablink:before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--grey6, 0), var(--grey0, 0));
  transition: top 0.3s;
  z-index: -1;
}
.tablink:hover::before {
  top: 0;
}
.tablink--active {
  box-shadow: -5px 0 5px -5px rgba(0, 0, 0, 0.5), 5px 0 5px -5px rgba(0, 0, 0, 0.5);
  border-bottom: 0;
  background-color: var(--grey0);
  font-weight: bold;
  border-top: 5px solid var(--main-color);
}
.tablink--href {
  width: 100%;
  max-width: 100%; /* Subtract the total padding from the width */
  height: calc(100% + 40px); /* Subtract the total padding from the height */
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.tabs-panel--sticky {
  background: var(--tab-bg-gradient, var(--grey2));
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  box-shadow: var(--glass-shadow);
}

.tabs-panel--sticky.is-stuck {
  position: fixed;
  top: 36px; /* sit below your absolute header */
  left: var(--sticky-left, 0);
  width: var(--sticky-width, 100vw);
  z-index: 200; /* ensure above content, below header if header has higher z-index */
  background: var(--glass-header-bg);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  /* compact horizontal scroller */
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  /* optional scrollbar hide; remove if you prefer visible scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tabs-panel--sticky.is-stuck::-webkit-scrollbar {
  display: none;
}

.tabs-panel--sticky.is-stuck .tablink {
  flex: 1;
  min-width: -moz-fit-content;
  min-width: fit-content;
  padding: 3px 5px; /* a bit more compact in stuck mode */
  border-top: 0;
  border-radius: 0;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  border-bottom: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border);
}
.tabs-panel--sticky.is-stuck .tablink--active {
  border-bottom: 4px solid var(--main-color);
}

/* placeholder prevents layout jump when the bar becomes fixed */
.tabs-panel--sticky-placeholder {
  height: 0;
}

@media (max-width: 767px) {
  .tabs-panel--sticky.is-stuck {
    flex-direction: row;
  } /* override your mobile column */
}
.content-table {
  margin: 15px 0;
  min-height: 50px;
  display: flex;
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 6px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 20px;
  z-index: 11;
}
.content-table--menu-list {
  width: 100%;
  color: purple;
}

.content-item {
  display: inline-flex;
  min-height: 2em;
  padding: 0 2px;
  align-items: center;
}
.content-item--source {
  text-align: left;
}
.content-item:not(:last-child):after {
  display: block;
  content: "";
  border-right: 2px solid var(--grey4);
  height: 50%;
  margin-right: 0.5em;
  margin-left: 0.5em;
}

.content-header {
  font-family: "FF Good Pro Cond Black";
  color: var(--main-color);
  font-size: 1.2em;
  text-align: center;
}
.content-header:first-letter {
  text-transform: uppercase;
}
.content-header:hover {
  text-decoration: underline;
  color: var(--main-color);
}
.content-header--legacy {
  color: var(--legacy);
}
.content-header--legacy:hover {
  text-decoration: underline;
  color: var(--legacy);
}
.content-header--remaster {
  color: var(--main-color) !important;
}
.content-header--remaster:hover {
  text-decoration: underline;
  color: var(--main-color);
}

.bordered-box {
  margin-top: 10px;
  margin-bottom: 0.2em;
  padding: 3px 6px;
  border: 1px solid var(--grey4);
  background-color: var(--grey1);
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}
.bordered-box--rightside {
  clear: right;
  float: right;
  display: block;
  max-width: 40%;
}
.bordered-box hr {
  width: 100%;
  color: black;
  margin: 8px 0;
}

.bordered-box--2 {
  margin: 3px 0 0 0;
  border: 1px solid var(--grey4);
}

.box-simple-header {
  font-family: "FF Good Pro Cond Black";
  font-size: 24px;
  margin: 5px 0;
  text-transform: uppercase;
}

.box-simple-text {
  margin: 3px 0;
  font-family: "FF Good Pro Cond News";
  font-size: 20px;
}
.box-simple-text hr {
  width: 100%;
  color: black;
  margin: 8px 0;
}

.box-subheader {
  margin: 10px 0 5px 0;
  font-family: "FF Good Pro Cond News";
  font-weight: bold;
  font-size: 22px;
  border-bottom: black 2px solid;
}

.h4-header {
  font-family: "FF Good Pro Cond Black";
  color: var(--h4-color);
  font-size: 20px;
  margin-top: 15px;
  margin-bottom: 0;
  text-transform: uppercase;
  font-variant: small-caps;
}
.h4-header--legacy {
  color: var(--h4-legacy);
}

.h5-header {
  margin-top: 20px;
  font-family: "FF Good Pro Cond";
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 0;
  text-transform: uppercase;
}

.feature-header {
  display: flex;
  background-color: var(--grey3);
  margin: -5px -3px 0 -3px;
  padding: 3px 5px;
  border-bottom: 2px solid var(--grey4);
  font-family: "FF Good Pro Cond Black";
  font-variant: small-caps;
  font-size: larger;
}

.feature-text {
  padding: 3px;
  margin-top: 3px;
  border: 1px solid var(--grey3);
  background-color: var(--grey1);
}
.feature-text--2 {
  background-color: var(--grey1);
  margin: 0;
  padding: 3px;
}

.box-feature-subheader {
  background-color: var(--grey2);
  padding: 3px;
  font-family: "FF Good Pro Cond News";
  font-weight: bold;
  font-variant: small-caps;
}

.item-box {
  width: 100%;
  background-color: var(--grey0);
  border: 1px solid var(--grey2);
  margin-top: 10px;
  padding: 3px 2px 2px 2px;
  box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0.3), inset 0 0 3px rgba(0, 0, 0, 0.1), 0 3px 5px rgba(0, 0, 0, 0.2);
  color: var(--textcolor);
}
.item-box table tr:first-child td {
  background-color: var(--bg-color);
  color: var(--text-light);
}
.item-box table tr:first-child td--legacy {
  background-color: var(--legacy-dark);
}
.item-box hr {
  width: 100%;
  color: var(--text-color);
  margin: 8px 0;
}

.item-box-in {
  background-color: var(--grey1);
  border: 1px solid var(--grey3);
  padding: 3px 5px;
  align-content: center;
  font-family: Roboto;
}
.item-box-in h2 {
  margin-top: 1em;
  font-family: "FF Good Pro Cond Black";
  text-transform: uppercase;
  font-size: 1.2em;
  color: var(--h2-color);
  font-weight: bold;
}
.item-box-in h3 {
  font-size: 1.1em;
}

.item-box-hr {
  width: 100%;
  border-top: 1px solid var(--grey4);
  margin: 5px 0;
}

.item-feature {
  font-weight: bold;
}

.item-header {
  background-color: var(--grey2);
  display: flex;
  margin: -3px -3px 5px -3px;
  padding: 5px 8px;
  height: -moz-min-content;
  height: min-content;
  border-bottom: 2px solid var(--grey4);
  justify-content: space-between;
  vertical-align: middle;
}

.item-header-name {
  font-family: "FF Good Pro Cond Black";
  font-variant: small-caps;
  font-size: 24px;
  align-self: center;
  letter-spacing: 0.4px;
}
.item-header-name--link {
  color: inherit;
}
.item-header-name--link:hover {
  text-decoration: underline;
  color: inherit;
}

.item-header.action-icon {
  position: absolute;
}

.action-icon {
  font-size: 1.5em;
  font-family: "Pathfinder2eActions";
  margin-left: 0.1em;
  margin-right: 0.1em;
  color: var(--text-color) !important;
}
.action-icon--text {
  font-size: 1.4em;
  vertical-align: top;
}
.action-icon--filter {
  height: 0.6em;
  margin: auto;
  vertical-align: sub;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.item-header-level {
  justify-self: flex-end;
  font-family: "FF Good Pro Cond Black";
  font-size: 24px;
  font-variant: small-caps;
}

.item-type {
  display: inline-flex;
  margin-left: auto;
  padding-left: 0.5em;
  text-align: end;
}

.item-traits {
  margin-bottom: 5px;
  display: flex;
  flex-wrap: wrap;
}
.item-traits--text {
  margin-bottom: 5px;
}
.item-traits--center {
  justify-content: center;
  margin-bottom: 10px;
}

.item-trait {
  background-color: rgb(90, 14, 14);
  color: var(--text-light);
  padding: 1px 3px;
  font-family: "FF Good Pro Cond Medium";
  letter-spacing: 1px;
  text-transform: capitalize;
  font-variant: small-caps;
  text-align: center;
  margin: 0 1px;
  font-size: 1em;
  border: 2px solid var(--traitbgc);
  font-weight: normal;
}
.item-trait:hover {
  text-decoration: underline;
}

.trait-uncommon {
  background-color: #c45500;
}

.trait-rare {
  background-color: #0c1466;
}

.trait-unique {
  background-color: #800080;
}

.trait-alignment {
  background-color: #4287f5;
}

.trait-size {
  background-color: #478c42;
}

.item-trait:hover {
  text-decoration: underline;
}

.item-box-in-header {
  background-color: var(--grey2);
  margin: -3px -3px 3px -3px;
  padding: 2px;
  font-family: "FF Good Pro Cond Medium";
}

.tab-content {
  display: none;
  position: relative;
}
.tab-content--active {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
}

#back-to-top-button {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 40px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 9999; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  color: var(--text-light); /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 10px; /* Some padding */
  border-radius: 5px; /* Rounded corners */
  font-size: 16px; /* Increase font size */
  background-color: var(--grey3); /* Add a dark-grey background on hover */
}
#back-to-top-button:hover {
  background-color: var(--grey4);
}

#report-error-button {
  display: none;
  color: var(--text-light);
  background-color: var(--grey3);
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 9999;
  border: none;
  outline: none;
}
#report-error-button:hover {
  background-color: var(--grey4);
}

.trait-text {
  max-width: 20em;
  z-index: 905;
  display: none;
  padding: 3px;
}
.trait-text--active {
  position: absolute;
  display: block;
  background-color: var(--grey2);
  border: 1px solid var(--grey3);
  margin-left: 10px;
}

.sidebar {
  max-width: 90%;
  background: var(--glass-bg);
  border-left: solid 4px var(--main-color);
  color: var(--main-color);
  font-size: 1em;
  margin: 0.4em -1em 0.4em 1em;
  padding: 10px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-family: "FF Good Pro Cond News";
  font-size: 20px;
}
.sidebar--p, .sidebar-p {
  font-family: "FF Good Pro Cond News";
  font-size: 22px;
}
.sidebar--legacy {
  border-left: solid 4px var(--legacy);
  color: var(--legacy);
}
.sidebar .item-box {
  font-family: "Roboto";
  font-size: medium;
}
.sidebar table.inner {
  font-family: "FF Good Pro Cond News";
}
.sidebar table.inner td {
  font-weight: normal;
}
.sidebar h3 {
  font-size: 20px;
  margin-top: 10px;
}

.chapter-preamble {
  color: var(--main-color);
  border-bottom: 2px solid var(--main-color);
  margin-top: 5px;
  padding-bottom: 0.2em;
}
.chapter-preamble--legacy {
  color: var(--legacy);
  border-bottom: 2px solid var(--legacy);
}

.chapter-content {
  width: 90%;
}

.main-title {
  font-size: 40px;
  font-family: "FF Good Pro Cond Black";
  text-transform: uppercase;
  color: var(--bg-color);
  text-shadow: -1px -2px 0 var(--outline-color), 1px -2px 0 var(--outline-color), -1px 2px 0 var(--outline-color), 1px 2px 0 var(--outline-color);
}

.sidebar-header {
  font-family: "FF Good Pro Cond Black";
  font-size: 1.1em;
  font-weight: bold;
  color: var(--main-color);
  text-transform: uppercase;
  margin: 0.2em auto;
}
.sidebar-header--legacy {
  color: var(--legacy);
}

p {
  margin-bottom: 0.2em;
  font-family: "Roboto";
}

p a {
  color: var(--main-color);
}
p a:hover {
  color: var(--h4-color);
  text-decoration: underline;
}
p a--legacy {
  color: var(--legacy);
}
p a--legacy:hover {
  color: firebrick;
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 0.2em;
  margin-top: 0.2em;
}

.numbered-list {
  list-style-type: decimal !important;
  list-style-position: outside;
  padding-left: 24px;
}

.numbered-list li {
  margin-bottom: 6px;
  line-height: 1.4;
}

ul li, ol li {
  margin-bottom: 0;
  margin-top: 0.2em;
  text-indent: 0;
}

ul li {
  list-style: disc;
}

table {
  border-collapse: collapse;
  color: var(--table-color);
  font-family: "Roboto";
  display: table;
  font-size: 0.9em;
  text-align: left;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
  margin-bottom: 1em;
  table-layout: fixed;
  position: relative;
}

table.nofloat {
  float: none !important;
  background-color: var(--grey0);
  box-shadow: none;
}

table th {
  background-color: var(--bg-color);
  color: var(--text-light);
  padding: 3px 5px;
  font-family: "Roboto";
  font-weight: bold;
  border-bottom: 1px solid var(--grey5);
  text-align: center;
  font-size: 1em;
}
table th--legacy {
  background-color: var(--legacy-dark);
}

table tr:nth-child(even) td {
  background-color: var(--grey1);
}

table td {
  text-align: center;
  background-color: var(--grey0);
  padding: 3px 5px;
  border-bottom: 1px solid var(--table-border);
  font-weight: bold;
  position: sticky;
}
table td.cell-legacy {
  color: var(--legacy) !important;
}
table td.cell-remaster {
  color: var(--h4-color) !important;
}
table td a.item-link--legacy {
  color: var(--legacy);
}
table td a.item-link--legacy:hover {
  text-decoration: underline;
}
table td a.item-link--remaster {
  color: var(--h4-color);
}
table td a.item-link--remaster:hover {
  text-decoration: underline;
}

td .anchor--link {
  color: var(--main-color);
}
td .anchor--link:hover {
  text-decoration: underline;
}

.expanded-row .expanded-cell {
  padding: 10px;
  text-align: left;
  font-weight: normal;
  position: sticky;
  z-index: 1;
  background: var(--grey1);
  left: 0;
}

table.class-proficiencies {
  margin-bottom: 3px;
}
@media screen and (max-width: 768px) {
  table.class-proficiencies {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
table.class-proficiencies td {
  border: 1px solid var(--grey3) !important;
  position: relative;
  overflow: visible; /* Ensure content can overflow */
  text-align: center;
  vertical-align: middle;
}
table.class-proficiencies tr {
  background-color: var(--grey1);
}
table.class-proficiencies .cell-prof {
  background-color: var(--grey0);
}
table.class-proficiencies .cell-prof--rotated-text {
  transform: rotate(-90deg);
  white-space: nowrap;
  overflow: visible;
  position: relative;
  z-index: 1;
}
table.class-proficiencies .cell-prof--trained {
  background-color: var(--prof-trained);
}
table.class-proficiencies .cell-prof--expert {
  background-color: var(--prof-expert);
}
table.class-proficiencies .cell-prof--master {
  background-color: var(--prof-master);
}
table.class-proficiencies .cell-prof--legendary {
  background-color: var(--prof-legendary);
}

.prof-tips {
  font-size: 0.8em;
  line-height: 1.2em;
  margin-bottom: 10px;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin: 20px 0;
}
.classes-grid .class-card {
  background: var(--grey1);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid var(--grey4);
  position: relative;
  overflow: visible;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.classes-grid .class-card:hover {
  transform: translateY(-5px);
  border-color: var(--grey4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.classes-grid .class-card .class-image {
  width: 100%;
  height: 180px;
  margin: 0 auto 10px;
  overflow: hidden;
  background-image: linear-gradient(to bottom, var(--grey2) 0%, var(--grey1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 5px;
}
.classes-grid .class-card .class-image a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.classes-grid .class-card .class-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
  border-radius: 4px;
}
.classes-grid .class-card .class-name {
  font-family: "FF Good Pro Cond", "Arial Narrow", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--h2-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.classes-grid .class-card .class-name a {
  color: var(--h2-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.classes-grid .class-card .class-name a:hover {
  color: var(--main-color);
}
.classes-grid .class-card .class-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-family: "FF Good Pro Cond Medium", sans-serif;
  font-size: 1.2em;
}
.classes-grid .class-card .class-menu .class-menu-item {
  color: var(--h4-color);
  text-decoration: none;
  padding: 2px 4px;
  transition: color 0.3s ease;
}
.classes-grid .class-card .class-menu .class-menu-item:hover {
  color: var(--main-color);
  text-decoration: underline;
}
.classes-grid .class-card .class-menu .class-menu-item:not(:last-child)::after {
  content: "|";
  margin-left: 6px;
  color: var(--grey4);
  font-weight: normal;
}
.classes-grid .class-card .class-attributes {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  font-family: "FF Good Pro Cond Medium", sans-serif;
}
.classes-grid .class-card .class-attributes .class-attribute {
  display: inline-block;
  background: var(--main-color);
  color: var(--text-light);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: default;
}
:root[data-theme=dark] .classes-grid .class-card .class-attributes .class-attribute {
  color: var(--grey0);
}
.classes-grid .class-card .class-attributes .class-hp {
  display: inline-block;
  background: var(--main-color);
  color: var(--text-light);
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 500;
  cursor: default;
}
:root[data-theme=dark] .classes-grid .class-card .class-attributes .class-hp {
  color: var(--grey0);
}
.classes-grid .class-card .class-attributes .ancestry-attribute {
  display: inline-block;
  background: var(--main-color);
  color: var(--text-light);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: default;
}
:root[data-theme=dark] .classes-grid .class-card .class-attributes .ancestry-attribute {
  color: var(--grey0);
}
.classes-grid .class-card .ancestry-abilities {
  margin-bottom: 10px;
  display: flex;
  flex-direction: row;
  gap: 6px;
  justify-content: center;
}
.classes-grid .class-card .ancestry-ability-boost {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #628f64;
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "FF Good Pro Cond Medium";
  cursor: default;
}
.classes-grid .class-card .ancestry-ability-boost .ability-arrow {
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
}
.classes-grid .class-card .ancestry-ability-flaw {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #d37d77;
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "FF Good Pro Cond Medium";
  cursor: default;
}
.classes-grid .class-card .ancestry-ability-flaw .ability-arrow {
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
}
.classes-grid .class-card .class-description {
  color: var(--textcolor);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 10px;
}
.classes-grid .class-card .class-description--source {
  font-size: 14px;
  font-weight: 500;
  color: var(--textcolor);
}
.classes-grid .class-card .class-proficiencies {
  margin-top: auto;
  position: relative;
}
.classes-grid .class-card .class-proficiencies--summary {
  cursor: pointer;
  font-family: "FF Good Pro Cond Medium", sans-serif;
  font-size: 1.1em;
  color: var(--h4-color);
  padding: 6px 8px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: color 0.2s ease;
  background: none;
  border: 1px solid var(--grey4);
  border-radius: 5px;
  background-color: var(--grey0);
  width: 100%;
  max-width: 100%;
  text-align: center;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.classes-grid .class-card .class-proficiencies--summary::before, .classes-grid .class-card .class-proficiencies--summary::after {
  display: none !important;
}
.classes-grid .class-card .class-proficiencies--summary:hover {
  color: var(--main-color);
}
.classes-grid .class-card .class-proficiencies--summary:focus {
  outline: 2px solid var(--h4-color);
  outline-offset: 2px;
  border-radius: 2px;
}
.classes-grid .class-card .class-proficiencies--circle {
  position: relative;
  border: solid 1px var(--grey4);
  border-radius: 50%;
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background-color: transparent;
}
.classes-grid .class-card .class-proficiencies--circle::before, .classes-grid .class-card .class-proficiencies--circle::after {
  content: "";
  position: absolute;
  background-color: var(--main-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}
.classes-grid .class-card .class-proficiencies--circle::before {
  width: 2px;
  height: 8px;
}
.classes-grid .class-card .class-proficiencies--circle::after {
  width: 8px;
  height: 2px;
}
.classes-grid .class-card .class-proficiencies--summary[aria-expanded=true] .classes-grid .class-card .class-proficiencies--circle {
  background-color: var(--main-color);
  border-color: var(--main-color);
}
.classes-grid .class-card .class-proficiencies--summary[aria-expanded=true] .classes-grid .class-card .class-proficiencies--circle::before {
  display: none;
}
.classes-grid .class-card .class-proficiencies--summary[aria-expanded=true] .classes-grid .class-card .class-proficiencies--circle::after {
  width: 8px;
  height: 2px;
  background-color: var(--grey1);
}
.classes-grid .class-card .class-proficiencies--label {
  flex: 1;
}
.classes-grid .class-card .class-proficiencies--content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease-out, margin-top 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  margin-top: 0;
}
.classes-grid .class-card .class-proficiencies--inner {
  padding: 0 10px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--grey0);
}
.classes-grid .class-card .class-proficiencies--inner::-webkit-scrollbar {
  width: 2px;
}
.classes-grid .class-card .class-proficiencies--inner::-webkit-scrollbar-track {
  background: transparent;
}
.classes-grid .class-card .class-proficiencies--inner::-webkit-scrollbar-thumb {
  background: var(--grey3);
  border-radius: 1px;
  opacity: 0.5;
  -webkit-transition: opacity 0.2s ease, background 0.2s ease;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.classes-grid .class-card .class-proficiencies--inner::-webkit-scrollbar-thumb:hover {
  opacity: 0.8;
  background: var(--grey4);
}
.classes-grid .class-card .class-proficiencies--inner {
  scrollbar-width: thin;
  scrollbar-color: var(--grey3) transparent;
}
.classes-grid .class-card .class-proficiencies--item {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--grey3);
  gap: 2px;
}
.classes-grid .class-card .class-proficiencies--item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.classes-grid .class-card .class-proficiencies--label {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--textcolor);
  margin: 0 8px 0 10px;
  text-align: left;
  flex-shrink: 0;
}
.classes-grid .class-card .class-proficiencies--level {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.classes-grid .class-card .class-proficiencies--level.class-proficiencies--trained {
  background-color: var(--prof-trained);
  color: var(--textcolor);
}
.classes-grid .class-card .class-proficiencies--level.class-proficiencies--expert {
  background-color: var(--prof-expert);
  color: var(--textcolor);
}
.classes-grid .class-card .class-proficiencies--level.class-proficiencies--master {
  background-color: var(--prof-master);
  color: var(--textcolor);
}
.classes-grid .class-card .class-proficiencies--level.class-proficiencies--legendary {
  background-color: var(--prof-legendary);
  color: var(--textcolor);
}

.view-panel {
  display: flex;
  gap: 20px;
  margin: 10px 5px;
  font-family: "FF Good Pro Cond Medium", sans-serif;
  font-size: 20px;
  align-items: center;
}

.list-table-change {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.table-expand {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  display: none; /* hidden by default, shown only in table view via JS */
}

/* Optional hover effect */
.list-table-change:hover,
.table-expand:hover {
  text-decoration: underline;
}

.list-wrapper {
  display: none;
  flex-direction: column;
}

.formula-box {
  background-color: var(--grey1);
  border-top: 2px solid var(--main-color);
  border-bottom: 2px solid var(--main-color);
  font-family: "FF Good Pro Cond";
  font-weight: bold;
  display: flex;
  font-size: 20px;
  font-weight: bold;
  padding: 10px 15px;
  text-align: center;
  margin: 10px auto;
  justify-content: center;
}
.formula-box--legacy {
  border-top: 2px solid var(--legacy-dark);
  border-bottom: 2px solid var(--legacy-dark);
}

.anchor {
  margin-top: -5em;
  height: 5em;
  width: 100%;
  display: block;
  z-index: -99999 !important;
  top: -100px;
  visibility: hidden;
}

.viewbox {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 6px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  margin-top: 10px;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}
.viewbox .item-box {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-shadow: none !important;
}
.viewbox .item-header {
  background: var(--nested-glass-header-bg);
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 6px 12px !important;
  margin-bottom: 12px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
.viewbox .item-header-name {
  font-family: "FF Good Pro Cond Black", sans-serif;
  font-size: 1.25em;
  text-transform: uppercase;
  color: var(--h2-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.viewbox .item-header-name a.item-header-name--link {
  color: var(--h2-color) !important;
  text-decoration: none;
}
.viewbox .item-header-name a.item-header-name--link:hover {
  text-decoration: underline;
}
.viewbox .item-header-level {
  font-family: "FF Good Pro Cond Black", sans-serif;
  font-size: 1.15em;
  text-transform: uppercase;
  color: var(--text-color);
}
.viewbox .item-box-in {
  background: transparent !important;
  border: none !important;
  padding: 5px 0 !important;
  margin-top: 10px !important;
  color: var(--text-color);
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
.viewbox .item-traits {
  margin-bottom: 10px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.viewbox .bordered-box {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--text-color);
  margin-bottom: 10px;
  font-size: 0.9em;
}

.item-output .viewbox,
.item-output--card .viewbox,
.expanded-cell .viewbox,
.item-output--body .viewbox {
  background: var(--viewbox-bg) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--grey3) !important;
  border-radius: 6px !important;
  padding: 8px !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}
.item-output .viewbox .item-header,
.item-output--card .viewbox .item-header,
.expanded-cell .viewbox .item-header,
.item-output--body .viewbox .item-header {
  background: transparent !important;
  border-bottom: 2px solid var(--glass-border) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 0 6px 0 !important;
  margin-bottom: 8px !important;
}

.popup-item {
  max-width: 70%;
  margin-right: 20px;
  align-self: center;
  position: absolute;
  z-index: 902;
  display: none;
  max-height: 80%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 15px;
  scrollbar-width: none;
}

.image-slider {
  width: 200px;
  min-height: 100px;
  max-height: -moz-fit-content;
  max-height: fit-content;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--grey2);
  border-radius: 5px;
  padding: 3px;
  margin-left: 5px;
  background-color: var(--grey1);
  float: right;
  z-index: 3;
}
.image-slider .slide {
  display: flex;
  text-align: -webkit-center;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  gap: 5px;
}
.image-slider .slide img.slider-img {
  max-width: 97%;
  max-height: 97%;
  display: flex;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 6px;
  cursor: pointer;
}
.image-slider .slide img.slider-eyeoff {
  width: 20%;
  display: flex;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 6px;
  align-self: center;
}
.image-slider .slide .slider-button-link {
  border: 1px solid var(--grey3);
  background-color: var(--grey1);
  padding: 3px;
  border-radius: 5px;
  font-size: 0.8em;
  line-height: 1.2em;
  margin-bottom: 5px;
}
.image-slider .slide .slider-button-link a {
  color: var(--h4-color);
}
.image-slider .slide .slider-button-link a:hover {
  text-decoration: underline;
}
.image-slider .slide .description {
  margin-top: 5px;
  font-size: 0.8em;
  line-height: 1.2em;
}
.image-slider .slide .controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  position: absolute;
  justify-self: center;
  align-self: center;
  bottom: 5px;
}
.image-slider .slide .controls .nav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
}
.image-slider .slide .controls .nav:hover {
  background: rgba(0, 0, 0, 0.85);
}
.image-slider .slide .controls .nav .icon {
  width: 18px;
  height: 18px;
  stroke: white;
  pointer-events: none;
}
.image-slider .slide .controls .counter {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-light);
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 5px;
}

#popup-close-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background-color: transparent;
  border: none;
  z-index: 905;
}
#popup-close-btn::before, #popup-close-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 5px; /* Adjust thickness */
  background-color: var(--grey2);
  transform-origin: center;
}
#popup-close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
#popup-close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 902;
}

#loading {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 901;
  font-size: 1.5rem;
  color: var(--text-light);
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: black;
  animation: spin 1s ease infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.quicklink-popup {
  background: var(--grey0);
  border: 1px solid var(--glass-border);
  padding: 8px;
  border-radius: 8px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 1000;
  line-height: 1.7em;
  font-size: 14px;
  font-family: "Roboto";
  max-width: 50%;
  min-width: 50%;
  overflow-y: auto;
  max-height: 50%;
}
.quicklink-popup hr {
  margin: 5px 0;
}
.quicklink-popup h1 {
  font-size: 1.3em !important;
}
.quicklink-popup h2, .quicklink-popup h3, .quicklink-popup h4, .quicklink-popup h5 {
  font-size: 1.2em !important;
}
.quicklink-popup {
  margin: 0 5px 5px 5px;
}
.quicklink-popup .quicklink-header {
  font-size: 1.3em;
  color: var(--main-color);
  border-bottom: 1px solid var(--main-color);
  padding: 3px;
  margin-bottom: 5px;
  font-family: "FF Good Pro Cond Black";
  text-transform: uppercase;
  align-items: baseline;
  display: flex;
}
.quicklink-popup .quicklink-header.legacy {
  color: var(--legacy);
}
.quicklink-popup .quicklink-header .type-level-header {
  margin-left: auto;
  align-self: end;
  font-variant: small-caps;
}

#qr-code-support {
  height: 120px;
  width: 120px;
  display: flex;
}

.support-p {
  display: flex;
  margin-left: 10px;
}

.support-a {
  display: flex;
  font-weight: bold;
  font-family: "FF GOOD PRO COND News";
  font-size: 20px;
  letter-spacing: 1px;
}

.index-item {
  margin-left: 0.5em;
  padding-left: 1em;
  border-left: 2px solid var(--grey3);
}

.open-a {
  color: var(--main-color);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
}
.open-a:hover {
  color: var(--h4-color);
  text-decoration: underline;
}

.rhombus {
  display: inline-flex;
  width: 0.6em;
  height: 0.6em;
  margin-left: 0.2em;
  position: relative;
  overflow: hidden;
  transform: rotate(45deg);
  border: 2px solid var(--h4-color);
  box-sizing: border-box;
  margin-right: 0.1em;
  white-space: nowrap;
  text-indent: 0;
}
.rhombus--with-margin {
  margin-right: 5px;
}
.rhombus:hover {
  cursor: pointer;
}
.rhombus:hover:before {
  background-color: var(--h4-color);
  border: 1px solid var(--h4-color);
}
.rhombus:before {
  content: "";
  width: 50%;
  height: 50%;
  background-color: var(--grey1);
  position: absolute;
  top: 25%;
  left: 25%;
  border-radius: 50%;
  box-sizing: border-box;
}
.rhombus:after {
  content: " ";
  width: 100%;
  height: 100%;
  position: absolute;
  box-sizing: border-box;
  z-index: 2;
  border: 1px solid var(--h4-color);
  border-radius: 50%;
}
.rhombus--legacy {
  border: 2px solid var(--legacy);
}
.rhombus--legacy:before {
  background-color: var(--legacy-dark);
  border: 1px solid var(--legacy);
}
.rhombus--legacy:after {
  border: 1px solid var(--legacy);
}

.rhombus-wrap {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.15em;
}

.rhombus + .quicklink {
  white-space: nowrap !important;
  display: inline-block;
}

a.item-link {
  color: var(--main-color);
  font-style: italic;
  text-decoration: underline;
  text-indent: 0;
}
a.item-link--rules, a.item-link--classfeature {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  margin-left: inherit;
}
a.item-link--rules:hover, a.item-link--classfeature:hover {
  text-decoration: underline;
  color: inherit;
}
a.item-link:hover {
  text-decoration: underline;
  color: var(--h4-color);
}
a.item-link--traits-output {
  text-decoration: none;
  color: white;
  font-style: normal;
  margin-left: 1px;
}
a.item-link--traits-output:hover {
  color: var(--text-light);
  text-decoration: underline;
  cursor: pointer;
}
a.item-link--table {
  font-style: normal;
  margin-left: 2px;
  text-decoration: none;
}
a.item-link--sub {
  font-weight: lighter;
}

.content-window {
  display: flex;
  flex-direction: column;
  padding: 0 5px;
  font-size: 16px;
}

.breadcrumbs {
  padding: 2px;
  border-bottom: 1px solid var(--grey4);
  margin: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  font-size: 17px;
  -moz-column-gap: 2px;
       column-gap: 2px;
  font-family: "FF Good Pro Cond Medium";
}
.breadcrumbs--wayfinder {
  margin: 0 2px;
  padding: 3px;
}
.breadcrumbs .breadcrumb {
  color: var(--h4-color);
  margin: 0;
  padding: 2px;
  display: inline;
}
.breadcrumbs .breadcrumb:not(:nth-last-child(-n+2))::after {
  content: " /";
  color: var(--grey6);
  margin-left: 5px;
}
.breadcrumbs .breadcrumb:hover {
  color: var(--main-color);
  text-decoration: underline;
}
.breadcrumbs .breadcrumb:last-child::before {
  content: " — ";
}

.eng-name-header {
  font-family: "FF Good Pro Cond Medium";
  color: var(--h4-color);
  font-size: 20px;
  margin-left: 5px;
}

.legacy-remaster-box {
  border: 1px solid var(--grey4);
  background-color: var(--grey1);
  color: var(--text-color);
  padding: 3px;
  margin-bottom: 5px;
}
.legacy-remaster-box--link {
  color: rgb(50, 50, 50);
}
.legacy-remaster-box--link:hover {
  color: var(--h4-color);
}

.remaster-content .h1-header, .remaster-content .h3-header {
  color: var(--main-color);
}
.remaster-content .h2-header {
  color: var(--h2-color);
}
.remaster-content .h4-header {
  color: var(--h4-color);
}
.remaster-content .item-link {
  color: var(--main-color);
}
.remaster-content .item-link:hover {
  color: var(--h4-color);
}
.remaster-content .item-link--traits-output {
  color: white;
}
.remaster-content .item-link--traits-output:hover {
  color: white;
}
.remaster-content .rhombus:hover {
  cursor: pointer;
}
.remaster-content .rhombus:hover:before {
  background-color: var(--h4-color);
  border: 1px solid var(--h4-color);
}
.remaster-content .rhombus {
  border: 2px solid var(--h4-color);
}
.remaster-content .rhombus:after {
  border: 1px solid var(--h4-color);
}
.remaster-content .tablink--active {
  border-top: 5px solid var(--main-color);
}
.remaster-content .tabs-panel--sticky.is-stuck .tablink--active {
  border-bottom: 4px solid var(--main-color) !important;
}
.remaster-content .content-header {
  color: var(--main-color);
}
.remaster-content .header-link {
  color: var(--h2-color);
}
.remaster-content .textlink {
  color: var(--h4-color);
}
.remaster-content .textlink:hover {
  color: var(--main-color);
}
.remaster-content table th {
  background-color: var(--bg-color) !important;
}
.remaster-content .sidebar-header {
  color: var(--main-color);
}
.remaster-content .sidebar {
  border-left: solid 2px var(--main-color);
}
.remaster-content .item-output--card--header {
  color: var(--h2-color);
}
.remaster-content table.inner tr:first-child td {
  background-color: var(--bg-color);
}
.remaster-content .chapter-preamble {
  color: var(--main-color);
}

.legacy-content .h1-header, .legacy-content .h3-header {
  color: var(--legacy);
}
.legacy-content .h2-header {
  color: var(--h2-legacy);
}
.legacy-content .h4-header {
  color: var(--h4-legacy);
}
.legacy-content .item-link {
  color: var(--legacy);
}
.legacy-content .item-link:hover {
  color: firebrick;
}
.legacy-content .item-link--traits-output {
  color: white;
}
.legacy-content .item-link--traits-output:hover {
  color: white;
}
.legacy-content .rhombus:hover {
  cursor: pointer;
}
.legacy-content .rhombus:hover:before {
  background-color: var(--legacy-dark);
  border: 1px solid var(--legacy);
}
.legacy-content .rhombus {
  border: 2px solid var(--legacy);
}
.legacy-content .rhombus:after {
  border: 1px solid var(--legacy);
}
.legacy-content .tablink--active {
  border-top: 5px solid var(--legacy-dark);
}
.legacy-content .tabs-panel--sticky.is-stuck .tablink--active {
  border-bottom: 4px solid var(--legacy-dark) !important;
}
.legacy-content .content-header {
  color: var(--legacy);
}
.legacy-content .header-link {
  color: var(--h2-legacy);
}
.legacy-content .textlink {
  color: var(--legacy);
}
.legacy-content .textlink:hover {
  color: firebrick;
}
.legacy-content table th {
  background-color: var(--legacy-dark) !important;
}
.legacy-content .sidebar-header {
  color: var(--legacy);
}
.legacy-content .sidebar {
  border-left: solid 2px var(--legacy);
}
.legacy-content .item-output--card--header {
  color: var(--h2-legacy);
}
.legacy-content table.inner tr:first-child td {
  background-color: var(--legacy-dark);
}
.legacy-content .chapter-preamble {
  color: var(--legacy);
}
.legacy-content .class-name a {
  color: var(--h2-legacy) !important;
}

.source-content {
  display: inherit;
}
.source-content .item-link {
  font-style: normal !important;
}

.additional-fields {
  clear: both;
}
.additional-fields summary.additional-fields--header {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-left: 5px;
  font-size: 24px;
  color: var(--h2-color);
  font-family: "FF Good Pro Cond Black";
  text-transform: uppercase;
  display: flex;
  align-items: center;
  margin-top: 15px;
  border-bottom: 1px solid var(--h2-color);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.additional-fields summary.additional-fields--header::-webkit-details-marker {
  display: none;
}
.additional-fields summary.additional-fields--header::before {
  content: "";
  left: 0;
  top: 0.3em;
  width: 0.7em;
  height: 0.7em;
  margin-right: 10px;
  border: 2px solid var(--h2-color);
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.additional-fields[open] summary.additional-fields--header::before {
  background-color: var(--h2-color);
  border-color: var(--h2-color);
}

.non-print {
  clear: both;
}

.user-edit-suggest-box {
  margin-top: 2em;
  display: flex;
  justify-content: flex-end;
  font-family: "FF Good Pro Cond Medium";
}

.table-wrapper {
  overflow-x: auto !important;
  max-width: 100%;
  z-index: 1;
  position: relative;
}

table.inner {
  display: table;
  float: none !important;
  margin-right: 1.5em;
  border-collapse: collapse;
  overflow-x: auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 6px;
}
table.inner tr:first-child td {
  background-color: var(--bg-color);
  color: var(--text-light);
}
table.inner th:first-child,
table.inner td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}
table.inner--legacy tr:first-child td {
  background-color: var(--legacy-dark);
  color: var(--text-light);
}
table.inner--legacy th {
  background-color: var(--legacy-dark);
}
table.inner.no-head tr:first-child td {
  background-color: inherit;
  color: inherit;
}
table.inner.no-head--legacy tr:first-child td {
  background-color: inherit;
  color: inherit;
}
table.inner.no-head--legacy th {
  background-color: var(--legacy-dark);
}

tfoot tr td {
  font-family: "FF Good Pro Cond News";
  background-color: var(--grey2) !important;
  color: var(--table-text) !important;
  text-align: left;
}
tfoot tr td:first-child {
  position: sticky;
  left: 0;
  background-color: var(--grey2);
  z-index: 2;
}

table.compendium-table td {
  border: 1px solid var(--grey3);
}

.spells-per-day {
  margin-top: 10px;
}

table.need-filters tr:first-child {
  border-left: none;
}
table.need-filters tr:first-child {
  border-right: none;
}
table.need-filters tr.data-hidden {
  display: none;
}
table.need-filters tr.legacy-color .link--popup {
  color: var(--legacy);
}
table.need-filters tr.legacy-color .rhombus:hover {
  cursor: pointer;
}
table.need-filters tr.legacy-color .rhombus:hover:before {
  background-color: var(--legacy-dark);
  border: 1px solid var(--legacy);
}
table.need-filters tr.legacy-color .rhombus {
  border: 2px solid var(--legacy);
}
table.need-filters tr.legacy-color .rhombus:after {
  border: 1px solid var(--legacy);
}
table.need-filters tr.legacy-color .item-link.item-link--equipment {
  color: var(--legacy);
}
table.need-filters tr.legacy-color .item-link--sub {
  color: var(--legacy);
}
table.need-filters tr.legacy-color a.item-link--table {
  color: var(--legacy);
}
table.need-filters tr.remaster-color .link--popup {
  color: var(--main-color) !important;
}
table.need-filters tr.remaster-color .rhombus:hover {
  cursor: pointer;
}
table.need-filters tr.remaster-color .rhombus:hover:before {
  background-color: var(--h4-color) !important;
  border: 1px solid var(--h4-color) !important;
}
table.need-filters tr.remaster-color .rhombus {
  border: 2px solid var(--main-color) !important;
}
table.need-filters tr.remaster-color .rhombus:after {
  border: 1px solid var(--main-color) !important;
}
table.need-filters tr.remaster-color .item-link.item-link--equipment {
  color: var(--main-color) !important;
}
table.need-filters tr.remaster-color .item-link--sub {
  color: var(--main-color) !important;
}
table.need-filters tr.remaster-color a.item-link--table {
  color: var(--main-color) !important;
}

table.need-filters tr:nth-child(odd) td {
  background-color: var(--grey1);
}

table.need-filters tr:nth-child(even) td {
  background-color: var(--grey0);
}

.table--list {
  width: 100%;
  max-width: -moz-max-content;
  max-width: max-content;
  border-collapse: collapse;
  table-layout: auto;
  /* Sticky first column */
}
.table--list th:first-child,
.table--list td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 5em;
}
.table--list td:first-child::after {
  content: "";
  position: absolute;
  top: 50%; /* start from middle */
  transform: translateY(-50%); /* shift up half of 80% to center */
  right: 0;
  width: 1px;
  height: 80%; /* only 80% tall */
  background: var(--grey3);
  z-index: 2;
  pointer-events: none;
}
.table--list thead th:first-child {
  z-index: 3;
  background-color: var(--bg-color);
}
.table--list--link {
  color: black;
}
.table--list--link:hover {
  color: var(--main-color);
  text-decoration: underline;
}
.table--list th {
  max-width: -moz-min-content;
  max-width: min-content;
  background-color: var(--bg-color);
}
.table--list--header {
  min-width: -moz-max-content;
  min-width: max-content;
}
.table--list td {
  min-width: 1em !important;
}

th.filter-cell {
  display: table-cell;
  vertical-align: top;
}

.sort-button, .filter-button {
  display: inline;
  padding: 0 2px;
  background-color: transparent;
}
.sort-button--icon, .filter-button--icon {
  width: 0.8em;
  height: 1.2em;
  vertical-align: sub;
}

.trait--filter {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
}

.traits-filter {
  width: 80%;
  display: inline-flex;
  align-items: flex-start;
}

.trait-close-btn {
  font-size: 1em;
  background-color: transparent;
  color: var(--grey2);
  position: relative;
  cursor: pointer;
  margin-left: 10px;
}

.trait-close-btn::after {
  content: attr(close-btn-txt);
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.filter-input, .filter-input--traits, .filter-input--range {
  width: 80%;
  display: inline-flex;
  height: 1.4em;
  border: 2px solid var(--grey2);
  border-radius: 5px;
}

.action-filter {
  display: inline-flex;
  cursor: pointer;
  background-color: var(--text-light);
  border: 2px solid var(--grey2);
  border-radius: 5px;
  margin-right: 1px;
  padding: 2px;
}
.action-filter--active {
  border: 3px solid var(--traitbgc);
  border-radius: 5px;
  margin-right: 1px;
  padding: 2px;
}

.choice-button {
  font-size: 0.7em;
  color: black;
  cursor: pointer;
  margin: 2px;
  padding: 2px 5px;
  background-color: var(--grey1);
  border: 2px solid var(--grey2);
  border-radius: 5px;
}
.choice-button--active {
  background-color: var(--grey5);
  border: 2px solid white;
}

.table-action-filter-cell {
  display: inline-flex;
}

.cell-traits-output {
  text-align: left;
}
.cell-traits-output--variant {
  text-align: left;
  font-weight: normal;
}

.trait-text {
  display: none;
  position: absolute;
  background-color: var(--grey1);
  border: 1px solid black;
  padding: 10px;
  z-index: 905;
}

.register--google-button {
  max-width: 80%;
  padding: 10px;
}

form.feedback-form {
  margin-top: 20px;
  background-color: var(--grey1);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 80%;
  display: flex;
  flex-direction: column;
}

.feedback-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--support-text);
}

.feedback-textarea,
.feedback-input,
.feedback-select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--grey3);
  border-radius: 3px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: -moz-fit-content;
  min-height: fit-content;
}

.feedback-textarea {
  resize: both;
}

.feedback-button {
  width: 100%;
  padding: 10px;
  background-color: var(--bg-color);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  font-size: 20px;
  cursor: pointer;
  font-weight: bold;
  align-self: center;
}
.feedback-button:hover {
  background-color: var(--grey5);
}
.feedback-button--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.feedback-button--disabled:hover {
  background-color: var(--grey5);
  cursor: not-allowed;
}

.loading {
  cursor: wait;
}

#qr-code-support {
  height: 120px;
  width: 120px;
  display: flex;
}

.support-p {
  display: flex;
  margin-left: 10px;
}

.support-a {
  display: flex;
  font-weight: bold;
  font-family: "FF GOOD PRO COND News";
  font-size: 20px;
  letter-spacing: 1px;
  border: 2px solid var(--main-color);
  border-radius: 5px;
  width: 95%;
  justify-content: center;
}

.groupped-box {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: start;
  width: 100%;
}

h2.group-header {
  color: black;
  width: 100%;
  border-bottom: 1px solid;
  font-size: 26px;
  font-family: "FF Good Pro Cond Black";
  text-transform: uppercase;
  margin-top: 15px;
  margin-bottom: -10px;
}

.group-block {
  display: flex;
  flex-direction: column;
  min-width: 100%;
  padding: 0 10px 10px 10px;
}

.annotation {
  font-size: smaller;
  font-family: "FF Good Pro Cond News";
}

span.in-box-ability {
  display: block;
  padding-left: 1em;
  text-indent: -1em;
  padding-bottom: 0;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 0;
}
span.in-box-ability ul {
  text-indent: 0em;
}

.file-container {
  display: flex;
  flex-direction: column;
  margin-left: 1em;
  gap: 10px;
}
.file-container--item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rm-borders);
  border-radius: 5px;
  padding: 5px;
}
.file-container--item a.download-link {
  color: var(--text-color);
  text-decoration: none;
}
.file-container--item a.download-link:hover {
  text-decoration: underline;
  color: var(--main-color);
}

.user-profile--options {
  background-color: var(--grey1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--grey4);
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
}
.user-profile--options--header {
  font-weight: bold;
  font-size: 1em;
}
.user-profile--options--item {
  margin-top: 5px;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.user-profile--options--name {
  color: var(--menu-text);
  margin-left: 10px;
  width: -moz-fit-content;
  width: fit-content;
}

.user-profile--checkbox {
  display: none;
}

/* Create the switch container */
.user-profile--checkbox + label {
  display: inline-block;
  width: 50px;
  height: 26px;
  background-color: var(--grey3);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

/* Create the slider (toggle circle) */
.user-profile--checkbox + label::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background-color: var(--grey1);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* When the checkbox is checked, change background & move slider */
.user-profile--checkbox:checked + label {
  background-color: var(--h4-color); /* Green when ON */
}

.user-profile--checkbox:checked + label::after {
  transform: translateX(24px); /* Move slider */
}

.archive-form {
  display: flex;
  flex-direction: column;
  min-width: 60%;
}
.archive-form--label {
  display: inline-block;
  font-weight: bold;
  margin-top: 15px;
}
.archive-form--select {
  border: 1px solid var(--grey3);
  background-color: var(--grey1);
  margin-top: 5px;
  padding: 5px;
  border-radius: 3px;
  color: var(--textcolor);
}
.archive-form--input {
  font-family: inherit;
  border: 1px solid var(--grey3);
  background-color: var(--grey1);
  margin-top: 5px;
  border-radius: 3px;
  padding: 5px;
  color: var(--textcolor);
}
.archive-form--textarea {
  font-family: inherit;
  border: 1px solid var(--grey3);
  background-color: var(--grey1);
  margin-top: 5px;
  border-radius: 3px;
  padding: 5px;
  min-height: -moz-fit-content;
  min-height: fit-content;
  color: var(--textcolor);
}

.bookmark-button {
  display: inline-flex;
  padding: 0 2px;
  background-color: transparent;
  margin-right: 10px;
  height: -moz-min-content;
  height: min-content;
  width: -moz-min-content;
  width: min-content;
}
.bookmark-button--icon {
  width: 1em;
  height: 1em;
  font-size: 20px;
  rotate: -90deg;
  transition: transform 0.5s ease-in-out;
}
.bookmark-button--icon:hover {
  animation: swing 1s ease-in-out infinite;
}
@keyframes swing {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-15deg);
  }
}

.create-theme-button {
  font-size: 22px;
  display: inline-flex;
  align-self: center;
  margin-left: auto;
  background-color: var(--grey0);
  color: var(--main-color);
  font-family: "FF Good Pro Cond Medium";
  align-items: center;
}
.create-theme-button:hover {
  text-decoration: underline;
}
.create-theme-button--icon {
  width: 0.8em;
  height: 0.8em;
  margin-right: 3px;
}

/* Popup styling */
.popup-archive-content h2 {
  margin-top: 0;
}

.popup-archive-content button {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background-color: var(--bg-color);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup-archive-content button:hover {
  background-color: var(--grey5);
}

.popup-archive {
  display: none;
  position: fixed;
  z-index: 89;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 60px;
}

.popup-archive-content {
  background-color: var(--grey1);
  margin: 5% auto;
  padding: 20px;
  border: 1px solid var(--grey6);
  min-width: auto;
  width: 40%;
  border-radius: 5px;
  height: -moz-fit-content;
  height: fit-content;
}

.popup-archive-close, .popup-archive-themes-close {
  color: var(--grey4);
  float: right;
  font-size: 28px;
  font-weight: bold;
  align-self: end;
}
.popup-archive-close:hover, .popup-archive-close :focus, .popup-archive-themes-close:hover, .popup-archive-themes-close :focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.add-note-button {
  display: flex;
  margin: 5px;
  font-family: "FF Good Pro Cond Medium";
  color: var(--main-color);
  align-self: flex-start;
  padding: 3px 8px;
  align-items: center;
  border-radius: 2px;
}
.add-note-button--icon {
  width: 1em;
  height: 1em;
  margin: 0 3px 0 0;
}
.add-note-button:hover {
  text-decoration: underline;
}

.theme-form, .note-form {
  margin-top: 10px;
  margin-left: 5px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--grey4);
  align-items: center;
  padding: 0 5px 5px 5px;
  border-radius: 3px;
  background-color: var(--grey2);
}
.theme-form--input, .note-form--input {
  margin-top: 5px;
  display: flex;
  padding-left: 3px;
  border: 1px solid var(--grey3);
  width: 100%;
}
.theme-form--textarea, .note-form--textarea {
  margin-top: 5px;
  display: flex;
  padding-left: 3px;
  border: 1px solid var(--grey3);
  width: 100%;
  overflow: hidden;
}
.theme-form--button, .note-form--button {
  margin-top: 5px;
  background-color: var(--bg-color);
  width: 30%;
  border: 1px solid var(--grey4);
  border-radius: 3px;
  font-family: "Roboto";
  font-weight: bold;
}
.theme-form--button:hover, .note-form--button:hover {
  background-color: var(--grey4);
  border: 1px solid var(--grey5);
}

.theme {
  border: 1px solid var(--grey3);
  padding: 3px 3px 3px 3px;
  margin-bottom: 5px;
  border-radius: 5px;
  background-color: var(--grey1);
  display: flex;
  flex-direction: column;
}
.theme--header {
  display: flex;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--h2-legacy);
  padding: 5px;
  color: var(--text-light);
  font-size: 1.1em;
  width: 100%;
  align-items: baseline;
}
.theme--status {
  display: inline-flex;
  width: 0.7em;
  height: 0.7em;
  border: 1px solid white;
  border-radius: 1em;
  margin-right: 5px;
  margin-left: 3px;
}
.theme--status--active {
  background-color: var(--grey1);
}
.theme--actions {
  margin-right: 5px;
  display: flex;
  justify-content: flex-end;
}
.theme--button {
  padding: 3px;
  margin: 0 5px;
  color: var(--main-color);
  background-color: var(--grey1);
  font-family: "FF Good Pro Cond Medium";
}
.theme--button:hover {
  text-decoration: underline;
}
.theme--details {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
}
.theme--description {
  padding: 2px;
  display: flex;
  flex-direction: column;
}
.theme--notes-container {
  padding-bottom: 5px;
}

.note {
  border: 1px solid var(--grey3);
  padding: 3px;
  margin-top: 5px;
  margin-bottom: 0;
  border-radius: 3px;
  background-color: var(--grey1);
  display: flex;
  flex-direction: column;
}
.note--header {
  font-weight: bold;
  cursor: pointer;
  padding: 3px 0 3px 5px;
  color: var(--h4-color);
  border-bottom: 1px solid var(--grey4);
  background-color: var(--grey0);
}
.note--status {
  display: inline-flex;
  width: 0.7em;
  height: 0.7em;
  border: 1px solid var(--h4-color);
  border-radius: 1em;
  margin-right: 8px;
  margin-left: 3px;
}
.note--status--active {
  background-color: var(--h4-color);
}
.note--actions {
  margin-right: 5px;
  display: flex;
  justify-content: flex-end;
}
.note--button {
  padding: 3px;
  margin: 0 5px;
  color: var(--main-color);
  background-color: var(--grey1);
  font-family: "FF Good Pro Cond Medium";
}
.note--button:hover {
  text-decoration: underline;
}
.note--item-field {
  font-family: "FF Good Pro Cond Medium";
  font-size: 20px;
  display: flex;
  align-items: center;
  color: var(--main-color);
  border-bottom: 1px solid var(--main-color);
}
.note--item-field--level {
  display: flex;
  margin-left: auto;
}
.note--details {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  padding-bottom: 5px;
}
.note--description {
  padding: 2px;
  display: flex;
  flex-direction: column;
}

#spellbooks {
  margin-top: 15px;
}

.spellbook {
  border: 1px solid var(--grey3);
  padding: 3px 3px 3px 3px;
  margin-bottom: 5px;
  border-radius: 5px;
  background-color: var(--grey1);
  display: flex;
  flex-direction: column;
}
.spellbook--header {
  background-color: var(--h2-legacy);
  color: var(--text-light);
  display: flex;
  align-items: center;
  cursor: pointer;
}
.spellbook--title {
  display: flex;
  flex-direction: row;
  padding: 10px 10px 5px 10px;
  font-family: "FF Good Pro Cond Medium";
  font-size: 26px;
  align-items: center;
}
.spellbook--status {
  display: flex;
  width: 1em;
  height: 1em;
  border: 1px solid white;
  border-radius: 1em;
  margin-right: 5px;
  margin-left: 10px;
}
.spellbook--status--active {
  background-color: var(--grey1);
}
.spellbook--body {
  display: none;
}
.spellbook--description {
  display: flex;
  margin-top: 5px;
  padding-left: 10px;
  font-size: 20px;
}
.spellbook--actions {
  margin-right: 5px;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.spellbook--button {
  padding: 3px;
  margin: 0 5px;
  color: var(--main-color);
  background-color: var(--grey1);
  font-family: "FF Good Pro Cond Medium";
  display: inline-flex;
  cursor: pointer;
}
.spellbook--button:hover {
  text-decoration: underline;
}
.spellbook--block {
  border: 1px solid var(--h4-color);
  margin: 10px 5px;
  padding: 5px;
  border-radius: 5px;
  background-color: var(--grey2);
}
.spellbook--block--header {
  font-family: "FF Good Pro Cond Black";
  font-size: 22px;
  padding: 5px;
  background-color: var(--grey1);
  border-bottom: 1px solid var(--grey5);
  color: var(--h4-color);
  display: flex;
  align-items: center;
  cursor: pointer;
}
.spellbook--block--status {
  display: inline-flex;
  width: 0.8em;
  height: 0.8em;
  border: 1px solid var(--h4-color);
  border-radius: 1em;
  margin-right: 5px;
  margin-left: 5px;
}
.spellbook--block--status--active {
  background-color: var(--h4-color);
}
.spellbook--block--spells {
  display: none;
  margin-left: 0.5em;
}

.spellbook-spell {
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid var(--grey5);
  padding: 3px;
}
.spellbook-spell--headershell {
  display: flex;
  width: 90%;
  flex-direction: column;
  background-color: var(--grey1);
  border: 1px solid var(--grey4);
  padding: 2px;
  border-radius: 5px;
}
.spellbook-spell--headershell--inert {
  color: var(--grey3) !important;
  background-color: var(--grey0);
}
.spellbook-spell--header {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--h2-color);
  flex-direction: row;
  align-items: center;
  padding: 2px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  cursor: pointer;
}
.spellbook-spell--status {
  display: inline-flex;
  width: 0.7em;
  height: 0.7em;
  border: 1px solid var(--h2-color);
  border-radius: 1em;
  margin-right: 8px;
  margin-left: 3px;
  min-width: 0.7em;
}
.spellbook-spell--status--active {
  background-color: var(--h2-color);
}
.spellbook-spell--name {
  display: flex;
  font-family: "FF Good Pro Cond Medium";
  font-size: 24px;
  align-items: center;
  margin-right: auto;
}
.spellbook-spell--name--not-active {
  color: var(--grey3);
}
.spellbook-spell--typelevel {
  align-self: end;
}
.spellbook-spell--note {
  text-indent: 1em;
  padding-bottom: 0;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 16px;
}
.spellbook-spell--checked {
  width: 2em;
  height: 2em;
  cursor: pointer;
  position: relative;
  transition: filter 0.3s, transform 0.3s;
  margin: auto;
}
.spellbook-spell--checked--0 {
  display: none;
}
.spellbook-spell--checked--11 {
  filter: hue-rotate(90deg);
}
.spellbook-spell--checked:hover::after {
  content: "Cast a spell";
  position: absolute;
  top: -25px;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--text-light);
  padding: 5px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}
.spellbook-spell--checked--inert {
  filter: grayscale(100%); /* Indicates the spell is ready */
}
.spellbook-spell--body {
  padding: 3px;
  border-radius: 5px;
  background-color: var(--grey1);
  background-color: var(--grey1);
  flex-direction: column;
  display: none;
}
.spellbook-spell--text {
  margin-top: 5px;
  padding: 3px;
}
.spellbook-spell--text hr {
  margin: 5px 0;
}
.spellbook-spell--button {
  padding: 3px;
  margin-top: 5px;
  align-self: end;
  color: var(--main-color);
  font-family: "FF Good Pro Cond Medium";
  display: inline-flex;
  cursor: pointer;
}
.spellbook-spell--button:hover {
  text-decoration: underline;
}

#fold-unfold-all {
  width: 100%;
  border-radius: 5px;
  align-self: center;
  background-color: var(--bg-color);
  padding: 6px;
  color: var(--text-light);
  font-size: 20px;
  font-weight: bold;
}
#fold-unfold-all:hover {
  background-color: var(--grey5);
}

.scriptorium-type-header {
  display: flex;
  color: var(--h2-color);
  font-family: "FF Good Pro Cond Black";
  font-size: 22px;
  margin-top: 15px;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-variant: small-caps;
  border-bottom: 1px solid var(--main-color);
  padding: 3px 5px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  align-items: center;
  flex-wrap: wrap;
}

.scriptorium-note {
  margin-top: 5px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.scriptorium-note summary.summary-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  list-style: none; /* Removes default marker */
}
.scriptorium-note summary.summary-header::before {
  content: "▶"; /* Right arrow */
  display: inline-block;
  margin-right: 5px;
  transition: transform 0.2s ease-in-out;
}
.scriptorium-note[open] summary::before {
  transform: rotate(90deg); /* Rotates when opened */
}

summary.h4-header {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Circle indicator styles */
.scriptorium-open-circle {
  width: 0.8em;
  height: 0.8em;
  border: 2px solid black;
  border-radius: 50%;
  margin-right: 10px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  display: inline-block;
}

.scriptorium-details[open] {
  margin-bottom: 1em;
}

/* Colored circle when open */
.scriptorium-details[open] .scriptorium-open-circle {
  background-color: var(--h2-color); /* Circle filled when open */
  border-color: var(--h2-color); /* Change border color too */
}

/* Default circle for folded */
.scriptorium-details .scriptorium-open-circle {
  background-color: transparent; /* Empty circle when folded */
}

.scriptorium-hide-translated {
  font-size: 12px;
  padding: 3px;
}

.translation-editor {
  font-size: 18px;
  font-family: "Roboto";
  margin: 1em 0;
  overflow-wrap: break-word;
  border-top: 1px solid var(--grey3);
  border-bottom: 1px solid var(--grey3);
  background-color: var(--grey1);
}
.translation-editor--noedit {
  background-color: var(--grey2);
}

.suggest-translation--hr {
  margin: 0;
}

.status-scale-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.status-section {
  height: 40px;
  font-weight: bold;
  color: var(--table-color);
}

.status-0 {
  background-color: var(--grey2);
}

.status-1 {
  background-color: #A6B8A4;
}

.status-2 {
  background-color: #6E8C64;
  color: white;
}

.status-3 {
  background-color: #3C5933;
  color: white;
}

.status-label {
  padding: 3px;
  border-radius: 3px;
}

.status-0--label {
  color: var(--grey3);
}

.status-1--label {
  color: #A6B8A4;
}

.status-2--label {
  color: #6E8C64;
}

.status-3--label {
  color: #3C5933;
}

.all-objects {
  background-color: var(--bg-color);
  color: var(--text-light);
  font-size: 18px;
  vertical-align: middle; /* Center the count vertically */
  font-weight: bold;
}

.status-labels td {
  padding-top: 5px;
  font-size: 14px;
  font-weight: bold;
}

.file-description {
  font-size: smaller;
  font-family: "Roboto";
  margin-left: 2em;
}

.cm-glossary-term {
  background-color: rgba(255, 230, 0, 0.35);
  outline: 1px dashed rgba(155, 120, 0, 0.6);
  outline-offset: 1px;
  cursor: pointer;
}

.cm-glossary-replaced {
  background-color: rgba(0, 200, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(0, 150, 200, 0.35);
}

.cm-tooltip.cm-glossary-tooltip {
  padding: 5px;
  background: var(--grey2);
  border: 1px solid var(--grey3);
  border-radius: 6px;
  font-size: 0.85em;
  cursor: pointer;
}

.cm-tooltip-section {
  padding: 5px;
  background-color: var(--grey1);
  border: 1px solid var(--grey4);
  font-size: 0.9em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

mark.search-highlight, .SEARCH-HIGHLIGHT {
  padding: 0;
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5019607843);
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--text-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.cards-search-item {
  border: 1px solid var(--grey3);
  background-color: var(--grey1);
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  cursor: pointer;
  overflow-y: auto;
  padding: 5px;
}

.cards-checkbox {
  display: inline-block;
}

.card-label {
  display: inline-block;
}

.user-edit-suggestion {
  margin-top: 5px;
  padding: 3px;
  background-color: var(--grey1);
  border: 1px solid var(--grey4);
  font-size: 16px;
}
.user-edit-suggestion--header {
  border-bottom: 2px solid var(--grey3);
  background-color: var(--grey2);
  font-size: 18px;
  padding: 1px 5px;
  font-weight: bold;
  display: flex;
  align-items: center;
}
.user-edit-suggestion--header a {
  color: var(--main-color);
  margin-left: 1em;
}
.user-edit-suggestion--header a:hover {
  text-decoration: underline;
}
.user-edit-suggestion--header .status-0 {
  margin-left: auto;
  color: black;
}
.user-edit-suggestion--header .status-1 {
  margin-left: auto;
  color: green;
}
.user-edit-suggestion--header .status-2 {
  margin-left: auto;
  color: firebrick;
}
.user-edit-suggestion--text {
  border: 1px solid var(--grey4);
  font-size: 16px;
  line-height: 1.4em;
  padding: 3px;
  margin: 2px;
  background-color: var(--grey0);
}
.user-edit-suggestion--text pre {
  background: var(--grey1);
  padding: 12px;
  font-family: "Roboto";
  white-space: pre-wrap;
  border-radius: 6px;
  border: 1px solid var(--grey2);
  overflow-x: auto;
}
.user-edit-suggestion--text ins {
  background-color: #c8facc;
  text-decoration: none;
}
.user-edit-suggestion--text del {
  background-color: #fbc4c4;
  text-decoration: line-through;
}
.user-edit-suggestion--buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 5px;
  align-items: center;
}
.user-edit-suggestion--buttons .reject-user-edit-suggestion {
  background-color: firebrick;
  color: var(--text-light);
  font-family: "FF Good Pro Cond Medium";
}
.user-edit-suggestion--buttons .accept-user-edit-suggestion {
  background-color: darkgreen;
  color: var(--text-light);
  font-family: "FF Good Pro Cond Medium";
  padding: 5px 40px;
}
.user-edit-suggestion--buttons .accept-user-edit-suggestion .accepted {
  background-color: blue;
}
.user-edit-suggestion--buttons button {
  border: 1px solid var(--grey3);
  border-radius: 5px;
  padding: 5px;
}
.user-edit-suggestion--buttons button:disabled {
  background-color: var(--grey4);
}
.user-edit-suggestion--buttons input {
  height: 1.5em;
  width: 1.5em;
  border: 2px solid var(--main-color);
}

@media (max-width: 1200px) {
  .main {
    max-width: 1200px;
  }
  .leftmenu {
    display: block;
    width: 13em;
    z-index: 1001;
    position: fixed;
    height: 97%;
    overflow: auto;
  }
}
@media (max-width: 992px) {
  .main {
    max-width: 992px;
    margin-left: 15em;
  }
  .search-panel--results {
    display: none;
    width: 0;
  }
  .search-panel--dropdown--results {
    display: none;
    width: 0;
  }
}
@media (max-width: 767px) {
  .main {
    max-width: none;
    position: relative;
    width: 100%;
    margin-right: 0;
    margin-left: 1em;
  }
  .content {
    margin: 10px 10px 0 5px;
    width: 95%;
    font-size: 16px;
  }
  .grid-sizer,
  .wayfinder--category {
    width: 100% !important;
  }
  .breadcrumbs {
    font-size: 16px;
  }
  .leftmenu__menu-content {
    height: 97%;
  }
  .leftmenu {
    height: 97%;
  }
  .logo,
  .leftmenu {
    display: none;
  }
  .logo--active,
  .leftmenu--active {
    display: block;
    background-color: var(--grey1);
    height: 97% !important;
    max-height: -webkit-fill-available;
  }
  .logo--mobile {
    display: inline-block;
    position: relative;
  }
  .header__full_burger {
    display: none !important;
  }
  .header__burger {
    display: block;
    position: relative;
    width: 30px;
    height: 20px;
    left: 10px;
    cursor: pointer;
    min-width: 20px;
    z-index: 1111;
  }
  .header__burger--active {
    opacity: 60%;
  }
  .header__burger::before,
  .header__burger::after {
    content: "";
    background-color: cornsilk;
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
  }
  .header__burger span {
    background-color: cornsilk;
    position: absolute;
    width: 100%;
    left: 0;
    height: 2px;
    top: 9px;
  }
  .header__burger::before {
    top: 0;
  }
  .header__burger::after {
    bottom: 0;
  }
  .lang-button {
    width: auto;
    padding: 0 5px;
  }
  .button-rus {
    display: none;
  }
  .button-rus--mobile {
    display: block;
  }
  .button-eng {
    display: none;
  }
  .button-eng--mobile {
    display: block;
  }
  .tabs-panel {
    flex-direction: column;
  }
  .sidebar {
    float: none;
  }
  table.inner {
    margin-top: 5px;
    float: none !important;
    overflow: scroll;
    display: table;
    max-width: none !important;
    width: 100%;
  }
  .table--list td:first-child {
    max-width: 10em !important;
  }
  .table--list td:first-child .rhombus + .quicklink {
    white-space: normal !important;
    max-width: 8em;
    min-width: 8em;
  }
  .h1-header {
    font-size: 24px;
  }
  .h2-header {
    font-size: 20px;
  }
  .h3-header {
    font-size: 19px;
  }
  .h4-header {
    font-size: 18px;
  }
  .h5-header {
    font-size: 18px;
  }
  form.feedback-form {
    max-width: 100%;
    width: 100%;
  }
  .user-panel {
    max-width: 20%;
    margin-left: 5px;
  }
  .user-panel--userlink {
    max-width: 20%;
    font-size: min(5vw, 16px);
  }
  .user-panel--login {
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    right: auto;
  }
  .nav-panel {
    margin-right: 0;
  }
  .lang-panel {
    margin-right: 5px;
  }
  .popup-archive-content {
    width: 90%;
  }
  .popup-item {
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    overflow-x: hidden;
    left: 0;
  }
  .image-slider {
    width: 150px;
  }
  .search-panel--input {
    display: none;
  }
  .search-panel--button {
    display: flex;
    background-color: var(--bg-color);
    border: 1px outset white;
    border-radius: 3px;
    padding: 3px;
  }
  .search-panel--button:hover {
    cursor: pointer;
  }
  .search-panel--icon {
    height: 1.3em;
    width: 1.3em;
  }
  .search-panel--results {
    display: none;
    width: 0;
    height: 0;
    border: 0;
  }
  .search-panel--dropdown {
    display: none;
    position: fixed;
    top: 65px;
    left: 50%;
    width: 90%;
    transform: translate(-20%, -20%) scale(0);
    transition: transform 0.5s ease;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .search-panel--dropdown--results {
    background-color: var(--grey1);
    height: -moz-fit-content;
    height: fit-content;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1001;
    position: absolute;
    top: 47px;
    left: auto;
    display: none;
    width: 80%;
    border: 1px double var(--grey4);
    align-items: center;
  }
  .search-panel--dropdown--results--item {
    display: flex;
    flex-direction: column;
    padding: 5px 10px;
    border: 1px solid var(--grey3);
    background-color: var(--grey1);
  }
  .search-panel--dropdown--results--item:hover {
    background-color: var(--grey2);
  }
  .search-panel--dropdown--results--item--header {
    display: flex;
    padding: 3px;
  }
  .search-panel--dropdown--results--item--header--level {
    align-self: end;
  }
  .search-panel--dropdown--input {
    display: flex;
    background-color: var(--grey0);
    border: 1px solid var(--grey3);
    padding: 3px;
    width: 100%;
    color: var(--text-color);
  }
  .search-panel--dropdown--button {
    display: inline-flex;
    margin-left: 3px;
    background-color: var(--bg-color);
    color: var(--text-light);
    padding: 3px;
  }
  .search-panel--dropdown--form {
    display: flex;
    align-items: baseline;
    width: 100%;
  }
  .search-panel--dropdown.show {
    display: flex;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1002;
    background-color: var(--grey1);
    border: 1px solid var(--grey4);
  }
  .advanced-search-box {
    margin-left: 5px;
    padding: 0 3px;
    display: none;
  }
  .footer__link {
    display: block;
    margin: 0 5px;
  }
  #create-spellbook-button {
    text-align: left;
    align-items: center;
    margin-left: 2em;
    font-size: 20px;
  }
  .spellbook-block--spells {
    margin-left: 0.1em;
  }
  .spellbook-spell--headershell {
    margin-right: 0.3em;
  }
  .spellbook-spell--name {
    font-size: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .spellbook-spell--typelevel {
    font-size: smaller;
    align-self: center;
    display: none;
  }
  .spellbook-spell--note {
    font-size: 14px;
  }
  .tabs-panel-nolinks {
    flex-direction: column;
  }
}
@media print {
  .footer, .header, .leftmenu, .tabs-panel, .legacy-remaster-box, .bookmark-button {
    display: none !important;
  }
  #back-to-top-button, #report-error-button {
    display: none !important;
  }
  .page, .content-window, .wrapper {
    background-color: white !important;
  }
  .content, .main {
    background-color: white !important;
    margin-top: 0;
    margin-bottom: 1em;
  }
  .wrapper {
    overflow: visible !important;
  }
  .breadcrumbs {
    display: none !important;
  }
  .on-page-menus {
    display: none !important;
  }
  .content-table--menu {
    display: none !important;
  }
  .image-slider {
    display: none !important;
  }
  * {
    -ms-overflow-style: none !important; /* IE and Edge */
    scrollbar-width: none !important; /* Firefox */
  }
  *::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
  }
  .user-edit-suggest-box {
    display: none;
  }
  .additional-fields {
    display: none !important;
  }
  .additional-fields[open] {
    display: block !important;
  }
  .non-print {
    display: none !important;
  }
  /* Scrollbars */
  .leftmenu::-webkit-scrollbar-track {
    background-color: #2a2a2a;
    border-color: #1e1e1e;
  }
  .leftmenu::-webkit-scrollbar-thumb {
    background-color: #3a3a3a;
  }
  /* Always print in light theme */
  :root {
    --main-color: #002604;
    --grey0: rgb(248,248,248);
    --grey1: rgb(235,235,235);
    --grey2: rgb(222,222,222);
    --grey3: rgb(191,191,191);
    --grey4: rgb(165,165,165);
    --grey5: rgb(127,127,127);
    --grey6: #888;
    --bg-color: #002604;
    --maincolor: #002604;
    --h2-header-menu: #002604;
    --h2-color: #4E1B0E;
    --outline-color: #DAC285;
    --h4-color: #025E4E;
    --menu-text: rgb(30,30,30);
    --rules-bgc: #f6f4f2;
    --traitbgc: #d8c483;
    --legacy: #5e0000;
    --legacy-dark: #5e0000;
    --h2-legacy: #002564;
    --h4-legacy: #a86753;
    --rm-bg: #e8d8b1;
    --rm-borders: #b29e74;
    --rm-light: #f5efe0;
    --rm-dark: #EEE3C8;
    --support-text: #1d1c1c;
    --table-color: #333;
    --table-border: $grey3;
    --text-light: white;
    --textcolor: rgb(30,30,30);
    --prof-trained: #f9eeee;
    --prof-expert: #fdfaea;
    --prof-master: #f2f7f2;
    --prof-legendary: #eaeefd;
  }
  :root[data-theme=dark] {
    --main-color: #002604;
    --grey0: rgb(248,248,248);
    --grey1: rgb(235,235,235);
    --grey2: rgb(222,222,222);
    --grey3: rgb(191,191,191);
    --grey4: rgb(165,165,165);
    --grey5: rgb(127,127,127);
    --grey6: #888;
    --bg-color: #002604;
    --maincolor: #002604;
    --h2-header-menu: #002604;
    --h2-color: #4E1B0E;
    --outline-color: #DAC285;
    --h4-color: #025E4E;
    --menu-text: rgb(30,30,30);
    --rules-bgc: #f6f4f2;
    --traitbgc: #d8c483;
    --legacy: #5e0000;
    --legacy-dark: #5e0000;
    --h2-legacy: #002564;
    --h4-legacy: #a86753;
    --rm-bg: #e8d8b1;
    --rm-borders: #b29e74;
    --rm-light: #f5efe0;
    --rm-dark: #EEE3C8;
    --support-text: #1d1c1c;
    --table-color: #333;
    --table-border: $grey3;
    --text-light: white;
    --textcolor: rgb(30,30,30);
    --prof-trained: #f9eeee;
    --prof-expert: #fdfaea;
    --prof-master: #f2f7f2;
    --prof-legendary: #eaeefd;
  }
}
.pf2-table-container {
  width: 100%;
  margin-bottom: 20px;
}

.settings-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  margin-bottom: 10px;
  border-radius: 8px;
  font-family: inherit;
  margin-top: 10px;
}
.settings-panel .panel-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--glass-bg);
  cursor: pointer;
  font-weight: bold;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid var(--glass-border);
}
.settings-panel .panel-header .icon {
  font-size: 0.8em;
  opacity: 0.6;
}
.settings-panel .panel-content {
  padding: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.column-section {
  min-width: 200px;
}
.column-section h4 {
  margin: 0 0 15px 0;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  border-bottom: 1px solid var(--grey2);
  padding-bottom: 5px;
}
.column-section .toggles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.column-section .toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9em;
  cursor: pointer;
}
.column-section .toggle-label input[type=checkbox] {
  cursor: pointer;
}

.filter-section {
  flex: 1;
  min-width: 300px;
}
.filter-section h4 {
  margin: 0 0 15px 0;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  border-bottom: 1px solid var(--grey2);
  padding-bottom: 5px;
}
.filter-section .filters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-section .filter-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 250px;
  flex: 1 1 0;
}
.filter-section .filter-group label, .filter-section .filter-group .group-label {
  font-size: 0.8em;
  font-weight: bold;
  color: var(----text-color);
}
.filter-section .filter-group input {
  padding: 6px 10px;
  background: var(--grey1);
  border: 1px solid var(--grey3);
  color: inherit;
  border-radius: 4px;
  font-size: 0.9em;
}
.filter-section .filter-group input:focus {
  border-color: var(--maincolor);
  outline: none;
}
.filter-section .range-inputs {
  display: flex;
  gap: 10px;
}
.filter-section .range-inputs input {
  width: 80px;
  flex: 0 0 auto;
}
.filter-section .trait-group {
  flex: 1 1 100%;
}
.filter-section .trait-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}
.filter-section .trait-input-wrapper input {
  flex: 1;
}
.filter-section .exclude-toggle {
  font-size: 0.8em;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
}
.filter-section .traits-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.filter-section .trait-tag {
  background: var(--grey5);
  color: white;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.86em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.filter-section .trait-tag button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  font-size: 1.2em;
  line-height: 1;
}
.filter-section .trait-tag button:hover {
  opacity: 0.8;
}
.filter-section .action-toggles {
  display: flex;
  gap: 5px;
}
.filter-section .action-btn {
  background: var(--grey1);
  border: 1px solid var(--grey3);
  padding: 5px;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0.5;
  transition: all 0.2s;
}
.filter-section .action-btn.active {
  opacity: 1;
  border-color: var(--maincolor, #4a90e2);
  background: rgba(74, 144, 226, 0.1);
}
.filter-section .action-btn:hover {
  background: var(--grey2);
}
.filter-section .action-btn img {
  height: 20px;
}

/* Cell-specific helpers */
.cell-traits-output .trait-tag {
  margin: 2px;
}

.deck-workarea {
  border: 1px solid #002604;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.deck-workarea .feedback-label {
  font-family: "FF Good Pro Cond News";
  font-size: 1.1em;
}
.deck-workarea .deck-input {
  font-family: "Roboto";
}
.deck-workarea .deck-dropdown-popup {
  position: absolute;
  background: rgb(242, 242, 242);
  border: 1px solid rgb(165, 165, 165);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1001;
  width: 90%;
}
.deck-workarea .deck-dropdown-popup .deck-card-search-item {
  font-family: "Roboto";
  padding: 5px;
  cursor: pointer;
  border: 1px solid rgb(217, 217, 217);
  margin: 3px;
  font-size: 1em;
  background-color: #fff;
}

.deck-header {
  color: #025E4E;
  font-size: 1.2em;
  font-family: "FF Good Pro Cond Black";
  text-transform: uppercase;
  margin-top: 5px;
  border-bottom: 1px solid #025E4E;
}

.deck-generate {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.deck-collection-actions {
  display: flex;
  flex-direction: column;
  gap: 1em;
  background: #f9f9f9;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: "Roboto";
}
.deck-collection-actions hr {
  background-color: #002604;
  height: 1px;
  width: 100%;
  margin: 0;
}
.deck-collection-actions button {
  padding: 8px;
  border: none;
  background: #002604;
  color: white;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.1em;
  font-family: "FF Good Pro Cond Medium";
}
.deck-collection-actions button:hover:not(:disabled) {
  opacity: 0.85;
}
.deck-collection-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.deck-collection-actions .deck-collection-add {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.deck-collection-actions .deck-collection-add label {
  font-weight: 500;
  color: #555;
}
.deck-collection-actions .deck-collection-add select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
}
.deck-collection-actions .deck-clear-button button {
  background: #dc3545;
  width: 100%;
}
.deck-collection-actions .deck-clear-button button:hover:not(:disabled) {
  background: #a71d2a;
}

.deck-actions--options {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.deck-actions--options .switcher {
  display: flex;
  justify-content: start;
  gap: 0.5em;
  margin-top: 5px;
}
.deck-actions--options .switcher label {
  position: relative;
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border 0.2s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  font-family: "FF Good Pro Cond News";
}
.deck-actions--options .switcher label input[type=radio] {
  display: none;
}
.deck-actions--options .switcher label:has(input[type=radio]:checked) {
  background: #002604;
  color: white;
}
.deck-actions--options .switcher label:hover {
  background: #f5efe0;
  border: 1px solid #b29e74;
}
.deck-actions--options .cards-checkbox {
  margin-right: 0.4em;
}
.deck-actions--options .feedback-label {
  font-weight: 600;
}
.deck-actions--options .deck-annotation {
  display: block;
  font-size: 1em;
  color: #666;
  margin-bottom: 0.75em;
  font-family: "FF Good Pro Cond News";
}
.deck-actions--options .deck-card-label {
  font-family: "FF Good Pro Cond News";
}
.deck-actions--options .card-generate-btn {
  padding: 10px;
  background: #002604;
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 1.1em;
  font-family: "FF Good Pro Cond Medium";
  cursor: pointer;
}
.deck-actions--options .card-generate-btn:hover {
  opacity: 0.85;
}
.deck-actions--options .card-generate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.deck-actions.inactive {
  opacity: 0.5; /* visually faded */
  pointer-events: none; /* disable clicks/hover */
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none; /* prevent text selection */
}

@media (max-width: 767px) {
  .deck-generate {
    display: flex;
    flex-direction: column;
  }
}
.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* prevents inner scroll */
  height: 100vh;
  width: 100vw;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.deck-collections {
  margin-top: 1em;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.deck-collection {
  background-color: #fff;
  border: 1px solid rgb(127, 127, 127);
  border-radius: 5px;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.deck-collection--header {
  color: #002604;
  font-size: 1.2em;
  font-family: "FF Good Pro Cond Medium";
  margin-top: 5px;
  padding-left: 5px;
}
.deck-collection--buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  font-family: "FF Good Pro Cond Medium";
}
.deck-collection--buttons .edit-btn,
.deck-collection--buttons .remove-btn {
  padding: 5px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 1em;
}
.deck-collection--buttons .edit-btn:hover,
.deck-collection--buttons .remove-btn:hover {
  opacity: 0.85;
}
.deck-collection--buttons .edit-btn {
  background-color: #002604;
  color: white;
}
.deck-collection--buttons .remove-btn {
  background-color: #d9534f;
  color: white;
}
.deck-collection .deck-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background-color: #f5efe0;
  padding: 3px;
  border-bottom: #b29e74 1px solid;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.deck-collection .deck-title-row .clickable-menu {
  display: inline-flex;
  justify-content: end;
  flex-grow: 1;
  min-width: -moz-max-content;
  min-width: max-content;
  margin-right: 10px;
}
.deck-collection .deck-title-row .open-menu {
  position: relative;
  border: solid 1px rgb(165, 165, 165);
  border-radius: 50%;
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-self: center;
  transition: all 0.5s ease;
}
.deck-collection .deck-title-row .open-menu::before, .deck-collection .deck-title-row .open-menu::after {
  content: "";
  position: absolute;
  background-color: #002604;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.deck-collection .deck-title-row .open-menu::before {
  width: 2px;
  height: 8px;
}
.deck-collection .deck-title-row .open-menu::after {
  width: 8px;
  height: 2px;
}
.deck-collection .deck-title-row .open-menu--active {
  transition: all 0.5s ease;
  background-color: #002604;
}
.deck-collection .deck-title-row .open-menu--active::before {
  display: none;
}
.deck-collection .deck-title-row .open-menu--active::after {
  background-color: #fff;
}
.deck-collection .deck-description {
  margin-top: 5px;
  font-size: 1em;
  background-color: #fff;
  color: #444;
  white-space: pre-line;
  border: 1px solid rgb(217, 217, 217);
  padding: 5px;
  border-radius: 5px;
}
.deck-collection input.title,
.deck-collection textarea.description {
  width: 100%;
  padding: 5px;
  margin-bottom: 0.5rem;
  font-size: 1em;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.2s;
  font-family: "Roboto";
}
.deck-collection input.title:focus,
.deck-collection textarea.description:focus {
  border-color: #007acc;
  outline: none;
}
.deck-collection textarea.description {
  resize: vertical;
  min-height: 3.5rem;
}
.deck-collection .deck-collection-items {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.deck-collection .deck-collection-items--type-header {
  font-size: 1em;
  color: #025E4E;
  font-family: "FF Good Pro Cond News";
  font-weight: bold;
  text-transform: uppercase;
  margin-left: 3px;
  border-bottom: 1px solid #025E4E;
}
.deck-collection .deck-collection-items--item-block {
  margin-bottom: 5px;
}
.deck-collection .deck-collection-items--cards {
  padding-left: 10px;
  display: flex;
  margin-top: 10px;
  flex-direction: column;
}
.deck-collection .deck-collection-items--cards span {
  margin: 0;
  border-radius: 3px;
  cursor: grab;
  transition: background 0.2s;
}
.deck-collection .deck-collection-items--cards .deck-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 0.3em;
  background: #fff;
  font-family: "Roboto";
  cursor: grab;
}
.deck-collection .deck-collection-items--cards .deck-card-item:hover {
  background: #f5efe0;
}
.deck-collection .deck-collection-items--cards .deck-card-item .deck-card-name {
  flex-grow: 1;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.deck-collection .deck-collection-items--cards .deck-card-item .deck-card-name a {
  text-decoration: none;
  color: inherit;
  font-style: normal;
}
.deck-collection .deck-collection-items--cards .deck-card-item .deck-card-name a:hover {
  text-decoration: underline;
  color: #025E4E;
}
.deck-collection .deck-collection-items--cards .deck-card-item .legacy-mark {
  font-style: italic;
  color: #999;
  margin-left: 0.4em;
}
.deck-collection .deck-collection-items--cards .deck-card-item .deck-card--remove-btn {
  background: transparent;
  border: none;
  color: red;
  font-size: 1.2em;
  cursor: pointer;
  margin-left: 0.5em;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.builder-main__header {
  margin-bottom: 1em;
}

.builder-main__create-row {
  margin: 1em 0;
}

.builder-main__create-btn {
  padding: 0.6em 1.4em;
  font-size: 1em;
  background-color: var(--maincolor, #002604);
  color: var(--text-light, #fff);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.builder-main__create-btn:hover {
  opacity: 0.85;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.builder-main__empty {
  color: var(--grey5, #888);
  font-style: italic;
  margin-top: 1em;
}

.builder-spoiler {
  margin: 0 0 1.2em 0;
  border: 1px solid var(--grey3, #ccc);
  border-radius: 4px;
  background: var(--grey0, #fff);
}
.builder-spoiler__summary {
  padding: 0.5em 1em;
  cursor: pointer;
  font-weight: bold;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  list-style: none;
}
.builder-spoiler__summary::before {
  content: "▶ ";
  font-size: 0.75em;
}
.builder-spoiler[open] .builder-spoiler__summary::before {
  content: "▼ ";
}
.builder-spoiler__body {
  padding: 0.8em 1.2em;
  border-top: 1px solid var(--grey2, #ddd);
}
.builder-spoiler__body p {
  margin: 0.4em 0;
}

.builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1em;
  margin-top: 0.5em;
}

.builder-card {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  border: 1px solid var(--grey3, #ccc);
  border-radius: 6px;
  padding: 1em 1.2em;
  background: var(--grey0, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.builder-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}
.builder-card__name {
  font-size: 1.15em;
  font-weight: bold;
  color: var(--h4-color, #025E4E);
}
.builder-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  font-size: 0.87em;
  color: var(--grey5, #888);
}
.builder-card__meta-sep {
  opacity: 0.5;
}
.builder-card__actions {
  display: flex;
  gap: 0.6em;
  margin-top: auto;
  padding-top: 0.6em;
}
.builder-card__btn {
  flex: 1;
  text-align: center;
  padding: 0.4em 0.8em;
  font-size: 0.9em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
.builder-card__btn:hover {
  opacity: 0.8;
}

.btn--primary {
  background-color: var(--maincolor, #002604);
  color: var(--text-light, #fff);
  border-color: var(--maincolor, #002604);
}
.btn--primary:hover {
  color: var(--text-light, #fff);
  text-decoration: none;
}

.btn--secondary {
  background-color: var(--grey1, #f0f0f0);
  color: var(--textcolor, #222);
  border-color: var(--grey3, #ccc);
}
.btn--secondary:hover {
  color: var(--textcolor, #222);
  text-decoration: none;
}

.btn--danger {
  background-color: firebrick;
  color: white;
  border-color: firebrick;
}
.btn--danger:hover {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 600px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }
  .builder-card__actions {
    flex-direction: column;
  }
}/*# sourceMappingURL=styles.css.map */