/* Hospital SEO Theme — clinical slate / teal
 * OO의원 질환정보 채널 (범용)
 */

:root {
  --ink: #1c2a33;
  --ink-soft: #3d4f5c;
  --muted: #6b7c88;
  --line: #d7e0e6;
  --paper: #f3f6f5;
  --paper-2: #e8efed;
  --surface: #ffffff;
  --brand: #0d6b63;
  --brand-deep: #0a524c;
  --brand-soft: #e4f2f0;
  --accent: #c45c26;
  --radius: 10px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 10% -10%, #dceeea 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e7ecea 0%, transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover,
a:active {
  color: var(--brand-deep);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

pre, code {
  background: #eef2f1;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: .92857em;
}
code { padding: 2px 5px; color: #9b3b36; }
pre {
  padding: 12px;
  overflow: auto;
  max-height: 400px;
  border-radius: var(--radius);
}
pre code {
  display: block;
  padding: 0;
  color: var(--ink-soft);
}

blockquote {
  margin: 1.2em 0;
  padding: 0.2em 0 0.2em 1.1em;
  border-left: 3px solid var(--brand);
  color: var(--ink-soft);
  background: transparent;
}

table {
  border: 1px solid var(--line);
  width: 100%;
  border-collapse: collapse;
}
table th,
table td {
  padding: 8px 12px;
  border: 1px solid var(--line);
}
table th {
  background: var(--brand-soft);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  width: 100%;
  border-radius: 8px;
  background: var(--surface);
  box-sizing: border-box;
  font-family: inherit;
}
textarea { resize: vertical; }

.post-meta a,
.post-content a,
.widget a,
.comment-content a {
  border-bottom: 1px solid rgba(13, 107, 99, 0.25);
}
.post-meta a:hover,
.post-content a:hover,
.widget a:hover,
.comment-content a:hover {
  border-bottom-color: transparent;
}

/* ---------- Header ---------- */
.site-header,
#header {
  padding: 1.35rem 0 0;
  border-bottom: none;
  background: transparent;
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.site-brand {
  flex: 1 1 220px;
  min-width: 0;
}

.header-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  flex: 0 1 320px;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
}

.brand-link,
#logo {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  display: inline-block;
}
#logo img {
  max-height: 56px;
  display: block;
}

.description {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  max-width: 36rem;
}

.site-search,
#search {
  position: relative;
  margin: 0;
  width: 100%;
}
#search input.text {
  padding-right: 4.2rem;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(28, 42, 51, 0.03);
}
#search button.submit {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border: none;
  padding: 0 0.85rem;
  min-width: 3.4rem;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-indent: 0;
  width: auto;
  height: auto;
  direction: ltr;
}
#search button.submit:hover {
  background: var(--brand-deep);
}

/* Channel buttons — under search, right-aligned */
.channel-nav,
#nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: none;
  float: none;
  width: 100%;
}

.channel-btn,
#nav-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
  margin: 0;
  height: auto;
  line-height: 1.2;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.channel-btn:hover,
#nav-menu a:hover {
  background: var(--brand-soft);
  border-color: #b9d9d4;
  color: var(--brand-deep);
}

.channel-btn--sister,
#nav-menu a.channel-btn--sister {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.channel-btn--sister:hover,
#nav-menu a.channel-btn--sister:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

/* ---------- Main ---------- */
#body {
  padding: 1.5rem 0 2rem;
}

.post {
  padding: 1.35rem 1.2rem;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.post-title {
  margin: 0 0 0.45em;
  font-size: 1.28em;
  line-height: 1.35;
}
article.post .post-title {
  font-size: 1.55em;
  line-height: 1.35;
  margin-bottom: 0.55em;
}
.post-title a {
  color: var(--ink);
  border: none;
}
.post-title a:hover {
  color: var(--brand);
}

.post-meta {
  margin: 0 0 0.85em;
  padding: 0;
  color: var(--muted);
  font-size: 0.88em;
  list-style: none;
}
.post-meta li {
  display: inline-block;
  margin: 0 10px 0 0;
  padding-left: 0;
  border: none;
}
.post-meta li:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #b0bec5;
}

#main {
  overflow: hidden;
}

.post-content {
  line-height: 1.85;
  overflow-wrap: break-word;
  word-wrap: break-word;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.post-content p,
.comment-content p {
  margin: 0 0 1.1em;
}
.post-content p:last-child,
.comment-content p:last-child {
  margin-bottom: 0;
}
.post-content ul,
.post-content ol,
.comment-content ul,
.comment-content ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}
.post-content li + li,
.comment-content li + li {
  margin-top: 0.35em;
}
.post-content h2,
.comment-content h2 {
  font-size: 1.35em;
  margin: 1.85rem 0 0.75rem;
}
.post-content h3,
.comment-content h3 {
  font-size: 1.15em;
  margin: 1.4rem 0 0.6rem;
}
.post-content h2:first-child,
.post-content h3:first-child {
  margin-top: 0;
}
.post-content img,
.comment-content img,
.post-content video,
.comment-content video {
  max-width: 100%;
  border-radius: 8px;
}

.post-content img,
.comment-content img {
  cursor: pointer;
}

/* 글보기(PC) — 본문 이미지: 가로 80%·최대 640px, 세로 높이 상한 */
@media (min-width: 768px) {
  article.post .post-content img,
  article.post .post-content video {
    display: block;
    width: auto;
    max-width: min(80%, 640px);
    max-height: min(76vh, 680px);
    height: auto;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
  }

  article.post .post-content figure {
    display: flex;
    justify-content: center;
    max-width: min(80%, 640px);
    margin-left: auto;
    margin-right: auto;
  }

  article.post .post-content figure img {
    width: auto;
    max-width: 100%;
    max-height: min(76vh, 680px);
    height: auto;
    object-fit: contain;
  }
}
.post-content hr,
.comment-content hr {
  margin: 2em auto;
  width: 80px;
  border: 0;
  border-top: 2px solid var(--line);
}

.post-near {
  list-style: none;
  margin: 1.75rem 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.post-near li { margin: 0.45rem 0; }

.hub-header {
  margin: 0 0 1.35rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-soft) 100%);
}
.hub-title {
  margin: 0 0 0.35em;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.3;
}
.hub-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.post-summary {
  margin-bottom: 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}
.post-summary .post-title {
  font-size: 1.22em;
  margin-bottom: 0.4em;
}
.post-summary .post-meta {
  margin-bottom: 0.75em;
}
.post-summary:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.post-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
.post-summary--has-thumb .post-summary-grid {
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.post-thumb {
  display: block;
  width: 200px;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--brand-soft);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.post-thumb:hover {
  border-color: #b9d9d4;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}
.post-thumb img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}
.post-summary-body {
  min-width: 0;
}

.post-summary .post-excerpt {
  margin: 0.35em 0 0.85em;
  color: var(--ink-soft);
}
.post-summary .more a,
.post-summary .more-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.post-summary .more a:hover,
.post-summary .more-link:hover {
  background: var(--brand-soft);
  border-color: #b9d9d4;
}

.archive-title {
  margin: 0 0 1.1em;
  padding: 0;
  color: var(--ink);
  font-size: 1.35em;
}

.more { text-align: left; }
.more a { border: none; }
.protected .text { width: 50%; }

.page-navigator {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  text-align: center;
}
.page-navigator li {
  display: inline-block;
  margin: 0 3px;
}
.page-navigator a {
  display: inline-block;
  padding: 0 12px;
  height: 34px;
  line-height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--ink-soft);
}
.page-navigator a:hover {
  background: var(--brand-soft);
  text-decoration: none;
}
.page-navigator .current a {
  color: #fff;
  background: var(--brand);
}

/* Comments */
#comments { padding-top: 0.5rem; }
.comment-list,
.comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list li {
  padding: 14px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.comment-list li.comment-level-odd { background: #f7faf9; }
.comment-list li.comment-level-even { background: var(--surface); }
.comment-list li.comment-by-author { background: var(--brand-soft); }
.comment-list li .comment-reply {
  text-align: right;
  font-size: .92857em;
}
.comment-meta a {
  color: var(--muted);
  font-size: .92857em;
}
.comment-author {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}
.comment-author .avatar {
  float: left;
  margin-right: 10px;
  border-radius: 50%;
}
.comment-author cite {
  font-weight: 700;
  font-style: normal;
}
.comment-list .respond {
  margin-top: 15px;
  border-top: 1px solid var(--line);
}
.respond .cancel-comment-reply {
  float: right;
  margin-top: 15px;
  font-size: .92857em;
}
#comment-form label {
  display: block;
  margin-bottom: .5em;
  font-weight: 700;
}
#comment-form .required:after {
  content: " *";
  color: #C00;
}

/* Sidebar */
#secondary {
  padding-top: 0;
  word-wrap: break-word;
}
.widget {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.widget .widget-title,
#secondary h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget-list li {
  margin: 0.4rem 0;
  line-height: 1.5;
}
.widget-list li ul { margin-left: 12px; }

/* Footer (classic / narrow layout) */
#footer:not(.site-footer--rich) {
  padding: 2.25rem 1rem 2.75rem;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}
.footer-sister a {
  display: inline-flex;
  margin-top: 0.65rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.footer-sister a:hover {
  background: var(--brand-deep);
  color: #fff;
}

.error-page {
  margin-top: 80px;
  margin-bottom: 80px;
}

.aligncenter, div.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft { float: left; }
.alignright { float: right; }
img.alignleft { margin: 0 15px 0 0; }
img.alignright { margin: 0 0 0 15px; }

.hidden {
  display: none !important;
  visibility: hidden;
}
.sr-only {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}
.invisible { visibility: hidden; }

/* Crosslink + CTA (발행 엔진 블록) */
.post-channel-crosslink {
  margin: 1.35em 0;
  padding: 0.9em 1.05em;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
}
.post-channel-crosslink p { margin: 0; }

.post-cta-block {
  --cta-icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
  --cta-icon-tel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  --cta-icon-naver: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  --cta-icon-kakao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a1a1a' d='M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12l4 4V4c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E");
  --cta-icon-instagram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm5 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm6.5-.9a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2z'/%3E%3C/svg%3E");
  --cta-icon-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M14 3h7v7h-2V6.4l-9.2 9.2-1.4-1.4L17.6 5H14V3zM5 5h7v2H7.8L17 15.2l-1.4 1.4L6.4 8.2V17H5V5z'/%3E%3C/svg%3E");
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 2rem 0 0.5rem;
  padding: 1.2rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  overflow: hidden;
}
.post-cta-lead {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.post-cta-buttons {
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}
.post-cta-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 3.2rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--brand);
  color: #fff !important;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.post-cta-btn__icon,
.post-cta-btn:not(:has(.post-cta-btn__icon))::before {
  content: "";
  display: block;
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  font-size: 0;
  color: transparent;
  background-color: transparent;
  background-image: var(--cta-icon-link);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.post-cta-btn__text {
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-cta-btn:hover,
.post-cta-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
  filter: brightness(1.02);
  color: #fff !important;
}
.post-cta-btn--home,
.post-cta-btn--default {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
}
.post-cta-btn--home .post-cta-btn__icon,
.post-cta-btn--home:not(:has(.post-cta-btn__icon))::before,
.post-cta-btn--default .post-cta-btn__icon,
.post-cta-btn--default:not(:has(.post-cta-btn__icon))::before {
  background-image: var(--cta-icon-home);
}
.post-cta-btn--tel {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}
.post-cta-btn--tel .post-cta-btn__icon,
.post-cta-btn--tel:not(:has(.post-cta-btn__icon))::before {
  background-image: var(--cta-icon-tel);
}
.post-cta-btn--naver,
.post-cta-btn--reserve {
  background: linear-gradient(180deg, #03c75a 0%, #02a84a 100%);
}
.post-cta-btn--naver .post-cta-btn__icon,
.post-cta-btn--naver:not(:has(.post-cta-btn__icon))::before,
.post-cta-btn--reserve .post-cta-btn__icon,
.post-cta-btn--reserve:not(:has(.post-cta-btn__icon))::before {
  background-image: var(--cta-icon-naver);
}
.post-cta-btn--kakao {
  background: linear-gradient(180deg, #fee500 0%, #f3d800 100%);
  color: #1f1f1f !important;
  border-color: rgba(0, 0, 0, 0.08);
}
.post-cta-btn--kakao .post-cta-btn__icon,
.post-cta-btn--kakao:not(:has(.post-cta-btn__icon))::before {
  background-image: var(--cta-icon-kakao);
}
.post-cta-btn--kakao:hover,
.post-cta-btn--kakao:focus {
  color: #1f1f1f !important;
}
.post-cta-btn--instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 52%, #8134af 100%);
}
.post-cta-btn--instagram .post-cta-btn__icon,
.post-cta-btn--instagram:not(:has(.post-cta-btn__icon))::before {
  background-image: var(--cta-icon-instagram);
}
/* 기존 글 — URL 기준 색·아이콘 (이모지 없음) */
.post-cta-btn:not([class*="post-cta-btn--"])[href^="tel:"] {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}
.post-cta-btn:not([class*="post-cta-btn--"])[href^="tel:"]:not(:has(.post-cta-btn__icon))::before {
  background-image: var(--cta-icon-tel);
}
.post-cta-btn:not([class*="post-cta-btn--"])[href*="kakao"] {
  background: linear-gradient(180deg, #fee500 0%, #f3d800 100%);
  color: #1f1f1f !important;
}
.post-cta-btn:not([class*="post-cta-btn--"])[href*="kakao"]:not(:has(.post-cta-btn__icon))::before {
  background-image: var(--cta-icon-kakao);
}
.post-cta-btn:not([class*="post-cta-btn--"])[href*="naver"],
.post-cta-btn:not([class*="post-cta-btn--"])[href*="naver.me"] {
  background: linear-gradient(180deg, #03c75a 0%, #02a84a 100%);
}
.post-cta-btn:not([class*="post-cta-btn--"])[href*="naver"]:not(:has(.post-cta-btn__icon))::before,
.post-cta-btn:not([class*="post-cta-btn--"])[href*="naver.me"]:not(:has(.post-cta-btn__icon))::before {
  background-image: var(--cta-icon-naver);
}
.post-cta-btn:not([class*="post-cta-btn--"])[href*="instagram"] {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 52%, #8134af 100%);
}
.post-cta-btn:not([class*="post-cta-btn--"])[href*="instagram"]:not(:has(.post-cta-btn__icon))::before {
  background-image: var(--cta-icon-instagram);
}
.post-cta-btn:not([class*="post-cta-btn--"]):not([href^="tel:"]):not([href*="kakao"]):not([href*="naver"]):not([href*="instagram"]):not(:has(.post-cta-btn__icon))::before {
  background-image: var(--cta-icon-home);
}

.post-hospital-footer {
  margin: 1.5rem 0 0.5rem;
  padding: 1.15rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.post-hospital-footer a { color: var(--brand); }
.post-footer-ad,
.post-footer-disclaimer,
.post-footer-privacy {
  margin: 0 0 0.65rem;
  color: var(--muted);
}
.post-footer-contact { margin: 0 0 0.75rem; }
.post-footer-map { margin: 0 0 0.65rem; }

@media (max-width: 767px) {
  body {
    background: var(--paper);
  }

  .site-header,
  #header {
    padding: 0.55rem 0 0;
  }

  .header-top {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
    padding-bottom: 0.7rem;
  }

  .site-brand {
    flex: 0 0 auto;
  }

  .header-tools {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    margin-left: 0;
    align-items: stretch;
    gap: 0.45rem;
  }

  .brand-link,
  #logo {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .description {
    margin-top: 0.2rem;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  #body {
    padding: 0.65rem 0 1.15rem;
  }

  /* 모바일 글보기 — 화면 가로 97% (세로 보기 시 좌우 여백 최소) */
  #header .container,
  #header .container.container--wide,
  #body > .container,
  #body > .container.container--wide {
    width: 97vw;
    max-width: 97vw;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  #body > .container > .row {
    margin-left: 0;
    margin-right: 0;
  }

  #body > .container > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  #main {
    overflow: visible;
  }

  article.post,
  .layout-wide article.post {
    padding: 0.7rem 0.95rem;
    overflow: visible;
  }

  article.post .post-content {
    overflow: visible;
    padding-left: 0;
    padding-right: 0;
  }

  article.post .post-content figure.post-photo,
  article.post .post-content figure {
    width: 100%;
    max-width: 100%;
    margin: 0.9rem 0;
    padding: 0;
    box-sizing: border-box;
  }

  article.post .post-content img,
  article.post .post-content video,
  article.post .post-content figure.post-photo img,
  article.post .post-content figure img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: 0;
    margin-right: 0;
    object-fit: contain;
    box-sizing: border-box;
  }

  .hub-header {
    margin-bottom: 0.75rem;
    padding: 0.8rem 0.9rem;
  }

  .hub-title {
    font-size: 1.2rem;
  }

  .hub-lead {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .post {
    padding: 0.7rem 0.95rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
  }

  .post-summary {
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .channel-nav,
  #nav-menu {
    justify-content: stretch;
  }

  .channel-btn,
  #nav-menu a {
    flex: 1 1 calc(50% - 0.45rem);
    padding: 0.5rem 0.65rem;
    font-size: 0.86rem;
  }

  .post-summary--has-thumb .post-summary-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .post-thumb {
    width: 100%;
    max-width: none;
  }

  .post-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .post-summary .post-title {
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .post-summary .post-meta {
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
  }

  .post-summary .post-meta li {
    display: block;
    margin: 0.12rem 0;
  }

  .post-summary .post-meta li:not(:last-child)::after {
    content: none;
  }

  .post-summary .post-excerpt {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .post-summary .more {
    margin-top: 0.55rem;
  }

  .post-cta-buttons {
    flex-wrap: wrap;
  }

  .post-cta-btn {
    flex: 1 1 calc(50% - 0.25rem);
    max-width: calc(50% - 0.25rem);
    min-height: 3.35rem;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
  }

  .post-cta-btn__icon,
  .post-cta-btn:not(:has(.post-cta-btn__icon))::before {
    flex: 0 0 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
  }

  .post-cta-btn__text {
    white-space: normal;
    text-overflow: clip;
    text-align: center;
  }
}

@media (max-width: 768px) {
  #header,
  .post-title,
  .post-meta {
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1040px;
  }
}
