/* SL:IT — shared sub-page overrides (matches /kr/ home Webflow components) */

/* Mono palette override — neutralizes letsur mint to black/gray/white */
:root {
  --primary-green: #141414 !important;
  --point-green: #141414 !important;
  --green-1: #ededed !important;
  --light-green: #ededed !important;
}

.heading-2.gradient,
.heading-500.gradient,
.heading-600.gradient,
.gradient-text {
  background-image: none !important;
  -webkit-text-fill-color: #141414 !important;
  color: #141414 !important;
}

.green,
.green.green-color,
.insight-item-category {
  color: #141414 !important;
  -webkit-text-stroke-color: #141414 !important;
}

.customer-label {
  color: #141414 !important;
  background-color: #ededed !important;
}

.section.green-bg {
  background-color: #141414 !important;
}

/* Mono roadmap — match home (kr/index.html) inline overrides */
.roadmap-item.n-1 { background-color: #f8f8f8 !important; }
.roadmap-item.n-2 { background-color: #dddde0 !important; }
.roadmap-item.n-3 { background-color: #141414 !important; }
.roadmap-item.n-3 .title-300,
.roadmap-item.n-3 .p3 { color: #ffffff !important; }

/* Nav mobile tweaks — match home */
@media screen and (min-width: 992px) {
  .nav-menu-label { color: #141414 !important; }
}
@media screen and (max-width: 991px) {
  .navbar { background: transparent !important; }
  .nav-container { background: transparent !important; }
  .navbar.nav-open { background: #111111 !important; }
  .navbar.nav-open .nav-container { background: #111111 !important; }
  .nav-menu.w-nav-menu {
    background: #111111 !important;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: none !important;
  }
  .nav-menu.w-nav-menu .nav-link-wrap { background: #111111 !important; }
  .nav-menu.w-nav-menu .nav-1depth-link {
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-menu.w-nav-menu .nav-1depth-link:last-child { border-bottom: 0; }
  .nav-menu.w-nav-menu .nav-menu-label,
  .nav-menu.w-nav-menu .nav-mw-arrow { color: #ffffff !important; }
  .menu-line { background-color: #141414 !important; }
  .menu-button.w--open .menu-line { background-color: #ffffff !important; }
}

/* Sub-page hero — textured background (backre.png) with gray fallback */
.slit-hero {
  background-color: #f0f0f0;
  background-image: url(/backre.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 180px 0 100px;
  position: relative;
}
.slit-hero .w-container { max-width: 1216px; }
.slit-hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #141414;
  background: #ffffff;
  padding: 6px 14px;
  font-weight: 600;
  border-radius: 2px;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.slit-hero-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.15;
  color: #141414;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.slit-hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  color: #333;
  max-width: 820px;
  margin: 0;
}
@media screen and (max-width: 767px) {
  .slit-hero { padding: 140px 0 72px; }
}

/* 4-column variant of Webflow's insight-collection-list for services.
   Use minmax(0, 1fr) so non-breaking tokens (e.g. "React·Next.js·Supabase·OpenAI") don't blow out columns. */
.insight-collection-list.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media screen and (max-width: 991px) {
  .insight-collection-list.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 600px) {
  .insight-collection-list.cols-4 { grid-template-columns: 1fr; }
}

/* Image-wrap placeholder variants (used when project has no photo) */
.insight-item-image-wrap.slit-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  aspect-ratio: 1.5;
}
.insight-item-image-wrap.slit-ph .slit-ph-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #141414;
  text-align: center;
  line-height: 1.15;
}
.insight-item-image-wrap.slit-ph .slit-ph-sub {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(20,20,20,.55);
  margin-top: 8px;
}
.slit-ph-1 { background: #f0f0f0; }
.slit-ph-2 { background: #e0e0e0; }
.slit-ph-3 { background: #cccccc; }
.slit-ph-4 { background: #ededed; }
.slit-ph-5 { background: #f5f5f5; }
.slit-ph-6 { background: #dddde0; }
.slit-ph-7 { background: #d4d4d4; }
.slit-ph-8 { background: #f1f1f1; }
.slit-ph-9 { background: #c8c8c8; }


/* Portfolio cards with real project screenshots */
.insight-item-image-wrap.slit-project-image-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.5;
  background: #ffffff;
  overflow: hidden;
}
.insight-item-image-wrap.slit-project-image-card .slit-project-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.insight-item:hover .slit-project-image {
  transform: scale(1.025);
}

/* Meta-chips under insight-item-heading (portfolio grid) */
.slit-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.slit-meta-chip {
  font-size: 12px;
  font-weight: 500;
  color: #141414;
  background: #ededed;
  padding: 4px 10px;
  border-radius: 2px;
}

/* Detail page meta strip — matches story-slide-num-wrap look */
.slit-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: #f5f5f5;
  border-radius: 2px;
  padding: 24px 0;
  margin: 48px 0;
}
@media screen and (max-width: 767px) {
  .slit-detail-meta { grid-template-columns: 1fr; padding: 8px 0; }
}
.slit-detail-meta > div {
  padding: 8px 32px;
  border-right: 1px solid rgba(20,20,20,.08);
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slit-detail-meta > div:last-child { border-right: 0; }
@media screen and (max-width: 767px) {
  .slit-detail-meta > div {
    border-right: 0;
    border-bottom: 1px solid rgba(20,20,20,.08);
    padding: 16px 32px;
  }
  .slit-detail-meta > div:last-child { border-bottom: 0; }
}
.slit-detail-meta-label {
  font-size: 13px;
  color: #6a6a6a;
  margin-bottom: 6px;
}
.slit-detail-meta-value {
  font-size: 18px;
  font-weight: 700;
  color: #141414;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Long-form prose (project detail body) */
.slit-prose {
  max-width: 820px;
  margin: 0 auto;
}
.slit-prose h2 {
  font-size: 28px;
  line-height: 1.3;
  color: #141414;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
}
.slit-prose h3 {
  font-size: 20px;
  line-height: 1.4;
  color: #141414;
  font-weight: 700;
  margin: 32px 0 12px;
}
.slit-prose p {
  font-size: 16px;
  line-height: 1.75;
  color: #2a2a2a;
  margin: 0 0 16px;
}
.slit-prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.slit-prose li {
  font-size: 16px;
  line-height: 1.75;
  color: #2a2a2a;
  padding: 4px 0 4px 22px;
  position: relative;
}
.slit-prose li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #141414;
  border-radius: 50%;
  position: absolute;
  left: 4px;
  top: 15px;
}
.slit-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  font-size: 15px;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
}
.slit-prose th,
.slit-prose td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid #e1e1e1;
  vertical-align: top;
}
.slit-prose tr:last-child th,
.slit-prose tr:last-child td { border-bottom: 0; }
.slit-prose th {
  font-weight: 600;
  color: #141414;
  width: 38%;
}
.slit-prose td { color: #2a2a2a; line-height: 1.6; }

.slit-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 32px;
}
.slit-stack-item {
  font-size: 13px;
  color: #141414;
  background: #ededed;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 500;
}

.slit-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #141414;
  text-decoration: none;
  margin-bottom: 20px;
  font-weight: 500;
}

/* Footer — match home (kr/index.html) which renders black */
.section.gray-10-bg.footer { background-color: #000000; }

/* Mono labels — match home inline overrides (.label._2 mint→white, .label._3 dark-green→near-black) */
.label._2 {
  background-color: #ffffff !important;
}
.label._3 {
  background-color: #1f1f1f !important;
  color: #ffffff !important;
}

/* CTA button — match home: white default, black-invert on hover */
.cta-wrap .primary-button {
  background-color: #ffffff !important;
  color: #141414 !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cta-wrap .primary-button:hover {
  background-color: #141414 !important;
  color: #ffffff !important;
}

/* Section divider line — match home (mint→mono); invert on dark sections to stay visible */
.gradient-border {
  background-image: linear-gradient(rgba(20,20,20,0), #141414) !important;
}
.section.gray-900-bg .gradient-border {
  background-image: linear-gradient(rgba(255,255,255,0), #ffffff) !important;
}

/* CTA background — anchor to bottom (illustration's focal point is the lower half) */
.cta-bg {
  object-position: center bottom !important;
}

/* Portfolio slider stat numbers — shrink to prevent overflow on long text like "GPT-4o · Claude" */
.story-slide-num-item .text-block-69 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(16px, 1.4vw, 20px) !important;
}

/* SL:IT inline logo mark — replaces "SL:IT" text token with the brand logo image.
   Wrap the literal "SL:IT" with <span class="slit-logo-mark">SL:IT</span>. The
   span hides the text via text-indent and shows the logo as a background image,
   sized in em units so the logo scales with the surrounding font. */
.slit-logo-mark {
  display: inline-block;
  background-image: url(/Group%207.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  /* Group 7.png aspect ratio is 416/190 ≈ 2.19 */
  width: 2.925em;
  height: 1.335em;
  vertical-align: -0.35em;
  text-indent: -9999em;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1;
  /* tiny breathing room so adjacent Korean text doesn't touch the logo box */
  margin-right: 0.06em;
}

/* SL:IT code-based insight thumbnails — mirrors home (kr/index.html) inline rules.
   Used on /kr/insights/ index cards so they match the home insight section. */
.insight-item-image-wrap.slit-insight-card {
  container-type: inline-size;
  background-color: #f5f5f5;
  display: block;
  position: relative;
}
.slit-insight-card .insight-card-inner {
  position: absolute;
  inset: 0;
  padding: 6cqw 6cqw;
  display: flex;
  flex-direction: column;
  gap: 4.5cqw;
}
.slit-insight-card .insight-card-logo {
  font-size: 4.2cqw;
  line-height: 1;
}
.slit-insight-card .insight-card-badge {
  align-self: flex-start;
  background-color: #141414;
  color: #ffffff;
  font-weight: 700;
  font-size: 4cqw;
  line-height: 1.4;
  padding: 1.4cqw 3.5cqw;
  border-radius: 999px;
  letter-spacing: -0.01em;
}
.slit-insight-card .insight-card-title {
  color: #141414;
  font-weight: 400;
  font-size: 8cqw;
  line-height: 1.3;
  letter-spacing: -0.025em;
  word-break: keep-all;
  margin: 0;
}
.slit-insight-card .insight-card-title strong {
  font-weight: 800;
}
.slit-insight-card .insight-card-hl {
  background-color: #141414;
  color: #ffffff;
  padding: 0 4px;
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

