body {
  font-family: 'Inter', 'Raleway', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #fafafa;
  color: #222;
}

h4 {
  letter-spacing: 0.1rem;
}
.container {
  max-width: 800px;
}
.header {
  margin-top: 60px;
  margin-bottom: 60px;
  text-align: left;
}
.main-description h1 {
  font-family: 'Inter', 'Raleway', sans-serif;
  color: #000;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0px;
}
.main-description p:first-of-type {
  font-size: 1.1em;
  color: #888;
  font-weight: 400;
  margin-bottom: 0.25em;
}
.main-description p:nth-of-type(2) {
  color: #555;
  font-size: 1.05em;
}
.main-description .fa {
  font-size: 22px;
  margin-top: 5px;
}
.paper {
  margin-bottom: 20px;
}
/* Removed empty rule .paper .title */
.paper p {
  margin-bottom: 2px;
}

/* wrapper row */
.paper-buttons{
  margin-top:5px;
  display:flex;          /* lay buttons out horizontally */
  flex-wrap:wrap;
  gap:8px;               /* space between buttons */
}

/* each button */
.paper-buttons .button{
  display:inline-flex;   /* icon + text become flex items */
  align-items:center;    /* vertical‑centre them */
  gap:6px;               /* space between icon and text */
  height:26px;           /* any fixed height you like */
  padding:0 13px;
  line-height:1;         /* kill extra baseline space */
  font-weight:400;
  text-transform:none;
  text-decoration:none;  /* remove underline if needed */
}

.paper-buttons a.button{
  display: inline-flex;        /* lets icon + text share one line    */
  align-items: center;         /* vertically center them             */
  padding: 10px 15px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  gap: 6px;                    /* space between icon & text          */
  white-space: nowrap;
  background: #fafbfc;
  color: #222;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.paper-buttons a.button:hover {
  background: #f3f4f6;
  color: #000;
  border: 1.5px solid #bdbdbd;
}

/* icon tweaks */
.paper-buttons .button i{
  font-size:1.2em;
  line-height:0;         /* prevent icon from pushing down */
  color: #888;
}


/* Enhanced image styling with shadow effect */
.paper-image img,
.placeholder-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #eee;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.paper-image img:hover,
.placeholder-image:hover {
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.15);
}

/* Paper container spacing to accommodate shadow */
.paper-container {
  display: flex;
  padding-bottom: 15px;
  margin-bottom: 5px;
}

.paper-image {
  flex: 0 0 120px; /* Increased from 160px to 220px */
  margin-right: 20px;
  padding: 5px;
}

.paper-image img {
  max-width: 100%;    /* image will never exceed container width */
  max-height: 200px;  /* optional: limits tall images */
  height: auto;       /* maintain aspect ratio */
  display: block;     /* fixes extra space below images */
  object-fit: contain; /* ensures image fits nicely without cropping */
}

/* Make placeholder image taller to match typical paper images */
.placeholder-image {
  height: 140px; /* Increased height for placeholder */
}

.section-header {
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.2rem;
  font-weight: 600;
  color: #111;
  border-bottom: 2px solid #bbb;
}
.docs-section {
  border-top: 1px solid #eee;
  padding: 4rem 0;
  margin-bottom: 0;
}
.footer {
  text-align: center;
  color: rgba(0, 0, 0, 0.4);
  border-top: 1px solid #eee;
  padding: 15px 0 40px 0;
  margin-bottom: 0;
}
.navbar {
  display: none;
}
.title-subtitle h3 {
  margin-bottom: 0px;
}
.title-subtitle h5 {
  color: rgba(0, 0, 0, 0.6);
}
.image {
  text-align: center;
}

/*  ================ Project styling  ================ */
.project-container {
  margin-bottom: 30px;
}
.project-image-container {
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 3px;
  transition: 0.3s;
}
.project-image-container:hover {
  transition: 0.3s;
}
.project-image-container:hover img {
  opacity: 0.4;
}
.project-caption {
  padding: 3px;
}

/* Larger than phone */
@media (min-width: 550px) {
  .header {
    margin-top: 5rem;
  }
}

/* Larger than tablet */
@media (min-width: 750px) {
  /* Navbar */
  .navbar + .docs-section {
    border-top-width: 0;
  }
  .navbar,
  .navbar-spacer {
    display: block;
    width: 100%;
    height: 6.5rem;
    background: #fff;
    z-index: 99;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }
  .navbar-spacer {
    display: none;
  }
  .navbar > .container {
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
  }
  .navbar-list {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .navbar-item {
    position: relative;
    float: left;
    margin-bottom: 0;
  }
  .navbar-link {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2rem;
    margin-right: 35px;
    text-decoration: none;
    line-height: 6.5rem;
    color: #444;
    background: none;
  }
  .navbar-link.active {
    color: #111;
    font-weight: 700;
    border-bottom: 2px solid #bbb;
    background: none;
  }
  .has-docked-nav .navbar {
    position: fixed;
    top: 0;
    left: 0;
  }
  .has-docked-nav .navbar-spacer {
    display: block;
  }
  /* Re-overiding the width 100% declaration to match size of % based container */
  .has-docked-nav .navbar > .container {
    width: 80%;
  }

  /* Popover */
  .popover.open {
    display: block;
  }
  .popover {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    top: 92%;
    left: -50%;
    -webkit-filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.1));
    -moz-filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.1));
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.1));
  }
  .popover-item:first-child .popover-link:after,
  .popover-item:first-child .popover-link:before {
    bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
  }
  .popover-item:first-child .popover-link:after {
    border-color: rgba(255, 255, 255, 0);
    border-bottom-color: #fff;
    border-width: 10px;
    margin-left: -10px;
  }
  .popover-item:first-child .popover-link:before {
    border-color: rgba(238, 238, 238, 0);
    border-bottom-color: #eee;
    border-width: 11px;
    margin-left: -11px;
  }
  .popover-list {
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .popover-item {
    padding: 0;
    margin: 0;
  }
  .popover-link {
    position: relative;
    color: #444;
    display: block;
    padding: 8px 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.1rem;
    background: none;
  }
  .popover-item:first-child .popover-link {
    border-radius: 4px 4px 0 0;
  }
  .popover-item:last-child .popover-link {
    border-radius: 0 0 4px 4px;
    border-bottom-width: 0;
  }
  .popover-link:hover {
    color: #fff;
    background: #222;
    border-bottom-color: #222;
  }
  .popover-link:hover,
  .popover-item:first-child .popover-link:hover:after {
    border-bottom-color: #222;
  }
}

/* Remove blue from links site-wide */
a, a:visited {
  color: #444;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #000;
}

/* Remove blue from section headers and tabs */
.section-header, .navbar-link.active, .popover-link.active {
  color: #111 !important;
  border-bottom: 2px solid #bbb;
}

/* Remove blue from timeline and other accents */
.timeline-dot, .timeline-line {
  background: #bbb !important;
  border-color: #bbb !important;
}

/* Remove blue from tab controls */
.tabs .tab.active {
  color: #111;
  border-bottom: 2px solid #bbb;
  background: none;
}
.tabs .tab {
  color: #888;
  background: none;
}

/* General: remove blue from all elements, use only greys */
* {
  --primary: #111;
  --secondary: #888;
  --accent: #bbb;
  --background: #fafafa;
}

.u-max-full-width {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1.5px solid #eee;
  background: #fff;
}

/* Modal overlay for image popups */
.image-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-modal-content img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  background: #fff;
}
.image-modal-close {
  position: absolute;
  top: -32px;
  right: 0;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
  padding: 0 12px;
  line-height: 1;
  transition: color 0.2s;
}
.image-modal-close:hover {
  color: #bbb;
}
