/*
Theme Name: Modern Ergonomic
Theme URI: https://modernergonomic.com
Author: Modern Ergonomic
Description: A bold editorial child theme for Modern Ergonomic.
Template: twentytwentyfive
Version: 1.0.0
Text Domain: modern-ergonomic
*/

:root {
  --me-orange: #ff4a2f;
  --me-orange-deep: #f05a18;
  --me-black: #171717;
  --me-ink: #202020;
  --me-muted: #6f6f6f;
  --me-line: #e8e5df;
  --me-paper: #f6f3ee;
  --me-card: #ffffff;
  --me-radius: 8px;
  --me-shadow: 0 18px 42px rgba(23, 23, 23, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--me-paper);
  color: var(--me-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.me-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.me-header-wrap {
  padding: 16px 0 4px;
}

.me-header {
  min-height: 52px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  background: var(--me-black);
  color: #fff;
  box-shadow: 0 16px 34px rgba(23, 23, 23, 0.16);
}

.me-header .custom-logo {
  display: block;
  width: min(280px, 50vw);
  height: auto;
}

.me-header .wp-block-site-logo {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  background: #fff;
}

.me-header .wp-block-navigation {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.me-header .wp-block-navigation__container {
  gap: clamp(14px, 2vw, 26px);
  align-items: center;
}

.me-header .wp-block-navigation a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.me-header .wp-block-navigation a:hover {
  color: var(--me-orange);
  opacity: 1;
}

.me-header .wp-block-navigation__responsive-container-open {
  color: #fff;
}

.me-hero {
  padding: clamp(26px, 5vw, 58px) 0 34px;
}

.me-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 12px;
  align-items: stretch;
}

.me-hero-copy,
.me-hero-visual {
  border-radius: var(--me-radius);
  overflow: hidden;
  min-height: clamp(340px, 44vw, 540px);
}

.me-hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4.6vw, 52px);
  background: var(--me-orange);
  color: #fff;
}

.me-kicker,
.me-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: var(--me-black) !important;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.me-kicker::before,
.me-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--me-orange);
}

.me-hero-copy h1 {
  max-width: 880px;
  margin: 30px 0 20px;
  font-size: clamp(3.1rem, 6.3vw, 6.35rem);
  line-height: 0.91;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 950;
}

.me-hero-copy p {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.55;
}

.me-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.me-button,
.me-button-dark,
.wp-block-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.me-button {
  background: #fff;
  color: var(--me-black);
}

.me-button-dark,
.wp-block-read-more {
  background: var(--me-black);
  color: #fff;
}

.me-hero-visual {
  position: relative;
  background: var(--me-black);
}

.me-hero-visual .wp-block-post-template,
.me-hero-visual .wp-block-post,
.me-hero-visual .wp-block-post-featured-image {
  height: 100%;
  margin: 0;
}

.me-hero-visual a {
  display: block;
  height: 100%;
}

.me-hero-visual .wp-block-post-template {
  display: block;
}

.me-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(0.04) contrast(1.04);
}

.me-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 23, 23, 0) 42%, rgba(23, 23, 23, 0.72)),
    linear-gradient(90deg, rgba(255, 74, 47, 0.16), transparent 48%);
  pointer-events: none;
}

.me-pathway-band {
  padding: 10px 0 54px;
}

.me-pathways {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.me-pathway {
  min-height: 188px;
  padding: 24px;
  border-radius: var(--me-radius);
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 23, 23, 0.06);
}

.me-pathway-label {
  margin: 0 0 18px;
  color: var(--me-orange-deep);
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.me-pathway h3 {
  margin: 0 0 14px;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 950;
}

.me-pathway h3 a {
  color: var(--me-black);
  text-decoration: none;
}

.me-pathway h3 a:hover {
  color: var(--me-orange-deep);
}

.me-pathway p:not(.me-pathway-label) {
  margin: 0;
  color: var(--me-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.me-section {
  padding: clamp(46px, 7vw, 86px) 0;
}

.me-section-dark {
  background: var(--me-black);
  color: #fff;
}

.me-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.64fr);
  gap: 46px;
  align-items: end;
  margin-bottom: 28px;
}

.me-section-heading h2,
.archive .wp-block-query-title,
.search .wp-block-query-title {
  margin: 0;
  font-size: clamp(2.4rem, 6.2vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 950;
}

.me-section-heading p {
  margin: 0;
  color: var(--me-muted);
  line-height: 1.6;
}

.me-section-dark .me-section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.me-post-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.me-post-card {
  height: 100%;
  border: 1px solid var(--me-line);
  border-radius: var(--me-radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--me-shadow);
}

.me-post-card .wp-block-post-featured-image {
  aspect-ratio: 16 / 9;
  margin: 0;
  background: #ddd;
  overflow: hidden;
}

.me-post-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.me-post-card:hover .wp-block-post-featured-image img {
  transform: scale(1.035);
}

.me-post-card-body {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 22px 22px 24px;
}

.me-post-card .wp-block-post-terms {
  color: var(--me-orange-deep);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.me-post-card h2,
.me-post-card h3 {
  margin: 14px 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 950;
}

.me-post-card h2 a,
.me-post-card h3 a {
  color: var(--me-black);
  text-decoration: none;
}

.me-post-card .wp-block-post-excerpt {
  margin: 0 0 22px;
  color: var(--me-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.me-post-card .wp-block-post-excerpt__excerpt {
  margin-bottom: 0;
}

.me-post-card .wp-block-read-more {
  width: fit-content;
  margin-top: auto;
}

.me-feature-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.me-feature-panel {
  min-height: 420px;
  border-radius: var(--me-radius);
  padding: clamp(26px, 4vw, 48px);
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 74, 47, 0.34), transparent 28%),
    linear-gradient(145deg, #232323, #111);
  color: #fff;
  overflow: hidden;
}

.me-feature-panel h2 {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(2.7rem, 6.3vw, 6.1rem);
  line-height: 0.91;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 950;
}

.me-feature-list {
  display: grid;
  gap: 8px;
}

.me-feature-list article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--me-radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.me-feature-list h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.me-feature-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.me-single-hero {
  padding: clamp(32px, 5vw, 70px) 0 10px;
}

.me-single-kicker {
  margin-bottom: 20px;
  max-width: 100%;
  flex-wrap: wrap;
}

.me-single-hero h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(2.85rem, 3.65vw, 4.05rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
  font-weight: 850;
}

.me-single-meta {
  margin-top: 22px;
  color: var(--me-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.me-single-image {
  display: none;
}

.me-single-image img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

.me-article-wrap {
  padding: 34px 0 90px;
}

.me-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(260px, 0.34fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.me-article-content {
  font-size: 1.08rem;
  line-height: 1.78;
}

.me-article-content h2 {
  margin-top: 2.1em;
  font-size: clamp(1.65rem, 2.25vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 900;
}

.me-article-content p {
  color: #2f2f2f;
}

.me-sidebar-card {
  position: sticky;
  top: 24px;
  border-radius: var(--me-radius);
  padding: 24px;
  background: var(--me-black);
  color: #fff;
}

.me-sidebar-card h2 {
  margin: 12px 0;
  font-size: 2.2rem;
  line-height: 0.92;
  text-transform: uppercase;
}

.me-sidebar-card p {
  color: rgba(255, 255, 255, 0.72);
}

.me-footer {
  padding: 0 0 40px;
  background: var(--me-black);
  color: #fff;
}

.me-affiliate-strip {
  margin: 0 auto 54px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #101010;
  text-align: center;
}

.me-affiliate-strip p {
  margin: 0 auto;
  max-width: 980px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
}

.me-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}

.me-footer .custom-logo {
  width: min(300px, 64vw);
  height: auto;
}

.me-footer p {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.68);
}

.me-footer a {
  color: #fff;
}

.me-footer .wp-block-navigation {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.me-footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.84rem;
}

.me-article-content figure.wp-block-image {
  margin: 28px 0 34px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 68, 53, 0.08), rgba(255, 255, 255, 0) 42%),
    #fff;
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.08);
}

.me-article-content figure.wp-block-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(240px, 30vw, 340px);
  padding: clamp(18px, 4vw, 34px);
  object-fit: contain;
  box-sizing: border-box;
}

.me-article-content figure.wp-block-image figcaption {
  margin: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(245, 242, 235, 0.72);
  color: #686868;
  font-size: 0.78rem;
  line-height: 1.45;
}

.me-article-content blockquote,
.me-reddit-signal,
.me-key-takeaways,
.me-product-callout {
  margin: 30px 0;
  border-radius: var(--me-radius);
}

.me-article-content blockquote {
  padding: 22px 24px;
  border-left: 6px solid var(--me-orange);
  background: #fff;
  box-shadow: 0 16px 42px rgba(17, 17, 17, 0.06);
}

.me-article-content blockquote p {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 650;
}

.me-article-content blockquote cite {
  color: var(--me-muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.me-reddit-signal,
.me-key-takeaways {
  padding: 22px 24px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.66);
}

.me-reddit-signal h3,
.me-key-takeaways h3,
.me-product-callout h3 {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.me-reddit-signal ul,
.me-key-takeaways ul {
  margin: 0;
  padding-left: 1.1em;
}

.me-reddit-signal li,
.me-key-takeaways li {
  margin: 0 0 10px;
  color: #333;
}

.me-product-callout {
  display: grid;
  grid-template-columns: minmax(160px, 0.38fr) minmax(0, 0.62fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.08);
}

.me-product-callout img {
  display: block;
  width: 100%;
  max-height: 190px;
  padding: 18px;
  object-fit: contain;
  box-sizing: border-box;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 68, 53, 0.08), rgba(255, 255, 255, 0) 46%),
    #f8f6f0;
}

.me-product-callout p {
  margin: 0 0 12px;
}

.me-product-callout a:last-child {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--me-black);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.me-article-content figure.me-stock-image {
  margin: 34px 0 38px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--me-radius);
  background: var(--me-black);
  box-shadow: 0 22px 58px rgba(17, 17, 17, 0.1);
}

.me-article-content figure.me-stock-image img {
  display: block;
  width: 100%;
  height: clamp(310px, 38vw, 460px);
  object-fit: cover;
}

.me-article-content figure.me-stock-image figcaption {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #151515;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.45;
}

.me-buying-bridge {
  margin: 32px 0;
  padding: 22px 24px;
  border-radius: var(--me-radius);
  background: var(--me-orange);
  color: #fff;
}

.me-buying-bridge h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.me-buying-bridge p {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.88);
}

.me-guides-hero {
  padding: clamp(34px, 4.5vw, 66px) 0 18px;
}

.me-guides-hero h1 {
  max-width: 780px;
  margin: 14px 0 18px;
  font-size: clamp(3rem, 5.2vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 950;
}

.me-guides-hero p:not(.me-kicker) {
  max-width: 760px;
  margin: 0;
  color: #464646;
  font-size: 1.15rem;
  line-height: 1.6;
}

.me-guide-topics,
.me-guide-section {
  padding: clamp(28px, 4.5vw, 52px) 0;
}

.me-editorial-feature {
  padding: 8px 0 clamp(24px, 3.5vw, 42px);
}

.me-feature-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  min-height: 390px;
  overflow: hidden;
  border-radius: var(--me-radius);
  background: var(--me-black);
  color: #fff;
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.16);
}

.me-feature-story > p:empty,
.me-guide-card > p:empty {
  display: none;
}

.me-feature-story-image {
  display: block;
  min-height: 390px;
  overflow: hidden;
}

.me-feature-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.me-feature-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3.5vw, 42px);
}

.me-feature-story-copy .me-kicker {
  width: fit-content;
  color: var(--me-black);
  background: #fff;
}

.me-feature-story-copy h2 {
  margin: 18px 0;
  font-size: clamp(1.9rem, 3vw, 3.05rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.me-feature-story-copy h2 a {
  color: #fff;
  text-decoration: none;
}

.me-feature-story-copy p:not(.me-kicker) {
  max-width: 46ch;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.98rem;
  line-height: 1.55;
}

.me-feature-story-copy .me-button-dark {
  background: #fff;
  color: var(--me-black);
}

.me-guide-section-heading {
  display: flex;
  gap: 22px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.me-guide-section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.me-guide-section-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--me-muted);
  line-height: 1.5;
}

.me-guide-section-heading a {
  color: var(--me-black);
  font-weight: 900;
}

.me-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.me-topic-card {
  display: grid;
  min-height: 168px;
  align-content: space-between;
  padding: 22px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--me-radius);
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 23, 23, 0.06);
  color: var(--me-black);
  text-decoration: none;
}

.me-topic-card span {
  color: var(--me-orange-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.me-topic-card strong {
  display: block;
  margin-top: 16px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.me-topic-card em {
  display: block;
  margin-top: 14px;
  color: var(--me-muted);
  font-style: normal;
  line-height: 1.45;
}

.me-topic-card:hover {
  border-color: rgba(255, 68, 53, 0.45);
  transform: translateY(-2px);
}

.me-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.me-guide-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.me-guide-card {
  min-height: 100%;
}

.me-guide-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f0eb;
}

.me-guide-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.me-guide-card:hover .me-guide-card-image img {
  transform: scale(1.035);
}

.me-card-image-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--me-orange), #181818);
}

.me-guide-card-terms {
  min-height: 1.2em;
  margin: 0 0 12px;
  color: var(--me-orange-deep);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.me-guide-card-terms a {
  color: var(--me-orange-deep);
}

.me-guide-card .me-post-card-body {
  min-height: 218px;
}

.me-guide-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 1.55vw, 1.7rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
}

.me-guide-card h3 a {
  color: var(--me-black);
  text-decoration: none;
}

.me-guide-card p:not(.me-guide-card-terms) {
  margin: 0 0 18px;
  color: var(--me-muted);
  font-size: 0.88rem;
  line-height: 1.48;
}

.me-guide-section-curated .me-guide-grid {
  align-items: stretch;
}

.me-guide-section-curated .me-guide-card:first-child {
  grid-column: span 2;
}

.me-guide-section-curated .me-guide-card:first-child .me-guide-card-image {
  aspect-ratio: 21 / 9;
}

.me-guide-section-curated .me-guide-card:first-child h3 {
  max-width: 780px;
  font-size: clamp(1.8rem, 3vw, 3.25rem);
}

.me-guide-section-curated .me-guide-card:first-child .me-post-card-body {
  min-height: 190px;
}

.me-guide-card-link {
  width: fit-content;
  margin-top: auto;
  color: #fff;
  border-radius: 999px;
  background: var(--me-black);
  padding: 10px 14px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .me-hero-grid,
  .me-section-heading,
  .me-feature-strip,
  .me-feature-story,
  .me-article-grid {
    grid-template-columns: 1fr;
  }

  .me-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .me-guide-grid,
  .me-guide-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .me-guide-section-curated .me-guide-card:first-child {
    grid-column: span 2;
  }

  .me-guide-section-heading {
    display: block;
  }

  .me-guide-section-heading p {
    margin-top: 12px;
  }

  .me-pathways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .me-post-grid .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .me-hero-copy,
  .me-hero-visual {
    min-height: 320px;
  }

  .me-product-callout {
    grid-template-columns: 1fr;
  }

  .me-article-content figure.me-stock-image img {
    height: 260px;
  }
}

@media (max-width: 640px) {
  .me-shell {
    width: min(100% - 24px, 1180px);
  }

  .me-header {
    border-radius: 22px;
  }

  .me-header .custom-logo {
    width: min(230px, 62vw);
  }

  .me-hero {
    padding-top: 20px;
  }

  .me-hero-copy {
    padding: 24px;
  }

  .me-hero-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
  }

  .me-single-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    line-height: 1.02;
  }

  .me-guides-hero h1 {
    font-size: clamp(2.6rem, 13vw, 4.4rem);
  }

  .me-topic-grid,
  .me-guide-grid,
  .me-guide-grid-compact {
    grid-template-columns: 1fr;
  }

  .me-guide-section-curated .me-guide-card:first-child {
    grid-column: auto;
  }

  .me-guide-section-curated .me-guide-card:first-child .me-guide-card-image {
    aspect-ratio: 16 / 9;
  }

  .me-pathways,
  .me-post-grid .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .me-pathway {
    min-height: auto;
  }

  .me-post-card-body {
    min-height: auto;
  }
}
