/* ===== 원래 #54 접근성 - 포커스 링·움직임 줄이기 ===== */
/* 접근성 — 키보드 포커스 링 (2026-10-08)
   브라우저 기본은 1px 이라 약하다. :where() 로 특이도를 0 으로 두어, 이미 포커스 스타일을 따로 준 요소(내비 링크 등)는 그대로 이긴다.
   검정 탑바(.gb-element-0912a085 모바일 / .gb-element-55f6ec6f 데스크톱) 안에서는 검정 링이 안 보이므로 흰색. */
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"]):focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}
.gb-element-0912a085 :focus-visible,
.gb-element-55f6ec6f :focus-visible {
  outline-color: var(--color-paper);
}

/* 움직임 줄이기 설정을 켠 방문자 — 전환·애니메이션·부드러운 스크롤을 끈다 (2026-10-08) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 모바일 입력 글자 16px 이상 — iOS Safari 는 16px 미만 입력란에 포커스하면 화면을 확대한다 (2026-10-08) */
@media (max-width: 767px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea { font-size: max(var(--font-size-md), 1em) !important; }
}

/* 터치 영역 44px (2026-10-18, bloom-media 비교 반영) — 보이는 크기는 그대로, 누르는 영역만 ::after 로 넓힌다.
   캐러셀 점: 점 8 + 간격 8 = 16px 마다 하나라 가로를 44 로 넓히면 옆 점과 겹쳐 엉뚱한 점이 눌린다 → 세로 44 · 가로 16(겹침 없음). 같은 기능의 화살표 버튼(48px)이 옆에 있다.
   푸터 링크 목록 3개(강의 카테고리 c1e6a202 · 고객센터 2c401255 · 회사 a1c73e78): 글자 28 · 줄 간격 44 → 세로 44(옆 줄과 맞닿고 안 겹침), 짧은 항목(FAQ)은 가로도 44. */
.gb-carousel-dot { position: relative; }
.gb-carousel-dot::after { content: ""; position: absolute; top: 50%; left: 50%; width: calc(100% + 0.5rem); height: 2.75rem; transform: translate(-50%, -50%); }
:is(.gb-menu-c1e6a202, .gb-menu-2c401255, .gb-menu-a1c73e78) .gb-menu-link { position: relative; }
:is(.gb-menu-c1e6a202, .gb-menu-2c401255, .gb-menu-a1c73e78) .gb-menu-link::after { content: ""; position: absolute; left: 0; top: 50%; width: max(100%, 2.75rem); height: 2.75rem; transform: translateY(-50%); }

/* ===== 원래 #66 가로 스크롤 탭 - 흐림 ===== */
/* 가로 스크롤 탭 — 오른쪽 흐림 (2026-10-12)
   .post-tabs(강의 상세 탭 바 · 디자인 시스템 내비)는 탭 줄 자신이 스크롤되는 상자라 덮개(::after)를 얹으면 같이 밀린다 →
   마스크로 오른쪽 5rem 을 투명하게 지운다(배경색과 무관). 헤더·FacetWP 탭과 같은 폭·같은 70% 지점에서 완전히 사라짐.
   첫 번째 마스크 층(아래 1px)은 탭 아래 기준선을 지우지 않으려고.
   .has-more 는 JS 스니펫 「가로 스크롤 탭 — 흐림 상태」(#62)가 붙인다. 마스크 속성은 GB 글로벌 스타일 편집기로 다룰 수 없어 여기 둔다. */
@media (max-width: 767px) {
	.post-tabs.has-more {
		-webkit-mask-image: linear-gradient(#000, #000), linear-gradient(to right, #000 calc(100% - 5rem), transparent calc(100% - 1.5rem));
		mask-image: linear-gradient(#000, #000), linear-gradient(to right, #000 calc(100% - 5rem), transparent calc(100% - 1.5rem));
		-webkit-mask-size: 100% 1px, 100% 100%;
		mask-size: 100% 1px, 100% 100%;
		-webkit-mask-position: bottom, 0 0;
		mask-position: bottom, 0 0;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
	}
}

/* 헤더 로그인·회원가입 버튼은 밝은 파랑(accent) — 수강신청 버튼과 같은 색 (2026-11-27 사용자) */
.gb-site-header a.button--primary:is([href="/edu-login/"], [href^="/edu-login/?"]), .gb-site-header a.button--primary-sm:is([href="/edu-login/"], [href^="/edu-login/?"]) { background-color: var(--color-accent); border-color: var(--color-accent); }
.gb-site-header a:is(.button--primary, .button--primary-sm):is([href="/edu-login/"], [href^="/edu-login/?"]):is(:hover, :focus-visible) { background-color: var(--color-accent-strong); border-color: var(--color-accent-strong); }
.gb-site-header a:is(.button--secondary, .button--secondary-sm)[href="/register/"] { border-color: var(--color-accent); color: var(--color-accent); }

/* 강의 카드 이미지 로더 (2026-11-28) — 썸네일을 받는 동안 이미지 자리에 로고 파랑(accent) 띠가 지나간다(사용자 「진하게, 로고 수준으로」). 받기가 끝나면 스니펫 「강의 목록 - 이미지 로더」가 .is-loading 을 뗀다 */
img.card__image.is-loading {
	background-color: color-mix(in srgb, var(--color-sub-bright) 30%, var(--color-paper));
	background-image: linear-gradient(100deg, transparent 15%, color-mix(in srgb, var(--color-accent) 55%, transparent) 50%, transparent 85%);
	background-size: 200% 100%;
	background-repeat: no-repeat;
	animation: tsis-image-shimmer 1.2s ease-in-out infinite;
}
@keyframes tsis-image-shimmer {
	from { background-position: 150% 0; }
	to { background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
	img.card__image.is-loading { animation: none; }
}
