/* Base layout */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.md-content {
  max-width: 820px;
  margin: 0 auto;
}

/* Hide header title (duplicate 'Esteban Foucher' in top-left) */
.md-header__title {
  display: none !important;
}

/* Hide Material theme logo icon in the header */
.md-header__button.md-logo {
  display: none !important;
}

/* Hide mobile navigation toggle button (hamburger menu) */
label.md-header__button.md-icon[for="__drawer"] {
  display: none !important;
}

/* Hide sidebars (navigation and table of contents) completely */
.md-sidebar--primary,
.md-sidebar--secondary {
  display: none !important;
}

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

/* Headings */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  font-weight: 700;
}

.md-typeset h1 {
  color: #000000;
  margin-bottom: 0.5rem;
}

.md-typeset h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.md-typeset h3 {
  margin-top: 1.75rem;
  margin-bottom: 1.1rem;
}

/* Home page portrait image */
.md-typeset img[alt*="Portrait of Esteban Foucher"] {
  float: right;
  max-width: 25%;
  min-width: 150px;
  height: auto;
  margin: 0 0 1rem 1.5rem;
  border-radius: 999px;
}

@media (max-width: 600px) {
  .md-typeset img[alt*="Portrait of Esteban Foucher"] {
    float: right;
    display: block;
    max-width: 25%;
    margin: 0 0 1rem 1rem;
  }
}

/* Videos */
.md-typeset video {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  margin: 0.5rem 0 1.5rem;
}

/* SailCV media layout (markdown table images) */
.md-typeset table img {
  border-radius: 8px;
}

.md-typeset img[alt="SailCV tell‑tale tracker demo"] {
  max-width: 40%;
  height: auto;
}

.md-typeset img[alt="SailCV 3D reconstruction demo"] {
  max-width: 50%;
}

.md-typeset img[alt="SailCV combined demo"] {
  max-width: 95%;
}

/* Links */
.md-typeset a {
  text-decoration: none;
}

.md-typeset a:hover {
  text-decoration: underline;
}


