/* Batch 29 (Nov 15): the cream and gold ring logo from the /prime top bar (.gpp-top .tb9-logo in v4/prime/prime-page.css),
   for the subpages that still showed the flat brown disc. The logo image stays in place at its own size (so nothing
   moves and the link is the same); a porcelain coin with a gold ring and the plum wordmark is painted over it.
   Use: class="glz-ring" on the link (or a span) whose first child is the logo image, and --rs for its size. */
.glz-ring, .gp-top .gp-home, .gj-card-brand { position: relative; --rs: 40px; }
.gp-top .gp-home { --rs: 34px; } /* the member pages bar is drawn by v4/perks/kit.js */
.gj-card-brand { --rs: 24px; }    /* the member card on /join (v4/perks/join.js) */
.glz-ring > img:first-child, .gp-top .gp-home > img:first-child, .gj-card-brand > img:first-child { opacity: 0; }
.glz-ring::before, .glz-ring::after, .gp-top .gp-home::before, .gp-top .gp-home::after, .gj-card-brand::before, .gj-card-brand::after { content: ""; position: absolute; left: 0; top: 50%; pointer-events: none; }
.glz-ring::before, .gp-top .gp-home::before, .gj-card-brand::before {
  width: var(--rs); height: var(--rs); margin-top: calc(var(--rs) / -2); border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fffdf8, #f8eedd);
  box-shadow: 0 0 0 2px #fffaf2, 0 0 0 3.5px #d4a843, 0 8px 16px -8px rgba(74, 25, 66, .45);
}
.glz-ring::after, .gp-top .gp-home::after, .gj-card-brand::after {
  left: calc(var(--rs) * .14); width: calc(var(--rs) * .72); height: calc(var(--rs) * .52); margin-top: calc(var(--rs) * -.28);
  background: #4A1942;
  -webkit-mask: url("/assets/glaze/core/glaze-wordmark-letters.png") center / contain no-repeat;
          mask: url("/assets/glaze/core/glaze-wordmark-letters.png") center / contain no-repeat;
}
/* a logo that is not a link and sits on its own (the matcha hero) */
span.glz-ring { display: block; width: var(--rs); height: var(--rs); }
span.glz-ring > img:first-child { width: 100% !important; height: 100% !important; margin: 0 !important; }
/* the matcha hero: centred on phones, on the text column's left edge from 1000 px (as v4/matcha-pass.css does for the old logo) */
.hero-inner > span.glz-ring { margin: 0 auto 16px; }
@media (min-width: 1000px) { html body .hero-inner > span.glz-ring { margin: 0 0 18px; } }

/* Loops b34: the same ring in the plain headers and on the member pages.
   - A header logo span (class "glz-ring glz-ring-head") inside the page's own home link: /catering (36px), /brownies and /track (40px).
   - /member's top bar (.gc-top .gc-home, drawn by v4/club/club.js, the same shape as the perks bar) and its sign-in screen. The
     sign-in logo is a lone image, so the ring is painted by its column (.gc-gate-in) right over it; the picture keeps its place. */
span.glz-ring.glz-ring-head { --rs: 40px; }
.cmast-mark span.glz-ring.glz-ring-head { --rs: 36px; }
.cmast-mark:has(> .glz-ring) { display: block; line-height: 0; }
.cmast-l:has(> .cmast-mark > .glz-ring) { align-items: center; }
.tk-logo:has(> .glz-ring), .bp-logo:has(> .glz-ring) { display: inline-block; line-height: 0; }
.gc-top .gc-home { position: relative; --rs: 32px; }
.gc-top .gc-home > img:first-child { opacity: 0; }
.gc-top .gc-home::before, .gc-top .gc-home::after { content: ""; position: absolute; left: 0; top: 50%; pointer-events: none; }
.gc-top .gc-home::before, .gc-gate-in::before {
  width: var(--rs); height: var(--rs); margin-top: calc(var(--rs) / -2); border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fffdf8, #f8eedd);
  box-shadow: 0 0 0 2px #fffaf2, 0 0 0 3.5px #d4a843, 0 8px 16px -8px rgba(74, 25, 66, .45);
}
.gc-top .gc-home::after, .gc-gate-in::after {
  left: calc(var(--rs) * .14); width: calc(var(--rs) * .72); height: calc(var(--rs) * .52); margin-top: calc(var(--rs) * -.28);
  background: #4A1942;
  -webkit-mask: url("/assets/glaze/core/glaze-wordmark-letters.png") center / contain no-repeat;
          mask: url("/assets/glaze/core/glaze-wordmark-letters.png") center / contain no-repeat;
}
.gc-gate-in:has(> .gc-gate-logo:first-child) { position: relative; --rs: 54px; }
.gc-gate-in:has(> .gc-gate-logo:first-child) > .gc-gate-logo { opacity: 0; }
.gc-gate-in:has(> .gc-gate-logo:first-child)::before, .gc-gate-in:has(> .gc-gate-logo:first-child)::after { content: ""; position: absolute; top: calc(var(--rs) / 2); pointer-events: none; }
.gc-gate-in:has(> .gc-gate-logo:first-child)::before { left: calc(50% - var(--rs) / 2); }
.gc-gate-in:has(> .gc-gate-logo:first-child)::after { left: calc(50% - var(--rs) * .36); }
