.ri-dialog {
  --ri-ink: #24241f;
  --ri-paper: #f5ebd4;
  --ri-red: #7f3426;
  --ri-shell: #14212b;
  --ri-light: #f8f3e6;
  --ri-muted: #bbc7cd;
  --ri-primary: #f1bf70;
  box-sizing: border-box;
  position: fixed;
  width: min(720px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #5a6b71;
  border-radius: 18px;
  background: var(--ri-shell);
  color: var(--ri-light);
  box-shadow: 0 24px 90px #090c10bf;
  color-scheme: dark;
  font: 400 16px/1.5 Pretendard, "Apple SD Gothic Neo", sans-serif;
}
.ri-dialog[data-mode="archive"], .ri-dialog[data-mode="article"] {
  border-radius: 8px;
  border-color: #a39072;
  color-scheme: light;
  background: var(--ri-paper);
  color: var(--ri-ink);
}
.ri-dialog[open] { animation: ri-arrive .18s cubic-bezier(.2,.75,.25,1) both; }
.ri-dialog[open][data-mode="article"] .ri-sheet,
.ri-dialog[open][data-mode="preview"] .ri-sheet { animation: ri-unfold .25s cubic-bezier(.16,1,.3,1) both; transform-origin: 50% 0; }
.ri-dialog::backdrop { background: #0b121bd1; }
.ri-dialog [hidden] { display: none; }
.ri-dialog * { box-sizing: border-box; }
.ri-scroll { max-height: calc(100dvh - 34px); overflow: auto; overscroll-behavior: contain; }
.ri-dialog :focus-visible { outline: 2px solid #629edf; outline-offset: 3px; }
.ri-dialog :where(h2[tabindex]):focus { outline: none; }
.ri-close, .ri-button { appearance: none; font: inherit; cursor: pointer; }
.ri-close {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #a2b2ba8c;
  border-radius: 50%;
  background: #12202be6;
  color: #fff5e0;
  font: 400 26px/1 system-ui, sans-serif;
}
.ri-close:hover { background: #263c4b; }
.ri-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #667582;
  border-radius: 8px;
  background: #213340;
  color: var(--ri-light);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
  word-break: keep-all;
}
.ri-button:hover { background: #304959; }
.ri-button:active, .ri-close:active { transform: scale(.98); }
.ri-button:disabled, .ri-close:disabled { cursor: wait; opacity: .65; }
.ri-button.ri-primary { background: var(--ri-primary); border-color: #f5d6a1; color: #332414; }
.ri-button.ri-primary:hover { background: #ffd696; }
.ri-button.ri-quiet { border-color: transparent; background: transparent; color: var(--ri-muted); }
.ri-button.ri-quiet:hover { background: #ffffff0c; color: var(--ri-light); }
.ri-dialog p, .ri-dialog h2, .ri-dialog dl, .ri-dialog dd, .ri-dialog figure { margin: 0; }
.ri-dialog[data-mode="fine"] {
  --ri-shell: #282026;
  width: min(640px, calc(100% - 24px));
  border-color: #a17e71;
}
.ri-fine-scene { display: block; width: 100%; height: auto; background: #33252a; }
.ri-fine { display: grid; gap: .75rem; }
.ri-fine .ri-kicker { color: #f2bb89; }
.ri-fine-line { color: #eadfe0; }
.ri-fine-details {
  display: grid;
  padding: .15rem .8rem;
  border: 1px solid #69585d;
  border-radius: 10px;
  background: #33282e;
  font-size: .9rem;
}
.ri-fine-details > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .75rem;
  align-items: baseline;
  padding: .55rem 0;
}
.ri-fine-details > div + div { border-top: 1px solid #69585d; }
.ri-fine-details dt { color: #e5ced4; }
.ri-fine-details dd { display: grid; justify-items: end; text-align: right; overflow-wrap: anywhere; }
.ri-fine-details dd strong { color: #ffd38d; }
.ri-fine-details dd span { color: #e5ced4; }
.ri-dialog .ri-answer-rule {
  margin: .65rem 0;
  color: inherit;
  font-size: .85rem;
  overflow-wrap: anywhere;
}
.ri-scene {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.32;
  object-fit: cover;
  object-position: center 60%;
  background: #253e4c;
}
.ri-interview { padding: 21px 26px 24px; border-top: 1px solid #d6ad6a70; }
.ri-kicker { color: var(--ri-primary); font-size: 13px; font-weight: 750; letter-spacing: .02em; }
.ri-dialog h2 {
  margin-top: 5px;
  color: inherit;
  font-size: clamp(24px, 4.5vw, 34px);
  font-weight: 820;
  line-height: 1.21;
  letter-spacing: -.028em;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.ri-interview .ri-event { margin-top: 9px; color: #edcf9f; font-weight: 700; overflow-wrap: anywhere; }
.ri-interview .ri-quote { margin-top: 12px; font-size: 16px; overflow-wrap: anywhere; }
.ri-interview .ri-note { margin-top: 8px; color: var(--ri-muted); font-size: 14px; }
.ri-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.ri-dialog .ri-status { margin-top: 12px; font-size: 14px; font-weight: 650; color: #ffd2a4; }
.ri-form { padding-top: 28px; border-top: 0; }
.ri-form .ri-kicker, .ri-form h2 { padding-right: 38px; }
.ri-fields { display: grid; gap: 13px; margin-top: 18px; }
.ri-question { display: grid; gap: 6px; font-size: 15px; font-weight: 730; }
.ri-question textarea {
  display: block;
  width: 100%;
  min-height: 66px;
  padding: 9px 10px;
  border: 1px solid #697b88;
  border-radius: 8px;
  background: #0e1822;
  color: #fff5e0;
  font: 400 16px/1.55 Pretendard, "Apple SD Gothic Neo", sans-serif;
  resize: vertical;
}
.ri-question textarea::placeholder { color: #9cabb4; }
.ri-portraits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}
.ri-portraits legend { margin-bottom: 6px; font-size: 14px; font-weight: 750; }
.ri-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 54px;
  min-width: 0;
  padding: 4px 9px;
  border: 1px solid #60727e;
  border-radius: 8px;
  color: var(--ri-light);
  background: #1a2b39;
  cursor: pointer;
  font-size: 14px;
  font-weight: 680;
}
.ri-choice:has(:checked) { border-color: #f1bf70; background: #35404a; }
.ri-choice input { margin: 0; accent-color: #f1bf70; }
.ri-choice-picture {
  display: grid;
  place-items: center;
  width: 34px;
  height: 40px;
  overflow: hidden;
  border-radius: 4px;
  background: #4b6071;
}
.ri-choice-picture svg, .ri-choice-picture img { width: 100%; height: 100%; object-fit: cover; }
.ri-sheet {
  display: flow-root;
  padding: 25px 27px 27px;
  background-color: var(--ri-paper);
  background-image: linear-gradient(#f5ecd99e, #f5ecd9de), url('/img/newspaper/front-page.webp');
  background-position: center top;
  background-size: cover;
  color: var(--ri-ink);
  font-size: 16px;
}
.ri-sheet .ri-kicker { color: var(--ri-red); }
.ri-mast {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 3px;
  padding: 0 39px 9px 0;
  border-bottom: 4px double #6f5d47;
}
.ri-mast .ri-mast-name {
  font-family: "Nanum Myeongjo", "AppleMyungjo", Georgia, serif;
  font-size: clamp(23px, 5vw, 33px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.ri-sheet time { font-size: 12px; color: #5d5045; }
.ri-article-head { margin: 15px 0 13px; padding-bottom: 14px; border-bottom: 1px solid #aa987d; }
.ri-article-head h2 { font-family: "Nanum Myeongjo", "AppleMyungjo", Georgia, serif; font-weight: 800; line-height: 1.28; }
.ri-article-head .ri-deck { margin-top: 8px; line-height: 1.5; overflow-wrap: anywhere; }
.ri-article-head .ri-byline { margin-top: 7px; color: #5d5045; font-size: 13px; font-weight: 700; }
.ri-verdict-paper .ri-article-head { border-bottom: 0; padding-bottom: 0; }
.ri-verdict-paper .ri-article-head h2 {
  font-size: clamp(1.45rem, 4vw, 2.45rem);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.ri-verdict-amount {
  display: grid;
  gap: .15rem;
  justify-items: center;
  margin: 0 0 1rem;
  padding: .55rem .8rem .65rem;
  border-block: 1px solid #a78068;
  background: #fff4db9e;
  color: #732f25;
  text-align: center;
}
.ri-verdict-amount span { font-size: .8rem; font-weight: 750; }
.ri-verdict-amount strong {
  font-size: clamp(2.25rem, 8vw, 3.8rem);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.ri-verdict-amount small { color: #5d5045; font-size: .8rem; overflow-wrap: anywhere; }
.ri-verdict-scene img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #735b49;
}
.ri-verdict-scene figcaption { padding: .3rem 0 .7rem; color: #5d5045; font-size: .76rem; }
.ri-verdict-paper .ri-verdict-lede { line-height: 1.55; overflow-wrap: anywhere; }
.ri-verdict-paper .ri-verdict-meta { margin-top: .5rem; color: #5d5045; font-size: .8rem; }
.ri-story { display: grid; grid-template-columns: minmax(130px, 31%) minmax(0, 1fr); gap: 18px; align-items: start; }
.ri-picture {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 5/6;
  border: 1px solid #89735e;
  background: radial-gradient(ellipse at 50% 34%, #a4b4ba, #526470);
}
.ri-picture img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 36%; }
.ri-picture svg { width: auto; height: 88%; max-width: 100%; }
.ri-portrait figcaption { padding-top: 5px; color: #55473f; font-size: 12px; overflow-wrap: anywhere; }
.ri-portrait figcaption span { margin-left: 4px; }
.ri-qa { display: grid; gap: 10px; min-width: 0; }
.ri-qa div + div { padding-top: 10px; border-top: 1px solid #aa987d; }
.ri-qa dt { color: var(--ri-red); font-size: 14px; font-weight: 800; }
.ri-qa dd { margin-top: 3px; line-height: 1.58; overflow-wrap: anywhere; }
.ri-publish, .ri-paper-actions { padding: 13px 27px 17px; }
.ri-publish p { font-size: 14px; }
.ri-publish .ri-actions { margin-top: 10px; }
.ri-paper-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #baab91;
  color: #40392d;
  background: #f0e2c8;
  font-size: 14px;
}
.ri-archive-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  column-gap: 14px;
  row-gap: 6px;
  flex-wrap: wrap;
  margin: 2px 0 14px;
  padding: 0 40px 10px 0;
  border-bottom: 4px double #6f5d47;
}
.ri-archive .ri-button, .ri-paper-actions .ri-button { border-color: #92734f; background: #fff7e6; color: #4a3020; }
.ri-archive .ri-button:hover, .ri-paper-actions .ri-button:hover { background: #ead7b4; }
.ri-list :is(ol, ul) { margin: 0; padding: 0; list-style: none; }
.ri-list li + li { border-top: 1px solid #aa987d; }
.ri-list-item {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 64px;
  padding: 10px 8px;
  background: transparent;
  border: 0;
  color: var(--ri-ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.ri-list-item:hover { background: #c6a2762b; }
.ri-list-item strong { font-weight: 780; }
.ri-list-topic { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ri-red); font-size: 12px; font-weight: 750; }
.ri-list-author { color: #524638; font-size: 13px; }
.ri-archive .ri-status { margin: 12px 0; color: var(--ri-red); }
.ri-list > p + button, .ri-pages { margin-top: 10px; }
.ri-pages { display: flex; flex-wrap: wrap; gap: 8px; }
.feedline .ri-news-button {
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  font-family: inherit;
}
.feedline .ri-news-button:hover, .feedline .ri-news-button:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.feedline:focus-within .nl-track { animation-play-state: paused; }
.feedline .ri-news-story { color: var(--text); }
.feedline .ri-news-story:focus-visible { outline-offset: -2px; }
@keyframes ri-arrive { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ri-unfold { from { opacity: .55; transform: perspective(950px) rotateX(-5deg) translateY(-3px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .ri-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 20px); }
  .ri-scroll { max-height: calc(100dvh - 22px); }
  .ri-scene { aspect-ratio: 1.55; object-position: 48% 53%; }
  .ri-interview, .ri-sheet { padding-left: 16px; padding-right: 16px; }
  .ri-interview { padding-bottom: 18px; }
  .ri-story { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ri-portrait { max-width: 166px; }
  .ri-publish, .ri-paper-actions { padding-left: 16px; padding-right: 16px; }
  .ri-actions .ri-primary { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ri-dialog[open], .ri-dialog[open] .ri-sheet { animation: none; }
  .ri-button:active, .ri-close:active { transform: none; }
}

.ri-scene-pair { position: relative; }
.ri-dialog .ri-guest {
  position: absolute;
  right: clamp(.7rem, 3vw, 1.25rem);
  bottom: clamp(.55rem, 2.5vw, 1rem);
  display: grid;
  width: clamp(74px, 23%, 125px);
  max-width: calc(100% - 64px);
  padding: 4px;
  border: 1px solid #f2d4a698;
  border-radius: 12px;
  background: #14212bf0;
  color: var(--ri-light);
  box-shadow: 0 6px 26px #0a0f17a6;
}
.ri-dialog .ri-guest[hidden] { display: none; }
.ri-guest-face { aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #263745; }
.ri-guest-face :is(img,svg) { display: block; width: 100%; height: 100%; object-fit: cover; }
.ri-guest figcaption {
  padding: .22rem .15rem .08rem;
  overflow: hidden;
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 🚨 스타 스캔들 속보 · 소속사 입장문 ── */
.ri-scandal-paper .ri-kicker { display: flex; align-items: center; gap: .4rem; font-weight: 800; }
.ri-scandal-flash {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 3px;
  background: #b3261e;
  color: #fff;
  font-size: .78rem;
  letter-spacing: .08em;
  animation: ri-scandal-blink 1.1s steps(2, jump-none) infinite;
}
@keyframes ri-scandal-blink { 50% { background: #e0473d; } }
.ri-scandal-scene { position: relative; margin: 0 0 .2rem; }
.ri-scandal-scene img { aspect-ratio: 560 / 416; object-fit: cover; background: #12131a; }
.ri-scandal-face { float: right; width: min(34%, 150px); margin: 0 0 .6rem .9rem; }
.ri-scandal-face img { display: block; width: 100%; height: auto; border: 1px solid #735b49; filter: grayscale(.35); }
.ri-scandal-paper .ri-verdict-lede { font-size: 1.02rem; }
.ri-scandal-statement {
  clear: both;
  margin: .9rem 0 0;
  padding: .8rem 1rem .9rem;
  border: 1px solid #a78068;
  border-left: 5px solid #6f5d47;
  background: #fff8e8c4;
  font-family: "Nanum Myeongjo", "AppleMyungjo", Georgia, serif;
  line-height: 1.6;
}
.ri-scandal-statement p + p { margin-top: .35rem; }
.ri-scandal-statement-head { font-weight: 800; color: #3b2f25; }
@media (prefers-reduced-motion: reduce) { .ri-scandal-flash { animation: none; } }
.ri-scandal-wait {
  margin-top: .7rem;
  padding: .55rem .75rem;
  border-left: 4px solid #b3261e;
  background: #fff1e6b8;
  color: #5a1f18;
  font-weight: 800;
  line-height: 1.5;
}

.ri-dialog:has(.ri-political-paper) {
  background: #f4f4f4;
  color: #171717;
}
.ri-dialog:has(.ri-political-paper) > .ri-scroll { position: relative; z-index: 0; }
.ri-dialog:has(.ri-political-paper) .ri-close {
  z-index: 2;
  color: #fff;
  background: #202020;
  border-color: #444;
}
.ri-dialog:has(.ri-political-paper) .ri-paper-actions {
  background: #eee;
  border-top-color: #a0a0a0;
}
.ri-dialog:has(.ri-political-paper) .ri-paper-actions .ri-button {
  color: #181818;
  background: #fafafa;
  border-color: #777;
}
.ri-dialog:has(.ri-political-paper) :is(.ri-close, .ri-button):focus-visible {
  outline-color: #555;
}
.ri-political-paper {
  --ri-ink: #181818;
  --ri-paper: #f6f6f6;
  background-image: linear-gradient(#f6f6f699, #f6f6f6e0), url('/img/newspaper/front-page.webp');
  filter: grayscale(1);
}
.ri-political-paper .ri-mast { border-color: #272727; }
.ri-political-paper .ri-article-head { border-color: #8a8a8a; }
.ri-political-paper :is(time, .ri-byline) { color: #494949; }

.ri-political-edition {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  color: #292929;
  font-size: 12px;
  font-weight: 700;
}
.ri-political-paper .ri-article-head h2 {
  font-size: clamp(1.45rem, 4.3vw, 2.4rem);
  word-break: keep-all;
  text-wrap: balance;
}
.ri-political-paper .ri-deck { font-weight: 700; }
.ri-political-lede, .ri-political-body { max-width: 66ch; line-height: 1.72; word-break: keep-all; }
.ri-political-lede { font-weight: 680; }
.ri-political-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(9px, 2.8vw, 20px);
  margin: 14px 0;
}
.ri-political-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 36%;
  border: 1px solid #8f8f8f;
  filter: grayscale(1) contrast(1.12);
}
.ri-political-photos figcaption {
  display: grid;
  gap: 2px;
  padding: 4px 0 7px;
  border-bottom: 1px solid #aeaeae;
  color: #414141;
  font-size: 12px;
}
.ri-political-body p + p { margin-top: 8px; }
.ri-political-source { margin-top: 12px; color: #484848; font-size: 12px; }

.ri-breaking-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 10px 16px;
  margin: 16px 0;
  padding: 12px 0;
  border-block: 1px solid #8a8a8a;
}
.ri-breaking-facts dt { color: #494949; font-size: .8rem; line-height: 1.45; }
.ri-breaking-facts dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 750; font-variant-numeric: tabular-nums; }

.ri-economic-illustration { margin: 12px 0 15px; }
.ri-economic-illustration img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #777;
}
.ri-economic-illustration figcaption {
  margin-top: 5px;
  color: #454545;
  font-size: .76rem;
  line-height: 1.5;
}
