/* 2026-10-14 OK 영문법 개인 처방 · 커리큘럼 ("나에게 필요한 것", skill/template/grammar_rx.jsp). 단원 첫 화면과 내 실력 화면에 쓴다. */
.gm-rx { margin: 0 0 32px; }
.gm-rx .gi-h small, .gm-rx > h3 small { display: block; margin-top: 4px; color: var(--ps-ink-3); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.gm-rx__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.gm-rx__box { padding: 18px 20px; border: 1px solid var(--ps-line); border-radius: 18px; background: #fff; }
.gm-rx__box h4, .gm-rx__h { margin: 0 0 10px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.gm-rx__h { margin-top: 18px; }
.gm-rx__empty { margin: 0; color: var(--ps-ink-3); font-size: 14px; line-height: 1.7; }
.gm-rx__mis { margin: 0; padding: 0; list-style: none; counter-reset: gmmis; }
.gm-rx__mis > li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--ps-line); counter-increment: gmmis; }
.gm-rx__mis > li:first-child { border-top: 0; padding-top: 2px; }
.gm-rx__mis > li::before { content: counter(gmmis); position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: #fdecec; color: #c0392b;
    font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.gm-rx__mis > li:first-child::before { top: 2px; }
.gm-rx__mis b { font-size: 14.5px; }
.gm-rx__mis em { margin-left: 6px; color: #c0392b; font-size: 12px; font-style: normal; font-weight: 700; }
.gm-rx__mis span { display: block; margin-top: 2px; color: var(--ps-ink-2, #3d4654); font-size: 13.5px; line-height: 1.6; }
.gm-rx__mis p { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gm-rx__mis a, .gm-rx__path a { color: var(--ps-brand); font-weight: 700; text-decoration: none; }
.gm-rx__mis p a { padding: 3px 10px; border: 1px solid var(--ps-line); border-radius: 999px; font-size: 12.5px; }
.gm-rx__mis p a small { color: var(--ps-ink-3); font-size: 11px; font-weight: 700; }
.gm-rx__mis a:hover, .gm-rx__path a:hover, .gm-rx__weak a:hover { text-decoration: underline; }
.gm-rx__weak { margin: 0; padding: 0; list-style: none; }
.gm-rx__weak li { padding: 8px 0; border-top: 1px solid var(--ps-line); }
.gm-rx__weak li:first-child { border-top: 0; padding-top: 0; }
.gm-rx__weak a { color: var(--ps-ink-1, #121826); font-size: 14px; font-weight: 700; text-decoration: none; }
.gm-rx__weak span { display: block; margin-top: 2px; color: var(--ps-ink-3); font-size: 12.5px; }
.gm-rx__path { margin: 0; padding: 0; list-style: none; counter-reset: gmpath; }
.gm-rx__path > li { position: relative; padding: 12px 16px 12px 52px; margin-bottom: 8px; border: 1px solid var(--ps-line); border-radius: 14px; background: #fff; counter-increment: gmpath; }
.gm-rx__path > li::before { content: counter(gmpath); position: absolute; left: 16px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--ps-brand); color: #fff;
    font-size: 13px; font-weight: 800; line-height: 24px; text-align: center; }
.gm-rx__path .k { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 6px; background: #eef7f1; color: var(--ps-brand); font-size: 12px; font-weight: 800; }
.gm-rx__path small { display: block; margin-top: 3px; color: var(--ps-ink-3); font-size: 12.5px; line-height: 1.6; }
@media (max-width: 720px) {
    .gm-rx__grid { grid-template-columns: minmax(0, 1fr); }
    .gm-rx__box { padding: 16px; }
    .gm-rx__path > li { padding-left: 46px; }
}
/* 처방 링크로 절에 내려왔을 때 위 메뉴에 가리지 않게 */
#main .gi .gi-h[id] { scroll-margin-top: 96px; }
