/* One type and color system for the public site and the XC management UI. */
:root{
  --xc-font:Inter,"Noto Sans KR","Noto Sans SC","Microsoft YaHei",Arial,sans-serif;
  --xc-ink:#302b34;
  --xc-muted:#675d66;
  --xc-accent:#873654;
  --xc-accent-hover:#6c2943;
  --xc-blush:#f8f1f4;
  --xc-cream:#fdfaf9;
  --xc-line:#e8dfe3;
  --xc-focus:#b64e76;
}
body,.editor-styles-wrapper{font-family:var(--xc-font);color:var(--xc-ink);background:var(--xc-cream)}
body :is(button,input,textarea,select){font-family:inherit}
.wp-site-blocks :is(p,li,dt,dd){font-family:var(--xc-font)}
.wp-site-blocks :is(h1,h2,h3,h4,h5,h6){font-family:var(--xc-font);color:var(--xc-ink)}
.wp-site-blocks :is(.muted,.lead,.intro-copy){color:var(--xc-muted)}
.wp-site-blocks :is(.wp-block-button__link,.xc-email-button,.xc-detail-enquire){background:var(--xc-accent);color:#fff}
.wp-site-blocks :is(.wp-block-button__link,.xc-email-button,.xc-detail-enquire):hover{background:var(--xc-accent-hover)}
.wp-site-blocks :is(.xc-dx-home,.xc-product-detail,.xc-detail-overview,.xc-detail-pair-text,.xc-detail-story-intro){color:var(--xc-ink)}
.xc-product-summary .xc-detail-gallery-thumb:is(.is-active,:hover){border-color:var(--xc-accent)}
.xc-floating-contact summary{background:var(--xc-accent);font-family:var(--xc-font)}
body.xc-manage-body{
  --xc-stats-ink:var(--xc-ink);
  --xc-stats-muted:var(--xc-muted);
  --xc-stats-accent:var(--xc-accent);
  --xc-stats-soft:var(--xc-blush);
  --xc-stats-line:var(--xc-line);
  font-family:var(--xc-font);background:#faf8f9;color:var(--xc-ink);
}
.xc-manage-body :is(button,input,textarea,select){font-family:inherit}
.xc-manage-body .xc-manage-side{background:#fffafb;border-color:var(--xc-line)}
.xc-manage-body .xc-manage-brand strong,.xc-manage-body .xc-manage-save .primary,.xc-manage-body .xc-format-apply{background:var(--xc-accent);color:#fff}
.xc-manage-body .xc-manage-brand span,.xc-manage-body .xc-manage-top h1,.xc-manage-body .xc-manage-card h2,.xc-manage-body .xc-spec-heading{color:var(--xc-ink)}
.xc-manage-body .xc-manage-kicker,.xc-manage-body .xc-manage-brand small,.xc-manage-body .xc-manage-card p,.xc-manage-body .xc-manage-hint,.xc-manage-body .xc-manage-stats span{color:var(--xc-muted)}
.xc-manage-body .xc-manage-side nav a.active,.xc-manage-body .xc-product-views a.active{background:var(--xc-blush);color:var(--xc-accent);border-color:#e4cbd5}
.xc-manage-body .xc-manage-side nav a:hover,.xc-manage-body .xc-product-status-button:hover{background:var(--xc-blush);color:var(--xc-accent)}
.xc-manage-body :is(.xc-manage-card,.xc-manage-stats>div,.xc-manage-shortcuts a,.xc-manage-save){border-color:var(--xc-line)}
.xc-manage-body :is(.xc-manage-top-actions a,.xc-manage-button,.xc-manage-image-actions button,.xc-product-status-button,.xc-manage-table-wrap a,.xc-manage-hint a){color:var(--xc-accent)!important;border-color:#ddcbd3}
.xc-manage-body :is(.xc-manage-field input,.xc-manage-field textarea,.xc-manage-field select,.xc-product-format-toolbar select,.xc-product-format-toolbar button){color:var(--xc-ink);border-color:#d9cbd2}
.xc-manage-body :is(.xc-manage-field input,.xc-manage-field textarea,.xc-manage-field select,.xc-product-format-toolbar select,.xc-product-format-toolbar button):focus-visible{outline:3px solid var(--xc-focus);outline-offset:2px}
.xc-manage-body :is(.xc-spec-grid,.xc-related-settings,.xc-manage-seo,.xc-product-format-toolbar,.xc-manage-detail-images){background:#fcf8fa;border-color:var(--xc-line)}
.xc-manage-body .xc-manage-stats strong{color:var(--xc-accent)}
.xc-manage-body :is(.xc-product-format-toolbar .xc-format-apply,.xc-manage-save .primary):hover{background:var(--xc-accent-hover);color:#fff}
.xc-manage-body .xc-color-pick input[type=checkbox]{accent-color:var(--xc-accent)}
@media(max-width:620px){.xc-manage-body .xc-manage-side nav a.active{background:var(--xc-blush)}}

/* Keep featured product artwork, titles and actions on the same rows. */
.xc-dx-home .xc-dx-featured .catalog-card{display:flex;flex-direction:column;min-width:0}
.xc-dx-home .xc-dx-featured .xc-product-media{position:relative;display:block;flex:none;width:100%;height:auto;aspect-ratio:1/1;overflow:hidden;background:#f7f6f3}
.xc-dx-home .xc-dx-featured .xc-product-media img{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:contain!important;object-position:center}
.xc-dx-home .xc-dx-featured .catalog-card h3{flex:1;margin:0;min-height:0;padding:20px 18px 22px}
.xc-dx-home .xc-dx-featured .xc-card-actions{margin-top:auto;min-height:60px;align-items:center}

/* Keep mobile hero artwork unobscured and give copy its own readable area. */
@media(max-width:700px){
  .wp-site-blocks .xc-dx-home .xc-dx-hero .dx-slide{height:auto;min-height:0;background:#fdfaf9!important}
  .xc-dx-home .xc-dx-slide-inner{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;width:100%;height:auto;min-height:0;padding:0 0 72px}
  .xc-dx-home .xc-dx-slide-media{position:relative;inset:auto;z-index:0;order:-1;display:block;width:100%;height:clamp(225px,72vw,300px);min-height:0;max-height:none;overflow:hidden;background:#fdfaf9}
  .xc-dx-home .xc-dx-slide-media img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;object-position:center}
  .xc-dx-home .xc-dx-slide-media:has(img)::after{display:none}
  .xc-dx-home .xc-dx-slide-copy{width:100%;max-width:none;padding:22px 24px 0;text-shadow:none}
  .xc-dx-home .xc-dx-slide-copy .eyebrow{margin:0 0 8px}
  .wp-site-blocks .xc-dx-home .xc-dx-slide-copy h1{font-size:clamp(29px,7vw,40px);line-height:1.18;margin:0 0 12px;letter-spacing:-.025em}
  .xc-dx-home .xc-dx-slide-copy .lead{font-size:15px;line-height:1.55;margin:0 0 18px}
  .xc-dx-home .xc-dx-slide-inner>p:empty{display:none}
}

/* Homepage: keep the mobile rhythm consistent from the hero through the footer. */
.xc-dx-home p:empty{display:none!important}
@media(max-width:700px){
  .reference-header .reference-nav .wp-block-navigation__container{flex-wrap:nowrap!important;column-gap:8px!important;justify-content:center}
  .xc-dx-home .xc-dx-section{padding:48px 20px}
  .xc-dx-home .section-heading{margin-bottom:26px!important}
  .xc-dx-home .section-heading h2{font-size:clamp(24px,6.4vw,30px);line-height:1.32;text-wrap:balance;overflow-wrap:normal;word-break:keep-all}
  .xc-dx-home .section-heading .eyebrow{margin-bottom:8px}
  .xc-dx-home .xc-dx-category-grid{gap:24px 14px}
  .xc-dx-home .xc-dx-category-card{min-width:0;align-content:start}
  .xc-dx-home .xc-dx-category-card strong{display:block;line-height:1.4;text-align:center;word-break:keep-all}
  .xc-dx-home .xc-dx-about-reference{gap:22px}
  .xc-dx-home .xc-dx-about-copy h3{margin-bottom:10px}
  .xc-dx-home .xc-dx-about-copy p{margin-bottom:14px;line-height:1.7}
  .xc-dx-home .xc-dx-about-actions{margin-top:20px}
  .xc-dx-home .xc-dx-about-features{margin-top:24px}
  .xc-dx-home .xc-dx-about-features>div{min-height:0;padding:16px}
  .xc-dx-home .xc-dx-factory{gap:14px}
  .xc-dx-home .xc-dx-factory img,.xc-dx-home .xc-dx-photo-placeholder{height:auto;aspect-ratio:4/3;object-fit:cover}
  .xc-dx-home .xc-dx-new-inner{gap:20px}
  .xc-dx-home .xc-dx-new-copy h2{font-size:clamp(25px,6.5vw,32px);margin:8px 0 12px;line-height:1.3;text-wrap:balance;word-break:keep-all}
  .xc-dx-home .xc-dx-new-copy p:not(.eyebrow){margin-bottom:18px;line-height:1.65}
  .xc-dx-home .xc-dx-solutions,.xc-dx-home .xc-dx-audience{gap:12px}
  .xc-dx-home .xc-dx-solutions>div,.xc-dx-home .xc-dx-audience article{padding:20px;min-height:0}
  .xc-dx-home .xc-dx-solutions h3,.xc-dx-home .xc-dx-audience h3{margin:12px 0 0;line-height:1.35}
  .xc-dx-home .xc-dx-audience p{margin:10px 0 0;line-height:1.6}
}
@media(max-width:360px){
  .reference-header .reference-nav .wp-block-navigation__container{column-gap:4px!important}
  .reference-header .reference-nav .wp-block-navigation-item__content{font-size:11px!important}
}

/* Product cards: consistent two-line titles in Korean and English. */
.xc-section-products .catalog-card h3,.xc-dx-home .xc-dx-featured .catalog-card h3{flex:0 0 auto!important;box-sizing:border-box;margin:0!important;padding:16px 18px 12px!important;min-height:0!important;line-height:1.4!important}
.xc-section-products .catalog-card h3 a,.xc-dx-home .xc-dx-featured .catalog-card h3 a{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:2.8em;line-height:1.4!important;overflow-wrap:anywhere}
.xc-section-products .catalog-card>.xc-sales-badge{box-sizing:border-box;height:28px;margin:0 18px 16px;flex:none}
.xc-section-products .catalog-card:not(.has-sales-badge) h3{margin-bottom:44px!important}
.xc-section-products .catalog-card .xc-card-actions,.xc-dx-home .xc-dx-featured .catalog-card .xc-card-actions{flex:none;margin-top:auto;min-height:60px;box-sizing:border-box}

/* Product catalog: twelve products, three columns on desktop. */
.catalog-grid.xc-section-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.xc-catalog-pagination{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:36px 0 0}.xc-catalog-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;box-sizing:border-box;border:1px solid #d4e0e2;border-radius:6px;text-decoration:none;color:#126a76;background:#fff}.xc-catalog-pagination .current,.xc-catalog-pagination a:hover{background:#0b7483;color:#fff;border-color:#0b7483}.xc-catalog-pagination a:focus-visible{outline:2px solid #0b7483;outline-offset:3px}
@media(max-width:900px){.catalog-grid.xc-section-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:550px){.catalog-grid.xc-section-products{grid-template-columns:minmax(0,1fr)!important}}
