/*
Theme Name: Medamie
Theme URI: https://medamie.com/
Author: Medamie
Description: A refined one-page classic WordPress theme for Medamie, built around practical health resources, clear information and thoughtfully designed tools.
Version: 1.1.14
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: medamie
*/

:root {
  --white: #FFFFFF;
  --soft: #F7F7F7;
  --line: #E9E9E9;
  --muted: #707070;
  --ink: #1E1E1E;
  --black: #000000;
  --header-height: 80px;
  --container: 1240px;
  --radius: 28px;
  --shadow: 0 18px 55px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
::selection { background: var(--black); color: var(--white); }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding: 130px 0; position: relative; }
.section--soft { background: var(--soft); }
.section-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  color: var(--black);
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 600;
}
.section-copy { max-width: 760px; margin-top: 28px; color: var(--muted); font-size: clamp(18px, 2vw, 20px); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: height .35s ease, background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
}
.site-header.is-scrolled {
  --header-height: 64px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: rgba(0,0,0,.07);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-branding { display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-branding img { display: block; width: 164px; height: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 32px; padding: 0; margin: 0; }
.site-nav a { color: var(--muted); font-size: 15px; font-weight: 600; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus { color: var(--black); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 9px; cursor: pointer; }
.menu-toggle span { display:block; width:24px; height:2px; margin:5px 0; background:var(--black); transition:.25s ease; }

.hero {
  min-height: 100svh;
  padding: 170px 0 90px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); align-items: center; gap: 80px; }
.hero h1 {
  max-width: 950px;
  margin: 0;
  color: var(--black);
  font-size: clamp(58px, 7.1vw, 88px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 600;
}
.hero-copy { max-width: 760px; margin: 34px 0 0; color: var(--muted); font-size: clamp(19px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border-radius: 999px;
  border: 1px solid var(--black);
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.button:hover, .button:focus { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.13); }
.button--dark { background: var(--black); color: var(--white); }
.button--light { background: var(--white); color: var(--black); }
.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-orbit { width: min(100%, 470px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; position: relative; animation: medamieFloat 8s ease-in-out infinite; }
.hero-orbit::before, .hero-orbit::after { content:""; position:absolute; top:50%; width:44%; aspect-ratio:1; border-radius:50%; background:var(--black); transform:translateY(-50%); }
.hero-orbit::before { left:7%; clip-path: inset(0 18% 0 0 round 50%); }
.hero-orbit::after { right:7%; }
.hero-caption { position:absolute; bottom: 42px; right: 6px; font-size: 13px; color: var(--muted); letter-spacing:.12em; text-transform:uppercase; }

.about-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 90px; align-items: start; }
.about-copy { font-size: clamp(20px,2.2vw,25px); color: var(--ink); max-width: 780px; }
.about-copy p { margin: 0 0 25px; }
.about-copy p:last-child { margin-bottom: 0; color: var(--muted); font-size: 19px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin-top: 64px; }
.card {
  min-height: 320px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: scale(1.02); box-shadow: var(--shadow); border-color: #d8d8d8; }
.card-number { color: var(--muted); font-size: 13px; font-weight:700; letter-spacing:.14em; }
.card h3 { margin: 0 0 12px; color:var(--black); font-size: 30px; line-height:1.12; letter-spacing:-.035em; }
.card p { margin:0; color:var(--muted); font-size:16px; }
.card-link { margin-top: 30px; font-size: 15px; font-weight: 700; }

.resource-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 64px; }
.resource-card { padding: 38px; border-radius:var(--radius); background:var(--white); border:1px solid var(--line); min-height:250px; transition:.3s ease; }
.resource-card:hover { transform:scale(1.02); box-shadow:var(--shadow); }
.resource-card h3 { margin: 42px 0 12px; font-size:28px; letter-spacing:-.03em; }
.resource-card p { margin:0; color:var(--muted); }
.resource-icon { width:54px; height:54px; border:1px solid var(--black); border-radius:50%; display:grid; place-items:center; font-size:24px; }
.coming-note { margin-top: 22px; color:var(--muted); font-size:15px; }

.companion-wrap { display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; }
.companion-panel { min-height: 520px; border-radius: 38px; background:var(--soft); display:grid; place-items:center; overflow:hidden; position:relative; }
.companion-object { width: 54%; aspect-ratio: .72; background:var(--black); border-radius:16px; transform:rotate(-7deg); box-shadow: 30px 38px 70px rgba(0,0,0,.18); animation: medamieFloat 8s ease-in-out infinite; position:relative; }
.companion-object::after { content:"Medamie"; position:absolute; left:27px; bottom:30px; color:var(--white); font-size:20px; letter-spacing:-.03em; }
.badge { display:inline-flex; align-items:center; height:34px; padding:0 14px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.companion-copy .section-title { margin-top:20px; }
.companion-copy p { color:var(--muted); max-width:570px; font-size:20px; margin:28px 0 0; }

.contact-box { padding: 74px; border-radius: 38px; background:var(--black); color:var(--white); display:grid; grid-template-columns:1fr auto; gap:50px; align-items:end; }
.contact-box .section-kicker { color:#9e9e9e; }
.contact-box .section-title { color:var(--white); max-width:760px; }
.contact-links { display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
.contact-links a { color:var(--white); border-bottom:1px solid rgba(255,255,255,.35); font-size:17px; }

.closing { padding: 145px 0; text-align:center; }
.closing h2 { margin:0 auto; max-width:1000px; color:var(--black); font-size:clamp(48px,6.5vw,78px); line-height:1.03; letter-spacing:-.055em; font-weight:600; }

.site-footer { background:var(--black); color:var(--white); padding:72px 0 38px; }
.footer-top { min-height: 260px; display:flex; flex-direction:column; justify-content:space-between; gap:60px; }
.footer-logo img { width:180px; filter:invert(1); }
.footer-nav { display:flex; flex-wrap:wrap; gap:28px; }
.footer-nav a { color:#b6b6b6; font-size:15px; }
.footer-bottom { margin-top:55px; padding-top:25px; border-top:1px solid rgba(255,255,255,.14); display:flex; justify-content:space-between; gap:20px; color:#777; font-size:13px; }

.reveal { opacity:0; transform:translateY(26px); transition:opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity:1; transform:translateY(0); }
.delay-1 { transition-delay:.12s; }
.delay-2 { transition-delay:.24s; }
.delay-3 { transition-delay:.36s; }
.hero .reveal { animation: heroReveal .85s ease forwards; }
.hero .delay-1 { animation-delay:.15s; }
.hero .delay-2 { animation-delay:.35s; }

.entry-content, .entry-header, .site-main:not(.home-main) { width:min(calc(100% - 48px), 900px); margin-inline:auto; }
.site-main:not(.home-main) { padding:150px 0 100px; }

@keyframes medamieFloat { 0%,100% { transform:translateY(4px); } 50% { transform:translateY(-4px); } }
@keyframes heroReveal { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; }
  .reveal { opacity:1; transform:none; }
}

@media (max-width: 960px) {
  .hero-grid, .about-grid, .companion-wrap, .contact-box { grid-template-columns:1fr; }
  .hero { min-height:auto; }
  .hero-visual { min-height:420px; }
  .cards { grid-template-columns:1fr; }
  .card { min-height:260px; }
  .contact-box { align-items:start; padding:52px; }
}

@media (max-width: 760px) {
  body.admin-bar .site-header { top:46px; }
  .container { width:min(calc(100% - 32px), var(--container)); }
  .section { padding:90px 0; }
  .menu-toggle { display:block; }
  .site-nav { position:absolute; top:100%; left:16px; right:16px; padding:22px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.98); box-shadow:var(--shadow); opacity:0; visibility:hidden; transform:translateY(-8px); transition:.25s ease; }
  .site-nav.is-open { opacity:1; visibility:visible; transform:translateY(0); }
  .site-nav ul { flex-direction:column; align-items:flex-start; gap:18px; }
  .hero { padding-top:132px; }
  .hero-grid { gap:30px; }
  .hero-visual { min-height:330px; }
  .resource-grid { grid-template-columns:1fr; }
  .contact-box { padding:38px 28px; }
  .footer-bottom { flex-direction:column; }
}

/* Medamie 1.1 — unified Sites-inspired visual system */
:root {
  --soft: #F7F7F7;
  --line: #E3E3E3;
  --radius: 38px;
  --container: 1540px;
}

.hero-grid { grid-template-columns: minmax(0,1.25fr) minmax(340px,.75fr); gap: 45px; }
.hero-visual { min-height: 540px; }
.hero-orbit { position: absolute; width: 470px; max-width: 100%; background: #F7F7F7; border: 0; }
.hero-orbit::before, .hero-orbit::after { display: none; }
.hero-product { position: relative; z-index: 2; width: min(100%, 455px); transform: rotate(2deg); filter: drop-shadow(0 28px 24px rgba(0,0,0,.16)); transition: transform .4s ease; }
.hero-visual:hover .hero-product { transform: rotate(-1deg) translateY(-7px); }
.hero-caption { z-index: 3; writing-mode: vertical-rl; bottom: 35px; }

#explore .container { width: min(calc(100% - 56px), 1540px); }
#explore .section-title { max-width: none; white-space: nowrap; font-size: clamp(52px,5.1vw,76px); }
#explore .section-copy { max-width: 760px; margin-top: 42px; font-size: 20px; }
.cards { gap: 28px; margin-top: 88px; }
.card { min-height: 445px; padding: 46px 48px; border-radius: 38px; border-color: #dedede; }
.card h3 { font-size: 34px; font-weight: 650; }
.card p { font-size: 17px; }
.card-link { font-size: 15px; }

.section--dark { background: #111; color: #fff; }
.section--dark .section-title { color: #fff; }
.section--dark .section-kicker, .section--dark .section-copy, .section--dark .coming-note { color: #919191; }
.resource-grid { gap: 28px; }
.resource-card { display: flex; flex-direction: column; min-height: 470px; padding: 38px; border-radius: 38px; background: #191919; border: 1px solid #393939; }
.resource-card:nth-child(2) { background: #F7F7F7; color: #111; border-color: #E3E3E3; }
.resource-card h3 { margin: 18px 0 12px; font-size: 34px; }
.resource-card p { color: #8f8f8f; }
.resource-type { color: #8f8f8f; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.resource-status { margin-top: auto; padding-top: 20px; border-top: 1px solid currentColor; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.companion-panel { min-height: 620px; border-radius: 38px; background: #F7F7F7; border: 1px solid #E3E3E3; }
.companion-panel::before { content: ""; position: absolute; width: 72%; height: 72%; border: 1px solid #E3E3E3; border-radius: 50%; }
.companion-panel img { position: relative; z-index: 2; width: 85%; transform: rotate(-5deg); filter: drop-shadow(0 35px 30px rgba(0,0,0,.18)); }
.companion-label { position: absolute; z-index: 3; right: 8%; top: 12%; width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: #F7F7F7; border: 1px solid #D8D8D8; font-size: 12px; font-weight: 700; transform: rotate(8deg); }

.contact-box { border-radius: 38px; overflow: hidden; }

@media (max-width: 1200px) {
  #explore .section-title { white-space: normal; }
  .card { min-height: 390px; padding: 36px; }
}

@media (max-width: 760px) {
  #explore .container { width: min(calc(100% - 32px), 1540px); }
  #explore .section-title { font-size: 44px; }
  #explore .section-copy { margin-top: 28px; font-size: 17px; }
  .cards { margin-top: 48px; }
  .card, .resource-card, .companion-panel, .contact-box { border-radius: 28px; }
  .card { min-height: 320px; padding: 30px; }
  .hero-product { width: 310px; }
  .hero-orbit { width: 300px; }
  .companion-panel { min-height: 410px; }
}

/* Final contact and footer alignment shared across WordPress and ChatGPT Sites. */
.contact-section { padding-bottom: 150px; }
.contact-box {
  display: block;
  padding: 78px 76px 72px;
  border: 1px solid #dedede;
  border-radius: 0 0 38px 38px;
  background: var(--soft);
  color: var(--black);
}
.contact-box .section-title {
  max-width: 980px;
  color: var(--black);
  font-size: clamp(52px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.contact-divider {
  height: 1px;
  margin: 72px 0 24px;
  background: #bdbdbd;
}
.contact-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 0;
  color: var(--black);
  font-size: 16px;
  font-weight: 700;
}
.contact-links span { font-size: 20px; font-weight: 400; }
.closing { display: none; }

.site-footer {
  padding: 130px 0 34px;
  background: #111;
  color: var(--white);
}
.footer-main {
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr minmax(420px, 520px);
  align-items: center;
  gap: 80px;
}
.footer-logo img { width: 190px; filter: invert(1); }
.footer-statement {
  margin: 0;
  color: #d1d1d1;
  font-size: clamp(27px, 2.5vw, 37px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.footer-rule { height: 1px; margin-top: 44px; background: rgba(255,255,255,.18); }
.footer-lower { padding-top: 26px; }
.footer-nav { display:flex; flex-wrap:wrap; gap:28px; }
.footer-nav a { color:#b6b6b6; font-size:15px; }
.footer-bottom {
  margin-top: 34px;
  padding-top: 0;
  border-top: 0;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#777;
  font-size:13px;
}

@media (max-width: 960px) {
  .contact-box { padding: 58px 48px; }
  .footer-main { grid-template-columns: 1fr; min-height: 0; gap: 56px; }
}
@media (max-width: 760px) {
  .contact-section { padding-bottom: 90px; }
  .contact-box { padding: 46px 28px 38px; border-radius: 0 0 28px 28px; }
  .contact-divider { margin: 46px 0 22px; }
  .contact-links { flex-direction: column; align-items: flex-start; gap: 18px; }
  .site-footer { padding-top: 82px; }
  .footer-main { gap: 42px; }
  .footer-bottom { flex-direction: column; }
}


/* Mobile presentation refinements — preserves the existing visual style. */
.arrow-icon {
  display: block;
  width: 22px;
  height: 22px;
}

/* Keep the arrow control visible against the dark resource card. */
.section--dark .resource-card:first-child .resource-icon {
  color: #fff;
  border-color: #fff;
}

/* Contact is always presented as a bordered navigation action. */
.site-nav li:last-child > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--black);
  border-radius: 999px;
  color: var(--black);
}

@media (max-width: 760px) {
  /* More comfortable side margins throughout the mobile site. */
  .container,
  #explore .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .header-inner {
    padding-inline: 0;
  }

  .site-branding img {
    width: 154px;
  }

  .site-nav {
    left: 24px;
    right: 24px;
  }

  .site-nav ul {
    width: 100%;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    width: 100%;
  }

  .site-nav li:last-child > a {
    width: auto;
    min-width: 118px;
  }

  /* Rebalance the hero so text wraps naturally and the product sits below it. */
  .hero {
    padding: 126px 0 74px;
    overflow: visible;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 46px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(50px, 14vw, 66px);
    line-height: .98;
    letter-spacing: -.055em;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-copy {
    max-width: 100%;
    margin-top: 28px;
    font-size: 18px;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .hero-visual {
    width: 100%;
    min-height: 0;
    display: flex;
    justify-content: center;
    padding: 0 0 8px;
  }

  .hero-orbit,
  .hero-caption {
    display: none;
  }

  .hero-product {
    position: relative;
    width: min(100%, 390px);
    max-width: 100%;
    transform: rotate(1deg);
    margin: 0 auto;
  }

  .hero-visual:hover .hero-product {
    transform: rotate(1deg);
  }

  .section-title {
    overflow-wrap: normal;
    word-break: normal;
  }

  .resource-card,
  .card {
    padding-left: 28px;
    padding-right: 28px;
  }

  .contact-box {
    padding-left: 28px;
    padding-right: 28px;
  }

  .contact-links .arrow-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 390px) {
  .container,
  #explore .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .site-nav {
    left: 20px;
    right: 20px;
  }

  .hero h1 {
    font-size: clamp(46px, 13.4vw, 56px);
  }
}


/* Desktop hero composition only. Mobile styling remains unchanged. */
@media (min-width: 1024px) {
  .hero {
    overflow: hidden;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(520px, .92fr);
    gap: 34px;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero-visual {
    position: relative;
    z-index: 1;
    justify-items: end;
    overflow: visible;
    transform: translate(54px, -34px);
  }

  .hero-product {
    width: min(128%, 760px);
    max-width: 760px;
    justify-self: end;
  }
}


/* Scroll-to-top button */
.medamie-scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .14);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  color: #111;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background-color .2s ease;
}

.medamie-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.medamie-scroll-top:hover {
  background: rgba(255, 255, 255, .36);
}

.medamie-scroll-top svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 767px) {
  .medamie-scroll-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}


/* Contact rounding and resource label spacing */
.contact-box {
  border-radius: 38px;
}

.resource-type {
  display: block;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .contact-box {
    border-radius: 28px;
  }
}

/* Blood pressure preview images — stacked modern card treatment. */
.bp-card {
  position: relative;
  overflow: hidden;
}

.bp-card-images {
  position: absolute;
  top: 56px;
  left: 50%;
  width: 280px;
  height: 205px;
  transform: translateX(-50%);
  pointer-events: none;
}

.bp-card-images img {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 132px;
  height: 166px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .12);
  transform-origin: 50% 90%;
}

.bp-card-images img:nth-child(1) {
  z-index: 1;
  transform: translateX(-100px) translateY(20px) rotate(-9deg);
}

.bp-card-images img:nth-child(2) {
  z-index: 3;
  transform: translateX(-66px) translateY(0) rotate(0deg);
}

.bp-card-images img:nth-child(3) {
  z-index: 2;
  transform: translateX(-32px) translateY(20px) rotate(9deg);
}

@media (max-width: 760px) {
  .bp-card-images {
    top: 54px;
    width: 210px;
    height: 150px;
  }

  .bp-card-images img {
    width: 96px;
    height: 120px;
    border-radius: 9px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .11);
  }

  .bp-card-images img:nth-child(1) {
    transform: translateX(-73px) translateY(14px) rotate(-8deg);
  }

  .bp-card-images img:nth-child(2) {
    transform: translateX(-48px) translateY(0) rotate(0deg);
  }

  .bp-card-images img:nth-child(3) {
    transform: translateX(-23px) translateY(14px) rotate(8deg);
  }
}


/* Mobile-safe blood pressure stack */
@media (max-width:760px){
  .bp-card{
    min-height:360px;
  }
  .bp-card-images{
    top:48px !important;
    width:190px !important;
    height:132px !important;
  }
  .bp-card-images img{
    width:86px !important;
    height:108px !important;
  }
  .bp-card-images img:nth-child(1){
    transform:translateX(-66px) translateY(12px) rotate(-8deg)!important;
  }
  .bp-card-images img:nth-child(2){
    transform:translateX(-43px) translateY(0) rotate(0)!important;
  }
  .bp-card-images img:nth-child(3){
    transform:translateX(-20px) translateY(12px) rotate(8deg)!important;
  }
}



/* Blood Pressure topic page */
.bp-card {
  color: inherit;
  text-decoration: none;
}

.bp-page-hero {
  padding: 170px 0 110px;
}

.bp-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 64px;
  align-items: center;
}

.bp-page-hero-copy h1 {
  max-width: 900px;
  margin: 18px 0 26px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(64px, 7vw, 108px);
  line-height: .95;
  letter-spacing: -.065em;
  font-weight: 600;
}

.bp-page-hero-copy > p:not(.section-kicker) {
  max-width: 720px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(19px, 1.7vw, 25px);
}

.bp-page-hero-art {
  min-height: 590px;
  display: grid;
  place-items: center;
}

.bp-page-stack {
  position: relative;
  width: min(100%, 570px);
  aspect-ratio: 1 / .9;
}

.bp-page-stack img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48%;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 65px rgba(0,0,0,.14);
}

.bp-page-stack img:nth-child(1) {
  transform: translate(-92%, -43%) rotate(-9deg);
}

.bp-page-stack img:nth-child(2) {
  z-index: 3;
  transform: translate(-50%, -58%);
}

.bp-page-stack img:nth-child(3) {
  z-index: 2;
  transform: translate(-8%, -43%) rotate(9deg);
}

.bp-subnav {
  position: sticky;
  top: 79px;
  z-index: 30;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.bp-subnav .container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-top: 14px;
  padding-bottom: 14px;
  scrollbar-width: none;
}

.bp-subnav .container::-webkit-scrollbar {
  display: none;
}

.bp-subnav a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.bp-topic-section {
  padding: 130px 0;
}

.bp-topic-grid {
  display: grid;
  gap: 32px;
  margin-top: 80px;
}

.bp-topic-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
  gap: 70px;
  align-items: center;
  min-height: 640px;
  padding: 68px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: var(--white);
}

.bp-topic-card--reverse .bp-topic-copy {
  order: 2;
}

.bp-topic-card--reverse img {
  order: 1;
}

.bp-topic-copy h3 {
  margin: 18px 0;
  font-size: clamp(42px, 4.2vw, 68px);
  line-height: 1;
  letter-spacing: -.05em;
}

.bp-topic-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.bp-topic-card img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
}

.bp-track-section {
  padding: 130px 0;
}

.bp-track-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(460px, 1.15fr);
  gap: 70px;
  align-items: center;
}

.bp-track-panel {
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #343434;
  border-radius: 38px;
  background: #181818;
}

.bp-track-panel img {
  width: min(110%, 760px);
  max-width: none;
  transform: translateX(3%);
}

.bp-page-contact {
  padding: 130px 0 150px;
}

@media (max-width: 900px) {
  .bp-page-hero {
    padding: 130px 0 80px;
  }

  .bp-page-hero-grid,
  .bp-topic-card,
  .bp-track-grid {
    grid-template-columns: 1fr;
  }

  .bp-page-hero-art {
    min-height: 430px;
  }

  .bp-topic-card,
  .bp-track-panel {
    min-height: auto;
  }

  .bp-topic-card {
    gap: 36px;
    padding: 42px;
  }

  .bp-topic-card--reverse .bp-topic-copy,
  .bp-topic-card--reverse img {
    order: initial;
  }

  .bp-track-panel {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .bp-page-hero {
    padding: 118px 0 64px;
  }

  .bp-page-hero-copy h1 {
    font-size: clamp(52px, 15vw, 72px);
  }

  .bp-page-hero-art {
    min-height: 330px;
  }

  .bp-page-stack {
    width: 290px;
  }

  .bp-subnav {
    top: 72px;
  }

  .bp-topic-section,
  .bp-track-section,
  .bp-page-contact {
    padding: 90px 0;
  }

  .bp-topic-grid {
    margin-top: 48px;
  }

  .bp-topic-card {
    padding: 30px;
    border-radius: 28px;
  }

  .bp-topic-copy h3 {
    font-size: 42px;
  }

  .bp-topic-copy p {
    font-size: 17px;
  }

  .bp-track-panel {
    min-height: 330px;
    border-radius: 28px;
  }

  .bp-track-panel img {
    width: 118%;
  }
}


/* Blood Pressure page refinements: match homepage typography and card treatment. */
.bp-page,
.bp-page button,
.bp-page input,
.bp-page textarea,
.bp-page select {
  font-family: inherit;
}

.bp-page h1,
.bp-page h2,
.bp-page h3,
.bp-page p,
.bp-page a,
.bp-page span {
  font-family: inherit;
}

.bp-page-stack img,
.bp-topic-card img {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .10);
}

.bp-page-stack img {
  transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
  will-change: transform;
}

.bp-page-stack img:nth-child(1) {
  animation: bpCardFloatLeft 8s ease-in-out infinite;
}

.bp-page-stack img:nth-child(2) {
  animation: bpCardFloatCenter 7s ease-in-out infinite;
}

.bp-page-stack img:nth-child(3) {
  animation: bpCardFloatRight 8.5s ease-in-out infinite;
}

.bp-page-stack:hover img:nth-child(1) {
  transform: translate(-96%, -46%) rotate(-12deg);
}

.bp-page-stack:hover img:nth-child(2) {
  transform: translate(-50%, -62%) translateY(-10px);
  box-shadow: 0 34px 72px rgba(0, 0, 0, .16);
}

.bp-page-stack:hover img:nth-child(3) {
  transform: translate(-4%, -46%) rotate(12deg);
}

.bp-topic-card {
  overflow: hidden;
}

.bp-topic-card img {
  transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
  will-change: transform;
}

.bp-topic-card:hover img {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 32px 68px rgba(0, 0, 0, .14);
}

@keyframes bpCardFloatLeft {
  0%, 100% { transform: translate(-92%, -43%) rotate(-9deg) translateY(0); }
  50% { transform: translate(-92%, -43%) rotate(-9deg) translateY(-8px); }
}

@keyframes bpCardFloatCenter {
  0%, 100% { transform: translate(-50%, -58%) translateY(0); }
  50% { transform: translate(-50%, -58%) translateY(-10px); }
}

@keyframes bpCardFloatRight {
  0%, 100% { transform: translate(-8%, -43%) rotate(9deg) translateY(0); }
  50% { transform: translate(-8%, -43%) rotate(9deg) translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .bp-page-stack img,
  .bp-topic-card img {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 760px) {
  .bp-page-stack img,
  .bp-topic-card img {
    border-radius: 18px;
  }

  .bp-page-stack:hover img:nth-child(1),
  .bp-page-stack:hover img:nth-child(2),
  .bp-page-stack:hover img:nth-child(3),
  .bp-topic-card:hover img {
    box-shadow: 0 24px 54px rgba(0, 0, 0, .10);
  }
}


/* Final uniform spacing and Blood Pressure image proportions. */
@media (min-width: 901px) {
  :root {
    --container: 1380px;
  }

  .container,
  #explore .container {
    width: min(calc(100% - 96px), var(--container));
  }

  .bp-topic-card img {
    width: min(100%, 500px);
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    justify-self: center;
  }
}

/* Blood Pressure Tracker download - contained within the existing resource card. */
.resource-card--download {
  position: relative;
  height: 470px;
  min-height: 470px;
  overflow: hidden;
}

.resource-card--download > p {
  max-width: 720px;
}

.tracker-download {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.72);
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 20px;
  align-items: center;
}

.tracker-download__preview {
  display: block;
  width: 150px;
  height: 104px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 16px 34px rgba(0,0,0,.24);
  transition: transform .35s ease, box-shadow .35s ease;
}

.tracker-download__details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.tracker-download__details strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.tracker-download__details > span {
  color: #9a9a9a;
  font-size: 14px;
}

.tracker-download__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  margin-top: 4px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.tracker-download__button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.resource-card--download:hover .tracker-download__preview {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(0,0,0,.30);
}

.tracker-download__button:hover {
  transform: translateY(-2px);
  background: #fff;
  color: #111;
}

@media (max-width: 760px) {
  .resource-card--download {
    height: auto;
    min-height: 470px;
  }

  .tracker-download {
    grid-template-columns: 112px minmax(0,1fr);
    gap: 16px;
  }

  .tracker-download__preview {
    width: 112px;
    height: 82px;
    border-radius: 11px;
  }

  .tracker-download__details strong {
    font-size: 16px;
  }

  .tracker-download__button {
    min-height: 40px;
    padding-inline: 15px;
  }
}



/* Blood Pressure Tracker card link */
.resource-download-link {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid currentColor;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.resource-download-link span {
  color: var(--muted);
  font-size: 14px;
}

.resource-download-link strong {
  font-size: 15px;
}

.resource-download-link .arrow-icon {
  width: 20px;
  height: 20px;
  transition: transform .25s ease;
}

.resource-download-link:hover .arrow-icon {
  transform: translate(3px, -3px);
}

/* Dedicated Blood Pressure Tracker page */
.tracker-page-hero {
  padding: 165px 0 110px;
}

.tracker-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(560px, 1.22fr);
  gap: 72px;
  align-items: center;
}

.tracker-page-copy h1 {
  margin: 16px 0 24px;
  font-size: clamp(66px, 7vw, 108px);
  line-height: .95;
  letter-spacing: -.065em;
}

.tracker-page-copy > p:not(.section-kicker) {
  max-width: 650px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.tracker-download-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tracker-download-primary svg {
  width: 20px;
  height: 20px;
}

.tracker-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.tracker-file-meta span + span::before {
  content: "•";
  margin-right: 18px;
}

.tracker-preview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: var(--soft);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .10);
}

.tracker-preview-toolbar {
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.tracker-preview-toolbar a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--black);
  border-radius: 50%;
  color: var(--black);
}

.tracker-preview-toolbar svg {
  width: 18px;
  height: 18px;
}

.tracker-preview-image {
  display: block;
  padding: 28px;
}

.tracker-preview-image img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}

.tracker-preview-image:hover img {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 65px rgba(0,0,0,.14);
}

.tracker-info-section {
  padding: 110px 0 130px;
}

.tracker-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tracker-info-card {
  min-height: 330px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: #fff;
}

.tracker-info-card h2 {
  margin: 70px 0 16px;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.tracker-info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.tracker-related-section {
  padding: 120px 0;
}

.tracker-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}

.tracker-related-card {
  min-height: 360px;
  padding: 40px;
  border: 1px solid #383838;
  border-radius: 38px;
  background: #191919;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.tracker-related-card--muted {
  background: #f7f7f7;
  border-color: #e3e3e3;
  color: #111;
}

.tracker-related-card h3 {
  margin: 24px 0 14px;
  font-size: 34px;
  letter-spacing: -.04em;
}

.tracker-related-card p {
  margin: 0;
  color: #929292;
  font-size: 17px;
  line-height: 1.6;
}

.tracker-related-link,
.tracker-related-card .resource-status {
  margin-top: auto;
  padding-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.tracker-related-link .arrow-icon {
  width: 20px;
  height: 20px;
  transition: transform .25s ease;
}

.tracker-related-card:hover .tracker-related-link .arrow-icon {
  transform: translate(3px, -3px);
}

@media (max-width: 980px) {
  .tracker-page-hero-grid,
  .tracker-info-grid,
  .tracker-related-grid {
    grid-template-columns: 1fr;
  }

  .tracker-page-hero-grid {
    gap: 50px;
  }
}

@media (max-width: 760px) {
  .resource-download-link {
    grid-template-columns: 1fr auto;
  }

  .resource-download-link span {
    grid-column: 1 / -1;
  }

  .tracker-page-hero {
    padding: 120px 0 80px;
  }

  .tracker-page-copy h1 {
    font-size: clamp(52px, 15vw, 72px);
  }

  .tracker-preview-card,
  .tracker-info-card,
  .tracker-related-card {
    border-radius: 28px;
  }

  .tracker-preview-image {
    padding: 16px;
  }

  .tracker-info-section,
  .tracker-related-section {
    padding: 90px 0;
  }

  .tracker-info-card {
    min-height: auto;
    padding: 30px;
  }

  .tracker-info-card h2 {
    margin-top: 44px;
  }
}


/* Blood Pressure page first-section copy spacing */
.bp-topic-copy > p + p {
  margin-top: 18px;
}

.bp-topic-subsection {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.bp-topic-subsection h4 {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.bp-topic-subsection p + p {
  margin-top: 14px;
}


/* Blood Pressure six-part narrative */
.bp-topic-copy > p + p {
  margin-top: 18px;
}

.bp-topic-copy strong {
  color: var(--black);
}

.bp-category-table {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.bp-category-table > div {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.bp-category-table > div:last-child {
  border-bottom: 0;
}

.bp-topic-copy .button {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bp-topic-copy .button .arrow-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .bp-category-table > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}


/* Blood Pressure modern section rhythm */
.bp-topic-card--statement,
.bp-topic-card--data,
.bp-topic-card--cta {
  grid-template-columns: minmax(0, 1fr);
}

.bp-topic-card--statement .bp-topic-copy,
.bp-topic-card--data .bp-topic-copy,
.bp-topic-card--cta .bp-topic-copy {
  max-width: 860px;
}

.bp-statement-panel {
  margin: 30px 0;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 28px;
  background: #f7f7f7;
}

.bp-statement-panel p {
  margin: 0;
  max-width: 760px;
  color: var(--black);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.bp-topic-card--data .bp-category-table {
  margin-top: 34px;
}

.bp-topic-card--cta {
  background: var(--black);
  color: #fff;
}

.bp-topic-card--cta .card-number,
.bp-topic-card--cta h3,
.bp-topic-card--cta p {
  color: #fff;
}

.bp-topic-card--cta .button--light {
  background: #fff;
  color: var(--black);
  border-color: #fff;
}

.bp-topic-card--cta .button--light:hover {
  background: #f2f2f2;
  border-color: #f2f2f2;
}

@media (max-width: 760px) {
  .bp-statement-panel {
    border-radius: 22px;
  }
}


/* Medamie 1.1.4 - launch refinements for homepage, Blood Pressure, and tracker pages. */
:root {
  --muted: #5f5f5f;
}

.section--dark .section-kicker,
.section--dark .section-copy,
.section--dark .coming-note,
.section--dark .resource-type,
.tracker-related-card p {
  color: #b8b8b8;
}

/* Keep content readable even before JavaScript or scroll observers run. */
.reveal,
.reveal.is-visible,
.hero .reveal {
  opacity: 1;
  transform: none;
  animation: none;
}

.section {
  padding: 104px 0;
}

.hero {
  min-height: min(900px, 100svh);
  padding: 140px 0 74px;
}

.cards,
.resource-grid {
  margin-top: 58px;
}

.card {
  min-height: 350px;
  padding: 36px;
}

.resource-card {
  min-height: 380px;
}

.resource-card--download {
  height: auto;
  min-height: 380px;
}

.companion-panel {
  min-height: 520px;
}

.contact-section {
  padding-bottom: 104px;
}

.bp-page-hero {
  padding: 142px 0 82px;
}

.bp-page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.bp-page-hero-actions .button--light {
  background: #fff;
  color: var(--black);
}

.bp-subnav {
  position: relative;
  top: auto;
  z-index: 20;
}

.bp-topic-card,
.bp-track-section,
.bp-page-contact {
  scroll-margin-top: 96px;
}

.bp-topic-section {
  padding: 96px 0;
}

.bp-topic-grid {
  gap: 24px;
  margin-top: 56px;
}

.bp-topic-card {
  min-height: 520px;
  padding: 52px;
}

.bp-topic-copy p {
  color: #666;
}

.bp-disclaimer {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  color: #555;
  font-size: 15px;
  line-height: 1.55;
}

.bp-track-section {
  padding: 104px 0;
}

.tracker-page-hero {
  padding: 136px 0 88px;
}

.tracker-preview-toolbar a {
  width: auto;
  min-width: 40px;
  gap: 9px;
  padding: 0 13px;
  text-decoration: none;
}

.tracker-preview-toolbar a span {
  font-size: 13px;
}

.tracker-info-section {
  padding: 78px 0 96px;
}

.tracker-info-card {
  min-height: 260px;
  padding: 34px;
}

.tracker-info-card h2 {
  margin-top: 46px;
}

.tracker-related-section {
  padding: 96px 0;
}

.tracker-related-card {
  min-height: 300px;
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .bp-page-hero-grid,
  .tracker-page-hero-grid {
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 92px 0 48px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero h1,
  .bp-page-hero-copy h1,
  .tracker-page-copy h1 {
    font-size: clamp(44px, 12.6vw, 58px);
    letter-spacing: -.05em;
  }

  .hero-copy,
  .bp-page-hero-copy > p:not(.section-kicker),
  .tracker-page-copy > p:not(.section-kicker) {
    font-size: 17px;
    line-height: 1.58;
  }

  .hero-actions,
  .bp-page-hero-actions {
    gap: 10px;
  }

  .button {
    min-height: 50px;
    padding-inline: 20px;
  }

  .cards,
  .resource-grid {
    margin-top: 38px;
  }

  .card,
  .resource-card {
    min-height: 260px;
    padding: 28px;
  }

  .resource-card--download {
    min-height: 320px;
  }

  .companion-panel {
    min-height: 320px;
  }

  .bp-page-hero,
  .tracker-page-hero {
    padding: 88px 0 56px;
  }

  .bp-page-hero-art {
    min-height: 260px;
  }

  .bp-page-stack {
    width: 250px;
  }

  .bp-subnav {
    overflow: hidden;
  }

  .bp-subnav .container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    scroll-padding-left: 20px;
  }

  .bp-subnav a {
    padding: 9px 14px;
    font-size: 13px;
  }

  .bp-topic-section,
  .bp-track-section,
  .bp-page-contact,
  .tracker-info-section,
  .tracker-related-section {
    padding: 68px 0;
  }

  .bp-topic-grid {
    margin-top: 34px;
  }

  .bp-topic-card {
    padding: 28px;
  }

  .bp-topic-copy h3 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .bp-disclaimer {
    font-size: 14px;
  }

  .tracker-preview-toolbar {
    padding-inline: 18px;
  }

  .tracker-preview-toolbar a span {
    display: none;
  }

  .tracker-info-card {
    padding: 28px;
  }

  .site-footer {
    padding-bottom: 96px;
  }
}


/* Medamie 1.1.5 - fixed-header anchor and homepage card overlap fix. */
html {
  scroll-padding-top: 108px;
}

section[id],
.bp-topic-card[id],
.bp-track-section[id],
.bp-page-contact[id] {
  scroll-margin-top: 108px;
}

#explore {
  padding-top: 148px;
}

#explore .section-title {
  padding-top: 4px;
}

.bp-card {
  min-height: 430px;
}

.bp-card-images {
  top: 58px;
  height: 188px;
}

.bp-card > div:last-child {
  position: relative;
  z-index: 2;
  margin-top: 228px;
}

@media (max-width: 1200px) {
  .bp-card {
    min-height: 410px;
  }

  .bp-card > div:last-child {
    margin-top: 204px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 86px;
  }

  section[id],
  .bp-topic-card[id],
  .bp-track-section[id],
  .bp-page-contact[id] {
    scroll-margin-top: 86px;
  }

  #explore {
    padding-top: 94px;
  }

  .bp-card {
    min-height: 390px;
  }

  .bp-card-images {
    top: 46px !important;
  }

  .bp-card > div:last-child {
    margin-top: 168px;
  }
}

/* Medamie 1.1.9 - unified typography and tracker preview control polish. */
.section-kicker,
.resource-type,
.card-number,
.companion-label,
.badge {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1,
.bp-page-hero-copy h1,
.tracker-page-copy h1 {
  margin-top: 16px;
  margin-bottom: 24px;
  font-size: clamp(58px, 7vw, 104px);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 600;
}

.section-title {
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 600;
}

.card h3,
.resource-card h3,
.tracker-info-card h2,
.tracker-related-card h3 {
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 650;
}

.bp-topic-copy h3 {
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 600;
}

.hero-copy,
.bp-page-hero-copy > p:not(.section-kicker),
.tracker-page-copy > p:not(.section-kicker) {
  max-width: 720px;
  margin-top: 0;
  margin-bottom: 32px;
  font-size: clamp(19px, 1.65vw, 22px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--muted);
}

.section-copy,
.about-copy p,
.companion-copy p,
.card p,
.resource-card p,
.bp-topic-copy p,
.tracker-info-card p,
.tracker-related-card p,
.bp-disclaimer {
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
}

.card p,
.resource-card p,
.bp-topic-copy p,
.tracker-info-card p,
.tracker-related-card p,
.section-copy,
.companion-copy p {
  color: var(--muted);
}

.bp-statement-panel p {
  margin: 0;
  max-width: 760px;
  color: var(--black);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 400;
}

.tracker-preview-toolbar {
  min-height: 64px;
  padding: 0 28px;
  gap: 20px;
}

.tracker-preview-toolbar > span {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 650;
}

.tracker-preview-toolbar a {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
}

.tracker-preview-toolbar a span {
  display: inline;
  font-size: inherit;
}

.tracker-preview-toolbar svg {
  width: 17px;
  height: 17px;
  transition: transform .22s ease;
}

.tracker-preview-toolbar a:hover svg,
.tracker-preview-toolbar a:focus-visible svg {
  transform: translate(3px, -3px);
}

@media (max-width: 760px) {
  .hero h1,
  .bp-page-hero-copy h1,
  .tracker-page-copy h1 {
    font-size: clamp(44px, 12.6vw, 58px);
    line-height: 1;
    letter-spacing: -.045em;
  }

  .section-title {
    font-size: clamp(36px, 9.5vw, 44px);
  }

  .card h3,
  .resource-card h3,
  .tracker-info-card h2,
  .tracker-related-card h3 {
    font-size: 28px;
  }

  .bp-topic-copy h3 {
    font-size: clamp(32px, 9vw, 40px);
  }

  .section-copy,
  .about-copy p,
  .companion-copy p,
  .card p,
  .resource-card p,
  .bp-topic-copy p,
  .tracker-info-card p,
  .tracker-related-card p,
  .bp-disclaimer {
    font-size: 16px;
    line-height: 1.62;
  }

  .bp-statement-panel p {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.12;
  }

  .hero-copy,
  .bp-page-hero-copy > p:not(.section-kicker),
  .tracker-page-copy > p:not(.section-kicker) {
    font-size: 17px;
    line-height: 1.6;
  }

  .tracker-preview-toolbar {
    padding-inline: 20px;
  }

  .tracker-preview-toolbar a span {
    display: inline;
  }
}

/* Medamie 1.1.11 - enlarge mobile homepage High Blood Pressure preview. */
@media (max-width: 760px) {
  .bp-card {
    min-height: 440px;
  }

  .bp-card-images {
    top: 50px !important;
    width: 270px !important;
    height: 190px !important;
  }

  .bp-card-images img {
    width: 122px !important;
    height: 154px !important;
    border-radius: 12px;
  }

  .bp-card-images img:nth-child(1) {
    transform: translateX(-92px) translateY(16px) rotate(-8deg) !important;
  }

  .bp-card-images img:nth-child(2) {
    transform: translateX(-61px) translateY(0) rotate(0deg) !important;
  }

  .bp-card-images img:nth-child(3) {
    transform: translateX(-30px) translateY(16px) rotate(8deg) !important;
  }

  .bp-card > div:last-child {
    margin-top: 220px;
  }
}

/* Medamie 1.1.13 - mobile callout display type with natural word spacing. */
@media (max-width: 760px) {
  .bp-statement-panel {
    margin: 22px 0 28px;
    padding: 26px;
    border-radius: 20px;
  }

  .bp-statement-panel p {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.12;
    letter-spacing: -.04em;
    text-align: left;
  }
}
