/* ==========================================================================
   FINDABILITY — The Signal (Blog)
   Hero, post grid, cards, sidebar, single post
   ========================================================================== */

/* ---- Hero ---- */
.fb-cat-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--neutral-900);
}
.fb-cat-hero--archive {
  min-height: 50vh;
  align-items: flex-end;
}
.fb-cat-hero-photo {
  position: absolute;
  inset: 0;
  background: url('/img/the-signal-at-findability.jpg') center/cover no-repeat;
  opacity: 0.55;
}
.fb-cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}
.fb-cat-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 64px;
}
.fb-cat-hero-inner { max-width: 700px; }

.fb-cat-hero-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}
.fb-cat-hero-headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
}
.fb-cat-hero-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

/* Animations */
@keyframes cat-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fb-cat-animate {
  opacity: 0;
  animation: cat-fade-up 0.6s var(--ease) forwards;
}
.fb-cat-delay-1 { animation-delay: 0.1s; }
.fb-cat-delay-2 { animation-delay: 0.25s; }
.fb-cat-delay-3 { animation-delay: 0.4s; }

/* ---- Layout: Main + Sidebar ---- */
.fb-signal-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
  align-items: start;
}
.fb-signal-main { min-width: 0; }

/* ---- Featured Post Card ---- */
.fb-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
  margin-bottom: var(--space-lg);
}
.fb-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.fb-featured-card__image {
  overflow: hidden;
}
.fb-featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}
.fb-featured-card__body {
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fb-featured-card__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--neutral-900);
  line-height: 1.25;
  margin-bottom: 12px;
}
.fb-featured-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--neutral-600);
  margin-bottom: 16px;
}

/* ---- Post Grid ---- */
.fb-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.fb-cat-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
}
.fb-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.fb-cat-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.fb-cat-card__body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
}
.fb-cat-card__category {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 4px;
}
.fb-cat-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--neutral-900);
  margin-bottom: 8px;
  line-height: 1.3;
}
.fb-cat-card__excerpt {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--neutral-600);
}

/* Card meta line (author, date, reading time) */
.fb-cat-card__meta {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--neutral-400);
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.fb-cat-card__author {
  font-weight: 700;
  color: var(--neutral-500);
}
.fb-cat-card__sep {
  margin: 0 6px;
}
.fb-cat-card__date,
.fb-cat-card__reading {
  color: var(--neutral-400);
}

/* Empty state */
.fb-cat-empty {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--neutral-400);
  font-family: var(--font-heading);
  font-size: 1rem;
}

/* ---- Sidebar ---- */
.fb-signal-sidebar {
  position: sticky;
  top: 100px;
}
.fb-sidebar-block {
  margin-bottom: var(--space-lg);
}
.fb-sidebar-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neutral-500);
  margin-bottom: var(--space-sm);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--neutral-200);
}

/* Sidebar Subscribe */
.fb-sidebar-subscribe {
  background: var(--neutral-50, #faf9f7);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
}
.fb-sidebar-subscribe .fb-sidebar-heading {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 8px;
  color: var(--neutral-900);
  font-size: 0.88rem;
}
.fb-sidebar-subscribe__text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--neutral-500);
  margin-bottom: 12px;
}
.fb-sidebar-subscribe__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fb-sidebar-subscribe__input {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--neutral-900);
  outline: none;
  transition: border-color 0.2s var(--ease);
  box-sizing: border-box;
}
.fb-sidebar-subscribe__input:focus {
  border-color: var(--blue);
}
.fb-sidebar-subscribe__input::placeholder {
  color: var(--neutral-400);
}
.fb-sidebar-subscribe__btn {
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.fb-sidebar-subscribe__btn:hover {
  background: #d67a1f;
}

/* Sidebar Categories */
.fb-sidebar-cats {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fb-sidebar-cats__item {
  border-bottom: 1px solid var(--neutral-100);
}
.fb-sidebar-cats__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.fb-sidebar-cats__name {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--neutral-500);
}
.fb-sidebar-cats__count {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--neutral-400);
  min-width: 20px;
  text-align: right;
}
.fb-sidebar-cats__item--active .fb-sidebar-cats__name {
  color: var(--blue);
  font-weight: 700;
}
.fb-sidebar-cats__item--active .fb-sidebar-cats__count {
  color: var(--blue);
  font-weight: 700;
}
.fb-sidebar-cats__item--current .fb-sidebar-cats__name {
  color: var(--gold);
}
.fb-sidebar-cats__item--current .fb-sidebar-cats__count {
  color: var(--gold);
}
.fb-sidebar-cats__link:hover .fb-sidebar-cats__name {
  color: var(--blue);
}

/* Sidebar Recent */
.fb-sidebar-recent {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fb-sidebar-recent__item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--neutral-100);
}
.fb-sidebar-recent__item:last-child {
  border-bottom: none;
}
.fb-sidebar-recent__thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.fb-sidebar-recent__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fb-sidebar-recent__text {
  min-width: 0;
}
.fb-sidebar-recent__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--neutral-900);
  line-height: 1.3;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
.fb-sidebar-recent__title:hover {
  color: var(--blue);
}
.fb-sidebar-recent__date {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--neutral-400);
}

/* ---- Bottom CTA ---- */
.fb-signal-cta {
  background: var(--blue-dark);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}
.fb-signal-cta__headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 12px;
}
.fb-signal-cta__sub {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--neutral-300);
  max-width: 520px;
  margin: 0 auto var(--space-md);
}

/* ==========================================================================
   SINGLE POST STYLES
   ========================================================================== */

/* ---- Reading Progress Bar ---- */
.fb-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--gold);
  z-index: 9999;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ---- Post Hero ---- */
.fb-post-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  background: var(--neutral-900);
  overflow: hidden;
}
.fb-post-hero--has-image {
  min-height: 60vh;
}
.fb-post-hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}
.fb-post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
}
.fb-post-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 120px var(--space-md) var(--space-xl);
}
.fb-post-hero__inner { max-width: 700px; }
.fb-post-hero__category {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s var(--ease);
}
.fb-post-hero__category:hover {
  color: var(--white);
}
.fb-post-hero__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.fb-post-hero__meta {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}
.fb-post-hero__author-name {
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.fb-post-hero__sep {
  margin: 0 8px;
}

/* ---- Post Layout (TOC + Content) ---- */
.fb-post {
  padding: var(--space-xl) 0;
  background: var(--white);
}
.fb-post-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.fb-post-content {
  min-width: 0;
}

/* ---- Table of Contents ---- */
.fb-post-toc {
  position: sticky;
  top: 100px;
}
.fb-post-toc__inner {
  padding-right: var(--space-md);
}
.fb-post-toc__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neutral-400);
  margin-bottom: 12px;
}
.fb-post-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fb-post-toc__list li {
  margin-bottom: 8px;
}
.fb-post-toc__link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--neutral-500);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding-left: 12px;
  border-left: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.fb-post-toc__link:hover {
  color: var(--blue);
  border-left-color: var(--blue);
}

/* ---- Post Body ---- */
.fb-post__body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--neutral-700);
}
.fb-post__body p {
  margin-bottom: 1.5em;
}
.fb-post__body h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--neutral-900);
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.25;
  scroll-margin-top: 100px;
}
.fb-post__body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--neutral-900);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}
.fb-post__body ul,
.fb-post__body ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}
.fb-post__body li {
  margin-bottom: 0.5em;
}
.fb-post__body blockquote {
  border-left: 4px solid var(--gold);
  padding-left: var(--space-md);
  margin: 2em 0;
  font-style: italic;
  color: var(--neutral-600);
}
.fb-post__body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(0, 105, 177, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}
.fb-post__body a:hover {
  text-decoration-color: var(--blue);
}
.fb-post__body img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2.5em 0;
  aspect-ratio: 21/9;
  object-fit: cover;
  display: block;
}
.fb-post__body hr {
  border: none;
  border-top: 1px solid var(--neutral-200);
  margin: 2.5em 0;
}

/* ---- Newspaper Float (inline image with text wrap) ---- */
.fb-post__body img.fb-float-left {
  width: 200px !important;
  max-width: 200px !important;
  height: 200px !important;
  aspect-ratio: 1/1 !important;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1em;
  margin-top: 0.25em;
  float: left;
  margin-right: 1.5em;
  margin-left: 0;
}
/* Clear float before each new tenet heading */
.fb-post__body h2 {
  clear: both;
}
@media (max-width: 600px) {
  .fb-post__body img.fb-float-left {
    float: left;
    width: 120px !important;
    max-width: 120px !important;
    height: 120px !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover;
    margin: 0 1em 0.5em 0;
  }
}

/* ---- Share Links ---- */
.fb-post__share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
}
.fb-post__share-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral-400);
}
.fb-post__share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--neutral-500);
  background: var(--neutral-100);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  text-decoration: none;
}
.fb-post__share-link--linkedin:hover {
  color: var(--white);
  background: #0077B5;
}

/* ---- Author Byline ---- */
.fb-post__author {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: var(--space-lg);
  margin-top: var(--space-md);
  border-top: 1px solid var(--neutral-200);
}
.fb-post__author-photo {
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  overflow: hidden;
}
.fb-post__author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--neutral-900);
}
.fb-post__author-role {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--neutral-500);
}
.fb-post__author-bio {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--neutral-500);
  margin-top: 4px;
}

/* ---- In-Article Subscribe ---- */
.fb-post__subscribe {
  background: var(--neutral-50, #faf9f7);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  text-align: center;
}
.fb-post__subscribe-heading {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--neutral-900);
  margin-bottom: 6px;
}
.fb-post__subscribe-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--neutral-500);
  line-height: 1.5;
  margin-bottom: 16px;
}
.fb-post__subscribe-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}
.fb-post__subscribe-input {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--neutral-900);
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.fb-post__subscribe-input:focus {
  border-color: var(--blue);
}
.fb-post__subscribe-input::placeholder {
  color: var(--neutral-400);
}
.fb-post__subscribe-btn {
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s var(--ease);
  white-space: nowrap;
}
.fb-post__subscribe-btn:hover {
  background: #d67a1f;
}

/* ---- Post Footer ---- */
.fb-post__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
}

/* ---- Related Posts ---- */
.fb-post__related {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--neutral-200);
}
.fb-post__related-heading {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--neutral-900);
  margin-bottom: var(--space-md);
}
.fb-post__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.fb-post__related-grid--1 {
  grid-template-columns: 1fr;
  max-width: 400px;
}
.fb-post__related-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .fb-signal-layout {
    grid-template-columns: 1fr 260px;
    gap: var(--space-lg);
  }
  .fb-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .fb-featured-card { grid-template-columns: 1fr; }
  .fb-featured-card__image img { min-height: 200px; max-height: 280px; }

  /* Post TOC collapses */
  .fb-post-layout { grid-template-columns: 1fr; }
  .fb-post-toc {
    position: static;
    border-bottom: 1px solid var(--neutral-200);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
  }
  .fb-post-toc__inner { padding-right: 0; }
  .fb-post__related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  /* Archive hero: stack image on top, copy below */
  .fb-cat-hero--archive {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .fb-cat-hero--archive .fb-cat-hero-photo {
    position: relative;
    height: 50vh;
    width: 100%;
    opacity: 1;
    background-position: center center;
  }
  .fb-cat-hero--archive .fb-cat-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 40%, transparent 100%);
  }
  .fb-cat-hero-content {
    position: relative;
    padding: 32px 20px 40px;
    background: var(--neutral-800);
  }

  .fb-signal-layout {
    grid-template-columns: 1fr;
    padding: var(--space-lg) var(--space-sm);
  }
  .fb-signal-sidebar {
    position: static;
  }
  .fb-cat-grid { grid-template-columns: 1fr; }
  .fb-featured-card { grid-template-columns: 1fr; }

  /* Post hero: stack image on top, copy below */
  .fb-post-hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .fb-post-hero--has-image {
    min-height: auto;
  }
  .fb-post-hero__photo {
    position: relative;
    height: 50vh;
    width: 100%;
    opacity: 1;
    background-position: top center;
  }
  .fb-post-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 40%, transparent 100%);
  }
  .fb-post-hero__content {
    position: relative;
    padding: 32px 20px 40px;
    background: var(--neutral-800);
  }

  .fb-post__body { font-size: 1rem; }
  .fb-post__footer { flex-direction: column; gap: 12px; align-items: flex-start; }
  .fb-post__related-grid { grid-template-columns: 1fr; }
  .fb-post__subscribe-form { flex-direction: column; }
}
