
/* ── ① 메인 슬라이더 아래 「런닝인사이드 속보 · 기사」 섹션 숨김
      붉은 속보 띠(.bk-band)는 그대로 둡니다 ── */
body.home section.bk-sec { display: none !important; }

/* ── ② 「내 정보」 중복 제거 — 상단 리본을 숨기고 헤더 버튼만 남깁니다 ── */
.u-ribbon__me { display: none !important; }

/* ── ③ 로그인 · 내 정보 · 회원가입 아이콘 ── */
.ri-mytop {
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
}
.ri-mytop::before {
	content: "" !important;
	width: 17px !important;
	height: 17px !important;
	flex: 0 0 17px !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 17px 17px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpolyline points='10 17 15 12 10 7'/%3E%3Cline x1='15' y1='12' x2='3' y2='12'/%3E%3C/svg%3E") !important;
}
body.logged-in .ri-mytop::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") !important;
}
a[href*="/signup/"] {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
}
a[href*="/signup/"]::before {
	content: "" !important;
	width: 16px !important;
	height: 16px !important;
	flex: 0 0 16px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cline x1='19' y1='8' x2='19' y2='14'/%3E%3Cline x1='22' y1='11' x2='16' y2='11'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 16px 16px !important;
}

/* ── ④ 회원가입 간소화 — 이름 · 메일 · 전화번호 · 비밀번호만 ── */
/* .ri-social 감추기는 v1.8.0 에서 «키가 없을 때만» 나가도록 옮겼습니다
   → runin_a_social_gate_css() 참조. 여기에 되살리지 마십시오. */
.runin-a-hidden-block { display: none !important; }

/* ── ⑤ 뉴스 페이지 : 분류 칩을 기사 위로 ── */
.page-template-page-news .ri-main > .ri-wrap {
	display: flex !important;
	flex-direction: column !important;
}
.page-template-page-news .ri-main > .ri-wrap > h1           { order: -3 !important; }
.page-template-page-news .ri-main > .ri-wrap > .rec-lead    { order: -2 !important; }
.page-template-page-news .ri-main > .ri-wrap > .rec-anchors {
	order: -1 !important;
	margin-bottom: 26px !important;
}

/* ── ⑥ 뉴스 기사 그리드 : 한 줄에 3개 ── */
.nw-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 22px !important;
	align-items: start !important;
}
.nw-grid > .nw-item { width: auto !important; max-width: none !important; margin: 0 !important; }
.nw-grid .nw-item__fig img { width: 100% !important; height: auto !important; display: block !important; }
@media (max-width: 1023px) { .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px !important; } }
@media (max-width: 640px)  { .nw-grid { grid-template-columns: 1fr !important; gap: 16px !important; } }

/* ── ⑦ 모바일 최적화 (767px 이하) ── */
@media (max-width: 767px) {

	/* 인스타그램 피드 : 1열 20장(7,074px)이 쌓이던 것을 2열 6장으로 */
	.ri-insta #sb_instagram #sbi_images {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 6px !important;
		padding: 0 !important;
	}
	.ri-insta #sb_instagram #sbi_images > .sbi_item {
		width: auto !important;
		max-width: none !important;
		padding: 0 !important;
		margin: 0 !important;
		float: none !important;
	}
	.ri-insta #sb_instagram #sbi_images > .sbi_item:nth-child(n+7) { display: none !important; }
	.ri-insta #sb_instagram #sbi_load .sbi_load_btn { display: none !important; }
	.ri-insta #sb_instagram .sb_instagram_header { margin-bottom: 10px !important; }

	/* 대회 목록 — 가운데 칸이 170px 밖에 안 돼 제목이 두 줄로 쪼개지던 것 */
	.u-sched__row {
		grid-template-columns: 40px minmax(0, 1fr) 76px !important;
		column-gap: 8px !important;
		align-items: start !important;
	}
	.u-sched__row > * { min-width: 0 !important; }

	/* 날짜와 접수상태가 세로 «가운데» 라 제목과 61px 어긋나 보이던 것 —
	   전부 윗줄에 맞춘다 */
	.u-sched__date,
	.u-sched__stat {
		align-self: start !important;
	}
	.u-sched__stat {
		width: 100% !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-end !important;
		gap: 2px !important;
	}
	.u-sched__stat .u-st {
		font-size: 11px !important;
		padding: 3px 6px !important;
	}
	.u-sched__name {
		font-size: 14px !important;
		line-height: 1.35 !important;
		flex-wrap: wrap !important;
		word-break: keep-all !important;
	}
	.u-sched__place { font-size: 12px !important; line-height: 1.4 !important; flex-wrap: wrap !important; }
	.u-sched__date  { font-size: 13px !important; }
	.u-sched__stat  { font-size: 12px !important; }
	.u-sched__stat .u-st { white-space: nowrap !important; }

	/* 대회 제목 — 두 줄까지만, 줄 간격을 좁힌다 */
	.u-sched__name .u-sched__toggle {
		font-size: 14px !important;
		line-height: 1.25 !important;   /* 1.3 → 1.25 · v1.3 눈금 · 폰 635곳 */
		word-break: keep-all !important;
	}

	/* 종목 칩 — 「트레일 25~50K」 두 개가 248px 라 197px 칸을 넘어 두 줄이 되던 것.
	   글자·아이콘·여백을 줄여 한 줄에 들어가게 한다 */
	.u-sched__name .u-dist {
		gap: 4px 5px !important;
		margin-top: 4px !important;
		margin-left: 0 !important;
		width: 100% !important;
		/* ul 의 브라우저 기본 들여쓰기 40px 때문에 칩이 제목보다 오른쪽에서
		   시작해 「정렬이 안 맞아」 보이던 것 */
		padding-left: 0 !important;
		padding-inline-start: 0 !important;
		list-style: none !important;
	}
	.u-sched__name .u-dist > li {
		font-size: 11px !important;
		line-height: 1.25 !important;
		padding: 2px 6px !important;
		gap: 3px !important;
		white-space: nowrap !important;
		list-style: none !important;
		margin-left: 0 !important;
	}
	.u-sched__name .u-dist > li .ri-i {
		width: 12px !important;
		height: 12px !important;
		flex: 0 0 12px !important;
	}

	/* 국내 · 국외 · 통합 탭 — 「통합」이 세로로 쪼개지던 것 */
	.ri-scope3 { width: 100% !important; }
	.ri-scope3__b {
		white-space: nowrap !important;
		font-size: 14px !important;
		padding-left: 4px !important;
		padding-right: 4px !important;
		min-width: 0 !important;
		gap: 4px !important;
	}

	/* 필터 칩·선택칸은 가로 스크롤 띠 — 잘린 것처럼 보이지 않게 여백을 준다 */
	.ri-chips, .ri-fields {
		padding-right: 12px !important;
		scrollbar-width: none !important;
	}
	.ri-chips::-webkit-scrollbar, .ri-fields::-webkit-scrollbar { display: none !important; }

	/* 푸터 압축 */
	.ri-foot-mail  { padding-top: 22px !important; padding-bottom: 22px !important; }
	.ri-foot-main  { padding-top: 22px !important; padding-bottom: 22px !important; }
	.ri-foot-mail__form { max-width: 100% !important; }
	.ri-foot-grid  { gap: 14px !important; }
	.ri-foot-col   { margin: 0 !important; }
	.ri-foot-legal { padding-top: 14px !important; padding-bottom: 14px !important; }
}
