/* [1.5.17] 링크 미리보기 카드 (.gtlc) — 글 본문·관련링크 상자 공용, 작은 가로형 (시안 A: 안쪽 여백 12px)
   [사진 80px 정사각·둥근 모서리] [사이트 · 제목 1줄 · 요약 1줄] [바로가기 버튼]
   강조색 = 강조컬러 엔진의 --rb-point → 스킨 --gtt-accent → #2563eb. 모바일 전환은 500px. */

a.gtlc, a.gtlc:hover, a.gtlc:focus, a.gtlc *, a.gtlc:hover * { text-decoration: none !important; }
.gtlc {
    --gtlc-c: var(--rb-point, var(--gtt-accent, #2563eb));
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 460px;
    padding: 12px;
    margin: 12px 0;
    background: #fff;
    color: inherit;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
    text-align: left;
    line-height: 1.4;
    cursor: pointer;
}
@supports (color: color-mix(in srgb, red, blue)) {
    .gtlc {
        border-color: color-mix(in srgb, var(--gtlc-c) 22%, #e5e7eb);
        background: color-mix(in srgb, var(--gtlc-c) 3%, #fff);
    }
}
.gtlc *, .gtlc *::before, .gtlc *::after { box-sizing: border-box; }
.gtlc:hover, .gtlc:focus-visible {
    transform: translateY(-1px);
    color: inherit;
    border-color: var(--gtlc-c);
    box-shadow: 0 6px 18px -8px rgba(15, 23, 42, .25);
}
.gtlc:focus-visible { outline: 2px solid var(--gtlc-c); outline-offset: 2px; }

/* 왼쪽 사진 (정사각, 카드 테두리 안쪽) */
.gtlc .gtlc_img {
    position: relative;
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #f1f5f9;
    overflow: hidden;
}
/* 본문(#bo_v_con) 안에서는 테마·스킨의 img 규칙이 이기므로 !important */
.gtlc .gtlc_img img {
    position: absolute !important; left: 0 !important; top: 0 !important;
    width: 100% !important; height: 100% !important; max-height: none !important;
    object-fit: cover;
    border: 0; border-radius: 0; box-shadow: none;
    transition: transform .35s ease;
}
.gtlc:hover .gtlc_img img { transform: scale(1.06); }

/* 사진 없을 때: 강조색 타일 + 아이콘/첫 글자 */
.gtlc .gtlc_noimg {
    display: flex; align-items: center; justify-content: center;
    background: var(--gtlc-c);
}
.gtlc .gtlc_noimg .gtlc_badge {
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: var(--gtlc-c); text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.gtlc .gtlc_noimg .gtlc_badge img {
    position: static !important; width: 24px !important; height: 24px !important;
    object-fit: contain; border-radius: 4px; transform: none !important;
}

/* 가운데 글 */
.gtlc .gtlc_body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 14px;
    display: flex; flex-direction: column; justify-content: center; gap: 3px;
}
.gtlc .gtlc_site {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: #64748b;
    white-space: nowrap; overflow: hidden;
}
.gtlc .gtlc_site img { flex: 0 0 14px; width: 14px; height: 14px; border-radius: 3px; object-fit: contain; border: 0; box-shadow: none; }
.gtlc .gtlc_site span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gtlc .gtlc_title {
    font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gtlc:hover .gtlc_title { color: var(--gtlc-c); }
.gtlc .gtlc_desc {
    font-size: 13px; color: #64748b; line-height: 1.45;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 오른쪽 바로가기 버튼 (눈에 띄는 곳) */
.gtlc .gtlc_foot {
    flex: 0 0 auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 0 4px 0 0;
}
.gtlc .gtlc_go {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--gtlc-c);
    color: #fff;
    font-size: 12.5px; font-weight: 700; line-height: 1;
    white-space: nowrap;
    transition: filter .2s ease;
}
.gtlc:hover .gtlc_go { filter: brightness(1.08); }
.gtlc .gtlc_cnt { color: #94a3b8; font-size: 11px; font-weight: 400; white-space: nowrap; }

/* 로딩 스켈레톤 */
.gtlc.is-loading { cursor: default; pointer-events: none; background: #fff; border-color: #e5e7eb; }
.gtlc.is-loading:hover { transform: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.gtlc.is-loading .gtlc_img,
.gtlc.is-loading .gtlc_bar {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: gtlc_shimmer 1.4s ease infinite;
}
.gtlc.is-loading .gtlc_bar { display: block; height: 10px; border-radius: 5px; }
.gtlc.is-loading .gtlc_bar.w1 { width: 30%; }
.gtlc.is-loading .gtlc_bar.w2 { width: 70%; height: 14px; margin-top: 3px; }
.gtlc.is-loading .gtlc_bar.w3 { width: 90%; }
@keyframes gtlc_shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) {
    .gtlc, .gtlc .gtlc_img img { transition: none; }
    .gtlc.is-loading .gtlc_img, .gtlc.is-loading .gtlc_bar { animation: none; }
    .gtlc:hover { transform: none; }
    .gtlc:hover .gtlc_img img { transform: none; }
}

/* 관련링크 상자 안의 카드: 스킨 style.css 의 옛 규칙 #bo_v_link a { float:left } 때문에 카드가 떠서
   상자가 높이를 못 잡고(잘림) 아래 '댓글쓰기'가 옆으로 붙었다 → float 해제 + 상자 테두리·여백 없앰 */
#bo_v_link ul li.gtlc_li,
#bo_v_link ul li.gtlc_li:hover,
#bo_v_link ul li.gtlc_li:last-child {
    display: block !important; float: none !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; margin: 12px 0 !important; overflow: visible !important; color: inherit; background: none !important;
}
#bo_v_link ul li.gtlc_li a.gtlc {
    float: none !important; display: flex !important; flex: none; gap: 0; align-items: center; margin: 0 !important; color: inherit !important;
}
/* 본문 아래(광고 위)로 옮긴 관련링크 상자: 위 구분선·여백 없앰 */
#bo_v_link.gtlc_moved { border-top: 0 !important; padding: 0 !important; margin: 0 !important; }

/* 본문 안 카드: 스킨 인라인 #bo_v_con img { margin-bottom:30px !important } (ID 특이도) 가 카드 속 그림을 밀어 올렸다 */
#bo_v_con .gtlc img, #bo_v_link .gtlc img { margin: 0 !important; padding: 0 !important; max-width: none !important; }
#bo_v_con .gtlc .gtlc_site img, #bo_v_link .gtlc .gtlc_site img { display: block !important; width: 14px !important; height: 14px !important; }

/* 모바일(500px 이하): 가로형 그대로, 더 작게. 버튼은 화살표 원으로 */
@media (max-width: 500px) {
    .gtlc { padding: 10px; border-radius: 10px; max-width: none; }
    .gtlc .gtlc_img { flex-basis: 64px; width: 64px; height: 64px; }
    .gtlc .gtlc_body { padding: 0 10px; gap: 2px; }
    .gtlc .gtlc_title { font-size: 14px; }
    .gtlc .gtlc_desc { font-size: 12px; }
    .gtlc .gtlc_foot { padding: 0; }
    .gtlc .gtlc_go { width: 30px; height: 30px; padding: 0; justify-content: center; font-size: 0; }
    .gtlc .gtlc_go::after { content: attr(data-arrow); font-size: 14px; }
    .gtlc .gtlc_cnt { display: none; }
}

/* ===== [1.5.19] 링크 많은 글(4개 초과) =====
   .gtlc--s 작은 카드 (보기설정 '켬 · 많으면 작은 카드') — 주소 줄 아래, 사진 44px · 사이트 · 제목 1줄 · 화살표 원
   .gtlc_box/.gtlc--g 본문 끝 모음 (보기설정 '켬 · 많으면 끝에 모음') — 번호 · 2열(모바일 1열) */
.gtlc.gtlc--s { max-width: 420px; padding: 7px 10px 7px 7px; margin: 6px 0 12px; border-radius: 10px; }
.gtlc--s .gtlc_img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 7px; }
.gtlc--s .gtlc_body { padding: 0 10px; gap: 1px; }
.gtlc--s .gtlc_site { font-size: 11.5px; }
.gtlc--s .gtlc_title { font-size: 14px; }
.gtlc--s .gtlc_noimg .gtlc_badge, .gtlc--g .gtlc_noimg .gtlc_badge { width: 28px; height: 28px; font-size: 13px; }
.gtlc--s .gtlc_noimg .gtlc_badge img, .gtlc--g .gtlc_noimg .gtlc_badge img { width: 16px !important; height: 16px !important; }
.gtlc--s .gtlc_ar {
    flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
    background: var(--gtlc-c); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; line-height: 1;
    transition: filter .2s ease;
}
.gtlc--s:hover .gtlc_ar { filter: brightness(1.08); }

.gtlc_box { margin: 22px 0 6px; padding-top: 16px; border-top: 1px solid #eef0f3; }
.gtlc_box .gtlc_box_hd { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: #111; line-height: 1.4; }
.gtlc_box .gtlc_box_hd em {
    font-style: normal; font-size: 12px; font-weight: 700; color: #fff; line-height: 1.5;
    background: var(--rb-point, var(--gtt-accent, #2563eb)); border-radius: 999px; padding: 0 8px;
}
.gtlc_grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gtlc.gtlc--g { max-width: none; margin: 0; padding: 8px; border-radius: 10px; background: #fff; border-color: #e5e7eb; }
.gtlc--g:hover { transform: none; }
.gtlc--g .gtlc_img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; }
.gtlc--g .gtlc_body { padding: 0 8px 0 10px; gap: 1px; }
.gtlc--g .gtlc_site { font-size: 11.5px; }
.gtlc--g .gtlc_no { flex: 0 0 auto; color: var(--gtlc-c); font-weight: 700; }
.gtlc--g .gtlc_title {
    font-size: 13.5px; white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.gtlc--g .gtlc_ar { flex: 0 0 auto; color: #94a3b8; font-size: 14px; line-height: 1; }
.gtlc--g:hover .gtlc_ar { color: var(--gtlc-c); }

/* 자리표시(로딩) 크기 맞춤 */
.gtlc.is-loading.gtlc--g { background: #fff; }
.gtlc.is-loading.gtlc--s .gtlc_bar.w3, .gtlc.is-loading.gtlc--g .gtlc_bar.w3 { display: none; }
.gtlc.is-loading.gtlc--s .gtlc_bar.w2, .gtlc.is-loading.gtlc--g .gtlc_bar.w2 { height: 12px; }

@media (max-width: 500px) {
    .gtlc.gtlc--s { padding: 6px 8px 6px 6px; max-width: none; }
    .gtlc--s .gtlc_img { flex-basis: 40px; width: 40px; height: 40px; }
    .gtlc--s .gtlc_body { padding: 0 8px; }
    .gtlc--s .gtlc_title { font-size: 13.5px; }
    .gtlc--s .gtlc_ar { flex-basis: 26px; width: 26px; height: 26px; font-size: 12px; }
    .gtlc_grid { grid-template-columns: minmax(0, 1fr); }
    .gtlc.gtlc--g { padding: 7px; }
    .gtlc--g .gtlc_img { flex-basis: 48px; width: 48px; height: 48px; }
}

/* ===== [1.5.20] 관련 링크 영역 (링크1·2 중 본문에 없는 주소, 보기설정 '관련링크 카드') =====
   1개 = 본문 폭 전체 · 사진 96px · 요약 2줄 / 2개 이상 = 2열 · 사진 72px · 제목 2줄 / 모바일 1열.
   이동 횟수: PC 는 버튼 아래 칩, 모바일은 제목 아래 한 줄 */
.gtlc_rel { margin: 20px 0 6px; }
.gtlc_rel .gtlc_rel_hd { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: #334155; line-height: 1.4; }
.gtlc_rel .gtlc_rel_ic {
    width: 20px; height: 20px; border-radius: 6px; font-size: 11px;
    display: flex; align-items: center; justify-content: center;
    background: #eef2f7; color: var(--rb-point, var(--gtt-accent, #2563eb));
}
@supports (color: color-mix(in srgb, red, blue)) {
    .gtlc_rel .gtlc_rel_ic { background: color-mix(in srgb, var(--rb-point, var(--gtt-accent, #2563eb)) 12%, #fff); }
}
.gtlc_rel_grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gtlc_rel_grid.is-one { grid-template-columns: minmax(0, 1fr); }

.gtlc.gtlc--r { max-width: none; margin: 0; padding: 12px; }
.gtlc--r .gtlc_img { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 9px; }
.gtlc--r .gtlc_body { padding: 0 14px; gap: 3px; }
.gtlc--r .gtlc_title { font-size: 16px; }
.gtlc--r .gtlc_desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gtlc--r .gtlc_desc.gtlc_url {
    font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: #94a3b8;
    -webkit-line-clamp: 1; word-break: break-all;
}
.gtlc--r .gtlc_foot { align-items: flex-end; gap: 7px; padding: 0; }
.gtlc--r .gtlc_go { padding: 8px 14px; font-size: 13px; }
.gtlc--r .gtlc_chip {
    display: inline-flex; align-items: center; gap: 3px; padding: 4px 9px; border-radius: 999px;
    background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.gtlc--r .gtlc_chip b { color: #0f172a; font-weight: 700; }
.gtlc--r .gtlc_cnt2 { display: none; font-size: 11.5px; font-weight: 600; color: #64748b; }

/* 2열일 때 촘촘하게 */
.gtlc_rel_grid:not(.is-one) .gtlc--r { padding: 10px; }
.gtlc_rel_grid:not(.is-one) .gtlc--r .gtlc_img { flex-basis: 72px; width: 72px; height: 72px; border-radius: 8px; }
.gtlc_rel_grid:not(.is-one) .gtlc--r .gtlc_body { padding: 0 10px 0 12px; }
.gtlc_rel_grid:not(.is-one) .gtlc--r .gtlc_title { font-size: 14.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gtlc_rel_grid:not(.is-one) .gtlc--r .gtlc_desc { display: none; }
.gtlc_rel_grid:not(.is-one) .gtlc--r .gtlc_go { width: 30px; height: 30px; padding: 0; justify-content: center; font-size: 0; }
.gtlc_rel_grid:not(.is-one) .gtlc--r .gtlc_go::after { content: attr(data-arrow); font-size: 14px; }
.gtlc.is-loading.gtlc--r .gtlc_bar.w3 { display: block; }

@media (max-width: 500px) {
    .gtlc_rel_grid { grid-template-columns: minmax(0, 1fr); }
    .gtlc.gtlc--r, .gtlc_rel_grid:not(.is-one) .gtlc--r { padding: 10px; }
    .gtlc--r .gtlc_img, .gtlc_rel_grid:not(.is-one) .gtlc--r .gtlc_img { flex-basis: 64px; width: 64px; height: 64px; }
    .gtlc--r .gtlc_body, .gtlc_rel_grid:not(.is-one) .gtlc--r .gtlc_body { padding: 0 10px; gap: 2px; }
    .gtlc--r .gtlc_title { font-size: 14.5px; }
    .gtlc--r .gtlc_desc { -webkit-line-clamp: 1; }
    .gtlc_rel_grid:not(.is-one) .gtlc--r .gtlc_desc { display: none; }
    .gtlc--r .gtlc_chip { display: none; }
    .gtlc--r .gtlc_cnt2 { display: block; }
    .gtlc--r .gtlc_go { width: 30px; height: 30px; padding: 0; justify-content: center; font-size: 0; }
}
