/* 활용법 페이지 (/routine/) — scripts/homepage/routine_build.py 가 만든 쪽의 모양.
   색·글꼴은 site.css, 머리·메뉴는 blog.css · menu.css 를 그대로 쓴다. */

.rt-main { padding: 36px 16px 90px; background: var(--white); }
.rt-post, .rt-list { max-width: 960px; margin: 0 auto; }
.rt-kicker { font-size: 15px; font-weight: 900; color: var(--blue); }
.rt-lead { margin-top: 14px; font-size: 18px; font-weight: 600; line-height: 1.7; color: var(--muted); word-break: keep-all; }
.rt-note { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rt-crumb { display: flex; gap: 8px; font-size: 14px; font-weight: 800; color: var(--muted); }
.rt-crumb a { color: var(--blue); }

/* 머리: 표지 사진 + 소개 */
.rt-hero { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 18px; }
.rt-cover { position: relative; margin: 0; }
.rt-cover img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 50px rgba(8, 24, 53, .16); }
.rt-cover figcaption, .rt-photo figcaption { position: absolute; left: 14px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(5, 15, 36, .55); color: #fff; font-size: 12px; font-weight: 700; }
.rt-intro h1 { margin-top: 8px; font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; line-height: 1.22; letter-spacing: -.04em; color: var(--navy); word-break: keep-all; }
.rt-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.rt-facts li { display: flex; flex-direction: column; min-width: 92px; padding: 12px 16px; border-radius: 16px; background: var(--ice); font-size: 13px; font-weight: 700; color: var(--muted); }
.rt-facts b { font-size: 24px; font-weight: 900; color: var(--navy); letter-spacing: -.03em; }

/* 오늘의 50단어 막대 — 읽어 내려가면 찬다 (js/routine.js) */
.rt-meter {
  position: sticky; top: 68px; z-index: 40; margin: 34px -16px 0; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line);
  font-size: 14px; font-weight: 800; color: var(--navy);
}
.rt-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--ice); overflow: hidden; }
.rt-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .5s var(--ease); }
.rt-meter b { font-size: 16px; font-weight: 900; color: var(--blue); white-space: nowrap; }
.rt-m-clock { min-width: 48px; padding: 3px 8px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 13px; text-align: center; }
.rt-meter.done .rt-bar i { background: #12B76A; }
.rt-meter.done b { color: #12B76A; }

/* 하루 시간대 */
.rt-day { margin: 10px 0 0; padding: 0; list-style: none; }
.rt-slot {
  position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 28px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.rt-when { position: sticky; top: 130px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.rt-when b { font-size: 26px; font-weight: 900; letter-spacing: -.02em; color: var(--navy); }
.rt-when span { font-size: 14px; font-weight: 700; color: var(--muted); word-break: keep-all; }
.rt-body h2 { margin-top: 10px; font-size: 23px; font-weight: 900; line-height: 1.35; letter-spacing: -.03em; color: var(--navy); word-break: keep-all; }
.rt-body p { margin-top: 10px; font-size: 16.5px; font-weight: 500; line-height: 1.75; color: #33415C; word-break: keep-all; }
.rt-body p b { color: var(--navy); font-weight: 800; }
.rt-add { display: inline-flex; align-items: baseline; gap: 6px; margin: 0 !important; padding: 5px 12px; border-radius: 999px; font-size: 14px !important; font-weight: 900 !important; }
.rt-add.new { background: var(--blue); color: #fff !important; }
.rt-add.new small { font-size: 12px; font-weight: 700; opacity: .85; }
.rt-add.review { background: #FFF4D6; color: #8A5A00 !important; }
.rt-add.listen { background: #EDE9FE; color: #5B3DC4 !important; }
.rt-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px !important; }
.rt-feats a { padding: 5px 11px; border-radius: 999px; background: var(--ice); font-size: 13px; font-weight: 800; color: var(--blue); }
.rt-feats a:hover { background: var(--blue); color: #fff; }

/* 앱 화면 (아이폰 17 비율 캡처) */
.rt-shots { display: flex; gap: 14px; align-items: flex-start; }
.rt-phone { margin: 0; width: 210px; padding: 8px; border-radius: 34px; background: #fff; box-shadow: 0 0 0 1.5px #D3DAE6, 0 18px 40px rgba(8, 24, 53, .14); }
.rt-phone img { display: block; width: 100%; aspect-ratio: 1200 / 2608; object-fit: cover; object-position: top; border-radius: 26px; }
.rt-phone figcaption { margin-top: 8px; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--muted); text-align: center; word-break: keep-all; }
.rt-shots.n2 .rt-phone { width: 180px; }
/* 화면이 3장이면 글 아래 한 줄로 */
.rt-slot:has(.rt-shots.n3) { grid-template-columns: 110px minmax(0, 1fr); }
.rt-slot:has(.rt-shots.n3) .rt-shots { grid-column: 2; }
.rt-shots.n3 .rt-phone { width: 180px; }
@media (max-width: 860px) { .rt-slot:has(.rt-shots.n3) { grid-template-columns: minmax(0, 1fr); } .rt-slot:has(.rt-shots.n3) .rt-shots { grid-column: 1; } }
@media (max-width: 640px) { .rt-shots.n3 .rt-phone { width: min(110px, 30vw); padding: 5px; border-radius: 20px; } .rt-shots.n3 { gap: 8px; } }

/* 장면 사진 */
.rt-photo { padding: 40px 0 0; }
.rt-photo figure { position: relative; margin: 0; }
.rt-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 35%; border-radius: 28px; }

/* 하루 정리 · 따라 하기 */
.rt-sum, .rt-setup, .rt-more { margin-top: 56px; }
.rt-sum h2, .rt-setup h2, .rt-more h2 { font-size: 26px; font-weight: 900; letter-spacing: -.03em; color: var(--navy); }
.rt-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.rt-nums li { padding: 18px; border-radius: 18px; background: var(--ice); display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rt-nums b { font-size: 28px; font-weight: 900; color: var(--navy); }
.rt-used-t { margin-top: 18px; font-size: 14px; font-weight: 900; color: var(--muted); }
.rt-used { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.rt-used li { padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 800; color: var(--navy); }
.rt-setup ol { margin: 16px 0 0; padding-left: 22px; }
.rt-setup li { margin-top: 10px; font-size: 16.5px; line-height: 1.7; color: #33415C; }
.rt-setup li b { color: var(--navy); }
.rt-fine { margin-top: 28px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* 목록 · 학습자 카드 */
.rt-list-h { max-width: 720px; }
.rt-list-h h1 { margin-top: 8px; font-size: clamp(32px, 5vw, 52px); font-weight: 900; line-height: 1.2; letter-spacing: -.04em; color: var(--navy); }
.rt-list-h h1 em { font-style: normal; color: var(--blue); }
.rt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 30px; }
.rt-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1.5px var(--line), 0 12px 30px rgba(8, 24, 53, .08); transition: transform .2s var(--ease); }
.rt-card:hover { transform: translateY(-4px); }
.rt-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; }
.rt-card-b { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.rt-card-b small { font-size: 13px; font-weight: 800; color: var(--blue); }
.rt-card-b b { font-size: 19px; font-weight: 900; line-height: 1.35; color: var(--navy); word-break: keep-all; }
.rt-card-b ul { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 0; padding: 0; list-style: none; }
.rt-card-b li { padding: 4px 9px; border-radius: 999px; background: var(--ice); font-size: 12px; font-weight: 800; color: var(--navy); }

/* 좁은 화면 */
@media (max-width: 860px) {
  .rt-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rt-cover { max-width: 360px; }
  .rt-slot { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 32px 0; }
  .rt-when { position: static; flex-direction: row; align-items: baseline; gap: 10px; }
  .rt-shots { justify-content: center; }
  .rt-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rt-meter { top: 60px; gap: 8px; font-size: 12.5px; }
  .rt-m-t { display: none; }
  .rt-body h2 { font-size: 20px; }
  .rt-body p { font-size: 15.5px; }
  .rt-lead { font-size: 16px; }
  .rt-phone { width: min(200px, 62vw); }
  .rt-shots.n2 .rt-phone { width: min(160px, 44vw); }
  .rt-photo img { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-bar i, .rt-card { transition: none; }
}
