/* PC 개편 2차 공통 층 (2026-12-03 GS "PC 배경 화이트로 · 회색을 아예 안 쓰는 건 아니고 카드고릴라 참고 · 나머지도 새 모바일 디자인 반영하면서")
 * 1024px 이상, 상품권·기프티콘 쪽 페이지에만 붙습니다(금·환전·기름값 제외 — Base.astro 가 가립니다). 모바일에는 영향 없음.
 * 마크업·글·링크·광고 자리는 그대로이고 모양만: ① 바탕 흰색 ② 머리글은 연주황 둥근 띠 ③ 판은 연회색 채움 ④ 사이드 TOP 3 는 주황·파랑 액자.
 * 홈은 src/pages/index.astro 끝의 'PC 개편 · 홈' 블록이 같은 톤으로 따로 다룹니다. 색은 토큰만 씁니다(다크 모드 대응).
 */
/* ① 바탕 */
html, html body, html body .container, html body .site-header { background: var(--surface) !important; background-image: none !important; }
html body .site-header { box-shadow: 0 1px 0 var(--line-solid); }

/* ② 머리글 — 연주황 둥근 띠 (제목·부제·답변 문장 그대로) */
html body #main-content > :is(.page-header, section.page-head) { margin: 8px 22px 6px !important; padding: 26px 28px 24px !important; border: 0 !important; border-radius: 16px; background: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, var(--accent) 16%, var(--surface))) !important; }
html body #main-content > .page-header :is(.page-subtitle, .page-intro, .hub-lead) { max-width: 640px; }

/* ③ 판 — 흰 바탕 위에서 구분되도록 연회색 채움. 테두리·그림자는 걷습니다 */
html body #main-content .more-link { padding: 5px 12px; border-radius: 999px; background: var(--surface-3); color: var(--ink-faint); font-size: 13px; font-weight: 600; text-decoration: none; }

/* ④ 사이드 — 매입 TOP 3 주황 액자 · 구매 TOP 3 파랑 액자 · 나머지 모듈은 연회색 판 */
html body .page-rail .rl-mod { border: 0 !important; box-shadow: none !important; background: var(--surface-2) !important; border-radius: 16px !important; }
html body .page-rail :is(.rl-sell, .rl-buy) { padding: 0 8px 8px; border-radius: 20px !important; background: var(--ink) !important; overflow: hidden; }
html body .page-rail .rl-buy { background: color-mix(in srgb, var(--buy-dark) 55%, var(--ink)) !important; }
html body .page-rail :is(.rl-sell, .rl-buy) .rl-h { margin: 0 -8px; padding: 14px 18px 24px; border: 0; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 800; }
html body .page-rail .rl-buy .rl-h { background: var(--buy); }
html body .page-rail :is(.rl-sell, .rl-buy) .rl-h :is(.rl-dot, .rl-tag) { display: none; }
html body .page-rail :is(.rl-sell, .rl-buy) :is(.rl-row, .rl-more) { width: auto; margin: 0 !important; padding-left: 16px; padding-right: 16px; border: 0 !important; background: var(--surface) !important; }
html body .page-rail :is(.rl-sell, .rl-buy) .rl-row { padding-top: 12px; padding-bottom: 12px; box-shadow: inset 0 -1px 0 var(--line-soft); }
html body .page-rail :is(.rl-sell, .rl-buy) .rl-row:first-of-type { margin-top: -12px !important; border-radius: 12px 12px 0 0 !important; position: relative; }
html body .page-rail :is(.rl-sell, .rl-buy) .rl-more { border-radius: 0 0 12px 12px !important; }
html body .page-rail .rl-nm { font-size: 14px; font-weight: 700; }
html body .page-rail .rl-rt { font-size: 15px; font-weight: 900; }

/* ⑤ 상품권 상세 — 두 칸 숫자 카드를 연주황 둥근 판으로 (흰 카드·그림자 대신) */
html body #main-content > section.rate-hero > div.hero-card.hero-card { border: 0 !important; border-radius: 16px !important; box-shadow: none !important; background: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, var(--accent) 16%, var(--surface))) !important; }
html body #main-content > section.rate-hero > div.hero-card.hero-card > * { background: transparent !important; }

/* ⑥ 거래소 상세 — 머리 카드를 연주황 띠로 */
html body #main-content > .platform-hero .platform-hero-card { border: 0 !important; border-radius: 16px !important; box-shadow: none !important; background: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, var(--accent) 16%, var(--surface))) !important; }

/* ⑦ 순위 줄(.rd-list — 매입·구매 허브) — 줄마다 연회색 둥근 카드, 1위는 큰 카드 (홈과 같은 문법) */
html body:not(.is-home) #main-content .rd-list { margin: 0; padding: 0; list-style: none; border: 0; background: none; box-shadow: none; }
html body:not(.is-home) #main-content .rd-list > li { margin: 0 0 6px; border: 0; }
html body:not(.is-home) #main-content .rd-row { padding: 12px 20px !important; border: 0 !important; border-radius: 12px; background: var(--surface-2) !important; }
html body:not(.is-home) #main-content .rd-list > li:first-child .rd-row { padding: 22px 26px !important; border-radius: 16px; gap: 20px; }
html body:not(.is-home) #main-content .rd-list > li:first-child .rd-rank > b { width: auto; height: auto; background: none; color: var(--ink); font-size: 38px; font-weight: 900; }
html body:not(.is-home) #main-content .rd-list > li:first-child .rd-name { font-size: 20px; font-weight: 800; }
html body:not(.is-home) #main-content .rd-list > li:first-child .rd-val > b { font-size: 40px; font-weight: 900; letter-spacing: -0.035em; line-height: 1.1; }
html body #main-content .rd-more { border: 0; border-radius: 12px; background: var(--surface-2); color: var(--ink-soft); font-size: 13px; }

/* ⑧ 거래소 순위 표(.rate-table — 상품권 상세 TOP 5 · 거래소 상세 · 기프티콘 · 지역) — 상자·그림자를 걷고 줄마다 연회색 둥근 카드 */
html body #main-content .rate-table { padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; }
html body #main-content .rate-table > .rate-row { margin: 0 0 6px !important; padding-left: 18px !important; padding-right: 18px !important; border: 0 !important; border-radius: 12px !important; background: var(--surface-2) !important; }
html body #main-content .rate-table > .rate-row.best { border-radius: 16px !important; padding-top: 18px !important; padding-bottom: 18px !important; background: var(--accent-soft) !important; }
html body #main-content .rate-table > .rate-row.best .rate-value { font-size: 22px !important; font-weight: 900 !important; white-space: nowrap; }
html body #main-content .rate-table > .rate-row.best .rate-platform-name { font-size: 17px !important; font-weight: 800 !important; }
html body #main-content .buy-section .rate-table > .rate-row.best, html body #main-content .bboard .rate-table > .rate-row.best { background: var(--buy-soft) !important; }

/* ⑨ 방식 허브 TOP3 (자동매입·방문매입·무통장·카드·휴대폰·방문구매) — 1위는 색 카드, 2·3위는 연회색 카드 */
html body #main-content .top3-grid { gap: 12px !important; grid-template-columns: 1.5fr 1fr 1fr !important; }
html body #main-content .top3-card { padding: 20px !important; border: 0 !important; border-radius: 16px !important; background: var(--surface-2) !important; gap: 4px; }
html body #main-content .top3-card .t3-name { font-size: 15px !important; min-height: 0 !important; }
html body #main-content .top3-card .t3-rate { font-size: 28px !important; font-weight: 900 !important; letter-spacing: -0.03em; }
html body #main-content .top3-card .t3-shop { font-size: 12.5px !important; }
html body #main-content .top3-card:first-child { background: var(--accent) !important; }
html body #main-content .top3-card:first-child > * { color: var(--on-accent) !important; }
html body #main-content .top3-card:first-child .t3-rate { font-size: 40px !important; }
html body #main-content .top3-card:first-child .t3-name { font-size: 18px !important; }

/* ⑩ 방식 허브 상품권 목록(.gc-list) — 한 줄 목록을 2단 연회색 카드로 */
html body #main-content .gc-list { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
html body #main-content .gc-list > .gc-row { margin: 0 !important; padding: 14px 16px !important; border: 0 !important; border-radius: 12px !important; background: var(--surface-2) !important; box-shadow: none !important; }
html body #main-content .gc-list:has(> .gc-row > :nth-child(3)) { grid-template-columns: 1fr; }
html body #main-content .top3-card[href^="/buy/"]:first-child { background: var(--buy) !important; }

/* ⑪ 남은 카드·판 일괄 정리 (12-03 3차) — 흰 바탕에서 '테두리+그림자 흰 카드'가 떠 보이던 부품을 연회색 판으로. 테두리는 폭을 두고 색만 투명(배치가 밀리지 않게).
   검색창·선택 상자·단추·지도·광고는 건드리지 않습니다. 부품 목록은 35개 페이지를 1440px 에서 실측해 뽑았습니다. */
html body #main-content :is(
  .gt-entry-card, .tbl-wrap, .stat-table-wrap, .hgr-card, .gapsec-card, .lg-wrap, .calc-link-item, .gcalc-table-wrap, .gcalc-box, .ansbox, .rank-list, .cha-tw, .other-card,
  .pop-card, .gc-brief-card, .gct-row, .gc-tile, .tb-grid, .pf-grid, .howto, .trend-card, .area-hero, .hub-card, .hs-list, .upg-tw, .area-grid, .av-item, .rl-item,
  .gt-hp, .gt-deal, .gt-sell-link, .gt-table-wrap, .gt-brand, .gb-hot-a, .gbn, .gb-peer, .gb-stats, .gb-ms-wrap, .gb-table-wrap, .gb-chg, .bk-wrap, .gmi-tw, .gbs-brand,
  .article-card, .calc-card, .cc-tablewrap, .calc-bycard-item, .al-card, .bka-tw, .rate-list, .combo-item
) { box-shadow: none !important; border-color: transparent !important; background-color: var(--surface-2) !important; }
html body #main-content :is(.pop-card, .gc-tile, .hub-card, .gt-hp, .gt-deal, .gt-brand, .gbs-brand, .article-card, .other-card, .combo-item, .calc-bycard-item, .trend-card, .rl-item, .gct-row):hover { background-color: var(--surface-3) !important; }
/* 기프티콘 허브 머리 판 — 다른 페이지 머리 띠와 같은 연주황 */
html body #main-content > section.gt-hero { border: 0 !important; box-shadow: none !important; border-radius: 16px !important; background: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, var(--accent) 16%, var(--surface))) !important; }

/* ⑫ 카드고릴라 벤치마크 (12-03 4차, GS 캡처 9장) — 검정 분류 띠 · 1·2·3위 색 카드 · 검정 알약 단추 */
/* 분류 메뉴 = 검정 둥근 띠 ('전체 카드사' 띠) — 전체 시세표·상품권 목록·가이드 */
html body #main-content > :is(nav.cat-nav, nav.gc-cats) { margin: 12px 22px !important; padding: 14px 24px !important; border: 0 !important; border-radius: 12px !important; box-shadow: none !important; background: var(--ink) !important; position: static !important; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px !important; }
html body #main-content > :is(nav.cat-nav, nav.gc-cats) a { padding: 4px 0 !important; border: 0 !important; background: none !important; color: color-mix(in srgb, var(--surface) 72%, var(--ink)) !important; font-size: 13.5px; font-weight: 600; }
html body #main-content > :is(nav.cat-nav, nav.gc-cats) a:hover, html body #main-content > :is(nav.cat-nav, nav.gc-cats) a:is(.on, .active, [aria-current]) { color: var(--surface) !important; }
html body #main-content > :is(nav.cat-nav, nav.gc-cats) a :is(svg, .cc-ic) { opacity: .7; }
html body #main-content > :is(nav.cat-nav, nav.gc-cats) a * { color: inherit !important; }

/* 방식 허브 TOP3 = '카드사 인기순위' 색 카드 세 장 — 1위 주황(구매는 파랑)·2위 짙은 색·3위 갈색, 순위 표기는 테두리 알약 */
html body #main-content .top3-card { position: relative; min-height: 150px; padding-top: 52px !important; justify-content: flex-end; }
html body #main-content .top3-card:nth-child(2) { background: var(--ink) !important; }
html body #main-content .top3-card:nth-child(3) { background: color-mix(in srgb, var(--accent-dark) 38%, var(--ink-soft)) !important; }
html body #main-content .top3-card > * { color: var(--on-accent) !important; }
html body #main-content .top3-card:nth-child(2) > * { color: var(--surface) !important; }
html body #main-content .top3-card .t3-rank { position: absolute; left: 20px; top: 18px; padding: 2px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px !important; font-weight: 700; opacity: .9; }
html body #main-content .top3-card .t3-shop { opacity: .85; }

/* '더 보기' 줄 = 검정 알약 단추 (가운데 정렬, 폭은 글자만큼) */
html body #main-content :is(a.rd-more, a.hgr-more) { display: block; width: fit-content; min-width: 220px; margin: 12px auto 0 !important; padding: 11px 26px !important; border: 0 !important; border-radius: 999px !important; background: var(--ink) !important; color: var(--surface) !important; font-size: 13.5px !important; font-weight: 700; text-align: center; }

/* ⑬ 상품권 목록 묶음 타일 = '캐시백 이벤트' 타일 (12-03 5차) — 가운데 큰 로고 · 이름 · 주황 매입 값. 글·숫자·링크 그대로 */
html body #main-content .gc-grid > a.gc-tile { align-items: center !important; text-align: center; padding: 22px 12px 16px !important; border-radius: 16px !important; gap: 2px; }
html body #main-content .gc-grid > a.gc-tile .gc-tile-big { display: flex !important; flex: none; width: 60px; height: 60px; border-radius: 16px; overflow: hidden; margin: 0 auto 10px; }
html body #main-content .gc-grid > a.gc-tile .gc-tile-big img { display: block; }
html body #main-content .gc-grid > a.gc-tile .gc-tile-name { font-size: 14px !important; font-weight: 700; color: var(--ink); }
html body #main-content .gc-grid > a.gc-tile .gc-tile-rate { justify-content: center; align-items: baseline; gap: 4px; width: 100%; }
html body #main-content .gc-grid > a.gc-tile .gc-tile-rate:not(.buy) :is(.gc-tile-rate-lbl, .gc-tile-rate-num) { color: var(--accent-dark) !important; }
html body #main-content .gc-grid > a.gc-tile .gc-tile-rate:not(.buy) .gc-tile-rate-num { font-size: 20px !important; font-weight: 900; }
html body #main-content .gc-grid > a.gc-tile .gc-tile-meta { width: 100%; text-align: center; }
/* 묶음 제목 옆 '○○ 상품권 시세 →' = 연회색 알약 */
html body #main-content .group-title > a.group-more { height: auto; padding: 5px 12px !important; border: 0 !important; border-radius: 999px; background: var(--surface-3) !important; color: var(--ink-faint) !important; font-size: 13px; font-weight: 600; }
html body #main-content .gc-grid > a.gc-tile::after { display: none !important; }
html body #main-content .gc-grid > a.gc-tile { background-image: none !important; }
/* 가이드 목록의 분류 띠 — 알약 바탕을 걷고 글자만 밝게 */
html body #main-content > nav.cat-nav a.cat-badge { opacity: 1 !important; background: none !important; color: color-mix(in srgb, var(--surface) 78%, var(--ink)) !important; }
html body #main-content > nav.cat-nav a.cat-badge:is(:hover, .on, .active) { color: var(--surface) !important; }
/* 타일 구석의 작은 로고는 가운데 큰 로고와 겹쳐 PC 에서 숨깁니다. 구매·출처 줄도 가운데로 (12-03) */
html body #main-content .gc-grid > a.gc-tile .gc-tile-mark { display: none !important; }
html body #main-content .gc-grid > a.gc-tile :is(.gc-tile-rate.buy, .gc-tile-rate.is-none, .gc-tile-meta, .gc-tile-tail) { justify-content: center; text-align: center; width: 100%; }
