:root {
  --uth-nav-top: max(16px, env(safe-area-inset-top, 0px) + 8px)
}

.uth-menu-btn {
  position: fixed;
  top: var(--uth-nav-top);
  left: 16px;
  z-index: 1100;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(219, 231, 251, .95);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  color: #1e3a8a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px)
}

.uth-menu-btn i {
  font-size: 1.1rem
}

.uth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
  z-index: 1190
}

.uth-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-right: 1px solid #dbe7fb;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
  transform: translateX(-104%);
  transition: transform .28s ease;
  z-index: 1200;
  display: flex;
  flex-direction: column
}

.uth-nav-open .uth-backdrop {
  opacity: 1;
  pointer-events: auto
}

.uth-nav-open .uth-drawer {
  transform: translateX(0)
}

.uth-nav-open {
  overflow: hidden
}

.uth-drawer-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, #2563eb, #4f46e5 64%, #7c3aed);
  color: #fff;
  overflow: hidden
}

.uth-drawer-header::before,
.uth-drawer-header::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12)
}

.uth-drawer-header::before {
  width: 140px;
  height: 140px;
  top: -58px;
  right: -40px
}

.uth-drawer-header::after {
  width: 100px;
  height: 100px;
  left: -30px;
  bottom: -35px
}

.uth-drawer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1
}

.uth-brand {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.uth-brand strong {
  font-size: 1.16rem;
  letter-spacing: -.02em
}

.uth-brand span {
  font-size: .9rem;
  color: rgba(255, 255, 255, .88);
  line-height: 1.5
}

.uth-close-btn {
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  cursor: pointer
}

.uth-drawer-search {
  position: relative;
  margin-top: 14px;
  z-index: 1
}

.uth-drawer-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b
}

.uth-drawer-search input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 44px;
  border: none;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
  font-size: .98rem
}

.uth-drawer-search input:focus {
  outline: 2px solid rgba(191, 219, 254, .7);
  outline-offset: 2px
}

.uth-drawer-body .uth-drawer-search {
  display: block;
  margin: 0 6px 12px
}

.uth-drawer-body .uth-drawer-search input {
  border: 1px solid #dbeafe;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08)
}

.uth-drawer-body {
  padding: 14px 12px 18px;
  overflow: auto
}

.uth-home-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 6px 12px;
  padding: 14px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff6ff, #eef2ff);
  border: 1px solid #dbeafe;
  font-weight: 800;
  color: #1d4ed8
}

.uth-nav-section {
  margin: 0 6px 12px;
  padding: 12px;
  border: 1px solid #e6edf8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04)
}

.uth-nav-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 900;
  color: #0f172a;
  font-size: .98rem
}

.uth-nav-section-title i {
  color: #2563eb
}

.uth-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.uth-acc-item {
  border: 1px solid #e8eef8;
  border-radius: 16px;
  overflow: hidden;
  background: #fcfdff
}

.uth-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 13px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #0f172a;
  font-weight: 800
}

.uth-acc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0
}

.uth-acc-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  color: #2563eb;
  border: 1px solid #dbeafe;
  flex: 0 0 38px
}

.uth-acc-text {
  min-width: 0
}

.uth-acc-text span {
  display: block;
  font-size: .74rem;
  color: #64748b;
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.uth-acc-caret {
  color: #64748b;
  transition: transform .2s ease
}

.uth-acc-item.is-open .uth-acc-caret {
  transform: rotate(180deg)
}

.uth-acc-panel {
  display: none;
  padding: 0 13px 13px 13px
}

.uth-acc-item.is-open .uth-acc-panel {
  display: block
}

.uth-parent-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #eef4ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-weight: 800
}

.uth-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 270px;
  overflow: auto;
  padding-right: 2px
}

.uth-link-item,
.uth-simple-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #ecf1f8;
  border-radius: 14px;
  background: #fff;
  color: #1f2937;
  font-weight: 700
}

.uth-link-item small,
.uth-simple-link small {
  color: #64748b;
  font-weight: 700
}

.uth-simple-links {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.uth-link-item:hover,
.uth-parent-link:hover,
.uth-simple-link:hover,
.uth-home-link:hover {
  filter: brightness(.985)
}

.uth-empty {
  padding: 12px;
  color: #64748b;
  font-size: .92rem
}

body.uth-menu-present .header-inner,
body.uth-menu-present .page-hero {
  padding-left: 78px
}

@media (max-width:640px) {
  :root {
    --uth-nav-top: max(12px, env(safe-area-inset-top, 0px) + 8px)
  }

  .uth-menu-btn {
    left: 12px;
    width: 46px;
    height: 46px;
    border-radius: 15px
  }

  body.uth-menu-present .header-inner,
  body.uth-menu-present .page-hero {
    padding-left: 70px
  }
}

@media (max-width:640px) {
  .uth-drawer {
    width: calc(100vw - 10px);
    max-width: calc(100vw - 10px)
  }

  .uth-drawer-header {
    padding: 16px 14px 12px
  }

  .uth-drawer-body {
    padding: 12px 10px 16px
  }
}


/* Site-wide accessibility and keyboard polish */
.uth-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2200;
  padding: 12px 16px;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .22);
  transform: translateY(-180%);
  transition: transform .18s ease;
}

.uth-skip-link:focus,
.uth-skip-link:focus-visible {
  transform: translateY(0)
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 3px;
}

#main-content:focus {
  outline: none
}

@media (max-width:640px) {
  .uth-skip-link {
    top: 10px;
    left: 10px;
    right: 10px;
    text-align: center
  }
}

/* Center Logo safely in Main Header Globally */
body.uth-menu-present .main-header {
  position: relative !important;
  display: flex !important;
  justify-content: flex-end !important;
  /* This pushes the "Back" button nicely to the right edge */
  align-items: center !important;
  min-height: 60px !important;
}

body.uth-menu-present .main-header .logo {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  white-space: nowrap !important;
  max-width: calc(100vw - 150px) !important;
  /* Protects against overlap with the hamburger menu */
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
}

@media (max-width: 640px) {
  body.uth-menu-present .main-header .logo {
    font-size: 1rem !important;
    max-width: calc(100vw - 130px) !important;
  }
}

/* Back to Top Button */
.uth-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.uth-back-to-top i {
  font-size: 1.15rem;
}

.uth-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.uth-back-to-top:hover {
  background: #1d4ed8;
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.5);
}

@media (max-width: 640px) {
  .uth-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* Global Content Readability Update (Tools, Guides, Pages) */
.faq-item p,
.home-faq-item p,
.seo-copy p,
.table-panel p,
.guide-content p,
.tool-info p,
.info-card p,
.article-body p,
.note-box,
.pt-note-box,
.home-about p,
.home-section>p {
  line-height: 1.85 !important;
  color: #475569 !important;
}

.faq-item strong,
.home-faq-item strong,
.seo-copy strong,
.table-panel strong,
.guide-content strong,
.note-box strong,
.pt-note-box strong {
  color: #0f172a !important;
}

/* =======================================================================
   PREMIUM ICON GRADIENT PATCH (Global UI/UX Upgrade)
   Applies a vibrant, colorful gradient to all major SVG Mask icons in Hamburger Menu.
======================================================================= */
.uth-acc-icon i::before,
.uth-nav-section-title i::before,
.uth-home-link i::before,
.uth-simple-link i::before {
  background: linear-gradient(135deg, #2563eb, #8b5cf6, #d946ef) !important;
  color: transparent !important;
}

.uth-acc-btn:hover .uth-acc-icon i::before {
  background: linear-gradient(135deg, #094bff, #7618ff) !important;
}

/* Universal Smart UI Injector Styles */
details.faq-item,
details.guide-faq-item {
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(15, 23, 42, .02);
  transition: box-shadow .3s ease;
  padding: 0 !important;
}

details.faq-item:hover,
details.guide-faq-item:hover {
  box-shadow: 0 8px 16px rgba(15, 23, 42, .05);
}

details.faq-item summary,
details.guide-faq-item summary {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
}

details.faq-item summary::-webkit-details-marker,
details.guide-faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after,
details.guide-faq-item summary::after,
.pt-read-more::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background-color: #6366f1;
  -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyLjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0ibTYgOSA2IDYgNi02Ii8+PC9zdmc+") center/contain no-repeat;
  mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyLjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0ibTYgOSA2IDYgNi02Ii8+PC9zdmc+") center/contain no-repeat;
  transition: transform .3s ease;
  flex-shrink: 0;
}

details.faq-item[open] summary::after,
details.guide-faq-item[open] summary::after,
.pt-read-more[data-open="true"]::after {
  transform: rotate(180deg);
}

details.faq-item p,
details.guide-faq-item p {
  padding: 0 20px 20px !important;
  border-top: none;
  animation: faqFade .3s ease;
}

@keyframes faqFade {
  from {
    opacity: 0;
    transform: translateY(-8px)
  }

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

/* Universal Read More Toggle styling */
.pt-read-more-wrapper {
  display: none;
  animation: faqFade .3s ease;
}

.pt-read-more-wrapper.expanded {
  display: block;
}

.pt-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  color: #6366f1;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  padding: 6px 14px;
  transition: all .3s ease;
  font-family: inherit;
  line-height: 1;
  outline: none;
}

.pt-read-more:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #4f46e5;
}

.pt-read-more::after {
  background-color: currentColor;
}