/* TextCortex inference pages. Uses the site's shared design tokens and chrome. */
.ig-page { overflow-x: clip; }
.ig-calculator__form[hidden] { display: none !important; }
.ig-page .ig-visual { width: 100%; min-height: 0; display: block; }
.ig-page .ig-final { min-height: 0; display: block; }
.ig-page .ig-hero h1, .ig-page .ig-panel h3 { color: var(--tc-ink); }
.ig-page :is(h2, h3) { overflow-wrap: break-word; }
html[lang="ko"] .ig-page :is(h1, h2, h3, p, li) { word-break: keep-all; overflow-wrap: break-word; }
.ig-page .ig-skip { position: fixed; top: 12px; left: 16px; z-index: 1100; padding: 12px 20px; background: var(--tc-btn-bg); color: var(--tc-btn-fg); border-radius: 12px; transform: translateY(-160%); }
.ig-page .ig-skip:focus { transform: translateY(0); }
.ig-page :is(a, button, input, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--tc-violet-2); outline-offset: 5px; }
.ig-page [id] { scroll-margin-top: 135px; }
.ig-page .ig-hero { padding: 132px 0 76px; background: radial-gradient(ellipse at 85% 25%, rgba(124,58,237,.12), transparent 52%); }
.ig-page .ig-hero .tc-crumbs { margin-bottom: 46px; }
.ig-page .ig-hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px,4vw,70px); align-items: center; }
.ig-page .ig-hero__copy { min-width: 0; }
.ig-page .ig-hero .tc-eyebrow { display: flex; align-items: center; gap: 10px; letter-spacing: .1em; }
.ig-page .ig-hero h1 { font-size: clamp(38px,4.2vw,64px); font-weight: 500; letter-spacing: -.048em; line-height: 1.07; margin: 23px 0 27px; text-wrap: balance; overflow-wrap: break-word; }
.ig-page .ig-hero .tc-lead { font-size: clamp(17px,1.6vw,20px); line-height: 1.65; max-width: 580px; }
.ig-page .ig-hero--article h1 { font-size: clamp(34px,3.5vw,52px); }
.ig-page .ig-article-cover { margin: 0; min-width: 0; width: 100%; aspect-ratio: 1200 / 630; overflow: hidden; border: 1px solid var(--tc-border-2); border-radius: 22px; }
.ig-page .ig-article-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.ig-page .ig-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 14px #a78bfa; }
.ig-page .ig-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.ig-page .ig-actions .tc-btn { flex: 0 1 auto; max-width: 100%; justify-content: center; text-align: center; white-space: normal; }
.ig-page .ig-visual { position: relative; isolation: isolate; container-type: inline-size; margin: 0; min-width: 0; border: 1px solid rgba(200,187,255,.16); border-radius: 28px; overflow: hidden; background: #090711; box-shadow: 0 32px 100px -45px #7440da55, inset 0 1px 0 #ffffff12; color: #fff; }
.ig-page .ig-visual__aurora { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 76% 6%, #7644e42e, transparent 50%), radial-gradient(ellipse at 48% 55%, #7644e422, transparent 62%), radial-gradient(ellipse at 12% 20%, #357c9520, transparent 45%); }
.ig-page .ig-visual__top { position: relative; z-index: 3; display: flex; align-items: center; gap: 9px; min-height: 66px; padding: 15px 24px; font-size: 11px; letter-spacing: .06em; color: #c4bad7; }
.ig-page .ig-visual__top > span:nth-child(2) { min-width: 0; }
.ig-page .ig-model-flow { position: relative; width: calc(100% - 32px); min-width: 0; aspect-ratio: 1.3; min-height: 270px; margin: 0 16px; }
.ig-page .ig-model-flow__halo { position: absolute; width: 49%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; border: 1px solid #b599ff0c; background: radial-gradient(circle, #a381ff13, #a381ff04 53%, transparent 70%); }
.ig-page .ig-model-flow__halo::before, .ig-page .ig-model-flow__halo::after { content: ""; position: absolute; inset: 16%; border: 1px solid #c4b5fd0c; border-radius: 50%; }
.ig-page .ig-model-flow__halo::after { inset: -18%; border-style: dashed; border-color: #b599ff0a; }
.ig-page .ig-model-flow__paths, .ig-page .ig-model-flow canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ig-page .ig-model-flow__paths path { fill: none; stroke: #b499ed45; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.ig-page .ig-model { position: absolute; z-index: 2; left: var(--x); top: var(--y); transform: translate(-50%,-50%); display: flex; align-items: center; gap: clamp(4px,1.4cqw,8px); width: 29%; max-width: 146px; min-width: 0; padding: clamp(10px,2.6cqw,15px) clamp(6px,1.8cqw,10px); border: 1px solid color-mix(in srgb, var(--model-color) 22%, #ffffff05); border-radius: 16px; background: linear-gradient(135deg,#ffffff09,transparent 75%), #15111f; box-shadow: inset 0 1px 0 #ffffff0c, 0 12px 30px -12px #0009, 0 0 calc(8px + var(--ping,0) * 14px) color-mix(in srgb,var(--model-color) calc(var(--ping,0) * 14%),transparent); }
.ig-page .ig-model__icon { display: grid; place-items: center; flex: 0 0 clamp(18px,5.2cqw,28px); height: clamp(18px,5.2cqw,28px); border-radius: 10px; background: color-mix(in srgb,var(--model-color) 9%,transparent); }
.ig-page .ig-model__icon img { display: block; width: 72%; height: 72%; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.ig-page .ig-model__name { min-width: 0; color: #faf8ff; font-size: clamp(10px,2.5cqw,14px); font-weight: 500; line-height: 1.3; white-space: nowrap; }
.ig-page .ig-model__version { display: block; margin-top: 5px; color: var(--model-color); font-family: ui-monospace, SFMono-Regular, monospace; font-size: clamp(8px,2cqw,11px); line-height: 1; font-weight: 400; }
.ig-page .ig-model__port { position: absolute; bottom: -3px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--model-color); box-shadow: 0 0 10px var(--model-color); }
.ig-page .ig-model[data-side="bottom"] .ig-model__port { top: -3px; bottom: auto; }
.ig-page .ig-model[data-side="left"] .ig-model__port { top: calc(50% - 2px); left: auto; right: 0; bottom: auto; }
.ig-page .ig-model[data-side="right"] .ig-model__port { top: calc(50% - 2px); left: 0; bottom: auto; }
.ig-page .ig-model[data-side="left"], .ig-page .ig-model[data-side="right"] { width: 30%; }
@container (max-width: 350px) { .ig-page .ig-model[data-side="right"] .ig-model__icon, .ig-page .ig-model[data-side="top"] .ig-model__icon { display: none; } }
.ig-page .ig-model-flow__core { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: clamp(68px,18cqw,96px); aspect-ratio: 1; border-radius: 28%; border: 1px solid #c4a7ff70; background: linear-gradient(150deg,#7d58b9b3,#291446 64%,#140d24); box-shadow: inset 0 1px 0 #ffffff45, inset 0 -4px 12px #1a082a88, 0 0 0 6px #a78bfa08, 0 0 calc(42px + var(--energy,0) * 25px) #9f6aff42, 0 18px 40px -16px #000; }
.ig-page .ig-model-flow__core-light { position: absolute; inset: 9%; border-radius: 25%; border-top: 1px solid #ffffff16; pointer-events: none; }
.ig-page .ig-model-flow__core img { position: relative; width: 61%; height: auto; filter: brightness(0) invert(1); opacity: .96; }
.ig-page .ig-model-flow__wordmark { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); color: #f2eaff; font-size: clamp(12px,2.8cqw,15px); font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.ig-page .ig-visual figcaption { position: relative; padding: 16px 26px 26px; margin: 0; color: #a89abf; font-size: 12px; text-align: center; line-height: 1.65; text-wrap: balance; }
.ig-page .ig-motion { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 0; margin-left: auto; border: 1px solid #c4b5fd24; border-radius: 50%; background: #ffffff04; color: #bdaed6; cursor: pointer; }
.ig-page .ig-motion[hidden] { display: none; }
.ig-page .ig-motion:hover { background: #a78bfa18; color: #fff; }
.ig-page .ig-motion__play, .ig-page .ig-motion[aria-pressed="true"] .ig-motion__pause { display: none; }
.ig-page .ig-motion[aria-pressed="true"] .ig-motion__play { display: block; }
.ig-page .ig-byline { display: flex; gap: 12px; align-items: center; margin-top: 28px; font-size: 13px; }
.ig-page .ig-byline p { color: var(--tc-muted); font-size: 12px; margin: 4px 0 0; }
.ig-page .ig-author { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border: 1px solid var(--tc-border-2); background: var(--tc-surface-2); border-radius: 50%; font-size: 12px; color: var(--tc-violet-2); }
.ig-page .ig-subnav { position: sticky; top: 76px; z-index: 12; border-block: 1px solid var(--tc-border); background: rgba(var(--tc-bg-rgb),.94); backdrop-filter: blur(18px); }
.ig-page .ig-subnav nav { display: flex; gap: 32px; overflow-x: auto; padding-block: 18px; scrollbar-width: thin; }
.ig-page .ig-subnav a { flex-shrink: 0; color: var(--tc-muted); font-size: 12px; text-decoration: none; }
.ig-page .ig-subnav a:hover { color: var(--tc-ink); }
.ig-page .ig-overview__text { max-width: 790px; margin-bottom: 40px; }
.ig-page .ig-overview__text .tc-h2 { margin: 14px 0 22px; }
.ig-page .ig-overview__text .tc-lead { font-size: 18px; }
.ig-page .ig-features, .ig-page .ig-related { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.ig-page .ig-panel { border: 1px solid var(--tc-border-2); border-radius: 22px; padding: 28px; background: linear-gradient(145deg, var(--tc-surface-2), var(--tc-surface)); min-width: 0; }
.ig-page .ig-feature-number { display: flex; justify-content: space-between; color: var(--tc-violet-2); font-family: ui-monospace, monospace; font-size: 12px; margin-bottom: 38px; }
.ig-page .ig-feature-number span { font-size: 21px; }
.ig-page .ig-panel h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 14px; }
.ig-page .ig-panel p { font-size: 14px; line-height: 1.75; color: var(--tc-muted); margin: 0; }
.ig-page .ig-table-wrap { overflow-x: auto; border: 1px solid var(--tc-border-2); border-radius: 20px; }
.ig-page .ig-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; table-layout: fixed; min-width: 660px; }
.ig-page .ig-table th, .ig-page .ig-table td { padding: 24px; border-bottom: 1px solid var(--tc-border); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.ig-page .ig-table th { font-weight: 500; color: var(--tc-text); }
.ig-page .ig-table td { color: var(--tc-muted); }
.ig-page .ig-table tr > :nth-child(2) { background: rgba(139,92,246,.07); color: var(--tc-text-2); }
.ig-page .ig-table thead th:nth-child(2) { color: var(--tc-violet-2); }
.ig-page .ig-table tbody tr:last-child > * { border-bottom: 0; }
.ig-page .ig-details { display: grid; grid-template-columns: minmax(180px,240px) minmax(0,780px); gap: 70px; justify-content: space-between; align-items: start; }
.ig-page .ig-toc { position: sticky; top: 165px; }
.ig-page .ig-toc nav { display: flex; flex-direction: column; gap: 15px; padding: 18px 0 24px; }
.ig-page .ig-toc nav a { text-decoration: none; color: var(--tc-muted); font-size: 13px; line-height: 1.5; border-left: 1px solid var(--tc-border-2); padding-left: 15px; }
.ig-page .ig-toc nav a:hover { border-color: var(--tc-violet); color: var(--tc-ink); }
.ig-page .ig-toc__cta { color: var(--tc-violet-2); font-size: 13px; line-height: 1.5; text-decoration: none; }
.ig-page .ig-prose { max-width: none; min-width: 0; }
.ig-page .ig-prose > :first-child { margin-top: 0; }
.ig-page .ig-prose h2 { font-size: clamp(26px,2.3vw,34px); letter-spacing: -.03em; margin-top: 56px; }
.ig-page .ig-prose :is(p,li) { line-height: 1.8; font-size: 16px; overflow-wrap: anywhere; }
.ig-page .ig-prose pre { max-width: 100%; overflow-x: auto; border: 1px solid var(--tc-border-2); border-radius: 16px; padding: 24px; background: var(--tc-bg-2); font-size: 12px; line-height: 1.8; color: var(--tc-text-2); }
.ig-page .ig-prose pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
.ig-page .ig-prose blockquote { margin: 30px 0; padding: 18px 24px; border-left: 2px solid var(--tc-violet); background: var(--tc-surface); border-radius: 0 14px 14px 0; }
.ig-page .ig-prose .ig-callout { border: 1px solid var(--tc-border-2); border-radius: 16px; background: rgba(139,92,246,.06); padding: 24px; margin: 30px 0; }
.ig-page .ig-prose .ig-callout p:last-child { margin-bottom: 0; }
.ig-page .ig-prose table { display: block; overflow-x: auto; max-width: 100%; font-size: 14px; }
.ig-page .ig-prose th, .ig-page .ig-prose td { padding: 14px 18px; border: 1px solid var(--tc-border); min-width: 140px; }
.ig-page .ig-related a { position: relative; text-decoration: none; color: var(--tc-text); transition: border-color .2s, transform .2s; padding-bottom: 62px; }
.ig-page .ig-related a:hover { border-color: var(--tc-violet-2); transform: translateY(-4px); }
.ig-page .ig-related .tc-eyebrow { font-size: 10px; display: block; margin-bottom: 22px; }
.ig-page .ig-related h3 { font-size: 20px; text-wrap: balance; }
.ig-page .ig-related__arrow { position: absolute; bottom: 22px; right: 26px; font-size: 23px; color: var(--tc-violet-2); }
.ig-page .ig-final { position: relative; isolation: isolate; overflow: hidden; padding: clamp(32px,6vw,76px); text-align: center; border: 1px solid rgba(196,181,253,.2); border-radius: 30px; background: #0b0717; }
.ig-page .ig-final .tc-h2 { max-width: 760px; margin: 20px auto; text-wrap: balance; }
.ig-page .ig-final .tc-lead { max-width: 600px; margin: auto; }
.ig-page .ig-final .ig-actions { justify-content: center; }
.ig-page .ig-final__orb { position: absolute; z-index: -1; width: 850px; height: 600px; border-radius: 50%; left: calc(50% - 425px); top: 30%; background: radial-gradient(ellipse, rgba(124,58,237,.3), transparent 65%); }
.ig-page .ig-sources { padding-bottom: 70px; font-size: 12px; color: var(--tc-muted); }
.ig-page .ig-sources h2 { font-size: 13px; font-weight: 500; }
.ig-page .ig-sources ul { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; padding: 0; margin: 18px 0 0; }
.ig-page .ig-sources a { color: var(--tc-muted); text-underline-offset: 4px; }
.ig-page .ig-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ig-page .ig-small { color: var(--tc-muted); font-size: 12px; line-height: 1.7; margin-top: 18px; }
.ig-page .ig-muted { color: var(--tc-muted); line-height: 1.7; }
.ig-page .ig-calculator { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px 50px; padding: clamp(24px,5vw,52px); }
.ig-page .ig-calculator .tc-h2 { font-size: 34px; margin: 12px 0 20px; }
.ig-page .ig-calculator__form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; min-width: 0; }
.ig-page .ig-calculator label { display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--tc-text-2); font-size: 12px; line-height: 1.4; }
.ig-page .ig-calculator :is(input,select) { box-sizing: border-box; width: 100%; min-width: 0; height: 48px; border: 1px solid var(--tc-border-2); border-radius: 10px; padding: 10px 12px; background: var(--tc-bg-2); color: var(--tc-text); font: inherit; font-size: 15px; }
.ig-page .ig-calculator [aria-invalid="true"] { border-color: #ed7171; }
.ig-page .ig-calculator button { align-self: end; min-height: 48px; white-space: normal; }
.ig-page .ig-calculator__result { grid-column: 1 / -1; padding: 26px 0; border-block: 1px solid var(--tc-border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 110px; }
.ig-page .ig-calculator__result > span { font-size: 14px; color: var(--tc-muted); }
.ig-page .ig-calculator output { max-width: 100%; color: var(--tc-violet-2); font-size: clamp(18px,3vw,30px); line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ig-page .ig-calculator > .ig-small, .ig-page .ig-calculator > noscript { grid-column: 1 / -1; margin: 0; }
@media (max-width: 991px) {
  .ig-page .ig-hero__grid { gap: 28px; grid-template-columns: 1fr 0.85fr; }
  .ig-page .ig-hero { padding-top: 115px; }
  .ig-page .ig-details { gap: 34px; grid-template-columns: 180px minmax(0,1fr); }
  .ig-page .ig-panel { padding: 22px; }
  .ig-page .ig-panel h3 { font-size: 19px; }
  .ig-page .ig-subnav { top: 68px; }
  .ig-page .ig-calculator { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .ig-page .ig-hero { padding: 105px 0 44px; }
  .ig-page .ig-hero .tc-crumbs { margin-bottom: 28px; }
  .ig-page .ig-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .ig-page .ig-visual { width: 100%; max-width: 520px; margin-inline: auto; }
  .ig-page .ig-features, .ig-page .ig-related { grid-template-columns: 1fr; }
  .ig-page .ig-feature-number { margin-bottom: 22px; }
  .ig-page .ig-details { grid-template-columns: 1fr; gap: 32px; }
  .ig-page .ig-toc { position: static; padding: 24px; border: 1px solid var(--tc-border); border-radius: 18px; }
  .ig-page .ig-toc nav { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .ig-page .ig-subnav nav { gap: 24px; padding-block: 16px; }
  .ig-page .ig-overview__text .tc-lead { font-size: 16px; }
  .ig-page .ig-related a { min-height: 180px; }
  .ig-page .ig-calculator__form { gap: 18px 12px; }
  .ig-page .ig-sources ul { display: grid; gap: 14px; }
}
@media (max-width: 479px) {
  .ig-page .tc-nav__inner { gap: 12px; }
  .ig-page .tc-nav__logo { flex: 0 0 92px; }
  .ig-page .tc-nav__logo img { width: 92px; height: auto; }
  .ig-page .tc-nav__actions { flex: 1; min-width: 0; justify-content: flex-end; gap: 6px; }
  .ig-page .tc-nav__actions .tc-theme { flex: 0 0 32px; width: 32px; height: 32px; }
  .ig-page .tc-nav__actions .tc-nav__burger { flex: 0 0 36px; width: 36px; height: 36px; }
  .ig-page .tc-nav__actions .tc-btn { min-width: 0; max-width: 140px; height: auto; min-height: 38px; padding: 7px 10px; font-size: 12px; line-height: 1.2; white-space: normal; text-align: center; }
}
@media (max-width: 380px) {
  .ig-page .ig-hero h1 { font-size: 35px; }
  .ig-page .ig-calculator__form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ig-page *, .ig-page *::before, .ig-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .ig-page [data-reveal] { opacity: 1 !important; transform: none !important; }
}
