/* rw-new.css — 새 디자인 통합 스타일 (자동 병합: fonts+tokens+base+motion+bridge) */

/* ============================================================
   ROGAWORKS fonts.css — 웹폰트 로드 (병합 파일 최상단 — @import는 맨 앞이어야 함)
   본문: Pretendard Variable (동적 서브셋 CDN)
   에이전트 보이스(수치·라벨): JetBrains Mono — 브랜드 규정 "사람의 카피는
   Pretendard, 에이전트 출력은 Mono"의 참조 반영
   디스플레이: 마루부리 Bold (네이버 공식 CDN, SIL OFL)
   ============================================================ */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap");

@font-face {
  font-family: "MaruBuri";
  src: url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Bold.woff2") format("woff2"),
       url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;   /* 폰트 로딩 중에도 텍스트는 Pretendard로 즉시 표시 */
  unicode-range: U+AC00-D7A3, U+0020-007E, U+3131-318E, U+2013-2014, U+00B7;
}

/* 브랜드 순간 전용 색 — 워드마크·대형 브랜드 면에만 쓴다.
   (Roga Cyan은 흰 배경 대비 1.9:1 — 본문·아이콘·버튼 글자엔 금지) */
:root { --rw-cyan: #0CC6D2; }


/* 자동 생성 — tokens.json을 고치고 다시 빌드할 것. 이 파일을 직접 수정하지 말 것. */
:root {
  /* color */
  --rw-bg: #F5F8FB;
  --rw-surface: #FFFFFF;
  --rw-ink: #14202C;
  --rw-ink-soft: #4E5E70;
  --rw-brand: #069DAB;
  --rw-accent: #C43522;
  --rw-line: #D8E0EA;

  /* font */
  --rw-font-display: "MaruBuri", "Pretendard Variable", Pretendard, serif;
  --rw-font-body: "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
  --rw-font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  /* type */
  --rw-t-display: clamp(2.75rem, 6.2vw, 5.5rem);
  --rw-t-h2: clamp(1.625rem, 3vw, 2.5rem);
  --rw-t-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --rw-t-body: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  --rw-t-label: 0.8125rem;
  --rw-lh-tight: 1.22;
  --rw-lh-body: 1.75;
  --rw-ls-display: -0.025em;
  --rw-ls-label: 0.06em;

  /* space */
  --rw-s-1: 4px;
  --rw-s-2: 8px;
  --rw-s-3: 12px;
  --rw-s-4: 16px;
  --rw-s-6: 24px;
  --rw-s-8: 32px;
  --rw-s-12: 48px;
  --rw-s-16: 64px;
  --rw-s-24: 96px;
  --rw-sec-y: clamp(64px, 9vw, 140px);
  --rw-gutter: clamp(20px, 4vw, 48px);
  --rw-maxw: 1200px;
  --rw-measure: 34rem;

  /* radius */
  --rw-r-sm: 4px;
  --rw-r-md: 8px;
  --rw-r-lg: 16px;
  --rw-r-full: 999px;

  /* shadow */
  --rw-shadow-1: 0 2px 8px -2px color-mix(in oklab, var(--rw-brand) 22%, transparent);
  --rw-shadow-2: 0 18px 40px -18px color-mix(in oklab, var(--rw-brand) 35%, transparent);
}


/* ============================================================
   ROGAWORKS base.css — 한글 타이포그래피 + 접근성 기본기
   붙여넣는 곳: GP > 사용자 정의하기 > 추가 CSS (tokens.css 바로 아래)
   ============================================================ */

/* 한글 본문 기본기 — 이것만으로 "AI 티"의 절반이 사라진다
   (body.rw-new 스코프: GP 테마 규칙보다 특이도로 항상 이긴다) */
body.rw-new {
  font-family: var(--rw-font-body);
  font-size: var(--rw-t-body);
  line-height: var(--rw-lh-body);        /* 1.75 — 한글은 1.5면 답답하다 */
  letter-spacing: -0.003em;
  word-break: keep-all;                  /* 단어 중간 잘림 방지 */
  text-wrap: pretty;
  color: var(--rw-ink);
  background: var(--rw-bg);
}

/* 명조 디스플레이 — 마루부리는 크게 쓸수록 자간을 조인다 */
body.rw-new h1, body.rw-new h2, .rw-display {
  font-family: var(--rw-font-display);
  letter-spacing: var(--rw-ls-display);  /* -0.025em (명조는 -0.03 이상 조이면 획이 붙는다) */
  line-height: var(--rw-lh-tight);
  text-wrap: balance;
  font-weight: 700;
}

/* 본문 컬럼 폭 — detect가 지적한 160자/줄 문제의 해결 지점 */
.rw-prose { max-width: var(--rw-measure); }  /* 34rem ≈ 한글 40~45자 */

/* 수치·스펙 표기(모노) — 도면 룩의 유틸 서체.
   ⚠️ 영문·숫자 전용 — 한글에 쓰면 폰트가 섞여 깨져 보인다 */
.rw-spec {
  font-family: var(--rw-font-mono);
  font-size: var(--rw-t-label);
  letter-spacing: var(--rw-ls-label);
  color: var(--rw-ink-soft);
}

/* 아이콘 — 자체 제작 지오메트리 SVG, 2px 스트로크 통일 */
.rw-ico {
  display: inline-flex;
  width: 38px;
  height: 38px;
  color: var(--rw-brand);
  flex: none;
}
.rw-ico svg { width: 100%; height: 100%; }

/* 가운데 정렬 섹션의 h2 밑줄은 가운데로 */
.rw-line-center::after { margin-inline: auto; }

/* 표·가격 숫자는 탭ular로 — 폭이 흔들리지 않게 */
table td, .rw-num { font-variant-numeric: tabular-nums; }

/* 키보드 포커스 링 (접근성 필수) */
:focus-visible {
  outline: 2px solid var(--rw-brand);
  outline-offset: 3px;
  border-radius: var(--rw-r-sm);
}

/* 드래그 선택색 — 도면 블루 */
::selection { background: color-mix(in oklab, var(--rw-brand) 18%, transparent); }

/* 스크롤바·캐럿도 팔레트로 — 브라우저 기본값은 디자인이 아니다 */
html { scrollbar-color: color-mix(in oklab, var(--rw-ink-soft) 55%, transparent) transparent; }
input, textarea { caret-color: var(--rw-brand); }

/* ------------------------------------------------------------
   히어로 헤드라인 — "초안(스케치 외곽선) → 완성(잉크)" 타이포 시그니처
   1행: 획 없이 외곽선만 (아직 그려지는 중인 글자)
   2행: 잉크로 채워진 완성 글자
   ------------------------------------------------------------ */
.rw-draft-line {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--rw-ink-soft);
  paint-order: stroke;
}
@supports not (-webkit-text-stroke: 1px black) {
  .rw-draft-line { color: var(--rw-ink-soft); }  /* 미지원: 보조색 실글자 */
}
.rw-final-line { color: var(--rw-ink); }

/* 블루프린트 그리드 배경 — 히어로 섹션 전용. 다른 섹션에 쓰지 말 것 */
.rw-blueprint {
  position: relative;
  background-image:
    linear-gradient(var(--rw-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--rw-line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
}
.rw-blueprint::after {
  /* 그리드 위에 배경색을 55% 덮어 가독성 확보 (실효 그리드 명도 ≈ opacity 0.05) */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: color-mix(in oklab, var(--rw-bg) 55%, transparent);
  pointer-events: none;
}
.rw-blueprint > * { position: relative; z-index: 1; }  /* 콘텐츠는 오버레이 위에 */

/* ------------------------------------------------------------
   GeneratePress 전체폭 해제 — 새 디자인 페이지(body.rw-new) 전용
   ⚠️ .grid-container를 건드리지 않는다 — 헤더도 그 클래스를 쓴다.
   콘텐츠 최상위 섹션만 브레이크아웃(100vw)으로 화면 끝까지 늘리고,
   내부 정렬은 각 섹션의 inner(최대폭 1200 + gutter)가 담당한다.
   ------------------------------------------------------------ */
body.rw-new { overflow-x: clip; }  /* 100vw 브레이크아웃의 스크롤바 폭 넘침 방지 */
body.rw-new .site-content { padding: 0; }
body.rw-new .site-main { margin: 0 !important; }
body.rw-new .inside-article,
body.rw-new.separate-containers .inside-article { padding: 0; }
body.rw-new .entry-content { margin-top: 0; }
body.rw-new .entry-content > .gb-element {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ------------------------------------------------------------
   헤더 — 새 디자인 (도면 문서의 표제란처럼: 밝은 면 + 가는 경계선)
   ------------------------------------------------------------ */
body.rw-new .site-header {
  background: var(--rw-surface);
  border-bottom: 1px solid var(--rw-line);
}
body.rw-new .main-title a {
  font-family: var(--rw-font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.01em;
  color: var(--rw-ink);
  display: inline-flex;
  align-items: center;
}
body.rw-new .main-title a:hover { color: var(--rw-brand); }
body.rw-new .rw-wordmark { height: 26px; width: auto; display: block; }
body.rw-new .main-navigation .main-nav ul li a {
  color: var(--rw-ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color .18s ease;
}
body.rw-new .main-navigation .main-nav ul li a:hover,
body.rw-new .main-navigation .main-nav ul li[class*="current"] > a {
  color: var(--rw-brand);
}
/* 현재 메뉴에 도면 치수선 느낌의 밑줄 */
body.rw-new .main-navigation .main-nav > ul > li[class*="current"] > a {
  box-shadow: inset 0 -2px 0 var(--rw-brand);
}

/* ------------------------------------------------------------
   솔루션 상세페이지 공통
   ------------------------------------------------------------ */
/* 체크리스트 행 — "이런 분께" */
.rw-checkrow {
  display: flex; gap: var(--rw-s-4); align-items: flex-start;
  padding: var(--rw-s-4) 0; border-bottom: 1px solid var(--rw-line);
}
.rw-checkrow:last-child { border-bottom: 0; }
.rw-checkrow .rw-ico { width: 24px; height: 24px; margin-top: 3px; }

/* 안내 노트 — 범위·법적 고지 */
.rw-note {
  background: var(--rw-surface);
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-r-sm);
  padding: var(--rw-s-4) var(--rw-s-6);
  color: var(--rw-ink-soft);
  font-size: 0.9375rem;
}

/* FAQ — 네이티브 details/summary (JS 불필요, SEO·접근성 유리) */
.rw-faq details { border-bottom: 1px solid var(--rw-line); }
.rw-faq summary {
  cursor: pointer; padding: var(--rw-s-6) 0;
  font-weight: 600; color: var(--rw-ink);
  list-style: none; display: flex; justify-content: space-between;
  align-items: baseline; gap: var(--rw-s-4);
}
.rw-faq summary::-webkit-details-marker { display: none; }
.rw-faq summary::after {
  content: "+"; color: var(--rw-brand); font-weight: 400;
  font-size: 1.375rem; line-height: 1; transition: transform .2s ease;
}
.rw-faq details[open] summary::after { transform: rotate(45deg); }
.rw-faq details > p { margin: 0 0 var(--rw-s-6); color: var(--rw-ink-soft); max-width: var(--rw-measure); }

/* 솔루션 카드 전체를 링크로 */
a.rw-card-link { text-decoration: none; display: block; color: inherit; }

/* 약관·방침 등 법률 문서 본문 */
.rw-legal-body { color: var(--rw-ink-soft); font-size: 0.9375rem; }
.rw-legal-body p { margin: 0 0 var(--rw-s-4); }
.rw-legal-body ol, .rw-legal-body ul { margin: 0 0 var(--rw-s-4); padding-left: 1.4em; }
.rw-legal-body li { margin-bottom: var(--rw-s-2); }
.rw-legal-body a { color: var(--rw-brand); }
.rw-legal-body table {
  width: 100%; border-collapse: collapse; margin: var(--rw-s-4) 0 var(--rw-s-6);
  font-size: 0.875rem; background: var(--rw-surface);
  border: 1px solid var(--rw-line); border-top: 3px solid var(--rw-brand);
  border-radius: var(--rw-r-md); overflow: hidden;
}
.rw-legal-body th {
  text-align: left; color: #FFFFFF; background: var(--rw-ink);
  padding: 10px 14px; font-weight: 600;
}
.rw-legal-body td { padding: 10px 14px; border-bottom: 1px solid var(--rw-line); }
.rw-legal-body tr:last-child td { border-bottom: 0; }

/* 포트폴리오 쿼리 루프 카드 */
body.rw-new .wp-block-query .rw-card { height: 100%; }
body.rw-new .wp-block-post-featured-image img { border-radius: var(--rw-r-sm); }
body.rw-new .wp-block-post-title a { color: var(--rw-ink); text-decoration: none; }
body.rw-new .wp-block-post-title a:hover { color: var(--rw-brand); }
body.rw-new .wp-block-post-terms { font-size: 0.8125rem; color: var(--rw-ink-soft); }
body.rw-new .wp-block-post-terms a { color: var(--rw-brand); text-decoration: none; }
body.rw-new .wp-block-post-excerpt { color: var(--rw-ink-soft); font-size: 0.9375rem; }
body.rw-new .wp-block-query-pagination a { color: var(--rw-ink); text-decoration: none; }
body.rw-new .wp-block-query-pagination a:hover { color: var(--rw-brand); }
body.rw-new .wp-block-query-pagination .current { color: var(--rw-brand); font-weight: 700; }

/* ------------------------------------------------------------
   단가표 — 도면 스펙시트. 잉크 블랙 헤더 밴드 + 청록 기준선 +
   가격 컬럼 청록 강조. rw-t-p2/rw-t-p3 = 가격 컬럼 위치.
   ------------------------------------------------------------ */
.rw-tablewrap {
  overflow-x: auto;
  background: var(--rw-surface);
  border: 1px solid var(--rw-line);
  border-top: 3px solid var(--rw-brand);   /* 도면 기준선 */
  border-radius: var(--rw-r-md);
  box-shadow: var(--rw-shadow-1);
  margin-bottom: var(--rw-s-4);
}
.rw-price table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; }
.rw-price th {
  text-align: left; font-weight: 600; letter-spacing: 0.02em;
  color: #FFFFFF; background: var(--rw-ink);     /* 잉크 블랙 헤더 밴드 */
  padding: 12px 16px; white-space: nowrap;
}
.rw-price td {
  padding: 13px 16px; border-bottom: 1px solid var(--rw-line);
  color: var(--rw-ink-soft); vertical-align: top;
}
.rw-price tbody tr:last-child td { border-bottom: 0; }
.rw-price tbody tr:nth-child(even) td {
  background: color-mix(in oklab, var(--rw-brand) 3%, transparent);   /* 지브라 */
}
.rw-price tbody tr:hover td {
  background: color-mix(in oklab, var(--rw-brand) 8%, transparent);
}
.rw-price td:first-child { color: var(--rw-ink); font-weight: 600; }
/* 가격 컬럼 — 청록 강조가 표의 시각적 앵커 */
.rw-t-p2 td:nth-child(2), .rw-t-p3 td:nth-child(3) {
  color: var(--rw-brand); font-weight: 700;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* 단가 섹션 제목 아이콘 정렬 (h3에 flex 인라인 스타일과 짝) */
.rw-price ~ * .rw-ico, h3 .rw-ico { width: 28px; height: 28px; }

/* ------------------------------------------------------------
   옵션 가산 — 접힌 상태에서도 확실히 보이는 버튼형 바
   ------------------------------------------------------------ */
.rw-opt { margin-top: calc(var(--rw-s-4) * -1); margin-bottom: var(--rw-s-8); }
.rw-opt details { border: 0; }
.rw-opt summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--rw-s-4); padding: 13px 18px;
  background: color-mix(in oklab, var(--rw-brand) 9%, var(--rw-surface));
  border: 1px solid color-mix(in oklab, var(--rw-brand) 40%, var(--rw-line));
  border-radius: var(--rw-r-sm);
  color: var(--rw-brand); font-weight: 700; font-size: 0.9375rem;
  transition: background-color .18s ease, border-color .18s ease;
}
.rw-opt summary:hover {
  background: color-mix(in oklab, var(--rw-brand) 16%, var(--rw-surface));
  border-color: var(--rw-brand);
}
.rw-opt summary::-webkit-details-marker { display: none; }
.rw-opt summary::before { content: "옵션 펼치기"; order: 2; font-weight: 500; font-size: 0.8125rem; color: var(--rw-ink-soft); margin-left: auto; }
.rw-opt details[open] summary::before { content: "접기"; }
.rw-opt summary::after {
  content: "+"; order: 3; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--rw-brand); color: #FFFFFF;
  display: grid; place-items: center;
  font-size: 1.05rem; font-weight: 500; line-height: 1;
  transition: transform .2s ease;
}
.rw-opt details[open] summary::after { transform: rotate(45deg); }
.rw-opt details[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.rw-opt details[open] .rw-tablewrap {
  border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0;
  margin-bottom: 0;
}

/* 문의 폼(GB Pro Forms) — 새 디자인 입히기 */
.rw-formwrap label {
  display: block; font-weight: 600; font-size: 0.9375rem;
  color: var(--rw-ink); margin-bottom: 6px;
}
.rw-formwrap input[type="text"], .rw-formwrap input[type="email"],
.rw-formwrap input[type="tel"], .rw-formwrap input[type="number"],
.rw-formwrap select, .rw-formwrap textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--rw-line); border-radius: var(--rw-r-sm);
  background: var(--rw-surface); color: var(--rw-ink);
  font: inherit; margin-bottom: var(--rw-s-4);
}
.rw-formwrap input:focus-visible, .rw-formwrap select:focus-visible,
.rw-formwrap textarea:focus-visible {
  outline: 2px solid var(--rw-brand); outline-offset: 1px;
  border-color: var(--rw-brand);
}
.rw-formwrap button[type="submit"], .rw-formwrap input[type="submit"] {
  background: var(--rw-ink); color: #FFFFFF; border: 0;
  padding: 14px 28px; border-radius: var(--rw-r-sm);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background-color .18s ease;
}
.rw-formwrap button[type="submit"]:hover, .rw-formwrap input[type="submit"]:hover {
  background: var(--rw-brand);
}

/* 치수선(dimension line) 구분 장식 — Shape 블록 SVG와 짝으로 사용 */
.rw-dim {
  display: flex; align-items: center; gap: var(--rw-s-3);
  font-family: var(--rw-font-mono);
  font-size: var(--rw-t-label);
  color: var(--rw-ink-soft);
}
.rw-dim::before, .rw-dim::after {
  content: ""; flex: 1; height: 1px; background: var(--rw-line);
}


/* ============================================================
   ROGAWORKS motion.css — 절제 모드 (호버·페이드 + 시그니처 1개)
   붙여넣는 곳: GP > 사용자 정의하기 > 추가 CSS (base.css 아래)
   규칙: transform/opacity만 애니메이션. 첫 화면 요소는 리빌 금지.
   ============================================================ */

/* 모든 모션의 안전장치 — 반드시 맨 위 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------
   1. 시그니처 — "초안 → 완성" 선 전환 (히어로 SVG 전용)
   구조: 같은 path를 2번 겹친다.
     <path class="rw-sketch" …>  회색 점선 = AI 초안
     <path class="rw-ink" …>     도면 블루 실선 = 전문가 마감
   잉크 선이 스크롤에 맞춰 스케치 위에 그려진다.
   ------------------------------------------------------------ */
.rw-sketch {
  stroke: var(--rw-ink-soft);
  stroke-dasharray: 6 8;               /* 손스케치 느낌의 점선 */
  opacity: 0.6;
  fill: none;
}
.rw-ink {
  stroke: var(--rw-brand);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200); /* 시작: 안 그려진 상태 */
  /* 히어로는 첫 화면에 이미 보이므로 스크롤 연동이 아니라
     로드 후 1회 그리기 — 스크롤 타임라인은 진행도 0에 머물러 안 그려진다 */
  animation: rw-dash 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s both;
}
@keyframes rw-dash { to { stroke-dashoffset: 0; } }

/* ------------------------------------------------------------
   2. 스크롤 리빌 — 아래 접힘(below-the-fold) 카드만, 미세하게
   GB 사용법: Element 블록 '추가 CSS 클래스'에 rw-reveal
   ------------------------------------------------------------ */
@supports (animation-timeline: view()) {
  .rw-reveal {
    animation: rw-rise linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 28%;
  }
}
@keyframes rw-rise {
  /* 투명도는 건드리지 않는다 — 콘텐츠는 항상 읽히고, 움직임만 연출 */
  from { transform: translateY(18px); }
  to   { transform: none; }
}

/* 인쇄 시 모든 리빌·선그리기 즉시 완성 상태로 */
@media print {
  .rw-reveal, .rw-card { animation: none !important; opacity: 1 !important; transform: none !important; }
  .rw-ink { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* ------------------------------------------------------------
   3. 카드 호버 — 상승 + 인디고 섞인 그림자
   (GB Pro 호버 트랜스폼을 쓸 경우 이 블록은 생략 가능)
   ------------------------------------------------------------ */
.rw-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.rw-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rw-shadow-2);
  border-color: color-mix(in oklab, var(--rw-brand) 35%, var(--rw-line));
}

/* ------------------------------------------------------------
   3.4 헤드라인 잉크 리빌 — 완성 줄이 왼쪽부터 그어진다 (핵심 연출 1개)
   ------------------------------------------------------------ */
.rw-draft-line {
  display: inline-block;
  animation: rw-fade-up 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.rw-final-line {
  display: inline-block;
  clip-path: inset(-8% 100% -8% 0);
  animation: rw-ink-sweep 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s both;
}
@keyframes rw-ink-sweep {
  from { clip-path: inset(-8% 100% -8% 0); opacity: 0.4; }
  to   { clip-path: inset(-8% -2% -8% 0); opacity: 1; }
}

/* ------------------------------------------------------------
   3.5 히어로 로드 시퀀스 — 제목→부제→버튼→도면 순서로 떠오른다
   블록 추가 클래스: rw-fade-1 ~ rw-fade-4
   ------------------------------------------------------------ */
.rw-fade-1, .rw-fade-2, .rw-fade-3, .rw-fade-4 {
  animation: rw-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.rw-fade-2 { animation-delay: 0.12s; }
.rw-fade-3 { animation-delay: 0.24s; }
.rw-fade-4 { animation-delay: 0.36s; }
@keyframes rw-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   3.6 섹션 제목 밑줄 — 도면 기준선이 그어지듯 좌→우로
   ------------------------------------------------------------ */
body.rw-new h2.gb-text::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-top: var(--rw-s-4);
  background: var(--rw-brand);
  transform-origin: 0 50%;
}
@supports (animation-timeline: view()) {
  body.rw-new h2.gb-text::after {
    animation: rw-grow linear both;
    animation-timeline: view();
    animation-range: entry 10% entry 60%;
  }
}
@keyframes rw-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ------------------------------------------------------------
   4. 링크·버튼 미세 트랜지션
   ------------------------------------------------------------ */
a, .gb-button { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }


/* ============================================================
   ROGAWORKS bridge.css — 구 디자인 시스템(자식 테마) 충돌 브리지
   붙여넣는 곳: GP > 사용자 정의하기 > 추가 CSS 의 "맨 끝" (motion.css 아래)
   목적: 자식 테마가 아직 로드하는 구 rw-tokens/rw-effects의
         변수·규칙이 새 페이지를 오염시키지 않게 구 변수명을
         새 팔레트로 재매핑한다. 자식 테마 정리 후에는 삭제 가능.
   ============================================================ */

/* 구 변수명 → 새 팔레트 재매핑
   (구 rw-effects.css의 body.rw-canvas 규칙들이 이 변수들을 참조한다) */
:root, body.rw-canvas {
  --rw-text: var(--rw-ink);            /* 구: #e6edf6 밝은 글자 → h1 대비 1.3:1의 원인 */
  --rw-text-dim: var(--rw-ink-soft);   /* 구: #94a3b8 */
  --rw-surface-2: var(--rw-surface);   /* 구: #101d33 다크 패널 */
  --rw-primary: var(--rw-brand);       /* 구: #5eead4 시안! → 도면 블루로 */
  --rw-primary-soft: color-mix(in oklab, var(--rw-brand) 10%, transparent);
  --rw-grad-a: var(--rw-brand);        /* 구 그라디언트 양끝을 단색 브랜드로 */
  --rw-grad-b: var(--rw-brand);
  --rw-negative: var(--rw-accent);
  /* 구 토큰과 이름이 같은 변수(--rw-bg 등)는 추가 CSS가 마지막에 로드되므로
     이미 새 값이 이긴다 — 여기서 재선언할 필요 없음 */
}

/* 구 그라디언트 텍스트 클래스 무력화 — 단색 잉크로 강제 */
.rw-grad-text,
body.rw-canvas .rw-grad-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--rw-ink);
}

/* 구 시스템이 body.rw-canvas에 깔던 다크 배경·글로우 차단 */
body.rw-canvas {
  background: var(--rw-bg);
  color: var(--rw-ink);
}
