/* Colour classes */
:root {
	/* --base00: #181818; */
    --base00: #0F151D;
	/* --base01: #282828;*/
    
	--base01: #161D2A; 
	--base02: #383838;
	--base03: #585858;
	--base04: #b8b8b8;
	--base05: #d8d8d8;
	--base06: #e8e8e8;
	--base07: #f8f8f8;
	--base08: #ab4642;
	--base09: #dc9656;
	--base0A: #f7ca88;
	--base0B: #a1b56c;
	--base0C: #86c1b9;
	--base0D: #7cafc2;
	--base0E: #ba8baf;
	--base0F: #a16946;
    --color-highlight: #9FEF00;
}

/* --color-highlight: #9FEF00;
--color-secondary: #A6B0CB;

--color-table-header: #9FEF00;
--color-table-row-even: #A4B1CD;
--color-table-row-odd: #BFC8DC;
--color-table-content: #151515;
*/


.base00 { color: var(--base00); }
.base01 { color: var(--base01); }
.base02 { color: var(--base02); }
.base03 { color: var(--base03); }
.base04 { color: var(--base04); }
.base05 { color: var(--base05); }
.base06 { color: var(--base06); }
.base07 { color: var(--base07); }
.base08 { color: var(--base08); }
.base09 { color: var(--base09); }
.base0A { color: var(--base0A); }
.base0B { color: var(--base0B); }
.base0C { color: var(--base0C); }
.base0D { color: var(--base0D); }
.base0E { color: var(--base0E); }
.base0F { color: var(--base0F); }

.bg-base00 { background-color: var(--base00); }
.bg-base01 { background-color: var(--base01); }
.bg-base02 { background-color: var(--base02); }
.bg-base03 { background-color: var(--base03); }
.bg-base04 { background-color: var(--base04); }
.bg-base05 { background-color: var(--base05); }
.bg-base06 { background-color: var(--base06); }
.bg-base07 { background-color: var(--base07); }
.bg-base08 { background-color: var(--base08); }
.bg-base09 { background-color: var(--base09); }
.bg-base0A { background-color: var(--base0A); }
.bg-base0B { background-color: var(--base0B); }
.bg-base0C { background-color: var(--base0C); }
.bg-base0D { background-color: var(--base0D); }
.bg-base0E { background-color: var(--base0E); }
.bg-base0F { background-color: var(--base0F); }


/* About/bio section */
.about__logo {
    height: 1.5rem;
}

.about__title {
    display: inline;
    vertical-align: top;
}

.about__title::before {
    content: none;
}


:root {
	/* Background */
	--bg: var(--base00);
	--off-bg: var(--base01);
	--inner-bg: var(--base02);

	/* Text */
	--fg: var(--base05);
	--off-fg: var(--base04);
	--muted: var(--base03);
	--link: var(--base0D);
	--hover: var(--base0C);
	--highlight: var(--base0A);

	/* Logo */
	--logo: var(--base0B);
}

.page__footer {
    color: var(--off-fg);
}

.page__footer p {
    margin: 0;
}

/* Main menu */
.main-nav ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 0.5rem 2rem;
}

.main-nav li {
    text-transform: lowercase;
}

.main-nav li::marker {
    content: "./";
}


/* 1rem = 16px by default */

.page {
    max-width: 72rem;
    margin: 1rem auto;
    display: grid;
    grid-template-areas:
      "header"
      "body"
      "aside"
      "footer";
    grid-template-columns: minmax(0, 1fr); /* https://css-tricks.com/preventing-a-grid-blowout/ */
    grid-row-gap: 2rem;
}

@media (min-width: 45rem) {
    .page {
        grid-template-areas:
          "header  header"
          "body    aside"
          "footer  footer";
        grid-template-columns: minmax(0, 1fr) 15rem;
        grid-column-gap: 2rem;
    }
}

/* Header */
.page__header {
    grid-area: header;
    display: flex;
}

.page__logo {
    flex-shrink: 0;
}

.page__nav {
    flex-grow: 1;
}

/* Body + aside */
.page__body {
    grid-area: body;
    background-color: var(--off-bg);
    width: 54rem;
    box-shadow: 0 0 0 1rem var(--off-bg);
    overflow-wrap: break-word;
}

/* Adjust the aside to allow horizontal scrolling if needed */
/* Set a fixed or minimum width for .page__aside */
.page__aside {
    grid-area: aside;
    color: var(--off-fg);
    position: sticky;
    top: 1rem;
    right: 1rem;
    overflow-y: auto;
    width: 18rem; /* Set a fixed width */
    min-width: 15rem; /* Optional: Ensure the width doesn't shrink too much */
    max-width: none; /* Remove the max-width restriction */
    height: auto; /* Allow height to expand based on content */
    white-space: normal; /* Allow content to wrap normally inside */
}



/* .page__aside {
    grid-area: aside;
    color: var(--off-fg);
    position: sticky;
    top: 1rem;
    right: 1rem;
    overflow-y: auto;
    max-height: 95vh;
} */

/* Footer */
.page__footer {
    grid-area: footer;
}

.page__logo {
    padding: 0;
    margin: 0;
    font-weight: inherit;
    color: var(--bg);
}

.page__logo:before {
    content: none;
}

.page__logo-inner {
    display: block;
    background: var(--logo);
    opacity: 0.90;
    padding: 0.25rem;
}

a.page__logo-inner:link, a.page__logo-inner:visited {
    color: inherit;
    text-decoration: inherit;
}

a.page__logo-inner:hover,
a.page__logo-inner:active {
    opacity: 1;
}

.page__logo-inner:before {
    content: "[";
    color: var(--bg);
}

.page__logo-inner:after {
    content: "] $";
    color: var(--bg);
}

body {
    background-color: var(--bg);
    color: var(--fg);
}

/* Fonts */
:root {
    --font-monospace: "Fira Mono", monospace;
}

body {
    font-family: var(--font-monospace);
    font-size: 12px;
    line-height: 1.5rem;
}

/* Headings 
h1, 
h2, 
h3, 
h4, 
h5, 
h6 {
    font-size: 1rem;
    margin: 1.5rem 0 0 0;
    font-weight: 600;
}*/

h1, h2, h3, h4, h5, h6 {
    color: var(--color-highlight);
}

h1+h2,
h1+h3,
h1+h4,
h1+h5,
h1+h6,
h2+h3,
h2+h4,
h2+h5,
h2+h6,
h3+h4,
h3+h5,
h3+h6,
h4+h5,
h4+h6,
h5+h6 {
    margin: 0;
}


h1:first-child {
    margin-top: 0;
}

/* Paragraphs */
p {
    margin: 0 0 1.5rem 0;
}

/* Links */

a:link, a:visited {
    color: var(--link);
}

a:hover, a:active, a.active {
    color: var(--hover);
}

/* Lists */
ul {
    margin: 0 0 1.5rem 0;
    padding-left: 1.25rem;
}

ol {
    margin: 0 0 1.5rem 0;
    padding-left: 1.75rem;
}

ul ul,
ul ol,
ol ul,
ol ol {
    margin: 0;
}

/* ul li::marker {
    content: '∗\00A0';
    color: var(--muted);
}

ol li::marker {
    color: var(--muted);
}

li.nomarker {
    display: block;
} */

dt {
  margin: 0;
  font-weight: bold;
}

dd {
  margin: 0 0 0 1.5rem;
  font-style: italic;
}

dd + dt {
  margin-top: 1.5rem;
}

dl {
  margin: 0 0 1.5rem 0;
}

/* Blockquotes */
blockquote {
    position: relative;
    margin: 0 0 1.5rem 1.5rem;
}

blockquote::before {
    position: absolute;
    left: -1.5rem;
    content: ">";
    color: var(--muted);
}

.twitter-tweet::before {
    content: "\f099";
    font-family: "Font Awesome 5 Brands";
    font-weight: 400;
}

/* Code */
/* pre,
code, 
kbd,
samp {
    background: var(--inner-bg) !important;
    font-family: var(--font-monospace);
    color: var(--off-fg);
} */

/* Code block styling */
pre code {
    border: 1px solid white;
    padding: 0.2em !important;
}
code {
    color: var(--color-highlight);
    background-color: inherit;
}

.code-important{
	background-color: yellow;
    color: red;
    font-style: italic;
}


pre {
    overflow-x: auto;
    padding: 1.5rem;
    margin: 0 0 1.5rem 0;
}

/* Fix overflow when config markup.highlight.lineNos is true */
/* See https://github.com/joeroe/risotto/issues/41 */
.highlight div {
	overflow-x: auto;
}

/* Emphasis */
b,
strong {
    font-weight: 600;
}

/* Highlighting
::selection,
mark {
    background-color: var(--highlight);
    color: var(--bg);
} */

/* Other typographic elements */
hr {
    border: 0;
    margin-bottom: 1.5rem;
}

/* hr:after {
    content: '---';
    color: var(--muted);
} */


/* Prevent super/sub from affecting line height */
sup, sub {
    vertical-align: baseline;
    position: relative;
    top: -0.25rem;
    font-size: unset;
}
sub { 
    top: 0.25rem; 
}

/* Tables */
table {
    border-spacing: 0;
    margin: 0 0 1.5rem 0;
    overflow-wrap: anywhere;
}
th, td {
    padding: 0 .75rem;
    vertical-align: top;
}
th:first-child, td:first-child {
    padding-left: 0;
}
th {
    text-align: inherit;
}

/* Figures */
img {
    max-width: 100%;
    height: auto;
}

.side-bar .side-bar__menu .side-bar__link {
    /* color: inherit; */
    list-style-type: none;
    cursor: pointer;
    text-decoration: none;
    display: block;
    line-height: 48px;
    padding-left: calc(24px + 24px);
    position: relative;
    user-select: none;
}


.side-bar .side-bar__menu {
    list-style: none !important;
    margin: 0;
    padding: 0;
}




.side-bar .side-bar__sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}

.side-bar__sub-menu {

    margin-left: calc(24px + 30px) !important;
    /* border-color: #b3b3b3;
    border-left-width: 1px;
    border-left-style: solid; */
}

.side-bar .side-bar__sub-menu .side-bar__link.side-bar__link--active {
    color: inherit;
    font-weight: 700
}

/* .side-bar__link--collapsed::after .side-bar__link--expanded::after {
    /* font: 24px/1 "kpn-ui-icons"; */

/* .side-bar__link--collapsed::after {
    content: ">>";
    position: absolute;
    right: 16px;
}

.side-bar__link--active::after {
    content: "<";
    position: absolute;
    right: 16px;
} */

.pdf-container {
    width: 100%;             /* Full width of the parent */
    height: calc(100vh - 200px);           /* Adjust this height as necessary */
    border: none;            /* Remove the border if needed */
    display: block;          /* Block-level element */
}


.side-bar__menu {
    text-transform: capitalize;

    list-style-type: none !important; /* Removes bullet points with !important */
    padding-left: 0 !important;      /* Ensures no left padding with !important */
}

.side-bar__sub-menu {
    list-style-type: none !important; /* Removes bullet points with !important */
    padding-left: 0 !important;      /* Ensures no left padding with !important */
}

span.side-bar__link {
    color:var(--color-highlight);
}