/* 16코드마스터 유형 가이드: 페이지 전용 CSS. 기존 서비스 스타일에 영향을 주지 않습니다. */
.tg-page { --tg-accent:#947af7; --tg-soft:#ece7ff; --tg-ink:#252134; --tg-warm:#fffaf3; color:var(--text); }
.tg-page * { box-sizing:border-box; }
.tg-container { max-width:1160px; width:min(calc(100% - 40px),1160px); margin-inline:auto; }
.tg-eyebrow { font-size:12px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; color:#cbbcff; margin:0 0 12px; }
.tg-hub-hero { padding:68px 0 28px; }
.tg-hub-hero__inner { display:flex; align-items:center; justify-content:space-between; gap:28px; }
.tg-hub-hero h1 { margin:0 0 14px; font-size:clamp(32px,4vw,46px); letter-spacing:-.045em; line-height:1.23; }
.tg-hub-hero p:not(.tg-eyebrow) { max-width:720px; color:#d6d4df; margin:0; font-size:16px; line-height:1.8; }
.tg-hub-hero__badge { flex:0 0 auto; display:grid; place-items:center; text-align:center; min-width:144px; min-height:144px; border-radius:36px; border:1px solid rgba(195,168,255,.3); background:radial-gradient(circle at 70% 20%,rgba(175,140,255,.27),transparent 65%),#201b30; color:#f8f5ff; }
.tg-hub-hero__badge strong { font-size:55px; line-height:1; }
.tg-hub-hero__badge span { display:block; font-size:13px; margin-top:5px; color:#d6cbf6; }
.tg-hub-section { padding:26px 0 60px; }
.tg-hub-toolbar { display:flex; gap:16px; align-items:end; justify-content:space-between; flex-wrap:wrap; margin-bottom:23px; }
.tg-hub-toolbar h2 { font-size:clamp(21px,2.4vw,27px); margin:0 0 4px; }
.tg-hub-toolbar p { margin:0; font-size:13px; color:#aaa5b9; }
.tg-filter { display:flex; flex-wrap:wrap; gap:7px; }
.tg-filter button { border:1px solid rgba(255,255,255,.21); background:rgba(255,255,255,.05); color:#d7d4de; min-width:45px; border-radius:99px; padding:9px 13px; font:inherit; font-size:12px; font-weight:750; cursor:pointer; }
.tg-filter button:hover,.tg-filter button[aria-pressed=true] { color:#171322; background:#d8ceff; border-color:#d8ceff; }
.tg-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.tg-tile { display:flex; flex-direction:column; min-width:0; border:1px solid rgba(255,255,255,.13); border-radius:23px; overflow:hidden; background:#17171b; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.tg-tile:hover,.tg-tile:focus-visible { transform:translateY(-4px); border-color:var(--tg-accent); box-shadow:0 18px 36px rgba(0,0,0,.25); outline:none; }
.tg-tile[hidden] { display:none!important; }
.tg-tile__image { display:block; background:var(--tg-soft); overflow:hidden; aspect-ratio:1/1; }
.tg-tile__image img { width:100%; height:100%; object-fit:cover; }
.tg-tile__body { display:flex; flex:1; flex-direction:column; gap:5px; padding:16px 17px 18px; }
.tg-tile__top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.tg-tile__type { font-size:23px; letter-spacing:-.01em; font-weight:900; line-height:1.1; }
.tg-tile__group { font-size:11px; font-weight:800; border-radius:99px; padding:3px 8px; background:var(--tg-soft); color:var(--tg-ink); }
.tg-tile__role { font-size:14px; font-weight:750; color:#d0ccd9; }
.tg-tile__desc { font-size:12px; color:#a8a4b1; line-height:1.65; margin:2px 0 0; }
.tg-tile__link { font-size:12px; color:#e4dafd; font-weight:750; margin-top:auto; padding-top:8px; }
.tg-tile--ST { --tg-accent:#6c9fff; --tg-soft:#dceaff; --tg-ink:#234f9f; }
.tg-tile--SF { --tg-accent:#ff8291; --tg-soft:#ffe0e5; --tg-ink:#aa3045; }
.tg-tile--NF { --tg-accent:#a0de73; --tg-soft:#e2f6d7; --tg-ink:#3c7928; }
.tg-tile--NT { --tg-accent:#ad89f4; --tg-soft:#ede3ff; --tg-ink:#634091; }
.tg-note { border:1px solid rgba(255,255,255,.13); background:rgba(255,255,255,.035); border-radius:22px; padding:25px 28px; margin:26px 0 0; }
.tg-note h2 { font-size:18px; margin:0 0 8px; }
.tg-note p { color:#bcb9c6; font-size:14px; margin:0; }
.tg-cta { display:flex; gap:20px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin:32px 0 80px; padding:28px 32px; border-radius:25px; background:linear-gradient(112deg,#30265b,#5543ab); border:1px solid rgba(221,209,255,.25); }
.tg-cta h2 { margin:0 0 5px; font-size:21px; }
.tg-cta p { margin:0; color:#e0daf7; font-size:14px; }
.tg-cta a { display:inline-flex; align-items:center; justify-content:center; border-radius:99px; padding:13px 22px; background:#ffffff; color:#29203a; font-weight:800; font-size:14px; flex:0 0 auto; }
.tg-cta a:hover { background:#eae2ff; }
/* 상세 가이드 공통 */
.tg-detail { --tg-accent:#9777f4; --tg-soft:#eae4ff; --tg-ink:#232034; --tg-muted:#5c5867; }
.tg-detail--ST { --tg-accent:#3b76d9; --tg-soft:#dceaff; --tg-ink:#193d7e; --tg-muted:#536079; }
.tg-detail--SF { --tg-accent:#d64e61; --tg-soft:#ffe0e5; --tg-ink:#8f283f; --tg-muted:#7d5056; }
.tg-detail--NF { --tg-accent:#5b9e3b; --tg-soft:#e2f6d7; --tg-ink:#285b2c; --tg-muted:#4d6852; }
.tg-detail--NT { --tg-accent:#8962cf; --tg-soft:#ede3ff; --tg-ink:#50317c; --tg-muted:#685c7e; }
.tg-breadcrumb { padding:24px 0 17px; display:flex; align-items:center; flex-wrap:wrap; gap:7px; color:#b8b1c2; font-size:12px; }
.tg-breadcrumb a { color:#ded7ee; }
.tg-breadcrumb a:hover { text-decoration:underline; }
.tg-hero { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr); gap:30px; align-items:center; padding:32px 40px; color:#272332; border-radius:28px; background:linear-gradient(108deg,#fffdfc 4%,var(--tg-soft) 100%); box-shadow:0 20px 50px rgba(0,0,0,.12); overflow:hidden; }
.tg-hero__copy { min-width:0; }
.tg-hero__overline { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0 0 18px; }
.tg-hero__code { font-size:clamp(36px,4.4vw,58px); line-height:1; letter-spacing:-.04em; font-weight:900; color:var(--tg-ink); }
.tg-hero__role { font-size:15px; border:1px solid color-mix(in srgb,var(--tg-accent),white 48%); border-radius:99px; padding:6px 13px; color:var(--tg-ink); font-weight:750; }
.tg-hero__group { font-size:12px; font-weight:850; letter-spacing:.05em; color:var(--tg-ink); }
.tg-hero h1 { font-size:clamp(26px,3vw,38px); margin:0 0 16px; line-height:1.35; letter-spacing:-.045em; }
.tg-hero__copy>p { margin:0; color:#4b4852; font-size:15px; line-height:1.9; max-width:580px; }
.tg-hero__picture { width:min(100%,338px); margin:auto; aspect-ratio:1; background:rgba(255,255,255,.48); border-radius:28px; overflow:hidden; box-shadow:0 12px 30px rgba(0,0,0,.08); }
.tg-hero__picture img { width:100%; height:100%; object-fit:cover; }
.tg-hero__taglist { display:flex; flex-wrap:wrap; gap:7px; margin-top:22px; }
.tg-hero__taglist span { font-size:12px; color:var(--tg-ink); border:1px solid rgba(0,0,0,.13); border-radius:99px; background:rgba(255,255,255,.65); padding:6px 10px; font-weight:720; }
.tg-tabs-area { margin:29px auto 20px; }
.tg-tablist { display:flex; gap:8px; padding:6px; border-radius:18px; background:#202026; border:1px solid rgba(255,255,255,.13); width:fit-content; min-width:min(100%,440px); }
.tg-tab { flex:1; min-width:160px; border:none; border-radius:13px; background:transparent; color:#bebbc6; padding:14px 19px; font:inherit; font-size:15px; font-weight:850; cursor:pointer; }
.tg-tab:hover { background:rgba(255,255,255,.07); }
.tg-tab[aria-selected=true] { color:#fff; background:var(--tg-accent); }
.tg-tab:focus-visible { outline:3px solid #ffffff; outline-offset:3px; }
.tg-panel { padding:0 0 35px; }
.tg-panel[hidden] { display:none!important; }
.tg-panel-title { margin:19px 0 9px; font-size:clamp(23px,2.7vw,30px); letter-spacing:-.035em; }
.tg-panel-lead { max-width:850px; color:#c3becb; margin:0 0 23px; line-height:1.85; font-size:15px; }
.tg-keywords { display:flex; flex-wrap:wrap; gap:8px; margin:15px 0 23px; }
.tg-keywords span { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.13); border-radius:99px; color:#e8e5ed; padding:8px 12px; font-size:13px; font-weight:700; }
.tg-story { border-left:4px solid var(--tg-accent); padding:8px 0 8px 21px; margin:10px 0 28px; }
.tg-story p { color:#dedbe4; margin:0 0 12px; font-size:15px; line-height:1.9; }
.tg-story p:last-child { margin-bottom:0; }
.tg-grid-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
.tg-white-card { border:1px solid rgba(255,255,255,.11); border-radius:20px; background:#1b1b20; padding:22px 23px; }
.tg-white-card h3 { margin:0 0 13px; font-size:18px; letter-spacing:-.02em; display:flex; gap:8px; align-items:center; }
.tg-white-card h3::before { content:''; width:8px; height:8px; border-radius:99px; background:var(--tg-accent); }
.tg-white-card p { margin:0; color:#c7c2cf; line-height:1.85; font-size:14px; }
.tg-white-card ul { margin:0; padding-left:19px; color:#d1cdd7; font-size:14px; line-height:1.95; }
.tg-white-card li+li { margin-top:8px; }
.tg-white-card li::marker { color:var(--tg-accent); }
.tg-panel-feature { border:1px solid color-mix(in srgb,var(--tg-accent),transparent 65%); border-radius:20px; background:color-mix(in srgb,var(--tg-accent),transparent 90%); padding:22px 24px; margin-top:18px; }
.tg-panel-feature h3 { margin:0 0 9px; color:#fff; font-size:17px; }
.tg-panel-feature p { margin:0; font-size:14px; color:#e2deeb; line-height:1.85; }
.tg-panel-feature a { color:#e5d9ff; font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.tg-mini-label { color:#c4b8ec; font-size:12px; font-weight:850; letter-spacing:.08em; margin-bottom:6px; }
.tg-work-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.tg-work-cards article { border-radius:20px; border:1px solid rgba(255,255,255,.12); background:#19191e; padding:22px; }
.tg-work-cards article h3 { margin:0 0 9px; font-size:17px; }
.tg-work-cards article p { margin:0; color:#cac6d1; font-size:14px; line-height:1.9; }
.tg-work-cards .tg-work-num { display:block; color:var(--tg-accent); font-size:12px; font-weight:850; margin-bottom:10px; }
.tg-work-bottom { display:grid; grid-template-columns:1fr 1fr; gap:17px; margin-top:18px; }
.tg-practical { border-radius:20px; border:1px solid rgba(255,255,255,.12); padding:22px; background:#1c1b20; }
.tg-practical h3 { margin:0 0 14px; font-size:17px; }
.tg-practical ol { margin:0; padding-left:21px; color:#d3d0db; font-size:14px; line-height:1.85; }
.tg-practical li +li { margin-top:11px; }
.tg-scenario { border:1px solid color-mix(in srgb,var(--tg-accent),transparent 65%); border-radius:20px; padding:22px; background:color-mix(in srgb,var(--tg-accent),transparent 90%); }
.tg-scenario h3 { margin:0 0 11px; font-size:17px; }
.tg-scenario p { margin:0; font-size:14px; color:#e5e1e9; line-height:1.85; }
.tg-guide-footer { padding:23px 0 75px; border-top:1px solid rgba(255,255,255,.12); }
.tg-sources { font-size:12px; color:#bab5c4; line-height:1.8; }
.tg-sources a { text-decoration:underline; color:#dad4f8; text-underline-offset:3px; }
.tg-sources a:hover { color:white; }
.tg-bottom-nav { display:flex; justify-content:space-between; gap:12px; margin-top:25px; flex-wrap:wrap; }
.tg-bottom-nav a { border-radius:13px; padding:11px 14px; border:1px solid rgba(255,255,255,.17); background:#1a1a20; font-size:13px; font-weight:800; }
.tg-bottom-nav a:hover { background:#272331; }
.tg-accessibility-note { font-size:13px; color:#aaa4b8; margin-top:12px; }
@media (max-width: 900px) { .tg-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .tg-hero{ grid-template-columns:1.2fr .8fr; padding:27px; gap:16px; } .tg-hub-hero__badge{ min-width:100px; min-height:100px; border-radius:23px; } .tg-hub-hero__badge strong {font-size:42px;} }
@media (max-width: 650px) { .tg-container { width:min(calc(100% - 26px),1160px); } .tg-hub-hero { padding:40px 0 16px; } .tg-hub-hero__badge { display:none; } .tg-hub-hero p:not(.tg-eyebrow){font-size:14px;} .tg-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .tg-tile { border-radius:16px; } .tg-tile__body { padding:11px 11px 13px; } .tg-tile__type {font-size:19px;} .tg-tile__role {font-size:12px;} .tg-tile__desc {font-size:11px; line-height:1.6;} .tg-tile__link {font-size:11px;} .tg-hub-toolbar {align-items:start;} .tg-filter button {min-width:41px; padding:8px 12px;} .tg-note {padding:19px;} .tg-cta { margin-bottom:60px; padding:22px; } .tg-cta a {width:100%;} .tg-breadcrumb {padding:16px 0 13px;} .tg-hero {display:flex; flex-direction:column-reverse; padding:18px 19px 22px; gap:14px; border-radius:23px;} .tg-hero__picture {width:min(70%,220px); border-radius:20px;} .tg-hero__copy{width:100%;} .tg-hero__code {font-size:36px;} .tg-hero h1{font-size:24px; margin-bottom:11px;} .tg-hero__copy>p {font-size:14px; line-height:1.75;} .tg-hero__overline {margin-bottom:12px;} .tg-hero__taglist {margin-top:13px;} .tg-tabs-area{margin-top:18px;} .tg-tablist {width:100%;} .tg-tab {min-width:0; padding:12px 8px; font-size:14px;} .tg-panel-title{font-size:23px;} .tg-panel-lead {font-size:14px;} .tg-grid-two,.tg-work-cards,.tg-work-bottom {grid-template-columns:1fr; gap:12px;} .tg-white-card,.tg-work-cards article,.tg-practical,.tg-scenario {padding:20px;} .tg-story {padding-left:15px;} .tg-bottom-nav a {flex:1; text-align:center;} }
@media (prefers-reduced-motion: reduce) { .tg-tile{transition:none;} }

/* 2026-11-09: 상세페이지 복귀 링크 — 기존 16유형 콘텐츠 및 탭은 유지 */
.tg-back-nav { padding:20px 0 15px; }
.tg-back-link { display:inline-flex; align-items:center; gap:10px; min-height:46px; padding:9px 15px; border:1px solid rgba(255,255,255,.19); border-radius:12px; background:rgba(255,255,255,.055); color:#f4f0ff; font-size:16px; line-height:1.35; font-weight:750; text-decoration:none; transition:background .15s ease,border-color .15s ease; }
.tg-back-link:hover { background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.42); text-decoration:none; }
.tg-back-link:focus-visible { outline:3px solid #c4b0ff; outline-offset:3px; }
.tg-back-arrow { font-size:23px; font-weight:650; line-height:1; }
@media (max-width:650px) { .tg-back-nav { padding:13px 0 12px; } .tg-back-link { font-size:15px; min-height:45px; padding:9px 12px; } }
@media (prefers-reduced-motion:reduce) { .tg-back-link { transition:none; } }
