/* SkiWiki home. Colors come from the shell tokens (layouts/skiportal/css/layout.css).
   Desktop: main column + shared 220px sidebar (.sw-layout / layouts/skiportal/_sidebar.html, styled in layout.css). */
.sh-home{display:grid;gap:16px;min-width:0;color:var(--sw-ink)}
.sh-home *{box-sizing:border-box}
.sh-ad-slot:empty{display:none}
.sh-community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.sh-community-grid>.sh-market{grid-column:1/-1}

/* section panel */
.sh-section{min-width:0;margin:0;overflow:hidden;border:1px solid var(--sw-line);border-radius:var(--sw-radius);background:var(--sw-surface)}
.sh-section__head{display:flex;align-items:stretch;justify-content:space-between;gap:10px;min-height:44px;padding:0 16px;border-bottom:1px solid var(--sw-line);background:var(--sw-tint)}
/* the title carries a short navy underline sitting on the head divider */
.sh-section__head h1,.sh-section__head h2{display:flex;align-items:center;margin:0 0 -1px;box-shadow:inset 0 -2px 0 var(--sw-navy);color:var(--sw-navy);font-size:16px;font-weight:700;line-height:1.35;letter-spacing:-.01em}
.sh-section__head h1 a,.sh-section__head h2 a{color:inherit;text-decoration:none}
.sh-section__head h1 a:hover,.sh-section__head h2 a:hover{color:var(--sw-blue)}
.sh-more{display:flex;flex:0 0 auto;align-items:center;color:var(--sw-muted);font-size:12px;text-decoration:none}
.sh-more:after{content:"›";margin-left:3px;font-size:14px;line-height:1}
.sh-more:hover{color:var(--sw-blue)}
.sh-empty{margin:0;padding:22px 16px;color:var(--sw-muted);font-size:13px}

/* text lists (popular + community panels): 14px titles */
.sh-list{list-style:none;margin:0;padding:0}
.sh-list li{display:flex;align-items:center;gap:8px;min-height:40px;padding:7px 16px;border-bottom:1px solid var(--sw-line-soft)}
.sh-list li:hover,.sh-market-list li:hover{background:var(--sw-hover)}
.sh-list li:last-child{border-bottom:0}
.sh-list a{min-width:0;overflow:hidden;color:var(--sw-ink);font-size:14px;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}
.sh-list a:hover{color:var(--sw-blue)}
.sh-list>li>a{flex:1 1 auto}
.sh-copy{display:flex;flex:1 1 auto;flex-direction:column;min-width:0}
.sh-copy small{overflow:hidden;color:var(--sw-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.sh-category{flex:0 0 auto;max-width:90px;height:20px;padding:0 6px;overflow:hidden;border-radius:3px;background:var(--sw-subtle);color:var(--sw-ink-2);font-size:11px;line-height:20px;text-overflow:ellipsis;white-space:nowrap}
.sh-popular .sh-category{width:76px;text-align:center}
.sh-comment-count{margin-left:3px;color:var(--sw-blue);font-size:11px;font-style:normal;font-weight:600}
.sh-counts{display:flex;flex:0 0 auto;gap:8px;color:var(--sw-muted);font-size:11px;white-space:nowrap}
.sh-counts b{font-weight:400}

/* latest market listings: [category] title [badges] ........ price  (no thumbnail) */
.sh-market-list{list-style:none;margin:0;padding:0}
.sh-market-list li{border-bottom:1px solid var(--sw-line-soft)}
.sh-market-list li:last-child{border-bottom:0}
.sh-market-list a{display:flex;align-items:center;gap:16px;min-height:42px;padding:8px 16px;color:var(--sw-ink);text-decoration:none}
.sh-market-info{display:flex;flex:1 1 auto;align-items:center;gap:8px;min-width:0}
.sh-market-head{display:flex;flex:0 1 auto;align-items:center;gap:7px;min-width:0}
.sh-market-title{min-width:0;overflow:hidden;font-size:14px;font-weight:400;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.sh-market-list a:hover .sh-market-title{color:var(--sw-blue)}
.sh-market-badges{display:flex;flex:0 0 auto;gap:4px}
.sh-market-price{flex:0 0 auto;min-width:100px;color:var(--sw-navy);font-size:14px;font-weight:700;text-align:right;white-space:nowrap}
.sh-market-list li[data-status="sold"] .sh-market-title,.sh-market-list li[data-status="cancelled"] .sh-market-title,.sh-market-list li[data-status="sold"] .sh-market-price,.sh-market-list li[data-status="cancelled"] .sh-market-price{color:var(--sw-muted)}

@media(max-width:700px){
	.sh-home{gap:12px}
	.sh-community-grid{grid-template-columns:minmax(0,1fr);gap:12px}
	.sh-section__head{min-height:44px;padding:0 12px}
	.sh-list li{align-items:flex-start;flex-wrap:wrap;gap:4px 7px;padding:9px 12px}
	.sh-list a{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
	.sh-list>li>a,.sh-copy{flex:1 1 0}
	.sh-popular .sh-category{width:auto;max-width:74px}
	.sh-counts{flex-basis:100%;padding-left:0}
	.sh-counts:empty{display:none}
	/* market: title + price first, badges wrap underneath */
	.sh-market-list a{align-items:flex-start;gap:10px;padding:10px 12px}
	.sh-market-info{display:block}
	.sh-market-badges{flex-wrap:wrap;margin-top:6px}
	.sh-market-price{min-width:0;line-height:20px}
}
/* 스키장 개장 소식 한 줄(사이드바가 없는 폭에서만): 옆으로 밀어 본다 */
.sh-openings{display:none}
@media (max-width:980px){
.sh-openings{display:flex;align-items:center;gap:6px;margin:0 0 10px;padding:2px 0 8px;border-bottom:1px solid var(--sw-line);overflow-x:auto;white-space:nowrap;scrollbar-width:none;font-size:12.5px}
.sh-openings::-webkit-scrollbar{display:none}
.sh-openings__title{flex:none;margin-right:2px;color:var(--sw-navy);font-weight:700;text-decoration:none}
.sh-opening{flex:none;padding:2px 8px;border:1px solid var(--sw-line);border-radius:999px;background:var(--sw-surface);color:var(--sw-muted);text-decoration:none}
.sh-opening b{color:var(--sw-text);font-weight:600}
.sh-opening[data-state="open"]{border-color:var(--sw-blue);color:var(--sw-blue)}
}
/* 사이드바 「스키장 개장 소식」(PC, 홈에서만) */
.sw-widget.sw-openings>a{display:flex;justify-content:space-between;gap:8px;padding:6px 16px;font-size:13px}
.sw-openings>a span{font-weight:600}
.sw-openings>a small{flex:none;color:var(--sw-muted);font-size:12px}
.sw-openings>a[data-state="open"] small{color:var(--sw-blue);font-weight:600}
.sw-widget.sw-openings>p.sw-openings__note{padding:6px 16px;font-size:11.5px}
