/* r15h clear rim glass — wash-through, specular rim, no milky / crimson plate */

.rbox {
  box-sizing: border-box;
  position: relative;
  display: block;
  width: max-content;
  max-width: var(--rbox-max);
  margin: var(--air-chill-glass) 0 0;
  padding: var(--rbox-pad-y) var(--rbox-pad-x);
  border-radius: var(--rbox-radius);
  background: rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.08) brightness(1.04);
  backdrop-filter: blur(24px) saturate(1.08) brightness(1.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.52);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 16px 40px rgba(0, 0, 0, 0.44),
    0 2px 8px rgba(0, 0, 0, 0.3);
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rbox::before,
.rbox::after { content: none; }

.rbox .body {
  position: relative;
  z-index: 1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--rbox-body);
  -webkit-text-fill-color: var(--rbox-body);
  background: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.rbox:hover {
  border-color: rgba(255, 255, 255, 0.32);
  border-top-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 20px 46px rgba(0, 0, 0, 0.5),
    0 3px 10px rgba(0, 0, 0, 0.34);
}

@media (max-width: 767px) {
  .rbox {
    width: 100%;
    max-width: 94vw;
  }
  .rbox .body {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rbox:hover { transform: none; }
}
