@charset "UTF-8";
/* AI 검색 최적화 상세페이지(sub/ai-seo.php) 전용 부품(.ais-*). 이 페이지에서만 직접 연결한다.
   공통 부품(.yt-*: 색 변수·구역·영문 2줄 제목·말풍선·상자·항목 머리·PROCESS 선·FAQ·문의 폼·스크롤 등장)은
   sub/youtube/youtube.css를 함께 불러 쓴다. 디자인 기준도 유튜브·해외마케팅 페이지와 같다(2026-10-26 사용자 요청):
   검정·#1E1F23 구역 위주, 각진 모서리, 사이트 레드(--yt-red), Pretendard.
   이 페이지는 "코딩·코드·AI" 느낌을 더한다: 코드 띠, 제목 위 코드 태그, 제목 끝 깜박이는 커서, 코드 편집기 예시.
   실제 화면을 흉내 내는 예시(휴대폰 AI 채팅, 검색 결과, 카카오톡, 칼럼)만 그 화면처럼 둥글게 둔다.
   p·ul·ol의 여백은 .yt p { margin: 0 }(youtube.css)보다 우선해야 하므로 .ais를 붙여 쓴다. */

.ais {
  /* 코드 글꼴: 영문·기호는 고정폭, 한글은 Pretendard */
  --ais-mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, "YT Pretendard", monospace;
  /* 코드 색(어두운 편집기 기준). 태그는 사이트 레드 계열로 맞췄다 */
  --ais-c-tag: #FF7B72;
  --ais-c-attr: #9CC3E6;
  --ais-c-str: #E8C9A0;
  --ais-c-key: #B7A3F0;
  --ais-c-com: #7A8088;
}
.ais .c-t { color: var(--ais-c-tag); }
.ais .c-a { color: var(--ais-c-attr); }
.ais .c-s { color: var(--ais-c-str); }
.ais .c-k { color: var(--ais-c-key); }
.ais .c-m { color: var(--ais-c-com); }
.ais i[class^="c-"] { font-style: normal; }

/* 구역 제목 위 코드 태그(장식): <section id="…">처럼 고정폭 회색 한 줄 */
.ais .ais-tag { font-family: var(--ais-mono); font-size: 14px; line-height: 1.4; letter-spacing: 0; color: var(--yt-muted); }
.yt-sec--dark .ais-tag, .yt-sec--black .ais-tag { color: rgba(255, 255, 255, 0.45); }
/* 영문 제목 끝 커서: 코드 입력처럼 깜박인다(youtube.css yt-blink) */
.ais .yt-eyebrow strong::after { content: ""; display: inline-block; width: 0.09em; height: 0.82em; margin-left: 0.12em; vertical-align: -0.06em; background: currentColor; animation: yt-blink 1.1s steps(1) infinite; }

/* ── HERO: 왼쪽 문구, 오른쪽 휴대폰 AI 채팅 화면 ── */
/* 제목이 3줄이라 유튜브(2줄, 최대 70px)보다 작게 둔다(해외 페이지와 같은 이유) */
.ais-hero .yt-hero__title { font-size: clamp(36px, 4vw, 58px); line-height: 1.25; }
.ais-hero .yt-hero__in { gap: 56px; }
.ais-hero__mock { flex: 0 1 400px; max-width: 400px; align-items: center; margin: 0 auto; }
.ais-hero .yt-hero__caption { font-size: 12px; line-height: 1.6; text-align: center; color: rgba(255, 255, 255, 0.3); }
/* 첫 화면 배경: 유튜브 첫 화면(격자 + 붉은 빛)과 다르게, 점 무늬 위에 휴대폰을 중심으로 퍼지는 동심원(검색 신호)을 깐다(2026-10-26 사용자 요청).
   --ais-cx·--ais-cy는 휴대폰 가운데. PC는 오른쪽 끝 400px 칸의 가운데, 한 단으로 쌓이는 화면은 아래쪽 가운데 */
.ais-hero { --ais-cx: calc(min(100% - var(--yt-gutter), 50% + 660px) - 200px); --ais-cy: 52%; }
.ais-hero.yt-hero--main::before { background: radial-gradient(circle at var(--ais-cx) var(--ais-cy), rgba(194, 58, 49, 0.26), transparent 300px), repeating-radial-gradient(circle at var(--ais-cx) var(--ais-cy), transparent 0 109px, rgba(255, 255, 255, 0.12) 110px 111px), radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1.6px) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(ellipse 760px 90% at var(--ais-cx) var(--ais-cy), #000000 25%, transparent 78%); mask-image: radial-gradient(ellipse 760px 90% at var(--ais-cx) var(--ais-cy), #000000 25%, transparent 78%); }
/* 버튼 두 개: 한 줄에 같은 폭으로 놓는다. 자리가 모자라 줄이 바뀌면 둘 다 한 줄을 다 채워 크기가 같게 보인다 */
.ais-ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; max-width: 640px; }
.ais-ctas .yt-btn { padding: 0 22px; white-space: nowrap; }

/* ── 배경 사진(sub/ai-seo/img/, Pixabay, 2026-10-26 사용자 선택). 구역 배경 위에 옅게 깔고, 글이 놓이는 쪽은 마스크로 흐리게 지운다.
   사이트 레드와 부딪히지 않게 색을 뺀다(grayscale). 같은 날 "과하다"는 의견으로 첫 화면·STRATEGY 사진은 뺐다.
   any QUESTIONS?: 이진 코드 터널 / make it CLEAR: HTML 코드 / 상담: 서버실 ── */
/* make it CLEAR의 따라오는 탭(position: sticky)이 막히지 않게 hidden 대신 clip으로 자른다. clip을 모르는 브라우저는 hidden(탭만 따라오지 않음) */
.ais-sec--questions, .ais-sec--clear { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.ais-sec--questions::before, .ais-sec--clear::before { content: ""; position: absolute; z-index: -1; inset: 0; background: no-repeat center / cover; pointer-events: none; }
/* 말풍선 가운데 뒤로 터널이 빨려 들어간다. 가장자리는 둥글게 지운다 */
.ais-sec--questions::before { background-image: url("img/ais-binary.jpg"); opacity: 0.3; filter: grayscale(1); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 60%, #000000 30%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 50% 60%, #000000 30%, transparent 100%); }
/* 위 제목 뒤에만 코드가 아주 옅게 비친다. 글자가 겹쳐 읽히지 않도록 살짝 흐리게 둔다 */
.ais-sec--clear::before { background-image: url("img/ais-html.jpg"); background-position: center top; opacity: 0.08; filter: saturate(0.3) blur(1.5px); -webkit-mask-image: linear-gradient(to bottom, #000000 10%, transparent 40%); mask-image: linear-gradient(to bottom, #000000 10%, transparent 40%); }
/* 상담: 공통 사진 배경(.yt-sec--photo, 청진기) 대신 서버실. 사진이 뚜렷하지 않게 짙게 누른다 */
.ais-sec--contact.yt-sec--photo { background-image: url("img/ais-server.jpg"); }
.ais-sec--contact.yt-sec--photo::before { background: rgba(0, 0, 0, 0.84); }

/* ── HERO 오른쪽: 휴대폰 AI 채팅 화면(라이트 모드, 2026-10-26 사용자 요청). 기기 틀만 어둡다.
   휴대폰 폭(768px 이하)에서는 기기 틀·상태 표시줄 없이 채팅 창만 둔다(아래 @media) ── */
.ais-phone { width: 100%; max-width: 380px; padding: 11px; border-radius: 58px; background: linear-gradient(150deg, #3B3C42 0%, #17181B 45%, #2A2B30 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 50px 110px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05); }
.ais-chat { height: 680px; display: flex; flex-direction: column; border-radius: 47px; background: #FFFFFF; overflow: hidden; color: #0D0D0D; letter-spacing: -0.02em; }
.ais-chat svg { width: 22px; height: 22px; }
/* 상태 표시줄: 시각·다이내믹 아일랜드·신호/와이파이/배터리 */
.ais-phone__status { position: relative; flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 4px 30px 0 34px; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.ais-phone__island { position: absolute; top: 12px; left: 50%; width: 112px; height: 32px; margin-left: -56px; border-radius: 18px; background: #000000; }
.ais-phone__icons { display: flex; align-items: center; gap: 5px; }
.ais-chat .ais-phone__icons svg { width: auto; height: 11px; }
.ais-chat__app { flex: 1; min-height: 0; display: flex; }
.ais-chat__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* 앱 머리: 메뉴 · 모델 이름 · 새 채팅 */
.ais-chat__head { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px 10px; font-size: 17px; font-weight: 600; }
.ais-chat__head i { font-style: normal; color: #8F8F8F; }
.ais-chat__body { flex: 1; min-height: 0; overflow: visible; display: flex; flex-direction: column; gap: 14px; padding: 10px 18px 14px; }
.ais .ais-chat__user { align-self: flex-end; max-width: 82%; padding: 10px 16px; border-radius: 22px; background: #F4F4F4; font-size: 15px; line-height: 1.5; }
/* 웹 검색 상태: 재생 중에는 "웹 검색 중"이 반짝이고, 끝나면 "웹 검색 완료"로 바뀐다 */
.ais-chat__status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8F8F8F; }
.ais-chat .ais-chat__status svg { width: 15px; height: 15px; }
.ais-chat__run { display: none; }
.ais-chat__res { display: flex; flex-direction: column; gap: 10px; }
.ais .ais-chat__lead { font-size: 16px; font-weight: 600; line-height: 1.5; }
.ais .ais-chat__text { font-weight: 400; font-size: 14px; line-height: 1.7; color: #2F2F2F; }
/* 문장 끝 출처 표시(작은 회색 알약) */
.ais-chat__cite { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #F0F0F0; font-weight: 400; font-size: 11px; line-height: 1.6; color: #5D5D5D; vertical-align: 1px; }
/* 우리 병원 정보: 유튜브 예시의 "우리 영상"처럼 붉은 바탕 + 빨간 왼쪽 선 */
.ais-chat__card { position: relative; z-index: 1; padding: 12px 14px; border-left: 3px solid var(--yt-red); border-radius: 0 10px 10px 0; background: #FCEFEE; }
.ais-chat__card strong { display: block; margin-bottom: 4px; font-size: 14px; color: var(--yt-red-dark); }
.ais .ais-chat__card p { font-weight: 400; font-size: 13px; line-height: 1.6; color: #3A3A3A; }
/* 출처 카드: 휴대폰 앱처럼 옆으로 이어지고 화면 밖으로 잘린다 */
.ais-chat__src { display: flex; gap: 8px; margin-right: -18px; overflow: hidden; }
.ais-chat__src li { flex: 0 0 62%; display: flex; gap: 8px; padding: 9px 10px; border: 1px solid #E5E5E5; border-radius: 12px; background: #FFFFFF; }
.ais-chat__src i, .ais-chat__srcbtn i { flex: 0 0 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #0D0D0D; font-style: normal; font-size: 10px; font-weight: 700; color: #FFFFFF; }
.ais-chat__src span { min-width: 0; display: flex; flex-direction: column; font-size: 11px; line-height: 1.4; color: #6B6B6B; }
.ais-chat__src b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 600; color: #0D0D0D; }
/* 답변 아래 아이콘 줄: 복사·좋아요·싫어요·다시 생성 + 출처 버튼 */
.ais-chat__acts { display: flex; align-items: center; gap: 14px; color: #5D5D5D; }
.ais-chat .ais-chat__acts svg { width: 17px; height: 17px; }
.ais-chat__srcbtn { display: inline-flex; align-items: center; margin-left: 2px; padding: 3px 10px 3px 4px; border-radius: 14px; background: #F0F0F0; font-size: 12px; color: #2F2F2F; }
.ais-chat__srcbtn i { flex-basis: 16px; height: 16px; margin-right: -4px; border: 2px solid #F0F0F0; font-size: 8px; }
.ais-chat__srcbtn i:last-of-type { margin-right: 6px; }
/* 아래 입력창과 홈 막대 */
.ais-chat__composer { display: flex; align-items: center; gap: 10px; margin: 0 14px; padding: 9px 9px 9px 16px; border: 1px solid #E3E3E3; border-radius: 26px; background: #FFFFFF; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); color: #5D5D5D; }
.ais-chat .ais-chat__composer svg { width: 20px; height: 20px; }
.ais-chat__plus { font-size: 22px; line-height: 1; }
.ais-chat__ph { flex: 1; font-size: 15px; color: #8F8F8F; }
.ais-chat__send { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #0D0D0D; font-style: normal; font-weight: 700; color: #FFFFFF; }
.ais-phone__home { display: block; width: 134px; height: 5px; margin: 12px auto 9px; border-radius: 3px; background: #0D0D0D; }

/* 재생(ai-seo.js가 .is-play를 붙인 뒤 단계마다 클래스를 더한다). 스크립트가 없으면 아래 규칙이 걸리지 않아 다 끝난 상태로 보인다.
   is-ask 질문 → is-search 웹 검색 중 → is-found 검색 완료 → is-answer 답변 타이핑 → is-done 병원 정보·출처·아이콘 */
.ais-chat.is-play .ais-chat__user, .ais-chat.is-play .ais-chat__status, .ais-chat.is-play .ais-chat__res > * { opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.5s var(--yt-ease); }
.ais-chat.is-play .ais-chat__cite { opacity: 0; transition: opacity 0.4s; }
.ais-chat.is-ask .ais-chat__user, .ais-chat.is-search .ais-chat__status { opacity: 1; transform: none; }
.ais-chat.is-search:not(.is-found) .ais-chat__run { display: inline; background: linear-gradient(90deg, #9A9A9A 0, #1A1A1A 50%, #9A9A9A 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ais-shimmer 0.9s linear infinite; }
.ais-chat.is-search:not(.is-found) .ais-chat__done { display: none; }
.ais-chat.is-answer .ais-chat__lead, .ais-chat.is-answer .ais-chat__text { opacity: 1; transform: none; }
.ais-chat.is-done .ais-chat__res > *, .ais-chat.is-done .ais-chat__cite { opacity: 1; transform: none; }
.ais-chat.is-done .ais-chat__res > :nth-child(4) { transition-delay: 0.15s; }
.ais-chat.is-done .ais-chat__res > :nth-child(5) { transition-delay: 0.3s; }
/* 펄스: 공통 yt-pulse는 바탕까지 진한 붉은색으로 바뀌어 흰 화면에 과해, 테두리 빛만 22px로 번지는 이 페이지 전용 펄스를 쓴다.
   채팅 본문(.ais-chat__body)은 빛이 잘리지 않게 넘침을 보이고, 화면 끝(휴대폰 화면)에서만 잘린다 */
.ais-chat.is-done .ais-chat__card { animation: ais-pulse 1.1s 0.5s ease-out 2; }
@keyframes ais-pulse { 0% { box-shadow: 0 0 0 0 rgba(194, 58, 49, 0.6); } 100% { box-shadow: 0 0 0 22px rgba(194, 58, 49, 0); } }
/* 타이핑 중인 글 끝의 점(채팅 화면의 입력 표시) */
.ais-chat [data-type].is-typing::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 4px; border-radius: 50%; background: #0D0D0D; vertical-align: middle; }
@keyframes ais-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ── 흐르는 코드 띠(장식) ── */
.ais-marquee { overflow: hidden; border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: #0D0D0F; color: #CFCFCF; }
.ais-marquee__track { display: flex; width: max-content; }
/* 토큰 안의 색 조각(<i>)이 벌어지지 않게 flex를 쓰지 않고, 간격은 뒤의 구분 기호(/)가 맡는다 */
.ais-marquee__track span { display: block; padding: 16px 0 16px 36px; font-family: var(--ais-mono); font-size: 15px; letter-spacing: 0; white-space: nowrap; }
.ais-marquee__track span::after { content: "/"; margin-left: 36px; color: var(--yt-red); }
@keyframes ais-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* any QUESTIONS? 말풍선: 넷째 폭(첫째~셋째는 youtube.css) */
.ais-bubbles .yt-bubble:nth-child(4) { --w: 700px; }

/* connected STRATEGY: 상자 사이 화살표. 좁은 화면에서 상자가 세로로 쌓이면 아래를 향한다.
   .ais-op 자체는 스크롤 등장(youtube.js)이 transform을 쓰므로, 회전은 안쪽 글자(span)에 준다 */
.ais-op { font-size: 32px; }
.ais-op span { display: inline-block; }

/* SEO · GEO OPTIMIZATION: 항목 머리(.yt-items) 아래 세부 항목 목록(빨간 점은 .yt-method__list) */
.ais-items { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 64px 80px; }
.ais-items .yt-item__head small { font-family: var(--ais-mono); font-size: 16px; letter-spacing: 0; text-transform: lowercase; }
.ais .ais-list { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--yt-line); font-size: 16px; color: var(--yt-text-2); }

/* ── make it CLEAR: 위 제목, 아래 왼쪽 세로 탭(스크롤해도 따라온다) + 오른쪽 흰 패널. 탭 맨 위와 패널 맨 위를 맞춘다 ── */
.ais-demo { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.ais-tabs { position: sticky; top: calc(var(--yt-header-h-scrolled) + 24px); display: flex; flex-direction: column; border-top: 1px solid var(--yt-line); }
.ais-tabs button { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 22px 20px; border: 0; border-bottom: 1px solid var(--yt-line); border-radius: 0; background: transparent; font: inherit; font-size: 20px; font-weight: 600; line-height: 1.4; color: rgba(255, 255, 255, 0.55); text-align: left; cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.ais-tabs button i { padding-top: 4px; font-family: var(--ais-mono); font-style: normal; font-weight: 400; font-size: 14px; letter-spacing: 0; color: inherit; }
.ais-tabs button span { display: flex; flex-direction: column; gap: 4px; }
.ais-tabs button small { font-weight: 300; font-size: 14px; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.45); }
.ais-tabs button:hover { color: #FFFFFF; }
.ais-tabs button[aria-selected=true] { background: var(--yt-black); color: #FFFFFF; box-shadow: inset 3px 0 0 var(--yt-red); }
.ais-tabs button[aria-selected=true] i { color: var(--ais-c-tag); }
.ais-tabs button[aria-selected=true] small { color: rgba(255, 255, 255, 0.7); }
.ais-demo__panels { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ais-demo__panel { position: relative; padding: 40px; background: #FFFFFF; color: #000000; }
.ais-demo__panel::before { content: ""; position: absolute; top: 0; left: 0; border-top: 10px solid var(--yt-red); border-left: 10px solid var(--yt-red); border-right: 10px solid transparent; border-bottom: 10px solid transparent; }
/* 패널 머리: 영문은 빨간 코드 꼬리표, 한글은 자간을 벌리지 않는다. 제목·설명은 페이지 제목(.yt-h2)보다 한 단계 작게 */
.ais-demo__label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: -0.02em; color: #5F6368; }
.ais-demo__label span { padding: 3px 8px; background: #FBE9E7; font-family: var(--ais-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--yt-red); }
.ais-demo__title { margin-top: 14px; font-size: 26px; font-weight: 700; line-height: 1.4; letter-spacing: -0.04em; }
.ais .ais-demo__text { margin-top: 8px; font-weight: 400; font-size: 16px; line-height: 1.7; letter-spacing: -0.03em; color: #555555; }
.ais .ais-demo__note { font-size: 14px; color: var(--yt-muted); }

/* 캐러셀: 가로 스크롤 + 장면마다 멈춤(scroll-snap). 스크립트가 붙으면(.is-ready) 위에 고르기 탭·화살표가 보인다.
   고르기 탭은 브라우저 탭처럼 그려, 고른 탭이 아래 미리보기 칸(회색)과 이어진다(2026-10-26 사용자 요청: 캐러셀 디자인 개선).
   장면마다 높이가 달라 ai-seo.js가 묶음 높이를 지금 장면에 맞춘다 */
.ais-car { --ais-view-bg: #F1F3F4; margin-top: 28px; }
/* 고르기 탭: Chrome 브라우저 탭 모양(2026-10-26 사용자 요청, 탭 뒤 회색 막대는 뺐다).
   고른 탭만 아래 미리보기 칸과 같은 색으로 이어지고, 양 끝 아래가 안쪽으로 둥글게 휘어 칸과 붙는다(::before·::after).
   탭끼리는 구분선 대신 연한 그림자로 나눈다(2026-10-26 사용자 요청: 위 빨간 강조 선도 뺐다). 첫 탭은 미리보기 칸 왼쪽 끝에 붙인다.
   탭이 많으면 넘치지 않고 함께 줄어든다(Chrome처럼). 휴대폰 폭에서는 짧은 이름(.ais-car__short)을 쓴다 */
.ais-car__nav { display: none; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ais-car.is-ready .ais-car__nav { display: flex; }
/* 고르지 않은 탭은 낮고 옅은 카드(연한 그림자)로 뒤에 깔고, 고른 탭만 한 단 높게 미리보기 칸 색으로 이어 올린다.
   탭 높이는 모두 같고, 고르지 않은 탭을 아래로 6px 내려(transform) 줄 아래로 잘리게 한다. 높이를 바꾸면 매 프레임 배치를
   다시 계산해 움직임이 끊기므로, 오르내림은 transform으로만 한다(2026-10-26 사용자 요청: 탭 전환이 턱턱 걸림).
   줄의 위·양옆 여백은 그림자가 잘리지 않을 자리이고, 왼쪽 여백만큼 줄을 왼쪽으로 당겨 첫 탭은 미리보기 칸 왼쪽 끝에 그대로 맞춘다 */
.ais-car__pills { position: relative; flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 4px; margin-left: -8px; padding: 8px 8px 0; overflow: hidden; }
.ais-car__pills::-webkit-scrollbar { display: none; }
.ais-car__pills button { position: relative; flex: 0 1 180px; min-width: 0; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 12px; border: 0; border-radius: 10px 10px 0 0; background: #F8F9FA; box-shadow: 0 0 0 1px rgba(60, 64, 67, 0.04), 0 -1px 6px rgba(60, 64, 67, 0.07); font: inherit; font-size: 13px; font-weight: 500; letter-spacing: -0.02em; color: #5F6368; text-align: left; cursor: pointer; transform: translateY(6px); transition: transform 0.3s var(--yt-ease), background-color 0.3s, color 0.3s, box-shadow 0.3s; }
/* 내려간 탭은 보이는 부분 가운데에 글자가 오도록 안쪽을 3px 올린다 */
.ais-car__pills button > * { transform: translateY(-3px); transition: transform 0.3s var(--yt-ease); }
.ais-car__pills button[aria-current=true] > * { transform: none; }
.ais-car__pills button svg { width: 16px; height: 16px; }
.ais-car__pills .ais-ico-schema path { stroke: #9AA0A6; transition: stroke 0.3s; }
.ais-car__pills button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ais-car__short { display: none; }
.ais-car__pills button:hover { transform: translateY(4px); background-color: #FFFFFF; color: #202124; }
/* 고른 탭: 미리보기 칸 색으로 이어지고, 양 끝 아래가 탭 사이 틈(4px)만큼 안쪽 곡선으로 칸과 붙는다. 첫 탭이면 왼쪽은 칸 왼쪽 끝과 곧게 맞물린다 */
.ais-car__pills button[aria-current=true] { z-index: 1; transform: none; background-color: var(--ais-view-bg); box-shadow: 0 -2px 8px rgba(60, 64, 67, 0.08); font-weight: 600; color: #202124; }
.ais-car__pills button[aria-current=true] .ais-ico-schema path { stroke: var(--yt-red); }
.ais-car__pills button::before, .ais-car__pills button::after { content: ""; position: absolute; bottom: 0; width: 4px; height: 4px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.ais-car__pills button[aria-current=true]::before, .ais-car__pills button[aria-current=true]::after { opacity: 1; }
.ais-car__pills button:first-child::before { display: none; }
.ais-car__pills button::before { left: -4px; background: radial-gradient(circle at 0 0, transparent 3.5px, var(--ais-view-bg) 4px); }
.ais-car__pills button::after { right: -4px; background: radial-gradient(circle at 100% 0, transparent 3.5px, var(--ais-view-bg) 4px); }
.ais-car__arrows { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; padding-bottom: 6px; }
.ais-car__arrows button { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #1F1F1F; cursor: pointer; transition: background-color 0.2s; }
.ais-car__arrows button:hover { background: #F1F3F4; }
.ais-car__arrows button[disabled] { opacity: 0.3; cursor: default; background: transparent; }
.ais-car__arrows svg { width: 14px; height: 14px; }
/* 자동 넘김 캐러셀(.ais-car--auto)의 진행 막대·장면 제목: 휴대폰 폭에서만 보인다(아래 @media) */
.ais-car__dots, .ais-slide__title { display: none; }
@keyframes ais-fill { from { transform: scaleX(0); } to { transform: none; } }
/* 장면 묶음은 패널 안쪽 여백 밖까지 넓혀 넘기고, 장면 안쪽 여백으로 내용 자리를 맞춘다 */
.ais-car__track { position: relative; display: flex; align-items: flex-start; margin: 0 -40px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; transition: height 0.35s var(--yt-ease); }
.ais-car__track::-webkit-scrollbar { display: none; }
.ais-slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 0 40px; scroll-snap-align: start; }

/* 장면 위 칸: 미리보기(회색 바탕). 위 탭과 이어지도록 위 모서리는 각지게, 아래만 둥글게 둔다 */
.ais-view { padding: 18px 24px 26px; border-radius: 12px; background: var(--ais-view-bg); }
.ais-car--multi.is-ready .ais-view { border-radius: 0 12px 12px 12px; }
.ais .ais-view__cap { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: #5F6368; }
.ais .ais-view__cap::before { content: "\25CF"; margin-right: 6px; font-size: 9px; vertical-align: 2px; color: var(--yt-red); }
/* 코드가 만든 부분 표시: 빨간 점선 + 오른쪽 위 꼬리표(마크업 이름).
   테마 CSS가 모든 요소의 outline을 지우므로(* { outline: 0 }) 점선은 outline 대신 ::before 테두리로 그린다 */
.ais-hl { position: relative; }
.ais-hl::before { content: ""; position: absolute; inset: -4px; border: 1.5px dashed rgba(194, 58, 49, 0.8); pointer-events: none; }
.ais-hl::after { content: attr(data-tag); position: absolute; z-index: 1; top: -15px; right: -6px; padding: 1px 6px; background: var(--yt-red); font: 500 11px/1.5 var(--ais-mono); letter-spacing: 0; white-space: nowrap; color: #FFFFFF; }

/* 미리보기 공통: 글꼴은 페이지와 같은 Pretendard, 자간만 화면 글자 크기에 맞춰 덜 좁힌다 */
.ais-g, .ais-n, .ais-k { font-family: inherit; letter-spacing: -0.02em; border-radius: 10px; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12), 0 4px 14px rgba(60, 64, 67, 0.08); }
.ais-q__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ais-g svg, .ais-n svg { flex: 0 0 auto; }

/* Google 검색 결과 */
.ais-g { padding-bottom: 20px; background: #FFFFFF; color: #1F1F1F; }
.ais-g__top { display: flex; align-items: center; gap: 22px; padding: 18px 20px 0; }
.ais-g__logo { width: 76px; height: 26px; }
.ais-g__q { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px 0 20px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28); font-size: 15px; white-space: nowrap; }
.ais-g__q .ais-q__clear { width: 18px; height: 18px; color: #70757A; }
.ais-q__bar { flex: 0 0 1px; height: 26px; background: #DADCE0; }
.ais-g__q .ais-q__mic, .ais-g__q .ais-q__lens { width: 22px; height: 22px; }
.ais-g__q .ais-q__search { width: 20px; height: 20px; color: #4285F4; }
.ais-g__me { display: flex; align-items: center; gap: 16px; color: #5F6368; }
.ais-g__me svg { width: 20px; height: 20px; }
.ais-g__avatar { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #7B3FA0; font-style: normal; font-size: 14px; font-weight: 500; color: #FFFFFF; }
.ais-g__tabs { display: flex; justify-content: space-between; gap: 20px; padding: 14px 20px 0 118px; border-bottom: 1px solid #EBEBEB; font-size: 13px; white-space: nowrap; color: #5F6368; }
.ais .ais-g__tabs ul { min-width: 0; display: flex; gap: 22px; overflow: hidden; }
.ais-g__tabs li, .ais-g__tabs span { flex: 0 0 auto; padding-bottom: 10px; }
.ais-g__tabs .is-on { font-weight: 700; color: #1F1F1F; box-shadow: inset 0 -3px 0 #1F1F1F; }
.ais-g__res { position: relative; padding: 20px 20px 0 118px; }
.ais-g__site { display: flex; align-items: center; gap: 10px; }
.ais-g__site > i { flex: 0 0 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid #DADCE0; border-radius: 50%; background: #F1F3F4; font-style: normal; font-size: 11px; font-weight: 700; color: var(--yt-red); }
.ais-g__site > span { min-width: 0; display: flex; flex-direction: column; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; color: #4D5156; }
.ais-g__site b { font-size: 14px; font-weight: 500; color: #1F1F1F; }
.ais-g__site em { margin-left: auto; font-style: normal; color: #70757A; }
.ais .ais-g__title { width: fit-content; max-width: 100%; margin-top: 8px; font-size: 20px; line-height: 1.3; color: #1A0DAB; }
.ais .ais-g__desc { width: fit-content; max-width: 100%; margin-top: 10px; font-size: 14px; line-height: 1.6; color: #474747; }
.ais-g__desc b { font-weight: 700; color: #1F1F1F; }
.ais .ais-g__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: 14px; color: #1A0DAB; }
.ais .ais-g__faq { margin-top: 14px; border-top: 1px solid #EBEBEB; }
.ais-g__faq li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid #EBEBEB; font-size: 14px; color: #1F1F1F; }
.ais-g__faq li::after { content: "\2304"; color: #70757A; }
/* 경로 표시: 적용 전(흐리게) / 적용 후 */
.ais-g__state { display: inline-block; margin-bottom: 10px; padding: 2px 8px; border-radius: 4px; background: #EEEEEE; font-size: 11px; font-weight: 600; line-height: 1.5; color: #666666; }
.ais-g__state.is-after { background: #FBE9E7; color: var(--yt-red); }
.ais-g__res--before { padding-bottom: 18px; border-bottom: 1px dashed #DADCE0; }
.ais-g__res--before .ais-g__site, .ais-g__res--before .ais-g__title { opacity: 0.55; }
/* 칼럼 결과: 날짜 + 오른쪽 썸네일 */
.ais-g__res--thumb { display: flex; align-items: flex-start; gap: 18px; }
.ais-g__res--thumb > div { flex: 1; min-width: 0; }
.ais-g__date { color: #70757A; }
.ais-g__thumb, .ais-g__cimg { flex: 0 0 96px; height: 96px; margin-top: 30px; border-radius: 8px; background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.55), transparent 45%), linear-gradient(135deg, #E9D5CF, #B98B80); }
/* 캐러셀(목록) 결과: 같은 사이트 글 카드가 옆으로 이어지고 오른쪽 끝은 잘린다 */
.ais .ais-g__carhead { font-size: 18px; font-weight: 500; line-height: 1.4; }
.ais-g__car { margin-top: 14px; }
.ais .ais-g__car ol { display: flex; gap: 12px; overflow: hidden; }
.ais-g__car li { flex: 0 0 168px; display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; border: 1px solid #DADCE0; border-radius: 10px; overflow: hidden; }
.ais-g__cimg { flex: 0 0 auto; height: 84px; margin: 0; border-radius: 0; }
.ais-g__car li:nth-child(2) .ais-g__cimg { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 45%), linear-gradient(135deg, #DCE3EA, #8FA3B5); }
.ais-g__car li:nth-child(3) .ais-g__cimg { background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.5), transparent 45%), linear-gradient(135deg, #E6E0D5, #B3A48C); }
.ais-g__car li:nth-child(4) .ais-g__cimg { background: linear-gradient(135deg, #E3D9DC, #A88A92); }
.ais-g__car b { padding: 0 12px; font-size: 14px; font-weight: 500; line-height: 1.4; color: #1A0DAB; }
.ais-g__car small { margin-top: auto; padding: 0 12px; font-size: 12px; color: #70757A; }
.ais-g__carnext { position: absolute; z-index: 1; top: 50%; right: -8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; margin-top: -10px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28); color: #1F1F1F; }
.ais-g__carnext svg { width: 14px; height: 14px; }
/* 다른 사이트 결과(흐린 막대) */
.ais-g__ghost { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 0 118px; opacity: 0.7; }
.ais-g__ghost i { display: block; width: 90%; height: 9px; border-radius: 5px; background: #ECEDEF; }
.ais-g__ghost i:first-child { width: 32%; }
.ais-g__ghost i:nth-child(2) { width: 62%; height: 14px; background: #DDE3F3; }
/* 병원 정보 패널(MedicalClinic): 실제 화면처럼 왼쪽 일반 결과 옆 오른쪽 칸에 둔다.
   꼬리표가 잘리지 않게 overflow를 쓰지 않고 사진 모서리만 둥글린다 */
.ais-g__split { display: flex; align-items: flex-start; gap: 24px; padding: 20px 20px 0 118px; }
.ais-g__split .ais-g__ghost--list { flex: 1; min-width: 0; padding: 4px 0 0; }
.ais-g__ghost--list i:nth-child(3n+1) { width: 32%; height: 9px; background: #ECEDEF; }
.ais-g__ghost--list i:nth-child(3n+2) { width: 62%; height: 14px; background: #DDE3F3; }
.ais-g__ghost--list i:nth-child(3n) { width: 90%; height: 9px; margin-bottom: 18px; background: #ECEDEF; }
.ais-kp { flex: 0 0 340px; max-width: 100%; border: 1px solid #DADCE0; border-radius: 8px; }
.ais-kp__photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2px; height: 104px; }
.ais-kp__photos i { background: linear-gradient(160deg, #DCE1E6, #AEB7C0); }
.ais-kp__photos i:first-child { border-radius: 7px 0 0 0; }
.ais-kp__photos i:nth-child(2) { background: linear-gradient(160deg, #E8E2DA, #C5BAAE); }
.ais-kp__photos i:last-child { border-radius: 0 7px 0 0; background: linear-gradient(160deg, #DFE7E9, #B3C3C7); }
.ais .ais-kp__name { padding: 14px 18px 0; font-size: 24px; line-height: 1.3; }
.ais .ais-kp__type { padding: 2px 18px 0; font-size: 14px; color: #70757A; }
.ais .ais-kp__acts { display: flex; gap: 22px; padding: 14px 18px 16px; border-bottom: 1px solid #EBEBEB; }
.ais-kp__acts li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #0B57D0; }
.ais-kp__acts i { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid #DADCE0; border-radius: 50%; }
.ais-kp__acts svg { width: 17px; height: 17px; }
.ais-kp__info { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px 18px 18px; font-size: 14px; line-height: 1.5; }
.ais-kp__info div { display: flex; gap: 6px; }
.ais-kp__info dt { flex: 0 0 auto; font-weight: 700; }
.ais-kp__info dt::after { content: ":"; }
.ais-kp__info dd { margin: 0; color: #474747; }
.ais-kp__info em { font-style: normal; color: #188038; }

/* NAVER 검색 결과 */
.ais-n { padding-bottom: 14px; background: #F5F6F8; color: #222222; }
.ais-n__top { display: flex; align-items: center; gap: 18px; padding: 18px 20px 0; border-radius: 10px 10px 0 0; background: #FFFFFF; }
.ais-n__logo { width: 88px; height: 17px; }
.ais-n__q { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 14px 0 18px; border: 2px solid #03C75A; border-radius: 10px; font-size: 17px; font-weight: 600; white-space: nowrap; }
.ais-n__q .ais-q__clear { width: 20px; height: 20px; }
.ais-n__q .ais-q__kbd { width: 22px; height: 22px; padding-left: 14px; border-left: 1px solid #E3E5E8; box-sizing: content-box; color: #9AA0A6; }
.ais-n__q .ais-q__search { width: 24px; height: 24px; color: #03C75A; }
.ais .ais-n__tabs { display: flex; gap: 22px; padding: 14px 20px 0 118px; border-bottom: 1px solid #E3E5E8; background: #FFFFFF; overflow: hidden; font-size: 14px; white-space: nowrap; color: #555555; }
.ais-n__tabs li { flex: 0 0 auto; padding-bottom: 11px; }
.ais-n__tabs .is-on { font-weight: 700; color: #000000; box-shadow: inset 0 -3px 0 #03C75A; }
.ais-n__box { margin: 12px 12px 0 106px; padding: 18px 18px 20px; border-radius: 12px; background: #FFFFFF; }
.ais .ais-n__sec { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #EBEBEB; font-size: 16px; font-weight: 700; }
.ais-n__site { display: flex; align-items: center; gap: 8px; }
.ais-n__site > i { flex: 0 0 24px; height: 24px; display: flex; align-items: center; justify-content: center; border: 1px solid #E3E5E8; border-radius: 50%; font-style: normal; font-size: 10px; font-weight: 700; color: var(--yt-red); }
.ais-n__site > span { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: 12px; color: #767678; }
.ais-n__site b { font-size: 14px; font-weight: 600; color: #222222; }
.ais .ais-n__title { width: fit-content; max-width: 100%; margin-top: 10px; font-size: 18px; font-weight: 600; line-height: 1.4; color: #0C43B7; }
.ais .ais-n__desc { width: fit-content; max-width: 100%; margin-top: 10px; font-size: 14px; line-height: 1.6; color: #404040; }
.ais-n__desc b { color: #000000; }
.ais .ais-n__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ais-n__links li { padding: 5px 10px; border: 1px solid #E3E5E8; border-radius: 4px; font-size: 13px; color: #333333; }
.ais-n .ais-g__ghost { padding: 20px 0 0; }

/* 카카오톡 링크 공유 미리보기 */
.ais-k { padding-bottom: 24px; background: #BACEE0; color: #000000; }
.ais-k__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 15px; }
.ais-k__head svg { width: 18px; height: 18px; }
.ais-k__msg { display: flex; align-items: flex-end; gap: 8px; padding: 8px 16px 0; }
/* 기본 프로필: 둥근 사각형 위 흰 사람 모양 */
.ais-k__pf { flex: 0 0 40px; width: 40px; height: 40px; align-self: flex-start; }
.ais-k__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ais-k__name { font-size: 13px; color: #3C4A57; }
.ais .ais-k__bubble { width: fit-content; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: #FFFFFF; font-size: 14px; line-height: 1.5; }
.ais-k__card { width: 290px; max-width: 100%; border-radius: 10px; background: #FFFFFF; }
.ais-k__img { height: 150px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 16px; border-radius: 10px 10px 0 0; background: radial-gradient(circle at 82% 18%, rgba(194, 58, 49, 0.65), transparent 55%), linear-gradient(135deg, #2B2C31, #0B0B0C); color: #FFFFFF; }
.ais-k__img span { font-size: 12px; opacity: 0.7; }
.ais-k__img b { font-size: 19px; }
.ais-k__img.ais-hl::before { inset: 4px; border-color: rgba(255, 255, 255, 0.7); }
.ais-k__img.ais-hl::after { top: 8px; right: 8px; }
.ais-k__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 14px 14px 14px; }
.ais-k__txt strong { font-size: 14px; line-height: 1.4; }
.ais-k__txt span { font-size: 13px; color: #666666; }
.ais-k__txt small { font-size: 12px; color: #999999; }
/* 제목·설명 줄이 붙어 있어 꼬리표가 겹치므로, 카드 오른쪽 바깥에 나란히 둔다 */
.ais-k__txt .ais-hl::after { top: 50%; right: auto; left: calc(100% + 14px); transform: translateY(-50%); }
.ais-k__time { flex: 0 0 auto; font-size: 11px; color: #556677; }

/* 칼럼 글 미리보기: 병원 홈페이지 칼럼 상세 화면. 위 바(뒤로·제목·공유)는 그림일 뿐 기능이 없고 상자 맨 위에 붙어 따라온다.
   본문 부품은 칼럼 디자인 시스템 Editorial 포맷(굵은 윗선 상자·짧은 빨간 선 소제목·01 번호 목차·따옴표 인용)을 이 페이지 빨강으로 맞췄다.
   글이 길어 상자 안에서 스크롤한다. 오른쪽 위 꼬리표(data-mark)는 블록의 역할이다 */
.ais-col { --ais-col-red: #A52F27; --ais-col-line: #EADAD7; --ais-col-soft: #FBF3F2; --ais-col-alt: #F9F7F4; max-height: 540px; overflow-y: auto; overscroll-behavior: contain; border-radius: 10px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12), 0 4px 14px rgba(60, 64, 67, 0.08); font-size: 15px; line-height: 1.8; letter-spacing: -0.02em; color: #333333; }
.ais-col svg { flex: 0 0 auto; }
.ais-col img { display: block; max-width: 100%; height: auto; }
.ais-col [data-mark] { position: relative; }
/* 꼬리표는 고정폭 글꼴이면 한글 띄어쓰기가 넓게 벌어져 페이지 글꼴로 쓴다 */
.ais-col [data-mark]::after { content: attr(data-mark); position: absolute; z-index: 1; top: -11px; right: 12px; padding: 1px 8px; background: var(--yt-red); font-size: 11px; font-weight: 600; line-height: 1.6; letter-spacing: -0.02em; color: #FFFFFF; }
/* 위 바: 뒤로·글 제목·공유. 상자 안을 스크롤해도 맨 위에 붙어 있다 */
.ais-col__bar { position: sticky; z-index: 2; top: 0; border-bottom: 1px solid #EEEEEE; background: #FFFFFF; }
.ais-col__sub { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: #333333; }
.ais-col__sub svg { width: 18px; height: 18px; }
.ais-col__sub b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 13px; font-weight: 700; }
.ais-col__page { padding: 28px 28px 32px; }
/* 제목·날짜 줄: 위는 진한 선, 아래는 옅은 선 */
.ais-col__titlebar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 6px; border-top: 1px solid #555555; border-bottom: 1px solid #E5E1DB; }
.ais .ais-col__h1 { font-size: 17px; font-weight: 700; line-height: 1.45; letter-spacing: -0.03em; color: #111111; }
.ais-col__date { flex: 0 0 auto; font-size: 12px; font-variant-numeric: tabular-nums; color: #999999; }
/* 본문 */
.ais-col__body { max-width: 640px; margin: 0 auto; padding-top: 20px; }
.ais .ais-col__byline { font-size: 13px; color: #777777; }
.ais-col__byline span { margin-right: 5px; font-size: 12px; font-weight: 700; color: var(--ais-col-red); }
.ais-col__byline i { margin: 0 8px; font-style: normal; color: #CCCCCC; }
.ais-col .ais-col__hero { width: 100%; margin-top: 14px; border-radius: 8px; }
.ais .ais-col__sum { margin-top: 24px; padding: 18px 2px 20px; border-top: 2px solid var(--ais-col-red); border-bottom: 1px solid var(--ais-col-line); }
.ais-col__sum strong, .ais-col__toc strong, .ais-col__note strong { font-size: 14px; letter-spacing: 0.02em; color: var(--ais-col-red); }
.ais .ais-col__sum p { margin-top: 4px; }
.ais .ais-col__p { margin-top: 16px; }
.ais-col__p em { font-style: normal; font-weight: 700; color: var(--ais-col-red); }
.ais-col__p b { font-weight: 700; color: #111111; }
.ais-col__p mark { padding: 0 3px; background: #F6DCD8; font-weight: 600; color: #111111; }
/* 인용: 옅은 바탕 + 큰 따옴표. 주의 문장은 더 붉은 바탕 */
.ais .ais-col__quote { position: relative; margin-top: 18px; padding: 16px 18px 16px 44px; background: var(--ais-col-soft); font-size: 14px; font-weight: 600; color: #222222; }
.ais-col__quote::before { content: "\201C"; position: absolute; top: 8px; left: 15px; font-size: 30px; font-weight: 800; line-height: 1; color: var(--ais-col-red); }
.ais .ais-col__quote.is-warn { background: #FFF0EE; }
.ais-col__quote.is-warn::before { content: "!"; top: 15px; left: 19px; font-size: 18px; color: var(--yt-red); }
/* 목차: 01 번호(하위 항목은 번호 없이 들여쓴다) */
.ais .ais-col__toc { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--ais-col-line); background: var(--ais-col-alt); }
.ais .ais-col__toc ol { margin-top: 6px; counter-reset: ais-toc; }
.ais-col__toc li { display: grid; grid-template-columns: 2em minmax(0, 1fr); column-gap: 8px; align-items: baseline; padding: 4px 4px; font-size: 14px; color: #333333; }
.ais-col__toc li::before { content: counter(ais-toc, decimal-leading-zero); counter-increment: ais-toc; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ais-col-red); }
.ais-col__toc li.is-sub { font-size: 13px; color: #8A8A8A; }
.ais-col__toc li.is-sub::before { content: ""; counter-increment: none; }
/* 소제목: 짧은 빨간 선 + 아래 옅은 선(h2) / 빨간 글자(h3) */
.ais .ais-col__h2 { margin-top: 36px; padding-bottom: 10px; border-bottom: 1px solid var(--ais-col-line); font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: -0.03em; color: #111111; }
.ais-col__h2::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 12px; background: var(--ais-col-red); }
.ais .ais-col__h3 { margin-top: 22px; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ais-col-red); }
/* 번호 카드 · 단계: 맨 위만 굵은 빨간 선, 사이는 옅은 선 */
.ais .ais-col__cards, .ais .ais-col__steps { margin-top: 14px; }
.ais-col__cards li, .ais-col__steps li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--ais-col-line); background: var(--ais-col-alt); }
.ais-col__cards li:first-child, .ais-col__steps li:first-child { border-top: 2px solid var(--ais-col-red); }
.ais-col__cards i { flex: 0 0 auto; font-style: normal; font-size: 18px; font-weight: 800; line-height: 1.4; letter-spacing: 0.04em; color: var(--ais-col-red); }
.ais-col__steps i { flex: 0 0 26px; height: 26px; display: flex; align-items: center; justify-content: center; margin-top: 1px; border: 1px solid var(--ais-col-red); border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; color: var(--ais-col-red); }
.ais-col__cards div, .ais-col__steps div { display: flex; flex-direction: column; font-size: 14px; line-height: 1.7; }
.ais-col__cards b, .ais-col__steps b { font-size: 15px; color: var(--ais-col-red); }
/* 본문 사진 */
.ais .ais-col__fig { margin-top: 20px; }
.ais-col__fig img { width: 100%; border-radius: 8px; }
.ais .ais-col__fig p { margin-top: 8px; font-size: 12px; text-align: center; color: #999999; }
/* 체크 목록 · 핵심 정리 */
.ais .ais-col__check { margin-top: 16px; padding: 14px 20px; border-top: 2px solid var(--ais-col-red); background: var(--ais-col-alt); }
.ais-col__check li { position: relative; padding: 3px 0 3px 18px; font-size: 14px; }
.ais-col__check li::before { content: "\2013"; position: absolute; left: 0; font-weight: 700; color: var(--ais-col-red); }
.ais .ais-col__note { margin-top: 12px; padding: 16px 20px; border-top: 2px solid var(--ais-col-red); background: var(--ais-col-soft); }
.ais .ais-col__note p { margin-top: 2px; font-size: 14px; }
/* 표 */
.ais-col__table { width: 100%; margin-top: 16px; border-collapse: collapse; border-top: 2px solid var(--ais-col-red); border-bottom: 1px solid var(--ais-col-line); font-size: 14px; }
.ais-col__table th { padding: 11px 14px; background: var(--ais-col-soft); font-weight: 700; text-align: left; color: var(--ais-col-red); }
.ais-col__table td { padding: 11px 14px; border-top: 1px solid var(--ais-col-line); }
.ais-col__table td:first-child { width: 30%; font-weight: 600; color: #222222; }
/* FAQ */
.ais .ais-col__faq { margin: 14px 0 0; }
.ais-col__faq div { padding: 14px 18px; border-top: 1px solid var(--ais-col-line); background: var(--ais-col-alt); }
.ais-col__faq div:first-child { border-top: 2px solid var(--ais-col-red); }
.ais-col__faq dt { font-weight: 700; color: #111111; }
.ais-col__faq dt::before { content: "Q."; margin-right: 8px; color: var(--ais-col-red); }
.ais-col__faq dd { margin: 4px 0 0; padding-left: 1.6em; font-size: 14px; color: #555555; }
/* 상담 안내: 가운데 인용 문장 + 버튼 */
.ais-col__cta { margin-top: 32px; padding: 26px 20px; border: 1px solid #E9C6C2; border-radius: 10px; background: var(--ais-col-soft); text-align: center; }
.ais .ais-col__cta p { font-size: 17px; font-weight: 700; line-height: 1.55; letter-spacing: -0.03em; color: var(--ais-col-red); }
.ais-col__cta span { display: inline-block; margin-top: 14px; padding: 9px 24px; border-radius: 4px; background: var(--ais-col-red); box-shadow: 0 8px 20px rgba(165, 47, 39, 0.25); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: #FFFFFF; }
/* 작성 의료진 */
.ais-col__doc { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 20px; border: 1px solid #ECE6E0; border-radius: 10px; background: #FFFFFF; }
.ais-col__avatar { flex: 0 0 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ais-col-soft); font-size: 20px; font-weight: 700; color: var(--ais-col-red); }
.ais-col__doc small { display: block; font-size: 11px; color: #999999; }
.ais-col__doc b { display: block; font-size: 15px; font-weight: 700; line-height: 1.5; color: #111111; }
.ais .ais-col__doc p { font-size: 13px; color: #666666; }
.ais-col__doc span:not(.ais-col__avatar) { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--ais-col-red); }
.ais-col__ref { margin-top: 16px; padding: 14px 16px; background: var(--ais-col-alt); font-size: 12px; line-height: 1.6; color: #888888; }
.ais-col__ref b { color: #555555; }
.ais .ais-col__ref p { margin-top: 2px; }
/* 장면 아래 칸: 코드 편집기. 줄 번호 + 색칠한 코드, 줄마다 왼쪽부터 써지듯 나타난다 */
.ais-editor { border-radius: 12px; overflow: hidden; background: #16171A; color: #E6E6E6; }
.ais-editor__bar { display: flex; background: #0F1012; }
.ais-editor__file { padding: 9px 18px; border-top: 2px solid var(--yt-red); background: #16171A; font-family: var(--ais-mono); font-size: 12px; letter-spacing: 0; color: #D8D8D8; }
.ais-editor__code { padding: 16px 0 20px; overflow-x: auto; counter-reset: ais-line; }
.ais .ais-editor__code li { counter-increment: ais-line; display: flex; padding: 0 18px 0 0; font-family: var(--ais-mono); font-size: 14px; line-height: 1.85; letter-spacing: 0; white-space: pre; }
.ais-editor__code li::before { content: counter(ais-line); flex: 0 0 48px; padding-right: 18px; text-align: right; color: #5C6067; }
.ais-editor__code code { padding-left: calc(var(--ind, 0) * 1ch); font: inherit; }
/* 마지막 줄 끝 커서 */
.ais-editor__code li:last-child code::after { content: ""; display: inline-block; width: 8px; height: 1.1em; margin-left: 2px; vertical-align: -0.2em; background: var(--ais-c-tag); animation: yt-blink 1s steps(1) infinite; }
@keyframes ais-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ── processing of STARDOC: 결과물 파일 카드 4장(위 단계 4칸과 같은 열) ── */
.ais-files { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ais-file { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 22px; background: #FFFFFF; transition: transform 0.25s var(--yt-ease), box-shadow 0.25s; }
.ais-file:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1); }
.ais-file__ico { width: 34px; height: 41px; margin-bottom: 14px; }
.ais-file__step { font-weight: 500; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yt-red); }
.ais-file__name { font-size: 22px; font-weight: 700; line-height: 1.35; }
.ais .ais-file__text { font-weight: 300; font-size: 15px; line-height: 1.6; color: #444444; }
.ais-file__path { margin-top: auto; padding-top: 14px; border-top: 1px solid #E5E5E5; font-family: var(--ais-mono); font-size: 13px; letter-spacing: 0; color: #8A8A8A; }
.ais-file__path::before { content: "~/stardoc/"; color: #B5B5B5; }

/* FAQ 답이 여러 문단일 때 */
.ais-faq__a p + p { margin-top: 12px; }

@media (prefers-reduced-motion: no-preference) {
  /* 코드 띠: 같은 줄 4개 중 절반 길이만큼 흐르고 처음으로 돌아온다 */
  .ais-marquee__track { animation: ais-marquee 90s linear infinite; }
  /* 코드 편집기: 보이는 장면(.is-cur)의 줄이 차례로 써진다. 탭을 바꾸면(hidden이 풀리며) 다시 시작하고,
     캐러셀을 넘기면(ai-seo.js가 .is-cur를 옮기면) 새 장면에서 다시 시작한다. 넘기는 동안 다음 장면 코드는 비워 둔다.
     스크롤 등장(youtube.js)을 쓰면 패널 묶음이 화면에 들어온 뒤(.is-in)에 시작한다 */
  .ais-editor__code code { display: inline-block; }
  .ais-slide.is-cur .ais-editor__code code { animation: ais-type 0.45s steps(28, end) both; animation-delay: calc(var(--i) * 0.16s + 0.15s); }
  .ais-car.is-ready .ais-slide:not(.is-cur) .ais-editor__code code, .yt-anim .ais-demo__panels:not(.is-in) .ais-editor__code code { animation: none; clip-path: inset(0 100% 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ais .yt-eyebrow strong::after, .ais-editor__code li:last-child code::after { animation: none; }
  .ais-car__track, .ais-car__pills button, .ais-car__pills button > *, .ais-car__pills button::before, .ais-car__pills button::after, .ais-car__dots button::after { transition: none; }
}

@media (max-width: 1024px) {
  .ais-hero .yt-hero__copy { flex-basis: 100%; }
  .ais-hero { --ais-cx: 50%; --ais-cy: 78%; }
  .ais-sec--contact.yt-sec--photo::before { background: rgba(0, 0, 0, 0.9); }
  /* make it CLEAR: 탭은 패널 위 가로 세 칸으로 */
  .ais-demo { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ais-tabs { position: static; flex-direction: row; border-top: 0; }
  .ais-tabs button { flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px 8px; border: 1px solid var(--yt-line); font-size: 18px; text-align: center; }
  .ais-tabs button + button { border-left: 0; }
  .ais-tabs button i { padding-top: 0; }
  .ais-tabs button span { align-items: center; }
  .ais-tabs button[aria-selected=true] { box-shadow: inset 0 -3px 0 var(--yt-red); }
  .ais-demo__title { font-size: 22px; }
  .ais .ais-demo__text { font-size: 15px; }
  .ais-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .ais .ais-tag { font-size: 12px; }
  .ais-ctas .yt-btn { font-size: 16px; }
  .ais-op { font-size: 26px; }
  .ais-op span { transform: rotate(90deg); }
  .ais-items { gap: 48px; }
  .ais .ais-list { font-size: 15px; }
  /* 채팅 예시: 이미 휴대폰으로 보는 화면이므로 기기 틀·상태 표시줄·홈 막대를 빼고 채팅 창만 둔다.
     높이는 내용만큼(재생 중 높이가 흔들리지 않게 ai-seo.js가 처음 높이를 잡아 둔다) */
  .ais-hero__mock { flex-basis: 100%; max-width: none; }
  .ais-phone { max-width: none; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .ais-chat { height: auto; border-radius: 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
  .ais-phone__status, .ais-phone__home { display: none; }
  .ais-chat__head { padding: 14px 16px 8px; border-bottom: 1px solid #F0F0F0; font-size: 16px; }
  .ais-chat__body { overflow: visible; gap: 12px; padding: 16px 14px 14px; }
  .ais-chat__composer { margin: 0 10px 12px; }
  .ais .ais-chat__user { font-size: 14px; }
  .ais .ais-chat__lead { font-size: 15px; }
  .ais .ais-chat__text { font-size: 13px; }
  .ais-chat__src { margin-right: -14px; }
  .ais-chat__ph { font-size: 14px; }
  .ais-marquee__track span { padding: 12px 0 12px 24px; font-size: 13px; }
  .ais-marquee__track span::after { margin-left: 24px; }
  /* make it CLEAR: 흰 패널을 화면 양끝까지 넓혀(2026-10-26 사용자 요청: 휴대폰에서 글이 껴 보임)
     패널 → 회색 칸 → 검색 화면으로 겹친 여백을 줄이고, 그만큼 미리보기·코드 폭을 넓힌다 */
  .ais-tabs button { padding: 14px 4px; font-size: 16px; }
  .ais-tabs button small { display: none; }
  .ais-demo__panel { margin: 0 calc(-1 * var(--yt-gutter)); padding: 32px var(--yt-gutter) 28px; }
  .ais-demo__label { font-size: 13px; }
  .ais-demo__title { margin-top: 12px; font-size: 21px; line-height: 1.45; }
  .ais .ais-demo__text { margin-top: 10px; line-height: 1.75; }
  .ais .ais-demo__note { font-size: 13px; }
  .ais-car { margin-top: 24px; }
  /* 고르기 탭은 한 줄로 두고 넘치면 옆으로 민다. 화살표는 같은 줄 오른쪽(장수 표시는 탭이 대신한다) */
  .ais-car__nav { gap: 4px; }
  .ais-car__pills { padding: 6px 4px 0 8px; }
  .ais-car__pills button { flex: 0 1 auto; gap: 6px; height: 38px; padding: 0 7px 0 9px; font-size: 12px; }
  .ais-car__name, .ais-car__pills .ais-ico-schema { display: none; }
  .ais-car__short { display: block; }
  .ais-car__pills button svg { width: 14px; height: 14px; }
  .ais-car__arrows { gap: 0; padding-bottom: 4px; }
  .ais-car__arrows button { width: 28px; height: 28px; }
  /* 자동 넘김(스키마): 탭·화살표 대신 장면 수만큼 나눈 진행 막대. 지금 칸이 차오르면 다음 장면으로 넘어가고(ai-seo.js),
     지난 칸은 채워 둔다. 손가락으로 누르고 있거나(.is-hold) 화면 밖이면(.is-off) 멈춘다. 막대 칸은 눌러서 그 장면으로 갈 수 있게 위아래로 넓게 잡는다 */
  .ais-car--auto .ais-car__pills, .ais-car--auto .ais-car__arrows { display: none; }
  .ais-car--auto .ais-car__nav { margin-bottom: 6px; }
  .ais-car--auto .ais-car__dots { flex: 1; display: flex; gap: 4px; }
  .ais-car__dots button { position: relative; flex: 1 1 0; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
  .ais-car__dots button::before, .ais-car__dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: #E3E5E8; }
  /* 칸이 바뀔 때 끊기지 않게(2026-10-26 사용자 요청: 진행 막대 전환을 부드럽게): 앞으로 건너뛰면 지나친 칸이 차오르고,
     뒤로 가거나 처음으로 돌아가면 칸이 비워지며 줄어든다(transition, 채우던 칸은 멈춘 자리에서 이어서).
     새 칸은 장면이 넘어가는 동안(0.45s) 비워 둔 뒤 차오르기 시작한다(animation-delay) */
  .ais-car__dots button::after { background: var(--yt-red); transform: scaleX(0); transform-origin: left center; transition: transform 0.45s var(--yt-ease); }
  .ais-car__dots button.is-done::after, .ais-car__dots button[aria-current=true]::after { transform: none; }
  .ais-car.is-auto .ais-car__dots button[aria-current=true]::after { transform: scaleX(0); animation: ais-fill 6s linear 0.45s forwards; }
  .ais-car.is-auto .ais-car__dots button.is-leaving::after { transform: scaleX(var(--ais-from, 1)); animation: none; transition: none; }
  .ais-car.is-hold .ais-car__dots button::after, .ais-car.is-off .ais-car__dots button::after { animation-play-state: paused; }
  .ais-car--auto .ais-slide__title { display: flex; flex-direction: column; gap: 4px; }
  .ais-slide__title code { font-family: var(--ais-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--yt-red); }
  .ais-slide__title strong { font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -0.03em; color: #111111; }
  .ais-car--auto .ais-view__cap { display: none; }
  .ais-car--auto.is-ready .ais-view { border-radius: 12px; }
  .ais-car__track { margin: 0 calc(-1 * var(--yt-gutter)); }
  .ais-slide { gap: 12px; padding: 0 var(--yt-gutter); }
  .ais-view { padding: 12px 8px 14px; }
  .ais .ais-view__cap { margin: 0 0 10px 4px; font-size: 12px; }
  /* 검색 결과: 휴대폰에서는 결과를 검색창 아래 왼쪽에 바로 붙이고, 오른쪽 아이콘·마이크·렌즈는 뺀다 */
  .ais-g__top, .ais-n__top { gap: 12px; padding: 14px 12px 0; }
  .ais-g__logo { width: 58px; height: 20px; }
  .ais-n__logo { width: 66px; height: 13px; }
  .ais-g__me, .ais-q__bar, .ais-g__q .ais-q__mic, .ais-g__q .ais-q__lens, .ais-n__q .ais-q__kbd { display: none; }
  .ais-g__q { gap: 10px; height: 40px; padding: 0 12px 0 14px; font-size: 14px; }
  .ais-n__q { gap: 10px; height: 42px; padding: 0 10px 0 12px; font-size: 15px; }
  .ais-g__tabs, .ais .ais-n__tabs { gap: 16px; padding: 12px 12px 0; font-size: 12px; }
  .ais .ais-g__tabs ul { gap: 16px; }
  .ais-g__tabs > span { display: none; }
  .ais-g__res, .ais-g__split, .ais-g__ghost { padding-left: 12px; padding-right: 12px; }
  .ais .ais-g__title { font-size: 18px; }
  .ais-g__thumb { flex-basis: 72px; height: 72px; }
  .ais-g__split .ais-g__ghost--list { display: none; }
  .ais-kp { flex: 1 1 auto; }
  .ais .ais-kp__acts { gap: 14px; }
  .ais-g__car li { flex-basis: 140px; }
  .ais-n__box { margin: 10px 8px 0; padding: 16px 14px 18px; }
  .ais .ais-n__title { font-size: 17px; }
  .ais-k__msg { padding: 8px 12px 0; }
  .ais-k__time { display: none; }
  /* 좁은 화면은 카드 옆에 자리가 없어 꼬리표를 다시 위로 올리고, 줄 사이를 벌린다 */
  .ais-k__txt { gap: 22px; padding-top: 24px; }
  .ais-k__txt .ais-hl::after { top: -15px; right: -6px; left: auto; transform: none; }
  .ais-col { max-height: 480px; }
  .ais-col__sub { padding: 10px 12px; }
  .ais-col__page { padding: 22px 16px 24px; }
  .ais-col__titlebar { flex-direction: column; gap: 2px; padding: 12px 2px; }
  .ais .ais-col__h1 { font-size: 16px; }
  .ais .ais-col__h2 { font-size: 17px; }
  .ais-col__cards li, .ais-col__steps li, .ais-col__faq div { padding: 14px 16px; }
  .ais .ais-col__toc, .ais .ais-col__check, .ais .ais-col__note { padding-left: 16px; padding-right: 16px; }
  .ais-col__doc { padding: 16px; }
  /* 좁은 화면은 옆으로 밀어 보기 어려우므로 긴 줄을 접는다. 접힌 줄은 들여쓰기(최대 4칸)보다 2칸 더 들여 이어지는 줄임을 보이고,
     줄 간격은 좁히되 줄 번호 단위로 띄워 한 줄과 접힌 줄이 구분되게 한다 */
  .ais-editor__file { padding: 8px 14px; font-size: 11px; }
  .ais-editor__code { padding: 12px 0 16px; }
  .ais .ais-editor__code li { padding-right: 12px; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
  .ais .ais-editor__code li + li { margin-top: 5px; }
  .ais-editor__code code { min-width: 0; padding-left: calc((min(var(--ind, 0), 4) + 2) * 1ch); text-indent: -2ch; }
  .ais-editor__code li::before { flex-basis: 30px; padding-right: 10px; }
  /* 결과물 카드는 2열로 줄인다(한 줄씩 쌓으면 너무 길다). 파일 경로 앞부분은 뺀다 */
  .ais-files { gap: 10px; }
  .ais-file { padding: 18px 14px 14px; gap: 4px; }
  .ais-file__ico { width: 26px; height: 32px; margin-bottom: 8px; }
  .ais-file__step { font-size: 11px; letter-spacing: 0.1em; }
  .ais-file__name { font-size: 17px; }
  .ais .ais-file__text { font-size: 13px; }
  .ais-file__path { padding-top: 10px; font-size: 11px; }
  .ais-file__path::before { content: none; }
}
