/* 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;
  }
}

/* Daily Econ editorial color theme */
:root {
  --econ-navy: #1F3854;
  --econ-navy-deep: #162A3F;
  --econ-blue: #3E648F;
  --econ-blue-deep: #2F537A;
  --econ-gold: #C48A2C;
  --econ-gold-deep: #A87420;
  --econ-slate: #6E7C8B;
}

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

.site-title a:hover,
.site-title a:focus {
  color: var(--econ-gold) !important;
}

/* Site description */
.site-description {
  color: var(--econ-slate) !important;
}

/* Global links */
a {
  color: var(--econ-blue);
}

a:hover,
a:focus {
  color: var(--econ-gold);
}

/* Article titles */
.entry-title a {
  color: var(--econ-navy) !important;
}

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

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

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

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

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

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

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

/* Search field focus */
.search-field:focus {
  border-color: var(--econ-blue) !important;
  box-shadow: 0 0 0 2px rgba(62, 100, 143, 0.16);
}

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

/* Daily Econ 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;
  }
}