.title, h1 {
    font-size: 2em; margin-bottom: 16px;
    border-bottom: 2px solid var(--softw) !important;
    overflow: hidden;
}

.content h1:not(.title), .content h2 {
    display: flex; 
    align-items: baseline; gap: 8px;
}
.copyheadinglink {
    border: 0; padding: 0;
    background: transparent; opacity: 0.75;
    display: inline-flex;
    align-items: center; justify-content: center;
    cursor: url("assets/static/cursors/link.cur"), default !important;
}
.copyheadinglink:hover {opacity: 1}
.copyheadinglink img {
    width: auto; height: 1.25em;
    object-fit: contain;
}

/*//////////////////////////////////////////////////////////////////////*/

ol * {
    word-break: break-all;
    overflow-wrap: anywhere;
    hyphens: auto;
}


.paragraph {margin-bottom: 12px}
.smalltext {
    font-size: 0.85em;
    opacity: 0.75;
}
.sizetextsmall {
    font-size: 0.85em;
    opacity: 0.75;
}
.sizetextbig {
    font-size: 1.25em;
    line-height: 1.2;
}
.redirectnote {margin-top: -8px}

/*//////////////////////////////////////////////////////////////////////*/

.citeref, .citationneeded {
    font-size: 0.75em;
    vertical-align: super;
    margin-left: 1px;
}
.citationneeded em {font-style: italic}
.citations {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 2px solid rgba(255,255,255,0.35);
}
.citations ol {
    margin: 8px 0 0 18px;
    display: grid; gap: 6px;
}
.citeback {
    opacity: 0.8;
    margin-left: 6px;
}

/*//////////////////////////////////////////////////////////////////////*/

.quote {
    display: flow-root;
    margin: 14px 0;
    padding: 10px 12px;
    border-left: 5px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}
.quote p {margin: 0 0 8px}
.quote p:last-child {margin-bottom: 0}
.section {margin-top: 18px}

.sectiontitle {
    display: flex; gap: 8px;
    align-items: baseline;
    margin-bottom: 8px;
}

.articlelist {
    list-style: none; display: grid;
    gap: 6px; padding-left: 0;
}
.articlelist li {
    position: relative;
    padding-left: 20px;
}
.articlelist li::before {
    content: ""; position: absolute;
    left: 0; width: 14px; height: 14px;
    background: url("assets/images/icons/bullet.png") no-repeat center / contain;
}

.content h2, .content h3, .content h4 {
    margin: 10px 0 10px;
}
.content code {
    font-family: "jetbrainsmono", monospace;
    font-size: 0.9em;
    background: rgba(0,0,0,0.25);
    border-radius: 6px; padding: 2px 6px;
    text-shadow: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.content pre.codeblock {
    margin: 14px 0; border-radius: 8px;
    overflow: auto; text-shadow: none;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.content pre[class*="language-"] {
    background: rgba(0,0,0,0.25) !important;
    border: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding: 10px 12px !important;
    border-radius: 20px !important;
}
.content code[class*="language-"] {
    background: transparent !important;
    text-shadow: none !important;
}
/* .content a {
    overflow-wrap: anywhere;
    word-break: break-all;
} */
.content a.articlelink {color: rgba(210,215,220, 0.95)}
.content a.articlelink.articlelinkexists {color: var(--a) !important}
.content a.articlelink.articlelinkmissing {color: #ff8f8f !important}

.content u {
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}
.content hr {
    border: 0;
    border-top: 2px solid var(--softw) !important;
    margin: 14px 0;
}

/*//////////////////////////////////////////////////////////////////////*/

.infobox {
    float: right;
    width: min(300px, 100%); max-width: 300px;
    margin: 0 0 14px 14px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px; overflow: auto;
}
.infobox h3 {
    margin: 0; border: 0;
    background: rgba(0,0,0,0.25);
    padding: 10px 12px;
}
.infobox > img {
    display: block;
    width: 100%; object-fit: cover;
}
.infobox table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}
.infobox th, .infobox td {
    padding: 8px 10px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: left; vertical-align: top;
}
.infobox th {
    width: 38%;
    opacity: 0.95;
    font-weight: inherit;
}

/* this is a different kind of infobox, for where issues occur like blacklisted filetypes */
.infoboxwarning {
    margin: 6px;
    background: rgba(255, 0, 0, 0.22);
    border-radius: 10px; padding: 10px;
}

/*//////////////////////////////////////////////////////////////////////*/

.embed {
    margin: 16px 0;
    background: rgba(0,0,0,0.25);
    border-radius: 12px; padding: 10px;
    clear: both; width: min(300px, 100%);
    overflow: auto;
}
.embed video, .embed img, .embed audio {
    width: 100%; max-width: 300px;
    max-height: 300px; object-fit: contain;
    border-radius: 8px;
}
.embed audio {border-radius: 0}
.embedleft {
    float: left;
    margin-right: 14px;
}
.embedright {
    float: right;
    margin-left: 14px;
}
.embed figcaption {
    margin-top: 8px;
    font-size: 0.9em;
    opacity: 0.9;
    white-space: pre-line;
}
.paragraph, .quote p, .articlelist li, .infobox th, .infobox td, .embed figcaption {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/*//////////////////////////////////////////////////////////////////////*/

.card {
    margin: 16px 0;
    background: rgba(143,238,255,0.2);
    border-left: 5px solid rgba(143,238,255,0.8);
    border-radius: 10px; padding: 10px;
    clear: both;
}
.cardwarning {
    background: rgba(255, 206, 95, 0.2);
    border-left-color: rgba(255, 206, 95, 0.85);
}
.carddanger {
    background: rgba(255, 95, 95, 0.22);
    border-left-color: rgba(255, 95, 95, 0.9);
}
.card h3 {
    margin: 0 0 8px; gap: 8px;
    border: 0; padding: 0;
    display: flex; align-items: center;
}
.cardicon {
    height: 1em; width: auto;
    object-fit: contain;
    image-rendering: auto;
}
.card p {margin: 0 0 8px}

/*//////////////////////////////////////////////////////////////////////*/

.msg {
    margin: 16px 0; gap: 10px;
    display: flex; align-items: center;
    background: rgba(0,0,0,0.25);
    border-radius: 10px; padding: 10px;
}
.msgicon {
    width: 64px; height: 64px;
    object-fit: contain;
    flex: 0 0 24px;
}
.msgcontent {min-width: 0}
.msglabel {margin: 0 0 6px}
.msgtext {margin: 0}

/*//////////////////////////////////////////////////////////////////////*/

.markdowntable {
    width: 100%; margin: 12px 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    overflow: hidden;
}
.markdowntable th, .markdowntable td {
    padding: 8px 10px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: left; font-weight: 300;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}
.markdowntable thead th {
    background: rgba(0,0,0,0.25);
    border-top: 0;
}

/*//////////////////////////////////////////////////////////////////////*/

.externallinkwrap {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
    display: inline;
}
.externalicon {
    width: auto !important;
    height: 1em; margin-left: 2px;
    vertical-align: -0.1em;
    display: inline-block;
    flex: 0 0 auto;
}