/* BIGSMALL Parent Main Renewal - index_new.css */
.renewal-body {
  margin: 0;
  background: #fff;
  color: var(--rn-text);
  font-family: var(--rn-font);
  -webkit-font-smoothing: antialiased;
}

.renewal-wrap {
  min-height: 100vh;
  padding-bottom: 0;
}

.rn-container {
  width: 100%;
  max-width: var(--rn-container);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.rn-m-only { display: none !important; }
.rn-pc-only { /* visibility toggled in media queries */ }

.renewal-wrap img { max-width: 100%; height: auto; vertical-align: top; }
.renewal-wrap a { text-decoration: none; }
/* 모달(.modal)은 index.php 공통 스타일 유지 — 리뉴얼 UI 버튼만 리셋 */
.renewal-wrap button:not(.rn-setting-btn):not(.rn-daily-age-tooltip__gotit):not(.rn-daily-age-modal__cta):not(.rn-daily-age-modal__skip):not(.rn-daily-age-chip):not(.rn-profile-menu__item):not(.rn-side-promo__dot):not(.rn-side-widget__dot):not(.rn-lang):not(.rn-login):not(.rn-icon-btn),
.rn-lang-popup button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.renewal-wrap .rn-daily-age-tooltip .rn-daily-age-tooltip__gotit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 16px;
  border: 0;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.renewal-wrap .rn-daily-age-tooltip .rn-daily-age-tooltip__gotit:hover {
  background: #1a1a1a;
  color: #fff;
}
.renewal-wrap .rn-profile-menu .rn-profile-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #212121;
  text-align: left;
}
.renewal-wrap .rn-profile-menu .rn-profile-menu__item--logout {
  color: #e53333;
}
.renewal-wrap .rn-daily-age-modal__cta {
  padding: 16px 24px;
  border: 0;
  border-radius: 12px;
  background: #4b6bfb;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

/* ===== Welcome ===== */
.rn-welcome { padding: 40px 0 0; }
.rn-welcome__inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rn-border);
}
.rn-welcome__greeting {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.rn-welcome__greeting strong {
  font-size: 24px;
  color: #111827;
}
.rn-welcome__greeting #greetingName {
  font-size: 24px;
  color: #111827;
}
.rn-welcome__greeting .rn-welcome__hello [data-welcome-guest],
.rn-welcome__greeting .rn-welcome__hello [data-welcome-user] {
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}
.rn-welcome__greeting #rnWelcomeMsg {
  font-size: 16px;
  color: var(--rn-gray);
  font-weight: 400;
}
.rn-welcome__date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--rn-gray);
  font-size: 15px;
  font-weight: 600;
}
.rn-welcome__date img { width: 16px; height: 16px; }
.rn-welcome__cards {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rn-status-card {
  width: 360px;
  padding: 16px;
  border: 1px solid var(--rn-border);
  border-radius: 14px;
  box-shadow: 0 4px 4px rgba(0,0,0,0.04);
  box-sizing: border-box;
}
.rn-status-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
.rn-status-card__badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.rn-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.rn-badge img { width: 14px; height: 14px; }
.rn-badge svg { display: block; flex-shrink: 0; width: 14px; height: 14px; }
.rn-badge--blue { color: var(--rn-blue); }
.rn-badge--teacher {
  color: #232eff;
  background: #f3f4f6;
}
.rn-badge--parent {
  color: #ff7a59;
  background: #fff1ed;
}
.rn-badge--trial {
  color: #76b82a;
  background: #eefff2;
  font-weight: 700;
}
.rn-badge--gray { color: #4b5563; font-weight: 600; padding: 4px 8px; }
.rn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}
.rn-status-card__pay-label {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
}
.rn-status-card__period {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}
.rn-status-card__period [data-rn-ms-period-value] {
  color: #111827;
  text-align: right;
  flex: 1;
  min-width: 0;
}
.rn-muted { color: #9ca3af; }
.rn-status-card__unsubscribed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rn-status-card__cta-text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #2d2d2d;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
a.rn-status-card__subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /*width: 100px;*/
  height: 48px;
  border-radius: 14px;
  background: #232eff;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 12px;
  max-width: fit-content;
}
a.rn-status-card__subscribe-btn:hover {
  opacity: 0.92;
  color: #fff;
}
.rn-class-card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 84px;
  padding: 20px;
  background: var(--rn-blue-soft);
  border: 1.5px solid var(--rn-blue);
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(35,46,255,0.06);
  box-sizing: border-box;
}
.rn-class-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--rn-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rn-class-card__icon img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.rn-class-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--rn-blue);
  text-align: left;
}
.rn-class-card__text em {
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
}
.rn-class-card__text strong {
  font-size: 18px;
  font-weight: 800;
}

/* ===== Layout ===== */
.rn-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 60px;
}
.rn-layout__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.rn-sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ===== Hero ===== */
.rn-hero { position: relative; }
.rn-hero__slider,
.rn-hero-swiper {
  height: 290px;
  border-radius: var(--rn-radius-lg);
  overflow: hidden;
  background: transparent;
}
.rn-hero-swiper .swiper-wrapper {
  height: 100%;
}
.rn-hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a1a1a;
}
.rn-hero-swiper .swiper-slide img,
.rn-hero__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
}
/* index.js 와 동일: PC 기본 / 모바일 mo_ver */
.rn-hero-swiper .swiper-slide img.mo_ver {
  display: none;
}
.rn-hero__controls {
  display: flex !important;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}
.rn-hero__progress {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}
.rn-hero__progress-bar {
  height: 100%;
  width: 33%;
  background:  var(--rn-accent);
  transition: width 0.3s;
}
.rn-hero__pause img { width: 10px; height: 10px; }
.rn-hero__pager {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rn-hero__nav svg,
.rn-hero__nav img { width: 20px; height: 20px; }
.rn-hero__num {
  font-size: 14px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.rn-hero__num em { font-style: normal; color: var(--rn-muted); }
.rn-hero__num span { color: var(--rn-muted); }

/* ===== Section commons ===== */
.rn-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.rn-section-head__left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.rn-section-head__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rn-section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--rn-text);
}
.rn-section-title--light { color: #fff; }
.rn-chip {
  display: inline-flex;
  padding: 6px 12px;
  background: var(--rn-cream);
  border: 1px solid var(--rn-cream-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--rn-muted);
}
.rn-section-head__right .rn-link-btn,
.rn-section-head__right .rn-setting-btn,
.rn-section-head__right > a.rn-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
}
.rn-setting-btn,
.renewal-wrap .rn-setting-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  background: #efefef;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #7a7a7a;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.rn-setting-btn:hover,
.renewal-wrap .rn-setting-btn:hover {
  background: #e8e8e8;
  color: #7a7a7a;
}
.rn-setting-btn__label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.rn-setting-btn img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}
.rn-setting-btn__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
  color: #7a7a7a;
}
.rn-setting-btn.is-active,
.renewal-wrap .rn-setting-btn.is-active {
  gap: 8px;
  padding: 10px 16px;
  min-height: 36px;
  background: #fff;
  border: 1.5px solid #ef7d00;
  color: #ef7d00;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.03);
}
.rn-setting-btn.is-active .rn-setting-btn__icon {
  color: #ef7d00;
}
.rn-setting-btn.is-active:hover,
.renewal-wrap .rn-setting-btn.is-active:hover {
  background: #fff;
  color: #ef7d00;
  border-color: #ef7d00;
}

/* Daily Play — setting wrap & onboarding tooltip */
.rn-daily .rn-section-head {
  overflow: visible;
}
.rn-daily-setting-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 5;
}
.rn-daily-age-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
  max-width: calc(100vw - 48px);
  padding: 16px 18px;
  background: #ef7d00;
  border-radius: 16px;
  box-shadow: 0 8px 12px rgba(239, 125, 0, 0.25);
  box-sizing: border-box;
}
.rn-daily-age-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #ef7d00;
  transform: translateX(-50%) rotate(45deg);
}
.rn-daily-age-tooltip[hidden] { display: none !important; }
.rn-daily-age-tooltip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.rn-daily-age-tooltip__sparkle {
  filter: brightness(0) invert(1);
}
.rn-daily-age-tooltip__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.rn-daily-age-tooltip__close img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}
.rn-daily-age-tooltip__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.rn-daily-age-tooltip__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  color: #fff;
}
.rn-daily-age-tooltip__desc {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.8);
}
.rn-daily-age-tooltip__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.rn-daily-age-tooltip__remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}
.rn-daily-age-tooltip__checkbox-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rn-daily-age-tooltip__checkbox-box {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 1.5px solid #fff;
  border-radius: 3px;
  box-sizing: border-box;
  background: transparent;
}
.rn-daily-age-tooltip__checkbox-input:checked + .rn-daily-age-tooltip__checkbox-box {
  background: #fff;
}
.rn-daily-age-tooltip__checkbox-input:checked + .rn-daily-age-tooltip__checkbox-box::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: solid #ef7d00;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.rn-daily-age-tooltip__remember-text {
  font-size: 11px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

/* Daily Play — age setting modal */
.rn-daily-age-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 320;
  width: min(640px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 16px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}
.rn-daily-age-modal[hidden] { display: none !important; }
.rn-daily-age-modal__step[hidden] { display: none !important; }
.rn-daily-age-modal__progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.rn-daily-age-modal__step-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ef7d00;
}
.rn-daily-age-modal__sparkle-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: #fff0e6;
  border-radius: 6px;
}
.rn-daily-age-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.rn-daily-age-modal__close img {
  width: 18px;
  height: 18px;
}
.rn-daily-age-modal__progress-track {
  height: 6px;
  margin-bottom: 24px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
}
.rn-daily-age-modal__progress-fill {
  height: 100%;
  background: #ef7d00;
  border-radius: 999px;
  transition: width 0.3s ease, background 0.3s ease;
}
.rn-daily-age-modal__progress-track.is-complete .rn-daily-age-modal__progress-fill {
  background: #10b981;
}
.rn-daily-age-modal__hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 16px;
  background: #fff0e6;
  border-radius: 16px;
}
.rn-daily-age-modal__welcome {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ef7d00;
}
.rn-daily-age-modal__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}
.rn-daily-age-modal__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 2px solid #ef7d00;
  border-radius: 40px;
  background: #fff;
  font-size: 40px;
  line-height: 1;
}
.rn-daily-age-modal__group-label {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.rn-daily-age-modal__chips {
  display: flex;
  gap: 12px;
}
.rn-daily-age-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.rn-daily-age-chip__code {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 20px;
  font-weight: 800;
  color: #4b5563;
}
.rn-daily-age-chip__desc {
  font-size: 13px;
  color: #6b7280;
}
.rn-daily-age-chip__check {
  display: none;
  fill: #ef7d00;
}
.rn-daily-age-chip.is-selected {
  border: 2px solid #ef7d00;
  background: #fff0e6;
}
.rn-daily-age-chip.is-selected .rn-daily-age-chip__code,
.rn-daily-age-chip.is-selected .rn-daily-age-chip__desc {
  color: #ef7d00;
}
.rn-daily-age-chip.is-selected .rn-daily-age-chip__check {
  display: block;
}
.rn-daily-age-modal__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.rn-daily-age-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  border: 0;
  border-radius: 12px;
  background: #4b6bfb;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.rn-daily-age-modal__cta:hover {
  background: #3d5ae8;
}
.rn-daily-age-modal__cta svg {
  fill: currentColor;
}
.rn-daily-age-modal__skip {
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
}
.rn-daily-age-modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  margin-bottom: 24px;
  text-align: center;
}
.rn-daily-age-modal__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 3px solid #10b981;
  border-radius: 32px;
  background: #ecfdf5;
}
.rn-daily-age-modal__success-icon svg {
  fill: #10b981;
}
.rn-daily-age-modal__done-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
}
.rn-daily-age-modal__done-desc {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}
.rn-daily-age-modal__summary {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
}
.rn-daily-age-modal__summary-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.rn-daily-age-modal__summary-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
}
.rn-daily-age-modal__summary-value {
  margin: 0;
  font-size: 15px;
  color: #ef7d00;
}
.rn-daily-age-modal__tip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff0e6;
}
.rn-daily-age-modal__tip p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #ef7d00;
}
.rn-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #7a7a7a;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.rn-link-btn:hover {
  color: #000;
}
.rn-link-btn__label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.rn-link-btn__icon,
.rn-link-btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
  fill: currentColor;
  color: inherit;
  transition: color 0.2s ease;
}
.rn-link-btn img {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
}
.rn-section-head__right .rn-link-btn:hover,
.rn-section-head__right .rn-link-btn:hover .rn-link-btn__icon,
.rn-section-head__right .rn-link-btn:hover svg {
  color: #000;
  fill: #000;
}

/* ===== Accordion / Lesson ===== */
.rn-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.rn-accordion__item {
  border-bottom: 1px solid #f0e9e6;
}
.rn-accordion__item:last-child { border-bottom: 0; }
.rn-accordion__item.is-open {
  border-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}
.rn-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  box-sizing: border-box;
}
.rn-accordion__item.is-open > .rn-accordion__trigger {
  padding-bottom: 8px;
}
.rn-accordion__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.rn-accordion__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.rn-accordion__title {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 1.35;
  color: #2d2d2d;
  font-weight: 400;
}
.rn-accordion__title.is-done { color: #9ca3af; }
.rn-accordion__chevron {
  width: 20px;
  height: 20px !important;
  margin-left: 0;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.rn-age {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
  background: #fffbf9;
  border: 1px solid #f0e9e6;
  color: #7a7a7a;
  flex-shrink: 0;
  white-space: nowrap;
}
.rn-age--active {
  background: #e2e3ff;
  border-color: transparent;
  color: var(--rn-blue);
}
.rn-age--muted {
  background: #f3f4f6;
  border-color: transparent;
  color: #6b7280;
}
.rn-status-pill {
  display: none;
  align-items: center;
  padding: 4px 10px;
  background: #dbeafe;
  border-radius: 999px;
  font-size: 14px;
  color: #1d4ed8;
  white-space: nowrap;
  flex-shrink: 0;
}
.rn-accordion__item.is-open .rn-status-pill {
  display: inline-flex;
}
.rn-accordion__panel {
  display: none;
  padding-bottom: 12px;
}
.rn-accordion__item.is-open .rn-accordion__panel { display: block; }

.rn-lesson-card {
  background: #fff;
  border: 2px solid var(--rn-blue);
  border-radius: 32px;
  padding: 28px 24px;
  box-shadow: 0 4px 6px rgba(74, 46, 38, 0.05);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.rn-lesson-card__head { margin-bottom: 0; }
.rn-lesson-card__head h3 {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  color: #000;
}
.rn-lesson-card__materials {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 0;
  width: 100%;
}
.rn-material {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 100px;
  background: #fffbf9;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 4px;
  text-decoration: none;
  box-sizing: border-box;
  text-align: center;
}
.rn-material img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.rn-material span {
  font-size: 12px;
  color: #7a7a7a;
  line-height: 1.2;
  word-break: break-word;
}
.rn-lesson-card .rn-btn-primary {
  height: 56px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 400;
  margin-top: 0;
}

.rn-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  background: var(--rn-blue);
  color: #fff !important;
  border-radius: 14px;
  font-size: 17px;
  width: 100%;
  box-sizing: border-box;
}
.rn-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  border: 1px solid rgba(209,213,219,0.5);
  border-radius: 999px;
  font-size: 20px;
}

/* ===== Card grids ===== */
.rn-card-grid {
  display: grid;
  gap: 20px;
}
.rn-card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rn-card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(215px ,1fr));}
.rn-watch .rn-card-grid--3 { row-gap: 30px; }

.rn-card { display: block; }
.rn-card__thumb {
  aspect-ratio: 215 / 210;
  border: 1px solid rgba(209,213,219,0.5);
  border-radius: var(--rn-radius);
  overflow: hidden;
  background: #fff;
  position: relative;
}
.rn-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
}

.rn-card__thumb img:hover{
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
}

.rn-card__thumb--video { height: 210px; aspect-ratio: auto; }
.rn-card__time {
  position: absolute;
  right: 11px;
  bottom: 11px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
}
.rn-card__title {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--rn-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
}

/* Learning Library (Figma 1:962) */
.rn-library .rn-card {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.rn-library .rn-card__thumb {
  width: 100%;
  aspect-ratio: 260 / 210;
  height: auto;
  overflow: hidden;
}
.rn-library .rn-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.rn-library .rn-card__title {
  margin: 0;
}

/* ===== Discover (2×2 magazine + tall shorts) ===== */
.rn-discover__layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.rn-discover__mag {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 20px;
}
.rn-discover__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.rn-discover__thumb {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 16px;
  overflow: hidden;
}
.rn-discover__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rn-discover__item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--rn-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.rn-discover__shorts {
  position: relative;
  width: 282px;
  height: 456px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.5);
  display: block;
  background: #1e1e1e;
}
.rn-discover__shorts > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s ease;
}
.rn-discover__shorts > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.rn-discover__shorts.is-video-active > video {
  opacity: 1;
}
.rn-discover__shorts.is-video-active > img {
  opacity: 0;
}
.rn-discover__shorts::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 0;
}
.rn-discover__shorts .rn-card__time {
  position: absolute;
  right: 8px;
  bottom: 10px;
  z-index: 1;
}
.rn-discover__shorts p {
  position: absolute;
  left: 10px;
  bottom: 16px;
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  z-index: 1;
}

/* ===== Academy ===== */
.rn-section-head__left--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.rn-section-sub {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--rn-text);
  line-height: 1.4;
}
.rn-academy__grid {
  gap: 20px;
}
.rn-poster {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  height: 286px;
  background: #f3f4f6;
}
.rn-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== Sidebar (A17~A21) ===== */
.rn-side-promo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}
.rn-side-promo[hidden] { display: none !important; }
.rn-side-promo__dots {
  display: flex;
  gap: 10px;
  align-items: center;
}
.rn-side-promo__dots button,
.renewal-wrap .rn-side-promo__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #7a7a7a;
  font-size: 14px;
  font-weight: 400;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  box-sizing: border-box;
  flex-shrink: 0;
}

.rn-side-promo__dots button:hover,
.renewal-wrap .rn-side-promo__dot:hover {
  background: #fff;
  border-color: #d9d9d9;
  color: #7a7a7a;
}

.rn-side-promo__dots button.is-active,
.renewal-wrap .rn-side-promo__dot.is-active {
  background: #ff7a59;
  border-color: #ff7a59;
  color: #fff;
}
.rn-side-promo__img {
  width: 100%;
  aspect-ratio: 560 / 480;
  border-radius: 24px;
  overflow: hidden;
}
.rn-side-promo__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rn-bigshome-card {
  width: 100%;
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  padding: 0 20px 20px;
  box-sizing: border-box;
}
.rn-bigshome-card__head {
  position: relative;
  margin: 0 -20px;
  height: 83px;
  background: #ff9800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rn-bigshome-card__deco {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -42%);
  width: 60%;
  max-width: 220px;
  height: auto;
  opacity: 0.95;
  pointer-events: none;
}
.rn-bigshome-card__head span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.rn-bigshome-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
}
.rn-bigshome-card__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.rn-bigshome-card__icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #f6f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rn-bigshome-card__icon--plain {
  background: transparent;
  padding: 0;
}
.rn-bigshome-card__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.rn-bigshome-card__icon--plain img {
  width: 60px;
  height: 60px;
}
.rn-bigshome-card__icon em {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.rn-bigshome-card__icon em[hidden] { display: none !important; }
.rn-bigshome-card__item strong {
  font-size: 16px;
  font-weight: 400;
  color: #111827;
}
.rn-bigshome-card__item span {
  font-size: 16px;
  font-weight: 400;
}
.rn-bigshome-card__item span.is-alert { color: #ef4444; }
.rn-bigshome-card__item span.is-ok { color: #4caf50; }

.rn-continue-panel {
  width: 100%;
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 24px;
  padding: 30px 24px;
  box-sizing: border-box;
  background: #fff;
}
.rn-continue-panel[hidden],
.rn-continue-m[hidden] {
  display: none !important;
}
.rn-continue-panel__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #000;
}
.rn-continue-panel__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rn-continue-item.is-open {
  position: relative;
  min-height: 238px;
}
.rn-continue-item__bar {
  position: relative;
  z-index: 2;
  display: block;
  background: #fff;
  border: 1px solid #232eff;
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  box-sizing: border-box;
  text-decoration: none;
}
.rn-continue-item__detail {
  position: relative;
  z-index: 1;
  margin-top: -8px;
  padding: 28px 20px 20px;
  background: #f8f9fb;
  border-radius: 0 0 24px 24px;
  min-height: 180px;
  box-sizing: border-box;
}
.rn-continue-item__detail p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rn-continue-item__detail img {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}
.rn-continue-item__thumb {
  display: inline-block;
  line-height: 0;
}
.rn-continue-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 12px 13px 10px;
  background: #f9f9f9;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.rn-continue-row:hover {
  background: #fff;
  border-color: #232eff;
}
.rn-continue-row svg,
.rn-continue-row__chevron {
  fill: #9ca3af;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.rn-continue-row span {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.rn-continue-row > img:first-of-type,
.rn-continue-row__thumb-ph {
  width: 51px;
  height: 51px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e5e7eb;
}

.rn-news {
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(74, 46, 38, 0.05);
  background: #fff;
  box-sizing: border-box;
}
.rn-news__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.rn-news__head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #000;
}
.rn-news__list {
  list-style: disc;
  margin: 0;
  padding: 0 0 0 21px;
}
.rn-news__list li {
  padding: 12px 0;
  border-bottom: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #2d2d2d;
}

.rn-news__list li:hover{
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rn-news__list a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}


.rn-side-widget {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.rn-side-widget[hidden] { display: none !important; }
.rn-side-widget__dots {
  display: flex;
  gap: 10px;
  align-items: center;
}
.rn-side-widget__dots[hidden] {
  display: none !important;
}
.rn-side-widget__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #7a7a7a;
  font-size: 14px;
  font-weight: 400;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  box-sizing: border-box;
}
.rn-side-widget__dot.is-active {
  background: #ff7a59;
  border-color: #ff7a59;
  color: #fff;
}
.rn-side-widget__media {
  width: 100%;
  height: 477px;
  border-radius: 24px;
  overflow: hidden;
  background: #f3f4f6;
}
.rn-side-widget img,
.rn-side-widget__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* legacy quick/continue (unused on PC, keep harmless) */
.rn-quick { display: none; }
.rn-continue-card { display: none; }
.rn-side-feature { display: none; }

/* ===== Store (BigsMom Products) ===== */
.rn-store {
  position: relative;
  background: #fff;
  padding: 0 0 20px;
  margin-top: 0;
  width: 100%;
}
.rn-store__banner {
  background: #3cc796;
  border-radius: 24px 24px 0 0;
  min-height: 153px;
  padding: 20px 20px 60px;
  box-sizing: border-box;
}
.rn-store__banner-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.rn-store__titles {
  color: #fff;
  max-width: 640px;
  flex: 1;
  min-width: 0;
}
.rn-store__title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
}
.rn-store__desc {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}
.rn-store__shop {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 43px;
  padding: 0 28px;
    background: #ffffff43;
    border: 1px solid #ffffff23;
  border-radius: 999px;
    color: #fff;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
    transition: all 0.3s ease;
}
.rn-store__shop:hover{
    border-color: #fff;
}

.rn-store__shop--block {
  display: none !important;
  width: 100%;
  height: 70px;
  font-size: 20px;
  margin-top: 44px;
}
.rn-store__body {
  margin: -45px 20px 0;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}
.rn-store__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.rn-product {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: calc((100% - 60px) / 4);
  flex: 1 1 0;
  min-width: 0;
  max-width: 200px;
  box-sizing: border-box;
}
.rn-product__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}
.rn-product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
}

.rn-product__img img:hover{
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
}

.rn-product__name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  line-height: 1.3;
  word-break: break-word;
}
.rn-product__price {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #7a7a7a;
  line-height: 1.3;
}

/* ===== Mobile-only blocks ===== */
.rn-m-search { display: none; }
.rn-m-news { display: none; }
.rn-hero__pager-m { display: none; }
.rn-continue-m { display: none; }

.rn-bigshome__banner {
  position: relative;
  background: #ff9800;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px 16px 0 0;
  margin: 0;
  overflow: hidden;
}
.rn-bigshome__deco {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%);
  width: 70%;
  max-width: 280px;
  opacity: 0.9;
  pointer-events: none;
}
.rn-bigshome__banner span { position: relative; z-index: 1; }
.rn-bigshome {
  display: none;
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  padding-bottom: 12px;
}
.rn-bigshome__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  text-align: center;
  padding: 16px 8px 8px;
}
.rn-bigshome__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #111827;
  padding: 4px;
  text-decoration: none;
}
.rn-bigshome__item strong { font-size: 12px; font-weight: 700; }
.rn-bigshome__icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f6f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rn-bigshome__icon--plain { background: transparent; }
.rn-bigshome__icon img { width: 24px; height: 24px; object-fit: contain; }
.rn-bigshome__icon--plain img { width: 48px; height: 48px; }
.rn-bigshome__icon em {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.rn-bigshome__icon em[hidden] { display: none !important; }
.rn-bigshome__sub {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.rn-bigshome__sub.is-alert { color: #ef4444; }
.rn-bigshome__sub.is-ok { color: #4caf50; }

.rn-continue-m__body {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 24px;
}
.rn-continue-m > .rn-section-title {
  font-size: 28px;
  font-weight: 700;
}

/* Mobile Continue Learning — Figma 1049:4480 (노란 패널 / 빨간 테두리) */
.rn-continue-m .rn-continue-item.is-open {
  min-height: 0;
}
.rn-continue-m .rn-continue-item__bar {
  border: 1px solid #ef4444;
  border-radius: 24px;
  padding: 22px 20px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}
.rn-continue-m .rn-continue-item__detail {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: -14px;
  padding: 40px 24px 24px;
  min-height: 0;
  background: #fff4d6;
  border-radius: 0 0 24px 24px;
}
.rn-continue-m .rn-continue-item__detail p {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-line-clamp: 4;
}
.rn-continue-m .rn-continue-item__thumb {
  flex-shrink: 0;
}
.rn-continue-m .rn-continue-item__detail img {
  width: 90px;
  height: 90px;
  border-radius: 16px;
}
.rn-continue-m .rn-continue-row {
  display: flex;
  gap: 14px;
  min-height: 77px;
  padding: 13px 12px 13px 20px;
  border-radius: 24px;
}
.rn-continue-m .rn-continue-row:hover {
  border-color: #ef4444;
}
.rn-continue-m .rn-continue-row span {
  font-size: 18px;
  font-weight: 400;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-line-clamp: unset;
}

/* ===== Responsive ===== */

/*
 * Breakpoints
 * - Mobile:  max-width 767px
 * - Tablet:  768px – 1023px  (mobile UI)
 * - Desktop: min-width 1024px
 */

/* Mobile + Tablet shared (mobile UI) */
@media (max-width: 1023px) {


  .rn-pc-only { display: none !important; }
  .rn-m-only { display: block !important; }
  #rnContinueM {
    scroll-margin-top: 72px;
    scroll-margin-bottom: 140px;
  }
  .rn-m-news { display: flex !important; }
  .rn-m-news[hidden] { display: none !important; }
  .rn-hero__pager-m { display: flex !important; }
  .rn-bigshome { display: block !important; }
  .rn-continue-m { display: block !important; }

  body.renewal-body {
    background: #f9fafb;
  }
  body.renewal-body .renewal-wrap {
    --rn-m-gutter: 20px;
    padding-bottom: 180px;
    background: #f9fafb;
  }

  .rn-welcome,
  .rn-sidebar { display: none !important; }

  body.renewal-body .rn-main {
        padding-left: 10px !important;
        padding-right: 10px !important;
    padding-top: 12px !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  body.renewal-body .rn-container,
  body.renewal-body .rn-layout {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rn-layout {
    display: block !important;
    padding-top: 0 !important;
    padding-bottom: 40px !important;
  }
  .rn-layout__main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }

  /* Card-like sections */
  .rn-panel {
    background: #fff;
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-radius: 24px;
    padding: 24px 16px;
    box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 30px;
  }
  .rn-bigshome.rn-panel { padding: 0 0 12px; overflow: hidden; }
  .rn-btn-outline {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-radius: 999px;
    font-size: 16px;
    color: #000 !important;
    text-decoration: none;
    background: #fff;
    box-sizing: border-box;
  }

  /* Hero */
  .rn-hero {
    margin: 0 !important;
    width: 100%;
    box-sizing: border-box;
    position: relative;
  }
  .rn-hero__slider,
  .rn-hero-swiper {
    height: 220px;
    border-radius: 24px !important;
    overflow: hidden;
    width: 100% !important;
    background: transparent;
  }
  .rn-hero-swiper .swiper-slide {
    width: 100% !important;
    height: 220px;
  }
  .rn-hero-swiper .swiper-slide img,
  .rn-hero__fallback {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
  .rn-hero-swiper .swiper-slide img {
    display: none;
  }
  .rn-hero-swiper .swiper-slide img.mo_ver {
    display: block !important;
  }
  .rn-hero__pager-m {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 700;
  }
  .rn-hero__pager-m em {
    font-style: normal;
    color: #9ca3af;
    font-size: 9px;
  }
  .rn-hero__pager-m span { color: #9ca3af; font-weight: 400; }

  /* News ticker */
  .rn-m-news {
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
        background: var(--rn-accent-brit);
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-radius: 20px;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
  }
  .rn-m-news__badge {
    flex-shrink: 0;
    background: #fff;
        color: var(--rn-accent);
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 999px;
  }
  .rn-m-news__text {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 15px;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rn-section-title {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #000;
    white-space: normal;
    overflow: visible;
  }
  .rn-section-head {
    width: 100%;
        margin-bottom: 0;
    gap: 12px;
    align-items: center;
        font-size: 24px;
  }
  .rn-section-head__left {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
  }
  .rn-section-head__right {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 12px;
  }
  .rn-section-head__right .rn-link-btn,
  .rn-section-head__right .rn-setting-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .rn-chip { font-size: 13px; padding: 5px 10px; flex-shrink: 0; }
  .rn-daily-age-tooltip {
    width: min(300px, calc(100vw - 32px));
  }
  .rn-daily-age-modal {
    width: calc(100vw - 32px);
    padding: 20px 16px;
    border-radius: 20px;
  }
  .rn-daily-age-modal__hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .rn-daily-age-modal__title {
    font-size: 18px;
  }
  .rn-daily-age-modal__chips {
    flex-direction: column;
  }
  .rn-daily-age-chip {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .rn-card-grid--4,
  .rn-card-grid--3,
  .rn-watch__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  .rn-card__thumb { height: 140px; }
  .rn-card__thumb--video { height: auto; aspect-ratio: 16 / 9; }
  .rn-card__title { font-size: 15px; white-space: normal; }

  /* Learning Library — Figma 1:962 */
  .rn-library.rn-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px;
  }
  .rn-library .rn-section-head {
    margin-bottom: 0;
  }
  .rn-library .rn-card-grid--4 {
    gap: 30px 20px;
    width: 100%;
  }
  .rn-library .rn-card__thumb {
    width: 100%;
    height: auto !important;
    aspect-ratio: 260 / 210;
    border-radius: 16px;
    overflow: hidden;
  }
  .rn-library .rn-card__thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover !important;
    object-position: center;
    display: block;
  }
  .rn-library .rn-card__title {
        font-size: 15px;
        line-height: 1.5;
    color: #2d2d2d;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }
  .rn-library .rn-btn-outline {
    display: flex !important;
        height: 56px;
    margin-top: 0;
        font-size: 16px;
    border-radius: 999px;
  }

  .rn-lesson.rn-panel {
    padding: 28px 18px;
  }
  .rn-accordion__trigger {
    padding: 16px 0;
    gap: 8px;
  }
  .rn-accordion__title {
    font-size: 15px;
  }
  .rn-age {
    font-size: 13px;
    padding: 4px 7px;
  }
  .rn-status-pill {
    font-size: 12px;
    padding: 4px 8px;
  }
  .rn-accordion__item.is-open {
    gap: 10px;
  }
  .rn-lesson-card {
    padding: 20px 16px;
    border-radius: 24px;
    gap: 18px;
  }
  .rn-lesson-card__head h3 {
    font-size: clamp(20px, 5.5vw, 26px);
  }
  .rn-lesson-card__materials {
    display: flex;
    gap: 8px;
    overflow-x: visible;
    flex-wrap: nowrap;
  }
  .rn-material {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: 92px;
    min-height: 92px;
    padding: 8px 2px;
    border-radius: 16px;
  }
  .rn-material img {
    width: 22px;
    height: 22px;
  }
  .rn-material span {
    font-size: 10px;
  }
  .rn-lesson-card .rn-btn-primary {
    height: 52px;
    font-size: 16px;
    border-radius: 14px;
  }

  /* Discover mobile: stack — mag 2x2 then shorts full width, or staggered */
    .rn-discover.rn-panel {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
  .rn-discover__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }
  .rn-discover__mag {
    display: contents;
  }
  .rn-discover__item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .rn-discover__item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .rn-discover__item:nth-child(3) { grid-column: 1; grid-row: 2; }
  .rn-discover__item:nth-child(4) { grid-column: 1; grid-row: 3; }
  .rn-discover__shorts {
    grid-column: 2;
    grid-row: 2 / span 2;
    width: 100%;
    height: auto;
    min-height: 280px;
    align-self: stretch;
  }
  .rn-discover__item p { font-size: 14px; }
  .rn-discover__shorts p {
    font-size: 14px;
    bottom: 12px;
  }

  .rn-academy.rn-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px;
  }
  .rn-academy .rn-section-head {
    margin-bottom: 0;
  }
  .rn-academy .rn-section-head__left--stack {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .rn-academy__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
  }
  .rn-academy .rn-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 268 / 358;
    border-radius: 12px;
    overflow: hidden;
  }
  .rn-academy .rn-poster img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover !important;
    display: block;
  }
  .rn-academy .rn-btn-outline {
    display: flex !important;
    height: 70px;
    margin-top: 0;
    font-size: 20px;
    border-radius: 999px;
  }

  /* Originals */
  body.renewal-body .rn-store {
    margin-left: -20px !important;
    margin-right: -20px !important;
    width: calc(100% + 40px) !important;
    max-width: none !important;
        padding: 0 0 80px !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background: #fff;
  }
  body.renewal-body .rn-store__banner {
    border-radius: 0 !important;
    min-height: 153px;
    padding: 20px 20px 70px !important;
  }
  body.renewal-body .rn-store__banner-inner {
    max-width: none;
    display: block;
  }
  body.renewal-body .rn-store__title {
    font-size: 28px;
    font-weight: 900;
  }
  body.renewal-body .rn-store__desc {
    font-size: 15px;
        font-weight: 400;
  }
  body.renewal-body .rn-store__body {
    margin-top: -45px;
    margin-left: 20px !important;
    margin-right: 20px !important;
    padding: 0 !important;
    max-width: none;
  }
  body.renewal-body .rn-store__grid {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  body.renewal-body .rn-product {
    width: 160px;
    max-width: 160px;
    flex: 0 0 160px;
    scroll-snap-align: start;
  }
  body.renewal-body .rn-store__grid .rn-product:nth-child(n + 4) {
    display: none;
  }
  body.renewal-body .rn-product__name,
  body.renewal-body .rn-product__price {
    font-size: 16px;
  }
  body.renewal-body .rn-product__price { color: #7a7a7a; }
  body.renewal-body .rn-store__shop--block {
    display: flex !important;
    width: 100%;
    height: 56px;
    font-size: 16px;
    margin-top: 28px;
    box-sizing: border-box;
    border-radius: 999px;
        color :#000;
        border : 1px solid #d1d5db80;

  }

  
}

/* Mobile */
@media (max-width: 767px) {
  .rn-discover__shorts { min-height: 240px; }
  .rn-lesson-card__materials { gap: 6px; }
  .rn-material { height: 84px; min-height: 84px; }
  .rn-material span { font-size: 9px; }
  .rn-accordion__right .rn-status-pill {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Tablet — same mobile UI as above; tablet-only tweaks here */
@media (min-width: 768px) and (max-width: 1023px) {
  /* inherits mobile UI from max-width: 1023px */
  .rn-hero__slider,
  .rn-hero-swiper {
    height: 260px;
  }
  .rn-hero-swiper .swiper-slide,
  .rn-hero-swiper .swiper-slide img,
  .rn-hero__fallback {
    height: 260px;
  }
  .rn-discover__shorts {
    min-height: 320px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .rn-m-only { display: none !important; }
}

/* Desktop narrow */
@media (min-width: 1024px) and (max-width: 1440px) {


  .rn-welcome__inner,
  .rn-layout {
    max-width: 1100px;
  }
  .rn-status-card { width: 300px; }


}

@media (min-width: 1024px) and (max-width: 1200px) {


  .rn-layout { gap: 24px; }
  .rn-sidebar { width: 300px; }
  .rn-discover__shorts { width: 220px; height: 380px; }
  .rn-layout__main { gap: 48px; }
  .rn-card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .rn-welcome__cards { flex-direction: column; align-items: stretch; }
  .rn-status-card { width: 100%; }
}

/* =========================================================
 * BIGSMALL Parent Renewal — parent-only overrides & sections
 * ========================================================= */
:root {
    --rn-accent: #ff7a59;
    --rn-accent-dark: #ef5933;
    --rn-accent-brit: #ffe9e9;
  --rn-accent-soft: #fff1eb;
  --rn-nav-active: var(--rn-accent);
  --rn-ideas-bg: #ffe8d6;
  --rn-ideas-btn: #ff7a45;
  --rn-parent-blue: #3b82f6;
}

/* Welcome: membership only (no class card) */
.rn-welcome__cards--parent {
  justify-content: flex-end;
}
.rn-status-card--parent {
  min-width: 360px;
}

/* Daily Play */
.rn-daily {
  margin: 0;
}
.rn-daily__body {
  display: flex;
  gap: 0;
  border: 1px solid var(--rn-border);
  border-radius: var(--rn-radius-lg);
  overflow: hidden;
  background: #fff;
  min-height: 324px;
}
.rn-daily__thumb {
  flex: 0 0 392px;
  width: 392px;
  max-width: 45%;
  overflow: hidden;
  background: #f3f4f6;
}
.rn-daily__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 324px;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
}

.rn-daily__thumb img:hover{
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
}

.rn-daily__info {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
}
.rn-daily__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.rn-daily__chip {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.rn-daily__chip[hidden] {
  display: none !important;
}
.rn-daily__chip--age {
  background: #e8f0fe;
  color: #2563eb;
}
.rn-daily__chip--type {
  background: #f3f4f6;
  color: #4b5563;
}
.rn-daily__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  color: #111;
  line-height: 1.3;
}
.rn-daily__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #6b7280;
}
.rn-btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
    width: 100%;
  height: 56px;
  border-radius: 999px;
  background: var(--rn-accent);
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}
.rn-btn-start svg{
    width: 24px;
    height: 24px;
    fill: #fff;
}

.rn-btn-start:hover{
    background: #ef5933;
}
.rn-btn-start img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Weekly Portfolio */
.rn-portfolio__tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 12px;
  padding: 4px;
  background: #f3f4f6;
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rn-portfolio__tab {
  flex: 1 0 auto;
  min-width: 100px;
  height: 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
}
.rn-portfolio__tab:hover{
    color: #000;
}
.rn-portfolio__tab.is-active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.rn-portfolio__count {
  margin: 0 0 16px;
  font-size: 14px;
  color: #6b7280;
}
.rn-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
    min-height: 200px;
}
.rn-portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  box-sizing: border-box;
  min-height: 271px;
}
.rn-portfolio-card__child {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(128, 128, 128, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rn-portfolio-card__thumb {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}
.rn-portfolio-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rn-portfolio-card__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  flex: 1 1 auto;
}
.rn-portfolio-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  width: fit-content;
}
.rn-portfolio-card__tag--math { background: #e8f7d4; color: #76b525; }
.rn-portfolio-card__tag--english { background: #fff4d6; color: #ffa946; }
.rn-portfolio-card__tag--safety { background: #ffe4e4; color: #ff6b6b; }
.rn-portfolio-card__tag--creativity { background: #ffe4e4; color: #ff6b6b; }
.rn-portfolio-card__tag--read { background: #e8e0ff; color: #917bff; }
.rn-portfolio-card__tag--play { background: #e8e0ff; color: #917bff; }
.rn-portfolio-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #2d2d2d;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rn-portfolio-card__date {
  margin: 0;
  font-size: 14px;
  color: rgba(128, 128, 128, 0.55);
}
.rn-portfolio-card__dl {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  margin-top: 0;
  border-radius: 16px;
  background: #7a7a7a;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
}

.rn-portfolio-card__dl:hover{
    background: var(--rn-accent);
    color: #fff;
}


/* Play Ideas (sidebar + mobile) */
.rn-ideas {
  background: var(--rn-ideas-bg);
  border-radius: var(--rn-radius);
  padding: 24px;
  box-sizing: border-box;
}
.rn-ideas[hidden],
.rn-ideas-m[hidden] {
  display: none !important;
}
.rn-ideas__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rn-ideas__title svg {
    width: 24px;
    height: 24px;
    fill: var(--rn-accent);
}
.rn-ideas__desc {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}
.rn-ideas__desc strong { font-weight: 800; color: #111; }
.rn-ideas__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 999px;
    background: var(--rn-accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.rn-ideas__btn:hover{
    background: var(--rn-accent-dark)
}

/* Discover: parent — Figma 1327:516 (PC) / 1159·1160 (Mobile)
 * .has-shorts 있으면 2×2 + Shorts / 없으면 PC 3열·Mobile 2×2 */
.rn-discover--parent .rn-discover__grid {
  display: none !important;
}
.rn-discover--parent .rn-discover__layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.rn-discover--parent .rn-discover__mag {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 20px;
}
.rn-discover--parent .rn-discover__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.rn-discover--parent .rn-discover__thumb {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}
.rn-discover--parent .rn-discover__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}
.rn-discover--parent .rn-discover__thumb img:hover {
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
}
.rn-discover--parent .rn-discover__item p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #2d2d2d;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.rn-discover--parent .rn-discover__shorts {
  position: relative;
  width: 282px;
  height: 456px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.5);
  display: block;
  background: #1e1e1e;
  text-decoration: none;
}
.rn-discover--parent .rn-discover__shorts[hidden] {
  display: none !important;
}

/* Shorts 없을 때 (PC): 매거진 3열 */
.rn-discover--parent:not(.has-shorts) .rn-discover__layout {
  display: block;
}
.rn-discover--parent:not(.has-shorts) .rn-discover__mag {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rn-discover--parent:not(.has-shorts) .rn-discover__mag .rn-discover__item:nth-child(n + 4) {
  display: none;
}
.rn-discover--parent:not(.has-shorts) .rn-discover__shorts {
  display: none !important;
}

/* Daily Play chip colors (Figma) */
.rn-daily__chip--age {
    background: #fff1ed;
    color:  var(--rn-accent);
    font-weight: 500;
  text-transform: uppercase;
}
.rn-daily__chip--type {
  background: #f5f5f5 !important;
    color: #7a7a7a ;
    font-weight: 500;
  text-transform: uppercase;
}
.rn-daily__body {
  border-radius: 32px !important;
  box-shadow: 0 4px 12px rgba(74, 46, 38, 0.05);
}
.rn-btn-start {
  border-radius: 14px !important;
    background:  var(--rn-accent);
  gap: 0;
}
.rn-daily__top-m {
  display: none;
}
.rn-daily__meta-pc {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Library: parent PC = 3 cards (4th hidden) */
.rn-library--parent .rn-card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.rn-library--parent [data-rn-library-grid] .rn-card:nth-child(n + 4) {
  display: none !important;
}


/* Parent mobile ideas panel */
.rn-ideas-m {
  display: none;
}

@media (max-width: 1023px) {
  /* ===== Daily Play mobile (Figma 1:547) =====
   * Daily Play 타이틀
   * Color Finding Game     [Age 3] [Sensory play]
   * [이미지 rounded 24px]
   * [▶ Start full width]
   */


  .rn-daily.rn-panel {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    padding: 28px 20px 24px !important;
    border-radius: 24px !important;
  }
  .rn-daily .rn-section-head {
    margin-bottom: 24px;
  }
  .rn-daily .rn-section-title {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #000 !important;
    letter-spacing: 0 !important;
  }

  .rn-daily__top-m {
    display: flex !important;
        align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 11px;
        flex-direction: column;
  }
  .rn-daily__title-m {
    margin: 0;
    flex: 1;
    min-width: 0;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.5;
        color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rn-daily__top-m .rn-daily__chips {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
    margin: 0;
  }
  .rn-daily__top-m .rn-daily__chip {
    height: auto;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
  }
  .rn-daily__top-m .rn-daily__chip--age {
        font-size: 15px;
        font-weight: 400;
  }
  .rn-daily__top-m .rn-daily__chip--type {
        font-size: 15px;
        font-weight: 400;
  }

  .rn-daily__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 0;
        background: transparent;
    overflow: visible;
  }
  .rn-daily__thumb {
    flex: none;
    width: 100%;
    max-width: 100%;
        border-radius: 24px;
    overflow: hidden;
  }
  .rn-daily__thumb img {
        min-height: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 550 / 314;
    object-fit: cover;
    display: block;
  }
  .rn-daily__thumb img.rn-m-only {
        display: block;
  }
  .rn-daily__info {
        padding: 0;
    gap: 0;
  }
  .rn-daily__meta-pc {
    display: none !important;
  }
  .rn-daily .rn-btn-start {
    display: flex !important;
    width: 100%;
    height: auto;
        min-height: 50px;
        padding: 16px 24px ;
    border-radius: 14px !important;
        background:  var(--rn-accent);
        font-size: 18px ;
        font-weight: 500;
    color: #fff !important;
    box-sizing: border-box;
        gap: 4px;
    }
    .rn-daily .rn-btn-start svg{
        width:24px;
        height: 24px;
        fill: #fff;
  }

  .rn-portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .rn-portfolio-card { min-height: 0; padding: 10px; }
  .rn-portfolio__tabs { margin-top: 12px; }
  .rn-portfolio__tab { min-width: 72px; font-size: 13px; }


  .rn-library--parent .rn-card-grid--3,
  .rn-library--parent .rn-card-grid--4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .rn-library--parent [data-rn-library-grid] .rn-card:nth-child(n + 4) {
    display: flex !important;
  }

  /* Discover mobile: 1159=2×2 / 1160=매거진+Shorts 교차 */
  .rn-discover--parent .rn-discover__layout {
    width: 100%;
  }
  .rn-discover--parent:not(.has-shorts) .rn-discover__layout {
    display: block !important;
  }
  .rn-discover--parent:not(.has-shorts) .rn-discover__mag {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px 20px !important;
  }
  .rn-discover--parent:not(.has-shorts) .rn-discover__mag .rn-discover__item:nth-child(n + 4) {
    display: flex !important;
  }

  .rn-discover--parent.has-shorts .rn-discover__layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px 20px !important;
  }
  .rn-discover--parent.has-shorts .rn-discover__mag {
    display: contents !important;
  }
  .rn-discover--parent.has-shorts .rn-discover__item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .rn-discover--parent.has-shorts .rn-discover__item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .rn-discover--parent.has-shorts .rn-discover__item:nth-child(3) { grid-column: 1; grid-row: 2; }
  .rn-discover--parent.has-shorts .rn-discover__item:nth-child(4) { grid-column: 1; grid-row: 3; }
  .rn-discover--parent.has-shorts .rn-discover__shorts {
    display: block !important;
    grid-column: 2;
    grid-row: 2 / span 2;
    width: 100%;
    height: auto;
    min-height: 280px;
    align-self: stretch;
  }
  .rn-discover--parent .rn-discover__item p {
    font-size: 15px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }
  .rn-discover--parent .rn-discover__shorts p {
    font-size: 15px;
    bottom: 12px;
  }
  .rn-discover--parent .rn-btn-outline {
    display: flex !important;
    margin-top: 0;
  }

  .rn-ideas-m {
    display: block !important;
  }
  .rn-ideas-m .rn-ideas {
    border-radius: 20px;
  }

  .rn-watch .rn-card-grid--3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* PC 6 / 모바일 4 (5·6번째 숨김) */
  .rn-watch__grid .rn-card:nth-child(n + 5) {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .rn-daily__top-m { display: none !important; }
  .rn-daily__meta-pc { display: flex; }
  .rn-daily__title {
    font-size: 32px;
    font-weight: 800;
  }
  .rn-daily__desc {
    font-size: 16px;
    line-height: 1.6;
  }
  .rn-daily .rn-btn-start {
        width: 100%;
        height: 48px;
    font-size: 17px;
  }
}

/* Continue mobile: row layout already flex */

/* 하단 탭바 "오늘의 놀이 시작하기" CTA로 스크롤 이동 시 sticky 모바일 헤더에 타이틀이 가려지지 않도록 */
@media (max-width: 1023px) {
  #rnDailyPlaySection {
    scroll-margin-top: 72px;
  }
}
