:root {
    --pico-font-size: 87.5%;
    --pico-line-height: 1.4;
    --pico-nav-element-spacing-horizontal: 0px;
}

/* Colors for light mode */
[data-theme="light"],:root:not([data-theme="dark"]) {
    --pico-background-color: #f3f4f6;
    --main-container-color: white;
    --page-background-image: url('../images/camel-bg-light.svg');
    --pico-font-size: 87.5%;
    --pico-line-height: 1.4;
    --pico-nav-element-spacing-horizontal: 0px;
}

/* Colors for dark mode */
[data-theme="dark"],:root {
    --main-container-color: #10131a;
    --page-background-image: url('../images/camel-bg-dark.svg');
    --pico-font-size: 87.5%;
    --pico-line-height: 1.4;
    --pico-nav-element-spacing-horizontal: 0px;
}

body {
    background-image: var(--page-background-image), var(--page-background-image);
    background-position: left center, right center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: auto 100vh;
}

.eclipse {
    background: #473788;
    background: linear-gradient(0deg,rgba(71, 55, 136, 1) 0%, rgba(71, 55, 136, 1) 30%, rgba(44, 34, 85, 1) 86%, rgba(44, 34, 85, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-container {
    padding: 1.5rem 2rem;
    background-color: var(--main-container-color);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    margin: 2rem auto;
    border-radius: 0.5rem;
    max-width: 1152px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-container > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

header nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

header nav li {
    list-style-type: none;
}

h1, h2, h3, p, article, section {
    margin-bottom: 1rem;
}

.main-grid {
    display: grid;
    grid-template-columns: 240px 1fr 130px;
    gap: 2.5rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: 240px 1fr 130px;
    gap: 2.5rem;
}

.guide-grid .navheader {
    margin-bottom: 2rem;
}

.guide-grid .navheader tbody tr:first-child {
    display: none;
}

.guide-grid .navheader td
{
    background-color: var(--main-container-color);
}

.guide-grid .navheader th,
.guide-grid .navfooter td
{
	text-align: center;
    background-color: var(--main-container-color);
}

.guide-grid .navfooter {
    margin-top: 2rem;
}

.guide-grid .navfooter > hr,
.guide-grid .navheader > hr
{
    display: none;
}

aside.sidebar-left article {
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

aside.sidebar-left article h2 {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.15rem;
    font-weight: bold;
}

aside.sidebar-left ul {
    padding-left: 0rem;
    margin-bottom: 0;
}

h1 {
    font-size: 1.875rem;
    font-weight: bold;
}

dl dt { font-weight: bold; }
dl dd { margin-bottom: 1.25rem; }

.sidebar-right {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    min-height: 250px;
}

.page-container > footer {
    padding-top: 4rem;
    text-align: center;
}

.search-form input {
	width: 17rem;
    margin-bottom: 0;
}

#theme-toggle {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-left: 1rem;
  color: var(--pico-nav-link-color);
}

#theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 768px) {
    .main-grid, .guide-grid {
        grid-template-columns: 1fr;
    }
    .guide-grid .sidebar-left {
        display: none;
    }
    .page-container > header {
        flex-direction: column;
        gap: 1rem;
    }
}
