/* Easeworks / HALO blog layout pattern — Handbook IQ brand tokens (marketing-home.css). */

/* easeworks.com/blog tokens, body type, and .shell — copied verbatim. */
.handbook-blog-page {
  min-height: 100vh;
  --paper: #e8ddcc;
  --paper-deep: #ddd0ba;
  --ink: #141210;
  --ink-muted: #5a5248;
  --muted: var(--ink-muted);
  --rule: #c4b59f;
  --brand-dark: var(--teal, #087f8c);
  --display: 'Newsreader', 'Times New Roman', Georgia, serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --site-header-height: 72px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.handbook-blog-page .shell {
  width: min(1200px, calc(100% - 4rem));
  margin-inline: auto;
}

.handbook-blog-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Band color matches the hero image's own background so its edges disappear. */
.handbook-blog-page .blog-hero-banner {
  background: #f1e5d7;
}

.handbook-blog-page .blog-hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Easeworks.com blog index layout (Handbook IQ brand tokens) */
.handbook-blog-page .blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--ink);
}

.handbook-blog-page .blog-hero-kicker {
  margin: 0 0 1rem;
  color: var(--brand-dark);
  font: 600 0.72rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.handbook-blog-page .blog-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.handbook-blog-page .blog-hero-lead {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.handbook-blog-page .blog-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.handbook-blog-page .blog-hero-stats div {
  padding-top: 1rem;
  border-top: 4px solid var(--ink);
}

.handbook-blog-page .blog-hero-stats span {
  display: block;
  color: var(--brand-dark);
  font: 600 0.68rem/1.4 var(--mono);
  text-transform: uppercase;
}

.handbook-blog-page .blog-hero-stats strong {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
}

.handbook-blog-page .blog-featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.handbook-blog-page .blog-featured-lead {
  display: grid;
  gap: 1.5rem;
}

.handbook-blog-page .blog-featured-lead a {
  display: grid;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.handbook-blog-page .blog-featured-lead img {
  width: 100%;
  max-height: 26rem;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--paper-deep);
  filter: saturate(0.78) contrast(1.04);
}

.handbook-blog-page .blog-featured-lead h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.handbook-blog-page .blog-featured-lead p {
  max-width: 40rem;
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.handbook-blog-page .blog-featured-side {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.handbook-blog-page .blog-featured-side a {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  color: inherit;
}

.handbook-blog-page .blog-featured-side a > div {
  display: grid;
  gap: 0.4rem;
}

.handbook-blog-page .blog-featured-side img {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) contrast(1.04);
}

.handbook-blog-page .blog-featured-side h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  font-weight: 500;
  line-height: 1.05;
}

.handbook-blog-page .blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--ink-muted);
  font: 500 0.72rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.handbook-blog-page .blog-meta .blog-category {
  color: var(--brand-dark);
}

.handbook-blog-page .blog-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
  padding: 1.5rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  position: sticky;
  top: var(--site-header-height);
  z-index: 20;
  background: #e8ddccf5;
  backdrop-filter: blur(8px);
}

.handbook-blog-page .blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.handbook-blog-page .blog-categories button,
.handbook-blog-page .blog-search {
  appearance: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 500 0.74rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.handbook-blog-page .blog-categories button {
  padding: 0.7rem 0.9rem;
  cursor: pointer;
}

.handbook-blog-page .blog-categories button[aria-pressed='true'],
.handbook-blog-page .blog-categories button:hover {
  background: var(--ink);
  color: var(--paper);
}

.handbook-blog-page .blog-search {
  min-width: 16rem;
  padding: 0.8rem 1rem;
}

.handbook-blog-page .blog-archive {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.handbook-blog-page .blog-archive-header {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.handbook-blog-page .blog-archive-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 0.96;
}

.handbook-blog-page .blog-archive-header p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 36rem;
  line-height: 1.7;
}

.handbook-blog-page .blog-archive-list {
  border-top: 1px solid var(--ink);
}

.handbook-blog-page .blog-archive-list a {
  display: grid;
  grid-template-columns: 6rem 6.5rem minmax(12rem, 0.9fr) 1fr 5rem;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  color: inherit;
}

.handbook-blog-page .blog-archive-list img {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) contrast(1.04);
}

.handbook-blog-page .blog-archive-list time,
.handbook-blog-page .blog-archive-list em {
  color: var(--ink-muted);
  font: 500 0.72rem/1.4 var(--mono);
  font-style: normal;
  text-transform: uppercase;
}

.handbook-blog-page .blog-archive-list h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.05;
}

.handbook-blog-page .blog-archive-list p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.handbook-blog-page .blog-featured-side a:hover h3,
.handbook-blog-page .blog-archive-list a:hover h3 {
  color: var(--brand-dark);
}

.handbook-blog-page .blog-empty {
  padding: 3rem 0;
  color: var(--ink-muted);
  font-family: var(--display);
  font-size: 1.8rem;
}

.handbook-blog-page .blog-newsletter {
  background: var(--navy, #102b43);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.handbook-blog-page .blog-newsletter .shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.handbook-blog-page .blog-action-label {
  margin: 0 0 0.75rem;
  font: 600 0.72rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8eee5;
}

.handbook-blog-page .blog-newsletter h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.05;
}

.handbook-blog-page .blog-newsletter p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.handbook-blog-page .blog-newsletter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .handbook-blog-page .blog-hero,
  .handbook-blog-page .blog-featured,
  .handbook-blog-page .blog-archive-header,
  .handbook-blog-page .blog-newsletter .shell {
    grid-template-columns: 1fr;
  }

  .handbook-blog-page .blog-toolbar {
    grid-template-columns: 1fr;
  }

  /* Easeworks.com/blog archive collapse */
  .handbook-blog-page .blog-archive-list a {
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 0.85rem 1rem;
  }

  .handbook-blog-page .blog-archive-list img {
    grid-row: 1 / span 3;
  }

  .handbook-blog-page .blog-archive-list time {
    grid-column: 2;
  }

  .handbook-blog-page .blog-archive-list h3 {
    grid-column: 2;
  }

  .handbook-blog-page .blog-archive-list p,
  .handbook-blog-page .blog-archive-list em {
    grid-column: 1 / -1;
  }
}

.handbook-blog-page .site-header {
  position: relative;
  z-index: 2;
}

/* —— Page hero (matches easeworks.com blog PageHero structure) —— */
.hiq-blog-hero {
  position: relative;
  min-height: min(58svh, 460px);
  padding: 56px 5% 48px;
  overflow: hidden;
  display: grid;
  align-items: center;
  color: #fff;
  background: var(--navy, #102b43);
}

.hiq-blog-hero--teal::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 32%;
  height: 100%;
  background: var(--teal, #087f8c);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
}

.hiq-blog-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hiq-blog-hero__content {
  position: relative;
  z-index: 2;
  max-width: 52rem;
}

.hiq-blog-hero__eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy, #102b43);
  background: #b8eee5;
}

.hiq-blog-hero h1 {
  max-width: 18ch;
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hiq-blog-hero__summary {
  max-width: 36rem;
  margin: 18px 0 22px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.hiq-blog-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hiq-blog-hero__stamp {
  position: absolute;
  z-index: 3;
  right: 5%;
  bottom: 40px;
  padding: 10px 13px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transform: rotate(-3deg);
}

/* —— Paper content band (matches content-section--paper) —— */
.hiq-blog-section {
  padding: 64px 5%;
}

.hiq-blog-section--paper {
  background: var(--paper, #fff);
}

.hiq-blog-section__inner,
.hiq-blog-section__inner--wide {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* —— Index list (matches marketing blog-list) —— */
.hiq-blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hiq-blog-list a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hiq-blog-list__title {
  display: block;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.hiq-blog-list__title:hover {
  color: var(--teal, #087f8c);
}

.hiq-blog-list__meta {
  display: block;
  font-size: 0.8rem;
  color: var(--muted, #62788a);
  margin: 0.25rem 0;
}

.hiq-blog-list__desc {
  display: block;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted, #62788a);
}

.hiq-blog-empty {
  padding: 1.5rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--line, #dce5ec);
  background: var(--pale, #eaf3f7);
  line-height: 1.6;
  color: var(--muted, #62788a);
}

/* —— Article body —— */
.hiq-blog-article-meta {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #62788a);
}

.hiq-blog-body {
  line-height: 1.7;
  font-size: 1rem;
  color: var(--ink, #132d45);
}

.hiq-blog-body :is(p, ul, ol) {
  margin: 0 0 1.25rem;
}

.hiq-blog-body h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

.hiq-blog-body a {
  color: var(--teal, #087f8c);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Bottom CTA (matches ConversionCTA band) —— */
.hiq-blog-cta {
  padding: 56px 5%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  color: #fff;
  background: var(--navy, #102b43);
}

.hiq-blog-cta h2 {
  margin: 8px 0 12px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.hiq-blog-cta p {
  margin: 0;
  max-width: 32rem;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.hiq-blog-cta__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8eee5;
}

.hiq-blog-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 800px) {
  .hiq-blog-hero {
    min-height: 0;
    padding: 48px 24px 40px;
  }

  .hiq-blog-hero__stamp {
    display: none;
  }

  .hiq-blog-hero--teal::after {
    width: 42%;
  }

  .hiq-blog-section {
    padding: 48px 24px;
  }

  .hiq-blog-cta {
    grid-template-columns: 1fr;
    padding: 48px 24px;
  }

  .hiq-blog-cta__actions {
    justify-content: flex-start;
  }

  .hiq-blog-cta__actions .button {
    width: 100%;
    justify-content: center;
  }
}

.handbook-blog-page .hiq-blog-related-links {
  margin: clamp(3rem, 8vw, 5rem) 0 0;
  padding: clamp(2rem, 5vw, 3rem) 0 0;
  border-top: 1px solid var(--ink, #132d45);
  width: 100%;
}

.handbook-blog-page .hiq-blog-related-links h2 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.handbook-blog-page .hiq-blog-related-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.handbook-blog-page .hiq-blog-related-links a {
  color: var(--brand-dark, #087f8c);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.handbook-blog-page .hiq-blog-ecosystem-links {
  margin: clamp(2.5rem, 7vw, 4rem) 0 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line, #dce5ec);
  border-radius: 12px;
  background: var(--pale, #eaf3f7);
  width: 100%;
}

.handbook-blog-page .hiq-blog-ecosystem-links h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #132d45);
}

.handbook-blog-page .hiq-blog-ecosystem-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.handbook-blog-page .hiq-blog-ecosystem-links a {
  color: var(--brand-dark, #087f8c);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.handbook-blog-page .hiq-blog-body .hiq-blog-related-links,
.handbook-blog-page .hiq-blog-body .hiq-blog-ecosystem-links {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}
