/* ATOREUM 메인 — design/atoreum-main.html 의 <style> 에서 옮김 (토큰은 hub/base.css). 시안을 고치면 여기도 맞출 것 */
/* ── ATOREUM 포인트 컬러 (시안 B 토큰 덮어쓰기) ── */
    .logo .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-left: 3px; vertical-align: 2px; }

  /* ── 히어로: 오늘의 픽 + 실시간 수집 ── */
  .hero { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; }
  .pick { position: relative; border-radius: 22px; overflow: hidden; min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 40px 34px; gap: 14px; border: 1px solid var(--line);
    background: radial-gradient(90% 120% at 100% 0%, #1d3a8a 0%, #121a35 45%, #101014 85%); color: #f3f2f5; }
  .pick .k { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; color: #9db8ff; display: flex; gap: 10px; align-items: center; }
  .pick .k .src { letter-spacing: 0; font-weight: 700; color: #cfd8f5; background: rgba(255,255,255,.08); padding: 3px 9px; border-radius: 6px; }
  .pick h1 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.18; letter-spacing: -0.045em; font-weight: 900; max-width: 640px; }
  .pick p { color: #b9bfd3; font-size: 15.5px; max-width: 560px; }
  .pick .memo { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: #dfe4f3; max-width: 560px; }
  .pick .memo svg.lucide { color: var(--mint); margin-top: 2px; }
  .pick .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
  .pick .btn-ghost { color: #f3f2f5; border-color: rgba(255,255,255,.2); }
  .pick-art { position: absolute; right: -40px; top: -30px; width: 460px; height: 340px; opacity: .9; pointer-events: none; }

  .live { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 20px 20px 10px; display: flex; flex-direction: column; }
  .live-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
  .live-h h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
  .live-h .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: pulse 1.8s infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
  .live-h .more { margin-left: auto; font-size: 12.5px; color: var(--text-3); font-weight: 600; }
  .feed-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
  .feed-row:first-of-type { border-top: 0; }
  .fav { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; }
  .feed-row b { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .feed-row:hover b { text-decoration: underline; text-underline-offset: 3px; }
  .feed-row small { display: flex; gap: 6px; font-size: 12px; color: var(--text-3); margin-top: 3px; }
  .feed-row small .new { color: var(--mint); font-weight: 800; }

  /* ── 도구 스트립 ── */
  .strip { margin-top: 20px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
  .strip a { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
  .strip a:hover { border-color: var(--brand); transform: translateY(-2px); }
  .strip .ti { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); }
  .strip a:nth-child(even) .ti { background: var(--mint-soft); color: var(--mint); }
  .strip b { font-size: 13.5px; display: block; }
  .strip small { font-size: 11.5px; color: var(--text-3); }

  /* ── 기술 글 ── */
  .cat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
  .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
  .art .thumb { aspect-ratio: 16 / 9; transition: transform .2s; }
  .art:hover .thumb { transform: translateY(-3px); }
  .art .src { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin: 12px 0 6px; }
  .art .src .fav { width: 18px; height: 18px; border-radius: 5px; font-size: 9px; }
  .art .src .org { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--text-2); }
  .art .src .org.mine { border-color: var(--brand); color: var(--brand-ink); }
  .art h4 { font-size: 16px; line-height: 1.4; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .art:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
  .art p { font-size: 13px; color: var(--text-3); margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .art .tg { display: flex; gap: 8px; margin-top: 9px; font-size: 12px; color: var(--brand-ink); flex-wrap: wrap; }
  .art .tg span.cm { margin-left: auto; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
  .art .tg svg.lucide { width: 13px; height: 13px; }

  /* ── 2단: 커뮤니티 + 사이드 ── */
  .two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .board { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
  .tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); }
  .tabs a { padding: 10px 12px; font-weight: 700; font-size: 14px; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
  .tabs a.on { color: var(--text); border-color: var(--brand); }
  .row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); }
  .row:last-child { border-bottom: 0; }
  .row:hover { background: var(--surface-2); }
  .row .bd { font-size: 11.5px; font-weight: 800; color: var(--text-2); }
  .row .bd.qna { color: var(--mint); }
  .row b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .row b em { font-style: normal; color: var(--brand-ink); font-size: 12.5px; margin-left: 6px; font-weight: 800; }
  .row .meta { font-size: 12px; color: var(--text-3); white-space: nowrap; display: flex; gap: 10px; }
  .row .solved { font-size: 11px; font-weight: 800; color: var(--mint); border: 1px solid currentColor; border-radius: 99px; padding: 1px 7px; }

  .side-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
  .side-box h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
  .side-box h3 svg.lucide { color: var(--brand); width: 17px; height: 17px; }
  .rank { counter-reset: r; display: flex; flex-direction: column; gap: 10px; }
  .rank a { counter-increment: r; display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 13.5px; line-height: 1.4; }
  .rank a::before { content: counter(r); font-weight: 900; color: var(--text-3); font-size: 14px; }
  .rank a:nth-child(-n+3)::before { color: var(--brand); }
  .rank a:hover span { text-decoration: underline; }
  .tags { display: flex; gap: 6px; flex-wrap: wrap; }
  .tags a { font-size: 12.5px; padding: 5px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); font-weight: 600; }
  .tags a:hover { color: var(--brand-ink); }
  .notice a { display: flex; gap: 8px; font-size: 13.5px; padding: 6px 0; }
  .notice a span:last-child { margin-left: auto; color: var(--text-3); font-size: 12px; white-space: nowrap; }
  .join { background: linear-gradient(150deg, var(--brand-soft), var(--surface-2)); border: 0; }
  .join p { font-size: 13px; color: var(--text-2); margin: -4px 0 12px; }

  /* ── 수집 소스 ── */
  .sources { display: flex; gap: 10px; flex-wrap: wrap; }
  .sources span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
  .sources span .fav { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
  .sources span small { color: var(--text-3); font-weight: 500; }

  .ad-slot.mid { margin-top: 48px; }
  .foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
  .foot h5 { color: var(--text); font-size: 13px; margin-bottom: 10px; }
  .foot a { display: block; padding: 3px 0; }
  .foot a:hover { color: var(--text); }

  .atr-unused-note-pin { position: absolute; transform: translateY(-110%); right: 0; font-size: 11px; font-weight: 700; color: var(--mint); }

  @media (max-width: 1180px) {
    .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .two { grid-template-columns: 1fr; }
    .two aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
  }
  @media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; }
    .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gnb .mini-search { display: none; }
    .foot { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 640px) {
    .gnb nav { display: none; }
    .pick { padding: 26px 22px; min-height: 0; }
    .pick-art { width: 300px; height: 220px; opacity: .5; }
    .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid3 { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr auto; }
    .row .bd { display: none; }
  }

/* ── 실제 데이터용 추가 ── */
.atr-home .hero--banner { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.atr-home .home-hero { min-width: 0; }
.atr-home .pick h1 { position: relative; }
.atr-home .pick .k, .atr-home .pick p, .atr-home .pick .acts { position: relative; }
.live-empty, .row-empty { color: var(--text-3); font-size: 13.5px; padding: 18px; }
.row-empty a { color: var(--brand-ink); }
.strip a.strip-all .ti { background: var(--surface-2); color: var(--text-2); }
.grid3 .art .thumb.has-img { background: var(--surface-2); }
.grid3 .art .thumb img { width: 100%; height: 100%; object-fit: cover; }
.art .tg .cm { margin-left: auto; }
.ad-mid { margin-top: 48px; }
.atr-side { display: flex; flex-direction: column; gap: 16px; }
.notice .more { color: var(--text-3); font-size: 12.5px; justify-content: flex-end; }
.atr-home .strip { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 1180px) { .atr-home .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .atr-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
@media (max-width: 980px) { .atr-home .hero--banner { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .atr-home .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 내 북마크 (로그인) */
.bookmarks a { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; padding: 7px 0; border-top: 1px solid var(--line); }
.bookmarks a:first-of-type { border-top: 0; }
.bookmarks a span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bookmarks a:hover span { text-decoration: underline; }
.bookmarks a small { font-size: 11.5px; color: var(--text-3); }
.bookmarks a.more { flex-direction: row; justify-content: flex-end; color: var(--text-3); font-size: 12.5px; border: 0; }
/* 커뮤니티 탭 — 최신 / 인기 (같은 자리에서 바뀜) */
.board .tabs { align-items: center; }
.board .tabs button { padding: 10px 12px; border: 0; background: none; font: inherit; font-weight: 700; font-size: 14px; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.board .tabs button.on { color: var(--text); border-color: var(--brand); }
.board .tabs .tabs-more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; padding: 10px 4px; font-size: 13px; font-weight: 600; color: var(--text-3); border: 0; }
.board .tabs .tabs-more svg { width: 14px; height: 14px; }
.board .tab-panel[hidden] { display: none; }
.board .row .rank { flex: none; width: 18px; font-weight: 900; color: var(--brand); text-align: center; }
.board .row.has-rank { grid-template-columns: 22px 64px minmax(0, 1fr) auto; }
@media (max-width: 640px) { .board .row.has-rank { grid-template-columns: 22px minmax(0, 1fr) auto; } }
