/* Apply futura-pt to all headers */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.navbar-title,
.title,
.card-title,
.listing-title,
.quarto-title {
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
}

/* Specific weight variations for different header levels */
h1, .h1, .title {
  font-weight: 600;
}

h2, .h2 {
  font-weight: 500;
}

h3, .h3 {
  font-weight: 500;
}

h4, h5, h6, .h4, .h5, .h6 {
  font-weight: 400;
}

.navbar-title:hover > .icon-line {
  animation-duration: 600ms;
  animation-name: line-expand;
}

@keyframes line-expand {
  from {
    width: 0%;
  }
  
  to {
    width: 100%;
  }
}

#title-block-header.quarto-title-block.default .quarto-title .title {
  margin-bottom: 2rem;
  margin-top: 2rem;
  background-color: #ffffff;

}

#title-block-header.quarto-title-block.default .description > p:last-of-type, #title-block-header.quarto-title-block.default .abstract > p:last-of-type {
  margin-bottom: 1rem;
  background-color: #ffffff;
}

#quarto-margin-sidebar .quarto-listing-category {
  font-size: 0.8rem;
}

div.listing-description {
  font-size: 0.875rem;
}

div.quarto-post .body .listing-subtitle {
  font-size: 1.2rem;
}

.quarto-grid-item .card-title {
    margin-bottom: .5em;
    
}

/*
// left align edge of callout block with text
// without this, text inside callout block is left aligned with body text,
// which maybe looks better?
div.callout.callout {
  margin-left: 0;
}
*/

code span.cf {
  font-weight: normal;
}

.top-callout {
  margin-top: 0;
}

.profile-pic {
  border-radius: 5px;
}

/* Color variables */
:root {
  --hcc-blue: #002bd1;
  --hcc-red: #d10076;
  --bs-link-color: #002bd1;
  --bs-link-hover-color: #0022a0;
}

/* Main blue background */
body {
  background-color: #ffffff;
  color: #000000;
}

/* Header styling */
.navbar {
  background-color: #ffffff !important;
  border-bottom: none;
}

.navbar-title,
.navbar-brand {
  color: var(--hcc-blue) !important;
  font-weight: 700;
}

.navbar .navbar-nav .nav-link {
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--hcc-blue) !important;
  font-weight: 500;
}

.navbar .navbar-nav .nav-link:hover {
  color: #0022a0 !important;
}

/* Navbar icons (GitHub, Twitter, Search) */
.navbar .bi,
.navbar .aa-DetachedSearchButton,
.navbar .aa-DetachedSearchButton svg,
.navbar-nav .nav-item i {
  color: var(--hcc-blue) !important;
}

.navbar .aa-DetachedSearchButton svg {
  fill: var(--hcc-blue) !important;
}

/* Content area */
#quarto-content {
  background-color: #ffffff;
  color: #000000;
}

/* Two-column hero section */
.two-column-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 3rem 0;
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 400;
}

.column-left {
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #000000;
  font-size: 6rem;
  font-weight: 600;
}

.blue-period {
  color: var(--hcc-blue);
}

.column-right {
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #000000;
  font-size: 1.3rem;
  font-weight: 400;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .two-column-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Email subscription form */
.email-subscribe {
  margin: 0;
}

.email-subscribe form {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.email-subscribe label {
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #000000;
  margin: 0;
}

.email-subscribe input[type="email"] {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: none;
  border-bottom: 2px solid #000000;
  background-color: transparent;
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-width: 250px;
}

.email-subscribe input[type="email"]:focus {
  outline: none;
  border-bottom-color: var(--hcc-blue);
}

.email-subscribe input[type="submit"] {
  background-color: transparent;
  color: var(--hcc-blue);
  border: none;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.email-subscribe input[type="submit"]:hover {
  color: #0022a0;
}

/* Content sections */
.content-section {
  margin: 0 auto;
}

.content-section h2 {
  font-size: 1.5rem;
  margin-top: rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #000000;
}

.content-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Links */
a {
  color: var(--hcc-blue);
  text-decoration: none;
}

a:hover {
  color: #0022a0;
  text-decoration: underline;
}

/* Listing styles */
.quarto-listing {
  background-color: transparent;
  margin-top: 4rem;
}

/* Default list styling - no custom grid reordering */
.quarto-listing-default .list {
  display: block;
}

.quarto-listing-default .list .quarto-post {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 3rem !important;
  transition: all 0.2s ease;
}

.quarto-listing-default .list .quarto-post:hover {
  background-color: transparent;
}

/* Thumbnail section - hide it */
.quarto-listing-default .list .quarto-post .thumbnail {
  display: none !important;
}

.quarto-listing-default .list .quarto-post .thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* Title styling */
.quarto-listing-default .listing-title,
.quarto-grid-item .listing-title,
.quarto-grid-item .card-title {
  color: #000000 !important;
  font-weight: 900 !important;
  font-size: 2.5rem !important;
  margin: 0 0 0.5rem 3.5rem !important;
  line-height: 1.1 !important;
  vertical-align: bottom;
}

.quarto-listing-default .listing-title a,
.quarto-grid-item .listing-title a,
.quarto-grid-item .card-title a {
  color: #000000 !important;
}

.quarto-listing-default .listing-title a:hover,
.quarto-grid-item .listing-title a:hover,
.quarto-grid-item .card-title a:hover {
  color: var(--hcc-blue) !important;
}

/* Description under title */
.quarto-listing-default .listing-description {
  color: #333333;
  font-size: 0.95rem;
  margin: 0;
}

/* Metadata styling */
.quarto-listing-default .listing-date {
  color: #999999;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.quarto-listing-default .listing-author {
  color: #666666;
  font-size: 0.95rem;
}

/* Responsive: mobile adjustments */
@media (max-width: 768px) {
  .quarto-listing-default .list .quarto-post {
    margin-bottom: 2rem !important;
  }
}

/* Page title */
#title-block-header .quarto-title h1 {
  color: #000000;
  font-weight: 500;
  font-size: 3.5rem;
  margin-bottom: 3.5rem;
  margin-right: 3.5rem;
  text-align: left;
  vertical-align: top;
  text-decoration-thickness: 5px;
}

/* Post title banner - remove teal background */
#title-block-header,
#title-block-header.quarto-title-block,
header#title-block-header {
  background-color: #ffffff !important;
  background-image: none !important;
  background: #ffffff !important;
}

/* Post subtitle */
#title-block-header .quarto-title .subtitle,
#title-block-header .subtitle {
  background-color: #ffffff !important;
  color: #000000 !important;
  margin-top: 0.5rem;
}

/* Post metadata and authors */
#title-block-header .quarto-title-meta,
#title-block-header .quarto-title-authors,
#title-block-header .author,
#title-block-header .date,
#title-block-header .quarto-title-meta-contents {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Post categories */
#title-block-header .quarto-categories,
#title-block-header .quarto-category {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Post abstract */
#title-block-header .abstract,
#title-block-header .abstract-title {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Table of Contents styling */
#TOC {
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #ffffff;
  border: none;
  border-right: 1px solid #e0e0e0;
  padding: 1.5rem;
}

#TOC .toc-title {
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #000000;
  margin-bottom: 1rem;
}

#TOC ul {
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  list-style: none;
  padding-left: 0;
}

#TOC ul ul {
  padding-left: 1rem;
  margin-top: 0.25rem;
}

#TOC li {
  margin-bottom: 0.5rem;
}

#TOC a {
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #000000 !important;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 400;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  line-height: 0.95;
}

#TOC a:hover {
  color: var(--hcc-blue) !important;
  text-decoration: none;
  border-left-color: var(--hcc-blue);
}

#TOC a.active,
#TOC .active a,
#TOC .nav-link.active {
  color: var(--hcc-blue) !important;
  font-weight: 400;
  font-size: 0.7rem;
  border-left-color: var(--hcc-blue) !important;
}

/* TOC nested levels */
#TOC ul ul a {
  font-size: 0.7rem;
}

#TOC ul ul ul a {
  font-size: 0.6rem;
}

/* Main content area - reduce right margin */
#quarto-content main {
  max-width: none !important;
}

#quarto-document-content {
  max-width: none !important;
  margin-right: -10%;
}

article.page-columns {
  max-width: none !important;
  margin-right: -10%;
}

/* For posts with TOC, adjust content width */
body.page-layout-article #quarto-content {
  max-width: none !important;
}

/* Add more space between sections in blog posts */
#quarto-document-content h2 {
  margin-top: 4rem;
  margin-bottom: 1.5rem;
}

#quarto-document-content h3 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

#quarto-document-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Make images wider than body text */
#quarto-document-content img,
#quarto-document-content figure,
#quarto-document-content .quarto-figure {
  width: 120%;
  max-width: 110%;
  margin-left: 0%;
  margin-right: -5%;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

#quarto-document-content figure img {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  
}

#quarto-document-content .quarto-figure-center {
  margin-left: 0%;
}

