/* Public review list and shared-review detail page. */
:root {
    --rp-ink: #011C40;
    --rp-blue: #1243A6;
    --rp-action: #1D64F2;
    --rp-paper: #FFFFFF;
    --rp-wash: #F5F8FC;
    --rp-line: #DFE6EF;
    --rp-secondary: #4D5C70;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Noto Sans KR', sans-serif; color: var(--rp-ink); background: var(--rp-paper); word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
button, input, summary { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rp-action); outline-offset: 4px; }
.rp-shell { width: min(100% - 3rem, 74rem); margin: 0 auto; padding: 2rem 0 4rem; }
.rp-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.rp-heading-line { display: flex; gap: .85rem; align-items: baseline; }
.rp-heading h1 { font-size: clamp(1.9rem, 3.3vw, 2.65rem); letter-spacing: -.055em; line-height: 1.2; font-weight: 800; margin: 0; }
.rp-total { color: var(--rp-blue); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 0 1.2rem; border-bottom: 1px solid var(--rp-line); }
.rp-course-picker { position: relative; width: min(100%, 25rem); z-index: 20; }
.rp-course-picker summary { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--rp-line); border-radius: .65rem; cursor: pointer; font-size: .9rem; font-weight: 600; list-style: none; min-height: 3rem; }
.rp-course-picker summary::-webkit-details-marker { display: none; }
.rp-course-picker summary span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-course-picker svg { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.rp-course-picker[open] summary { border-color: var(--rp-action); }
.rp-course-popover { position: absolute; top: calc(100% + .5rem); left: 0; width: min(29rem, calc(100vw - 3rem)); background: white; padding: .75rem; border: 1px solid var(--rp-line); border-radius: .75rem; box-shadow: 0 10px 36px #011c401c; }
.rp-course-popover input { width: 100%; border: 1px solid var(--rp-line); background: var(--rp-wash); border-radius: .4rem; padding: .8rem; font-size: .9rem; color: var(--rp-ink); }
.rp-course-options { list-style: none; padding: 0; margin: .5rem 0 0; max-height: min(22rem, 50vh); overflow-y: auto; }
.rp-course-options button { width: 100%; text-align: left; display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; min-height: 2.8rem; padding: .7rem .6rem; border: 0; border-radius: .35rem; background: white; color: var(--rp-ink); font-size: .85rem; line-height: 1.6; }
.rp-course-options button:hover, .rp-course-options button[aria-pressed="true"] { background: var(--rp-wash); color: var(--rp-blue); }
.rp-course-options small { color: var(--rp-secondary); flex: none; font-variant-numeric: tabular-nums; }
.rp-sort { display: flex; gap: .2rem; padding: .25rem; border-radius: .65rem; background: var(--rp-wash); flex-shrink: 0; }
.rp-sort button { min-height: 2.65rem; border: none; background: transparent; border-radius: .45rem; color: var(--rp-secondary); padding: .6rem 1.1rem; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.rp-sort button[aria-pressed="true"] { background: var(--rp-ink); color: white; }
.rp-sort button:hover:not([aria-pressed="true"]) { color: var(--rp-blue); }
.rp-list-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; padding: 1.3rem 0 .9rem; }
.rp-list-heading h2 { font-size: 1rem; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.rp-list-heading > span { color: var(--rp-secondary); font-size: .78rem; }
.rp-feed { display: grid; gap: 1.15rem; }
.rp-group { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: .8rem; align-items: start; }
.rp-group--short-only { grid-template-columns: minmax(0, 1fr); }
.rp-card { display: flex; flex-direction: column; min-width: 0; padding: 1rem 1.2rem .55rem; border: 1px solid var(--rp-line); border-radius: .8rem; background: white; }
.rp-card--feature { grid-row: span 2; align-self: stretch; padding: 1.4rem 1.6rem .85rem; background: var(--rp-wash); border-color: transparent; }
.rp-card-header { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.rp-course-thumb { display: block; width: 7.5rem; flex: 0 0 7.5rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .45rem; background: white; }
.rp-course-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.rp-course-image--fallback { object-fit: contain; }
.rp-card-header > a, .rp-card-header > div { display: flex; align-items: center; gap: .85rem; min-width: 0; width: 100%; text-decoration: none; }
.rp-course-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .8rem; font-weight: 600; line-height: 1.6; letter-spacing: -.02em; }
.rp-card-header a:hover .rp-course-title { text-decoration: underline; text-underline-offset: 3px; }
.rp-rating { display: flex; align-items: center; gap: .7rem; margin-top: .7rem; }
.rp-stars { position: relative; color: #C1CCD9; font-size: .85rem; letter-spacing: .1em; line-height: 1; white-space: nowrap; }
.rp-stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #B97815; }
.rp-kind { font-size: .69rem; color: var(--rp-blue); font-weight: 500; }
.rp-text { --rp-preview-lines: 5.6; --rp-text-leading: 1.85; font-size: clamp(1rem, 1.25vw, 1.1rem); line-height: var(--rp-text-leading); letter-spacing: -.028em; margin: .75rem 0 .15rem; white-space: pre-line; display: block; max-height: calc(var(--rp-preview-lines) * var(--rp-text-leading) * 1em); overflow: hidden; overflow-wrap: anywhere; }
.rp-text.is-overflowing:not(.is-expanded) { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.4em), transparent 100%); mask-image: linear-gradient(to bottom, #000 calc(100% - 1.4em), transparent 100%); }
.rp-card--compact .rp-text { --rp-text-leading: 1.7; margin-top: .6rem; font-size: 1rem; }
.rp-compact-meta { display: inline-flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.rp-compact-meta .rp-stars { font-size: .72rem; }
.rp-text.is-expanded { max-height: none; }
.rp-empty-text { font-size: .875rem; color: var(--rp-secondary); margin: .7rem 0 .3rem; }
.rp-expand { display: inline-flex; align-items: center; gap: .45rem; align-self: start; border: none; background: transparent; padding: .45rem 0; min-height: 2.3rem; color: var(--rp-blue); font-size: .8rem; font-weight: 600; }
.rp-expand-icon { width: .4rem; height: .4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.1rem) rotate(45deg); }
.rp-expand[aria-expanded="true"] .rp-expand-icon { transform: translateY(.1rem) rotate(225deg); }
.rp-expand:hover { text-decoration: underline; text-underline-offset: 3px; }
.rp-card-footer { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-top: auto; padding-top: .35rem; font-size: .73rem; color: var(--rp-secondary); }
.rp-card-footer time { font-variant-numeric: tabular-nums; }
.rp-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .65rem 0 .3rem; }
.rp-action { display: flex; align-items: center; justify-content: center; min-height: 2.5rem; min-width: 0; padding: .45rem .3rem; border: 1px solid var(--rp-blue); border-radius: .4rem; font-size: .76rem; font-weight: 600; line-height: 1.4; text-align: center; }
.rp-share { border-color: #BDCCE3; background: white; color: var(--rp-blue); }
.rp-share:hover { border-color: var(--rp-blue); background: #EDF3FC; }
.rp-related { background: var(--rp-blue); color: white; }
.rp-related:hover { background: var(--rp-ink); border-color: var(--rp-ink); }
.rp-feed--list { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .8rem; }
.rp-feed--list > .rp-loading, .rp-feed--list > .rp-message { grid-column: 1 / -1; }
.rp-feed--list .rp-card { padding: 1.2rem 1.5rem .65rem; }
.rp-feed--list .rp-text { margin-top: 1rem; }
.rp-pagination { padding-top: 1.8rem; text-align: center; }
.rp-load-more { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-width: 15rem; max-width: 100%; min-height: 3.2rem; padding: .8rem 1.2rem; border: 1px solid var(--rp-line); background: white; color: var(--rp-ink); border-radius: .55rem; font-size: .9rem; font-weight: 600; }
.rp-load-more-icon { display: inline-block; flex: none; width: 1rem; height: 1rem; line-height: 1; }
.rp-load-more.is-loading { background: var(--rp-wash); color: var(--rp-secondary); }
.rp-load-more.is-loading .rp-load-more-icon { border: 2px solid var(--rp-line); border-top-color: var(--rp-blue); border-radius: 50%; animation: rp-spin .8s linear infinite; }
.rp-load-more:hover { border-color: var(--rp-action); color: var(--rp-blue); }
.rp-load-more:disabled { cursor: wait; }
.rp-pagination p { color: var(--rp-secondary); font-size: .8rem; min-height: 1.2em; }
.rp-message { background: var(--rp-wash); padding: 3rem 1.25rem; text-align: center; border-radius: .8rem; font-size: .95rem; }
.rp-loading-note { margin: 0 0 .9rem; color: var(--rp-secondary); font-size: .85rem; }
.rp-skeleton-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: .8rem; }
.rp-skeleton { display: flex; flex-direction: column; gap: 1rem; min-width: 0; padding: 1.2rem; border: 1px solid var(--rp-line); border-radius: .8rem; }
.rp-skeleton--feature { grid-row: span 2; background: var(--rp-wash); }
.rp-skeleton-head { display: flex; align-items: center; gap: .85rem; }
.rp-skeleton-thumb { flex: 0 0 6rem; aspect-ratio: 16 / 9; border-radius: .4rem; background: var(--rp-line); }
.rp-skeleton-title { width: 55%; height: .65rem; border-radius: .2rem; background: var(--rp-line); }
.rp-skeleton-lines { height: 2.75rem; background: repeating-linear-gradient(to bottom, var(--rp-line) 0 .6rem, transparent .6rem 1.5rem); }
.rp-skeleton--feature .rp-skeleton-lines { height: 7.25rem; }
.rp-skeleton-actions { height: 2rem; margin-top: auto; border: 1px solid var(--rp-line); border-radius: .35rem; }
.rp-skeleton-thumb, .rp-skeleton-title, .rp-skeleton-lines { animation: rp-pulse 1.6s ease-in-out infinite; }
.rp-feed--list .rp-skeleton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rp-feed--list .rp-skeleton--feature { grid-row: auto; background: white; }
.rp-feed--list .rp-skeleton-lines { height: 5.75rem; }
.rp-feed--list .rp-skeleton:last-child, .rp-shell--detail .rp-skeleton:not(:first-child) { display: none; }
.rp-shell--detail .rp-skeleton-grid { grid-template-columns: minmax(0, 1fr); }
@keyframes rp-pulse { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }
@keyframes rp-spin { to { transform: rotate(360deg); } }
.rp-message button { display: block; margin: 1rem auto 0; padding: .65rem 1rem; color: var(--rp-blue); border: 1px solid var(--rp-line); background: white; border-radius: .4rem; }
.rp-toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 1100; padding: .85rem 1.2rem; background: var(--rp-ink); color: white; border-radius: .5rem; font-size: .85rem; max-width: calc(100vw - 2rem); }
.rp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.rp-shell--detail { max-width: 51.25rem; }
.rp-shell--detail .rp-heading h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
.rp-shell--detail .rp-toolbar, .rp-shell--detail .rp-list-heading, .rp-shell--detail .rp-pagination { display: none; }
.rp-detail-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.rp-detail-toolbar .rp-action { padding-inline: .8rem; }
.rp-course-context { margin-bottom: 1.5rem; }
.rp-course-context section + section { margin-top: 1rem; }
.rp-context-heading { margin: 0 0 .65rem; font-size: .85rem; font-weight: 700; color: var(--rp-secondary); }
.rp-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.rp-context-card { display: flex; align-items: center; min-width: 0; gap: .85rem; padding: .75rem; border: 1px solid var(--rp-line); border-radius: .7rem; }
.rp-context-card--course { background: var(--rp-wash); }
.rp-context-card:hover { border-color: var(--rp-blue); }
.rp-context-title { flex: 1; min-width: 0; font-size: .875rem; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.rp-context-tag { display: block; margin-top: .25rem; font-size: .75rem; font-weight: 500; color: var(--rp-secondary); }
.rp-context-arrow { flex: none; color: var(--rp-blue); }
.rp-card--detail { padding: 1.3rem 1.5rem 1rem; }
.rp-card--detail .rp-course-title { display: block; font-size: 1rem; }
.rp-card--detail .rp-text { max-height: none; }
.rp-card--detail .rp-expand, .rp-card--detail .rp-card-actions { display: none; }
.rp-card--detail .rp-card-footer { justify-content: flex-start; padding-top: 1rem; }
@media (max-width: 768px) {
    .rp-shell { width: calc(100% - 2rem); padding-top: 1.7rem; }
    .rp-heading { align-items: center; gap: .5rem; margin-bottom: 1rem; }
    .rp-toolbar { flex-wrap: wrap; gap: .65rem; padding-bottom: .9rem; }
    .rp-course-picker { width: 100%; }
    .rp-course-popover { width: 100%; }
    .rp-sort { width: 100%; }
    .rp-sort button { flex: 1; padding-inline: .5rem; }
    .rp-list-heading { padding-top: 1.1rem; }
    .rp-list-heading > span { display: none; }
    .rp-group { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
    .rp-skeleton-grid, .rp-feed--list .rp-skeleton-grid { grid-template-columns: minmax(0, 1fr); }
    .rp-skeleton--feature { grid-row: auto; }
    .rp-card--feature { grid-row: auto; padding: 1.15rem 1.2rem .65rem; }
    .rp-text { --rp-preview-lines: 4.6; }
    .rp-card--compact { padding: .85rem 1.05rem .35rem; }
    .rp-course-thumb { width: 6rem; flex-basis: 6rem; }
    .rp-feed { gap: 1.25rem; }
    .rp-feed--list { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
    .rp-feed--list .rp-card { padding: 1rem 1.1rem .45rem; }
    .rp-context-grid { grid-template-columns: minmax(0, 1fr); }
    .rp-card--detail { padding: 1rem 1.1rem; }
}
@media (max-width: 480px) {
    .rp-heading-line { gap: .65rem; }
    .rp-total { font-size: .875rem; }
    .rp-course-title { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
    .rp-skeleton-thumb, .rp-skeleton-title, .rp-skeleton-lines, .rp-load-more.is-loading .rp-load-more-icon { animation: none; }
}
