/* RZ-LABEL
 * Name:      house-ads.css
 * What:      Shared staged house ads: six-way random header banners, Dhraconyx™ popup, chat banner, footer, interstitial, affiliate blurb
 * Does:      Skins for Hall of Raziel™ and dreamlike GothLine; reduced-motion; phone clearance for the ankh and sale line
 * Created:   2026-11-23 11:20 CT   Updated: 2026-11-23 21:16 CT
 * By:        Aether (AETH-E96K)
 * Host:      Solomon (staged paths only)
 * Reach:     /rz-stage-hall-header/assets/house-ads.css and /rz-stage-shem/assets/house-ads.css
 * Depends:   house-ads.js; Hall or GothLine stage chrome
 * Undo:      remove the stylesheet from stage heads; live files were not changed
 * Continuity:
 * /RZ-LABEL
 */

/* Accents from the house skin: --rz-gold #C8962A, --rz-gold-bright #e9c25a, --rz-title Cinzel, --rz-body Inter. */
.ha-root, .ha-marquee, .ha-pop, .ha-chat, .ha-foot, .ha-card {
  --ha-gold: var(--rz-gold, #C8962A);
  --ha-gold-bright: var(--rz-gold-bright, #e9c25a);
  --ha-title: var(--rz-title, Cinzel, Georgia, serif);
  --ha-body: var(--rz-body, Inter, "Helvetica Neue", Arial, sans-serif);
  --ha-void: #0b0a12;
  --ha-ink: #f6f2fb;
  box-sizing: border-box;
}
.ha-root *, .ha-marquee *, .ha-pop *, .ha-chat *, .ha-foot *, .ha-card * { box-sizing: border-box; }

.ha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font: 600 16px/1.2 var(--ha-body);
  cursor: pointer;
  border: 1px solid transparent;
}
.ha-btn-gold {
  background: var(--ha-gold-bright);
  color: #16130a;
  border-color: var(--ha-gold-bright);
}
.ha-btn-gold:hover { filter: brightness(1.06); }
.ha-btn-ghost {
  background: transparent;
  color: var(--ha-gold-bright);
  border-color: rgba(233, 194, 90, .45);
}
.ha-btn-text {
  background: none;
  color: inherit;
  border: 0;
  opacity: .85;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ha-btn:focus-visible {
  outline: 2px solid var(--ha-gold-bright);
  outline-offset: 3px;
}

/* -------- Header marquee (Hall enhances .rz-arz-who; GothLine gets a new bar) -------- */
.ha-marquee {
  position: relative;
  width: 100%;
}
.ha-marquee-cta[hidden] { display: none !important; }
.ha-marquee .ha-marquee-cta {
  margin-top: .45rem;
  font-size: 14px;
  min-height: 36px;
  padding: 0 14px;
}

/* GothLine dreamlike bar under the top nav */
body.gl-atlas .ha-marquee {
  display: block;
  margin: 0;
  padding: .7rem 22px .75rem;
  background: linear-gradient(180deg, rgba(22, 19, 61, .55), rgba(13, 11, 38, .72));
  border-bottom: 1px solid rgba(233, 194, 90, .28);
  backdrop-filter: blur(10px);
  color: var(--ha-ink);
}
body.gl-atlas .ha-marquee-in {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .45rem 1.1rem;
}
body.gl-atlas .ha-k {
  display: block;
  width: 100%;
  font: 600 12px/1.3 var(--ha-title);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9fe4e1;
}
body.gl-atlas .ha-q {
  flex: 1 1 16rem;
  margin: 0;
  font: 400 16px/1.55 var(--ha-body);
  color: #f6f2fb;
  min-height: 2.4em;
  transition: opacity .6s ease;
}
body.gl-atlas .ha-c {
  display: block;
  width: 100%;
  font: 500 13px/1.4 var(--ha-body);
  color: rgba(238, 232, 250, .78);
  font-style: normal;
}
body.gl-atlas .ha-dots { display: flex; gap: 6px; margin-top: 2px; }
body.gl-atlas .ha-dots i {
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(233, 194, 90, .28);
}
body.gl-atlas .ha-dots i.on { background: var(--ha-gold-bright); }

/* Hall: keep the existing plaque scroller, add mode label + CTA */
body.rz-arz-stage .rz-arz-who[data-house-ads] { position: relative; }
body.rz-arz-stage .rz-arz-who[data-ha-mode="dhraconyx"] .hp-g-k { color: #8a6a24; }
body.rz-arz-stage .rz-arz-who .ha-marquee-cta {
  display: inline-flex;
  margin-top: .4rem;
}
body.rz-arz-stage .rz-arz-who .hp-g-q { transition: opacity .45s ease; }

/* -------- Interstitial card (in the flow, between sections) -------- */
.ha-card {
  margin: 1.6rem 0 1.8rem;
  padding: 22px 22px 20px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px 18px;
  align-items: start;
  max-width: 52rem;
}
.ha-card img {
  width: 72px;
  height: auto;
  display: block;
}
.ha-card h2 {
  margin: 0 0 .35em;
  font: 600 20px/1.25 var(--ha-title);
  letter-spacing: .04em;
  grid-column: 2;
}
.ha-card .ha-kicker {
  grid-column: 2;
  margin: 0 0 2px;
  font: 600 12px/1.3 var(--ha-body);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ha-card p {
  margin: 0 0 .8em;
  font: 400 16px/1.55 var(--ha-body);
  grid-column: 2;
}
.ha-card .ha-acts {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body.gl-atlas .ha-card {
  background: rgba(24, 20, 62, .72);
  border: 1px solid rgba(233, 194, 90, .30);
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(120, 100, 200, .18);
  color: #f6f2fb;
}
body.gl-atlas .ha-card .ha-kicker { color: #9fe4e1; }
body.gl-atlas .ha-card h2 { color: var(--ha-gold-bright); text-shadow: 0 0 18px rgba(233, 194, 90, .22); }
body.rz-arz-stage .ha-card {
  background: #fffaf0;
  border: 1px solid #e8d5a3;
  border-radius: 10px;
  color: #121110;
}
body.rz-arz-stage .ha-card .ha-kicker { color: #8a6a24; }
body.rz-arz-stage .ha-card h2 { color: #8a6a24; }

/* -------- Chat banner (before the footer) -------- */
.ha-chat {
  margin: 0;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px 18px;
  align-items: center;
}
.ha-chat img { width: 64px; height: auto; display: block; }
.ha-chat .ha-kicker {
  margin: 0 0 2px;
  font: 600 12px/1.3 var(--ha-body);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ha-chat h2 {
  margin: 0 0 .25em;
  font: 600 20px/1.25 var(--ha-title);
  letter-spacing: .03em;
}
.ha-chat p { margin: 0; font: 400 16px/1.5 var(--ha-body); }
.ha-chat .ha-acts { justify-self: end; }
body.gl-atlas .ha-chat {
  background: linear-gradient(90deg, rgba(22, 19, 61, .9), rgba(38, 33, 88, .82));
  border-top: 1px solid rgba(233, 194, 90, .28);
  color: #f6f2fb;
}
body.gl-atlas .ha-chat .ha-kicker { color: #9fe4e1; }
body.gl-atlas .ha-chat h2 { color: var(--ha-gold-bright); }
body.rz-arz-stage .ha-chat {
  background: #1a1612;
  border-top: 1px solid #997838;
  color: #faf4e6;
}
body.rz-arz-stage .ha-chat .ha-kicker,
body.rz-arz-stage .ha-chat h2 { color: #e8d5a3; }

/* -------- Footer Dhraconyx™ strip -------- */
.ha-foot {
  margin: 0;
  padding: 14px 22px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font: 400 15px/1.5 var(--ha-body);
}
.ha-foot p { margin: 0; flex: 1 1 16rem; }
.ha-foot .ha-acts { display: flex; flex-wrap: wrap; gap: 8px; }
body.gl-atlas .ha-foot {
  background: rgba(10, 8, 30, .9);
  border-top: 1px solid rgba(233, 194, 90, .22);
  color: rgba(238, 232, 250, .9);
}
body.rz-arz-stage .ha-foot {
  background: #121110;
  border-top: 1px solid #3a332b;
  color: #faf4e6;
}

/* -------- Dhraconyx™ info popup (house skin, not a focus trap) -------- */
.ha-pop {
  position: fixed;
  z-index: 60; /* below GothLine ankh (70) and ankh menu (80) */
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 170px);
  overflow: auto;
  padding: 0;
  pointer-events: none;
}
.ha-pop[hidden] { display: none !important; }
.ha-pop-card {
  pointer-events: auto;
  position: relative;
  background: var(--ha-void);
  color: var(--ha-ink);
  border: 1px solid rgba(233, 194, 90, .4);
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 40px rgba(200, 150, 42, .12);
}
.ha-pop-logo {
  width: 72px;
  height: auto;
  display: block;
  margin: 4px 44px 10px 0;
}
.ha-pop-card h2 {
  margin: 0 0 .45em;
  font: 600 24px/1.25 var(--ha-title);
  letter-spacing: .04em;
  color: var(--ha-gold-bright);
}
.ha-pop-card p {
  margin: 0 0 .7em;
  font: 400 16px/1.55 var(--ha-body);
}
.ha-pop-card .ha-fine {
  font-size: 14px;
  color: rgba(246, 242, 251, .8);
}
.ha-pop-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ha-pop-x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ha-gold-bright);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.ha-pop-x:focus-visible {
  outline: 2px solid var(--ha-gold-bright);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .ha-chat {
    grid-template-columns: 56px 1fr;
  }
  .ha-chat .ha-acts {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .ha-card {
    grid-template-columns: 56px 1fr;
    padding: 18px 16px;
  }
  .ha-pop {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, calc(100vw - 40px));
    max-height: calc(100vh - 150px - env(safe-area-inset-bottom, 0px));
    bottom: auto;
    overflow: auto;
  }
  .ha-pop-card { padding: 16px 16px 14px; }
  .ha-pop-logo { width: 52px; margin-bottom: 6px; }
  .ha-pop-card h2 { font-size: 20px; }
  body.gl-atlas .ha-marquee { padding-left: 16px; padding-right: 16px; }
  body.gl-atlas .ha-foot,
  body.gl-atlas .ha-chat { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 420px) {
  .ha-card,
  .ha-card h2,
  .ha-card p,
  .ha-card .ha-kicker,
  .ha-card .ha-acts { grid-column: 1 / -1; }
  .ha-card img { width: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .ha-q,
  body.rz-arz-stage .rz-arz-who .hp-g-q,
  body.gl-atlas .ha-q {
    transition: none !important;
  }
}

/* ---- Six-banner marquee chrome: featured logo + house mark row ---- */
.ha-banner-logo {
  width: 44px;
  height: auto;
  display: block;
  flex: none;
  object-fit: contain;
}
.ha-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: .35rem;
  width: 100%;
}
.ha-marks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  opacity: .9;
}
.ha-marks img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.ha-fine {
  display: block;
  margin-top: .2rem;
  font: 500 13px/1.4 var(--ha-body, Inter, sans-serif);
  opacity: .85;
}
.ha-stage-note {
  display: inline-block;
  margin-left: .35rem;
  padding: .05rem .4rem;
  border-radius: 999px;
  font: 700 10px/1.3 var(--ha-body, Inter, sans-serif);
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: middle;
}
body.gl-atlas .ha-marquee-in { align-items: center; }
body.gl-atlas .ha-stage-note {
  color: #0d0b26;
  background: var(--ha-gold-bright, #e9c25a);
}
body.gl-atlas .ha-fine { color: rgba(238, 232, 250, .78); }
body.rz-arz-stage .rz-arz-who .ha-banner-logo { width: 40px; margin: 0 0 .3rem; }
body.rz-arz-stage .rz-arz-who .ha-fine { font-size: 12px; color: #5c5348; }
body.rz-arz-stage .ha-stage-note {
  color: #fffaf0;
  background: #8a6a24;
}
/* Affiliate details page */
.ha-aff {
  max-width: 44rem;
  margin: 0 auto;
  padding: 12px 0 40px;
}
.ha-aff h1 { font: 600 30px/1.25 var(--ha-title, Cinzel, Georgia, serif); }
.ha-aff h2 { font: 600 20px/1.3 var(--ha-title, Cinzel, Georgia, serif); margin-top: 1.6em; }
.ha-aff p, .ha-aff li { font: 400 16px/1.55 var(--ha-body, Inter, sans-serif); }
.ha-aff .ha-warn {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(233, 194, 90, .45);
  margin: 1em 0 1.4em;
}
body.gl-atlas .ha-aff .ha-warn { background: rgba(233, 194, 90, .1); }
body.rz-arz-stage .ha-aff .ha-warn { background: #fff6e0; border-color: #997838; }
.ha-aff .ha-price { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.ha-aff .ha-price th, .ha-aff .ha-price td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(153, 120, 56, .35); vertical-align: top;
}

body.gl-atlas .ha-copy{flex:1 1 16rem;min-width:0}
body.rz-arz-stage .rz-arz-who .ha-marks{margin-top:.4rem}
@media (max-width:700px){
  body.gl-atlas .ha-marquee-in{flex-direction:column;align-items:flex-start}
  .ha-banner-logo{width:40px}
  .ha-marquee .ha-marquee-cta{min-height:44px}
}

/* Light plate so dark-on-transparent house marks stay visible on twilight/void grounds */
body.gl-atlas .ha-banner-logo,
.ha-pop-logo,
body.gl-atlas .ha-card img,
body.gl-atlas .ha-chat img {
  background: rgba(250, 246, 236, .94);
  border-radius: 12px;
  padding: 4px;
}
body.gl-atlas .ha-marks a {
  background: rgba(250, 246, 236, .94);
  border-radius: 8px;
  padding: 2px;
}

/* ——— Cross-promo spots (23 Nov 2026 11:58–11:59 CT). Mobile-first at 360px.
   At most three reserved spots. No layout jump: min-heights reserved. */

.ha-spot {
  --ha-void: #020706;
  --ha-ink: #ece8dd;
  --ha-gold: #c8962a;
  --ha-gold-bright: #e8bd4f;
  --ha-cta-fg: #16120a;
  --ha-kicker: var(--ha-gold-bright);
  --ha-muted: rgba(236, 232, 221, .82);
  --ha-line: rgba(200, 150, 42, .35);
  --ha-art-plate: rgba(236, 232, 221, .08);
  --ha-info-bg: rgba(2, 7, 6, .85);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  position: relative;
  background: var(--ha-void);
  color: var(--ha-ink);
  border: 1px solid var(--ha-line);
  overflow: hidden;
}
/* Per-promo skins from live CSS, 23 Nov 2026. Hall/Library are light (ink on cream). */
.ha-spot[data-ha-family="dhx"] {
  --ha-void: #020706; --ha-ink: #ece8dd; --ha-gold: #c8962a; --ha-gold-bright: #e8bd4f;
  --ha-cta-fg: #16120a; --ha-kicker: #e8bd4f; --ha-muted: rgba(236, 232, 221, .82);
  --ha-line: rgba(200, 150, 42, .38); --ha-art-plate: rgba(236, 232, 221, .10);
  --ha-info-bg: rgba(2, 7, 6, .85);
}
.ha-spot[data-ha-family="gothline"] {
  --ha-void: #07090c; --ha-ink: #e7eef2; --ha-gold: #d7b56a; --ha-gold-bright: #d7b56a;
  --ha-cta-fg: #07090c; --ha-kicker: #9fd7e2; --ha-muted: rgba(169, 183, 192, .95);
  --ha-line: rgba(159, 215, 226, .45); --ha-art-plate: rgba(231, 238, 242, .10);
  --ha-info-bg: rgba(7, 9, 12, .85);
}
.ha-spot[data-ha-family="hall"] {
  --ha-void: #fbf8f2; --ha-ink: #3a342c; --ha-gold: #c9a04a; --ha-gold-bright: #c9a04a;
  --ha-cta-fg: #3a342c; --ha-kicker: #3a342c; --ha-muted: #5c5348;
  --ha-line: rgba(201, 160, 74, .45); --ha-art-plate: rgba(255, 252, 247, .85);
  --ha-info-bg: rgba(251, 248, 242, .95);
}
.ha-spot[data-ha-family="library"] {
  --ha-void: #faf4e6; --ha-ink: #3a342c; --ha-gold: #c9a04a; --ha-gold-bright: #c9a04a;
  --ha-cta-fg: #3a342c; --ha-kicker: #3a342c; --ha-muted: #5c5348;
  --ha-line: rgba(201, 160, 74, .45); --ha-art-plate: rgba(250, 244, 230, .9);
  --ha-info-bg: rgba(250, 244, 230, .95);
}
.ha-spot[data-ha-family="chat"] {
  --ha-void: #0B0B0F; --ha-ink: #F6F4EC; --ha-gold: #C8962A; --ha-gold-bright: #29C4C0;
  --ha-cta-fg: #050807; --ha-kicker: #29C4C0; --ha-muted: rgba(158, 163, 159, .95);
  --ha-line: rgba(41, 196, 192, .40); --ha-art-plate: rgba(246, 244, 236, .08);
  --ha-info-bg: rgba(11, 11, 15, .85);
}
.ha-spot[data-ha-family="ruezals"] {
  --ha-void: #0B0B0F; --ha-ink: #ffffff; --ha-gold: #C8962A; --ha-gold-bright: #e9c25a;
  --ha-cta-fg: #050807; --ha-kicker: #C8962A; --ha-muted: rgba(141, 157, 146, .95);
  --ha-line: rgba(200, 150, 42, .38); --ha-art-plate: rgba(236, 232, 221, .08);
  --ha-info-bg: rgba(11, 11, 15, .85);
}
.ha-spot[data-ha-family="wiki"] {
  --ha-void: #07090c; --ha-ink: #e7eef2; --ha-gold: #d7b56a; --ha-gold-bright: #d6ff4a;
  --ha-cta-fg: #07140c; --ha-kicker: #d6ff4a; --ha-muted: rgba(169, 183, 192, .95);
  --ha-line: rgba(159, 215, 226, .45); --ha-art-plate: rgba(231, 238, 242, .10);
  --ha-info-bg: rgba(7, 9, 12, .85);
}
.ha-spot[data-ha-family="askrue"] {
  --ha-void: #0B0B0F; --ha-ink: #F6F4EC; --ha-gold: #C8962A; --ha-gold-bright: #e8b84a;
  --ha-cta-fg: #0B0B0F; --ha-kicker: #C8962A; --ha-muted: rgba(158, 163, 159, .95);
  --ha-line: rgba(200, 150, 42, .28); --ha-art-plate: rgba(246, 244, 236, .08);
  --ha-info-bg: rgba(11, 11, 15, .85);
}
.ha-spot[data-ha-family="news"] {
  --ha-void: #050807; --ha-ink: #ffffff; --ha-gold: #C8962A; --ha-gold-bright: #e9c25a;
  --ha-cta-fg: #050807; --ha-kicker: #e9c25a; --ha-muted: rgba(236, 232, 221, .82);
  --ha-line: rgba(200, 150, 42, .38); --ha-art-plate: rgba(236, 232, 221, .10);
  --ha-info-bg: rgba(5, 8, 7, .85);
}
.ha-spot *, .ha-spot *::before, .ha-spot *::after { box-sizing: border-box; }

/* RZ-LABEL house-ads-port-20261124-CT
   Port of the GothLine logo-cell layout: logo in a left cell, copy fills
   the row to the (i), tighter vertical padding. Hall parchment colors stay. */
.ha-spot-header { min-height: 0; margin: 0 0 10px; }
.ha-spot-mid    { min-height: 0; margin: 10px 0; }
.ha-spot-foot   { min-height: 0;  margin: 10px 0 0; border-color: rgba(200, 150, 42, .22); }

.ha-spot-in {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  padding-right: 44px;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
  overflow: hidden;
  isolation: isolate;
}
.ha-spot-in:focus-visible { outline: 2px solid var(--ha-gold-bright, #e9c25a); outline-offset: 2px; }

/* Logo cell: crop the left mark out of the 728/360 banner art. */
.ha-spot-art,
.ha-spot-header .ha-spot-art,
.ha-spot-mid .ha-spot-art,
.ha-spot-foot .ha-spot-art {
  position: relative;
  inset: auto;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  margin: 0;
  padding: 0;
  align-self: center;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
  z-index: 0;
  background: none;
  border-radius: 10px;
  box-shadow: none;
}
.ha-spot-foot .ha-spot-art {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
  border-radius: 8px;
}
.ha-spot-in::before { content: none; display: none; }
.ha-spot-copy {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
}
.ha-spot-kicker {
  margin: 0;
  font: 600 12px/1.3 var(--ha-title, Cinzel, Georgia, serif);
  color: var(--ha-kicker);
  letter-spacing: .04em;
  text-transform: none;
}
.ha-spot-headline {
  margin: 2px 0 0;
  font: 600 16px/1.3 var(--ha-title, Cinzel, Georgia, serif);
  text-transform: none;
}
.ha-spot-body, .ha-spot-fine, .ha-spot-cite {
  margin: 4px 0 0;
  font: 400 13px/1.4 var(--ha-body, Inter, sans-serif);
  color: var(--ha-muted);
}
.ha-spot-header .ha-spot-body,
.ha-spot-foot .ha-spot-body,
.ha-spot-header .ha-spot-cite,
.ha-spot-foot .ha-spot-cite,
.ha-spot-header .ha-spot-fine,
.ha-spot-foot .ha-spot-fine { display: none; } /* compact header/footer */

.ha-spot-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 32px;
  margin-top: 4px;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--ha-gold-bright);
  color: var(--ha-cta-fg);
  font: 600 16px/1.2 var(--ha-body, Inter, sans-serif);
  text-decoration: none;
}

/* Info control: true circle. Overlay popup (does not move the layout).
   Higher specificity than Hall .rz-site-header button { width: auto }. */
button.ha-info,
.ha-spot .ha-info,
header.ab-area button.ha-info,
.rz-site-header button.ha-info {
  box-sizing: border-box;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  padding: 0;
  margin: 0;
  flex: 0 0 32px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid var(--ha-gold-bright);
  background: var(--ha-info-bg);
  color: var(--ha-kicker);
  font: 600 14px/1 var(--ha-body, Inter, sans-serif);
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
}
button.ha-info:hover, button.ha-info:focus-visible,
.ha-spot .ha-info:hover, .ha-spot .ha-info:focus-visible {
  background: color-mix(in srgb, var(--ha-gold-bright) 18%, transparent);
  outline: 2px solid var(--ha-gold-bright);
  outline-offset: 2px;
}
.ha-info-panel {
  display: none;
  position: absolute;
  z-index: 40;
  top: 44px;
  right: 8px;
  left: auto;
  width: min(22rem, calc(100vw - 24px));
  max-width: 22rem;
  max-height: min(60vh, 24rem);
  overflow: auto;
  padding: 16px 44px 14px 14px;
  border: 1px solid var(--ha-line, rgba(153, 120, 56, .5));
  border-radius: 10px;
  background: var(--ha-info-bg, #fffaf0);
  color: var(--ha-ink, #2a2018);
  font: 400 14px/1.45 var(--ha-body, Inter, sans-serif);
  box-shadow: 0 14px 30px -12px rgba(58, 52, 44, .45);
  box-sizing: border-box;
}
.ha-spot.is-open,
.ab-ad.is-filled:has(.ha-spot.is-open),
.ha-spot.is-open .ha-info-panel { overflow: visible; }
.ha-spot.is-open { z-index: 35; }
.ha-spot.is-open .ha-info-panel,
.ha-info-panel:not([hidden]) { display: block; }
.ha-info-panel[hidden] { display: none !important; }
.ha-info-x {
  box-sizing: border-box;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 600 22px/1 var(--ha-body, Inter, sans-serif);
  cursor: pointer;
}
.ha-info-x:hover, .ha-info-x:focus-visible { outline: 2px solid var(--ha-gold-bright, #c8962a); outline-offset: 2px; }
.ha-info-art {
  width: 56px;
  height: 56px;
  max-width: 56px;
  aspect-ratio: 1 / 1;
  /* Same 728x120 mid banner: crop to the left-hand mark, do not letterbox. */
  object-fit: cover;
  object-position: left center;
  display: block;
  margin: 0 0 8px;
  background: #1a1612;
  border-radius: 8px;
  padding: 4px;
  box-sizing: border-box;
}
.ha-info-panel a { color: var(--ha-kicker); }
.ha-info-panel p { margin: 0 0 .55em; }
.ha-info-panel p:last-child { margin-bottom: 0; }
.ha-stage-dot {
  display: inline-block;
  margin-left: 6px;
  font: 600 10px/1 var(--ha-body, Inter, sans-serif);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(246, 242, 251, .65);
}

@media (min-width: 720px) {
  .ha-spot-headline { font-size: 20px; }
  .ha-spot-art,
  .ha-spot-header .ha-spot-art,
  .ha-spot-mid .ha-spot-art {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
  }
  .ha-spot-foot .ha-spot-art {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    max-width: 52px;
    max-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ha-spot-art { animation: none !important; }
}

/* Never let a unit cause sideways scroll at 360/390/414. */
@media (max-width: 419px) {
  .ha-spot-in { gap: 10px; padding: 6px 10px; padding-right: 40px; }
  .ha-spot-headline { font-size: 16px; }
  .ha-spot-art,
  .ha-spot-header .ha-spot-art,
  .ha-spot-mid .ha-spot-art {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    border-radius: 8px;
  }
  .ha-spot-foot .ha-spot-art {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    border-radius: 8px;
  }
}


/* Centre mid/foot units with the Hall footer wrap: width min(100% - 2rem, 68rem).
   Fixes the GothLine 390px footer offset caused by a one-sided 52px right margin. */
.ha-spot-mid,
.ha-spot-foot {
  width: var(--rz-page-width, min(95vw, calc(100% - 1.5rem)));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
body.gl-atlas .ha-spot-mid,
body.gl-atlas .ha-spot-foot {
  /* This Hall copy does not use the old one-sided 52px shift. */
  margin-left: auto;
  margin-right: auto;
  width: var(--rz-page-width, min(95vw, calc(100% - 1.5rem)));
  max-width: 100%;
}
@media (max-width: 419px) {
  .ha-spot-header,
  .ha-spot-mid,
  .ha-spot-foot {
    width: var(--rz-page-width, min(95vw, calc(100% - 1.5rem)));
    margin-left: auto;
    margin-right: auto;
  }
}

/* Fill the Hall "House ad space" box (data-house-ads-slot=header). Compact so it fits the sidebar slot. */
.ab-ad.is-filled {
  background: none;
  border-style: solid;
  border-color: rgba(184, 164, 122, .45);
  padding: 0;
  overflow: visible;
  min-height: 0;
  align-items: flex-start;
  justify-content: flex-start;
}
.ab-ad.is-filled .ha-spot,
.ab-ad.is-filled .ha-spot-mid,
.ab-ad.is-filled .ha-spot-header,
.ab-ad.is-filled .ha-spot-housed {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}
.ab-ad.is-filled .ha-spot-in {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 40px 8px 8px;
  height: auto;
}
.ab-ad.is-filled .ha-spot-art {
  position: relative;
  inset: auto;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  padding: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: left center;
  background: none;
  box-shadow: none;
  border-radius: 8px;
}
.ab-ad.is-filled .ha-spot-body,
.ab-ad.is-filled .ha-spot-fine,
.ab-ad.is-filled .ha-spot-cite { display: none; }
.ab-ad.is-filled .ha-spot-headline { font-size: 15px; line-height: 1.25; }
.ab-ad.is-filled .ha-spot-cta { margin-top: 4px; min-height: 32px; }
@media (max-width: 700px) {
  .ab-ad.is-filled .ha-spot-in { flex-direction: row; align-items: center; }
}
[data-house-ads="mid"]:empty { display: none; }

/* No house ads on quiet paths (Raziel's Library™, Raziel's Mercy™). */
html.ha-quiet [data-house-ads],
html.ha-quiet .ha-spot,
html.ha-quiet .ab-ad,
html.ha-quiet [data-house-ads-slot] {
  display: none !important;
}

/* Keep Speaks and the ad at natural height even if a cached angels.css still stretches. */
header.ab-area.rz-site-header,
header.ab-area,
.ab-area {
  align-items: flex-start;
}

/* RZ-LABEL library-balance-20261124-CT
 * Name:      Hall parchment house-ad spots
 * What:      On the parchment Hall (not GothLine), restyle header/mid/foot
 *            house-ad banners to a warm cream-and-gold look so they suit
 *            the site and stay secondary to the page. Logo sits in a left cell;
 *            cream parchment colors stay. Popup and the
 *            PDF download window are not restyled.
 * Created:   2026-11-24 07:30 CT
 * /RZ-LABEL */

body:not(.gl-atlas) .ha-spot,
body:not(.gl-atlas) .ha-spot[data-ha-family] {
  --ha-void: #faf4e6;
  --ha-ink: #2a2018;
  --ha-gold: #c9a04a;
  --ha-gold-bright: #c8962a;
  --ha-cta-fg: #2a2018;
  --ha-kicker: #7a5a18;
  --ha-muted: #5c5348;
  --ha-line: rgba(153, 120, 56, .5);
  --ha-art-plate: #1a1612;
  --ha-info-bg: #fffaf0;
  color: var(--ha-ink);
  background-color: #faf4e6;
  background-image:
    linear-gradient(180deg, rgba(255, 250, 240, .92), rgba(247, 236, 214, .9)),
    repeating-linear-gradient(
      135deg,
      rgba(201, 160, 74, .05) 0 2px,
      transparent 2px 7px
    );
  border: 1px solid var(--ha-line);
  box-shadow:
    inset 0 0 0 1px rgba(255, 252, 247, .7),
    inset 0 0 0 2px rgba(201, 160, 74, .28),
    0 8px 20px -14px rgba(58, 52, 44, .4);
  border-radius: 10px;
}

/* Keep the cream plate; logo stays in the left cell (not a full-card background). */
body:not(.gl-atlas) .ha-spot-art {
  background: none;
  border-radius: 10px;
  padding: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: left center;
  aspect-ratio: auto;
}

body:not(.gl-atlas) .ha-spot-kicker { color: var(--ha-kicker); }
body:not(.gl-atlas) .ha-spot-headline { color: #2a2018; }
body:not(.gl-atlas) .ha-spot-body,
body:not(.gl-atlas) .ha-spot-fine,
body:not(.gl-atlas) .ha-spot-cite { color: var(--ha-muted); }
body:not(.gl-atlas) .ha-spot-cta {
  background: var(--ha-gold-bright);
  color: var(--ha-cta-fg);
  border: 1px solid #8a6a24;
  border-radius: 6px;
}
body:not(.gl-atlas) .ha-info {
  background: #fffaf0;
  color: #7a5a18;
  border-color: #c9a04a;
}
body:not(.gl-atlas) .ha-info-panel a { color: #7a5a18; }
body:not(.gl-atlas) .ha-stage-dot { color: #7a5a18; }

/* Compact mid ribbon if a page still places the unit under the gold name. */
body:not(.gl-atlas) .ha-spot-mid:not(.ha-spot-housed) {
  min-height: 0;
  margin: .45rem auto .35rem;
}
body:not(.gl-atlas) .ha-spot-mid:not(.ha-spot-housed) .ha-spot-in {
  padding: 6px 12px;
  padding-right: 44px;
}

/* Housed (title-row) unit stays compact and secondary. */
body:not(.gl-atlas) .ab-ad.is-filled {
  background: none;
  border: 1px solid rgba(153, 120, 56, .45);
  border-radius: 10px;
  box-shadow: 0 8px 18px -14px rgba(58, 52, 44, .35);
}
body:not(.gl-atlas) .ab-ad.is-filled .ha-spot {
  border: 0;
  box-shadow: none;
  border-radius: 9px;
  height: auto;
  overflow: visible;
}

/* RZ-LABEL library-balance-infofix-20261124-CT
 * Circle (i) button; overlay info popup; housed art uses the same background treatment.
 */

/* RZ-LABEL hall-grid-20261124-CT: sticky gap unit beside sources, Hall parchment look. */
.ha-gap-slot .ha-spot,
.ha-gap-slot .ha-spot-mid {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}
