:root {
  /* === 안 4 모던 시니어형 (AARP · Anthropic Claude) === */

  /* 브랜드 컬러 */
  --color-primary:        #2C2A28;
  --color-primary-dark:   #1A1918;
  --color-primary-light:  #4A4742;
  --color-primary-bg:     #EFECE5;

  --color-accent:         #D97757;
  --color-accent-dark:    #B85A3D;
  --color-accent-light:   #EBA88E;
  --color-accent-bg:      #FBEEE8;

  --color-secondary:      #4A5D4F;
  --color-secondary-bg:   #E5EBE6;
  --color-gold:           #C9A227;
  --color-gold-bg:        #FAF3D9;

  /* 배경 */
  --color-bg:             #FAF9F5;
  --color-bg-card:        #FFFFFF;
  --color-bg-soft:        #F4F1E8;
  --color-bg-warm:        #E8DFD0;

  /* 텍스트 */
  --color-text:           #2C2A28;
  --color-text-muted:     #5F5C57;
  --color-text-hint:      #88847D;
  --color-text-on-primary:#FAF9F5;
  --color-text-on-accent: #FFFFFF;

  /* 시맨틱 */
  --color-success:        #4A5D4F;
  --color-success-bg:     #E5EBE6;
  --color-warning:        #C9A227;
  --color-warning-bg:     #FAF3D9;
  --color-danger:         #B85A3D;
  --color-danger-bg:      #FBEEE8;
  --color-info:           #4A5D4F;
  --color-info-bg:        #E5EBE6;

  /* 보더 */
  --color-border:         #D6CFC0;
  --color-border-soft:    #E8DFD0;
  --color-border-strong:  #2C2A28;

  /* === 타이포그래피 === */
  --font-sans:  'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Noto Serif KR', 'KoPub Batang', 'Times New Roman', serif;
  --font-mono:  'D2Coding', Consolas, monospace;

  --fs-xs:  14px;  --fs-sm:  16px;  --fs-md:  18px;  --fs-lg:  20px;
  --fs-xl:  24px;  --fs-2xl: 28px;  --fs-3xl: 36px;  --fs-4xl: 44px;

  --fw-regular: 400;  --fw-medium: 500;  --fw-semi: 600;  --fw-bold: 700;
  --lh-tight: 1.3;   --lh-base: 1.6;   --lh-loose: 1.8;

  /* === 공간·여백 === */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px;

  /* 모서리 */
  --radius-sm: 6px;  --radius-md: 10px;  --radius-lg: 14px;  --radius-xl: 20px;

  /* 그림자 */
  --shadow-sm: 0 1px 2px rgba(44,42,40,0.05);
  --shadow-md: 0 2px 8px rgba(44,42,40,0.06);
  --shadow-lg: 0 4px 16px rgba(44,42,40,0.08);

  /* 터치 영역 */
  --touch-min: 48px;  --touch-base: 56px;  --touch-large: 64px;

  /* === 하위 호환 별칭 (기존 셀렉터 유지) === */
  --green:      var(--color-secondary);
  --green-2:    var(--color-secondary);
  --orange:     var(--color-accent);
  --blue:       var(--color-info);
  --purple:     #6B4FA8;
  --bg:         var(--color-bg);
  --panel:      var(--color-bg-card);
  --muted:      var(--color-text-muted);
  --text:       var(--color-text);
  --border:     var(--color-border);
  --soft-green: var(--color-bg-soft);
  --shadow:     var(--shadow-md);
  --radius:     var(--radius-lg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    line-height: var(--lh-base);
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--color-primary);
    letter-spacing: -0.01em;
    margin-top: 0;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p, li, span, td, th { font-family: var(--font-sans); }

a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}
a:hover { color: var(--color-accent); }

.text-gold   { color: var(--color-gold); }
.text-orange { color: var(--color-accent); }
.text-green  { color: var(--color-secondary); }
.text-blue   { color: var(--color-info); }
.text-red    { color: var(--color-danger); }
.text-muted  { color: var(--color-text-muted); }

img { max-width: 100%; }
body.font-normal { font-size: var(--fs-sm); }
body.font-large  { font-size: var(--fs-md); }
body.font-xlarge { font-size: 22px; }
.container { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(1180px, calc(100% - 48px)); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; min-height: var(--touch-min); }

.topbar {
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    color: var(--green);
    font-weight: 900;
    font-size: 1.45rem;
    text-decoration: none;
    display: inline-flex;
    gap: .45rem;
    align-items: center;
}
.top-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.font-tools {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-soft);
}
.font-btn {
    min-width: 42px;
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-weight: 900;
}
.font-btn.active {
    background: var(--green);
    color: #fff;
}
.icon-btn {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid var(--color-border);
    background: var(--color-bg-card);
    color: var(--color-text-muted);
    font-size: 1rem;
    display: grid; place-items: center;
    transition: all .15s;
    min-height: unset;
}
.icon-btn:hover { background: var(--color-bg-soft); color: var(--color-secondary); border-color: var(--color-secondary); }
.login-btn, .secondary {
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-secondary);
    border-radius: 8px;
    min-height: 44px;
    padding: 0 16px;
    font-weight: 700;
    color: var(--color-secondary);
    font-size: var(--fs-sm);
}
.login-btn:hover { background: var(--color-secondary-bg); }
.signup-btn {
    background: var(--color-secondary);
    border: 1.5px solid var(--color-secondary);
    border-radius: 8px;
    min-height: 44px;
    padding: 0 16px;
    font-weight: 700;
    color: var(--color-text-on-primary);
    font-size: var(--fs-sm);
    transition: background .15s;
}
.signup-btn:hover { background: var(--color-primary); }
.logout-visible { border-color: var(--color-border); color: var(--color-text-muted); }
.logout-visible:hover { background: var(--color-bg-soft); }
.secondary {
    border-color: var(--color-border);
    color: var(--color-text);
}

.main-nav {
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding: 14px 0;
}
.nav-item {
    border: 0;
    background: transparent;
    color: var(--green);
    min-height: 84px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}
.nav-item i { font-size: 1.65rem; }
.nav-item.active {
    background: var(--color-secondary);
    color: var(--color-text-on-primary);
    box-shadow: 0 0 0 3px var(--color-bg-card), 0 0 0 6px var(--color-accent), var(--shadow-md);
}

.view-section { display: none; padding: 42px 0 72px; }
.view-section.active { display: block; }
.notice-bar {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}
.notice-bar button { margin-left: auto; background: transparent; border: 0; color: #fff; }
.hero-card, .panel, .search-panel, .side-panel, .friend-status {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-card {
    position: relative;
    min-height: 220px;
    background: #fff;
    overflow: hidden;
}
.eyebrow { color: var(--orange); font-weight: 900; margin: 0 0 8px; }
.green-text { color: var(--green); }
.blue-text { color: var(--blue); }
.purple-text { color: var(--purple); }
.orange-text { color: var(--orange); }
.hero-track {
    display: flex;
    width: 500%;
    animation: hero-slide-left 25s infinite;
}
.hero-card:hover .hero-track { animation-play-state: paused; }
.hero-slide {
    width: 20%;
    min-height: 220px;
    padding: 24px 36px;
    display: grid;
    grid-template-columns: 1fr 42%;
    gap: 28px;
    align-items: center;
}
.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.hero-card h1 { margin: 0; font-size: 1.25rem; line-height: 1.35; }
.hero-card p { color: var(--muted); margin: 0; line-height: 1.55; }
.hero-art {
    border-radius: var(--radius-md);
    background: var(--color-bg-warm);
    display: grid;
    place-items: center;
    overflow: hidden;
    height: 176px;
}
.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-dots {
    position: absolute;
    left: 36px;
    bottom: 18px;
    display: flex;
    gap: 6px;
}
.hero-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-border);
    animation: hero-dot 25s infinite;
}
.hero-dots span:nth-child(2) { animation-delay: 5s; }
.hero-dots span:nth-child(3) { animation-delay: 10s; }
.hero-dots span:nth-child(4) { animation-delay: 15s; }
.hero-dots span:nth-child(5) { animation-delay: 20s; }
@keyframes hero-slide-left {
    0%, 16% { transform: translateX(0); }
    20%, 36% { transform: translateX(-20%); }
    40%, 56% { transform: translateX(-40%); }
    60%, 76% { transform: translateX(-60%); }
    80%, 96% { transform: translateX(-80%); }
    100% { transform: translateX(0); }
}
@keyframes hero-dot {
    0%, 16% { background: var(--green); transform: scale(1.25); }
    20%, 100% { background: #c9d2df; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-track, .hero-dots span { animation: none; }
}
.primary {
    background: var(--color-secondary);
    color: var(--color-text-on-primary);
    border: 0;
    border-radius: var(--radius-md);
    min-height: var(--touch-base);
    padding: 0 22px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: background .15s;
}
.primary:hover { background: var(--color-primary); }
.hero-card .primary { background: var(--color-accent); }
.hero-card .primary:hover { background: var(--color-accent-dark); }
.panel { margin-top: 24px; padding: 28px 36px; }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel h2, .panel-title-row h2 { margin: 0; color: var(--color-primary); font-size: var(--fs-xl); }
.text-btn { background: transparent; border: 0; color: var(--green); font-weight: 900; }
.contest-list { display: grid; gap: 12px; margin-top: 18px; border-top: 1px solid var(--color-border); padding-top: 14px; }
.contest-row { display: grid; grid-template-columns: 80px 1fr 160px; gap: 12px; align-items: center; font-weight: 800; }
.dday { background: var(--color-warning-bg); color: var(--color-accent-dark); border-radius: 999px; padding: 6px 10px; font-size: var(--fs-xs); text-align: center; }
.attendance, .weather-card {
    margin-top: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border-soft);
    background: var(--color-success-bg);
    padding: 18px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.attendance i { color: var(--color-secondary); font-size: 1.6rem; }
.attendance button { background: transparent; border: 0; color: var(--color-secondary); font-weight: 700; min-height: unset; }
.weather-card { background: var(--color-bg-card); border-color: var(--color-border); border-left: 6px solid var(--color-accent); }
.weather-icon {
    width: 70px; height: 70px; border-radius: 50%;
    background: var(--color-accent-bg); color: var(--color-accent);
    display: grid; place-items: center; font-size: 2rem;
    flex: 0 0 auto;
}
.weather-card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.weather-card p { margin: 0; color: var(--muted); }
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 34px;
}
.quick-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    min-height: 220px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s;
}
.quick-card:hover { box-shadow: var(--shadow-md); }
.quick-card i:first-child {
    width: 56px; height: 56px; border-radius: var(--radius-md);
    display: grid; place-items: center; font-size: 1.6rem;
    background: var(--color-secondary-bg);
}
.green { color: var(--color-secondary); }
.purple { color: var(--purple); background: #EDE3F5 !important; }
.orange { color: var(--color-accent-dark); background: var(--color-accent-bg) !important; }
.blue { color: var(--color-info); background: var(--color-info-bg) !important; }
.quick-card h3 { margin: 22px 0 10px; }
.quick-card p { color: var(--muted); line-height: 1.65; margin: 0 0 10px; }
.quick-card > span { color: var(--green); font-weight: 900; display: block; margin-top: auto; }
.quick-card { display: flex; flex-direction: column; }
#home-join-card { flex: 1; }
.home-join-item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px 0; border-bottom: 1px solid var(--border);
    font-size: .88rem;
}
.home-join-item strong { color: var(--text); }
.home-join-item span { color: var(--muted); font-size: .82rem; }
.home-join-more { color: var(--green); font-size: .85rem; font-weight: 700; margin: 6px 0 0; }
.news-grid, .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.news-card, .course-card, .post-card, .friend-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.news-badge, .course-tag, .post-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-sm);
    padding: 5px 9px;
    font-size: var(--fs-xs);
    font-weight: 700;
    background: var(--color-danger-bg);
    color: var(--color-danger);
}
.news-card h3, .course-card h2 { margin: 16px 0 10px; }
.news-card p, .course-card p { color: var(--muted); line-height: 1.7; }
.page-heading { text-align: center; margin: 30px auto 60px; }
.page-heading.full { grid-column: 1 / -1; margin-bottom: 34px; }
.page-heading h1 { color: var(--color-primary); font-size: var(--fs-3xl); margin: 0 0 18px; }
.page-heading p { color: var(--muted); font-size: 1.15rem; max-width: 820px; margin: 0 auto; line-height: 1.7; }
.search-panel { max-width: 1180px; margin: 0 auto 46px; padding: 34px; }
.search-box {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0 20px;
    background: var(--color-bg-soft);
}
.search-box i { color: var(--color-text-muted); font-size: 1.6rem; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; font-weight: 600; font-size: var(--fs-md); }
.search-box button { border: 0; background: transparent; color: var(--color-text-muted); min-height: unset; }
.chip-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
    margin-top: 18px;
}
.chip {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    min-height: 44px;
    padding: 0 10px;
    font-weight: 900;
    font-size: .8rem;
    line-height: 1.2;
    white-space: nowrap;
}
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.result-count { color: var(--muted); font-size: 1.2rem; margin-bottom: 28px; }
.result-count strong { color: var(--green); font-size: 1.5rem; }
.course-card { overflow: hidden; }
.course-card h2 { font-size: 1.55rem; color: var(--text); }
.purple-grid .course-card { border-color: #ead7f7; }
.purple-grid .course-card h2, .purple-grid .course-card .phone { color: var(--purple); }
.course-meta { display: grid; gap: 10px; margin-top: 18px; color: var(--text); }
.course-meta i { width: 24px; color: var(--color-text); }
.map-link { display: inline-flex; margin-top: 18px; color: var(--green); font-weight: 900; text-decoration: none; }

.community-layout { display: grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: start; }
.write-btn { width: 100%; margin-bottom: 24px; }
.side-panel { padding: 28px; margin-bottom: 24px; }
.side-panel h2 { margin: 0 0 18px; font-size: 1.1rem; }
.category-list { display: grid; gap: 8px; }
.category-btn {
    display: flex; justify-content: space-between; align-items: center;
    border: 0; background: transparent; border-radius: 8px; padding: 12px 14px;
    font-weight: 900; color: #3b4758; text-align: left;
}
.category-btn.active { background: var(--soft-green); color: var(--green); box-shadow: inset 4px 0 0 var(--green); }
.badge-count { background: #eef2f6; border-radius: 999px; min-width: 34px; padding: 3px 8px; text-align: center; }
.guide-box { color: #3b4758; line-height: 1.8; }
.posts-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--border); padding-bottom: 18px; margin-bottom: 22px; }
.post-search { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.post-search input { border: 0; padding: 0 16px; min-height: 48px; outline: 0; }
.post-search button { border: 0; border-left: 1px solid var(--border); background: #fff; width: 56px; }
.post-card { margin-bottom: 22px; padding: 34px; }
.post-meta { color: var(--muted); font-size: .9rem; display: flex; gap: 12px 20px; flex-wrap: wrap; margin: 16px 0; }
.post-card h3 { font-size: 1.35rem; margin: 18px 0; }
.post-content { line-height: 1.8; white-space: pre-wrap; }
.reaction-row { background: var(--color-success-bg); border-radius: var(--radius-md); padding: 12px; margin-top: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.reaction-row button { border: 1px solid var(--color-border); background: var(--color-bg-card); border-radius: 999px; padding: 8px 14px; font-weight: 600; min-height: unset; }
.comments { border-top: 1px dashed var(--border); margin-top: 22px; padding-top: 18px; }
.comment-form { display: grid; gap: 10px; margin-top: 18px; }
.comment-form input, .comment-form textarea, .post-form input, .post-form textarea, .post-form select, .friend-form input, .friend-form textarea, .friend-form select, .side-panel select {
    width: 100%;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    min-height: var(--touch-base);
    padding: 10px 14px;
    background: var(--color-bg-card);
    font-size: var(--fs-md);
    color: var(--color-text);
}
textarea { min-height: 100px; resize: vertical; }
.friend-container { width: min(1180px, calc(100% - 48px)); }
.friend-grid { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
.friend-left-col { display: flex; flex-direction: column; gap: 20px; }
.friend-form label, .side-panel label { display: block; font-weight: 900; margin: 14px 0 8px; }
.friend-status { padding: 28px 32px; min-height: 460px; }
.friend-status-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 12px;
}
.friend-status-header h2 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.friend-live-dot { font-size: .65rem; color: var(--color-danger); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.friend-wait-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--color-secondary-bg); color: var(--color-secondary); border: 1px solid var(--color-border-soft);
    border-radius: 999px; padding: 5px 14px; font-size: var(--fs-sm); font-weight: 700;
    white-space: nowrap;
}
.friend-status-desc { font-size: .92rem; color: var(--muted); margin: 0 0 20px; line-height: 1.6; }
.friend-empty-state {
    min-height: 200px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 16px; text-align: center;
    background: var(--color-bg-soft); border: 1.5px dashed var(--color-border); border-radius: var(--radius);
    padding: 40px 24px; margin-top: 8px;
}
.friend-empty-state i { font-size: 2.8rem; color: var(--color-text-hint); }
.friend-empty-state p { color: var(--muted); line-height: 1.7; margin: 0; }
.friend-empty-state strong { color: var(--text); }
.empty-state {
    min-height: 220px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--color-text-muted);
    background: var(--color-bg-soft);
    margin-top: 28px;
}
.empty-state i { font-size: 3rem; color: var(--color-text-hint); }
.friend-card { margin-top: 18px; }
.friend-card h3 { margin: 0 0 10px; color: var(--green); }
.friend-card p { color: var(--muted); line-height: 1.7; }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,.48);
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.modal-content {
    width: min(560px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    position: relative;
}
.modal-close { position: absolute; right: 16px; top: 16px; border: 0; background: transparent; font-size: 1.3rem; }
.post-form { display: grid; gap: 12px; }
.post-form label { font-weight: 900; }
.auth-modal-box { text-align: center; display: grid; gap: 12px; max-width: 380px; }
.auth-logo-icon { font-size: 2.4rem; color: var(--color-secondary); }
.auth-header { margin-bottom: 4px; }
.auth-header h2 { margin: 8px 0 0; font-size: 1.3rem; }
.auth-tabs {
    display: flex; border-radius: var(--radius-sm); overflow: hidden;
    border: 1.5px solid var(--color-border); margin-top: 4px;
}
.auth-tab {
    flex: 1; padding: 10px 0; font-size: .95rem; font-weight: 700;
    background: none; border: none; cursor: pointer; color: var(--muted);
    transition: background .15s, color .15s;
}
.auth-tab.active { background: var(--color-secondary); color: #fff; }
.auth-form { display: grid; gap: 8px; text-align: left; }
.auth-form[hidden] { display: none; }
.auth-form label { font-weight: 700; font-size: .88rem; margin-bottom: -4px; }
.auth-hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.auth-form input {
    border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: var(--fs-md); width: 100%;
    min-height: var(--touch-base); box-sizing: border-box;
}
.auth-form input:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(74,93,79,.15); }
.auth-start-btn { width: 100%; min-height: 50px; font-size: 1rem; margin-top: 4px; }
.auth-error {
    background: #fff0f0; color: #c0392b;
    border: 1px solid #f5c6cb; border-radius: var(--radius-sm);
    padding: 10px 14px; font-size: .88rem; text-align: left;
}
.footer { border-top: none; padding: 44px 0 36px; color: #b0b8c1; background: #1c2333; }

/* ── 홀인원글 & 신고 배지 ─────────────────────────────────── */
.post-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; min-height: 4px; }
.holeinone-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-accent-dark));
    color: #fff; border-radius: 999px;
    padding: 4px 12px; font-size: var(--fs-xs); font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.report-warn-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--color-warning-bg); color: var(--color-accent-dark); border: 1px solid var(--color-accent-light);
    border-radius: 999px; padding: 4px 12px; font-size: var(--fs-xs); font-weight: 700;
}
.dday-today { background: var(--color-danger) !important; color: #fff !important; }
.total-reactions { color: var(--color-danger); font-weight: 700; }
.reaction-btn.reacted { background: var(--color-secondary-bg); border-color: var(--color-secondary); }

/* ── 로딩 상태 ──────────────────────────────────────────── */
.loading-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; padding: 60px 20px; color: var(--muted); text-align: center;
}
.loading-state i { font-size: 2rem; color: var(--green); }
.loading-mini {
    color: var(--muted); font-size: .9rem; padding: 10px 0;
    display: flex; align-items: center; gap: 8px;
}

/* ── 댓글 UI ────────────────────────────────────────────── */
.show-comments-btn {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 42px; padding: 0 18px; border-radius: 8px;
    font-weight: 900; margin-bottom: 12px;
}
.comment-area { border-top: 1px solid var(--color-border-soft); padding-top: 16px; margin-top: 8px; }
.comment-item {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 8px 12px; align-items: start;
    padding: 12px 0; border-bottom: 1px dashed var(--color-border-soft);
}
.comment-item strong { color: var(--color-secondary); white-space: nowrap; font-size: var(--fs-sm); }
.comment-item span { color: var(--text); line-height: 1.65; }
.comment-item small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.comment-item.new-comment { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.no-comment { color: var(--muted); text-align: center; padding: 18px 0; font-size: .95rem; }

/* ── 홀인원글 홈 위젯 ───────────────────────────────────── */
.holeinone-home-panel {
    background: var(--color-gold-bg);
    border: 1px solid var(--color-gold); border-radius: var(--radius);
    padding: 22px 28px; margin-top: 24px;
}
.holeinone-home-panel h2 { margin: 0 0 14px; color: var(--color-gold); }
.holeinone-preview {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 0; border-bottom: 1px dashed var(--color-border-soft); cursor: pointer;
}
.holeinone-preview:last-child { border-bottom: none; }
.holeinone-preview strong { flex: 1; color: var(--text); font-weight: 900; }
.holeinone-preview:hover strong { color: var(--green); }
.holeinone-preview span { color: var(--muted); font-size: .88rem; }

/* ── 카카오 채널 버튼 ────────────────────────────────────── */
.kakao-channel-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fee500; color: #3c1e1e; border: 0;
    border-radius: 9px; min-height: 48px; padding: 0 22px;
    font-weight: 900; box-shadow: 0 3px 10px rgba(254,229,0,.4);
    text-decoration: none;
}
.kakao-channel-btn:hover { background: #ffd900; }

/* ── 푸터 레이아웃 ──────────────────────────────────────── */
.footer-inner {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 32px;
}
.footer-left { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.footer-title { font-size: 1.15rem; font-weight: 900; color: #fff; }
.footer-desc { font-size: .92rem; color: #b0b8c1; line-height: 1.6; margin: 0; }
.footer-copy { font-size: .83rem; color: #7a8599; margin: 0; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.footer-links a {
    color: #8a94a8; text-decoration: none; font-size: .85rem;
    border: 1px solid #2e3a50; border-radius: 6px; padding: 5px 13px;
    transition: .2s;
}
.footer-links a:hover { color: #fff; border-color: #4a5a73; }

.footer-right { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.footer-contact, .footer-a11y {
    font-size: .9rem; color: #c0c8d8; margin: 0;
    display: flex; align-items: center; gap: 9px;
}
.footer-contact i { color: #6ea8fe; }
.footer-a11y i { color: #f0a060; }
.footer-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.naver-band-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #2e3a50; color: #c8d4e8; border: 1px solid #3e4e68;
    border-radius: 9px; min-height: 48px; padding: 0 20px;
    font-weight: 700; font-size: .9rem; text-decoration: none; transition: .2s;
}
.naver-band-btn:hover { background: #3a4a62; color: #fff; }
.footer-kakao-note {
    font-size: .8rem; color: #7a8599; margin: 0;
    display: flex; align-items: flex-start; gap: 7px; line-height: 1.5;
}
.footer-kakao-note i { color: #f6c90e; margin-top: 2px; flex-shrink: 0; }

/* ── 플로팅 카카오 채널 버튼 ─────────────────────────────── */
#kakao-float-btn {
    position: fixed; bottom: 28px; right: 24px; z-index: 999;
    width: 58px; height: 58px; border-radius: 50%;
    background: #fee500; color: #3c1e1e;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.22);
    text-decoration: none; font-size: 1.5rem;
    transition: transform .15s, box-shadow .15s;
}
#kakao-float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
#kakao-float-btn img { width: 32px; height: 32px; border-radius: 50%; }

/* ── 어필리에이트 링크 (장비 뽐뿌) ──────────────────────── */
.affiliate-row {
    background: var(--color-secondary-bg); border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md); padding: 14px 18px;
    margin-top: 16px; display: flex; align-items: center;
    gap: 12px; flex-wrap: wrap;
}
.affiliate-row span { font-weight: 700; color: var(--color-secondary); }
.affiliate-row a {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--color-secondary); color: var(--color-secondary);
    border-radius: var(--radius-sm); padding: 6px 14px; font-weight: 700;
    text-decoration: none; font-size: var(--fs-sm);
}
.affiliate-row a:hover { background: var(--color-secondary); color: var(--color-text-on-primary); }

/* ── 라운딩 노트 ─────────────────────────────────────────── */
.round-layout { display: grid; grid-template-columns: 400px 1fr; gap: 28px; align-items: start; }
.score-grid {
    display: grid; grid-template-columns: repeat(9, 1fr);
    gap: 6px; margin: 10px 0;
}
.score-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.score-cell .hole-num {
    font-size: .7rem; font-weight: 900; color: var(--muted);
    background: #f0f4f0; border-radius: 4px; width: 100%; text-align: center; padding: 2px 0;
}
.score-cell input {
    width: 100%; border: 1px solid var(--border); border-radius: 6px;
    height: 42px; text-align: center; font-size: 1.1rem; font-weight: 900;
    background: #fff;
}
.score-cell input:focus { border-color: var(--green); outline: none; }
.score-cell input.over-par { background: var(--color-warning-bg); }
.score-cell input.under-par { background: var(--color-success-bg); }
.round-total-row {
    display: flex; align-items: center; gap: 10px;
    background: var(--soft-green); border-radius: 8px; padding: 10px 16px;
    font-weight: 900; font-size: 1.1rem;
}
.round-total-row strong { font-size: 1.4rem; color: var(--green); }
#round-par-diff { font-size: .9rem; color: var(--muted); }
.round-stats-card {
    background: linear-gradient(135deg, var(--color-secondary-bg), var(--color-bg-card));
    padding: 24px 32px !important;
}
.round-stats-card h2 { margin: 0 0 16px; color: var(--color-secondary); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-item { text-align: center; }
.stat-item .val { font-size: 1.8rem; font-weight: 900; color: var(--green); }
.stat-item .lbl { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.round-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 20px 24px; margin-bottom: 14px;
    display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start;
}
.round-card h3 { margin: 0 0 6px; color: var(--text); font-size: 1.05rem; }
.round-card .round-meta { color: var(--muted); font-size: .88rem; display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.round-score-badge {
    font-size: 1.5rem; font-weight: 900; color: var(--green);
    text-align: center; line-height: 1;
}
.round-score-badge small { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; }
.round-holes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.round-hole-chip {
    background: var(--color-bg-soft); border-radius: 4px; padding: 3px 7px;
    font-size: var(--fs-xs); font-weight: 700; color: var(--color-text);
}
.round-hole-chip.best { background: var(--color-secondary-bg); color: var(--color-secondary); }
.round-card .del-round { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .85rem; }
.round-card .del-round:hover { color: #c0392b; }
.round-card-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.round-card-header strong { font-size: 1.02rem; }
.round-card-header span:last-of-type { color: var(--muted); font-size: .85rem; margin-left: auto; }
.round-total-badge { background: var(--green); color: #fff; border-radius: 999px; padding: 2px 12px; font-size: .82rem; font-weight: 900; }
.round-notes-text { color: var(--muted); font-size: .88rem; margin: 6px 0 0; font-style: italic; }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel-title-row h2 { margin: 0; }

/* ── 로그인 사용자 상태 ──────────────────────────────────── */
.login-btn.logged-in {
    background: var(--soft-green); color: var(--green);
    border-color: #b6d9b6;
}

/* ── 고대비 모드 ─────────────────────────────────────────── */
body.high-contrast {
    --color-bg: #000;
    --color-bg-card: #111;
    --color-bg-soft: #1a1a1a;
    --color-text: #fff;
    --color-text-muted: #f5f5f5;
    --color-border: #ffd54f;
    --bg: #000; --panel: #111; --text: #fff; --muted: #f5f5f5; --border: #ffd54f;
}
body.high-contrast .topbar,
body.high-contrast .main-nav,
body.high-contrast .quick-card,
body.high-contrast .course-card,
body.high-contrast .post-card,
body.high-contrast .news-card,
body.high-contrast .footer,
body.high-contrast .search-box { background: #111; color: #fff; }

/* ── 반응형 ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .container { width: min(100% - 28px, 1320px); }
    .topbar-inner, .attendance, .weather-card, .posts-head { flex-direction: column; align-items: stretch; }
    .brand { font-size: 1.15rem; }
    .top-tools { justify-content: flex-start; }
    .font-tools { order: 3; width: 100%; justify-content: space-between; }
    .font-btn { flex: 1; }
    .nav-grid { grid-template-columns: repeat(3, 1fr); }
    .nav-item { min-height: 70px; font-size: .9rem; }
    .round-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .score-grid { grid-template-columns: repeat(9, 1fr); gap: 3px; }
    .score-cell input { height: 36px; font-size: .95rem; }
    .hero-card, .quick-grid, .news-grid, .card-grid, .community-layout, .friend-grid { grid-template-columns: 1fr; }
    .hero-card { min-height: 0; }
    .hero-slide {
        min-height: 0;
        padding: 22px 22px 34px;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hero-art { height: 150px; }
    .hero-dots { left: 22px; bottom: 14px; }

    /* 모바일 카테고리 가로 스크롤 칩 */
    .community-layout { display: block; }
    .community-layout aside { margin-bottom: 24px; }
    #board-category-list.category-list {
        display: flex; flex-direction: row; overflow-x: auto;
        gap: 8px; padding-bottom: 8px; scrollbar-width: none;
    }
    #board-category-list.category-list::-webkit-scrollbar { display: none; }
    .category-btn {
        flex: 0 0 auto; border: 1px solid var(--border);
        border-radius: 999px; white-space: nowrap; padding: 10px 16px;
    }
    .category-btn.active { background: var(--green); color: #fff; border-color: var(--green); box-shadow: none; }
    .comment-item { grid-template-columns: auto 1fr; }
    .comment-item small { grid-column: 2; }
    .reaction-row { gap: 8px; }
    .contest-row { grid-template-columns: 70px 1fr; }
    .contest-row span:last-child { grid-column: 2; font-size: .85rem; color: var(--muted); }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
    .footer-right { min-width: unset; width: 100%; }
    .jobs-layout { grid-template-columns: 1fr; }
    .jobs-form-col { position: static; }
}

/* ── 구인구직 ─────────────────────────────────────────── */
.jobs-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    align-items: start;
    padding-top: 32px;
    padding-bottom: 48px;
}
.jobs-form-col {
    position: sticky;
    top: 82px;
}
.job-type-row {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}
.job-type-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.job-type-label input[type="radio"] { display: none; }
.job-type-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 22px;
    border-radius: 10px;
    border: 2px solid var(--border);
    font-weight: 700;
    font-size: .95rem;
    transition: all .18s;
    cursor: pointer;
    line-height: 1.2;
}
.job-type-chip small { font-weight: 400; font-size: .75rem; opacity: .75; }
.job-type-label input:checked + .job-type-chip.hiring {
    background: var(--color-info-bg); border-color: var(--color-info); color: var(--color-info);
}
.job-type-label input:checked + .job-type-chip.seeking {
    background: var(--color-accent-bg); border-color: var(--color-accent); color: var(--color-accent-dark);
}
.jobs-list-col { min-width: 0; }
.jobs-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.jobs-list-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.job-filter-tabs {
    display: flex;
    gap: 6px;
}
.job-filter-btn {
    padding: 7px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--panel);
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.job-filter-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.job-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    transition: box-shadow .15s;
}
.job-card:hover { box-shadow: 0 8px 24px rgba(20,35,54,.13); }
.job-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.job-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}
.job-badge.hiring { background: var(--color-info-bg); color: var(--color-info); }
.job-badge.seeking { background: var(--color-accent-bg); color: var(--color-accent-dark); }
.job-category-tag {
    background: var(--soft-green);
    color: var(--green);
    font-size: .78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}
.job-date { margin-left: auto; font-size: .8rem; color: var(--muted); }
.job-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text);
}
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 10px;
}
.job-meta i { margin-right: 4px; color: var(--green); }
.job-content-text {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: var(--lh-base);
    margin: 0;
    white-space: pre-wrap;
}

@media (min-width: 901px) and (max-width: 1180px) {
    .nav-grid { gap: 10px; }
    .nav-item { min-height: 76px; }
    .quick-grid, .news-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
    .community-layout, .friend-grid { grid-template-columns: 300px 1fr; gap: 24px; }
    .jobs-layout { grid-template-columns: 320px 1fr; gap: 24px; }
}

@media (max-width: 900px) {
    .view-section { padding: 24px 0 48px; }
    .topbar { position: static; }
    .topbar-inner {
        min-height: 0;
        padding: 12px 0;
        align-items: flex-start;
        gap: 12px;
    }
    .top-tools { width: 100%; }
    .login-btn, .signup-btn { flex: 1 1 130px; }
    .main-nav { position: sticky; top: 0; z-index: 45; }
    .nav-grid { gap: 8px; padding: 10px 0; }
    .nav-item {
        border: 1px solid var(--border);
        background: #fff;
        border-radius: 8px;
        min-height: 64px;
        padding: 7px 5px;
    }
    .nav-item i { font-size: 1.25rem; }
    .nav-item span { line-height: 1.25; }
    .nav-item.active { box-shadow: none; border-color: var(--green); }
    .notice-bar {
        align-items: flex-start;
        line-height: 1.5;
        padding: 12px 14px;
    }
    .hero-copy .primary { width: 100%; }
    .panel, .search-panel, .side-panel, .friend-status, .post-card, .news-card, .course-card, .friend-card {
        padding: 20px;
        border-radius: 10px;
    }
    .panel-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .panel h2, .panel-title-row h2 { font-size: 1.08rem; }
    .attendance, .weather-card {
        padding: 16px 18px;
        gap: 14px;
    }
    .weather-icon { width: 54px; height: 54px; font-size: 1.5rem; }
    .quick-grid { gap: 16px; margin-top: 22px; }
    .quick-card { min-height: 0; padding: 22px; }
    .page-heading { margin: 16px auto 28px; text-align: left; }
    .page-heading h1 { font-size: 1.45rem; margin-bottom: 10px; }
    .page-heading p { font-size: 1rem; margin: 0; }
    .search-panel { margin-bottom: 28px; }
    .search-box {
        min-height: 56px;
        height: auto;
        gap: 10px;
        padding: 0 12px;
    }
    .search-box i { font-size: 1.15rem; }
    .search-box input { min-width: 0; font-weight: 700; }
    .chip-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .chip-row::-webkit-scrollbar { display: none; }
    .chip { flex: 0 0 auto; min-height: 44px; padding: 0 16px; }
    .result-count { font-size: 1rem; }
    .course-card h2 { font-size: 1.2rem; }
    .posts-head { gap: 12px; }
    .post-search { width: 100%; }
    .post-search input { width: 100%; min-width: 0; }
    .post-card h3 { font-size: 1.16rem; }
    .reaction-row button, .show-comments-btn { flex: 1 1 130px; justify-content: center; }
    .comment-form { gap: 8px; }
    .friend-container { width: min(100% - 28px, 1180px); }
    .friend-status { min-height: 0; }
    .friend-status-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .friend-wait-badge { white-space: normal; }
    .friend-empty-state { min-height: 160px; padding: 28px 18px; }
    .modal-overlay { padding: 12px; align-items: start; }
    .modal-content {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 24px 18px;
        border-radius: 12px;
    }
    .modal-close { right: 10px; top: 10px; }
    .footer { padding: 32px 0 84px; }
    .footer-links, .footer-btns { width: 100%; }
    .footer-links a, .kakao-channel-btn, .naver-band-btn {
        width: 100%;
        justify-content: center;
    }
    .footer-contact, .footer-a11y, .footer-kakao-note { align-items: flex-start; }
    #kakao-float-btn {
        width: 50px;
        height: 50px;
        right: 14px;
        bottom: 16px;
    }
    .jobs-layout {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 12px;
        padding-bottom: 32px;
    }
    .jobs-form-col { position: static; }
    .job-type-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .job-type-label, .job-type-chip { width: 100%; }
    .job-filter-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .job-filter-btn { padding: 9px 8px; }
    .job-date { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
    .container, .narrow, .friend-container { width: min(100% - 20px, 1320px); }
    .brand { font-size: 1.05rem; }
    .icon-btn { width: 38px; height: 38px; }
    .nav-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-item { min-height: 58px; font-size: .82rem; }
    .hero-slide { padding: 18px 16px 34px; }
    .hero-card h1 { font-size: 1.12rem; }
    .hero-art { height: 124px; }
    .hero-dots { left: 16px; bottom: 12px; }
    .panel, .search-panel, .side-panel, .friend-status, .post-card, .news-card, .course-card, .friend-card, .quick-card {
        padding: 16px;
    }
    .weather-card { border-left-width: 4px; }
    .comment-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .comment-item small { grid-column: auto; }
    .round-card { grid-template-columns: 1fr; }
    .score-grid { grid-template-columns: repeat(6, 1fr); }
    .stats-grid { grid-template-columns: 1fr; }
    .job-type-row, .job-filter-tabs { grid-template-columns: 1fr; }
}

/* ===== 사이드바 재구성 추가 스타일 ===== */

.board-panel { padding: 18px; }
#board-category-list.category-list {
    display: grid;
    gap: 0;
}
.category-group-items {
    display: grid;
    gap: 4px;
}

/* 출석체크 카드 */
.sidebar-attendance-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-success-bg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 12px 0 18px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, transform 0.05s;
  font-family: inherit;
  min-height: unset;
}
.sidebar-attendance-card:hover { background: var(--color-secondary-bg); }
.sidebar-attendance-card:active { transform: scale(0.98); }
.sidebar-attendance-card .fa-fire { font-size: 1.4rem; color: var(--color-accent); }
.sidebar-attendance-card.attended { background: var(--color-bg-soft); border-color: var(--color-border); opacity: 0.85; }
.sidebar-attendance-card.attended .fa-fire { color: var(--color-text-hint); }
.attendance-text { flex: 1; display: grid; gap: 2px; }
.attendance-label { font-size: var(--fs-sm); color: var(--color-secondary); line-height: 1.3; }
.attendance-sub { font-weight: 700; color: var(--color-primary); font-size: var(--fs-md); line-height: 1.3; }
.attendance-caret { color: var(--color-secondary); font-size: var(--fs-sm); }

/* 카테고리 그룹 헤더 */
.category-group-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-text-hint);
  letter-spacing: 0.5px;
  padding: 4px;
  margin: 18px 0 6px;
}
.category-group:first-child .category-group-label { margin-top: 0; }
.category-group-label.category-group-signature { color: var(--color-secondary); }

/* 시그니처 게시판 박스 */
.category-signature-box {
  background: var(--color-secondary-bg);
  border-radius: var(--radius-md);
  padding: 5px;
}
.category-signature-box .category-item-signature {
  background: var(--color-bg-card);
  border: 1px solid transparent;
  margin-bottom: 4px;
}
.category-signature-box .category-item-signature:last-child { margin-bottom: 0; }
.category-signature-box .category-item-signature.active,
.category-signature-box .category-item-signature:hover {
  border-color: var(--color-secondary);
  font-weight: 700;
}

/* 황금 배지 (홀인원글) */
.badge-gold {
  background: var(--color-gold-bg) !important;
  color: var(--color-gold) !important;
  font-weight: 700;
}

.text-muted { color: var(--color-text-muted); }

@media (max-width: 900px) {
  #board-category-list.category-list {
    display: grid;
    overflow: visible;
    padding-bottom: 0;
  }
  .category-btn {
    width: 100%;
    border-radius: 8px;
    white-space: normal;
  }
  .category-signature-box .category-item-signature.active,
  .category-signature-box .category-item-signature:hover {
    background: #fff;
    color: var(--green);
  }
}

/* ── 뉴스 카드 v2 ────────────────────────────────────────── */
.news-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: box-shadow .18s, transform .15s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.news-badge {
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .03em;
}
.news-badge-youtube { background: #FF3B3B; color: #fff; }
.news-badge-news    { background: var(--color-accent); color: #fff; }
.news-badge-info    { background: var(--color-secondary); color: #fff; }
.news-time {
    font-size: .78rem;
    color: var(--muted);
    white-space: nowrap;
}
.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.news-card-desc {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin: 0;
}
.news-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    gap: 8px;
}
.news-source-label {
    font-size: .78rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.news-detail-link {
    font-size: .82rem;
    color: var(--color-accent);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.news-detail-link:hover { text-decoration: underline; }

/* 게시글 하이라이트 애니메이션 */
@keyframes postHighlight {
    0%   { box-shadow: 0 0 0 3px var(--green); background: #e8f5e9; }
    80%  { box-shadow: 0 0 0 3px var(--green); background: #e8f5e9; }
    100% { box-shadow: none; background: var(--panel); }
}
.post-card.post-highlight {
    animation: postHighlight 2.5s ease forwards;
}

/* ── 거리 필터 칩 ─────────────────────────────────────────── */
.distance-filter-row {
    background: var(--soft-green);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
}
.distance-filter-row h3 {
    font-size: .9rem;
    color: var(--muted);
    margin: 0 0 10px;
}
.dist-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dist-chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: .85rem;
    cursor: pointer;
    transition: all .18s;
    font-weight: 500;
}
.dist-chip:hover { border-color: var(--green); color: var(--green); }
.dist-chip.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

/* ── 월별 미니 캘린더 ───────────────────────────────────────── */
.monthly-mini-cal { margin: 10px 0; }
.mini-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.mini-cal-day {
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    color: var(--muted);
    background: transparent;
    font-weight: 400;
}
.mini-cal-day.attended {
    background: var(--green);
    color: #fff;
    font-weight: 700;
}
.mini-cal-day.today {
    border: 2px solid var(--orange);
    color: var(--orange);
    font-weight: 700;
}
.mini-cal-day.attended.today {
    background: var(--green);
    border-color: var(--orange);
    color: #fff;
}

/* ── 공유 버튼 ──────────────────────────────────────────────── */
.share-btn {
    color: var(--blue);
}
.share-btn:hover { color: #1a3577; }
.job-card-foot {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

/* ── 조인 GPS 버튼 / 로그인 게이트 ────────────────────────── */
.gps-btn {
    width: 100%;
    margin-bottom: 6px;
}
.gps-note {
    font-size: .82rem;
    color: var(--muted);
    margin: 4px 0 8px;
    text-align: center;
}
.friend-login-gate {
    text-align: center;
    padding: 20px 16px;
}
.friend-login-gate i.fa-lock {
    font-size: 2rem;
    color: var(--muted);
    margin-bottom: 10px;
}
.friend-login-gate p {
    font-size: .92rem;
    margin: 0 0 14px;
    line-height: 1.5;
}
.friend-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}
.friend-dist {
    font-size: .78rem;
    color: var(--muted);
    background: var(--soft-green);
    border-radius: 10px;
    padding: 2px 8px;
    margin-left: 4px;
}
.msg-send-btn {
    font-size: .8rem;
    padding: 4px 12px;
    white-space: nowrap;
}

/* ── 쪽지 모달 ──────────────────────────────────────────────── */
.msg-modal-box { max-width: 420px; }
.msg-to-label {
    font-size: .95rem;
    margin: 0 0 12px;
    padding: 8px 12px;
    background: var(--soft-green);
    border-radius: 8px;
}
#msg-content {
    width: 100%;
    padding: 10px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    resize: vertical;
    margin-bottom: 10px;
    font-family: inherit;
}
.msg-inbox { margin-top: 12px; }
.msg-sent-note {
    text-align: center;
    color: var(--green);
    font-weight: 600;
    font-size: .95rem;
    padding: 12px;
}

