/* 공개 이용 가이드(/Guide) – Views/Guide/Index.cshtml, Detail.cshtml (2026-10-11) */
.gd-hero { padding: 3rem 0 2.5rem; }
.gd-hero h1 { font-size: 2rem; margin-bottom: .5rem; }
.gd-hero .lead { color: #4b5563; margin-bottom: 0; }
.gd-breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: #6b7280; }
.gd-breadcrumb li + li::before { content: "›"; margin-right: .35rem; color: #9ca3af; }
.gd-breadcrumb a { color: #6b7280; }
.gd-breadcrumb a:hover { color: #3f78e0; }

/* 메뉴 탭 */
.gd-tabs { display: flex; overflow-x: auto; gap: .25rem; border-bottom: 1px solid #e5e7eb; margin-bottom: 1.75rem; scrollbar-width: thin; }
.gd-tabs a { flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem; padding: .8rem 1.1rem; font-size: .92rem; font-weight: 600; color: #6b7280; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.gd-tabs a:hover { color: #1f2937; }
.gd-tabs a.is-active { color: #3f78e0; border-bottom-color: #3f78e0; }

/* 왼쪽 화면 목록 */
.gd-side { position: sticky; top: 1.5rem; }
.gd-side__title { font-size: .78rem; font-weight: 700; color: #9ca3af; margin: 0 0 .5rem .25rem; }
.gd-side ol { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.gd-side li + li { border-top: 1px solid #f1f5f9; }
.gd-side a { display: block; padding: .7rem 1rem; font-size: .9rem; color: #374151; }
.gd-side a:hover { background: #f8fafc; color: #3f78e0; }
.gd-side a.is-active { background: #3f78e0; color: #fff; font-weight: 600; }
@media (max-width: 991.98px) {
    .gd-side { position: static; margin-bottom: 1.5rem; }
    .gd-side__title { display: none; }
    .gd-side ol { display: flex; overflow-x: auto; gap: .5rem; background: transparent; border: 0; border-radius: 0; }
    .gd-side li + li { border-top: 0; }
    .gd-side a { white-space: nowrap; border: 1px solid #e5e7eb; border-radius: 999px; padding: .45rem .9rem; background: #fff; }
}

/* 화면 설명 */
.gd-article h2 { font-size: 1.5rem; margin-bottom: .35rem; }
.gd-where { display: inline-block; font-size: .82rem; color: #3f78e0; background: #eef4fd; border-radius: 999px; padding: .2rem .75rem; margin-bottom: .75rem; }
.gd-desc { font-size: 1rem; line-height: 1.75; color: #374151; margin: 0 0 1.25rem; }

/* 스크린샷 크게 보기 (dialog) */
.gd-shot__link { cursor: zoom-in; }
.gd-zoom { width: min(96vw, 1480px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px rgba(15, 23, 42, .35); }
.gd-zoom::backdrop { background: rgba(15, 23, 42, .7); }
.gd-zoom__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1rem; border-bottom: 1px solid #e5e7eb; background: #fff; }
.gd-zoom__bar strong { font-size: .95rem; color: #1f2937; }
.gd-zoom__close { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .9rem; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font-size: .9rem; font-weight: 600; color: #374151; cursor: pointer; }
.gd-zoom__close:hover { border-color: #3f78e0; color: #3f78e0; }
.gd-zoom__body { overflow: auto; max-height: calc(94vh - 58px); padding: 2.25rem 1.5rem 1.5rem 2.75rem; }
/* 작은 화면에서도 원래 크기에 가깝게 – 가로로 넘겨 본다 */
.gd-zoom__shot { position: relative; width: 100%; min-width: 1000px; }
.gd-zoom__shot .gd-shot__img { box-shadow: none; }

/* 스크린샷 + 번호(테두리 없이 번호만) */
.gd-shot { position: relative; display: block; margin: 0; }
.gd-shot__img { display: block; width: 100%; height: auto; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 4px 18px rgba(30, 41, 59, .08); background: #f8fafc; }
/* 좌표 = 가리키는 요소의 왼쪽 위. 번호는 그 바로 왼쪽 바깥에 붙여 글자를 가리지 않게 한다 */
.gd-mark { position: absolute; transform: translate(calc(-100% - 4px), -45%); width: 28px; height: 28px; border-radius: 50%; background: #f97316; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, .3); pointer-events: none; }
.gd-mark--top { transform: translate(-20%, calc(-100% - 3px)); }
.gd-shot figcaption { margin-top: .5rem; font-size: .78rem; color: #9ca3af; }
@media (max-width: 767.98px) {
    .gd-mark { width: 19px; height: 19px; font-size: 11px; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, .3); }
}

.gd-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.5rem; margin-top: 1.5rem; }
.gd-box h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.gd-steps { list-style: none; padding: 0; margin: 0; }
.gd-steps li { display: flex; gap: .75rem; margin-bottom: .85rem; line-height: 1.7; color: #374151; }
.gd-steps li:last-child { margin-bottom: 0; }
.gd-num { flex-shrink: 0; width: 26px; height: 26px; margin-top: .1rem; border-radius: 50%; background: #f97316; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gd-tips { list-style: none; padding: 0; margin: 0; }
.gd-tips li { position: relative; padding-left: 1.4rem; margin-bottom: .6rem; line-height: 1.7; color: #4b5563; }
.gd-tips li::before { content: "💡"; position: absolute; left: 0; top: 0; font-size: .85rem; }

.gd-pager { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; }
.gd-pager a { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem 1rem; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; font-size: .9rem; color: #4b5563; }
.gd-pager a:hover { border-color: #3f78e0; color: #3f78e0; }

.gd-cta { margin-top: 2rem; padding: 1.5rem; border-radius: 12px; background: #eef4fd; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.gd-cta p { margin: 0; color: #1f2937; font-weight: 600; }

/* 첫 화면 카드 */
.gd-start { counter-reset: gd; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.gd-start li { counter-increment: gd; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem; }
.gd-start li::before { content: counter(gd); display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: #f97316; color: #fff; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; margin-bottom: .5rem; }
.gd-start a { display: block; font-weight: 600; color: #1f2937; }
.gd-start span { display: block; font-size: .82rem; color: #6b7280; margin-top: .2rem; }
.gd-section { margin-top: 3rem; scroll-margin-top: 110px; }
.gd-section h2 { font-size: 1.4rem; margin-bottom: .25rem; }
.gd-section > p { color: #6b7280; margin-bottom: 1.25rem; }
.gd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.gd-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; color: inherit; transition: box-shadow .15s, transform .15s; }
.gd-card:hover { box-shadow: 0 8px 24px rgba(30, 41, 59, .12); transform: translateY(-2px); }
/* 썸네일은 모든 화면에 공통인 상단 메뉴줄 대신 본문(제목·검색줄)이 보이도록 확대해 자른다 */
.gd-card__thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-bottom: 1px solid #f1f5f9; background: #f8fafc; }
.gd-card__thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; transform: scale(1.6); transform-origin: 0 40%; }
.gd-card div { padding: .9rem 1rem 1rem; }
.gd-card h3 { font-size: 1rem; margin: 0 0 .3rem; color: #1f2937; }
.gd-card p { font-size: .82rem; color: #6b7280; margin: 0; line-height: 1.55; }
