/*
Theme Name: TENCHOICE
Theme URI: https://tenchoice10.com
Author: TENCHOICE
Description: TOP10 비교, TC SCORE, TENCHOICE PICK 및 최신 비교글 자동 노출을 위한 전용 테마
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tenchoice
*/
:root{--navy:#10233f;--blue:#1769e0;--sky:#eef5ff;--gold:#ffb000;--ink:#172033;--muted:#667085;--line:#e7eaf0;--white:#fff;--radius:18px;--shadow:0 12px 34px rgba(16,35,63,.09)}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Pretendard","Noto Sans KR","Segoe UI",sans-serif;line-height:1.7;background:#fff}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.wrap{width:min(1160px,calc(100% - 36px));margin:auto}.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font-weight:900;font-size:24px;letter-spacing:-1px;color:var(--navy)}.brand span{color:var(--blue)}.nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0}.nav a{font-weight:700;font-size:15px}.hero{padding:86px 0 74px;background:linear-gradient(135deg,#0f2340,#164f9c);color:#fff}.eyebrow{display:inline-flex;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.13);font-size:13px;font-weight:800}.hero h1{max-width:780px;margin:18px 0 14px;font-size:clamp(38px,6vw,66px);line-height:1.12;letter-spacing:-2.8px}.hero p{font-size:clamp(17px,2vw,21px);color:#dce9ff;margin:0 0 28px}.button{display:inline-flex;align-items:center;justify-content:center;padding:13px 21px;border-radius:12px;background:var(--blue);color:#fff;font-weight:800}.button.light{background:#fff;color:var(--navy)}section{padding:70px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:26px}.section-head h2{font-size:clamp(27px,4vw,38px);line-height:1.25;margin:0;letter-spacing:-1.3px}.section-head p{margin:7px 0 0;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}.card-media{aspect-ratio:16/9;background:linear-gradient(135deg,#eaf2ff,#d9e8ff);display:flex;align-items:center;justify-content:center;font-size:42px}.card-media img{width:100%;height:100%;object-fit:cover}.card-body{padding:22px}.badge{display:inline-flex;padding:5px 9px;border-radius:7px;background:var(--sky);color:var(--blue);font-size:12px;font-weight:900}.card h3{font-size:21px;line-height:1.4;margin:12px 0 8px}.card p{font-size:14px;color:var(--muted);margin:0}.categories{background:#f7f9fc}.category-list{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.category-item{padding:22px 12px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:14px;font-weight:800}.pick{background:var(--navy);color:#fff}.pick-box{display:grid;grid-template-columns:1.25fr .75fr;gap:28px;align-items:center}.pick h2{font-size:clamp(30px,5vw,48px);line-height:1.2;margin:12px 0}.score{width:190px;height:190px;border-radius:50%;display:grid;place-content:center;text-align:center;background:conic-gradient(var(--gold) 0 95%,rgba(255,255,255,.15) 95% 100%);border:12px solid rgba(255,255,255,.13);margin:auto;font-size:46px;font-weight:900}.score small{font-size:13px;letter-spacing:1px}.latest .post-meta{font-size:13px;color:var(--muted)}.empty{padding:30px;border:1px dashed #bcc6d6;border-radius:14px;color:var(--muted)}.content-area{width:min(840px,calc(100% - 36px));margin:56px auto}.entry-title{font-size:clamp(32px,5vw,48px);line-height:1.25;letter-spacing:-1.5px}.entry-content{font-size:17px}.entry-content h2{margin-top:42px}.entry-content table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}.entry-content th,.entry-content td{padding:12px;border:1px solid var(--line);white-space:nowrap}.entry-content th{background:var(--navy);color:#fff}.site-footer{padding:42px 0;background:#0b1729;color:#c7d1df}.footer-inner{display:flex;justify-content:space-between;gap:20px}.site-footer strong{color:#fff}.menu-toggle{display:none;border:0;background:transparent;font-size:25px}.pagination{margin:30px 0}.pagination .page-numbers{display:inline-block;padding:8px 12px;border:1px solid var(--line);border-radius:8px}
@media(max-width:800px){.menu-toggle{display:block}.nav{display:none;position:absolute;left:0;right:0;top:72px;background:#fff;border-bottom:1px solid var(--line);padding:14px 18px}.nav.open{display:block}.nav ul{display:block}.nav li{padding:10px 0}.grid{grid-template-columns:1fr}.category-list{grid-template-columns:repeat(2,1fr)}.pick-box{grid-template-columns:1fr}.hero{padding:62px 0}.footer-inner{display:block}.section-head{display:block}}

/* TENCHOICE affiliate typography */
.tc-affiliate-notice,
.tc-affiliate-disclosure,
.tc-rice-affiliate,
.tc-mw-affiliate,
.tc-air-affiliate,
.tc-solo-disclosure,
.tc-30-note,
.tc-gift .tc-note {
  font-family:-apple-system,BlinkMacSystemFont,"Pretendard","Noto Sans KR","Segoe UI",sans-serif!important;
  font-size:13px!important;
  line-height:1.55!important;
  font-weight:400!important;
  color:#64748b!important;
  letter-spacing:0!important;
}
.tc-affiliate-notice strong,
.tc-affiliate-disclosure strong,
.tc-rice-affiliate strong,.tc-rice-affiliate span,
.tc-mw-affiliate strong,.tc-mw-affiliate span,
.tc-air-affiliate strong,.tc-air-affiliate span,
.tc-solo-disclosure strong,
.tc-30-note strong,
.tc-gift .tc-note strong {font:inherit!important;color:inherit!important}


/* TENCHOICE unified post layout 2026-09-01 */
body.single-post .content-area{
  width:min(900px,calc(100% - 32px));
  margin:44px auto 70px;
}
body.single-post .entry-title{
  margin:0 0 26px;
  font-size:clamp(30px,5vw,46px);
  line-height:1.3;
  letter-spacing:-1.4px;
  color:#10233f;
  word-break:keep-all;
}
body.single-post .entry-content{
  font-size:17px;
  line-height:1.82;
  color:#27364a;
  word-break:keep-all;
}
body.single-post .entry-content p{margin:0 0 1.25em}
body.single-post .entry-content>h2,
body.single-post .entry-content section>h2{
  margin:48px 0 20px;
  padding:12px 16px;
  border-left:5px solid #1769e0;
  border-radius:0 10px 10px 0;
  background:#f3f7fd;
  color:#10233f;
  font-size:clamp(24px,4vw,30px);
  line-height:1.42;
  letter-spacing:-.7px;
}
body.single-post .entry-content h3{
  margin:34px 0 14px;
  color:#17345d;
  font-size:clamp(20px,3vw,24px);
  line-height:1.45;
}
body.single-post .entry-content h4{
  margin:26px 0 12px;
  color:#334155;
  font-size:18px;
}
body.single-post .entry-content ul,
body.single-post .entry-content ol{
  margin:18px 0 26px;
  padding-left:1.35em;
}
body.single-post .entry-content li{margin:8px 0}
body.single-post .entry-content img{
  display:block;
  max-width:100%;
  height:auto;
  margin-left:auto;
  margin-right:auto;
  border-radius:16px;
}
body.single-post .entry-content figure{margin:24px auto 30px}
body.single-post .entry-content figcaption{
  margin-top:8px;
  color:#64748b;
  font-size:13px;
  text-align:center;
}
body.single-post .entry-content table{
  width:100%;
  margin:26px 0 34px;
  border:1px solid #dfe5ee;
  border-collapse:collapse;
  background:#fff;
  font-size:14px;
}
body.single-post .entry-content th{
  padding:13px 12px;
  border:1px solid #dfe5ee;
  background:#10233f;
  color:#fff;
  font-weight:800;
  text-align:center;
}
body.single-post .entry-content td{
  padding:13px 12px;
  border:1px solid #dfe5ee;
  color:#334155;
  text-align:center;
  vertical-align:middle;
}
body.single-post .entry-content tr:nth-child(even) td{background:#f8fafc}
body.single-post .entry-content blockquote{
  margin:26px 0;
  padding:18px 20px;
  border-left:4px solid #1769e0;
  border-radius:0 12px 12px 0;
  background:#f8fafc;
  color:#334155;
}
body.single-post .tc-affiliate-notice,
body.single-post .tc-affiliate-disclosure,
body.single-post .tc-rice-affiliate,
body.single-post .tc-mw-affiliate,
body.single-post .tc-air-affiliate,
body.single-post .tc-solo-disclosure,
body.single-post .tc-30-note,
body.single-post .tc-gift .tc-note{
  margin:14px 0 30px!important;
  padding:13px 15px!important;
  border:1px solid #e5e7eb!important;
  border-radius:10px!important;
  background:#f8fafc!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.6!important;
  font-weight:400!important;
  box-shadow:none!important;
}
body.single-post .entry-content a[rel~="sponsored"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  margin:5px 6px 5px 0;
  padding:11px 17px!important;
  border-radius:10px!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.35!important;
  text-align:center;
  text-decoration:none!important;
  box-shadow:0 5px 14px rgba(15,35,64,.12);
  transition:transform .18s ease,box-shadow .18s ease;
}
body.single-post .entry-content a[rel~="sponsored"]:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(15,35,64,.16);
}
body.single-post .tc-affiliate-box,
body.single-post .tc-top10-links{
  border:1px solid #dfe5ee!important;
  border-radius:16px!important;
  background:#f8fafc!important;
  box-shadow:none!important;
}
body.single-post .entry-content hr{
  margin:42px 0;
  border:0;
  border-top:1px solid #e5e7eb;
}
@media(max-width:760px){
  body.single-post .content-area{width:min(100% - 22px,900px);margin-top:28px}
  body.single-post .entry-title{font-size:30px;letter-spacing:-.8px}
  body.single-post .entry-content{font-size:16px;line-height:1.78;word-break:normal}
  body.single-post .entry-content>h2,
  body.single-post .entry-content section>h2{margin-top:38px;padding:10px 12px;font-size:23px}
  body.single-post .entry-content h3{font-size:20px}
  body.single-post .entry-content table{
    display:block;
    overflow-x:auto;
    white-space:nowrap;
    -webkit-overflow-scrolling:touch;
  }
  body.single-post .entry-content th,
  body.single-post .entry-content td{padding:11px 10px;font-size:13px}
  body.single-post .entry-content a[rel~="sponsored"]{
    width:100%;
    margin:5px 0;
  }
}

/* TENCHOICE unified headings patch */
body.single-post .entry-content h2{margin:46px 0 20px!important;padding:12px 16px!important;border-left:5px solid #1769e0!important;border-radius:0 10px 10px 0!important;background:#f3f7fd!important;color:#10233f!important;font-size:clamp(24px,4vw,30px)!important;line-height:1.42!important;letter-spacing:-.7px!important;}
@media(max-width:760px){body.single-post .entry-content h2{margin-top:36px!important;padding:10px 12px!important;font-size:23px!important;}}

/* Remove duplicate auto notices where an in-article dual notice already exists */
body.postid-83 .entry-content > .tc-affiliate-notice:first-child,
body.postid-87 .entry-content > .tc-affiliate-notice:first-child,
body.postid-91 .entry-content > .tc-affiliate-notice:first-child{display:none!important;}

/* TENCHOICE affiliate button visibility fix */
body.single-post .entry-content .tc-buy-buttons{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin:14px 0 18px!important;}
body.single-post .entry-content .tc-buy-buttons a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:10px 18px!important;border-radius:12px!important;color:#fff!important;font-size:14px!important;font-weight:700!important;line-height:1.35!important;text-decoration:none!important;box-shadow:0 4px 12px rgba(15,35,65,.12)!important;}
body.single-post .entry-content .tc-buy-buttons a.tc-buy-coupang{background:#e53935!important;border:1px solid #c62828!important;}
body.single-post .entry-content .tc-buy-buttons a.tc-buy-naver{background:#03a94d!important;border:1px solid #028a3f!important;}
body.single-post .entry-content .tc-buy-buttons a:hover{filter:brightness(.94)!important;transform:translateY(-1px)!important;}
@media(max-width:760px){body.single-post .entry-content .tc-buy-buttons a{width:100%!important;margin:0!important;font-size:13px!important;}}

/* TENCHOICE: shared singular layout, 2026-09-03. Reversible additive patch. */
body.wp-singular:not(.home) .content-area{width:min(900px,calc(100% - 32px));margin:44px auto 70px}
body.wp-singular:not(.home) .entry-title{font-size:clamp(30px,5vw,46px);line-height:1.3;color:#10233f;letter-spacing:-1px;overflow-wrap:anywhere}
body.wp-singular:not(.home) .entry-content{font-size:17px;line-height:1.82;color:#27364a;overflow-wrap:anywhere;min-width:0}
body.wp-singular:not(.home) .entry-content h2{margin:40px 0 20px;padding:12px 16px;border-left:5px solid #1769e0;border-radius:0 10px 10px 0;background:#f3f7fd;color:#10233f;font-size:clamp(23px,4vw,30px);line-height:1.42}
body.wp-singular:not(.home) .entry-content h1{font-size:clamp(23px,4vw,30px);line-height:1.42;color:#10233f}
body.wp-singular:not(.home) .entry-content h3{font-size:clamp(20px,3vw,24px);line-height:1.45;color:#17345d}
body.wp-singular:not(.home) .entry-content img{max-width:100%!important;height:auto;object-fit:contain}
body.wp-singular:not(.home) .entry-content figure{max-width:100%;box-sizing:border-box}
body.wp-singular:not(.home) .entry-content a[href*="link.coupang.com/"]{background:#d9342b!important;border:1px solid #ba2720!important;color:#fff!important}
body.wp-singular:not(.home) .entry-content a[href*="naver.me/"]{background:#008f42!important;border:1px solid #007536!important;color:#fff!important}
body.wp-singular:not(.home) .entry-content a[href*="link.coupang.com/"],body.wp-singular:not(.home) .entry-content a[href*="naver.me/"]{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:11px 16px!important;border-radius:10px!important;line-height:1.4!important;text-align:center;text-decoration:none!important;font-size:14px!important;font-weight:700!important;max-width:100%;white-space:normal;box-sizing:border-box}
body.wp-singular:not(.home) .entry-content a:focus-visible{outline:3px solid #ffb000;outline-offset:3px}
.tc-table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:24px 0}
.entry-content .tc-table-scroll>table{display:table!important;overflow:visible!important;max-width:none;margin:0!important}
.tc-table-hint{font-size:13px;color:#64748b;margin:8px 0}
.tc-source-note{font-size:14px;padding:16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}
@media(max-width:760px){body.wp-singular:not(.home) .content-area{width:calc(100% - 24px);margin:28px auto 48px}body.wp-singular:not(.home) .entry-title{font-size:29px}body.wp-singular:not(.home) .entry-content{font-size:16px;word-break:normal}body.wp-singular:not(.home) .entry-content a[href*="link.coupang.com/"],body.wp-singular:not(.home) .entry-content a[href*="naver.me/"]{width:100%;margin:5px 0!important}body.wp-singular:not(.home) .entry-content figure:not(.tc-product-photo){margin-left:0!important;margin-right:0!important}.site-footer .footer-inner>div{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
