/* Korean / English / Japanese pages - balanced reading scale */
html[lang^="ko"] .entry-content,
html[lang^="ko"] .entry-summary,
html[lang^="ko"] .entry-content p,
html[lang^="ko"] .entry-content li,
html[lang^="ko"] .entry-title,
html[lang^="ko"] .entry-content h2,
html[lang^="ko"] .entry-content h3,
html[lang^="en"] .entry-content,
html[lang^="en"] .entry-summary,
html[lang^="en"] .entry-content p,
html[lang^="en"] .entry-content li,
html[lang^="en"] .entry-title,
html[lang^="en"] .entry-content h2,
html[lang^="en"] .entry-content h3,
html[lang^="ja"] .entry-content,
html[lang^="ja"] .entry-summary,
html[lang^="ja"] .entry-content p,
html[lang^="ja"] .entry-content li,
html[lang^="ja"] .entry-title,
html[lang^="ja"] .entry-content h2,
html[lang^="ja"] .entry-content h3 {
  font-family: "Apple SD Gothic Neo", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans KR", "Noto Sans JP", "Segoe UI", Arial, sans-serif;
}

html[lang^="ko"] .entry-content,
html[lang^="ko"] .entry-summary,
html[lang^="en"] .entry-content,
html[lang^="en"] .entry-summary,
html[lang^="ja"] .entry-content,
html[lang^="ja"] .entry-summary {
  font-size: 16px;
  line-height: 1.81;
}

html[lang^="ko"] .entry-content p,
html[lang^="ko"] .entry-content li,
html[lang^="en"] .entry-content p,
html[lang^="en"] .entry-content li,
html[lang^="ja"] .entry-content p,
html[lang^="ja"] .entry-content li {
  font-size: 17px;
  line-height: 1.75;
}

@media screen and (min-width: 960px) {
  .site-header-inner {
    display: flex !important;
    align-items: flex-start !important;
  }

  .site-branding {
    margin-right: 36px !important;
  }

  #site-navigation.main-navigation {
    margin-left: auto !important;
  }
}

@media screen and (min-width: 960px) {
  #site-navigation.main-navigation > div {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
  }

  #site-navigation.main-navigation .menu {
    display: flex !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
  }

  #site-navigation.main-navigation .menu > li {
    margin-left: 18px !important;
  }

  #search-header.search-header {
    margin-left: 20px !important;
  }
}

html[lang^="ko"] .entry-title,
html[lang^="en"] .entry-title,
html[lang^="ja"] .entry-title {
  font-size: 44px;
  line-height: 1.375;
}

html[lang^="ko"] .entry-content h2,
html[lang^="en"] .entry-content h2,
html[lang^="ja"] .entry-content h2 {
  font-size: 24px;
  line-height: 1.42;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

html[lang^="ko"] .entry-content h3,
html[lang^="en"] .entry-content h3,
html[lang^="ja"] .entry-content h3 {
  font-size: 20px;
  line-height: 1.45;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}

@media (max-width: 640px) {
  html[lang^="ko"] .entry-content,
  html[lang^="ko"] .entry-summary,
  html[lang^="ko"] .entry-content p,
  html[lang^="ko"] .entry-content li,
  html[lang^="en"] .entry-content,
  html[lang^="en"] .entry-summary,
  html[lang^="en"] .entry-content p,
  html[lang^="en"] .entry-content li,
  html[lang^="ja"] .entry-content,
  html[lang^="ja"] .entry-summary,
  html[lang^="ja"] .entry-content p,
  html[lang^="ja"] .entry-content li {
    font-size: 15px;
    line-height: 1.75;
  }

  html[lang^="ko"] .entry-title,
  html[lang^="en"] .entry-title,
  html[lang^="ja"] .entry-title {
    font-size: 28px;
    line-height: 1.35;
  }

  html[lang^="ko"] .entry-content h2,
  html[lang^="en"] .entry-content h2,
  html[lang^="ja"] .entry-content h2 {
    font-size: 22px;
    line-height: 1.4;
  }

  html[lang^="ko"] .entry-content h3,
	  html[lang^="en"] .entry-content h3,
  html[lang^="ja"] .entry-content h3 {
    font-size: 18px;
    line-height: 1.45;
  }
}

/* Remove header vertical separator lines */
@media screen and (min-width: 960px) {
  .site-branding,
  #site-navigation.main-navigation,
  #search-header.search-header {
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
  }

  .site-branding::before,
  .site-branding::after,
  #site-navigation.main-navigation::before,
  #site-navigation.main-navigation::after,
  #search-header.search-header::before,
  #search-header.search-header::after {
    display: none !important;
    content: none !important;
  }
}

/* Pet Doctors Daily theme colors */
:root {
  --pdd-teal: #4E9E9E;
  --pdd-teal-deep: #3C7E7E;
  --pdd-mint: #8CC8C8;
  --pdd-mint-soft: #F2FAFA;
  --pdd-orange: #F39A1E;
  --pdd-orange-deep: #D98212;
  --pdd-text-soft: #6F7F7F;
}

/* Site title */
.site-title a {
  color: var(--pdd-teal) !important;
}

.site-title a:hover,
.site-title a:focus {
  color: var(--pdd-teal-deep) !important;
}

.site-description {
  color: var(--pdd-text-soft) !important;
}

/* Global links */
a {
  color: var(--pdd-teal);
}

a:hover,
a:focus {
  color: var(--pdd-orange);
}

/* Navigation */
.main-navigation a {
  color: #2F2F2F !important;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--pdd-orange) !important;
}

/* Article titles */
.entry-title a {
  color: var(--pdd-teal-deep) !important;
}

.entry-title a:hover,
.entry-title a:focus {
  color: var(--pdd-orange) !important;
}

/* Meta / category / comment links */
.cat-links a,
.comments-link a,
.entry-meta a {
  color: var(--pdd-teal) !important;
}

.cat-links a:hover,
.comments-link a:hover,
.entry-meta a:hover {
  color: var(--pdd-orange) !important;
}

/* Read more */
.more-link {
  color: var(--pdd-teal) !important;
  font-weight: 600;
}

.more-link:hover,
.more-link:focus {
  color: var(--pdd-orange) !important;
}

/* Search button area */
.search-toggle,
.search-submit {
  color: var(--pdd-teal) !important;
}

.search-toggle:hover,
.search-toggle:focus,
.search-submit:hover,
.search-submit:focus {
  color: var(--pdd-orange) !important;
}

/* Optional soft accent for search field */
.search-field:focus {
  border-color: var(--pdd-mint) !important;
  box-shadow: 0 0 0 2px rgba(140, 200, 200, 0.18);
}

/* Optional subtle highlight on current menu item */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  border-bottom: 2px solid var(--pdd-orange);
}

.site-title {
  font-size: 1.5em !important;
  line-height: 1.1 !important;
}

/* Hide internal uncategorized Polylang sets from readers */

/* Hide post cards / article blocks */
article.category-uncategorized-ko,
article.category-uncategorized-en,
article.category-uncategorized-ja {
  display: none !important;
}

/* Hide category links themselves */
.cat-links a[href*="/category/uncategorized-ko/"],
.cat-links a[href*="/category/uncategorized-en/"],
.cat-links a[href*="/category/uncategorized-ja/"] {
  display: none !important;
}

/* Hide category widgets / lists */
.widget a[href*="/category/uncategorized-ko/"],
.widget a[href*="/category/uncategorized-en/"],
.widget a[href*="/category/uncategorized-ja/"] {
  display: none !important;
}

/* Hide single post content if that post belongs to internal uncategorized set */
body.single.category-uncategorized-ko .site-content,
body.single.category-uncategorized-en .site-content,
body.single.category-uncategorized-ja .site-content {
  display: none !important;
}

/* Hide uncategorized archive pages */
body.archive.category-uncategorized-ko .site-content,
body.archive.category-uncategorized-en .site-content,
body.archive.category-uncategorized-ja .site-content {
  display: none !important;
}

html[lang^="ko"] .entry-title,
html[lang^="ko"] .entry-title a {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
	  line-break: strict !important;
}

html[lang^="en"] .entry-title,
html[lang^="en"] .entry-title a {
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

html[lang^="ja"] .entry-title,
html[lang^="ja"] .entry-title a {
  word-break: normal !important;
  line-break: strict !important;
}

/* Daily Econ single post hero: fixed height + crop */
.single-post .post-thumbnail {
  display: block;
  height: 440px;
  overflow: hidden;
}

.single-post .post-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

@media (max-width: 960px) {
  .single-post .post-thumbnail {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .single-post .post-thumbnail {
    height: 260px;
  }
}

/* headline width refinement */
.single-post .entry-header .entry-title {
  max-width: 700px !important;
}

.single-post .entry-header .entry-title a {
  display: inline-block;
  line-height: 1.22 !important;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (max-width: 960px) {
  .single-post .entry-header .entry-title {
    max-width: 520px !important;
  }
}

@media (max-width: 640px) {
  .single-post .entry-header .entry-title {
    max-width: none !important;
  }

  .single-post .entry-header .entry-title a {
    line-height: 1.28 !important;
    letter-spacing: -0.01em;
  }
}