/* STEP 03. Public home and shared header only; no editor/body-image overrides. */
:root{--coral:#ff694b;--nav-ink:#20252b;--home-line:#e8e2dc}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tc-public-header{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;justify-content:initial;gap:28px;min-height:98px;height:auto;padding-top:16px;padding-bottom:16px}
.tc-public-header .wordmark{min-width:0;text-align:left}
.tc-public-header .wordmark strong{font-family:Arial,"Apple SD Gothic Neo",sans-serif;font-size:30px;letter-spacing:-1.3px;line-height:1.1;gap:8px;white-space:nowrap}
.tc-public-header .wordmark b{color:var(--coral);font-weight:950}
.tc-public-header .wordmark i{font-size:17px;color:white;background:var(--nav-ink);border-radius:4px;transform:skew(-12deg);padding:3px 8px;letter-spacing:-.3px}
.tc-public-header .logo-spark{color:#ffab80;font-size:30px}
.tc-public-header .wordmark small{font-size:9px;letter-spacing:.7px;margin:5px 0 0 34px;color:#73706c}
.header-search{display:flex;align-items:center;width:100%;max-width:550px;justify-self:center;border:1px solid #8e969b;border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 1px 2px #0001}
.header-search input{font:inherit;flex:1;min-width:0;border:0;background:transparent;padding:11px 17px;font-size:13px;outline:none}
.header-search:focus-within{outline:3px solid #ff694b40;outline-offset:2px}
.header-search button{flex:0 0 48px;align-self:stretch;padding:8px;background:var(--coral);color:white;display:grid;place-items:center}
.header-search svg{width:25px;fill:none;stroke:currentColor;stroke-width:1.8}
.tc-public-header .header-tools{position:static;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;max-width:270px;min-width:0}
.social-links{display:flex;align-items:center;gap:9px}
.social-links .social{width:25px;height:25px;border-radius:50%;font:800 21px Arial;display:inline-grid;place-items:center;line-height:1;padding:0}
.social-links .youtube{color:#ff2e25;background:transparent}
.social-links .tiktok,.social-links .threads{background:#17191c;color:white}
.social-links .instagram{background:linear-gradient(135deg,#7838c9,#ed3b7e,#ffc367);color:white}
.social-links .instagram svg{width:21px;height:21px;stroke:white;fill:none;stroke-width:1.7}
.social-links .naver{background:#31bf61;color:white;font-size:18px}
.social-links .music-channel{background:#ff6381;color:white}
.social-links button:disabled{cursor:not-allowed;opacity:.72}
.tc-public-header~.category-nav{height:44px;min-height:44px;border:0;border-radius:24px;background:var(--nav-ink);display:flex;align-items:center;justify-content:space-around;gap:12px;padding:5px 22px;color:white}
.tc-public-header~.category-nav>a,.tc-public-header~.category-nav .menu-all a{min-width:64px;min-height:32px;padding:6px 23px;font-size:15px;font-weight:750;border-radius:18px;line-height:1.2;white-space:nowrap}
.tc-public-header~.category-nav a.active{background:var(--coral);color:white}
.tc-public-header~.category-nav a:after{display:none}
.menu-all{display:flex;align-items:center;gap:3px}
.menu-all .hamburger{position:static;display:grid;place-items:center;font-size:18px;width:28px;height:32px;padding:0;color:#d9dbde}
.tc-public-header~.category-nav .menu-all a{padding-left:0;padding-right:12px;min-width:0}
.tc-public-header~.category-nav .menu-all a.active{padding-left:12px}
body[data-page="home"]{background:radial-gradient(ellipse at top left,#fff1e3 0,transparent 42%),#fffdf9;--pink:var(--coral)}
body[data-page="home"] .wrap{max-width:1480px;width:calc(100% - 64px);min-width:0}
body[data-page="home"] #main{margin-top:18px;margin-bottom:38px}
body[data-page="home"] #home-view{display:grid;grid-template-columns:minmax(0,2.05fr) minmax(0,.92fr) minmax(250px,1.08fr);gap:20px 14px;align-items:stretch}
body[data-page="home"] .top-grid{display:contents}
body[data-page="home"] #hero{grid-column:1;grid-row:1;min-width:0}
body[data-page="home"] #support{grid-column:2;grid-row:1;min-width:0;display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:12px}
body[data-page="home"] .popular{grid-column:3;grid-row:1/span 2;background:#fffaf4;border:1px solid #f5e4d5;border-radius:12px;padding:15px;margin:0;min-width:0}
body[data-page="home"] .news-card{border-radius:9px;isolation:isolate;background:#202126;position:relative;display:block;width:100%;padding:0;overflow:hidden}
body[data-page="home"] .hero-card{aspect-ratio:1.95;min-height:300px;height:auto}
body[data-page="home"] .support-card{height:100%;min-height:0;aspect-ratio:auto}
body[data-page="home"] .news-card img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center}
body[data-page="home"] .news-card:after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(0deg,rgba(0,0,0,.97),rgba(0,0,0,.5) 52%,transparent);pointer-events:none;opacity:0;transition:opacity .3s ease}
body[data-page="home"] .news-card .card-copy{left:0;right:0;bottom:0;position:absolute;z-index:1;padding:20px 24px;max-height:100%;display:grid;gap:8px;background:none;pointer-events:none;transition:opacity .3s ease,transform .3s ease}
body[data-page="home"] .news-card .tag{justify-self:start;padding:5px 9px;font-size:12px;border-radius:5px;background:var(--coral);margin:0;max-width:100%;line-height:1.2}
body[data-page="home"] .news-card h1,body[data-page="home"] .news-card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis;color:white;margin:0;font-size:clamp(25px,2.2vw,35px);line-height:1.3;letter-spacing:-1px;word-break:normal;overflow-wrap:anywhere}
body[data-page="home"] .news-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;margin:0;font-size:14px;line-height:1.45;color:#efefef}
body[data-page="home"] .support-card .card-copy{padding:14px 16px;gap:5px}
body[data-page="home"] .support-card h3{font-size:clamp(16px,1.4vw,22px);letter-spacing:-.5px}
body[data-page="home"] .news-empty{min-height:120px;display:grid;place-items:center;background:#f5f0e9;border:1px dashed #e1d5c8;color:#8d8277}
body[data-page="home"] .news-empty p{color:#8d8277;font-size:13px;padding:14px;text-align:center}
body[data-page="home"] .news-empty:after{display:none}
body[data-page="home"] .top10-heading{display:flex;flex-wrap:wrap;align-items:center;gap:5px;position:relative;padding-top:9px}
.top10-crown{color:var(--coral);position:absolute;left:0;top:-16px;font-size:27px;transform:rotate(-10deg)}
.top10-heading h2{font:italic 900 clamp(24px,2.3vw,34px)/1.15 Arial;margin:0;letter-spacing:-1px;color:#1b2025}
.top10-heading h2 em{color:var(--coral);font-size:1.15em}
.top10-period{font-size:10px;color:var(--coral);border:1px solid #ffb8a4;border-radius:15px;padding:5px 8px;margin-left:auto;white-space:nowrap}
.top10-note{font-size:11px;text-align:right;color:#91867b;padding-bottom:10px;border-bottom:2px solid #e2dbd3;margin:9px 0 0}
body[data-page="home"] #ranking{list-style:none;margin:0;padding:0;counter-reset:none}
body[data-page="home"] #ranking .rank-empty{color:#8d8277;text-align:center;font-size:14px;line-height:1.8;padding:45px 8px}
body[data-page="home"] #ranking li:not(.rank-empty){display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid var(--home-line);min-width:0}
body[data-page="home"] #ranking .rank{color:var(--coral);background:#ffebe0;border-radius:7px;text-align:center;font-weight:900;font-size:24px}
body[data-page="home"] #ranking a{font-size:13px;font-weight:750;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body[data-page="home"] #ranking small{grid-column:2;color:#8d8277;font-size:10px}
body[data-page="home"] .lower-grid{grid-column:1/span 2;grid-row:2;display:grid;grid-template-columns:1.08fr 1fr .87fr;gap:20px;margin:0;min-width:0}
body[data-page="home"] .lower-grid>section{min-width:0}
body[data-page="home"] .section-heading{height:auto;min-height:35px;margin-bottom:10px;gap:8px}
body[data-page="home"] .section-heading h2{font-size:clamp(16px,1.45vw,22px);letter-spacing:-.8px;white-space:normal;line-height:1.4}
body[data-page="home"] .section-heading h2 span{color:var(--coral)}
body[data-page="home"] .section-heading>a{font-size:11px;flex-shrink:0;color:#8c827b}
.section-note{font-size:10px;color:#948a81;margin:-6px 0 8px}
body[data-page="home"] .latest-item{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #eee5dc}
body[data-page="home"] .latest-item img{width:90px;height:62px;object-fit:contain;object-position:center;background:#f1ece7;border-radius:6px}
body[data-page="home"] .latest-item h3{font-size:13px;line-height:1.45;letter-spacing:-.25px;-webkit-line-clamp:2;margin:0 0 5px;word-break:normal;overflow-wrap:anywhere}
body[data-page="home"] .news-meta{font-size:10px;gap:5px;flex-wrap:wrap;line-height:1.5}
body[data-page="home"] .news-meta>span{color:var(--coral)}
body[data-page="home"] .empty-state{padding:24px 10px;font-size:13px;line-height:1.7;border:1px dashed #e6dbcf;border-radius:8px;background:#fffaf4}
.video-news-card{display:block;margin-bottom:16px}
.video-thumbnail{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:7px;background:#f1ece7}
.video-thumbnail img{width:100%;height:100%;object-fit:contain;display:block}
.video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:37px;height:37px;border:2px solid #fff;border-radius:50%;color:white;background:#0007;font-size:15px;padding-left:3px}
.video-duration{position:absolute;right:5px;bottom:5px;background:#000b;border-radius:4px;color:#fff;font-size:10px;padding:3px 5px}
.video-news-card h3{font-size:13px;margin:7px 0 0;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media(hover:hover) and (pointer:fine) and (min-width:901px){
 body[data-page="home"] .news-card .card-copy{opacity:0;transform:translateY(14px)}
 body[data-page="home"] .news-card:hover .card-copy,body[data-page="home"] .news-card:focus-visible .card-copy{opacity:1;transform:translateY(0)}
 body[data-page="home"] .news-card:hover:after,body[data-page="home"] .news-card:focus-visible:after{opacity:1}
}
@media(hover:none),(pointer:coarse),(max-width:900px){
 body[data-page="home"] .news-card{display:flex;flex-direction:column;min-height:0;height:auto;aspect-ratio:auto;background:white;border:1px solid #eee3d7}
 body[data-page="home"] .news-card img{position:relative;aspect-ratio:1.9;height:auto;width:100%;object-fit:contain;background:#f2ede7}
 body[data-page="home"] .news-card .card-copy{position:relative;left:auto;right:auto;bottom:auto;opacity:1;transform:none;padding:12px 14px;background:white;pointer-events:none}
 body[data-page="home"] .news-card h1,body[data-page="home"] .news-card h3{color:#20252b;font-size:22px;letter-spacing:-.5px}
 body[data-page="home"] .news-card p{color:#6f6c69;font-size:13px}
 body[data-page="home"] .news-card:after{display:none}
 body[data-page="home"] .support-card h3{font-size:18px}
 body[data-page="home"] .news-empty{display:grid;min-height:135px}
}
@media(max-width:1150px){
 .tc-public-header{grid-template-columns:auto minmax(160px,1fr);gap:15px}
 .tc-public-header .header-tools{grid-column:1/-1;justify-self:end;max-width:none}
 body[data-page="home"] #home-view{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr)}
 body[data-page="home"] .popular{grid-column:1/-1;grid-row:3}
 body[data-page="home"] .lower-grid{grid-column:1/-1;grid-row:2}
}
@media(max-width:700px){
 .tc-public-header{grid-template-columns:minmax(0,1fr);gap:12px;padding-top:14px;padding-bottom:14px}
 .tc-public-header .wordmark{justify-self:center}
 .tc-public-header .wordmark strong{font-size:clamp(22px,6.4vw,30px);gap:6px}
 .tc-public-header .wordmark i{font-size:14px}
 .tc-public-header .logo-spark{font-size:24px}
 .tc-public-header .header-search{grid-row:2;max-width:none}
 .tc-public-header .header-tools{grid-column:1;justify-self:center}
 .tc-public-header~.category-nav{border-radius:14px;padding:5px 10px;gap:4px;flex-wrap:wrap;height:auto}
 .tc-public-header~.category-nav>a{font-size:14px;min-width:0;padding:6px 12px}
 body[data-page="home"] .wrap{width:calc(100% - 28px)}
 body[data-page="home"] #home-view{grid-template-columns:minmax(0,1fr);gap:18px}
 body[data-page="home"] #hero{grid-column:1;grid-row:1}
 body[data-page="home"] #support{grid-column:1;grid-row:2;grid-template-rows:auto;gap:12px}
 body[data-page="home"] .popular{grid-column:1;grid-row:3}
 body[data-page="home"] .lower-grid{grid-column:1;grid-row:4;grid-template-columns:minmax(0,1fr);gap:24px}
 body[data-page="home"] .section-heading h2{font-size:21px}
 body[data-page="home"] .latest-item{grid-template-columns:108px minmax(0,1fr)}
 body[data-page="home"] .latest-item img{width:108px;height:74px}
 body[data-page="home"] .latest-item h3{font-size:15px}
 body[data-page="home"] .news-meta{font-size:11px}
}
@media(prefers-reduced-motion:reduce){body[data-page="home"] .news-card:after,body[data-page="home"] .news-card .card-copy{transition:none;transform:none}}
