/* =======================================================================
   custom.css  —  Personal website redesign
   Design tokens:
     Charcoal (structural):  #1A1A1A
     Teal (accent):          #1A7F64
     Teal hover:             #155E4A
     Light teal tint:        #F0FAF7
   ======================================================================= */

/* -----------------------------------------------------------------------
   GLOBAL — consistent base everywhere
   ----------------------------------------------------------------------- */

body {
  font-size: 16px;
  background-color: #FFFFFF;
}

/* -----------------------------------------------------------------------
   TYPOGRAPHY SCALE  (applied to all content pages via .col-lg-8)
   --- */

.col-lg-8 h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1A1A1A;
  border-left: 4px solid #1A7F64;
  padding-left: 0.85rem;
  margin-top: 2.25rem;
  margin-bottom: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}

.col-lg-8 h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333333;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0;
}

/* Blog post preview titles must NOT get the left-border treatment */
.post-preview h2 {
  border-left: none !important;
  padding-left: 0 !important;
  color: #404040;
  margin-top: 0;
}

/* -----------------------------------------------------------------------
   NAVBAR
   ----------------------------------------------------------------------- */

.navbar-custom {
  border-bottom: none;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.navbar-custom .nav li a {
  text-transform: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus,
.navbar-custom .nav li a:hover,
.navbar-custom .nav li a:focus {
  color: #7DD3B8 !important;
}

/* Hide circular navbar avatar — replaced by sidebar photo on about page */
.navbar-custom .avatar-container {
  display: none !important;
}

/* -----------------------------------------------------------------------
   PAGE HEADER BANNER
   ----------------------------------------------------------------------- */

.intro-header.no-img {
  background-color: #1A1A1A;
  padding: 32px 0 28px;
  margin-bottom: 36px;
}

.intro-header .page-heading h1,
.intro-header .post-heading h1 {
  color: #ffffff;
  font-size: 1.9rem;
}

.intro-header .page-heading .page-subheading,
.intro-header .post-heading .post-subheading {
  color: #7DD3B8;
}

.intro-header .post-heading .post-meta {
  color: #BEBEBE;
}

.intro-header hr.small {
  border-color: rgba(125, 211, 184, 0.4);
}

.intro-header {
  margin-top: 0;
}

/* Ensure h2 inside the header banner never gets the left border */
.intro-header h2 {
  border-left: none !important;
  padding-left: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
}

/* -----------------------------------------------------------------------
   PUBLICATIONS  —  jekyll-scholar <ol class="bibliography">
   ----------------------------------------------------------------------- */

.bibliography {
  padding-left: 1.75rem;
  margin-top: 0.5rem;
}

.bibliography li {
  padding: 0.85rem 0;
  border-bottom: 1px solid #E8E8E8;
  font-size: 1rem;
  line-height: 1.7;
  color: #222222;
}

.bibliography li:last-child {
  border-bottom: none;
}

/* paper button */
.btn-paper {
  display: inline-block;
  padding: 3px 10px;
  background-color: #1A7F64;
  color: #ffffff !important;
  border-radius: 4px;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  margin-left: 7px;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: background-color 0.15s, box-shadow 0.15s;
}

.btn-paper:hover {
  background-color: #155E4A;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

/* code button — distinct warm amber */
.btn-code {
  display: inline-block;
  padding: 3px 10px;
  background-color: #B7410E;
  color: #ffffff !important;
  border-radius: 4px;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  margin-left: 5px;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: background-color 0.15s, box-shadow 0.15s;
}

.btn-code:hover {
  background-color: #8C2E00;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

/* -----------------------------------------------------------------------
   FOOTER
   ----------------------------------------------------------------------- */

footer {
  border-top: none;
}

/* -----------------------------------------------------------------------
   ABOUT PAGE  —  two-column layout
   ----------------------------------------------------------------------- */

.about-grid {
  display: flex;
  gap: 2.75rem;
  align-items: flex-start;
  padding-top: 2.25rem;
  padding-bottom: 2.5rem;
}

/* Sidebar — card style with light teal tint */
.about-sidebar {
  flex: 0 0 195px;
  text-align: center;
  position: sticky;
  top: 85px;
  background: #F0FAF7;
  border-radius: 14px;
  padding: 1.75rem 1.25rem 1.5rem;
  border: 1px solid #C8EDE4;
}

/* Circular photo — matches original circular format */
.about-photo {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.1rem;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.14);
}

.about-name {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #1A1A1A;
  line-height: 1.3;
}

.about-position {
  font-size: 0.78rem;
  color: #555555;
  line-height: 1.55;
  margin: 0;
}

.social-strip {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-strip a {
  font-size: 1.25rem;
  color: #444444;
  transition: color 0.15s;
  text-decoration: none;
}

.social-strip a:hover {
  color: #1A7F64;
  text-decoration: none;
}

/* Main content — consistent with rest of site */
.about-main {
  flex: 1;
  min-width: 0;
}

/* h2 headings in about-main match the site-wide scale */
.about-main h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1A1A1A;
  border-left: 4px solid #1A7F64;
  padding-left: 0.85rem;
  margin-top: 2rem;
  margin-bottom: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Body text inherits 16px from body — no override needed */

/* News list */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.news-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #E8E8E8;
  font-size: 1rem;
  line-height: 1.6;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-date {
  font-weight: 700;
  color: #1A7F64;
  margin-right: 0.35rem;
  font-family: 'Open Sans', sans-serif;
}

/* Talks list */
.talk-entry {
  padding: 0.55rem 0;
  border-bottom: 1px solid #E8E8E8;
  font-size: 1rem;
  line-height: 1.6;
}

.talk-entry:last-child {
  border-bottom: none;
}

/* -----------------------------------------------------------------------
   MOBILE  —  stack sidebar above content
   ----------------------------------------------------------------------- */

@media (max-width: 767px) {
  .about-grid {
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1.25rem;
  }

  .about-sidebar {
    flex: none;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    position: static;
  }

  .about-main h2,
  .col-lg-8 h2 {
    font-size: 1.2rem;
  }

  .intro-header .page-heading h1,
  .intro-header .post-heading h1 {
    font-size: 1.5rem;
  }
}
