/* LERWS Help Center - Portal aligned styles */

.lerws-help-portal {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.lerws-portal.lerws-help-portal,
.lerws-help-portal {
  overflow: visible;
  overflow-x: visible;
}

.lerws-help-topbar .lerws-topbar-icon-btn {
  width: auto;
  height: auto;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 13px;
}

.lerws-help-topbar .lerws-help-nav-search {
  flex: 0 1 320px;
  max-width: 320px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: none;
  flex-wrap: nowrap;
  margin-right: 8px;
}

.lerws-help-topbar .lerws-help-nav-search input {
  font-size: 13px;
  padding: 6px 8px;
}

.lerws-help-topbar .lerws-help-nav-search button {
  display: none;
}

.lerws-help-topbar .lerws-topbar-icon-btn.lerws-icon-theme {
  width: 36px;
  height: 36px;
  padding: 0;
}

.lerws-help-topbar .lerws-topbar-icon-btn:hover {
  background: var(--bg-tertiary);
}

.lerws-help-topbar .lerws-topbar-icon-btn.lerws-theme-toggle,
.lerws-help-mobile-header .lerws-icon-btn.lerws-theme-toggle {
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.lerws-help-topbar .lerws-topbar-icon-btn.lerws-theme-toggle:hover,
.lerws-help-mobile-header .lerws-icon-btn.lerws-theme-toggle:hover {
  background: transparent;
}

.lerws-help-topbar .lerws-topbar-icon-btn.lerws-icon-theme,
.lerws-help-mobile-header .lerws-icon-btn.lerws-icon-theme {
  background-image: none !important;
}

.lerws-theme-toggle-track {
  --lerws-toggle-width: 78px;
  --lerws-toggle-height: 34px;
  --lerws-toggle-padding: 3px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  width: var(--lerws-toggle-width);
  height: var(--lerws-toggle-height);
  padding: var(--lerws-toggle-padding);
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
  gap: 2px;
}

.lerws-help-mobile-header .lerws-theme-toggle-track {
  --lerws-toggle-width: 70px;
  --lerws-toggle-height: 30px;
  --lerws-toggle-padding: 2px;
}

.lerws-theme-toggle-thumb {
  position: absolute;
  top: var(--lerws-toggle-padding);
  left: var(--lerws-toggle-padding);
  width: calc(50% - 2px);
  height: calc(100% - (var(--lerws-toggle-padding) * 2));
  border-radius: 999px;
  background: var(--accent-primary);
  box-shadow: 0 6px 14px rgba(30, 64, 175, 0.35);
  transition: transform 0.2s ease;
  z-index: 1;
}

.lerws-portal[data-theme="dark"] .lerws-theme-toggle-thumb {
  transform: translateX(100%);
}

.lerws-theme-toggle-option {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.lerws-theme-toggle-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.lerws-help-mobile-header .lerws-theme-toggle-icon {
  width: 14px;
  height: 14px;
}

.lerws-portal[data-theme="light"] .lerws-theme-toggle-option--light {
  color: #fff;
}

.lerws-portal[data-theme="dark"] .lerws-theme-toggle-option--dark {
  color: #fff;
}

.lerws-topbar-icon-btn.lerws-theme-toggle:focus-visible,
.lerws-icon-btn.lerws-theme-toggle:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .lerws-theme-toggle-thumb,
  .lerws-theme-toggle-option {
    transition: none;
  }
}

.lerws-help-mobile-header .lerws-mobile-login {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
}

.lerws-help-mobile-header .lerws-mobile-login:hover {
  background: var(--bg-tertiary);
}

.lerws-help,
.lerws-help-single {
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-primary);
  padding-top: calc(var(--header-height) + 0px);
  padding-bottom: 72px;
  min-height: calc(100vh - var(--header-height));
}

.lerws-help h1,
.lerws-help h2,
.lerws-help h3,
.lerws-help-single h1,
.lerws-help-single h2,
.lerws-help-single h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lerws-help-hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 60%);
  padding: 56px 24px 40px;
  border-bottom: 1px solid var(--border-color);
}

.lerws-help-hero-inner {
  max-width: 1275px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.lerws-help-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  font-weight: 600;
}

.lerws-help-hero h1 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 8px 0 12px;
}

.lerws-help-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
}

.lerws-help-search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--bg-elevated);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.lerws-help-search input {
  flex: 1 1 260px;
  border: none;
  font-size: 16px;
  padding: 10px 12px;
  outline: none;
  background: transparent;
  color: var(--text-primary);
}

.lerws-help-search input::placeholder {
  color: var(--text-muted);
}

.lerws-help-search button {
  background: var(--accent-primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.lerws-help-search button:hover {
  background: var(--accent-hover);
}

.lerws-help-search,
.lerws-help-rail-search {
  position: relative;
}

.lerws-help-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 30;
  max-height: 320px;
  overflow: auto;
}

.lerws-help-search-dropdown.is-open {
  display: block;
}

.lerws-help-search-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.lerws-help-search-item:hover {
  background: var(--bg-tertiary);
}

.lerws-help-search-item-media {
  width: 56px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.lerws-help-search-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lerws-help-search-item-content {
  flex: 1;
  min-width: 0;
}

.lerws-help-search-item-title {
  font-size: 14px;
  font-weight: 600;
}

.lerws-help-search-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lerws-help-search-item-excerpt {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.lerws-help-search-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.lerws-help-search-footer {
  border-top: 1px solid var(--border-color);
  margin-top: 6px;
  padding-top: 6px;
}

.lerws-help-search-footer a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 600;
}

.lerws-help-search-footer a:hover {
  background: var(--bg-tertiary);
}

.lerws-help-categories,
.lerws-help-list {
  max-width: 1275px;
  margin: 0 auto;
  padding: 32px 24px 12px;
  width: 100%;
}

.lerws-help-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lerws-help-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lerws-help-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  text-decoration: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lerws-help-category-pill:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.lerws-help-category-pill.is-active {
  border-color: var(--accent-primary);
  background: var(--accent-active-bg);
  color: var(--accent-active-text);
  box-shadow: var(--shadow-sm);
}

.lerws-help-category-title {
  font-weight: 600;
}

.lerws-help-category-count {
  color: var(--text-muted);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.lerws-help-article-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (min-width: 1100px) {
  .lerws-help-article-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lerws-help-list.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.lerws-help-article {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.lerws-help-article a,
.lerws-help-article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lerws-help-article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.lerws-help-article-media {
  width: 100%;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  border: none;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  position: relative;
}

.lerws-help-article-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.lerws-help-article-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  background: color-mix(in srgb, var(--bg-primary) 70%, transparent);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.lerws-help-article-pill.is-inline {
  position: static;
  box-shadow: none;
  background: rgba(15, 23, 42, 0.35);
  background: color-mix(in srgb, var(--bg-secondary) 75%, transparent);
  color: var(--text-secondary);
  padding: 4px 10px;
  font-size: 11px;
}

.lerws-help-article-pill-icon {
  width: 12px;
  height: 12px;
  display: block;
  color: currentColor;
}

.lerws-help-article-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.lerws-help-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 2px;
}

.lerws-help-article-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lerws-help-article-date-icon {
  width: 14px;
  height: 14px;
  display: block;
  color: currentColor;
}

.lerws-help-article h3 {
  margin: 0;
  line-height: 1.35;
  font-size: 18px;
}

.lerws-help-article p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
}

.lerws-help-article-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 600;
}

.lerws-help-article-cta::after {
  content: "";
  display: none;
}

.lerws-help-shortcode .lerws-help-article a {
  padding: 16px;
  gap: 10px;
}

.lerws-help-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lerws-help-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.lerws-help-pagination .page-numbers.current,
.lerws-help-pagination .page-numbers:hover {
  background: var(--accent-active-bg);
  color: var(--accent-active-text);
  border-color: var(--accent-primary);
}

.lerws-help-single {
  padding: calc(var(--header-height) + 24px) 24px 80px;
  max-width: 1275px;
  margin: 0 auto;
  width: 100%;
  overflow: visible;
}

.lerws-help-single .lerws-help-breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lerws-help .lerws-help-breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
}

.lerws-help-breadcrumbs a,
.lerws-help-breadcrumbs span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lerws-help-breadcrumbs a::after,
.lerws-help-breadcrumbs span::after {
  content: "›";
  color: var(--text-muted);
}

.lerws-help-breadcrumbs a:last-child::after,
.lerws-help-breadcrumbs span:last-child::after,
.lerws-help-breadcrumbs .lerws-help-breadcrumb-current::after {
  content: "";
}

.lerws-help-breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

.lerws-help-hero .lerws-help-breadcrumbs {
  margin-bottom: 12px;
}

.lerws-help-single .lerws-help-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.lerws-help .lerws-help-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.lerws-help-single .lerws-help-breadcrumbs a:hover {
  color: var(--accent-primary);
}

.lerws-help .lerws-help-breadcrumbs a:hover {
  color: var(--accent-primary);
}

.lerws-help-header {
  max-width: none;
  margin: 24px auto 40px;
}

.lerws-help-featured {
  margin: 0 0 24px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  background: var(--bg-secondary);
}

.lerws-help-featured-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain !important;
  max-height: none !important;
  max-width: 100% !important;
}

.lerws-help-featured .wp-post-image {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  max-height: none !important;
}

.lerws-help-infographic {
  margin: 0 0 24px;
}

.lerws-help-infographic-link {
  display: block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  background: var(--bg-secondary);
  text-decoration: none;
}

.lerws-help-infographic-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.lerws-help-infographic-link::after {
  content: attr(data-label);
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
}

.lerws-help-infographic-link:hover::before {
  opacity: 1;
}

.lerws-help-infographic-link:hover::after {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.95);
}

.lerws-help-infographic-link img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.lerws-help-infographic figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.lerws-help-rail .lerws-help-infographic {
  margin: 0;
}

.lerws-help-rail .lerws-help-infographic figcaption {
  margin-top: 8px;
}

.lerws-help-kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.lerws-help-header h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 12px 0;
}

.lerws-help-lede {
  font-size: 18px;
  color: var(--text-secondary);
}

.lerws-help-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 12px;
}

.lerws-help-body {
  max-width: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 32px;
}

.lerws-help-single-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  overflow: visible;
}

.lerws-help-rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
}

.lerws-help-rail-search {
  display: grid;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.lerws-help-rail-search input {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
}

.lerws-help-rail-search input::placeholder {
  color: var(--text-muted);
}

.lerws-help-rail-search button {
  background: var(--accent-primary);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.lerws-help-rail-block,
.lerws-help-rail-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.lerws-help-toc.is-empty {
  display: none;
}

.lerws-help-toc-list {
  display: grid;
  gap: 6px;
  justify-items: start;
  position: relative;
  padding-left: 6px;
}

.lerws-help-toc-list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border-color);
  border-radius: 999px;
  opacity: 0.6;
}

.lerws-help-toc-list::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 2px;
  height: var(--toc-progress, 0%);
  background: var(--accent-primary);
  border-radius: 999px;
}

.lerws-help-toc-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.4;
  padding: 4px 6px 4px 18px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  position: relative;
  text-align: left;
  width: 100%;
}

.lerws-help-toc-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.lerws-help-toc-link.is-sub {
  padding-left: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

.lerws-help-toc-link.is-active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-tertiary);
}

.lerws-help-toc-link::before {
  content: "\2022";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-primary);
  line-height: inherit;
}

.lerws-help-toc-link.is-sub::before {
  left: 10px;
  color: var(--text-secondary);
}

.lerws-help-toc-link.is-active::before {
  color: var(--text-primary);
}

.lerws-help-share-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lerws-help-share-links a,
.lerws-help-share-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lerws-help-share-links a:hover,
.lerws-help-share-links button:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.lerws-help-share-links svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.lerws-help-share-copy.is-copied {
  border-color: var(--accent-primary);
  background: var(--accent-active-bg);
}

.lerws-help-rail-block h3,
.lerws-help-rail-card h3 {
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.lerws-help-rail-list {
  display: grid;
  gap: 10px;
}

.lerws-help-rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.lerws-help-rail-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.lerws-help-rail-item.is-active {
  background: var(--accent-active-bg);
  color: var(--accent-active-text);
}

.lerws-help-rail-count,
.lerws-help-rail-date {
  font-size: 12px;
  color: var(--text-muted);
}

.lerws-help-rail-empty {
  color: var(--text-muted);
  font-size: 13px;
}

.lerws-help-main {
  background: var(--bg-elevated);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.lerws-help-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.lerws-help-content h1 {
  font-size: 28px;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

.lerws-help-content h2 {
  font-size: 22px;
  margin: 22px 0 10px;
  color: var(--text-primary);
}

.lerws-help-content h3 {
  font-size: 18px;
  margin: 18px 0 8px;
  color: var(--text-primary);
}

.lerws-help-content h4 {
  font-size: 16px;
  margin: 16px 0 6px;
  color: var(--text-primary);
}

.lerws-help-content p {
  margin: 0 0 12px;
}

.lerws-help-content ul,
.lerws-help-content ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.lerws-help-content li {
  margin: 6px 0;
}

.lerws-list {
  margin: 12px 0;
  padding-left: 22px;
  list-style-position: outside;
}

.lerws-list li {
  margin: 6px 0;
}

.lerws-list li::marker {
  color: var(--accent-primary);
}

.lerws-list--compact li {
  margin: 4px 0;
}

.lerws-list--check {
  list-style: none;
  padding-left: 0;
}

.lerws-list--check li {
  position: relative;
  padding-left: 28px;
}

.lerws-list--check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent-active-bg);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.lerws-list--steps {
  list-style: none;
  padding-left: 0;
  counter-reset: lerws-steps;
}

.lerws-list--steps li {
  position: relative;
  padding-left: 32px;
  counter-increment: lerws-steps;
}

.lerws-list--steps li::before {
  content: counter(lerws-steps);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.lerws-callout {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 16px 0;
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.lerws-callout-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.lerws-callout-body {
  color: var(--text-secondary);
}

.lerws-callout--primary {
  background: var(--accent-active-bg);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.lerws-callout--secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.lerws-callout--muted {
  background: color-mix(in srgb, var(--bg-secondary) 85%, transparent);
  color: var(--text-muted);
}

.lerws-callout--accent {
  background: color-mix(in srgb, var(--accent-primary) 12%, var(--bg-secondary));
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.lerws-section {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.lerws-section--surface {
  background: var(--bg-tertiary);
}

.lerws-section--elevated {
  background: var(--bg-elevated);
}

.lerws-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.lerws-section-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent-primary) 18%, var(--bg-secondary));
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.lerws-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.lerws-card-grid {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.lerws-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.lerws-card-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.lerws-card-body {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.lerws-card--primary {
  background: var(--accent-active-bg);
  border-color: var(--accent-primary);
}

.lerws-card--secondary {
  background: var(--bg-tertiary);
}

.lerws-card--muted {
  background: color-mix(in srgb, var(--bg-secondary) 88%, transparent);
  color: var(--text-muted);
}

.lerws-card--accent {
  background: color-mix(in srgb, var(--accent-primary) 10%, var(--bg-secondary));
  border-color: var(--accent-primary);
}

.lerws-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.lerws-help-content table,
.lerws-table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.lerws-help-content table th,
.lerws-help-content table td,
.lerws-table th,
.lerws-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
}

.lerws-help-content table th,
.lerws-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
}

.lerws-help-content table tr:last-child td,
.lerws-table tr:last-child td {
  border-bottom: none;
}

.lerws-help-content table th:last-child,
.lerws-help-content table td:last-child,
.lerws-table th:last-child,
.lerws-table td:last-child {
  border-right: none;
}

.lerws-help-content table tbody tr:nth-child(even),
.lerws-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--bg-secondary) 80%, transparent);
}

.lerws-help-content table caption,
.lerws-table caption {
  caption-side: bottom;
  text-align: left;
  padding: 8px 2px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.lerws-help-content img,
.lerws-help-content figure,
.lerws-help-content .wp-caption,
.lerws-help-content iframe,
.lerws-help-content video,
.lerws-help-content table {
  max-width: 100%;
}

.lerws-help-content img {
  height: auto;
}

.lerws-help-content .wp-caption {
  width: auto !important;
}

.lerws-help-content figure img,
.lerws-help-content .wp-caption img {
  display: block;
  width: 100%;
  height: auto;
}

.lerws-help-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.lerws-help-content h2,
.lerws-help-content h3 {
  color: var(--text-primary);
}

.lerws-help-content h3,
.lerws-help-block {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.lerws-help-block {
  margin-top: 32px;
}

.lerws-help-block h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.lerws-help-block ul,
.lerws-help-block ol {
  padding-left: 20px;
  color: var(--text-secondary);
}

.lerws-help-faq details {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--bg-secondary);
}

.lerws-help-cta {
  margin-top: 32px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
}

.lerws-help-comments {
  margin-top: 40px;
}

.lerws-help-related {
  margin-top: 48px;
}

.lerws-help-feedback {
  margin-top: 32px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.lerws-help-feedback-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.lerws-help-feedback-actions {
  display: flex;
  gap: 8px;
}

.lerws-help-feedback-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
  transition: all 0.2s ease;
}

.lerws-help-feedback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  transform: translateY(1px);
}

.lerws-help-feedback-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-active-bg);
}

.lerws-help-feedback-btn.is-selected {
  border-color: var(--accent-primary);
  background: var(--accent-active-bg);
  color: var(--accent-active-text);
}

.lerws-help-feedback-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.lerws-help-feedback-message {
  flex: 1 1 100%;
  font-size: 12px;
  color: var(--text-muted);
}

.lerws-help-alert {
  background: rgba(210, 153, 34, 0.15);
  border: 1px solid rgba(210, 153, 34, 0.45);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.lerws-help-side {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.lerws-help-card {
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.lerws-help-button {
  display: inline-block;
  background: var(--accent-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  margin-top: 12px;
  font-weight: 600;
}

.lerws-help-link {
  display: block;
  margin-top: 12px;
  color: var(--text-secondary);
  text-decoration: none;
}

.lerws-help-link:hover {
  color: var(--accent-primary);
}

.lerws-help-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  backdrop-filter: blur(2px);
}

.lerws-help-lightbox.is-open {
  display: flex;
}

.lerws-help-lightbox-inner {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: calc(100vh - 80px);
  width: 100%;
  background: var(--bg-primary);
  border-radius: 18px;
  border: 1px solid var(--border-color);
  padding: 0;
  box-shadow: 0 35px 80px rgba(2, 6, 23, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.lerws-help-lightbox-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.lerws-help-lightbox-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex: 1 1 auto;
}

.lerws-help-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lerws-help-lightbox-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lerws-help-lightbox-btn:hover {
  background: var(--bg-tertiary);
}

.lerws-help-lightbox-stage {
  flex: 1;
  min-height: 0;
  background: rgba(15, 23, 42, 0.65);
  border-top: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lerws-help-lightbox-frame {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.35);
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lerws-help-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  transform-origin: center center;
  cursor: zoom-in;
  user-select: none;
  touch-action: none;
}

.lerws-help-lightbox-image.is-zoomed {
  cursor: grab;
}

.lerws-help-lightbox-close {
  position: relative;
  top: auto;
  right: auto;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.lerws-help-lightbox-caption {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 12px;
}

.lerws-help-lightbox-caption.is-empty {
  display: none;
}

.lerws-help-lightbox.is-fit .lerws-help-lightbox-stage {
  overflow: auto;
  align-items: flex-start;
}

.lerws-help-lightbox.is-fit .lerws-help-lightbox-frame {
  width: 100%;
}

.lerws-help-lightbox.is-fit .lerws-help-lightbox-image {
  width: 100%;
  height: auto;
  max-height: none;
  cursor: default;
}

.lerws-help-shortcode {
  display: grid;
  gap: 16px;
}

.lerws-help-shortcode .lerws-help-article {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
}

.comment-form-verify {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.lerws-help-verify-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lerws-help-verify-row input {
  flex: 1 1 120px;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
}

.lerws-help-verify-status {
  font-size: 12px;
  color: var(--text-secondary);
}

.lerws-help-comments input[type="text"],
.lerws-help-comments input[type="email"],
.lerws-help-comments input[type="url"],
.lerws-help-comments textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.lerws-help-comments input[type="submit"] {
  background: var(--accent-primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-width: 960px) {
  .lerws-help-body,
  .lerws-help-single-grid {
    grid-template-columns: 1fr;
  }

  .lerws-help-rail {
    display: contents;
  }

  .lerws-help-rail > *:not(.lerws-help-toc) {
    order: 2;
  }

  .lerws-help-toc {
    order: 0;
  }

  .lerws-help-rail,
  .lerws-help-side {
    position: static;
  }

  .lerws-help-main {
    order: 1;
  }

  .lerws-help-rail {
    order: 1;
  }
}
