@charset "UTF-8";
/*
 *  File Name   : /hub/assets/css/community.css
 *  Description : 커뮤니티 전용 — 목록 · 상세
 */

/* banner */
.banner {overflow: hidden; border-radius: 20px;}
.banner__link,
.banner__pic {display: block;}
/* 자리별 그림 — 861 이상 PC 그림 · 860 이하 모바일 그림. 그림이 없는 쪽은 배너째 숨김 */
.banner__item--mobile,
.banner--no-pc {display: none;}
.banner__img {display: block; width: 100%; height: auto; aspect-ratio: 1440 / 340; object-fit: cover;}

/* content--community */
.content--community > .section {margin-top: 30px;}

/* content--post */

/* content--post */
/* content--post */
.content--post {padding: 0; --post-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='-1 0 16 16' fill='none'%3E%3Cpath d='M4.22 8.67L7.95 12.4L7 13.33L1.67 8L7 2.67L7.95 3.6L4.22 7.33H12.33V8.67H4.22Z' fill='%235B6069'/%3E%3C/svg%3E");}

/* post-board */
.post-board {display: flex; justify-content: center; gap: 120px;
	padding: 40px 40px 84px; background: #fafafa;}

/* post */
.post {flex: 1 1 auto; min-width: 0; max-width: 760px;}

/* post__back */
.post__back {display: flex; align-items: center; width: fit-content; min-height: 19px;
	color: #1b1b1b; font-weight: 500; font-size: 16px; line-height: 1; text-decoration: none;}
.post__back::before {content: ''; flex: none; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: var(--post-arrow) no-repeat 50% 50% / 100% 100%;
	mask: var(--post-arrow) no-repeat 50% 50% / 100% 100%;}

/* post__head */
.post__head {margin-top: 24px;}

/* post__title */
.post__title {color: #1b1b1b; font-weight: 700; font-size: 44px; line-height: 1.2;}

/* post__meta */
.post__meta {display: flex; align-items: center; gap: 16px; margin-top: 8px;}
.post__date {color: #240075; font-weight: 500; font-size: 14px; line-height: 1;}

/* post__share-btn */
.post__share-wrap {position: relative; margin-left: auto;}
.post__share-btn {display: flex; align-items: center; gap: 8px; height: 22px; border-radius: 5px;}
.post__share-btn::before {content: ''; flex: none; width: 20px; height: 20px;
	background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Cpath d='M11.25 3.5C11.25 2.75 12.12 2.38 12.67 2.88L18.67 8.55C19.03 8.9 19.03 9.48 18.67 9.83L12.67 15.5C12.12 16.01 11.25 15.63 11.25 14.88V12.13C6.67 12.25 4.17 13.75 2.67 16.08C2.33 16.58 1.55 16.37 1.58 15.77C1.92 10.33 5.33 7.08 11.25 6.83V3.5Z' fill='%231C1F26'/%3E%3C/g%3E%3C/svg%3E") no-repeat 50% 50% / 100% 100%;}
.post__share-txt {color: #1b1b1b; font-size: 14px; line-height: 1;}

/* post__hero */
.post__hero {overflow: hidden; margin-top: 30px; border-radius: 20px;}
.post__hero-img {display: block; width: 100%; height: auto;}

/* post__body */
.post__body {margin-top: 20px; color: #1b1b1b; font-size: 18px; line-height: 1.56;}
.post__body > * + * {margin-top: 28px;}
.post__body b,
.post__body strong {font-weight: 700;}
.post__body i,
.post__body em {font-style: italic;}
.post__body u {text-decoration: underline;}
.post__body a {color: #0084ff; text-decoration: underline;}
.post__body ul,
.post__body ol {padding-left: 24px;}
.post__body ul {list-style: disc;}
.post__body ol {list-style: decimal;}
.post__body li + li {margin-top: 8px;}
.post__body img {display: block; max-width: 100%; height: auto; border-radius: 12px;}
.post__body h2 {font-weight: 800; font-size: 26px; line-height: 1.3;}
.post__body h3 {font-weight: 700; font-size: 21px; line-height: 1.35;}
.post__body blockquote {padding: 12px 18px; border-left: 4px solid #5a2fd6; background: #f6f3fd; color: #3b3f47;}
.post__body hr {height: 0; border: 0; border-top: 1px solid #d9dbe0;}

/* post__nav */
.post__nav {display: flex; gap: 15px; margin-top: 60px; padding: 27px 0 24px; border-top: 1px solid #d9dbe0;}
.post__nav-link {flex: 1 1 0; min-width: 0; text-decoration: none;}
.post__nav-link--next {text-align: right;}
.post__nav-label {display: flex; align-items: center; gap: 2px;
	color: #5b6069; font-weight: 500; font-size: 14px; line-height: 1;
	text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
	transition: color var(--dur-fast) var(--ease-out);}
.post__nav-link--next .post__nav-label {justify-content: flex-end;}
.post__nav-link--prev .post__nav-label::before,
.post__nav-link--next .post__nav-label::after {content: ''; flex: none; width: 16px; height: 16px;
	background: currentColor;
	-webkit-mask: var(--post-arrow) no-repeat 50% 50% / 100% 100%;
	mask: var(--post-arrow) no-repeat 50% 50% / 100% 100%;}
.post__nav-link--next .post__nav-label::after {transform: scaleX(-1);}
.post__nav-title {overflow: hidden; display: block; margin-top: 10px;
	color: #1b1b1b; font-weight: 400; font-size: 18px; line-height: 1.22;
	text-overflow: ellipsis; white-space: nowrap;
	text-underline-offset: 3px; text-decoration-thickness: 1px;}

/* share */
.share-row {display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px;}
.share-row__label {flex: none; color: #5b6069; font-weight: 500; font-size: 16px; line-height: 1;}
.share-row__list {display: flex; flex-wrap: wrap; gap: 12px; list-style: none;}
.share-row__btn {display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 10px;
	background: #f2f4f6; color: #1b1b1b; font: inherit; font-weight: 500; font-size: 16px; line-height: 1;
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);}

/* share-tiles */
.share-tiles {display: none;}

/* rail */
.rail {flex: 0 0 360px;}
.rail__title {color: #1b1b1b; font-weight: 700; font-size: 20px; line-height: 1.2;}
.rail__title + .news {margin-top: 12px;}
.news + .rail__title {display: block; margin-top: 50px;}

/* rail__banner */
.rail__banner {overflow: hidden; margin-top: 12px; border-radius: 16px;}
.rail__banner-link {display: block;}
.rail__banner-img {display: block; width: 100%; height: auto; aspect-ratio: 9 / 10; object-fit: cover;}

/* notification-bar */
.notification-bar {display: flex; align-items: center; gap: 12px; position: fixed; z-index: 200;
	left: 40px; bottom: 20px; min-width: 260px; height: 56px; padding: 0 16px;
	border-radius: 6px; background: #1b1b1b; box-shadow: 0 4px 10px rgba(0,0,0,.25);
	color: #fafafa; font-weight: 500; font-size: 18px; line-height: 1;
	opacity: 0; visibility: hidden;
	transition: opacity 200ms var(--ease-out), visibility 0s 200ms;}
.notification-bar.is-on {opacity: 1; visibility: visible; transition: opacity 200ms var(--ease-out);}
.notification-bar__ico {flex: none; width: 24px; height: 24px;
	background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Ccircle cx='12' cy='12' r='12' fill='%231E8E3E'/%3E%3Cpath d='M6 12.5L10 16.5L18 7.5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' stroke='%23FAFAFA'/%3E%3C/g%3E%3C/svg%3E") no-repeat 50% 50% / 100% 100%;}

/* news--compact */
.news--compact {overflow: visible; border-radius: 0; background: none; box-shadow: none;}
.news--compact .news__item {align-items: center; gap: 16px; height: 86px; padding: 0; border-bottom: 0;}
.news--compact .news__row:last-child .news__item {padding-bottom: 0;}
.news--compact .news__row {padding: 5px 0 6px;}
.news--compact .news__row:first-child {padding-top: 0;}
.news--compact .news__row:last-child {padding-bottom: 0;}
.news--compact .news__row:not(:last-child) {border-bottom: 1px solid #e3e5e9;}
.news--compact .news__thumb {width: 112px; aspect-ratio: 112 / 70; border-radius: 8px;}
.news--compact .news__body {justify-content: center;}
.news--compact .news__date {order: 1; margin-top: 4px;
	color: #240075; font-weight: 500; font-size: 14px; line-height: 1.29;}
.news--compact .news__title {-webkit-line-clamp: 2; margin-top: 0;
	font-weight: 500; font-size: 16px; line-height: 1.375; letter-spacing: normal;}
.news--compact .news__excerpt,
.news--compact .news__arrow {display: none;}

@media (hover: hover) {
	.news--compact .news__row:hover {background: none;}
	.post__nav-link:hover .post__nav-label {color: #0084ff; text-decoration: none;}
	.post__nav-link:hover .post__nav-title {font-weight: 500; text-decoration: underline;}
	.share-row__btn:hover {background: #0084ff; color: #fafafa;}
	.share-row__btn:hover .share-ico--x {background-image: url(../images/common/icon_x.png);}
	.share-row__btn:hover .share-ico--link {background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Cpath d='M8.33 10.83C8.69 11.31 9.15 11.71 9.67 11.99C10.2 12.28 10.78 12.45 11.37 12.49C11.97 12.54 12.57 12.45 13.13 12.24C13.69 12.03 14.19 11.71 14.62 11.28L17.12 8.78C17.88 8 18.3 6.94 18.29 5.85C18.28 4.76 17.84 3.71 17.07 2.94C16.29 2.17 15.25 1.73 14.16 1.72C13.06 1.71 12.01 2.13 11.22 2.89L9.79 4.32' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round' stroke='%23FAFAFA'/%3E%3Cpath d='M11.67 9.17C11.31 8.69 10.85 8.29 10.33 8.01C9.8 7.72 9.22 7.55 8.63 7.51C8.03 7.46 7.43 7.55 6.87 7.76C6.31 7.97 5.81 8.29 5.38 8.72L2.88 11.22C2.12 12 1.7 13.05 1.71 14.15C1.72 15.24 2.16 16.29 2.93 17.06C3.71 17.83 4.75 18.27 5.84 18.28C6.94 18.29 7.99 17.87 8.78 17.11L10.2 15.68' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round' stroke='%23FAFAFA'/%3E%3C/g%3E%3C/svg%3E");}
	.share-row__btn:hover .share-ico--email {background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Cpath d='M4.17 4.17H15.83C16.75 4.17 17.5 4.91 17.5 5.83V14.17C17.5 15.09 16.75 15.83 15.83 15.83H4.17C3.25 15.83 2.5 15.09 2.5 14.17V5.83C2.5 4.91 3.25 4.17 4.17 4.17Z' stroke-width='1.67' stroke='%23FAFAFA'/%3E%3Cpath d='M2.5 5.83L10 10.83L17.5 5.83' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round' stroke='%23FAFAFA'/%3E%3C/g%3E%3C/svg%3E");}
}

@media all and (max-width: 1196px) {

	.content--community > .section {margin-top: 22px;}

	/* post-board */
	.post-board {gap: 40px;}
}

@media all and (max-width: 1024px) {

	/* rail */
	.rail {flex-basis: 280px;}
}

@media all and (max-width: 860px) {

	/* content--community */
	.content--community {--layout-gap: 20px; padding: 0 0 25px;}

	/* banner */
	.banner {width: auto; max-width: none; border-radius: 0;}
	.banner__img {aspect-ratio: 1080 / 480;}
	.banner--no-pc {display: block;}
	.banner--no-mobile,
	.banner__item--pc {display: none;}
	.banner__item--mobile {display: block;}

	/* section */
	.content--community > .section {gap: 0; width: auto; max-width: none; margin-top: 20px;}
	.content--community .section__head {margin: 0 var(--layout-gap);}
	/* section__sns */
	.content--community .section__sns {display: none;}

	/* news */
	/* content--community */
	.content--community .news {padding: 0 var(--layout-gap); border-radius: 0; box-shadow: none;}
	.content--community .news__item {padding: 11px 0 0;}
	/* 목록 끝 여백 — 관련글(.news--compact)은 줄 높이를 따로 잡으므로 뺌 */
	.content--community .news:not(.news--compact) .news__row:last-child .news__item {padding-bottom: 25px;}
	.content--community .news:not(.news--compact) .news__row:only-child .news__item {padding-bottom: 11px;}
	/* news--fold — 첫 노출 5줄. community.js 가 줄을 옮기기 전까지만 */
	.news--fold > .news__row:nth-child(n+6) {display: none;}

	/* ===== 상세 ===== */

	/* post-board */
	.content--post {--layout-gap: 20px; padding-bottom: 0;}
	.content--post > .post-board {display: block;
		width: auto; max-width: none; padding: 20px var(--layout-gap) 40px;}
	.post {max-width: none;}

	/* post__back */
	.post__back {min-height: 17px; gap: 2px; font-size: 14px;}
	.post__back::before {width: 15px; height: 15px;}

	/* post__head */
	.post__head {margin-top: 17px;}

	/* post__title */
	.post__title {font-size: 22px;}

	/* post__meta */
	.post__meta {display: block; margin-top: 5px;}
	.post__date {font-size: 13px;}
	.post__share-btn {display: none;}
	.post__share-wrap {position: static; margin-left: 0;}

	/* share-tiles */
	.share-tiles {display: flex; align-items: center; gap: 20px; margin-top: 15px;}
	.share-tiles__label {flex: none; color: #5b6069; font-weight: 500; font-size: 15px; line-height: 1;}
	.share-tiles__list {display: flex; gap: 20px; list-style: none;}
	.share-tiles__btn {display: block;}
	.share-tiles__btn-txt {overflow: hidden; position: absolute; width: 1px; height: 1px; clip-path: inset(50%);}

	/* post__hero */
	.post__hero {margin-top: 15px; border-radius: 13px;}

	/* post__body */
	.post__body {margin-top: 20px; font-size: 17px; line-height: 1.6;}
	.post__body > * + * {margin-top: 24px;}
	.post__body h2 {font-size: 22px;}
	.post__body h3 {font-size: 19px;}

	/* share */
	.share-row {display: block; margin-top: 33px;}
	.share-row__label,
	.share-row__list {display: none;}

	/* post__nav */
	.post__nav {display: none;}

	/* notification-bar */
	.notification-bar {--notification-bar-h: 48px;
		left: 16px; right: 16px; bottom: calc(var(--dock-bottom) + (var(--dock-h) - var(--notification-bar-h)) / 2);
		min-width: 0; height: var(--notification-bar-h); gap: 8px; font-size: 16px;}
	.notification-bar__ico {width: 20px; height: 20px;}

	/* rail */
	.rail {flex: none; width: auto; margin-top: 40px;}
	.rail__title + .news {margin-top: 13px;}
	.news + .rail__title,
	.rail__banner {display: none;}

	/* news--compact */
	.content--community .news--compact {padding: 0; border-radius: 0; box-shadow: none;}
	.news--compact .news__item {align-items: center; height: 70px; gap: 16px; padding: 0;}
	.news--compact .news__row {padding: 13px 0;}
	.news--compact .news__thumb {aspect-ratio: 112 / 70;}
	.news--compact .news__title {font-size: 16px; line-height: 1.3; letter-spacing: -.02em;}
	.news--compact .news__date {margin-top: 4px; font-size: 14px; line-height: 1.21;}
}
