/* Home page hero cube (hero_cube.php, assets/js/hero_cube.js) */
/* the hero text stays on top; only its links take clicks, so the cube under it can be clicked */
.hc-host > .container { position: relative; z-index: 3; pointer-events: none; }
.hc-host > .container a, .hc-host > .container button { pointer-events: auto; }
.hc-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; /* keep the cube out of the header strip: its pale faces otherwise show above the header pill and over the top of the logo as it rotates */ clip-path: inset(110px 0 0 0); }

.hc-photo { position: absolute; inset: 0; background-size: cover; background-position: center top; background-repeat: no-repeat; z-index: 2; opacity: 0; }
.hc-host.hc-ready .hc-photo { opacity: 1; }
.hc-scrim { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity 1.2s ease;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(7, 11, 31, .38) 0%, rgba(7, 11, 31, .15) 60%, rgba(7, 11, 31, 0) 100%); }
.hc-host.hc-spin .hc-scrim { opacity: 1; }

.hc-scene { position: absolute; left: 50%; top: var(--hc-y, 50%); width: var(--hc-s, 420px); height: var(--hc-s, 420px);
  margin: calc(var(--hc-s, 420px) / -2) 0 0 calc(var(--hc-s, 420px) / -2); perspective: calc(var(--hc-s, 420px) * 3.2); z-index: 1; }
.hc-cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; opacity: 0; will-change: transform; }
.hc-host.hc-spin .hc-cube { opacity: 1; }
.hc-host.hc-spin .hc-face { pointer-events: auto; cursor: pointer; }
.hc-host.hc-spin .hc-face:hover { box-shadow: inset 0 0 0 3px #ffda49, 0 0 40px rgba(0, 0, 0, .25); }
.hc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  background: #fbfaf6; box-shadow: inset 0 0 0 1px rgba(255, 218, 73, .55), 0 0 40px rgba(0, 0, 0, .25); }
.hc-front  { transform: translateZ(calc(var(--hc-s, 420px) / 2)); }
.hc-right  { transform: rotateY(90deg) translateZ(calc(var(--hc-s, 420px) / 2)); }
.hc-back   { transform: rotateY(180deg) translateZ(calc(var(--hc-s, 420px) / 2)); }
.hc-left   { transform: rotateY(-90deg) translateZ(calc(var(--hc-s, 420px) / 2)); }
.hc-top    { transform: rotateX(90deg) translateZ(calc(var(--hc-s, 420px) / 2)); }
.hc-bottom { transform: rotateX(-90deg) translateZ(calc(var(--hc-s, 420px) / 2)); }

/* Cards are drawn once in the staging area, then moved onto faces as they turn away */
.hc-staging { position: absolute; left: -9999px; top: 0; width: var(--hc-s, 420px); height: var(--hc-s, 420px); visibility: hidden; }
.hc-card { position: absolute; inset: 0; display: flex; flex-direction: column; font-family: var(--ztc-family-font1, system-ui, sans-serif); color: #14203f; }
.hc-head { flex: none; background: #14203f; color: #fff; padding: calc(var(--hc-s, 420px) * .035) calc(var(--hc-s, 420px) * .045); text-align: left; }
.hc-head b { display: block; color: #ffda49; font-size: calc(var(--hc-s, 420px) * .052); line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; }
.hc-head span { display: block; font-size: calc(var(--hc-s, 420px) * .032); line-height: 1.3; opacity: .85; margin-top: 2px; }
.hc-body { position: relative; flex: 1; min-height: 0; }
.hc-body > svg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; min-width: 0 !important; aspect-ratio: auto !important; }
.hc-photo-card { background-size: cover; background-position: center top; }
.hc-wais { background: linear-gradient(180deg, rgba(7, 11, 31, 0) 40%, rgba(7, 11, 31, .85) 100%), url(../img/WAIS-row.jpg) center / cover; }
.hc-wais .hc-body { display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--hc-s, 420px) * .06); color: #fff; }
.hc-wais .hc-body b { font-size: calc(var(--hc-s, 420px) * .075); line-height: 1.1; color: #1fd5f9; }
.hc-wais .hc-body span { font-size: calc(var(--hc-s, 420px) * .036); margin-top: 6px; }

/* Price lists */
.hc-list { list-style: none; margin: 0; padding: calc(var(--hc-s, 420px) * .03) calc(var(--hc-s, 420px) * .05); height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hc-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: calc(var(--hc-s, 420px) * .014) 0;
  border-bottom: 1px dashed #d6d3c8; font-size: calc(var(--hc-s, 420px) * .04); }
.hc-list li:last-child { border-bottom: 0; }
.hc-list li em { font-style: normal; color: #64748b; font-size: .8em; margin-left: 6px; }
.hc-list li b { color: #3b2556; white-space: nowrap; }
.hc-legend { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; justify-content: center; padding: 4px 8px 6px;
  font-size: calc(var(--hc-s, 420px) * .026); color: #334155; background: rgba(251, 250, 246, .9); }
.hc-legend i { display: inline-block; width: .9em; height: .9em; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* Exhibitor Booth Registration and Volunteer faces */
.hc-big { height: 70%; display: grid; grid-template-columns: auto 1fr; align-items: baseline; align-content: center; gap: calc(var(--hc-s, 420px) * .01) calc(var(--hc-s, 420px) * .03); padding: 0 calc(var(--hc-s, 420px) * .07); }
.hc-big b { color: #3b2556; font-size: calc(var(--hc-s, 420px) * .1); line-height: 1.1; }
.hc-big span { font-size: calc(var(--hc-s, 420px) * .04); color: #334155; }
.hc-note { margin: 0; padding: 0 calc(var(--hc-s, 420px) * .07); font-size: calc(var(--hc-s, 420px) * .034); color: #334155; }
.hc-note b { color: #15803d; }
.hc-chips { height: 100%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: calc(var(--hc-s, 420px) * .015); padding: calc(var(--hc-s, 420px) * .04); }
.hc-chips span { font-size: calc(var(--hc-s, 420px) * .033); padding: .3em .8em; border-radius: 999px; background: #14203f; color: #ffda49; white-space: nowrap; }

/* Control bar under the cube */
.hc-controls { position: absolute; left: 0; right: 0; margin: 0 auto; width: fit-content; bottom: 18px;   /* top set by the script */ z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 16px; max-width: calc(100% - 32px); padding: 7px 16px; border-radius: 999px; background: rgba(7, 11, 31, .62); color: #fff;
  font: 600 12px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.hc-host.hc-spin .hc-controls, .hc-controls.hc-on { opacity: 1; pointer-events: auto; }
/* docked in the countdown band under the hero */
.hc-controls.hc-docked { position: static; margin: 18px auto 0; max-width: 100%; }
.hc-controls label { display: inline-flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; white-space: nowrap; }
.hc-controls input[type=range] { width: 90px; accent-color: #ffda49; margin: 0; }
.hc-controls output { min-width: 42px; font-variant-numeric: tabular-nums; color: #ffda49; }
.hc-controls button { font: inherit; color: #14203f; background: #ffda49; border: 0; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
@media (max-width: 767px) {
  .hc-controls { border-radius: 14px; gap: 4px 10px; padding: 6px 10px; font-size: 11px; bottom: 10px; }
  .hc-controls.hc-docked { margin-top: 12px; }
  .hc-controls input[type=range] { width: 70px; }
}

@media (prefers-reduced-motion: reduce) { .hc-stage, .hc-controls { display: none; } }

/* Stop/Start for the turning cube: phones and touch screens only, centred at the top of the hero */
.hc-stop { display: none; }
@media (max-width: 767px), (pointer: coarse) {
  .hc-host.hc-spin .hc-stop {
    display: inline-flex; align-items: center; gap: 6px; position: absolute; left: 50%; transform: translateX(-50%); z-index: 5;
    top: 76px;   /* top of the hero, centred: under the header, clear of the hero text and the alpana art down the sides */
    padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(20, 32, 63, .82); color: #fff;
    font: 700 13px/1 system-ui, -apple-system, sans-serif; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .hc-host.hc-spin .hc-stop[aria-pressed="true"] { background: #ffda49; color: #14203f; }
  .hc-host.hc-spin .hc-stop span { font-size: 10px; }
}
