/* Cornell-inspired palette overrides for Material */
:root {
  --md-primary-fg-color: #B31B1B;         /* Cornell Red */
  --md-primary-fg-color--light: #CF4C4C;  /* lighter red */
  --md-primary-fg-color--dark: #8B0000;   /* darker red */
  --md-accent-fg-color: #B31B1B;
  --md-typeset-a-color: #B31B1B;
}
.md-header, .md-tabs { box-shadow: none; }
.md-typeset h1, .md-typeset h2, .md-typeset h3 { font-weight: 700; }
.md-typeset a:hover { text-decoration: underline; }
.md-button, .md-typeset .md-button--primary { background: #B31B1B; border-color:#B31B1B; }
.md-button:hover { filter: brightness(0.95); }
table { width: 100%; }
blockquote { border-left: 4px solid #B31B1B22; padding-left: 1rem; }



/* Hide Material header and sidebars */
.md-header { display: none !important; }

/* Expand content width since sidebars are gone; keep readable line length */
.md-main__inner { margin: 0; }

/* Print-friendly tweaks */
@media print {
  .md-content { max-width: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}


/* Hide the normal left nav (primary) */
.md-sidebar--primary {
  display: none !important;
}

/* Move the right-hand sidebar (secondary, ToC) to the left */
.md-sidebar--secondary {
  display: block !important;
  order: -1;             /* force it to render before the content */
  border-right: 1px solid #eee;
  padding-right: 1rem;
}

.hero-banner { position: relative; width: 100%; overflow: hidden; border-radius: 8px; }
.hero-banner img { width: 50%; height: auto; display: block; filter: brightness(80%); }
.hero-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; text-align: center; }
