/* v2 Company News blog — clean components on the theme's design system (Ginto fonts + brand
   tokens from theme-shell), NO captured migration-recon.css. Tuned close to production
   (Ginto + brand green, 17.5px body, ~660px column), leaning modern (slightly looser line
   height + block spacing). post_body (editor rich text) is styled via .blog-prose. */

:root { --blog-green: rgb(3, 104, 90); }

.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 32px;
  color: var(--blog-green);
}
/* full-bleed featured image (Resources posts) — extends beyond the text column, aspect 2→3→4,
   mirroring production blog-post-mental.html. */
.blog-featured { position: relative; margin: 0 -1.5rem 2.5rem; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 6px; }
.blog-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (min-width: 768px) { .blog-featured { margin: 0 -2.5rem 2.5rem; aspect-ratio: 3 / 1; } }
@media (min-width: 1280px) { .blog-featured { margin: 0 -5rem 2.5rem; aspect-ratio: 4 / 1; } }
.blog-title {
  font-family: "ABC Ginto Plus Variable", "ABC Ginto Normal Variable", system-ui, sans-serif;
  font-size: 40px;
  font-weight: 456;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 1.5rem;
}
.blog-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
  margin: 0 0 3rem;
}

/* the editor-authored rich text */
.blog-prose {
  font-family: "ABC Ginto Normal Variable", system-ui, sans-serif;
  font-size: 17.5px;
  font-weight: 400;
  line-height: 1.4;
}
.blog-prose > * + * { margin-top: 1.25rem; }
.blog-prose h2, .blog-prose h3, .blog-prose h4 {
  font-family: "ABC Ginto Plus Variable", system-ui, sans-serif;
  font-weight: 456;
  line-height: 1.15;
  margin: 2.5rem 0 0;
}
.blog-prose h2 { font-size: 30px; }
.blog-prose h3 { font-size: 24px; }
.blog-prose h4 { font-size: 20px; }
.blog-prose p { margin: 0; }
.blog-prose ul { list-style: disc; padding-left: 1.6rem; }
.blog-prose ol { list-style: decimal; padding-left: 1.6rem; }
.blog-prose li { margin: 0.35rem 0; }
.blog-prose li > ul, .blog-prose li > ol { margin-top: 0.35rem; }
.blog-prose a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.blog-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.blog-prose blockquote { border-left: 3px solid currentColor; padding-left: 1rem; font-style: italic; opacity: 0.9; }
.blog-prose strong, .blog-prose b { font-weight: 600; }
.blog-prose hr { border: 0; border-top: 1px solid currentColor; opacity: 0.2; }

/* related posts */
.blog-related { max-width: 1120px; margin: 4rem auto 0; padding: 0 24px; color: var(--blog-green); }
.blog-related-heading {
  font-family: "ABC Ginto Plus Variable", system-ui, sans-serif;
  font-size: 22px; font-weight: 456; text-align: center; margin: 0 0 2.25rem;
}
.blog-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.blog-related-card a { text-decoration: none; color: var(--blog-green); display: block; }
.blog-related-card img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 1rem; aspect-ratio: 16/10; object-fit: cover; }
.blog-related-card .tag { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.7; }
.blog-related-card h3 { font-family: "ABC Ginto Plus Variable", system-ui, sans-serif; font-size: 18px; font-weight: 456; margin: 0.25rem 0 0; }
.blog-seeall { text-align: center; margin: 3.5rem 0 1rem; }
.blog-seeall a {
  display: inline-block; border: 1px solid currentColor; border-radius: 999px;
  padding: 12px 32px; color: var(--blog-green); text-decoration: none; font-size: 15px;
}

/* ---- listing (blog index) ---- */
.blog-list { max-width: 1200px; margin: 0 auto; padding: 72px 24px; color: var(--blog-green); }
.blog-list-hero { text-align: center; max-width: 660px; margin: 0 auto 3.5rem; }
.blog-list-hero h1 {
  font-family: "ABC Ginto Plus Variable", system-ui, sans-serif;
  font-size: 32px; font-weight: 456; line-height: 1.1; margin: 0 0 1rem;
}
.blog-list-hero p { font-size: 18px; line-height: 1.5; opacity: 0.85; margin: 0; }
/* toolbar: curated topic-filter nav (left) + blog search (right), matching production */
.blog-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 1.5rem; margin: 0 0 2.5rem; }
.blog-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
/* tags: inactive = plain text; ACTIVE = outlined pill capsule (matches production, not an underline) */
.blog-nav a { color: var(--blog-green); text-decoration: none; font-size: 15px; opacity: 0.7; white-space: nowrap; padding: 5px 16px; border-radius: 999px; border: 1px solid transparent; }
.blog-nav a:hover { opacity: 1; }
.blog-nav a.active { opacity: 1; border-color: currentColor; }
/* search: one rounded outlined pill with the icon INLINE (matches production's button-inline
   variant), not a bordered input + separate filled button. */
.blog-search { flex: 0 0 auto; }
.blog-search .hs-search-field__form, .blog-search form {
  display: flex; align-items: center; gap: 0.25rem;
  border: 1px solid rgba(3, 104, 90, 0.4); border-radius: 999px; background: transparent;
  padding: 0 0.4rem 0 1.1rem;
}
.blog-search input[type="text"], .blog-search input[type="search"], .blog-search .hs-search-field__input {
  border: 0; background: transparent; padding: 0.55rem 0.25rem; font-size: 14px;
  color: var(--blog-green); min-width: 190px; outline: none;
}
.blog-search input::placeholder { color: var(--blog-green); opacity: 0.7; }
.blog-search button { background: transparent; border: 0; padding: 0.4rem; color: var(--blog-green); cursor: pointer; display: flex; align-items: center; }
.blog-search button svg, .blog-search button i, .blog-search button img { width: 16px; height: 16px; fill: currentColor; color: var(--blog-green); }
.blog-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.blog-card {
  display: flex; flex-direction: column; height: 100%; min-height: 340px;
  border-radius: 16px; padding: 2.5rem; text-decoration: none; color: var(--blog-green);
  background: #fff; border: 1px solid rgba(3, 104, 90, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover { box-shadow: 0 14px 34px rgba(3, 104, 90, 0.13); transform: translateY(-2px); }
.blog-card .tag { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.7; }
.blog-card h3 {
  font-family: "ABC Ginto Plus Variable", system-ui, sans-serif;
  font-size: 24px; font-weight: 456; line-height: 1.2; margin: 0.75rem 0 1rem;
}
.blog-card .summary { font-size: 15px; line-height: 1.55; opacity: 0.85; flex: 1 1 auto; }
.blog-card .date { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; margin-top: 2rem; }
/* tag-tinted cards (Company News topics; other blogs fall back to the neutral card) */
.blog-card.bg-press-release { background: #e9f1fb; border-color: transparent; }
.blog-card.bg-media { background: #e7f4ed; border-color: transparent; }
.blog-card.bg-crisis-education { background: #f1ecf8; border-color: transparent; }
/* pagination (@hubspot/pagination) */
.blog-pagination, .blog-list .pagination { display: flex; justify-content: center; gap: 0.5rem; margin: 3.5rem 0 0; list-style: none; padding: 0; }
.blog-list .pagination a, .blog-list .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  border-radius: 999px; border: 1px solid rgba(3, 104, 90, 0.2); color: var(--blog-green);
  text-decoration: none; font-size: 14px;
}
.blog-list .pagination .active a, .blog-list .pagination a[aria-current] { background: var(--blog-green); color: #fff; border-color: var(--blog-green); }
