/* PopsPops V620 — Audience Edition
   Final visual compatibility layer. Existing Tistory and PopsPops behavior is untouched. */
:root {
  --pp620-night: #11162b;
  --pp620-night-2: #1b2140;
  --pp620-indigo: #5f5ce6;
  --pp620-coral: #ff6d5f;
  --pp620-lime: #c9f26b;
  --pp620-paper: #f7f5f0;
  --pp620-card: #ffffff;
  --pp620-ink: #181b2b;
  --pp620-text: #44485a;
  --pp620-muted: #73788c;
  --pp620-line: #e4e3ea;
  --pp620-shadow: 0 14px 40px rgba(24, 27, 49, .09);
  --pp620-radius: 20px;
}

/* Shared canvas: one recognizable music-magazine palette on every Tistory page. */
html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) {
  background:
    radial-gradient(circle at 8% 7%, rgba(95, 92, 230, .08), transparent 24rem),
    radial-gradient(circle at 94% 23%, rgba(255, 109, 95, .07), transparent 23rem),
    var(--pp620-paper) !important;
  color: var(--pp620-text) !important;
}

html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap {
  color: var(--pp620-text);
}

/* Header and discovery navigation: high contrast and a clear first click. */
html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap > .header {
  background:
    radial-gradient(circle at 78% 8%, rgba(116, 103, 255, .30), transparent 31%),
    radial-gradient(circle at 12% 100%, rgba(255, 109, 95, .18), transparent 33%),
    linear-gradient(135deg, #0e1328 0%, #191d3a 55%, #261936 100%) !important;
  border-bottom: 0 !important;
}

.pp-v600-brand-note {
  color: #b9c0d9 !important;
}

.pp-v600-brand-note::before {
  background: linear-gradient(90deg, var(--pp620-coral), #ffad68) !important;
}

@media (min-width: 769px) {
  .pp-v600-utility {
    min-height: 54px;
    align-items: center;
    gap: 4px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(14, 19, 40, .96) !important;
  }

  .pp-v600-utility a {
    padding: 9px 13px !important;
    border: 1px solid transparent;
    color: #cbd1e4 !important;
    font-size: 11px !important;
    letter-spacing: -.01em;
  }

  .pp-v600-utility a:first-child,
  .pp-v600-utility a:last-child {
    border-color: rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .07);
    color: #fff !important;
  }

  .pp-v600-utility a:hover {
    border-color: rgba(201, 242, 107, .55);
    background: rgba(201, 242, 107, .12) !important;
    color: var(--pp620-lime) !important;
  }
}

/* Home: hero, search and 11 experiences are the primary audience funnels. */
body#tt-body-index .header .pp-home-hero {
  border-color: rgba(255, 255, 255, .22) !important;
  box-shadow: 0 30px 75px rgba(5, 8, 24, .38) !important;
}

body#tt-body-index .header .pp-home-rooms a {
  border-color: rgba(255, 255, 255, .24) !important;
  background: rgba(9, 13, 31, .72) !important;
}

body#tt-body-index .header .pp-home-rooms a:hover {
  border-color: var(--pp620-lime) !important;
  background: var(--pp620-lime) !important;
  color: var(--pp620-night) !important;
}

#pp-make-discovery {
  border: 1px solid rgba(157, 149, 255, .32) !important;
  background:
    radial-gradient(circle at 88% 0, rgba(119, 101, 255, .34), transparent 31%),
    radial-gradient(circle at 5% 100%, rgba(255, 109, 95, .21), transparent 34%),
    linear-gradient(145deg, #11162b, #191e3a 60%, #271b3d) !important;
  box-shadow: 0 28px 70px rgba(17, 22, 43, .25) !important;
}

.pp-make-kicker,
.pp-make-head h2 em,
.pp-make-keywords > span,
.pp-make-foot a {
  color: #ff9688 !important;
}

.pp-make-head p,
.pp-make-stat span,
.pp-make-foot {
  color: #bbc1d6 !important;
}

.pp-make-search {
  overflow: hidden;
  height: 64px !important;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 999px !important;
}

.pp-make-search:focus-within {
  border-color: var(--pp620-lime);
  box-shadow: 0 0 0 5px rgba(201, 242, 107, .15), 0 15px 38px rgba(0, 0, 0, .25);
}

.pp-make-search button {
  min-width: 104px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--pp620-coral), #ff8d5f) !important;
}

.pp-make-card {
  border-color: rgba(255, 255, 255, .14) !important;
  background: linear-gradient(145deg, rgba(52, 58, 100, .96), rgba(24, 29, 57, .98)) !important;
}

.pp-make-card:hover {
  border-color: rgba(201, 242, 107, .62) !important;
  background: linear-gradient(145deg, #484a87, #282d55) !important;
}

.pp-make-card::before {
  border-color: rgba(201, 242, 107, .38) !important;
  color: var(--pp620-lime) !important;
}

.pp-make-card small {
  color: #b7bed5 !important;
}

/* Listing, category, search, tag and archive pages: scannable cards drive deeper sessions. */
html body:is(#tt-body-index, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-notice) #wrap .title-search,
html body:is(#tt-body-index, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-notice) #wrap .title-border {
  color: var(--pp620-ink) !important;
  letter-spacing: -.035em;
}

html body:is(#tt-body-index, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-notice) #wrap :is(.article-type-common, .article-type-thumbnail, .article-type-gallery, .article-type-list) {
  border: 1px solid var(--pp620-line) !important;
  border-radius: var(--pp620-radius) !important;
  background: var(--pp620-card) !important;
  box-shadow: var(--pp620-shadow) !important;
}

html body:is(#tt-body-index, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-notice) #wrap :is(.article-type-common, .article-type-thumbnail, .article-type-gallery, .article-type-list):hover {
  border-color: rgba(95, 92, 230, .35) !important;
  box-shadow: 0 22px 50px rgba(24, 27, 49, .14) !important;
}

html body:is(#tt-body-index, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-notice) #wrap .article-content :is(.title, .title a),
html body:is(#tt-body-index, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-notice) #wrap .article-type-common :is(.title, .title a, .link-article) {
  color: var(--pp620-ink) !important;
}

html body:is(#tt-body-index, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-notice) #wrap .article-content :is(.summary, .date),
html body:is(#tt-body-index, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-notice) #wrap .article-type-common :is(.summary, .date) {
  color: var(--pp620-muted) !important;
}

html body:is(#tt-body-index, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-notice) #wrap :is(.link-category, .article-content .category) {
  color: #d94f45 !important;
}

/* Article pages: readable long-form lyrics and a visible next-click module. */
body#tt-body-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(95, 92, 230, .08), transparent 26rem),
    #f2f0eb !important;
}

body#tt-body-page #wrap .article-header {
  border: 1px solid rgba(255, 255, 255, .12) !important;
  background:
    radial-gradient(circle at 88% 5%, rgba(116, 103, 255, .35), transparent 36%),
    linear-gradient(135deg, #10162d, #25203f) !important;
}

body#tt-body-page #wrap .article-header .title-article {
  color: #fff !important;
}

body#tt-body-page #wrap .article-header .category {
  color: #ff9a8c !important;
}

body#tt-body-page #wrap .article-view {
  border: 1px solid rgba(24, 27, 49, .07);
  background: #fff !important;
  color: #2e3140 !important;
  box-shadow: 0 22px 60px rgba(24, 27, 49, .10) !important;
}

body#tt-body-page #wrap .article-view :is(p, li, div) {
  color: #303342 !important;
}

body#tt-body-page #wrap .article-view :is(h1, h2, h3, h4) {
  color: var(--pp620-ink) !important;
}

body#tt-body-page #wrap .article-view h2 {
  border-color: var(--pp620-indigo) !important;
}

body#tt-body-page #wrap .article-view a {
  color: #c8463e !important;
  text-decoration-color: rgba(200, 70, 62, .35) !important;
}

body#tt-body-page #wrap .article-view blockquote {
  border-left-color: var(--pp620-coral) !important;
  background: #fff4ee !important;
  color: #4d4542 !important;
}

.pp-v600-progress {
  height: 4px !important;
  background: linear-gradient(90deg, var(--pp620-coral), #ffb35e, var(--pp620-lime), #7772ff) !important;
}

.pp-make-article-next {
  border-color: #dcd9e7 !important;
  background: linear-gradient(145deg, #fff, #f4f2fb) !important;
  box-shadow: var(--pp620-shadow);
}

.pp-make-article-next__head span,
.pp-make-article-next a small {
  color: #d94f45 !important;
}

.pp-make-article-next a {
  border-color: #e4e1ec !important;
}

.pp-make-article-next a:hover {
  border-color: var(--pp620-indigo) !important;
  box-shadow: 0 10px 24px rgba(95, 92, 230, .12) !important;
}

/* Sidebar compatibility repair.
   V600 darkened nested .tt_category while V300 kept its links dark.
   V620 gives every content box an explicit light surface and explicit ink colors. */
html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap .area-aside {
  color: var(--pp620-text) !important;
}

html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap .area-aside .box-profile {
  border: 1px solid rgba(157, 149, 255, .25) !important;
  background:
    radial-gradient(circle at 85% 0, rgba(125, 109, 255, .30), transparent 38%),
    linear-gradient(150deg, #141a34, #232042) !important;
  color: #fff !important;
  box-shadow: 0 18px 45px rgba(17, 22, 43, .20) !important;
}

html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap .area-aside .box-profile :is(.tit-g, strong, b, a) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap .area-aside .box-profile :is(.text-profile, p, span) {
  color: #d7dcef !important;
  -webkit-text-fill-color: #d7dcef !important;
}

html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap .area-aside :is(.box-category, .box-category .tt_category, .box-tag, .box-recent, .box-reply, .box-notice, .box-side, .module, .category-list, .popular-post, .recent-comment) {
  border: 1px solid var(--pp620-line) !important;
  background: var(--pp620-card) !important;
  background-image: none !important;
  color: var(--pp620-text) !important;
  box-shadow: var(--pp620-shadow) !important;
}

html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap .area-aside :is(.box-category, .box-tag, .box-recent, .box-reply, .box-notice, .box-side, .module) :is(a, strong, b, .title-sidebar, .link_tit, .link_item, .link_sub_item) {
  color: var(--pp620-ink) !important;
  -webkit-text-fill-color: var(--pp620-ink) !important;
  text-shadow: none !important;
}

html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap .area-aside :is(.box-category, .box-tag, .box-recent, .box-reply, .box-notice, .box-side, .module) :is(p, span, small, .c_cnt, .date) {
  color: var(--pp620-muted) !important;
  -webkit-text-fill-color: var(--pp620-muted) !important;
}

html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap .area-aside :is(.box-category, .box-tag, .box-recent, .box-reply, .box-notice, .box-side, .module) a:hover {
  color: #d94f45 !important;
  -webkit-text-fill-color: #d94f45 !important;
}

/* The 11 experience launchers remain visually distinct without sacrificing text contrast. */
html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap .area-aside > a[class*="-menu"] {
  border: 1px solid #dedde8 !important;
  background: linear-gradient(145deg, #fff, #f5f4fa) !important;
  background-image: none !important;
  color: var(--pp620-ink) !important;
  box-shadow: 0 7px 18px rgba(24, 27, 49, .06) !important;
}

html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap .area-aside > a[class*="-menu"] :is(strong, b) {
  color: var(--pp620-ink) !important;
  -webkit-text-fill-color: var(--pp620-ink) !important;
  text-shadow: none !important;
}

html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap .area-aside > a[class*="-menu"] :is(small, span:not([class*="icon"])) {
  color: var(--pp620-muted) !important;
  -webkit-text-fill-color: var(--pp620-muted) !important;
  text-shadow: none !important;
}

html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap .area-aside > a[class*="-menu"]:hover {
  border-color: var(--pp620-indigo) !important;
  background: #f0efff !important;
  transform: translateY(-2px) !important;
  filter: none !important;
}

html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap .area-aside > a.pops-my-journey-menu {
  border-color: rgba(255, 142, 93, .45) !important;
  background: linear-gradient(135deg, #fff0e5, #fff8f1) !important;
}

/* Shared cards and controls across the 11 interactive experiences. */
html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap :is(button, [role="button"], input, textarea, select) {
  font-family: inherit;
}

html body:is(#tt-body-index, #tt-body-page, #tt-body-category, #tt-body-search, #tt-body-tag, #tt-body-archive, #tt-body-guestbook, #tt-body-location, #tt-body-notice) #wrap :is(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--pp620-lime) !important;
  outline-offset: 3px !important;
}

/* Footer and mobile discovery dock close the visual system. */
#footer,
.footer {
  border-top: 0 !important;
  background:
    radial-gradient(circle at 80% 0, rgba(95, 92, 230, .22), transparent 32%),
    linear-gradient(135deg, #0e1328, #181d38) !important;
  color: #b3bad0 !important;
}

#footer a,
.footer a {
  color: #d5daea !important;
}

@media (max-width: 768px) {
  .pp-make-search {
    height: 56px !important;
  }

  .pp-make-search button {
    min-width: 72px !important;
  }

  body#tt-body-page #wrap .article-view {
    border-left: 0;
    border-right: 0;
  }

  .pp-make-dock {
    border-top: 1px solid #dedde7 !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 -10px 30px rgba(24, 27, 49, .12) !important;
  }

  .pp-make-dock a {
    color: #666b7e !important;
  }

  .pp-make-dock a b {
    color: var(--pp620-ink) !important;
  }

  .pp-make-dock a.is-main b {
    background: var(--pp620-indigo) !important;
    color: #fff !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}
