.page-hero {
    padding: 0;

}

.blog-cover-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 15, 39, 0.86) 0%,
      rgba(0, 45, 117, 0.72) 42%,
      rgba(0, 15, 39, 0.34) 72%,
      rgba(0, 15, 39, 0.18) 100%
    ),
    var(--blog-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.blog-cover-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 18%, rgba(105, 202, 244, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(0, 15, 39, 0.16), rgba(0, 15, 39, 0.44));
  pointer-events: none;
}

.blog-cover-hero .container {
  position: relative;
  z-index: 1;
}

.blog-cover-copy {
  padding: clamp(2rem, 5vw, 4.5rem) 0;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 15, 39, 0.42);
}

.blog-cover-copy h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 2vw, 3rem);
}

.blog-cover-copy .hero-subtitle {
  display:none ;
}

.blog-cover-copy .eyebrow {
  display: none;
}

.blog-cover-copy .blog-breadcrumbs {
  color: rgba(255, 255, 255, 0.78);
}

.blog-cover-copy .blog-breadcrumbs a {
  color: #ffffff;
}

.blog-cover-copy .blog-category-chip,
.blog-cover-copy .blog-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.blog-actions .btn-primary {
  color: #ffffff;
}
.blog-actions .btn-secondary {
  color: #11313c;
}



.blog-hero-grid,
.blog-post-hero-grid {
  display: block;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.blog-breadcrumbs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-breadcrumbs a {
  font-weight: 700;
  color: var(--brand);
}


.blog-hero-card,
.blog-sidebar-card,
.blog-product-card,
.blog-card,
.blog-photo-card,
.blog-note,
.blog-toc,
.blog-table-wrap,
.blog-share-block,
.blog-cta-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 150, 190, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.high-contrast .blog-hero-media,
.high-contrast .blog-post-hero-media,
.high-contrast .blog-hero-card,
.high-contrast .blog-sidebar-card,
.high-contrast .blog-product-card,
.high-contrast .blog-card,
.high-contrast .blog-photo-card,
.high-contrast .blog-note,
.high-contrast .blog-toc,
.high-contrast .blog-table-wrap,
.high-contrast .blog-share-block,
.high-contrast .blog-cta-card {
  background: var(--surface);
}


.blog-hero-media img,
.blog-post-hero-media img,
.blog-card-image,
.blog-photo-card img,
.blog-inline-image,
.blog-product-card img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.blog-hero-media img,
.blog-post-hero-media img {
  aspect-ratio: 4 / 3;
}

.blog-hero-card {
  margin-top: -3.5rem;
  margin-inline: 1.25rem;
  position: relative;
  padding: 1.25rem;
}

.blog-meta-row,
.blog-tags,
.blog-share-row,
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.blog-meta-row{
  margin-top: 2svh;
}

.blog-category-row{
  display: none;
}

.blog-pill,
.blog-tag,
.blog-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.82rem;
}

.blog-category-chip {
  background: rgba(105, 202, 244, 0.16);
  color: var(--brand);
}



.blog-category-strip {
  padding: 1.2rem 0 0;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.blog-category-strip .container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
    align-items: center;
  text-align: center;
  justify-content: center;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.blog-card-image {
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.blog-card-body {
  padding: 1.35rem;
  display: grid;
  gap: 0.75rem;
  flex: 1;
}

.blog-card h2,
.blog-card h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0;
}

.blog-card p {
  color: var(--muted);
  margin: 0;
}

.blog-advice-grid,
.blog-product-grid,
.blog-photo-grid,
.blog-check-grid {
  display: grid;
  gap: 1.25rem;
}

.blog-advice-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.blog-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blog-product-card {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.blog-product-card img {
  aspect-ratio: 1 / 1;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(37, 150, 190, 0.06), rgba(106, 192, 167, 0.08));
}

.blog-product-card h3,
.blog-product-card h4 {
  margin: 0;
  line-height: 1.2;
  font-size: 1.05rem;
}

.blog-product-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.blog-post-section {
  padding-top: 3rem;
}

.blog-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(280px, 360px);
  gap: 2rem;
  align-items: start;
}

.blog-article {
  max-width: none;
  padding: 2rem;
}

.blog-article .lead {
  font-size: 1.18rem;
  color: var(--muted);
}

.blog-article h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  line-height: 1.15;
  margin-top: 2.3rem;
}

.blog-article h3 {
  font-size: 1.32rem;
  line-height: 1.25;
  margin-top: 1.6rem;
}

.blog-article p,
.blog-article li {
  font-size: 1.04rem;
}

.blog-article a {
  font-weight: 800;
  color: var(--brand);
}

.blog-toc {
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}

.blog-toc strong {
  display: block;
  margin-bottom: 0.65rem;
}

.blog-toc ol,
.blog-toc ul {
  margin: 0;
  padding-left: 1.25rem;
}

.blog-note {
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0;
  background: linear-gradient(135deg, rgba(105, 202, 244, 0.14), rgba(106, 192, 167, 0.11));
}

.blog-photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5rem 0;
}

.blog-photo-card {
  overflow: hidden;
}

.blog-photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}

.blog-photo-card figcaption,
.blog-inline-caption {
  padding: 0.8rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-inline-figure {
  margin: 1.6rem 0;
}

.blog-inline-image {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.blog-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.3rem 0;
}

.blog-check-card {
  padding: 1rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.blog-check-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.blog-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: white;
}

.high-contrast .blog-table {
  background: var(--surface);
}

.blog-table th,
.blog-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.blog-table thead th {
  background: var(--surface);
  color: var(--brand-dark);
}

.blog-share-block {
  margin-top: 2rem;
  padding: 1.2rem;
}

.blog-share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 800;
  color: var(--text);
}

.blog-share-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.blog-sidebar {
  position: sticky;
  top: 7.5rem;
  display: grid;
  gap: 1rem;
}

.blog-sidebar-card {
  padding: 1.25rem;
}

.blog-sidebar-card h2,
.blog-sidebar-card h3 {
  margin-top: 0;
  line-height: 1.2;
}

.blog-related-list,
.blog-sidebar-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-related-list a,
.blog-sidebar-list a {
  display: block;
  padding: 0.85rem;
  border-radius: 16px;
  background: var(--surface);
  font-weight: 800;
}

.blog-sidebar .blog-product-card {
  box-shadow: none;
}

.blog-cta-card {
  padding: 2rem;
  display: grid;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(37, 150, 190, 0.14), rgba(106, 192, 167, 0.12));
}

.blog-disclaimer {
  font-size: 0.94rem;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .blog-card-grid,
  .blog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-post-layout,
  .blog-advice-grid {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .blog-hero-grid,
  .blog-post-hero-grid,
  .blog-photo-grid,
  .blog-check-grid,
  .blog-card-grid,
  .blog-product-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero-card {
    margin-top: 1rem;
    margin-inline: 0;
  }

  .blog-article {
    padding: 1.35rem;
  }
}



@media (max-width: 760px) {
  .blog-cover-hero {
    min-height: 620px;
    background-position: center;
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 15, 39, 0.88) 0%,
        rgba(0, 45, 117, 0.74) 54%,
        rgba(0, 15, 39, 0.62) 100%
      ),
      var(--blog-hero-image);
  }

  .blog-cover-copy {
    padding: 4rem 0;
  }
}



/* Mobile article layout fixes */
.blog-post-layout,
.blog-article,
.blog-sidebar,
.blog-sidebar-card,
.blog-product-card,
.blog-card,
.blog-toc,
.blog-note,
.blog-share-block,
.blog-table-wrap,
.blog-photo-card,
.blog-check-card {
  min-width: 0;
  max-width: 100%;
}

.blog-article {
  overflow-wrap: anywhere;
  word-break: normal;
}

.blog-article img,
.blog-article video,
.blog-article iframe {
  max-width: 100%;
  height: auto;
}

.blog-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blog-table {
  min-width: 560px;
}

/* Tablet and small desktop */
@media (max-width: 1100px) {
  .blog-post-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .blog-sidebar {
    position: static;
    width: 100%;
  }

  .blog-sidebar-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .blog-cover-hero {
    min-height: auto;
    align-items: flex-end;
    padding: 5.5rem 0 2rem;
    background-position: center top;
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 15, 39, 0.66) 0%,
        rgba(0, 45, 117, 0.68) 45%,
        rgba(0, 15, 39, 0.88) 100%
      ),
      var(--blog-hero-image);
  }

  .blog-cover-copy {
    width: 100%;
    padding: 1.5rem 0 0;
  }

  .blog-cover-copy h1 {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 0.85rem;
  }

  .blog-cover-copy .hero-subtitle {
    display: block;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
  }

  .blog-cover-copy .eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    margin-bottom: 0.65rem;
  }

  .blog-cover-copy .blog-breadcrumbs {
    font-size: 0.82rem;
    margin-bottom: 0.8rem;
  }

  .blog-meta-row,
  .blog-tags,
  .blog-share-row,
  .blog-card-meta {
    gap: 0.45rem;
  }

  .blog-pill,
  .blog-tag,
  .blog-category-chip {
    min-height: 28px;
    padding: 0.3rem 0.58rem;
    font-size: 0.75rem;
  }

  .blog-post-section {
    padding-top: 1.5rem;
  }

  .blog-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .blog-article {
    width: 100%;
    max-width: 100%;
    padding: 1.1rem;
    border-radius: 18px;
  }

  .blog-article .lead {
    font-size: 1.03rem;
    line-height: 1.65;
  }

  .blog-article h2 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.18;
    margin-top: 1.8rem;
  }

  .blog-article h3 {
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    line-height: 1.25;
    margin-top: 1.3rem;
  }

  .blog-article p,
  .blog-article li {
    font-size: 1rem;
    line-height: 1.72;
  }

  .blog-toc {
    padding: 1rem;
    margin: 1.2rem 0;
    border-radius: 18px;
  }

  .blog-toc ol,
  .blog-toc ul {
    padding-left: 1.1rem;
  }

  .blog-photo-grid,
  .blog-check-grid,
  .blog-sidebar-products {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-photo-card figcaption,
  .blog-inline-caption {
    padding: 0.75rem 0.9rem 0.9rem;
    font-size: 0.86rem;
  }

  .blog-check-card,
  .blog-note,
  .blog-share-block,
  .blog-sidebar-card {
    padding: 1rem;
    border-radius: 18px;
  }

  .blog-share-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

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

  .blog-product-grid,
  .blog-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-category-strip .container {
    justify-content: flex-start;
    text-align: left;
  }
}

/* Very small phones */
@media (max-width: 420px) {
  .blog-cover-hero {
    padding-top: 4.75rem;
    padding-bottom: 1.5rem;
  }

  .blog-cover-copy h1 {
    font-size: clamp(1.55rem, 3vw, 2rem);
  }

  .blog-cover-copy .hero-subtitle {
    font-size: 0.95rem;
  }

  .blog-article {
    padding: 0.95rem;
    border-radius: 16px;
  }

  .blog-article h2 {
    font-size: 1.28rem;
  }

  .blog-article h3 {
    font-size: 1.08rem;
  }

  .blog-article p,
  .blog-article li {
    font-size: 0.96rem;
  }

  .blog-table {
    min-width: 500px;
  }
}



/* =========================================================
   Blog article images: show full images, no cropping
========================================================= */

.blog-inline-figure,
.blog-photo-card {
  overflow: visible;
}

.blog-inline-image,
.blog-photo-card img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  background: var(--surface);
}

.blog-inline-figure {
  display: grid;
  gap: 0;
  margin: 1.6rem 0;
}

.blog-inline-figure .blog-inline-image {
  display: block;
}

/* Keep product/sidebar/card images neat, but not article content images */
.blog-product-card img {
  object-fit: contain;
}

.blog-card-image {
  object-fit: cover;
}

/* Two-column article image cards should still show complete image */
.blog-photo-grid .blog-photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

/* Optional: make small historic portrait images not stretch huge */
.blog-photo-card img[src*="stephen-hales"],
.blog-photo-card img[src*="Poiseuille"] {
  max-height: 360px;
  object-fit: contain;
  background: var(--surface);
}

/* Mobile */
@media (max-width: 760px) {
  .blog-inline-image,
  .blog-photo-card img {
    border-radius: 16px;
  }

  .blog-inline-figure {
    margin: 1.2rem 0;
  }
}