/*
  PaperMod v8+
  License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE
  Copyright (c) 2020 nanxiaobei and adityatelange
  Copyright (c) 2021-2026 adityatelange
*/
:root {
    --gap: 24px;
    --content-gap: 20px;
    --nav-width: 1024px;
    --main-width: 720px;
    --header-height: 60px;
    --footer-height: 60px;
    --radius: 8px;
    --theme: rgb(255, 255, 255);
    --entry: rgb(255, 255, 255);
    --primary: rgb(30, 30, 30);
    --secondary: rgb(108, 108, 108);
    --tertiary: rgb(214, 214, 214);
    --content: rgb(31, 31, 31);
    --code-block-bg: rgb(28, 29, 33);
    --code-bg: rgb(245, 245, 245);
    --border: rgb(238, 238, 238);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --theme: rgb(29, 30, 32);
    --entry: rgb(46, 46, 51);
    --primary: rgb(218, 218, 219);
    --secondary: rgb(155, 156, 157);
    --tertiary: rgb(65, 66, 68);
    --content: rgb(196, 196, 197);
    --code-block-bg: rgb(46, 46, 51);
    --code-bg: rgb(55, 56, 62);
    --border: rgb(51, 51, 51);
    color-scheme: dark;
}

.list {
    background: var(--code-bg);
}

[data-theme="dark"] .list {
    background: var(--theme);
}
*,
::after,
::before {
    box-sizing: border-box;
}

html {
    -webkit-tap-highlight-color: transparent;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

a,
button,
body,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    word-break: break-word;
    background: var(--theme);
}

article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
table {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
    margin-bottom: 0;
}

ul {
    padding: 0;
}

a {
    text-decoration: none;
}

body,
figure,
ul {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    overflow-x: auto;
    word-break: keep-all;
}

button,
input,
textarea {
    padding: 0;
    font: inherit;
    background: 0 0;
    border: 0;
}

input,
textarea {
    outline: 0;
}

button,
input[type=button],
input[type=submit] {
    cursor: pointer;
}

input:-webkit-autofill,
textarea:-webkit-autofill {
    box-shadow: 0 0 0 50px var(--theme) inset;
}

img {
    display: block;
    max-width: 100%;
}
.not-found {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80%;
    font-size: 160px;
    font-weight: 700;
}
.archive-posts {
    width: 100%;
    font-size: 16px;
}

.archive-year {
    margin-top: 40px;
}

.archive-year:not(:last-of-type) {
    border-bottom: 2px solid var(--border);
}

.archive-month {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
}

.archive-month-header {
    margin: 25px 0;
    width: 200px;
}

.archive-month:not(:last-of-type) {
    border-bottom: 1px solid var(--border);
}

.archive-entry {
    position: relative;
    padding: 5px;
    margin: 10px 0;
}

.archive-entry-title {
    margin: 5px 0;
    font-weight: 400;
}

.archive-count,
.archive-meta {
    color: var(--secondary);
    font-size: 14px;
}
.footer,
.top-link {
    font-size: 12px;
    color: var(--secondary);
}

.footer {
    max-width: calc(var(--main-width) + var(--gap) * 2);
    margin: auto;
    padding: calc((var(--footer-height) - var(--gap)) / 2) var(--gap);
    text-align: center;
    line-height: 24px;
}

.footer span {
    margin-inline-start: 1px;
    margin-inline-end: 1px;
}

.footer span:last-child {
    white-space: nowrap;
}

.footer a {
    color: inherit;
    text-underline-offset: 0.25rem;
    text-decoration: underline;
}

.top-link {
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    z-index: 99;
    background: var(--tertiary);
    width: 2.5rem;
    height: 2.5rem;
    padding: 10px;
    border-radius: 64px;
    transition: visibility .3s, opacity .3s cubic-bezier(0.4, 0, 1, 1);
}

.hidden {
    visibility: hidden;
    opacity: 0;
}

.top-link,
.top-link svg {
    filter: drop-shadow(0px 0px 0px var(--theme));
}

.footer a:hover,
.top-link:hover {
    color: var(--primary);
}
.header-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: calc(var(--nav-width) + var(--gap) * 2);
    margin: auto;
    line-height: var(--header-height);
    padding: 0 var(--gap);
    column-gap: var(--gap);
}

.header-nav a {
    display: block;
}

.logo,
.menu {
    display: flex;
}

.logo {
    align-items: center;
    column-gap: 0.55rem;
    flex-wrap: wrap;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    column-gap: 0.55rem;
}

.logo a img,
.logo a svg {
    pointer-events: none;
    border-radius: 6px;
}

.theme-toggle {
    padding: 0 0.4rem;
}

[data-theme="dark"] .moon {
    display: none;
}

[data-theme="light"] .sun {
    display: none;
}

.logo-switches {
    display: inline-flex;
    gap: 0.4rem;
    align-items: inherit;
    min-height: stretch;
    flex-wrap: inherit;
}

.logo-switches>* {
    min-height: inherit;
    align-items: center;
    display: inline-flex;
}

.nav-sep {
    color: var(--secondary);
}

.lang-menu * {
    display: inherit;
    min-height: inherit;
    align-items: inherit;
}

.lang-menu a {
    font-size: 1rem;
    font-weight: 500;
    padding: 0 0.4rem;
    display: inline-flex
}

.menu {
    list-style: none;
    word-break: keep-all;
    overflow-x: auto;
    white-space: nowrap;
    column-gap: var(--gap);
}

.menu a {
    font-size: 16px;
}

.menu .active {
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
    text-decoration-thickness: 2px;
}
.main {
    position: relative;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    max-width: calc(var(--main-width) + var(--gap) * 2);
    margin: auto;
    padding: var(--gap);
}

.page-header h1 {
    font-size: 40px;
}

.pagination {
    display: flex;
}

.pagination a {
    color: var(--theme);
    font-size: 13px;
    line-height: 36px;
    background: var(--primary);
    border-radius: calc(36px / 2);
    padding: 0 16px;
}

.pagination .next {
    margin-inline-start: auto;
}


.social-icons a {
    display: inline-flex;
    padding: 10px;
}

.social-icons a svg {
    height: 26px;
    width: 26px;
}

code {
    direction: ltr;
}

div.highlight,
pre {
    position: relative;
}

.copy-code {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(78, 78, 78, 0.8);
    border-radius: var(--radius);
    padding: 0 5px;
    font-size: 14px;
    user-select: none;
}

div.highlight:hover .copy-code,
pre:hover .copy-code {
    display: block;
}
.md-content h3,
.md-content h4,
.md-content h5,
.md-content h6 {
    margin: 24px 0 16px;
}

.md-content h1 {
    margin: 40px auto 32px;
    font-size: 40px;
}

.md-content h2 {
    margin: 32px auto 24px;
    font-size: 32px;
}

.md-content h3 {
    font-size: 24px;
}

.md-content h4 {
    font-size: 16px;
}

.md-content h5 {
    font-size: 14px;
}

.md-content h6 {
    font-size: 12px;
}

.md-content a:not(.anchor) {
    text-underline-offset: 0.3rem;
    text-decoration: underline;
}

.md-content del {
    text-decoration: line-through;
}

.md-content dl:not(:last-child),
.md-content ol:not(:last-child),
.md-content p:not(:last-child),
.md-content figure:not(:last-child),
.md-content ul:not(:last-child) {
    margin-bottom: var(--content-gap);
}

.md-content ol,
.md-content ul {
    padding-inline-start: 1.25rem;
}

.md-content li {
    margin-top: 0.3rem;
}

.md-content li p {
    margin-bottom: 0;
}

.md-content dl {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.md-content dt {
    width: 25%;
    font-weight: 700;
}

.md-content dd {
    width: 75%;
    margin-inline-start: 0;
    padding-inline-start: 10px;
}

.md-content dd~dd,
.md-content dt~dt {
    margin-top: 10px;
}

.md-content table {
    margin-bottom: var(--content-gap);
}

.md-content table th,
.md-content table:not(.highlighttable, .highlight table, .gist .highlight) td {
    min-width: 80px;
    padding: 6px 13px;
    line-height: 1.5;
    border: 1px solid var(--border);
}

.md-content table th {
    text-align: start;
}

.md-content table:not(.highlighttable) td code:only-child {
    margin: auto 0;
}

.md-content .highlight table {
    border-radius: var(--radius);
}

.md-content .highlight:not(table) {
    margin-bottom: var(--content-gap);
    background: var(--code-block-bg) !important;
    border-radius: var(--radius);
    direction: ltr;
}

.md-content li>.highlight {
    margin-inline-end: 0;
}

.md-content ul pre {
    margin-inline-start: calc(var(--gap) * -2);
}

.md-content .highlight pre {
    margin: 0;
}

.md-content .highlighttable {
    table-layout: fixed;
}

.md-content .highlighttable td:first-child {
    width: 40px;
}

.md-content .highlighttable td .linenodiv {
    padding-inline-end: 0 !important;
}

.md-content .highlighttable td .highlight,
.md-content .highlighttable td .linenodiv pre {
    margin-bottom: 0;
}

.post-content code {
    padding: 0.2rem 0.3rem;
    font-size: 0.78em;
    line-height: 1.5;
    background: var(--code-bg);
    border-radius: 0.2rem;
}

.md-content pre code {
    display: grid;
    margin: auto 0;
    padding: 10px;
    color: rgb(213, 213, 214);
    background: var(--code-block-bg) !important;
    border-radius: var(--radius);
    overflow-x: auto;
    word-break: break-all;
}

.md-content blockquote {
    margin: 1rem 0;
    padding-inline-start: 1rem;
    border-inline-start: 0.3rem solid var(--content);
}

.md-content hr {
    margin: 30px 0;
    height: 2px;
    background: var(--tertiary);
    border: 0;
}

.md-content iframe {
    max-width: 100%;
}

.md-content img {
    border-radius: var(--radius);
    margin: 1rem 0;
}

.md-content img[src*="#center"] {
    margin: 1rem auto;
}

.md-content figure.align-center {
    text-align: center;
}

.md-content figure>figcaption {
    color: var(--primary);
    font-size: 16px;
    font-weight: bold;
    margin: 8px 0 16px;
}

.md-content figure>figcaption>p {
    color: var(--secondary);
    font-size: 14px;
    font-weight: normal;
}

.md-content h1:hover .anchor,
.md-content h2:hover .anchor,
.md-content h3:hover .anchor,
.md-content h4:hover .anchor,
.md-content h5:hover .anchor,
.md-content h6:hover .anchor {
    display: inline-flex;
    color: var(--secondary);
    margin-inline-start: 0.5em;
    font-weight: 500;
    user-select: none;
}

.anchor:hover {
    color: var(--content) !important;
}

.md-content img.in-text {
    display: inline;
    margin: auto;
}

mark {
    border-radius: 2px;
    padding: 0 2px;
}

audio {
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 2.5rem;
    margin-bottom: var(--content-gap);
}

audio::-webkit-media-controls-enclosure {
    border-radius: 0;
}

video {
    border: 1px solid var(--code-bg);
    border-radius: var(--radius);
    max-width: 100%;
}
.first-entry {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
    margin: var(--gap) 0 calc(var(--gap) * 2) 0;
}

.first-entry .entry-header {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.first-entry .entry-header h1 {
    font-size: 34px;
    line-height: 1.3;
}

.first-entry .entry-header h2 {
    font-size: 40px;
}

.first-entry .entry-content {
    margin: 14px 0;
    font-size: 16px;
    -webkit-line-clamp: 3;
}

.first-entry .entry-footer {
    font-size: 14px;
}

.home-info .entry-content {
    --content-gap: 0.5rem;
    -webkit-line-clamp: unset;
    margin: 0;
}

.home-info .social-icons a:first-of-type {
    padding-inline-start: 0;
}


.post-entry {
    position: relative;
    margin-bottom: var(--gap);
    padding: var(--gap);
    background: var(--entry);
    border-radius: var(--radius);
    transition: transform 0.25s ease;
    border: 1px solid var(--border);
}

.post-entry:hover,
.post-entry:focus-within {
    transform: translateY(-2px);
    border-color: var(--tertiary);
}

.tag-entry .entry-cover {
    display: none;
}

.entry-header h2 {
    font-size: 24px;
    line-height: 1.3;
}

.entry-content {
    margin: 8px 0;
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-info .entry-content p {
    margin-block-start: 1em;
    margin-block-end: 1em;
}

.entry-footer {
    color: var(--secondary);
    font-size: 13px;
}

.entry-link {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: var(--radius);
}

.entry-hint {
    color: var(--secondary);
}

.entry-hint-parent {
    display: flex;
    justify-content: space-between;
}

.entry-cover {
    font-size: 14px;
    margin-bottom: var(--gap);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.entry-cover img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
}

.entry-cover a {
    text-underline-offset: 0.3rem;
    text-decoration: underline;
}
.page-header,
.post-header {
    margin: 24px auto var(--content-gap) auto;
}

.post-title {
    font-size: 40px;
}

.post-description {
    margin-top: 10px;
}

.post-meta {
    margin-top: 5px;
}

.post-meta,
.breadcrumbs {
    color: var(--secondary);
    font-size: 14px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
}

.breadcrumbs a {
    font-size: 16px;
}

.breadcrumbs svg {
    height: 1em;
}

.i18n_list {
    display: inline-flex;
}

.post-meta .i18n_list li {
    list-style: none;
    margin: auto 3px;
}

.post-meta a,
.toc a:hover {
    text-underline-offset: 0.3rem;
    text-decoration: underline;
}

.post-meta a {
    color: var(--secondary);
    text-decoration-style: dotted;
}

details.toc {
    margin-bottom: var(--content-gap);
    background: var(--code-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

[data-theme="dark"] details.toc {
    background: var(--entry);
}

details.toc summary {
    padding: 0.3rem 1.2rem;
    border-radius: var(--radius);
}

details summary {
    cursor: pointer;
    display: list-item;
    width: 100%;
    margin-inline-start: 0;
    user-select: none;
}

details .title {
    display: inline;
    font-weight: 500;
    margin-inline-start: 0.2rem;
}

details {
    interpolate-size: allow-keywords;
}

details::details-content {
    height: 0;
    opacity: 0;
    overflow: clip;
    transition: height 150ms ease,
        opacity 150ms ease,
        content-visibility 150ms allow-discrete;
}

details[open]::details-content {
    height: auto;
    opacity: 1;
}

details .inner {
    margin: 0 2.4rem;
    padding-bottom: 0.6rem;
}

details li ul {
    margin-inline-start: var(--gap);
}

.post-content {
    color: var(--content);
    margin: 30px 0;
}

.post-footer {
    margin-top: var(--content-gap);
}

.post-footer>* {
    margin-bottom: 10px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags li {
    display: inline-block;
}

.post-tags a,
.share-buttons,
.paginav {
    border-radius: var(--radius);
    background: var(--code-bg);
    border: 1px solid var(--border);
}

.post-tags a {
    display: block;
    padding: 0 14px;
    color: var(--secondary);
    font-size: 14px;
    line-height: 34px;
    background: var(--code-bg);
}

.post-tags a:hover,
.paginav a:hover {
    background: var(--border);
}

.share-buttons {
    padding: 10px;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    gap: 10px;
}

.share-buttons li,
.share-buttons a {
    display: inline-flex;
}

.share-buttons a:not(:last-of-type) {
    margin-inline-end: 12px;
}

.paginav {
    display: flex;
    line-height: 1.2;
}

.paginav .title {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--secondary);
}

.paginav a {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: var(--radius);
}

.paginav span:hover:not(.title) {
    text-underline-offset: 0.2rem;
    text-decoration: underline;
}

.paginav .next {
    margin-inline-start: auto;
    text-align: right;
}

[dir="rtl"] .paginav .next {
    text-align: left;
}

h1>a>svg {
    display: inline;
}
.buttons,
.main .profile {
    display: flex;
    justify-content: center;
}

.main .profile {
    align-items: center;
    min-height: calc(100vh - var(--header-height) - var(--footer-height) - (var(--gap) * 2));
    text-align: center;
}

.profile .profile_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile img {
    border-radius: 50%;
}

.buttons {
    flex-wrap: wrap;
    max-width: 400px;
    gap: 1rem;
}

.button {
    background: var(--tertiary);
    border-radius: var(--radius);
    padding: 0.4rem 0.8rem;
}
.searchbox input {
    padding: 4px 10px;
    width: 100%;
    color: var(--primary);
    font-weight: bold;
    border: 2px solid var(--tertiary);
    border-radius: var(--radius);
}

.searchResults li {
    list-style: none;
    border-radius: var(--radius);
    padding: 10px 15px;
    position: relative;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--entry);
    transition: transform .25s ease;
    border: 1px solid var(--border);
}

.searchResults {
    margin: var(--content-gap) 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.searchResults li:hover,
.searchResults li:focus-within {
    transform: translateY(-2px);
    border-color: var(--tertiary);
}

.searchResults li .entry-link:focus {
    outline: 2px solid var(--secondary);
    outline-offset: -2px;
}
.terms-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-top: var(--content-gap);
}

.terms-tags li {
    display: inline-block;
    font-weight: 500;
}

.terms-tags a {
    display: block;
    padding: 4px 10px;
    background: var(--tertiary);
    border-radius: var(--radius);
    transition: transform 0.1s;
}
/* Background */ .bg { color: #cad3f5; background-color: #24273a; }
/* PreWrapper */ .chroma { color: #cad3f5; background-color: #24273a; }
/* Other */ .chroma .x {  }
/* Error */ .chroma .err { color: #ed8796 }
/* CodeLine */ .chroma .cl {  }
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
/* LineHighlight */ .chroma .hl { background-color: #474733 }
/* LineNumbersTable */ .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #8087a2 }
/* LineNumbers */ .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #8087a2 }
/* Line */ .chroma .line { display: flex; }
/* Keyword */ .chroma .k { color: #c6a0f6 }
/* KeywordConstant */ .chroma .kc { color: #f5a97f }
/* KeywordDeclaration */ .chroma .kd { color: #ed8796 }
/* KeywordNamespace */ .chroma .kn { color: #8bd5ca }
/* KeywordPseudo */ .chroma .kp { color: #c6a0f6 }
/* KeywordReserved */ .chroma .kr { color: #c6a0f6 }
/* KeywordType */ .chroma .kt { color: #ed8796 }
/* Name */ .chroma .n {  }
/* NameAttribute */ .chroma .na { color: #8aadf4 }
/* NameBuiltin */ .chroma .nb { color: #91d7e3 }
/* NameBuiltinPseudo */ .chroma .bp { color: #91d7e3 }
/* NameClass */ .chroma .nc { color: #eed49f }
/* NameConstant */ .chroma .no { color: #eed49f }
/* NameDecorator */ .chroma .nd { color: #8aadf4; font-weight: bold }
/* NameEntity */ .chroma .ni { color: #8bd5ca }
/* NameException */ .chroma .ne { color: #f5a97f }
/* NameFunction */ .chroma .nf { color: #8aadf4 }
/* NameFunctionMagic */ .chroma .fm { color: #8aadf4 }
/* NameLabel */ .chroma .nl { color: #91d7e3 }
/* NameNamespace */ .chroma .nn { color: #f5a97f }
/* NameOther */ .chroma .nx {  }
/* NameProperty */ .chroma .py { color: #f5a97f }
/* NameTag */ .chroma .nt { color: #c6a0f6 }
/* NameVariable */ .chroma .nv { color: #f4dbd6 }
/* NameVariableClass */ .chroma .vc { color: #f4dbd6 }
/* NameVariableGlobal */ .chroma .vg { color: #f4dbd6 }
/* NameVariableInstance */ .chroma .vi { color: #f4dbd6 }
/* NameVariableMagic */ .chroma .vm { color: #f4dbd6 }
/* Literal */ .chroma .l {  }
/* LiteralDate */ .chroma .ld {  }
/* LiteralString */ .chroma .s { color: #a6da95 }
/* LiteralStringAffix */ .chroma .sa { color: #ed8796 }
/* LiteralStringBacktick */ .chroma .sb { color: #a6da95 }
/* LiteralStringChar */ .chroma .sc { color: #a6da95 }
/* LiteralStringDelimiter */ .chroma .dl { color: #8aadf4 }
/* LiteralStringDoc */ .chroma .sd { color: #6e738d }
/* LiteralStringDouble */ .chroma .s2 { color: #a6da95 }
/* LiteralStringEscape */ .chroma .se { color: #8aadf4 }
/* LiteralStringHeredoc */ .chroma .sh { color: #6e738d }
/* LiteralStringInterpol */ .chroma .si { color: #a6da95 }
/* LiteralStringOther */ .chroma .sx { color: #a6da95 }
/* LiteralStringRegex */ .chroma .sr { color: #8bd5ca }
/* LiteralStringSingle */ .chroma .s1 { color: #a6da95 }
/* LiteralStringSymbol */ .chroma .ss { color: #a6da95 }
/* LiteralNumber */ .chroma .m { color: #f5a97f }
/* LiteralNumberBin */ .chroma .mb { color: #f5a97f }
/* LiteralNumberFloat */ .chroma .mf { color: #f5a97f }
/* LiteralNumberHex */ .chroma .mh { color: #f5a97f }
/* LiteralNumberInteger */ .chroma .mi { color: #f5a97f }
/* LiteralNumberIntegerLong */ .chroma .il { color: #f5a97f }
/* LiteralNumberOct */ .chroma .mo { color: #f5a97f }
/* Operator */ .chroma .o { color: #91d7e3; font-weight: bold }
/* OperatorWord */ .chroma .ow { color: #91d7e3; font-weight: bold }
/* Punctuation */ .chroma .p {  }
/* Comment */ .chroma .c { color: #6e738d; font-style: italic }
/* CommentHashbang */ .chroma .ch { color: #6e738d; font-style: italic }
/* CommentMultiline */ .chroma .cm { color: #6e738d; font-style: italic }
/* CommentSingle */ .chroma .c1 { color: #6e738d; font-style: italic }
/* CommentSpecial */ .chroma .cs { color: #6e738d; font-style: italic }
/* CommentPreproc */ .chroma .cp { color: #6e738d; font-style: italic }
/* CommentPreprocFile */ .chroma .cpf { color: #6e738d; font-weight: bold; font-style: italic }
/* Generic */ .chroma .g {  }
/* GenericDeleted */ .chroma .gd { color: #ed8796; background-color: #363a4f }
/* GenericEmph */ .chroma .ge { font-style: italic }
/* GenericError */ .chroma .gr { color: #ed8796 }
/* GenericHeading */ .chroma .gh { color: #f5a97f; font-weight: bold }
/* GenericInserted */ .chroma .gi { color: #a6da95; background-color: #363a4f }
/* GenericOutput */ .chroma .go {  }
/* GenericPrompt */ .chroma .gp {  }
/* GenericStrong */ .chroma .gs { font-weight: bold }
/* GenericSubheading */ .chroma .gu { color: #f5a97f; font-weight: bold }
/* GenericTraceback */ .chroma .gt { color: #ed8796 }
/* GenericUnderline */ .chroma .gl { text-decoration: underline }
/* TextWhitespace */ .chroma .w {  }
.chroma {
    background-color: unset !important;
}

.chroma .hl {
    display: flex;
}

.chroma .lnt {
    padding: 0 0 0 12px;
}

.highlight pre.chroma code {
    padding: 8px 0;
}

.highlight pre.chroma .line .cl,
.chroma .ln {
    padding: 0 10px;
}

.chroma .lntd:last-of-type {
    width: 100%;
}
 @media screen and (max-width: 768px) {
    /* theme-vars */
    :root {
        --gap: 14px;
    }

    /* profile-mode */
    .profile img {
        transform: scale(0.85);
    }

    /* post-entry */
    .first-entry {
        min-height: 260px;
    }

    /* archive */
    .archive-month {
        flex-direction: column;
    }

    .archive-year {
        margin-top: 20px;
    }

    /* footer */
    .footer {
        padding: calc((var(--footer-height) - var(--gap) - 10px) / 2) var(--gap);
    }
}

/* footer */
@media screen and (max-width: 900px) {
    .list .top-link {
        transform: translateY(-5rem);
    }
}

@media screen and (max-width: 340px) {
    .share-buttons {
        justify-content: unset;
    }
}

@media (prefers-reduced-motion) {
    /* terms; profile-mode; post-single; post-entry; post-entry; search; search */
    .terms-tags a:active,
    .button:active,
    .post-entry:active,
    .top-link,
    .searchResults .focus,
    .searchResults li:active {
        transform: none;
    }
}
/* ======= Content ==========

This CSS file contains style classes that define elements from pages

  1. Tags & Metadatas
  2. Text styles
  3. Boxes & text decorations
  3. ToC
  4. Elements

=============================*/


/* ==== Tags & Metatadatas ====== */

.first-tags {
    margin-bottom: 20px;
}

/* ======= Test Styles ========== */

.post-content p {
    text-align: justify;
    font-family:   Inter, serif;
 font-weight: normal;
    line-height: 1.8em;
    font-size: 18px;
}

.post-content > p:not(.footnotes):first-of-type {
    margin-top: 50px;
}
.post-content > p:not(.footnotes):first-of-type::first-letter {
    font-size: 3em;
    font-family: garamond;
}

.post-content ul li, .post-content ol li {
    text-align: justify;
    padding: 4px ;
}

.profile_text {
    padding: 20px; margin : 10px;
    border: dotted;
    border-width: 1px 0px;
}

.profile_text p {
    margin-bottom : 0.7em ;
}

.social-icons a:hover {
  background: red;
}

/* ======= Boxes and decorations==== */

.line-center{
    margin:0;
    padding:0 10px;
    display:inline-block;
    background: var(--theme);
}


.centerbox{ 
    /* Container box for figures and pictures */
    display: flex;
    justify-content: center;
    align-items: center;
}

.terms-tags {
  text-align: center;
}


/*Content box, mainly for ToC */
.contentBox {
    background: #241f31;
    border: 1px solid #3d3846;
    border-radius: 7px;
    font-size: 12px;
    padding: 0px 20px 0px 20px  ;
    margin: auto;
}

.contentBox a {
    box-shadow: none;
}
.contentBox a:hover {
    background-color: var(--quartary);
    transition: 0.17s;
}

.listTitle {
    text-align: right;
    padding: 25px 0px 10px;
}

.nav .logo img{
    transform: translate(0,0);
}


.linkbox {
    margin: 15px 0px ;
    display: flex;
    line-height: 30px;
    border-radius: var(--radius);
}

.linkbox a {
    padding-inline-start: 14px;
    padding-inline-end: 14px;
    border-radius: var(--radius);
    text-align: center;
}

.linkbox a:hover {
  background: var(--tertiary);
  transition: var(--transition);
}
.linkbox .title {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: small;
    color: var(--secondary);
}

.linkbox .contact_link,
.linkbox .newsletter_link {
    width: 50%;
    border: 1px solid var(--tertiary);
    margin: 5px;
}

/* ============= Elements ============ */

.triggers {
    border: 1px solid var(--warning);
    border-radius: 10px;
    padding: 10px;
    margin: 20px 0px;

    transition: 0.2s;
}

.triggers summary {
    border-radius: 10px;
    padding: 5px;
    font-weight: bolder;
}

.triggers summary:hover {
    background: var(--warning);
    color: var(--primary);
    transition: 0.2s;
}

.trigger-descr {
    padding: 5px;
    font-style: italic;
}

.trigger-tags {
    text-align: center;
    padding-top: 20px;
}
.trigger-tags a{
    background: var(--warning);
    color: var(--primary);
    font-weight: bold;
    font-size: 16px;
}

.AIBadge {
  text-align: center;
  font-size: 12px;
  padding: 15px;
  border-radius: var(--radius);
  border: 1px black dotted ;
  background: var(--quintary);
}

.AIBadge a {
  text-decoration: underline;
}

.AIBadge img {
  width: 100px;
  margin: 5px auto;
  border-radius: var(--radius);
}

.AISmall {
  text-align: center;
  font-style: italic;
  
  float: right;
  height: 3em;
  width: 3.1em;
  padding: 5px;
}

@media screen and (min-width: 600px) 
{
  .AIBig {
    height:70px;
    margin-top: -5px !important;
    float: left;
  }
}

/* Main logo */
.logo a img {
  padding: 3px;
  border-radius: 27px !important;
}

/* Menu links in top headerbar */
#menu a {
  border-radius: var(--radius);
  padding: 10px;
  line-height: 1em;
}
#menu a:hover {
  transition: var(--transition);
  background: var(--tertiary);
}

.post-entry {
    padding: 10px 20px ;
    margin-bottom: 1em;
}.footnotes {
    background: var(--quartary);
    padding: 15px;
    padding-top: 1px;
    border-radius: var(--radius);
    border: 3px var(--secondary) dotted;
}

.footnotes > ol:before {
    content: "Sources & Références:";
    font-size: 1.2em;
    font-weight: bolder;
    text-decoration: underline;
    margin: 0px -20px !important;
}

.footnotes > hr {
  display: none;
}

.footnotes > ol > li > p {
    padding-top: 1em !important;
    font-size: 0.9em;
    text-indent: 0.2em;
}

.footnotes > ol > li::marker {
    color: var(--secondary);
}

.footnote-backref {
  text-decoration: none !important;
  box-shadow: none !important;
  font-weight: bolder;
  padding: 0px 9px;
}

.footnote-ref {    
    box-shadow: none !important;
    text-decoration: none;
    
    font-size: 1.1em;
    font-weight: bold;
    padding-left: 2px;
}
/* ======= Content ==========

This CSS file contains style for HTML structures and tags.

  0. Default
  1. Text & Titles
  2. Cites & Quotes
  3. Tables
  4. Forms
  5. Videos

=============================*/

/* ==== MAIN DEFAULTS ======*/


/*====== Text and Titles ====*/

h4 {
  font-size: 20px !important;
  margin-top: 45px !important;
}

h5 {
  font-size: 18px !important;
}

.post-content a, p a {    color: Cornflowerblue !important ;}
p a:hover {
    text-decoration: underline;
    transition: var(--transition);
}

 :not(p) + p {
  text-indent: 30px;
}


hr{
  line-height: 1em;
  position: relative;
  text-align: center;
  height: 1.5em !important;
  background: inherit !important;
  border: none;
  
  &::before {
    content: '';
    background: var(--tertiary) !important;
    position: absolute !important;
    left: 0;
    top: 30%;
    width: 100%;
    height: 1px !important;
  }
  
  &::after { 
    content: '౷';    
    background: var(--theme);
    font-weight: bolder;
    width: 3em;
    position: relative;
    display: inline-block;
  }
}

.footnotes hr {visibility: hidden;}





/*========= Quotes ===========*/

blockquote {
    background: var(--quartary);
    border: 0px !important;
    border-radius: var(--radius);
    padding: 20px 15px 1px !important;
}

blockquote cite {
    display: block;
    float: none;
}

cite {    text-align: right !important; }
cite::before {  content: "‣ ";  }

/*========== Tables ==========*/

table {
    display: table;
    table-layout: fixed;
    
    background: var(--quartary);
    border-radius: var(--radius);
}

thead {
    border-radius: var(--radius);
    font-size: 18px !important;
    border-bottom: 2px dashed !important;
}

th, td {
    border-bottom: none !important;
    padding: var(--content-gap) !important;
}
tr:not(:last-of-type) {
    border-bottom: solid 0.5px var(--tertiary);
}

dl {
    background: var(--entry);
    padding: 15px;
    margin: 20px !important;
    border-radius: 10px;
}

dd {
    margin-left: 3% !important;
    width: 90% !important;
}

/*========== Forms ===========*/

form {
    background: var(--tertiary);
    padding: 15px !important;
    border-radius: var(--radius);
    text-align: center;
    width: 100%;
}

form input {
    background: var(--entry);
    padding: 5px;
    margin: var(--content-gap);
    border-radius: var(--radius);
    color: var(--primary);
}

/*========== Videos ===========*/
video {
  border-radius: var(--radius);
  box-shadow: 0px 0px 7px darkslategrey;
  display: block;
  margin: 30px auto;
  
}
.related-posts {
    border: 2px dashed var(--secondary);
    text-align: center;
    padding: 10px ; 
    border-radius: 10px;
    margin : 30px 0px;
}

.related-posts h2 {
    margin: 0px;
    margin-bottom: 7px;
    font-size: 18px;
}

.related-posts h1 {
    margin: 17px !important;
}

.related-link, .linkbutton {
    background: var(--tertiary) !important;
    margin: 5px ;
    padding: var(--gap-small);
    border-radius: var(--radius);
    transition: var(--transition);
    display: inline-block;
}
.social-icons a {border-radius: var(--radius);}
.related-link:hover, .linkbutton:hover, .social-icons a:hover, .submitbutton:hover {
    background: var(--quartary) !important;
    transition: var(--transition);
}

.related-posts li {
    margin: 50px 5px ;
    list-style-type: none;
    padding: 5px;
}
.related-posts ul {
    margin: 5px;
    padding: 0px;
}

.linkbutton {
    background: var(--tertiary);
    padding: 5px;
    line-height: initial;
    float: right;
}
.not-found {
    position: relative;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80%;
    font-size: 6em;
    font-weight: 700;
}
:root {
    --gap: 24px;
    --gap-small:10px;
    --content-gap: 20px;
    --nav-width: 1024px;
    --main-width: 720px;
    --header-height: 60px;
    --footer-height: 60px;
    --radius: 8px;
    --transition: .2s;
    --theme: rgb(255, 255, 255);
    --entry: rgb(255, 255, 255);
    --primary: rgb(30, 30, 30);
    --secondary: rgb(108, 108, 108);
    --tertiary: rgb(214, 214, 214);
    --quartary: rgb(228, 241, 246); 
    --quintary: rgb(220, 236, 240);
    --warning: rgb(255, 38, 38);
    --content: rgb(31, 31, 31);
    --hljs-bg: rgb(28, 29, 33);
    --code-bg: rgb(245, 245, 245);
    --border: rgb(238, 238, 238);
}

.dark {
    --theme: rgb(29, 30, 32);
    --entry: rgb(46, 46, 51);
    --primary: rgb(218, 218, 219);
    --secondary: rgb(155, 156, 157);
    --tertiary: rgb(65, 66, 68);
    --quartary: rgb(0, 0, 0, .6);
    --quintary: rgb(47, 79, 79);
    --warning: rgb(255, 38, 38);
    --content: rgb(196, 196, 197);
    --hljs-bg: rgb(46, 46, 51);
    --code-bg: rgb(55, 56, 62);
    --border: rgb(51, 51, 51);
}

.list {
    background: var(--code-bg);
}

.dark.list {
    background: var(--theme);
}

.main {
     min-height: calc(100vh - var(--header-height) - var(--footer-height) - var(--small-factor) );
}
/* Haiku mise en page */
.haikubloc {
    font-style: italic;

    background: var(--quintary);
    border-radius: var(--radius);

    margin: 10% ;
    padding: 20px 40px;
}

.haikubloc p {
    margin: 0px;
    text-indent: 0px; }
.haikubloc p+p {    text-align: center; }
.haikubloc p+p+p {  text-align: right;  }

.haikubloc::before{
    content: "❠";
    font-size: 3em;
    
    display:block;
    position: relative;
    top: -80px;
    left: -60px;
    height: 0px;
}
.audiobox {
    width: 100% !important;
    border-radius: 10px;
    background: var( --quartary ) !important;
    padding: 5px 20px 10px;
    margin: 15px 0px;
}

.audiotable { 
    width: 100% !important;
    display: table;
    margin: 0px !important;
}

.audiotable tbody {
    margin: 20px;
}

.audiotable th {
    font-size: 20px !important;
}

.audiotable td, .audiotable th {
    padding: 5px !important;
    border-bottom: none !important;
}   

.audiotable tr {
    border-bottom: none !important;
}   

.audiotable tr:hover {
    background-color: inherit;
}
.centerblock {
  margin: auto;
  text-align: center;
  display: block;
}
.commentbox {
    border: 1px solid var(--secondary);
    padding: 0px 15px;
    border-radius: 15px;
}
.dialogbox {
    background: var(--code-bg); 
    border-radius: 7px; 
    margin: 20px;
    padding: 20px;
}

.dialogbox {
    padding-top: 1px;
    padding-bottom: 1px;
}

.dialogbox li {
     list-style-type: none;
}

.dialogbox li::before {
    content: '—';
    position: relative;
    left: -1.5em;          /* Adjust this value so that it appears where you want. */
}
@media only screen and (max-width: 760px), (min-device-width: 760px) and (max-device-width: 860px) {
  /* Force table to not be like tables anymore */
  table, thead, tbody, th, td, tr {
    display: block;
  }
}
.dlbox {
    width: 100% !important;
    border-radius: 10px;
    padding: 5px 20px 10px;
    margin: 15px 0px;
}

.dltable { 
    width: 100% !important;
    display: table;
    margin: 0px !important;
}

.dltable td, .dltable th, .dltable tr {
    border-bottom: none !important;
}   

.dllink {
    box-shadow: 0px 0px !important;
    border: 1px var(--primary) solid;
    padding: 15px;
    border-radius: 10px;    
}
.dllink:hover {
    color: cornflowerblue;
    border-color: cornflowerblue;
    transition: var(--transition);
}

.dlicon {
    font-size: 3em;
    text-align: center;
}

.dltitle {
    font-size: 2em;
    font-weight: bolder;
}

.dldescr {
    padding: 15px;
    text-align: justify;
}

.dldata {
    border-top: 1px dotted lightgrey;
    text-align: right;
    font-size: 0.8em;
    margin-top: 5px;
}

/* Haiku mise en page */
.haikubloc {
    font-family: Monospace !important;

    background: var(--quintary);
    border-radius: 15px;

    margin: 10% ;
    padding: 20px 40px;
}
.haikubloc p {
    margin: 0px;
    text-indent: 0px;
}

.haikubloc p+p {
    text-align: center;
}

.haikubloc p+p+p {
    text-align: right;
}

.haikubloc::before{
    content: "❠";
    font-size: 3em;
    
    display:block;
    position: relative;
    top: -80px;
    left: -60px;
    height: 0px;
}
figcaption {
    background: var( --quartary ) !important;
    color: var(--content) !important;
    border-radius: 10px;
    text-align: center !important;
    font-weight: 500 !important;
    margin-bottom: 1em;
}
/*
This is just a placeholder blank stylesheet so as to support adding custom styles budled with theme's default styles

Read https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#bundling-custom-css-with-themes-assets for more info
*/
