/* Blog, articles and pages. Layout follows a resource-centre pattern: quiet search
   bar, large type, rounded imagery and generous whitespace. */
.blog-page .main-shell {
  max-width: none;
  padding: 0 0 64px;
}
.blog {
  --blog-ink: #222;
  --blog-muted: #6a6a6a;
  --blog-line: #ebebeb;
  --blog-soft: #f7f7f7;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  color: var(--blog-ink);
}
.blog .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Bar: brand, search, help --------------------------------------------- */
.blog-bar {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 440px) 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px 0 8px;
}
.blog-bar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 15px;
  width: fit-content;
}
.blog-bar-help {
  justify-self: end;
  font-size: 14px;
  font-weight: 600;
}
.blog-bar-help:hover {
  text-decoration: underline;
}
.blog-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 6px 0 20px;
  border: 1px solid var(--blog-line);
  border-radius: 999px;
  background: var(--blog-soft);
  transition: box-shadow 0.2s, background 0.2s;
}
.blog-search:focus-within {
  background: #fff;
  box-shadow: 0 2px 14px #0000001f;
}
.blog-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--blog-ink);
}
.blog-search button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--blog-ink);
  color: #fff;
  cursor: pointer;
}
.blog-search button .icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}
.blog-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 0;
}
.blog-chips a {
  padding: 8px 18px;
  border: 1px solid var(--blog-line);
  border-radius: 999px;
  font-size: 13px;
  transition: border-color 0.15s, background 0.15s;
}
.blog-chips a:hover {
  border-color: var(--blog-ink);
}

/* Type -------------------------------------------------------------------- */
.blog-h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
}
.blog-h1.is-left {
  text-align: left;
}
.blog-lede {
  margin: 10px 0 0;
  font-size: 18px;
  color: var(--blog-muted);
}

/* Feature ---------------------------------------------------------------- */
.blog-feature {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 56px 0 24px;
}
.blog-feature-sub {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
  text-align: center;
  color: var(--blog-muted);
}
.blog-feature-media {
  display: block;
  width: min(100%, 880px);
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: 24px;
  background: var(--blog-soft);
}
.blog-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-button,
.blog-body a.cms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 10px;
  background: var(--blog-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.blog-button:hover,
.blog-body a.cms-button:hover {
  background: #000;
  transform: translateY(-1px);
}
.blog-button:focus-visible,
.blog-body a.cms-button:focus-visible,
.blog-card:focus-visible {
  outline: 3px solid #0b5a4e;
  outline-offset: 3px;
}

/* Sections and cards ------------------------------------------------------- */
.blog-section {
  padding: 40px 0 8px;
}
.blog-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.blog-section h2,
.blog-related h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.blog-all {
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--blog-muted);
}
.blog-all:hover {
  color: var(--blog-ink);
}
.blog-row,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
}
.blog-row.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.blog-card {
  display: grid;
  align-content: start;
  gap: 10px;
  border-radius: 14px;
}
.blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #ececec;
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.blog-card:hover .blog-card-media img {
  transform: scale(1.03);
}
.blog-card-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #eef2ef;
}
.blog-card-fallback img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.85;
}
.blog-card:hover .blog-card-fallback img {
  transform: none;
}
.blog-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.blog-card-summary {
  font-size: 14px;
  line-height: 1.45;
  color: var(--blog-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-related .blog-card-title {
  font-size: 17px;
}
.blog-empty {
  margin: 14px 0;
  text-align: center;
  color: var(--blog-muted);
  font-size: 16px;
}
.blog-empty a {
  text-decoration: underline;
  color: var(--blog-ink);
}
.blog-empty-state {
  padding: 96px 0 72px;
}
.blog-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 36px 0 8px;
  font-size: 14px;
}
.blog-pager a {
  padding: 10px 18px;
  border: 1px solid var(--blog-line);
  border-radius: 999px;
  font-weight: 600;
}
.blog-pager a:hover {
  border-color: var(--blog-ink);
}
.blog-cta {
  padding-top: 56px;
}
.blog-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.blog-tiles a {
  display: grid;
  gap: 4px;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--blog-soft);
  transition: background 0.2s;
}
.blog-tiles a:hover {
  background: #efefef;
}
.blog-tiles strong {
  font-size: 17px;
}
.blog-tiles span {
  color: var(--blog-muted);
  font-size: 15px;
}

/* Breadcrumb ----------------------------------------------------------------- */
.blog-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 6px;
  font-size: 13px;
  color: var(--blog-muted);
}
.blog-crumbs a:hover {
  text-decoration: underline;
  color: var(--blog-ink);
}
.blog-crumbs [aria-current] {
  color: var(--blog-ink);
}

/* Article --------------------------------------------------------------------- */
.blog-article {
  max-width: 740px;
  margin: 0 auto;
  padding-bottom: 24px;
}
.blog-article .blog-crumbs {
  padding-left: 0;
}
.blog-article-head {
  display: grid;
  gap: 14px;
  padding: 24px 0 28px;
}
.blog-article-head h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.blog-subtitle {
  margin: 0;
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.35;
  color: #3b3b3b;
}
.blog-byline {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--blog-muted);
}
.blog-share {
  display: flex;
  gap: 8px;
}
.blog-share a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--blog-line);
  color: var(--blog-ink);
  transition: background 0.15s, border-color 0.15s;
}
.blog-share a:hover {
  background: var(--blog-soft);
  border-color: #cfcfcf;
}
.blog-share svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.blog-hero {
  margin: 0 0 32px;
}
.blog-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 20px;
  background: var(--blog-soft);
}
.blog-body {
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.blog-body > :first-child {
  margin-top: 0;
}
.blog-body p {
  margin: 0 0 1.1em;
}
.blog-body h2 {
  margin: 1.7em 0 0.55em;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.blog-body h3 {
  margin: 1.5em 0 0.5em;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}
.blog-body h4 {
  margin: 1.4em 0 0.4em;
  font-size: 19px;
  font-weight: 650;
}
.blog-body ul,
.blog-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.blog-body li {
  margin-bottom: 0.55em;
  padding-left: 0.2em;
}
.blog-body a:not(.cms-button) {
  color: var(--blog-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-body a:not(.cms-button):hover {
  color: #0b5a4e;
}
.blog-body blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--blog-ink);
  font-size: 1.1em;
  font-style: italic;
  color: #3b3b3b;
}
.blog-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6em auto;
  border-radius: 16px;
}
.blog-body hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--blog-line);
}
.blog-body p.cms-button-row {
  margin: 1.4em 0 1.6em;
}
.blog-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 8px;
  font-size: 14px;
}
.blog-author span:last-child {
  display: grid;
}
.blog-author small {
  color: var(--blog-muted);
}
.blog-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0b5a4e;
  color: #fff;
  font-weight: 700;
}
.blog-helpful {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--blog-line);
}
.blog-helpful form {
  display: flex;
  align-items: center;
  gap: 14px;
}
.blog-helpful p {
  margin: 0;
  color: var(--blog-muted);
}
.blog-thumbs {
  display: inline-flex;
  border: 1px solid var(--blog-line);
  border-radius: 10px;
  overflow: hidden;
}
.blog-thumbs button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  border: 0;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.blog-thumbs button + button {
  border-left: 1px solid var(--blog-line);
}
.blog-thumbs button:hover {
  background: var(--blog-soft);
}
.blog-thumbs svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--blog-ink);
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.blog-helpful-q {
  font-size: 14px;
}
.blog-related {
  padding-top: 56px;
}
.blog-related h2 {
  margin-bottom: 22px;
}
.blog-preview {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff4d6;
  color: #6b4b00;
  font-size: 14px;
}
.blog-preview a {
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 1000px) {
  .blog-row,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blog-row.is-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .blog {
    padding: 0 20px;
  }
  .blog-bar {
    grid-template-columns: 1fr auto;
    padding-top: 14px;
  }
  .blog-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .blog-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .blog-chips a {
    flex: none;
  }
  .blog-feature {
    padding-top: 32px;
  }
  .blog-feature-media {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }
  .blog-section {
    padding-top: 30px;
  }
  .blog-section h2,
  .blog-related h2 {
    font-size: 24px;
  }
  .blog-row,
  .blog-row.is-three {
    display: grid;
    grid-template-columns: none;
    scroll-padding: 0 20px;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    gap: 14px;
    margin: 0 -20px;
    padding: 0 20px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .blog-row > * {
    scroll-snap-align: start;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-tiles {
    grid-template-columns: 1fr;
  }
  .blog-body {
    font-size: 17px;
  }
  .blog-body h2 {
    font-size: 25px;
  }
  .blog-hero img {
    border-radius: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blog *,
  .blog *::before {
    transition: none !important;
  }
}
