/*
Theme Name: PreBuy Kadence Child
Theme URI: https://buy.fmnote.com/
Description: Child theme for PreBuy CSS SSOT management
Author: FMNOTE
Template: kadence
Version: 1.0.1
Text Domain: prebuy-kadence-child
*/

/* PreBuy Brand Color System */
:root {
  --global-palette1: #6812C8;
  --global-palette1rgb: 104, 18, 200;
  --global-palette2: #7E2DF3;
  --global-palette2rgb: 126, 45, 243;
  --global-palette3: #111111;
  --global-palette3rgb: 17, 17, 17;
  --global-palette9: #FFFFFF;
  --global-palette9rgb: 255, 255, 255;
}
body {
  color: #111111;
  background-color: #FFFFFF;
}
a { color: #6812C8; }
a:hover, a:focus { color: #7E2DF3; }
button,
input[type="button"],
input[type="submit"],
.wp-block-button__link,
.button,
.kt-button,
a.kb-button {
  background-color: #6812C8;
  border-color: #6812C8;
  color: #fff;
}
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.button:hover,
.kt-button:hover,
a.kb-button:hover {
  background-color: #7E2DF3;
  border-color: #7E2DF3;
  color: #fff;
}

/* PREBUY_FONT_STACK_V1_START */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
body, button, input, select, textarea {
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
h1, h2, h3, h4, h5, h6, .entry-title, .site-title, .site-description, .menu a {
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
/* PREBUY_FONT_STACK_V1_END */



/* PREBUY_MOBILE_CONTENT_WIDTH_V1_START */
/* Disabled on 2026-03-01 per owner request: mobile width override caused asymmetry perception on Samsung Browser. */
/* PREBUY_MOBILE_CONTENT_WIDTH_V1_END */

/* PREBUY_LOGO_PC_WIDTH_V1_START */
@media (min-width: 1025px) {
  .site-branding .custom-logo,
  .custom-logo-link img.custom-logo,
  .brand img.custom-logo {
    width: 110px !important;
    max-width: 110px !important;
    height: auto !important;
  }
}
/* PREBUY_LOGO_PC_WIDTH_V1_END */

/* PREBUY_ARCHIVE_CARD_TUNE_V1_START */
/* Archive/Home card tuning */
.blog .entry-meta .posted-by { display: none !important; }
.blog .entry-meta.entry-meta-divider-dot .posted-on:before { display: none !important; }

.blog .loop-entry .entry-summary p {
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  text-overflow: ellipsis;
}

/* Single post meta: hide author, show date only with softer color */
.single-post .entry-meta .posted-by { display: none !important; }
.single-post .entry-meta.entry-meta-divider-dot .posted-on:before { display: none !important; }
.single-post .entry-meta .posted-on,
.single-post .entry-meta .posted-on a,
.single-post .entry-meta .posted-on time {
  color: #999 !important;
  font-weight: 500;
}
.single-post .entry-meta {
  margin-top: 6px;
  margin-bottom: 8px;
}

/* Main(home) only: light gray canvas + white rounded cards */
body.home,
body.home .site,
body.home .site-content {
  background: #f3f4f6 !important;
}
body.home .content-area,
body.home .site-main,
body.home .content-container {
  background: transparent !important;
}
body.home .loop-entry.content-bg {
  background: #fff !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
body.home .loop-entry .entry-content-wrap {
  padding: 10px 14px 12px;
}

/* Smaller thumbnail (stable render) */
body.home .loop-entry .post-thumbnail {
  display: block;
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
}
body.home .loop-entry .post-thumbnail .post-thumbnail-inner {
  position: relative !important;
  width: 100%;
  padding-bottom: 52% !important;
}
body.home .loop-entry .post-thumbnail .post-thumbnail-inner img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
body.home .loop-entry .entry-summary p {
  margin: 0 !important;
}

/* Keep single post top layout title-first even when featured image exists */
.single-post .article-post-thumbnail,
.single-post .entry-hero .post-thumbnail,
.single-post .entry-header .post-thumbnail,
.single-post .content-wrap article .post-thumbnail {
  display: none !important;
}
/* PREBUY_ARCHIVE_CARD_TUNE_V1_END */

/* PREBUY_PB_COMMON_MANAGED_IN_CUSTOMIZER */
/* PREBUY_SINGLE_HEADER_CENTER_V1_START */
.single-post .entry-hero .entry-taxonomies,
.single-post .entry-header .entry-taxonomies {
  text-align: center;
  justify-content: center;
}
.single-post .entry-hero .entry-title,
.single-post .entry-header .entry-title {
  text-align: center;
}
.single-post .entry-hero .entry-meta,
.single-post .entry-header .entry-meta,
.single-post .entry-meta {  text-align: center;
  justify-content: center;
}
/* PREBUY_SINGLE_HEADER_CENTER_V1_END */


/* PREBUY_SINGLE_TITLE_TYPO_V1_START */
.single-post .entry-hero .entry-title,
.single-post .entry-header .entry-title,
.single-post .entry-title {
  font-size: clamp(20px, 5vw, 34px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.25 !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  text-wrap: balance;
}
/* PREBUY_SINGLE_TITLE_TYPO_V1_END */
/* PREBUY_WRAP_CENTER_FIX_20260301_B */
.kib-wrap{padding-left:14px !important;padding-right:14px !important;box-sizing:border-box !important;}
.kib-body{padding-left:14px !important;padding-right:14px !important;}
@media (max-width:767px){.kib-wrap{padding-left:12px !important;padding-right:12px !important;} .kib-body{padding-left:12px !important;padding-right:12px !important;}}

/* PREBUY_PADDING_DUP_CHECK_20260301 */
/* Mobile side-spacing unified to 20px for header/menu/content (single + main) */
@media (max-width: 768px) {
  .site-header .site-container,
  .content-container.site-container,
  .content-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  body.single-post .entry-header,
  body.single-post .entry-content {
    margin-left: -8px !important;
    margin-right: -8px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.single-post .entry-content .kib-wrap,
  body.single-post .entry-content .kib-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.single-post .entry-content .kib-notice,
  body.single-post .entry-content .kib-hero,
  body.single-post .entry-content .kib-meta-desc {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}



/* PREBUY_HOME_CARD_CLEAN_20260301_START */
.home .kadence-posts-list.post-archive { gap: 20px; }
.home .kadence-posts-list .entry.loop-entry {
  border: 1px solid #ececf2;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(17, 17, 17, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.home .kadence-posts-list .entry.loop-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, .10);
}
.home .kadence-posts-list .post-thumbnail { display: block; margin: 0; }
.home .kadence-posts-list .post-thumbnail-inner {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f7;
}
.home .kadence-posts-list .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.home .kadence-posts-list .entry.loop-entry:hover .post-thumbnail img { transform: scale(1.03); }
.home .kadence-posts-list .entry-content-wrap { padding: 14px 14px 12px !important; }
.home .kadence-posts-list .entry-taxonomies { margin: 0 0 6px; }
.home .kadence-posts-list .entry-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.42;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.42em * 2);
}
.home .kadence-posts-list .entry-title a { text-decoration: none; }
.home .kadence-posts-list .entry-meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: #8b90a0;
}
.home .kadence-posts-list .posted-by { display: none !important; }
.home .kadence-posts-list .entry-summary p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #575d6b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.65em * 3);
}
.home .kadence-posts-list .entry-footer { margin-top: 0; }
.home .kadence-posts-list .post-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: #6812C8 !important;
}
.home .kadence-posts-list .post-more-link:hover { color: #7E2DF3 !important; }
@media (max-width: 767px) {
  .home .kadence-posts-list.post-archive { gap: 14px; }
  .home .kadence-posts-list .entry-content-wrap { padding: 12px 12px 11px !important; }
  .home .kadence-posts-list .entry-title { font-size: 16px; }
  .home .kadence-posts-list .entry-summary p {
    -webkit-line-clamp: 2;
    min-height: calc(1.65em * 2);
  }
}
/* PREBUY_HOME_CARD_CLEAN_20260301_END */


/* PREBUY_TYPO_HOTFIX_20260302 */
.kib-wrap p{font-size:16px !important;}
.kib-intro-card-name{font-weight:800 !important;}


/* PREBUY_RELATED_POSTS_TYPO_V1_START */
.single .entry-related .entry-related-title {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 18px;
}

.single .entry-related-carousel .entry-content-wrap {
  padding-top: 12px;
}

.single .entry-related-carousel .entry-title {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.single .entry-related-carousel .entry-title a {
  font-size: inherit;
  line-height: inherit;
}

.single .entry-related-carousel .entry-summary p {
  font-size: 14px;
  line-height: 1.6;
}
/* PREBUY_RELATED_POSTS_TYPO_V1_END */


/* PREBUY_RELATED_POSTS_TYPO_V2_START */
.single .entry-related .entry-related-title {
  font-size: 22px !important;
  line-height: 1.25 !important;
  margin-bottom: 16px !important;
}

.single .entry-related .entry-related-carousel .entry-content-wrap {
  padding-top: 10px !important;
}

.single .entry-related .entry-related-carousel .entry-title,
.single .entry-related .entry-related-carousel .entry-title a {
  font-size: 16px !important;
  line-height: 1.45 !important;
  letter-spacing: -0.02em !important;
  font-weight: 800 !important;
}

.single .entry-related .entry-related-carousel .entry-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.single .entry-related .entry-related-carousel .entry-summary,
.single .entry-related .entry-related-carousel .entry-summary p {
  font-size: 13px !important;
  line-height: 1.55 !important;
}
/* PREBUY_RELATED_POSTS_TYPO_V2_END */


/* PREBUY_RELATED_POSTS_TYPO_V3_START */
.single .entry-related .entry-related-inner-content {
  max-width: 1100px !important;
}

.single .entry-related .entry-related-title {
  font-size: 18px !important;
  line-height: 1.2 !important;
  margin-bottom: 12px !important;
}

.single .entry-related .splide__track {
  padding-top: 2px !important;
}

.single .entry-related .entry-related-carousel .entry-content-wrap {
  padding: 8px 10px 10px !important;
}

.single .entry-related .entry-related-carousel .entry-title,
.single .entry-related .entry-related-carousel .entry-title a {
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
}

.single .entry-related .entry-related-carousel .entry-title {
  margin: 0 0 6px !important;
}

.single .entry-related .entry-related-carousel .entry-title a {
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
}

.single .entry-related .entry-related-carousel .entry-meta,
.single .entry-related .entry-related-carousel .entry-meta a,
.single .entry-related .entry-related-carousel .posted-on,
.single .entry-related .entry-related-carousel .posted-by {
  font-size: 11px !important;
  line-height: 1.3 !important;
}

.single .entry-related .entry-related-carousel .post-thumbnail {
  margin-bottom: 8px !important;
}
/* PREBUY_RELATED_POSTS_TYPO_V3_END */



/* PREBUY_RELATED_POSTS_TYPO_V4_START */
.single .entry-related {
  padding-top: 18px !important;
}

.single .entry-related .entry-related-inner-content {
  max-width: 1120px !important;
}

.single .entry-related .entry-related-title {
  font-size: 18px !important;
  line-height: 1.2 !important;
  margin-bottom: 14px !important;
}

.single .entry-related .splide__track {
  padding: 4px 2px 10px !important;
}

.single .entry-related .entry-related-carousel .splide__slide article {
  background: #fff !important;
  border: 1px solid rgba(16, 24, 40, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
  height: 100% !important;
}

.single .entry-related .entry-related-carousel .post-thumbnail {
  margin-bottom: 0 !important;
}

.single .entry-related .entry-related-carousel .post-thumbnail img {
  display: block !important;
}

.single .entry-related .entry-related-carousel .entry-content-wrap {
  padding: 14px 14px 12px !important;
}

.single .entry-related .entry-related-carousel .entry-taxonomies {
  margin-bottom: 6px !important;
}

.single .entry-related .entry-related-carousel .entry-taxonomies a {
  font-size: 11px !important;
}

.single .entry-related .entry-related-carousel .entry-title,
.single .entry-related .entry-related-carousel .entry-title a {
  font-size: 18px !important;
  line-height: 1.34 !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

.single .entry-related .entry-related-carousel .entry-title {
  margin: 0 0 8px !important;
}

.single .entry-related .entry-related-carousel .entry-title a {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
}

.single .entry-related .entry-related-carousel .entry-meta,
.single .entry-related .entry-related-carousel .entry-meta a,
.single .entry-related .entry-related-carousel .posted-on,
.single .entry-related .entry-related-carousel .posted-by {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.single .entry-related .entry-related-carousel .entry-summary,
.single .entry-related .entry-related-carousel .entry-summary p {
  font-size: 13px !important;
  line-height: 1.55 !important;
}
/* PREBUY_RELATED_POSTS_TYPO_V4_END */
