/* Logo sizing - 500% larger */
.md-header__button.md-logo img {
  height: 100px;
  width: auto;
}

.md-header__button.md-logo {
  padding: 0.2rem;
}

.md-header {
  height: auto;
  min-height: 110px;
}

/* Sidebar styling */
.md-nav__item--nested > .md-nav__link {
  font-weight: 600;
}

.md-sidebar {
  padding-top: 1rem;
}

/* Enhanced content styling */
.md-content {
  max-width: 1200px;
}

.md-typeset h1 {
  font-weight: 700;
  color: var(--md-primary-fg-color);
}

.md-typeset h2 {
  border-bottom: 2px solid var(--md-primary-fg-color--light);
  padding-bottom: 0.3rem;
}

/* Better table styling */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.md-typeset table:not([class]) th {
  background-color: var(--md-primary-fg-color);
  color: white;
}

/* Card-like sections */
.md-typeset .admonition {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Light grey background */
[data-md-color-scheme="default"] {
  --md-default-bg-color: #f5f5f5;
}

.md-main {
  background-color: var(--md-default-bg-color);
}

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

.grid.cards > ul {
  display: contents;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.grid.cards > ul > li:hover,
.grid.cards > *:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card icons */
.grid.cards .lg {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.grid.cards .middle {
  vertical-align: middle;
}

/* Card title styling */
.grid.cards strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Card separator */
.grid.cards hr {
  margin: 0.75rem 0;
  border: none;
  border-top: 1px solid var(--md-default-fg-color--lightest);
}

/* Card link styling */
.grid.cards a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Hero section */
h1 {
  font-size: 2.5rem !important;
  margin-bottom: 0.5rem !important;
}

/* Table improvements */
table {
  width: 100%;
}

/* Tip box styling */
.admonition.tip {
  margin-top: 2rem;
}

/* Print button */
.print-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-radius: 4px;
}

/* Print styles */
@media print {
  /* Hide navigation, header, footer */
  .md-header,
  .md-sidebar,
  .md-footer,
  .md-tabs,
  .md-search,
  .print-button,
  .md-nav,
  .md-source {
    display: none !important;
  }

  /* Full width content */
  .md-content {
    margin: 0 !important;
    max-width: 100% !important;
  }

  .md-main__inner {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ensure content is visible */
  .md-typeset {
    font-size: 12pt;
    color: black !important;
  }

  /* Tables print nicely */
  .md-typeset table {
    box-shadow: none !important;
    border: 1px solid #ccc;
  }

  .md-typeset table th {
    background-color: #eee !important;
    color: black !important;
  }

  /* Code blocks */
  .md-typeset pre {
    border: 1px solid #ccc;
    background: #f5f5f5 !important;
  }

  /* Page breaks */
  h1, h2 {
    page-break-after: avoid;
  }

  pre, table {
    page-break-inside: avoid;
  }
}
