.hljs-string, .hljs-section, .hljs-selector-class, .hljs-template-variable, .hljs-subst, .hljs-deletion {
    color: #69aa72;
}

td, .wp-block-calendar tfoot td {
    border: none;
}

.hljs-section, .hljs-title {
    color: #57aaf7;
}

.hljs-link, .hljs-operator, .hljs-regexp, .hljs-selector-attr, .hljs-selector-pseudo, .hljs-symbol, .hljs-template-variable, .hljs-variable {
    color: #9775a8;
}

.hljs-string, .hljs-section, .hljs-selector-class, .hljs-template-variable, .hljs-subst, .hljs-deletion {
    color: #abb2bf;
}

/* ----- Code block: toolbar (language + copy) above the code ----- */
.code-block {
    margin: 0 0 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background-color: #2d2b57;
    text-align: left;
}

div.code-block > pre {
    margin: 0;
    border: 0;
    border-radius: 0;
}

/* Keep each code line on one row and scroll sideways (the theme's app.css wraps <pre>),
   so long lines don't break apart from their line numbers on small screens. */
div.code-block pre,
div.code-block code,
div.code-block .hljs-ln td {
    white-space: pre;
    overflow-wrap: normal;
    word-wrap: normal;
}

.code-block-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 6px 8px 6px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(0, 0, 0, 0.18);
}

.code-block-lang {
    color: #a9a6d8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
}

.code-block-copy {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    width: auto;
    height: 30px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: transparent;
    color: #dcdaf7;
    font-family: Dana, Dana-fallback, Tahoma, sans-serif;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.code-block-copy:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.code-block-copy:focus-visible {
    outline: 2px solid #a98bf5;
    outline-offset: 2px;
}

.code-block-copy.is-copied {
    border-color: rgba(126, 226, 168, 0.45);
    color: #7ee2a8;
}

.code-block-copy svg {
    flex-shrink: 0;
}

pre {
    border: 1px solid #999;
    background-color: #2d2b57;
    border-radius: 30px;
    color: #f1f0f0;
}

.hljs {
    background-color: #2d2b57;
    color: #abb2bf
}

code {
    border: none;
}

.hljs-ln td {
    padding: 0 10px 0 0;
    border: none!important;
}

.hljs-deletion, .hljs-number, .hljs-quote, .hljs-selector-class, .hljs-selector-id, .hljs-string, .hljs-template-tag, .hljs-type {
    color: #ff9d6d;
}

.hljs-punctuation, .hljs-tag {
    color: #E8B86D;
}

.hljs-attribute, .hljs-doctag, .hljs-keyword, .hljs-meta .hljs-keyword, .hljs-name, .hljs-selector-tag {
    color: #d916d9;
}

.hljs-comment, .hljs-quote {
    color: #777;
    font-style: italic;
}

.hljs-tag .hljs-attr, .hljs-tag .hljs-name {
    color: #26a641;
}

.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-name {
    color: #007acc;
}

.hljs-attribute, .hljs-meta {
    color: #f08d49;
}

.hljs-number, .hljs-regexp, .hljs-link {
    color: #d36363;
}

.hljs-string, .hljs-symbol, .hljs-bullet, .hljs-subst {
    color: #50a14f;
}

.hljs-title, .hljs-section {
    color: #4078f2;
}

.hljs-emphasis {
    font-style: italic;
}

.hljs-strong {
    font-weight: bold;
}

.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-name {
    color: #bd57c3;
}

.hljs-attr {
    color: antiquewhite;
}

.language-env {
    color: #ff5d0c;
}

.hljs-selector-tag, .hljs-literal, .hljs-name, .hljs-title {
    color: #d7a74e !important;
}

.hljs-selector-tag, .hljs-literal, .hljs-name, .function_ {
    color: #4078f2 !important;
}

.hljs-built_in {
    color: #4078f2;
}

blockquote {
    direction: rtl;
    font-style: normal;
    font-weight: 400;
    color: #333;
    border-right: 4px solid #ccc;
    background-color: #f5f5f5;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    position: relative;
    line-height: 1.8;
}

blockquote p {
    margin: 0;
}

blockquote::before {
    content: "“";
    font-size: 3rem;
    position: absolute;
    right: 10px;
    top: -10px;
    color: #ccc;
    line-height: 1;
    font-family: serif;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.table colgroup col {
    width: 25%;
}

.table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.table tbody tr:first-child {
    background-color: #f4f4f4;
    font-weight: bold;
}

.table td {
    padding: 10px;
    text-align: center;
    border-right: 1px solid #e0e0e0;
}

.table td:last-child {
    text-align: center;
    font-weight: bold;
    color: #007bff;
}

.table td span {
    color: #333;
    font-variant-numeric: tabular-nums;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.2s ease;
}

h3 code strong {
    font-size: 22px;
}

body.active-dark-mode blockquote {
    background-color: #333;
    color: #f5f5f5;
}

body.active-dark-mode :is(blockquote p, blockquote p strong) {
    color: #f5f5f5;
}

body.active-dark-mode p code {
    background: #565656;
    padding: 4px;
    border-radius: 7px;
    color: #c899ff;
}
