/* 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;
  overflow-x: hidden;
}

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

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

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

.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"],
.email-subscribe .formkit-submit {
  background-color: transparent;
  color: var(--hcc-blue);
  border: none;
  border-radius: 0;
  padding: 0.5rem 0;
  font-size: 1.2rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
  margin: 0;
}

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

.email-subscribe .formkit-alert-error:empty {
  display: none;
}

/* 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.85rem;
  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.85rem;
  border-left-color: var(--hcc-blue) !important;
}

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

#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%;
}

/* ── Visual TOC (paper pages) ── */
.visual-toc {
  display: flex;
  gap: 1rem;
  margin: 0 0 3.5rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
}

.vtoc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  flex: 1;
  min-width: 80px;
  max-width: 140px;
}

.vtoc-item:hover .vtoc-label {
  color: var(--hcc-blue);
}

.vtoc-item:hover .vtoc-thumb img {
  opacity: 0.8;
}

.vtoc-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.vtoc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s ease;
  margin: 0 !important;
  max-width: none !important;
}

.vtoc-thumb-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #bbb;
  letter-spacing: 0.04em;
}

.vtoc-label {
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: #666;
  text-align: center;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

/* ── About page ── */
.about-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  margin: 2rem 0 4rem;
  align-items: start;
}

.about-photo-col p {
  margin: 0;
}

.about-photo-col {
  width: 220px;
}

.about-photo {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: block;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.about-bio-col {
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  line-height: 1.65;
  font-weight: 400;
  color: #000;
}

.about-bio-col p {
  margin-bottom: 1.25rem;
}

.about-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.about-links a {
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--hcc-blue) !important;
  text-decoration: none !important;
  border-bottom: 1.5px solid var(--hcc-blue);
  padding-bottom: 1px;
  transition: opacity 0.15s ease;
}

.about-links a:hover {
  opacity: 0.65;
  text-decoration: none !important;
}

.photo-strip-label {
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: #999;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
  text-align: center;
}

.photo-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
}

.photo-strip-item {
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-strip-item p {
  margin: 0;
}

.photo-strip-item img {
  display: block !important;
  width: 420px !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border: 1px solid #ccc;
  border-radius: 0;
}

.photo-strip-item code {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  color: #888;
  background: none;
  padding: 0 0 0.3rem 0;
  border: none;
  text-align: right;
}

@media (max-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: 240px !important;
  }
}

/* ── Callouts ── */
div.callout {
  border: none;
  border-left: 2px solid #000000;
  border-radius: 0;
  background: transparent;
  padding: 0.75rem 0 0.75rem 1.25rem;
  margin: 2rem 0;
}

div.callout-note { border-left-color: var(--hcc-blue); }
div.callout-tip { border-left-color: #000000; }
div.callout-warning { border-left-color: #000000; }
div.callout-important { border-left-color: var(--hcc-blue); }
div.callout-caution { border-left-color: #000000; }

div.callout .callout-header {
  background: transparent;
  padding: 0 0 0.25rem 0;
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000000;
  border: none;
}

div.callout-note .callout-header { color: var(--hcc-blue); }
div.callout-important .callout-header { color: var(--hcc-blue); }

div.callout .callout-icon::before {
  display: none;
}

div.callout .callout-body {
  font-family: 'futura-pt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  color: #000000;
  padding: 0;
}

div.callout .callout-body p {
  margin: 0;
}

/* ── Mobile overflow fixes ── */
@media (max-width: 768px) {
  /* Remove negative right margins that push content off-screen */
  #quarto-document-content,
  article.page-columns {
    margin-right: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  /* Contain images within viewport */
  #quarto-document-content img,
  #quarto-document-content figure,
  #quarto-document-content .quarto-figure {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Reduce listing title left margin */
  .quarto-listing-default .listing-title,
  .quarto-grid-item .listing-title,
  .quarto-grid-item .card-title {
    margin-left: 0 !important;
    font-size: 1.8rem !important;
  }

  /* Shrink email input so it doesn't overflow */
  .email-subscribe input[type="email"] {
    min-width: 0;
    width: 100%;
  }

  /* Prevent body-level horizontal scroll */
  body {
    overflow-x: hidden;
  }
}

