.wd-page {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  isolation: isolate;
  flex-direction: column;
  background: transparent;
  color: var(--wd-ink);
  font-family: var(--wd-font-sans);
  font-size: var(--wd-text-base);
  line-height: var(--wd-leading-normal);
}

.wd-page *, .wd-page *::before, .wd-page *::after {
  box-sizing: border-box;
}

.wd-page :where(button, input, select, textarea) {
  font-family: inherit;
}

.wd-page a {
  color: inherit;
}

.wd-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #11181B var(--wd-initial-bg, url("../images/backgrounds/09-personal-path.webp")) center top/cover no-repeat;
  pointer-events: none;
}

.wd-atmosphere__image {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-color: #1D2B2A;
  background-image: var(--wd-initial-bg, url("../images/backgrounds/09-personal-path.webp"));
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.015);
  transition: opacity 1.8s ease;
}

.wd-atmosphere__image.is-active {
  opacity: 1;
}

.wd-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(17, 24, 27, .22), rgba(29, 43, 42, .40));
  pointer-events: none;
}

.wd-skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
}

.wd-skip:focus {
  top: 16px;
}

.wd-header {
  position: relative;
  z-index: 80;
  isolation: isolate;
  width: 100%;
  margin: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(92, 67, 30, .3);
  background: linear-gradient(90deg, #E4C786 0, #F5F0E6 24%, #EFE4D1 50%, #F5F0E6 76%, #C9A257 100%);
  box-shadow: 0 12px 38px rgba(26, 25, 29, .13);
  backdrop-filter: blur(18px);
}

.wd-header::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 239, 221, .12), rgba(246, 239, 221, .78) 25%, rgba(244, 238, 225, .9) 42% 66%, rgba(246, 239, 221, .64) 80%, rgba(246, 239, 221, .08)), url("../images/localized/leftbg.png") left center/auto 100% no-repeat, url("../images/localized/rightbg.png") right center/auto 100% no-repeat;
  pointer-events: none;
}

.wd-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 18px;
  background: url("../images/localized/lotos.png") center bottom/42px 13px repeat-x;
  opacity: .42;
  mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
  pointer-events: none;
}

.wd-header__inner {
  position: relative;
  isolation: isolate;
  width: min(1500px, calc(100% - 32px));
  max-width: 1500px;
  min-height: 106px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wd-header__inner::before, .wd-header__inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18px;
  bottom: -8px;
  width: 225px;
  background: url("../images/localized/rightbg.png") right bottom/190px 190px no-repeat;
  opacity: .38;
  filter: sepia(.22) saturate(.88) contrast(1.08);
  mask-image: linear-gradient(90deg, transparent 0, #000 24% 88%, transparent);
  pointer-events: none;
}

.wd-header__inner::before {
  left: -72px;
  transform: scaleX(-1);
}

.wd-header__inner::after {
  right: -72px;
}

.wd-brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: #11181B;
  text-decoration: none;
}

.wd-brand__mark {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 9px 16px rgba(20, 30, 32, .14));
}

.wd-brand__copy {
  position: relative;
  display: grid;
  gap: 4px;
  padding-left: 20px;
}

.wd-brand__copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(transparent, var(--wd-teal), transparent);
}

.wd-brand__name {
  color: #1D2B2A;
  font-weight: 700;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1;
  letter-spacing: -.025em;
  text-shadow: 0 1px rgba(43, 179, 177, .06);
}

.wd-brand__tagline {
  color: #6D746F;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.wd-nav__sentinel {
  width: 100%;
  height: 0;
}

.wd-nav {
  position: sticky;
  z-index: 40;
  top: 0;
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .6);
  border-bottom: 1px solid rgba(126, 91, 37, .2);
  background: linear-gradient(90deg, rgba(250, 247, 239, .9), rgba(237, 232, 220, .87), rgba(250, 247, 239, .9));
  box-shadow: inset 0 -1px rgba(185, 142, 64, .08), 0 6px 20px rgba(39, 31, 21, .04);
  backdrop-filter: blur(18px);
  transition: margin-bottom .28s ease, background-color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.wd-nav__inner {
  position: relative;
  width: min(1500px, calc(100% - 32px));
  max-width: 1500px;
  min-height: 55px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: min-height .32s ease, width .32s ease, column-gap .32s ease;
}

.wd-nav__mark {
  width: 0;
  min-width: 0;
  height: 40px;
  margin-right: 0;
  padding: 0 !important;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-3px) scale(.82);
  pointer-events: none;
  transition: width .32s ease, min-width .32s ease, margin .32s ease, opacity .24s ease, transform .34s cubic-bezier(.2, .74, .24, 1);
}

.wd-nav__mark-image {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.wd-nav--stuck {
  border-color: rgba(201, 162, 87, .32);
  background: linear-gradient(90deg, rgba(14, 18, 31, .95), rgba(29, 29, 43, .93), rgba(14, 23, 37, .95));
  box-shadow: inset 0 1px 0 rgba(226, 205, 152, .12), inset 0 -1px 0 rgba(15, 111, 115, .35), 0 12px 34px rgba(6, 10, 23, .25);
}

.wd-nav__slot {
  display: contents;
  min-width: 0;
}

.wd-nav__slot--center,
.wd-nav__slot--right {
  display: none;
}

.wd-nav--stuck .wd-nav__inner {
  width: min(1500px, calc(100% - 48px));
  max-width: 1500px;
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  column-gap: 24px;
}

.wd-nav--stuck .wd-nav__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  animation: wd-nav-slot-in .28s ease both;
}

.wd-nav--stuck .wd-nav__groups {
  justify-self: center;
}

.wd-nav--stuck .wd-nav__mark {
  justify-self: center;
  width: 40px;
  min-width: 40px;
  margin: 0;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.wd-nav__tools {
  display: none;
}

.wd-nav--stuck .wd-nav__tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  animation: wd-nav-slot-in .28s ease .04s both;
}

.wd-nav__tools .wd-nav__tools-search {
  width: clamp(190px, 18vw, 300px);
  margin-left: 0;
  flex: 0 1 300px;
  transition: width .32s ease, flex-basis .32s ease;
}

.wd-nav--stuck .wd-nav__link, .wd-nav--stuck .wd-nav__pm-badge, .wd-nav--stuck .wd-nav__personal-button, .wd-nav--stuck .wd-nav__practice-button, .wd-nav--stuck .wd-nav-group__toggle {
  color: #F5F0E6;
  text-shadow: none;
}

.wd-nav--stuck .wd-nav__link:hover, .wd-nav--stuck .wd-nav__pm-badge:hover, .wd-nav--stuck .wd-nav__personal-button:hover, .wd-nav--stuck .wd-nav__practice-button:hover, .wd-nav--stuck .wd-nav-group__toggle:hover {
  color: #e0c783;
}

.wd-nav__link, .wd-nav__personal-button, .wd-nav__practice-button {
  padding: 8px 10px;
  color: #1D2B2A;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}

.wd-nav__link:hover, .wd-nav__personal-button:hover, .wd-nav__practice-button:hover {
  color: var(--wd-teal);
}

.wd-nav__link {
  position: relative;
}

.wd-nav__link::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 2px;
  left: 10px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--wd-lapis), var(--wd-gold-soft));
  opacity: 0;
  transform: scaleX(.25);
  transition: opacity .2s ease, transform .24s ease;
}

.wd-nav__link[aria-current="page"] {
  color: var(--wd-lapis-dark);
}

.wd-nav__link[aria-current="page"]::after, .wd-nav__link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.wd-nav--stuck .wd-nav__link[aria-current="page"] {
  color: #E4C786;
}

.wd-nav__groups {
  display: flex;
  align-items: stretch;
  gap: 3px;
  transition: gap .32s ease, transform .32s ease;
}

.wd-nav-group {
  display: flex;
  align-items: stretch;
}

.wd-nav-group__toggle {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  padding: 8px 26px 8px 11px;
  align-items: center;
  border: 0;
  background: transparent;
  color: #1D2B2A;
  font-weight: 700;
  font-size: .84rem;
  line-height: 1;
  cursor: default;
  transition: min-height .32s ease, padding .32s ease, color .2s ease, transform .24s ease;
}

.wd-nav-group__toggle>.wd-nav-group__chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .22s ease;
}

.wd-nav-group__toggle::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 2px;
  left: 11px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--wd-lapis), var(--wd-gold-soft));
  opacity: 0;
  transform: scaleX(.25);
  transition: opacity .2s ease, transform .24s ease;
}

.wd-nav-group__toggle:hover, .wd-nav-group__toggle[aria-expanded="true"], .wd-nav-group.has-current .wd-nav-group__toggle {
  color: var(--wd-lapis-dark);
}

.wd-nav-group__toggle[aria-expanded="true"]>.wd-nav-group__chevron {
  transform: translateY(-30%) rotate(225deg);
}

.wd-nav-group__toggle[aria-expanded="true"]::after, .wd-nav-group.has-current .wd-nav-group__toggle::after {
  opacity: 1;
  transform: scaleX(1);
}

.wd-nav--stuck .wd-nav-group__toggle[aria-expanded="true"], .wd-nav--stuck .wd-nav-group.has-current .wd-nav-group__toggle {
  color: #E4C786;
}

.wd-nav:has(.wd-nav-panel:not([hidden])) {
  border-bottom-color: transparent;
  box-shadow: 0 18px 34px rgba(17, 20, 31, .12);
}

.wd-nav-panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  padding: 0;
}

.wd-nav-panel[hidden] {
  display: none;
}

.wd-nav-panel__inner {
  display: grid;
  grid-template-columns: minmax(180px, .58fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(201, 162, 87, .28);
  border-top-color: rgba(126, 91, 37, .16);
  border-radius: 0 0 20px 20px;
  background: linear-gradient(135deg, #FBF7EF, #EFE4D1);
  box-shadow: 0 24px 55px rgba(10, 15, 29, .23);
  backdrop-filter: blur(22px);
}

.wd-nav-panel__inner--compact {
  grid-template-columns: minmax(180px, .58fr) repeat(2, minmax(0, 1fr));
}

.wd-nav-panel__label {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-right: 1px solid rgba(99, 74, 38, .14);
  color: #8C6529;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wd-nav-panel__link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #1D2B2A;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.wd-nav-panel__link:hover, .wd-nav-panel__link[aria-current="page"] {
  transform: translateY(-1px);
  border-color: rgba(43, 179, 177, .22);
  background: rgba(43, 179, 177, .06);
  color: var(--wd-lapis-dark);
}

.wd-nav-panel__title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.wd-nav-panel__desc {
  color: #6D746F;
  font-size: .72rem;
  line-height: 1.35;
}

.wd-nav__search {
  position: relative;
  width: clamp(190px, 16vw, 260px);
  margin-left: auto;
  flex: 0 1 260px;
}

.wd-nav__search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.wd-nav [data-tooltip] {
  position: relative;
}

.wd-nav [data-tooltip]::before {
  content: none;
}

.wd-tooltip {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 180px;
  padding: 6px 9px;
  border: 1px solid rgba(226, 205, 152, .34);
  border-radius: 8px;
  background: rgba(11, 17, 33, .95);
  color: #F5F0E6;
  font-weight: 700;
  font-size: .68rem;
  line-height: 1;
  letter-spacing: .025em;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(5, 10, 24, .24);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  pointer-events: none;
  transition: opacity .16s ease, transform .18s ease, visibility 0s linear .18s;
}

[data-tooltip]:hover>.wd-tooltip, [data-tooltip]:focus-visible>.wd-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: .38s;
}

.wd-nav__practice-button:not(.wd-header__interest) {
  border: 0;
  background: transparent;

  cursor: pointer;
}

.wd-nav__practice-button[aria-expanded="true"] {
  color: var(--wd-teal);
}

.wd-nav__personal {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
}

.wd-nav__personal-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 7px;
  place-items: center;
  border-radius: 50%;

  cursor: pointer;
  transition: transform .2s ease;
}

.wd-nav__personal-button:not(.wd-btn):hover {
  transform: translateY(-1px);
  border-color: rgba(15, 111, 115, .32);
  background: rgba(255, 255, 255, .62);
}

.wd-nav__personal-button[aria-expanded="true"] {
  color: var(--wd-teal);
}

.wd-nav__person-glyph {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wd-nav--stuck .wd-nav__personal-button:not(.wd-btn) {
  border-color: rgba(229, 198, 129, .22);
  background: rgba(255, 255, 255, .07);
}

.wd-nav__pm-badge,
.wd-nav__pm-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px !important;
  border: 1.5px solid rgba(255, 249, 238, .88);
  border-radius: 999px;
  background: linear-gradient(145deg, var(--wd-terracotta-light) 0%, var(--wd-terracotta) 54%, var(--wd-terracotta-dark) 100%);
  color: #fff !important;
  font-size: .62rem !important;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(91, 28, 24, .34);
  transform: none;
}

.wd-nav__pm-badge [data-pm-badge] {
  line-height: 1;
  text-decoration: none;
}

.wd-nav__pm-badge:hover,
.wd-nav__pm-badge:focus-visible {
  color: #fff !important;
  filter: brightness(1.07);
}

.wd-nav--stuck .wd-nav__pm-badge {
  border-color: rgba(228, 191, 99, .58);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .36);
}

.wd-nav__pm-badge[hidden] {
  display: none;
}

.wd-header__menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--wd-line);
  border-radius: 12px;
  background: transparent;
}

.wd-header__menu-line {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--wd-ink);
}

/* Header concept: papyrus frieze + temple navigation panel */
.wd-header {
  z-index: 80;
  overflow: visible;
  border-bottom: 0;
  background-color: #F5F0E6;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .18), rgba(247, 241, 227, .06), rgba(255, 255, 255, .18)), url("../images/wedjat-header/raster/paper-texture-sample.webp");
  background-position: center, center;
  background-size: 100% 100%, 320px auto;
  background-repeat: no-repeat, repeat;
  box-shadow: 0 8px 26px rgba(7, 18, 41, .09);
  backdrop-filter: none;
}

.wd-header::before, .wd-header::after, .wd-header__inner::before, .wd-header__inner::after {
  display: none;
}

.wd-header__frieze {
  width: 100%;
  height: 32px;
  border-bottom: 1px solid rgba(155, 122, 61, .28);
  background-color: #F5F0E6;
  background-image: url("../images/wedjat-header/frieze-sliced/top-frieze-center.webp"), url("../images/wedjat-header/frieze-sliced/top-frieze-left.webp"), url("../images/wedjat-header/frieze-sliced/top-frieze-right.webp"), url("../images/wedjat-header/frieze-sliced/top-frieze-repeat.webp");
  background-position: center center, left center, right center, center center;
  background-size: auto 100%, auto 100%, auto 100%, auto 100%;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat-x;
}

.wd-header__inner {
  width: min(1500px, calc(100% - 40px));
  min-height: 78px;
  padding: 8px 28px 9px;
}

.wd-brand {
  gap: 12px;
}

.wd-brand__mark {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 5px 10px rgba(20, 30, 32, .14));
}

.wd-brand__copy {
  gap: 2px;
  padding-left: 14px;
}

.wd-brand__name {
  color: #1D2B2A;
  font-size: clamp(1.28rem, 1.7vw, 1.78rem);
}

.wd-brand__tagline {
  color: #6D746F;
  font-size: .58rem;
  letter-spacing: .1em;
}

.wd-header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

.wd-header__search {
  width: clamp(210px, 22vw, 330px);
  margin-left: 0;
  flex: 0 1 330px;
}

.wd-header__search svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.wd-header__interest {
  position: relative;
  margin: 0;
  overflow: visible;
  cursor: pointer;
}

.wd-header__interest::before {
  content: none;
}

.wd-header__interest-icon,
.wd-nav__person-glyph--image {
  display: block;
  object-fit: contain;
}

.wd-header__tools .wd-header__interest,
.wd-header__tools .wd-header__personal .wd-nav__personal-button,
.wd-header__tools .wd-theme-toggle {
  display: grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  margin: 0;
  padding: 5px;
  place-items: center;
  border: 1px solid rgba(201, 162, 87, .48);
  border-radius: 50%;
  box-sizing: border-box;
}

.wd-header__tools .wd-header__interest-icon,
.wd-header__tools .wd-nav__person-glyph--image {
  width: 100%;
  height: 100%;
}

.wd-header__tools .wd-theme-toggle__glyph {
  width: 30px;
  height: 30px;
}

.wd-header__tools .wd-header__interest::before {
  content: none;
  display: none;
}

.wd-header__personal .wd-nav__personal-button {
  overflow: visible;
}

.wd-header__personal [data-tooltip] {
  position: relative;
}

.wd-header__age {
  display: inline-grid;
  min-width: 30px;
  height: 23px;
  padding: 0 6px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(113, 85, 45, .28);
  border-radius: 7px;
  background: rgba(255, 252, 244, .52);
  color: #7A5323;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: none;
  cursor: default;
}

.wd-nav {
  min-height: 58px;
  overflow: visible;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.wd-menu-panel {
  position: sticky;
  width: 100%;
  overflow: visible;
}

.wd-menu-panel__inner {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 58px;
  margin: 0;
  overflow: visible;
}

.wd-menu-panel__frieze {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 7px;
  background:
    linear-gradient(180deg,
      rgba(7, 9, 12, .72) 0%,
      rgba(7, 9, 12, .34) 10%,
      rgba(196, 160, 81, .88) 18%,
      rgba(255, 249, 238, .92) 42%,
      rgba(232, 216, 177, .96) 50%,
      rgba(255, 249, 238, .86) 58%,
      rgba(176, 133, 58, .9) 82%,
      rgba(7, 9, 12, .46) 92%,
      rgba(7, 9, 12, .78) 100%),
    linear-gradient(90deg, rgba(255, 249, 238, .04), rgba(255, 249, 238, .22), rgba(255, 249, 238, .04)),
    url("../images/wedjat-header/frieze-sliced/menu-double-rule-repeat.webp");
  background-position: center, center, center;
  background-size: 100% 100%, 100% 100%, auto 100%;
  background-repeat: no-repeat, no-repeat, repeat-x;
  box-shadow: inset 0 1px rgba(255, 255, 255, .14), inset 0 -1px rgba(0, 0, 0, .38);
}

.wd-menu-panel__blue {
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 44px;
  border-top: 1px solid rgba(201, 162, 87, .60);
  border-bottom: 0;
  background: linear-gradient(180deg, #1D2B2A 0%, #11181B 100%);
}

.wd-menu-panel__blue::after {
  content: none;
  display: none;
}

.wd-menu-panel__bottom {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 7px;
  background:
    linear-gradient(180deg,
      rgba(7, 9, 12, .72) 0%,
      rgba(7, 9, 12, .34) 10%,
      rgba(196, 160, 81, .88) 18%,
      rgba(255, 249, 238, .92) 42%,
      rgba(232, 216, 177, .96) 50%,
      rgba(255, 249, 238, .86) 58%,
      rgba(176, 133, 58, .9) 82%,
      rgba(7, 9, 12, .46) 92%,
      rgba(7, 9, 12, .78) 100%),
    linear-gradient(90deg, rgba(255, 249, 238, .04), rgba(255, 249, 238, .22), rgba(255, 249, 238, .04)),
    url("../images/wedjat-header/frieze-sliced/menu-double-rule-repeat.webp");
  background-position: center, center, center;
  background-size: 100% 100%, 100% 100%, auto 100%;
  background-repeat: no-repeat, no-repeat, repeat-x;
  box-shadow: inset 0 1px rgba(255, 255, 255, .14), inset 0 -1px rgba(0, 0, 0, .38);
  pointer-events: none;
}

.wd-menu-panel__inner::before, .wd-menu-panel__inner::after {
  content: none;
  display: none;
}

.wd-nav__inner {
  z-index: 1;
  width: min(1100px, calc(100% - 40px));
  min-height: 44px;
  padding: 0;
  gap: 18px;
}

.wd-nav__groups {
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(18px, 3.4vw, 54px);
}

.wd-nav-group {
  position: static;
  align-items: center;
}

.wd-nav-group+.wd-nav-group::before {
  display: none;
}

.wd-nav-group+.wd-nav-group .wd-nav-group__toggle {
  border-left: 1px solid rgba(201, 162, 87, .35);
}

.wd-nav-group__toggle {
  z-index: 100;
  min-height: 44px;
  padding: 7px 27px 7px 42px;
  color: #F5F0E6;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .28);
}

.wd-nav-group__toggle::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 24px;
  height: 24px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translateY(-50%);
}

.wd-nav-group--main .wd-nav-group__toggle::before {
  background-image: url("../images/wedjat-header/icons/ankh.svg");
}

.wd-nav-group--community .wd-nav-group__toggle::before {
  background-image: url("../images/wedjat-header/icons/community.svg");
}

.wd-nav-group--about .wd-nav-group__toggle::before {
  background-image: url("../images/wedjat-header/icons/wedjat.svg");
}

.wd-nav-group__toggle>.wd-nav-group__chevron {
  right: 8px;
  border-color: #d4b66f;
}

.wd-nav-group__toggle:hover, .wd-nav-group__toggle[aria-expanded="true"], .wd-nav-group.has-current .wd-nav-group__toggle {
  color: #E4C786;
}

.wd-nav-group__toggle::after {
  content: none;
  display: none;
}

.wd-nav__practice-button {
  position: relative;
  min-width: 128px;
  margin-left: auto;
  padding: 12px 12px 12px 42px;
  border-left: 1px solid rgba(201, 162, 87, .45);
  color: #F5F0E6;
  font-weight: 700;
  font-size: .88rem;
  line-height: 1;
  text-align: center;
}

.wd-nav__practice-button::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  background: url("../images/wedjat-header/icons/ankh.svg") center/contain no-repeat;
  transform: translateY(-50%);
}

.wd-header__tools .wd-header__interest::before {
  content: none;
  display: none;
}

.wd-nav--stuck {
  min-height: 59px;
  margin-bottom: 0;
  background: linear-gradient(90deg, rgba(7, 18, 41, .97), rgba(15, 27, 61, .96), rgba(7, 18, 41, .97));
  box-shadow: inset 0 -1px rgba(205, 169, 88, .42), 0 12px 34px rgba(6, 10, 23, .28);
}

.wd-nav--stuck .wd-menu-panel__inner {
  min-height: 59px;
  width: 100%;
}

.wd-nav--stuck .wd-menu-panel__frieze, .wd-nav--stuck .wd-menu-panel__bottom {
  display: block;
}

.wd-nav--stuck .wd-menu-panel__inner::before, .wd-nav--stuck .wd-menu-panel__inner::after {
  display: none;
}

.wd-nav--stuck .wd-menu-panel__blue {
  min-height: 48px;
  border-top: 1px solid rgba(196, 160, 81, .60);
  border-bottom: 0;
  background: transparent;
}

.wd-nav--stuck .wd-nav__inner {
  min-height: 48px;
  padding-top: 0;
  padding-bottom: 0;
}

.wd-nav--stuck .wd-nav__groups {
  width: auto;
  justify-content: center;
  gap: clamp(12px, 1.8vw, 34px);
}

.wd-nav--stuck .wd-nav-group__toggle {
  min-height: 38px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: .86rem;
}

.wd-nav--stuck .wd-nav__tools {
  width: auto;
  justify-content: center;
  gap: 12px;
}

.wd-nav--stuck .wd-nav__tools .wd-nav__tools-search {
  width: clamp(150px, 12vw, 210px);
  flex: 0 1 210px;
}

.wd-nav--stuck .wd-nav__tools .wd-nav__search .wd-btn--icon-search {
  top: 3px;
  right: 3px;
  width: 26px;
  height: 26px;
}

.wd-nav--stuck .wd-nav__tools .wd-header__interest,
.wd-nav--stuck .wd-nav__tools .wd-header__personal .wd-nav__personal-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  margin: 0;
  padding: 5px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(201, 162, 87, .48);
  border-radius: 50%;
  box-sizing: border-box;
}

.wd-nav--stuck .wd-nav__tools .wd-header__interest-icon,
.wd-nav--stuck .wd-nav__tools .wd-nav__person-glyph--image {
  width: 100%;
  height: 100%;
}

.wd-nav--stuck .wd-nav__tools .wd-nav__practice-button::before {
  content: none;
  display: none;
}

@keyframes wd-nav-slot-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wd-nav-panel__inner {
  border-color: rgba(201, 162, 87, .28);
  background: linear-gradient(135deg, #FBF7EF, #EFE4D1);
}

@media (min-width: 761px) {
  .wd-nav-panel {
    right: auto;
    width: min(1100px, calc(100vw - 96px));
  }

  .wd-nav-panel__inner {
    grid-template-columns: minmax(180px, .58fr) repeat(3, minmax(170px, 1fr));
  }

  .wd-nav-panel__inner--compact {
    grid-template-columns: minmax(180px, .58fr) repeat(2, minmax(190px, 1fr));
    width: min(760px, calc(100vw - 96px));
  }

  .wd-nav-panel__link {
    min-width: 0;
  }
}

.wd-nav--stuck .wd-nav-panel__link {
  color: #1D2B2A;
  text-shadow: none;
}

.wd-nav--stuck .wd-nav-panel__link:hover, .wd-nav--stuck .wd-nav-panel__link[aria-current="page"] {
  color: var(--wd-teal-deep);
}

.wd-nav--stuck .wd-nav-panel__link small {
  color: #6D746F;
}

.wd-nav--stuck .wd-nav-panel {
  top: calc(100% + 12px);
}

.wd-nav-panel:not([hidden]) .wd-nav-panel__inner {
  animation: wd-nav-panel-enter .24s cubic-bezier(.2, .72, .25, 1) both;
  transform-origin: 50% 0;
}

@keyframes wd-nav-panel-enter {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(.975);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.wd-shell {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  max-width: none;
  padding: 18px 0 48px;
  flex: 1 0 auto;
  background: none;
  transition: padding-top .28s ease;
}

.wd-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0, rgba(245, 240, 230, .22) 3%, rgba(245, 240, 230, .52) 7%, rgba(245, 240, 230, .78) 13%, rgba(245, 240, 230, .88) 20%, rgba(255, 249, 238, .94) 50%, rgba(245, 240, 230, .88) 80%, rgba(245, 240, 230, .78) 87%, rgba(245, 240, 230, .52) 93%, rgba(245, 240, 230, .22) 97%, transparent 100%);
}

body:has(.wd-nav--stuck) .wd-shell {
  padding-top: 34px;
}

.wd-layout {
  position: relative;
  z-index: 1;
  width: min(1500px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.wd-main {
  min-width: 0;
}

.wd-content {
  width: 100%;
  min-width: 0;
}

/* Static documents */
.wd-static {
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(92, 71, 39, .16);
  border-radius: 30px 8px 30px 8px;
  background: rgba(252, 249, 242, .94);
  box-shadow: 0 28px 80px rgba(33, 27, 20, .16);
  backdrop-filter: blur(18px);
}

.wd-static__header {
  padding: clamp(24px, 4vw, 48px) clamp(24px, 6vw, 72px) 22px;
  border-bottom: 1px solid rgba(92, 71, 39, .14);
  background: linear-gradient(105deg, rgba(25, 55, 105, .08), transparent 45%), linear-gradient(90deg, rgba(206, 166, 78, .09), transparent 72%);
}

.wd-static__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #1c5799;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.wd-static__context {
  max-width: 78ch;
  margin: 0;
  color: #756b5e;
  font-size: clamp(.82rem, 1vw, .94rem);
  line-height: 1.55;
}

/* DLE/static content exception: article bodies are generated rich HTML. */
.wd-static__body {
  padding: clamp(30px, 6vw, 76px);
  color: #29251f;

  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.wd-static__body> :first-child {
  margin-top: 0;
}

.wd-static__body> :last-child {
  margin-bottom: 0;
}

.wd-static__body h1:empty, .wd-static__body h2:empty, .wd-static__body p:empty,
.wd-static__body h1:has(> br:only-child),
.wd-static__body h2:has(> br:only-child),
.wd-static__body p:has(> br:only-child) {
  display: none;
}

.wd-static__body h1 {
  max-width: 20ch;
  margin: 0 0 clamp(28px, 5vw, 54px);
  color: #211c17;
  font-size: clamp(1.8rem, 2.85vw, 2.75rem);
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.wd-static__body h2 {
  margin: clamp(42px, 7vw, 76px) 0 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(75, 62, 43, .15);
  color: #252019;
  font-size: clamp(1.18rem, 1.75vw, 1.55rem);
  line-height: 1.2;
  text-wrap: balance;
}

.wd-static__body h3 {
  margin: 36px 0 14px;
  color: #2a241c;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

.wd-static__body p {
  margin: 0 0 1.05em;
}

.wd-static__body b, .wd-static__body strong {
  color: #1b3764;
  font-weight: 700;
}

.wd-static__body a {
  color: #155aa0;
  text-underline-offset: .18em;
}

.wd-static__body ul, .wd-static__body ol {
  margin: 0 0 1.5em;
  padding-left: 1.35em;
}

.wd-static__body li+li {
  margin-top: .5em;
}

@media (max-width: 767px) {
  .wd-static {
    border-radius: 20px 5px 20px 5px;
  }

  .wd-static__header {
    padding-inline: 22px;
  }

  .wd-static__body {
    padding-inline: 22px;
    line-height: 1.68;
  }

  .wd-static__body h1 {
    font-size: clamp(1.65rem, 7vw, 2.05rem);
  }
}

.wd-intro {
  --wd-hero-parallax: 0px;
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 48vh, 520px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(34px, 6vw, 76px);
  border: 1px solid rgba(222, 192, 131, .3);
  border-radius: 14px;
  background: #11181B;
  box-shadow: 0 24px 70px rgba(10, 11, 25, .32);
}

.wd-intro::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -28% -8% 0;
  background: url("../images/hero-egyptian-sanctuary.webp?v=8") right bottom/cover no-repeat;
  transform: translate3d(0, var(--wd-hero-parallax), 0) scale(1.04);
  transform-origin: right bottom;
  will-change: transform;
}

.wd-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 27, .97) 0%, rgba(17, 24, 27, .88) 38%, rgba(29, 43, 42, .52) 61%, rgba(17, 24, 27, .06) 82%);
  pointer-events: none;
}

.wd-intro__copy {
  position: relative;
  max-width: clamp(720px, 50svw, 1280%);
  color: #FFF9EE;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .24);
}

.wd-intro__eyebrow {
  color: #E4C786;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.wd-intro__title {
  max-width: 49ch;
  margin: 18px 0;
  color: #FFF9EE;
  font-weight: 700;
  font-size: clamp(1.72rem, 2vw, 2.35rem);
  line-height: 1.27;
  /* letter-spacing: -.02em; */
  text-wrap: balance;
}

.wd-intro__lead {
  max-width: 620px;
  color: rgba(255, 249, 238, .82);
  font-size: 1.08rem;
}

.wd-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.wd-feed__heading,
.wd-forum-stream__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--wd-space-4);
  margin: var(--wd-space-8) var(--wd-space-1) var(--wd-space-4);
}

.wd-feed__title {
  font-weight: 700;
  font-size: var(--wd-text-2xl);
  line-height: var(--wd-leading-tight);
}

.wd-forum-stream__title {
  font-weight: 700;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  line-height: var(--wd-leading-tight);
}

.wd-feed__link,
.wd-forum-stream__link,
.wd-link {
  color: var(--wd-teal);
  font-weight: 700;
}

.wd-feed, .wd-forum-stream__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--wd-space-4);
}

.wd-feed__item--hidden {
  display: none !important;
}

.wd-feed__load-row {
  grid-column: 1/-1;
  display: flex;
  justify-content: center;
  padding: 6px 0 8px;
}

.wd-content:has(.iching-page) {
  width: 100%;
}

.wd-content .iching-page {
  min-height: 0;
  background: rgba(248, 244, 233, .62);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  transition: background-color 1.2s ease, border-color 1.2s ease, backdrop-filter 1.2s ease, box-shadow 1.2s ease;
}

.wd-content .iching-page .iching-bg {
  opacity: 0 !important;
  visibility: hidden;
}

.wd-atmosphere.has-oracle-background::after {
  background: linear-gradient(rgba(10, 18, 28, .2), rgba(30, 26, 24, .24));
}

.wd-content .iching-page[data-oracle-bg] {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.wd-content .iching-page::before {
  transition: opacity 1.2s ease;
}

.wd-content .iching-page[data-oracle-bg]::before {
  opacity: 0;
}

.wd-story-card {
  min-width: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(201, 162, 87, .18);
  border-radius: 12px;
  background: rgba(251, 247, 239, .95);
  box-shadow: 0 15px 40px rgba(29, 43, 42, .10);
}

.wd-story-card__media {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #D8CBB3;
}

.wd-story-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.wd-story-card:hover .wd-story-card__image {
  transform: scale(1.025);
}

.wd-story-card__body {
  display: flex;
  min-height: 0;
  padding: 15px;
  flex: 1 1 auto;
  flex-direction: column;
}

.wd-story-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--wd-muted);
  font-size: var(--wd-text-sm);
  letter-spacing: .01em;
}

.wd-story-card__title {
  display: -webkit-box;
  margin: 8px 0 10px;
  overflow: hidden;
  font-weight: 700;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.wd-story-card__title-link {
  text-decoration: none;
}

.wd-story-card__summary {
  display: -webkit-box;
  overflow: hidden;
  color: #58605B;
  font-size: .86rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.wd-story-card__summary img {
  display: none;
}

.wd-story-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--wd-line);
  color: var(--wd-muted);
  font-size: .72rem;
}

.wd-story-card__readmore {
  color: var(--wd-teal);
  font-weight: 700;
}

.wd-forum-stream {
  margin-top: 18px;
}

.wd-forum-stream .wd-forum-stream__heading {
  margin-top: 12px;
}

.wd-forum-stream__lead {
  max-width: 66ch;
  margin: -4px 4px 18px;
  color: #6D746F;
}

.wd-forum-stream__status {
  grid-column: 1/-1;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 16px;
  background: rgba(255, 253, 247, .7);
  color: var(--wd-muted);
  text-align: center;
}

.wd-forum-card {
  min-width: 0;
  min-height: 218px;
  display: flex;
  padding: 15px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(201, 162, 87, .18);
  border-radius: 12px;
  background: rgba(251, 247, 239, .95);
  box-shadow: 0 15px 40px rgba(29, 43, 42, .10);
}

.wd-forum-card::before {
  content: none;
}

.wd-forum-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--wd-muted);
  font-size: var(--wd-text-sm);
  font-weight: 400;
  letter-spacing: .01em;
}

.wd-forum-card__author {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wd-forum-card__title {
  display: -webkit-box;
  margin: 8px 0 10px;
  overflow: hidden;
  font-weight: 700;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.wd-forum-card__title-link {
  text-decoration: none;
}

.wd-forum-card__summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #58605B;
  font-size: .86rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.wd-forum-card__link {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--wd-line);
  color: var(--wd-teal);
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
}

.bottom-nav {
  margin: 30px 0 10px;
  grid-column: span 4;
}

.pagi-nav .navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.pagi-nav .navigation a, .pagi-nav .navigation span {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  padding: 6px 10px;
  place-items: center;
  border: 1px solid rgba(15, 111, 115, .18);
  border-radius: 11px;
  background: rgba(255, 253, 247, .78);
  color: #1D2B2A;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(29, 31, 47, .07);
}

.pagi-nav .navigation a:hover {
  border-color: rgba(15, 111, 115, .42);
  background: #F5F0E6;
  color: var(--wd-lapis);
  transform: translateY(-1px);
}

.pagi-nav .navigation span {
  border-color: rgba(201, 169, 96, .45);
  background: linear-gradient(145deg, #2BB3B1, #0F6F73);
  color: #fff;
}

.wd-widget__popular-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--wd-line);
}

.wd-widget__popular-item__image {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 10px;
}

.wd-widget__popular-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd-widget__popular-item time {
  display: block;
  color: var(--wd-muted);
  font-size: .68rem;
}

.wd-widget__popular-item div>a {
  display: block;
  margin-top: 3px;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.25;
  text-decoration: none;
}

.wd-article {
  --wd-article-reader-size: 18px;
  position: relative;
  padding: clamp(26px, 3.6vw, 54px);
  padding-bottom: max(82px, clamp(26px, 3.6vw, 54px));
  border: 0;
  border-radius: var(--wd-radius);
  background: rgba(251, 247, 239, .96);
  box-shadow: var(--wd-shadow);
}

.wd-article__header {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto 34px;
  padding-bottom: clamp(18px, 2.5vw, 28px);
  border-bottom: 1px solid rgba(140, 95, 40, .16);
  text-align: center;
}

.wd-article-reading {
  position: fixed;
  top: auto;
  right: var(--wd-article-reading-right, 18px);
  bottom: var(--wd-article-reading-bottom, 18px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(201, 162, 87, .34);
  border-radius: 999px;
  background: rgba(255, 249, 238, .82);
  box-shadow: 0 10px 24px rgba(18, 32, 31, .10);
  backdrop-filter: blur(10px);
}

.wd-article-reading.wd-article-reading--bottom {
  position: absolute;
  right: 18px;
  bottom: 18px;
}

.wd-article-reading.wd-article-reading--outside {
  visibility: hidden;
  pointer-events: none;
}

.wd-article-reading__button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 111, 115, .18);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(251, 247, 239, .98), rgba(234, 222, 196, .88));
  color: var(--wd-ink);
  font-weight: 800;
  font-size: .86rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
}

.wd-article-reading__button--reset {
  width: auto;
  min-width: 58px;
  padding: 0 12px;
  font-size: .78rem;
}

.wd-article-reading__button:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 162, 87, .72);
  color: var(--wd-teal-dark);
}

.wd-article-reading__button:focus-visible {
  outline: 2px solid rgba(15, 111, 115, .42);
  outline-offset: 2px;
}

.wd-article-reading__button:disabled {
  cursor: default;
  opacity: .46;
  transform: none;
}

.wd-article__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  color: var(--wd-muted);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.wd-article__title {
  margin: 18px 0;
  font-weight: 700;
  font-size: clamp(1.82rem, 3.2vw, 3.05rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.wd-article__content {
  width: 100%;
  max-width: none;
  margin: auto;
  font-size: var(--wd-article-reader-size);
  line-height: 1.82;
}

.wd-article__lead {
  margin-bottom: 1.45em;
  color: #1D2B2A;
  font-size: var(--wd-article-reader-size);
  font-weight: 600;
  line-height: 1.72;
}

/* DLE generated fullstory body exception: article text can contain unclassed inline tags. */
.wd-article__lead :where(p, li, div, span, strong, b, em, i, blockquote),
.wd-article__body :where(p, li, div, span, strong, b, em, i, blockquote) {
  font-size: inherit;
}

/* DLE generated fullstory body exception: secondary headings can arrive without template classes. */
.wd-article__body :is(h2, h3, h4, h5, h6) {
  margin: 1.9em 0 .72em;
  line-height: 1.22;
  text-wrap: balance;
}

.wd-article__body h2 {
  font-size: clamp(1.25rem, 1.75vw, 1.55rem);
}

.wd-article__body h3 {
  font-size: clamp(1.08rem, 1.35vw, 1.25rem);
}

.wd-article__body :is(h4, h5, h6) {
  font-size: clamp(1rem, 1.1vw, 1.12rem);
}

.wd-article__lead:empty {
  display: none;
}

.wd-article__lead> :first-child, .wd-article__body> :first-child {
  margin-top: 0;
}

.wd-article__lead> :last-child {
  margin-bottom: 0;
}

.wd-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.wd-article__content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--wd-gold);
  background: #F5F0E6;
  font-style: italic;
}

.wd-article__tags, .wd-article__actions {
  width: 100%;
  max-width: none;
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--wd-line);
}

.wd-related {
  margin-top: 18px;
  margin-bottom: var(--wd-space-6);
  padding: 26px;
  border-radius: var(--wd-radius);
  background: rgba(251, 247, 239, .88);
}

.wd-related h2 {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 1.7rem;
}

.wd-sidebar {
  position: fixed;
  z-index: 35;
  top: var(--wd-sidebar-top, 194px);
  right: 0;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - var(--wd-sidebar-top, 194px) - 14px);
  padding: 14px;
  overflow: auto;
  gap: 14px;
  border: 1px solid rgba(222, 192, 131, .28);
  border-right: 0;
  border-radius: 22px 0 0 22px;
  background: linear-gradient(155deg, rgba(246, 240, 226, .96), rgba(232, 222, 204, .94));
  box-shadow: -22px 24px 60px rgba(9, 10, 20, .28);
  backdrop-filter: blur(18px);
  transform: translateX(calc(100% + 24px));
  visibility: hidden;
  transition: top .22s ease, max-height .22s ease, transform .34s cubic-bezier(.22, .8, .24, 1), visibility 0s linear .34s;
  scrollbar-width: thin;
}

.wd-page--sidebar-open .wd-sidebar {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.wd-drawer-toggle--sidebar,
.wd-drawer-toggle--practice {
  position: fixed;
  z-index: 45;
  top: 50%;
  right: 0;
  display: grid;
  width: 32px;
  height: 118px;
  padding: 8px 4px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(226, 205, 152, .55);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(145deg, #E4BF63, #C4A051 54%, #8C5F28);
  color: #211a10;
  box-shadow: inset 0 1px 0 rgba(255, 247, 218, .5), -4px 6px 18px rgba(49, 33, 13, .16);
  cursor: pointer;
  opacity: 1;
  transform: translateY(-50%);
  transition: right .34s cubic-bezier(.22, .8, .24, 1), background-color .25s ease, color .25s ease, opacity .25s ease;
}

.wd-drawer-toggle--sidebar:hover,
.wd-drawer-toggle--practice:hover {
  background: linear-gradient(145deg, #F1D57E, #D5B45F 54%, #9C6B31);
  color: #111E3B;
}

.wd-drawer-toggle--sidebar:focus-visible {
  outline: 3px solid #E4C786;
  outline-offset: 3px;
}

.wd-page--sidebar-open .wd-drawer-toggle--sidebar {
  right: min(360px, calc(100vw - 32px));
}

.wd-page--sidebar-open .wd-drawer-toggle--sidebar,
.wd-page--practice-open .wd-drawer-toggle--practice {
  background: linear-gradient(145deg, #5F8FD3, #2F68B7 52%, #111E3B);
  color: var(--wd-gold-pale);
}

.wd-drawer-toggle__icon {
  grid-area: 1/1;
  align-self: start;
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(10%) sepia(22%) saturate(1015%) hue-rotate(356deg) brightness(91%);
  transition: opacity .2s ease, transform .28s ease;
}

.wd-drawer-toggle__ankh {
  grid-area: 1/1;
  align-self: start;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0;
  transform: translateX(0) scale(.7);
  transition: opacity .2s ease, transform .28s ease;
}

.wd-drawer-toggle__text {
  position: absolute;
  top: 78px;
  left: 50%;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1;
  text-transform: uppercase;
}

.wd-page--sidebar-open .wd-drawer-toggle--sidebar .wd-drawer-toggle__icon, .wd-page--practice-open .wd-drawer-toggle--practice .wd-drawer-toggle__icon {
  opacity: 0;
  transform: scale(.68);
}

.wd-page--sidebar-open .wd-drawer-toggle--sidebar .wd-drawer-toggle__ankh, .wd-page--practice-open .wd-drawer-toggle--practice .wd-drawer-toggle__ankh {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.wd-practice-drawer {
  --wd-practice-surface: rgba(255, 253, 247, .42);
  --wd-practice-surface-strong: rgba(255, 253, 247, .58);
  --wd-practice-line: rgba(92, 67, 30, .15);
  --wd-practice-text: #1D2B2A;
  --wd-practice-muted: #6D746F;
  --wd-practice-title: #7A4F1D;
  position: fixed;
  z-index: 35;
  top: var(--wd-sidebar-top, 194px);
  left: 0;
  display: block;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - var(--wd-sidebar-top, 194px) - 14px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 205, 152, .42);
  border-left: 0;
  border-radius: 0 22px 22px 0;
  background: linear-gradient(150deg, rgba(247, 241, 225, .97), rgba(229, 216, 190, .95));
  box-shadow: 22px 24px 60px rgba(9, 10, 20, .28);
  backdrop-filter: blur(18px);
  transform: translateX(calc(-100% - 24px));
  visibility: hidden;
  transition: top .22s ease, max-height .22s ease, transform .34s cubic-bezier(.22, .8, .24, 1), visibility 0s linear .34s;
}

.wd-practice-drawer__scroll {
  display: grid;
  width: calc(100% - 8px);
  max-height: inherit;
  margin-left: 8px;
  padding: 18px 18px 18px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  align-content: start;
  gap: 16px;
  direction: rtl;
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 79, 29, .46) transparent;
}

.wd-practice-drawer__scroll>* {
  direction: ltr;
}

.wd-practice-drawer__scroll::-webkit-scrollbar {
  width: 10px;
}

.wd-practice-drawer__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.wd-practice-drawer__scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(122, 79, 29, .46);
  background-clip: padding-box;
}

.wd-practice-drawer__scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 111, 115, .68);
  background-clip: padding-box;
}

.wd-page--practice-open .wd-practice-drawer {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.fd-modal-open {
  overflow: hidden;
}

.wd-practice-drawer.wd-practice-drawer--modal-open {
  z-index: 2147483645;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: none;
  max-height: 100vh;
  height: 100vh;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  visibility: visible;
  backdrop-filter: none;
  transition: none !important;
}

.wd-practice-drawer--modal-open .wd-practice-drawer__scroll {
  width: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.wd-practice-drawer--modal-open .wd-practice-drawer__section {
  transform: none !important;
  transition: none !important;
}

.wd-drawer-toggle--practice {
  left: 0;
  right: auto;
  border-left: 0;
  border-right: 1px solid rgba(226, 205, 152, .55);
  border-radius: 0 16px 16px 0;
  box-shadow: inset 0 1px 0 rgba(255, 247, 218, .5), 4px 6px 18px rgba(49, 33, 13, .16);
  transition-property: left, background-color, color, opacity;
}

.wd-drawer-toggle--practice:focus-visible {
  outline: 3px solid #E4C786;
  outline-offset: 3px;
}

.wd-page--practice-open .wd-drawer-toggle--practice {
  left: min(360px, calc(100vw - 32px));
}

.wd-practice-drawer__header {
  padding: 5px 4px 16px;
  border-bottom: 1px solid rgba(92, 67, 30, .2);
}

.wd-practice-drawer__header>span {
  color: var(--wd-lapis);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.wd-practice-drawer__title {
  margin: 7px 0 8px;
  color: #1D2B2A;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.05;
}

.wd-practice-drawer__lead {
  margin: 0;
  color: #6D746F;
  font-size: .88rem;
  line-height: 1.5;
}

.wd-practice-drawer__section {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--wd-practice-line);
  border-radius: 17px;
  background:
    linear-gradient(180deg, var(--wd-practice-surface-strong), var(--wd-practice-surface)),
    rgba(255, 249, 238, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .46);
}

.wd-practice-drawer__section-title {
  margin: 0;
  color: var(--wd-practice-text);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.2;
}

.wd-practice-drawer__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  min-height: 76px;
  padding: 10px 12px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--wd-practice-line);
  border-radius: 14px;
  background: var(--wd-practice-surface);
  color: var(--wd-practice-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .36), 0 5px 14px rgba(92, 67, 30, .05);
}

.wd-practice-drawer__feature {
  text-decoration: none;
  transition: border-color .22s ease, background-color .22s ease, color .22s ease;
}

.wd-practice-drawer__control {
  grid-column: 2;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  justify-self: end;
}

.wd-practice-drawer__feature-image {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
}

.wd-practice-drawer__feature-copy, .wd-practice-drawer__color-copy {
  display: grid;
  justify-items: start;
  gap: 2px;
}

.wd-practice-drawer__feature-title, .wd-practice-drawer__color-title {
  color: var(--wd-practice-title);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.wd-practice-drawer__feature-desc {
  color: var(--wd-practice-muted);
}

.wd-practice-drawer__orb {
  font-weight: 700;
}

.wd-practice-drawer__orb-title {
  color: var(--wd-practice-text);
}

.wd-practice-drawer__orb fast-divination {
  --fd-size: 82px;
  --fd-modal-size: min(80vw, 430px);
  flex: 0 0 auto;
}

.wd-practice-drawer__transcommunication {
  min-height: 98px;
}

.wd-practice-drawer__transcommunication sentence-divination {
  --sd-size: 82px;
  display: block;
}

.wd-practice-drawer__transcommunication-copy {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.wd-practice-drawer__transcommunication-title {
  color: var(--wd-practice-title);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.15;
}

.wd-practice-drawer__transcommunication-desc {
  color: var(--wd-practice-muted);
  font-size: .74rem;
  line-height: 1.35;
}

.wd-practice-drawer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wd-practice-drawer__link, .wd-practice-drawer__text-link {
  padding: 9px 11px;
  border: 1px solid rgba(92, 67, 30, .18);
  border-radius: 10px;
  color: var(--wd-lapis-dark);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}

.wd-practice-drawer__link:hover, .wd-practice-drawer__text-link:hover {
  border-color: rgba(28, 67, 143, .38);
  background: rgba(43, 179, 177, .07);
}

.wd-practice-drawer__color-flow {
  min-height: 98px;
}

.wd-practice-drawer__control color-waves-button {
  transform: scale(.7321428571);
  transform-origin: left center;
}

.wd-practice-drawer__color-desc {
  color: var(--wd-practice-muted);
  line-height: 1.35;
}

.wd-search, .wd-widget {
  border: 1px solid rgba(43, 179, 177, .06);
  border-radius: 18px;
  background: rgba(251, 247, 239, .94);
  box-shadow: 0 10px 32px rgba(39, 31, 21, .08);
}

.wd-search {
  display: grid;
  grid-template-columns: 1fr 46px;
  overflow: hidden;
}

.wd-widget {
  overflow: hidden;
}

.wd-widget__title {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--wd-line);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}

.wd-widget__body {
  padding: 16px;
}

.wd-widget--account .login-box {
  display: grid;
  gap: 14px;
}

.wd-widget--account .lb-user {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 5px;
}

.wd-widget--account .lb-ava, .wd-widget--account .lb-ava>div {
  width: 54px;
  height: 54px;
}

.wd-widget--account .login-avatar {
  width: 54px;
  height: 54px;
  max-width: none;
  float: none;
  object-fit: cover;
  border: 2px solid rgba(201, 169, 96, .55);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(17, 28, 57, .15);
}

.wd-widget--account .lb-name {
  min-width: 0;
  color: #1D2B2A;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
}

.wd-widget--account .lb-name a {
  display: inline-flex;
  margin-top: 5px;
  color: var(--wd-lapis);
  font-weight: 700;
  font-size: .72rem;
  line-height: 1.2;
  text-decoration: none;
}

.wd-widget--account .lb-menu {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 5px;
  list-style: none;
}

.wd-widget--account .lb-menu a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(28, 67, 143, .1);
  border-radius: 11px;
  background: rgba(255, 255, 255, .44);
  color: #1D2B2A;
  font-size: .82rem;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.wd-widget--account .lb-menu a:hover {
  transform: translateX(2px);
  border-color: rgba(28, 67, 143, .28);
  background: rgba(255, 255, 255, .78);
  color: var(--wd-lapis);
}

.wd-widget--account .lb-menu .fa {
  color: var(--wd-gold-deep);
  text-align: center;
}

.wd-widget--account .wd-form {
  display: grid;
  gap: 10px;
}

.wd-widget--account .lb-infoblock {
  display: grid;
  gap: 10px;
  color: #6D746F;
  font-size: .78rem;
}

.wd-widget--account .lb-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-widget--account .lb-lnk {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
}

.wd-widget--account .lb-lnk a {
  color: var(--wd-lapis);
  text-decoration: none;
}

.wd-widget--accent {
  border-color: rgba(92, 67, 30, .34);
  background: linear-gradient(145deg, #E4C786, #C9A257 54%, #7A5323);
  color: #211a10;
  box-shadow: inset 0 1px 0 rgba(255, 247, 218, .52), 0 10px 30px rgba(68, 45, 17, .16);
}

.wd-widget--accent .wd-widget__title {
  border-color: rgba(92, 67, 30, .28);
  color: #1D2B2A;
}

.wd-widget--accent .wd-link {
  color: var(--wd-lapis-dark);
}

/* DLE category menu exception: nested category markup is generated by {catmenu}. */
.wd-widget__categories {
  display: grid;
  gap: 4px;
}

.wd-widget__categories .sub-menu-title {
  position: relative;
}

.wd-widget__categories .menu-title-row {
  padding-right: 34px;
}

.wd-widget__categories a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  text-decoration: none;
}

.wd-widget__categories a:hover {
  background: rgba(43, 179, 177, .07);
  color: var(--wd-lapis);
}

.wd-widget__categories .submenu-toggle {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 2px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(15, 111, 115, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .56);
  color: var(--wd-lapis);
  cursor: pointer;
}

.wd-widget__categories .submenu-toggle::before, .wd-widget__categories .submenu-toggle::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 1px;
  background: currentColor;
  transition: transform .22s ease;
}

.wd-widget__categories .submenu-toggle::after {
  transform: rotate(90deg);
}

.wd-widget__categories .submenu-toggle[aria-expanded="true"]::after {
  transform: rotate(0);
}

.wd-widget__categories .next-menu-title {
  margin: 3px 0 7px 11px;
  padding-left: 9px;
  overflow: hidden;
  border-left: 1px solid rgba(28, 67, 143, .17);
}

.wd-widget__categories .next-menu-title[hidden] {
  display: none;
}

.wd-breadcrumbs {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 253, 247, .78);
  font-size: .82rem;
}

.wd-content__category-cloud {
  margin: 0 0 18px;
}

.wd-taxonomy {
  position: relative;
  padding: 14px 16px 12px;
  border: 1px solid rgba(117, 88, 43, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 253, 247, .88), rgba(244, 237, 220, .74));
  box-shadow: 0 12px 34px rgba(45, 35, 22, .08);
}

.wd-taxonomy__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  overflow: hidden;
  transition: max-height .45s ease;
}

.wd-taxonomy__group, .wd-taxonomy__sub {
  display: contents;
}

.wd-taxonomy__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(45, 75, 126, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: #1D2B2A;
  font-size: .82rem;
  line-height: 1.15;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74);
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.wd-taxonomy__link:hover {
  transform: translateY(-1px);
  border-color: rgba(38, 77, 151, .38);
  background: #FFF9EE;
  color: var(--wd-lapis);
}

.wd-taxonomy.is-collapsible:not(.is-expanded) .wd-taxonomy__list {
  max-height: 75px;
  padding-bottom: 8px;
  -webkit-mask-image: linear-gradient(#000 58%, transparent);
  mask-image: linear-gradient(#000 58%, transparent);
}

.wd-taxonomy.is-expanded .wd-taxonomy__list {
  max-height: 800px;
}

.wd-taxonomy__toggle {
  display: block;
  margin: 9px auto 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 43, 86, .08);
  color: var(--wd-lapis);
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
}

.wd-taxonomy__toggle[hidden] {
  display: none;
}

.wd-footer {
  position: relative;
  width: 100%;
  margin: auto 0 0;
  overflow: hidden;
  flex: 0 0 auto;
  border-top: 1px solid rgba(201, 169, 96, .26);
  background: #11181B url("../images/footer-living-esoterica-v3.webp") center/cover no-repeat;
  color: #F5F0E6;
  box-shadow: 0 -16px 50px rgba(7, 11, 22, .2);
}

/* DLE service messages and forms */
.berrors, .dle-info, .wd-content>.info {
  width: 100%;
  max-width: none;
  margin: 0 auto 18px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(201, 217, 211, .75);
  border-radius: 18px;
  background: var(--form-bg);
  box-shadow: 0 12px 32px var(--form-shadow);
  color: var(--form-text);
}

.berrors b, .dle-info b {
  display: block;
  margin-bottom: 6px;
  color: var(--form-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
}

.wd-fullstory>.berrors {
  position: relative;
  isolation: isolate;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.wd-fullstory>.berrors>b:first-child+br {
  display: none;
}

.wd-fullstory>.berrors>b:not(:first-child) {
  display: inline;
  margin: 0;
  color: var(--form-heading);
  font-size: inherit;
  line-height: inherit;
}

.wd-fullstory>.berrors::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: min(0px, max(-90px, calc((100% - 100vw)/2 + 24px)));
  right: min(0px, max(-90px, calc((100% - 100vw)/2 + 24px)));
  border: 1px solid rgba(43, 179, 177, .06);
  border-radius: 20px;
  background: rgba(251, 247, 239, .95);
  box-shadow: var(--wd-shadow);
}

.wd-pm {
  display: grid;
  gap: var(--wd-space-5);
}

/* DLE PM menu exception: [inbox]/[outbox]/[new_pm] render their own anchors. */
.pm-menu {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: var(--wd-space-2);
  list-style: none;
}

.pm-menu a {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 16px;
  align-items: center;
  border: 1px solid rgba(43, 179, 177, .22);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(228, 247, 245, .72) 100%);
  color: var(--form-heading);
  font-size: var(--wd-text-sm);
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 8px rgba(15, 111, 115, .08);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pm-menu a:hover {
  border-color: var(--form-primary);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--form-primary-soft) 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 4px 12px rgba(43, 179, 177, .16);
}

.table-resp {
  max-width: 100%;
  overflow-x: auto;
}

/* Search */
.wd-content--search {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  background: rgba(251, 247, 239, .94);
  box-shadow: var(--wd-shadow);
  backdrop-filter: blur(14px);
}

.wd-content--search .wd-search-page {
  grid-column: 1/-1;
}

.wd-search-page {
  width: 100%;
  margin: 0;
  padding: var(--form-pad);
  border: 1px solid var(--form-rim);
  border-radius: var(--form-radius);
  background: linear-gradient(168deg, var(--form-shell-top) 0%, var(--form-shell-mid) 40%, var(--form-shell-deep) 100%);
  box-shadow: inset 0 1px 0 var(--form-rim-light), 0 12px 32px rgba(29, 43, 42, .09);
}

.wd-search-page__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
  gap: 8px;
  margin-bottom: 22px;
}

.wd-search-page__eyebrow {
  grid-column: 1/-1;
  color: var(--form-heading);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wd-search-page__title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(1.55rem, 2.65vw, 2.15rem);
  line-height: 1.05;
}

.wd-search-page__lead {
  max-width: 56ch;
  margin: 0;
  color: var(--wd-muted);
  font-size: .92rem;
  line-height: 1.55;
}

/* DLE searchtable exception: {searchtable} renders form controls without BEM classes. */
.wd-search-page__controls {
  width: min(100%, 760px);
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(217, 178, 110, .28);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(15, 111, 115, .045), transparent 70px),
    rgba(255, 255, 255, .68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.wd-search-page__controls fieldset {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.wd-search-page__controls legend {
  display: none;
  padding: 0;
  color: #5f584c;
  font-size: .78rem;
}

.wd-content--search .berrors,
.wd-content--search .dle-info,
.wd-main:has(.wd-content--search)>.berrors,
.wd-main:has(.wd-content--search)>.dle-info,
.wd-page-panel:has(.wd-content--search)>.berrors,
.wd-page-panel:has(.wd-content--search)>.dle-info {
  width: min(100%, 760px);
  margin-bottom: 12px;
  padding: 12px 16px;
  border-color: rgba(15, 111, 115, .14);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(15, 111, 115, .06), rgba(255, 253, 247, .88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 8px 22px rgba(80, 55, 24, .08);
  font-size: .92rem;
  line-height: 1.45;
}

.wd-content--search .berrors b,
.wd-content--search .dle-info b,
.wd-main:has(.wd-content--search)>.berrors b,
.wd-main:has(.wd-content--search)>.dle-info b,
.wd-page-panel:has(.wd-content--search)>.berrors b,
.wd-page-panel:has(.wd-content--search)>.dle-info b {
  display: none;
}

.wd-search-page__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 13px 16px;
  border-left: 3px solid var(--wd-gold-soft);
  border-radius: 4px 13px 13px 4px;
  background: rgba(43, 179, 177, .055);
}

.wd-search-page__summary-label {
  flex: 0 0 auto;
  color: var(--wd-lapis-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.wd-search-page__summary-text {
  margin: 0;
  color: #514b42;
}

.wd-search-result {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(92, 71, 39, .15);
  border-radius: 12px;
  background: rgba(251, 247, 239, .96);
  color: var(--wd-ink);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(34, 27, 19, .09);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.wd-search-result:hover {
  z-index: auto;
  transform: translateY(-2px);
  border-color: rgba(15, 111, 115, .35);
  box-shadow: 0 18px 42px rgba(25, 31, 53, .16);
}

.wd-search-result__media {
  position: relative;
  width: 100%;
  height: 150px;
  min-height: 150px;
  margin: 0;
  overflow: hidden;
  background: #eee8dc;
}

.wd-search-result__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.wd-search-result:hover .wd-search-result__image {
  transform: scale(1.035);
}

.wd-search-result__media:has(img[src*="/dleimages/no_image.jpg"]) {
  isolation: isolate;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .78), transparent 54%),
    linear-gradient(145deg, #f6f2ea 0%, #e9e2d7 100%);
}

.wd-search-result__media:has(img[src*="/dleimages/no_image.jpg"])::before,
.wd-search-result__media:has(img[src*="/dleimages/no_image.jpg"])::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
}

.wd-search-result__media:has(img[src*="/dleimages/no_image.jpg"])::before {
  z-index: 1;
  width: 116px;
  aspect-ratio: 1;
  border: 1px solid rgba(126, 105, 76, .16);
  border-radius: 50%;
  background: rgba(255, 253, 248, .34);
  box-shadow: 0 8px 22px rgba(65, 52, 36, .08);
  transform: translate(-50%, -50%);
}

.wd-search-result__media:has(img[src*="/dleimages/no_image.jpg"])::after {
  display: none;
}

.wd-search-result__image[src*="/dleimages/no_image.jpg"] {
  position: relative;
  z-index: 2;
  width: 104px;
  height: 104px;
  object-fit: contain;
  border-radius: 50%;
  opacity: .94;
  mix-blend-mode: multiply;
  filter: grayscale(1) sepia(.18) brightness(.62) contrast(4.6) drop-shadow(0 4px 8px rgba(76, 61, 41, .1));
  transform: none;
}

.wd-search-result:hover .wd-search-result__image[src*="/dleimages/no_image.jpg"] {
  filter: grayscale(1) sepia(.18) brightness(.58) contrast(4.8) drop-shadow(0 5px 10px rgba(76, 61, 41, .13));
  transform: scale(1.025);
}

.wd-search-result__date {
  inset: auto auto 12px 12px;
  top: auto;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(8, 18, 43, .82);
  color: #fff;
  font-size: .72rem;
  backdrop-filter: blur(6px);
}

.wd-search-result__body {
  float: none;
  width: auto;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  color: #302b24;
}

.wd-search-result__title {
  margin: 0 0 9px;
  color: #1D2B2A;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.14;
}

.wd-search-result__body .sres-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: #625c51;
  font-size: .82rem;
  line-height: 1.5;
}

.wd-search-result__action {
  margin-top: auto;
  padding-top: 14px;
  color: var(--wd-lapis);
  font-size: .82rem;
  font-weight: 800;
}

.wd-search-comment {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.wd-search-comment__source {
  display: flex;
  align-items: baseline;
  gap: var(--wd-space-2);
  margin: 0 var(--wd-space-3);
  padding: var(--wd-space-3) var(--wd-space-4) calc(var(--wd-space-3) + 2px);
  border: 1px solid rgba(140, 95, 40, .18);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(239, 232, 213, .82), rgba(255, 249, 238, .74));
  font-size: 1rem;
}

.wd-search-comment .wd-comment-card {
  margin-top: 0;
}

.wd-comment-card--search {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0;
}

.wd-comment-card--search .wd-comment-card__avatar-column {
  padding: 16px 0 0 16px;
}

.wd-comment-card--search .wd-comment-card__avatar {
  width: 48px;
  height: 48px;
}

@media (max-width:1199px) {
  .wd-content--search {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width:700px) {
  .wd-content--search {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .wd-search-page__header {
    grid-template-columns: 1fr;
  }

  .wd-search-page__lead {
    margin-top: 8px;
  }

  .wd-search-page__summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .wd-search-result {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 132px;
    border-radius: 10px;
  }

  .wd-search-result__media {
    height: 100%;
    min-height: 132px;
  }

  .wd-search-result__media:has(img[src*="/dleimages/no_image.jpg"])::before {
    width: 76px;
  }

  .wd-search-result__image[src*="/dleimages/no_image.jpg"] {
    width: 68px;
    height: 68px;
  }

  .wd-search-result__date {
    display: none;
  }

  .wd-search-result__body {
    padding: 15px;
  }

  .wd-search-result__title {
    font-size: 1.08rem;
  }

  .wd-search-result__body .sres-desc {
    -webkit-line-clamp: 2;
  }
}

/* DLE comments exception: comment body/action markup is generated by the engine. */
.wd-comment-source {
  margin: var(--wd-space-5) 0 var(--wd-space-2);
  padding: 0 0 var(--wd-space-2);
  border-bottom: 1px solid rgba(140, 95, 40, .14);
  color: var(--wd-ink);
  font-weight: 700;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.35;
}

.wd-comment-source a {
  color: inherit;
  text-decoration-color: rgba(15, 111, 115, .38);
  text-underline-offset: .16em;
}

.wd-comment-group {
  margin: var(--wd-space-8) 0 0;
}

.wd-comment-group+.wd-comment-group {
  margin-top: var(--wd-space-10);
}

.wd-comment-group .wd-comment-source {
  display: flex;
  align-items: baseline;
  gap: var(--wd-space-2);
  margin: 0 var(--wd-space-3);
  padding: var(--wd-space-3) var(--wd-space-4) calc(var(--wd-space-3) + 2px);
  border: 1px solid rgba(140, 95, 40, .18);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(239, 232, 213, .82), rgba(255, 249, 238, .74));
  box-shadow: inset 0 1px rgba(255, 255, 255, .72);
  font-size: 1rem;
}

.wd-comment-source__label {
  flex: 0 0 auto;
  color: var(--wd-muted);
  font-size: var(--wd-text-xs);
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.wd-comment-source__title {
  min-width: 0;
}

.wd-comment-group>.wd-comment-card {
  position: relative;
  margin-top: 0;
  border-top-color: rgba(140, 95, 40, .24);
}

.wd-comment-group>.wd-comment-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wd-teal-deep), var(--wd-gold));
  opacity: .62;
}

.wd-comment-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 0;
  border: 1px solid rgba(140, 95, 40, .18);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(15, 111, 115, .05), transparent 72px),
    linear-gradient(180deg, rgba(255, 253, 247, .94), rgba(245, 240, 230, .90));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .82),
    0 12px 30px rgba(80, 55, 24, .09);
}

.wd-comment-card:not(:has(> .comm-left)) {
  grid-template-columns: minmax(0, 1fr);
}

.wd-comment-card:not(:has(> .comm-left))>.comm-right {
  grid-column: 1 / -1;
}

.wd-comment-card+.wd-comment-card {
  margin-top: var(--wd-space-4);
}

.wd-comment-card__avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
}

.wd-comment-card__shell {
  display: grid;
  min-width: 0;
}

.wd-comment-card__meta,
.wd-comment-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  height: auto;
  min-height: 18px;
}

.wd-comment-card__meta {
  align-items: center;
  padding: 16px 18px 10px;
  color: var(--wd-muted);
  font-size: .86rem;
  line-height: 1.35;
}

.wd-comment-card__author {
  color: var(--wd-teal-deep);
  font-weight: 800;
}

.wd-comment-card__group {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid rgba(196, 160, 81, .28);
  border-radius: 999px;
  background: rgba(196, 160, 81, .10);
  color: #ad0000;
  font-size: .78rem;
  font-weight: 800;
}

.wd-comment-card__date {
  margin-left: auto;
  color: rgba(29, 43, 42, .66);
  font-size: .82rem;
}

.wd-comment-card__content {
  margin: 0 18px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 111, 115, .12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(228, 191, 99, .12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 253, 247, .76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    inset 4px 0 0 rgba(15, 111, 115, .16);
  color: var(--wd-ink);
  font-size: .98rem;
  line-height: 1.68;
}

.wd-comment-card__content> :first-child {
  margin-top: 0;
}

.wd-comment-card__content> :last-child {
  margin-bottom: 0;
}

.wd-comment-card__signature {
  margin-top: var(--wd-space-4);
  padding-top: var(--wd-space-3);
  border-top: 1px solid rgba(140, 95, 40, .14);
  color: var(--wd-muted);
  font-size: var(--wd-text-sm);
}

.comm-three {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wd-comment-card__actions {
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(140, 95, 40, .12);
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(180deg, rgba(232, 216, 177, .16), rgba(255, 253, 247, .38));
  color: var(--wd-muted);
  font-size: .82rem;
}

.wd-comment-card__action,
.wd-comment-card__admin,
.wd-comment-card__mass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
}

.wd-comment-card__action a,
.wd-comment-card__actions>.wd-comment-card__action>span:not(.fa),
.wd-comment-card__actions .mass_comments_action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wd-comment-card__actions a {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 111, 115, .20);
  border-radius: 999px;
  background: rgba(15, 111, 115, .07);
  color: var(--wd-teal-deep);
  font-weight: 800;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.wd-comment-card__actions a:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 111, 115, .34);
  background: rgba(15, 111, 115, .12);
}

/* DLE-generated IP actions menu is appended directly to body. */
#dropmenudiv {
  box-sizing: border-box;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 7px !important;
  border: 1px solid rgba(140, 95, 40, .24) !important;
  border-radius: 12px !important;
  background: rgba(255, 249, 238, .98) !important;
  box-shadow: 0 14px 34px rgba(29, 43, 42, .22), inset 0 1px rgba(255, 255, 255, .82) !important;
  color: var(--wd-ink);
  font: 700 var(--wd-text-sm)/1.35 var(--wd-font-sans) !important;
  opacity: 1 !important;
  overflow: hidden;
  z-index: 1200 !important;
}

#dropmenudiv a {
  display: block !important;
  width: auto !important;
  padding: 9px 11px !important;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  color: var(--wd-teal-deep) !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere;
  text-decoration: none !important;
  transform: none !important;
}

#dropmenudiv a+a {
  border-top: 1px solid rgba(140, 95, 40, .13) !important;
  border-radius: 0 0 8px 8px;
}

#dropmenudiv a:hover,
#dropmenudiv a:focus-visible {
  background: rgba(43, 179, 177, .10) !important;
  color: var(--wd-teal-dark) !important;
  outline: none;
}

.wd-comment-card__action--danger a {
  border-color: rgba(173, 0, 0, .18);
  background: rgba(173, 0, 0, .055);
  color: #8e2020;
}

.wd-comment-card__admin {
  padding: 5px 9px;
  border: 1px solid rgba(196, 160, 81, .22);
  border-radius: 999px;
  background: rgba(196, 160, 81, .08);
  color: rgba(29, 43, 42, .74);
}

.wd-comment-card__admin-label {
  color: var(--wd-gold-deep);
  font-weight: 800;
}

.wd-comment-card__ip {
  color: var(--wd-teal-deep);
  font-weight: 700;
}

.wd-comment-card__mass {
  min-width: 22px;
}

.wd-comment-card__mass input {
  accent-color: var(--wd-teal-deep);
}

/* DLE content exception: engine tables and tag links are generated HTML. */
.wd-content table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, .52);
}

.wd-content th, .wd-content td {
  padding: 10px 12px;
  border: 1px solid rgba(55, 43, 28, .13);
  text-align: left;
}

.cloud-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cloud-tags a {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid rgba(28, 67, 143, .15);
  border-radius: 999px;
  background: rgba(43, 179, 177, .06);
  color: var(--wd-lapis);
  text-decoration: none;
}

@media (max-width:600px) {
  .wd-comment-card {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 0;
  }

  .wd-comment-card__avatar {
    width: 48px;
    height: 48px;
  }

  .wd-comment-card--search {
    grid-template-columns: minmax(0, 1fr);
  }

  .wd-comment-card--search .wd-comment-card__avatar-column {
    display: none;
  }

  .wd-comment-card__meta,
  .wd-comment-card__actions {
    padding-inline: 13px;
  }

  .wd-comment-card__date {
    width: 100%;
    margin-left: 0;
  }

  .wd-comment-card__content {
    margin-inline: 13px;
    padding: 15px;
  }
}

.wd-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 27, .96) 0%, rgba(29, 43, 42, .88) 40%, rgba(17, 24, 27, .56) 74%, rgba(9, 13, 16, .72) 100%);
  pointer-events: none;
}

.wd-footer__inner {
  position: relative;
  width: min(1500px, calc(100% - 32px));
  max-width: 1500px;
  min-height: 330px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, .55fr);
  align-content: center;
  gap: 30px 70px;
  padding: 58px 0 34px;
  background: transparent;
}

.wd-footer__story {
  max-width: 680px;
}

.wd-footer__story>span {
  color: #d8bf82;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.wd-footer__title {
  display: block;
  margin: 10px 0 14px;
  color: #FFF9EE;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.7vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.wd-footer__text {
  max-width: 64ch;
  margin: 0;
  color: rgba(238, 232, 218, .76);
}

.wd-footer nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  gap: 9px 18px;
}

.wd-footer__link {
  padding: 7px 0;
  border-bottom: 1px solid rgba(226, 205, 152, .14);
  color: #F5F0E6;
  font-weight: 700;
  text-decoration: none;
}

.wd-footer__link:hover {
  color: #E4C786;
}

.wd-footer__bottom {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 205, 152, .14);
}

.wd-footer__copyright {
  flex: 1 1 auto;
  color: rgba(238, 232, 218, .54);
}

.wd-footer__counters {
  display: flex;
  flex: 0 0 auto;
  min-height: 31px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.wd-footer__counter,
.wd-footer__counter a,
.wd-footer__counter img {
  display: block;
}

.wd-footer__counter img {
  width: 88px;
  height: 31px;
  border: 0;
}

.wd-footer__rambler-badge {
  box-sizing: border-box;
  width: 88px;
  height: 31px;
  padding: 3px 7px 2px;
  border: 1px solid rgba(228, 199, 134, .68);
  border-radius: 2px;
  color: #f8f1df;
  background: linear-gradient(135deg, #233b3c, #10191c 68%);
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
}

.wd-footer__rambler-badge span,
.wd-footer__rambler-badge strong {
  display: block;
}

.wd-footer__rambler-badge strong {
  margin-top: 2px;
  color: #e4c786;
  font-size: 12px;
  letter-spacing: .08em;
}

.wd-to-top {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 56px;
  height: 56px;
  padding: 6px;
  place-items: center;
  border-radius: 50%;
  color: #f5ddb0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 22px rgba(8, 47, 50, .24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition: opacity .22s ease, visibility 0s linear .22s, transform .25s ease, box-shadow .2s ease;
}

.wd-to-top:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.wd-to-top:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 15px 34px rgba(5, 15, 47, .4);
  animation: wd-to-top-lift .72s cubic-bezier(.2, .74, .24, 1) both;
}

.wd-to-top:focus-visible {
  outline: 3px solid #E4C786;
  outline-offset: 3px;
}

.wd-to-top__image {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  pointer-events: none;
}

.wd-to-top[hidden] {
  display: grid;
}

@keyframes wd-to-top-lift {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  42% {
    transform: translateY(-27px) scale(1.04);
  }

  70% {
    transform: translateY(7px) scale(1);
  }
}

.wd-page.wd-page--reveal-ready .is-reveal {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition: opacity .65s ease, transform .7s cubic-bezier(.2, .75, .25, 1);
}

.wd-page.wd-page--reveal-ready .is-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wd-age {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 50;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .8);
  color: #426f2e;
  font-weight: 800;
}

@media (max-width: 1199px) {
  .wd-feed, .wd-forum-stream__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bottom-nav {
    grid-column: span 3;
  }
}

@media (max-width: 980px) {
  .wd-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wd-feed, .wd-forum-stream__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wd-intro {
    padding: 40px;
  }

  .wd-brand__tagline {
    display: none;
  }

  .bottom-nav {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .wd-header__frieze {
    height: 24px;
    background-image: url("../images/wedjat-header/frieze-sliced/top-frieze-repeat.webp");
    background-position: center;
    background-size: auto 100%;
    background-repeat: repeat-x;
  }

  .wd-header__inner {
    width: calc(100% - 28px);
    min-height: 60px;
    padding: 5px 0;
  }

  .wd-brand {
    gap: 10px;
  }

  .wd-brand__mark {
    width: 44px;
    height: 44px;
  }

  .wd-header__inner::before {
    left: -84px;
    opacity: .08;
  }

  .wd-header__inner::after {
    right: -84px;
    opacity: .08;
  }

  .wd-brand__copy {
    padding-left: 11px;
  }

  .wd-brand__name {
    font-size: .94rem;
  }

  .wd-header__menu-toggle {
    display: block;
  }

  .wd-header__tools {
    margin-left: auto;
    gap: 8px;
  }

  .wd-header__search {
    display: none;
  }

  .wd-header__tools .wd-header__interest,
  .wd-header__tools .wd-header__personal .wd-nav__personal-button,
  .wd-header__tools .wd-theme-toggle {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 5px;
  }

  .wd-header__tools .wd-theme-toggle__glyph {
    width: 22px;
    height: 22px;
  }

  .wd-header__tools .wd-nav__pm-badge {
    top: -4px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    font-size: .58rem !important;
  }

  .wd-header__age {
    min-width: 30px;
    height: 23px;
    font-size: .58rem;
  }

  .wd-nav {
    display: none;
    position: sticky;
  }

  .wd-nav--open {
    display: block;
  }

  .wd-nav, .wd-nav--stuck {
    min-height: 0;
    margin-bottom: 0;
    background: linear-gradient(180deg, #1D2B2A, #11181B);
  }

  .wd-menu-panel__inner {
    width: 100%;
    min-height: 0;
  }

  .wd-menu-panel__inner::before, .wd-menu-panel__inner::after {
    display: none;
  }

  .wd-menu-panel__frieze, .wd-menu-panel__bottom {
    display: none;
  }

  .wd-menu-panel__blue {
    min-height: 0;
    border: 0;
    background: linear-gradient(180deg, #1D2B2A, #11181B);
  }

  .wd-nav__inner, .wd-nav--stuck .wd-nav__inner {
    width: calc(100% - 28px);
    min-height: 0;
    padding: 8px 0 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .wd-nav__slot--left, .wd-nav--stuck .wd-nav__slot--left {
    display: block;
  }

  .wd-nav__slot--center, .wd-nav__slot--right, .wd-nav--stuck .wd-nav__slot--center, .wd-nav--stuck .wd-nav__slot--right {
    display: none;
  }

  .wd-nav__mark, .wd-nav--stuck .wd-nav__mark {
    display: none;
  }

  .wd-nav__tools, .wd-nav--stuck .wd-nav__tools {
    display: none;
  }

  .wd-nav__groups {
    display: grid;
    gap: 5px;
    order: 2;
  }

  .wd-nav [data-tooltip]::before {
    display: none;
  }

  .wd-tooltip {
    display: none;
  }

  .wd-nav-group {
    display: block;
    border-bottom: 1px solid rgba(72, 57, 37, .1);
  }

  .wd-nav-group+.wd-nav-group::before {
    display: none;
  }

  .wd-nav-group+.wd-nav-group .wd-nav-group__toggle {
    border-left: 0;
  }

  .wd-nav-group__toggle, .wd-nav--stuck .wd-nav-group__toggle {
    width: 100%;
    min-height: 46px;
    padding: 11px 34px 11px 48px;
    justify-content: flex-start;
    color: #F5F0E6;
    font-weight: 700;
    font-size: .94rem;
    line-height: 1;
    text-align: left;
  }

  .wd-nav-group__toggle::before {
    left: 10px;
    width: 25px;
    height: 25px;
  }

  .wd-nav-panel {
    position: static;
    padding: 0 0 8px;
  }

  .wd-nav-panel__inner, .wd-nav-panel__inner--compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 5px 0 5px 13px;
    border: 0;
    border-left: 1px solid rgba(15, 111, 115, .22);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .wd-nav-panel__label {
    display: none;
  }

  .wd-nav-panel__link {
    gap: 2px;
    padding: 9px 12px;
    border-radius: 10px;
  }

  .wd-nav-panel__link strong {
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.2;
  }

  .wd-nav-panel__link small {
    font-size: .7rem;
  }

  .wd-nav__search {
    width: 100%;
    margin: 4px 0 8px;
    flex: none;
    order: 1;
  }

  .wd-nav__search .wd-input--search {
    min-height: 44px;
    background: rgba(255, 255, 255, .82);
  }

  .wd-nav__search .wd-btn--icon-search {
    top: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
  }

  .wd-nav__practice-button {
    min-width: 0;
    margin-left: 0;
    order: 3;
    border-left: 0;
    color: #F5F0E6;
  }

  .wd-nav__personal {
    order: 4;
  }

  .wd-nav__link, .wd-nav__personal-button, .wd-nav__practice-button {
    padding: 11px 10px;
    text-align: left;
  }

  .wd-nav__personal {
    justify-content: flex-start;
  }

  .wd-nav__personal-button {
    width: 44px;
    height: 44px;
    padding: 8px;
  }

  .wd-shell, body:has(.wd-nav--stuck) .wd-shell {
    width: 100%;
    padding: 12px 0;
    background: none;
  }

  .wd-shell::before {
    top: 0;
    background: linear-gradient(90deg, rgba(248, 244, 233, .34), rgba(255, 252, 244, .72) 8%, rgba(245, 240, 230, .78) 50%, rgba(255, 252, 244, .72) 92%, rgba(248, 244, 233, .34));
  }

  .wd-layout {
    width: calc(100% - 24px);
    display: flex;
    flex-direction: column;
  }

  .wd-main {
    width: 100%;
    order: 1;
  }

  .wd-drawer-toggle--sidebar,
  .wd-drawer-toggle--practice {
    top: 50dvh;
    transform: translateY(-50%);
  }

  .wd-sidebar {
    top: 64px;
    width: 50vw;
    max-height: calc(100vh - 76px);
    padding: 8px;
    gap: 8px;
    border-radius: 14px 0 0 14px;
    order: 2;
  }

  .wd-page--sidebar-open .wd-drawer-toggle--sidebar {
    right: 50vw;
  }

  .wd-practice-drawer {
    top: 64px;
    width: 50vw;
    max-height: calc(100vh - 76px);
    padding: 0;
    border-radius: 0 14px 14px 0;
  }

  .wd-practice-drawer__scroll {
    width: calc(100% - 4px);
    margin-left: 4px;
    padding: 8px 8px 8px 4px;
    gap: 8px;
  }

  .wd-page--practice-open .wd-drawer-toggle--practice {
    left: 50vw;
  }

  .wd-practice-drawer__header {
    padding: 2px 2px 8px;
  }

  .wd-practice-drawer__title {
    margin: 3px 0;
    font-size: 1.05rem;
    line-height: 1.1;
  }

  .wd-practice-drawer__section {
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
  }

  .wd-practice-drawer__section-title {
    font-size: .82rem;
  }

  .wd-practice-drawer__item {
    grid-template-columns: minmax(0, 1fr) 60px;
    min-height: 72px;
    padding: 6px;
    gap: 6px;
    border-radius: 10px;
  }

  .wd-practice-drawer__control {
    width: 60px;
    height: 60px;
  }

  .wd-practice-drawer__feature-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }

  .wd-practice-drawer__feature-title,
  .wd-practice-drawer__color-title,
  .wd-practice-drawer__transcommunication-title,
  .wd-practice-drawer__orb-title {
    font-size: .72rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .wd-practice-drawer__transcommunication-title {
    font-size: .64rem;
  }

  .wd-practice-drawer__transcommunication-desc,
  .wd-practice-drawer__color-desc {
    font-size: .6rem;
    line-height: 1.2;
  }

  .wd-practice-drawer__orb fast-divination {
    --fd-size: 60px;
  }

  .wd-practice-drawer__transcommunication sentence-divination {
    --sd-size: 60px;
  }

  .wd-practice-drawer__control color-waves-button {
    transform: scale(.5357142857);
  }

  .wd-widget__title {
    padding: 8px;
    font-size: .86rem;
  }

  .wd-widget__body {
    padding: 8px;
  }

  .wd-widget--account .login-box,
  .wd-widget--account .wd-form {
    gap: 8px;
  }

  .wd-widget--account .lb-user {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 7px;
  }

  .wd-widget--account .lb-ava,
  .wd-widget--account .lb-ava>div,
  .wd-widget--account .login-avatar {
    width: 36px;
    height: 36px;
  }

  .wd-widget--account .lb-name,
  .wd-widget--account .lb-menu a,
  .wd-widget--account .lb-lnk a {
    font-size: .72rem;
  }

  .wd-intro {
    min-height: 520px;
    padding: 34px 24px;
  }

  .wd-intro::after {
    inset: -30% -12% 0;
    background-position: 70% bottom;
  }

  .wd-intro::before {
    background: linear-gradient(90deg, rgba(17, 24, 27, .97), rgba(11, 14, 38, .86) 68%, rgba(9, 10, 22, .5));
  }

  .wd-intro__copy {
    min-width: 0;
    max-width: 100%;
  }

  .wd-intro__title {
    max-width: 15ch;
    font-size: clamp(1.65rem, 6.4vw, 2.05rem);
    line-height: 1.08;
  }

  .wd-intro__actions {
    flex-direction: column;
  }

  .wd-feed, .wd-forum-stream__grid {
    grid-template-columns: 1fr;
  }

  .wd-feed {
    gap: 10px;
  }

  .wd-taxonomy {
    padding: 11px;
    border-radius: 14px;
  }

  .wd-taxonomy__list {
    gap: 6px;
  }

  .wd-taxonomy__link {
    min-height: 31px;
    padding: 5px 9px;
    font-size: .76rem;
  }

  .wd-story-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 96px;
    border-radius: 10px;
  }

  .wd-story-card__media {
    height: 100%;
    min-height: 96px;
    aspect-ratio: auto;
  }

  .wd-story-card__body {
    min-width: 0;
    padding: 11px 12px;
  }

  .wd-story-card__meta {
    gap: 4px 8px;
    font-size: .63rem;
    letter-spacing: .045em;
  }

  .wd-story-card__title {
    margin: 6px 0 4px;
    font-size: 1rem;
    line-height: 1.17;
    -webkit-line-clamp: 2;
  }

  .wd-story-card__summary {
    display: none;
  }

  .wd-story-card__footer {
    margin-top: 7px;
    padding-top: 6px;
    border-top-color: rgba(67, 55, 36, .1);
    font-size: .67rem;
  }

  .wd-story-card__footer span {
    display: none;
  }

  .wd-footer__inner {
    width: calc(100% - 36px);
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 32px 0;
  }

  .wd-footer nav {
    grid-template-columns: 1fr;
  }

  .wd-footer__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .wd-footer__counters {
    align-self: flex-end;
  }

  .bottom-nav {
    grid-column: span 1;
  }
}

/* wedjat: applied COLOR_SYSTEM.md roles */
.wd-page {
  color: var(--wd-ink);
  background-color: var(--wd-paper);
}

.wd-atmosphere {
  background-color: var(--wd-night);
}

.wd-atmosphere__image {
  background-color: var(--wd-night-soft);
}

.wd-atmosphere::after {
  background: linear-gradient(rgba(17, 24, 27, .22), rgba(29, 43, 42, .40));
}

.wd-shell::before {
  background:
    linear-gradient(90deg,
      rgba(245, 240, 230, .24) 0%,
      rgba(255, 249, 238, .86) 18%,
      rgba(255, 249, 238, .92) 50%,
      rgba(255, 249, 238, .86) 82%,
      rgba(245, 240, 230, .24) 100%);
}

.wd-header {
  background-color: var(--wd-paper);
  background-image:
    linear-gradient(180deg, #FFF9EE 0%, #F5F0E6 58%, #EFE8D5 100%),
    url("../images/wedjat-header/raster/paper-texture-sample.webp");
  background-size: 100% 100%, 320px auto;
  box-shadow: 0 8px 26px rgba(29, 43, 42, .09);
}

.wd-brand {
  color: var(--wd-ink);
}

.wd-brand__name,
.wd-static__body h1,
.wd-static__body h2,
.wd-static__body h3,
.wd-story-card__title,
.wd-forum-card__title,
.wd-search-result__title {
  color: var(--wd-ink);
}

.wd-form__title,
.wd-form .wd-heading {
  color: var(--form-heading);
}

.wd-brand__tagline,
.wd-static__context,
.wd-story-card__summary,
.wd-forum-card__summary,
.wd-search-result__body .sres-desc,
.wd-practice-drawer__lead,
.wd-widget--account .lb-infoblock {
  color: var(--wd-muted);
}

.wd-brand__copy::before,
.wd-nav-group__toggle::after {
  background: linear-gradient(90deg, transparent, var(--wd-teal), transparent);
}

.wd-nav--stuck {
  background: linear-gradient(180deg, var(--wd-night-soft) 0%, var(--wd-night) 100%);
}

.wd-menu-panel__blue {
  border-top-color: rgba(196, 160, 81, .60);
  border-bottom-color: transparent;
}

.wd-nav-group__toggle,
.wd-nav__practice-button,
.wd-nav--stuck .wd-nav__link,
.wd-nav--stuck .wd-nav__personal-button,
.wd-nav--stuck .wd-nav__practice-button,
.wd-nav--stuck .wd-nav-group__toggle {
  color: var(--wd-on-dark);
}

.wd-nav-group__toggle:hover,
.wd-nav-group__toggle[aria-expanded="true"],
.wd-nav-group.has-current .wd-nav-group__toggle,
.wd-nav--stuck .wd-nav__link:hover,
.wd-nav--stuck .wd-nav__personal-button:hover,
.wd-nav--stuck .wd-nav__practice-button:hover,
.wd-nav--stuck .wd-nav-group__toggle:hover {
  color: var(--wd-gold-pale);
}

.wd-nav-group+.wd-nav-group .wd-nav-group__toggle,
.wd-nav__practice-button {
  border-color: rgba(196, 160, 81, .35);
}

.wd-nav-panel__inner,
.wd-nav-panel__inner--compact {
  border-color: rgba(196, 160, 81, .28);
  background: linear-gradient(135deg, #FBF7EF, #EFE8D5);
}

.wd-nav-panel__label {
  color: var(--wd-gold-deep);
}

.wd-nav-panel__link {
  color: var(--wd-ink);
}

.wd-nav--stuck .wd-nav-panel__link:not(.wd-nav__mark) {
  color: var(--wd-ink);
  text-shadow: none;
}

.wd-nav--stuck .wd-nav-panel__link:not(.wd-nav__mark) .wd-nav-panel__desc {
  color: var(--wd-muted);
}

.wd-nav-panel__link:hover,
.wd-nav-panel__link[aria-current="page"] {
  border-color: rgba(43, 179, 177, .22);
  background: rgba(43, 179, 177, .06);
  color: var(--wd-teal-deep);
}

.wd-nav--stuck .wd-nav-panel__link:not(.wd-nav__mark):hover,
.wd-nav--stuck .wd-nav-panel__link:not(.wd-nav__mark)[aria-current="page"] {
  color: var(--wd-teal-deep);
}

.wd-intro {
  background: var(--wd-night);
  border-color: rgba(228, 191, 99, .30);
}

.wd-intro::before {
  background: linear-gradient(90deg, rgba(17, 24, 27, .92), rgba(17, 24, 27, .68), rgba(17, 24, 27, .18));
}

.wd-intro__copy,
.wd-intro__title {
  color: var(--wd-on-dark);
}

.wd-intro__lead {
  color: var(--wd-on-dark-muted);
}

.wd-intro__eyebrow {
  color: var(--wd-gold-pale);
}

.wd-static,
.wd-story-card,
.wd-forum-card,
.wd-search-result,
.wd-search-comment,
.wd-content--search,
.wd-fullstory>.berrors::before {
  border-color: rgba(196, 160, 81, .18);
  background: linear-gradient(180deg, rgba(255, 249, 238, .96), rgba(245, 240, 230, .92));
  box-shadow: var(--wd-shadow);
}

.wd-static__header {
  background: linear-gradient(105deg, rgba(43, 179, 177, .055), transparent 45%), linear-gradient(90deg, rgba(196, 160, 81, .09), transparent 72%);
}

.wd-static__eyebrow,
.wd-static__body a,
.wd-story-card__readmore,
.wd-forum-card__link,
.wd-search-page__summary strong,
.wd-search-result__link,
.cloud-tags a,
.comm-three a {
  color: var(--wd-teal-deep);
}

.wd-static__body b,
.wd-static__body strong {
  color: var(--wd-gold-deep);
}

.wd-story-card__media,
.wd-search-result__media {
  background-color: #D8CBB3;
}

.wd-story-card__footer,
.wd-forum-card__link {
  border-top-color: rgba(29, 43, 42, .16);
}

.pagi-nav .navigation span {
  border-color: rgba(228, 191, 99, .45);
  background: linear-gradient(145deg, #2BB3B1 0%, #0F6F73 62%, #083F42 100%);
  color: var(--wd-on-dark);
}

.wd-sidebar,
.wd-practice-drawer {
  border-color: rgba(196, 160, 81, .28);
  background: linear-gradient(155deg, rgba(255, 249, 238, .96), rgba(239, 232, 213, .94));
}

.wd-widget--accent {
  background: linear-gradient(145deg, #E4BF63, #C4A051 54%, #8C5F28);
  color: #211a10;
}

.pm-menu a,
.wd-pm__status,
.cloud-tags a {
  background: rgba(43, 179, 177, .06);
}

.wd-content blockquote {
  border-left-color: var(--wd-gold);
  background: var(--wd-paper);
}

.wd-footer {
  background-color: var(--wd-night);
  color: var(--wd-on-dark);
}

.wd-footer::before {
  background: linear-gradient(90deg, #11181B 0%, rgba(29, 43, 42, .90) 58%, rgba(19, 17, 16, .82) 100%);
}

.wd-footer__eyebrow,
.wd-footer__link:hover {
  color: var(--wd-gold-pale);
}

.wd-footer__text,
.wd-footer__copyright {
  color: var(--wd-on-dark-muted);
}

.wd-profile {
  width: min(100%, 1120px);
  margin: 0 auto var(--wd-space-8);
}

.wd-profile__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(140, 95, 40, .26);
  border-top: 5px solid rgba(196, 160, 81, .82);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(228, 191, 99, .20), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(43, 179, 177, .13), transparent 32%),
    linear-gradient(135deg, rgba(255, 249, 238, .98), rgba(239, 232, 213, .96) 54%, rgba(225, 214, 190, .94));
  box-shadow: 0 18px 46px rgba(80, 55, 24, .16), inset 0 1px rgba(255, 255, 255, .80);
}

.wd-profile__hero::before {
  content: none;
  display: none;
}

.wd-profile__hero::after {
  content: none;
  display: none;
}

.wd-profile__avatar-panel,
.wd-profile__body {
  position: relative;
  z-index: 1;
}

.wd-profile__avatar-panel {
  display: grid;
  align-content: start;
  gap: var(--wd-space-4);
  padding: var(--wd-space-4);
  border: 1px solid rgba(140, 95, 40, .22);
  border-right-color: rgba(140, 95, 40, .30);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(228, 191, 99, .16), transparent 40%),
    linear-gradient(180deg, rgba(255, 249, 238, .42), rgba(232, 216, 177, .22)),
    rgba(245, 240, 230, .24);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .64),
    inset -1px 0 rgba(140, 95, 40, .12),
    0 10px 22px rgba(80, 55, 24, .08);
}

.wd-profile__status-row {
  display: flex;
  justify-content: center;
}

.wd-profile__status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--wd-on-dark);
  font-size: var(--wd-text-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.wd-profile__status--online {
  border: 1px solid rgba(140, 95, 40, .32);
  background: linear-gradient(145deg, rgba(15, 111, 115, .92), rgba(8, 63, 66, .92));
  color: var(--wd-gold-pale);
}

.wd-profile__status--offline {
  border: 1px solid rgba(228, 191, 99, .38);
  background: rgba(255, 249, 238, .38);
  color: var(--wd-muted);
}

.wd-profile__avatar-wrap {
  width: min(168px, 72%);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid rgba(140, 95, 40, .28);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 249, 238, .98), rgba(228, 191, 99, .52)),
    var(--wd-paper);
  box-shadow: 0 12px 26px rgba(7, 18, 18, .24);
}

.wd-profile__avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.wd-profile__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wd-space-2);
}

.wd-profile__stat {
  display: grid;
  gap: 2px;
  min-height: 66px;
  padding: var(--wd-space-3);
  place-items: center;
  border: 1px solid rgba(140, 95, 40, .18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 249, 238, .48), rgba(232, 216, 177, .20));
  box-shadow: inset 0 1px rgba(255, 255, 255, .50);
  text-align: center;
}

.wd-profile__stat-value {
  color: var(--wd-gold-deep);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
}

.wd-profile__stat-label {
  color: var(--wd-muted);
  font-size: var(--wd-text-xs);
  font-weight: 700;
}

.wd-profile__actions {
  display: grid;
  gap: var(--wd-space-2);
}

.wd-profile__action {
  min-width: 0;
}

/* DLE generated placeholder exception: {email}, {pm}, {edituser} output their own controls. */
.wd-profile__action :is(a, button, input) {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid rgba(228, 191, 99, .44);
  border-radius: 999px;
  background: linear-gradient(145deg, #1E8B8B, var(--wd-teal-deep) 52%, #083F42);
  color: var(--wd-on-dark);
  font-size: var(--wd-text-sm);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 7px 16px rgba(8, 63, 66, .14);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.wd-profile__action :is(a, button, input):hover {
  background: linear-gradient(145deg, var(--wd-teal), var(--wd-teal-deep) 54%, #0A4D52);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(8, 63, 66, .22);
}

.wd-profile__body {
  display: grid;
  align-content: start;
  gap: clamp(18px, 3vw, 26px);
  min-width: 0;
}

.wd-profile__heading {
  display: grid;
  gap: var(--wd-space-2);
  padding: var(--wd-space-3) 0 var(--wd-space-4);
  border-bottom: 1px solid rgba(140, 95, 40, .20);
}

.wd-profile__eyebrow {
  color: var(--wd-gold-deep);
  font-size: var(--wd-text-xs);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wd-profile__name {
  margin: 0;
  color: var(--wd-ink);
  font-weight: 800;
  font-size: clamp(1.65rem, 2.75vw, 2.55rem);
  line-height: var(--wd-leading-tight);
}

.wd-profile__group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wd-space-2);
  align-items: center;
  color: var(--wd-muted);
}

.wd-profile__group-label {
  color: var(--wd-gold-deep);
  font-size: var(--wd-text-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.wd-profile__group-value {
  min-width: 0;
  font-weight: 700;
}

.wd-profile__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wd-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wd-profile__meta-item {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: var(--wd-space-4);
  border: 1px solid rgba(140, 95, 40, .16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .36), rgba(255, 249, 238, .14)),
    rgba(255, 249, 238, .22);
  box-shadow: inset 0 1px rgba(255, 255, 255, .58);
}

.wd-profile__meta-item--wide {
  grid-column: 1 / -1;
}

.wd-profile__meta-label {
  color: var(--wd-gold-deep);
  font-size: var(--wd-text-xs);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wd-profile__meta-value {
  min-width: 0;
  color: var(--wd-ink);
  font-size: var(--wd-text-sm);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.wd-profile__meta-value--html {
  color: var(--wd-muted);
}

.wd-form--profile-edit {
  --form-radius: 18px;
  --form-pad: clamp(20px, 3vw, 30px) clamp(20px, 3.4vw, 36px);
  --form-bg: rgba(255, 253, 247, .96);
  --form-text: var(--wd-ink);
  --form-heading: var(--wd-teal-dark);
  --form-muted: var(--wd-muted);
  --form-primary: var(--wd-teal-deep);
  --form-primary-dark: var(--wd-teal-dark);
  --form-primary-soft: rgba(15, 111, 115, .14);
  --form-input-focus: var(--wd-gold-deep);
  --form-rim: rgba(15, 111, 115, .20);
  --form-rim-light: rgba(255, 255, 255, .76);
  --form-rim-deep: rgba(15, 111, 115, .16);
  --form-shell-top: rgba(255, 253, 247, .98);
  --form-shell-mid: rgba(248, 244, 234, .96);
  --form-shell-deep: rgba(238, 229, 207, .90);
  --form-well-bg: rgba(255, 253, 247, .82);
  --form-well-inset: inset 0 1px 0 rgba(255, 255, 255, .80), inset 0 2px 8px rgba(80, 55, 24, .06);
  --form-tray-bg: linear-gradient(180deg, rgba(255, 253, 247, .80), rgba(238, 229, 207, .44));
  width: min(100%, 1040px);
  margin-top: clamp(30px, 4vw, 46px);
  border-color: rgba(15, 111, 115, .20);
  border-left-color: transparent;
  background:
    linear-gradient(90deg, rgba(15, 111, 115, .055) 0 74px, transparent 74px),
    radial-gradient(circle at 94% 10%, rgba(196, 160, 81, .12), transparent 30%),
    linear-gradient(180deg, var(--form-shell-top) 0%, var(--form-shell-mid) 62%, var(--form-shell-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .82),
    inset 10px 0 24px rgba(15, 111, 115, .055),
    0 16px 38px rgba(80, 55, 24, .10);
}

.wd-form--profile-edit::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 0;
  width: 7px;
  height: 34%;
  min-height: 220px;
  max-height: 420px;
  border-radius: var(--form-radius) 0 999px 0;
  background: linear-gradient(180deg, rgba(15, 111, 115, .58) 0%, rgba(15, 111, 115, .44) 42%, rgba(196, 160, 81, .18) 72%, transparent 100%);
  pointer-events: none;
}

.wd-form--profile-edit::after {
  background:
    url("../images/wedjat-header/raster/paper-texture-sample.webp") 0 0 / 320px auto,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .34) 36%, transparent 78%);
  opacity: .16;
  mix-blend-mode: multiply;
}

.wd-form--profile-edit .wd-form__title {
  margin-bottom: var(--wd-space-5);
  color: var(--wd-teal-dark);
  font-size: clamp(1.35rem, 1.75vw, 1.72rem);
  letter-spacing: 0;
}

.wd-form--profile-edit .wd-form__title::after {
  content: "";
  display: block;
  width: min(170px, 36%);
  height: 1px;
  margin-top: var(--wd-space-3);
  background: linear-gradient(90deg, rgba(15, 111, 115, .42), rgba(196, 160, 81, .34), transparent);
}

.wd-form--profile-edit .wd-form__row {
  margin-bottom: var(--wd-space-4);
}

.wd-form--profile-edit .wd-input {
  border-color: rgba(15, 111, 115, .18);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 253, 247, .94), rgba(250, 247, 239, .88));
  box-shadow: var(--form-well-inset);
}

.wd-form--profile-edit .wd-input:hover:not(:focus):not(:disabled) {
  border-color: rgba(15, 111, 115, .30);
  background: linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(250, 247, 239, .94));
}

.wd-form--profile-edit .wd-input:focus {
  border-color: rgba(196, 160, 81, .60);
  background: #fffdf7;
  box-shadow:
    inset 0 1px 2px rgba(80, 55, 24, .04),
    0 0 0 4px rgba(196, 160, 81, .13),
    0 10px 22px -12px rgba(80, 55, 24, .26);
}

.wd-form--profile-edit .wd-form__checks {
  padding: var(--wd-space-3) var(--wd-space-4);
  border: 1px solid rgba(15, 111, 115, .14);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(15, 111, 115, .055), rgba(255, 253, 247, .54));
}

.wd-form--profile-edit .wd-input[type="checkbox"],
.wd-form--profile-edit .wd-input[type="radio"] {
  accent-color: var(--wd-gold-deep);
}

.wd-form--profile-edit .wd-form__actions {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wd-theme-toggle {
  position: relative;
  overflow: visible;
}

.wd-theme-toggle__glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 22px;
  height: 22px;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.wd-theme-toggle__moon,
.wd-theme-toggle__sun {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: opacity .22s ease, transform .24s cubic-bezier(.2, .74, .24, 1);
}

.wd-theme-toggle__moon {
  background-image: url("../images/wedjat-header/icons/theme_toggle/moon_white.png");
}

.wd-theme-toggle__sun {
  background-image: url("../images/wedjat-header/icons/theme_toggle/sun_white.png");
  opacity: 0;
  transform: rotate(-18deg) scale(.72);
}

.wd-theme-toggle[aria-pressed="true"] .wd-theme-toggle__moon {
  opacity: 0;
  transform: rotate(18deg) scale(.70);
}

.wd-theme-toggle[aria-pressed="true"] .wd-theme-toggle__sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

:root[data-wd-theme="dark"] .wd-page {
  background: #05080A;
  color: var(--wd-ink);
}

:root[data-wd-theme="dark"] .wd-atmosphere {
  background-color: #05080A;
}

:root[data-wd-theme="dark"] .wd-atmosphere::after {
  background:
    radial-gradient(circle at 78% 8%, rgba(47, 104, 183, .20), transparent 34%),
    linear-gradient(rgba(5, 8, 10, .58), rgba(5, 8, 10, .78));
}

:root[data-wd-theme="dark"] .wd-header {
  border-bottom-color: rgba(228, 191, 99, .24);
  background-color: #070D10;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(43, 179, 177, .12), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(47, 104, 183, .14), transparent 34%),
    linear-gradient(180deg, rgba(18, 31, 34, .98) 0%, rgba(7, 13, 16, .98) 100%),
    url("../images/wedjat-header/raster/paper-texture-sample.webp");
  background-position: center, center, center, center;
  background-size: 100% 100%, 100% 100%, 100% 100%, 320px auto;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42), inset 0 -1px rgba(228, 191, 99, .10);
}

:root[data-wd-theme="dark"] .wd-header__frieze {
  border-bottom-color: rgba(228, 191, 99, .30);
  background-color: #070D10;
  background-image:
    url("../images/wedjat-header/frieze-sliced/dark/top-frieze-center.webp"),
    url("../images/wedjat-header/frieze-sliced/dark/top-frieze-left.webp"),
    url("../images/wedjat-header/frieze-sliced/dark/top-frieze-right.webp"),
    url("../images/wedjat-header/frieze-sliced/dark/top-frieze-repeat.webp");
  opacity: 1;
  mix-blend-mode: normal;
  box-shadow: inset 0 -1px rgba(0, 0, 0, .42), 0 1px rgba(228, 191, 99, .10);
}

:root[data-wd-theme="dark"] .wd-brand__mark {
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, .34));
}

:root[data-wd-theme="dark"] .wd-brand__name {
  color: var(--wd-gold-pale);
}

:root[data-wd-theme="dark"] .wd-brand__tagline {
  color: var(--wd-on-dark-muted);
}

:root[data-wd-theme="dark"] .wd-brand__copy::before {
  background: linear-gradient(transparent, rgba(228, 191, 99, .48), transparent);
}

:root[data-wd-theme="dark"] .wd-btn--primary,
:root[data-wd-theme="dark"] .wd-button.wd-btn--primary,
:root[data-wd-theme="dark"] .wd-button.wd-button--primary,
:root[data-wd-theme="dark"] .wd-btn.wd-btn--primary.wd-btn--pill,
:root[data-wd-theme="dark"] .wd-btn.wd-btn--primary.wd-btn--icon-tool,
:root[data-wd-theme="dark"] .wd-to-top.wd-btn--primary {
  border-color: rgba(201, 162, 87, .46);
  background: var(--wd-btn-bg-lapis);
  box-shadow: inset 0 1px 0 rgba(255, 249, 238, .10), 0 8px 20px rgba(0, 0, 0, .34);
}

:root[data-wd-theme="dark"] .wd-btn--primary:hover,
:root[data-wd-theme="dark"] .wd-button.wd-btn--primary:hover,
:root[data-wd-theme="dark"] .wd-button.wd-button--primary:hover,
:root[data-wd-theme="dark"] .wd-btn.wd-btn--primary.wd-btn--pill:hover,
:root[data-wd-theme="dark"] .wd-btn.wd-btn--primary.wd-btn--icon-tool:hover,
:root[data-wd-theme="dark"] .wd-to-top.wd-btn--primary:hover {
  border-color: rgba(228, 191, 99, .62);
  background: var(--wd-btn-bg-lapis-hover);
  box-shadow: inset 0 1px 0 rgba(255, 249, 238, .14), 0 10px 24px rgba(0, 0, 0, .42);
}

:root[data-wd-theme="dark"] .wd-btn--load-more {
  box-shadow: 0 8px 20px rgba(0, 0, 0, .34);
}

:root[data-wd-theme="dark"] .wd-btn--icon-search,
:root[data-wd-theme="dark"] .wd-search .wd-btn--primary {
  background: var(--wd-btn-bg-lapis-soft);
}

:root[data-wd-theme="dark"] .wd-btn--icon-search:hover,
:root[data-wd-theme="dark"] .wd-search .wd-btn--primary:hover {
  background: var(--wd-btn-bg-lapis-soft-hover);
}

:root[data-wd-theme="dark"] .wd-menu-panel__blue,
:root[data-wd-theme="dark"] .wd-nav--stuck .wd-menu-panel__blue {
  background: linear-gradient(180deg, #101A1D 0%, #05090C 100%);
}

:root[data-wd-theme="dark"] .wd-menu-panel__frieze,
:root[data-wd-theme="dark"] .wd-menu-panel__bottom {
  background:
    linear-gradient(180deg,
      rgba(3, 5, 7, .82) 0%,
      rgba(3, 5, 7, .42) 10%,
      rgba(126, 95, 39, .78) 18%,
      rgba(228, 191, 99, .86) 42%,
      rgba(196, 160, 81, .90) 50%,
      rgba(228, 191, 99, .76) 58%,
      rgba(105, 75, 30, .82) 82%,
      rgba(3, 5, 7, .50) 92%,
      rgba(3, 5, 7, .86) 100%),
    linear-gradient(90deg, rgba(228, 191, 99, .04), rgba(228, 191, 99, .20), rgba(228, 191, 99, .04)),
    url("../images/wedjat-header/frieze-sliced/dark/menu-double-rule-repeat.webp");
  background-position: center, center, center;
  background-size: 100% 100%, 100% 100%, auto 100%;
  background-repeat: no-repeat, no-repeat, repeat-x;
  box-shadow: inset 0 1px rgba(228, 191, 99, .10), inset 0 -1px rgba(0, 0, 0, .55);
}

:root[data-wd-theme="dark"] .wd-menu-panel__bottom {
  background:
    linear-gradient(180deg,
      rgba(3, 5, 7, .82) 0%,
      rgba(3, 5, 7, .42) 10%,
      rgba(126, 95, 39, .78) 18%,
      rgba(228, 191, 99, .86) 42%,
      rgba(196, 160, 81, .90) 50%,
      rgba(228, 191, 99, .76) 58%,
      rgba(105, 75, 30, .82) 82%,
      rgba(3, 5, 7, .50) 92%,
      rgba(3, 5, 7, .86) 100%),
    linear-gradient(90deg, rgba(228, 191, 99, .04), rgba(228, 191, 99, .20), rgba(228, 191, 99, .04)),
    url("../images/wedjat-header/frieze-sliced/dark/menu-double-rule-repeat.webp");
  background-position: center, center, center;
  background-size: 100% 100%, 100% 100%, auto 100%;
  background-repeat: no-repeat, no-repeat, repeat-x;
}

:root[data-wd-theme="dark"] .wd-nav-panel__inner,
:root[data-wd-theme="dark"] .wd-nav-panel__inner--compact {
  border-color: rgba(228, 191, 99, .26);
  background:
    radial-gradient(circle at 88% 12%, rgba(47, 104, 183, .12), transparent 30%),
    linear-gradient(135deg, rgba(28, 38, 34, .98), rgba(12, 21, 24, .98));
  box-shadow: 0 26px 58px rgba(0, 0, 0, .42);
}

:root[data-wd-theme="dark"] .wd-nav-panel__label {
  border-right-color: rgba(228, 191, 99, .18);
  color: var(--wd-gold-pale);
}

:root[data-wd-theme="dark"] .wd-nav-panel__link {
  color: var(--wd-ink);
}

:root[data-wd-theme="dark"] .wd-nav-panel__desc {
  color: var(--wd-muted);
}

:root[data-wd-theme="dark"] .wd-nav-panel__link:hover,
:root[data-wd-theme="dark"] .wd-nav-panel__link[aria-current="page"] {
  border-color: rgba(115, 218, 212, .26);
  background: rgba(43, 179, 177, .10);
  color: var(--wd-gold-pale);
}

:root[data-wd-theme="dark"] .wd-shell::before {
  background:
    linear-gradient(90deg, rgba(5, 8, 10, .28), rgba(9, 15, 18, .72) 10%, rgba(13, 22, 25, .82) 50%, rgba(9, 15, 18, .72) 90%, rgba(5, 8, 10, .28)),
    linear-gradient(180deg, rgba(228, 191, 99, .06), transparent 22%);
}

:root[data-wd-theme="dark"] .wd-page-panel,
:root[data-wd-theme="dark"] .wd-article,
:root[data-wd-theme="dark"] .wd-related,
:root[data-wd-theme="dark"] .wd-static,
:root[data-wd-theme="dark"] .wd-story-card,
:root[data-wd-theme="dark"] .wd-forum-card,
:root[data-wd-theme="dark"] .wd-search-result,
:root[data-wd-theme="dark"] .wd-search-comment,
:root[data-wd-theme="dark"] .wd-content--search,
:root[data-wd-theme="dark"] .wd-widget,
:root[data-wd-theme="dark"] .wd-sidebar,
:root[data-wd-theme="dark"] .wd-practice-drawer,
:root[data-wd-theme="dark"] .wd-profile__hero {
  border-color: var(--panel-border);
  background:
    radial-gradient(circle at 88% 8%, rgba(47, 104, 183, .10), transparent 30%),
    linear-gradient(180deg, rgba(22, 33, 34, .96), rgba(11, 18, 21, .94));
  box-shadow: var(--panel-shadow), inset 0 1px rgba(255, 249, 238, .06);
}

:root[data-wd-theme="dark"] .wd-practice-drawer {
  --wd-practice-surface: rgba(255, 249, 238, .045);
  --wd-practice-surface-strong: rgba(255, 249, 238, .075);
  --wd-practice-line: rgba(228, 191, 99, .16);
  --wd-practice-text: rgba(255, 249, 238, .88);
  --wd-practice-muted: rgba(255, 249, 238, .58);
  --wd-practice-title: #F1D57E;
}

:root[data-wd-theme="dark"] .wd-practice-drawer__header {
  border-bottom-color: rgba(228, 191, 99, .16);
}

:root[data-wd-theme="dark"] .wd-practice-drawer__title,
:root[data-wd-theme="dark"] .wd-practice-drawer__section-title,
:root[data-wd-theme="dark"] .wd-practice-drawer__orb-title {
  color: var(--wd-practice-text);
}

:root[data-wd-theme="dark"] .wd-practice-drawer__section,
:root[data-wd-theme="dark"] .wd-practice-drawer__feature,
:root[data-wd-theme="dark"] .wd-practice-drawer__orb,
:root[data-wd-theme="dark"] .wd-practice-drawer__transcommunication,
:root[data-wd-theme="dark"] .wd-practice-drawer__color-flow {
  box-shadow: inset 0 1px rgba(255, 249, 238, .05);
}

:root[data-wd-theme="dark"] .wd-static__header,
:root[data-wd-theme="dark"] .wd-story-card__body,
:root[data-wd-theme="dark"] .wd-search-result__body,
:root[data-wd-theme="dark"] .wd-form--profile-edit,
:root[data-wd-theme="dark"] .wd-profile__avatar-panel,
:root[data-wd-theme="dark"] .wd-profile__meta-item {
  border-color: rgba(228, 191, 99, .14);
  background:
    linear-gradient(180deg, rgba(255, 249, 238, .055), rgba(255, 249, 238, .025)),
    rgba(8, 15, 18, .20);
  box-shadow: inset 0 1px rgba(255, 249, 238, .06);
}

:root[data-wd-theme="dark"] .wd-story-card__media,
:root[data-wd-theme="dark"] .wd-search-result__media {
  background-color: #0B1417;
}

:root[data-wd-theme="dark"] .wd-intro {
  border-color: rgba(228, 191, 99, .24);
  background-color: #071012;
  box-shadow: 0 26px 62px rgba(0, 0, 0, .38);
}

:root[data-wd-theme="dark"] .wd-intro::before {
  background: linear-gradient(90deg, rgba(5, 8, 10, .92), rgba(8, 16, 18, .72), rgba(5, 8, 10, .30));
}

:root[data-wd-theme="dark"] .wd-intro__title,
:root[data-wd-theme="dark"] .wd-article__title,
:root[data-wd-theme="dark"] .wd-static__body,
:root[data-wd-theme="dark"] .wd-story-card__title,
:root[data-wd-theme="dark"] .wd-search-result__title,
:root[data-wd-theme="dark"] .wd-profile__name {
  color: var(--wd-ink);
}

:root[data-wd-theme="dark"] .wd-article {
  background:
    radial-gradient(circle at 50% 0%, rgba(228, 191, 99, .10), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(43, 179, 177, .12), transparent 30%),
    linear-gradient(180deg, rgba(22, 33, 34, .98), rgba(10, 18, 21, .96));
}

:root[data-wd-theme="dark"] .wd-article__header {
  border-bottom-color: rgba(228, 191, 99, .16);
}

:root[data-wd-theme="dark"] .wd-article__meta {
  color: rgba(241, 213, 126, .78);
}

:root[data-wd-theme="dark"] .wd-article-reading {
  border-color: rgba(228, 191, 99, .24);
  background: rgba(8, 16, 18, .72);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .34);
}

:root[data-wd-theme="dark"] .wd-article-reading__button {
  border-color: rgba(228, 191, 99, .24);
  background: linear-gradient(145deg, rgba(27, 48, 50, .96), rgba(8, 18, 20, .96));
  color: #F7E8B1;
}

:root[data-wd-theme="dark"] .wd-article-reading__button:hover {
  border-color: rgba(241, 213, 126, .64);
  color: #73DAD4;
}

:root[data-wd-theme="dark"] .wd-article__title {
  color: #F7E8B1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .32);
}

:root[data-wd-theme="dark"] .wd-article__content {
  color: rgba(255, 249, 238, .88);
}

:root[data-wd-theme="dark"] .wd-article__lead {
  color: #FFF4D4;
}

/* DLE generated fullstory body exception: article rich text can contain unclassed paragraphs and inline colors. */
:root[data-wd-theme="dark"] .wd-article__body,
:root[data-wd-theme="dark"] .wd-article__body :is(p, li, div, span, strong, b, em, i) {
  color: rgba(255, 249, 238, .88) !important;
}

:root[data-wd-theme="dark"] .wd-article__body :is(h2, h3, h4, h5, h6) {
  color: #F1D57E !important;
}

:root[data-wd-theme="dark"] .wd-article__content a,
:root[data-wd-theme="dark"] .wd-article__tags a,
:root[data-wd-theme="dark"] .wd-article__actions a {
  color: #73DAD4;
}

:root[data-wd-theme="dark"] .wd-article__content blockquote {
  border-left-color: rgba(241, 213, 126, .72);
  background: rgba(255, 249, 238, .06);
  color: #FFF4D4;
}

:root[data-wd-theme="dark"] .wd-article__tags,
:root[data-wd-theme="dark"] .wd-article__actions {
  border-top-color: rgba(228, 191, 99, .18);
  color: var(--wd-muted);
}

:root[data-wd-theme="dark"] .wd-story-card__summary,
:root[data-wd-theme="dark"] .wd-search-result__body .sres-desc,
:root[data-wd-theme="dark"] .wd-static__context,
:root[data-wd-theme="dark"] .wd-profile__meta-value,
:root[data-wd-theme="dark"] .wd-profile__meta-value--html {
  color: var(--wd-muted);
}

:root[data-wd-theme="dark"] .wd-breadcrumbs,
:root[data-wd-theme="dark"] .wd-main>.berrors,
:root[data-wd-theme="dark"] .wd-main>.dle-info {
  border-color: rgba(228, 191, 99, .14);
  background: linear-gradient(90deg, rgba(15, 111, 115, .12), rgba(13, 22, 25, .92));
  color: var(--wd-muted);
}

:root[data-wd-theme="dark"] .wd-input,
:root[data-wd-theme="dark"] .wd-input--search {
  color: var(--wd-ink);
}

:root[data-wd-theme="dark"] .wd-input::placeholder {
  color: rgba(243, 232, 200, .54);
}

:root[data-wd-theme="dark"] .wd-content,
:root[data-wd-theme="dark"] .wd-pm,
:root[data-wd-theme="dark"] .wd-form,
:root[data-wd-theme="dark"] .wd-search-page,
:root[data-wd-theme="dark"] .wd-comment-card,
:root[data-wd-theme="dark"] .wd-widget {
  color: var(--wd-ink);
}

:root[data-wd-theme="dark"] .wd-form,
:root[data-wd-theme="dark"] .wd-search-page__controls,
:root[data-wd-theme="dark"] .wd-comment-card__content,
:root[data-wd-theme="dark"] .wd-comment-card__actions,
:root[data-wd-theme="dark"] .wd-pm__status {
  border-color: rgba(228, 191, 99, .16);
  background:
    linear-gradient(180deg, rgba(255, 249, 238, .055), rgba(255, 249, 238, .025)),
    rgba(8, 15, 18, .34);
  box-shadow: inset 0 1px rgba(255, 249, 238, .06);
  color: var(--wd-ink);
}

:root[data-wd-theme="dark"] .wd-form {
  background: linear-gradient(168deg, var(--form-shell-top) 0%, var(--form-shell-mid) 40%, var(--form-shell-deep) 100%);
  box-shadow:
    inset 0 1px 0 var(--form-rim-light),
    inset 0 -1px 0 var(--form-rim-deep),
    0 2px 4px rgba(255, 255, 255, .06),
    0 14px 34px -12px rgba(255, 255, 255, .20),
    0 6px 18px -8px rgba(255, 255, 255, .12);
}

:root[data-wd-theme="dark"] .wd-form::after {
  background: url("../images/backgrounds/form-marble-gray.jpg") center / cover no-repeat;
  opacity: .1;
  mix-blend-mode: normal;
}

:root[data-wd-theme="dark"] .wd-form__title,
:root[data-wd-theme="dark"] .wd-form .wd-heading,
:root[data-wd-theme="dark"] .wd-form__label,
:root[data-wd-theme="dark"] .wd-search-page__title,
:root[data-wd-theme="dark"] .wd-search-page__eyebrow,
:root[data-wd-theme="dark"] .wd-pm__title,
:root[data-wd-theme="dark"] .wd-comment-card__author,
:root[data-wd-theme="dark"] .wd-comment-card__admin-label {
  color: var(--wd-gold-pale);
  text-shadow: none;
}

:root[data-wd-theme="dark"] .wd-form__lead,
:root[data-wd-theme="dark"] .wd-form .full-text,
:root[data-wd-theme="dark"] .wd-form__checks,
:root[data-wd-theme="dark"] .wd-form__protect-hint,
:root[data-wd-theme="dark"] .wd-form__question,
:root[data-wd-theme="dark"] .wd-search-page__lead,
:root[data-wd-theme="dark"] .wd-search-page__summary-text,
:root[data-wd-theme="dark"] .wd-comment-card__meta,
:root[data-wd-theme="dark"] .wd-comment-card__date,
:root[data-wd-theme="dark"] .wd-comment-card__admin {
  color: var(--wd-muted);
}

:root[data-wd-theme="dark"] .wd-form__checks,
:root[data-wd-theme="dark"] .wd-form__protect-hint,
:root[data-wd-theme="dark"] .wd-form__question,
:root[data-wd-theme="dark"] .wd-search-page__summary,
:root[data-wd-theme="dark"] .wd-comment-card__group,
:root[data-wd-theme="dark"] .wd-comment-card__admin {
  border-color: rgba(228, 191, 99, .14);
  background: rgba(255, 249, 238, .045);
  box-shadow: inset 0 1px rgba(255, 249, 238, .055);
}

:root[data-wd-theme="dark"] .wd-form__row {
  border: 0;
  background: transparent;
  box-shadow: none;
}

:root[data-wd-theme="dark"] .wd-form__actions,
:root[data-wd-theme="dark"] .wd-form--comment .wd-form__actions {
  border: 0;
  background: transparent;
  box-shadow: none;
}

:root[data-wd-theme="dark"] .wd-comment-card {
  border-color: rgba(228, 191, 99, .16);
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 104, 183, .09), transparent 32%),
    linear-gradient(180deg, rgba(22, 33, 34, .94), rgba(10, 18, 21, .92));
  box-shadow: var(--panel-shadow), inset 0 1px rgba(255, 249, 238, .055);
}

:root[data-wd-theme="dark"] .wd-comment-source {
  border-bottom-color: rgba(228, 191, 99, .18);
  color: var(--wd-ink);
}

:root[data-wd-theme="dark"] .wd-comment-group .wd-comment-source {
  border-color: rgba(228, 191, 99, .18);
  border-bottom: 0;
  background:
    radial-gradient(circle at 94% 0%, rgba(47, 104, 183, .10), transparent 34%),
    linear-gradient(180deg, rgba(29, 43, 42, .96), rgba(17, 28, 29, .92));
  box-shadow: inset 0 1px rgba(255, 249, 238, .055);
}

:root[data-wd-theme="dark"] .wd-search-comment__source {
  border-color: rgba(228, 191, 99, .18);
  border-bottom: 0;
  background:
    radial-gradient(circle at 94% 0%, rgba(47, 104, 183, .10), transparent 34%),
    linear-gradient(180deg, rgba(29, 43, 42, .96), rgba(17, 28, 29, .92));
  box-shadow: inset 0 1px rgba(255, 249, 238, .055);
}

:root[data-wd-theme="dark"] .wd-comment-source__label {
  color: var(--wd-muted-soft);
}

:root[data-wd-theme="dark"] .wd-comment-group>.wd-comment-card {
  border-top-color: rgba(228, 191, 99, .24);
}

:root[data-wd-theme="dark"] .wd-comment-source a,
:root[data-wd-theme="dark"] .wd-comment-card__actions a,
:root[data-wd-theme="dark"] .wd-comment-card__ip,
:root[data-wd-theme="dark"] .pm-menu a,
:root[data-wd-theme="dark"] .wd-content a,
:root[data-wd-theme="dark"] .wd-static__body a,
:root[data-wd-theme="dark"] .wd-search-page__summary strong,
:root[data-wd-theme="dark"] .wd-search-result__link {
  color: var(--wd-teal-light);
}

:root[data-wd-theme="dark"] .wd-comment-card__content,
:root[data-wd-theme="dark"] .wd-comment-card__content :is(p, li, div, span, strong, b, em, i),
:root[data-wd-theme="dark"] .wd-static__body :is(p, li, div, span, strong, b, em, i),
:root[data-wd-theme="dark"] .wd-form .full-text :is(p, li, div, span, strong, b, em, i),
:root[data-wd-theme="dark"] .wd-search-comment :is(p, li, div, span, strong, b, em, i) {
  color: rgba(255, 249, 238, .88) !important;
}

:root[data-wd-theme="dark"] .wd-comment-card__content :is(h1, h2, h3, h4, h5, h6),
:root[data-wd-theme="dark"] .wd-static__body :is(h1, h2, h3, h4, h5, h6),
:root[data-wd-theme="dark"] .wd-form .full-text :is(h1, h2, h3, h4, h5, h6),
:root[data-wd-theme="dark"] .wd-search-comment :is(h1, h2, h3, h4, h5, h6) {
  color: var(--wd-gold-pale) !important;
}

:root[data-wd-theme="dark"] .wd-comment-card__actions a {
  border-color: rgba(115, 218, 212, .24);
  background: rgba(43, 179, 177, .10);
}

:root[data-wd-theme="dark"] #dropmenudiv {
  border-color: rgba(228, 191, 99, .24) !important;
  background: rgba(13, 24, 27, .985) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 249, 238, .06) !important;
  color: var(--wd-ink);
}

:root[data-wd-theme="dark"] #dropmenudiv a {
  color: var(--wd-teal-light) !important;
}

:root[data-wd-theme="dark"] #dropmenudiv a+a {
  border-top-color: rgba(228, 191, 99, .14) !important;
}

:root[data-wd-theme="dark"] #dropmenudiv a:hover,
:root[data-wd-theme="dark"] #dropmenudiv a:focus-visible {
  background: rgba(43, 179, 177, .14) !important;
  color: var(--wd-on-dark) !important;
}

:root[data-wd-theme="dark"] .wd-comment-card__action--danger a {
  border-color: rgba(199, 122, 86, .28);
  background: rgba(140, 44, 45, .12);
  color: #F2A48B;
}

:root[data-wd-theme="dark"] .pm-menu a {
  border-color: rgba(228, 191, 99, .18);
  background: rgba(255, 249, 238, .055);
  box-shadow: inset 0 1px rgba(255, 249, 238, .06);
}

:root[data-wd-theme="dark"] .pm-menu a:hover {
  border-color: rgba(115, 218, 212, .38);
  background: rgba(43, 179, 177, .12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

/* DLE generated controls/tables exception: these fragments are emitted without BEM classes. */
:root[data-wd-theme="dark"] .wd-content table,
:root[data-wd-theme="dark"] .table-resp table {
  background: rgba(8, 15, 18, .34);
  color: var(--wd-ink);
}

:root[data-wd-theme="dark"] .wd-content th,
:root[data-wd-theme="dark"] .wd-content td,
:root[data-wd-theme="dark"] .table-resp th,
:root[data-wd-theme="dark"] .table-resp td {
  border-color: rgba(228, 191, 99, .14);
  color: var(--wd-ink);
}

:root[data-wd-theme="dark"] .wd-content input:not(.wd-input):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
:root[data-wd-theme="dark"] .wd-content select:not(.wd-input),
:root[data-wd-theme="dark"] .wd-content textarea:not(.wd-input),
:root[data-wd-theme="dark"] .wd-search-page__controls input,
:root[data-wd-theme="dark"] .wd-search-page__controls select,
:root[data-wd-theme="dark"] .wd-search-page__controls textarea {
  border-color: var(--wd-input-border);
  background: var(--wd-input-bg);
  color: var(--wd-ink);
}

:root[data-wd-theme="dark"] .wd-content input:not(.wd-input):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"])::placeholder,
:root[data-wd-theme="dark"] .wd-content textarea:not(.wd-input)::placeholder,
:root[data-wd-theme="dark"] .wd-search-page__controls input::placeholder,
:root[data-wd-theme="dark"] .wd-search-page__controls textarea::placeholder {
  color: rgba(243, 232, 200, .54);
}

.wd-form--comment .comments_subscribe input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  appearance: auto;
}

:root[data-wd-theme="dark"] .wd-content button:not(.wd-btn),
:root[data-wd-theme="dark"] .wd-content input[type="button"]:not(.wd-btn),
:root[data-wd-theme="dark"] .wd-content input[type="submit"]:not(.wd-btn),
:root[data-wd-theme="dark"] .wd-content input[type="reset"]:not(.wd-btn),
:root[data-wd-theme="dark"] .wd-search-page__controls button,
:root[data-wd-theme="dark"] .wd-search-page__controls input[type="button"],
:root[data-wd-theme="dark"] .wd-search-page__controls input[type="submit"],
:root[data-wd-theme="dark"] .wd-search-page__controls input[type="reset"] {
  border-color: rgba(115, 218, 212, .24);
  background: rgba(43, 179, 177, .14);
  color: var(--wd-on-dark);
}

:root[data-wd-theme="dark"] .wd-main>.berrors,
:root[data-wd-theme="dark"] .wd-main>.dle-info,
:root[data-wd-theme="dark"] .wd-content>.info,
:root[data-wd-theme="dark"] .berrors,
:root[data-wd-theme="dark"] .dle-info {
  border-color: rgba(228, 191, 99, .14);
  background:
    linear-gradient(90deg, rgba(15, 111, 115, .12), rgba(13, 22, 25, .92));
  color: var(--wd-muted);
  box-shadow: var(--panel-shadow);
}

:root[data-wd-theme="dark"] .berrors b,
:root[data-wd-theme="dark"] .dle-info b {
  color: var(--wd-gold-pale);
}

:root[data-wd-theme="dark"] .wd-form--profile-edit::before {
  background: linear-gradient(180deg, rgba(228, 191, 99, .46), rgba(43, 179, 177, .24) 52%, transparent 100%);
}

:root[data-wd-theme="dark"] .wd-footer {
  background-color: #05080A;
}

:root[data-wd-theme="dark"] .wd-footer::before {
  background: linear-gradient(90deg, #05080A 0%, rgba(13, 28, 31, .94) 58%, rgba(6, 9, 11, .92) 100%);
}

/* DLE generated HTML exception: jQuery UI new PM dialog has fixed engine classes. */
.dle-popup-newpm {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  width: min(460px, calc(100vw - 32px)) !important;
  height: auto !important;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(228, 191, 99, .42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 0%, rgba(100, 207, 202, .22), transparent 42%),
    linear-gradient(160deg, rgba(17, 30, 59, .98) 0%, rgba(8, 63, 66, .97) 52%, rgba(17, 24, 27, .98) 100%);
  color: var(--wd-on-dark);
  box-shadow: 0 28px 70px rgba(6, 10, 23, .44), inset 0 1px rgba(255, 255, 255, .14);
  transform: translate(-50%, -50%) !important;
  z-index: 10020 !important;
}

.dle-popup-newpm .ui-dialog-titlebar {
  min-height: 54px;
  padding: 16px 58px 14px 20px;
  border: 0;
  border-bottom: 1px solid rgba(228, 191, 99, .22);
  background: linear-gradient(90deg, rgba(17, 24, 27, .78), rgba(47, 104, 183, .28), rgba(17, 24, 27, .72));
  cursor: move;
}

.dle-popup-newpm .ui-dialog-title {
  display: block;
  float: none;
  margin: 0;
  overflow: hidden;
  color: var(--wd-gold-pale);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dle-popup-newpm .ui-dialog-titlebar-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--wd-on-dark);
  font-size: 0;
  line-height: 1;
  overflow: hidden;
  text-indent: -999px;
  cursor: pointer;
}

.dle-popup-newpm .ui-dialog-titlebar-close::before {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--wd-gold-pale);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  text-indent: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .32);
}

.dle-popup-newpm .ui-button-icon,
.dle-popup-newpm .ui-button-icon-space {
  display: none;
}

.dle-popup-newpm .ui-dialog-content {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(48vh, 330px) !important;
  padding: 20px 22px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 249, 238, .96), rgba(232, 247, 246, .92));
  color: var(--wd-ink);
  font-size: .94rem;
  line-height: 1.55;
  overflow: auto;
}

.dle-popup-newpm .ui-dialog-content b {
  color: var(--wd-teal-deep);
  font-weight: 800;
}

.dle-popup-newpm .ui-dialog-content i {
  color: var(--wd-muted);
}

.dle-popup-newpm .ui-dialog-buttonpane {
  margin: 0;
  padding: 14px 16px 16px;
  border: 0;
  border-top: 1px solid rgba(15, 111, 115, .14);
  background: linear-gradient(180deg, rgba(232, 247, 246, .95), rgba(255, 249, 238, .94));
}

.dle-popup-newpm .ui-dialog-buttonset {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dle-popup-newpm .ui-button:not(.ui-dialog-titlebar-close) {
  min-height: 38px;
  margin: 0 !important;
  padding: 8px 14px;
  border: 1px solid rgba(228, 191, 99, .46);
  border-radius: 999px;
  background: linear-gradient(145deg, var(--wd-teal-light), var(--wd-teal) 50%, var(--wd-teal-deep));
  color: var(--wd-on-dark);
  font-weight: 800;
  font-size: .82rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(8, 63, 66, .16);
  cursor: pointer;
}

.dle-popup-newpm .ui-button:not(.ui-dialog-titlebar-close):hover {
  background: linear-gradient(145deg, #7dd9d5, var(--wd-teal-light) 48%, var(--wd-teal));
}

.dle-popup-newpm .ui-dialog-titlebar-close.ui-button {
  min-height: 0;
  margin: 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 520px) {
  .dle-popup-newpm .ui-dialog-buttonset {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dle-popup-newpm .ui-button:not(.ui-dialog-titlebar-close) {
    width: 100%;
  }
}

/* DLE generated HTML exception: author card is injected into a jQuery UI dialog. */
body:has(.wd-user-popup) .ui-widget-overlay {
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  background: rgba(5, 8, 10, .68);
  backdrop-filter: blur(4px);
  opacity: 1;
  z-index: 10010 !important;
}

.ui-dialog:has(.wd-user-popup) {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  width: min(520px, calc(100vw - 32px)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 32px);
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--wd-line-strong);
  border-radius: var(--wd-radius);
  background: var(--wd-paper-strong);
  color: var(--wd-ink);
  font-family: var(--wd-font-sans);
  font-size: var(--wd-text-base);
  line-height: 1.5;
  box-shadow: var(--wd-shadow);
  transform: translate(-50%, -50%) !important;
  z-index: 10020 !important;
}

.ui-dialog:has(.wd-user-popup) .ui-dialog-titlebar {
  position: relative;
  display: flex;
  min-height: 56px;
  padding: 17px 60px 16px 22px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--wd-line);
  background: linear-gradient(135deg, var(--wd-night-soft), var(--wd-teal-dark));
  cursor: move;
}

.ui-dialog:has(.wd-user-popup) .ui-dialog-title {
  display: block;
  float: none;
  margin: 0;
  overflow: hidden;
  color: var(--wd-gold-pale);
  font-family: var(--wd-font-sans);
  font-weight: 800;
  font-size: var(--wd-text-lg);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-dialog:has(.wd-user-popup) .ui-dialog-titlebar-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  min-height: 0;
  margin: 0 !important;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(241, 213, 126, .28);
  border-radius: 50%;
  background: rgba(255, 249, 238, .08);
  box-shadow: none;
  color: var(--wd-gold-pale);
  font-size: 0;
  line-height: 1;
  text-indent: -999px;
  cursor: pointer;
}

.ui-dialog:has(.wd-user-popup) .ui-dialog-titlebar-close::before {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--wd-gold-pale);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  text-indent: 0;
}

.ui-dialog:has(.wd-user-popup) .ui-dialog-titlebar-close:hover {
  border-color: rgba(241, 213, 126, .56);
  background: rgba(255, 249, 238, .14);
}

.ui-dialog:has(.wd-user-popup) .ui-button-icon,
.ui-dialog:has(.wd-user-popup) .ui-button-icon-space {
  display: none;
}

.ui-dialog:has(.wd-user-popup) .ui-dialog-content {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(62dvh, 430px) !important;
  padding: 24px;
  overflow: auto;
  border: 0;
  background: var(--wd-paper-strong);
  color: var(--wd-ink);
  font-family: var(--wd-font-sans);
  font-size: .95rem;
  line-height: 1.5;
}

.ui-dialog:has(.wd-user-popup) .ui-dialog-buttonpane {
  margin: 0;
  padding: 14px 18px 16px;
  border: 0;
  border-top: 1px solid var(--wd-line);
  background: var(--wd-paper-soft);
}

.ui-dialog:has(.wd-user-popup) .ui-dialog-buttonset {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ui-dialog:has(.wd-user-popup) .ui-button:not(.ui-dialog-titlebar-close) {
  min-height: 38px;
  margin: 0 !important;
  padding: 8px 14px;
  border: 1px solid var(--wd-btn-border-gold-soft);
  border-radius: 999px;
  background: var(--wd-btn-bg-lapis);
  color: var(--wd-on-dark);
  font-family: var(--wd-font-sans);
  font-weight: 800;
  font-size: var(--wd-text-sm);
  line-height: 1;
  box-shadow: var(--wd-btn-shadow);
  cursor: pointer;
}

.ui-dialog:has(.wd-user-popup) .ui-button:not(.ui-dialog-titlebar-close):hover {
  background: var(--wd-btn-bg-lapis-hover);
}

.wd-user-popup {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  position: static;
}

.wd-user-popup__aside,
.wd-user-popup__facts {
  float: none;
  width: auto;
}

.wd-user-popup__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wd-user-popup__avatar {
  position: static;
  display: block;
  width: 120px;
  height: 120px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--wd-line-strong);
  border-radius: 12px;
  background: var(--wd-paper-soft);
  box-shadow: 0 8px 22px rgba(29, 43, 42, .14);
}

.wd-user-popup__avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd-user-popup__status {
  display: inline-flex;
  margin: 12px 0 0;
  padding: 5px 11px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 800;
  font-size: var(--wd-text-sm);
  line-height: 1.2;
}

.wd-user-popup__status--online {
  background: rgba(43, 179, 177, .14);
  color: var(--wd-teal-deep);
}

.wd-user-popup__status--offline {
  background: rgba(74, 82, 77, .12);
  color: var(--wd-muted);
}

.wd-user-popup__facts {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 9px;
  list-style: none;
}

.wd-user-popup__facts li {
  padding: 0;
  color: var(--wd-ink);
  overflow-wrap: anywhere;
}

.wd-user-popup__facts b,
.wd-user-popup__facts a {
  color: var(--wd-teal-deep);
}

:root[data-wd-theme="dark"] .ui-dialog:has(.wd-user-popup) {
  border-color: var(--wd-line-strong);
  background: var(--wd-paper-strong);
  box-shadow: 0 22px 62px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 249, 238, .06);
}

:root[data-wd-theme="dark"] .ui-dialog:has(.wd-user-popup) .ui-dialog-content {
  background: var(--wd-paper-strong);
}

:root[data-wd-theme="dark"] .wd-user-popup__facts b,
:root[data-wd-theme="dark"] .wd-user-popup__facts a,
:root[data-wd-theme="dark"] .wd-user-popup__status--online {
  color: var(--wd-teal-light);
}

@media (max-width: 520px) {
  .ui-dialog:has(.wd-user-popup) {
    width: min(420px, calc(100vw - 20px)) !important;
    max-height: calc(100dvh - 20px);
  }

  .ui-dialog:has(.wd-user-popup) .ui-dialog-content {
    max-height: calc(100dvh - 77px) !important;
    padding: 20px 18px;
  }

  .wd-user-popup {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wd-user-popup__facts {
    width: 100%;
    text-align: left;
  }

  .ui-dialog:has(.wd-user-popup) .ui-dialog-buttonset {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ui-dialog:has(.wd-user-popup) .ui-button:not(.ui-dialog-titlebar-close) {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .wd-article__header {
    display: grid;
    justify-items: center;
  }

  .wd-article-reading {
    position: fixed;
    top: auto;
    right: var(--wd-article-reading-right, 12px);
    bottom: var(--wd-article-reading-bottom, 12px);
    margin: 0;
  }

  .wd-article-reading.wd-article-reading--bottom {
    position: absolute;
    right: 12px;
    bottom: 12px;
  }

  .wd-profile {
    margin-bottom: var(--wd-space-6);
  }

  .wd-profile__hero {
    grid-template-columns: 1fr;
    padding: var(--wd-space-4);
    border-radius: 18px;
  }

  .wd-profile__avatar-panel {
    justify-items: center;
  }

  .wd-profile__stats,
  .wd-profile__actions {
    width: 100%;
  }

  .wd-profile__heading {
    text-align: center;
  }

  .wd-profile__group {
    justify-content: center;
  }

  .wd-profile__meta {
    grid-template-columns: 1fr;
  }

  .wd-shell::before {
    background:
      linear-gradient(90deg,
        rgba(245, 240, 230, .34) 0%,
        rgba(255, 249, 238, .80) 8%,
        rgba(255, 249, 238, .90) 50%,
        rgba(255, 249, 238, .80) 92%,
        rgba(245, 240, 230, .34) 100%);
  }

  .wd-intro::before {
    background: linear-gradient(90deg, rgba(17, 24, 27, .94), rgba(17, 24, 27, .78) 68%, rgba(17, 24, 27, .46));
  }
}

/* Personal messages archive: template-owned skin for DLE-generated table markup. */
.wd-pm__nav-shell,
.wd-pm__archive {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--form-rim);
  border-radius: var(--form-radius);
  background: linear-gradient(168deg, var(--form-shell-top), var(--form-shell-mid) 42%, var(--form-shell-deep));
  box-shadow: inset 0 1px 0 var(--form-rim-light), 0 14px 34px rgba(29, 43, 42, .09);
}

.wd-pm__nav-shell::before,
.wd-pm__archive::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/backgrounds/form-paper-antique.jpg") center/cover no-repeat;
  opacity: .2;
  pointer-events: none;
}

.wd-pm__nav-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--wd-space-4) var(--wd-space-6);
  padding: clamp(20px, 3vw, 32px);
}

.wd-pm__header,
.wd-pm__archive-header {
  margin: 0;
}

.wd-pm__eyebrow {
  margin: 0 0 5px;
  color: var(--wd-gold-deep);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wd-pm__title,
.wd-pm__archive-title {
  margin: 0;
  color: var(--form-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.1;
}

.wd-pm__nav-shell .pm-menu {
  grid-column: 1;
  align-self: end;
}

.wd-pm__nav-shell .pm-menu li {
  margin: 0;
}

.wd-pm__nav-shell .pm-menu a {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 9px;
  line-height: 1.2;
}

.wd-pm__status {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: min(280px, 30vw);
  align-self: center;
  padding: 14px 16px;
  border: 1px solid rgba(140, 95, 40, .14);
  border-radius: 12px;
  background: rgba(255, 253, 247, .54);
  color: var(--form-muted);
  font-size: var(--wd-text-sm);
}

.wd-pm__status-label {
  color: var(--form-heading);
  font-weight: 700;
}

.wd-pm__status-value {
  font-size: .75rem;
}

.wd-pm__status .pm_progress_bar {
  height: 6px;
  margin: 9px 0 7px;
  border-radius: 99px;
  background: rgba(29, 43, 42, .1);
}

.wd-pm__status .pm_progress_bar span {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wd-teal), var(--wd-gold));
}

.wd-pm__archive {
  padding: clamp(18px, 2.6vw, 30px);
}

.wd-pm__archive-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--wd-space-4);
  margin-bottom: var(--wd-space-5);
}

.wd-pm__archive-title {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.wd-pm__archive-hint {
  color: var(--form-muted);
  font-size: .75rem;
}

.wd-pm__table {
  overflow: visible;
  border: 1px solid rgba(140, 95, 40, .14);
  border-radius: 14px;
  background: rgba(255, 253, 247, .52);
}

.wd-pm__table .pm {
  width: 100% !important;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.wd-pm__table .pm tr {
  background: transparent;
}

.wd-pm__table .pm tr:first-child {
  color: var(--form-muted);
  background: rgba(140, 95, 40, .055);
}

.wd-pm__table .pm tr:not(:first-child):not(:last-child):not(:nth-last-child(2)) {
  transition: background .18s ease;
}

.wd-pm__table .pm tr:not(:first-child):not(:last-child):not(:nth-last-child(2)):hover {
  background: rgba(43, 179, 177, .065);
}

.wd-pm__table .pm tr:has(.pm-unread-image) {
  background: rgba(196, 160, 81, .09);
  box-shadow: inset 3px 0 var(--wd-gold);
}

.wd-pm__table .pm td {
  padding: 13px 12px;
  border: 0;
  border-bottom: 1px solid rgba(140, 95, 40, .12);
  color: var(--form-text);
  font-size: .84rem;
  vertical-align: middle;
}

.wd-pm__table .pm tr:first-child td {
  padding-block: 10px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.wd-pm__table .pm td:first-child {
  width: 42px !important;
  text-align: center;
}

.wd-pm__table .pm td:nth-child(3) {
  width: 150px !important;
}

.wd-pm__table .pm td:nth-child(4) {
  width: 145px !important;
  color: var(--form-muted);
  font-variant-numeric: tabular-nums;
}

.wd-pm__table .pm td:last-child {
  width: 52px !important;
}

.wd-pm__table .pm_subj a {
  color: var(--form-heading);
  font-size: .9rem;
  text-decoration: none;
}

.wd-pm__table .pm_subj a:hover,
.wd-pm__table .pm_from a:hover {
  color: var(--form-primary);
}

.wd-pm__table .pm_from a {
  color: var(--form-primary-dark);
  font-weight: 650;
  text-decoration: none;
}

.wd-pm__table .pm img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: .72;
}

.wd-pm__table .pm input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--form-primary-dark);
}

.wd-pm__table .pm tr:nth-last-child(2) {
  display: none;
}

.wd-pm__table .pm tr:last-child td {
  padding: 14px;
  border-bottom: 0;
  background: rgba(140, 95, 40, .04);
}

.wd-pm__table .pm tr:last-child select {
  width: auto;
  min-width: 180px;
  min-height: 38px;
  margin: 0 8px 0 0;
  border-radius: 9px;
}

.wd-pm__table .pm tr:last-child input[type="submit"] {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(228, 191, 99, .45);
  border-radius: 9px;
  background: var(--wd-btn-bg-lapis);
  color: #fff;
  font-weight: 700;
}

:root[data-wd-theme="dark"] .wd-pm__nav-shell::before,
:root[data-wd-theme="dark"] .wd-pm__archive::before {
  background-image: url("../images/backgrounds/form-marble-gray.jpg");
  opacity: .08;
}

:root[data-wd-theme="dark"] .wd-pm__status,
:root[data-wd-theme="dark"] .wd-pm__table {
  border-color: rgba(228, 191, 99, .14);
  background: rgba(255, 249, 238, .035);
}

:root[data-wd-theme="dark"] .wd-pm__table .pm tr,
:root[data-wd-theme="dark"] .wd-pm__table .pm tr:nth-child(2n + 2) {
  background-color: transparent;
}

:root[data-wd-theme="dark"] .wd-pm__table .pm tr:first-child,
:root[data-wd-theme="dark"] .wd-pm__table .pm tr:last-child td {
  background: rgba(255, 249, 238, .045);
}

:root[data-wd-theme="dark"] .wd-pm__table .pm tr:has(.pm-unread-image) {
  background: rgba(228, 191, 99, .075);
}

:root[data-wd-theme="dark"] .wd-pm__table .pm tr:not(:first-child):not(:last-child):not(:nth-last-child(2)):hover {
  background: rgba(43, 179, 177, .08);
}

:root[data-wd-theme="dark"] .wd-pm__table .pm td {
  border-color: rgba(228, 191, 99, .11);
  color: var(--form-text);
}

/* Statistics: reuse the approved personal-message archive list language. */
.wd-stats__archive {
  margin-top: var(--wd-space-6);
}

.wd-stats__archive-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--wd-space-4);
  margin-bottom: var(--wd-space-5);
}

.wd-stats__archive-title {
  margin: 0;
  color: var(--form-heading);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.1;
}

.wd-stats__archive-hint {
  color: var(--form-muted);
  font-size: .75rem;
}

.wd-stats__table {
  overflow-x: auto;
  border: 1px solid rgba(140, 95, 40, .14);
  border-radius: 14px;
  background: rgba(255, 253, 247, .52);
}

.wd-stats__table .userstop {
  width: 100% !important;
  min-width: 680px;
  border: 0;
  border-collapse: collapse;
  table-layout: auto;
}

.wd-stats__table .userstop tr,
.wd-stats__table .userstop tr:nth-child(2n + 2) {
  background: transparent;
  transition: background .18s ease;
}

.wd-stats__table .userstop tr:first-child {
  color: var(--form-muted);
  background: rgba(140, 95, 40, .055);
}

.wd-stats__table .userstop tr:not(:first-child):hover {
  background: rgba(43, 179, 177, .065);
}

.wd-stats__table .userstop :is(td, th) {
  padding: 13px 12px;
  border: 0;
  border-bottom: 1px solid rgba(140, 95, 40, .12);
  color: var(--form-text);
  font-size: .84rem;
  text-align: left;
  vertical-align: middle;
}

.wd-stats__table .userstop tr:first-child :is(td, th) {
  padding-block: 10px;
  color: var(--form-muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.wd-stats__table .userstop tr:last-child :is(td, th) {
  border-bottom: 0;
}

.wd-stats__table .userstop a {
  color: var(--form-primary-dark);
  font-weight: 650;
  text-decoration: none;
}

.wd-stats__table .userstop a:hover {
  color: var(--form-primary);
}

:root[data-wd-theme="dark"] .wd-stats__table {
  border-color: rgba(228, 191, 99, .14);
  background: rgba(255, 249, 238, .035);
}

:root[data-wd-theme="dark"] .wd-stats__table .userstop tr,
:root[data-wd-theme="dark"] .wd-stats__table .userstop tr:nth-child(2n + 2) {
  background-color: transparent;
}

:root[data-wd-theme="dark"] .wd-stats__table .userstop tr:first-child {
  background: rgba(255, 249, 238, .045);
}

:root[data-wd-theme="dark"] .wd-stats__table .userstop tr:not(:first-child):hover {
  background: rgba(43, 179, 177, .08);
}

:root[data-wd-theme="dark"] .wd-stats__table .userstop :is(td, th) {
  border-color: rgba(228, 191, 99, .11);
  color: var(--form-text);
}

@media (max-width: 720px) {
  .wd-pm__nav-shell {
    grid-template-columns: 1fr;
  }

  .wd-pm__nav-shell .pm-menu,
  .wd-pm__status {
    grid-column: 1;
    grid-row: auto;
  }

  .wd-pm__status {
    width: 100%;
  }

  .wd-pm__archive-header {
    align-items: start;
    flex-direction: column;
  }

  .wd-pm__table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .wd-pm__table .pm,
  .wd-pm__table .pm tbody {
    display: block;
  }

  .wd-pm__table .pm tr:first-child {
    display: none;
  }

  .wd-pm__table .pm tr:not(:first-child):not(:last-child):not(:nth-last-child(2)) {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 4px 10px;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid rgba(140, 95, 40, .14);
    border-radius: 12px;
    background: rgba(255, 253, 247, .52);
  }

  .wd-pm__table .pm td {
    width: auto !important;
    padding: 0;
    border: 0;
    text-align: left !important;
  }

  .wd-pm__table .pm td:first-child {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .wd-pm__table .pm .pm_subj {
    grid-column: 2;
    grid-row: 1;
  }

  .wd-pm__table .pm .pm_from {
    grid-column: 2;
    grid-row: 2;
    font-size: .78rem;
  }

  .wd-pm__table .pm .pm_date {
    grid-column: 2;
    grid-row: 3;
    font-size: .72rem;
  }

  .wd-pm__table .pm .pm_checkbox {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .wd-pm__table .pm tr:last-child,
  .wd-pm__table .pm tr:last-child td {
    display: block;
    background: transparent;
  }

  .wd-pm__table .pm tr:last-child td:last-child {
    text-align: left !important;
  }

  .wd-pm__table .pm tr:last-child select {
    width: 100%;
    margin: 0 0 8px;
  }

  .wd-pm__table .pm tr:last-child input[type="submit"] {
    width: 100%;
  }

  :root[data-wd-theme="dark"] .wd-pm__table .pm tr:not(:first-child):not(:last-child):not(:nth-last-child(2)) {
    border-color: rgba(228, 191, 99, .14);
    background: rgba(255, 249, 238, .035);
  }

  .wd-stats__archive-header {
    align-items: start;
    flex-direction: column;
  }

  .wd-stats__table {
    border-radius: 12px;
  }
}

/* Personal message reading view. */
.wd-pm-letter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--form-rim);
  border-radius: var(--form-radius);
  background: linear-gradient(168deg, var(--form-shell-top), var(--form-shell-mid) 42%, var(--form-shell-deep));
  box-shadow: inset 0 1px 0 var(--form-rim-light), 0 14px 34px rgba(29, 43, 42, .09);
}

.wd-pm-letter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/backgrounds/form-paper-antique.jpg") center/cover no-repeat;
  opacity: .2;
  pointer-events: none;
}

.wd-pm-letter__header {
  display: flex;
  align-items: center;
  gap: var(--wd-space-4);
  padding: clamp(18px, 2.6vw, 28px);
  border-bottom: 1px solid rgba(140, 95, 40, .14);
  background: rgba(255, 253, 247, .34);
}

.wd-pm-letter__avatar {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(196, 160, 81, .36);
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 5px 14px rgba(29, 43, 42, .1);
}

.wd-pm-letter__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd-pm-letter__sender {
  min-width: 0;
}

.wd-pm-letter__author {
  margin: 0;
  color: var(--form-heading);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.wd-pm-letter__author a {
  color: inherit;
  text-decoration: none;
}

.wd-pm-letter__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 5px;
  color: var(--form-muted);
  font-size: .78rem;
}

.wd-pm-letter__meta time {
  font-variant-numeric: tabular-nums;
}

.wd-pm-letter__content {
  margin: clamp(14px, 2.5vw, 26px);
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(196, 160, 81, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  color: var(--form-text);
  font-size: .98rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62);
}

.wd-pm-letter__content> :first-child {
  margin-top: 0;
}

.wd-pm-letter__content> :last-child {
  margin-bottom: 0;
}

/* DLE generated quote markup: restore visible nesting inside a letter. */
.wd-pm-letter__content .title_quote {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin: 8px 0 0 8px;
  padding: 2px 7px;
  border: 1px solid rgba(196, 160, 81, .24);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(196, 160, 81, .1);
  color: var(--wd-gold-deep);
  font-size: .66rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
}

.wd-pm-letter__content .quote {
  position: relative;
  min-height: 0;
  margin: 0 0 8px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(196, 160, 81, .22);
  border-left: 3px solid var(--wd-gold);
  border-radius: 10px;
  background: rgba(245, 240, 230, .78);
  color: var(--form-muted);
  font-size: .82rem;
  font-style: normal;
  line-height: 1.45;
  box-shadow: none;
}

.wd-pm-letter__content .quote::after {
  content: none;
}

.wd-pm-letter__content .quote .title_quote {
  margin-top: 7px;
  border-color: rgba(43, 179, 177, .22);
  background: rgba(43, 179, 177, .08);
  color: var(--form-primary-dark);
}

.wd-pm-letter__content .quote .quote {
  margin: 0 0 7px 8px;
  border-color: rgba(43, 179, 177, .2);
  border-left-color: var(--form-primary);
  background: rgba(255, 253, 247, .7);
}

.wd-pm-letter__content .quote_body>p {
  margin: 0 0 6px;
}

.wd-pm-letter__content .quote_body>p:last-child {
  margin-bottom: 0;
}

.wd-pm-letter__content .quote .quote .quote {
  border-left-color: var(--wd-lapis);
  background: rgba(47, 104, 183, .045);
}

.wd-pm-letter__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wd-space-4);
  padding: 0 clamp(18px, 2.6vw, 28px) clamp(18px, 2.6vw, 28px);
}

.wd-pm-letter__actions-label {
  color: var(--form-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wd-pm-letter__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wd-pm-letter__actions li {
  margin: 0;
}

.wd-pm-letter__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid rgba(43, 179, 177, .22);
  border-radius: 9px;
  background: rgba(255, 253, 247, .5);
  color: var(--form-primary-dark);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.wd-pm-letter__actions li:first-child a {
  border-color: rgba(228, 191, 99, .48);
  background: var(--wd-btn-bg-lapis);
  color: #fff;
}

.wd-pm-letter__actions a:hover {
  border-color: var(--form-primary);
  background: rgba(43, 179, 177, .1);
}

.wd-pm-letter__actions li:first-child a:hover {
  color: #fff;
  filter: brightness(1.06);
}

:root[data-wd-theme="dark"] .wd-pm-letter::before {
  background-image: url("../images/backgrounds/form-marble-gray.jpg");
  opacity: .08;
}

:root[data-wd-theme="dark"] .wd-pm-letter__header {
  border-color: rgba(228, 191, 99, .14);
  background: rgba(255, 249, 238, .035);
}

:root[data-wd-theme="dark"] .wd-pm-letter__content {
  border-color: rgba(228, 191, 99, .18);
  background: #2B3B3D;
}

:root[data-wd-theme="dark"] .wd-pm-letter__content .title_quote {
  border-color: rgba(228, 191, 99, .24);
  background: rgba(228, 191, 99, .08);
  color: var(--wd-gold-pale);
}

:root[data-wd-theme="dark"] .wd-pm-letter__content .quote {
  border-color: rgba(228, 191, 99, .18);
  border-left-color: rgba(241, 213, 126, .72);
  background: rgba(255, 249, 238, .055);
  color: rgba(243, 232, 200, .72);
}

:root[data-wd-theme="dark"] .wd-pm-letter__content .quote .title_quote {
  border-color: rgba(115, 218, 212, .2);
  background: rgba(43, 179, 177, .07);
  color: var(--wd-teal-light);
}

:root[data-wd-theme="dark"] .wd-pm-letter__content .quote .quote {
  border-color: rgba(115, 218, 212, .16);
  border-left-color: rgba(115, 218, 212, .62);
  background: rgba(43, 179, 177, .035);
}

:root[data-wd-theme="dark"] .wd-pm-letter__content .quote .quote .quote {
  border-left-color: rgba(120, 159, 221, .62);
  background: rgba(65, 111, 186, .035);
}

/* The actual latest reply is emitted by DLE as loose nodes after quote_block. */
.wd-pm-letter__latest {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  color: var(--form-text);
}

:root[data-wd-theme="dark"] .wd-pm-letter__latest {
  background: #2B3B3D;
  color: #FFF4D4;
}

:root[data-wd-theme="dark"] .wd-pm-letter__actions a {
  border-color: rgba(228, 191, 99, .16);
  background: rgba(255, 249, 238, .04);
  color: var(--wd-teal-light);
}

@media (max-width: 620px) {
  .wd-pm-letter__header {
    align-items: flex-start;
  }

  .wd-pm-letter__avatar {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .wd-pm-letter__content {
    margin: 10px;
    padding: 16px;
  }

  .wd-pm-letter__content .quote,
  .wd-pm-letter__content .quote .quote {
    margin-left: 0;
    padding: 9px 10px 9px 12px;
  }

  .wd-pm-letter__latest {
    padding: 15px 16px;
  }

  .wd-pm-letter__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .wd-pm-letter__actions {
    justify-content: stretch;
  }

  .wd-pm-letter__actions li:first-child {
    flex: 1 0 100%;
  }

  .wd-pm-letter__actions li:first-child a {
    justify-content: center;
    width: 100%;
  }
}

/* All form variants use material and shadow separation without an outer border. */
.wd-form.wd-form {
  border: 0;
}

/* DLE BB editor: one coherent dark toolbar with high-contrast icons. */
:root[data-wd-theme="dark"] .wd-form .bb-editor .bb-pane {
  border-color: rgba(228, 191, 99, .18) !important;
  background: linear-gradient(180deg, #263638 0%, #1B2A2D 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07) !important;
}

:root[data-wd-theme="dark"] .wd-form .bb-editor .bb-btn {
  border-color: rgba(255, 255, 255, .06) !important;
  background: rgba(255, 255, 255, .035) !important;
  color: #EAF5F2 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

:root[data-wd-theme="dark"] .wd-form .bb-editor .bb-btn:hover,
:root[data-wd-theme="dark"] .wd-form .bb-editor .bb-btn:focus-visible {
  border-color: rgba(115, 218, 212, .3) !important;
  background: rgba(43, 179, 177, .18) !important;
  color: #FFFFFF !important;
}

:root[data-wd-theme="dark"] .wd-form .bb-editor .bb-btn:active,
:root[data-wd-theme="dark"] .wd-form .bb-editor .bb-btn.is-active {
  border-color: rgba(228, 191, 99, .4) !important;
  background: rgba(228, 191, 99, .18) !important;
  color: #FFF4D4 !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .22) !important;
}

:root[data-wd-theme="dark"] .wd-form .bb-editor .bb-sep {
  border-color: rgba(255, 255, 255, .1) !important;
}

@media (prefers-reduced-motion: reduce) {
  .wd-intro {
    --wd-hero-parallax: 0px !important;
  }

  .wd-intro::after {
    will-change: auto;
  }

  .wd-atmosphere__image, .wd-page.wd-page--reveal-ready .is-reveal {
    transition: none;
  }
}

/* Outer surfaces are separated by theme-aware soft shadows, never hard rims. */
:is(.wd-nav-panel__inner,
  .wd-tooltip,
  .wd-static,
  .wd-intro,
  .wd-story-card,
  .wd-forum-card,
  .wd-content .iching-page,
  .wd-sidebar,
  .wd-practice-drawer,
  .wd-search,
  .wd-widget,
  .wd-taxonomy,
  .berrors,
  .dle-info,
  .wd-content > .info,
  .wd-fullstory > .berrors::before,
  .wd-content--search,
  .wd-search-page,
  .wd-search-result,
  .wd-comment-group .wd-comment-source,
  .wd-search-comment__source,
  .wd-comment-card,
  .wd-profile__hero,
  .wd-profile__avatar-panel,
  .dle-popup-newpm,
  .ui-dialog:has(.wd-user-popup),
  .wd-pm__nav-shell,
  .wd-pm__archive,
  .wd-pm__table,
  .wd-stats__table,
  .wd-pm-letter,
  .wd-page-panel:not(:has(.wd-content--search, .wd-static, .iching-page)) .table-resp) {
  border: 0;
  box-shadow: var(--wd-surface-shadow);
}

:is(.wd-practice-drawer__section,
  .wd-practice-drawer__item,
  .wd-forum-stream__status,
  .wd-search-page__controls,
  .wd-comment-card__content,
  .wd-profile__stat,
  .wd-profile__meta-item,
  .wd-pm__status,
  .wd-pm-letter__content,
  .wd-pm__table .pm tr:not(:first-child):not(:last-child):not(:nth-last-child(2))) {
  border: 0;
  box-shadow: var(--wd-surface-shadow-soft);
}

.wd-comment-card__content {
  box-shadow: inset 4px 0 0 rgba(15, 111, 115, .16), var(--wd-surface-shadow-soft);
}

:root[data-wd-theme="dark"] .wd-comment-card__content {
  box-shadow: inset 4px 0 0 rgba(228, 191, 99, .16), var(--wd-surface-shadow-soft);
}

.wd-search-page__controls td.search {
  border: 0;
}

.wd-pm-letter__content .title_quote {
  border: 0;
}

.wd-pm-letter__content .quote,
.wd-pm-letter__content .quote .quote {
  border: 0;
  border-left: 3px solid var(--wd-gold);
  box-shadow: none;
}

.wd-pm-letter__content .quote .quote {
  border-left-color: var(--form-primary);
}

#dropmenudiv {
  border: 0 !important;
  box-shadow: var(--wd-surface-shadow) !important;
}
