.med-case {
  --med-blue: #246bfa;
  --med-ink: #14253e;
  --med-muted: #718198;
  --med-font: "PingFang SC", "Microsoft YaHei", sans-serif;
}
@media (min-width: 1025px) {
  .blog-article.med-case { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.med-case .blog-article-body {
  width: 100%;
  max-width: 58rem;
  justify-self: center;
  margin-inline: auto;
  padding-top: clamp(1.5rem, 4vw, 4rem);
  color: var(--med-ink);
  font-family: var(--med-font);
}
.med-flow {
  display: grid;
  grid-template-columns: minmax(0, 375px) 44px minmax(0, 375px);
  justify-content: center;
  align-items: start;
  column-gap: clamp(4px, 1vw, 12px);
}
.med-case .med-preview { margin: 0; }
.med-case .med-preview figcaption {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
}
.med-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 375 / 812;
  overflow: hidden;
  border-radius: 16px;
  background: #f0f3ff;
  box-shadow: 0 12px 28px rgb(20 37 62 / 9%);
}
.med-chat { display: flex; justify-content: center; }
.med-original {
  position: relative;
  height: 100%;
  aspect-ratio: 1264 / 2800;
  container-type: inline-size;
}
.med-case .med-conversation-image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 0;
  border-radius: 0;
}
.med-answer {
  position: absolute;
  top: 41.78%;
  bottom: 16%;
  left: 3.16%;
  right: 3.48%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  padding: clamp(10px, 4cqi, 16px);
  border-radius: 0 24px 0 0;
  background: #f9faff;
  color: #142034;
  font: 400 clamp(12px, 4.4cqi, 15px)/1.6 var(--med-font);
}
.med-case .med-answer p { margin: 0; }
.med-recommendations { display: grid; gap: 8px; }
.med-case .med-recommendation {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
}

@container (max-width: 320px) {
  .med-answer {
    gap: 8px;
    padding: 8px;
    font-size: 12px;
    line-height: 18px;
  }
}
.med-pack {
  display: block;
  width: 100%;
  aspect-ratio: 1.65;
  background-position: center;
  background-repeat: no-repeat;
}
.med-pack-talcid {
  background-image: url("../assets/visual-work/commerce/talcid-official.png");
  background-size: 190% auto;
  background-position: center top;
}
.med-flow-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  align-self: center;
  place-items: center;
  margin-top: 52px;
  border-radius: 50%;
  background: #e7eefc;
  color: #2458ae;
}
.med-shop { display: flex; flex-direction: column; background: #fff; }
.med-ios {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: space-between;
  padding: 4px 24px 0;
  color: #101820;
  font: 650 15px/1 -apple-system, sans-serif;
}
.med-nav {
  display: grid;
  flex: 0 0 44px;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  padding-inline: 16px;
  text-align: center;
  font-size: 14px;
}
.med-back {
  height: 40px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 400 30px/1 sans-serif;
  text-align: left;
  cursor: pointer;
}
.med-product-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; scrollbar-width:none; background:#f4f5f8; font:400 14px/1.65 var(--med-font); }
.med-consult[hidden] { display:none; }
.med-product { --med-organ-fill:#f8c8bf; --med-organ-stroke:#e8a399; padding-bottom:20px; }
.med-product-photo { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:space-between; min-height:254px; padding:16px 20px 12px; background:#faf8f0; overflow:hidden; }
.med-product-photo .med-pack { width:min(100%,290px); filter:drop-shadow(0 12px 9px #4a412315); }
.med-case .med-product :is(h2,h3,h4,p) { margin:0; letter-spacing:0; }
.med-product-intro { display:grid; gap:10px; padding:16px; background:#fff; }
.med-price { display:flex; align-items:baseline; gap:3px; color:#ea4d3e; font-variant-numeric:tabular-nums; line-height:1.15; }
.med-price small { font-size:17px; font-weight:650; }
.med-price strong { font:750 34px/1.1 -apple-system,BlinkMacSystemFont,sans-serif; letter-spacing:-1px; }
.med-price em { font-size:22px; font-style:normal; letter-spacing:0; }
.med-price > span { margin-left:7px; color:#9a6b64; font-size:12px; }
.med-price-pending strong { font:650 20px/1.5 var(--med-font); letter-spacing:0; color:var(--med-ink); }
.med-case .med-product h2 { font:700 19px/1.5 var(--med-font); }
.med-otc { display:inline-block; vertical-align:2px; margin-right:5px; padding:0 4px; border:1px solid #c8a95a; border-radius:3px; color:#997628; font:650 10px/15px -apple-system,sans-serif; }
.med-product-intro > p { font-size:13px; line-height:1.7; color:#687487; }
.med-product-tags { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.med-product-tags > span { padding:1px 7px; border-radius:3px; background:#f3f5f9; color:#66758a; font-size:11px; }
.med-product-tags a { display:inline-flex; align-items:center; gap:2px; color:#567299; font-size:12px; }
.med-product h3 { font:650 15px/24px var(--med-font); }
.med-sku-section { margin-top:8px; padding:16px; background:#fff; }
.med-row-title { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.med-row-title > span { color:#6d7788; font-size:12px; }
.med-skus { display:flex; flex-wrap:wrap; gap:8px; }
.med-skus button { min-height:40px; padding:8px 14px; border:1px solid #e5e9ef; border-radius:7px; background:#f7f8fa; color:#47566b; font:500 13px/20px var(--med-font); cursor:pointer; }
.med-skus [aria-pressed="true"] { background:#f0f5ff; border-color:#99b9ff; color:#2163e8; box-shadow:inset 0 0 0 .5px #99b9ff; }
.med-case .med-price-note { margin-top:10px; color:#8b94a2; font-size:12px; line-height:1.65; }
.med-service-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:1px; padding:14px 16px; background:#fff; font-size:12px; }
.med-service-row > span { color:#929baa; }
.med-service-row > strong { font-weight:500; }
.med-service-row > button { display:inline-flex; align-items:center; margin-left:auto; padding:0; border:0; background:transparent; color:var(--med-blue); font:500 12px/24px var(--med-font); cursor:pointer; }
.med-section-nav { position:sticky; top:0; z-index:1; display:flex; justify-content:space-around; margin-top:8px; padding:0 8px; border-bottom:1px solid #edf0f3; background:#fff; }
.med-section-nav button { min-height:46px; padding:8px 4px; border:0; border-bottom:2px solid transparent; background:transparent; color:#687487; font:500 13px/24px var(--med-font); cursor:pointer; }
.med-section-nav .is-active { border-bottom-color:var(--med-blue); color:var(--med-blue); font-weight:650; }
.med-editorial { scroll-margin-top: 46px; background: #fff; }
.med-case .med-editorial-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
}
.med-detail-long { position: relative; }
.med-case .med-detail-long img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
}

.med-detail-long .sr-only { top: 0; margin: 0; }
.med-detail-long #talcid-spec { top: calc(100% * 372 / 1301); }
.med-detail-long #talcid-notice { top: calc(100% * 851 / 1301); }
.med-actions { display:grid; flex:0 0 auto; grid-template-columns:.9fr 1.1fr; gap:8px; padding:10px 16px 0; border-top:1px solid #e9edf4; background:#fff; }
.med-actions > * { display:grid; min-height:44px; place-items:center; padding:6px; border:0; border-radius:9px; background:#edf3ff; color:var(--med-blue); font:650 14px/20px var(--med-font); text-align:center; cursor:pointer; }
.med-actions .med-consult-open { background:var(--med-blue); color:#fff; }
.med-home { display:grid; flex:0 0 24px; place-items:end center; padding-bottom:8px; }
.med-home::before { width:124px; height:4px; border-radius:4px; background:#101820; content:""; }
.med-consult {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: end;
  padding: 16px;
  background: #14253e70;
}
.med-consult-sheet { padding: 24px 20px; border-radius: 16px; background: #fff; font: 400 14px/1.7 var(--med-font); }
.med-consult-sheet h3 { margin: 0; font-size: 18px; }
.med-case .med-consult-sheet p { margin-top: 12px; }
.med-consult-close { width: 100%; min-height: 44px; margin-top: 20px; border: 0; border-radius: 8px; background: var(--med-blue); color: #fff; font: 650 14px/20px var(--med-font); cursor: pointer; }
.med-case :is(button, a, .med-product-scroll):focus-visible { outline: 2px solid var(--med-blue); outline-offset: 3px; }
@media (max-width: 700px) {
  .med-flow { grid-template-columns: min(375px, calc(100% - 48px)) 44px min(375px, calc(100% - 48px)); justify-content: start; column-gap: 8px; overflow-x: auto; padding: 4px 4px 12px; }
}
@media (max-width: 360px) {
  .med-flow { grid-template-columns: calc(100% - 8px) 44px calc(100% - 8px); }
}

/* ImageGen photography blocks combined with editable product components. */
.med-product-photo { height:290px; min-height:290px; padding:18px 20px; background:#f2f6f7 url("../assets/visual-work/commerce/pharmacy-stage-v2.png") center center / cover no-repeat; }
.med-product-photo .med-pack { position:absolute; left:11%; bottom:57px; width:78%; filter:drop-shadow(0 11px 9px #29476026); }
.med-product-intro { gap:10px;padding:20px 16px 18px; }
.med-product-intro>p { color:#65748a; }
.med-price strong { font-size:32px; }
.med-price-pending strong { font-size:19px; }
.med-product-intro h2 { max-width:310px; }
.med-sku-section { margin-top:6px; padding:18px 16px; }
.med-skus button { border-radius:6px; }
.med-product-photo .med-pack-talcid { bottom: 42px; }

.med-nav { font-size: 18px; line-height: 26px; }
.med-skus button, .med-section-nav button { min-height: 44px; font-size: 14px; }
.med-product-intro > p { font-size: 14px; line-height: 22px; }
.med-product-tags > span { font-size: 12px; line-height: 20px; }
.med-case .med-price-note { color: #5e6b7a; line-height: 20px; }
.med-actions > * { min-height: 48px; font-size: 16px; line-height: 24px; }
