/* Research notes: reading layout on top of /site.css (same tokens: black, green, Geist Mono + Pretendard). */
.r-links { display: flex; gap: 16px; padding-right: 8px; }
.r-links a { color: var(--dim); transition: color 300ms var(--ease); }
.r-links a:hover, .r-links a[aria-current] { color: var(--fg); }

.r-page { max-width: 1040px; margin: 0 auto; padding: 128px 40px 96px; }
.r-crumb { font-size: 13px; line-height: 20px; color: var(--dim); margin-bottom: 16px; }
.r-crumb a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }
.r-crumb a:hover { color: var(--fg); }
.r-note { font-size: 14px; line-height: 22px; color: var(--fg); background: var(--s1); border: 1px solid var(--line); border-left: 2px solid var(--g); border-radius: 8px; padding: 10px 14px; margin-bottom: 32px; }
.r-note .g { font-weight: 700; margin-right: 6px; }
.r-head h1 { font-size: 36px; line-height: 44px; letter-spacing: -0.01em; max-width: 860px; }
.r-meta { font-size: 13px; line-height: 20px; color: var(--dim); margin-top: 12px; }
.r-sub { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-top: 24px; font-size: 14px; }
.r-sub a { color: var(--g); text-decoration: underline; text-underline-offset: 3px; }
.r-toc { margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.r-toc summary { cursor: pointer; color: var(--dim); }
.r-toc ol { margin: 8px 0 0 20px; }
.r-toc li { padding: 2px 0; }
.r-toc a { color: var(--fg); }
.r-toc a:hover { color: var(--g); }

.r-prose { margin-top: 40px; font-size: 15px; line-height: 26px; color: #cfcfcf; }
.r-prose h2 { font-size: 24px; line-height: 32px; color: var(--fg); margin: 56px 0 16px; padding-top: 32px; border-top: 1px solid var(--line); max-width: none; }
.r-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.r-prose h3 { font-size: 18px; line-height: 26px; color: var(--fg); margin: 36px 0 12px; }
.r-prose h4, .r-prose h5, .r-prose h6 { font-size: 15px; color: var(--fg); margin: 24px 0 8px; }
.r-prose p { margin: 12px 0; max-width: 860px; }
.r-prose strong { color: var(--fg); font-weight: 600; }
.r-prose em { color: var(--fg); font-style: normal; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.r-prose a { color: var(--g); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(57, 255, 20, 0.35); overflow-wrap: anywhere; }
.r-prose a:hover { text-decoration-color: var(--g); }
.r-prose code { font-family: var(--font); font-size: 0.86em; background: var(--s2); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; color: var(--fg); }
.r-prose ul, .r-prose ol { margin: 12px 0 12px 22px; max-width: 880px; }
.r-prose li { margin: 6px 0; }
.r-prose li > ul, .r-prose li > ol { margin: 6px 0 6px 20px; }
.r-prose ul { list-style: none; }
.r-prose ul > li { position: relative; }
.r-prose ul > li::before { content: "–"; position: absolute; left: -18px; color: var(--g); }
.r-prose hr { border: 0; border-top: 1px dashed var(--line2); margin: 56px 0; }
.r-prose blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 2px solid var(--g); color: var(--fg); }

.r-table { margin: 20px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.r-table table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; min-width: 720px; }
.r-table th, .r-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; word-break: normal; }
.r-table thead th { position: sticky; top: 0; background: var(--s1); color: var(--dim); font-weight: 500; white-space: nowrap; }
.r-table tbody tr:last-child td { border-bottom: 0; }
.r-table td:first-child { color: var(--fg); }
.r-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

.r-list { list-style: none !important; margin: 16px 0 !important; display: grid; gap: 8px; max-width: none !important; }
.r-list li { margin: 0 !important; }
.r-list li::before { content: none !important; }
.r-list a { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 24px; padding: 16px 20px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color 300ms var(--ease), transform 500ms var(--ease); }
.r-list a:hover { border-color: var(--g); transform: translateY(-2px); }
.r-list .r-t { color: var(--g); font-weight: 600; }
.r-list .r-d { color: var(--dim); font-size: 14px; line-height: 22px; }
.r-indent { margin: 24px 0 0 !important; font-size: 13px; }

.r-back { margin-top: 64px; font-size: 14px; }
.r-back a { color: var(--dim); }
.r-back a:hover { color: var(--g); }

@media (max-width: 720px) {
  .r-page { padding: 112px 16px 64px; }
  .r-head h1 { font-size: 28px; line-height: 36px; }
  .r-prose h2 { font-size: 20px; line-height: 28px; }
  .r-list a { grid-template-columns: 1fr; gap: 6px; }
  .r-links { padding-right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .r-list a:hover { transform: none; }
}
