.rt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-pills--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--page-pad)); padding-right: var(--page-pad); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.rt-pills--scroll::-webkit-scrollbar { display: none; }
.rt-pill { display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch); padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-ink); font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; text-decoration: none; }
.rt-pill:hover { border-color: var(--c-navy); color: var(--c-ink); }
.rt-pill[aria-selected="true"], .rt-pill[aria-pressed="true"], .rt-pill.is-active { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.rt-pill__count { font-size: 13px; font-weight: 700; color: var(--c-muted); }
.rt-pill[aria-selected="true"] .rt-pill__count, .rt-pill[aria-pressed="true"] .rt-pill__count, .rt-pill.is-active .rt-pill__count { color: #C6D4E2; }
.rt-pill[aria-disabled="true"] { opacity: .45; cursor: not-allowed; border-style: dashed; }
.rt-pill--sm { min-height: 36px; padding: 0 12px; font-size: 14px; } .rt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--c-line); overflow-x: auto; scrollbar-width: none; }
.rt-tabs::-webkit-scrollbar { display: none; }
.rt-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: transparent; font-weight: 600; font-size: 16px; color: var(--c-text-2); cursor: pointer; }
.rt-tab:hover { color: var(--c-ink); }
.rt-tab[aria-selected="true"] { border-bottom-color: var(--c-navy); color: var(--c-ink); font-weight: 700; }
.rt-tab__count { padding: 2px 8px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; background: var(--c-surface-2); color: var(--c-muted); }
.rt-tab[aria-selected="true"] .rt-tab__count { background: var(--c-navy); color: #fff; } .rt-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); }
.rt-seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 14px; color: var(--c-ink); }
.rt-seg button[aria-pressed="true"] { background: var(--c-navy); color: #fff; } .rt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-pill); background: var(--c-surface-2); color: var(--c-ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.rt-chip--outline { background: var(--c-surface); border: 1px solid var(--c-line); }
.rt-chip--link { text-decoration: none; border: 1px solid var(--c-line-strong); background: var(--c-surface); min-height: 36px; }
.rt-chip--link:hover { border-color: var(--c-navy); color: var(--c-ink); }
.rt-chip--remove { background: var(--c-navy-tint); border: 0; min-height: 40px; cursor: pointer; }
.rt-chip--glass { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); text-decoration: none; }
.rt-chip--glass:hover { background: rgba(255,255,255,.24); color: #fff; } .rt-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.rt-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill); background: #fff; color: var(--c-ink); font-size: 12px; font-weight: 700; line-height: 1.3; box-shadow: 0 1px 3px rgba(20,36,58,.12); }
.rt-badge--navy { background: var(--c-navy); color: #fff; } .rt-stars { display: inline-flex; gap: 1px; color: var(--c-star); line-height: 1; vertical-align: middle; }
.rt-stars svg { width: 14px; height: 14px; }
.rt-stars__sup { font-size: 12px; font-weight: 700; color: var(--c-muted); margin-left: 3px; }
.rt-rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px; color: var(--c-ink); }
.rt-rating svg { width: 15px; height: 15px; color: var(--c-star); }
.rt-rating__count { font-weight: 500; color: var(--c-muted); }
.rt-rating--on-image { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: var(--r-pill); background: #fff; font-size: 13px; box-shadow: 0 1px 3px rgba(20,36,58,.12); } .rt-crumbs { font-size: 14px; color: var(--c-muted); }
.rt-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rt-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--c-line-strong); }
.rt-crumbs a { color: var(--c-link); text-decoration: none; }
.rt-crumbs a:hover { text-decoration: underline; }
.rt-crumbs [aria-current="page"] { color: var(--c-ink); }
.is-dark .rt-crumbs, .is-dark .rt-crumbs a { color: #fff; } .rt-accordion { display: flex; flex-direction: column; gap: 10px; }
.rt-acc { border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface); }
.rt-acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 18px; font-weight: 700; color: var(--c-ink); cursor: pointer; }
.rt-acc > summary::-webkit-details-marker { display: none; }
.rt-acc > summary::after { content: "+"; font-size: 22px; font-weight: 500; color: var(--c-navy); line-height: 1; }
.rt-acc[open] > summary::after { content: "–"; }
.rt-acc__body { padding: 0 18px 18px; color: var(--c-text-2); line-height: 1.65; } .rt-pager { display: flex; align-items: center; gap: 8px; }
.rt-pager a, .rt-pager span { min-width: var(--touch); height: var(--touch); display: inline-grid; place-items: center; padding: 0 8px; border-radius: var(--r-md); border: 1px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-ink); font-weight: 700; text-decoration: none; }
.rt-pager [aria-current="page"] { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.rt-pager .is-gap { border: 0; background: transparent; min-width: 20px; } .rt-toc { position: relative; }
.rt-toc__title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 12px; }
.rt-toc ol { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: flex; flex-direction: column; }
.rt-toc ol::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: var(--c-line-strong); }
.rt-toc__progress { position: absolute; left: 7px; top: 14px; width: 2px; height: 0; background: var(--c-navy); transition: height var(--dur-3) var(--ease); }
.rt-toc li { position: relative; }
.rt-toc li::before { content: ""; position: absolute; left: -25px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c-line-strong); background: var(--c-surface); box-sizing: border-box; z-index: 1; }
.rt-toc li.is-done::before, .rt-toc li.is-current::before { background: var(--c-navy); border-color: var(--c-navy); }
.rt-toc li.is-current::before { box-shadow: 0 0 0 4px rgba(30,61,99,.18); }
.rt-toc a { display: flex; align-items: center; min-height: 37px; color: var(--c-text-2); text-decoration: none; font-size: 15px; }
.rt-toc li.is-current a { color: var(--c-ink); font-weight: 700; }
.rt-toc a:hover { color: var(--c-ink); } .rt-toc-bar { display: none; }
@media (max-width: 1023px) {
.rt-toc-bar { display: block; position: sticky; top: var(--header-h-mobile); z-index: 20; background: var(--c-surface); border-bottom: 1px solid var(--c-line); box-shadow: 0 8px 20px rgba(20,36,58,.06); margin: 0 calc(-1 * var(--page-pad)); }
.rt-toc-bar > button { width: 100%; height: 52px; border: 0; background: transparent; padding: 0 var(--page-pad); display: flex; align-items: center; gap: 10px; text-align: left; }
.rt-toc-bar__label { font-size: 14px; color: var(--c-muted); font-weight: 600; }
.rt-toc-bar__current { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-toc-bar__meter { height: 3px; background: var(--c-line); }
.rt-toc-bar__meter > span { display: block; height: 100%; width: 0; background: var(--c-navy); }
.rt-toc-bar .rt-toc { padding: 8px var(--page-pad) 14px; }
}