/* Unicode skin: the editor's Markdown marks. Loads after the parent's
   layout.css; colors, fonts, and widths are in tokens.css. */

/* Marks beside the site name, headings, and sidebar headings. */
.u .m { color: var(--h1-mark); font-weight: 400; }
.h2 .m { color: var(--h2-mark); }
.side h3 .m { color: var(--h1-mark); }

/* Menu: [[wikilink]] brackets that open a little on hover; the word stays green. */
.hd-nav a .b, .hd-mnav a .b { color: var(--wikilink-bracket); }
.hd-nav a .b, .hd-mnav a .b { display: inline-block; transition: transform .2s ease, color .2s; }
.hd-nav a:hover .b, .hd-mnav a:hover .b { color: var(--wikilink); }
.hd-nav a:hover .b:first-child, .hd-mnav a:hover .b:first-child { transform: translateX(-4px); }
.hd-nav a:hover .b:last-child, .hd-mnav a:hover .b:last-child { transform: translateX(4px); }

/* Title hover: the # cycles through the seven chakra colors for as long as
   the pointer stays on it, looping from violet back to red. */
@keyframes chakra-sweep {
  0% { color: #ef4444; } 14% { color: #f97316; } 28% { color: #facc15; } 43% { color: #4ade80; }
  57% { color: #60a5fa; } 71% { color: #818cf8; } 86% { color: #a78bfa; } 100% { color: #ef4444; }
}
.hd-title .m { display: inline-block; }
.hd-title:hover .m { animation: chakra-sweep 2.8s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .hd-nav a .b, .hd-mnav a .b { transition: none; }
  .hd-nav a:hover .b, .hd-mnav a:hover .b { transform: none; }
  .hd-title:hover .m { animation: none; color: var(--accent); }
}

/* Profile strip and page headings read like the editor. */
.hd-strip .desc::before { content: "> "; color: var(--mark); font-style: normal; }
.u .page-heading::before { content: "# "; color: var(--h1-mark); }

/* Headings and links in posts: # marks and [[ ]] brackets. */
.u .prose h1::before { content: "# "; color: var(--h1-mark); }
.u .prose h2::before { content: "## "; color: var(--h2-mark); }
.u .prose h3::before, .u .audio-title::before { content: "### "; opacity: .45; }
.u .prose a:not([href^="http"])::before { content: "[["; color: var(--wikilink-bracket); }
.u .prose a:not([href^="http"])::after { content: "]]"; color: var(--wikilink-bracket); }
.u .prose sup a::before, .u .prose sup a::after, .u .prose a[href^="#"]::before, .u .prose a[href^="#"]::after { content: none; }

/* Button-like links never take the wikilink brackets. */
.u .prose .give-ways a::before, .u .prose .give-ways a::after, .u .prose .buy-line a::before, .u .prose .buy-line a::after, .u .prose .buy-box a::before, .u .prose .buy-box a::after { content: none; }
.u .prose a.btn::before, .u .prose a.btn::after, .u .prose a.web-linkcard::before, .u .prose a.web-linkcard::after, .u .prose a.audio-dl::before, .u .prose a.audio-dl::after, .u .prose a.gal-item::before, .u .prose a.gal-item::after, .u .prose a.sc-thumb::before, .u .prose a.sc-thumb::after, .u .prose a.sc-prev::before, .u .prose a.sc-prev::after, .u .prose a.sc-next::before, .u .prose a.sc-next::after { content: none; }

/* Block headings and labels. */
.u .web-hours .bk-h, .u .web-map .bk-h { text-transform: none; letter-spacing: 0; font-size: var(--fs-label); color: var(--h2); }
.u .web-hours .bk-h::before, .u .web-map .bk-h::before { content: "### "; color: var(--h2-mark); }
.u .web-showcase .sc-title::before { content: "# "; color: var(--h1-mark); }
.u .prose .web-section h2::before { content: "## "; }
.u .eyebrow::before { content: "── "; color: var(--mark); }
.u .web-section .section-label::before { content: "── "; color: var(--mark); }

/* Menu labels keep the writer's capitals in the markup; Unicode shows them lowercase. */
.u .hd-nav a .mt, .u .hd-mnav a .mt { text-transform: lowercase; }

/* Reader drawer headings: # for the title, ## for sections. */
.u .cl-section-head::before { content: "## "; color: var(--h2-mark); }
.u .cl-title-head::before { content: "# "; color: var(--h1-mark); }
.u .cl-footnotes-head::before { content: none; }
