/* Feed and personal trail journal share the exploration palette and card language. */
.site-page .feed-view, .site-page .mypage-view { background: #f6f8f5; scroll-behavior: smooth; }
.site-page .feed-container, .site-page .mypage-container { max-width: 1180px; padding: 42px 28px 64px; }
.community-intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.community-intro > a { flex-shrink: 0; }
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.community-stream, .mypage-library { min-width: 0; }
.community-aside { position: sticky; top: 28px; }
.community-discovery-card { position: relative; isolation: isolate; overflow: hidden; padding: 29px 25px 24px; background: #eaf1e7; border: 1px solid #e0e9dc; border-radius: 22px; }
.community-discovery-card .page-eyebrow { font-size: 9px; margin: 0 0 100px; }
.community-discovery-card h2 { font-size: 23px; line-height: 1.45; letter-spacing: -.8px; margin: 0 0 13px; color: var(--site-ink); }
.community-discovery-card > p:not(.page-eyebrow) { color: #6b7f6e; font-size: 12px; line-height: 1.9; margin: 0 0 23px; }
.community-discovery-card .btn-secondary { width: 100%; background: #fff; justify-content: space-between; }
.community-terrain { position: absolute; width: 240px; height: 140px; right: -20px; top: 24px; z-index: -1; stroke: #aebfa8; stroke-width: 1.1; }
.community-saved-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 21px 8px; color: var(--site-muted); text-decoration: none; font-size: 12px; }
.community-saved-link:hover { color: var(--site-green); }
.site-page .feed-search-box { display: flex; align-items: center; gap: 0; padding: 6px; margin: 0; border: 1px solid #dfe7df; background: #fff; border-radius: 14px; }
.site-page .feed-search-box > svg { margin: 0 9px 0 10px; color: #738c77; width: 19px; }
.site-page .feed-search-box input { min-width: 0; border: 0; background: transparent; box-shadow: none; font-size: 13px; padding: 10px 3px; outline: none; color: var(--site-ink); }
.site-page .feed-search-box:focus-within { border-color: #78a485; box-shadow: 0 0 0 3px #24694f0b; }
.site-page .feed-search-box button { padding: 11px 17px; border-radius: 10px; font-size: 12px; background: var(--site-green); }
.community-stream-heading { display: flex; justify-content: space-between; align-items: center; padding: 27px 2px 15px; }
.community-stream-heading h2 { margin: 0; color: var(--site-ink); font-size: 15px; letter-spacing: -.3px; }
.community-stream-heading > span { color: #829084; font-size: 11px; }
.site-page .feed-row { background: #fff; border: 1px solid var(--site-line); border-radius: 20px; margin-bottom: 20px; box-shadow: 0 4px 18px #19372703; scroll-margin-top: 20px; }
.site-page .feed-row-summary { display: flex; flex-wrap: wrap; gap: 12px 17px; padding: 23px 24px 18px; }
.site-page .feed-row-mountain { color: #54725a; background: #eef4eb; padding: 5px 9px; border-radius: 6px; font-size: 10px; line-height: 1.2; max-width: 100%; overflow-wrap: anywhere; }
.site-page .feed-row-title { flex: 0 0 100%; order: 1; font-size: 21px; letter-spacing: -.5px; line-height: 1.45; font-weight: 700; }
.site-page .feed-row-title.expanded { overflow-wrap: anywhere; }
.site-page .feed-row-distance, .site-page .feed-row-duration { order: 2; font-size: 12px; font-weight: 650; color: #486351; }
.feed-metric-label { display: inline-block; margin-right: 6px; color: #89968b; font-size: 10px; font-weight: 400; }
.site-page .feed-row-likes { display: none; }
.site-page .feed-row-panel { border-top: 0; padding: 0 24px 15px; }
.site-page .feed-panel-header { gap: 8px; margin: 0 0 17px; flex-wrap: wrap; }
.feed-author-avatar { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #eaf0e8; color: #66836b; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.site-page .feed-author { font-size: 11px; color: #68796b; max-width: 45%; overflow-wrap: anywhere; }
.site-page .feed-date { font-size: 10px; color: #8a958d; margin-left: 0; }
.site-page .feed-map-btn { margin-left: auto; border-radius: 8px; padding: 9px 10px; font-size: 11px; color: var(--site-green); background: #f4f8f2; border-color: #e5ede1; }
.site-page .feed-map-btn:hover { background: #eaf3e7; border-color: #bdcfbd; }
.site-page .feed-gallery { margin-bottom: 17px; background: #f0f2ec; border-radius: 13px; }
.site-page .feed-gallery-nav { width: 34px; height: 34px; background: #1b322a7a; font-size: 23px; }
.feed-image-unavailable { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #879185; background: #f0f2ec; }
.feed-image-unavailable > span { font-size: 30px; font-weight: 300; }
.feed-image-unavailable p { font-size: 12px; }
.site-page .feed-gallery-slide.image-unavailable { visibility: hidden; }
.site-page .feed-content { margin: 0 0 19px; font-size: 13px; line-height: 1.85; color: #546357; overflow-wrap: anywhere; }
.site-page .feed-actions { padding-top: 12px; border-color: #eef1eb; gap: 6px; }
.site-page .feed-actions button { min-height: 36px; gap: 6px; padding: 8px 10px; font-size: 12px; color: #6a7a6f; border-radius: 8px; }
.site-page .feed-actions .site-icon { width: 16px; height: 16px; }
.site-page .feed-actions .liked { color: #bb6258; }
.site-page .feed-share-btn { margin-left: auto; order: 2; }
.community-empty { padding: 38px 20px; text-align: center; background: #fbfcfa; border: 1px dashed #dfe7db; border-radius: 15px; }
.community-empty > span { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 15px; font-size: 23px; color: #75917a; background: #edf3e9; border-radius: 12px; }
.community-empty h3 { margin: 0 0 9px; font-size: 14px; font-weight: 650; color: #506757; }
.community-empty p { margin: 0 0 16px; font-size: 12px; line-height: 1.8; color: #879187; }
.community-empty a { color: var(--site-green); font-size: 12px; font-weight: 600; text-decoration: none; }
.site-page .empty-hint { color: #859186; font-size: 12px; line-height: 1.8; padding: 24px 12px; text-align: center; }

/* Personal profile, saved trails and recording form. */
.site-page .mypage-profile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 25px; padding: 25px 28px; margin-bottom: 28px; border: 1px solid var(--site-line); border-radius: 20px; box-shadow: 0 3px 16px #19372703; }
.mypage-profile-heading { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 220px; }
.mypage-profile-heading > div { min-width: 0; }
.mypage-avatar { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #eaf1e5; color: #6e8a70; flex-shrink: 0; }
.mypage-avatar .site-icon { width: 32px; height: 32px; stroke-width: 1.3; }
.site-page .mypage-profile h2 { margin: 6px 0 0; font-size: 21px; letter-spacing: -.5px; overflow-wrap: anywhere; }
.community-label { margin: 0; font-size: 11px; color: #829084; }
.mypage-profile-edit { min-width: 0; flex: 0 1 338px; }
.site-page .nickname-form { flex-wrap: nowrap; gap: 7px; margin-top: 7px; }
.site-page .nickname-form input { min-width: 0; max-width: none; flex: 1 1 0; padding: 10px 12px; border-color: var(--site-line); border-radius: 9px; font-size: 13px; background: #f9fbf7; }
.site-page .nickname-form button { padding: 10px 13px; border-radius: 9px; background: var(--site-green); font-size: 11px; }
.site-page .nickname-status { margin-top: 7px; min-height: 0; color: var(--site-muted); }
.mypage-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); gap: 28px; align-items: start; }
.mypage-library { display: flex; flex-direction: column; gap: 26px; }
.community-section { min-width: 0; border: 1px solid var(--site-line); border-radius: 20px; background: #fff; padding: 25px; }
.community-section .section-heading { margin: 0 0 8px; }
.community-section .section-heading h2 { font-size: 17px; letter-spacing: -.5px; }
.community-section .section-heading > a { font-size: 11px; white-space: nowrap; }
.community-section-description { margin: 0 0 23px; color: #869086; font-size: 11px; line-height: 1.8; }
.mypage-record-section { scroll-margin-top: 24px; }
.mypage-record-section > .page-eyebrow { margin: 0 0 12px; font-size: 9px; }
.site-page .bookmark-list .bookmark-item { display: flex; flex-wrap: wrap; gap: 9px; padding: 15px; border-radius: 12px; border-color: var(--site-line); margin-bottom: 9px; }
.site-page .bookmark-item-info { flex: 1 0 100%; width: 100%; background: transparent; border: 0; padding: 0; text-align: left; color: var(--site-ink); cursor: pointer; gap: 8px; font-family: inherit; }
.site-page .bookmark-type { color: #658264; background: #edf4e9; padding: 3px 7px; font-size: 10px; border-radius: 5px; }
.site-page .bookmark-name { font-size: 13px; overflow-wrap: anywhere; }
.site-page .bookmark-subtitle { flex-basis: 100%; font-size: 11px; line-height: 1.7; color: #819080; overflow-wrap: anywhere; }
.site-page .bookmark-date { font-size: 10px; margin-left: 0; color: #9aa398; }
.site-page .bookmark-item > .bookmark-btn { margin-left: auto; min-height: 31px; padding: 7px 10px; border-radius: 7px; font-size: 10px; border-color: var(--site-line); }
.site-page .bookmark-item > .bookmark-gpx-download + .bookmark-btn { margin-left: 0; }
.site-page .bookmark-item .bookmarked { color: var(--site-green); background: #edf5e9; }
.site-page .mypage-my-feed-item { padding: 16px; border: 1px solid var(--site-line); border-radius: 12px; margin-bottom: 10px; }
.site-page .mypage-my-feed-summary { width: 100%; align-items: flex-start; background: none; border: 0; padding: 0; gap: 9px; text-align: left; font-family: inherit; color: var(--site-ink); }
.site-page .mypage-my-feed-summary strong { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.site-page .mypage-my-feed-meta { font-size: 10px; color: #8a968b; line-height: 1.8; overflow-wrap: anywhere; }
.mypage-edit-indicator { color: #64846b; font-size: 10px; margin-top: 4px; }
.site-page .mypage-my-feed-actions { justify-content: flex-end; margin-top: 5px; }
.site-page .mypage-delete-btn { min-height: 30px; border-radius: 7px; padding: 5px 9px; color: #9b8379; border-color: #ece8e2; font-size: 10px; }
.site-page .feed-upload-area { margin: 0; }
.site-page .feed-upload-form { padding: 0; border: 0; background: transparent; gap: 20px; border-radius: 0; }
.community-field { display: block; color: #566a5b; font-size: 12px; line-height: 1.6; font-weight: 600; }
.community-field input, .community-field textarea { display: block; width: 100%; margin-top: 8px; }
.field-required, .field-optional { margin-left: 4px; font-size: 10px; font-weight: 400; color: #98a094; }
.site-page .feed-upload-form input[type="text"], .site-page .feed-upload-form textarea,
.site-page .mypage-edit-form input[type="text"], .site-page .mypage-edit-form textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid #e3e9df; border-radius: 10px; background: #fafcf8; color: var(--site-ink); font: inherit; font-size: 12px; font-weight: 400; }
.site-page .feed-upload-form textarea, .site-page .mypage-edit-form textarea { resize: vertical; line-height: 1.8; }
.site-page .feed-upload-form input::placeholder, .site-page .feed-upload-form textarea::placeholder { color: #9ca797; }
.site-page .feed-upload-form input[type="file"], .site-page .mypage-gallery input[type="file"] { display: block; width: 100%; min-width: 0; max-width: 100%; padding: 10px; color: #85927f; font-size: 10px; background: #fafcf8; border: 1px dashed #d9e3d2; border-radius: 10px; }
.site-page input[type="file"]::file-selector-button { padding: 7px 9px; border: 0; margin-right: 9px; background: #eaf2e3; border-radius: 6px; color: #577550; cursor: pointer; font-family: inherit; }
.site-page .feed-upload-form .upload-hint { display: block; font-size: 10px; line-height: 1.8; color: #929d8d; margin: 6px 0 0; font-weight: 400; }
.site-page .feed-image-input-label { gap: 0; font-size: 12px; color: #566a5b; }
.site-page .upload-mountain-search > input { margin-top: 8px; }
.site-page .upload-mountain-suggestions { border-color: var(--site-line); border-radius: 10px; box-shadow: 0 8px 25px #19372712; }
.site-page .upload-mountain-option { display: block; text-align: left; width: 100%; border: 0; background: #fff; color: #506d55; font-family: inherit; font-size: 12px; line-height: 1.7; }
.site-page .upload-mountain-option:hover, .site-page .upload-mountain-option:focus-visible { background: var(--site-soft); }
.site-page .upload-mountain-guess { background: #eef5e8; border-radius: 8px; padding: 10px; color: #6d8164; font-size: 11px; line-height: 1.8; }
.site-page .upload-visibility { display: flex; gap: 10px; border: 0; padding: 0; margin: 0; color: #63775f; font-size: 12px; }
.site-page .upload-visibility legend { margin: 0 0 9px; padding: 0; color: #566a5b; font-size: 12px; font-weight: 600; }
.site-page .upload-visibility label { padding: 9px 13px; border-radius: 9px; background: #f5f8f1; border: 1px solid #e7ecdf; }
.site-page .upload-visibility input { margin: 0; accent-color: var(--site-green); }
.site-page .feed-upload-form > button[type="submit"] { background: var(--site-green); border-radius: 10px; padding: 14px; font-size: 13px; font-weight: 600; }
.site-page .feed-upload-form > button[type="submit"]:hover { background: var(--site-ink); }
.site-page .feed-upload-status { margin: 0; min-height: 0; color: #6d8064; font-size: 11px; line-height: 1.8; }
.site-page .mypage-edit-panel:not(.hidden) { margin-top: 16px; padding-top: 18px; }
.site-page .mypage-edit-form { gap: 18px; }
.site-page .mypage-edit-form-buttons { flex-wrap: wrap; gap: 7px; }
.site-page .mypage-edit-form-buttons button { border-radius: 8px; font-size: 11px; }
.site-page .mypage-edit-form-buttons .feed-map-btn { margin-left: 0; margin-right: auto; }
.site-page .mypage-gallery { border-radius: 10px; padding: 12px; background: #f6f9f2; }
.site-page .mypage-gallery-label { font-size: 11px; line-height: 1.8; }
.site-page .mypage-gallery-thumb { width: 90px; height: 100px; padding-bottom: 29px; background: #e8eee2; }
.site-page .mypage-gallery-thumb-actions { inset: auto 0 0; padding: 4px; opacity: 1; background: #e8eee2; gap: 4px; }
.site-page .mypage-gallery-thumb-actions button { width: 24px; height: 23px; color: #5c7455; }
.site-page .mypage-gallery-thumb.image-unavailable img { visibility: hidden; }
.site-page .mypage-gallery-thumb.image-unavailable::before { content: '사진을 불러올 수 없어요'; position: absolute; inset: 11px 8px 33px; color: #8c9985; font-size: 10px; text-align: center; display: grid; place-items: center; }
.site-page .mypage-withdraw-section { padding: 25px 0 0; border-color: #e2e8df; margin-top: 35px; }
.site-page .mypage-withdraw-section h2 { font-size: 13px; color: #73816f; margin: 0 0 14px; }
.site-page .mypage-withdraw-btn { border-radius: 8px; border-color: #e1e5dc; color: #967e72; padding: 9px 12px; font-size: 11px; background: #fff; }
.site-page .mypage-withdraw-hint { font-size: 10px; line-height: 1.9; color: #939c8c; max-width: 750px; }

/* Map detail and comment dialogs retain the original path, chart and thread controls. */
.site-page .modal-backdrop, .site-page .feed-comment-sheet-backdrop { background: #15291e70; backdrop-filter: blur(4px); }
.site-page .activity-detail-panel { max-width: 720px; max-height: calc(100dvh - 48px); border-radius: 22px; border: 1px solid #e0e8dc; box-shadow: 0 22px 80px #15382130; }
.site-page .modal-close-btn { top: 17px; right: 17px; width: 35px; height: 35px; background: #f2f6ed; color: #54774f; border-radius: 10px; font-size: 23px; }
.activity-detail-eyebrow { margin: 24px 24px 8px; color: #809378; font-size: 10px; }
.site-page .activity-detail-title { padding: 0 60px 22px 24px; font-size: 22px; line-height: 1.5; letter-spacing: -.6px; color: var(--site-ink); overflow-wrap: anywhere; }
.site-page .activity-detail-map { height: 310px; }
.site-page .activity-detail-stats { padding: 22px 18px; border-color: var(--site-line); gap: 13px; }
.site-page .activity-detail-stats .stat-value { font-size: 20px; color: var(--site-green); font-weight: 650; font-variant-numeric: tabular-nums; }
.site-page .activity-detail-stats .stat-label { margin-top: 5px; font-size: 10px; color: #8b9786; }
.site-page .activity-detail-elevation { padding: 22px 24px 25px; }
.site-page .activity-detail-elevation-title { color: #73896a; font-size: 11px; margin-bottom: 15px; }
.site-page .feed-comments { border-color: #e5edde; padding-top: 17px; }
.site-page .feed-comment-form, .site-page .feed-comment-edit-form { gap: 7px; }
.site-page .feed-comment-form input, .site-page .feed-comment-edit-form input { min-width: 0; border-color: #e1e9da; border-radius: 9px; padding: 11px; background: #f9fbf5; font-size: 12px; }
.site-page .feed-comment-form button, .site-page .feed-comment-edit-form button { border-radius: 9px; padding: 9px 13px; font-size: 12px; white-space: nowrap; }
.site-page .feed-comment-form button, .site-page .feed-comment-edit-form button[type="submit"] { background: var(--site-green); }
.site-page .feed-comment { padding: 14px 0; border-color: #edf1e7; }
.site-page .feed-comment-body { gap: 5px 8px; flex-wrap: wrap; }
.site-page .feed-comment-author { color: #55714e; font-size: 11px; }
.site-page .feed-comment-content { font-size: 12px; color: #586850; line-height: 1.8; overflow-wrap: anywhere; min-width: 0; }
.site-page .feed-comment-date { color: #96a18d; font-size: 10px; }
.site-page .feed-comment-actions { gap: 10px; }
.site-page .feed-comment-actions button { min-height: 30px; font-size: 11px; }
.site-page .feed-replies { margin-left: 10px; padding-left: 10px; border-color: #e3ebdb; }
.site-page .feed-replies .feed-replies .feed-replies { margin-left: 0; padding-left: 6px; }
.site-page .feed-reply-toggle-btn { color: #6e875e; font-size: 11px; }
.site-page .feed-comment-sheet-panel { border-radius: 22px 22px 0 0; padding: 0 22px 24px; max-height: min(82dvh, 740px); box-shadow: 0 -12px 50px #17382224; }
.site-page .feed-comment-sheet-handle { display: block; border: 0; background: transparent; width: 100%; padding: 0; }
.site-page .feed-comment-sheet-close { display: block; top: 22px; right: 18px; width: 32px; height: 32px; border-radius: 9px; background: #f0f5e9; font-size: 22px; color: #68815a; }
.feed-comments-title { font-size: 17px; margin: 5px 40px 18px 0; color: var(--site-ink); letter-spacing: -.4px; }
.site-page .feed-comment-sheet-panel .feed-comments { margin: 0; padding: 0; }
.site-page .activity-detail-panel [hidden] { display: none !important; }

@media (min-width: 900px) {
    .site-page .feed-comment-sheet-panel { border-radius: 22px; padding-top: 25px; }
    .site-page .feed-comment-sheet-handle { display: none; }
}
@media (max-width: 1050px) {
    .community-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; }
    .community-discovery-card { padding: 24px 20px; }
    .mypage-grid { gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(300px, .95fr); }
    .community-section { padding: 21px; }
}
@media (max-width: 899px) {
    .community-layout { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
    .community-aside { display: none; }
    .mypage-grid { grid-template-columns: 1fr; }
    .mypage-record-section { max-width: none; }
    .community-intro { align-items: flex-start; }
    .community-intro > a { margin-top: 20px; }
    .site-page .feed-comment-sheet-panel { max-width: 100%; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 599px) {
    .site-page .feed-container, .site-page .mypage-container { padding: 28px 16px 40px; }
    .community-intro { flex-direction: column; gap: 18px; }
    .community-intro > a { margin: 0; font-size: 12px; min-height: 40px; }
    .site-page .feed-row { border-radius: 16px; margin-bottom: 16px; }
    .site-page .feed-row-summary { padding: 20px 18px 14px; gap: 10px 15px; }
    .site-page .feed-row-title { font-size: 19px; }
    .site-page .feed-row-panel { padding: 0 18px 12px; }
    .site-page .feed-panel-header { gap: 7px; }
    .site-page .feed-author { max-width: calc(100% - 38px); }
    .site-page .feed-date { flex-grow: 1; text-align: right; }
    .site-page .feed-map-btn { min-height: 34px; margin-left: auto; }
    .site-page .feed-gallery { border-radius: 10px; }
    .site-page .feed-content { font-size: 12px; }
    .site-page .feed-search-box input { font-size: 12px; }
    .site-page .feed-search-box button { padding: 10px 13px; }
    .community-stream-heading { padding-top: 23px; }
    .site-page .mypage-profile { padding: 22px; gap: 23px; border-radius: 16px; margin-bottom: 20px; }
    .mypage-profile-heading { flex-basis: 100%; }
    .mypage-profile-edit { flex-basis: 100%; }
    .site-page .mypage-profile h2 { font-size: 20px; }
    .mypage-avatar { width: 50px; height: 50px; border-radius: 15px; }
    .community-section { padding: 21px 18px; border-radius: 16px; }
    .community-section .section-heading { align-items: baseline; gap: 10px; }
    .community-section .section-heading h2 { font-size: 16px; }
    .community-section .section-heading > a { font-size: 10px; }
    .community-section-description { font-size: 11px; margin-bottom: 19px; }
    .mypage-library { gap: 20px; }
    .site-page .mypage-my-feed-item, .site-page .bookmark-list .bookmark-item { padding: 13px; }
    .community-empty { padding: 28px 14px; }
    .community-empty h3 { font-size: 13px; }
    .community-empty p { font-size: 11px; }
    .site-page .modal { padding: 12px; }
    .site-page .activity-detail-panel { max-height: calc(100dvh - 24px); border-radius: 17px; }
    .activity-detail-eyebrow { margin: 22px 19px 7px; }
    .site-page .activity-detail-title { padding: 0 53px 19px 19px; font-size: 19px; }
    .site-page .activity-detail-map { height: 245px; }
    .site-page .activity-detail-stats { grid-template-columns: repeat(2, 1fr); padding: 18px; gap: 20px; }
    .site-page .activity-detail-stats .stat-value { font-size: 19px; }
    .site-page .activity-detail-elevation { padding: 20px 16px; }
    .site-page .feed-comment-edit-form { flex-wrap: wrap; }
    .site-page .feed-comment-edit-form input { flex: 1 0 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .site-page .feed-view, .site-page .mypage-view { scroll-behavior: auto; }
    .site-page .feed-gallery-slide { transition: none; }
}
