/* ========================================
   GLOBAL STYLES & RESETS
   ======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  position: relative;

  color: var(--bjl-color-text);
  font-family: var(--bjl-font-body);
  font-size: var(--bjl-font-size-base);

  scroll-behavior: smooth;
}

/* Scrollbar styling */
* {
  scrollbar-width: thin;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar,
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
  background-color: #0000001f;
}
*::-webkit-scrollbar-thumb {
  background-color: #ffffff66;
  border: 0px solid #0000001f;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: #ffffff42;
}
*::-webkit-scrollbar-thumb:active {
  background-color: #a5a3a342;
}

/* HTML & Body base setup */
html, body {
  background-color: var(--bjl-color-background);
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: fixed;
}

/* Typography base styles */
h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
  font-family: var(--bjl-font-heading);
}
h1, .h1 { font-size: 5em; }
h2, .h2 { font-size: 3.5em; }
h3, .h3 { font-size: 2.5em; }
h4, .h4 { font-size: 1.5em; }

/* Utility classes */
.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.pill {
  border-radius: var(--bjl-radius-full);
}

/* ========================================
   LAYOUT DEFAULTS
   ======================================== */

html, body, main, div#root, nav,
.hero, button, .button,
.square, .square-meat, .square-package {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

html, body, main, div#root {
  min-width: 100%;
  width: 100%;
  justify-content: flex-start;
}

div#root {
  background-color: var(--bjl-color-background);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  padding-bottom: 5em;
}

/* ========================================
   LISTS
   ======================================== */

ul {
  display: flex;
  flex-direction: row;
  gap: 1em;
  list-style: none;
  padding: 0;
}

/* ========================================
   BUTTONS
   ======================================== */

button, .button {
  padding: .5em 1em;
  background-color: var(--bjl-color-primary);
  flex-direction: row;
  gap: .5em;
  text-decoration: none;
  border: solid .2em var(--bjl-color-primary);
  cursor: pointer;
}

/* Only apply to .button class, not bare <button> elements (breaks Collapsible, etc.) */
.button * {
  color: var(--bjl-color-background);
}

.button *:not(.material-icons) {
  font-weight: bold;
}

button:hover, .button:hover {
  filter: contrast(2);
}

button:active, .button:active {
  transform: scale3d(.98, .98, 1);
}

.nofill {
  background-color: var(--bjl-color-background);
  border: solid .2em var(--bjl-color-primary);
}

.nofill * {
  color: var(--bjl-color-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  gap: .5em;
  padding-top: 25vh;
  padding-bottom: 3.5em;
}


* {
	box-sizing: border-box;
	margin: 0;
	position: relative;

	color: var(--bjl-color-text);
	font-family: var(--bjl-font-body);
	font-size: var(--bjl-font-size-base);

    scroll-behavior: smooth;
}
* {
	scrollbar-width: thin;
	/* scrollbar-color: #cdcdcd #f0f0f0; */
}
*::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
*::-webkit-scrollbar,
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
	background-color: #0000001f;
}
*::-webkit-scrollbar-thumb {
	background-color: #ffffff66;
	border: 0px solid #0000001f;
}
*::-webkit-scrollbar-thumb:hover {
	background-color: #ffffff42;
}
*::-webkit-scrollbar-thumb:active {
	background-color: #a5a3a342;
}

html, body, main, div#root, nav,
.hero, button, .button, 
.square, .square-meat, .square-package { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
html, body, main, div#root {
	min-width: 100%;
    width: 100%;
    justify-content: flex-start;
}
html, body {
    background-color: var(--bjl-color-background);
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	position: fixed;
}

div#root { 
	background-color: var(--bjl-color-background);
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	/* Remove filter to prevent containing block issues for fixed positioned elements */
	/* filter: drop-shadow(0px 0px 25px #00000040); */
}
main { padding-bottom: 5em; }

h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
    font-family: var(--bjl-font-heading);
}
h1, .h1 { font-size: 5em; }
h2, .h2 { font-size: 3.5em; }
h3, .h3 { font-size: 2.5em; }
h4, .h4 { font-size: 1.5em; }

.noselect,
.material-icons {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.pill { border-radius: var(--bjl-radius-full); }

ul {
    display: flex;
    flex-direction: row;
    gap: 1em;

    list-style: none;
    padding: 0;
}

button, .button {
    padding: .5em 1em;
    background-color: var(--bjl-color-primary);
    flex-direction: row;
    gap: .5em;
    text-decoration: none;
    border: solid .2em var(--bjl-color-primary);
    cursor: pointer;
}
.button * { color: var(--bjl-color-background); }
.button *:not(.material-icons) {
    font-weight: bold;
}
button:hover, .button:hover { filter: contrast(2); }
button:active, .button:active { transform: scale3d(.98, .98, 1); }
.nofill {
    background-color: var(--bjl-color-background);
    border: solid .2em var(--bjl-color-primary);
}
.nofill * { color: var(--bjl-color-primary); }

.hero {
    gap: .5em;
    padding-top: 25vh;
    padding-bottom: 3.5em;
}



/* ======  COMPONENT:: NAV  ======*/
nav#main {
    width: 100%;
    height: var(--bjl-navbar-height);
    padding: 3em 3.5em 0 3.75em;
    background-color: var(--bjl-color-primary);

    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 4;
}
nav#main a {
    color: var(--bjl-color-background);
    text-decoration: none;
}
div.lhs-container { 
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 2rem;
}
div#editpreview {
    width: fit-content;
    padding: 0;
    background-color: transparent;
}
div#editpreview .field{
    padding: .55rem 0rem;
    background-color: transparent;
    border: none;
    border-radius: 0.5rem;
    font-size: var(--bjl-font-size-base);
}
div#editpreview .switch-container { 
    position: relative;
    right: inherit; 
}

nav#main .h3 { font-weight: bold; }
nav#main ul { 
    gap: 0; 
    padding-bottom: 0;
}
nav#main ul li { padding: 1em 1em .5em 1em; }
nav#main .active { background-color: var(--bjl-color-background); }
nav#main .active a { color: var(--bjl-color-primary); }

a.doc-mode {
    width: 100%;
    background-color: var(--bjl-color-secondary);
    color: var(--bjl-color-background);
}



 /* ======  COMPONENT:: EDITOR  ======*/
main#editor {
    min-height: calc(100vh - var(--bjl-navbar-height));
    max-height: calc(100vh - var(--bjl-navbar-height));
    /* min-width: clamp(0px, 800px, 100%); */
    padding: 3.75em;

    justify-content: flex-start;
    align-items: flex-start;
    align-self: flex-start;
    overflow-y: auto;

    -ms-overflow-style: none;
    scrollbar-width: none;
}
main#editor::-webkit-scrollbar { display: none; }
 #editor-sidemenu-container {
    width: var(--bjl-w-editor);
    min-height: calc(100vh - var(--bjl-navbar-height));
    background-color: var(--bjl-color-surface);
    position: absolute;
    right: 0;
    top: var(--bjl-navbar-height);
    transform: translate3d(var(--bjl-p-editor),0,0);
}
main#editor .sf form {
    padding: 3rem 2rem;
}
#editor-sidemenu-container { 
    z-index: 4;
    filter: drop-shadow(0px 0px 25px #00000040);
}
#editor-sidemenu-toggle-container {
    position: absolute;
    left: -2em;
    top: 3em;

    display: flex;
    flex-direction: column;
    gap: .5rem;
}
#editor-sidemenu-toggle {
    width: 2rem;
    height: 4rem;
    padding-left: .25rem;
    background-color: var(--bjl-color-secondary);
    cursor: pointer;
    
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    border-radius: 1em 0 0 1em;
    filter: drop-shadow(0px 0px 25px #00000040);
}
.tiny-toggle { height: 2rem !important; }
#editor-sidemenu { 
    height: calc(100vh - var(--bjl-navbar-height));
    padding: 3em 5em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#playground {
    min-height: calc(100% - 2.5em);
    padding: 1em 2em;
    margin-bottom: .25em;
    border: .15em solid var(--bjl-color-text);
    border-radius: 1em 0 0 0;
    overflow-y: scroll;
}
.code {
    min-width: 100%;
    min-height: 100%;
    height: fit-content;
    background-color: var(--bjl-color-surface);
    border: none;
    font-family: var(--bjl-font-mono) !important;

    resize: none;
    white-space: break-spaces; /* Since CSS 2.1 */
    white-space: -moz-break-spaces; /* Mozilla, since 1999 */
    white-space: -break-spaces; /* Opera 4-6 */
    white-space: -o-break-spaces; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
}
#editor-sidemenu .sf form {
    padding: 1.5em 0;
    gap: 2em;
}
#editor-sidemenu .sf input,
#editor-sidemenu .sf textarea,
#editor-sidemenu .sf .dropdown, 
#editor-sidemenu .sf .checkbox  {
    background-color: var(--bjl-color-surface);
    border-width: .15em;
    border-color: var(--bjl-color-background);
}
#editor-sidemenu .sf .disabled input,
#editor-sidemenu .sf .disabled textarea,
#editor-sidemenu .sf .disabled .dropdown, 
#editor-sidemenu .sf .disabled .checkbox  {
	cursor: not-allowed;
    border-color: transparent;
	background-color: var(--bjl-color-disabled);
}
#editor-sidemenu .sf .option.active { background-color: var(--bjl-color-text); }

#editor-sidemenu .sf .container-tooltip { background-color: var(--bjl-color-text); }
#editor-sidemenu .sf .container-tooltip * { color: var(--bjl-color-background); }    
#editor-sidemenu .sf label, #editor-sidemenu .sf legend {
    background-color: var(--bjl-color-surface);
}
#editor-sidemenu .sf .container-validity { background-color: var(--bjl-color-background); }

#editor-sidemenu .sf div#form\:input\/dropdowncb { border-style: dashed; }

div.modify-block {
    min-width: fit-content;
    position: absolute;
    right: -8rem;
    top: .25rem;
    
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;

    opacity: 0;
}
h2 div.modify-block {
    right: -6rem;
    top: 1.25rem;
}
div.modify-block .button { 
    background-color: var(--bjl-color-surface); 
    padding: .75rem;
    border: none;
    border-radius: 1rem;
}
div.modify-block * { color: var(--bjl-color-text); }
div.form-block:hover div.modify-block, h2:hover div.modify-block, div.form-block:focus-within div.modify-block {
    opacity: 1;
}
div.modify-add .dropdown {
    border-style: dashed;
}

#editor-nav {
    width: 100%;
    height: fit-content;
    padding: 0;
    background-color: transparent;
    flex-direction: row;
    justify-content: space-between;
}
#editor-nav button {
    padding: .25em 1.15em;
}
div#en3 {
    display: flex;
    flex-direction: row;
    gap: .25em;
}
div#en3 button {
    background-color: transparent;
    border: .15em solid var(--bjl-color-text);
}
div#en3 button * { color: var(--bjl-color-text); }
div#en3 button.active { background-color: var(--bjl-color-text); }
div#en3 button.active * { color: var(--bjl-color-surface); }
div#en3 button:first-of-type { border-radius: 0 0 0 1em; }
div#en3 button:last-of-type { border-radius: 0 0 1em 0; }
button#copy-code { border-radius: var(--bjl-radius-full); }


/* ======  PAGE:: HOME  ======*/
#home {
    min-height: calc(100vh - var(--bjl-navbar-height));
    overflow: auto;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
#home .hero {
    text-align: center;
    padding: 4rem 2rem 6rem;
}
#home .hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--bjl-color-primary);
    font-family: var(--bjl-font-heading);
}
#home .tagline {
    font-size: 1.125rem;
    color: var(--bjl-color-text);
    opacity: 0.9;
    margin: 0 auto 3rem;
    font-weight: 400;
    max-width: 900px;
    line-height: 1.8;
}
#home .feature-tag {
    position: relative;
    color: var(--bjl-color-primary);
    cursor: help;
    border-bottom: 1px dotted var(--bjl-color-primary);
    font-size: inherit;
    font-weight: 500;
}
#home .feature-tag .feature-popover {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-0.5rem);
    background: var(--bjl-color-surface);
    border: 2px solid var(--bjl-color-primary);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    width: max-content;
    max-width: 320px;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    text-align: center;
    line-height: 1.5;
}
#home .feature-tag:hover .feature-popover {
    opacity: 1;
    transform: translateX(-50%) translateY(-0.75rem);
    pointer-events: auto;
}
#home .description {
    font-size: 1.125rem;
    color: var(--bjl-color-text);
    opacity: 0.8;
    margin: 0 0 2.5rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Stats Bar */
#home .stats-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
#home .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
#home .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bjl-color-primary);
    font-family: var(--bjl-font-heading);
}
#home .stat-label {
    font-size: 0.8rem;
    color: var(--bjl-color-text);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* CTA Buttons */
#home .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
#home .cta-buttons .button.primary {
    background: var(--bjl-color-primary);
    color: white;
}

/* Components Showcase */
#home .components-showcase {
    margin-bottom: 5rem;
}
#home .components-showcase h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--bjl-color-text);
    text-align: center;
    font-family: var(--bjl-font-heading);
}
#home .section-description {
    font-size: 1.125rem;
    color: var(--bjl-color-text);
    opacity: 0.8;
    text-align: center;
    margin: 0 auto 3rem;
    max-width: 600px;
}
#home .component-demos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
#home .demo-item {
    background: var(--bjl-color-surface);
    border: 2px solid var(--bjl-color-secondary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
    min-width: 0;
    overflow: hidden;
}
#home .demo-item:hover {
    border-color: var(--bjl-color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#home .demo-item-large {
    grid-column: span 2;
}
#home .demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
#home .demo-item h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
    color: var(--bjl-color-text);
    font-family: var(--bjl-font-heading);
}
#home .demo-link {
    font-size: 0.875rem;
    color: var(--bjl-color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s ease;
}
#home .demo-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}
#home .demo-description {
    font-size: 0.9rem;
    color: var(--bjl-color-text);
    opacity: 0.8;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}
#home .demo-content {
    background: var(--bjl-color-background);
    border: 1px solid var(--bjl-color-secondary);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
    overflow-x: auto;
    min-width: 0;
}
#home .demo-content > * {
    width: 100%;
}
#home .demo-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}
#home .demo-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

/* Typography Showcase */
#home .demo-content.typography-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
}

#home .typography-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#home .typography-section .section-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bjl-color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
    font-family: var(--bjl-font-body);
}

#home .typography-examples {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

#home .typography-examples h1,
#home .typography-examples h2,
#home .typography-examples h3 {
    color: var(--bjl-color-text);
    font-weight: var(--bjl-font-weight-bold, 700);
    line-height: 1.2;
}

#home .typography-examples p {
    color: var(--bjl-color-text);
    line-height: 1.5;
}

@media (max-width: 768px) {
    #home .demo-content.typography-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}


.fwfh {
    width: 100%;
    height: calc(100vh - var(--bjl-navbar-height));
    min-width: 100%;
    justify-content: flex-start;
    overflow: auto;
}



/* ======  PAGE:: DONATE  ======*/
#donate { min-height: 100vh; }
.powered { 
    display: flex;
    flex-direction: row;
    gap: 1.5em;
}
.powered * { color: var(--bjl-color-secondary); }
.powered #tea {
    font-style: italic;
    font-weight: bold;
}


/* ======  PAGE:: PREVIEW  ======*/
main#preview .sf {
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: .25rem solid var(--bjl-color-primary);
    border-radius: .5rem;
}



/* ======  SQUARE COMPONENT  ======*/
.square-container {
    background-color: var(--bjl-color-surface);
    width: 10rem;
    height: 10rem;
    border-radius: 3.8rem;
    filter: drop-shadow(0px 0px 50px #0000001a);
    cursor: pointer;
    text-decoration: none;
}
.square-container:hover, .square-container:focus, .square-container:focus-within { 
    background-color: var(--bjl-color-secondary);
    transform: scale3d(1.1, 1.1, 1);
    filter: drop-shadow(0px 0px 25px #00000040); 
}
.square, .square-meat, .square-package { 
    min-width: 100%;
    min-height: 100%;
    position: absolute;
}
.square-package { 
    max-width: 100%;
    max-height: 100%;
    padding: 1.5rem;
    z-index: 0;
    text-align: center;
    overflow: hidden;
}
.square-meat { z-index: 1; }
.square, .delete { opacity: 0; }
.square.custom,
.square-container:hover .square, .square-container:focus .square, .square-container:focus-within .square,
.square-container:hover .delete, .square-container:focus .delete, .square-container:focus-within .delete { 
    opacity: 1;
}
.square-container:hover .square-package, .square-container:focus .square-package, .square-container:focus-within .square-package { 
    opacity: 0;
}
.square-container:active {
    transform: scale3d(.98, .98, 1);
    filter: drop-shadow(0px 0px 50px #0000001a);
}
.square .material-icons { font-size: 2.5rem; }
.square.clicked { background-color: var(--bjl-color-secondary); }
.square-container button.delete {
    min-width: 2.75em;
    min-height: 2.75em;
    padding: 0;
    position: absolute;
    top: -.25em;
    right: -.25em;
    background-color: var(--bjl-color-text);

    border: none;
    border-radius: var(--bjl-radius-full);

    display: grid;
    justify-items: center;
    z-index: 2;
}
.square-container button.delete * { 
    font-size: 2em;
    color: var(--bjl-color-error); 
}



/* ======  DEBUG COMPONENT  ======*/
.sf.isolated {
    padding: 1em 0;
}
code {
    width: 100%;
    font-family: var(--bjl-font-mono);
    font-size: 1em;

    white-space: pre-wrap; /* Since CSS 2.1 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
}



/* ======  CODEBLOCK COMPONENT  ======*/
div.codeblock {
    width: 100%;
    max-width: 1920px;
}
div.codeblock button {
    position: absolute;
    right: 1.75rem;
    bottom: 1.25rem;
    padding: .3rem .75rem;
}
div.codeblock button .material-icons { font-size: 1.25em; }
div.codeblock .clip-scrollbar {
    overflow: hidden;
    border-radius: 1.5rem;
    border: 0.15rem solid var(--bjl-color-text);
}
div.codeblock .sf { padding: 3rem; }
div.codeblock .sf form { padding: 0; }
div.code-container {
    width: 100%;
    height: 400px;
    max-width: 100%;
    overflow: auto;
}
div.codeblock pre[class*="language-"],
div.codeblock :not(pre) > code[class*="language-"] {
    background-color: transparent;
    width: fit-content;
}
.example .code-container { height: 600px; }
.example .sf#example { max-width: none; }
.select-example {
    padding: 1rem .25rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}
.select-example .pill { 
    color: var(--bjl-color-background); 
    border: .05em solid var(--bjl-color-primary);
}
.select-example .nofill { color: var(--bjl-color-text); }



/* ======  NOTE COMPONENT  ======*/
main.docs .note { 
    width: 65ch;
    max-width: 100%;
    padding: 1rem 2rem;
    background-color: var(--bjl-color-text);

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;

    border-radius: 0.5rem;
}
main.docs .note * { color: var(--bjl-color-background); }
main.docs .note .material-icons { font-size: 1.5rem; }
main.docs .note .body { 
    width: calc(100% - 2rem);
    padding-left: .5rem;
    border-left: 1px solid var(--bjl-color-background);
    overflow: hidden;
}




/* ======  DOCUMENTATION NAVDOCS  ======*/
nav#docs, nav#docs div.scrolltainer,
div.section-container,
div.page-sections {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: .25rem;
}
nav#docs {
    width: var(--bjl-sidebar-width);
    height: calc(100vh - var(--bjl-navbar-height) - 2em);
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--bjl-color-secondary);

    border-top-right-radius: 1.5rem;
    overflow: hidden;
    z-index: 3;
}
nav#docs * { text-decoration: none; }
a.page-title {
    padding: 1rem 0 0.5rem 0;

    color: var(--bjl-color-text-secondary);
    font-weight: bold;
    text-transform: uppercase;
}
div.section-container { width: 100%; }
div.page-sections { 
    width: 100%;
    padding-bottom: 2rem;
 }
a.section-title {
    width: 100%;
    
    padding: .25rem;
    padding-left: 1rem;
    border-radius: .25rem;
}
a.section-title:hover { background-color: var(--bjl-color-disabled); }
a.section-title.active { 
    background-color: var(--bjl-color-surface); 
    font-weight: bold;
}

nav#docs div.scrolltainer {
    width: var(--bjl-sidebar-width);
    height: calc(100vh - var(--bjl-navbar-height) - 2em);
    padding: 1.5rem;
    
    border-top-right-radius: 1.5rem;
    overflow-y: auto
}



/* ======  DOCUMENTATION TEMPLATES  ======*/
main.docs {
    width: calc(100vw - var(--bjl-sidebar-width));
    min-width: auto;
    align-self: flex-end;

    display: flex;
    flex-direction: column;
    justify-self: flex-start;
    align-items: flex-start;
    scroll-padding-top: 6.75rem;
}
main.docs h1 {
    width: calc(100vw - var(--bjl-sidebar-width) - .5rem);
    position: fixed;
    padding: 5rem 8rem 1rem 8rem;
    background-color: var(--bjl-color-background);
    
    font-family: var(--bjl-font-body);
    font-size: 1rem;
    color: var(--bjl-color-text-secondary);
    text-transform: uppercase;
    z-index: 4;
}
main.docs > .scrolltainer {
    width: 100%;
    padding: 6.5rem 8rem;

    display: flex;
    flex-direction: column;
    gap: 5rem;
}
main.docs section .scrolltainer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
main.docs section h2 { padding-bottom: 1rem; }
main.docs section p { 
    width: 57ch; 
    max-width: 100%;
    line-height: 1.4rem;
}
main.docs section span { display: inline-block; }
main.docs section strong { font-weight: bold; }
main.docs section em { font-style: italic; }
main.docs section a {
    font-weight: bold;
    font-style: italic;
}
main.docs section ul {
    flex-direction: column;
    list-style-type: disc;
    padding-left: 2rem;
    gap: .5rem;
}
main.docs section img { 
    width: 57ch;
    border: 1px solid var(--bjl-color-text);
}
main.docs section iframe.ratio16x9 {
    aspect-ratio: 16 / 9;
}

.split {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 60% 40%;
    gap: 3rem;
}
.details-container {
    padding-top: .5rem;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.details-container .details-chunk { 
    display: flex;
    flex-direction: column;
    gap: 1rem;
 }