/**
 * Highlights Section — "Snapshot" cards for portfolio.html
 * Distinct from Recommendations (social proof) and CV (full detail):
 * this is a fast, visual overview of the different hats worn.
 */

/* Match the Bio card's font-family so Highlights, Contact, and Interests
   feel like one continuous page rather than mismatched blocks. */
.highlights-section,
.contact-block,
.interests-strip {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.highlights-section {
  margin: 40px 0 48px 0;
}

.highlights-section-title,
.recommendations-section-title {
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--global-text-color-light);
  margin: 0 0 22px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.highlights-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--global-divider-color);
}

.recommendations-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--global-divider-color);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

.highlight-card {
  position: relative;
  background: var(--global-card-bg-color);
  border: 1px solid var(--global-divider-color);
  border-radius: 14px;
  padding: 26px 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}

.highlight-card:hover {
  box-shadow: 0 10px 26px rgba(22, 24, 29, 0.07);
  border-color: rgba(0, 118, 223, 0.3);
}

.highlight-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.highlight-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--global-theme-color);
  background: rgba(0, 118, 223, 0.08);
}

.highlight-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--global-text-color);
  margin: 0;
  line-height: 1.3;
}

.highlight-subtitle {
  font-size: 13.5px;
  color: var(--global-text-color-light);
  margin: 0;
  font-weight: 500;
}

.highlight-points {
  margin: 12px 0 14px 0;
  padding: 0;
  list-style: none;
}

.highlight-points li {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--global-text-color);
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}

.highlight-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--global-text-color-light, #828282);
  opacity: 0.55;
}

.highlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.highlight-org {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(22, 24, 29, 0.14);
  color: var(--global-text-color-light, #828282);
  text-decoration: none !important;
  transition: color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.highlight-org:hover {
  color: var(--global-theme-color);
  border-color: var(--global-theme-color);
}

.highlight-org img {
  width: 13px;
  height: 13px;
  object-fit: contain;
  border-radius: 2px;
}

.highlight-org i {
  font-size: 12px;
}

/* Plain-text highlight links — the site's standard blog-link highlight
   (the post-hl pill used for end-of-paragraph CTAs in posts: accent text
   on a light accent tint, 2px solid underline, trailing &rarr;), stacked
   one per line. Inherits the card's accent color. */
.highlight-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
}

.highlight-link {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--global-theme-color);
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.highlight-link:hover {
  color: var(--global-hover-color, #00369f);
}

/* Per-card accent colors removed (2026-07-24): one voice, theme blue.
   --highlight-accent falls back to var(--global-theme-color) everywhere. */
.highlight-card.hl-advisor     { --highlight-accent: #e67700; }

/* ==========================================================================
   Contact + Interests block (below Bio Card)
   Given the same visual weight as the Highlights cards below it: bold
   circular icon buttons, clear section label, generous spacing — not a
   thin utilitarian strip.
   ========================================================================== */
.bio-interests {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px !important;
  margin-bottom: 20px !important;
}

.interests-strip-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--global-text-color-light);
  margin-right: 2px;
  white-space: nowrap;
}

.interest-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(22, 24, 29, 0.14);
  color: var(--global-text-color-light, #828282);
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.interest-pill:hover {
  color: var(--global-theme-color);
  border-color: var(--global-theme-color);
}

.interest-pill i {
  font-size: 11px;
  color: var(--global-theme-color);
  opacity: 0.8;
}

/* ==========================================================================
   Contact block — bold, generous, same text scale as the bio paragraphs
   so it reads as a confident continuation of the bio, not fine print.
   ========================================================================== */
.contact-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--global-divider-color);
}

.contact-block-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-block-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--global-bg-color);
  border: 1px solid var(--global-divider-color);
  color: var(--global-text-color);
  font-size: 18px;
  transition: all 0.2s;
}

.contact-block-icons a:hover {
  background: var(--global-theme-color);
  color: #fff;
  border-color: var(--global-theme-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.contact-block-icons img {
  width: 20px;
  height: 20px;
}

.contact-block-email {
  font-size: 18px;
  font-weight: 400;
  color: var(--global-text-color);
}

.contact-block-office {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--global-theme-color);
  color: #fff !important;
  border-radius: 10px;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.2s;
}

.contact-block-office:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Bento hero (added 2026-07-24) — bio tile + borderless headshot.
   Replaces the old float-right .profile layout.
   ========================================================================== */
.bento-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.bento-tile {
  background: var(--global-card-bg-color);
  border: 1px solid var(--global-divider-color);
  border-radius: 14px;
  padding: 26px 28px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  transition: box-shadow 0.2s, border-color 0.2s;
}

/* Same hover treatment as .highlight-card so the bio tile and the
   Say hi band feel like part of the same card family. */
.bento-tile:hover {
  box-shadow: 0 10px 26px rgba(22, 24, 29, 0.07);
  border-color: rgba(0, 118, 223, 0.3);
}

/* The Say hi band keeps its 3px theme-color left accent on hover
   (the generic hover border-color would otherwise wash it out). */
.bento-contact:hover {
  border-left-color: var(--global-theme-color);
}

/* Compact type scale inside the bio tile (per 2026-07-24 bento redesign). */
.bento-bio .bio-text { font-size: 17px !important; line-height: 1.75; }
.bento-bio .bio-motto { font-size: 17px !important; }
.bento-bio .bio-interests { margin-top: 18px !important; margin-bottom: 0 !important; }
.bento-bio .interests-strip-label { font-size: 14px; }
.bento-bio .interest-pill { font-size: 12.5px; padding: 5px 12px; }

/* Photo cell: no card boundary — the full headshot floats on the page
   background, vertically centered against the bio tile. */
.bento-photo {
  display: flex;
  align-items: flex-start; /* sit toward the top of the row, not dead center */
  justify-content: center;
  padding-top: 10px;
}

.bento-photo img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .bento-hero {
    grid-template-columns: 1fr;
  }
  .bento-photo {
    order: -1; /* headshot first on mobile, like the old layout */
  }
  .bento-photo img {
    max-width: 220px;
  }
}

/* ==========================================================================
   Say hi — full-width closing band (contact block moved here from mid-bio)
   ========================================================================== */
.bento-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  border-left: 3px solid var(--global-theme-color);
  margin: 28px 0 48px 0;
}

.bento-contact .contact-lede {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bento-contact .contact-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--global-text-color);
  margin: 0;
}

.bento-contact .contact-sub {
  font-size: 14px;
  color: var(--global-text-color-light);
  margin: 0;
}

.bento-contact .contact-block {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  gap: 14px;
  flex-wrap: wrap;
}

.bento-contact .contact-block-icons { gap: 12px; }
.bento-contact .contact-block-icons a { width: 38px; height: 38px; font-size: 16px; }
.bento-contact .contact-block-email { font-size: 14.5px; }
