/*
 * Roshious prototypes — shared helpers used by every concept.
 * Concept-specific styling lives in each concept's own stylesheet.
 */

/* ---------- Logo ----------
 * The client supplied a single mockup JPEG (945x998) with the badge on a navy
 * textured background. We DO NOT edit the file. These classes only frame it:
 *  .rf-logo        circular display crop centred on the badge (cream ring at
 *                  x131–893, y127–907 of the source) — keeps the whole emblem.
 *  .rf-logo--tile  shows the full supplied image unaltered in a rounded tile.
 * Swap for the client's vector/transparent master when supplied.
 */
.rf-logo {
  --rf-logo-size: 56px;
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--rf-logo-size);
  height: var(--rf-logo-size);
  border-radius: 50%;
  overflow: hidden;
  background: #1e2b36;
  line-height: 0;
}
.rf-logo img {
  position: absolute;
  /* crop circle: centre (512,517), radius 440 of the 945x998 source */
  width: 107.4%;
  height: auto;
  left: -8.2%;
  top: -8.75%;
  max-width: none;
}
.rf-logo--tile {
  border-radius: 14%;
}
.rf-logo--tile img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Accessibility ---------- */
/* The hidden attribute must always win over component display rules. */
[hidden] {
  display: none !important;
}

.rf-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.rf-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: #111;
  color: #fff;
  font: 600 14px/1.2 system-ui, sans-serif;
  border-radius: 6px;
  text-decoration: none;
  transition: top 0.15s;
}
.rf-skip:focus {
  top: 12px;
}

/* ---------- Prototype honesty markers ---------- */
.rf-demo-flag {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 900;
  max-width: calc(100vw - 96px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  font: 500 11px/1.3 system-ui, sans-serif;
  letter-spacing: 0.02em;
  pointer-events: none;
}
@media (max-width: 600px) {
  /* leave room for each concept's floating Help button (bottom-right) */
  .rf-demo-flag {
    left: 8px;
    bottom: 8px;
    max-width: calc(100vw - 160px);
    padding: 5px 9px;
    border-radius: 10px;
    font-size: 10px;
  }
}
.rf-demo-flag a {
  pointer-events: auto;
  color: inherit;
}

/* Back-to-index link shown on every concept */
.rf-back {
  pointer-events: auto;
  margin-left: 6px;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
