/* File: theme/css/humanspark-components.css
 * Purpose: UI components for HumanSpark theme.
 * Project: HumanSpark | Date: 2026-03-22
 */

/* --- SKIP LINK --- */
.hs-skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden; z-index: 9999;
  padding: var(--size-2) var(--size-4);
  background: var(--hs-accent); color: var(--hs-navy); font-weight: 700;
}
.hs-skip-link:focus {
  position: fixed; top: 0; left: 0;
  width: auto; height: auto; overflow: visible;
}

/* --- CARDS --- */
.hs-card {
  display: flex; flex-direction: column;
  padding: var(--hs-card-padding);
  border-radius: var(--hs-card-radius);
  border: 1px solid var(--hs-border-subtle);
  border-top: var(--hs-card-border-width) solid var(--hs-card-border-color);
  background: var(--hs-white);
  box-shadow: var(--hs-card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.hs-card:hover { box-shadow: var(--hs-card-shadow-hover); transform: translateY(-4px); }

.hs-card__icon {
  width: 3.8rem; height: 3.8rem;
  background: var(--hs-accent-faint); border-radius: var(--hs-radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--size-3); font-size: 1.8rem;
}
.hs-card__title {
  font-size: var(--hs-text-lg); color: var(--hs-navy);
  font-weight: 800; line-height: 1.18;
  margin-bottom: var(--size-2); letter-spacing: var(--hs-tracking-snug);
}
.hs-card__title a { color: inherit; text-decoration: none; }
.hs-card__title a:hover { color: var(--hs-link); }
.hs-card__body { flex: 1; font-size: var(--hs-text-md); color: var(--hs-text); line-height: var(--hs-leading-tight); }
.hs-card__meta {
  font-size: var(--hs-text-xs); color: var(--hs-text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: var(--hs-tracking-wide); margin-bottom: var(--size-2);
}
.hs-card > .hs-card__meta {
  width: fit-content;
  padding: 0.2em 0.55em; border-radius: 4px;
  background: rgba(0, 8, 42, 0.04); border: 1px solid rgba(0, 8, 42, 0.06);
}
.hs-card .hs-btn { margin-top: auto; padding-top: var(--size-3); align-self: flex-start; }
.hs-card__cta { margin-top: auto; padding-top: var(--size-3); color: var(--hs-accent); font-weight: 600; text-decoration: none; font-size: var(--font-size-0); display: inline-block; }
.hs-card__cta:hover { color: var(--hs-accent-dark); }
.hs-card__hero-stat { font-family: 'JetBrains Mono', monospace; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--hs-accent); line-height: 1; margin-bottom: var(--size-1); }
.hs-card__hero-stat-label { font-size: var(--font-size-00); color: var(--hs-text-muted); text-transform: uppercase; letter-spacing: var(--hs-tracking-wider); margin-bottom: var(--size-3); display: block; }

.hs-card--dark {
  background: var(--hs-navy-light); border: none;
  border-top: 3px solid var(--hs-accent); color: var(--hs-white);
}
.hs-card--dark .hs-card__title,
.hs-card--dark .hs-card__title a { color: var(--hs-white); }
.hs-card--dark .hs-card__title a:hover { color: var(--hs-accent); }
.hs-card--dark .hs-card__body { color: var(--hs-dark-text-muted); }
.hs-card--dark .hs-card__cta { color: var(--hs-accent); }
.hs-card--dark .hs-card__meta {
  color: var(--hs-accent); background: rgba(238, 186, 0, 0.04);
  padding: 0.2em 0.5em; border-radius: 4px; display: inline-block;
}

.hs-card--service { padding: var(--size-4) var(--size-5); }
.hs-card--service .hs-card__body { line-height: var(--hs-leading-tight); }

/* --- BLOG CARDS --- */
.hs-card--blog {
  padding: 0; border-radius: 12px;
  border: 1px solid rgba(8, 145, 178, 0.12);
  background: linear-gradient(180deg, #0c1b34 0%, #091529 100%);
  overflow: hidden; position: relative;
}
.hs-card--blog .hs-card__title a::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
}
.hs-card--blog:hover { box-shadow: var(--hs-shadow-heavy); cursor: pointer; }

.hs-card__header { display: block; position: relative; overflow: hidden; text-decoration: none; }
.hs-card__header--blog {
  height: 210px;
  background: linear-gradient(135deg, #071428 0%, #0c3d5e 30%, #0891b2 68%, #1abcdc 100%);
  border-radius: 12px 12px 0 0;
}

.hs-card__cat-badge {
  position: absolute; top: var(--size-3); right: var(--size-3); z-index: 2;
  font-size: var(--hs-text-2xs); padding: 0.3em 0.72em; border-radius: 5px;
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  text-transform: uppercase; letter-spacing: var(--hs-tracking-wide);
}
.hs-card__body-wrap {
  padding: var(--size-3) clamp(var(--size-3), 2.2vw, var(--size-5)) clamp(var(--size-2), 1.5vw, var(--size-3));
  display: flex; flex-direction: column; flex: 1;
}
.hs-card--blog .hs-card__title {
  font-size: clamp(1.12rem, 2.4vw, 1.44rem); margin-bottom: var(--size-2); line-height: 1.24;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-card--blog .hs-card__body {
  font-size: var(--hs-text-sm); color: rgba(200, 215, 230, 0.78); line-height: var(--hs-leading-tight);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: clamp(var(--size-2), 1.2vw, var(--size-3)); gap: 0.3rem;
}
.hs-card__readmore {
  color: var(--hs-accent); font-weight: 700; font-size: var(--hs-text-sm);
  display: inline-flex; align-items: center; gap: 0.25em;
  font-family: 'JetBrains Mono', monospace; text-decoration: none;
  text-transform: uppercase; letter-spacing: var(--hs-tracking-wide);
  position: relative; z-index: 2;
}
.hs-card__readmore:hover { color: var(--hs-white); }
.hs-card--blog .hs-card__meta { font-size: var(--hs-text-xs); color: rgba(200, 215, 230, 0.6); }

/* --- BADGES --- */
.hs-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--font-size-00); font-weight: 600;
  padding: 0.2em 0.6em; border-radius: 5px;
  letter-spacing: var(--hs-tracking-wide); text-transform: uppercase; display: inline-block;
}
.hs-badge--accent { background: var(--hs-accent-subtle); color: var(--hs-navy); border: 1px solid rgba(238, 186, 0, 0.15); }
.hs-card .hs-card__cat-badge { background: var(--hs-accent); color: var(--hs-navy); border: 1px solid var(--hs-accent); }

/* --- BUTTONS --- */
.hs-btn {
  font-weight: 700; border-radius: 9px;
  padding: 0.7rem 1.42rem; display: inline-flex; align-items: center; gap: 0.45em;
  text-align: center; line-height: var(--hs-leading-tight);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
/* Arrow-right icon (Lucide) via CSS mask */
.hs-btn::before {
  content: ''; display: block; width: 1em; height: 1em; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hs-nav__contact-btn::before,
.hs-topbar__btn::before,
.hs-search-form__btn::before { display: none; }
.hs-btn:hover { transform: translateY(-1px); }
.hs-btn--primary { background: var(--hs-accent); color: var(--hs-navy); border: none; }
.hs-btn--primary:hover { background: var(--hs-accent-dark); box-shadow: 0 4px 12px rgba(238, 186, 0, 0.2); }
.hs-btn--secondary { background: transparent; color: var(--hs-teal); border: 1px solid var(--hs-teal); }
.hs-btn--secondary:hover { background: rgba(0, 131, 132, 0.06); }
.hs-btn--link { background: none; border: none; padding: 0; color: var(--hs-accent); font-size: var(--font-size-0); }
.hs-btn--link::before { display: none; }
.hs-btn--link:hover { transform: none; color: var(--hs-accent-dark); }
.hs-btn--dark { background: transparent; color: var(--hs-white); border: 1px solid rgba(255, 255, 255, 0.2); }
.hs-btn--dark:hover { background: var(--hs-white-subtle); border-color: rgba(255, 255, 255, 0.3); }

/* --- TESTIMONIALS (dark card treatment) --- */
.hs-testimonial {
  padding: var(--size-5) var(--size-6); background: var(--hs-navy-light);
  color: var(--hs-white); border-radius: var(--hs-card-radius);
  text-align: center; max-width: 780px; margin-inline: auto;
  border-top: var(--hs-card-border-width) solid var(--hs-card-border-color);
  position: relative;
}
.hs-testimonial::before {
  content: '\201C'; position: absolute; top: 0.1em; left: 0.3em;
  font-size: 4.5rem; line-height: 1; color: var(--hs-accent); opacity: 0.15;
  font-family: Georgia, serif;
}
.hs-testimonial__quote {
  font-size: clamp(1.05rem, 1.8vw, 1.15rem); font-style: italic;
  line-height: var(--hs-leading-tight); margin-bottom: var(--size-4);
  max-width: 630px; margin-inline: auto; color: var(--hs-dark-text);
  text-align: left;
}
.hs-testimonial__avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  margin-inline: auto; margin-bottom: var(--size-2);
  border: 3px solid var(--hs-accent);
}
.hs-testimonial__name { font-weight: 700; font-size: var(--font-size-1); color: var(--hs-white); }
.hs-testimonial__role {
  font-size: var(--font-size-00); color: var(--hs-dark-text-muted);
  margin-top: var(--size-1); text-transform: uppercase; letter-spacing: var(--hs-tracking-wide);
}
.hs-testimonial-stack { display: grid; gap: var(--size-fluid-4); max-width: 780px; margin-inline: auto; }
.hs-testimonial-pair { max-width: 780px; margin-inline: auto; }

/* --- ENDORSEMENT --- */
.hs-endorsement { text-align: center; }
.hs-endorsement__quote, .hs-endorsement__quote--inline {
  font-size: clamp(1.1rem, 2vw, 1.3rem); font-style: italic; color: var(--hs-navy);
  border-left: 3px solid var(--hs-accent); padding-left: var(--size-4);
  margin-inline: auto; max-width: 600px; text-align: left;
}
.hs-endorsement__quote footer, .hs-endorsement__quote--inline footer {
  font-style: normal; font-size: var(--font-size-00); color: var(--hs-text-muted);
  margin-top: var(--size-2); font-weight: 600; text-transform: uppercase; letter-spacing: var(--hs-tracking-wide);
}
.hs-endorsement__context {
  font-size: var(--font-size-1); color: var(--hs-text-muted);
  max-width: 600px; margin-inline: auto; margin-top: var(--size-4);
}
.hs-endorsement__quote--inline { margin-top: var(--size-fluid-3); }

/* --- STATS --- */
.hs-stat { text-align: center; padding: var(--size-5) var(--size-5) var(--size-4); }
.hs-stat__number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.75rem, 5.5vw, 3.7rem); font-weight: 800;
  color: var(--hs-accent); line-height: 1; letter-spacing: var(--hs-tracking-tight);
  white-space: nowrap;
}
.hs-stat__label {
  font-size: var(--font-size-00); color: var(--hs-dark-text-muted);
  margin-top: var(--size-2); font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--hs-tracking-wide); line-height: var(--hs-leading-tight);
}

/* --- EMAIL FORM --- */
.hs-form { max-width: 520px; margin-inline: auto; }
.hs-form__group { display: flex; gap: var(--size-2); }
.hs-form__group input[type="email"] {
  flex: 1; padding: var(--size-2) var(--size-3);
  border: 1px solid rgba(0, 0, 0, 0.1); border-radius: var(--hs-radius);
  font-size: var(--font-size-1); background: var(--hs-white);
}
.hs-form__hint { font-size: var(--font-size-00); color: var(--hs-text-muted); margin-top: var(--size-2); }
.hs-section--dark .hs-form__group input[type="email"] {
  background: var(--hs-white-subtle); border-color: rgba(255, 255, 255, 0.1); color: var(--hs-white);
}
.hs-section--dark .hs-form__hint { color: var(--hs-dark-text-faint); }

/* --- NAVIGATION --- */
.hs-site-header {
  background: rgba(0, 8, 42, 0.97);
  border-bottom: 1px solid var(--hs-white-subtle);
  position: sticky; top: 0; z-index: 100; padding: 0;
}
.hs-site-header nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.1rem; min-height: 0;
}
.hs-logo { display: inline-flex; align-items: center; text-decoration: none; }
.hs-logo__image { height: 39px; width: auto; display: block; }

.hs-nav__list {
  display: flex; align-items: center;
  gap: clamp(var(--size-3), 2vw, var(--size-4));
  list-style: none; padding: 0; margin: 0;
}
.hs-nav__list > li { position: relative; }
.hs-nav__list > li > a {
  font-size: var(--hs-text-base); font-weight: 500;
  color: rgba(255, 255, 255, 0.85); text-decoration: none;
  white-space: nowrap; padding: 0.5rem 0; display: inline-block;
}
.hs-nav__list > li > a:hover { color: var(--hs-white); }
.current-menu-item > a { color: var(--hs-white) !important; font-weight: 600; }

.hs-site-header .hs-nav__contact-btn {
  background: var(--hs-accent); color: var(--hs-navy);
  padding: 0.36rem 1.18rem; border-radius: 8px;
  font-weight: 700; font-size: var(--font-size-0);
}
.hs-site-header .hs-nav__contact-btn:hover { background: var(--hs-accent-dark); }

.hs-nav__dropdown-toggle {
  font-size: var(--hs-text-base); font-weight: 500; color: rgba(255, 255, 255, 0.85);
  background: none; border: none; cursor: pointer;
  padding: 0.5rem 0; display: inline-flex; align-items: center; gap: 0.3em;
}
.hs-nav__dropdown-toggle:hover { color: var(--hs-white); }
.hs-nav__dropdown-toggle .hs-icon { transition: transform 0.2s; }
.hs-nav__dropdown.is-open .hs-nav__dropdown-toggle .hs-icon { transform: rotate(180deg); }

.hs-nav__mega {
  display: none; position: absolute; top: 100%;
  left: 50%; transform: translateX(-50%);
  background: rgba(4, 14, 36, 0.97);
  border: 1px solid rgba(238, 186, 0, 0.08);
  border-top: 2px solid var(--hs-accent);
  border-radius: 0 0 12px 12px;
  padding: var(--size-3); padding-top: calc(var(--size-3) + 5px);
  min-width: 240px; z-index: 200;
}
.hs-nav__dropdown.is-open > .hs-nav__mega { display: block; }
.hs-nav__mega-col { display: flex; flex-direction: column; }
.hs-nav__mega-col a {
  display: flex; align-items: center; gap: 0.55em;
  padding: 0.65rem 0.7rem; color: rgba(255, 255, 255, 0.65);
  font-size: var(--font-size-0); font-weight: 500;
  border-radius: 8px; white-space: nowrap; text-decoration: none;
}
.hs-nav__mega-col a:hover { background: rgba(255, 255, 255, 0.04); color: var(--hs-white); }

.hs-nav__toggle {
  display: none; background: none; border: none;
  padding: var(--size-2); flex-direction: column; gap: 5px;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center; cursor: pointer;
}
.hs-nav__toggle span { display: block; width: 24px; height: 2px; background: var(--hs-white); transition: transform 0.2s; }

@media (max-width: 768px) {
  .hs-nav__toggle { display: flex; }
  .hs-nav__list {
    position: fixed; top: 40px; left: 0; right: 0;
    background: rgba(0, 8, 42, 0.98); flex-direction: column;
    z-index: 99; visibility: hidden; opacity: 0;
    max-height: 0; overflow: hidden; transition: all 0.25s ease;
    padding: 0 var(--size-4);
  }
  .hs-nav__list.is-open {
    visibility: visible; opacity: 1; max-height: 600px;
    overflow-y: auto; padding: var(--size-4);
  }
  .hs-nav__list > li { width: 100%; }
  .hs-nav__list > li > a,
  .hs-nav__dropdown-toggle { width: 100%; padding: var(--size-2) 0; font-size: var(--font-size-1); }
  .hs-nav__mega {
    position: static; transform: none; border: none;
    border-radius: 0; padding: 0 var(--size-3); background: transparent;
  }
  .hs-nav__contact { margin-top: var(--size-2); }
  .hs-site-header .hs-nav__contact-btn { width: 100%; text-align: center; display: block; padding: var(--size-2); }
}

/* --- TOPBAR --- */
.hs-topbar {
  background: linear-gradient(90deg, var(--hs-accent) 0%, #e5a200 35%, #d44e2a 70%, #c01858 100%);
  position: relative; z-index: 99;
}
.hs-topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--size-2); padding-block: 0.35rem; min-height: 38px;
}
.hs-topbar__form, .hs-topbar__form input, .hs-topbar__btn { margin-bottom: 0; }
.hs-topbar__text {
  color: var(--hs-navy); font-size: var(--hs-text-sm); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0;
  font-weight: 700; display: inline-flex; align-items: center; gap: 0.4em; margin: 0;
}
.hs-topbar__form { display: flex; align-items: center; gap: var(--size-2); flex-shrink: 0; height: 34px; }
.hs-topbar__form input[type="email"] {
  padding: 0.28rem 0.65rem; border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px; background: var(--hs-white); color: var(--hs-navy);
  font-size: var(--font-size-00); width: 160px; height: 32px; min-height: 0;
}
.hs-topbar__btn {
  background: var(--hs-navy); color: var(--hs-white);
  padding: 0.28rem 0.9rem; font-size: var(--hs-text-xs); border-radius: 8px;
  font-weight: 700; text-transform: uppercase;
  height: 32px; min-height: 0; border: none;
  display: inline-flex; align-items: center; gap: 0.3em; cursor: pointer;
}

@media (max-width: 768px) {
  .hs-topbar__text { display: none; }
  .hs-topbar__inner { justify-content: center; padding-block: var(--size-2); }
  .hs-topbar__form { flex: 1; max-width: 100%; }
  .hs-topbar__form input[type="email"] { flex: 1; width: auto; min-width: 120px; padding: 0.55rem 0.75rem; }
  .hs-topbar__btn { padding: 0.55rem 1rem; font-size: var(--hs-text-sm); }
}

/* --- FOOTER --- */
.hs-site-footer {
  background: var(--hs-navy); color: var(--hs-dark-text-muted);
  padding-block: clamp(2.25rem, 4vw, 3.25rem) 0;
  border-top: 1px solid var(--hs-accent-faint);
}
.hs-footer__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem); align-items: start;
}
.hs-footer__brand { display: flex; flex-direction: column; }
.hs-footer__brand .hs-logo { color: var(--hs-white); margin-bottom: var(--size-3); display: inline-block; }
.hs-footer__tagline {
  font-size: var(--hs-text-sm); font-weight: 700; color: var(--hs-accent);
  margin-bottom: var(--size-3); text-transform: uppercase;
  letter-spacing: var(--hs-tracking-wide); line-height: var(--hs-leading-tight);
}
.hs-footer__compliance {
  font-size: var(--hs-text-xs); line-height: var(--hs-leading-tight); margin-bottom: var(--size-3);
  max-width: 38ch; color: var(--hs-dark-text-muted);
}
.hs-footer__compliance strong { color: rgba(255,255,255,0.85); }
.hs-footer__compliance a { color: var(--hs-accent); text-decoration: underline; text-underline-offset: 2px; }
.hs-footer__compliance a:hover { color: var(--hs-white); }
.hs-footer__social { display: flex; gap: var(--size-2); margin-top: var(--size-3); }
.hs-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7); text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.hs-footer__social a:hover { color: var(--hs-accent); border-color: var(--hs-accent); background: rgba(238, 186, 0, 0.08); }
.hs-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--size-fluid-2); }
.hs-footer__heading {
  color: var(--hs-white); font-size: var(--hs-text-xs); text-transform: uppercase;
  letter-spacing: var(--hs-tracking-wide); margin-bottom: var(--size-3); font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  padding-bottom: var(--size-2); border-bottom: 2px solid rgba(238, 186, 0, 0.12);
}
.hs-footer__nav { list-style: none; padding: 0; margin: 0; }
.hs-footer__nav li { padding: 0.2rem 0; list-style: none; }
.hs-footer__nav li::before { content: '\203A'; color: var(--hs-accent); margin-right: 0.4em; opacity: 0.4; }
.hs-footer__nav a { color: var(--hs-dark-text-muted); font-size: var(--hs-text-md); text-decoration: none; }
.hs-footer__nav a:hover { color: var(--hs-white); }
.hs-footer__legal {
  font-size: var(--hs-text-xs); line-height: var(--hs-leading-tight);
  padding-block: var(--size-3) var(--size-3);
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid var(--hs-white-subtle);
  display: flex; gap: var(--size-2); flex-wrap: wrap;
  color: var(--hs-dark-text-muted);
}
.hs-footer__legal p { margin: 0; }
.hs-footer__legal a { text-decoration: none; }
.hs-footer__legal a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .hs-footer__grid { grid-template-columns: 1fr; }
  .hs-footer__brand { text-align: center; }
  .hs-footer__social { justify-content: center; }
  .hs-footer__col { text-align: center; }
  .hs-footer__legal { justify-content: center; text-align: center; }
}

/* --- PAGINATION --- */
.hs-pagination {
  display: flex; gap: var(--size-2); justify-content: center;
  margin-top: clamp(1.5rem, 3vw, 2.5rem); flex-wrap: wrap;
}
.hs-pagination a,
.hs-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4rem; height: 2.4rem; padding: 0 var(--size-2);
  border-radius: 8px; font-size: var(--hs-text-base); font-weight: 600;
  text-decoration: none; border: 1px solid var(--hs-white-subtle);
  color: var(--hs-dark-text-muted); background: rgba(255, 255, 255, 0.03);
  font-family: 'JetBrains Mono', monospace;
  transition: background 0.15s, color 0.15s;
}
.hs-pagination a:hover { background: rgba(255, 255, 255, 0.08); color: var(--hs-white); }
.hs-pagination .current { background: var(--hs-accent); color: var(--hs-navy); border-color: var(--hs-accent); font-weight: 700; }

/* --- SINGLE POST HERO (white background, matches reference) --- */
.hs-post-hero {
  background: var(--hs-white);
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}
.hs-post-hero .hs-contain { max-width: 800px; }
.hs-post-hero__meta {
  font-size: var(--hs-text-xs); color: var(--hs-text-muted); margin-bottom: var(--size-2);
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase; font-weight: 500;
  font-family: 'JetBrains Mono', monospace; letter-spacing: var(--hs-tracking-wide);
}
.hs-post-hero__sep { margin-inline: 0.5em; color: var(--hs-text-faint); }
.hs-post-hero__cat {
  color: var(--hs-navy); background: var(--hs-accent);
  padding: 0.22em 0.62em; border-radius: 4px;
  font-size: var(--hs-text-xs); font-weight: 700;
  font-family: 'JetBrains Mono', monospace; text-decoration: none;
}
.hs-post-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800;
  color: var(--hs-navy); line-height: 1.1; letter-spacing: var(--hs-tracking-tight);
  margin-bottom: var(--size-3);
}
.hs-post-hero__author-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--size-3);
}
.hs-byline { display: flex; align-items: center; gap: var(--size-2); }
.hs-byline img { border-radius: 50%; width: 36px; height: 36px; border: 2px solid var(--hs-grey); }
.hs-byline__name {
  color: var(--hs-text); font-weight: 600;
  font-size: var(--hs-text-base);
}
.hs-post-hero__share { display: flex; gap: var(--size-2); }
.hs-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--hs-teal); background: none;
  text-decoration: none; transition: color 0.15s;
}
.hs-share-btn:hover { color: var(--hs-link-hover); }
.hs-post-hero__image { border-radius: 10px; overflow: hidden; margin-top: var(--size-2); }
.hs-post-hero__image img { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }
.hs-post-hero__image--pattern { width: 100%; height: 0; padding-bottom: 52.5%; border-radius: 10px; }

/* AI summary sidebar links */
.hs-ai-links { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: var(--size-4); }
.hs-ai-link {
  display: flex; align-items: center; gap: 0.6em;
  padding: 0.55rem 0.75rem; border-radius: 8px;
  font-size: var(--hs-text-xs); font-weight: 700; line-height: var(--hs-leading-tight);
  text-decoration: none; color: var(--hs-white); transition: opacity 0.15s;
}
.hs-ai-link:hover { opacity: 0.88; color: var(--hs-white); }
.hs-ai-link--chatgpt { background: var(--hs-navy); border: 1px solid rgba(238, 186, 0, 0.2); }
.hs-ai-link--perplexity { background: var(--hs-navy-light); border: 1px solid rgba(0, 131, 132, 0.3); }
.hs-ai-link--claude { background: var(--hs-navy); border: 1px solid rgba(242, 41, 91, 0.25); }

/* --- SINGLE POST CONTENT --- */
.hs-single-post {
  background: var(--hs-bg-reading);
  max-width: 1100px; margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  overflow-x: hidden;
}
.hs-single-post__body {
  display: grid; grid-template-columns: 1fr 240px; gap: var(--size-fluid-4); align-items: start;
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem); padding-bottom: clamp(2rem, 4.5vw, 3rem);
}
.hs-single-post__body > * { grid-column: 1; }
@media (max-width: 860px) { .hs-single-post__body { grid-template-columns: minmax(0, 1fr); } }

.hs-post-sidebar { position: sticky; top: 80px; grid-column: 2; grid-row: 1 / 99; list-style: none; }
.hs-post-sidebar__heading {
  font-size: var(--hs-text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: var(--hs-tracking-wider);
  color: var(--hs-text-muted); margin-bottom: var(--size-3); font-family: 'JetBrains Mono', monospace;
  padding-bottom: var(--size-2); border-bottom: 2px solid rgba(238, 186, 0, 0.12);
  list-style: none;
}
.hs-post-sidebar__toc { list-style: none; padding: 0; margin: 0; }
.hs-post-sidebar__toc li { padding: 0.3rem 0; }
.hs-post-sidebar__toc a {
  font-size: var(--hs-text-base); color: var(--hs-text-muted); text-decoration: none; line-height: var(--hs-leading-tight); display: block;
}
.hs-post-sidebar__toc a:hover { color: var(--hs-teal); }
.hs-post-sidebar__toc .hs-toc--h3 { padding-left: 1em; font-size: var(--hs-text-sm); }
@media (max-width: 860px) { .hs-post-sidebar { display: none; } }

.hs-post-content { max-width: 680px; font-size: var(--hs-text-lg); line-height: var(--hs-leading-normal); color: var(--hs-text); min-width: 0; overflow-wrap: break-word; text-align: left; }
.hs-post-content > * + * { margin-top: 1.05em; }
.hs-post-content h2 + p, .hs-post-content h3 + p, .hs-post-content h4 + p { margin-top: 0.4em; }
.hs-post-content p + ul, .hs-post-content p + ol { margin-top: 0.6em; }

.hs-page-light .hs-single-post .hs-post-content > p:first-of-type { font-size: var(--hs-text-xl); line-height: var(--hs-leading-normal); color: var(--hs-text-heading); }
.hs-page-light .hs-single-post .hs-post-content > p:first-of-type::first-letter {
  float: left; font-size: 3.2em; line-height: 0.85; font-weight: 800;
  color: var(--hs-navy); font-family: Georgia, serif;
  margin-right: 0.08em; margin-top: 0.06em;
}

.hs-post-content h2 {
  font-size: clamp(1.38rem, 2.8vw, 1.82rem); color: var(--hs-navy);
  margin-top: 1.8em; margin-bottom: 0.45em;
  position: relative;
}
.hs-single-post .hs-post-content h2 { padding-left: var(--size-5); }
.hs-single-post .hs-post-content h2::before {
  content: ''; position: absolute; left: 0; top: 0.15em; bottom: 0.15em;
  width: 3.5px; background: var(--hs-gradient-line); border-radius: 2px;
}
.hs-post-content h2::after { display: none; }
.hs-post-content h3 {
  font-size: clamp(1.16rem, 2.4vw, 1.42rem); color: var(--hs-navy);
  margin-top: 1.5em; margin-bottom: 0.35em; font-weight: 700;
  position: relative;
}
.hs-single-post .hs-post-content h3 { padding-left: 1.1em; }
.hs-single-post .hs-post-content h3::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; background: var(--hs-teal); border-radius: 50%;
}

.hs-post-content ul,
.hs-feature-list { padding-left: 0; list-style: none; }
.hs-post-content li,
.hs-feature-list li { margin-bottom: 0.44em; line-height: var(--hs-leading-tight); }
.hs-post-content ul > li,
.hs-feature-list li { padding-left: 1.4em; position: relative; }
.hs-post-content ul > li::before,
.hs-feature-list li::before {
  content: ''; position: absolute; left: 0; top: 0.68em;
  width: 5px; height: 5px; background: var(--hs-accent); border-radius: 50%;
}

.hs-post-content pre {
  background: #0c1629; color: #e2e8f0;
  padding: var(--size-4) var(--size-5); border-radius: 10px;
  overflow-x: auto; font-size: var(--hs-text-base); line-height: var(--hs-leading-normal);
  border: 1px solid rgba(8, 145, 178, 0.08);
}
.hs-post-content code {
  background: rgba(15, 23, 42, 0.03); color: var(--hs-teal);
  padding: 0.14em 0.4em; border-radius: 5px; font-size: 0.84em;
  border: 1px solid rgba(0, 131, 132, 0.06);
}
.hs-post-content pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

.hs-post-content img { border-radius: var(--hs-radius); margin-block: var(--size-3); }
.hs-post-content figure { margin-inline: 0; max-width: 100%; }
.hs-post-content figcaption {
  font-size: var(--font-size-00); color: var(--hs-text-muted);
  text-align: center; margin-top: var(--size-2); font-style: italic;
  padding-inline: var(--hs-space-sm);
}
.hs-post-content hr {
  border: none; height: 2px; background: var(--hs-gradient-line);
  margin-block: 2.5em; max-width: 120px; margin-inline: auto; opacity: 0.3;
}
.hs-post-content table { font-size: var(--font-size-0); }
.hs-post-content th { background: var(--hs-navy); color: var(--hs-white); font-weight: 700; }
.hs-post-content td { border-bottom: 1px solid rgba(0, 0, 0, 0.05); }

/* Post content on dark backgrounds — overrides light-mode colors */
.hs-section--dark .hs-post-content { color: var(--hs-dark-text); }
.hs-section--dark .hs-post-content h2 { color: var(--hs-white); }
.hs-section--dark .hs-post-content h3 { color: var(--hs-white); }
.hs-section--dark .hs-post-content p,
.hs-section--dark .hs-post-content ul,
.hs-section--dark .hs-post-content ol { max-width: none; margin-inline: 0; color: var(--hs-dark-text); }

.hs-post-tags { margin-top: var(--size-5); padding-top: var(--size-4); border-top: 1px solid rgba(0, 0, 0, 0.06); }
.hs-post-tags__label { font-size: var(--font-size-00); color: var(--hs-text-muted); text-transform: uppercase; letter-spacing: var(--hs-tracking-wider); font-weight: 600; }
.hs-post-tags a {
  display: inline-block; margin: var(--size-1); padding: 0.2em 0.6em;
  font-size: var(--font-size-00); background: rgba(0, 131, 132, 0.05);
  color: var(--hs-teal); border-radius: 5px; text-decoration: none;
}
.hs-post-tags a:hover { background: rgba(0, 131, 132, 0.1); }

/* --- PODCAST --- */
.hs-podcast-featured {
  display: flex; align-items: center; gap: var(--size-5);
  max-width: var(--hs-content-width); margin-inline: auto; margin-bottom: var(--size-5);
}
.hs-podcast-featured__cover { width: 120px; height: 120px; border-radius: var(--hs-radius); object-fit: cover; flex-shrink: 0; }
.hs-podcast-featured__info { flex: 1; text-align: left; }
.hs-podcast-featured__info .hs-tagline { text-align: left; }
.hs-podcast-featured__title { font-size: var(--font-size-2); color: var(--hs-white); margin: 0 0 var(--size-2); font-weight: 800; }
.hs-podcast-featured__desc { font-size: var(--font-size-1); color: var(--hs-dark-text-muted); margin: 0; max-width: none; }
.hs-podcast-archive { padding-block: var(--size-5); }

.hs-podcast-platforms__label {
  font-size: var(--font-size-00); color: var(--hs-dark-text-faint);
  text-transform: uppercase; letter-spacing: var(--hs-tracking-wider); margin-bottom: var(--size-2); text-align: center;
}
.hs-podcast-platforms__badges {
  display: flex; align-items: center; gap: var(--size-3); flex-wrap: wrap;
  justify-content: center; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem); border-bottom: 1px solid var(--hs-accent-faint);
}
.hs-podcast-platforms__badge { display: inline-block; }
.hs-podcast-platforms__badge img { height: 32px; width: auto; opacity: 0.55; filter: brightness(0) invert(1); transition: opacity 0.15s; }
.hs-podcast-platforms__badge img:hover { opacity: 0.9; }

.hs-card--podcast { padding: 0; overflow: hidden; border-radius: var(--hs-radius); border-top: none; }
.hs-card--podcast__cover {
  display: block; aspect-ratio: 1 / 1;
  background-size: cover; background-position: center; background-color: var(--hs-navy);
  position: relative; overflow: hidden; text-decoration: none;
}
.hs-card--podcast__fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 3rem;
  background: linear-gradient(135deg, var(--hs-navy-light), var(--hs-navy));
}
.hs-card--podcast__badge {
  position: absolute; top: var(--size-3); left: var(--size-3);
  background: rgba(0, 8, 42, 0.5); color: var(--hs-accent);
  border: 1px solid rgba(238, 186, 0, 0.1); z-index: 2;
}
.hs-card--podcast__ep-num {
  font-family: 'JetBrains Mono', monospace; font-size: var(--font-size-00);
  color: var(--hs-dark-text-faint); margin-bottom: var(--size-1);
}
.hs-card--podcast__content { padding: var(--size-4); }
.hs-card--podcast .hs-card__title { font-size: clamp(1.15rem, 2.2vw, 1.33rem); line-height: 1.28; margin-bottom: 0; }
.hs-card--podcast__guest { font-size: var(--font-size-00); color: var(--hs-dark-text-faint); margin-top: var(--size-2); }

.hs-card--podcast-nav {
  display: flex; align-items: center; gap: var(--size-3); padding: var(--size-3); border-top: none;
}
.hs-card--podcast-nav__thumb {
  width: 80px; height: 80px; border-radius: var(--hs-radius);
  background-size: cover; background-position: center; flex-shrink: 0;
}
.hs-card--podcast-nav__content { flex: 1; min-width: 0; }

.hs-podcast-hero {
  background: linear-gradient(180deg, var(--hs-navy) 0%, #020b2e 100%);
  padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(3.75rem, 8vw, 5.75rem);
  padding-inline: var(--size-fluid-3); color: var(--hs-white); overflow: hidden;
}
.hs-podcast-hero__layout {
  display: grid; grid-template-columns: 1fr;
  gap: var(--size-fluid-4); max-width: var(--hs-content-width);
  margin-inline: auto; align-items: center;
}
.hs-podcast-hero__cover {
  aspect-ratio: 1 / 1; border-radius: var(--hs-radius);
  background-size: cover; background-position: center;
  background-color: var(--hs-navy-light);
  max-width: 340px; margin-inline: auto; width: 100%;
}
.hs-podcast-hero__fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 4rem;
  border-radius: var(--hs-radius); background: var(--hs-navy-light);
  aspect-ratio: 1 / 1;
}
.hs-podcast-hero__info { display: flex; flex-direction: column; gap: var(--size-3); }
.hs-podcast-hero__info h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.55rem); line-height: 1.12;
  letter-spacing: var(--hs-tracking-tight); color: var(--hs-white); margin: 0;
}
.hs-podcast-hero__meta {
  display: flex; align-items: center; gap: var(--size-2);
  font-size: var(--font-size-0); color: var(--hs-dark-text-faint);
  font-family: 'JetBrains Mono', monospace;
}
.hs-podcast-hero__guest {
  display: flex; align-items: center; gap: var(--size-3);
  padding: var(--size-3); background: rgba(255, 255, 255, 0.03);
  border-radius: var(--hs-radius); border: 1px solid var(--hs-accent-faint);
}
.hs-podcast-hero__guest-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--hs-accent), var(--hs-red));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: var(--hs-navy); flex-shrink: 0;
}
.hs-podcast-hero__guest-name { font-weight: 600; font-size: var(--font-size-1); color: var(--hs-white); }
.hs-podcast-hero__guest-role { font-size: var(--font-size-0); color: var(--hs-dark-text-faint); }
.hs-podcast-player { margin-top: var(--size-2); border-radius: var(--hs-radius); overflow: hidden; }
.hs-podcast-hero__platforms { display: flex; align-items: center; gap: var(--size-3); margin-top: var(--size-2); }

@media (min-width: 768px) { .hs-podcast-hero__layout { grid-template-columns: 280px 1fr; gap: clamp(var(--size-6), 5vw, var(--size-8)); } }
@media (min-width: 1024px) { .hs-podcast-hero__layout { grid-template-columns: 340px 1fr; } }

/* --- CASE STUDY --- */
.hs-post-content .aip-case-study-metadata,
.hs-post-content .aip-case-study-cta { display: none; }
.hs-casestudy { max-width: var(--hs-content-width); margin-inline: auto; }
.hs-casestudy__meta-section { padding-block: var(--size-4) var(--size-3); }
.hs-casestudy__meta-grid { display: flex; justify-content: center; gap: var(--size-7); flex-wrap: wrap; }
.hs-casestudy__meta-item { text-align: center; }
.hs-casestudy__meta-label {
  display: block; font-size: var(--font-size-00); text-transform: uppercase;
  letter-spacing: var(--hs-tracking-wide); color: var(--hs-text-muted); font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.hs-casestudy__meta-value { display: block; font-size: var(--font-size-2); font-weight: 600; color: var(--hs-navy); }

.hs-casestudy .hs-section--proof { padding-block: clamp(1.25rem, 3vw, 2rem); }
.hs-casestudy__summary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--size-4); margin-block: var(--size-2);
}
.hs-casestudy__summary-item { padding: var(--size-3); }
.hs-casestudy__summary-label {
  font-size: var(--font-size-00); font-weight: 700; text-transform: uppercase;
  letter-spacing: var(--hs-tracking-wider); color: var(--hs-accent); margin-bottom: var(--size-2);
  font-family: 'JetBrains Mono', monospace;
}
.hs-casestudy__summary-text { font-size: var(--font-size-1); color: var(--hs-text-muted); line-height: var(--hs-leading-tight); }

.hs-casestudy__stats-section { padding-block: clamp(1.25rem, 3vw, 2rem); }
.hs-casestudy__stats-section .hs-stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hs-casestudy__stats-section .hs-stat { border-right: 1px solid rgba(238, 186, 0, 0.05); }
.hs-casestudy__stats-section .hs-stat:last-child { border-right: none; }
.hs-casestudy__stats-section .hs-stat__label { color: rgba(200, 215, 230, 0.85); }

.hs-casestudy__before-after {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--size-5);
  max-width: var(--hs-content-width); margin-inline: auto;
}
.hs-casestudy__ba-column { padding: var(--size-5); border-radius: var(--hs-radius); }
.hs-casestudy__ba-column--before { background: rgba(242, 41, 91, 0.04); border-left: 4px solid var(--hs-red); }
.hs-casestudy__ba-column--after { background: rgba(0, 131, 132, 0.04); border-left: 4px solid var(--hs-teal); }
.hs-casestudy__ba-heading {
  font-size: var(--font-size-00); font-weight: 700; text-transform: uppercase;
  letter-spacing: var(--hs-tracking-wide); font-family: 'JetBrains Mono', monospace;
  margin-bottom: var(--size-3);
}
.hs-casestudy__ba-row {
  display: flex; justify-content: space-between;
  padding: var(--size-2) 0; border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: var(--font-size-0);
}
.hs-casestudy__ba-metric { color: var(--hs-text-muted); }
.hs-casestudy__ba-value { font-weight: 600; color: var(--hs-text-heading); }
.hs-casestudy__anonymised { font-size: var(--font-size-00); color: var(--hs-text-faint); font-style: italic; margin-top: var(--size-3); }
.hs-casestudy__evidence-note { font-size: var(--font-size-00); color: var(--hs-dark-text-faint); margin-top: var(--size-2); }
.hs-casestudy__more { padding-block: var(--size-5); text-align: center; }
.hs-btn--back::before { display: none; }

@media (max-width: 640px) {
  .hs-casestudy__before-after { grid-template-columns: 1fr; }
  .hs-casestudy__meta-grid { gap: var(--size-4); }
}

/* --- SEARCH --- */
.hs-search-hero {
  background: var(--hs-navy);
  padding-block: clamp(2rem, 5vw, 3.5rem); padding-inline: clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.hs-search-hero__heading { color: var(--hs-white); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: var(--size-3); }
.hs-search-hero__count { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--hs-accent); }
.hs-search-bar { padding-block: var(--size-5) var(--size-4); background: var(--hs-warm-white); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.hs-search-form { max-width: 640px; margin-inline: auto; }
.hs-search-form__group { display: flex; gap: var(--size-2); }
.hs-search-form__input {
  flex: 1; padding: var(--size-3) var(--size-5);
  border: 2px solid var(--hs-border-subtle); border-radius: var(--hs-radius);
  font-size: var(--font-size-2); background: var(--hs-white);
}
.hs-search-form__btn { padding: var(--size-3) var(--size-5); }
.hs-search-empty { text-align: center; padding-block: var(--size-fluid-5); }
.hs-search-empty__icon { font-size: 4rem; margin-bottom: var(--size-4); opacity: 0.3; }
.hs-search-empty__message { font-size: var(--font-size-2); margin-bottom: var(--size-5); max-width: 500px; margin-inline: auto; }
.hs-search-empty__links { display: flex; gap: var(--size-3); justify-content: center; flex-wrap: wrap; }

/* --- 404 --- */
.hs-404-hero {
  background: var(--hs-white);
  padding-block: clamp(4rem, 12vw, 8rem); padding-inline: clamp(1.5rem, 5vw, 4rem);
  text-align: center; position: relative; overflow: hidden;
}
.hs-404-hero__number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(10rem, 25vw, 22rem); font-weight: 800;
  line-height: 0.85; letter-spacing: -0.05em;
  color: rgba(238, 186, 0, 0.065);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -55%); pointer-events: none; z-index: 0;
}
.hs-404-hero h1, .hs-404-hero .hs-tagline, .hs-404-hero p { position: relative; z-index: 1; }
.hs-404-nav-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--size-3); max-width: 600px;
  margin-inline: auto; margin-top: var(--size-5);
}

/* --- CONTACT PAGE --- */
.hs-contact__heading { display: flex; align-items: center; gap: 0.5em; }
.hs-contact__actions { display: flex; flex-wrap: wrap; gap: var(--hs-space-md); margin: var(--size-7) 0; }
.hs-contact__actions .hs-btn { font-size: 1rem; }
.hs-contact__hint { color: var(--hs-text-muted); font-size: var(--hs-text-md); }
/* .hs-cal-embed: restore when Cal.com inline embed X-Frame-Options is fixed */

/* --- UTILITIES --- */
.hs-back-link {
  display: inline-flex; align-items: center; gap: 0.3em;
  font-size: var(--font-size-0); color: var(--hs-dark-text-muted);
  text-decoration: none; margin-bottom: var(--size-3);
}
.hs-back-link:hover { color: var(--hs-white); }
.hs-blog-archive { background: var(--hs-navy); padding-block: var(--size-5); }
.hs-icon { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; flex-shrink: 0; }

.hs-reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.hs-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .hs-reveal { opacity: 1; transform: none; transition: none; } }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- PRINT --- */
@media print {
  .hs-topbar, .hs-site-header, .hs-site-footer, .hs-post-hero__share, .hs-ai-links,
  .hs-share-btn, .hs-nav__toggle, .hs-btn, .hs-pagination, .hs-reveal { display: none !important; }
  body { background: white; color: black; }
  .hs-post-content { max-width: 100%; font-size: 12pt; }
  .hs-post-content a { color: black; text-decoration: underline; }
  .hs-post-content a::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
  .hs-card { padding: var(--size-3); }
  .hs-card__header--blog { height: 160px; }
  .hs-card--blog .hs-card__title { font-size: 1.1rem; }
  .hs-testimonial { padding: var(--size-4); }
  .hs-post-hero__author-row { flex-direction: column; gap: var(--size-2); align-items: center; }
  .hs-post-content { font-size: 1rem; }
  .hs-post-content h2 { padding-left: var(--size-4); }
  .hs-podcast-hero__layout { gap: var(--size-4); }
  .hs-404-nav-grid { grid-template-columns: 1fr; }
  /* Drop cap: reduce size to prevent overlap on small screens */
  .hs-page-light .hs-single-post .hs-post-content > p:first-of-type::first-letter {
    font-size: 2.6em; margin-right: 0.06em;
  }
  /* Podcast archive: reduce cover art height on mobile */
  .hs-card--podcast__cover { aspect-ratio: 4 / 3; }
}

/* --- ROUTING CARDS (training page) --- */
.hs-card--routing { text-decoration: none; color: var(--hs-navy); }
.hs-card--routing .hs-card__title { color: var(--hs-navy); }

/* --- PROGRAMME DETAIL (training page) --- */
.hs-detail__question { font-style: italic; color: var(--hs-text-muted); font-size: var(--font-size-2); margin-bottom: var(--size-3); }
.hs-detail__content > * + * { margin-top: 1em; }
.hs-detail__content h3 { margin-top: 1.4em; }
.hs-detail__meta-grid {
  display: flex; gap: var(--size-5); margin-top: var(--size-4);
  padding-top: var(--size-3); border-top: 1px solid rgba(0 0 0 / 0.08);
}
.hs-detail__meta-item strong {
  display: block; font-size: var(--font-size-00);
  text-transform: uppercase; letter-spacing: var(--hs-tracking-wide);
  color: var(--hs-text-muted); margin-bottom: 0.2em;
}
.hs-detail__meta-item span { font-size: var(--font-size-0); }
.hs-detail__delivered { font-size: var(--font-size-00); color: var(--hs-text-muted); margin-top: var(--size-3); font-style: italic; }

/* --- FAQ ACCORDION --- */
.hs-accordion { text-align: left; }
.hs-accordion__item { border-bottom: 1px solid rgba(255 255 255 / 0.12); }
.hs-accordion__item:last-child { border-bottom: none; }
.hs-accordion__trigger {
  cursor: pointer; list-style: none; position: relative;
  padding: 1rem 2em 1rem 0; font-weight: 600;
}
.hs-accordion__trigger::-webkit-details-marker { display: none; }
.hs-accordion__trigger::after {
  content: ''; position: absolute; right: 0.5em; top: 50%; width: 0.6em; height: 0.6em;
  border-right: 2px solid var(--hs-accent); border-bottom: 2px solid var(--hs-accent);
  transform: translateY(-60%) rotate(45deg); transition: transform 0.2s;
  background-image: none; float: none;
}
.hs-accordion__item[open] > .hs-accordion__trigger::after { transform: translateY(-30%) rotate(-135deg); }
.hs-accordion__body { padding: 0 0 1rem; }
.hs-section--dark .hs-accordion__trigger { color: var(--hs-white); }
.hs-section--dark .hs-accordion__body p { color: var(--hs-dark-text); max-width: none; margin-inline: 0; text-align: left; }
.hs-section--offer .hs-accordion__item { border-color: rgba(0 0 0 / 0.1); }

/* --- TAGLINE CONTRAST FIX (gold on light backgrounds) --- */
.hs-section--offer .hs-tagline,
.hs-section--editorial .hs-tagline { color: var(--hs-teal); }

/* --- BLOG CARD PATTERNS (20 brand-colour backgrounds, assigned by post ID) --- */
.hs-pattern-0 { background-color: #F2295B; background-image: linear-gradient(135deg, #FFC900 0%, #F2295B 100%); }
.hs-pattern-1 { background-color: #00082A; background-image: radial-gradient(at 0% 0%, #103A65 0px, transparent 60%), radial-gradient(at 100% 100%, #008384 0px, transparent 50%); }
.hs-pattern-2 { background-color: #00082A; background-image: linear-gradient(#00838433 1px, transparent 1px), linear-gradient(90deg, #00838433 1px, transparent 1px); background-size: 24px 24px; }
.hs-pattern-3 { background-color: #00082A; background-image: repeating-radial-gradient(circle at 0 0, transparent 0, #00082A 14px, #EEBA0033 14px, #EEBA0033 15px); }
.hs-pattern-4 {
  background-color: #103A65;
  background-image: radial-gradient(#EEBA00 1px, transparent 1px), radial-gradient(#008384 1px, transparent 1px);
  background-size: 20px 20px; background-position: 0 0, 10px 10px;
}
.hs-pattern-5 { background: repeating-linear-gradient(45deg, #103A65 0, #103A65 10px, #00082A 10px, #00082A 20px); }
.hs-pattern-6 { background: conic-gradient(from 180deg at 50% 50%, #00082A 0deg, #103A65 120deg, #008384 240deg, #00082A 360deg); }
.hs-pattern-7 { background-color: #00082A; background-image: repeating-linear-gradient(90deg, transparent, transparent 20px, #FFC90015 20px, #FFC90015 21px, transparent 21px, transparent 40px, #F2295B15 40px, #F2295B15 41px); }
.hs-pattern-8 { background: linear-gradient(180deg, #008384 0%, #103A65 40%, #00082A 100%); }
.hs-pattern-9 { background-color: #F0F0F0; background-image: radial-gradient(circle at 100% 0%, #FFC90033 0%, transparent 40%), radial-gradient(circle at 0% 100%, #00838433 0%, transparent 40%); }
.hs-pattern-10 { background: repeating-linear-gradient(-45deg, #FFC900, #FFC900 15px, #EEBA00 15px, #EEBA00 30px); }
.hs-pattern-11 { background-color: #103A65; background-image: repeating-radial-gradient(circle, transparent, transparent 20px, #FFFFFF08 20px, #FFFFFF08 21px); }
.hs-pattern-12 { background-color: #00082A; background-image: linear-gradient(115deg, #103A65 0%, transparent 50%), linear-gradient(-115deg, #008384 0%, transparent 50%), linear-gradient(to top, #F2295B33 0%, transparent 50%); }
.hs-pattern-13 {
  background-color: #00082A;
  background-image: linear-gradient(45deg, #103A65 25%, transparent 25%, transparent 75%, #103A65 75%), linear-gradient(45deg, #103A65 25%, transparent 25%, transparent 75%, #103A65 75%);
  background-size: 30px 30px; background-position: 0 0, 15px 15px;
}
.hs-pattern-14 { background: linear-gradient(to right, #103A65, #008384, #EEBA00); }
.hs-pattern-15 {
  background-color: #FFFFFF;
  background-image: radial-gradient(#103A65 15%, transparent 16%), radial-gradient(#EEBA00 15%, transparent 16%);
  background-size: 30px 30px; background-position: 0 0, 15px 15px;
}
.hs-pattern-16 { background-color: #00082A; background-image: linear-gradient(90deg, #00838440 1px, transparent 1px), linear-gradient(0deg, #00838440 1px, transparent 1px); background-size: 40px 40px; background-position: 20px 20px; }
.hs-pattern-17 { background-color: #00082A; background-image: radial-gradient(circle at 50% -20%, #F2295B80, transparent 60%); }
.hs-pattern-18 { background-color: #103A65; background-image: linear-gradient(to right, transparent 95%, #00082A 95%); background-size: 40px 100%; }
.hs-pattern-19 { background-color: #00082A; background-image: radial-gradient(circle at 20% 80%, #EEBA0040 0%, transparent 40%), radial-gradient(circle at 80% 20%, #00838440 0%, transparent 40%); }

/* --- PRICING CARD --- */
.hs-pricing {
  max-width: 560px; margin-inline: auto; text-align: center;
  background: var(--hs-white); border-radius: 12px;
  padding: clamp(var(--size-5), 4vw, var(--size-7));
  border-top: 4px solid var(--hs-accent);
  box-shadow: var(--hs-shadow-medium);
}
.hs-pricing__price {
  font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800;
  color: var(--hs-accent); line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}
.hs-pricing__tagline { color: var(--hs-text-muted); font-size: var(--font-size-0); margin-top: var(--size-1); }
.hs-pricing__features {
  text-align: left; list-style: none; padding: 0;
  margin: var(--size-4) 0;
}
.hs-pricing__features li {
  padding: var(--size-2) 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: var(--font-size-1); color: var(--hs-text);
}
.hs-pricing__features li::before { content: "\2713 "; color: var(--hs-teal); font-weight: 700; margin-right: 0.5em; }
.hs-pricing__guarantee {
  background: var(--hs-accent-faint); border-radius: var(--hs-radius);
  padding: var(--size-3); margin-bottom: var(--size-4);
  font-size: var(--font-size-0); color: var(--hs-text);
}
.hs-pricing__hint { font-size: var(--font-size-00); color: var(--hs-text-muted); margin-top: var(--size-3); }

@media (max-width: 768px) {
  .hs-podcast-featured { flex-direction: column; text-align: center; }
  .hs-podcast-featured__cover { width: 100px; height: 100px; }
}

@media (min-width: 1600px) {
  .hs-post-content { font-size: 1.08rem; }
}
