
/*______________________________________________________*/
/* Side nav styling                                     */
/*______________________________________________________*/

/* Indent only the navigation content, not the top-level section titles */
.md-nav__item--section > .md-nav > .md-nav__list {
    margin-left: 0.75rem; /* Adjust the value (e.g., 0.5rem, 2em, 20px) as needed */
}

/* Further indent nested levels if needed */
.md-nav__list .md-nav__list {
    margin-left: 0.5rem; /* Adjust this value for deeper nesting */
}

/* Make the font color of the sub-titles (pages) darker */
.md-nav__link {
    color: #161616; /* A slightly lighter dark color for sub-items */
}

/* Make the font color of section titles darker */
.md-nav__item--section > .md-nav__link {
    color: #070707; /* Use a specific hex code or RGB value */
}

/* Style the individual navigation items under sections */
.md-nav__item--section > .md-nav > .md-nav__list > .md-nav__item {
    padding: 0;
}

/* Style the font color of links within those items */
.md-nav__item--section > .md-nav > .md-nav__list > .md-nav__item .md-nav__link {
    color: #161616; /* Adjust to your preferred color */
}

/*______________________________________________________*/
/* Core page styling                                    */
/*______________________________________________________*/

.md-header__button.md-logo {
  margin-top: 3;
  margin-bottom: 3;
  padding-top: 3;
  padding-bottom: 3;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 40%;
  width: 40%;
}


/* Announcement bar link styling */
.md-banner a,
.md-banner__inner a,
.md-announce a,
.md-announce__inner a {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Force 1 column by default */
.grid.cards.fixed-2-col {
  display: grid !important;
  grid-template-columns: repeat(1, 1fr) !important;
  gap: 1rem;
  align-items: stretch;
}

/* At tablet+ size → force 2 columns */
@media screen and (min-width: 768px) {
  .grid.cards.fixed-2-col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Ensure equal height cards */
.grid.cards.fixed-2-col > * {
  display: flex;
  flex-direction: column;
}

/* Hide auto-generated page title - Multiple selectors */
.md-content__inner > h1:first-child,
.md-content h1:first-of-type,
.md-typeset > h1:first-child,
article.md-content__inner > h1:first-child,
.md-content__inner h1:first-of-type {
  display: none !important;
}

/*______________________________________________________*/
/* Home page - Hero section style  */
/*______________________________________________________*/

/* Hero section styling */
.md-typeset h1 {
  font-weight: 700;
  font-size: 2.5em;
  line-height: 1.2;
}

/* Feature cards */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.grid.cards > * {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.2rem;
  padding: 1.5rem;
  transition: all 0.2s;
}

.grid.cards > *:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Icon styling */
.lg {
  font-size: 2rem;
}

.middle {
  vertical-align: middle;
}

/*______________________________________________________*/
/* EarthDaily corporate website alignment */
/*______________________________________________________*/

/* EarthDaily Brand Colors — aligned with earthdaily.com (2026) */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@300;400;700&display=swap');

:root {
    --ed-primary: #214B64;        /* EarthDaily Navy */
    --ed-primary-dark: #042D41;   /* Deep Navy */
    --ed-primary-gradient: linear-gradient(to right, #042D41, #214B64);
    --ed-secondary: #00a651;      /* Earth Green */
    --ed-accent: #ff6b35;         /* Accent Orange */
    --ed-dark: #24272A;           /* Corporate dark text */
    --ed-light-bg: #F8F4F3;      /* Warm cream background */
    --ed-card-bg: #ffffff;
    --ed-border: #E0DDD9;         /* Warm gray border */
}

/* Main Content Area Background - Corporate Style with Image and Vertical Gradient */
.md-main {
    background-image: 
        linear-gradient(180deg, rgba(248, 249, 250, 0.95) 0%, rgba(232, 238, 243, 0.92) 50%, rgba(212, 223, 232, 0.9) 100%),
        url('../assets/EarthDaily_Constellation_Hero.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* Force transparency on all content wrappers */
.md-content,
.md-content__inner,
.md-typeset,
article.md-content__inner,
.md-content > .md-content__inner {
    background: transparent !important;
    background-color: transparent !important;
}

/* Apply semi-transparent background only to the main content box */
.md-content__inner {
    background: rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    padding: 2rem;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Remove any pseudo-elements that might add backgrounds */
.md-content__inner:before,
.md-content__inner:after,
.md-content:before,
.md-content:after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Ensure article and typeset are transparent */
.md-typeset article {
    background: transparent !important;
    background-color: transparent !important;
}

.md-main__inner {
    background: transparent !important;
}

/* Target the main element specifically */
main.md-content {
    background: transparent !important;
}

main.md-content > .md-content__inner {
    background: rgba(255, 255, 255, 0.75) !important;
}

/* Sidebar Background */
.md-sidebar {
    background-color: transparent;
}

.md-sidebar--primary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.md-sidebar--secondary {
    background: transparent;
}

/* Page Container */
.md-container {
    background-color: transparent;
}
.md-button--primary {
    background: var(--ed-primary-gradient) !important;
    border-color: var(--ed-primary) !important;
    color: white !important;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.md-button--primary:hover {
    background: var(--ed-primary-gradient) !important;
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 45, 65, 0.3);
}

/* Card Grid Styling */
.grid.cards > ul {
    gap: 1.5rem;
}

.grid.cards > ul > li {
    border: 1px solid var(--ed-border);
    border-radius: 6px;
    padding: 2rem;
    background: var(--ed-card-bg);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.grid.cards > ul > li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--ed-primary);
}

/* Main Help Section Cards */
.grid.cards > ul > li > hr {
    margin: 1rem 0;
    border-color: var(--ed-border);
}

/* Icon Styling in Cards */
.grid.cards .lg.middle {
    color: var(--ed-primary);
    font-size: 3rem;
}

/* Links in Cards */
.grid.cards a {
    color: var(--ed-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.grid.cards a:hover {
    color: var(--ed-primary-dark);
    gap: 0.75rem;
}

/* Secondary Cards (Popular Resources) */
.grid.cards > ul > li > p > strong {
    color: var(--ed-dark);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Admonition Styling */
.md-typeset .admonition.info {
    border-left: 4px solid var(--ed-primary);
}

.md-typeset .admonition.tip {
    border-left: 4px solid var(--ed-secondary);
}

/* Header Styling — IBM Plex Serif for headings (corporate alignment) */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
    font-family: 'IBM Plex Serif', Georgia, serif;
}

.md-typeset h1 {
    color: var(--ed-primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.md-typeset h2 {
    color: var(--ed-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--ed-light-bg);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
}

/* Horizontal Rules */
.md-typeset hr {
    border-bottom: 1px solid var(--ed-border);
    margin: 2.5rem 0;
}

/* Link Styling */
.md-typeset a {
    color: var(--ed-primary);
}

.md-typeset a:hover {
    color: var(--ed-primary-dark);
}

/* Code Blocks */
.md-typeset code {
    background-color: var(--ed-light-bg);
    color: var(--ed-dark);
    border-radius: 3px;
    padding: 0.2rem 0.4rem;
}

/* Tables */
.md-typeset table:not([class]) {
    border: 1px solid var(--ed-border);
}

.md-typeset table:not([class]) th {
    background-color: var(--ed-light-bg);
    color: var(--ed-dark);
    font-weight: 600;
}

/* Navigation Banner - Match Corporate Website */
.md-header {
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header Text Color */
.md-header__title,
.md-header__button,
.md-header__topic {
    color: var(--ed-dark) !important;
}


/* Navigation Links */
.md-header-nav__button {
    color: var(--ed-dark) !important;
}

.md-header-nav__button:hover {
    opacity: 0.7;
}

/* Header Source/Repository Link */
.md-header__source {
    color: var(--ed-dark) !important;
}

.md-source {
    color: var(--ed-dark) !important;
}

.md-source__icon {
    color: var(--ed-dark) !important;
}

.md-source__repository {
    color: var(--ed-dark) !important;
}

.md-source:hover {
    opacity: 0.8;
}

/* Search Bar in Header */
.md-search__input {
    background-color: var(--ed-light-bg);
    border: 1px solid var(--ed-border);
}

.md-search__icon {
    color: var(--ed-dark) !important;
}

/* Tabs Navigation */
.md-tabs {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--ed-border);
}

.md-tabs__link {
    color: var(--ed-dark) !important;
    font-weight: 500;
    opacity: 0.7;
}

.md-tabs__link:hover {
    opacity: 1;
    color: var(--ed-primary) !important;
}

.md-tabs__link--active {
    color: var(--ed-primary) !important;
    opacity: 1;
    border-bottom: 2px solid var(--ed-primary);
}

/* Logo Styling */
.md-header__logo img {
    filter: none;
}

/* Search Bar */
.md-search__input {
    border-radius: 6px;
}

.md-search__input:focus {
    border-color: var(--ed-primary);
}

/* Sidebar Active Links */
.md-nav__link--active {
    color: var(--ed-primary);
    font-weight: 600;
}

/* Footer Styling */
.md-footer {
    background-color: var(--ed-dark);
}

/* Custom Alert Boxes */
.ed-alert {
    border-left: 4px solid var(--ed-primary);
    background-color: rgba(33, 75, 100, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.ed-alert-success {
    border-left-color: var(--ed-secondary);
    background-color: rgba(0, 166, 81, 0.05);
}

.ed-alert-warning {
    border-left-color: var(--ed-accent);
    background-color: rgba(255, 107, 53, 0.05);
}

/* Responsive Card Layout */
@media screen and (max-width: 768px) {
    .grid.cards > ul {
        grid-template-columns: 1fr !important;
    }
    
    .grid.cards > ul > li {
        padding: 1.5rem;
    }
}



/* Developer Resources Special Styling */
.grid.cards > ul > li:has(strong:contains("Python SDK")),
.grid.cards > ul > li:has(strong:contains("API")) {
    background: linear-gradient(135deg, rgba(4, 45, 65, 0.03) 0%, rgba(0, 166, 81, 0.03) 100%);
}

/*______________________________________________________*/
/* Badge Styling               */
/*______________________________________________________*/

/* Base badge styling */
.mdx-badge {
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
}

/* Badge with heart - for sponsors/insiders */
.mdx-badge--heart {
    --md-typeset-a-color: hsl(340, 82%, 52%);
    --md-accent-fg-color: hsl(340, 100%, 50%);
    --md-accent-fg-color--transparent: hsla(340, 82%, 52%, 0.1);
    color: hsl(340, 82%, 52%);
}

/* Animate heart icon */
.mdx-badge--heart .twemoji {
    animation: heart 1000ms infinite;
}

/* Heart animation keyframes */
@keyframes heart {
    0%, 40%, 80%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(0.92);
    }
}

/* Make article a positioning context */
.md-content__inner {
    position: relative;
}

/* Base styling for ALL badge paragraphs */
.md-typeset p:has(.mdx-badge--right) {
    display: inline-block;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    height: auto;
    vertical-align: top;
}

/* Only the FIRST badge paragraph (after the button) is absolutely positioned */
.md-content__button + p:has(.mdx-badge--right) {
    position: absolute;
    top: 0.4rem;
    right: 3.5rem;
}

/* Second badge paragraph (adjacent to first badge paragraph) flows inline */
.md-content__button + p:has(.mdx-badge--right) + p:has(.mdx-badge--right) {
    position: relative;
    margin-left: 0.5rem !important;
}

/* Badges within paragraph */
.mdx-badge--right {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.mdx-badge--right:first-child {
    margin-left: 0;
}

/* Adjust spacing for h1 */
.md-typeset h1:first-of-type {
    margin-top: 3rem;
}

/* Badge icon container */
.mdx-badge__icon {
    padding: 0.25rem;
    background: var(--md-accent-fg-color--transparent);
    border-top-left-radius: 0.125rem;
    border-bottom-left-radius: 0.125rem;
    display: inline-flex;
    align-items: center;
}

/* If icon is alone, round all corners */
.mdx-badge__icon:last-child {
    border-radius: 0.125rem;
}

/* Badge text container */
.mdx-badge__text {
    padding: 0.25rem 0.375rem;
    border-top-right-radius: 0.125rem;
    border-bottom-right-radius: 0.125rem;
    box-shadow: 0 0 0 1px inset var(--md-accent-fg-color--transparent);
    display: inline-flex;
    align-items: center;
}

/* Optional: Define accent colors for different badge types */
.mdx-badge:not(.mdx-badge--heart) {
    --md-accent-fg-color: var(--ed-primary, #214B64);
    --md-accent-fg-color--transparent: rgba(33, 75, 100, 0.1);
}

/* Manual Badge Styling (for custom HTML badges) */
.md-typeset .custom-badge {
    background-color: var(--ed-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/*______________________________________________________*/
/* Footer styling                                       */
/*______________________________________________________*/

.md-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--ed-border);
}

/* Footer text color for light mode */
.md-footer-meta,
.md-footer-copyright,
.md-footer__link {
    color: var(--ed-dark);
}

/* Dark mode footer */
[data-md-color-scheme="slate"] .md-footer {
    background-color: var(--ed-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark mode footer text */
[data-md-color-scheme="slate"] .md-footer-meta,
[data-md-color-scheme="slate"] .md-footer-copyright,
[data-md-color-scheme="slate"] .md-footer__link {
    color: #ffffff;
}