.hero-headshot {
  display: block;
  width: 220px;       /* normal desktop size */
  height: auto;
  margin: 0 auto 20px auto;  /* center it and add spacing below */
  box-shadow: 0 0 8px rgba(0,0,0,.18);
  border: 3px solid #fff;
  border-radius: 0;        /* force rectangle */
  object-fit: cover;       /* keeps proper aspect if intrinsic ratio differs */
}

/* Neutralize any Bootstrap .img-circle still applied somewhere */
.hero-headshot.img-circle {
  border-radius: 0 !important;
}

/* remove left-floating constraints */
.media-left {
  display: block;
  width: 100%;
  text-align: center;   /* centers the image horizontally */
}

/* on small screens, shrink the image */
@media (max-width: 767px) {
  .hero-headshot {
    max-width: 120px;
    margin: 0 auto 15px auto;
  }
}

/* filepath: c:\code\fdennig\content\css\custom.css */
.about-layout img.hero-headshot { display:block; margin:0 0 15px 0; }
@media (max-width:767px){
  .about-layout img.hero-headshot { margin:0 auto 20px; }
}

/* About section layout */
.about-flex {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.about-flex .hero-headshot {
  flex: 0 0 180px;
  max-width: 180px;
  width: 180px;
  margin: 0;
  border-radius: 0; /* keep rectangle */
  box-shadow: 0 0 8px rgba(0,0,0,.18);
  border: 3px solid #fff;
  object-fit: cover;
}

.about-flex .about-body {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 640px) {
  .about-flex {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .about-flex .hero-headshot {
    width: 140px;
    max-width: 140px;
  }
  .about-flex .about-body {
    text-align: left;
  }
}

/* Add vertical space above home tagline */
.home-tagline {
  margin-top: 1.25rem; /* adjust as needed */
}

/* Stacked publication rows */
.pub-list { margin-top:25px; }
.pub-item {
  padding:14px 0;
  border-top:1px solid rgba(0,0,0,.12);
}
.pub-item:first-child { border-top:0; }
.pub-title { margin:0 0 4px; font-size:17px; line-height:1.25; }
.pub-meta { margin:0 0 4px; }
.pub-authors { margin:0 0 6px; }
.pub-summary { margin:0; }
.cite-badge {
  white-space: nowrap;
  text-decoration: none;
}
.cite-badge:hover {
  text-decoration: underline;
}

/* Abstract toggle */
.pub-abstract { margin-top:6px; }
.pub-abstract summary {
  cursor:pointer;
  font-size:0.85em;
  color:#337ab7;
  outline:none;
}
.pub-abstract[open] summary { font-weight:600; }
.abstract-text { margin-top:4px; }
/* Sort buttons */
.pub-sort-btn {
  background:#f5f5f5;
  border:1px solid #ccc;
  padding:3px 10px;
  margin-left:4px;
  border-radius:3px;
  cursor:pointer;
  font-size:12px;
  line-height:1.4;
}
.pub-sort-btn.active {
  background:#337ab7;
  border-color:#2e6da4;
  color:#fff;
}
.pub-sort-btn:focus { outline:2px solid #337ab7; outline-offset:1px; }
/* Alignment fixes for publications */
.pub-wrapper {
  /* match site main content width (bootstrap container already handles, so just reset) */
}

.pub-header {
  display:flex;
  align-items:flex-end;
  gap:18px;
  flex-wrap:wrap;
  margin:0 0 10px 0;
  padding:0;
}

.pub-header h1 {
  margin:0;
  font-size:28px;
  line-height:1.15;
}

.pub-sort {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:6px;
}

.pub-sort .label-text {
  color:#777;
  font-size:12px;
  text-transform:lowercase;
}

/* Ensure list lines up exactly under header */
.pub-list {
  margin-top:0; /* was 25px; header already provides spacing */
}

/* Small viewport tweak */
@media (max-width:600px){
  .pub-header {
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }
  .pub-sort {
    margin-left:0;
  }
}

/* ── Reports page ───────────────────────────────────────── */
.reports-intro {
  font-size: 0.95em;
  color: #555;
  margin: 0 0 16px;
  line-height: 1.6;
  border-left: 3px solid #337ab7;
  padding-left: 12px;
}

.report-list {
  margin-top: 0;
}

.report-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #e8e8e8;
  align-items: flex-start;
}

.report-thumb-link {
  flex: 0 0 72px;
}

.report-thumb {
  display: block;
  width: 72px;
  height: auto;
  border: 1px solid #ddd;
}

.report-body {
  flex: 1;
  min-width: 0;
}

.report-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.report-title a {
  color: #333;
  text-decoration: none;
}

.report-title a:hover {
  color: #337ab7;
}

.report-meta {
  margin: 2px 0 4px;
  font-size: 0.85em;
  color: #666;
}

/* Abstract truncation */
.report-abstract-text {
  font-size: 0.9em;
  color: #444;
  line-height: 1.5;
  /* clamp to 4 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-abstract-text.expanded {
  display: block;    /* removes line-clamp */
  overflow: visible;
}

/* remove <p> margins inside abstract to keep tight */
.report-abstract-text p {
  margin: 0;
}

.report-show-more {
  background: none;
  border: none;
  padding: 0;
  margin-top: 2px;
  font-size: 0.85em;
  color: #337ab7;
  cursor: pointer;
}

.report-show-more:hover {
  text-decoration: underline;
}

/* ── Contact page ───────────────────────────────────────── */
.vcf-banner {
  background: #f0f7ff;
  border-left: 4px solid #337ab7;
  border-radius: 3px;
  padding: 18px 20px 14px;
  margin-bottom: 28px;
  text-align: center;
}
.vcf-msg  { font-size: 1.05em; margin: 0 0 12px; }
.vcf-hint { font-size: 0.85em; color: #777; margin: 10px 0 0; }

.contact-card {
  border-top: 1px solid #e0e0e0;
  margin-top: 4px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid #e0e0e0;
  color: #333;
  text-decoration: none;
  transition: background 0.12s;
}

.contact-item:hover {
  background: #f7f7f7;
  color: #333;
  text-decoration: none;
}

.contact-icon {
  flex: 0 0 28px;
  text-align: center;
  font-size: 1.25em;
  color: #337ab7;
}

.contact-label {
  flex: 0 0 72px;
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}

.contact-value {
  font-size: 0.97em;
  color: #222;
}

@media (max-width: 480px) {
  .contact-label { flex: 0 0 58px; }
}

.qr-share-wrap {
  display: none; /* hidden on desktop */
  margin-top: 28px;
  text-align: center;
}

.qr-share-btn {
  font-size: 1em;
  padding: 10px 22px;
}

.qr-panel {
  margin-top: 18px;
}

.qr-panel-hint {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 12px;
}

.qr-panel canvas,
.qr-panel img {
  display: inline-block;
  border: 6px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

@media (max-width: 767px) {
  .qr-share-wrap { display: block; }
}
