/* Root Properties */
:root {
    --font-family-base: 'Evermore Sans';
    --font-family-monospace: 'Evermore Mono';
    --font-family-sans-serif: 'Evermore Sans';
    --font-family-serif: 'Evermore Book';
    --font-family-emoji: 'Segoe Emoji';
}

/* Typefaces */
@font-face {
    font-family: 'Evermore Book';
    src: url(https://janusml.pages.dev/assets/type/EvermoreBook-Regular.otf);
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Evermore Book';
    src: url(https://janusml.pages.dev/assets/type/EvermoreBook-Italic.otf);
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Evermore Book';
    src: url(https://janusml.pages.dev/assets/type/EvermoreBook-Bold.otf);
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Evermore Book';
    src: url(https://janusml.pages.dev/assets/type/EvermoreBook-BoldItalic.otf);
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Evermore Sans';
    src: url(https://janusml.pages.dev/assets/type/EvermoreSans-Regular.ttf);
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Evermore Sans';
    src: url(https://janusml.pages.dev/assets/type/EvermoreSans-Italic.ttf);
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Evermore Sans';
    src: url(https://janusml.pages.dev/assets/type/EvermoreSans-Bold.ttf);
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Evermore Sans';
    src: url(https://janusml.pages.dev/assets/type/EvermoreSans-BoldItalic.ttf);
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Evermore Mono';
    src: url(https://janusml.pages.dev/assets/type/EvermoreMono-Regular.ttf);
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Evermore Mono';
    src: url(https://janusml.pages.dev/assets/type/EvermoreMono-Italic.ttf);
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Evermore Mono';
    src: url(https://janusml.pages.dev/assets/type/EvermoreMono-Bold.ttf);
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Evermore Mono';
    src: url(https://janusml.pages.dev/assets/type/EvermoreMono-BoldItalic.ttf);
    font-weight: 700;
    font-style: italic;
}

/* Global Typography */
body {
    font-family: var(--font-family-base), var(--font-family-emoji), system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #202124;
    background-color: #ffffff;
    margin: 0;
    padding: 20px;
}

/* Blockquotes */
blockquote {
    font-family: var(--font-family-serif), var(--font-family-emoji), 'Times New Roman', Times, serif;
    font-style: normal;
    color: #595959;
    background: #ffffff;
    border-left: 4px solid #039be5;
    padding: 10px 20px;
    margin: 20px 0;

}
blockquote p {
    margin: 0;
}
blockquote::before {
    font-size: 30px;
    color: #039be5;
    content: "“";
    margin-right: 10px;
}

/* Inline Code */
code {
    font-family: var(--font-family-monospace), var(--font-family-emoji), monospace;
    color: #37474f;
    font-size: 0.95em;
    background: #f1f3f4;
    border-radius: 4px;
    /* border: 1px solid #dadde3; */
    padding: 2px 5px;
}

/* Code Blocks */
pre {
    font-family: var(--font-family-monospace), var(--font-family-emoji), monospace;
    color: #37474f;
    font-size: 0.95em;
    background: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
    margin: 0;
    line-height: 1.4;
}
pre code {
    display: block;
    padding: 0;
    margin: 0;
    color: inherit;
    background: none;
}

/* Highlights ("==highlight==") */
mark {
    color: #000000;
    background: #ffff00;
    border-radius: 3px;
    padding: 2px 4px;
}

/* Horizontal Rules */
hr {
    border: none;
    border-top: 2px solid #dadce0;
    margin: 20px 0;
}

/* Lists */
ul, ol {
    padding-left: 20px;
}
ul li::marker {
    color: #202124;
}

/* Links */
a {
    color: #00a2e8;
    text-decoration: none;
}
a:active {
    color: #ed1c24;
}
a:visited {
    color: #a349a4;
}
a:hover {
    text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-serif), var(--font-family-emoji), 'Times New Roman', Times, serif;
    color: #1f1f1f;
}
h1 {
    font-size: 2.2em;
    border-bottom: 2px solid #dadce0;
    /* padding-bottom: 5px; */
    font-weight: 400;
}
h2 {
    font-size: 1.8em;
    border-bottom: 1px solid #dadce0;
    /* padding-bottom: 4px; */
    font-weight: 400;
}
h3 {
    font-family: var(--font-family-base), var(--font-family-emoji), system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.2em;
}
h4, h5, h6 {
    font-family: var(--font-family-base), var(--font-family-emoji), system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
table, th, td {
    border: 1px solid #dadce0;
}
th, td {
    text-align: left;
    padding: 10px;
}
th {
    color: #202124;
    background: #e8eaed;
}

/* Task Lists */
ul.task-list {
    list-style-type: none;
    padding-left: 0;
}
ul.task-list li {
    display: flex;
    align-items: center;
}
ul.task-list input[type="checkbox"] {
    margin-right: 8px;
}

/* Alert and Container Styles */
.alert, .container-box {
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    font-family: var(--font-family-sans-serif), var(--font-family-emoji), system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.alert.info, .container-box.info {
    background: #22b14c3d;
    color: #1e1e1e;
    border-left: 5px solid #22b14c;
}

.alert.warning, .container-box.warning {
    background: #fff2003d;
    color: #1e1e1e;
    border-left: 5px solid #fff200;
}

.alert.danger, .container-box.danger {
    background: #ed1c233d;
    color: #1e1e1e;
    border-left: 5px solid #ed1c24;
}

.alert.error, .container-box.error {
    background: #ed1c233d;
    color: #1e1e1e;
    border-left: 5px solid #ed1c24;
}

.alert.success, .container-box.success {
    background: #22b14c3d;
    color: #1e1e1e;
    border-left: 5px solid #22b14c;
}

/* Custom Containers */
.container-box.default {
    background: #f1f3f4;
    color: #1e1e1e;
    border-left: 5px solid #7f7f7f;
}

.container-box.important {
    background: #ff7f273d;
    color: #1e1e1e;
    border-left: 5px solid #ff7f27;
    font-weight: bold;
}

.container-box.side {
    background: #f8f9fa; /* Lighter background similar to Wikipedia */
    color: #222; /* Darker text for readability */
    border: 1px solid #a2a9b1; /* Subtle border */
    padding: 10px;
    margin: 10px auto; /* Center horizontally */
    font-size: 14px;
    max-width: calc(100% - 60px); /* Adjust width */
    display: block; /* Ensure block-level behavior */
}

/* Title styling */
.container-box.side .title {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    background: #dee2e6; /* Light gray background */
    padding: 5px;
    margin-bottom: 8px;
}

/* Image styling */
.container-box.side img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Item: Text styling */
.container-box.side .item {
    font-weight: bold;
    display: inline-block;
    width: 90px; /* Adjusted width for alignment */
}

.container-box.side .text {
    display: inline-block;
    width: calc(100% - 100px);
}


/* Inline Alerts */
.alert.inline {
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.9em;
    border-radius: 3px;
}