/* 독자게시판 글쓰기 하단 첨부란 */
.kboard-form .kboard-attr-media,
.kboard-form .kboard-attr-thumbnail,
.kboard-form .kboard-attr-attach {
  display: none !important;
}

/* 모바일 게시글 본문 양쪽 정렬 */
@media (max-width: 767px) {
  body.single-post .entry-content > p:not([class*="has-text-align-"], [style*="text-align"], [align], .wp-caption-text) {
    text-align: justify;
    text-align-last: start;
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

/* 시인투데이 · Canard */
body, button, input, select, textarea { font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; }
.entry-content, .entry-summary, .entry-title { color: #222; word-break: keep-all; overflow-wrap: anywhere; }
#masthead { background: #fff; }
@media (min-width: 1024px) {
  #masthead .header-image { display: flex; align-items: center; min-height: 132px; margin: 0; padding: 8px 0; }
  #masthead .header-image-inner { width: min(960px, 96%); }
  #masthead .search-navigation { margin: 0; padding: 0;  }
  #masthead .search-navigation-inner { width: min(960px, 96%); }
  #masthead #site-navigation { flex: 1 1 auto; }
  #masthead #primary-menu { display: flex; width: 100%; }
  #masthead #primary-menu > li { flex: 1 1 0; text-align: center; }
  #masthead #primary-menu > li > a { white-space: nowrap; padding-inline: 4px; }
  #masthead #primary-menu .sub-menu { text-align: left; }
}
@media (max-width: 767px) {
  #masthead { padding-bottom: 16px; }
  #masthead .header-image { padding-block: 9px; margin: 0; }
  .entry-title { font-size: 23px; line-height: 1.4; }
  .entry-content, .entry-summary { font-size: 16.5px; line-height: 1.8; }
  .entry-content p, .entry-summary p { margin-bottom: 1.1em; }
}

/* 모바일 제호와 버튼 */
@media (max-width: 767px) {
  #masthead.poettoday-masthead { padding: 4px 0 12px; }
  #masthead.poettoday-masthead .site-branding { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #masthead.poettoday-masthead .header-image { margin: 0; padding: 0; }
  #masthead.poettoday-masthead .search-navigation { top: clamp(23px, calc(14.36vw - 14px), 96px); }
  #masthead.poettoday-masthead .menu-toggle { margin-top: -18px; }
  #page #content .entry-title { font-size: 23px; line-height: 1.4; }
  #page #content :is(.entry-content, .entry-summary) { font-size: 16.5px; line-height: 1.8; }
  #page #content :is(.entry-content, .entry-summary, .entry-title) { word-break: keep-all; overflow-wrap: anywhere; }
}

@media (max-width: 767px) {
  #masthead.poettoday-masthead { padding: 4px 0 12px !important; }
  #masthead.poettoday-masthead .site-branding { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #masthead.poettoday-masthead .header-image { margin: 0 !important; padding: 0 !important; }
  #masthead.poettoday-masthead .menu-toggle { margin-top: -18px !important; }
  #page #content .entry-title { font-size: 23px !important; }
  #page #content :is(.entry-content, .entry-summary) { font-size: 16.5px !important; line-height: 1.8; }
}

@media (min-width: 1024px) {
  #masthead #primary-menu > li { min-width: 0; flex: 1 1 0; }
  #masthead #primary-menu > li > a { padding-inline: 4px !important; font-size: 15px; }
}

@media (min-width: 1024px) {
  #masthead #primary-menu { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
  #masthead #primary-menu > li { padding-inline: 0; }
}

@media (min-width: 1024px) {
  #masthead #primary-menu::before, #masthead #primary-menu::after { content: none; }
  #masthead #primary-menu > li.menu-item-has-children > a { padding-inline-end: 14px !important; }
  #masthead #primary-menu > li.menu-item-has-children > a::after { right: 3px; }
}

@media (min-width: 1024px) {
  #masthead #primary-menu > li > a { font-size: 14px; }
  #masthead #primary-menu > li.menu-item-has-children > a { padding-inline: 4px !important; }
  #masthead #primary-menu > li.menu-item-has-children > a::after { position: static; display: inline-block; margin-inline-start: 4px; transform: none; }
}


/* 화면 너비 경계에서 메뉴·검색이 서로 가려지지 않도록 보정 */
#page #masthead.poettoday-masthead :is(.header-image-inner, picture, .search-navigation-inner) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
#page :is(.poettoday-columns, .poettoday-full-content) > :is(#primary, #secondary),
#page #colophon .poettoday-footer { min-width: 0; overflow-wrap: anywhere; }
#page #masthead.poettoday-masthead .search-header .search-form {
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
}
#page #masthead.poettoday-masthead .search-header .search-field {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 768px) and (max-width: 1023px) {
  #page #masthead.poettoday-masthead .search-navigation {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 50px;
    overflow: visible !important;
  }
  #page #masthead.poettoday-masthead .search-navigation-inner {
    position: relative;
    min-height: 50px;
  }
  #page #masthead.poettoday-masthead #site-navigation {
    padding-inline: 0 !important;
  }
  #page #masthead.poettoday-masthead :is(.search-toggle, .menu-toggle) {
    position: absolute !important;
    top: 50% !important;
    width: 40px;
    height: 40px;
    margin: 0 !important;
    line-height: 38px;
    transform: translateY(-50%);
  }
  #page #masthead.poettoday-masthead .menu-toggle {
    right: 8px !important;
  }
  #page #masthead.poettoday-masthead .search-navigation .search-toggle {
    right: auto !important;
    left: 8px !important;
  }
}
@media (min-width: 1024px) {
  #page #masthead.poettoday-masthead .search-navigation-inner { width: 100%; }
  #page #masthead.poettoday-masthead #primary-menu > li { flex: 1 1 auto; }
}


/* PC 본문과 사이드바 너비 */
@media (min-width: 900px) {
  #page .poettoday-columns {
    grid-template-columns: minmax(0, 1fr) min(220px, 20%);
    column-gap: 25px;
  }
}


/* 홈페이지 하단 안내와 발행 정보를 세 줄로 표시 */
#page #colophon.poettoday-colophon {
  padding: 10px 0 8px !important;
  background: #f8f7f6 !important;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}
#page #colophon .poettoday-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3px 12px;
  align-items: baseline;
}
#page #colophon .poettoday-footer nav {
  grid-column: 1 / -1;
  justify-content: center;
  gap: 4px 14px;
  margin: 0 0 2px;
}
#page #colophon .poettoday-footer .poettoday-footer-name { display: none; }
#page #colophon .poettoday-footer p { margin: 0 !important; }
#page #colophon .poettoday-footer p:is(:nth-of-type(2), :nth-of-type(4)) { justify-self: end; }
#page #colophon .poettoday-footer p:is(:nth-of-type(3), :nth-of-type(5)) { justify-self: start; }
#page #colophon.poettoday-colophon .site-info {
  margin: 5px auto 0 !important;
  font-size: 12px;
  text-align: center;
}
@media (max-width: 599px) {
  #page #colophon .poettoday-footer { grid-template-columns: minmax(0, 1fr); }
  #page #colophon .poettoday-footer p:nth-of-type(n) { justify-self: center; }
}


/* 상단 메뉴바 색상과 활성 상태 */
@media (min-width: 1024px) {
  #page #masthead.poettoday-masthead .search-navigation {
    background-color: #F5F4F2;
    border-top: 3px solid #801923;
    border-bottom: 1px solid #D5D5D5;
  }
  #page #masthead.poettoday-masthead .search-navigation-inner {
    position: relative;
    top: -1px;
    margin-bottom: -2px;
  }
  #page #masthead.poettoday-masthead #primary-menu > li + li {
    padding-inline-start: 1px;
  }
}
#page #masthead.poettoday-masthead :is(.search-navigation-inner, #site-navigation, #primary-menu, #primary-menu li, #primary-menu li > a, .search-header, .search-toggle) {
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#page #masthead.poettoday-masthead #primary-menu .menu-item > a {
  color: #333 !important;
}
#page #masthead.poettoday-masthead #primary-menu .menu-item > a:is(:hover, :focus-visible),
#page #masthead.poettoday-masthead #primary-menu :is(.current-menu-item, .current-menu-parent, .current-menu-ancestor) > a {
  background-color: #801923 !important;
  color: #fff !important;
}


/* 모바일에서 펼친 메뉴의 색상 */
@media (max-width: 1023px) {
  #page #masthead.poettoday-masthead #site-navigation.toggled > div:has(> #primary-menu),
  #page #masthead.poettoday-masthead #site-navigation.toggled #primary-menu .sub-menu,
  #page #masthead.poettoday-masthead #site-navigation .menu-toggle[aria-expanded="true"] {
    background-color: #F5F4F2 !important;
  }
  #page #masthead.poettoday-masthead #site-navigation.toggled > div:has(> #primary-menu)::before,
  #page #masthead.poettoday-masthead #site-navigation.toggled > div:has(> #primary-menu)::after {
    border-bottom-color: #F5F4F2 !important;
  }
  #page #masthead.poettoday-masthead #site-navigation :is(.dropdown-toggle, .menu-toggle[aria-expanded="true"]),
  #page #masthead.poettoday-masthead #site-navigation :is(.dropdown-toggle, .menu-toggle[aria-expanded="true"])::before,
  #page #masthead.poettoday-masthead #site-navigation :is(.dropdown-toggle, .menu-toggle[aria-expanded="true"])::after {
    color: #801923 !important;
  }
}
/* PC 하위 페이지 테마 제작사 표시 제거 */
@media (min-width: 1024px) {
  body:not(.home) #colophon #site-info {
    font-size: 0 !important;
  }
  body:not(.home) #colophon #site-info a[rel="designer"] {
    display: none !important;
  }
  body:not(.home) #colophon #site-info a[data-type="footer-credit"] {
    font-size: 12px !important;
  }
	
	/* 카테고리 제목 앞의 불필요한 문구 제거 */
body.category .page-header .page-title {
  font-size: 0 !important;
}
body.category .page-header .page-title > span {
  font-size: 39px !important;