/* Blog list + post — light editorial (blog-design/white-*.html). Site fonts + --color-teal. */

.blog-page--editorial,
.blog-post-editorial {
  --blog-bg: #f9f9f9;
  --blog-surface: #eeeeee;
  --blog-surface-low: #f3f3f3;
  --blog-text: var(--color-black, #121619);
  --blog-muted: var(--color-muted, #6c737d);
  --blog-variant: #3c4947;
  --blog-teal: var(--color-teal, #21c2ae);
  --blog-teal-dark: var(--color-teal-dark, #1da797);
  --blog-navy: var(--color-navy, #17395c);
  --blog-font: var(--font-base, "Manrope", system-ui, sans-serif);
  --blog-font-body: "Work Sans", var(--font-base, "Manrope", system-ui, sans-serif);
  --blog-shadow: 0 32px 64px rgba(26, 28, 28, 0.04);
  --blog-shadow-strong: 0 32px 64px rgba(26, 28, 28, 0.06);

  background: var(--blog-bg);
  color: var(--blog-text);
  font-family: var(--blog-font-body);
  box-sizing: border-box;
  width: 100%;
  padding-bottom: 3rem;
}

.blog-page--editorial {
  padding-top: 2rem;
}

.blog-editorial-section {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  padding-right: clamp(1.25rem, 3vw, 2rem);
  box-sizing: border-box;
}

/* Category pills */
.blog-editorial-categories-wrap {
  margin-bottom: 2.5rem;
}

.blog-editorial-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.blog-editorial-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.35rem;
  border-radius: 9999px;
  font-family: var(--blog-font);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--blog-text);
  background: var(--blog-surface);
  transition: background 0.15s ease, color 0.15s ease;
}

.blog-editorial-pill:hover {
  background: #e8e8e8;
}

.blog-editorial-pill.is-active {
  background: var(--blog-teal);
  color: #fff;
}

.blog-editorial-pill.is-active:hover {
  background: var(--blog-teal-dark);
  color: #fff;
}

/* Grid & cards (open layout like white-index) */
.blog-grid--editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .blog-grid--editorial {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid--editorial {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.blog-card--editorial {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border-radius: 0;
  transition: transform 0.2s ease;
}

.blog-card--editorial:hover {
  transform: translateY(-2px);
}

.blog-card--editorial .blog-card__media {
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--blog-surface-low);
  background-size: cover;
  background-position: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--blog-shadow);
  transition: transform 0.45s ease;
}

.blog-card--editorial:hover .blog-card__media {
  transform: scale(1.03);
}

.blog-card--editorial .blog-card__media--empty {
  background-image: linear-gradient(120deg, rgba(33, 194, 174, 0.12), var(--blog-surface-low));
}

.blog-card--editorial .blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  padding: 0;
}

.blog-card__category {
  font-family: var(--blog-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blog-navy);
}

.blog-card--editorial .blog-card__title {
  font-family: var(--blog-font);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--blog-text);
  transition: color 0.15s ease;
}

.blog-card--editorial:hover .blog-card__title {
  color: var(--blog-teal);
}

.blog-card--editorial .blog-card__summary {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--blog-variant);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blog-muted);
}

.blog-card--editorial .blog-card__footer::after {
  content: "Read more →";
  font-family: var(--blog-font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blog-teal);
  flex-shrink: 0;
}

.blog-editorial-status {
  margin: 0;
  color: var(--blog-muted);
  font-size: 0.95rem;
}

.blog-load-more--editorial {
  margin-top: 2.5rem;
  text-align: center;
}

.blog-editorial-btn {
  padding: 0.65rem 1.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(23, 57, 92, 0.18);
  background: #fff;
  color: var(--blog-navy);
  font-family: var(--blog-font);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.blog-editorial-btn:hover:not(:disabled) {
  border-color: var(--blog-teal);
  color: var(--blog-teal);
}

.blog-editorial-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.blog-editorial-btn--teal {
  border: none;
  background: var(--blog-teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(33, 194, 174, 0.35);
}

.blog-editorial-btn--teal:hover:not(:disabled) {
  background: var(--blog-teal-dark);
  color: #fff;
  opacity: 1;
}

/* --- Post page (white-post) --- */
.blog-article--editorial {
  max-width: none;
  margin: 0;
  padding: 0 0 3rem;
  box-sizing: border-box;
}

.blog-article__narrow {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  padding-right: clamp(1.25rem, 3vw, 2rem);
  box-sizing: border-box;
}

.blog-article__breadcrumb--editorial {
  margin-bottom: 2rem;
  padding-top: 1.5rem;
}

.blog-article__breadcrumb--editorial ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--blog-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--blog-muted);
}

.blog-article__breadcrumb--editorial li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.blog-article__breadcrumb--editorial li:not(:last-child)::after {
  content: "/";
  color: #c4c9cc;
  font-weight: 400;
  margin-left: 0.2rem;
}

.blog-article__breadcrumb--editorial a {
  color: var(--blog-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.blog-article__breadcrumb--editorial a:hover {
  color: var(--blog-teal);
}

.blog-article__breadcrumb-current {
  color: var(--blog-teal);
  font-weight: 700;
}

.blog-article__masthead {
  margin-bottom: 0;
}

.blog-article__title--editorial {
  font-family: var(--blog-font);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.75rem;
  color: var(--blog-text);
}

.blog-article__byline-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(23, 57, 92, 0.1);
  border-bottom: 1px solid rgba(23, 57, 92, 0.1);
}

.blog-article__byline-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.blog-article__byline-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--blog-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blog-muted);
  flex-shrink: 0;
}

.blog-article__byline-avatar .material-icons-outlined {
  font-size: 1.35rem;
}

.blog-article__byline-name {
  margin: 0;
  font-family: var(--blog-font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blog-text);
}

.blog-article__byline-role {
  margin: 0.15rem 0 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blog-muted);
}

.blog-article__byline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.blog-article__byline-meta .blog-article__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blog-muted);
}

.blog-article__byline-meta .material-icons-outlined {
  font-size: 1rem;
  color: var(--blog-teal);
}

.blog-article__hero-outer {
  margin-bottom: 2.5rem;
}

.blog-article__hero--editorial {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--blog-shadow-strong);
  background: var(--blog-surface-low);
}

.blog-article__hero--editorial.blog-article__hero--image {
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background-size: cover;
  background-position: center;
}

.blog-article__hero--editorial:not(.blog-article__hero--image) {
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: #000;
}

.blog-article__hero--editorial iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 0.75rem;
}

/* Body */
.blog-article__body--editorial {
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--blog-text);
}

.blog-article__body--editorial > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.65;
  color: rgba(18, 22, 25, 0.85);
  font-style: italic;
  border-left: 4px solid var(--blog-teal);
  padding-left: 1.75rem;
  margin-bottom: 2rem;
}

.blog-article__body--editorial h2 {
  font-family: var(--blog-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blog-text);
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.blog-article__body--editorial h3 {
  font-family: var(--blog-font);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blog-text);
  margin: 2rem 0 0.65rem;
}

.blog-article__body--editorial p {
  margin: 0 0 1.15rem;
}

.blog-article__body--editorial a {
  color: var(--blog-teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article__body--editorial a:hover {
  color: var(--blog-teal-dark);
}

.blog-article__body--editorial ul,
.blog-article__body--editorial ol {
  margin: 0 0 1.15rem 1.25rem;
  padding: 0;
  color: var(--blog-variant);
}

.blog-article__body--editorial blockquote {
  position: relative;
  margin: 2.5rem 0;
  padding: 2rem 1.5rem 2rem 2rem;
  background: var(--blog-surface-low);
  border-radius: 0.75rem;
  overflow: hidden;
  border: none;
}

.blog-article__body--editorial blockquote p {
  margin: 0 0 0.5rem;
  font-family: var(--blog-font);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  color: var(--blog-teal);
}

.blog-article__body--editorial blockquote cite {
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: var(--blog-navy);
}

.blog-article__body--editorial img,
.blog-article__body--editorial video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
}

.blog-article__body--editorial iframe {
  display: block;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border: 0;
  border-radius: 0.75rem;
}

.blog-article__body--editorial figure {
  margin: 2rem 0;
}

.blog-article__body--editorial figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--blog-muted);
  text-align: center;
  font-style: italic;
}

.blog-article__body--editorial code {
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  border-radius: 0.25rem;
  background: var(--blog-surface);
  color: var(--blog-navy);
}

.blog-article__body--editorial pre {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid rgba(23, 57, 92, 0.1);
  font-size: 0.875rem;
}

.blog-article__body--editorial pre code {
  padding: 0;
  background: none;
}

.blog-article__body--editorial :first-child {
  margin-top: 0;
}

/* Post footer: topic + share */
.blog-article__post-footer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(23, 57, 92, 0.12);
}

@media (min-width: 640px) {
  .blog-article__post-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.blog-article__post-footer .blog-article__topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-article__topic-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--blog-surface);
  color: var(--blog-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.blog-article__topic-pill:hover {
  background: var(--blog-teal);
  color: #fff;
}

.blog-article__share-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-article__share-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blog-muted);
}

.blog-article__share-chips {
  display: flex;
  gap: 0.5rem;
}

.blog-article__share-chip {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blog-surface);
  color: var(--blog-text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.blog-article__share-chip:hover {
  background: var(--blog-teal);
  color: #fff;
}

/* Author card */
.blog-article__author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: 2.5rem;
  background: var(--blog-surface-low);
  border-radius: 1rem;
  border: 1px solid rgba(23, 57, 92, 0.06);
}

@media (min-width: 640px) {
  .blog-article__author-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
}

.blog-article__author-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blog-surface);
  color: var(--blog-muted);
  box-shadow: var(--blog-shadow);
}

.blog-article__author-avatar .material-icons-outlined {
  font-size: 2.25rem;
}

.blog-article__author-name {
  margin: 0 0 0.5rem;
  font-family: var(--blog-font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blog-text);
}

.blog-article__author-bio {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(18, 22, 25, 0.72);
}

/* Related */
.blog-related--editorial {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(23, 57, 92, 0.1);
  color: var(--blog-text);
}

.blog-related__heading {
  font-family: var(--blog-font);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--blog-text);
}

.blog-related-grid--editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .blog-related-grid--editorial {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .blog-related-grid--editorial {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-related-card--editorial {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(23, 57, 92, 0.08);
  box-shadow: 0 1px 4px rgba(23, 57, 92, 0.05);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.blog-related-card--editorial:hover {
  box-shadow: var(--blog-shadow);
  transform: translateY(-2px);
}

.blog-related-card--editorial:hover .blog-related-card__title {
  color: var(--blog-teal);
}

.blog-related-card--editorial .blog-related-card__media {
  aspect-ratio: 16 / 9;
  background: var(--blog-surface-low);
}

.blog-related-card--editorial .blog-related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-related-card--editorial .blog-related-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.blog-related-card--editorial .blog-related-card__title {
  color: var(--blog-text);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.blog-related-card--editorial .blog-related-card__summary {
  color: var(--blog-muted);
}

.blog-back--editorial {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--blog-font);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blog-teal);
  text-decoration: none;
}

.blog-back--editorial:hover {
  color: var(--blog-teal-dark);
  text-decoration: underline;
}
