/* Hospital SEO Theme — clinical slate / teal
 * 부평연세비뇨기과 질환정보 채널
 */

: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 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 {
  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 */
#footer {
  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 {
  margin: 2rem 0 0.5rem;
  padding: 1.25rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-soft) 100%);
  text-align: center;
}
.post-cta-lead {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.post-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}
.post-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.2rem;
  padding: 0.62rem 1.1rem;
  border-radius: 8px;
  background: var(--brand);
  color: #fff !important;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: background 0.15s ease;
}
.post-cta-btn:hover,
.post-cta-btn:focus {
  background: var(--brand-deep);
  color: #fff !important;
}

.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;
  }

  .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.95rem 0.85rem;
    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;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    max-height: 210px;
  }

  .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-direction: column;
    align-items: stretch;
  }

  .post-cta-btn {
    width: 100%;
    min-width: 0;
  }
}

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

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