/* Ornaments on the other pages: the same drawings as Masterclass
   (brand-masterclass-ornaments.css, load it first), placed per page by class.
   Gold #C58F38 on light backgrounds, yellow #DFB64A on navy and black. */

/* Any section or card with ornaments: content stays above them. */
.has-orn, .orn-card { position: relative; }
.has-orn > :not(.orn), .orn-card > :not(.orn) { position: relative; z-index: 1; }

/* Opening sections: two corners, top left and top right, like the Masterclass top section. */
.orn-top > .orn { bottom: auto; height: var(--orn-size); left: var(--orn-y); right: var(--orn-y); }
.orn-top.orn-small > .orn { --orn-size: 64px; --orn-y: 10px; }
.orn-yellow > .orn { --orn-color: #DFB64A; }

/* Quote-like sections: two corners, top left and bottom right, like Suroshri's quote. */
.orn-quote > .orn { --orn-size: 90px; --orn-w: 1000px; --orn-y: 18px; }

/* Navy cards: two corners in yellow, top left and bottom right, like Meet Suroshri. */
.orn-card > .orn { --orn-color: #DFB64A; --orn-size: 72px; top: 18px; bottom: 18px; left: 18px; right: 18px; }
/* White cards (policy pages): the same, in gold. */
.orn-card.orn-gold > .orn { --orn-color: #C58F38; --orn-size: 40px; top: 10px; bottom: 10px; left: 10px; right: 10px; }

/* The line divider under a heading. */
.hero-line.under { margin: 16px auto 0; }
.hero-line.yellow { --line-color: #DFB64A; }

/* Home, Experience the Music: the heading keeps a 92px gap below it; the line sits 16px under
   the heading and the gap below the line makes up the rest, so the grid does not move. */
.experience-music-section .hero-line.under { margin: -76px auto 66px; }
/* Home, About Suroshri: the photo covers the card's first 45px, so the top-left corner starts after it. */
@media (min-width: 992px) { .about-suroshri-navy-card.orn-card > .orn { --orn-size: 52px; top: 12px; bottom: 12px; left: 52px; right: 12px; } }
/* Below 992px Home stacks: the heading's gap is 30px and the photo overlaps the About card's top left. */
@media (max-width: 991px) {
  .experience-music-section .hero-line.under { margin: -16px auto 24px; }
  .about-suroshri-navy-card.orn-card > .orn .tl { display: none; }
}

/* Method, Suroshri's message: the text runs the full container width, so the corners frame it wider. */
.suroshri-message-section.orn-quote > .orn { --orn-w: 1220px; }

/* The lotus divider between two parts of a page. */
.orn-div.standalone { margin: 8px auto 48px; }

@media (max-width: 767px) {
  .orn-top.orn-small > .orn { --orn-size: 40px; --orn-y: 6px; }
  .orn-quote > .orn { --orn-size: 44px; --orn-y: 8px; }
  .orn-card > .orn, .orn-card.orn-gold > .orn { --orn-size: 40px; top: 10px; bottom: 10px; left: 10px; right: 10px; }
  .hero-line.under { margin-top: 12px; }
  .orn-div.standalone { margin: 4px auto 32px; }
}

/* ---- Lotus hanging: the two lines and the lotus from Masterclass "What You'll Learn". ----
   <div class="hang" aria-hidden="true"></div> inside a section hangs from its top left;
   add "tr" to hang from the top right, "br" to rise from the bottom right, "bl" from the bottom left.
   Gold on light sections; add "yellow" on navy or black. Shown only on screens 1300px and wider, where the margins have room. */
:root { --orn-hang: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 25 260%22%3E%3Cg transform=%22translate(12.5 0) rotate(90)%22%3E%3Cg%3E %3Ccircle cx=%2221%22 cy=%225%22 r=%221.5%22/%3E %3Crect x=%2222.5%22 y=%224.5%22 width=%2220%22 height=%221%22/%3E %3Cpath d=%22M40 5 L46 3.3 L52 5 L46 6.7 Z%22/%3E %3Ccircle cx=%2256%22 cy=%225%22 r=%221%22/%3E %3Crect x=%2249.5%22 y=%224.5%22 width=%2255.5%22 height=%221%22/%3E %3Ccircle cx=%2264%22 cy=%225%22 r=%221%22/%3E%3C/g%3E%3Crect x=%22100%22 y=%224.5%22 width=%22143%22 height=%221%22/%3E%3Cg transform=%22translate(242 -2.5) scale(0.75 0.75)%22%3E %3Cpath d=%22M4 10 C7.8 14.68 19.2 13.24 23 10 C19.2 6.76 7.8 5.32 4 10 Z%22/%3E%3Cpath d=%22M4 10 C8.67 11.52 13.82 5.52 13.96 1.64 C10.12 1.11 3.32 5.14 4 10 Z%22/%3E%3Cpath d=%22M4 10 C3.32 14.86 10.12 18.89 13.96 18.36 C13.82 14.48 8.67 8.48 4 10 Z%22/%3E%3Ccircle cx=%222%22 cy=%2210%22 r=%222%22/%3E%3C/g%3E%3C/g%3E%3Cg transform=%22translate(10 0)%22%3E%3Cg transform=%22translate(12.5 0) rotate(90)%22%3E%3Cg%3E %3Ccircle cx=%2221%22 cy=%225%22 r=%221.5%22/%3E %3Crect x=%2222.5%22 y=%224.5%22 width=%2220%22 height=%221%22/%3E %3Cpath d=%22M40 5 L46 3.3 L52 5 L46 6.7 Z%22/%3E %3Ccircle cx=%2256%22 cy=%225%22 r=%221%22/%3E %3Crect x=%2249.5%22 y=%224.5%22 width=%2255.5%22 height=%221%22/%3E %3Ccircle cx=%2264%22 cy=%225%22 r=%221%22/%3E%3C/g%3E%3Crect x=%22100%22 y=%224.5%22 width=%2253%22 height=%221%22/%3E%3Cg transform=%22translate(152 -2.5) scale(0.75 0.75)%22%3E %3Cpath d=%22M4 10 C7.8 14.68 19.2 13.24 23 10 C19.2 6.76 7.8 5.32 4 10 Z%22/%3E%3Cpath d=%22M4 10 C8.67 11.52 13.82 5.52 13.96 1.64 C10.12 1.11 3.32 5.14 4 10 Z%22/%3E%3Cpath d=%22M4 10 C3.32 14.86 10.12 18.89 13.96 18.36 C13.82 14.48 8.67 8.48 4 10 Z%22/%3E%3Ccircle cx=%222%22 cy=%2210%22 r=%222%22/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.has-hang { position: relative; }
.has-hang > :not(.hang) { position: relative; z-index: 1; }
.hang { display: none; }
@media (min-width: 1300px) {
  .hang {
    display: block; position: absolute; top: 0; left: 0; width: 70px; height: 260px;
    pointer-events: none; z-index: 0; --hang-color: #C58F38;
  }
  .hang.yellow { --hang-color: #DFB64A; }
  /* The lines: dots 16px from the top, 16px and 26px in from the side. */
  .hang::before {
    content: ""; position: absolute; left: 13.5px; top: -5px; width: 25px; height: 260px; background: var(--hang-color);
    -webkit-mask: var(--orn-hang) no-repeat center / 100% 100%; mask: var(--orn-hang) no-repeat center / 100% 100%;
  }
  /* The lotus, tucked into the corner beside the lines, opening down and inwards. */
  .hang::after {
    content: ""; position: absolute; left: 34px; top: 21.3px; width: 34px; height: 20.4px; background: var(--hang-color);
    transform: rotate(135deg);
    -webkit-mask: var(--orn-lotus-solo) no-repeat center / contain; mask: var(--orn-lotus-solo) no-repeat center / contain;
  }
  .hang.tr { left: auto; right: 0; transform: scaleX(-1); }
  .hang.br { left: auto; top: auto; right: 0; bottom: 0; transform: rotate(180deg); }
  .hang.bl { top: auto; bottom: 0; transform: scaleY(-1); }
  /* Music: each piece hangs one, alternating left and right (the first piece on the left). */
  .music-piece-section:nth-of-type(odd) > .hang { left: auto; right: 0; transform: scaleX(-1); }
  /* The first piece follows an 80px black spacer: its hanging starts where the black starts. */
  .spacer-black-80 + .music-piece-section > .hang { top: -80px; }
  /* Home, Guruji's card: one hanging inside, top right, within the card's 45px right margin. Moved 6px
     toward the edge so the lines keep a clear gap from the text. */
  .about-suroshri-navy-card > .hang.tr { right: -6px; top: -4px; }
}
