/* Bootstrap 5 responsive bridge for the legacy lodging theme. */
html, body {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

/* Frontend component-style refresh. Scoped to body#body to keep admin pages unchanged. */
body#body {
  color: #17252a;
  background-color: #f3f7f8;
  background-image: url("../images/bkg-gry.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

body#body #site_content {
  gap: 1.25rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  background: transparent;
}

body#body #sidebar_container .sidebar,
body#body .content_container {
  border: 1px solid #dbe6e9;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 .75rem 2rem rgba(28, 67, 75, .08);
}

body#body #sidebar_container .sidebar {
  margin-bottom: 1rem;
  padding: 1rem;
}

body#body #sidebar_container .sidebar h3 {
  margin: 0 0 .75rem;
  padding: 0 0 .65rem;
  color: #075b70;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow: none;
  border-bottom: 1px solid #dbe6e9;
}

/* Common links: remove the legacy circular bullet image and native marker. */
body#body #sidebar_container .sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body#body #sidebar_container .sidebar ul li {
  margin: 0;
  padding: 0;
  list-style: none;
  background: none !important;
}

body#body #sidebar_container .sidebar ul li::marker,
body#body #sidebar_container .sidebar ul li::before {
  content: none;
}

body#body #sidebar_container .sidebar li a {
  display: block;
  padding: .65rem .75rem;
  color: #29454c;
  border-radius: .65rem;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

body#body #sidebar_container .sidebar li a:hover,
body#body #sidebar_container .sidebar li a:focus-visible {
  color: #075b70;
  text-decoration: none;
  background: #e8f4f6;
  transform: translateX(.2rem);
}

body#body .content_container {
  padding: 1.35rem 1.5rem 2rem;
}

body#body #site_content > .content_container.content-centered {
  display: block;
  width: min(920px, 100%);
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

body#body .content_container .notice.topText {
  margin: 0 0 1.25rem !important;
  padding: 0 0 .85rem !important;
  color: #123f49;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
  border-bottom: 0;
}

body#body .managed-content {
  color: #263a40;
  font-size: 1rem;
  line-height: 1.85;
}

body#body .managed-content > :first-child { margin-top: 0 !important; }
body#body .managed-content > :last-child { margin-bottom: 0 !important; }

body#body .managed-content h1,
body#body .managed-content h2,
body#body .managed-content h3,
body#body .managed-content h4,
body#body .managed-content h5,
body#body .managed-content h6 {
  margin: 1.75rem 0 .8rem;
  padding: 0;
  color: #123f49;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 800;
  line-height: 1.4;
}

body#body .managed-content h2 {
  padding-bottom: .45rem;
  border-bottom: 1px solid #dbe6e9;
}

body#body .managed-content p { margin: 0 0 1rem; }

body#body .managed-content a {
  color: #08758d;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(8, 117, 141, .32);
  text-underline-offset: .2em;
}

body#body .managed-content a:hover,
body#body .managed-content a:focus-visible {
  color: #a33b19;
  text-decoration-color: currentColor;
}

body#body .managed-content .list-group {
  gap: .45rem;
  margin: 1rem 0 1.25rem;
  padding: 0;
}

body#body .managed-content .list-group-item {
  padding: .7rem .85rem .7rem 1rem;
  line-height: 1.65;
  border: 0;
  border-left: .22rem solid #65aebc;
  border-radius: .35rem;
  background: #f4f9fa !important;
}

.managed-content .managed-ordered-list,
.managed-content .managed-unordered-list {
  display: block;
  padding-left: 0;
  list-style: none;
}

.managed-content .managed-ordered-list > .list-group-item,
.managed-content .managed-unordered-list > .list-group-item {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .55rem;
  padding-left: 0;
}

.managed-content .managed-order-marker {
  min-width: 1.35rem;
  color: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.managed-content .managed-order-content,
.managed-content .managed-list-content {
  min-width: 0;
}

.managed-content .managed-alpha-list {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.managed-content .managed-alpha-list > li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: .45rem;
  padding-top: .2rem;
}

.managed-content .managed-alpha-marker {
  font-weight: 600;
  text-align: right;
}

.managed-content .managed-list-marker {
  width: .45rem;
  height: .45rem;
  margin: .62em .45rem 0;
  border-radius: 50%;
  background: currentColor;
}

body#body .managed-content blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  color: #34545c;
  border: 0;
  border-left: .3rem solid #0a8098;
  border-radius: 0 .75rem .75rem 0;
  background: #eaf5f7;
}

body#body .managed-content code {
  padding: .12rem .38rem;
  color: #8d2f4b;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: .9em;
  border: 1px solid #e5dce0;
  border-radius: .35rem;
  background: #fbf5f7;
}

body#body .managed-content pre {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  color: #dceff2;
  border: 1px solid #294c55;
  border-radius: .8rem;
  background: #132f36;
  box-shadow: 0 .55rem 1.4rem rgba(13, 42, 49, .14);
}

body#body .managed-content pre code {
  padding: 0;
  color: inherit;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body#body .managed-content table {
  width: 100%;
  margin: 1.25rem 0;
  overflow: hidden;
  border: 1px solid #d5e2e5;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: .75rem;
  background: #fff;
}

body#body .managed-content th {
  padding: .75rem .85rem;
  color: #fff;
  background: #145b69;
}

body#body .managed-content td {
  padding: .7rem .85rem;
  border-top: 1px solid #e2ebed;
}

body#body .managed-content tbody tr:nth-child(even) { background: #f6fafb; }
body#body .managed-content img { border-radius: .75rem; box-shadow: 0 .55rem 1.4rem rgba(28, 67, 75, .12); }

@media (max-width: 767.98px) {
  body#body #site_content { gap: .8rem; padding-top: .75rem; }
  body#body .content_container { padding: 1rem 1rem 1.4rem; border-radius: .8rem; }
  body#body #sidebar_container .sidebar { padding: .85rem; border-radius: .8rem; }
  body#body .managed-content { font-size: .97rem; line-height: 1.75; }
}

body,
body * {
  font-family: "Microsoft YaHei Light", "Microsoft YaHei", "微软雅黑", sans-serif !important;
}

body pre,
body code,
body kbd,
body samp,
body .font-monospace,
body .font-monospace * {
  font-family: Consolas, "Courier New", monospace !important;
}

body#body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
}

body#body > #wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: auto;
  margin-right: auto;
}

body#body #site_content {
  flex: 1 0 auto;
}

body#body footer#page_footer {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 5rem;
  padding: .75rem 1rem;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

body#body footer#page_footer p {
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  line-height: 1.45;
  text-align: center;
}

body#body #title_text h2 {
  position: relative;
  top: -2px;
  line-height: 1.1;
}

body#body #header.public-site-header {
  height: auto;
  min-height: 11.75rem;
  color: #fff;
  background: linear-gradient(135deg, #008dab, #007294);
}

body#body #title.public-site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(920px, calc(100% - 32px));
  height: auto;
  min-height: 11.75rem;
  margin: 0 auto;
  padding: 0;
}

body#body .public-site-header-nav {
  position: static;
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  min-height: 0;
  gap: .25rem;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

body#body .public-site-header-nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

body#body .public-site-header-nav a:hover,
body#body .public-site-header-nav a:focus {
  color: #ffe0c2;
  text-decoration: none;
}

body#body .public-site-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: .5rem;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, .92) !important;
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
  transition: color .18s ease, background-color .18s ease;
}

body#body .public-site-account svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body#body .public-site-account:hover,
body#body .public-site-account:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.site-language-control {
  position: relative;
  z-index: 20;
}

.site-language-control > summary {
  list-style: none;
}

.site-language-control > summary::-webkit-details-marker {
  display: none;
}

.site-language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 4.75rem;
  height: 2.5rem;
  padding: .5rem .85rem;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, .92);
  background: transparent;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: color .18s ease, background-color .18s ease;
}

.site-language-trigger:hover,
.site-language-trigger:focus-visible,
.site-language-control[open] .site-language-trigger {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.site-language-trigger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .95);
  outline-offset: 2px;
}

.site-language-trigger svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.site-language-chevron {
  font-size: .8rem;
  transition: transform .18s ease;
}

.site-language-control[open] .site-language-chevron {
  transform: rotate(180deg);
}

.site-language-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  display: grid;
  min-width: 9.5rem;
  padding: .4rem;
  border: 1px solid rgba(28, 29, 31, .12);
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 .75rem 2rem rgba(28, 29, 31, .16);
}

body#body .public-site-header-nav .site-language-menu a,
.site-language-menu a {
  display: block;
  padding: .65rem .75rem;
  border-radius: .5rem;
  color: #242427 !important;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

body#body .public-site-header-nav .site-language-menu a:hover,
body#body .public-site-header-nav .site-language-menu a:focus,
.site-language-menu a:hover,
.site-language-menu a:focus,
.site-language-menu a[aria-current="true"] {
  color: #242427 !important;
  background: #f2f3f7;
}

.login-language-wrap {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 30;
}

.login-language-control .site-language-trigger {
  color: #29434a;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(41, 67, 74, .18);
}

.login-language-control .site-language-trigger:hover,
.login-language-control .site-language-trigger:focus-visible,
.login-language-control[open] .site-language-trigger {
  color: #007e9e;
  background: #fff;
}

.login-language-control .site-language-trigger:focus-visible {
  outline-color: #007e9e;
}

body#body .public-site-account:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .95);
  outline-offset: 4px;
}

body#body #header.public-site-header #title_text {
  position: static;
  width: 100%;
  height: auto;
  padding: 2.25rem 0;
}

body#body #header.public-site-header #title_text h1,
body#body #header.public-site-header #title_text h1 a {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  text-shadow: none;
}

body#body #header.public-site-header #title_text .public-site-brand a {
  display: block;
  width: min(100%, 16.32rem);
  transform: translate(-3.8rem, 1.5rem);
}

body#body #header.public-site-header #title_text .public-site-brand img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767.98px) {
  body#body #header.public-site-header #title_text .public-site-brand a {
    width: min(100%, 9.18rem);
  }
}

body#body #header.public-site-header #title_text p {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, .9);
  line-height: 1.5;
}

body#body .public-site-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .75rem;
}

/* Compact public header inspired by Hostinger's clear brand/action layout. */
body#body #header.public-site-header {
  min-height: 5.75rem;
  color: #f7f5ff;
  background: linear-gradient(135deg, #17102d 0%, #21143d 55%, #29164a 100%);
  border-bottom: 1px solid rgba(167, 139, 250, .28);
  box-shadow: 0 4px 18px rgba(15, 8, 32, .24);
}

body#body #title.public-site-header-inner {
  justify-content: space-between;
  gap: 2rem;
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  min-height: 5.75rem;
}

body#body .public-site-brand-cluster {
  min-width: 0;
}

body#body #header.public-site-header #title_text,
body#body #header.public-site-header .public-site-brand {
  margin: 0;
  padding: 0;
}

body#body #header.public-site-header .public-site-brand a {
  display: block;
  width: min(13rem, 34vw);
  transform: none;
}

body#body #header.public-site-header .public-site-brand img {
  display: block;
  width: 100%;
  height: auto;
}

body#body #header.public-site-header .public-site-tagline {
  margin: .15rem 0 0;
  color: #c9c2dc;
  font-size: .76rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

body#body #header.public-site-header .public-site-header-nav {
  flex: 0 0 auto;
  gap: .5rem;
}

body#body #header.public-site-header .site-language-trigger {
  height: 2.75rem;
  min-width: 5rem;
  padding: .625rem .8rem;
  border-radius: .5rem;
  color: #f7f5ff;
}

body#body #header.public-site-header .site-language-trigger:hover,
body#body #header.public-site-header .site-language-trigger:focus-visible,
body#body #header.public-site-header .site-language-control[open] .site-language-trigger {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

body#body #header.public-site-header .site-language-trigger:focus-visible {
  outline-color: #a78bfa;
}

body#body #header.public-site-header .public-site-account {
  display: inline-flex;
  width: auto;
  height: 2.75rem;
  min-height: 2.75rem;
  gap: .5rem;
  padding: .625rem 1rem;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: .5rem;
  color: #fff !important;
  background: transparent;
  font-size: .9rem;
  font-weight: 700;
}

body#body #header.public-site-header .public-site-account:hover,
body#body #header.public-site-header .public-site-account:focus-visible {
  color: #fff !important;
  border-color: #a78bfa;
  background: rgba(167, 139, 250, .16);
}

body#body #header.public-site-header .public-site-account svg {
  width: 1.15rem;
  height: 1.15rem;
}

@media (max-width: 767.98px) {
  body#body #header.public-site-header,
  body#body #title.public-site-header-inner {
    min-height: 4.75rem;
  }

  body#body #title.public-site-header-inner {
    align-items: center;
    width: calc(100% - 24px);
    gap: .75rem;
  }

  body#body #header.public-site-header .public-site-brand a {
    width: min(10.5rem, 44vw);
    transform: none;
  }

  body#body #header.public-site-header .public-site-tagline {
    display: none;
  }

  body#body #header.public-site-header .public-site-header-nav {
    gap: .2rem;
  }

  body#body #header.public-site-header .site-language-trigger {
    min-width: 0;
    padding-inline: .55rem;
  }

  body#body #header.public-site-header .public-site-account {
    width: 2.6rem;
    padding: .6rem;
    border-radius: .5rem;
  }

  body#body #header.public-site-header .public-site-account span {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 767.98px) {
  html.mobile-layout body#body #site_content > .content_container,
  body#body #site_content > .content_container {
    padding-right: 1.25rem !important;
    padding-left: 1.25rem !important;
  }

}

body#page_body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding-bottom: 0;
}

body#page_body > #wrapper {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  flex: 1 0 auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: auto;
  margin-right: auto;
}

body#page_body #site_content {
  min-height: 0;
  padding-bottom: 2em;
  box-sizing: border-box;
}

body#page_body .content_container.miniheight {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 600px;
  box-sizing: border-box;
}

body#page_body .pod-card,
body#page_body .pod-result {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body#page_body #pod_password {
  width: 100%;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  overflow-wrap: anywhere;
  word-break: break-all;
  text-align: center;
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  line-height: 1.2;
}

body#page_body #banner h1.welcome_note {
  margin: 0 auto;
  padding: 5px 0 0 36px;
  font-size: 1.15rem;
  line-height: 1.4;
  box-sizing: border-box;
}

body#page_body footer {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

/* Keep legacy page footers full-width if a page leaves one inside the content grid. */
body#page_body #site_content:has(> footer) {
  padding-bottom: 0;
}

body#page_body #site_content > footer {
  --legacy-footer-gutter: clamp(16px, 2.5vw, 40px);
  grid-column: 1 / -1;
  width: calc(100% + var(--legacy-footer-gutter) + var(--legacy-footer-gutter)) !important;
  margin-top: 2rem;
  transform: translateX(calc(0px - var(--legacy-footer-gutter)));
}

body#page_body footer p {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

@media (min-width: 992px) {
  body#page_body #banner {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  body#page_body #banner h1.welcome_note {
    width: 100%;
    padding-right: clamp(16px, 2.5vw, 40px);
    padding-left: clamp(16px, 2.5vw, 40px);
  }

  body#page_body #site_content {
    display: grid;
    grid-template-columns: clamp(170px, 15vw, 190px) minmax(0, 1fr);
    column-gap: clamp(16px, 2vw, 32px);
    width: 100%;
    padding-right: clamp(16px, 2.5vw, 40px);
    padding-bottom: 2em;
    padding-left: clamp(16px, 2.5vw, 40px);
    box-sizing: border-box;
  }

  body#page_body #sidebar_container,
  body#page_body .content_container {
    display: block;
    width: auto;
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
  }

  body#page_body #sidebar_container {
    padding-top: 1.625rem;
  }

  body#page_body #sidebar_container .list a {
    white-space: nowrap;
  }
}

.mobile-native-nav {
  display: none;
}

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

#wrapper,
#container,
#title,
#logo,
#nav,
.multi_drop_menu,
#site_content,
footer,
footer#page_footer {
  width: 100%;
  max-width: none;
}

#title {
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

#site_content {
  table-layout: fixed;
}

#nav.frontend-bootstrap-nav {
  display: flex;
  align-items: center;
  min-height: 3rem;
  height: auto;
  padding: .4rem clamp(1rem, 2.5vw, 2.5rem);
  box-sizing: border-box;
}

#nav.frontend-bootstrap-nav .multi_drop_menu,
#nav.frontend-bootstrap-nav .multi_drop_menu > ul {
  width: 100%;
}

#nav.frontend-bootstrap-nav .multi_drop_menu > ul {
  display: flex;
  align-items: center;
}

#nav.frontend-bootstrap-nav .multi_drop_menu > ul > li {
  float: none;
}

#nav.frontend-bootstrap-nav .nav-account-item {
  margin-left: auto;
}

#nav.frontend-bootstrap-nav .nav-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  color: #0d6efd;
  background: transparent;
  border: 1px solid #0d6efd;
  border-radius: .35rem !important;
  text-decoration: none;
}

#nav.frontend-bootstrap-nav .nav-account-link:hover,
#nav.frontend-bootstrap-nav .nav-account-link:focus {
  color: #fff;
  background: #007e9e !important;
  border-color: #007e9e !important;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .mobile-native-nav.mobile-account-only,
  html.mobile-layout .mobile-native-nav.mobile-account-only {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    min-height: 3rem;
    padding: .4rem 1rem;
    box-sizing: border-box;
  }

  .mobile-native-nav.mobile-account-only > a.mobile-account-link,
  html.mobile-layout .mobile-native-nav.mobile-account-only > a.mobile-account-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-height: 2.25rem !important;
    padding: .25rem 1.5rem !important;
    color: #0d6efd !important;
    background: transparent !important;
    border: 1px solid #0d6efd !important;
    border-radius: .35rem !important;
  }

  .mobile-native-nav.mobile-account-only > a.mobile-account-link:hover,
  .mobile-native-nav.mobile-account-only > a.mobile-account-link:focus,
  html.mobile-layout .mobile-native-nav.mobile-account-only > a.mobile-account-link:hover,
  html.mobile-layout .mobile-native-nav.mobile-account-only > a.mobile-account-link:focus {
    color: #fff !important;
    background: #007e9e !important;
    border-color: #007e9e !important;
  }
}

.content_container {
  min-width: 0;
  padding-bottom: 2em;
  font-size: 1.2em;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.content_container .notice.topText {
  margin: 1.5em 0 .5em !important;
  padding: .42em .25em !important;
  line-height: 1.2;
  box-sizing: border-box;
}

.managed-content {
  display: flow-root;
}

/* Keep managed backend content aligned with the backend home page. */
body#page_body .content_container .managed-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body#page_body .content_container .managed-content > :first-child {
  margin-top: 0 !important;
}

body#page_body .content_container .managed-content > :last-child {
  margin-bottom: 0 !important;
}

body#page_body .content_container .managed-content h1,
body#page_body .content_container .managed-content h2,
body#page_body .content_container .managed-content h3,
body#page_body .content_container .managed-content h4,
body#page_body .content_container .managed-content h5,
body#page_body .content_container .managed-content h6 {
  margin-top: 1rem !important;
  margin-bottom: .65rem !important;
  padding: 0 !important;
  line-height: 2em !important;
}

body#page_body .content_container .managed-content > h1:first-child,
body#page_body .content_container .managed-content > h2:first-child,
body#page_body .content_container .managed-content > h3:first-child,
body#page_body .content_container .managed-content > h4:first-child,
body#page_body .content_container .managed-content > h5:first-child,
body#page_body .content_container .managed-content > h6:first-child {
  margin-top: 0 !important;
}

body#page_body .content_container .managed-success-alert {
  display: flex !important;
  align-items: center !important;
  min-height: 3.25rem;
  margin-bottom: 1rem;
  padding: .75rem 1rem !important;
  line-height: 1.25 !important;
  box-sizing: border-box;
}

body#page_body .content_container .managed-tabs .nav-tabs {
  gap: .25rem;
  padding: 0 .25rem;
  border-bottom: 2px solid #8f0011;
}

body#page_body .content_container .managed-tabs .nav-link {
  margin-bottom: 0;
  padding: .55rem 1rem;
  color: #243447;
  font-weight: 500;
  white-space: nowrap;
  background-color: #eaf4fb;
  border: 1px solid #c8d9e6;
  border-bottom: 0;
  border-radius: .5rem .5rem 0 0;
  transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

body#page_body .content_container .managed-tabs .nav-link:hover,
body#page_body .content_container .managed-tabs .nav-link:focus-visible {
  color: #64101a;
  background-color: #ffe4bd;
  border-color: #e3b777;
}

body#page_body .content_container .managed-tabs .nav-link.active {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  background-color: #8f0011;
  border-color: #8f0011;
  box-shadow: 0 -.2rem .55rem rgba(82, 0, 10, .24);
}

body#page_body .content_container .managed-tabs .tab-content {
  background-color: #fff;
  border-color: #8f0011 !important;
  box-shadow: 0 .2rem .6rem rgba(0, 0, 0, .06);
}

/* Backend home: modern, quiet tabs that match the current purple interface. */
body#page_body .admin-home-content .managed-tabs {
  overflow: hidden;
  padding: .4rem;
  border: 1px solid #e5e0ed;
  border-radius: 1rem;
  background: #f6f3fb;
  box-shadow: 0 .6rem 1.6rem rgba(69, 48, 112, .08);
}

body#page_body .admin-home-content .managed-tabs .nav-tabs {
  gap: .4rem;
  padding: .15rem;
  border: 0;
  background: transparent;
  scrollbar-width: thin;
}

body#page_body .admin-home-content .managed-tabs .nav-item {
  flex: 0 0 auto;
}

body#page_body .admin-home-content .managed-tabs .nav-link {
  position: relative;
  min-height: 2.65rem;
  margin: 0;
  padding: .65rem 1.05rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  color: #5f586d;
  background: transparent;
  font-weight: 650;
  text-decoration: none !important;
  box-shadow: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body#page_body .admin-home-content .managed-tabs .nav-link:hover,
body#page_body .admin-home-content .managed-tabs .nav-link:focus-visible {
  color: #5025d1;
  border-color: #d8cff1;
  background: #fff;
  text-decoration: none !important;
  box-shadow: 0 .25rem .7rem rgba(80, 37, 209, .09);
  transform: translateY(-1px);
}

body#page_body .admin-home-content .managed-tabs .nav-link.active {
  color: #fff;
  border-color: #673de6;
  background: linear-gradient(135deg, #7352e8, #673de6);
  box-shadow: 0 .35rem .85rem rgba(103, 61, 230, .24);
  transform: none;
}

body#page_body .admin-home-content .managed-tabs .tab-content {
  margin-top: .4rem;
  padding: clamp(1rem, 2.5vw, 1.6rem) !important;
  border: 0 !important;
  border-radius: .75rem !important;
  background: #fff;
  box-shadow: none;
}

body#page_body .admin-home-content .managed-tabs .tab-pane > :first-child { margin-top: 0; }
body#page_body .admin-home-content .managed-tabs .tab-pane > :last-child { margin-bottom: 0; }

@media (max-width: 575.98px) {
  body#page_body .admin-home-content .managed-tabs { padding: .3rem; border-radius: .8rem; }
  body#page_body .admin-home-content .managed-tabs .nav-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; }
  body#page_body .admin-home-content .managed-tabs .nav-link { min-height: 2.45rem; padding: .55rem .85rem; }
  body#page_body .admin-home-content .managed-tabs .tab-content { margin-top: .25rem; border-radius: .6rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  body#page_body .admin-home-content .managed-tabs .nav-link { transition: none; }
}

.managed-content::after {
  display: none;
}

.managed-content pre {
  padding: 1rem;
  overflow-x: auto;
  color: #084298;
  background: #e7f1ff;
  border: 1px solid #b6d4fe;
  border-radius: .5rem;
}

.managed-content code {
  font-family: Consolas, 'Courier New', monospace;
}

.managed-code-copy {
  margin: 0 0 1rem;
  overflow: hidden;
  color: #28211b;
  background: #f8f3eb;
  border: 1px solid #ded5c8;
  border-radius: 10px;
}

.managed-code-toolbar {
  display: flex;
  min-height: 34px;
  padding: .45rem .85rem;
  align-items: center;
  justify-content: space-between;
  color: #6d6257;
  background: #eee7dc;
  border-bottom: 1px solid #ded5c8;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: .72rem;
  line-height: 1;
}

.managed-copy-button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.managed-copy-button:hover,
.managed-copy-button:focus-visible {
  color: #9f3f24;
  text-decoration: none;
}

.managed-content .managed-code-copy pre,
body#body .managed-content .managed-code-copy pre,
body#page_body .managed-content .managed-code-copy pre {
  margin: 0;
  padding: 1rem .85rem;
  color: #28211b;
  background: #f8f3eb;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.managed-content .managed-code-copy pre code,
body#body .managed-content .managed-code-copy pre code,
body#page_body .managed-content .managed-code-copy pre code {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.managed-content blockquote {
  padding: .5rem 1rem;
  color: #555;
  border-left: 4px solid #c00000;
}

.managed-content .list-group {
  margin: 1rem 0;
  padding-left: 0;
}

.managed-content .list-group-item {
  padding: .75rem 1rem;
  line-height: 1.5;
  border-color: #dee2e6;
}

#sidebar_container .sidebar h3 {
  font-size: 1.17em;
  font-family: 'News Cycle', 'Microsoft YaHei', cursive;
  font-style: italic;
  font-weight: 700;
  color: #c00000;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .35);
}

.content_container table {
  width: 100%;
}

input, select, textarea, button {
  max-width: 100%;
}

.login-container {
  width: 30em;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.login-container form.login,
.login-container fieldset {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 991.98px) {
  body#page_body,
  body#page_body > #wrapper {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: clip;
  }

  body#page_body > #wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  body#page_body #header,
  body#page_body #title,
  body#page_body #banner,
  body#page_body #banner .welcome_note,
  body#page_body #site_content,
  body#page_body footer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box;
  }

  body#page_body #site_content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    overflow-x: clip;
    box-sizing: border-box;
  }

  body#page_body #site_content > .content_container {
    flex: 0 0 auto !important;
    align-self: stretch !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box;
  }

  body#page_body #site_content > #sidebar_container {
    align-self: stretch !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box;
  }

  body#page_body .content_container > *,
  body#page_body .content_container .card,
  body#page_body .content_container .card-body,
  body#page_body .content_container .list-group,
  body#page_body .content_container .list-group-item,
  body#page_body .content_container figure,
  body#page_body .content_container img {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  body#page_body .content_container pre {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body#page_body .content_container code,
  body#page_body .content_container a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body#page_body .content_container form,
  body#page_body .content_container fieldset,
  body#page_body .content_container input,
  body#page_body .content_container select,
  body#page_body .content_container textarea {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body#page_body .content_container form,
  body#page_body .content_container fieldset,
  body#page_body .content_container .test_form {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body#page_body .content_container label,
  body#page_body .stylin_form1 section section label {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body#page_body .content_container table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  body#page_body #site_content > section.content_container.miniheight {
    flex: 0 0 auto !important;
    align-self: stretch !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body#page_body .pod-card,
  body#page_body .pod-result {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body#page_body .pod-card .card-body,
  body#page_body .pod-result {
    padding: 1rem !important;
  }

  .desktop-legacy-nav {
    display: none !important;
  }

  .mobile-native-nav {
    display: block !important;
    width: 100%;
  }

  .mobile-native-nav > details,
  .mobile-native-nav summary {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 46px !important;
  }

  .mobile-native-nav details:not([open]) > a {
    display: none !important;
  }

  .mobile-native-nav details[open] > a {
    display: block !important;
  }
  html {
    font-size: 100%;
  }

  #header {
    height: auto;
    min-height: 92px;
  }

  #title {
    height: auto;
    min-height: 90px;
    display: flex;
    align-items: center;
  }

  #title_text {
    position: static;
    width: auto;
    flex: 1 1 auto;
  }

  #title_text h1 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
    white-space: normal;
  }

  #search_area {
    display: none;
  }

  #nav {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .multi_drop_menu > ul {
    display: flex;
    width: max-content;
    min-width: 100%;
    flex-wrap: nowrap;
  }

  .multi_drop_menu > ul > li {
    flex: 0 0 auto;
  }

  .multi_drop_menu > ul > li > ul {
    display: none !important;
    position: fixed !important;
    left: .75rem !important;
    right: .75rem !important;
    top: auto !important;
    width: auto !important;
    max-height: 65vh;
    overflow-y: auto;
    z-index: 1055;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
  }

  .multi_drop_menu > ul > li.mobile-open > ul {
    display: block !important;
  }

  .multi_drop_menu > ul > li.mobile-open > a {
    background: #f58220;
    color: #fff;
  }

  .multi_drop_menu > ul > li > ul > li,
  .multi_drop_menu > ul > li > ul > li > a {
    display: block !important;
    float: none !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .multi_drop_menu > ul > li > ul > li > a {
    min-height: 44px;
    padding: .7rem 1rem !important;
    color: #333 !important;
    background: #fff !important;
    border-bottom: 1px solid #eee;
  }

  #site_content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
  }

  #sidebar_container,
  .content_container {
    display: block;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  #sidebar_container {
    order: 2;
  }

  .content_container {
    order: 1;
  }

  .sidebar {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .content_container table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  form.stylin_form1,
  form.stylin_form1.account-form,
  #content-manager-form,
  #account-manager-form {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #page_content {
    margin-top: 1.25rem;
  }

  .login-container {
    width: 100%;
    max-width: 32rem;
  }

  .login-container fieldset {
    padding: 1rem;
  }

  .login-container .banner {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .login .item {
    margin-bottom: .9rem;
  }

  .login label {
    float: none;
    display: block;
    width: 100%;
    margin-bottom: .35rem;
  }

  .login input[type="text"],
  .login input[type="password"] {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: .65rem .75rem;
    box-sizing: border-box;
  }

  fieldset.tblFooters {
    text-align: center;
  }

  input#input_go {
    width: 100%;
    min-height: 44px;
  }

  footer,
  footer#page_footer {
    height: auto;
    min-height: 60px;
    padding: .9rem .75rem;
  }
}

/* FAQ answers: chronological, forum-style knowledge stream. */
.faq-stream-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #ded8ea;
}
.faq-stream-header p { margin: 0; color: #6a6475; }
.faq-stream-kicker { display: block; margin-bottom: .35rem; color: #6d45b3; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.faq-stream-count { flex: 0 0 auto; padding: .45rem .8rem; color: #3e2b65; background: #f2eef9; border: 1px solid #ddd3ee; border-radius: 999px; font-weight: 700; }
.faq-stream-search { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: .65rem; width: 100%; margin: 0 0 1.25rem; padding: .8rem; background: #f8f6fb; border: 1px solid #e0dae9; border-radius: .75rem; box-sizing: border-box; }
.faq-stream-search-field { position: relative; width: 100%; min-width: 0; }
.faq-stream-search-field > span { position: absolute; top: 50%; left: .85rem; z-index: 2; width: 1.05rem; height: 1.05rem; color: #746985; transform: translateY(-50%); pointer-events: none; }
.faq-stream-search-field svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.faq-stream-search .form-control { display: block; width: 100% !important; max-width: 100%; min-height: 2.7rem; margin: 0 !important; padding-left: 2.55rem; border-color: #d5cce2; border-radius: .5rem; box-shadow: none; box-sizing: border-box !important; float: none !important; }
.faq-stream-search .form-control:focus { border-color: #7656aa; box-shadow: 0 0 0 .2rem rgba(118, 86, 170, .12); }
.faq-stream-search .btn { position: static !important; width: auto !important; min-height: 2.7rem; margin: 0 !important; padding-inline: 1.35rem; border-radius: .5rem; float: none !important; white-space: nowrap; }
.faq-stream-search-clear { color: #69577f; font-weight: 700; text-decoration: none; white-space: nowrap; }
.faq-stream-search-clear:hover { color: #8a392d; text-decoration: none; }
.faq-stream-search-result { margin: -.6rem 0 1.1rem; color: #6f6877; font-size: .88rem; }
.faq-stream { position: relative; padding-left: 2.5rem; }
.faq-stream::before { position: absolute; top: .8rem; bottom: .8rem; left: .65rem; width: 2px; content: ''; background: linear-gradient(#7953bd, #d9cfeb); }
.faq-stream-entry { position: relative; margin: 0 0 1.35rem; }
.faq-stream-marker { position: absolute; top: 1.35rem; left: -2.25rem; width: .82rem; height: .82rem; background: #fff; border: 3px solid #7250ad; border-radius: 50%; box-shadow: 0 0 0 .3rem #eee8f7; }
.faq-stream-card { overflow: hidden; background: #fff; border: 1px solid #ddd7e8; border-radius: .8rem; box-shadow: 0 .45rem 1.25rem rgba(40, 27, 65, .07); }
.faq-stream-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.2rem .75rem; background: linear-gradient(135deg, #fbfaff, #f4f0fa); border-bottom: 1px solid #e6e0ee; }
.faq-stream-card-header h3 { margin: .2rem 0 0; color: #25202e; font-size: 1.12rem; font-weight: 750; line-height: 1.35; }
.faq-stream-card-header time { flex: 0 0 auto; color: #716a7c; font-size: .86rem; white-space: nowrap; }
.faq-stream-sequence { color: #7656aa; font-size: .78rem; font-weight: 800; letter-spacing: .05em; }
.faq-stream-meta { display: flex; align-items: center; gap: .55rem; margin-bottom: .8rem; padding: .85rem 1.2rem 0; color: #696171; font-size: .86rem; }
.faq-stream-avatar { display: grid; place-items: center; flex: 0 0 1.7rem; width: 1.7rem; height: 1.7rem; color: #fff; background: #30283c; border-radius: 50%; font-size: .74rem; font-weight: 800; line-height: 1; }
.faq-stream-author { display: inline-flex; align-items: baseline; gap: .35rem; }
.faq-stream-author-label { color: #786f80; }
.faq-stream-author strong { color: #403747; font-weight: 750; }
.faq-stream-edited { margin-left: .25rem; padding-left: .7rem; border-left: 1px solid #d8d1e2; }
.faq-stream-content { padding: .25rem 1.2rem 1.2rem; }
.faq-stream-content > :first-child { margin-top: 0; }
.faq-stream-content > :last-child { margin-bottom: 0; }
.faq-stream-empty { display: grid; justify-items: center; gap: .45rem; padding: 4rem 1rem; color: #625b6c; text-align: center; background: #faf9fc; border: 1px dashed #cec5dd; border-radius: .8rem; }
.faq-stream-empty > span { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; color: #fff; background: #7050aa; border-radius: 50%; font-size: 1.3rem; font-weight: 800; }
.faq-stream-empty p { margin: 0; }
.faq-stream-pagination { margin: 1.5rem 0 0 2.5rem; }

.faq-manager-toolbar { padding-bottom: .8rem; border-bottom: 1px solid #e2dbea; }
.faq-manager-add-link { padding: .2rem 0; color: #5234a7; background: transparent; border: 0; font-weight: 750; text-decoration: none; }
.faq-manager-add-link:hover,.faq-manager-add-link:focus-visible { color: #8a392d; text-decoration: none; }
.faq-manager-editor { padding: 1.2rem; background: #fbfaff; border: 1px solid #dfd8e9; border-radius: .8rem; box-shadow: 0 .45rem 1.25rem rgba(45, 28, 75, .06); }
.faq-manager-editor .tab-pane { padding-top: .85rem; }
.faq-manager-list { border-top: 1px solid #ded8e8; }
.faq-manager-list-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0 .65rem; }
.faq-manager-list-head h3 { margin: 0; font-size: 1.1rem; font-weight: 750; }
.faq-manager-list-head p { margin: .2rem 0 0; color: #766f7d; font-size: .88rem; }
.faq-manager-list-head > span { display: grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .5rem; color: #fff; background: #332a40; border-radius: 999px; font-weight: 750; }
.faq-manager-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-top: 1px solid #ece7f1; }
.faq-manager-row-main { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.faq-manager-row-main h4 { margin: 0; overflow: hidden; color: #292332; font-size: 1rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.faq-manager-row-main p { margin: .2rem 0 0; color: #7b7481; font-size: .82rem; }
.faq-manager-actions { display: flex; align-items: center; gap: .85rem; flex: 0 0 auto; }
.faq-manager-actions form { margin: 0; }
.faq-manager-actions a,.faq-manager-actions button,.faq-manager-archive-row button { padding: 0; color: #503694; background: none; border: 0; font-weight: 700; text-decoration: none; }
.faq-manager-actions a:hover,.faq-manager-actions button:hover,.faq-manager-archive-row button:hover { color: #8a392d; text-decoration: none; }
.faq-manager-empty { padding: 2.5rem 1rem; color: #756e7c; text-align: center; border-top: 1px solid #ece7f1; }
.faq-manager-archive { padding: .85rem 1rem; background: #f7f5fa; border: 1px solid #e1dbe9; border-radius: .65rem; }
.faq-manager-archive summary { cursor: pointer; color: #40364c; font-weight: 750; }
.faq-manager-archive-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid #e5deec; }

@media (max-width: 767.98px) {
  .faq-stream-header,.faq-stream-card-header,.faq-manager-row { align-items: stretch; flex-direction: column; }
  .faq-stream-count { align-self: flex-start; }
  .faq-stream { padding-left: 1.75rem; }
  .faq-stream::before { left: .35rem; }
  .faq-stream-marker { left: -1.67rem; }
  .faq-stream-card-header time { white-space: normal; }
  .faq-manager-row-main { align-items: flex-start; }
  .faq-manager-actions { flex-wrap: wrap; }
  .faq-stream-search { grid-template-columns: minmax(0,1fr) auto; align-items: stretch; }
  .faq-stream-search-field { grid-column: 1 / -1; }
  .faq-stream-search .btn { width: 100% !important; }
  .faq-stream-search-clear { align-self: center; justify-self: end; }
}

/* Global backend containment: components may scroll internally, never widen the page. */
body#page_body,
body#page_body > #wrapper,
body#page_body #site_content {
  max-width: 100%;
  overflow-x: clip;
}

body#page_body #site_content > #sidebar_container,
body#page_body #site_content > .content_container,
body#page_body #site_content > .content_container :where(
  .row, [class*="col-"], .card, .card-body, .accordion,
  .accordion-item, .accordion-body, .tab-content, .tab-pane,
  form, fieldset, .d-flex, .input-group
) {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body#page_body #site_content > .content_container :where(
  input, select, textarea, .form-control, .form-select, .input-group
) {
  min-width: 0;
  max-width: 100%;
}

body#page_body #site_content > .content_container .table-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

body#page_body #site_content > .content_container .table-responsive > table {
  margin-bottom: 0;
}

body#page_body #site_content > .content_container :where(img, video, iframe, canvas, svg) {
  max-width: 100%;
}

@media (max-width: 420px) {
  #page_content {
    margin-top: .5rem;
  }

  .login-container fieldset {
    padding: .8rem;
  }
}

/* hPanel-style backend shell: a continuous navigation rail beside a padded workspace. */
@media (min-width: 992px) {
  body#page_body {
    --admin-nav-icon-x: 1.15rem;
  }

  body#page_body #title.admin-header-inner {
    padding-left: var(--admin-nav-icon-x);
  }

  body#page_body #banner .banner-breadcrumb-wrap {
    padding-left: var(--admin-nav-icon-x);
  }

  body#page_body #site_content {
    grid-template-columns: 252px minmax(0, 1fr);
    column-gap: clamp(24px, 2.5vw, 40px);
    padding-right: clamp(24px, 3vw, 48px);
    padding-left: 0;
  }

  body#page_body #sidebar_container {
    align-self: stretch;
    padding-top: 0;
    background: #fff;
  }

  body#page_body #sidebar_container .admin-sidebar-nav {
    top: 0;
    min-height: calc(100vh - 122px);
    max-height: calc(100vh - 122px);
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 0;
    box-shadow: none;
  }

  body#page_body #site_content > .content_container {
    margin-top: 1.625rem;
  }
}

@media (max-width: 991.98px) {
  body#page_body #sidebar_container .admin-sidebar-nav {
    min-height: 0;
    max-height: none;
  }
}

/* Modern backend tabs: quiet navigation with a clear active indicator. */
body#page_body .content_container .managed-tabs,
body#page_body .admin-home-content .managed-tabs {
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body#page_body .content_container .managed-tabs .nav-tabs,
body#page_body .admin-home-content .managed-tabs .nav-tabs,
body#page_body .menu-permission-module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin: 0 0 1rem !important;
  padding: 0;
  background: transparent;
  border: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body#page_body .content_container .managed-tabs .nav-tabs::-webkit-scrollbar,
body#page_body .admin-home-content .managed-tabs .nav-tabs::-webkit-scrollbar,
body#page_body .menu-permission-module-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body#page_body .content_container .managed-tabs .nav-link,
body#page_body .admin-home-content .managed-tabs .nav-link,
body#page_body .menu-permission-module-tabs .nav-link {
  position: relative;
  min-height: 2.75rem;
  margin: 0;
  padding: .68rem .1rem .72rem;
  color: #66666d;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none !important;
  transform: none;
  transition: color .16s ease, border-color .16s ease;
}

body#page_body .content_container .managed-tabs .nav-link:hover,
body#page_body .content_container .managed-tabs .nav-link:focus-visible,
body#page_body .admin-home-content .managed-tabs .nav-link:hover,
body#page_body .admin-home-content .managed-tabs .nav-link:focus-visible,
body#page_body .menu-permission-module-tabs .nav-link:hover,
body#page_body .menu-permission-module-tabs .nav-link:focus-visible {
  color: #5025d1;
  background: transparent;
  border-color: #b9a9ec;
  box-shadow: none;
  outline: 0;
  transform: none;
}

body#page_body .content_container .managed-tabs .nav-link.active,
body#page_body .admin-home-content .managed-tabs .nav-link.active,
body#page_body .menu-permission-module-tabs .nav-link.active {
  color: #5025d1;
  background: transparent;
  border-color: #673de6;
  box-shadow: none;
  font-weight: 700;
  transform: none;
}

body#page_body .content_container .managed-tabs .tab-content,
body#page_body .admin-home-content .managed-tabs .tab-content {
  margin-top: 0;
  padding: .35rem 0 0 !important;
  background: transparent;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
}

body#page_body .menu-permission-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .25rem;
  padding: .25rem;
  background: #f1f1f2;
  border: 1px solid #e1e1e4;
  border-radius: .6rem;
}

body#page_body .menu-permission-tabs .nav-link {
  padding: .45rem .75rem;
  color: #626268;
  background: transparent;
  border: 0;
  border-radius: .42rem;
  font-weight: 600;
  text-decoration: none !important;
}

body#page_body .menu-permission-tabs .nav-link:hover,
body#page_body .menu-permission-tabs .nav-link:focus-visible {
  color: #302b3c;
  background: #fff;
}

body#page_body .menu-permission-tabs .nav-link.active {
  color: #5025d1;
  background: #fff;
  box-shadow: 0 1px 3px rgba(24,24,27,.09);
}

@media (max-width: 575.98px) {
  body#page_body .content_container .managed-tabs .nav-tabs,
  body#page_body .admin-home-content .managed-tabs .nav-tabs,
  body#page_body .menu-permission-module-tabs {
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: .8rem !important;
  }

  body#page_body .content_container .managed-tabs .nav-link,
  body#page_body .admin-home-content .managed-tabs .nav-link,
  body#page_body .menu-permission-module-tabs .nav-link {
    min-height: 2.55rem;
    padding: .58rem .05rem .65rem;
  }

  body#page_body .content_container .managed-tabs .tab-content,
  body#page_body .admin-home-content .managed-tabs .tab-content {
    padding: .25rem 0 0 !important;
    border-radius: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#page_body .content_container .managed-tabs .nav-link,
  body#page_body .menu-permission-module-tabs .nav-link { transition: none; }
}
.managed-content { color:#24292f; font-size:1rem; line-height:1.7; overflow-wrap:anywhere; }
.managed-content h1,.managed-content h2,.managed-content h3,.managed-content h4 { margin:1.5em 0 .65em; color:#1f2328; font-weight:600; line-height:1.25; }
.managed-content h1,.managed-content h2 { padding-bottom:.35em; border-bottom:1px solid #d8dee4; }
.managed-content h1 { font-size:2em; }.managed-content h2 { font-size:1.5em; }.managed-content h3 { font-size:1.25em; }
.managed-content p,.managed-content ul,.managed-content ol,.managed-content blockquote,.managed-content pre { margin:0 0 1rem; }
.managed-content code { padding:.18em .38em; color:#1f2328; background:#eff1f3; border-radius:6px; font-size:.875em; }
.managed-content pre { overflow:auto; padding:1rem; color:#28211b; background:#f8f3eb; border:1px solid #ded5c8; border-radius:10px; }
.managed-content pre code { padding:0; background:transparent; border-radius:0; }
.managed-content blockquote { padding:.25rem 1rem; color:#656d76; border-left:.25rem solid #d0d7de; }
.managed-content .list-group { border:0; border-radius:0!important; }.managed-content .list-group-item { padding:.25rem 0 .25rem 1.5rem; border:0; }
.managed-content .managed-attachment-link { display:inline-flex; align-items:center; gap:.4rem; padding:.45rem .7rem; color:#0969da; background:#f6f8fa; border:1px solid #d0d7de; border-radius:6px; text-decoration:none; }
.managed-content .managed-attachment-link:hover { background:#ddf4ff; border-color:#54aeff; }

/* Unified backend typography. The navigation rail keeps its own sizing. */
body#page_body #site_content > .content_container {
  --admin-content-font-size: 1rem;
  font-size: var(--admin-content-font-size);
}

body#page_body #site_content > .content_container :where(
  p, li, td, th, label, input, select, textarea, button,
  .btn, .form-control, .form-select, .nav-link,
  .list-group-item, .alert, .notice, .page-link, .managed-content
) {
  font-size: var(--admin-content-font-size);
}

/* Reference-style backend tabs: blue baseline, quiet inactive tabs, green active tab. */
body#page_body #site_content > .content_container :where(
  .nav-tabs, .menu-permission-module-tabs, .menu-permission-tabs
) {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: .12rem;
  width: 100%;
  margin: 0 0 1.15rem !important;
  padding: 0;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #8fa8d6 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body#page_body #site_content > .content_container :where(
  .nav-tabs, .menu-permission-module-tabs, .menu-permission-tabs
) .nav-item {
  margin: 0;
}

body#page_body #site_content > .content_container :where(
  .nav-tabs, .menu-permission-module-tabs, .menu-permission-tabs
) .nav-link {
  position: relative;
  z-index: 1;
  min-height: 2.85rem;
  margin: 0 0 -1px;
  padding: .58rem 1.05rem .62rem;
  color: #142b52 !important;
  background: #edf2fa !important;
  border: 1px solid #9eb2d6 !important;
  border-top: 4px solid #91a9d5 !important;
  border-bottom-color: #8fa8d6 !important;
  border-radius: .42rem .42rem 0 0 !important;
  box-shadow: none !important;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none !important;
  transform: none !important;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease !important;
}

body#page_body #site_content > .content_container :where(
  .nav-tabs, .menu-permission-module-tabs, .menu-permission-tabs
) .nav-link:hover,
body#page_body #site_content > .content_container :where(
  .nav-tabs, .menu-permission-module-tabs, .menu-permission-tabs
) .nav-link:focus-visible {
  color: #173f78 !important;
  background: #f6f8fc !important;
  border-top-color: #6688c3 !important;
  outline: 0;
}

body#page_body #site_content > .content_container :where(
  .nav-tabs, .menu-permission-module-tabs, .menu-permission-tabs
) .nav-link.active {
  z-index: 2;
  color: #087c68 !important;
  background: #fff !important;
  border-color: #8fa8d6 !important;
  border-top-color: #078a72 !important;
  border-bottom-color: #fff !important;
  box-shadow: none !important;
  font-weight: 700;
}

body#page_body #site_content > .content_container .tab-content {
  margin-top: 0;
  padding: .25rem 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 575.98px) {
  body#page_body #site_content > .content_container :where(
    .nav-tabs, .menu-permission-module-tabs, .menu-permission-tabs
  ) {
    flex-wrap: nowrap;
    gap: .12rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  body#page_body #site_content > .content_container :where(
    .nav-tabs, .menu-permission-module-tabs, .menu-permission-tabs
  )::-webkit-scrollbar {
    display: none;
  }
}
