/* 기사 카드뉴스: 뷰티 카드뉴스(beauty.css의 bz-*)를 그대로 쓰고, 기사 창 안에 맞게 여백·표지·수치 블록만 더한다. */
.article-cards{--bz-pink:#ff5c8a;--bz-violet:#734aff;margin:8px 0 34px}
.article-cards .bz-viewer{margin:0;max-width:none}
.article-cards .bz-prev{left:-14px}.article-cards .bz-next{right:-14px}
/* 표지 제목은 썸네일 문구(2~3줄)라 뷰티 표지보다 조금 작게, 그림은 오른쪽 위 */
.ac-viewer .bz-cover h3{font-size:calc(5.6cqw*var(--bz-fs,1) + (1rem - 16px)*.5);max-width:52cqw}
.ac-viewer .bz-cover .bz-lead{max-width:50cqw}
.ac-viewer .bz-cover .bz-art{width:38cqw;height:25.3cqw}
/* 본문 카드: 왼쪽 설명이 길면 글자를 조금 줄인다 */
.ac-viewer .bz-l-split .bz-lead{font-size:calc(1.7cqw*var(--bz-fs,1) + (1rem - 16px)*.5)}
.ac-viewer .bz-bullets li{font-size:calc(1.75cqw*var(--bz-fs,1) + (1rem - 16px)*.5)}
/* 사진 카드: 왼쪽에 인용 이미지(자르지 않고 원래 비율 그대로 테두리를 맞춤), 오른쪽에 제목·글머리표 */
.ac-viewer .bz-l-photo .bz-slide-inner{grid-template-columns:46% minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;column-gap:4cqw}
.ac-viewer .bz-l-photo .bz-slide-head{grid-column:2;grid-row:1}
.ac-viewer .bz-l-photo .bz-slide-body{grid-column:2;grid-row:2;align-self:start;margin-top:.6cqw}
.ac-viewer .bz-l-photo .bz-foot{grid-row:3;margin-top:2cqw}
.ac-viewer .bz-l-photo h3{font-size:calc(3.2cqw*var(--bz-fs,1) + (1rem - 16px)*.5)}
.ac-photo{grid-column:1;grid-row:1/3;align-self:center;justify-self:center;position:relative;margin:0;min-height:0;border:1px solid var(--ink);border-radius:1cqw;background:#efeee8;overflow:hidden;line-height:0}
/* 왼쪽 칸(약 41.9cqw)과 바닥글 위 높이(약 43cqw) 안에서 원래 비율대로 */
.ac-photo img{display:block;width:auto;height:auto;max-width:41.9cqw;max-height:43cqw;min-width:24cqw;object-fit:contain}
.ac-photo figcaption{position:absolute;left:0;bottom:0;max-width:calc(100% - 1.6cqw);margin:0 0 .8cqw .8cqw;padding:.35cqw .8cqw;border-radius:.5cqw;background:rgba(23,25,22,.78);color:#fff;font-size:calc(1.05cqw*var(--bz-fs,1) + (1rem - 16px)*.5);line-height:1.35;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 표지 사진(2026-11-27 편집장 의견 “연예인 따라하는 스크린샷”): mediaPlacements에서 cover 자리를 고른 원고만 표지 카드가 bz-cover bz-l-photo가 된다.
   형광 바탕은 그대로, 배치는 사진 카드와 같다(왼쪽 사진 원래 비율, 오른쪽 제목·소개를 세로 가운데). 사진 위에 제목을 겹치지 않는다. 사진이 없는 표지(bz-l-cover)는 바뀌지 않는다. */
.ac-viewer .bz-cover.bz-l-photo .bz-slide-head{grid-row:1/3}
.ac-viewer .bz-cover.bz-l-photo h3{font-size:calc(4.6cqw*var(--bz-fs,1) + (1rem - 16px)*.5);max-width:none}
.ac-viewer .bz-cover.bz-l-photo .bz-lead{max-width:none}
/* 영상 미리보기 사진(.is-video)에는 가운데 ▶를 두지 않는다. 눌러도 재생되지 않아 헷갈린다(2026-11-17). 영상이라는 표시는 figcaption의 '영상 ·'이 맡는다 */
/* 기사 안 재생(2026-11-27 편집장 질문 “밈에서는 밈을 넣을 수는 없나?”): 사진마다 inlinePlay를 켠 공식 유튜브 영상만 .yt-facade가 된다.
   처음에는 썸네일과 진짜 재생 단추(<button>, 이름 ‘영상 재생: 장면 설명’)만 있고, 누르면 media.js가 같은 틀에 플레이어를 넣는다. 틀 크기가 그대로라 카드가 움직이지 않는다.
   쇼츠(.is-vertical)는 세로 9:16 틀이다. 쇼츠 썸네일(1280×720)은 가운데 세로 장면 양옆이 흐린 채움이라, 틀을 채우면 실제 장면만 남는다. 끈 사진·예전 기사는 위 규칙 그대로다. */
.yt-facade{position:relative}
.yt-play{position:absolute;inset:0;z-index:1;display:grid;place-items:center;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;touch-action:manipulation}
.yt-play::before,.yt-play::after{content:'';grid-area:1/1}
.yt-play::before{width:clamp(48px,7.5cqw,76px);aspect-ratio:1;border-radius:50%;background:rgba(23,25,22,.8);box-shadow:0 0 0 2px #fff}
.yt-play::after{width:clamp(15px,2.3cqw,24px);aspect-ratio:.86;margin-left:clamp(4px,.6cqw,6px);background:#fff;clip-path:polygon(0 0,100% 50%,0 100%)}
.yt-play:hover::before{background:var(--ink,#171916);box-shadow:0 0 0 3px var(--lime,#dfff00)}
.yt-play:focus-visible{outline:3px solid var(--lime,#dfff00);outline-offset:-3px}
.yt-play:focus-visible::before{background:var(--ink,#171916);box-shadow:0 0 0 3px var(--lime,#dfff00)}
.yt-frame{position:absolute;inset:0;z-index:2;display:block;width:100%;height:100%;border:0;background:#000}
.yt-facade.is-playing .yt-play{display:none}
/* 재생 중에는 아래 왼쪽 ‘영상 · 크레딧’ 띠가 플레이어 조작부를 가리지 않게 숨긴다(크레딧은 플레이어의 채널 이름과 기사 아래 출처에 남는다). */
.ac-photo.yt-facade.is-playing figcaption{display:none}
.ac-photo.is-vertical{aspect-ratio:9/16;height:43cqw}
.ac-photo.is-vertical img{width:100%;height:100%;max-width:none;max-height:none;min-width:0;object-fit:cover}
/* 본문 그림(카드 생성기가 없을 때만 그린다): 플레이어와 같은 16:9·9:16 틀 */
.article-photo.yt-facade .yt-box{position:relative;aspect-ratio:16/9;background:#171916}
.article-photo.yt-facade.is-vertical .yt-box{aspect-ratio:9/16;width:min(100%,360px);margin:0 auto}
.article-photo.yt-facade .yt-box img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}
.article-photo.yt-facade.is-vertical .yt-box img{object-fit:cover}
/* 수치 블록 */
.ac-metrics{display:grid;gap:2.2cqw;margin:0}
.ac-metrics div{border-top:1px solid var(--ink);padding-top:1.4cqw}
.ac-metrics dt{font-size:calc(1.5cqw*var(--bz-fs,1) + (1rem - 16px)*.5);font-weight:800;margin:0 0 .6cqw}
.ac-metrics dd{margin:0;display:grid;gap:.6cqw}
.ac-metrics b{font-size:calc(4cqw*var(--bz-fs,1) + (1rem - 16px)*.5);line-height:1.05;font-weight:900;letter-spacing:-.04em}
.ac-metrics span{font-size:calc(1.4cqw*var(--bz-fs,1) + (1rem - 16px)*.5);line-height:1.5;color:#45473f}
@container (max-width:599px){
 .ac-viewer:not(:fullscreen) .bz-cover h3{font-size:calc(9cqw*var(--bz-fs,1) + (1rem - 16px)*.5);max-width:none}
 .ac-viewer:not(:fullscreen) .bz-cover .bz-lead{max-width:none}
 .ac-viewer:not(:fullscreen) .bz-cover .bz-art{width:auto;height:42cqw}
 .ac-viewer:not(:fullscreen) .bz-l-split .bz-lead{font-size:calc(3.7cqw*var(--bz-fs,1) + (1rem - 16px)*.5)}
 .ac-viewer:not(:fullscreen) .bz-bullets li{font-size:calc(3.5cqw*var(--bz-fs,1) + (1rem - 16px)*.5)}
 .ac-viewer:not(:fullscreen) .bz-l-photo h3{font-size:calc(6.4cqw*var(--bz-fs,1) + (1rem - 16px)*.5)}
 .ac-viewer:not(:fullscreen) .bz-cover.bz-l-photo h3{font-size:calc(9cqw*var(--bz-fs,1) + (1rem - 16px)*.5)}
 .ac-viewer:not(:fullscreen) .ac-photo{order:3;flex:none;align-self:center;border-radius:2cqw}
 .ac-viewer:not(:fullscreen) .ac-photo img{max-width:88cqw;max-height:104cqw;min-width:50cqw}
 /* 휴대폰 세로 틀: 카드 높이(화면 높이 − 위아래 막대)를 넘지 않게 폭 42cqw(375px 화면에서 약 158×280) */
 .ac-viewer:not(:fullscreen) .ac-photo.is-vertical{height:auto;width:42cqw}
 .ac-viewer:not(:fullscreen) .ac-photo.is-vertical img{max-width:none;max-height:none;min-width:0}
 .ac-viewer:not(:fullscreen) .bz-l-photo .bz-slide-body{order:4;margin-top:0}
 .ac-viewer:not(:fullscreen) .bz-l-photo .bz-slide-head{order:1}
 .ac-viewer:not(:fullscreen) .bz-l-photo .bz-foot{order:5;margin-top:auto}
 .ac-viewer:not(:fullscreen) .ac-photo figcaption{font-size:calc(2.5cqw*var(--bz-fs,1) + (1rem - 16px)*.5);padding:.8cqw 1.6cqw;margin:0 0 1.6cqw 1.6cqw;border-radius:1cqw}
 .ac-viewer:not(:fullscreen) .ac-metrics{gap:4cqw}
 .ac-viewer:not(:fullscreen) .ac-metrics div{padding-top:2.6cqw}
 .ac-viewer:not(:fullscreen) .ac-metrics dt{font-size:calc(3.2cqw*var(--bz-fs,1) + (1rem - 16px)*.5)}
 .ac-viewer:not(:fullscreen) .ac-metrics b{font-size:calc(7.6cqw*var(--bz-fs,1) + (1rem - 16px)*.5)}
 .ac-viewer:not(:fullscreen) .ac-metrics span{font-size:calc(3cqw*var(--bz-fs,1) + (1rem - 16px)*.5)}
}
/* 카드뉴스가 본문을 대신하는 기사 창(2026-11-15): 목차 칸 없이 출처·저장·이어 읽기만 가운데에 */
.reader-layout.cards-only{display:block;padding-top:0}
.reader-layout.cards-only .reader-column{margin:0 auto;max-width:760px}
/* 기사 창 전체 화면(2026-11-16 편집장 지시 “썸네일부터 카드 뉴스로 전체 화면 구성. 저장하기는 상단에 계속 노출”):
   창이 화면을 다 쓰고, 카드(첫 장은 썸네일)가 위 막대·넘김 막대를 뺀 높이에 맞춰 화면을 채운다. 출처·이어 읽기는 그 아래. */
#articleDialog{width:100%;max-width:none;height:100dvh;max-height:none;margin:0;border:0}
#articleDialog .reader-cards{margin:0;padding:18px 24px 26px;background:var(--paper)}
#articleDialog .reader-cards .bz-viewer:not(:fullscreen) :is(.bz-stage,.bz-controls){width:min(100%,calc((100dvh - 152px)*16/9));margin-left:auto;margin-right:auto}
#articleDialog .reader-layout.cards-only{padding-top:28px}
/* 위 막대의 저장하기: 늘 보이고, 저장하면 검게 바뀐다 */
.reading-toolbar .toolbar-save{background:var(--lime);border-color:var(--ink);color:var(--ink);font-weight:800}
.reading-toolbar .toolbar-save[data-saved="true"]{background:var(--ink);color:#fff}
/* 썸네일 카드: 사진이 카드를 채우고, 아래 어두운 그러데이션 위에 분류·제목·날짜 */
.ac-thumb-card{background:#171916}
.ac-thumb-inner{position:relative;height:100%;overflow:hidden}
.ac-thumb-media,.ac-thumb-media>*{position:absolute;inset:0;width:100%;height:100%;margin:0;border:0;aspect-ratio:auto}
.ac-thumb-media img,.ac-thumb-media svg{display:block;width:100%;height:100%}
.ac-thumb-media::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(23,25,22,0) 38%,rgba(23,25,22,.55) 66%,rgba(23,25,22,.9) 100%);pointer-events:none}
.ac-thumb-copy{position:absolute;left:4.4cqw;right:4.4cqw;bottom:3.8cqw;z-index:1;color:#fff}
.ac-thumb-card .ac-thumb-badge{display:inline-block;margin:0 0 1.5cqw;padding:.45cqw 1.1cqw;background:var(--lime);color:var(--ink);font-size:calc(1.35cqw*var(--bz-fs,1) + (1rem - 16px)*.5);line-height:1.4;font-weight:800;letter-spacing:-.02em}
.ac-thumb-card h2{margin:0 0 1.5cqw;max-width:74cqw;font-size:calc(3.5cqw*var(--bz-fs,1) + (1rem - 16px)*.5);line-height:1.32;font-weight:800;letter-spacing:-.045em;color:#fff;word-break:keep-all;text-wrap:balance}
.ac-thumb-card .ac-thumb-meta{display:flex;flex-wrap:wrap;gap:.4cqw 1.2cqw;margin:0;font-size:calc(1.3cqw*var(--bz-fs,1) + (1rem - 16px)*.5);line-height:1.5;color:rgba(255,255,255,.84)}
.ac-thumb-card .ac-thumb-meta span:first-child{font-weight:800;color:#fff}
.ac-thumb-card .ac-thumb-credit{position:absolute;top:1.6cqw;right:1.6cqw;z-index:1;max-width:60%;margin:0;padding:.35cqw .8cqw;border-radius:.5cqw;background:rgba(23,25,22,.72);color:#fff;font-size:calc(1.05cqw*var(--bz-fs,1) + (1rem - 16px)*.5);line-height:1.35;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@container (max-width:599px){
 .ac-viewer:not(:fullscreen) .ac-thumb-inner{display:flex;flex-direction:column;height:auto;min-height:100%}
 .ac-viewer:not(:fullscreen) .ac-thumb-media{position:relative;inset:auto;flex:none;aspect-ratio:4/3;height:auto}
 .ac-viewer:not(:fullscreen) .ac-thumb-media::after{background:linear-gradient(180deg,rgba(23,25,22,0) 70%,rgba(23,25,22,.6) 100%)}
 .ac-viewer:not(:fullscreen) .ac-thumb-copy{position:static;flex:1;display:flex;flex-direction:column;justify-content:center;padding:7cqw 6cqw 12cqw}
 .ac-viewer:not(:fullscreen) .ac-thumb-card .ac-thumb-badge{align-self:flex-start;font-size:calc(3.2cqw*var(--bz-fs,1) + (1rem - 16px)*.5);padding:1cqw 2.4cqw;margin-bottom:3.6cqw}
 .ac-viewer:not(:fullscreen) .ac-thumb-card h2{max-width:none;font-size:calc(7.4cqw*var(--bz-fs,1) + (1rem - 16px)*.5);line-height:1.36;margin-bottom:3.6cqw}
 .ac-viewer:not(:fullscreen) .ac-thumb-card .ac-thumb-meta{font-size:calc(3.3cqw*var(--bz-fs,1) + (1rem - 16px)*.5);gap:1cqw 3cqw}
 .ac-viewer:not(:fullscreen) .ac-thumb-card .ac-thumb-credit{top:2.4cqw;right:2.4cqw;font-size:calc(2.6cqw*var(--bz-fs,1) + (1rem - 16px)*.5);padding:.8cqw 1.8cqw;border-radius:1cqw}
}
@media(max-width:767px){
 #articleDialog .reader-cards{padding:0 0 20px}
 #articleDialog .reader-cards .bz-viewer{margin-left:0;margin-right:0}
 /* 카드가 화면 끝까지 차므로 넘김 단추는 카드 안쪽에(밖으로 나가면 가로 스크롤이 생긴다) */
 #articleDialog .reader-cards .bz-prev{left:6px}
 #articleDialog .reader-cards .bz-next{right:6px}
}
@media(max-width:760px){
 /* 휴대폰: 카드 한 장이 위 막대·넘김 막대·아래 도구 막대 사이를 채운다. 저장은 위 막대로 옮겨 아래 막대는 세 칸 */
 #articleDialog .reader-cards .bz-viewer:not(:fullscreen) .bz-slide{min-height:calc(100dvh - 190px - env(safe-area-inset-bottom))}
 .mobile-reader-tools{grid-template-columns:repeat(3,1fr)}
 .reading-toolbar .toolbar-save{min-height:44px;font-size:.875rem;padding:8px 12px}
}
/* Modern Web Guidance 점검 반영(2026-11-16 편집장 지시 “다 고쳐”) */
/* ‘가＋’: 카드 글자(cqw)에 배율을 곱한다(beauty.css·위 규칙의 calc(…*var(--bz-fs,1)…)). 데스크톱 16:9 카드는 큰 글자일 때만 높이를 내용에 맞춰 늘려 잘리지 않게 한다. */
#articleDialog.large-type{--bz-fs:1.2}
#articleDialog .bz-viewer:fullscreen{--bz-fs:1}
#articleDialog.large-type .reader-cards .bz-viewer:not(:fullscreen) .bz-track{align-items:stretch}
#articleDialog.large-type .reader-cards .bz-viewer:not(:fullscreen) .bz-slide{aspect-ratio:auto;min-height:calc(100dvh - 152px)}
@media(max-width:760px){#articleDialog.large-type .reader-cards .bz-viewer:not(:fullscreen) .bz-slide{min-height:calc(100dvh - 190px - env(safe-area-inset-bottom))}}
/* 읽기 진행 막대: 폭 대신 transform. 지원 브라우저는 기사 창 스크롤에 연동한 CSS 애니메이션이 그리고, 나머지는 editor.js가 프레임마다 한 번 바꾼다. */
#readingProgress{width:100%;transform:scaleX(0);transform-origin:0 50%}
@supports (animation-timeline:scroll()){
 @keyframes tz-read{from{transform:scaleX(0)}to{transform:scaleX(1)}}
 #readingProgress{animation:tz-read linear both;animation-timeline:scroll()}
}
/* 기사 창 안으로 옮겨 띄우는 알림: 위 막대·아래 도구 막대보다 위에 */
#articleDialog .toast{z-index:30}
/* 반응 시간(2026-11-28): 기사를 누른 첫 그림에는 카드 틀만, ‘가＋’를 누른 첫 그림에는 지금 카드만 그린다. 나머지는 editor.js(holdCards)가 다음 프레임부터 한 장씩 푼다. 틀의 크기·위치는 그대로(폭은 트랙, 높이는 최소 높이·늘이기). */
#articleDialog .reader-cards .bz-slide.ac-wait{content-visibility:hidden}