.hw-rich-content-body h1,
.hw-rich-content-body h2 {
    color: var(--hw-navy, #062235);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

.hw-rich-content-body h1 {
    font-size: clamp(30px, 3.4vw, 42px);
}

.hw-rich-content-body h2 {
    font-size: clamp(24px, 2.6vw, 30px);
    margin-top: 34px;
}

.hw-rich-content-body p,
.hw-rich-content-body {
    font-size: 16px;
    line-height: 1.8;
}

.hw-rich-content-body p {
    color: var(--hw-text, #071d2c);
    margin: 0 0 20px;
}

.hw-rich-content-body blockquote {
    margin: 26px 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--hw-cyan, #28b9d8);
    color: var(--hw-muted, #35768f);
    font-style: italic;
    font-size: 18px;
    line-height: 1.7;
}

.hw-rich-content-body ul,
.hw-rich-content-body ol {
    margin: 0 0 20px;
    padding-left: 26px;
    color: var(--hw-text, #071d2c);
    font-size: 16px;
    line-height: 1.8;
}

.hw-rich-content-body li {
    margin-bottom: 8px;
}

.hw-rich-content-body a {
    color: var(--hw-blue, #098ac4);
    text-decoration: underline;
}

.wysiwyg-editable table.wysiwyg-table,
.hw-rich-content-body table.wysiwyg-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    table-layout: fixed;
}

.wysiwyg-editable table.wysiwyg-table td,
.wysiwyg-editable table.wysiwyg-table th,
.hw-rich-content-body table.wysiwyg-table td,
.hw-rich-content-body table.wysiwyg-table th {
    border: 1px solid #d9e5eb;
    padding: 8px 12px;
    min-width: 50px;
    vertical-align: top;
}

.hw-rich-content-body table.wysiwyg-table th,
.wysiwyg-editable table.wysiwyg-table th {
    background-color: var(--hw-navy);
    color: var(--hw-light);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 16px 20px;
}

.table-grid-popover {
    position: absolute;
    top: 100%;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid #d9e5eb;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(6, 34, 53, 0.12);
    z-index: 1000;
}

.table-grid-matrix {
    display: grid;
    grid-template-columns: repeat(6, 18px);
    grid-template-rows: repeat(6, 18px);
    gap: 4px;
}

.table-grid-cell {
    width: 18px;
    height: 18px;
    border: 1px solid #d9e5eb;
    border-radius: 3px;
    background: #f8fafc;
    cursor: pointer;
    transition: background-color 0.1s ease, border-color 0.1s ease;
}

.table-grid-cell.active {
    background: rgba(9, 138, 196, 0.25);
    border-color: #098ac4;
}

.table-grid-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #062235;
    text-align: center;
}

.wysiwyg-table-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #d9e5eb;
    border-radius: 6px;
    padding: 4px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wysiwyg-table-menu button {
    background: transparent;
    border: none;
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
}

.wysiwyg-table-menu button:hover {
    background: #f1f3f5;
    color: #0d6efd;
}

.wysiwyg-table-menu button.text-danger:hover {
    background: #fff5f5;
    color: #dc3545;
}

.wysiwyg-table-menu button.text-danger-fill {
    color: #dc3545;
}

.wysiwyg-table-menu button.text-danger-fill:hover {
    background: #dc3545;
    color: #ffffff;
}

.wysiwyg-table-menu .wysiwyg-divider {
    width: 1px;
    height: 16px;
    background-color: #e9ecef;
    margin: 0 2px;
}

.wysiwyg-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    background: #f6f9fb;
    border: 1px solid #d9e5eb;
    border-radius: 10px 10px 0 0;
    padding: 6px 8px;
}

.wysiwyg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #062235;
    cursor: pointer;
    font-size: 15px;
    transition: background-color .12s ease, color .12s ease;
}

.wysiwyg-btn:hover {
    background: rgba(9, 138, 196, 0.1);
    color: #098ac4;
}

.wysiwyg-divider {
    width: 1px;
    height: 20px;
    margin: 0 5px;
    background: #d9e5eb;
    flex-shrink: 0;
}

.wysiwyg-bubble {
    position: absolute;
    display: none;
    align-items: center;
    transform: translateX(-50%);
    background: #062235;
    border-radius: 9px;
    padding: 4px 6px;
    box-shadow: 0 8px 20px rgba(6, 34, 53, .28);
    z-index: 20;
}

.wysiwyg-bubble .wysiwyg-btn {
    color: #dff7fc;
}

.wysiwyg-bubble .wysiwyg-btn:hover {
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
}

.wysiwyg-bubble .wysiwyg-divider {
    background: rgba(255, 255, 255, .2);
}

.wysiwyg-card {
    background: #ffffff;
    border: 1px solid #d9e5eb;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 22px 24px;
    max-height: 340px;
    overflow-y: auto;
}

.wysiwyg-editable {
    outline: none;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--hw-text, #071d2c);
}

.wysiwyg-editable h1,
.wysiwyg-editable h2 {
    color: var(--hw-heading, #062235);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.wysiwyg-editable h1 {
    font-size: 26px;
}

.wysiwyg-editable h2 {
    font-size: 21px;
    margin-top: 20px;
}

.wysiwyg-editable p {
    font-size: 15px;
    line-height: 1.75;
    margin: 0 0 14px;
    color: #071d2c;
}

.wysiwyg-table th p, 
.wysiwyg-table th h1, 
.wysiwyg-table th h2 {
   color: var(--hw-light);
   margin: 0px;
}

.wysiwyg-editable strong {
    font-weight: 700;
}

.wysiwyg-editable em {
    font-style: italic;
}

.wysiwyg-editable u {
    text-decoration: underline;
}

.wysiwyg-editable blockquote {
    margin: 16px 0;
    padding: 4px 0 4px 16px;
    border-left: 3px solid #28b9d8;
    color: #35768f;
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
}

.wysiwyg-editable ul,
.wysiwyg-editable ol {
    margin: 0 0 14px;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.75;
    color: #071d2c;
}

.wysiwyg-editable li {
    margin-bottom: 6px;
}

.wysiwyg-editable a {
    color: #098ac4;
    text-decoration: underline;
}