/* GSMVanta rich-content rendering contract — .
 * Any ordinary Jodit WYSIWYG canvas, admin preview and customer/public target
 * receives this exact class. Parent layout may change available width, but the
 * authored typography, alignment, spacing, tables and images remain identical. */
.gv-rich-content,
.gv-rendered-rich-content {
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
  color:var(--theme-text, inherit);
  background:transparent;
  font-family:var(--gv-font-sans);
  font-size:14px;
  font-weight:400;
  line-height:1.65;
  font-variant-numeric:tabular-nums lining-nums;
  font-feature-settings:"tnum" 1,"lnum" 1;
  overflow-wrap:anywhere;
  word-break:normal;
  text-align:start;
}
.gv-rich-content *,
.gv-rich-content *::before,
.gv-rich-content *::after,
.gv-rendered-rich-content *,
.gv-rendered-rich-content *::before,
.gv-rendered-rich-content *::after { box-sizing:border-box; }

.gv-rich-content > :first-child,
.gv-rendered-rich-content > :first-child { margin-top:0; }
.gv-rich-content > :last-child,
.gv-rendered-rich-content > :last-child { margin-bottom:0; }

.gv-rich-content p,
.gv-rendered-rich-content p { margin:0 0 .9em; }
.gv-rich-content h1,.gv-rich-content h2,.gv-rich-content h3,.gv-rich-content h4,.gv-rich-content h5,.gv-rich-content h6,
.gv-rendered-rich-content h1,.gv-rendered-rich-content h2,.gv-rendered-rich-content h3,.gv-rendered-rich-content h4,.gv-rendered-rich-content h5,.gv-rendered-rich-content h6 {
  margin:1.15em 0 .55em;
  color:inherit;
  font-family:inherit;
  font-weight:600;
  line-height:1.25;
}
.gv-rich-content h1,.gv-rendered-rich-content h1{font-size:2em}
.gv-rich-content h2,.gv-rendered-rich-content h2{font-size:1.65em}
.gv-rich-content h3,.gv-rendered-rich-content h3{font-size:1.35em}
.gv-rich-content h4,.gv-rendered-rich-content h4{font-size:1.15em}
.gv-rich-content h5,.gv-rendered-rich-content h5{font-size:1em}
.gv-rich-content h6,.gv-rendered-rich-content h6{font-size:.9em}

.gv-rich-content :is(div,section,article,aside,header,footer,main,nav,figure,figcaption,blockquote,ul,ol,dl,table,pre),
.gv-rendered-rich-content :is(div,section,article,aside,header,footer,main,nav,figure,figcaption,blockquote,ul,ol,dl,table,pre) { max-width:100%; }

.gv-rich-content ul,.gv-rich-content ol,
.gv-rendered-rich-content ul,.gv-rendered-rich-content ol { margin:.8em 0 1em; padding-inline-start:1.7em; }
.gv-rich-content li,.gv-rendered-rich-content li { margin:.25em 0; }
.gv-rich-content blockquote,.gv-rendered-rich-content blockquote {
  margin:1em 0;padding:.15em 0 .15em 1em;border-inline-start:3px solid var(--theme-border, #d0d5dd);color:var(--theme-text-secondary, #667085);
}
[dir="rtl"] .gv-rich-content blockquote,[dir="rtl"] .gv-rendered-rich-content blockquote { padding:.15em 1em .15em 0; }
.gv-rich-content hr,.gv-rendered-rich-content hr { border:0;border-top:1px solid var(--theme-border, #e4e7ec);margin:1.2em 0; }
.gv-rich-content a,.gv-rendered-rich-content a { color:inherit;text-decoration:none;text-underline-offset:2px; }

.gv-rich-content img,
.gv-rendered-rich-content img {
  max-width:100%;height:auto;vertical-align:middle;
}
/* Alignment must be inherited from the exact block authored in Jodit. Never
 * globally force images to block layout because that breaks centered content. */
.gv-rich-content [style*="text-align:center"] > img,.gv-rich-content [style*="text-align: center"] > img,.gv-rich-content [align="center"] > img,
.gv-rendered-rich-content [style*="text-align:center"] > img,.gv-rendered-rich-content [style*="text-align: center"] > img,.gv-rendered-rich-content [align="center"] > img { display:inline-block; }
.gv-rich-content img[align="center"],.gv-rendered-rich-content img[align="center"] { display:block;margin-inline:auto; }
.gv-rich-content img[align="right"],.gv-rendered-rich-content img[align="right"] { float:right; }
.gv-rich-content img[align="left"],.gv-rendered-rich-content img[align="left"] { float:left; }

.gv-rich-content table,.gv-rendered-rich-content table { width:auto;max-width:100%;border-collapse:collapse;border-spacing:0; }
.gv-rich-content td,.gv-rich-content th,.gv-rendered-rich-content td,.gv-rendered-rich-content th { padding:.55em .7em;border:1px solid var(--theme-border, #d0d5dd);vertical-align:top; }
.gv-rich-content th,.gv-rendered-rich-content th { font-weight:600;background:var(--theme-surface-subdued, #f8fafc); }
.gv-rich-content pre,.gv-rendered-rich-content pre { margin:1em 0;padding:1em;border:1px solid var(--theme-border, #e4e7ec);border-radius:8px;background:var(--theme-surface-subdued, #f6f8fa);color:inherit;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto; }
.gv-rich-content code,.gv-rendered-rich-content code { max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace; }

.gv-rich-content::after,.gv-rendered-rich-content::after { content:"";display:table;clear:both; }

/* Theme ownership: copied HTML may keep layout/font/spacing, but customer-facing
 * paint is always supplied by the current GSMVanta Light/Dark surface. */
.gv-rendered-rich-content :where(
  div,section,article,aside,header,footer,main,nav,figure,figcaption,
  p,span,strong,b,em,i,u,s,strike,del,sub,sup,small,mark,
  h1,h2,h3,h4,h5,h6,ul,ol,li,dl,dt,dd,a,caption,td,th
) {
  color:inherit;
}
.gv-rendered-rich-content :where(div,section,article,aside,header,footer,main,nav,figure,figcaption,p,span) {
  background-color:transparent;
}
