/* TMAN Museum: subtle martial arts background art (added Nov 24, 2026). Decorative only. */
.wrap { position: relative; z-index: 1; }
.ma-bg {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  color: #c9a227;
}
.ma-bg svg { display: block; fill: currentColor; }
.ma-left, .ma-right {
  position: absolute;
  top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ma-kara { display: flex; flex-direction: column; align-items: center; }
/* Phones and tablets (under 1200px): smaller, fainter, at the screen edges behind the text */
@media (max-width: 1199px) {
  .ma-left, .ma-right { width: 70px; }
  .ma-left  { left: 2px;  padding-top: 90px; gap: 22px; }
  .ma-right { right: 2px; padding-top: 50px; gap: 24px; }
  .ma-kara { gap: 6px; }
  .ma-kanji { width: 60px; height: 60px; opacity: 0.09; }
  .ma-small { width: 40px; height: 40px; }
  .ma-brush { width: 26px; height: 28vh; opacity: 0.07; }
  .ma-enso { width: 70px; height: 70px; opacity: 0.10; }
  .ma-kick { width: 66px; height: 72px; opacity: 0.08; }
}
@media (max-width: 1199px) and (max-height: 600px) {
  .ma-brush, .ma-kick { display: none; }
}
/* Desktop (1200px and wider) */
@media (min-width: 1200px) {
  .ma-left, .ma-right { width: 110px; }
  .ma-left  { left:  max(10px, calc(50% - 490px - 125px)); padding-top: 120px; gap: 26px; }
  .ma-right { right: max(10px, calc(50% - 490px - 125px)); padding-top: 70px;  gap: 28px; }
  .ma-kanji { width: 92px; height: 92px; opacity: 0.18; }
  .ma-small { width: 60px; height: 60px; }
  .ma-kara { gap: 8px; }
  .ma-brush { width: 40px; height: 34vh; opacity: 0.15; }
  .ma-enso { width: 108px; height: 108px; opacity: 0.20; }
  .ma-kick { width: 104px; height: 114px; opacity: 0.16; }
}
@media (min-width: 1200px) and (max-height: 700px) {
  .ma-brush, .ma-kick { display: none; }
}
/* Bold side art (Ron, Nov 24 3:50 PM) */
.ma-kanji path { stroke: currentColor; stroke-width: 30; stroke-linejoin: round; paint-order: stroke; }
.ma-enso path:first-child { stroke-width: 19; }
.ma-brush path:first-child { stroke-width: 11; }
.ma-kick path { stroke-width: 20; }
.ma-kick circle { r: 18; }
/* Captions (desktop only, CSS text, decorative) */
.ma-left::before, .ma-left::after, .ma-right::before, .ma-right::after, .ma-kara::after { display: none; }
@media (min-width: 1200px) {
  .ma-left::before, .ma-left::after, .ma-right::before, .ma-right::after, .ma-kara::after {
    display: block;
    width: 110px;
    text-align: center;
    font: italic 11px/1.3 Georgia, "Times New Roman", serif;
    letter-spacing: .02em;
    color: #ffffff;
    opacity: .75;
    margin-top: -14px;
  }
  .ma-left > .ma-kanji { order: 0; }
  .ma-left::before { content: "Budo, the martial way"; order: 1; }
  .ma-left > .ma-brush { order: 2; }
  .ma-left::after { content: "Shodo, the way of the brush"; order: 3; }
  .ma-right > .ma-enso { order: 0; }
  .ma-right::before { content: "Enso, the Zen circle"; order: 1; }
  .ma-right > .ma-kara { order: 2; }
  .ma-kara::after { content: "Karate, empty hand"; margin-top: 2px; }
  .ma-right > .ma-kick { order: 3; }
  .ma-right::after { content: "Geri, the kick"; order: 4; }
}
@media (min-width: 1200px) and (max-height: 700px) {
  .ma-left::after, .ma-right::after { display: none; }
}
@media print { .ma-bg { display: none !important; } }

/* Monthly color rotation (Ron, Nov 24 2026). Set by a tiny script in index.html.
   Nov gold, Dec white, Jan crimson, Feb jade, then repeats. Captions stay white. */
html[data-art="gold"] .ma-bg { color: #c9a227; }
html[data-art="white"] .ma-bg { color: #ece6d6; }
html[data-art="crimson"] .ma-bg { color: #d0453a; }
html[data-art="jade"] .ma-bg { color: #3fae8c; }
