.case-card-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

/* Keep the clinical-note header identity identical to the main website. */
.detail-logo {
  width: 205px;
  flex: none;
}

.detail-logo .brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1);
}

@media (max-width: 900px) {
  .cases-header .detail-logo { width: 158px; }
}

.case-gallery-grid figure > img {
  position: static;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .cases-list { gap: 54px; }
  .case-card-copy p { min-height: 0; }
}

.case-article {
  background: #f7f4ed;
  border-top: 1px solid rgba(24, 40, 36, .14);
}

.case-article > h2 {
  max-width: 980px;
  margin: 22px 0 26px;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.045em;
}

.case-article-lead {
  max-width: 900px;
  margin: 0 0 64px;
  color: rgba(24, 40, 36, .72);
  font-size: 16px;
  line-height: 1.9;
}

.case-article-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(24, 40, 36, .16);
}

.case-article-body article {
  padding: 34px 30px 10px 0;
}

.case-article-body article + article {
  border-left: 1px solid rgba(24, 40, 36, .16);
  padding-left: 30px;
}

.case-article-body h3 {
  margin: 0 0 22px;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 24px;
  font-weight: 500;
}

.case-article-body p {
  margin: 0 0 15px;
  color: rgba(24, 40, 36, .68);
  font-size: 14px;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .case-article-body { grid-template-columns: 1fr; }
  .case-article-body article,
  .case-article-body article + article {
    border-left: 0;
    border-bottom: 1px solid rgba(24, 40, 36, .16);
    padding: 28px 0;
  }
  .case-article-lead { margin-bottom: 42px; }
}

/* Clinical notes: blog-style sequence — photographs first, explanation directly below. */
.case-story {
  background: #f7f4ed;
}

.case-story-intro {
  max-width: 980px;
  margin-bottom: clamp(58px, 8vw, 110px);
}

.case-story-intro h2 {
  margin: 22px 0 0;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.045em;
}

.story-chapter {
  max-width: 1280px;
  margin: 0 auto clamp(92px, 12vw, 170px);
}

.story-chapter:last-child {
  margin-bottom: 0;
}

.story-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.story-media figure {
  margin: 0;
  padding: 12px;
  background: #fff;
}

.story-media figure:only-child {
  grid-column: 1 / -1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.story-media img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 720px;
  object-fit: contain;
}

.story-media figcaption {
  padding: 12px 2px 2px;
  color: rgba(24, 40, 36, .52);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}

.story-copy {
  display: grid;
  grid-template-columns: 90px minmax(0, 820px);
  gap: 32px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(24, 40, 36, .16);
}

.story-copy > span {
  color: #6f8f82;
  font-family: Georgia, serif;
  font-size: 13px;
}

.story-copy h3 {
  margin: 0 0 18px;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(25px, 2.7vw, 38px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.story-copy p {
  margin: 0;
  color: rgba(24, 40, 36, .72);
  font-size: 16px;
  line-height: 1.95;
  word-break: keep-all;
}

@media (max-width: 900px) {
  .case-story-intro { margin-bottom: 56px; }
  .story-chapter { margin-bottom: 88px; }
  .story-media { grid-template-columns: 1fr; gap: 12px; }
  .story-media figure:only-child { grid-column: auto; }
  .story-copy {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
    padding-top: 22px;
  }
  .story-copy h3 { margin-bottom: 12px; }
  .story-copy p { font-size: 15px; line-height: 1.85; }
}

/* Typography system: one Korean-first family for consistent rendering. */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

body {
  font-weight: 400;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.cases-hero h1,
.case-detail-title h1,
.case-card-copy h2,
.case-story-intro h2,
.story-copy h3,
.case-doctor-note blockquote {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-style: normal;
}

.cases-hero h1 {
  max-width: 1080px;
  font-size: clamp(46px, 5.5vw, 78px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.038em;
}

.cases-hero > div p {
  font-size: 15px;
  line-height: 1.8;
}

.case-card-copy h2 {
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -.03em;
}

.case-card-copy p {
  font-size: 15px;
  line-height: 1.78;
}

.case-detail-title h1 {
  max-width: 980px;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 650;
  line-height: 1.26;
  letter-spacing: -.038em;
}

.case-story-intro h2 {
  max-width: 820px;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.035em;
}

.story-copy {
  grid-template-columns: 72px minmax(0, 760px);
  gap: 28px;
}

.story-copy h3 {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.story-copy p {
  max-width: 760px;
  color: rgba(24, 40, 36, .82);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: -.012em;
}

.case-doctor-note blockquote {
  max-width: 850px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -.028em;
}

.case-detail-header,
.cases-header,
.case-filters,
.case-notice,
.detail-footer {
  font-size: 13px;
}

@media (max-width: 900px) {
  .cases-hero h1 { font-size: 42px; line-height: 1.22; }
  .case-detail-title { padding-top: 72px; padding-bottom: 50px; }
  .case-detail-title h1 {
    margin: 20px 0 42px;
    font-size: 36px;
    line-height: 1.3;
    letter-spacing: -.032em;
  }
  .case-story-intro h2 { font-size: 32px; line-height: 1.35; }
  .story-copy { grid-template-columns: 1fr; }
  .story-copy h3 { font-size: 25px; }
  .story-copy p {
    max-width: none;
    font-size: 16px;
    line-height: 1.85;
    letter-spacing: -.008em;
  }
  .case-doctor-note blockquote { font-size: 27px; line-height: 1.55; }
}

@media (max-width: 420px) {
  .cases-hero h1 { font-size: 37px; }
  .case-detail-title h1 { font-size: 33px; }
  .case-story-intro h2 { font-size: 29px; }
}

/* Direct channel cards shared by the clinical-note index and detail pages. */
.channel-banner {
  padding: clamp(76px, 9vw, 126px) clamp(24px, 7vw, 112px);
  background: #fff;
}
.channel-banner-inner { max-width: 1280px; margin: 0 auto; }
.channel-banner-head {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 42px;
}
.channel-banner-head > div > span {
  color: #416a5e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.channel-banner-head h2 {
  margin: 14px 0 0;
  font-size: clamp(34px, 3.7vw, 54px);
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -.035em;
}
.channel-banner-head > p {
  max-width: 520px;
  margin: 0;
  color: rgba(24, 40, 36, .68);
  font-size: 15px;
  line-height: 1.8;
}
.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.channel-card {
  display: grid;
  grid-template-columns: 54px 1fr 24px;
  gap: 22px;
  align-items: center;
  min-height: 150px;
  padding: 28px 30px;
  border: 1px solid rgba(24, 40, 36, .15);
  background: #f7f4ed;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.channel-card:hover,
.channel-card:focus-visible {
  transform: translateY(-3px);
  border-color: #91a7a2;
  box-shadow: 0 14px 34px rgba(20, 45, 43, .08);
}
.channel-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  font-size: 22px;
  font-weight: 800;
}
.channel-naver .channel-mark { color: #fff; background: #03c75a; }
.channel-kakao .channel-mark { color: #2a2117; background: #fee500; }
.channel-card small {
  display: block;
  margin-bottom: 8px;
  color: rgba(24, 40, 36, .56);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}
.channel-card strong { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.025em; }
.channel-card p { margin: 7px 0 0; color: rgba(24, 40, 36, .66); font-size: 14px; line-height: 1.65; }
.channel-arrow { font-size: 22px; }
@media (max-width: 900px) {
  .channel-banner { padding: 72px 22px; }
  .channel-banner-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; }
  .channel-banner-head h2 { font-size: 32px; }
  .channel-grid { grid-template-columns: 1fr; }
  .channel-card { min-height: 126px; padding: 23px 20px; grid-template-columns: 48px 1fr 20px; gap: 16px; }
  .channel-mark { width: 48px; height: 48px; border-radius: 13px; }
  .channel-card strong { font-size: 19px; }
}

/* Site-wide spacing rhythm for clinical-note index and detail pages. */
.cases-hero {
  padding-top: clamp(88px, 9vw, 130px);
  padding-bottom: 62px;
}
.cases-hero > div { margin-top: 48px; }
.cases-list { gap: 58px 22px; }
.detail-pad { padding-top: clamp(76px, 8vw, 120px); padding-bottom: clamp(76px, 8vw, 120px); }
.case-card-copy { padding-top: 20px; }
.case-card-copy p { margin-bottom: 18px; }
.case-detail-title {
  padding-top: clamp(72px, 7vw, 108px);
  padding-bottom: 58px;
}
.case-detail-title h1 { margin-top: 20px; margin-bottom: 44px; }
.case-story-intro { margin-bottom: clamp(48px, 6vw, 78px); }
.story-chapter { margin-bottom: clamp(76px, 8vw, 112px); }
.story-copy { margin-top: 24px; padding-top: 24px; }
.case-doctor-note { padding-top: clamp(76px, 8vw, 116px); padding-bottom: clamp(76px, 8vw, 116px); }
.case-doctor-note blockquote { margin-top: 26px; margin-bottom: 34px; }
.channel-banner { padding-top: clamp(72px, 8vw, 108px); padding-bottom: clamp(72px, 8vw, 108px); }
@media (max-width: 900px) {
  .cases-hero { padding-top: 74px; padding-bottom: 52px; }
  .cases-hero > div { margin-top: 36px; }
  .cases-list { gap: 46px; }
  .detail-pad { padding-top: 68px; padding-bottom: 68px; }
  .case-detail-title { padding-top: 64px; padding-bottom: 44px; }
  .case-detail-title h1 { margin-bottom: 34px; }
  .case-story-intro { margin-bottom: 44px; }
  .story-chapter { margin-bottom: 72px; }
  .case-doctor-note { padding-top: 68px; padding-bottom: 68px; }
}

/* Keep the original CI shape, toned down to match the site's quiet palette. */
.detail-logo .brand-logo {
  filter: saturate(.68) contrast(.94) brightness(1.03);
}
