/* THE XAMY.IN LOGO in the top bar (owner, 2026-11-30, from the reference: slate mark, copper wordmark; the ring of the X glows
   like a planet's ring). Markup: templates/site/_brand.html. Loaded after the page's own .tp-logo rules, so it wins. */
.tp-logo.xb, .tp-bar .tp-logo.xb, header .tp-logo.xb { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #2f3a40; line-height: 1; }
.tp-logo.xb .xb-mark { width: 56px; height: 41px; overflow: visible; flex: none; }
.tp-logo.xb .xb-word {
  font: 600 24px/1 'Montserrat', sans-serif; letter-spacing: .4px;
  background: linear-gradient(90deg, #2e1a10 0%, #5e3a25 30%, #9a6a48 52%, #6e4630 72%, #3a2315 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.tp-logo.xb .xb-word i { font-style: normal; }
.tp-logo.xb .xb-word::first-letter { }
/* the glow breathes; a small light runs round the front of the ring */
.tp-logo.xb .xb-ring-glow { animation: xbBreathe 3.6s ease-in-out infinite; }
.tp-logo.xb .xb-halo { opacity: .22; animation: xbHalo 3.6s ease-in-out infinite; }
.tp-logo.xb .xb-spark { animation: xbRun 5.5s linear infinite; opacity: .9; }
@keyframes xbBreathe { 0%, 100% { opacity: .35; } 50% { opacity: .8; } }
@keyframes xbHalo { 0%, 100% { opacity: .12; } 50% { opacity: .3; } }
@keyframes xbRun { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.tp-logo.xb:hover .xb-ring-glow { animation-duration: 1.6s; }
@media (prefers-reduced-motion: reduce) {
  .tp-logo.xb .xb-ring-glow, .tp-logo.xb .xb-halo, .tp-logo.xb .xb-spark { animation: none; }
  .tp-logo.xb .xb-spark { display: none; }
}
@media (max-width: 600px) {
  .tp-logo.xb { gap: 6px; }
  .tp-logo.xb .xb-mark { width: 46px; height: 34px; }
  .tp-logo.xb .xb-word { font-size: 19px; }
}
/* night */
html[data-theme="night"] .tp-logo.xb, html[data-theme="night"] .tp-bar .tp-logo.xb, html[data-theme="night"] header .tp-logo.xb { color: #ece6dc; }
html[data-theme="night"] .tp-logo.xb .xb-word { background-image: linear-gradient(90deg, #c98a5a 0%, #f3c99f 50%, #c48352 100%); }
html[data-theme="night"] .tp-logo.xb .xb-halo { stroke: #f3c99f; }

/* the copper mark (2026-11-30): only the small light runs (no glow); at night the dark copper is lifted so it reads on the navy bar */
.tp-logo.xb .xb-spark { animation: xbRun 6s linear infinite; }
html[data-theme="night"] .tp-logo.xb .xb-mark { filter: brightness(1.75) saturate(1.1); }
/* the old theme's header (home page and older pages: #header #logo h1 a { display: inline-block; ... }) is stronger than the rules above:
   line the mark and the name up there too */
#header #logo h1 { line-height: 1; margin: 0; padding: 0; }
#header #logo h1 a.tp-logo.xb { display: inline-flex; align-items: center; gap: 8px; line-height: 1; padding: 0; border: 0; }
#header #logo h1 a.tp-logo.xb .xb-word { line-height: 1; }
