

/* =======================================
   BANNER
   ======================================= */

/* Remove the padding/margins from the logo container */
.md-header__button.md-logo {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important; /* Ensure the logo doesn't have its own internal offset */
    margin-right: 0 !important;
    padding-right: 0 !important;
    height: 56px;
    display: flex;
    align-items: center;
}

/* Keep the image within the logo container */
.md-header__button.md-logo img {
    height: 44px !important;
    width: auto;
    display: block;
    border-radius: 12px;
}

.md-nav__title .md-logo img {
    border-radius: 12px;
}

.md-header__title {
    margin-left: 0.5rem !important;
}

/* Remove the 'auto' margins that center the header content */
.md-header__inner.md-grid {
    height: 56px;
    align-items: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important; /* Optional: allows it to hit the very edge of the screen */
    padding-left: 1rem; /* Keeps it from actually touching the browser bezel */
}



/* =======================================
   HEADINGS 
   ======================================= */


h1, h2, h3 {
  /*color: var(--md-primary-fg-color);*/ /* Uses your primary Grey or Blue-Grey */
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  padding-bottom: 0.3rem;
}

h1 {
  text-transform: uppercase;
  font-size: 2rem;
  margin-top: 2rem;
}


h2 {
  border-left: 0px solid var(--md-primary-fg-color);
  padding-left: 0rem;
  border-bottom: none;
}

/* Title */
article h1 {
  text-shadow: 1px 1px 2px rgba(var(--moxter-black-rgb), 0.05);
  color: var(--md-primary-fg-color);
  font-weight: 800;
  font-size: 2.2em;
  border-bottom: 4px solid var(--md-primary-fg-color--lightest);
  padding-bottom: 0.3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* H2: Section - Primary Color Theme */
article h2 {
  text-shadow: 1px 1px 2px rgba(var(--moxter-black-rgb), 0.05);
  border-left: 0px solid var(--md-accent-fg-color);
  padding-left: 15px;
  padding-right: 10px; /* Added for background balance */
  margin-top: 3rem;    /* Add more space above headers to separate sections clearly */
  font-weight: 700;
  color: var(--moxter-navy);
  background: rgba(var(--moxter-blue-rgb), 0.06);
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 0 4px 4px 0; /* Smooths out the right edge */
}

article.md-typeset h2 {
  font-weight: 500;
}

/* H3: Sub-sections - Accent Color Theme */
article h3 {
  text-shadow: 1px 1px 2px rgba(var(--moxter-black-rgb), 0.05);
  border-left: 0px solid var(--md-accent-fg-color);
  border-bottom: none;
  padding-left: 15px;
  padding-right: 10px;
  padding-top: 6px;    /* Added to house the background */
  padding-bottom: 6px; /* Added to house the background */
  font-weight: 600;
  color: var(--moxter-navy);
  background: rgba(var(--moxter-blue-rgb), 0.04);
  margin-top: 2rem;   /* Add more space above headers to separate sections clearly */
  letter-spacing: 0.01em;
  border-radius: 0 4px 4px 0;
}

article.md-typeset h3 {
  font-weight: 400;
}

/* Leading chevron */
article h4,
article h5,
article h6 {
  color: var(--moxter-navy);
  padding: 0.2rem 0.4rem;
  background: rgba(var(--moxter-blue-rgb), 0.025);
}

article h2,
article h3,
article h4,
article h5,
article h6 {
  background: linear-gradient(325deg, var(--md-default-bg-color), var(--moxter-heading-tint));
  border-radius: 6px;
}

article h2::before,
article h3::before,
article h4::before,
article h5::before,
article h6::before {
  display: inline-block;
  margin-right: 0.45em;
  color: var(--moxter-navy);
  font-size: 1.1em;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

article h2::before {
  content: "\203A";
}

article h3::before {
  content: "\203A \203A";
}

article h4::before {
  content: "\203A \203A \203A";
}

article h5::before {
  content: "\203A \203A \203A \203A";
}

article h6::before {
  content: "\203A \203A \203A \203A \203A";
}



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

/* Tighten up spacing between list items */
.md-content ul li, 
.md-content ol li {
  margin-bottom: 0.15rem; /* Adjust this value to your liking */
}

/* Remove extra bottom margin from paragraphs inside list items */
.md-content li p {
  margin-bottom: 0 !important;
}

/* Optional: Tighten space between the list and the preceding paragraph */
.md-content ul, 
.md-content ol {
  margin-top: 0.5rem;
}


/* =======================================
   TABLES 
   ======================================= */

/* Style the Header Row (Dark background, White text for both modes) */
.md-typeset table thead {
    background-color: var(--moxter-table-header);
}

.md-typeset table thead th {
    color: var(--moxter-white) !important; /* Forces white text on the dark header */
    font-weight: 700;
    /*text-transform: uppercase;*/
    letter-spacing: 0.05em;
}

/* Style the Leftmost "Feature" Column */
.md-typeset table tbody td:first-child {
    font-weight: 700;
    /* ADAPTIVE: Uses the theme's default text color (white in dark, black in light) */
    color: var(--md-typeset-color); 
    /* ADAPTIVE: A very subtle grey tint that works on both dark and light backgrounds */
    background-color: rgba(var(--moxter-neutral-rgb), 0.07);
    border-right: 1px solid var(--md-typeset-table-color);
}

/* Base style for regular cells - Forced contrast */
.moxter-comparison table tbody td {
    /* This adds a subtle "lift" regardless of your theme background */
    background-color: rgba(var(--moxter-neutral-rgb), 0.05) !important;
    border: 1px solid var(--md-typeset-table-color);
    padding: 12px 16px !important;
}


/* Subtle Row Hover Effect */
.md-typeset table tbody tr:hover {
    background-color: rgba(var(--moxter-neutral-rgb), 0.04);
}

/* Base style for all body cells in the comparison table */
.md-typeset table tbody td {
    /* Use a slightly different background than the page */
    background-color: var(--md-default-fg-color--highest); 
    /* Or use a manual subtle tint if the variable is too dark/light: */
    /* background-color: rgba(var(--moxter-neutral-rgb), 0.03); */
    
    border: 1px solid var(--md-typeset-table-color);
    transition: background-color 0.2s ease;
}

/* Ensure the Feature Column (1st) remains distinct */
.md-typeset  table tbody td:first-child {
    background-color: rgba(var(--moxter-neutral-rgb), 0.12) !important;
    font-weight: 700;
}

/* Vertical Centering for All Table Cells */
.md-typeset table th, 
.md-typeset table td {
    vertical-align: middle !important;
}


/* ----------------------------
 * Moxter comparison table 
 * ---------------------------- */


.moxter-comparison table thead th {
    text-transform: uppercase;
}



/* The Moxter Column (4th column) */
/* Make the Moxter header stand out with depth */
.moxter-comparison table th:nth-child(4) {
    background-color: var(--moxter-comparison) !important;   /* Brighter blue for the header */
    box-shadow: 0 4px 10px rgba(var(--moxter-black-rgb), 0.3);
    border-radius: 4px 4px 0 0;
    position: relative;
    z-index: 1;
}

.moxter-comparison table td:nth-child(4) {
    background-color: rgba(var(--moxter-comparison-rgb), 0.1) !important;
  /* Add a very faint vertical border to separate the hero column */
    border-left: 1px solid rgba(var(--moxter-comparison-rgb), 0.2);
    border-right: 1px solid rgba(var(--moxter-comparison-rgb), 0.2);
}


/* =======================================
   MOXTER BRAND
   ======================================= */

[data-md-color-scheme="default"] {
    --md-default-bg-color: var(--moxter-page-background);
}

.md-header,
.md-tabs {
    background: linear-gradient(110deg, var(--moxter-navy), var(--moxter-blue));
}

.md-tabs__link--active {
    border-bottom-color: var(--moxter-gold);
}

.moxter-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 10rem);
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    margin: 0 0 2rem;
    padding: clamp(1rem, 2vw, 1.75rem);
    overflow: hidden;
    border: 1px solid rgba(var(--moxter-white-rgb), 0.12);
    border-radius: 22px;
    background:
        radial-gradient(circle at 84% 18%, rgba(var(--moxter-gold-rgb), 0.18), transparent 30%),
        linear-gradient(125deg, var(--moxter-navy), var(--moxter-blue) 65%, var(--moxter-teal));
    box-shadow: 0 16px 38px rgba(var(--moxter-navy-rgb), 0.16);
    color: var(--moxter-white);
}

.moxter-hero__eyebrow {
    margin: 0 0 0.75rem;
    color: var(--moxter-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.moxter-hero h1 {
    margin: 0 0 1rem;
    border: 0;
    background: none;
    color: var(--moxter-white);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.05;
    text-transform: none;
    -webkit-text-fill-color: var(--moxter-white);
}

.moxter-hero__lead {
    max-width: 42rem;
    margin: 0 0 1.5rem;
    color: rgba(var(--moxter-white-rgb), 0.88);
    font-size: 1rem;
    line-height: 1.45;
}

.moxter-hero__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
}

.moxter-hero__actions .md-button {
    flex: 0 0 auto;
    padding: 0.5rem 0.85rem;
    white-space: nowrap;
}

.moxter-hero .md-button--primary {
    border-color: var(--moxter-gold);
    background-color: var(--moxter-gold);
    color: var(--moxter-navy);
    font-weight: 700;
}

.moxter-hero .md-button--primary:hover {
    border-color: var(--moxter-gold-light);
    background-color: var(--moxter-gold-light);
}

.moxter-hero .md-button:not(.md-button--primary) {
    border-color: rgba(var(--moxter-white-rgb), 0.7);
    color: var(--moxter-white);
}

.moxter-hero__art {
    display: flex;
    justify-content: center;
}

.moxter-hero__art img {
    display: block;
    width: min(100%, 14rem);
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(var(--moxter-black-rgb), 0.2);
}

.moxter-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 1.5rem;
}

.moxter-feature-card {
    padding: 0.5rem 1.25rem 1rem;
    border: 1px solid var(--moxter-border);
    border-top: 3px solid var(--moxter-teal-bright);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--moxter-white), var(--moxter-card-tint));
    box-shadow: 0 8px 22px rgba(var(--moxter-navy-rgb), 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.moxter-feature-card:hover {
    transform: translateY(-3px);
    border-top-color: var(--moxter-gold);
    box-shadow: 0 14px 28px rgba(var(--moxter-navy-rgb), 0.13);
}

.moxter-feature-card__number {
    color: var(--moxter-teal-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.moxter-feature-card__title {
    margin: 0.35rem 0;
    color: var(--moxter-navy);
    font-size: 1.05rem;
    font-weight: 700;
}

.moxter-feature-card p:last-child {
    margin: 0;
    color: var(--moxter-muted-text);
}

.moxter-note {
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--moxter-teal-bright);
    border-radius: 0 8px 8px 0;
    background: rgba(var(--moxter-teal-bright-rgb), 0.07);
}

@media (max-width: 700px) {
    .moxter-hero {
        grid-template-columns: 1fr;
    }

    .moxter-hero__actions {
        flex-wrap: wrap;
    }

    .moxter-hero__art img {
        width: min(45vw, 10rem);
    }

    .moxter-features {
        grid-template-columns: 1fr;
    }

}

.moxter-title-with-image {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 7rem;
    align-items: start;
    gap: 1rem;
    margin-bottom: -2.75rem;
}

.moxter-title-with-image h1,
.moxter-title-with-image p {
    margin: 0;
}

.moxter-title-with-image img {
    display: block;
    position: relative;
    top: -0.4rem;
    z-index: 2;
    width: 7rem;
    height: auto;
}

.moxter-title-with-image + h2 {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.moxter-setting-up-intro {
    margin-top: 3.75rem;
}

.moxter-userguide-title {
    display: block;
    margin-bottom: 1rem;
}

.moxter-setting-up-intro p,
.moxter-userguide-title h1 {
    margin: 0;
}

.moxter-setting-up-intro img,
.moxter-userguide-title h1 img {
    float: right;
    display: block;
    position: relative;
    top: 0;
    z-index: 2;
    width: 7rem;
    height: auto;
}

.moxter-setting-up-intro img {
    margin: -3.5rem 0 0.5rem 0.75rem;
}

.moxter-userguide-title h1 img {
    margin: 0 0 0.5rem 0.75rem;
}



@media (max-width: 700px) {
    .moxter-title-with-image {
        grid-template-columns: minmax(0, 1fr) 5.5rem;
        gap: 0.75rem;
    }

    .moxter-title-with-image img {
        width: 5.5rem;
    }

    .moxter-setting-up-intro img,
    .moxter-userguide-title h1 img {
        width: 5.5rem;
    }
}


/* =======================================
   TABLE OF CONTENTS
   ======================================= */

.md-sidebar--secondary .md-nav__title {
    padding-bottom: 0.45rem;
    border-bottom: 2px solid rgba(var(--moxter-gold-rgb), 0.75);
    color: var(--moxter-navy);
    font-weight: 700;
}

.md-sidebar--secondary .md-nav__link {
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    color: var(--moxter-muted-text);
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.md-sidebar--secondary .md-nav__link:hover {
    color: var(--moxter-teal);
}

.md-sidebar--secondary .md-nav__link--active {
    border-left-color: var(--moxter-gold);
    background-color: rgba(var(--moxter-teal-bright-rgb), 0.07);
    color: var(--moxter-navy);
    font-weight: 600;
    padding-left: 0.5rem;
}

.md-search__form {
    border-radius: 6px;
}

.md-search__input {
    border-radius: inherit;
}
