/* r257v14 / Membership r10 (#1090) - owner reject of Landing r257v13 + Membership r9 (2026-11-30, Review Lab notes with
   circled screenshots; handoff OWNER-REJECT-UI-R257V14-MEMBERSHIP-R10-20261130.md):
     1. Calling selectors: no rectangular button boxes; the kit's freestanding embossed MedallionButton like Ancestry / Body / Path;
     3. phone hero: the crest + full wordmark sit clear of the pinned bar;
     4. Calling figure: the render's own alpha over the hall art, no black box.
   (2. the darker Light Mode lives in site-header/site-theme.css + gen_light_theme.py.)
   The rules sit in the ss-owner-fix cascade layer (declared first in site-theme.css), so their !important outranks both the
   Light Mode layers and the older sheets' unlayered !important rules without a specificity race. */
@layer ss-owner-fix {

  /* ---- 1. Calling row: four freestanding medallions ---- */
  html body #callings #calling-row.calling-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: clamp(28px, 4.4vw, 72px) !important;
    grid-template-columns: none !important;
    padding: 6px 0 4px !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  html body #callings #calling-row > button.calling-medallion.ss-medallion {
    --ss-med-size: 88px !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 4px 6px 2px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 7px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline-offset: 4px;
    background: none !important;
    box-shadow: none !important;
    text-align: center !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  html body #callings #calling-row > button.calling-medallion::before,
  html body #callings #calling-row > button.calling-medallion::after { content: none !important; display: none !important; }
  html body #callings #calling-row > button.calling-medallion .ss-medallion__disc { width: var(--ss-med-size) !important; height: var(--ss-med-size) !important; }
  html body #callings #calling-row > button.calling-medallion .ss-medallion__img {
    width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; object-fit: cover !important;
    border: 0 !important; border-radius: 50% !important; box-shadow: none !important; position: static !important;
  }
  html body #callings #calling-row > button.calling-medallion .ss-medallion__lock {
    /* on the disc's rim (top-right, 45 deg), not the cell corner */
    top: calc(var(--ss-med-size) * .02) !important; right: auto !important;
    left: calc(50% + var(--ss-med-size) * .5 - 17px) !important;
    width: 26px !important; height: 26px !important; padding: 5px !important;
  }
  html body #callings #calling-row > button.calling-medallion .ss-medallion__lock svg { width: 100%; height: 100%; display: block; }
  html body #callings #calling-row > button.calling-medallion .ss-medallion__label {
    font-family: Cinzel, "Cinzel", serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    line-height: 1.1 !important;
    color: #f1e3c0 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9) !important;
  }
  html body #callings #calling-row > button.calling-medallion.is-selected .ss-medallion__label { color: #ffe7a6 !important; }
  html body #callings #calling-row > button.calling-medallion .calling-medallion__cap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: -2px 0 0 !important;
    font: 700 11px/1.2 system-ui, "Segoe UI", sans-serif !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    color: #d9b866 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .85) !important;
  }
  html body #callings #calling-row > button.calling-medallion .calling-medallion__cap.is-open { color: #b9d98c !important; }
  html body #callings #calling-row > button.calling-medallion .calling-medallion__cap .cap-lock-ico { width: 10px; height: 10px; display: inline-block; }
  html body #callings #calling-row > button.calling-medallion .calling-medallion__cap .cap-lock-ico svg { width: 100%; height: 100%; display: block; }
  /* the chosen Calling keeps a soft glow pool under its medallion (the kit ring + bloom do the rest) */
  html body #callings #calling-row > button.calling-medallion.is-selected .ss-medallion__disc {
    box-shadow: 0 0 0 2.5px #fff0bc, 0 0 22px 5px rgba(var(--ss-glow-rgb), .62), 0 7px 16px rgba(0, 0, 0, .8) !important;
  }

  /* phone: one row of four */
  @media (max-width: 699px) {
    html body #callings #calling-row.calling-row {
      display: grid !important;
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
      gap: 4px !important;
      padding: 8px 4px 6px !important;
    }
    html body #callings #calling-row > button.calling-medallion.ss-medallion { --ss-med-size: 64px !important; padding: 2px 0 !important; gap: 5px !important; }
    html body #callings #calling-row > button.calling-medallion .ss-medallion__lock { width: 22px !important; height: 22px !important; padding: 4px !important; left: calc(50% + var(--ss-med-size) * .5 - 15px) !important; }
    html body #callings #calling-row > button.calling-medallion .ss-medallion__label { font-size: 12.5px !important; letter-spacing: .08em !important; }
    html body #callings #calling-row > button.calling-medallion .calling-medallion__cap { font-size: 9.5px !important; letter-spacing: .1em !important; gap: 3px !important; }
    html body #callings #calling-row > button.calling-medallion .calling-medallion__cap .cap-lock-ico { width: 8px; height: 8px; }
  }

  /* Light Mode: ink label, bronze caption, no glow text-shadow */
  html[data-theme="light"] body #callings #calling-row.calling-row { background: none !important; }
  html[data-theme="light"] body #callings #calling-row > button.calling-medallion .ss-medallion__label { color: #24170a !important; text-shadow: none !important; }
  html[data-theme="light"] body #callings #calling-row > button.calling-medallion.is-selected .ss-medallion__label { color: #120a02 !important; }
  html[data-theme="light"] body #callings #calling-row > button.calling-medallion .calling-medallion__cap { color: #4a3008 !important; text-shadow: none !important; }
  html[data-theme="light"] body #callings #calling-row > button.calling-medallion .calling-medallion__cap.is-open { color: #2f4a12 !important; }

  /* ---- 3. phone hero: crest + wordmark below the pinned bar's row of buttons ---- */
  @media (max-width: 699px) {
    /* (an explicit value: a layered :root variable would lose to the unlayered one in site-header.css) */
    html body.ss-has-masthead #ss-masthead.ss-masthead { top: calc(env(safe-area-inset-top, 0px) + 74px) !important; }
  }

  /* ---- 4. Calling figure: the alpha render stands in the hall art, no dark box behind it ---- */
  html body .cp97 .cp-fig > img,
  html body #callings #calling-panel .calling-base .adv-media.base-fig img.fig {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }
  /* desktop: the same warm arched hall the phone card uses (art/band-skills), feathered at the edges, instead of the dark
     brown box; the figure's own alpha lets the hall show round it */
  @media (min-width: 700px) {
    html body #callings #calling-panel .calling-base .adv-media.base-fig {
      border: 0 !important;
      box-shadow: none !important;
      background:
        radial-gradient(52% 12% at 50% 95%, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 100%),
        radial-gradient(60% 70% at 50% 48%, rgba(255, 214, 140, .10) 0%, rgba(20, 14, 8, .38) 100%),
        url("art/band-skills.webp") 50% 38% / cover no-repeat !important;
      -webkit-mask-image: radial-gradient(ellipse 78% 74% at 50% 50%, #000 66%, transparent 100%) !important;
      mask-image: radial-gradient(ellipse 78% 74% at 50% 50%, #000 66%, transparent 100%) !important;
    }
    html body #callings #calling-panel .calling-base .adv-media.base-fig::after { content: none !important; display: none !important; }
  }

  /* ================= r257v16 (#1090) owner notes on r257v15 =================
     1. the four sculpted coins go back into a framed horizontal selector bar: four forged slots spread across it;
     2. a slow cross-fading lore-art slideshow fills the page backdrop (dark + light), the plain bands turn translucent /
        frosted so the art reads through instead of a blank void. Art: loading/full/final masters (approved loading set). */

  /* ---- 2a. the slideshow layer ---- */
  .ss-bgshow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #120e0a; }
  .ss-bgshow > i {
    position: absolute; inset: -2%;
    background-size: cover; background-position: 50% 50%; background-repeat: no-repeat;
    opacity: 0; will-change: opacity, transform;
    animation: ss-bgshow-fade 60s linear infinite;
  }
  .ss-bgshow > i:nth-child(1) { animation-delay: 0s; }
  .ss-bgshow > i:nth-child(2) { animation-delay: 12s; }
  .ss-bgshow > i:nth-child(3) { animation-delay: 24s; }
  .ss-bgshow > i:nth-child(4) { animation-delay: 36s; }
  .ss-bgshow > i:nth-child(5) { animation-delay: 48s; }
  /* veil: keeps text contrast; warm dark in Dark Mode, parchment wash in Light Mode */
  .ss-bgshow::after {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(120% 80% at 50% 40%, rgba(18, 13, 8, .42) 0%, rgba(12, 9, 6, .78) 100%),
      linear-gradient(180deg, rgba(12, 9, 6, .35), rgba(12, 9, 6, .55));
  }
  html[data-theme="light"] .ss-bgshow { background: #c5aa82; }
  html[data-theme="light"] .ss-bgshow::after {
    background:
      radial-gradient(120% 80% at 50% 40%, rgba(214, 190, 150, .50) 0%, rgba(190, 160, 118, .72) 100%),
      linear-gradient(180deg, rgba(205, 180, 140, .30), rgba(190, 162, 120, .45));
  }
  /* each slide: 2 s fade in, ~10 s hold with a slow push-in, 2 s fade out, then rests while the others play */
  @keyframes ss-bgshow-fade {
    0%    { opacity: 0; transform: scale(1); }
    3.4%  { opacity: 1; }
    20%   { opacity: 1; }
    23.4% { opacity: 0; transform: scale(1.06); }
    100%  { opacity: 0; transform: scale(1.06); }
  }
  @media (prefers-reduced-motion: reduce) {
    .ss-bgshow > i { animation: none !important; }
    .ss-bgshow > i:first-child { opacity: 1; }
  }

  /* ---- 2b. the page itself lets the slideshow through ---- */
  html body, html body main, html body > main { background: transparent !important; background-color: transparent !important; }
  html body #journey.band, html body #realms.band, html body #callings.band, html body #peoples.band {
    background: rgba(16, 12, 8, .46) !important;
    background-image: none !important;
    -webkit-backdrop-filter: blur(3px) saturate(1.05);
    backdrop-filter: blur(3px) saturate(1.05);
    border-top: 1px solid rgba(232, 199, 122, .14);
  }
  html body #journey.band::before, html body #journey.band::after,
  html body #realms.band::before, html body #realms.band::after,
  html body #callings.band::before, html body #callings.band::after,
  html body #peoples.band::before, html body #peoples.band::after { background: none !important; opacity: 0 !important; }
  html[data-theme="light"] body #journey.band, html[data-theme="light"] body #realms.band,
  html[data-theme="light"] body #callings.band, html[data-theme="light"] body #peoples.band {
    background: rgba(214, 192, 154, .40) !important;
    border-top-color: rgba(90, 60, 20, .18);
  }
  /* frosted glass panels on top of the translucent bands */
  html body #callings .calling-panel, html body #realms .realm-card {
    background: rgba(20, 15, 10, .62) !important;
    background-image: none !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    backdrop-filter: blur(12px) saturate(1.1);
    border: 1px solid rgba(232, 199, 122, .28) !important;
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, .08), 0 18px 40px rgba(0, 0, 0, .45) !important;
  }
  html[data-theme="light"] body #callings .calling-panel, html[data-theme="light"] body #realms .realm-card {
    background: rgba(236, 220, 190, .66) !important;
    border-color: rgba(110, 76, 28, .35) !important;
    box-shadow: inset 0 1px 0 rgba(255, 250, 235, .5), 0 14px 30px rgba(60, 40, 15, .22) !important;
  }

  /* phone "View paths" chips: each name already carries its own medallion, so no comma separators (r218 drew
     "Warrior , Dragon Knight ," with the flex gap before each comma) */
  html body section#callings #calling-panel .cp97 .cp-paths .cp-pwrap .cp-pn .cp-pitem::after { content: none !important; display: none !important; }

  /* ---- 1. the Calling selector bar: four framed slots, coins centred in each ---- */
  html body #callings #calling-row.calling-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: min(880px, 100%) !important;
    margin: 0 auto 18px !important;
    padding: 10px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(232, 199, 122, .42) !important;
    background:
      linear-gradient(180deg, rgba(58, 42, 26, .78), rgba(26, 19, 12, .86)) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow:
      inset 0 1px 0 rgba(255, 228, 170, .22), inset 0 -2px 0 rgba(0, 0, 0, .45),
      0 0 0 1px rgba(0, 0, 0, .55), 0 14px 32px rgba(0, 0, 0, .5) !important;
  }
  html body #callings #calling-row > button.calling-medallion.ss-medallion {
    width: 100% !important;
    padding: 14px 6px 12px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(232, 199, 122, .20) !important;
    background:
      radial-gradient(90% 70% at 50% 30%, rgba(var(--ss-glow-rgb, 232, 199, 122), .10) 0%, rgba(0, 0, 0, 0) 70%),
      linear-gradient(180deg, rgba(14, 10, 6, .55), rgba(30, 22, 14, .55)) !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(255, 228, 170, .10) !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  }
  html body #callings #calling-row > button.calling-medallion.ss-medallion:hover {
    border-color: rgba(243, 214, 144, .55) !important;
  }
  html body #callings #calling-row > button.calling-medallion.ss-medallion.is-selected {
    border-color: #f3d690 !important;
    background:
      radial-gradient(90% 75% at 50% 32%, rgba(var(--ss-glow-rgb, 232, 199, 122), .26) 0%, rgba(0, 0, 0, 0) 72%),
      linear-gradient(180deg, rgba(60, 44, 24, .70), rgba(30, 22, 14, .70)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 236, 190, .28), 0 0 0 1px rgba(243, 214, 144, .45),
      0 0 18px rgba(var(--ss-glow-rgb, 232, 199, 122), .35) !important;
  }
  html[data-theme="light"] body #callings #calling-row.calling-row {
    border-color: rgba(110, 76, 28, .55) !important;
    background: linear-gradient(180deg, rgba(232, 214, 180, .82), rgba(206, 182, 140, .86)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 250, 235, .6), inset 0 -2px 0 rgba(90, 60, 20, .25),
      0 0 0 1px rgba(90, 60, 20, .25), 0 12px 26px rgba(60, 40, 15, .25) !important;
  }
  html[data-theme="light"] body #callings #calling-row > button.calling-medallion.ss-medallion {
    border-color: rgba(110, 76, 28, .28) !important;
    background: linear-gradient(180deg, rgba(196, 170, 128, .55), rgba(220, 200, 165, .55)) !important;
    box-shadow: inset 0 2px 5px rgba(80, 52, 18, .30), inset 0 -1px 0 rgba(255, 250, 235, .5) !important;
  }
  html[data-theme="light"] body #callings #calling-row > button.calling-medallion.ss-medallion.is-selected {
    border-color: #8a5a14 !important;
    background: linear-gradient(180deg, rgba(244, 228, 192, .9), rgba(222, 196, 150, .9)) !important;
    box-shadow: 0 0 0 1px rgba(138, 90, 20, .5), 0 0 14px rgba(180, 120, 30, .30) !important;
  }
  @media (max-width: 699px) {
    html body #callings #calling-row.calling-row {
      gap: 5px !important;
      padding: 6px !important;
      border-radius: 12px !important;
      margin-bottom: 14px !important;
    }
    html body #callings #calling-row > button.calling-medallion.ss-medallion {
      --ss-med-size: 58px !important;
      padding: 9px 2px 8px !important;
      border-radius: 8px !important;
    }
    html body #callings #calling-row > button.calling-medallion .ss-medallion__label { font-size: 11.5px !important; letter-spacing: .06em !important; }
    html body #callings #calling-row > button.calling-medallion .calling-medallion__cap { font-size: 9px !important; letter-spacing: .06em !important; }
  }
}
