/* ============================================================================
   Homeboss Theme — LONG-FORM CONTENT (blog index / article / city / podcast)
   ----------------------------------------------------------------------------
   Consumes tokens.css and reuses the .hb-btn family from front-page.css (loaded
   before this sheet). Gives the reading pages a shared shape:
     - a DARK TITLE BAND (--footer-bg navy) with light ink at the top of the page,
     - a two-column BODY: the article at a proper reading MEASURE (--measure) with a
       right SIDEBAR rail (the shared "Get in touch" card), collapsing to one column
       on narrow screens,
     - the PODCAST channel as a three-column grid — artwork + title LEFT (no
       show-description), the episode list CENTRE, the follow rail RIGHT.

   Agent brand COLORS never enter here; only the token palette + the gold accent are
   used. The dark band pairs --footer-text over --footer-bg (the same AA-cleared pair
   the footer uses), never --action over --footer-bg (tests/themeFooter.test.ts).
   ============================================================================ */

/* --- Dark title band ------------------------------------------------------- */
.hb-titleband {
  background-color: var(--footer-bg);
  padding: 3rem 1.25rem;
}

.hb-titleband__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.hb-titleband__eyebrow {
  font-family: var(--font-heading);
  font-weight: var(--fw-eyebrow);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0 0 0.5rem;
}

.hb-titleband__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  color: var(--footer-text);
  margin: 0;
}

.hb-titleband__meta {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--footer-text);
  opacity: 0.85;
  margin: 0.75rem 0 0;
}

/* --- Two-column content layout: article measure + right sidebar rail ------- */
.hb-content {
  background-color: var(--surface-base);
  padding: 3rem 1.25rem;
}

.hb-content__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 3rem;
  align-items: start;
}

/* The About page rail is wider (it carries the agent photo + an embedded booking widget). */
.hb-content__inner--about {
  grid-template-columns: minmax(0, 1fr) 24rem;
}

@media (max-width: 900px) {
  .hb-content__inner--about {
    grid-template-columns: 1fr;
  }
}

/* The reading column: capped at the body measure so lines never sprawl. */
.hb-content__main {
  max-width: var(--measure);
}

/* A full-width single column (no sidebar rail) — used for the podcast intro prose. */
.hb-content__inner--full {
  display: block;
  max-width: var(--measure);
}

@media (max-width: 900px) {
  .hb-content__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hb-content__main {
    max-width: var(--measure);
  }
}

/* --- Long-form prose ------------------------------------------------------- */
.hb-longform {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
}

.hb-longform h2,
.hb-longform h3 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: var(--lh-heading);
  margin: 2rem 0 0.75rem;
}

.hb-longform h2 { font-size: var(--fs-h2); font-weight: var(--fw-heading); }
.hb-longform h3 { font-size: var(--fs-h3); font-weight: var(--fw-h3); }

.hb-longform p { margin: 0 0 1.25rem; }

.hb-longform a {
  color: var(--action);
  text-decoration: underline;
}

.hb-longform a:hover {
  color: var(--action-hover);
}

.hb-longform img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Article featured image, above the body (only rendered when the post has one). */
.hb-article__featured {
  margin: 0 0 1.75rem;
}

.hb-article__featured img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Blog index / archive list -------------------------------------------- */
.hb-postlist {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hb-postlist__item {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--surface-alt);
}

.hb-postlist__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hb-postlist__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-h3);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  margin: 0 0 0.35rem;
}

.hb-postlist__title a {
  color: var(--text-heading);
  text-decoration: none;
}

.hb-postlist__title a:hover {
  color: var(--action);
}

.hb-postlist__meta {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-body);
  margin: 0 0 0.5rem;
}

.hb-postlist__excerpt {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  margin: 0 0 0.5rem;
}

.hb-postlist__more {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--action);
  text-decoration: none;
}

.hb-postlist__more:hover {
  color: var(--action-hover);
  text-decoration: underline;
}

.hb-postlist__empty {
  font-family: var(--font-body);
  color: var(--text-body);
}

/* --- Sidebar contact card -------------------------------------------------- */
.hb-sidebar {
  position: sticky;
  top: 1.5rem;
}

@media (max-width: 900px) {
  .hb-sidebar {
    position: static;
  }
}

.hb-sidebar__card {
  padding: 1.5rem;
  border: 1px solid var(--surface-alt);
  border-radius: 12px;
  background-color: var(--surface-alt);
}

/* Optional agent photo at the top of the card (About page rail). */
.hb-sidebar__photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin: 0 0 1.1rem;
}

/* Optional embedded booking widget below the links (About page rail). */
.hb-sidebar__calendar {
  margin: 1.25rem 0 0;
  border-radius: 10px;
  overflow: hidden;
}

.hb-sidebar__eyebrow {
  font-family: var(--font-heading);
  font-weight: var(--fw-eyebrow);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--action);
  margin: 0 0 0.5rem;
}

.hb-sidebar__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-h3);
  font-size: var(--fs-h3);
  color: var(--text-heading);
  margin: 0;
}

.hb-sidebar__brokerage {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-body);
  margin: 0.25rem 0 0;
}

.hb-sidebar__cta {
  display: block;
  text-align: center;
  margin: 1.25rem 0 0;
}

.hb-sidebar__links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hb-sidebar__link {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--action);
  text-decoration: none;
}

.hb-sidebar__link:hover {
  color: var(--action-hover);
  text-decoration: underline;
}

/* --- Podcast page: three-column Buzzsprout-style layout (show left, episodes centre,
   follow right), capped to the shared container. --- */
.homeboss-podcast {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

/* All THREE columns carry a REAL minimum width, so the wide centre can never collapse to a
   couple of words per line when the row is squeezed: show rail min 220px, episode column min
   340px (the widest, takes the slack), follow rail min 200px. The old `minmax(0, 1fr)` centre had
   a ZERO minimum, so between two fixed side columns it was the part that got crushed. */
.homeboss-podcast--columns {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(340px, 1fr) minmax(200px, 220px);
  gap: 2.5rem;
  align-items: start;
}

/* Tablet: fold the follow rail beneath the two lead columns (both keep a real minimum). */
@media (max-width: 1024px) {
  .homeboss-podcast--columns {
    grid-template-columns: minmax(200px, 240px) minmax(320px, 1fr);
  }
  .homeboss-podcast-follow {
    grid-column: 1 / -1;
  }
}

/* Phone: single stacked column (show, episodes, follow). */
@media (max-width: 680px) {
  .homeboss-podcast--columns {
    grid-template-columns: 1fr;
  }
}

.homeboss-podcast-show {
  position: sticky;
  top: 1.5rem;
}

.homeboss-podcast-artwork {
  display: block;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 1.25rem;
}

.homeboss-podcast-title {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  color: var(--text-heading);
  margin: 0 0 0.75rem;
}

.homeboss-podcast-empty {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  margin: 0;
}

/* Right rail: follow links (RSS always; directories only when the feed advertises them). */
.homeboss-podcast-follow {
  position: sticky;
  top: 1.5rem;
}

.homeboss-podcast-follow__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-eyebrow);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-heading);
  margin: 0 0 0.75rem;
}

.homeboss-podcast-follow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.homeboss-podcast-follow__link {
  display: block;
  padding: 0.6rem 1rem;
  border: 1px solid var(--surface-alt);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  text-decoration: none;
  color: var(--text-heading);
}

.homeboss-podcast-follow__link:hover {
  border-color: var(--action);
  color: var(--action);
}

.homeboss-podcast-episodes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Each episode is a compact ROW (play control, then a body block: title, a clamped excerpt, the
   meta line), not a wall of running show notes. */
.homeboss-podcast-episode {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--surface-alt);
}

.homeboss-podcast-episode:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.homeboss-episode-body {
  min-width: 0;
}

.homeboss-episode-title {
  font-family: var(--font-heading);
  font-weight: var(--fw-h3);
  font-size: var(--fs-h3);
  color: var(--text-heading);
  margin: 0.75rem 0 0.35rem;
}

/* The play control sits at the top of the row. */
.homeboss-episode-audio {
  width: 100%;
  margin: 0;
}

/* A 2-3 line excerpt only — the full notes live on the episode's own page. */
.homeboss-episode-description {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

/* One meta line: date • Season N • Episode N • duration (each part omitted when absent). */
.homeboss-episode-meta {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-body);
  margin: 0.5rem 0 0;
}

.homeboss-episode-transcript {
  margin: 0.75rem 0 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-body);
}

.homeboss-episode-transcript summary {
  color: var(--action);
  cursor: pointer;
}
