@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* === GSY Blog Premium Mobile & Desktop UI === */
html, body {
  overflow-x: clip;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: 'Pretendard Variable', 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Archive / Homepage Cards */
.content-wrap .loop-entry,
.content-wrap article.entry,
.post-archive-card,
.entry-archive-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.content-wrap .loop-entry:hover,
.content-wrap article.entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.loop-entry .post-thumbnail img,
.post-thumbnail-inner img,
.single-post .post-thumbnail img {
  object-fit: contain;
  background: #ffffff;
}

.loop-entry .entry-taxonomies a,
.entry-taxonomies .category-pill,
.category-style-pill .entry-taxonomies a {
  display: inline-block;
  padding: 4px 11px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.loop-entry .entry-title,
.loop-entry h2.entry-title,
.post-archive-card .entry-title,
.entry-archive-card .entry-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.42;
  color: #0f172a;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Single Post Reading Experience */
.single-post .entry-content-wrap,
.single-post article.entry {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.single-post h1.entry-title,
.single-post .wp-block-post-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: #0f172a;
  word-break: keep-all;
  height: auto;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.entry-content {
  font-size: 16.5px;
  line-height: 1.85;
  letter-spacing: -0.012em;
  color: #1e293b;
  word-break: keep-all;
}

.entry-content p {
  margin-bottom: 18px;
  color: #1e293b;
}

.entry-content h2.wp-block-heading,
.entry-content h2 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.42;
  color: #0f172a;
  margin-top: 34px;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 4px solid #2563eb;
  word-break: keep-all;
}

.entry-content h3.wp-block-heading,
.entry-content h3 {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
  margin-top: 24px;
  margin-bottom: 10px;
}

.entry-content a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Images */
.entry-content figure.wp-block-image img {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.entry-content figure.wp-block-image figcaption {
  font-size: 13px;
  color: #64748b;
  margin-top: 10px;
  text-align: center;
}

/* Quote / Example / Invitation Callout Cards */
.entry-content blockquote.wp-block-quote {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.entry-content blockquote.wp-block-quote h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #0f172a;
}

.entry-content blockquote.wp-block-quote p {
  margin-bottom: 8px;
  color: #334155;
  font-size: 15.5px;
  line-height: 1.72;
}

.entry-content blockquote.wp-block-quote p:last-child {
  margin-bottom: 0;
}

/* Tables */
.entry-content figure.wp-block-table {
  margin: 26px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.entry-content figure.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: #ffffff;
}

.entry-content figure.wp-block-table thead th {
  background: #0f172a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 15px;
  text-align: left;
  border: none;
}

.entry-content figure.wp-block-table tbody td {
  padding: 12px 15px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #1e293b;
  border-top: 1px solid #e2e8f0;
}

.entry-content figure.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: #f8fafc;
}

/* Lists */
.entry-content ul.wp-block-list,
.entry-content ol.wp-block-list {
  padding-left: 20px;
  margin: 14px 0 20px;
}

.entry-content ul.wp-block-list li,
.entry-content ol.wp-block-list li {
  margin-bottom: 10px;
  line-height: 1.75;
}

/* CTA Buttons */
.entry-content .wp-block-buttons {
  margin: 22px 0;
  gap: 12px;
}

.entry-content .wp-block-button__link {
  border-radius: 12px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.entry-content .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.entry-content hr.wp-block-separator {
  border: none;
  border-top: 1px dashed #cbd5e1;
  margin: 30px 0 18px;
}

/* WP Admin Bar Protection */
#wpadminbar, #wpadminbar * {
  color: #f0f0f1 !important;
}

/* Mobile Responsive Polishing */
@media (max-width: 768px) {
  .single-post .entry-content-wrap {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .single-post h1.entry-title,
  .single-post .wp-block-post-title {
    font-size: 22.5px;
    line-height: 1.4;
  }

  .entry-content {
    font-size: 15.5px;
    line-height: 1.8;
  }

  .entry-content h2.wp-block-heading,
  .entry-content h2 {
    font-size: 18.5px;
    margin-top: 28px;
    padding-left: 11px;
  }

  .entry-content blockquote.wp-block-quote {
    padding: 15px 14px;
    margin: 18px 0;
  }

  .entry-content blockquote.wp-block-quote p {
    font-size: 14.5px;
  }

  .entry-content figure.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .entry-content figure.wp-block-table thead th,
  .entry-content figure.wp-block-table tbody td {
    padding: 10px 12px;
    font-size: 13.5px;
  }

  .entry-content .wp-block-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .entry-content .wp-block-button,
  .entry-content .wp-block-button__link {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}